Tag Archives: programming

arduino: reaction time game

As I mentioned in a previous post, I am trying to teach myself some electronics. I’ve been perusing a pretty good book by Michael McRoberts called “Beginning Arduino”, and after putting together one of the first projects I decided to … Continue reading

1 Comment

Filed under computers/software, science

Python: shared birthdays

A few days ago I found myself having a vague recollection of a statistics problem presented at some unknown level in my education. All I could remember was that it had to do with having a room full of people … Continue reading

2 Comments

Filed under computers/software, science

Python: Monty Hall modeling

You’ve all heard this classic statistics problem, based on an old game show: A contestant is shown 3 doors. Only one of those three doors hides something of value to the contestant (perhaps a new car), while the other two … Continue reading

4 Comments

Filed under computers/software, science

Python: Clean up and translate nucleotide sequences

Some simple, hopefully useful, and totally non-optimized functions for working with nucleotide sequence data (note that there are many more tools as part of the biopython distribution, if you’re interested in learning the library) : First, for cleaning up a … Continue reading

4 Comments

Filed under computers/software, science

Python: ad infinitum

In Seth’s post on dice rolling, he briefly mentioned something called a “while loop”. It has the basic structure while (this is true): (do this) Note: Courier font or italics show code. WordPress is douchey about font-changing, so it’s easier … Continue reading

2 Comments

Filed under computers/software, HowTo

Python: Getting Started

Awww… isn’t she the cutest little thing? Python is both a cuddly pet (when in ball form) and an awesome programming language. I’m well aware that most people don’t equate “awesome” and “computer programming”, but that’s simply because most people … Continue reading

Leave a Comment

Filed under computers/software

puzzle solver, part II

In a previous post, I discussed my attempt to write a program to solve a puzzle. I never updated that post because, well, I ran the program all night and it didn’t find the solution! I had made up a … Continue reading

1 Comment

Filed under computers/software, HowTo

evolution programs

I updated the Weasel program a fair bit, and it is now available on sourceforge. The program still does the same stuff, but the interface is cleaner and friendlier. Most of the changes were just to make the code easier … Continue reading

Leave a Comment

Filed under computers/software, science

a simple model of selection

(re-posted from coster3.com, the joint blog I share with my brothers) Inspired by Dawkins’ METHINKS IT IS LIKE A WEASEL program (hereafter just weasel) described in his book “The Blind Watchmaker,” and wanting to practice my blossoming C++ skills, I decided to write my … Continue reading

Leave a Comment

Filed under computers/software, science