Code Nuggets: Getting two SQL column values in a single column

Well this type of thing doesn’t come up very frequently (at least to me) and if you’re like me working on multiple databases it gets very frustrating when it does come up. Since I don’t use it very frequently, I tend to forget how to do it properly in the database system I am using at the time.

So it goes something like this: Suppose you have a simple SQL table called Users. Now this table has three columns, id (int), firstName (varchar) and lastName (varchar)…

Continue Reading >>

java.CompilerError when running RMIC

The other day I was trying out a Java RMI program in connection to an assignment. Let me be very clear here: I really like Java as it was one of my first proper programming languages (mind you, I am talking here circa 1999-2000 when Java-fever hadn’t caught up) and I am a big fan of its elegance. The only turn-off which made me head towards Microsoft’s direction was the lack of a proper, Visual Studio-league IDE for Java in those days. Much water has passed under the bridge, and there are many better IDEs for Java now, like Eclipse and NetBeans, but the curse still remains. (You might also want to give JCreator a shot, one of my favorite Java editing tools).

Continue Reading >>

Blogger Babes

It turns out Blogger beta isn’t a wasted effort at all! For one thing, you get the "dog" (looks to me so) replacing the B of the Blogger. I realized only today that using the beta is a privilege accorded only to a few lucky ones (I didnt notice because privileges are so natural for me *snicker*).

As I said somewhere, it is good for the non-tech people, as it uses those AJAX enabled snippets to arrange layouts according to the user’s taste. The general population (who doesn’t even have the desire) wouldn’t now have to get their hands dirty with HTML and CSS. Adding custom code for statistics is just drag-and-drop, keeping the flow intuitive.

Close to hell for us techies, ’cause you cannot live if you cannot customize; and that’s just what Blogger doesn’t let us do at the moment.

The better thing is that, with the beta release, Blogger marks the shift to the dynamic web. Wonder why it has taken them so long, all the rest of the services are long established on it.

By dynamism of the web, I mean that you no longer have to publish your blog every time you make a change in the template. Old blogger used to publish pages of your blog to its server, and serve the appropriate pages whenever a request arrived. With the beta, the pages would be created on the fly, no more publishing.

All the bitching was due to the fact that I had recently delved into the Blogger codebase, and had come up with really interesting tricks like customizing the individual pages, recent comment box on the sidebar, intuitive layouts; and then *poof*… Blogger beta strips me of any right to modify my template.

These snippets are available if any of the old Blogger people (or the beta users who haven’t switched to layouts) want them for their blogs.

The Craze Beta

What is with everyone coming up with the beta editions of their offerings these days? Starting with Gmail Beta, we get Windows Live Mail Beta, Yahoo! Mail Beta, Yahoo! Photos Beta, Flickr Beta, and now, sweet Blogger goes beta too!

For many services, going beta just means getting AJAX-ified, with little or no improvement in features (Windows Live Mail leads the contest), only getting a face-lift and incorporating oh-those-cool-functions on the page that have nothing whatsoever to do with cutting the round trip time…!

With a sense of loyalty to the technology and the tech community (not to mention the need to be the first in trying things out – izzat ka maamla), I have officially switched to the new Blogger Beta. Switched – ’cause, ummm, beta could be exciting; officially – ’cause Blogger Help says you cannot opt out of the Beta!

So what does this beta has to offer over the old version? For one, the “privileged ones” now have a separate, red carpeted entrance at http://beta.blogger.com. Ordinary mortals should stick to their filthy swamps and keep using the lowly Blogger home page to log in.

The Blogger people have added support for tags – or “labels” as they call them. Der ayed durust ayed is the only thing that comes to mind.

And there is this supposedly cool Layout feature, that help you manage the “template” of your blog. Beware, the “template” word is hushed now, if you’re cool, you’ll have a layout.

So the layouts help users “drag and drop” widgets, or little snippets (previous posts, profile, description etc) on the page. Intuitive it is, but couldn’t achieve its full potential until the “Edit HTML” option starts working. Gives us “power users” that creepy feeling of helplessness!

That means my little blog page has some AJAX elements in it. How I have been dying to have a little Ajax, that would keep my dishes clean… Who said God doesn’t listen?!

Oh, and by the way, you’ll have to comment by choosing the “Other” or “Anonymous” option on the comments page, your logged in nick wouldn’t work here. Of course, what did you think? Its Beta!

Besides that, all the functionality is unchanged. They have tried to spruce up the Dashboard a little, with cramming the various blog-specific options, and the Blogger Buzz posts. Heck, they even forgot to fix the bug that occurs in the Rich Text Editor that it doesnt convert line breaks to hard line breaks :\ So it’d be better to stick to posting via e-mail!

Buss ooper say make-up kiya hai, under the hood its all the same!

Returning to the Craze Beta, I forgot to tell you: Flickr has gone a step ahead, its now Flickr Gamma!

And that gives an excuse for procrastinating office work too. Whenever somebody wants to take you to task, just claim that you’ve gone beta!