How To
Null characters in file
0Some program could not handle interfacing files which contains null characters and has often causes support people lots of run around to find the cause.
A simple way to identify the locations of null characters in a flat file is by using the following command. Works well each time for me.
tr ‘\0′ ‘@’ < INPUT_FILE > OUTPUT_FILE
I LOVE UNIX!
[Solved] PuttyCM – Object reference not set to an instance of an object error
6I was recently introduced to PuttyCM and am hooked to it till now.
Just a while ago while I was making some changes to the config and all of a sudden I could not access the software. Unexpected Error “object reference not set to an instance of an object” shows up and I can’t seem to access the software anymore.

PuttyCM - Unexpected Error
Then I remembered the last I changed was the “Show Tray icon” option to disabled.

I re-enabled the option and…
Bingo.. I can access the program again.
Hope this will help you too.
Extract first 100 lines from a file in UNIX
0I was tasked to get first 100 lines of records from a database dump. While searching big brother G, I found the solution here:- how to extract a range of lines from a file provided by zazzybob.
Here’s the solutions:-
You could also pipe though sed to extract the range – e.g.
blah | sed -n ’1,1000p’ | blah
to extract the first 1000 lines of the file
How I uses it:-
cat file.unl | sed -n ’1,100p’ > out100.unl
Cheers.
[Solved] How to switch off Google Buzz?
0When Google starts to activate the Buzz add on for Gmail, I thought it was cool.. Well I still think it is cool but at times, I’d want peace of mind and don’t want to get updated on what is going on with the people around me.
Here is how I could turn off Google Buzz.
Once you have logged into Gmail, scroll down to bottom of the page. You’ll see the “Turn off Buzz” link. Just click on that and you are then Buzzed off..

Recent Comments