Categories
- Blog (104)
- Lua (13)
- Miscellaneous (48)
- Photos (6)
- Programming (33)
- Python (15)
- Sample (3)
- Web Design (3)
- Writing (2)
- Portfolio (40)
- Snippets (28)
- Blog (104)
Monthly Archives: November 2009
Infovisualization: The Age of Our Senate
I have always wondered whether there was a correlation between party and age. It just turns out that I had some free time so I pieced together a small program that automatically generated the above infovisual. (Please click on…
Posted in Blog, Miscellaneous, Portfolio
Tagged 2009, age, birth, correlation, data, design, info, information, infovisualization, picture, senate, statistics, visualization, wikipedia
Leave a comment
Gettings the most out of your bits
The following will produce the bit representation of an ord(byte) in python
def bit(chr, i=0, str=''):
if i > 7: return str
coef = (2**(8-i-1))
if chr >= coef: return bit(chr-coef, i+1, str+'1')
return bit(chr, i+1, str+'0')
…
Posted in Blog, Programming, Python, Snippets
Leave a comment
