Articles
read more
Cloud Gaming
Been playing with Onlive game cloud/ streaming service for the last few months and I am pretty pleased with the results.
Not only does it work fine with the wired desktop and wifi laptop at home, I've also played some games on my Motorola Atrix, although I'd need a bluetooth controller to make full use of it on the phone.
http://www.onlive.co.uk/
Doodle's Geek Monkey by Alastair Montgomery
Not only does it work fine with the wired desktop and wifi laptop at home, I've also played some games on my Motorola Atrix, although I'd need a bluetooth controller to make full use of it on the phone.
http://www.onlive.co.uk/
Doodle's Geek Monkey by Alastair Montgomery
Articles

read more
Raspberry Pi unwrapped
It finally arrived, my Raspberry Pi, lots of geeky fun awaits.
Can't believe how small it is :)
Articles
read more
Problems running Firefox 5 from watir-webdriver on Mac OS 10.5
Finally decided it was time to update my watir-webdriver development environment to the latest version of Firefox. I have been happily using Firefox 3.6.19 on my 64bit Intel Mac 10.5 and yesterday made the jump to Firefox 5.
To my horror there is a bug in Firefox 4 and 5 which causes problems when attempting to start Firefox from the command line (basically what watir-webdriver does).
Thankfully with the help of Jarib Bakken I was able to use the workaround detailed on this blog post.
The work around is to strip the x86_64 part from firefox-bin using ditto:
cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin
This will solve the problem until we can upgrade to a later version of Mac Os.
Doodle's Geek Monkey by Alastair Montgomery
To my horror there is a bug in Firefox 4 and 5 which causes problems when attempting to start Firefox from the command line (basically what watir-webdriver does).
Thankfully with the help of Jarib Bakken I was able to use the workaround detailed on this blog post.
The work around is to strip the x86_64 part from firefox-bin using ditto:
cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin
This will solve the problem until we can upgrade to a later version of Mac Os.
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Ruby and RSS
Note: 1 of this post’s 4 links are now broken — mostly dead 2008–2013 feed-syndication infrastructure (FeedBurner, Gawker, AOL’s old blog network, Pheedo, Yahoo Pipes). Left as originally published.
Started looking into access RSS from Ruby discovered it pretty much already built in as described in this article Consuming RSS Feeds with Ruby, full docs are available in the Ruby Standard Library.
Accessing an RSS Feed is as simple as the following code snippet.
require "rss"
rss_feed = "http://meekgonkey.blogspot.com/feeds/posts/default?alt=rss"
rss_content = ""
open(rss_feed) { |f|
rss_content = f.read
}
puts "Bytes read #{rss_content.length} from feed"
rss = RSS::Parser.parse(rss_content,false)
puts "Title: #{rss.channel.title}"
puts "RSS URL: #{rss.channel.link}"
puts "Total entries: #{rss.items.size}"
rss.items.each { |item|
puts item.title
puts item.link
puts item.date
puts "---"
}
Which when run produces something along the lines of;
Bytes read 115009 from feed
Title: Geek Monkey
RSS URL: http://meekgonkey.blogspot.com/
Total entries: 25
Twitter from Ruby
http://meekgonkey.blogspot.com/2011/07/twitter-from-ruby.html
Thu, 21 Jul 2011 13:20:00 +0100
---
Github
http://meekgonkey.blogspot.com/2011/07/github.html
Mon, 18 Jul 2011 13:59:00 +0100
---
Google Plus
http://meekgonkey.blogspot.com/2011/07/google-plus.html
Fri, 01 Jul 2011 10:50:00 +0100
---
WATIR makes a tester's life easier.
http://meekgonkey.blogspot.com/2011/06/watir-makes-testers-life-easier.html
Wed, 29 Jun 2011 14:36:00 +0100
---
Setting browser size and position with watir-webdriver
http://meekgonkey.blogspot.com/2011/06/setting-browser-size-and-position-with.html
Thu, 23 Jun 2011 09:22:00 +0100
---
Doodle's Geek Monkey by Alastair Montgomery
Accessing an RSS Feed is as simple as the following code snippet.
require "rss"
rss_feed = "http://meekgonkey.blogspot.com/feeds/posts/default?alt=rss"
rss_content = ""
open(rss_feed) { |f|
rss_content = f.read
}
puts "Bytes read #{rss_content.length} from feed"
rss = RSS::Parser.parse(rss_content,false)
puts "Title: #{rss.channel.title}"
puts "RSS URL: #{rss.channel.link}"
puts "Total entries: #{rss.items.size}"
rss.items.each { |item|
puts item.title
puts item.link
puts item.date
puts "---"
}
Which when run produces something along the lines of;
Bytes read 115009 from feed
Title: Geek Monkey
RSS URL: http://meekgonkey.blogspot.com/
Total entries: 25
Twitter from Ruby
http://meekgonkey.blogspot.com/2011/07/twitter-from-ruby.html
Thu, 21 Jul 2011 13:20:00 +0100
---
Github
http://meekgonkey.blogspot.com/2011/07/github.html
Mon, 18 Jul 2011 13:59:00 +0100
---
Google Plus
http://meekgonkey.blogspot.com/2011/07/google-plus.html
Fri, 01 Jul 2011 10:50:00 +0100
---
WATIR makes a tester's life easier.
http://meekgonkey.blogspot.com/2011/06/watir-makes-testers-life-easier.html
Wed, 29 Jun 2011 14:36:00 +0100
---
Setting browser size and position with watir-webdriver
http://meekgonkey.blogspot.com/2011/06/setting-browser-size-and-position-with.html
Thu, 23 Jun 2011 09:22:00 +0100
---
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Twitter from Ruby
Just been looking at Ruby Twitter gem by John Nunemaker during my lunch break.
Looking good so far, got my Twitter Dev key setup and have made a test post from a Ruby script.
1. Tweeting from Ruby
2......
3. Profit!!!
Doodle's Geek Monkey by Alastair Montgomery
Looking good so far, got my Twitter Dev key setup and have made a test post from a Ruby script.
1. Tweeting from Ruby
2......
3. Profit!!!
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Github
Finally got round to uploading some of my stuff to the GitHub site.
If you want a laugh have a look at my code alastairhm@github ;)
Doodle’s Geek Monkey by Alastair Montgomery
Articles
read more
Google Plus
Having my first look at Google+, so far looks nice.
Need to figure out if you can get a RSS feed of the items you've +'ed?

Doodle's Geek Monkey by Alastair Montgomery
Need to figure out if you can get a RSS feed of the items you've +'ed?

Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
WATIR makes a tester's life easier.
I am constantly amazed that Watir and Ruby make software testing a web application so easy.
For example finding all the links in a table based on their text starting with a string.
stub = "0 Text"
browser.table(:id,"myTable").links(:text,/#{stub}/).each { |link| puts link.text }
This will return all the links in the table "myTable" with text starting with "0 Text"
Doodle's Geek Monkey by Alastair Montgomery
For example finding all the links in a table based on their text starting with a string.
stub = "0 Text"
browser.table(:id,"myTable").links(:text,/#{stub}/).each { |link| puts link.text }
This will return all the links in the table "myTable" with text starting with "0 Text"
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Setting browser size and position with watir-webdriver
In working on my automated web app test using watir-webdriver I need to change the window size and move it on the screen.
From asking the question at StackOverFlow.com you can do this with the following commands;
browser = Watir::Browser.new(:firefox)
browser.execute_script('window.resizeTo(800,600)')
browser.execute_script('window.moveTo(0,0)')
From asking the question at StackOverFlow.com you can do this with the following commands;
browser = Watir::Browser.new(:firefox)
browser.execute_script('window.resizeTo(800,600)')
browser.execute_script('window.moveTo(0,0)')
Articles
read more
Android Argus
Note: 1 of this post’s 3 links are now broken — mostly dead 2008–2013 feed-syndication infrastructure (FeedBurner, Gawker, AOL’s old blog network, Pheedo, Yahoo Pipes). Left as originally published.
