-
Recent Posts
Recent Comments
Archives
- 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
Author Archives: lorg
Wikipedia Images
A few days ago a friend (x) of a friend (y) showed me and my friend (y) a small app he was developing, that had photos from flickr and picasa. We suggested adding photos from Wikipedia as well, but he … Continue reading
Python Module Usage Stats – Feb 2011
Here are the top 30 “base modules”, ordered by number of PyPI projects importing them. These results are based on 11,204 packages download from PyPI. Explanations, full results and code to generate them are available below. Continue reading
10 Awesome Theorems & Results
When I look back at various mathematical courses I took, most have at least one theorem that I really liked. Usually I like it because the proof has a surprising trick, sometimes it’s because of the unexpected conclusion, or maybe … Continue reading
Beautiful Code
A few days ago, @edensh mentioned in Facebook beautiful code, and many people gave examples of assembly, while I was thinking of Python. That got me thinking: what is beautiful code for me? So here are my criteria for beautiful … Continue reading
Posted in Programming Philosophy
Tagged Assembly, Beautiful code, Haskell, Programming Philosophy, Python
1 Comment
Small programming challenge No. 6 – nblocks
I came up with this challenge when I had to write a function to divide a sequence to percentiles. I needed this to calculate some statistics over trips for plnnr.com. “This sounds trivial” I thought, and reached for my simple … Continue reading
Posted in Challenges, Programming, Python, Statistics
Tagged blocks, challenge, nblocks, percentile, Python
21 Comments
Moving to a new server
I moved the blog to a new server, and a new wordpress install. It will take me some time to get everything back in order, but once I finish it, I’m going to get back to writing regularly. Stay tuned!
Posted in Miscellaneous
Leave a comment
One-liner Guitar Tuner in Python
On windows, assuming imports are free: import winsound winsound.Beep(220*((2**(1/12.0))**7), 2000) But that’s just because I like to tune to E. If you prefer a more “natural looking” note, you can use A: winsound.Beep(110, 1000) But why choose at all when … Continue reading
Visualizing Data Using the Hilbert Curve
Some time ago, a coworker asked me to help him visualize some data. He had a very long series (many millions) of data points, and he thought that plotting a pixel for each one would visualize it well, so he … Continue reading
Posted in Fractals, Graphics, Math, Programming, Python
Tagged Fractals, hilbert curve, PIL, Python
2 Comments
Fuzz-Testing With Nose
A few days ago, I found a in my website, plnnr.com. The bug was in a new feature I added to the algorithm. The first thing I did was write a small unit-test to reproduce the bug. With that unit-test … Continue reading
Open Redirects
In this post I’ll discuss an issue I tackled a short while ago – open redirects. But first, the story of how I got to it. Feel free to skip ahead to the technical discussion. Background Our analytics for plnnr.com … Continue reading
Posted in Programming, Security, web-design
Tagged cross site scripting, csrf, open redirect, Programming, robots.txt, Security, web applications, xss
Leave a comment