Author Archive

Removing the new YouTube Search Box

Posted by timw on Dec 04 2008 | Developer, Film, Misc

YouTube added a new search box to the youtube embedded player today.

Here’s what it looks like:

Understandably, many people might want to remove this “feature” - so here’s how:
(The YouTube api has been updated to mention this, so it appears to be a supported method)

  1. In your embed code, find the url for the flash player (it is in there twice if you are using the standard YouTube embed code)
  2. Add the parameter showsearch=0 (by adding “&showsearch=0″ to the url)
  3. There is no step three - the video shouldn’t be showing the search box any more.

The video should now look like this:

I’m sure some people will find that useful when they look at their blogs today …

Tim W

1 comment for now

They don’t make them like this any more…

Posted by timw on Oct 19 2008 | Developer, Misc, Pictures

My first laptop was a Dell 320N, which I recently recovered from where it’s been gathering dust for over a decade. When I first unpacked it I found that it was reporting read errors from the hard disk, so I was going to start over and install linux on it. Luckly, having taken it to pieces (which was tough - the secret to removing the 320’s case is to undo the screws hidden under the rubber base) I found that there was a dusty pin on the IDE connector, and having fixed that it booted fine.

I am proud to say that booting up into DOS (and then Windows) brought back all the excitement I remember feeling 15 years ago at the power at my fingertips in such a small package.

Dell 320N

The 320 runs an AMD 386 at a whopping 20MHz clockspeed (that’s roughly 300 times slower than my current laptop) - giving up to 10MIPS (Mega Instructions Per Second) - roughly 2,250 times less than my current laptop. With the extension module giving me 2 MB of RAM, and a 30Mb hard disk, I felt like I had enough power to do anything I could dream of (Although I never bought the Maths Coprocessor)

Having booted it up I couldn’t help but try out my favorate game - “SkiFree”. This skiing game really packed a punch (notice the screen colours are inverted to increase readability)

no comments for now

Google shows Ad Networks will bloom even in this Financial Climate

Posted by timw on Oct 16 2008 | Advertising, Doing Business in Public, Misc

Google announced an increase in both profit and revenue today - showing a 26% jump in profits - showing that the advertising networks (such as our own Viral Ad Network) have the potential to not only weather the current economy, but grow within it.

The fact that Google’s stock rose 8% on the news may also be a sign that the markets have room to recover - since even with reduced inter-bank lending there is obviously enough liquidity in the markets to make the most of a clear opportunity.

Not that Google is immune to the climate - they have reduced their hiring, only hiring 500 employees in the last quarter (according to news in about 5 minutes ago) - a dramatic drop (not like us - we’re growing, and looking for python programmers in Bristol among many other careers)

Tim W

no comments for now

Jamie Oliver stars to get viral marketing

Posted by timw on Oct 15 2008 | Shipping News

Recently Chris Quigley did a post entitled when viral food goes wrong on the Rubbertopia blog.

I saw another episode of Jamie’s show last night (I don’t watch much television, but happened to also see the first episode) I was surprised to see how much Jamie has improved his chances of teaching people how to cook.

For strangers to this blog or myself, I work on Seeding Virals through the Viral Ad Network at Rubber republic - and as a viral marketing company, we spend most of our time trying to encourage “advertainment” content to be spread through word of mouth.

Jamie’s basic idea is simple - start by teaching a group of people how to cook a simple meal, and then let them teach some other people. Hopefully the people they teach will teach still more, and eventually the number of people that know how to cook grows massively.

For those who didn’t see it - the first episode started with teaching several people who had never cooked to cook a simple meal, and then getting them to teach a friend - who in turn would teach another friend. The equivalent of this would be if every time we started to seed a viral, we sent it to a few people via email, and asked them to pass it on.

The problem is that for this method to work straight out, you have to expect that each person you send it to will send it to at least one other person. How large this number is doesn’t really matter in the long run as long as it’s more than one - if it’s less than one you’ll quickly end up without it being passed on any more. (Well, actually you have to expect more than one as it gets passed on further, but that’s a good approximation for the first few stages.)

What actually happens here, is that you end up with the message (how to cook in this case) passed on only a few stages before stopping.

Jamie’s initial mistake was in asking people to pass the recipe on to one friend. This means that when you include all the people who either don’t bother, or don’t have time to send the recipe on you end up with an expected “pass-on” rate less than one: In fact the only way that his initial plan could have worked would have been if every single person who was taught a recipe passed it on to a friend - no exceptions.

Not surprisingly, this method didn’t work very well - it quickly ground to a halt after a couple of stages. Given that he had very few people to start with, the final number ended up under 30 people.

Jamie’s newest technique (which was on television last night) started far better. His technique this time was to find 20 local companies, and get them to bring 50 members of staff along who wanted to learn to cook. Taking groups of companies at a time, his first group of 10 cooks (from the first show) would each teach five people, and those five people would then teach two more people, who would teach two more, and so on - up to the total of 1,000 people taught to cook in a day.

Why do I think this method is more likely to work?

Jamie has two massive factors working against him this time - firstly it relies on all of those employees having close enough friends outside of work who they want to teach to cook, and secondly since these 1,000 people weren’t chosen as carefully as the first group they are less likely to actually pass it on at all (the first group responded to an ad asking if they would like to learn to cook and pass it on, and have Jamie Oliver breathing down their neck to make sure they do).

But: Even though only five groups of 50 staff actually passed on the recipe (10%), that’s still 1,250 people in total - making 250 more (”new”) people who may pass it on in the future (along with the first 1,000) - compared to about 10 “new” people who had the recipe passed onto them from the first technique (closer to 100%).

In fact, after the recipe has been passed on just a few stages you aren’t really in control of what kind of people the content has been passed on to - so the chances they will pass it on becomes the same however you get to them. That means that Jamie should reach around 25 (that’s 250/10) times more people from the second method - and probably more than that due to the other 1,000.

What did Jamie get wrong?

One thing Jamie did notice was that the recipe that he taught changed slightly as it got passed from one group to another, and responded by making the instructions more clear. In my opinion that was short-sighted. If he had instead learnt from what it had been changed onto then he could have ended up with a recipe that was more liked by the local population, and more likely to be passed on. Harnessing the social effect of this could have also been useful - perhaps picking several of the best and naming them after the company that produced them - giving the cooks more of an attachment, and making them more likely to pass it on to more people.

He also tried to persuade the entire company to pass the recipe on in one go to 50 people from another company after the event - by encouraging this he relied on bosses providing cooking utensils and time off for staff to teach another group. Perhaps by encouraging people to teach their friends privately he could have increased the percentage of people that got taught - and got it closer to the magic number one.

Tim W

no comments for now

PyCon UK 2008

Posted by timw on Sep 15 2008 | Shipping News

I’m writing this on my way back from PyCon Uk in Birmingham. It’s been a great weekend, with a great selection of talks and a very social feel to the weekend.

I think we were all impressed that Raymond Hettinger somehow managed to give four different talks, as well as a lightning talk. I made it to two of them (I’d seen one of the others at Europython), and took something very useful away from each one.

Perhaps the most entertaining talk was Simon Wilson’s lightning talk. One of those “and now for something completely different” moments, his talk on the history of Zeppelins left me a little confused but more undoubtably educated. For example, I had no idea about “spy zeppelins”. The idea being that a zeppelin would “park” above the clouds over the enemy, and slowly lower a “spy bucket” through. I’m also hoping that next year he will provide an update on the status of the re-make of the classic film “Zeppelins Vs Pterodactyls”.


The Keynotes were both focused on the same topic - Mark Shuttleworth of Ubuntu fame and Ted Leung from Sun focussing on the problems that Python may have with the massive expansion of hugely multi-core processors, and with other factors that the community should watch out for.

The conference dinner (see top image) was great fun , we were supplied not only with very carefully chosen beer (see below), but we were also given a comedy lecture on the history of astronomy in Birmingham in the 17th century (I kid ye not)… all in all a very entertaining and memorable conference.

no comments for now

Bristol Knowledge Unconference

Posted by timw on Sep 06 2008 | Bristol, Events, Misc

On Friday afternoon I headed down to Bristol eOffice to the first Bristol Knowledge Unconference.

I’d never been to an “unconference” before, and found the format quite unusual, essentially a fifteen minute talk, followed by small group discussions at your tables before asking the speaker questions.

The Fragmentation of Knowledge in the Brain

“The Fragmentation of Knowledge in the Brain” - Derek Smith

The other unusual feature of the conference was that until we turned up we had no idea what most of the talks were going to be about.

The talks were great, ranging from the BBC News website, to the Open Shakespeare project. The two I probably found the most interesting though were the talk by Derek Smith of the University of Wales Institute Cardiff on the way in which the brain stores semantic knowledge and relates that to syntax, and the “on-the-day” Steve Loughran of HP Labs who’s working on Hadoop (readers may remember the high resolution buhddabrot that I posted a few months ago, which I rendered on a hadoop cluster). It was great to be able to ask some questions about Hadoop, especially since I had to miss the Hadoop conference in London a few weeks ago.

Steve Loughran Shows how he’s using Hadoop over anonamous bluetooth logs to show the council how many people regularly use local footpaths.

1 comment for now

Fun with post-it notes and Use Cases

Posted by timw on Aug 10 2008 | Developer, How We Work, Project

After watching a great Google Techtalk on using generative research for systems architecture (Digging Beyond User Preferences by Indi Young), I was inspired to spend some of my Sunday afternoon playing with Post-it notes while thinking over some work I’m doing on our ad network and viral seeding applications.

I’d like to point out that I’m not following her process exactly in the images below…

Here’s what you’ll need:

Three Colours of Post-It notes

A very large piece of paper on the wall, or a large whiteboard

Stage 1:

Come up with a full list of use cases for your application (you do know you’re user’s use cases don’t you?). Pick a colour of sticky note and write them all down.

Stage 2:

Organise all of the the use cases into similar conceptual ideas on upper half of the piece of paper, so if two people are looking for statistics on a particular item (but for different reasons) then those two use cases would be in the same column. Move the columns around so that they each type of user’s use cases are close together.

When you’re finished this stage, you should have a piece of paper that looks something like this:

Stage 3:

Now choose another colour of sticky note and write down the features that your application currently contains. Stick these below the “tower” of use cases which they specifically fix.

Finally, time to do some brain storming over new features if you are in the planning stage, and write theses on the final colour notes (or if you’re in the middle of implementing a feature then put this on the final colour sticky note). Add these in the same way as before.

The idea of this all is to try to draw your attention to which use cases are being fulfilled by the existing system, and which parts may been more thought in the future.

You can also group the columns by the type of user that has those use cases (not shown on the image above). For example, in the above image we actually have five different groupings of use cases, and I’m glad to say that the section that appears to not have features to support it (just left of centre), is the group with only one user, Me, so it’s probably the least important section of the system to get up and running - I have my own external tools to support them.

no comments for now

EuroPython - final day

Posted by timw on Jul 09 2008 | Developer, Events

Well, today was the final day of Europython - and it’s been a great conference, unfortunately I can’t stay for the sprints over the next few days, but I have met some really interesting people and learnt a lot of advanced Python tips.

Conference Swag:

There seems to be a habit in the blogosphere of posting a picture of all the “Schwag” given out free at conferences, so here’s mine. As you can see, I’m heading to the plane tomorrow morning with significantly more tshirts than I came here with - Thanks to Google, Canonical (Bazaar) and Opera for adding their clothing to the official conference tshirt.

I also found an OpenSolaris Live cd, and a copy of NetBeans and the latest JDK from Sun in my welcome pack - to be honest I was a bit confused about having a Java Development Kit given to me at a Python conference, until I heard the news that Sun has decided to support Jython (the Python VM written in Java) in a big way - and now has several developers working full time on it - great news for anyone that wants to integrate Java with Python (e.g. for Hadoop)

Well, that’s it for now - I’m off to finish reading “Wikinomics” and try to avoid falling asleep before my early morning plane.

no comments for now

Tuesday at Europython

Posted by timw on Jul 08 2008 | Developer, Events

It’s been an interesting day today, as I headed through talks on topics ranging from large scale python applications and software ideology to methods of inserting TeX-formatted maths into web pages - but here are some of the most entertaining events.

Harald Armin Massa gave another great talk as an introduction to the 5 minute lightning talks - “Is Python ready for Enterprise” introduced the new module ncc1701.py (google code page):

(Sorry about the quality of the image)

python on the enterprise

Part of this code:

>>>import ncc1701
>>>p = ncc1701.Phaser()
>>>p.fire()
Traceback (most recent call last)
  File "<input", line 1 , in <module>
  File "ncc1701.py", line 86, in file
    raise PhaserNotLockedOnTarget
>>>s =ncc1701.Shields()
...

Despite the initial flaws, in the end we all saw that Python is indeed suited for controlling Enterprise applications.

At the end of the day Hans Rosling gave a very interesting keynote on the world’s economy using some very interesting interactive visualisation software designed for “people who are always being told what to do - young children and world leaders”. Here was one interesting slide:

“Where is child mortality highest?”

child mortality

Yup, child mortality is higher in professors than in students, and almost as high as in Chimpanzees.

no comments for now

Monday in Vilnius (Europython)

Posted by timw on Jul 07 2008 | Developer, Events, Misc

I am blogging this from the sunny city of Vilnius, Lithuania - the setting for this year’s Europython - straight after Guido’s keynote talk on Python 3000 (via teleconference, and at the end of the day due to the 10 hour time difference).

Sunny Vilnius

I’ll definitely say that I have really enjoyed the first day of the conference - especially Harald Armin Massa’s “Discouraging the use of Python” - a tongue-in-cheek look at different ways that “crafty developers” try to sneak Python into software companies, and ways to counter-act them. Here was my favourite example:

Developer:

“With Python, you have to write a tenth amount of the code as with C”

Why this is to be avoided:

“Less code means less programmers, less man-hours spent on your project, and a lower expenditure, which means that as a manager you will end up with a parking space further away from the office - stop it at all costs.”

I also went to two very interesting talks on PyPy, an interpreter for Python (and more) that would take more time to describe than I have now (and more than most would be willing to read through). It was great to be able to ask the developers some questions, and according to their first talk, we should expect production ready PyPy in between 6 and 12 months.

I also enjoyed the talk on “Building an App in a week” - a talk tailored at hacking together a django web site in very fast iterations - with some great tips, mainly under the heading “avoid doing work at all costs”.

If there is one slight problem I would complain about, it is that the wireless network here doesn’t seem to have been prepared for this many developers to all turn up at once with our IRC, email and ssh connections all running constantly during the talks. I heard one person complain that it was taking him 45 seconds to load the Google homepage - but amazingly Guido’s talk seemed to come through fine.

Signing off for now,

Tim

Tim Wintle looking slightly dazed at Europython

1 comment for now

Next »