Archive for the 'General' Category

Using JadClipse when developing with closed source dependencies considered required

This is so required to keep your sanity while working with any closed source, third party dependancies like I’m doing right now, with EMC Documentum’s WebTop.

You may already be familiar with JAD, the fast JAva Decompiler, which is great to check the source of those pesky no-source JAR files that pollute your CLASSPATH. A typical pattern to enable debugging has been to decompile those binary, class-file only dependancies and add the corresponding Java source files to your CLASSPATH instead, thereby making it way easier to debug.

Now, with JadClipse dancing around inside my Eclipse, this is done on the fly. Now I simple mark my dependancy, press F3 and Jad decompiles the class and let’s me look at the code right away. Oh sweet joy.

Minor gripe: no update site for JadClipse, but it seems I’m not alone in this, so here are the sites for Eclipse 3.2 and 3.3:

  • http://webobjects.mdimension.com/jadclipse/3.2
  • http://webobjects.mdimension.com/jadclipse/3.3

Documentum broke my Ant build!

Hi there and happy new year!

This nasty error kept biting me when I tried to run my old ant files:

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils;

A quick google lets me know this is because of an old version of ant, so I download Ant 1.7.0, make sure to replace my old version, make sure to set ANT_HOME, and make sure ANT_HOME/bin is first in my PATH.

So, then why does ant -version say 1.6.2?!

Hmm, maybe corrupt download I think, so I try a few different mirrors, all bad.

Hmm, maybe bad release, I check the bugzilla. No bugs on this.

Hmm, let's try 1.6.5. Downloaded. Installed.

ant -version? 1.6.2 core, 1.6.5 optional tasks! doh!

Turns out, my recent installation of Documentum Application Builder 6 added a few nice JARs to my PATH (yay!) and those were wreaking havoc on my machine. For now, I've moved the ant*.jar files away from my C:\Program Files\Documentum\Shared folder and things seem ok. Lets see if Documentum will bring the hate soon.

Convert ruby Fixnum into String

This is pretty much embarrassing simple, but what the heck. It’s Ruby, the hot new language all the kids use and I can’t be any worse.

I’ve been playing with Ruby on Rails a while now, rewrote an existing Java application in crazy short time and I am still sipping the Kool-Aid.

Well, this is a common one for newbies (even though most people use .rhtml, instead of the beautiful Haml):

TypeError in User#show

Showing app/views/user/show.haml where line #9 raised:

can't convert Fixnum into String

Extracted source (around line #9): 

Well, simple enough, just call the toString-equivalent in ruby:

to_s

. Instead of

@post.id

, use

@post.id.to_s

and you’re all set.

Idea-killers

Replying to a way old post here, but it is chock-full of real life idea-stoppers, and you are encouraged to add your own. Here are some I have encountered:

Yeah, awesome! I love how you come up with new ideas all the time! Where do you get it all from? I’ll see what I can get the boss to sign up on and we’ll get right to it!

or

Oh yeah, that’s brilliant! It would be awesome if we only had the time/money/know-how to do it. If there’s ever an opportunity for it, we’ll do it straight away!

Of course followed by nothing. For years to come.

When ideas are recieved like this, it is a sure fire way to kill creativity.

I can only hope I do better when people try to sell me their ideas.

Google 2014?

Check out this little taste of a possible future for news and publishing: http://oak.psych.gatech.edu/~epic/ols-master.html.

Thanks to my bro’ Åke for the link! :)

Upgraded WordPress

I finally got around to upgrading WordPress to 1.5. Things will probably be a bit shaky while I get in order, bear with me and please comment if you find something broken.

Where have I been?

Lately I’ve been totally absorbed by World of Warcraft. I’ve been playing quite a lot since I got the game, and I had to reroll after a while since Ida, my girlfriend also got hooked! ;) Deliveries was out in Europe, so I got a copy off eBay.

If you’re playing en Spinebreaker in the EU, whisper to Skalman and you can join our clan, They Might Be Giants! :)
Also, don’t forget to get the Firefox search plugin for searching thottbot, you can find it here.

Happy hunting!

Mozilla Suite is gone, single use applications taking over

I have never really been into the Mozilla Suite. I did however use the Mozilla Browser early on, and I wouldn’t go back to surfing without Firefox, or reading email outside of Thunderbird.

I seems more people think this way. As reported by ZDNet last thursday, the Mozilla Foundation was thinking about giving up the suite, and going for the single applications instead. Now they made up their minds.

The 1.7.x line will be the last set of Seamonkey products released and maintained by the Mozilla Foundation. The Mozilla Foundation will provide infrastructure for those interested in working on the 1.7.x releases, which we expect will include a number of vendors who provide these products to their customers.

No worries though, the volunteers have already stepped in, and in the best of worlds, the only user-visible change will be a change in names. New name: SeaMonkey Suite.

Zappa: Children are naïve

I just couldn’t resist this quote from an all-time hero of mine, Frank Zappa:

Children are naïve — they trust everyone. School is bad enough, but, if you put a child anywhere in the vicinity of a church, you’re asking for trouble.

Read more quotes from Zappa

Problems with Cargo & Ant

When setting up a project in CruiseControl today, I ran into the following ant-message regarding Cargo:

The  type doesn't support the nested "property" element.

I got this when running an ant-script that called another ant-script.

When running the same ant-script by it self, there is no problem.

This was the troublemaker:

        
            
            

            
        

Changing it to the following made my world better: