Browsing All Posts filed under »Uncategorized«

On an open registry of academic developers

January 27, 2011

6

As a community, we are pretty terrible at self-promotion. In fact, many of those coding and scripting as an academic staff member struggle to identify themselves as developers in the first place. We are developers, whether we are writing code required for a funded project, adjusting webpage templates or even doing analysis of library usage […]

Fix for OpenCV python binding – cv.MatchShapes returning NoneType rather than double

January 4, 2011

1

The fix can be easily made if you build from source (building for debian). The key line that needs to be altered is at line 1131 of trunk/opencv/modules/python/api [svn browse ink]: ... QueryHistValue_3D double CvHistogram hist int idx0 int idx1 int idx2 QueryHistValue_nD double CvHistogram hist ints idx # Matching MatchTemplate CvArr image CvArr templ […]

Hacked together IR shutter release for my D90

September 27, 2010

0

(reposted from my ex-tumblr account) Quick weekend project (would’ve likely hacked on this at Fizzpop Howduino… if I could’ve got there!) Scenario: You like photography and DIY electronics but you begrudge paying £15+ for a remote control for your camera. Or you are just curious as to how to hack one together. Step 1 – […]

Conway’s game of Life displayed on an 8×8 LED matrix

September 27, 2010

1

(Reposted from my tumblr account) Conway’s Game of Life on an 8×8 LED Matrix (powered by Processing, Arduinos and the good old serial connection :) Processing code: ================================ /* 1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation. 2. Any live cell with more than three live neighbours […]

Edinburgh Informatics wall – code and solution

September 27, 2010

0

(Reposted from my ex-tumblr account) The lightboard from the Forum of Infomatics at Edinburgh. Most natives, when asked, replied that the dots and gaps were the sponsor names rendered in ASCII or some varient. I have yet to crack this or see how to read in numbers from the board such that I get sensible […]

Six Degrees of Harry Potter – Using Talis Aspire ‘ISBN’ API

July 23, 2010

1

Code: http://github.com/benosteen/SixDegreesOfHarryPotter Requires: Talis Aspire ‘ISBN’ API (http://prototype.talisaspire.com/isbn/) (see http://twitter.com/robotrobot/status/19282383847) A Redis instance running on localhost with the relevant redis-py python library installed. (Scripts only use basic set and value operations.) To Run: python prep_bottom_up.py This will: - parse and run through the OpenLibrary json reponse for ‘books by J K Rowling’, and push the […]

Six degrees of Harry Potter – the first steps…

July 23, 2010

1

Idea: All researchers cannot resist the charms of J K Rowling’s Harry Potter; any academic book loan is no more than 6 degrees separated from a Harry Potter book loan. On the surface, this may seem like a frivolous aim, but the fundamental techniques and APIs used will show patterns and possibilities that have a […]

Follow

Get every new post delivered to your Inbox.

Join 32 other followers