Ruben Laguna's blog

Aug 8, 2009 - 2 minute read - Comments - feed feedburner feedsmith feedvalidator google googlebot plugin sitemaps tags tools webmaster wordpress

Fixing "Invalid XML: too many tags" [Google webmaster tools]

I tried to use my blog feed as a sitemap in Google Webmaster Tools, but it Google complains about “Invalid XML: too many tags describing this tags” in several points in the feed. I found in several places that this due to the format of the feed, a simple change to ATOM will fix it. But I’m using a Wordpress Feedburner plugin to redirect my blog’s feed to the Feedburner one.

Aug 8, 2009 - 2 minute read - Comments - bookmarks delicious evernote html htmlentities import mac note ruby rubyosa scripting

Import delicious bookmarks into Evernote

I tried to use the delicious online import tool from Evernote and I have to say that I’m not satisfied with it. It’s limited to 1000 tags (that’s due to important performance issues in Evernote when the number of tags is big) and if you don’t import the tags the tag information is lost. I was expecting that it will add the delicious tags and link notes as body text in the Evernote note but they don’t.

Aug 6, 2009 - 2 minute read - Comments - cglib classloader classnotfoundexception enhancer factory java module netbeans proxy rcp stacktrace

CGLib, NetBeans Modules and class loaders

My first try at using CGLib from a Netbeans RCP ended up in a ClassNotFoundException for net.sf.cglib.proxy.Factory I had two modules, MainModule and cglib and MainModule was depending on cglib. And the following snippet was raising the ClassNotFoundException. Enhancerenhancer=newEnhancer();enhancer.setSuperclass(Graph.class);enhancer.setCallback(NoOp.INSTANCE);Graphg=(Graph)enhancer.create(newClass[]{FrameListener.class,InterpreterAbstraction.class},newObject[]{fl,ia}); As I later found out from Enhancer documentation and DevFaqClassLoaders it seems that Enhancer it taking the System class loader instead of taking the Module classloader. I explicitly set the classloader used by the Enhancer via the setClassLoader method and now it seems to work.

Jul 23, 2009 - 1 minute read - Comments - Uncategorized

project.displayName and don't get set for Netbeans Platform Application projects

I just reported it to netbeans issuezilla issue 169074. I was trying to use these variables as pointed out by Michal Hlavac in my post about templates. And then I realized that these variables don’t seem to work for Netbeans Plaform Application projects. Instead of the project name and display name they (the template variables, I mean) get replaced by an error message Expression is undefined on line 10, column 19 in Templates/Licenses/license-gplv3.

Jul 22, 2009 - 4 minute read - Comments - api dot file graph graphbrowser graphviz guess java library netbeans open support visual

Adding support for opening dot files to GraphBrowser

I spent some time on GraphBrowser, starting off the project, the first step has been to add basic support for opeining Graphviz DOT files. There are already some pages on the net talking about how to add open file support for new file types in NetBeans. File Type Integration Tutorial So there is no need to explain how to do it in a detailed way. The first main step is to invoke New File Type wizard on the module (in my case MainModule) to add the basic files to support the file type.

Jul 18, 2009 - 1 minute read - Comments - graph guess java kenai library netbeans port rcp visual


I decided to start a small project trying to port the GUESS framework into Netbeans RCP. The plan is to replace the GUESS own graphical library with Netbeans Visual Library stuff and replace the GUESS Python like interpreter with something more along the lines of JSR 223 Scripting for the Java Platform. For the moment I created the project at kenai.

May 28, 2009 - 2 minute read - Comments - bike courier international number seur shipment tracking Uncategorized

How not to do a parcel tracking system

The SEUR tracking system in amazing in the wrong way. I got a tracking number from a bike shop that dispatched a bike from spain to sweden. Ok, so I go to (because didn’t work) and put my tracking number there. Nothing, the tracking number is not yet in the system. Disappointment number 1. But this is not the first time I see this, you get a tracking number and it takes a while until you can actually find it in the system so I’m OK.

May 15, 2009 - 1 minute read - Comments - bios biosraid conceptronic csatacombo driver gparted hardware hardwareraid linux raid software

Conceptronics CSATACOMBO is not a Hardware RAID card

As clearly stated in Linux SATA RAID FAQ the Conceptronics CSATACOMBO card based on VIA vt6421 chipset is not a Hardware RAID. The CSATACOMBO is called a “fake raid”, “BIOS RAID” or “BIOS-assisted software RAID” that means that actually a driver at OS level is needed to get the RAID features (see more info about BIOS RAID at novell page). And that’s why Linux (gparted for example) doesn’t recognize the RAID arrays created with CSATACOMBO because there’s no Linux driver to handle the proprietary BIOS RAID in CSATACOMBO.

May 8, 2009 - 1 minute read - Comments - https installation mac macports netbeans port python ssl

Python support for SSL and HTTPS is not installed

I was getting “Python support for SSL and HTTPS is not installed” while trying to use Mercurial on Mac OS X 10.5 Leopard. I upgraded python to 2.5.2 sudo port upgrade python and mercurial too (1.2.1) sudo port -u upgrade mercurial But that didn’t fix it. I’m glad that I found the solution on Twitter Just do an sudo port install py25-socket-ssl

May 7, 2009 - 3 minute read - Comments - connectionwidget graph illegalstateexception java labelwidget layerwidget library netbeans order visual visualization widget

Painting LabelWidgets on top of the ConnectionWidget - Netbeans Visual Library

I was fiddling with the Netbeans Visual Library again, trying to show a complex graph on screen and I run into a problem: There were so many connection in the graph that some widgets were hard to read because the ConnectionWidget arrows were printed over them. So I tried to I try to rearrange the order of my LayerWidgets to paint the LabelWidgets on top of ConnectionWidgets. A call to mainLayer.