New Job

16 Sep

I have two weeks left before I finish up at my current work.

I’ve spent the last few days checking out the local employment environment. It doesn’t look great. I really love my current work and thinking of doing other work (available in Adelaide) is slightly depressing.

Looking further afield, it seems as though I need to put a lot more effort into GitHub and StackOverflow.

Current plan is to:

  • Do a budget
  • Sort out resume
  • Start contributing more to GitHub and StackOverflow
  • Contact recruiters
  • Look into the 3 startup incubators/co-working places here in Adelaide.
      • In CBD, good location
      • Looks to be the slickest of the three, new looking building and fit out
      • Just started, received a big grant from the State Government and kicked out Format (
      • Most expensive: $600/month. Seems like they’re just using the same pricing as in Sydney and Melbourne, but real estate is cheaper in Adelaide!
      • In CBD, good location
      • Went to a talk here, the building is quite old
      • The owner/manager/founder (?) seems to be very proactive, organising events and meetups etc.
      • Seems like mainly guy programmers would work here
      • $300/month
      • In Norwood, not optimal
      • Can’t see much in the photos on the site
      • $300/month

Jquery Dialog slow to open

11 Sep

Here is a good way to speed up jQuery dialogs. This happens when there is a lot of data/html inside the dialog:

This reduced load time from about 4000ms to about 1100ms.

To summarize (in case the above page changes), you detach the container’s children before you open it, then you re-attach once it is open:

var $dialogContainer = $('#contrib-dialog');
var $detachedChildren = $dialogContainer.children().detach();
  modal: 1,
  autoOpen: 0,
  height: 'auto',
  width: 985,
  title: "Yup",
 open: function () {

Javascript timing

10 Sep

Quick/dirty way to time functions in javascript


Selenium – change windows

23 Aug

Upgraded capybara to 2.1.x (with Selenium Webdriver) and my switch_to window calls started failing.

This is how i fixed it:

within_window(page.driver.browser.window_handles.last) do
   page.should have_content('My Text on New PopUP')

Seems to take a lot of trial and error when these things break.

shiny tool tips from codecanyon

2 Jul

I am using Shiny Tooltips from code canyon.

Unfortunately there was no way to position the tooltips to appear UNDER an anchor.

I added this in tooltip.js, around line 157:

if($this.hasClass("effect_under")) {
top = top + $currentTooltip.innerHeight() + 30 + 20 ;
 "bottom" : bottom + $currentTooltip.innerHeight()+5 ,
 "border-left" : "20px solid transparent",
 "border-right" : "20px solid transparent",
 "border-bottom" : "5px solid #ADDF79",
 "border-top" : "0px",
 "border-bottom-width" : "20px"

So now you can just add the class “effect_under” to your tooltip and the tooltip will appear under the element instead of over it.

The ‘border-bottom’ colour controls the colour, could use a class here instead…

To skip WSUS and force computer to get from MS

19 Jun

Delete this entry (the whole folder?)


capybara rspec selenium – slow down the test so you can see alert boxes etc

6 Nov

saw this somewhere and wanted to record it…

require 'selenium-webdriver'
module ::Selenium::WebDriver::Remote
class Bridge

    def execute(*args)
result = raw_execute(*args)['value']
sleep 0.5