-
Recent Posts
Recent Comments
- ubershmekel on Two bugs don’t make a right
- Ram Rachum on Optimizing Django ORM / Postgres queries using left join
- Dimensions in Mathematics on Beautiful Code
- Tomer Filiba on Collision: the story of the random bug
- Brendan Dolan-Gavitt on Collision: the story of the random bug
Archives
- August 2012
- July 2012
- June 2012
- June 2011
- February 2011
- January 2011
- December 2010
- April 2010
- March 2010
- February 2010
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- February 2007
Categories
- Algorithms
- Assembly
- C
- Challenges
- Compilation
- computer science
- Cryptography
- CSS
- Databases
- decompilation
- Design
- Fractals
- Game Development
- Geometry
- gotchas
- Graphics
- Group Theory
- Humour
- Javascript
- Linux
- Math
- Miscellaneous
- Optimization
- Optimization
- Optimization
- Optimization
- Origami
- Personal
- Programming
- Programming Philosophy
- Projects
- Protocols
- Python
- rants
- Research
- Security
- Sound
- startup
- Statistics
- Teaching Programming
- Testing
- Uncategorized
- Utility Functions
- web-design
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 memory, memory usage, optimization, Programming, Python
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 Arrow Polyline, Google maps api, html dropdown, Javascript, optimization
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 Math, prime numbers, Programming, Python, Ulam spiral
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 BetterPrivacy, Firefox, Local shared object, LSO, Privacy, Privacy mode, Security
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
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 mass attack, Security, security by obscurity, targeted attack, wordpress
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 challenge, Programming, Sets, Solution
5 Comments