Saturday, December 19, 2009

If you just want to charge your BlackBerry device, there is a stand-alone tool bcharge from the Barry stable. This application scans the USB bus for BlackBerry devices using libusb and sets the USB ports to which they are connected to output 500mA if they are not already doing so. This is installed alongwith Barry so no separate install or configuration is required.

For those interested in tethering their BlackBerry devices, check out the berry4all project which is a free open-source software for tethering a BlackBerry device on linux & mac. Install instructions for berry4all can be found here. The pre-requisites for this are that python, pppd, libusb and the python usb (pyusb) modules need to be installed.

One of the pitfalls of moving to Ubuntu 9.04 was that my BlackBerry Pearl stopped charging and synching with the computer. Here's how to resolve it ...
After a bit of googling, I stumbled upon the Barry Project which is an open source synchronization, backup, restore & management application for BB devices.

Install Barry
Open the Synaptics package manager & do a quick search for "barry".
Select & install the packages barrybackup-gui, opensync-plugin-barry, barry-util & libbarry0.
Now create a new launcher on the desktop and enter the command as "/usr/bin/barrybackup".

Configure Barry
Connect your BB phone to your laptop and fire up the luancher short-cut created above.
Barry will assign a unique device PIN number and ask you to configure this device.
Assign a meaningful name and configure what you want to Backup & Restore. I normally choose only the Address Book as that is the only thing that I use.
Another option it asks is to Prompt for label on every backup - use this option if you want to append a specific label to the name of the file Barry creates. Note that the file name already has the PIN, date & the time in it so I leave this unchecked.

Use Barry
Now go ahead and press the Backup button to backup whatever you had configured it to!
Also, once the data has been backed up, you can run the launcher to restore previously backed-up data or to backup data again.

After installing Ubuntu 9.04 Jaunty Jackalope on my Dell Vostro 1000, I had never tried to connect my Rockbox -ed Sansa e250 to it. On connecting it to my laptop, the player would not get recognized and I was at a total loss as to what to do. Here's how I solved it ...
A search of the ubuntuforums quickly showed that I was not the first or the only one to face this problem. The culprit is the older version of glibphoto on Ubuntu 9.04!!!

The solution lies in removing all configuration for Sansa from the libgphoto config file:
su gedit /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi

Feel free to substitue su with sudo/gksu/gksudo as you feel free as all them work the same in this case. You can also use vim/emacs or any other editor that you like instead of gedit.

Tuesday, December 15, 2009

We were discussing about how the physical location of a webserver impacts the access speeds for end-users.
During this discussion, I stumbled upon a very good site InfoSniper which gives a very good idea of the physical location of the website.

Monday, November 23, 2009

Being a Common IT Man, many a times I have to walk to the Metropark NJTransit station through Wood Avenue between Oak Tree Road and Lincoln Highway. The side walk on this particular section of the road is (or rather was) in shambles, causing a lot of problems to pedestrians. Many people in fact had to walk on the road in some stretches which caused the vehicular traffic to slow down - this is a hazard for both the pedestrians & the auto drivers.

Frustrated at this, I had put in a request through the Edison NJ Citizen Service Request on 10/6/2009 for the heck of it and then totally forgotten all about it.

Over a month later, on last Thursday morning 11/19/2009, I was in for a pleasant surprise! The same section of side walk for which I had complained, was being repaired!!!

Well, it is quite possible that I was not the first or the only one to put in this request. Or that this repair could have already been on their list of "To-Do" items as the Metropark station is already being revamped. Whatever the case, it felt qutie good to see Edison government taking such swift action on Citizen Service Requests - especially the one that I had lodged.

On a side note, some of the newly laid concrete pavement blocks have already cracked :(

While scanning on Ubuntu using Brother MFC-240C and XSane, I was frustrated that there is no way to preview the image and play with the image size, color, gamma, contrast, brightness, etc.

After fiddling around with the options in XSane, I found out that all this is very much possible by enabling the Preview Window - shortcut key CTRL+1. If you want greater control, enable the Advanced Options window as well. Check out the details of these options on the XSane documentation website:
For Preview Window
For Advanced Options

On a side note, it's good to just realize that I finally completed my Half Century! Took me about 7 months to reach & cross the 50 posts mark! Hope to accelerate the speed of posting next year - that's going to be my New Year Resolution for 2010 ;)

I have Ubuntu 9.04 running on a Dell Vostro 1000 and some time back, had configured Brother MFC-240C to scan & print. However, when I tried to scan some pictures yesterday, I was not getting any images at all! I tried with different pictures just to be sure and sometimes I got strange blobs. As I was qorking on solving this issue, I faced a set of problems and here's how I solved them ...

I tried to plug-in the MFC to different ports to check if it was a specific USB port problem but that did not help. On the contrary, I got the errors:

Failed to start scanner: Error during device I/O

Bus XXX Device XXX: Device not found

Failed to start scanner: Invalid Argument

These were resolved when I powered down the MFC before unplugging it and then powered it back up after plugging it in to another port.

After a while of playing around, I got the error:Error during CMS conversion. could not open scanner ICM profile.
I realised that while playing with the scanner settings, I had inadvertantly enabled "Color Management". Unchecking "Preferences > Enable Color Management" resolved this issue but that does not end the story yet!

A search on ubuntu forums and google in general showed that many people had faced these same problems before and so I was flabbergasted when even after trying all this, the scanner was working but again I was not getting any images at all?!

After a bit of poking around, it just struck me to check whether the temp space had finished. And lo behold - I had used up almost all the available space in /tmp as well as root - the usage was 100%! Due to this, xsane was not able to save the image data sent by the scanner. Clearing up space in root and tmp finally resolved the problem and I got the scanned images perfectly now!

Wednesday, November 18, 2009

JSR 316: Java EE 6 Specification is up for final approval ballot and should be finalized by end of this month. Java EE 6 looks very promising & exciting; it's main features are pruning and profiles.

Pruning will be remove APIs which are no longer relevant/supported/useful/popular. This implies that the pruned APIs need need not be supported by application server vendors. For example, EJB 2.x Entity Beans CMP have been axed in favor of the lighter and simpler POJO based JPA persistence model introduced as part of EJB 3 in Java EE 5. Similarly, the enhanced & more robust, feature-rich and popular JAX-WS API supercedes JAX-RPC for Web Services.

Profiles allow users to take only the components they want instead of being forced to take the whole stack. This reduces the footprint & the costs. Currently only two profiles are included - Web Profile & Full Profile. However, there is scope for creating custom profiles as well.

There are major changes to GlassFish - it is now lighter and comes up faster. It now also supports redeployment with session retention - this is a huge plus for testing/debugging complex applications.

A new glue layer called Web Beans 1.0 has been introduced which will intergrate the persistence & web layers. The persistance layers (EJB 3.0, JTA, JCA and JPA) and the presentation layers (Servlets, JSP and JSF) were segregated and featured no closed interaction. This gap has been filled with Web Beans 1.0 which are designed to be compatible with both the tiers. The Web Beans have been equipped with beans that could interact with multiple tiers and are influenced by the popular frameworks JBoss Seam and Google Guice.

Apart from these major changes, there are a lot of small things that I liked:

EJB 3.1 now supports CRON like scheduling from inside the container

EJB 3.1 now do not require business interfaces to be created - developers can now write session beans without business interfaces

War structure has been simplified and EJB components can be packaged directly in a WAR file instead of creating an intermediate JAR file

EJB Lite has been introduced as a lighter & simpler version of EJB - supports only Session Beans & JPA

Servlets 3.0 introduces annotations such as such as @WebServlet, @ServletFilter, etc. to reduce web.xml configuration

Servlets now support Asynchronous processing to support AJAX calls

JSF 2.0 has major enhancements and new features like request processing lifecycle is now AJAX-aware, bookmarkable JSF pages and a mechanism to easily access persistent store

Wednesday, October 14, 2009

In a very strange turn of events, Albania wants India to hand over the remains of Mother Teresa stating that she was born in Skopje which was then a part of Albania. However, it is important to note that she was born to immigrant parents in Skopje which is now the capital of the Republic of Macedonia. So there is a bitter dispute going on between Albania and Macedonia as well regarding the citizenship of Mother Teresa.

Mother Teresa once said: "By blood, I am Albanian. By citizenship, an Indian. By faith, I am a Catholic nun. As to my calling, I belong to the world.". So this three-sided tussle over her remains does not make much sense - she should just be left alone in peace in the land which she took as her own.

It seems that this is being done by Albania as it is on the hunt for other national icons as it struggles (since 1992) to heal the scars of four decades of communism. Albania wants to reclaim her remains before the 100th anniversary of her birth in August next year so that it can promote tourism as people will throng to visit her grave. The fact that Vatican is in the process of canonizing her, adds to the lucrativeness.

Here is a short timeline of important events in her lifetime:

August 26, 1910: Born Agnes Gonxha Bojaxhiu, in Skopje

1928: Moved to the Loreto Abbey in Rathfarnham, Ireland, to learn English

1929: Arrived in India as a novitiate in Darjeeling

May 24, 1931: Took religious vows as a Nun

May 14, 1937: Took her solemn vows while serving as a Teacher at Loreto Convent School, Calcutta

1948: Left Sisters to teach slum children and care for the homeless

1950: Started Missionaries of Charity in Calcutta

1951: Given Indian Citizenship

1952: Opens the first Home for the Dying in space made available by the City of Calcutta

1962: Awarded the Padma Shri - an award given by the Government of India generally to Indian citizens to recognize their distinguished contribution in various spheres of activity

1962: Awarded the Philippines-based Ramon Magsaysay Award for International Understanding, given for work in South or East Asia

1971: Paul VI awarded her the first Pope John XXIII Peace Prize, commending her for her work with the poor, display of Christian charity and efforts for peace

1979: Awarded the Jawaharlal Nehru Award for International Understanding

1979: Awarded the Nobel Peace Prize

1980: India's highest civilian honour, the Bharat Ratna for her humanitarian work

November 16, 1996: Proclaimed directly by Act of Congress an Honorary Citizen of the United States.

September 5, 1997: Died of heart attack

2002: Beatified by Pope John Paul II given the title "Blessed Teresa of Calcutta"

The Cash for Clunkers program has been hailed as the savior for the Auto Industry. However, what will be it's impact on Inflation, Economy & the Auto Industry?

John Crudele of NY Post explores this impact in his article and points out that this incentive/subsidy amount will actually be accounted by the US Bureau of Labor Statistics in the CPI as if the prices of cars fell by that amount. This will create an artificially low Inflation rate. This deflation is actually being paid for by the people as it is coming out of tax payers money!
Read this full article here.

Obama wins the Nobel Peace Prize within a very short tenure in office and that is the target of this sarcastic but bending towards truth article.

Tom Bemis mentions that Obama loses out on the Economics Nobel to "two obscure academics -- Elinor Ostrom and Oliver Williamson -- one noted for her work on managing collective resources, and the other for his work on transaction costs."

And this in spite of his good work in stabilizing the U.S. & world economies, the Stimulus package, Cash for Clunkers program, cap-and-trade bill, and many more real life implementations of Economics theories in such a short duration.

The strange part about all this is that the deadline for nominations for Nobel Peace prize is February 1st according to the Nobel Prize website. Since Obama took the oath on January 20th, it was only 12 days since he was in office when he must have been nominated for this prize - that's a pretty good achievement I would say!

Here's another article on Fox News which looks at the work done by Obama in the 12 days culminating to his nomination.

I found out and added two new widgets to this blog: Tag Cloud & Related Posts - thanks to the creators for providing these.

Here are the details of the widgets that I have added.

Tag Cloud:
I searched for and found quite a few free Blogger Tag Cloud widgets but liked this one provided by phydeaux3. It is very simple, flexible, highly configurable and suits my needs perfectly!

Related Posts:
I was looking around for cool widgets for this blog and found one which shows related posts below each post. This was awesome and quite simple to implement. You can check it out here. Check out the blog for a lot of good widgets, but some like the Search does not have proper install instructions.

Introduction to the Diagrams of UML 2.0This clear introduction of the diagrams of UML 2.0 by Scott Ambler of Agile Modeling gives a very good idea of how the diagrams are organized and also provides links to details of each type of diagram.

Debugging as it is, is a very tedious and painful job. And it becomes even more intimidating when it needs to be done on Linux/Unix. Read on for a good introduction to techniques for debugging on *nix.

Tuesday, September 29, 2009

My Dell Vostro 1000 now runs Ubuntu 9.04 (Jaunty Jackalope). When the time came for me to print & scan a few things using my multi-function device Brother MFC 240c - I realized that I had missed to set it up. Now Google came to my rescue and here's how I did it. It required the follwing three steps:

Setup the Printer,

Setup the Scanner and

Setup the MFC Front Panel buttons Tool - this is optional

Printer Setup
Open Synaptic Package Manager and search for & install the packages along with any dependencies that it may show:

brother-cups-wrapper-bh7

brother-lpr-drivers-bh7.

This should setup your printer!

Scanner Setup
Go to Brother site and follow the instructions based on the way you connect your printer to your computer. Mostly it should be through a USB connection to your laptop/desktop and for that, use this link.

Here is a list of steps to Install the Scanner:

Download the appropriate scanner driver from this link. Note that you need to download the appropriate (32 or 64 bit) brcan2 deb package

Connect MFC to computer and switch it on

Open a terminal and cd to the folder where the drivers have been downloaded

Install the driver using the command:sudo dpkg -i --force-all brscan2-0.2.4-4.i386.deb

Grant permissions to the scanner using the command:sudo vi /lib/udev/rules.d/50-udev-default.rules

Search for the line containing libusb device nodes

Change MODE="0664" to MODE="0666"

Restart your computer and the scanner should work now.

Use XSane or any of your favorite scanning app to scan something & verify that everything is good

MFC front Panel buttons Tool Setup
If you want to use the buttons on the Scanner panel to scan, then you need to install the scan-key-tool as follows:

Download the scanner driver from this link. Note that you need to download the appropriate (32 or 64 bit) scan-key-tool deb package

Connect MFC to computer and switch it on

Open a terminal and cd to the folder where the drivers have been downloaded

Install the driver using the command:sudo dpkg -i --force-all brscan-skey-0.2.1-3.i386.deb

You should see the output on the console similar to the following:
# scan from SCANNER(brother2:net1;dev0) to /root/brscan/brscan.sP7525
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567

Note:

Ensure that you enter the correct file names in the dpkg commands. I have given the ones that I used and currently see on the Brother website

I have not installed the brscan-skey as I don't (yet) intend to use the MFC panel to scan!

I am finally running Jaunty Jackalope Ubuntu 9.04 at Home on my Dell Vostro 1000 laptop and am really very happy to be rid of the terrible virus / malware ;) called Windows !

Even though I was the founder member of the Calcutta LUG ILUG-Cal, I had been very reluctant to move fully to Linux. My dear friend, ILUG-Cal co-founder and current Coordinator Indra prodded me relentlessly to move towards using more linux, but to no avail.

WinXp started to drag on my laptop even though it was provided with 2 gigs of RAM and an AMD Athlon x2 64 processor. Apart from this, viruses kept coming (and going courtesy of AVG / CA). So I decided to format the HDD and do a fresh install of Windows in the hope that my machine would become fast & responsive. But God had something else planned for me as I was unable to install WinXp even after multiple attempts on sleep deprived nights. This is not the first time I was applying this strategy to speed up my machine so I was baffled on my inability to get it up & running with WinXp.

It was during this frustration that I looked towards Ubuntu as my saviour and have not looked back since! I asked my friend to download the latest installable desktop version of Ubuntu and give it to me on a flash drive. Made the USB a boot option and booted through the Ubuntu on the flash drive and installation was a breeze.

Everything worked out of the box and I did not need to struggle with anything at all - at the least not yet! Synaptics Package Manager is very good and I was able to install all the utilities I required through this. The Update Manager does a good job of keeping my installation up-to-date.

Recently I needed to use Remote Desktop to log-on to a Windows server and the included Terminal Server Client did a decent job of solving that. Included and pre-installed OpenOffice is also very good and can open up all Windows Office files. I was easily able to download, install & use Firefox, Picasa, FileZilla & VLC. Found an app called Barry for backing up the data from my BlackBerry. Was also able to get my Brother MFC to work perfectly - more on that in another post later.

Some of the things that I did not like are the unavailability of my favorite text editor EditPlus on Ubuntu. Ubuntu version of Picasa has also some quirks and is not as good as expected. A good application manager for BlackBerry is something that is needed urgently. Also, OpenOffice was not able to play some of the macros / animated GIFs embedded in one of the Word Docs that I had recevied. But hey, only very few small complaints compared to the huge list of positives - thats quite impressive for software that is free & open source!

Oldbridge Gourmet Deli on 373 Lexington Ave at E 41st St (very close to the Grand Central Terminal & the Grand Hyatt of NY) has a great dollar deal for breakfast.Update: This deal is dead as the price is now $1.75 - still not bad ...
In the morning till about 10.30 am, they have a buttered bagel and a small coffee for only a Dollar !
The good part is that you can choose from a variety of bagels and flavored coffees instead of the regular ones for the same price. I saw exotic coffee flavors like Banana Cream, Chocolate Raspberry, French Vanilla, etc.
And just because the prices are so low, it doesn't mean that they skimp on the quality. The bagels are of very good quality and had a proper amount of butter. The coffees are very good too and the best part is that you make your own coffee according to your taste. So you can as well mix multiple flavors and add the amount & type of sugar & milk to suit your specific taste.
You can take out if in a hurry, but if you have time, then you eat it in the spacious dining area on the second floor - so no skimping there either!
Two thumbs up to this place for providing such a good quality breakfast for so cheap.Update: The deli was closed for some time and now has reopened under a new management who have stopped the great deal.
This deal is now dead as the price is now $1.75 - which is still not bad. They now also have an option for a large coffee instead of a small one for $2.25. However, the options for flavored coffees are lesser compared to before, but still present!

Friday, September 25, 2009

Needed to convert a Convert Fixed width file to Delimited recently. There are many solutions, but the simplest & best solutions involved using the tools available in Unix / Linux. Here are a few possible ways to do it on Unix / Linux.

This solution defines field widths & field separator and then uses gawk to split each line. The only down side is that GAWK is available only on Linux or GNU based systems.

Using SED on *nix

sed -e 's/./&,/2' -e 's/./&,/7' -e 's/./&,/14' fixed.txt > delim.csv

This solution uses sed - a stream editor to substitute commas inline. The -e is to tell sed to execute the next command line argument as a sed program and you can have multiple such commands. The s/./ looks to substitute any character.The &, denotes the matched string followed by a comma that we need. The /2 tells sed to do this substitution for only the first 2 such occurrences. So in effect, a comma is put in after the first 2 characters are matched. Note that since this is substituting inline, the insertion point for the next comma is at position 2 + 1 + 4 = 7!

Here is a link to a very good list of handy sed one-liners on linuxhowtos.org.

This solution uses plain awk to loop through each line and add comma after the defined column length. An awk program file is created to define the column lengths and the looping & comma insertion logic. This is fed to an awk instance along with the input file and the output is redirected to the required file.

Tuesday, September 22, 2009

A great way to see New York is by taking the famous Hop-On Hop-Off Tour. And if you can get a good discount on the ticket prices, that is like icing on the cake!

New York Gray Line Hop-On Hop-Off Tours has an automatic 15% discount off most (most probably ALL) of their tours - I did not see this advertised anywhere. I checked all their Best Value Tours and all the tours listed on their home page and the discount is automatically applied to these tours.

This is a very good value for money and it is 15% off of their already reduced prices if you buy online.

Personally I have taken their tours twice in as many years and have thoroughly enjoyed it always. I prefer to take their Best Value All Loops Tour (48 hours) which includes 4 separate double decker tour loops that allow you to enjoy the best of Manhattan and Brooklyn with 48 HOURS of unlimited hop-on, hop-off opportunities at over 50 stops! The best part is that the tickets are valid for 48 hours by the clock.

Thursday, September 17, 2009

NYTimes came up with a very interesting & unique way to show how the Finance giants fared in terms of Market Cap during the financial crisis. The auto-running chart shows the market caps of the 29 biggest financial firms starting from October 2007 when the market was at it's peak, and moving up to Sept 11, 2009.

It points out a very interesting fact:JPMorgan Chase and Wells Fargo are the only two firms to be slightly bigger than what they were during the market's peak in October 2007!

The race is on to make newer and better Quant models that factor in the human behavior and psychology.

The existing risk models factored in the default risk of counterparties and the financial instruments. They surely did not factor in the market hysteria / panic and the human behavioral aspect into the models. Generally at the time of such panic, the markets as people may be madly rushing in to sell off the stock or even just freeze and hold back on all transactions. This leads to the newly coined type of risk - "Liquidity Risk".

Financial Markets are being looked at as being similar to Online Communities or Social Networks in terms of a group or collective behavior. So the Risk models are being opened up to allow for more variables and factors affecting it. Researchers at Cornell, MIT, etc., are working on newer risk models using these ideas.

In this web application, Google combines the good qualities from both Print & Net and provides the user with the ability to quickly "flip" throughonline pages just like one would do with a newspaper or a magazine.

What Google does is that it takes images of the websites and shows it to the users in a magazine-like format where the users can scan through the articles and click to go to the actual website if they are interested in reading the full article. For more details on the exact methodology that Google uses to show the articles can be seen here.

Wednesday, September 16, 2009

In the days before Google, I had formulated the CTP theory which I proposed as the "Right" or better way to Code for Junior Developers. With the advent of Google, this theory transformed to the GCTP theory.

CTP:Before Google came up, junior programmers often used to copy & reuse existing code which was written either by them or someone else they knew or they had somehow got hold of the relevant code.This caused a lot of problem when I was managing a team of such developers, so I formulated the CTP Theory.

The first thing I did was to encourage them to use their imagination & creativity to solve the problem themselves. If required, they could look-up the code base that most of the consulting companies already have to gain insight into ways the problem could be solved, and then come up with their own solution.However, if there was a time crunch and/or it was felt that reinventing the wheel provided no benefit, then CTP should be applied.

C : Copy - find & copy the portion of code / routine you wantT : Transform - transform/change the code to suit your needs - this step was missed most oftenP : Paste - paste the changed code in the right place

If CTP was used diligently, it provided greater success to the project

GCTP:However, with the arrival of Google, everyone started to just google the solution and so I had to come up with the next version of the theory which I named GCTP.

Again, the first thing I did was to encourage them to use their imagination & creativity to solve the problem themselves. However, if there was a time crunch and/or it was felt that reinventing the wheel was of no benefit, then GCTP should be applied.

G : Google the problem - google the problemC : Copy - find & copy the portion of code / routine you want from the google resultsT : Transform - transform/change the code to suit your needs - this step was missed most oftenP : Paste - paste the changed code in the right place

If GCTP is used diligently, it will provide greater success to the project and quicker coding maturity to the junior developers with the least amount of hand-holding/supervision.

Note that the emphasis on both these methods is first to try to use your own brain. But in case these need to be used, then the emphasis in on T - Transform as that is where I found the junior developers making most of the mistakes most probably because either they did not understand the real problem or the way the solution had been coded.

Inspired by the few interesting and totally different Economic Indicators for Modern Times that I found on the web, I propose one more: Public Transport Standees Indicator in two versions - one applicable for U.S. and another applicable for India.

More formally, I propose the Public Transport Standees Indicator as:

U.S. Version:

Public Transport Trains/Buses are more crowded and have more number of Standees when the economy is strong and going good.If the economy is very weak and people are out of work, they don't commute and so the Buses/Trains are emptier and have less or no standees.This is especially applicable for U.S. where the difference between the cost of public transport and driving personal vehicle is not so significant. Also note that this applies more to big cities like New York, Chicago, etc. where the public transport facilities are very good.

India Version:

Public Transport Trains/Buses are more crowded and have more number of Standees when the economy is weak and going poor as people try to save every possible penny.If the economy is very strong and people have good paying jobs, they use personal transport and so public transport has less or no standees.This is especially applicable for India where the difference between the cost of public transport and driving personal vehicle is significant and the people are very price conscious. Also note that this applies more to big cities like New Delhi, Mumbai, Kolkata etc. where the public transport facilities are very good.

Here are few (not so serious) Economic Indicators for Modern Times trawled from the web, more specifically from the great site for finance terms - Investopedia

Skirt Length Theory:Skirt lenghts are predictors of stock market direction. If the skirts are short, the markets are going up and the general confidence is high. If the skirt lengths are bigger, markets are sad & gloomy and confidence is low.

Hot Waitress Economic Index:Index to measure the state of the economy by measuring the number of attractive people working as waiters. If there are higher number of good looking waiters, then the economy is weak as attractive people generally do not have problems getting higher paying jobs in a good economy.

Leading Lipstick Indicator:Indicator based on theory that in tough economic times, sales of less expensive indulgences like lipsticks shoots up. This chairman of Estee Lauder consistently noted that during difficult economic times, the sales of his lipsticks went up remarkably.

Aspirin Count Theory:Market theory that stock prices and aspirin production are inversely related and is a lagging indicator that actually hasn't been formally tested. If the markets are good and prices are higher, fewer people will need to take pain/stress relievers like aspirin.

sports Illustrated Swimsuit Issue Indicator:Indicator that provides insight on the stock market return for that year based on the nationality of the model on the cover of the Sports Illustrated Swimsuit Edition. The indicator suggests that when the cover model is from outside the U.S., S&P 500 underperforms that year. When the coer model is from U.S., S&P 500 will generate a better return that year.

Boston Snow Indicator:Market theory that snow on Christmas in Boston will result in rising stock prices for the following year. Clearly there is no logical correlation between a white Christmas in Boston and the performance of the stock market the next year. Most probably that's why this indicator is also referred to as the "BS indicator" ;)

Had been to Shadman Indian/Pakistani restaurant on Grove Street in Jersey City and here's the review.Ambience: 5/10Food: 8/10Service: 7/10Verdict: Go there for a cheap but very good Lunch Buffet.Details:The best part is that the All-You-Can-Eat Lunch Buffet costs only $7 and includes veg & non-veg items!

Ambience & decor is pretty average & minimalistic - similar to that of Chandni, nothing very great to be specially written about.

Prices are very economical by NJ/NYC standards, especially given the proximity to Exchange Place - an all you can eat non-veg buffet cost only $7.

On that particular day, palak pakoras were served for appetizer - quite average and not very great. However the raita & the chutney were quite tasty and very good.

The buffet had four veg curries: Aloo Gobi, Aloo Palak, Beans, and Chhole without the usual layer of oil. The taste was quite good and the Chhole tasted much closer to the taste one would get in Delhi or most of Northern India. Note that this taste is quite different from that made in the remaining parts of the country.

I had Naan & Roti - both were excellent; very soft & fluffy - aboslutely delicious!

The fried peas pulao was very oily and not as good as expected. So was the kheer - not worthy of a mention.

So, next time when you are in Jersey City and feel the urge for an economical Desi Buffet, make Shadman your target!

Thursday, August 27, 2009

Recently saw the news that Kutchi language is all set to get a new script of it's own! Till date, Kutchi has been a language without any script, so this was some news to me. The topic for discussion is what is being tried to be achieved by creating a script for Kutchi? Is this going to be detrimental to Kutchi language instead of increasing it's use?Dr. Rajul Shah took the onus of creating the script for Kutchi after much research - the script seems to be quite symbolic in the current form.

For Kutchis, all current education is imparted mostly in English or at the least in Gujarati / Hindi. All the Kutchi literature has traditionally been written in Gujarati too. Since ages, Kutchi has been a language passed down orally.

In the light of above, has a study been done to ascertain whether we even require the script? Who is going to adopt this new script and how? Is there a plan in place for it's adoption and propogation?

Kutchis are multi-lingual already, having to learn, English, Hindi, Gujarati and few more languages depending on which region they live / work in. Introducing one more alphabet to learn and use would increase the burden on the people. The new generation is on the verge of moving away from the language as they already have at least 4 languages to handle. Adding more burden could be detrimental to the popularity of the language and could drive people away from it instead of making it more popular.

Prices are at par with the NYC standards, maybe slightly on the higher side - the curries cost between $10 - $15.

We tried Malai Kofta, Veg Jalfrazie, Saag Paneer & Dal with Aloo Paratha & Naan and it was excellent. Food was awesome, however since we had been there in a very large group (over 35 people), they had a very hard time managing & serving us.

Go to Baluchis only if you are in a small group and was excellent Indian food.

Thursday, August 20, 2009

Had been to Galway Hooker Pub on East 36th Street, between 5th and Madison Avenues, NYC, and here's my review.Ambience: 6/10
Food: 8/10
Service: 7/10
Verdict: Good ambience and appetizers, poor service.

Details:
This place is very conveniently located and its two level setup is very good. There are a few private party rooms in the rear on both floors. The ambience is quite good, but the sofa/seats are not very comfortable.

Good feature of this place is that they have Happy Hours every day between 3 and 7 p.m. - draught beers were half off and cost $4!

We tried Quesadilla and Pita Bread with Hummus for Vegetarians - both cost under $10 and were very good. The Quesadilla was really very good and we re-ordered it several times as the quantity was very less - it had only 4 small pieces.
Others tried Buffalo Wings and mentioned that they were quite average, nothing very good to deserve special mention.

Juices were quite good and pretty cheap at $3 each, but had too much ice.
Long Island Ice Tea was very good and tasted excellent but this too had too much ice.
Blue Moon Wheat Beer (Draught) was very good, but would have been better had it been served colder.

Service was quite average, at times below par. The order was forgotten several times and we had to remind them to get it. Drinks were served in batches of 2-3 glasses with a good 5-10 minutes gap between each batch. So the group got their drinks in parts and had to wait for the toast!

Note that for tables with more than 6 people, a gratuity of 18% is charged automatically to the bill.

Good if going during Happy Hour and interested in good appetizers & Draught Blue Moon Beer and ready to tolerate average service.

Had been to Singas Famous Pizza on Oaktree Road next to Mithaas & Moghul, and here's my review along with a comparison of Guallpa's Famous Pizza.Ambience: 6/10Food: 8/10Service: 8/10Verdict: Very good & economical Desi style Pizzas.

Singas Famous Pizza is located on Oaktree Road next to Mithaas & Moghul and is not visible from the street. Guallpa's Famous Pizza is located in the complex next to Subzi Mandi, opposite to Sukhadia's on Oaktree Road.

Good feature of both these places is that they offer a Cheese Pizza free if you order two pizzas with toppings. Generally the bill comes to $12 as most pizzas with 1 topping cost $5.50 and and extra topping on the "free" pizza costs $1. Till date, I or most people I know have never seen or even heard anyone buying only 1 pizza at these places!

I have tried the Cheese pizza and pizza with the Jalapeno, Pineapple or Green Pepper & Onion toppings. All of them are awesome, however my favorite has always been Jalapeno.

Wednesday, August 19, 2009

Had been to Chandni on 29th Street, Between 5th Ave & Broadway, NYC and here's my review.Ambience: 5/10Food: 7/10Service: 7/10Verdict: Very good (Pakistani) Punjabi food; not much choice for Vegetarians.

Details:This place is located next to the Masjid on 29th Street and can easily be missed due to the street vendors taking up sidewalk space outside it's doors.

Ambience & decor of the place reminded me of Shadman in Grove St in Jersey City, NJ. In fact the food & prices were pretty similar too! However, it is a bit bigger compared to Shadman. The ambience too did not feel conducive for Vegetarians.

Prices are very economical by NYC standards - cup of good Masala Chai costs a buck, as does a Naan! Curries cost $6 for a good quantity medium box and come with 1 Naan free. We tried Bhindi masala and Chhole - complete with the layer of red colored oil floating on top! The taste was quite good and the Chhole tasted much closer to the taste one would get in Delhi or most of Northern India. Note that this taste is quite different from that made in the remaining parts of the country.

Another notable similarity (which is also a very remarkable feature) between Chandni & Shadman was the huge size, softness and freshness of the Naan. For most people with average diet, 1-1.5 naan should be more than enough. I have not seen such soft & inviting naan even in best of the desi restaurants.

However, this place is known more for its $2 stuffed parathas which they make in the morning from 8-11 am only. It is advisable to call them on 212.686.4456 as soon as you come out of Penn Station so that by the time you reach there, fresh Parathas are awaiting you!

Is there a Correlation of Small Nations becoming Tax Havens & involved in Money Laundering?
Do most small nations become tax-havens and get involved in money laundering schemes?
Was reading about two small nations - Nauru near Australia and San Marino near Italy.

Nauru on one hand is close to Australia and depends on it totally for existence after its Phosphate reserves were mined out.

San Marino is a micro-country land-locked by Italy and has expertise in managing money mostly for the wealthy people of Italy.

Both of them, even though being on the extreme ends geographically, financially as well as in the kind of environment & history, were well-known tax havens and involved in money laundering. Is it the karma of all or most small nations to be these at least once in their life time?!

Friday, July 31, 2009

Had been to Nirvana on Lexington Ave, NYC and here's my review.Ambience: 7/10 (8/10 for the lounge)Food: 6/10Service: 7/10Verdict: Very average Indian Buffet without veg starters/appetizers.Details:This place has a very nice bar & lounge on the lower level and a buffet hall with private party room on the upper level.

Ambience & decor of the Bar & Lounge on the lower level is very good. Buffet hall on the upper level are also good with the Private Party room have a skylight - albeit a very dirty one filled with pigeon-do & other dirt ;) When the number of people increases, a few tables placed in the Party room near the entrance are also used to seat other customers. The location of the buffet table is such that queues have to jostle for space & snake around other tables.

Prices are reasonable by NYC standards, but slightly on the higher side. The quality & taste of the food, and the number of items leaves a lot to be desired though. Strangely, there were no vegetarian starters/appetizers in the buffet - they did have some chicken tikka preparation though. Buffet consisted of dahi-vada, three non-veg curries (fish, lamb & chicken), three veg curries (mix veg, palak paneer), daal, peas pulao, kheer, gulab jamun, salad, pickle & chutneys.

The vegetarian items were just about average tasting, the mix veg curry was way below par, but the Sweets were quite good. BEWARE: bowl for desserts is very deceiving - it looks as if it can fit a lot but actually overflows just on the second scoop ;)

Go to Nirvana only if you are close-by, have nothing better to choose from and want to have Indian Lunch Buffet.

Tuesday, July 28, 2009

We were returning from work and wanted to have biryani, so thought of checking out Abhiruchi off Green Street on Green Hollow Drive. We ordered Veg Biryani, Idly, Plain Dosa & Buttermilk and requested the Biryani to be made spicy. On this request, we just got an approval nod with a subtle smile.The reason was not obvious till we got the food - the veg biryani was quite plain & white instead of the spicy yellow-orange color I had expected like the ones available in home of Biryani - Paradise Biryani, Hyderabad. Only then I realized why the waiter was smiling when requested to get "spicy biryani"! I walked up to the manager to ask him if he could do something about this and he asked the same thing to someone who was in the kitchen. After a lot of discussion, he finally informed me that veg biryani is ready made and so its taste cannot be changed at all! The quantity was quite good, easily enough for two people, but it was not at all spicy.

Idly, Dosa & Buttermilk were good as were the accompanying sambhar & chutney. However reputable sources informed me that the Chicken Biryani was quite good. The restaurant itself is quite good, not very crowded as there were many people waiting for take-out orders and it is quite reasonably priced.Verdict: You can check it out if interested in reasonably priced non-veg biryani in a peaceful dining atmosphere.

We were very hungry after a long 4 hour drive from Washington D.C. so thought of checking out Paradise Biryani Pointe next to Jhupdi/HillTop Apartments on OakTree Road. Due to it's name, the expectations were quite high and more so as it had recently opened up in the former Sukhadia's location.The Veg Biryani was spicy and yellow-orange color as expected and was really very tasty. The quantity was good, but not as much as that of Abhiruchi. However the service is not as good as the food and places tends to be crowded & noisy. One strange thing was that the waiter gave only one bowl each of salan & raita between all the people on the table! However, he did get us each a separate bowl of both when requested, albeit after quite some waiting time. The prices are slightly towards the higher range, but the taste more than makes up for it! I was informed by my reputable source that the Chicken Biryani here was awesome and one of the best!Verdict: After a hard day of shopping at Patel & Apna Bazaar, you can have this hyderabadi biryani as the reward!

A couple of weeks later a similar situation arose during our return from a trip to Boston. We were hungry and the taste in our mouth spoiled badly by a coffee we had at Cinnabon in a service area. I am sure that the stalls selling coffee in streets of NYC make much much better coffee. So we decided to check out Dakshin Express on OakTree Road, next to Cittone Institute.Again I ordered Veg Biryani with a request to make it spicy. The waiter was totally zapped on hearing this and did not respond for a few seconds, then nodded and went away. I started to feel as if this was going to be a re-run of my experience at Abhiruchi, but ho lo behold, this was a bit different! I got the same plain white biryani with a good sprinkling of grated green chillies on it! Now it was my turn to get zapped & freeze for a few seconds!The place looks quite shabby and not well maintained; the prices are quite low and the food was average. My reputable source informed me that the Chicken Biryani here was quite good too so it is advisable for take-out instead of dine-in.Verdict: Good for reasonably priced non-veg take-out

This completes (for now ...) my Veg Biryani adventure with Paradise winning it hands-down with a huge margin!

Monday, July 27, 2009

Had been to Khasiyat on OakTree Road in the Sardar Patel Plaza behind Dimples and here's my review. Location is such that it is very easy to miss out as it is on the side facing Middlesex Ave off Oaktree Road.Ambience: 7/10Food: 8/10Service: 8/10Verdict: Go there for awesome Stuffed Parathas served on styrofoam plates, 12% flat service charge.

Details:This is a very conveniently located purely vegetarian restaurant, but uses plastic cutlery & styrofoam plates.

The place is known for it's stuffed parathas so we decided to give it a shot - and it was well worth it. We tried the Khasiyat Special Thali with huge Chilly Cheese Parathas and it was awesome. It came with two hot, stuffed parathas right off the tava, one bowl each of special achari paneer, tava veg, kadhi pakora & rice, a small serving of raita and a little pickle & onions. Parathas were quite big and well stuffed - no cost cutting there! We also tried plain Dosa which was also quite good as was the sambhar & green chutney served with it.

Ambience is pretty good but tends to get very noisy as the desi crowds start to fill in as is typical of almost all desi restaurants. The location is also very good but tends to get crowded.

Prices are slightly on the higher side with $6 for a single stuffed paratha, $11 for regular thali (regular parathas) or $13 for special thali (stuffed parathas). However the quality & taste of the food, the service & the ambience more than make up for it. However, at that price, I would expect regular cutlery, not plastic cutlery and styrofoam plates. Also, note that they charge a 12% flat service charge on all dine-in orders.

Go to Khasiyat if you are looking for good stuffed parathas and are ok with eating them in styrofoam plates using plastic cutlery.

Tuesday, July 21, 2009

Had been to Mithaas on OakTree Road next to Singas/Mings/Moghul and here's the review.Ambience: 7/10Food: 8/10Service: 8/10Verdict: Go there for a change from typical South & North Indian fare.Details:This is a very conveniently located purely vegetarian restaurant!

This place never ceases to amaze me - it has such a good variety of food available to suit almost all possible tastes! Almost everything we have tried here is very good - Stuffed Parathas, Paneer Kathi Roll, Pav Bhaji, Makke ki Roti Sarson ka Saag, Lassi, etc and my favorite Vegetable Burger which comes with fries & a tasty dip! The couple of things that I did not like were the Thalis which were not up to the mark (most probably because after eating other stuff, my expectations had become quite high) and Rasgollas (most probably my being born & brought up in Calcutta made me have a higher than normal benchmark)! Their chaats are also very good.

Ambience is pretty good but tends to get very noisy as the desi crowds start to fill in. The location is also very good but tends to get crowded, but thankfully there is ample free parking.

Prices are quite reasonable, but slightly on the higher side. However the quality & taste of the food, the service & the ambience more than make up for it. Service is pretty good though some stuff you need to take from the counter and some items are served at your table. They also have a couple of sofas for lounge like seating which is very good for large groups. One gripe I had earlier was that they do not serve water and one had to buy bottled water. But recently they have started to serve water on request only! Another gripe that they have not resolved till now is the minimum $20 charge for accepting Credit Cards.

Go to Mithaas if you are looking for a change from the typical South or North Indian vegetarian food.

Had been to Chand Palace on Centennial Ave in the Shop Rite complex (opposite to Walmart) last night and here's the review.Ambience: 7/10Food: 8/10Service: 4/10Verdict: Go there only if interested in a very good upscale Vegetarian Buffet as they have it for both Lunch & Dinner, 15% flat service charge.Details:The best part is that this is a very conveniently located purely vegetarian restaurant!

The Buffet menu had a lot of variety of items but we were more interested in a few of the other items that they make but are not a part of the Buffet, so we went in for "a la carte".The food is absolutely awesome - we have tried Sheekh Kabab, Chilli Paneer, Paneer Vindaloo, Veg Vindaloo, various Kulchas, etc. Only gripe was that this is the first time I saw Veg Kadai being made in a sweet sauce!

Ambience is pretty good but tends to get very noisy as the desi crowds start to fill in. The location is also very good but tends to get crowded due to the adjoining Shop Rite, however there is ample free parking.

The staff generally encourages patrons to go in for the Buffet as they have buffet for Lunch as well as Dinner. Patrons wishing to go for "a la carte" are frowned upon and the resistance / displeasure is clearly visible.

Seating was very fast but the rest of the service was non-existent as the waiters were busing tending to the Buffet related tasks. I had to ask for the complimentary starter "Roasted Papads"; it took well over 15 minutes to get the starters. Even though I had requested a Roti & Raita first so that my child was feeling hungry, it came just a minute before the starters - how long does it take to get this almost ready item???The waiter kept spilling water, spoon, serving spoon, etc. and I had to ask for a new serving spoon - but no apologies were offered! One waiter took the order and another fulfilled it & was unaware of what he was getting for us. When asked the names of the items he asked us what we had ordered and then pointed them out! He also missed a few items & when we reminded him after a reasonable amount of time, he just shrugged and then got it!

On the other hand, the patrons taking Buffet were being served almost instantaneously and being taken very good care of.

The prices are quite on the higher side in spite of the high quality & tasty food. A gratuity of "15%" is automatically added to the bill whether you want to pay that or not. Also there is a minimum of $7.50 charge per person in case of "a la carte" orders.

For "a la carte", service was absolutley not present and not worthy of even 5% but for the Buffet it was more than worth the 15% they charge automatically.

So, next time when you plan to go to Chand Palace, ensure that you are really very hungry & then go for their Vegetarian Buffet for Lunch or Dinner.

Friday, July 10, 2009

Had been to the NYJavaSig meeting at Sun' office recently where Kito D. Mann (author of the book "JSF in Action") presented the new features of the upcoming JSF2.0 release.JSF had been long overdue for a rewrite/overhaul and so this is a welcome change with very good features, AJAX support, very easy process for creating widgets/components, very less configuration, etc.Lets wait & see how the final product turns out to be!

Tuesday, May 12, 2009

I needed to decode the values from a couple of columns in a row and compute a new value as a formula property for that row.I found this to be very simple to do, I added the following as the formula for the required column:decode(forecast_end_month, null, 0, forecast_end_year, null, 0, end_month, null, 0, end_year, null, 0, months_between(to_date(forecast_end_month || '/' || forecast_end_year, 'mm/yyyy'), to_date(end_month || '/' || end_year, 'mm/yyyy')))

So simple !

Just to give you an idea, the computed value of the new column is 0 if either of the columns forecast_end_month, forecast_end_year, end_month or end_year are null. Otherwise it finds the number of months in between the two set of dates and returns that number.

Friday, March 13, 2009

While browsing for a good discussion on the pros and cons of the various frameworks available these days, found this good blog post which talks about all the latest frameworks and provides a lot of real inputs from Architects & Developers as well as quite a few good links !

Wednesday, March 11, 2009

While browsing through Java related sites, stumbled upon JavaBlackBelt.com. It's a pretty good site for refreshing your basic (and advanced) Java knowledge and to challenge yourself to a set of quality quizzes on Java & related topics. Quite a few of the questions were eye-openers - will post those observations with sample code soon.

So had been taking the quizzes in free time and today made it to Orange Belt and my name is being displayed on their home page for the next 24 hours starting at 14:30 hrs on Wednesday March 11, 2009 !

Here is a snapshot of the hallowed moment in time, recorded & stored here for posterity!

They have organized the topics & quizzes into "Belts" and the levels in the increasing order of difficulty are:Yellow < Orange < Green < Blue < Brown < BlackI liked the concept very much - check out the JavaBlackBelt website for more info.

Friday, March 6, 2009

I made mouth-watering Palak Paneer in 15 minutes and had Sangria while cooking it ! It was darn simple to make and came up pretty tasty. I did not know that Palak Paneer could be so spicy & tasty! Here are pics of the tasty stuff I made:Palak Paneer: (Sadly the paneer crumbled instead of retaining consistency as cubes)

Sangria made with Lambrusco Riunite, Apples & Oranges: (Sadly we had only these two fruits)

I faced a strange dilemma while trying to publish a piece of code to my blog post. The JavaScript code that I was trying to post was getting truncated and not showing up properly due to the embedded DHTML code in it. I found out a good tool to encode the markup to make it suitable for publishing in a Blog post:

Recently read a very good article on wired.com explaining the fall of Wall Street with a detail of the convoluted Maths involved:

A year ago, it was hardly unthinkable that a math wizard like David X. Li might someday earn a Nobel Prize. After all, financial economists—even Wall Street quants—have received the Nobel in economics before, and Li's work on measuring risk has had more impact, more quickly, than previous Nobel Prize-winning contributions to the field. Today, though, as dazed bankers, politicians, regulators, and investors survey the wreckage of the biggest financial meltdown since the Great Depression, Li is probably thankful he still has a job in finance at all. Not that his achievement should be dismissed. He took a notoriously tough nut—determining correlation, or how seemingly disparate events are related—and cracked it wide open with a simple and elegant mathematical formula, one that would become ubiquitous in finance worldwide.

After what seems like ages of procrastination, I finally got around to creating a blog!This will be a journal of my rants, views, reviews, comments, experiences, experiments with Technology, cooking and life in general.I coined "Common IT Man" as a class that extends RK Laxman's "Common Man" class and adds features specific to IT professionals of today's world!