Teacher Training in Computer Science: What’s That?

Last year I was a teaching assistant for two quarters giving me two opportunities to see how well I could share my knowledge with students. Aside from my knowledge of the material, and my ability to relate to many of the undergrads at UCSB (having previously been one myself) I …

more ...

Dynamic Programming - Coin Change Problem in Python

Update 2011/02/25 12:07
Updated the code such that it doesn’t rely on a coin of denomination one.

I assisted in hosting the UCSB Programming Competition again this year. Doing so rekindled my love for dynamic programming algorithms, thus why I prepared an example similar to this …

more ...

Pre-Summer Recap

Wow, where has the time gone? In my absence a great deal has happened in my life so I’m going to break it up into a few chunks starting with stuff prior to the summer.

As I briefly mentioned in Flat Stanley’s Adventures, winter quarter I TAed the …

more ...


Teaching My First Lecture

I previously mentioned that I was the Teaching Assistant (TA) for the Operating Systems class this quarter. It’s going quite well, though just as I remember, this class is a lot of work for the students, and a hell of a lot of work for the TA. I recently …

more ...

My Little Bro Pitching

Connor Pitching

This past weekend my littlest brother pitched for the first time. Word has it that he pitched 3 consecutive strikeouts! Go Connor. However, this word needs to be taken with a grain of salt as it comes from our mom, who as most moms do, occasionally neglect unfavorable details.

My …

more ...

Backups

I turned my computer on this morning and to my dismay my 9 month old 1TB harddrive could no longer be detected. It is still under warranty so it’s no big deal about the hardware going bad, however it is a big deal that I didn’t have a …

more ...

Random Lines from a File

Update 2011-07-18: As Ernesto correctly points out in the comments, this algorithm selects N independent random lines from a file.

The following is my python implementation of choosing N random lines with equal probability from a file. This implementation is both memory and time efficient unlike other solutions. This problem …

more ...

How do I end it?

Next quarter I am TAing the Operating Systems course at UCSB, which was one of my favorite classes (I even mentioned it here- see junior year), despite it being considered the most difficult required Computer Science course. For our class of ~50 students we had 3 TAs for whom this …

more ...

Flat Stanley’s (not so) Adventures at UCSB

My brother Connor recently mailed me a letter that read:

Dear Friends and Family,
In Social Studies we have been discussing communities and what makes them work. To help us learn more about other places, we would like to ask you for your help. Included in this letter is our …

more ...