Software Development in Brisbane

Archive for the ‘Miscellaneous’ Category

Rule Zero for writing a JavaScript Widget

Saturday, July 17th, 2010

If you are adding ID’s you are doing something wrong.

This will cause issues for people who want to have multiple copies of the widget in
the page.  There is to much risk of ID collision.

There is always a way of navigating down the tree to find children (Especially if you
are writing a JQueryUI widget).

Classes are ok – and use them to find children – but DO NOT add an ID.

(This blog post written as a public service, after having seen way to many JQueryUI widgets that don’t get this right).

Mounting a folder on OSX over SSH

Monday, May 31st, 2010

It’s suprisingly easy to mount a folder via ssh. This is especially useful when you need to access something via ssh tunnels. Following is the process to follow when using an ssh tunnel.  To do without the tunnel, remove step 3, and make the sshfs command directly reference the server in step 4.

Step 1) get and install macfuse http://code.google.com/p/macfuse, along with the ssh filesystem http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS

Step 2) create a folder to mount to. mkdir -p /mnt/remote

Step 3) setup the ssh tunnel: ssh -C -L 2022:server_with_data_to_get:22 ssh.tunnel.server (going into server_with_data_to_get via ssh.tunnel.server, making this available at localhost:2022).

Step 4) Use sshfs to mount the drive: sshfs -C -p 2022 username@localhost:/path/to/folder_to_mount /mnt/remote (connect to the localhost -ssh tunnel end point- mount remote folder /path/to/folder_to_mount to the local folder /mnt/remote).

Executing Play! from outside of Play! code

Monday, April 26th, 2010

As I’ve said earlier, I think that the Play! framework is lovely. It makes it easy to develop and write code quickly. One of the ways that it enables this is through performing runtime byte code enhancement of the code. This makes execution of your code somewhat non-trivial when coming from a non-Play! context. Play! aims to meet all your needs, but use cases exist where it is important non-Play! code with Play! code, and have your non-Play! code call into Play!

Having said that this is non-trivial, it is reassuring to know that the process to do this is very straight forward.

  1. Create a subclass of play.Invoker.Invocation.
  2. Override the public void execute() method.
  3. Call the run() method of the invocation.
1
2
3
4
5
6
    Invoker.Invocation invocation = new Invoker.Invocation() {
        public void execute() {
            //do stuff with play here
        }
    };
    invocation.run();

With this simple snippet of code, it is possible to have non-Play! code easily and cleanly call your Play! application code.

The Shack — Book Review

Tuesday, July 7th, 2009

I have just finished reading the book The Shack. Through its powerful narrative story, The Shack presents the most powerful images of God that I have seen for a long time. The book challenges the reader's assumptions and views of God and the bible. I'd highly recommend it to anyone remotely interested in God, Jesus and the Trinity. When making this recommendation, I'd only add that this is a book of fiction, that doesn't have everything perfect about God.  IMHO the best place to understand and learn about God is the bible, it is the direct source.  Reading the accounts of the life of Jesus for yourself as an adult will challenge mosts peoples perceptions and understandings of Jesus. The Shack been touted as a modern day successor to The Pilgrim's Progress, a title which (while somewhat bold) is at least partially justified. It's a fresh, unique and thought-provoking book that manages to touch the heart in very real ways

Bayside House For Sale

Tuesday, June 30th, 2009

My father-in-law is experimenting with selling his home privately. I’m not sure how it will go, but it will be interesting to see how the internet helps make it all happen. He’s started with an early launch of the website, before sending it out to some of the relevant Real Estate sites soon.

If you are interested in having a look at the site he put together, or if you are interested in buying a house in the coastal suburb of Wynnum, in Brisbane, Australia, take a look at Bayside House For Sale.

UCSB iCTF 2008 Notes Before Sleeping

Saturday, December 6th, 2008

Another UCSB iCTF is over, and I'm once again wishing that the earth was flat.  It is a fun competition, but entering from Australia is a pain when the competition starts at 2:00AM AEST.

Thanks to the guys at UCSB for a very different image, and competition again.  The imagination and effort that goes into creating the images is always great.  The delivery of a PCDos image to start the competition off was a nice touch.  It was somewhat frustrating that the preparation work put in by our network infrastructure team went to nothing, but the idea of each team having an independant network to work on was good.

My biggest lesson for the night was that google is a great tool for looking up the sources for md5 hashes. google: md5hashstring will often return the source string for the md5 hash.

My other discovery was the power of nc, and just how bad allowing shell code to be executed is (php exec combined with system and nc allows really nasty attacks — especially when the server is configured to allow them).

A combination of firefox plugins, and Java with HTTP Client were my primary attack tools this year. I was pretty happy with the setup, missing one or two plugins that some others on my team had, but overall it worked pretty well for me.

Overall it was a good night out.  I'm shattered now, and off to bed.  I might either update this or post a followup after getting some sleep.

More Photo’s from Ike

Thursday, October 9th, 2008

After seeing Kristin’s blog make it to planet Ephox (welcome to the team Kristin), and her post on some great pictures from Houston, I had to share some of the ones I came across…

First of all The Boston Globe has some nice pictures, but this one really takes the cake.

ACT Split in two

Wednesday, June 25th, 2008

The Australian Capital Territory can be considered to have two parts. The first (well known) part is halway between Sydney and Melbourne, and is the site of Canberra (see below map of the ACT).


View Larger Map

The second is Jervis Bay. (see below map of Jervis Bay).


View Larger Map

Facebook Phishing Scams

Wednesday, June 18th, 2008

 

It was only a matter of time, but facebook phishing scams have hit the wild in a big way.

At work we saw a number of emails from a facebookmail.com address (that’s where facebook e-mails come from), suggesting that you might want to add a friend.

facebook-phising.png

The add a friend link actually sent you off to an isgreat.org domain, which had a facebook look-alike login page.

This was the closest that I’ve ever come to clicking on a phising link. I only stopped for two reasons

  1. my work e-mail isn’t associated with facebook at all.
  2. the name didn’t tempt me at all.

If it went to my real facebook account I might have been tempted (but sure won’t now).

The security adage – Don’t click on links in e-mails is definitely true. Even for facebook sending nice helpful e-mails with links.

This isn’t the only way that phishing is happening for facebook. See here, and techcrunch

Favourite Parts of England

Monday, May 26th, 2008

With an increasing push for Ephox to have a European presence based out of England, I’ve been reflecting on some of my favourite things of my time there. These are the bits that are slightly more uniquely me, than the standard tourist things. Out of the varied experiences and things to do in London and the UK, these are some of my favourites.

All Souls

Christianity and church is an essential part of life for me. Finding All Souls was a great discovery, and the times and people there form some of the fondest memories of our time in London. Before going there I had no idea how good pipe organs could sound. I was also thankful for the opportunity to be a part of Christianity Explored, and some of the other ministries of the church. It was great hearing John Stott preach, and we were also blessed and challenged by the other preachers there. I still listen to sermons from their sermon library (which dates back to 1966), which is available online (All Souls Sermon Library).

British Library

Of all the great museums, historical and cultural places and sites, my favourite was the British Library. It was great to go and see some of the extant manuscripts, especially some of the early new testament artefacts. Seeing some of the early versions of Beetles songs, some of Leonardo DaVincis writings, and Handels work was cool too.

Bletchley park

I took a trip to Bletchley Park one week-end with my Dad. Given Dad’s background in Cryptology, and my interest in IT, and security, visiting the home of where the British government was attacking German ciphers in World War 2 was a must. It was great to be able to go around on a tour and see the rooms which were filled with people attacking Enigma codes, and to see where the first computer was created by Turing. The computer history museum they had there was cool too.

Cheap Flights

Ryanair and similar flights for a penny + taxes are too hard to refuse. Even though you end up miles from anywhere, and have to pay for transport to obscure airports at both ends, as well as taxes the trips are good for a week-end, and are a real part of the England experience. It really is worth doing this at least once, and taking advantage of these cheap flights for a great week-end away.

Travel

On the subject of cheap flights, travel generally is an Aussies initial reason to go to London. It is definately worth doing a fair bit while there. If nothing else, going on organised trips makes for a decent way to see different places. Suzanne and I ended up doing a bunch of travel with Oak Hall, visiting Turkey, and doing their Europe tour. Their holidays have a bit of a reputation for being a place for singles to meet, but Suzanne and I had fun as the old married couple :) .

Cosmopolitan Living

We lived in inner London, on the tube, and definitely enjoyed being in the centre of it all. Staying on top of a French Patisserie was definitely nice, as was the Organic Butcher next door.

Overall I have many fond memories of life in London, and would definitely recommend the experience.