Wednesday, April 6, 2011

Best day... ever?

I was hoping to write a proper post about this, but I am somewhat too tired to do so, so I'll resort to posting a schedule of the day.

9:00 AM: Brain Day starts, introductions to talks by...

9:15 AM: Sebastian Seung (MIT) [I am my connectome TED Talk, on Youtube].

10:45 AM: Peter Strick (Pittsburgh): Motor control and basal ganglia / cerebellum topography.

1:30 PM: Jonathan Cohen (Princeton): Adaptive cognitive control.

3:00 PM: Ned Block (NYU, Philosophy) [On Consciousness Youtube clip].

[End of Brain Day]

7:00 PM: Perimeter Institute lecture by Roger Penrose [Discover Magazine article]

10:00 PM: Read web comics. There was a good crop today!

EDIT: Apparently Ryan North of Dinosaur Comics was also at the Perimeter Institure lecture. I'm kinda disappointed I spent too much time listening to the lecture to notice this.

Thursday, March 17, 2011

Dryers, Animals, and Other Housing Failures

Call it confirmation bias if you will, but I seem to have unusually bad luck with drying machines and animal infestations.

A couple terms ago, I made the (rather glaring, in retrospect) mistake of moving into a house where the washing machine and dryer would be "replaced soon" by the landlord (they weren't there when we moved in). The appliances did eventually get put in, but it would be a stretch to say they were new. In fact, the dryer was missing its exhaust vent, which is a rather important thing to have. Now, exhaust vents aren't that hard to get or install and eventually we did install one ourselves, but the process of doing this was all sorts of awful (most of them involving abuses of duct tape) since the pipe the landlord had supplied didn't fit the mangled attachment points.

The next term, in a different house, we had a bat somehow get into the house. I was fairly apathetic about this but one of the other guys in the house (a veteran from the dryer disaster) went mildly insane and plastered black garbage bags over every doorway in the house to prevent the bat from attacking us in our sleep and giving us rabies, or histoplasmosis, or something. The next day saw a bathunt with a bunch of twenty-year-old guys armed with broomsticks and an almost comical fear of giant leathery bugs. We never did find the bat.

Today, I was working on plotting out an essay for my philosophy class (topic: what is it like to be a bat?), when I heard a persistent fumbling sound coming from the laundry room. At first, I assumed one of my roommates was doing some incredibly clumsy laundry, but after half an hour or so, this hypothesis seemed increasingly and distressingly unlikely. No, there was clearly something stuck inside the dryer vent; something alive and possibly terrified.

After considering all the ways I could ignore the problem and hope for a resolution that did not require my intervention, I came to the sad realizations that (a) there was no way the thing was getting out on its own, (b) furry animals and exhaust vents are probably a fire hazard and animal cruelty, (c) anyone attempting to do laundry would be a very bad thing, and (d) people sometimes do laundry from which we can conclude that (e) having clean clothing is overrated and (f) I would have to talk the other residents of my house out of doing laundry for a while.

A dramatized reconstruction of this talk follows:
Me: So... have you ever thought about what it would be like to be a squirrel?
Guy: ...
Me: Say you were a squirrel stuck in a dryer exhaust.
Guy: Seriously?
Me: Um, yeah.

To shorten a lengthy tale into a slightly more condensed form of a lengthy tale, the Laundry Avoidance strategy didn't seem to adequately address the long-term implications of the Animal Stuck In Appliance scenario. What we decided to do was take apart the exhaust vent; sure, we'd have to get some duct tape and fix the damn thing later, but at least we could get on with life.

At this point, I was the only one who had heard the squirrel/bat/chipmunk thing inside the vent. If the bat and dryer experiences had taught me anything it was that wild animals can be bloody difficult to find and dryer vents aren't fun. Nonetheless, we did what we had to do: we unwrapped the duct tape holding the vent in place and we waited for stuff to come out.

Nothing.

We took out the other side: still nothing. There was nothing in the vent. At this point, you probably think that this blog post is about how I let my prior experiences impede my judgement. You might think that I'm slightly insane. You'd probably be right on both counts.

However!

As I went back to planning my essay (maybe "problems with sense perception" would be a better topic than that bat nonsense), there was another fumbling sound from the laundry room. The laundry room that did not contain a squirrel stuck in a dryer vent. The laundry room that we had just conclusively proven (causing some amount of material damage in the process) did not contain a squirrel stuck in a laundry vent. The laundry room that had just as many squirrels in laundry vents as Area 51 had aliens facing human molestation charges and... the fumbling continued. I grabbed a video camera.

I shot a minute long video of an indistinct shape scrambling up a plastic dryer vent, trying to leap up a long vertical stretch of metal tubing, and failing miserably. Armed with this evidence, I set out to convince my earlier accomplice that I was still sane.

The resulting conversation was sufficiently awkward that I feel no need to immortalize it here, but to his credit my partner-in-dryer-destruction returned to the scene of the crime for a second look. Once again, the dryer vent was quiet when we arrived.

Pulling out my video camera, I played back the video I had taken. I had been so excited by the feeling of actually-having-proof-this-time that I had forgotten that most of the video consisted of silence.

"It gets better," I said.

And suddenly it did: a faint scampering could be heard from the video and almost simultaneously the real exhaust vent started shaking up again.

"There," I said, prodding at the screen, "you can kind of hear it there! Here, I'll rewind..."

It turns out that the live performance next to me was more convincing than my recording, so rewinding was unnecessary. We got our animal trapping gear back in place and I triumphantly removed the bottom of the vent and placed it into our designated cardboard box. I'm not even going to bother building this up, because obviously it didn't work. It couldn't work. There was nothing in the freaking vent!

"Huh," we said.

TO BE CONTINUED (DUN DUN DUN)

Can you figure out the case of the ghost squirrel?

PS: my philosophy essay is not about any of the topics listed here. I would say what it's actually about, but I don't want TurnItIn to think I plagiarized myself.

EDIT: The true conclusion to this shocking story of paranormal activity is here.

Wednesday, March 2, 2011

Nomograms for Synbio

I've always really liked nomograms. They're basically a set of axes drawn on a page in such a way that each axis represents one (or more) variables and by drawing lines between the various axes, it's possible to find unknown variables graphically.

One of the most basic nomograms possible simply adds two numbers:
From this simple beginning, it's possible to make other analog computation devices that are much more sophisticated. By using logarithmic axes, you can perform multiplication, since log(x) + log(y) = log(xy).

Nomograms are rather outdated, now that computers can perform numerical calculations much more easily and with far greater accuracy than anyone can measure by hand. The reason I'm looking into nomograms again is because they can be distributed on paper more easily than a computer program, they are relatively intuitive, and they allow very complex systems of equations to be solved by people who don't know math. There are also some iGEM outreach events coming up...

...so we'd like to be able to show people mathematical modelling stuff that's related to synthetic biology, but it's hard to come up with stuff that's interesting, learnable in minutes, and true. I think it's possible to condense some tricky work into a graph:


The above graph shows a setup that could calculate the concentration of a molecule and its isomers given a reaction rate constant (provided the axes were properly scaled). This is a fair amount of work (for the creator of the nomogram) when you could just plug "exp(-k*t)" into a calculator, but it's hard to beat the connect-the-dots simplicity of a nomograph. The other nice thing about this type of graph is that it really emphasizes the fact that it's easy to 'cheat' and start with the desired final answer and work backwards to get inputs... ie, design the system analytically.

Unfortunately, the irreversible isomerization reaction is still rather lame and even with an easy method of calculating it, it's still not particularly exciting. What would be cool would be to get a system of equations that describes an optimization problem and have a graph visually represent design trade-offs (like the triangular graph on this page), but that sounds like it might be too ambitious for me to tackle in a couple of spare hours.

Tuesday, December 21, 2010

Teleconference

It is not always easy to understand a large group of people speaking into a laptop microphone at the same time.

Sunday, October 31, 2010

Watermelon Carving

Exciting news everyone! I managed to grab the 'gingerich' username on Flickr (I tried for matt, but 210 people beat me to it... actually probably more than that, but matt211 was still available; also someone has majugi as well... grr).

Also, the reason I signed up for a Flickr account, after all this time, is because I don't want to put the entire series of awesome pictures I took of me carving a brain out of a watermelon on this blog. Here's one, though:

EDIT - Other crazy things I forgot to mention: I froze an egg while walking home from the grocery store today. I had noticed that one of my eggs was cracked, so I decided to fry it before it made a bigger mess but I ended up peeling away half the shell before I could 'pour' the egg into the pan. It is also now snowing (very lightly)!

...and the people I'm living with just filled four wine bottles with homemade apple cider (and I mean homemade in the fullest "pressed from apples grown on a friend's apple tree with an apple press built out of a car press and pieces of wood" sense — and the force required to press the apples was enough to shear the head of one of the screws clean off).

Wednesday, October 27, 2010

Voltage Dividers

Note: I found this post while deleting old drafts I never got around to finishing. I have no idea where I was going with it. I think I had some insightful analogy to make that related a voltage divider to life, music, minds, or some really esoteric projects that I have since forgotten. If you happen to think of what that analogy could have been, please let me know.

The sad thing is, I didn't even get around to explaining voltage dividers.

***

This is a voltage divider.

If the input voltage, V, provides a voltage of 5 volts, and resistors R1 and R2 are equal than Vout will be half of V, or 2.5 volts.

Thursday, October 7, 2010

Context-free grammar (Part 1 of 2)

What are context-free grammars? An abstract definition might say that they're a set of rules allowing for the construction of complex structures consisting of logical parts that can be arbitrarily nested, but I've found that nobody really likes my abstract definitions, so I'll try using an analogy instead.

Consider a freight train hauling three containers (containers A, B, and C):

Let's say that container A can only contain livestock, container B transports liquids, and container C contains manufactured goods. It doesn't matter what type of livestock, liquids, and manufactured goods are transported so long as they fit into their respective categories.

We have just defined a very simple grammar. Within this structure, it is possible to have 'phrases' such as "pigs milk computers" or "cows mercury needles".

A cow-mercury-needle train and pig-milk-computer train collision would be unfortunate.

Both the cow-mercury-needle train and the pig-milk-computer train are examples of the same model of train — an A-B-C train — that happen to be carrying different items in their identical containers. The model of the train can be thought of as one rule (or phrase structure) in the grammar, but it is certainly possible to have other rules.

The analogy gets a bit weird here (yes, weirder than the above image) because context free grammars also allow their containers to contain other trains.

Let's imagine a different model of train, the B-A-Weird train that has a B-container (which must, as before, contain a liquid), an A-container (holding livestock) and a weird container which holds either an A-B-C train or a B-A-Weird train. Now instead of a pig-milk-computer train, it would be possible to have a milk-pig-cow-mercury-needle train where the milk is in compartment B, the pigs are in compartment A and the cow-mercury-needle train from above is all in the weird compartment.

Okay, that's pretty weird, but that's not nearly as strange as being able to put a B-A-Weird train inside the Weird compartment. This could allow us to take the entire train we just discussed and stick it in the last compartment of another B-A-Weird train. Then we could take that train and do the same thing, over and over, as much as we would like. However, at this point the train analogy has lost almost all meaning and is likely confusing matters substantially.

Fortunately, there is a familiar application for context-free grammars that should make more sense now, namely language. By specifying containers in terms of parts of speech instead of cargo, we can construct sentences instead of trains. This is sort of reminiscent of Mad Libs: "the {noun} {past tense verb} the {noun}" would be one example of a sentence structure from a context-free grammar. Amusingly, this is also how Matlab's "why" function manages to produce output such as "The bald and not excessively bald and not excessively smart hamster obeyed a terrified and not excessively terrified hamster."

As before though, things get interesting when sentence structures get put inside of other sentence structures (just as trains... get... er, put inside of other trains). We can expand the definition of nouns to include phrases in the structure "{noun} the {noun} {past tense verb}". This allows phrases such as "man the hamster ate" to be used in place of the simple noun "man". And why not? Anywhere you can refer to a man, you can grammatically refer to a specific man who happened to be eaten by a hamster.

There is a slight problem with this setup in that, as before, things get complicated when structures are continually placed inside other structures. The phrase
"The dog the boy the man the hamster ate raised owned bit the boy the man the hamster ate raised."
is in fact valid using the two rules defined above and can be parsed as:
The (dog the (boy the (man the (hamster) ate) raised) owned) bit the (boy the (man the (hamster) ate) raised).
...meaning the hamster ate the man who raised the boy who owned the dog which bit the boy raised by the man eaten by the hamster.

So... yeah, people don't generally speak like that because of cognitive limits to how many nested levels of information we can keep track of at once. But maybe, you say, this idea of context-free grammar could still be useful for creating different kinds of structure. Some sort of really complex structure that can have parts embedded in other parts in ways that are hard for people to imagine. Perhaps, you hazard, some sort of biological structure.

In this last set of thoughts, you've outlined the general idea behind GenoCAD, a context-free grammar for synthetic biology. It seems to be a good fit at first but, as Andre from the UW iGEM team points out, there are quite a few properties of DNA sequences that it fails to capture. More on this later.