Archive for the ‘Tech’ Category

But I’m not installing ANYTHING!

Friday, June 13th, 2008

Nice one Adobe.

Check out the space required, particularly when I don’t have anything checked.

Radiohead via Old Electronic Equipment

Friday, June 6th, 2008

A couple of months ago, Radiohead held a contest to remix “Nude”, a track from their “In Rainbows” album. It was a particularly difficult song to remix, due to the fact that it is in 6/8 time. James Houston decided to take a completely different approach from everyone else, and rigged up an old ZX Spectrum, a scanner, a dot matrix printer and an array of hard drives to play the song. The result is just mind blowing.

Bear with the first minute or so of the video. It’s the sound of it loading on the Sinclair … which is a sound a lot of the cough older cough programmers amongst us will be very familiar with.


Big Ideas (Don’t get any) from 1030 on Vimeo.

How to access US iTunes content on your Apple TV in Australia

Thursday, April 10th, 2008

One of the frustrating things about being an Apple TV owner in Australia is that we are missing out on a fairly major component of the experience: namely renting movies and purchasing TV shows. It’s possible to create a US iTunes account, but generally that’s involved having a US based credit card, which of course, isn’t the easiest thing to come by.

Yesterday, I found this guide to setting up an account, which has some extra steps in it that aren’t entirely necessary, if you’re prepared to actually pay for some content.

Basically, you just need to create an account on the US iTunes store. First, sign out of your iTunes account, (if you already have one of course). Then, at the bottom of the iTunes home page, select the US store

Once you have the US store home page up, click on “Sign In” in the upper right hand corner. Then you will have the opportunity to create a new account. There’s a EULA you have to accept, and then you’ll need to enter some personal information. The next screen is the payment screen. Make sure you choose “None” as your payment option.

You will need to have a US address to enter at this point. The only point to note here is that the Zip Code you enter matches the state that you have selected. Choose “Done” and you should have yourself a US iTunes Account.

All well and good you say, but that doesn’t do me any good if I can’t buy anything does it? True. What you need to do is get yourself a US iTunes Gift Card. You can easily do this by searching eBay for iTunes Gift Card=. Purchase a card. You’ll probably have to pay a small premium on the card, eg I paid US$19 for a US$15 card. Obviously the people selling the card need to make themselves a profit.

Once you’ve got the card, the seller should email you a code, which you just cut and paste into the “redeem” section on the ITMS home page. Then, you’ve got credit on your iTunes account.

So, then you just need to add your account to your Apple TV, change the country in the settings and bingo, you can start renting movies directly from the US. The HD movie quality is excellent, and on my decent ADSL connection (14Mbps) the movie starts playing in almost no time.

Happy watching.

Getting Rails, Git and Capistrano to work on a Joyent Accelerator

Tuesday, April 8th, 2008

After several days of repeatedly smashing my head into both a metaphorical and an all too real brick wall, I seem to have managed to get git and capistrano working happily together on my Joyent Accelerator. I’m also using github for my git hosting, which threw up it’s own little challenge mid-way through the entire process.

Now, I should probably also say that I already had my site up and running using subversion, capistrano and my accelerator, so this article isn’t necessarily going to help with getting everything setup the first time. For that, you probably need to read this wiki entry.

Things You Will Need

  • A github.org account
  • A dedicated Joyent Accelerator (I have no idea how to do all of this on a shared accelerator. Sorry.)
  • Also, I’m really only talking about RubyOnRails apps here … not too sure how applicable a lot of this is to other frameworks (it will probably help at least.)

Getting started

Assuming that you have your project in a git repository, and have a github account (and obviously an Accelerator) we can start.

Compiling git on your accelerator

Unfortunately, the first step in the process was, for me at least, a total nightmare. I’m not the biggest unix-head by any stretch, but I can do some basic tasks with a degree of proficiency. Unfortunately, I went into a dark place trying to get git compiled. One thing to note is that I’m talking about setting up the git client here, not a git server. Because capistrano executes scripts on your remote server, you need to have a copy of the client software setup for capistrano to call.

So what did I do? There are a couple of helpful threads on the Joyent Forums:

Hopefully those threads will put you onto the path of successfully compiling and installing git onto your Accelerator.

Setting up SSH keys with github and your accelerator

When you setup your account on github, you need to setup an SSH key for authentication. github has a really good tutorial on how to do this. I have a user defined on my accelerator that my website “runs” under, so what I did was to create a key for that user which gets stored into the ~/.ssh directory. I then added the contents of the id_rsa.pub key to my github account, which allows that user to access the repository.

Another tip: don’t forget your passphrase. It’s needed in the next step.

Configuring capistrano

Assuming that you have your capistrano deploy.rb file setup as outlined here there are a few changes that you will need to make to get things working with git.

I’m using Capistrano 2.2 at the moment. I don’t think it will work with earlier versions because of the relatively new git support.

Here’s my deploy.rb file:

  require 'erb'
  require 'config/accelerator/accelerator_tasks'

  set :application, "website"
  set :repository, "git@github.com:your_username/website.git" 

  default_run_options[:pty] = true
  set :domain, 'XX.XX.XX.XX' #Your Accelerators public IP address
  set :deploy_to, "/var/www/apps/#{application}"
  set :user, 'website_account_username'
  set :scm, :git
  set :scm_username, "github_username"
  set :scm_passphrase, "your passphrase here" 

  role :app, domain
  role :web, domain
  role :db,  domain, :primary => true

  set :server_name, "url.for.website"
  set :server_alias, "*.url.for.website" 

  # Example dependancies
  depend :remote, :command, :gem
  depend :remote, :gem, :money, '>=1.7.1'
  depend :remote, :gem, :mongrel, '>=1.0.1'
  depend :remote, :gem, :image_science, '>=1.1.3'
  depend :remote, :gem, :rake, '>=0.7'
  depend :remote, :gem, :BlueCloth, '>=1.0.0'
  depend :remote, :gem, :RubyInline, '>=3.6.3'

  ################################
  # Some tasks for the old server
  ################################

  task :after_deploy do
    # tasks to run after deploy
  end

  ################################
  # End tasks for the old server
  ################################

  deploy.task :restart do
    accelerator.smf_restart
    accelerator.restart_apache
  end

  deploy.task :start do
    accelerator.smf_start
    accelerator.restart_apache
  end

  deploy.task :stop do
    accelerator.smf_stop
    accelerator.restart_apache
  end

  after :deploy, 'deploy:cleanup'

It appears that the important line here is ’ default_run_options[:pty] = true ’. This means that capistrano can respond automatically for the request for the SSH Key passphrase that github replies with when you try to clone the repository.

If everything is working, you can type ‘cap deploy’ and it should all deploy nicely. If you get this error:


[err] Permission denied (publickey).

then there’s a problem with your SSH key and your settings on github. Make sure the key you copied into your github account is the public key for the SSH in your .ssh directory.

Hopefully, you’ll be up and running. If you have any tips, recommendations or corrections, leave a comment.

Ideas 4 – Lisa Herrod

Tuesday, February 5th, 2008

Here’s the second video from Ideas 4 from last week. In this one, Lisa Herrod from Scenario Seven gives her “Usability is More Than Skin Deep” presentation.

Once again, there were a few teething issues with the camera. I framed it using Harriet as a guide, but it turns out that Lisa is a little bit taller, which means there’s a little bit of wandering camera action going on for the first minute as I play with the tripod.


Ideas 4 – Lisa Herrod from AWIA on Vimeo.

It was a great night. I wished I could have hung around a little bit longer at the end, but I had to rush home (sick children and such – all is good now) so I missed out on the trip to Fast Eddies.

Jailbreak

Tuesday, October 30th, 2007

Got an iPod Touch? Visit jailbreakme.com in Safari on your iPod, click on the button at the bottom, wait for a bit and then boom, you’ve got root access to your iPod and you can start installing apps all over the place.

If you hunt around a bit you can get some of the apps from the iPhone that aren’t on the iPod (such as Mail.app, Google Maps, Stocks.app and Weather.app) and you can pretend like you have the convergence device you’ve always wanted.

And you get to end up with a screen like this:

So very cool.

TIP: To get Australian stocks into Stock.App, use the 3 letter ASX code for the company followed by .AX e.g. BHP.AX. Actually, that tip will also work for the Stocks widget in OSX as well.

Work Friendly Cafes

Wednesday, February 21st, 2007

I recently setup a new page on Hotspotr that tracks work friendly, wifi enabled cafe’s within Perth. Check it out, and if you know a cafe where the owners don’t mind you setting up with your laptop for an hour or two, add them in.

Mechanical Turks

Sunday, February 4th, 2007

Recently, a computer scientist called Jim Gray went missing off the coast of the US. A search was mounted, but nothing found. Then amazon stepped in, utilising a new satellite image and their “Mechanical Turk”http://www.mturk.com/mturk/welcome (basically a brute force computer program that uses real people doing mindless tasks for small amounts of money).

Via TechCrunch

So Damn Cool

Wednesday, June 9th, 2004

This is possibly one of the coolest things that I have ever seen! (In a totally nerdly manner of course. I mean, how else could you get excited about wireless plug.)

Basically it’s a souped up wireless access point. It has the ability to extend your own wireless network, or act as a very limited one of it’s own. That’s pretty cool on it’s own, but there’s so much more.

It has a USB port, so if you plug a printer into it, you’ve got an instant network printer.

But the coolest thing (in my view) is the audio functionality. You plug it into your stereo, and then you have wireless audio streaming. Bingo. Using iTunes 4.6 on your computer, you target a particular speaker/audio output, and then iTunes will stream your music to your stereo. Sweet. No more cables, plugs, patches. No more crap.

And the coolest suggestion that I’ve seen (from Todd Dominey) is for a wireless iPod, where as you walk into your house, you switch the audio output on the iPod and Bam!, it’s playing on your stereo. No plugging in. Just working.

Of course, all of this depends on whether or not the product actually works. And considering I don’t know anyone who actually uses it, this could be all a load of conjecture.