Thursday, December 29, 2011

WEBrick Server -- Note to self

This is the absolute last time I am telling this to myself before popping the cyanide pill (which I don't have)

"YOU HAVE TO BE INSIDE YOUR APPLICATION FOLDER IN ORDER TO BE ABLE TO START THE WEBrick SERVER"

Also, if the browser's not showing what's it supposed to...
JUST RESTART THE DAMN THING!

Wednesday, December 28, 2011

The new smartphone

Just watched the video review of Nokia Lumia 800 on youtube and I must say I was quite impressed with what Nokia managed to roll out in such a short period of time. That said, however, the internet world thinks that it's the "doomed" phone. Rightly so, because it hasn't attracted that much attention anyway. Must be heartbreaking, specially for their engineers, to see their efforts almost go down the gutter. But I guess this is how the consumer market is. Apple could come up with a small tweak and still sell millions of copies and folks like Nokia could come up with a whole new product lineup and still sell only a handful.
However, after all said and done, one thing that every handset manufacturer seems to be missing is that they're not giving their customers anything new. The Apples made a huge paradigm shift in the handset market when they came up with a touchscreen phone and it's been like that for like forever now. Obviously, it's not everyday that you can roll out a new operating system and a pool of half a million apps  but there are bunch of other things you can actually go creative with...

New hardware design: I agree that there isn't much scope for getting creative with the design of handset, but then the same is true for the cars and the automotive industry has been able to surprise people every year for decades now. I strongly believe that a creative handset design that's got good aesthetics stands a great chance unless there are other showstoppers. For example, Sony Ericsson's  Xperia X10 was a real eye candy when they revealed it. I and quite a few people I know were pretty much looking forward to buy it right away. Unfortunately, it sported Android 1.6 as against Samsung's Galaxy S which sported Android 2.0 at that time. A real showstopper, specially with the lousy touchscreen response. Bottomline - a great hardware design with latest OS version of whatever platform.

Camera: It's no secret that people dig phones with good camera. Not only that, recent studies show that point and shoot camera market has perished because of the smartphone cameras. So, clearly, give people the best main camera and a good front facing camera and that must give consumers a strong incentive.

Content: This pretty much covers everything. Games, Audio, Video, Books and Apps. Now, surprisingly, no one has been able to integrate smartphone, PC and a tablet all that well. There's a lot of scope for apps to get more intelligent, hardware permitting. Siri being a quintessential example. Siri, however now is a thing of the past. With hundreds of apps flooding the market each day, there's no doubt whatsoever that we have enough developers. All companies have to do, is start an ambitious open source project that's interesting enough and has some incentives for the developers.
Media:
Smartphone as a music player has a lot of potential and the capabilities need to be integrated deep into the OS itself. Android has that capability but it's quite rudimentary. Players need to be smarter, like Apple's genius (although I haven't had much of a luck with it, but I believe with proper content, it must work). Smartphones haven't done a lot in terms of online gaming. People are getting lazy and more lazy these days and specially the ones like me don't want to spend too much money or time on my music selection. This is where things like Pandora and Slacker or even Spotify comes into picture. These things need to be integrated well into the OS itself. Phone manufacturers or service providers might have to manage their own content library but cutting the deal with companies like Amazon with huge media library should not be impossible.
Games:
Sony and Microsoft have infrastructure in place already but somehow they've failed to bring the glory to the phone platform. Multiplayer gaming with phones could be really cool.
Books:
Quite honestly, I don't see myself reading a book on my phone, no matter how big the screen is. So efforts in that direction is clearly a waste of time for me and for like minded people.
Innovation:
As said earlier, innovation is the key. People need to see their phone do something new. Controlling their thermostats for example. Goes without saying that innovation without utility isn't an innovation at all. Vlingo for example was there for quite some time, but it was Siri who made the cut. Same for the facetime. Phones need to act more like a personal assistants than just a fancy device in your pocket. This means, they need to do a value addition to your work, organize stuff for you, communicate with your cars, act as your credit cards and these are just a few ideas. Increasing the megapixels on the camera or increasing the screen size alone is not going to help anymore, there's a huge scope for innovation and that's where companies need to target.

Tuesday, September 27, 2011

"Why are you so difficult man?"


"Man, you seem to be extra-happy today!!"
"What do you mean extra-happy? I am always happy"
"Is it your birthday or something?"
"Oh C'mon. I'm always happy, did you see me sad any time? but yeah, if you keep pissing me off, I can be very bad. Try that... ha ha ha... just kidding"
"Ha ha, I know... Ok tell me, does this thing have beef or pork in it.."
"Yeah, try it, it's great !!"
"Nah, I eat only chicken!!"
"C'mon man, you can eat it everyday!!"
" In fact I eat it everyday and you know that. But I don't eat pork or beef."
"Ah... not this, not that... why are you so difficult man?" And both of us started laughing. This is one of the usual conversations between me and the chef at the Mexican food corner in the office cafeteria. But this time, this unusual word "difficult" managed to ring bells in my mind. Am I difficult? Really?

Monday, September 26, 2011

Data Processing...lol

There are 3 rules to follow when parallelizing large code bases.
Unfortunately, no one knows what these 3 three rules are.

--Gary R. Montry

Thursday, September 22, 2011

Classloader exception

Few hours ago, I had probably the most stressful 15 minutes of my life when I ran my programming assignment as a final check before submission and it did nothing but clean exited when I hit the run key. I went back to the test cases I had written for the modules and checked to see if everything worked fine. I had 100% success in there. Although, my program still won't print anything... strange!
So, as any programmer would do, I put the breakpoint at the very beginning and started debugging. Everything was still working fine, except when I came to the point where I was instantiating one of the classes, I got the classloader exception. I thought, that there probably was an issue with that class, so I rebuilt the program so the .class files get regenerated. Still no luck!
Update:
I am probably the silliest person on earth.Any beginner book will tell you that classloader exception is thrown when the class loader is unable to load the class. That is, the class doesn't exist. Which made sense in my case, because I had just refactored the code and update the other file while I did that. I still don't understand how the project was compiled though :S

Object oriented approach for user interface

Coming soon...

Friday, August 5, 2011

Coding Vs Alcoholism

There isn't much of a difference in my opinion... here's why:
1. It takes a while to develop a taste for both
2. Sooner or later, it becomes an addiction
3. Too much of both makes you dizzy
4. There's no going back from either...

\m/