Mountains

Mountains

Thursday, April 28, 2011

This is Why He's Stupid

He was sniffing for crumbs this morning and went to sniff the counter and banged his head on the door.

I was teasing him with the dog toy when we were playing tug of war, and I tricked him and he fell over backwards ackwardly.

A moment later he made a dive and hit my knee head first.

Just now, I heard whining at the door. It's dark. I gave the screen a good shove to open it, but it bounced hard against a hard, meaty object.

Wednesday, April 27, 2011

Life of a Scientist: Door's Still Glued Shut.

One of the challenges of getting a research career moving is starting and/or getting involved in a thought line that is of current interest. If your interests lay in areas that are not particularly active, getting funding (much less a job, if you're not a tenure-track professor) is going to be tough. The congress does not pay agencies to study things that are not considered important. The NSF and NIH have agendas. Private endowments have their focuses. In other words, research dollars almost always have an end-result in mind. Cold fusion and acid rain are examples of topics that are currently pasé. Unless you have something earth shaking to add by studying these topics, it is going to be a tough road to do anything.

So, it's important to know where the community is going, and develop connections with top researchers you can use as mentors and leasons. While some of these routes you can figure out on your own (personal communications, conferences) there are other activities that really give people the opportunity to interact and share information. Long, well funded post post docs, visiting scientist positions, and colloquia are examples.

I know numerous people whos careers were launched or otherwise highlighted by these more specialized opportunities. To some extent, I had been looking forward to one or two. However, over the course of a generation, the number of applicants has grown while the funding has shrunk. I have personally been rejected from things in ratios in the range of 12:1 to 4:1 for slots. Yet another area where it is obvious that there are too many scientists.

It's frustrating, just a bit, because the tools and experiences my advisors had seem unreachable and unreplaced.

We'll have to invent our own road, I guess.

Tuesday, April 26, 2011

It's Getting a Little Warm Out There

The Dog, warm and covered with ticks.

Old climbing rope. New Clothesline.

Spring Flowers

Morning in the park.


Easter Eggs


Dogwoods



There are flamingos grazing in the yard.

Thursday, April 21, 2011

Metablog

I have been posting random internal rambling on the internet since 2002. Nine years ago, doing so was more like running a pirate radio station than an act of social interaction. Employers were not likely to use a search engine to vet employees. There was no facebook, though I think that MySpace was around. As well as LiveJournal and a couple of others.

Coming up with content was easier as a result of the isolation, and because I had a lot of free time to give to my fantasies. Now, I spend a lot of time at a desk doing sciencey things, then come home and do housy things. By the time all is squared away, 15 hours after I woke up, my creativity and motivation are all strung out. I have notes in my notebook of things to write about, but they don't ring the bells they did when I wrote them.

As a consequence, I have been wondering about what direction to take the blog. If any. There is an arguement for organic expansion by doing whatever strikes me at the moment. When I cook dinner, that sometimes works great and sometimes results in frozen pizza threee times in one week. I have also thought about formalizing on a small set of topics and working from there. I have a lot I could write about science. I spend a lot of time writing about science at work, so I have a clue, but writing was not high on the perks of being a scientist, so doing what I dislike about my job at home seems like masochism without pleasure.

I have been enjoying little data analysis case studies. I have thought about doing more with GPS data. I also have some vacuum cleaner math, a fuel economy spreadsheet, and some economic bungling that could be posted.

Whatever works, right?

Early December 2009

I grew this tomato, and picked it several months prior, just after the first frost. I can only guess how long store bought tomatoes have been off the vine... they seem to go bad within a week.

An eviction notice.


Bluebox

Boston

Culinary Blowout
NO, GRANDMA!!!

Bluebox

It snowed.

In Two Dollar Mouse We Trust?

I got a wireless Logitech mouse for my birthday last year. I am deeply impressed with it, with one small exception. Unless it is in very close proximity to the transiever, it seems to randomly loose signal. While I don't fault the designers for trying to put a sub 100mw radio inside something smaller than my pinky and therefore trading off antenna design, it is annoying for the mouse to sudddenly go AWOL during heated bout of L4D2, resulting in paniced computer rearrangement, hot-pluging, and general chaos.

A short term solution has been to plug a hub between the computers attached to the mouse. This is annoything, especially since the mac only has 2 USB ports that are easy to get at.

A new wired mouse was on the shopping list. I had my eyes on a snazzy gaming mouse, but I was in the store yesterday, and found a full size optical mouse (GE brand... china generic) on clearance. 2 bux?

Apparently optical mouse mechanisms have reached the state where they are practically free. Mechanical mice were like this for a while. I still have one in a box around here somewhere. While the mouse itself a little light (to save money on shipping?) and generally unremarkable. Gaming was so much less stressful. Wireless is cool, but there a bit of security in a cable.

I would admit that I still want a snazzy mouse, but I've wanted one for years.

Thursday, April 7, 2011

The Life of a Scientist

I admit, I had no idea what I was signing up for when I decided to study science. I had vague ideas of test tubes, chemicals, and maybe a little computer modeling stuff. Nothing well defined.

After working 4 years as a research assistant in a lab on campus, I did get a clue for what lab techs did: fix instruments, log samples, run protocols and samples, and troubleshoot hick ups. I understood and excelled at the nuts and bolts of getting research done.

For a very long time, I was not really aware what Ph.D. scientists did. They clearly gave presentations, some of them taught. There were a few post-docs running around labs. It took a long time to ask what was going on. Research scientists seemed to be leading an opaque life, cloistered in their offices. Doing what? Always something, but I never got to see the big picture.

Now, as a research scientist, I know. The results of the grand inquisition are anticlimact: they were reading. analyzing, and writing.

It's what I do all the time. The reading and writing almost completely decimates the analysis portion too. If there is any program that is constantly running on my work computer, it is Microsoft Word. Scientific writing is a long process, and you have to do it to stay alive. After working as a research assistant and then as a graduate student, getting data is relatively easy. Easy, that is, once you have funding and a hypothisis. After you have your data, you need to deeply understand it, publish it, then start the process over again.

This is why the professors I worked for were so aloof, and rarely in the lab. First, they had already been there, so what I was doing was less novel. Second, they had bigger fish to fry than worrying about a few %RSD on the signal for benzene. That is not the sort of problem that would put food on the table.

They had to write.

I had previously remarked that setting up an experiment was like a drawn out Domino Rally... Months are spent carefully testing and aligning the pieces, and then, in one quick burst, an experiment is run and the actual data is collected. Then there is the post processing. Now, in retrospect, it is like you have to pick all the dominos up and alphabetize them before you aloud to do it again.

There is some explanation as to why there is often a 3-5 year gap in many others CVs post graduate school. Post docs can be hit or miss in terms of publication generated, and setting up, or integrating into a new research program is long and laborious.
"We're collectively useless, just like my dog."

November 2009, Redux

Dover started to look like the Dover I normally imagine. Cold, gray, and lots of intriguing graffiti.









The christmas lights went up towards the end of the month.



The leaves were gone, but the sky always seems to have something to say.




There were some pictures of a broken Big Science Thing™.




My brother showed up for Thanksgiving, and made a kilt.



The dog likes men in kilts. He likes to bite their balls off.



Gratuitous dog photos.


Tuesday, April 5, 2011

Crash and Burn

This evening, I was happily inter-dorking on the stinkpad when the screen suddenly flickered, and the computer crashed.

That's pretty universally regarded as a Bad Thing™.

After some rebooting and wiggling, it was obvious that the newfound crash was related to wiggling hardware.

I took the keyboard off, and discovered that i could temporarily cure the problem by pushing hard on the graphics controller. Tapping the graphics controller, in turn, caused failure. I tried wedging some post-it notes under the keyboard to keep it from moving, but the pressure isn't enough. I'll have to add more.

Some googling reveals that graphics chip failures charactarized by screen flickers and crashes are common among T40/T41/T42 Thinkpads with Radeon 9600 and 7500 graphics.

Well, damn.

My brother had an iBook that suffered the same fate.

I wonder if this is related to my switch to ubuntu. I use hardware composting, which keeps the GPU busy and warm (and the windows moving smoothly). Maybe being heat baked for 3 months did it in?

A more likely explanation involves 5 years of hard loving in graduate school.
I hate it when the screenless ipod shuffle plays something really good, but i cant id or remmber it.

Monday, April 4, 2011

Paging Jodi

I have been building a little box that uses industrial temperature controllers to measure temperatures using thermocouples (Type K, Aluminum and Chrome). Thermocouples use the energy difference between the electrons in two dissimilar wires to measure the temperature. The gap gets bigger as temperature increases, and thus, there is a corresponding increasing in measured voltage. This is called the Thermoelectric, neé Seebeck effect. The problem is that that voltage difference is in the microvolt (your average DVM is probably capable of volts to millivolts) range at room temperature. That makes the measurement hardware tricky and expensive.

The box I made can also trigger some big mother SSRs when it feels like it, but I won't worry you're little mind about it.

The box can communicate with a computer over EIA-232, responding to commands about every 500 ms. After I figured out that I had swapped the ground and the data Tx leads on the DB-9 connectors (Why is the output inverted? OH! *headslap*), it was pretty trivial to glue some Labview together to log temperature data. I set one thermocouple in the window, another on my desk, and let it collect data all weekend.

480,609 samples later, I came back from an amazing weekend of rock climbing, and copied the data to my flash drive, where it sat for few weeks and rotted.
Working with big datasets is fun. High time resolution data tends to show things that broader measurements miss. Frequently, those things aren't very important, but sometimes, the wierdest moles pop up.

Inspecting the raw data, I was surprised to see that there was strong aliasing of the data reported by the temperature controllers. The aliasing is the horizontal lines that the measurements lay on. The analog to digital converters (ADC) that the controllers use cannot perceive the a difference of more than 0.1 degree °C, that's the measurement resolution. An astute reader would also note that value is identical to the one found in the controller manual. The manual also lists the precision, the uncertainty in the measurements as 0.1°C. The measurement accuracy (how far off from the "true" temperature) is 0.5°C.

Hey, wow. the measurements are obviously not offset some constant. That's probably because the thermocouples were sitting in different places in the room with different albedos and heat capacities. The one in the window gets colder at night and warmer during the day. Classic sign of a lower heat capacity than the desk. Their temperatures really were different... remember, we're splitting hairs by 0.1°C here!

Since I'm already being a dork and analyzing pointless data, why don't I check the precision rating too?

I used a 12.5 second long (25 measurements) binomial smooth to average the data. This trades time resolution for increased precision of measurement of the temperature at a given point in time. The binomial smooth is nicer to work with than a boxcar or moving average, though it's less analytically rigorous. It does ignore changes at the edges of the subsample and stay centered around the sample time.

As a quick sanity check, we can just add error bands that are the size of the stated precision to the smooth. If there are lots of data points outside of the bands we drew, than the precision of the controllers is not factory spec.



The result of this quick test is shockingly good. There are a few points that stick out here and there, but mostly they lay in the shaded area.

Since I'm flying the keyboard, I can also take a harder approach. We can also subtract the measurements from the smooth values. That gives the residual. In an ideal world, these will be neatly clustered around zero, signifying that there is no bias in the data. The standard deviation of the residuals should also yield the measurement precision.


That appears to be the case here. If take the standard deviation of residuals, I get 0.05, twice the standard deviation is 0.10, which would encompass 95% of the measurements made. Slick. Additionally, the data does not appear to have a skew... adding all the residual values yields a paltry 2.4°, indicating that they are neatly centered on zero.

However, the banding pattern in the residuals in intriguing. Where does that come from?

Never to be one afraid of a wild goose, I did a Fourier transform on the residuals.
OMG THERE'S A SIGNAL!!!




Not really.

See, aren't you glad you read this?


There is a signal, of sorts. a very weak one. I'm not sure several of the small spikes are, but the 0.6 Hz might be an overtone from the power line. That's guessing. I think it's most likely that the signals are the frequency of the average temperature crossing measurement gradations during a steady increase or decreasing (like in the mornings @0.6, 0.7, and 0.9 Hz, and at night at 0.1 Hz).

I threw you a read hearing.

Another way to look at the residuals is to use a histogram.


The residuals aren't neatly grouped around zero! They're clustered around 0.0, 0.1, and -0.1. Sound familiar? The banding in the residuals is due to the measurement precision. As the true temperature crosses between values the ADC can measure, the ADC oscillates between the values it reports (dithering), resulting in the observed patterns in the residuals.

Saturday, April 2, 2011

The Sewage Treatment

I take many things as signs of our societies impending demise, but none so personally as the asinine complexity of the personal tax return.

This morning, while sitting in bafflement over the spectre of the combined existence of a both a standard deduction and a standard exemption in the Virginia state tax code,The Girly announced that the basement was flooding.

Although her voice had the tone of "Get on the Arc!", the reality was a small flow was seeping in under the basement door and slowly growing in a half hearted attempt to flood the basement. She had just moved a load of laundry to the dryer, and discovered the creeping intruder when she turned to go.

Actually, I would discover that it was actually seeping around the basement door. The landlord had constructed a dam, of sorts, across the door jam to help keep rainwater from getting in. he dam was now at capacity and the floodway was the rotted door frame. The house came with the whole "the basement used to flood a lot" caveat, along with the promise that the flooding thing was handled.

I thought it was a little odd that the water was getting in after the rain. In Dover, a waterfall formed on the rock wall in the basement during heavy rains. During one storm, a dog toy got wedged in the sump pump, and we ended up with a small lake. It was great. But things always got better after the rain. It seemed a little odd that the flood would come a day after a good soaking.

Whatever the source of the water, the drain outside the basement door was obviously blocked. I fiddled with a coat hanger, but in 12 inches of dark water in a dark stairwell, I wasn't going to get anywhere without the water first gone, and the flooding needed to be stopped, lest the trickle reach something fragile. I grabbed a bucket and started bailing water from the pond into the sump, so the sump pump could pump it out of the house, into the (accursed) bamboo stand that straddles the property line. I cut a piece of screen (we have a huge roll aluminum screen for the deck) and put it over the top of the sump to filter the leaves that came with it, to avoid another clogged-pump disaster. The Girly started wrangling the intruder with a mop.

After a few bucketfuls, the pond started to smell bad, and a thin, white skum started accumulating in the screen. My science geek mind clicked into gear. The rain water must have formed a layer over brackish water underneath. The drain must have been clogged a while, I thought, for this much bacteria to form and the leaves to dissolve to make a such a soupy film. How cute! pond scum in my own backyard!

Did I mention it smelled pretty bad?

I optimistically repressed all alternate theories for the source of the water. Surely this would be something i could easily fix with the dinkly little snake or a coat hanger. I could be back to work in an hour and life would be peachy.

I kept bailing. An odd little stinky ball of mud got stuck in the screen, and then there was some long, stringy bits of paper. Something that looked a lot like a bit of diced onion. And then, there they were, loitering at the corners of the pond. Turds. The sewer line was clogged. A busy morning of showers, cooking, shitting, and clothes washing, had finally filled our little backyard cesspool to capacity, and now it was coming in the back door to find a new home among the christmas ornaments.

Fortuantely, I had bailed enough water so that the flow of water had been staunched. I called the landlord. We haven't talked in months. He greeted the news in stride and told me that he was expecting it. This has happened before, it seems. Yearly. An un-ending battle against roots.

It's really hard to get a plumber on a saturday afternoon. They charge weekend fees and tend to be busy. Ultimately, Arturo showed up in our driveway. He looked at the puddles, the toilet, and instantly gave the highest bid. But, he was also here now, and not Tuesday afternoon. I signed the form. He produced a snake with a 1 H.P. motor.

Of course, not all was instantly fun for Arturo. While it was easy enough to get the toilet of its mountings, the house is not well grounded. The first outlet he tried resulted in the arcing to the sewer line. Bright enough that the white PVC pipes flashed. It was impressive. Arturo suggested that we should also consider an electrician. I reminded him that the landlord had grand plans for a McMansion that our little 1950s prefab is sitting in the way of.  After some minutes of loud snaking, the water started to drain out the basement stairwell. The turds lay beached on the concrete. Yummy.


Arturo then put a camera down the pipe. He hooked up a DVD recorder to it. On the screen, we could watch the sewer pipe get increasingly ovular, and there were little bunches of tree roots sticking out in places. Sewer pipe? More like black diamond turd obstacle course. Beware of wipeouts. Unfortunately, the fee for a DVD copy of my sewer pipe video was $80. Arturo suggested full replacement of the pipe, and was even helpful enough to paint a large white stripe on the green at the front of the estate, and provided a estimate of work that is approximately equal to two months of my salary. (That's a formal wedding proposal in some cultures.)

Arturo's a great guy, but I had to turn him down. I'm sure I'll see him again next year.

After he left, I got a shovel and garbage bag and rounded up the beached brown whales.

It felt so nice to have a shower.

And then, I finished my taxes, drank wine, and ate cake.