Tag Archives: osx



Why is it so hard to print? I have a bog standard HP Photosmart C4180 here running on an XP machine. It is shared as a windows printer.

  • Jaunty works 95% of the time. Sometimes it just stops and wants a restart before coming back to life.
  • Windows 7. Works about 50% of the time. Sometimes just nothing happens. The Windows 7 machine will sometimes think everything is fine but nothing appears on the XP machine. Sometimes it will just hang. Sometimes it will print. Usually a reboot will help.
  • Mac OS X Snow Leopard. Had to resort to the CUPS interface (http://localhost:631) just to get it to see the printer. Now seems to be working. Seems to be.
  • Son’s XP machine. Prints around 70% of the time. Same symptoms as the Windows 7 machine when it doesn’t print.

If you want to blame the XP machine, last week it was being driven off a Samba machine instead with the same issues. Everywhere I go I have the same experience. Just walking into our office and hitting the print button and having something print out feels like an extraordinary experience. I have no idea how it feels if you manage it two days in a row.

>Rhino on OS X Leopard

>When I was using Ubuntu as my main development environment I used rhino to try and learn Javascript in a bit more detail.

Coming back to OS X means that I wanted rhino but had no idea how to install. This is how I did it. If you come across this page and it’s wrong please let me know. I just wanted to get something running.

1. Get the source file and extract it. I used ftp://ftp.mozilla.org:21/pub/mozilla.org/js/rhino1_7R1.zip. Use unzip rhino_7R1.zip if it doesn’t extract.

2. In the top level you’ll see a js.jar file – copy that to /usr/share/java (sudo cp js.jar /usr/share/java)

3. Create the following script in /usr/local/bin/rhino (this is copied from the rhino install on Ubuntu Hardy)


/usr/bin/java -jar /usr/share/java/js.jar $@

4. Make it executable (chmod +x /usr/local/bin/rhino)

Now if you type rhino you can do the following

mbp:java icottee$ rhino 
Rhino 1.7 release 1 2008 03 06
js> x = 23 * 44
js> y = 'fish'
js> x
js> y

Truely you are a javascript god.