April 2008
Monthly Archive
Monthly Archive
Posted by Yannis Lionis on 25 Apr 2008 | Tagged as: General
Time to vote for Mayor of London next Thursday and I’ve just got a little booklet in the mail explaining how to vote and listing the 9 candidates for the position.
And what a riveting read it is. After going through the entries from Ken, Boris and Brian (all mostly focusing on crime, housing and transport - in that order), the rest of the entries start to diverge enormously:
Credibility of the candidates pretty much plummets half way through the list. Disappointing, albeit entertaining.
And my favourite quote from the entire booklet (taken from the English Democrats page): “[England is a land] that gave the world the English language, Democracy, the Mother of Parliaments and the Magna Carta”. :-) Priceless.
Posted by Yannis Lionis on 16 Apr 2008 | Tagged as: Internet
This is the first entry in a series of reviews of startups that were present at the Next Web 2008 conference.
A drawback is obviously that I may forget to label a search that I intend to be private as such and people find out things I don’t want them to. Another more subtle drawback is that I’m quite used to my Google toolbar whcih gives me plenty of added goodies (suggesting what I may want to be searching for, highlightinh and searching through my search results etc.) and I’m not feeling quite ready to give it up in favour of the IE search bar with andUnite configured as the search provider.
However, I can see how this could be very useful, especially if they add cool things like results rating (if I could see that the people who searched tha exact same search strings I am, found the third link down the most useful one, rather than the one on the top, I would really like that).
Definitely on to keep an eye on.
Posted by Yannis Lionis on 16 Apr 2008 | Tagged as: Software
As part of a Python focus group started at work, we had the following exercise - as the first of many - set to us. The problem is the wll known fizz buzz one:
Write a program that processes a list of numbers from 1 to 100. For each number, if the number is a multiple of 3, print “FIZZ”; if the number is a multiple of 5, print “BANG”; otherwise, print the number. You are *NOT* allowed to use any *IF/ELSE* statements in your code. You can use the list-accessing ternary operator hack, but whilst I’ll accept your homework if you do, you’ll miss out on the prize (alcoholic), which goes to the most concise code (not including whitespace).
Kerry and Nigel have already posted their solutions, which I’m afraid are much more concise than mine - I was mostly happy to find a way to do it without any conditional logic (including an or) and too lazy to look further. So here’s mine:
def fizzbang():
# Numbers from 1 to 100
numbers = range(1,101)# 3,6,9,...,99
multiples_of_3 = range(3,101,3)
# 5,10,15,...,95,100
multiples_of_5 = range(5,101,5)
# 15,30,45,60,75,90
multiples_of_3_and_5 = range(15,101,15)# Replace all muliples of 3 with FIZZ
for i in multiples_of_3:
numbers[i-1] = "FIZZ"
# Replace all muliples of 5 with BANG
for j in multiples_of_5:
numbers[j-1] = "BANG"
# Replace all muliples of both 3 and 5 with FIZZ BANG
for k in multiples_of_3_and_5:
numbers[k-1] = "FIZZ BANG"
for x in numbers:
print x
Go on, poke some holes in it.
Posted by Yannis Lionis on 15 Apr 2008 | Tagged as: Internet
On 3-4 April I was at the Next Web 2008 conference in Amsterdam. This is a long overdue (owing to my blog being down) but brief write-up of my overall impressions.
The conference was satisfyingly wacky. It’s all about new web startups presenting their stuff and conversations on what’s coming up on the web, upcoming trends, the new Google or Facebook etc. It’s a good place to find out about cool new startups, but also to observe the areas that attract the most innovation.
In the following days I’ll write up my comments on the most interesting of the startups, but here are some of the other highlights:
Overall I would say that it was a very worthwhile two days, held in a lovely city. I’m glad I was there.
Posted by Yannis Lionis on 15 Apr 2008 | Tagged as: Internet
Finally! Apparently I was caught between a server going down at the same time when I was due to pay my subscription for another year of hosting (this is with Tophost, essentially the same company I got this domain from; don’t click that link unless you’re prepared to come face to face with website that’s all greek to you). The server was brought back up, but did not know that I’d paid my dues and dutifully deactivated my account. It took a week or two to get my account reactivated.
As an aside, the emails exchanged with their sales support had the ticket information at the bottom, right where I could spot the following:
Priority: Low
Low! A week and a bit of downtime, due to a combination of server and billing issues, low! I think not!
On the other hand, a hosted managed Linux Plesk environment (no ssh access though) for €50 per year, I can hardly complain, can I?