Change MySQL default charset

When runing MySQL in Linux, the latin_1 charset will be the default when you create new database. But we always need UTF-8 as the default charset in our database, so that the below configration will help you made the process smooth. character-set-server=utf8 default-collation=utf8_unicode_ci

Can’t edit a file in Linux even the root

In some case, the Linux have some files will not allow user edit directly. It will append immutable permission to the file. The file will not allow every one to edit or delete, unless the attribute has been removed. lsattr path_to_file Will show the addition attribute for the file or folder. chattr -i path_to_file Will … Read more

Print a page without prompt – Firefox

In some case, we may need print a page without the windows prompt. In the Firefox, it is easy to realize that with add a boolean key “print.always_print_silent = true” to the Firefox configration. Step 1: In the address bar, type “about:config”. Step 2: add a boolean key “print.always_print_silent”, and set it to “True”.

SVN Ignore

In some case, we would not like the SVN server contain some configration, so we need ignore some files or folders when we update the data. svn propedit svn:ignore . File format: abc.htm *bc.htm