How to Convert your javascript file to a Windows .exe or .dll

Nowadays an average web developer will need to know a broad matrix of skills in order to do his/her development job. HTML, CSS, JavaScript, AJAX, XML, some server side language, some linux/unix/redhat command skills, some apache, some database skills, standards, accessibility, SEO, etc…, the list goes on. Parts of the list are also multiplied by (or raised to the power of at least 10) number of browsers you want to support.

Continue reading »

Turning on/off warnings and errors in PHP

Write a script to determine whether the page is on a local, testing, or live server, and set $state to “local”, “testing”, or “live”. Then: Or if you are sure your script is working perfectly, you can get rid of Warning and notices by putting this line at the beginning of your php script: error_reporting(E_ERROR); Before that, during the development, I would properly debug my script so that all notice or warning disappear one by one. So we should first set it as verbose as…

Continue reading »

Connecting SFTP Public Keys for Authentication

https://winscp.net/eng/docs/public_key#private Run SFTP Client on your computer as normal. Using Public Keys for Authentication, you don’t need to use password any more. Enter server Hostname, username, then click on “Advanced” button. Then add the PrivateKey file using SSH=>Authentication. Please Save and login to SFTP. Once you’re on GC, please look for /var/www/html/. By default, it’ll redirect you to /home/YourUserName/ directory.

Continue reading »

Adding and Removing SSH Keys on GoogleCloud

Follow this instruction to add and remove SSH keys on Compute Engine Instances. https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys For Mac, please follow this instruction to generate Public and Private Keys for Google Cloud https://docs.joyent.com/public-cloud/getting-started/ssh-keys/generating-an-ssh-key-manually/manually-generating-your-ssh-key-in-mac-os-x

Continue reading »