Skip to content

Category Archives: Random Geekiness

How to build a stadium in iPhone Simci

There’s a bug in the iPhone version of Simcity; it’s simple but very annoying. The problem is that the ‘Citizens demand a stadium’ news item is much more frequent than the ‘Here’s a stadium for you to accept’ petition. What’s the difference you may ask? Well, without finding the ‘petition’ version, you can never build [...]

Python fast list comprehension

Here’s a one line list comprehension that stops processing the list as soon as it finds a true member, and returns false if all members are false. Keep in mind that you could also use a lamba function to check for a more complex circumstance in the list. mustBlock = next((True for rule in rules [...]

Writing code from an Android device

James Graves has done what I’ve been dreaming of – he has configured an Android phone as a development environment. James, you are my hero for the week!