Category Archives: technology

Form filler (Chrome extension)

As a programmer, I deal a lot with forms. Build the form, test the form, debug the form, test again, test test and test again.

It is still ok to fill up only 2 to 3 fields forms but it eats up your time if you have to fill up more than 10 fields everytime you want to test a form.

Further more if the form fields are all mandatory!

With the following tools you can just fill up the forms with dummy data or some pre-set data. It maybe useful for other purpose as well. Don’t know.

1. Form Filler

2. JunkFill

Atom text editor – my settings and packages used

Atom is a text editor by github.

Some important shortcut to use

  • command+P = to open new file in new tab
  • Cmd+F  = search in active file
  • Cmd+Shift+F = search in project
  • Cmd+Shift+W = close tab
  • Cmd+Shift+W = close window
  • Cmd+/ = to comment code line (just place cursor anywhere on the line)
  • Cmd+Shift+D = duplicate line
  • Cmd+, = open settings
  • Cmd+O = open folder as project
  • Cmd+R = go to function or symbol in active file

Full shortcut reference

Important things you should know

  • Open settings (Cmd+O)
    • go to install to install a new package
    • go to package – to disable, change settings for installed package

Some of settings for my Atom editor

UI

  • use default. seems it is very acceptable now.

Packages

  • linter
  • linter-php
  • autoclose-html – to automatically add close tag
  • project-quick-open – just enter ctrl-atl-P to open folder list in htdocs (must first set path in core settings)
  • docblockr (document tools) – easy for commenting (esp for function comment)
  • symbols-tree-view – to view functions, variables (or both) in a list. Can sort by alphabetical order
  • autocomplete-php – to get suggestions on php functions plus parameters to pass
  • goto-definition – able to go to function definition when press cmd+alt+enter
  • goto-declaration – to be able to use, need to create ctags by using

New things to learn

Getting started with some new tools. To get comfortable with uncomfortables.

Other things to checkout

Git

Learning Git (over SVN).

Git vs SVN

GIT vs SVN

Git Basic

https://www.atlassian.com/git/

Git with Netbeans

https://netbeans.org/kb/docs/ide/git.html

Free private source repo

https://bitbucket.org/ (limit to 5 users)
http://gitlab.org – unlimited private repos (limited to 10GB per project)

Free git client for windows and mac

  1. https://www.atlassian.com/software/sourcetree/overview
  2. github desktop

 

 

Ways to auto backup MySQL database

1. AutoMySQLBackup

AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.

Other Features include:
– Email notification of backups
– Backup Compression and Encryption
– Configurable backup rotation
– Incremental database backups

2. Exabytes off-site backup RM199/mo for 50GB.

3. Handy Backup

4. Percona XtraBackup (incremental backup)

5. Explaining on AutoMySQLBackup and MySQL Workbench

iChat problems connecting

To solve the problem, run the following to restart Bonjour service

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

then

sudo launchctl load /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

updated: 

Since this solution is not that practical, I ended up using Adium to online gTalk on Mac.