Firefox - View Source

Everyone knows about “View - Page Source” in Firefox & it’s counterparts in other browsers , but have you ever hit a web page that returns JSON or XML or some other text and have Firefox prompt you to choose an application to open it ? So annoying! Why can’t Firefox just display it?!??! I stumbled across a great workaround while clicking around the Project Zero forums: view-source: It’s used like this:

view-source:http://www.projectzero.org/

That’s it … just prepend view-source: to any URL and it will display the source… so handy for those pesky JSON URLs! Credit to dieselchrist for his post on the Project Zero forum Note: brandon suggesting using the Firefox Poster plugin … definitely worth a look as well.

Aptana on Ubuntu 8.10

I was having a problem getting Aptana to run on my fresh install of Ubuntu 8.10

I lost the original error message, but it was something like

[ERROR] Invalid key
java.security.InvalidKeyException: Invalid AES key length: 26 bytes

Even though I’m running 32-bit, the solution to include an older version of xulrunner and reference it in a startup script worked like a charm.

In case this page ever dies, the trick is to install xulrunner-1.8.1.3 and use a script similar to this to start Aptana

#!/bin/sh MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1.3 if [ $LD_LIBRARY_PATH ]; then LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH else LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME fi export MOZILLA_FIVE_HOME LD_LIBRARY_PATH ~/aptana/AptanaStudio -vm /usr/lib/jvm/ia32-java-6-sun/jre/bin/java

For reference, I am running IBM Java 1.6

#!/bin/sh MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1.3 if [ $LD_LIBRARY_PATH ]; then LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH else LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME fi export MOZILLA_FIVE_HOME LD_LIBRARY_PATH ~/aptana/AptanaStudio -vm /usr/lib/jvm/ia32-java-6-sun/jre/bin/java