Over the last few months, I have re-discovered some unix commands (it’s been such a long time) Eliminate duplicate lines from a file #sort -u filename > filename.new List all lines that do not match a condition #grep -v ajsk filename Copy contents of two files to one #cat file1 file2 > file3 Append output of a command to a file #cat file1 >> file2
Read Morecvs - Getting list of files changed in the current tree
The simple way to retreive the list of changed files would be to update the tree, which would then list the files updated. #cvs update . > filelist.dat The problem with this, is that if there have been changes to other files after your last update, you will have to manually glean the files that you have changed. I tend face this, particularly during the last couple of weeks before a release, since you don’t want to risk updating your tree everyday, but still have to make 2/3 checkins.
Read MoreEX-SideRSS
After several months of keeping away from updating or changing my website, I broke the fast today. I found a wonderful plugin, sideRSS, which allows display of RSS feeds within a blog’s sidebar. As usual, I needed a specific functionality that was not supported the way I wanted it. I hacked it a little bit, renamed the plugin, and posted a custom version for download on my website. If you need to share Google Shared Items, on your blog, but hate to include javascript (like I do), then use this.
Read MoreUnix: how to check system configuration on solaris
I had to compare machine hardware today, and found information on that here. **#prtdiag -v - **Gives hardware information about FSB, Sparc Model, CPU speed, RAM, Harddisks, USB drives (ie. PCI and networking slots) etc. Click on the image below, for a detailed overview of prtdiag’s output #psrinfo -p - lists number of physical processors . #psrinfo -p -v - list number of virtual processors (cores) per physical processor.
Read MoreEventing mechanism between two java processes using HTTP persistent connections
I have been twidling with HTTP Persistent connections in the last few weeks. Let me start at the beginning I needed to replace CORBA in a legacy application with something new. Ofcourse, there are a few alternatives out there, but I needed something very lightweight. The problem had two major parts Command Execution - Let the client, execute a function on the server-side and process the output data Eventing - Make clients register for events and wait until some events occur and the server transmits the required objects to the client side.
Read More