Partially Attended

an irregularly updated blog by Ian Mulvany

09 Feb 2009

Converting a mysql schmea into an entity relationship diagram

You will need to install XML support as a ScriptingAddition for script editor. You can get this from http://www.latenightsw.com/freeware/XMLTools2/. Quit and restart script editor after you have installed the extension. I found that when I was trying to compile the code script editor gave me a syntax error before I installed the extension. The syntax error dissapeard after I installed the extension, but the extensions themselves didn't work until I restarted script editor. ... (more)

07 Feb 2009
02 Feb 2009

weekly training log, week 4

A week snowboarding in Switzerland, 6 days total with a rest day on the Wed. Pretty fantastic!I didn't get any running done, and looking at the current weather in London, it is looking like I won't get any running done this week either.My training summary for January 2009 then is as follows:Number of exercise sessions = 18 Number of days with exercise = 17 (54%) Total distance = 49 km ... (more)

02 Feb 2009

Weekly training report, week 3

Saturday 17thMile end, decided to try power endurance training, picked a 6a to work on. 7 leads, and at the end I was still finding it really easy, which means it was too easy. 6a+ next time. I had a 4 1/2 min rest between leads. Also did some nice bouldering.Sunday 18th ran 12.2 km 80.5 min did this one http://www.gmap-pedometer.com/?r=2498524Monday 19th did some chin ups as a warm up and then 3 sets of semi-dead hangs, lasted ... (more)

21 Jan 2009

Code Higlighting in Blogger

pbl-ian:python-c root# clear pbl-ian:python-c root# swig -o erf_wrap.c -python erf.i pbl-ian:python-c root# gcc -o erf_wrap.os -c -fPIC -I/usr/include/python2.5 erf_wrap.c pbl-ian:python-c root# ls erf.i erf.py erf_wrap.c erf_wrap.os pbl-ian:python-c root# gcc -c erf_wrap.c -I/usr/include/python2.5 -I/usr/lib/python2.5 pbl-ian:python-c root# ls erf.i erf.py erf_wrap.c erf_wrap.o erf_wrap.os pbl-ian:python-c root# python Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. from erf import erf ... (more)

21 Jan 2009

unknown post

///gi,'\n')); elements[i].replaceChild(newNode, childNode); } else if(elements[i].nodeName.toUpperCase() == "PRE") { brs = elements[i].getElementsByTagName("br"); for(var j = 0, brLength = brs.length; j ... (more)

21 Jan 2009

wrapping c code for python using swig on Mac OS X

from john d cook http://www.johndcook.com/blog/2009/01/20/using-swig-to-expose-c-code-to-python/ from http://www.penzilla.net/tutorials/python/swig/ and combining the two I came up with a way to get this to work on Mac OS X bash$ cat erf.i %module erf #include double erf(double); bash$ swig -o erf_wrap.c -python erf.i bash$ gcc -o erf_wrap.os -c -fPIC -I/usr/include/python2.4 erf_wrap.c bash$ gcc -o _erf.so -shared erf_wrap.os bash$ python from erf import erf erf(1) 0.84270079294971489 ... (more)

17 Jan 2009

Weekly training report, week 2

Friday 9th 2 hours at the castle, top roping with 5kg extra for Sunday 11th 57 min 8.75 km http://www.gmap-pedometer.com/?r=2483095Went bouldering at the Castle, it was good, nothing too heavy, just tried to do laps on a few nice problems to get tired. Monday 12th Westway, lead climbing. Decided to try some stamina sets, kind of. At least I timed how long it took to do the routes. 6a+ 3 min bang on. ... (more)

14 Jan 2009

Is RSS dead, and why is it dying?

From Science of the invisible I picked up the link to the Read Write Web article on death of enterprise RSS. What is going on here? I'm working in the enterprise and I use RSS a hell of a lot. After trying a number of different strategies I now use Google reader, because it has the fastest way for me to get rid of content in the feeds. Why does the enterprise not get it? ... (more)

12 Jan 2009