Disable mouse zooming in Firefox

Why? The scroll wheel on my MX master 3 doesn’t really work well with MacOS. Zooming is triggered by mistake quite often. Windows: about:config mousewheel.with_control.action change the value to 1 Reference: https://support.mozilla.org/bm/questions/1253302 OSX about:config mousewheel.with_meta.action change the value to 1 In MacOS, meta key is the Command key. (Source) The Read more…

Enable MySQL/MariaDB SSL for PDO/Laravel

Server side setup Refer to this manual from MariaDB https://mariadb.com/kb/en/securing-connections-for-client-and-server/ require_secure_transport = ON could be added to the my.cnf file to enforece SSL for all connections (including those from localhost & unix socket) One way SSL Without CA verification PDO $pdo = new PDO(‘mysql:host=db.example.com;dbname=image’, ‘laravel’, ‘laravel’,array( PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false)); Laravel Read more…

Getting started with eBay API Tokens (Oauth) with PHP

Official Guide: http://developer.ebay.com/devzone/rest/ebay-rest/content/oauth-gen-user-token.html I’ll also cover some mistakes I made.  Signup at https://developer.ebay.com Create an App and get the App ID (Client ID) and Cert ID (Client Secret) Click ‘User Tokens‘ (either from sandbox or production, depend on you) Click “Get a Token from eBay via Your Application” then “Add eBay Redirect URL“ Read more…

Remove the Loop Icon for VOX

VOX is the best music players on OSX I’ve ever used. The Loop becomes one of it’s features to store unlimited music on it’s platform. It’s a good feature, and the only way for the developer to get some pay back for the wonderful applet. I just don’t need it, Read more…

Note on sshd_config Setup

What’s sshd_config? It’s “OpenSSH SSH daemon configuration file” Simply means the config file for OpenSSH Server. Located at /etc/ssh/sshd_config My reference http://www.freebsd.org/cgi/man.cgi?query=sshd_config ListenAddress and Port By default, OpenSSH will listen on port 22 for all address( and ::) There can be multiple Port defined, for example: Port 22 Port 622 Read more…

Bugs and Tips found recently

1: Teensy as a keyboard does not work properly in GRUB. Solution: break your long input into parts (<=3 chars) and add delays (50ms is enough) between them.   2: In Debian and Ubuntu, your may install some PHP PECL modules just by using sudo apt-get install php5-pecl-http php5-propro php5-raphf Read more…

How to get a certification to sign PDFs

I’m trying to get a certification to sign my PDF files these days.

My Goal:

  1. It is a certification signed by a trusted CA in Adobe Acrobat (of course it can’t be self-signed)
  2. It is cheap

What I did:

Check the current list of Adobe Approved  Trusted CA (http://helpx.adobe.com/acrobat/kb/approved-trust-list1.html)

Check those CA’s website.

Many of those CA are used inside their company/organization only, Some “Widely known CA” like DigiCert, GlobalSign, Entrust cost a lot(200-800 USD/year) for the certification, and you maybe asked for purchasing a USB device for the cert, PLUS, some of them limit the number of files you signed.

Finally I found “CERTUM (Unizeto Technologies)” in Porland, they supply a certification for a low cost(~10USD/year)  https://en.sklep.unizeto.pl/data-safety/id-certificates/certyfikat-professional-id.html