Geertjan's Blog

  • January 5, 2008

Parsing Javalobby (Part 1)

Geertjan Wielenga
Product Manager
I had some time to kill in Istanbul airport (which I highly recommend for its free wireless, with a cool coffee bar and nice layout throughout) and so parsed Javalobby's frontpage. Here you see the IDE's Output window, listing the URLs and titles of the articles on Javalobby's frontpage:

Then I put the titles into the IDE's toolbar:

When it's done, you'll be able to select a title and then the browser will open, displaying the corresponding article. (I played with Rich Unger's JDIC browser updated to 6.0, but couldn't get it to work on Ubuntu with Firefox.) The real challenge will be how to figure out programmatically when the Javalobby page is updated, so that the toolbar can be refreshed whenever that happens. Does anyone have any ideas for how to do this? (Maybe I need to download the whole page, compare the size of the page to the previous size of the page, and then reload if there is a difference? Or, better, count the number of titles and then, if there is a difference, update the toolbar. Guess I answered my own question.) Once the plugin is finished I'll make it available on the Plugin Portal, together with the source code.

Join the discussion

Comments ( 8 )
  • guest Sunday, January 6, 2008


  • guest Sunday, January 6, 2008

    i did not understand anything you said ?????

  • Bohdan Sunday, January 6, 2008

    Check whether the server supports HTTP-If-Modified-Since header.

  • Geertjan Sunday, January 6, 2008

    Thanks for the tip Bohdan!

  • Rich Unger Sunday, January 6, 2008

    My understanding is that firefox 2.x does not have gecko compiled dynamically, so it can't be embedded like Mozilla can. Firefox 3 might change this, I'm not sure. XULRunner should work as well. Also, I haven't made a jdic-linux module with the native libs for that platform. Should be easy enough to do, but my linux box is still in storage.

  • Geertjan Sunday, January 6, 2008

    Hi Rich! When I was experimenting with your JDIC browser suite, I added the necessary libs and the native lib linkages worked correctly (at least, i stopped getting error messages). However, as you point out, the dynamic compilation problem remains a blocker. Hoping it will sort itself out and, yes, I also heard about XULRunner, I know Sandip has had some successful experiments with it. I'll look into it soon. It would be cool if you could try out the YouTube Player and Javalobby Integrator, to see whether simply selecting the JDIC Browser is sufficient for opening the selected item (i.e., YouTube movie or Javalobby article) inside the IDE. Should work, of course, but would be cool to have this confirmed. Welcome back from your travels!

  • Carl Tuesday, January 8, 2008


    To get titles did you parse the http://feeds.dzone.com/javalobby/frontpage


  • Geertjan Tuesday, January 8, 2008

    Hi Carl. Had I known about that page, I might have used it, but I didn't. So I use http://www.javalobby.org instead. See part 3 of this series to see how I did so.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.