This website is my playground on the internet. I created this site to blog, write programming tutorials, some programming how-tos and last but not the least to have a web presence. Why should I be left out, ayenh!!!
Feel free to look around. Hope you find something useful here. Enjoy your stay.
If you use Emacs, you are aware of Emacs' backup files. They are created in the same directory as the original file and have their filename appended with a tilde (~) symbol. If these backup files annoy you or get in your way too often, here is a neat solution to get them out of your way. I have tested this only on *NIX machines. Sorry I don't have a Windows based computer. If you do you can add comments to this article.
The trick is to add the following line to your
(setq backup-directory-alist '(("." . ".~")))
Ever had to list all files in perforce that have changed? Well I had to. After a lot of searching and trial'n'errors, I came up with the following. Your command is
p4 files [filename][revision range]. Using the power of the Unix shell you can put it to good use. Following are some command examples. I was using Z shell (Zsh). You may have to change the code for other shells, but the basic idea remains the same.
To list all files changed in the current directory,
for file in `find . -type f`
This is a public announcement that I have deleted my accounts from all social networking sites including Twitter. I had a growing concern about my privacy and was a bit paranoid about it. Not anymore. Also I was devoting too much time to maintaining my social life on the web. Well, if you care, now reliable ways to reach me are through my email/messenger or phone. And yes you can always get a hold of me here. I'll definitely get back. Thanks.
You have asked this question to yourself a gazilion times, Which browser should I use? You want to use the best browser, nothing wrong with that but how do you know which one is the best for you. How do you decide to use one over the other. If you ask me they all are better browsers and you should use them depending specifically on what you want to do. I'll try to present a use case for each of these browsers and argue that there is no absolute best browser.
One nifty feature of Gmail is that it ignores dots in the username part of an email when delivering mail to a mailbox. What it means is that an email address firstname.lastname@example.org is the same mailbox as that of email@example.com or any permutation of dots and its placement thereof. So if you regret not having put a dot when you selected your username you are not out of luck. Use dots as you deem necessary. When Gmail detects this, it puts a small text next to your aliased email address which reads "(Yes, this is you.)" :). In a very Googlish way.
Who is a pattern day trader and what does it mean to be one.
All java programmers must provide meaningful overrides for the equals and hashcode methods somewhere in the class hierarchy for classes they design. I have seen people taking this lightly and then spending hours debugging that one little bug which occurs only when the Moon and the Sun are aligned with the Earth. And people who are aware of the equals and hashcode methods often underestimate these methods and write up something which is not always correct. Their intentions are good but they fall short of writing a good equals and hashcode method.
Google has not yet officially released their Chrome browser for the Mac platform but they do provide access to their daily Mac Chromium builds. You can find the builds here. You can download the latest build, unzip the contents and run the Chromium app. I have already started using it and find it pretty useful. Don't expect too much out of it yet though, it will improve over time. The frequency of these builds are pretty high and it is cumbersome to repeat the update process manually over and over again.
On February 24, 2009 Apple released their Safari 4 beta web browser. I installed it the same day on my Windows laptop running XP. I had tried running Safari 3 for XP before but didn't have a pleasant time with it. Every time I installed it, I removed it the same day. It never worked for me. Safari 4 didn't get me excited until I saw the cool features it comes with.
Over the weekend I was pondering on a problem which is, when you use the validator attribute to specify an inline validator for an input field the form is processed, submitted and the application transitions to the next page even if the validator adds an error message to FacesContext. The errors get queued but are never displayed. Not only that, the form is successfully processed with invalid values.
If you want to send money to India in US Dollars, I found this web page, which compares currency conversion rates across three services, very helpful. You can get comparisons for ICICI bank's Money2India service, Times Group's Remit2India service and SBI's money transfer service. It gives conversion rates for these 3 services for different US Dollar amounts. However, what is does not display is the fees charged by these services.
It's been a long time I said in my first blog that I'll write a second one and here it is my second blog.
First blog. A Test.