Simple Random Number Generator For #codemash
Each #CodeMash attendee’s badge had a unique integer that was used in a raffle to give away prizes. Unfortunately random.org was used to pick the set of lucky winners.
Unsurprisingly the sequences of random numbers generated by random.org contained duplicates. Several numbers like 123 were called 3 or 4 times. I would have liked each number to be called only once. Python to the rescue.
To get a randomized list of all attendees:
import random, sys all_attendees = range(550) random.shuffle(all_attendees)
When run this script will print a random number each time you press enter until the range is exhausted. CTRL-D will let you exit early if all the prizes are gone. The range is 0-549.
import os
import random
all_attendees = range(550)
random.shuffle(all_attendees)
for attendee in all_attendees:
try:
raw_input()
except EOFError:
os.exit(0)
print attendee
print '\nAll attendee numbers have been exhausted.'
Replace 550 with the actual number of attendees.
Codemash Early Bird Registration Ending Today
Go ahead and register if you haven’t already. What are you waiting for?
CodeMash 2008
CodeMash is back by popular demand! If you weren’t there last year you missed you on a lot.
The deadline for talk submissions is October 15th. I am going to submit a proposal once I decide on a topic. Having two talks last year made enjoying the con more difficult. This year I’m only submit one.
Finding a good topic is challenging. It should appeal to the mix of Java, .Net and other languages at this con. What topics interest you?
Possible topics:
- Text-based IDE - how I use Vim + some plugins to edit everything - do you really need Visual Studio and/or Eclipse? (most general)
- Rolling your own web framework with Python & WSGI - understanding the glue that binds Python webapps together (may appeal to the general web community)
- Design patterns the Python way (my preferred)
- Some other random topic?
Talk Feedback
Yesterday I gave my two talks at CodeMash. One on Enterprise Python Development and the other on Python Web Services. The general feedback I received was good. If you were at either talk I like to hear back from you. If do don’t want to publicly comment, just note that in the comment I won’t publish it. Comments are not shown on this blog until I have a chance to review them.
My plan going forward is to change and update those talks so that I can give them at other gatherings. I am not a professional speaker and I do not routinely give these talks so any constructive criticism or advice in appreciated.
Expert Panel on Languages At CodeMash
There will be an expert panel on languages Wednesday night before the conference begins. Bruce Eckel will be moderating. I was fortunate enough to be asked to participate. The other panelists include: Ted Neward, Neal Ford, Chris Judd, Bill Wagner and possibly a few to be named later.
“Enterprise Python Development” Walk Through
Yesterday was the first walk through for my CodeMash presentation on enterprise development with Python. Overall it went rather well. I had a little touble with my slides, but I was able to wing it for the missing and outdated slides.
Before work I exported the Open Office presentation as a Power Point and emailed it to myself. At work an hour before the scheduled time I tried to opened the attachment. Unfortuately the file was corrupt. After some frantic searching I found an older version on my work laptop.
The version I found was very much out of date. The slides were out of order and lacking some details. This forced me to do some of the presentation from memory. I at least proved to myself that I was able to remember the material, even in front of a crowd.
Code Mash
This January 18-19 I’ll have the opportunity to be at CodeMash in Sandusky, Ohio. CodeMash aims to be a world class technical conference. And being located at a hotel with an indoor waterpark you know it will be fun. The quality session topics is quite impressive.
Neal Ford will be talking about how to be a more productive programmer. Mary Poppendieck will be talking about Lean Software Development. Mark Ramm will be explaining the Python ORM SQLAlchemy. A fellow Clepy member, Kevin Dahlhausen, will be talking about Test Driven Development in Python.
Of course I didn’t want to be left out of the excitement. I had two sessions accepted. One on enterprise development with Python which will be a discussion of real world solutions for other developers and architects. The other session is a more detailed, code driven explanation of web services using Python.








