Monthly Archives: September 2009

10 Python Optimization Tips and Issues

Following my previous post on Optimizing Javascript, I thought I’d write a similar post regarding Python optimization.

Posted in computer science, Design, Optimization, Programming, Python | Tagged , , , , | 7 Comments

Javascript Optimization Tricks

Profiling, Profiling, Profiling This seems obvious, but still merits a mention. Don’t optimize your code before profiling it. If you need a profiler, just use firebug’s. Having tests to make sure that your post-profiling code is equivalent to the original … Continue reading

Posted in Javascript, Optimization | Tagged , , , , | 2 Comments

Checking the ulam spiral

In the following post, the Ulam spiral is described. It’s a very simple object – write down consecutive natural numbers starting from 41 in a square spiral. Curiously, the numbers on the diagonal are primes: Reading this post, I immediately … Continue reading

Posted in Math, Programming, Python | Tagged , , , , | 4 Comments

Privacy mode not so private

I like my privacy. I also prefer to keep my information secure. I might be a bit more paranoid than the rest, but not extremely so. A short while ago, I discovered something disturbing regarding Firefox. It seems to be … Continue reading

Posted in Security | Tagged , , , , , , | Leave a comment

PNG Minification

Following Ned Batchelder’s advice I’ve used pngout to minify the png’s on my startup’s web page. It took them down from 641,281 bytes to 338,705. This is quite a nice return for the effort of a download and a single … Continue reading

Posted in web-design | Tagged , , | 4 Comments

Threat analysis, security by obscurity and WordPress

  Image by Mykl Roventine I’ve been running wordpress for a long time now, and luckily so far, it hasn’t been hacked. Of course – this doesn’t prove anything, as I didn’t count hacking attempts. It also doesn’t show it’s unhackable … Continue reading

Posted in Security | Tagged , , , , | 7 Comments

My solution to the counting sets challenge

A few days ago, I wrote up a challenge – to count the number of sets a given set is contained in. In the comments, I touched briefly on the original problem from which the challenge was created, and I’ll … Continue reading

Posted in Challenges, computer science, Python | Tagged , , , | 5 Comments