Joachim Fornallaz

Joachim’s Log

 

Archive for the 'Developer' Category

Double-clicking NSTableViews

Sunday, September 16th, 2007

If you want to handle double-clicks in NSTableViews, be sure to check out following Q&A article from Apple: Debugging NSTableView’s “Action Invocation” binding. It saved me a lot of time.

Never call [object dealloc]

Wednesday, August 16th, 2006

My tip of the day when coding in Objective C: Never call the dealloc method yourself unless you really know what you are doing! Using release is usually a much better choice .

AFLAX

Friday, July 28th, 2006

While reading the Ajaxian news, I stumbled upon Aptana which finally led me to AFLAX through one of its screencasts. AFLAX is Flash based canvas object which can be fully accessed by JavaScript. That’s what I call a great idea! Now you can use Flash without even touching the Flash IDE.

JavaScript Debugger for WebKit

Wednesday, June 21st, 2006

The latest WebKit nightly build incorporates a second application called Drosera which is a standalone JavaScript debugger. To debug JavaScript, Drosera can connect to a debug server which can be any application using a recent WebKit build, like the latest Safari-WebKit build itself. After having been attached, Drosera can display any part of JS currently [...]

Upgrading to Ruby On Rails 1.1

Wednesday, March 29th, 2006

There is that little web app at work which was based on Rails 1.0 and uses the upload progress indicator. This feature was marked as experimental in the Rails 1.0 API documentation. After upgrading to Rails 1.1 following the simple instructions in the Rails blog and restarting the Apache web server, the Rails app didn’t [...]

The status bar now shows current symbol

Thursday, November 10th, 2005

Since ages I have been waiting for this feature: And finally, the function menu – a.k.a. symbol menu – has been implemented in my current Text/Code-Editor called TextMate. It’s like christmas in july

Installing WWW::Blog::Metadata

Sunday, August 28th, 2005

If you think you can just install the CPAN Perl module WWW::Blog::Metadata (v.0.02) by typing perl -MCPAN -e ‘install WWW::Blog::Metadata’ you would be wrong. Here is a quick tutorial to install the module in spite of all obstacles: Install HTML::Tagset by hand, since the dependencies to this module are not well defined somewhere. Try to [...]

Disabling Session Cookie in Tomcat

Friday, December 31st, 2004

If for some reasons you need to disable the use of a cookie for session handling, you can edit the context.xml file located in the META-INF directory of your J2EE web application. The following solution works well with Tomcat 5.5 and I havn’t tested this feature with older versions. To disable the use of cookies [...]

Netbeans 4.0 RC1

Sunday, November 28th, 2004

On thursday, NetBeans 4.0 RC1 was released. I couldn’t find a list of changes since 4.0 beta2, but one thing I can tell is that the key modifier bug under OS X has been corrected. Finally, you can use the Command key instead if being forced to use Control for all menu shortcuts.

How to store a Java object into a byte array

Monday, November 22nd, 2004

ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); ObjectOutputStream objectStream = new ObjectOutputStream(byteStream); objectStream.writeObject(theObject); byte[] array = byteStream.toByteArray();