Avik’s Ruminations

Musings on technology and life by Avik Sengupta

Archive for the ‘Technology’ Category

More Site Changes

with one comment

A scary attack of comment spam last night, 100’s of hits! Some fortifications created, lets see if it works.

I’ve also added a sidebar with a list of books I’ve been reading, mainly to motivate myself to keep the list churning. I dont do as much reading these days as I’d have hoped, which is a shame.

Written by Avik Sengupta

August 31st, 2004 at 4:41 pm

Posted in Technology

Surprise!

without comments

I recently acquired two networking products. One, a no-brand USB WiFi adaptor (which, from its FCC Id turned out to be a TwinMOS product), as well as a Banyan Networks DSL modem (as part of a DSL service by the “local telecom incumbent“. I was pleasently surprised to find both products, in their driver install CD’s, had a directory called Linux!

So, while I was ready for a bit of mucking around in /proc , and a few hours of fun with kernel compilation, it turned out real easy.

Maybe world domination isnt an unlikely goal any more! 🙂

Written by Avik Sengupta

August 26th, 2004 at 5:19 pm

Posted in Technology

IKVM

without comments

O’Reilly ONJava has published an article on IKVM which I hope conveys my excitement about this technology.

Think about it… you’ve had no chance to find open source projects providing you the functionality of FOP and POI if you were writing code in C#. IKVM lets you do that, and I think it’s a pretty deal. And that’s the reason I am so excited about that project.

In case you are wondering about the choice of FOP as an example, since, unfortunately, FOP requires a small patch on its last released version to work with IKVM (the “have you tested your code being loaded by the BootClassloader?” issue that afflicts many alternative VM’s), while POI works out of the box (at least for simple stuff) … well, can’t have all my articles talk about POI!

Update:

1. Discussion on TheServerSide

2. Jeroen likes the article 🙂

Written by Avik Sengupta

August 18th, 2004 at 9:06 pm

Posted in Technology

Ruby on Rails

with one comment

I just discovered Rails yesterday, and today I find that Chad Fowler makes it the RubyGem of the Month. There has been some very good reports on Rails.

I’ve been learning/playing with Ruby for some months now, and have all but given up on other languages for my scripting needs, but Rails will probably be the incentive to start on a meatier project in Ruby.

The trouble, from my point of view, is that very soon after starting to program in Ruby, you start wondering why ResultSet cannot take a code block and call into it for every row! And that results in needless frustration everytime you have to write Java code :).

Recently however, I was forced to wade through a bunch of strcpy, so Java feels like heaven right now!

Written by Avik Sengupta

August 17th, 2004 at 9:40 pm

Posted in Technology

JDJ

without comments

Ryan and I have co-written an article on POI that appears in this months Java Developer Journal.

Written by Avik Sengupta

August 6th, 2004 at 12:32 pm

Posted in Technology

More RSS Woes

with one comment

I’ve “written earlier”:http://www.sengupta.net/musings/archives/000002.html about my travails looking for a good RSS aggregator. Since then, I have been a happy user of “Bloglines”:http://www.bloglines.com for many months. Together with a “subscribe bookmarklet”:http://www.bloglines.com/help/easysub, it succeeds very well at what I think is the most important feature of an RSS aggregator: low overhead. It just works!
Recently however, a few applications on our intranet have started producing RSS. And suddenly, Bloglines doesnt cut it any more! So I’m off again on more adventures in RSS land. Maybe bloglines should open source its engine? 🙂

Written by Avik Sengupta

July 28th, 2004 at 8:32 pm

Posted in Technology

Java Floating Point

without comments

“How Java’s Floating Point hurts everyone everywhere”:http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf was written in 1998, and I’ve seen a reference to it every now and then. Makes as much of a fascinating read today as it was six years ago. Apart from a critique of Java’s floating point implementations, its also a reasonably good overview of the pleasures and pain of numerical analysis. Did you know that you could get completely different solutions to complex functions depending on how your compiler treats the difference between +0 and -0.
What has struck me most, is that it seems one needs to be knowledgeable in “linear algebra”:http://en.wikipedia.org/wiki/Linear_algebra as well as “computer architecture”:http://en.wikipedia.org/wiki/Computer_architecture – as classic a case of “leaky abstractions”:http://www.joelonsoftware.com/articles/LeakyAbstractions.html as one can get.

Written by Avik Sengupta

July 19th, 2004 at 9:41 pm

Posted in Technology

New Firefox

without comments

I installed Firefox 0.9 hours after it was released, and have been playing with it for a few days. A few observations are in order.
1. It “crashes”:http://bugzilla.mozilla.org/show_bug.cgi?id=246836 … on sites that older versions render correctly. Firefox 0.8 never crashed on me, and in older versions, the only problem I’ve seen has been due to the textbox completion bug.
2. It does Complex Text Layout better, for Indic languages. It seems to handle zero width glyphs correctly, which is a major improvement, but it still does not handle “negative width” glyphs correctly.
3. What’s with the default xft build? Doesnt anyone else believe that anti aliasing regular fonts is a “bad idea”:http://www.joelonsoftware.com/articles/fog0000000041.html ? Looks like I’ll have to rebuild from source, which I have tried to avoid, since building mozilla isnt your usual cofigure/make deal.
4. My “favourite theme”:http://fls.moo.jp/moz/breeze.html doesn’t work with 0.9, and its replacement is no match to the elegance of the original. So I’ve been messing around in the theme definitions to create my own… the biggest barrier currently is the fact that I cant find a way to test a new theme without packaging it up!

Written by Avik Sengupta

June 18th, 2004 at 7:11 pm

Posted in Technology

Services and Objects

without comments

Steve Loughran makes a “declaration”:http://www.iseran.com/Steve/blog/archives/000117.html :Autogenerating a SOAP service from implementation classes is dangerously brittle against accidental change, and misses out on the flexiblity opportunities of XML
Sort of agree, but got me thinking. I think one of the major reasons why CORBA failed to take off was the lack of tool support… it was too da’n difficult to build and test (There are other reasons, but thats probably the subject of another rant). Imagine if Visual Studio had a CORBA wizard instead of an ATL wizard. The fact that one can now wrap existing classes in almost any language, from Java or C# to Ruby as a Web Service without much effort is probably the biggest indicator that Web Services use will be widespread. So I was wondering, does the roots of WS’s success contain the seeds of its own disctruction?
I sure hope not. And thats because I don’t think this is really a object vs xml issue. Its much more a object vs service design question. When people start designing for SOA, I believe much of this will be moot. Will people mess up on the way? You bet. Will some architects continue to design traditional objects? Sure. But once most architects “get” SOA, thats when you start thinking differently, and thats when it doesnt really matter if your WSDL is compiled into a class with methods. I am pretty sure that over the next few years, different ways of implementing the WSDL “contract”:http://www.sys-con.com/story/?storyid=44354&DE=1 will be developed. We can surely access the power of the XML-Schema without having to manually parse and create XML documents. In spite of that, Web Services will be worthwhile only if one starts to design for services, as opposed to objects. That’s a shift that has to be made.

Written by Avik Sengupta

April 20th, 2004 at 9:00 pm

Posted in Technology

Compiled with GCJ

without comments

GCJ has always been an interesting project to watch, but only recently have I felt emboldened enough to try out some (precompiled) apps, thanks to the “folks”:http://people.redhat.com/gbenson/naoko/ at RedHat. I used the precompiled versions of tomcat and ant on some of our smaller projects, on a RH9(RedHat 9) desktop. Herewith, some experiences.

Read the rest of this entry »

Written by Avik Sengupta

April 13th, 2004 at 10:30 pm

Posted in Technology