Sunday, February 28, 2010

Heart Shaped Program


#include <stdio.h>
#include <math.h>

int main (void ){
double x,y,z,xi, xd,yi,yd;int o,i;
xi =3.0/80; yi =3.0/28; int px[80]; for (i=0;
i < 80; i++) px[i]=0; yd = -1.5;for(y = -1.5;
y < 1.5;y+=0.001) {o = 0; i = 0; xd =-1.5;for
(x=-1.5;x<1.5;x+=0.00001) {z=x*x+y*y-1;o|=(
fabs(z*z*z+x*x*y*y*y) < .000002); if(x-
xd > xi){ if (o) px[i++] |= 1; else
px[i++] |= 0; o = 0;xd += xi;}}
if (y - yd > yi){ for (i=0;
i<80;i++){putchar(px[i]
?'x':' '); px[i]=0;
}putchar('\n');
yd += yi;
} }
}


It's a heart-shaped C program that prints a heart. I did this in about 15 minutes, so it's not particularly clever obfuscation or particularly good code; it's just a quick-n-dirty implicit curve plotting function that's been...reshaped. I think you could get rid of the two lines at the top, but it's tricky because it's hard to make int putchar(int);double fabs(double); fit into the heart shape.

Here is the output:

xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxx xxxxxx xxxxxx xxxx
xxx xxxx xxx
xx xx
xx xx
xx xx
x x
x x
xx xx
xx xx
xx xx
xx xx
xx xx
xxx xxx
xxx xxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxxx xxxxx
xxxxxx xxxxxx
xxxxxxxx
xx

Friday, December 11, 2009

Places I've Lived

Here are the houses I've lived over the years, thanks to Google Street View:

1986(?)-1991: West Lafayette, Indiana (look straight to the end of the parking lot)

View Larger Map

This was Married Student Housing at Purdue University. I think it's called "Purdue Village" now, but it still looks the same. It looks amazingly familiar, actually. Here's my kindergarten school bus stop (my preschool is in the background), the Purdue University Airport where we used to go watch the planes (and the American Airlines ticket counter agent gave me a wings pin), and the park that I think we used to call Squirrel Park, whether or not it was actually called that.

1991-1995: Powell, Wyoming


View Larger Map

When we lived there, it didn't look quite so much like it was going to get up and walk away, and the neighbors had a big spruce tree, I think. Plus the porch was blue.

This was a nice neighborhood to grow up in. I could walk to school or the grocery store by myself, without being worried about traffic or gangs or drug dealers or rug dealers or sexual predators or actual predators. I compensated by making up things to worry about, like germs and deadly poisonous herbicides and pesticides and symptoms.

August-October 1995: St John, Maine (about 10 miles from Fort Kent)


View Larger Map

The "Stinky House!" There were bats in the garage (now gone, apparently) and fish and frogs in the backyard, the house smelled like urine, and the tap water was mud. We didn't stay here very long. But it was an adventure!

1995-1998?: Plaisted, Maine (also about 10 miles from Fort Kent)


View Larger Map

This was a pretty normal house, actually. The huge driveway got smaller and smaller over the course of the winter (we shoveled it by hand); when the snow melted we found that the newspaper people had put the "mailbox" for the newspaper right in the middle of the pavement. The mailbox was still there on street view a few months ago, but they seem to have moved it now. We had a moose in our backyard once, and a bear another time, and I would run to the back window every night to watch through the trees as the train went by.

Then our landlord sold the house to some people who moved in, and we moved to...

1998?-1999: Fort Kent, Maine


View Larger Map

Amazingly, somewhere with no street view! But I think I got the right house. This one was built by an electrician. It had every kind of light switch known to man, and the basement was oddly split up into lots of little half-finished rooms.

1999-2003: Lakeland, Florida


View Larger Map

And then somehow we were in Central Florida, where it was very hot and humid and flat. And I went to high school, and met lots of really great people, and somehow I actually liked it. But I didn't like Florida itself very much, and I never thought I would miss it. I thought it was rather monotonous, with its flatness and pine flatwoods and unidentifiable trees and strip malls and gated communities and Disney World plastic fakeness. And it's taken me until now to actually miss the mangroves and the alligators and the bathtub-warm Gulf beaches.

2003-2007: Caltech

This is a whole 'nother story...another day, perhaps.

2007-2008: Pasadena, California


View Larger Map

This was my first apartment. It was next to a construction site and had ants, leaky plumbing, and jalousie windows with no insulating value whatsoever, but I miss it anyway. There are better pictures over on Picasa.

And finally, or at least penultimately:

2008-2009: Pasadena, CA


View Larger Map

Sunday, November 1, 2009

Still Life

So I finally finished my still life. (Yes!)

I took pictures after each step, as I worked on it. I try to do this as much as possible: I like to go back and look at how the work has progressed. It makes me feel good about myself. It also lets me see which bits I still need to work on.

Here is the first step (not much to look at, I know):



And here is the completed painting (ta-da!):



Isn't it lovely? I'm quite pleased with it. Especially the shiny metal creamer with its reflections. And the lemon. :-) In case you wanted to know (which I'm sure you didn't) - it took me 6 steps. Normally that would mean I did it in six sittings, except I split the last sitting into 3 steps because I kept getting frustrated with the background and just couldn't get it right. So I actually did it in four sittings.





Saturday, October 31, 2009

Little Things

Sunset over Arcata: the view from our living room window.

This is the most beautiful thing I've seen of late. I haven't been outside much, except to go to the doctor, or the drugstore. It's nice to have the comfort of four white walls... but it's also nice to know that there is still beauty out there. I wrote the following impression almost exactly a month ago, immediately after walking home from school on an absolutely perfect afternoon. This photo reminds me of that afternoon. Maybe one day I'll even feel like that again.

---

A gentle breeze ruffles my hair, teasing my skirt into an intricate dance about my legs.
The afternoon sun shines gently down, warming my face and lending a golden glow to everything it touches.
As I walk along the few blocks home from school, my eyes wander to take in the cars, old and new(er), coated in a layer of dust and pollen, the cardboard boxes marked "FREE" full of junk, the recycling containers waiting by the curb.
The boards of the fences are weathered, the woodgrain stands out strongly, and the paint on many of the houses is worn and sometimes peeling.
There are gardens of vegetables, and many gardens of flowers that spill their brilliant bounty into the sidewalk.
The colors and textures arrest the eye: vibrant reds, yellows, oranges, blues, and purples; satiny petals that are sometimes velvet-soft.
The crisp aroma of ripe pears mingles with that of the newly-crushed leaves underfoot. A little farther on, a straggling blackberry beckons, lusciously ripe: fat, dark, and juicy.
I reach out to touch it, inadvertently bruising the tender skin - my finger comes away sticky. I absentmindedly put it in my mouth; savoring the heady taste/aroma: it is almost too ripe - a reminder that summer is coming to an end.
I turn the corner, cross the street.
The sun shines brighter, warming me; I take a deep breath, reveling in the clean crispness of it in my lungs, and look out at the bay, and then up at the trees, and the clouds piled up over the mountains. Turning back, I smile at the house with the window box full of hot pink tulips, and the nearby van with the vanity plate that reads "hu ph♥ed"
The breeze picks up, tugs at my skirt - it is time to continue. I move more fluidly now - I am carried along by the gentle call of wind-chimes. They ebb and flow, changing in tone and pitch but keeping a constant rhythm that pulses with the beating of my heart, of my feet on the sidewalk, of the breath in my lungs. The cars whistling by on the freeway below add an undertone to the music that is not discordant but not quite harmonious. It simply is.
I trail my fingers along the concrete wall, feeling the roughness of it, the bumps and hollows, the way it snags on my skin. Every sensation is awake, aware, wondering.
The chimes die gradually away, and the breeze deposits me at my door. I climb the stairs slowly, savoring the last remnants of sensation: the texture of the railing under my fingers, the smoothness of the paint, and the slight unevenness where it has peeled. As I step onto the deck, and turn to check the mailbox, I can feel my senses returning to their normal dulled state. But the memories remain.

---
Photo by me, panorama stitched together by Tom using Hugin.

Thursday, October 29, 2009

Have you met our newest faculty member?

It's Professor Fluff'n Dust! (Found at Safeway in Arcata.)
Posted by Picasa

Sunday, September 27, 2009

Still afloat

The egg is still floating:
It's floating on a layer of saltwater at the bottom of the jar. The water on top is fresh. The egg is denser than the fresh water, but less dense than the saltwater.

Some of the excess salt that was suspended but not dissolved has settled to the bottom, so the picture is a little clearer than the ones from the first day.

In less (more?) eggciting news, here is a sunset from our living room window:


Posted by Picasa

Friday, September 25, 2009

Eggfloat

I made a magical floating egg!

Posted by Picasa