
Problem :
taken from the SED $HOME :
“USE OF ‘\t’ IN SED SCRIPTS: For clarity in documentation, we have used
the expression '\t' to indicate a tab character (0x09) in the scripts.
However, most versions of sed do not recognize the '\t' abbreviation,
so when typing these scripts from the command line, you should press
the TAB key instead. '\t' is supported as a regular expression
metacharacter in awk, perl, and HHsed, sedmod, and GNU sed v3.02.80."
Read More »

Blogging have been a important part of internet. Blogging have never been so easy with WordPress. Blogging has not only been personal diary but rather, it make information sharing easier for everyone. We all have not only one blog we are reading daily, but we have a dozen or more to visit. RSS makes our life easier by just extract the summary of the site and deliver it to our RSS readers (firefox have it built into bookmark)!
Problem :
Want to read WordPress blog on a browser or RSS reader.
Read More »

System administration in Linux / BSD can never do without a text editor, and vim is definitely de-factor editor. vim is not only an text editor, it can be also a IDE (integrated development environment) and it is extremely light in resource. Just to mention a few of its features, syntax highlighting, auto indent, search & replace, copy/cut & paste & others. vim comes with all versions of linux & BSD, check your flavors documentation.
Problem :
copy / cut text from other apps (e.g. gedit, openoffice, kedit, abiword, textmate, notepad, textedit & other text editor) to vim often jumble up the space.
Read More »

DO NOT try this :
id="I_saw_this_command_somewhere:_:.28.29.7B_:.7C:.26_.7D_.28fork_bomb.29.__How_does_it_work.3F">:(){
:& };:
You have been warned !!!
Sayonara !!!

Traditionally, search and replace in files have to be done in editor. But if the operation involves multiple files, it would not be practical to use editor on every files as it can be tedious (more then 5 files?) and also error prune. By using a few of bash utilities, the task can be achieve with no error and also a great opportunity to learn a few handy bash tools / command. Below is a scenario that commonly needs to be done.
Problem :
Find & replace text from a set of files
Solution :
Read More »

Most of the time, we need to write a script to update multiple fields in a database table, pull values from database to fill up other tables or even grab from database and pass it to programs to process. The most annoying thing is every time it tries to connect to the database server, it prompts for password. Worse, if the sql statement in the bash script is not optimized or written properly, the scripts could actually ask for the password, more then 1 time !!!
Problem :
Connecting to postgresql (psql) within a bash script with no password, preferred.
Solution :
Read More »

Writing script might not be only wants to shows the result on the screen. Some times, we want the script to output to a file. Not only result, but also the errors. Result of cause we want to the know, but errors is valuable also, when we need it to debug the script. Or even warn us of some thing in between the commands is having error, worse, symptoms of system / program failure.
Problem :
Pipe or output all error or status to a file
Solution :
Read More »

Ever doing some presentation or writing a blog post and need to bring out the contents by displaying a picture of the related topic? After all, a picture worth more then a thousand words. Wiki have a list of mascot, with logo picture. :p
Adiós !!!

Ever wonder why firefox have tons have tons of plugins to enhance the user experience? Thunder wasn’t left out also.
Hey, Apple Mail also got its contributors which aims to make your life easier. The site Hawk Wings have a large collection of Apple Mail client plugins, links with short description. e.g. iCal, Address Book, Notification, Integration with other apps, Spam Tools, Interface tweaks, Archiving & others … Check it out Hawk Wings …
Sayonara !!!

Just bought a Nokia E series smart phone that runs symbian OS. It is able to sync with Apple mac OS X 10.4 tiger isync & ical application. But during the isync with nokia E71 or E63, it complain about not recognizing the new nokia E63 or nokia E71? No worries, it is just a few click away to download the driver for it. (Surprisingly nokia-asia.com does not have the driver, but europe.nokia.com has it)
Problem :
iSync does not recognize nokia E63 or nokia E71 after “Add Device” to sync, using bluetooth.
Solution :
Read More »