Snorkeling

For the past semester, many of my friends here have been enjoying the Red Sea, diving regularly. One even went on a two-week research cruise, making three to four dives a day.

‘What,’ I wondered, ‘could possibly be the fascination?’

Growing up in Colorado, playing around on the beach meant going to Boulder Reservoir, which isn’t much more than an enormous swimming pool. Just not much remarkable about it. The only real beaches I had been to until now were in San Francisco and Japan, and the novelty wore off pretty quickly.

This last weekend, I decided that I ought to give it a try, and not being certified for diving I went snorkeling with my friends. We drove to a private beach (which was a treat in itself – men and women can mix, and music plays over the loudspeakers. These are things I’ve learned to not take for granted), rented gear and got in the water. On the dock, I was excited when I saw a small coral growing in the shallows. It couldn’t have been more than 10 centimeters in diameter but thinking about exploring the beach for more such treasures was enticing.

We waded out and put on our flippers, and then our masks. I dipped my head down, ready to explore, and instantly my head popped right back out of the water. “Guys! Guys!” I shouted to my friends. “There’s a freakin’ million fish here!” They chuckled knowingly, and I realized this is what they came for.

I just could not get in the water fast enough. There were so many fish I had never seen except for in aquariums, brightly colored, quick, and just stunning. Thousands of them from deep blues to iridescent purples, all swarming around beautifully-colored coral and anemones. All told, I spent about four hours tooling around the reef, examining fish at the cleaning station, clownfish in their anemones and predators lurking near the surface.

On leaving I instantly felt like a tree-hugging hippie, and felt a need to protect the ocean. Ok, sure, it was a bit short-lived and I feel like someone who’s hopped on a bandwagon, but it’s an incredible world down there. You see shadows off in the “distance” (though it’s usually only 30 feet away) shimmering and swimming around. Floating in the sea, weightless, above the sheer cliff faces of 20, 30 or 40 feet is a unique sensation. I tried to compare it to hiking and climbing mountains, but it occurred to me that unless I learn to base jump, I will never see that kind of geographical structure from the same relative perspective – hovering above it.

Between dives (well, my friends were diving while I was snorkeling) we’d pull out a book of Red Sea fish and try to find all the ones we’d seen. The camaraderie of stories of dives past and fish seen was nearly as satisfying as the experience of being in the water like that.

I’m exploring getting certified (either through PADI or BSAC – we have both available here) so that I can join my friends on deeper adventures, but in the mean time I’m going snorkeling as often as I can. Forgive the pun, but I think I’m hooked.

Tagged with:
 

Monkey Business

Nagano (well, Yudanaka) is famous for it’s “Monkey Park,” an open space where Japanese Macaques relax in large groups in the natural hot springs. Visitors can walk among them as they graze, groom, and occasionally, fight.

DSC_0023.NEF

The younger monkeys are pretty playful, climbing ropes and poles, and rough-housing with one another. The adult monkeys seem more interested in eating the food provided to them, a mix of barley and other grains. There seemed to be some areas used mostly by families (these were inaccessible to human visitors) and others that seemed to be dominated by younger bachelors. Fights would break out from time to time, but nothing too serious.

DSC_0052.NEF

Japan is known for their natural hot springs, and the monkeys take full advantage. The day I was there, it was about 3 degrees Celsius, and the water was pretty tempting.

You can get pretty close to these brazen animals, but do not touch. Occasionally they will grab onto you, but I only saw one instance of this; a group of us were watching a couple monkeys playing and banging against a sign, when an attention-starved lad came up and tugged on one man’s coat to get his attention. Still, they’re pretty aloof to our presence for the most part, and will walk and eat within a few feet of you.

DSC_0106.NEF

I kept thinking of them as terrestrial Ewoks, or furry seven-year-old human children, but the opposable toes are kind of unnerving. They often appear so human that it’s hard to remember that they’re still very wild.

DSC_0239.NEF

They cry and scream at one another, but these noises serve as low-priority warnings more than anything else.

If you even get a chance to visit, take full advantage. Best US$5 I spent in Japan. More photos on flickr.

Tagged with:
 

日本!

I arrived in Japan yesterday for SIGGRAPH Asia 2009. It’s been a long time since I’ve been here, and it’s nice to be back.

It turned out that a few KAUSTicans were on the same flight as me, and we had a good time talking shop while waiting for flights. Good guys – I look forward to hanging out with them at the conference.

It wasn’t until I stepped off the plane and saw that my travel companions didn’t look to be immediately at ease in this country that I realized that Japan is almost a second home. Outside of the US, it’s the country in which I’ve spent the most time, though Japanese is not my strongest second language. Still, I was able to pick up right where I left off in terms of daily life without missing a beat – it’s a different city, but the people and places are recognizable.

Glad to be back, Japan.

 

Flood

Yesterday morning, I woke at 6:15 to the all-to-common fire alarm. Prepared to sleep through it if necessary, I went to my window to check for smoke or anything that might indicate that this wasn’t one of the dozens of false alarms. What I found was rain.

DSC_0052.NEF

Rain like cords was falling in Saudi Arabia. The streets were wet, and excited, I ran to get my camera and started taking pictures. I threw some clothes on, and ran around campus to try to document what I believe to be a very rare event here. I called several of my friends to make sure they were awake and witnessing this.

The rain let up about 7:30, and soaked and I tired I headed back to my building to get some sleep when I encountered several other students who also wanted to just feel the rain on their faces. We walked around campus to see it wet, but ended up surveying the damage. Students had ceilings collapse, water running out of light fixtures, flooding in their apartments – the list goes on.

DSC_0264.NEF

A sunken area of campus had turned into a lake (based on what it’s like when it’s dry, it must be 4 meters deep in some places), and some roads had become impassable rivers. Encountering a couple of students on motorcycles unsure if they should try to cross, I was reminded of Oregon trail. In the end, they forded the river.

DSC_0328.NEF

Tyler and I moved on, the water now thigh-high in the middle of the road. Cars’ mufflers were bubbling through the water, and one had to worry about the wake of passing cars. The womens’ residence was evacuated, and many families packed their kids in the car and left in search of higher ground. The timing was sweet and sour – it was the last day before break and school got cancelled on account of rain, but most students were leaving the country for the week, and some will return to find unlivable and extensively damaged homes.

DSC_0352.NEF

Rains like these are extremely rare in the area, and so I understand the lack of preparation. I don’t understand the shoddy craftsmanship of the homes, but that’s a running issue. Tonight’s Thanksgiving dinner will be a reflective one for certain. One exasperated student, waking to water pouring on him, household wiring fried and water running down the stairs like a waterfall felt that this was the last straw. He seemed to be set on the decision to return home at the earliest possible time.

It seems he’s not alone, and the school is expecting a non-negligible portion of the students to not return after winter break, though some are talking about not returning from Eid break at the end of next week. I hope for all our sakes and for the sake of the school, that the administration can refocus, get their act together and get their sometimes incredible mismanagement under control. We all came because we wanted to see KAUST succeed, and we hope it still can.

DSC_0387.JPG

That said, I would like to offer praise and criticism; the response from emergency services was what I’d expect in a modern country. Water tankers were on the streets, pumping out massive amounts of water, within four hours of the rain. The fire department helped evacuate a number of families, and each student was actually contacted by phone to make sure he had a livable apartment for the time being – those who did not were moved to safe lodgings. My criticism is this – why are not all of our other, very real concerns and problems not pursued with the same tenacity and efficiency. Why did it take a small disaster for KAUST to shine?

I took some more photos as well.

Tagged with:
 

I’ve been around the block a time or two (or more) with subversion, but until recently I had limited experience with git. Sure, every now and then I’ve used it to check out projects, but not for my personal use.

No longer. And as of right now, I don’t have any intention of using anything but git for personal development.

Last week, I held lecture for parallel programming and I talked about using subversion for versioning, and I began to suspect that something was horribly wrong. Questions started springing up – where does the repository live? Am I calling svnadmin on my own machine? Where do I check out the repository? Though there are answers to these questions, for many things, such a model just doesn’t make sense.

If I’m working on a project that I’m not syncing between several computers, but I just want to have different stable versions and to try different crazy ideas using branches. It mitigates the cost of reverting drastic changes to code.

Use Case: You’re showing someone your code, and want to show off a neat feature you’ve made, or a problem you’re encountering, something about the project, invariably you’ve run into a problem where it doesn’t compile at the moment. You type furiously, trying to find and undo the most recent changes, but to no avail – there is no hope of getting it to compile in the 5 minutes you have someone’s attention. Enter version control. Revert to the last working copy and victory is yours.

In fact, just today I was asked if I could pull up some code I had been working on to show to a professor. Unfortunately at the moment it wasn’t compiling but was able to switch versions in 20 seconds and show off some very recent work from earlier in the day, thus saving face.

Use Case: You’ve got some crazy idea for an implementation you’d like to try out, but are worried about reverting back all the massive changes you’ll have to make in the code. Worry not! Create a new branch and feel free to change your code in every way you can think of and not lose other branches under development.

Use Case: You’ve got multiple versions of code each implementing the same basic algorithm but with different mechanisms, techniques, etc. and have to turn it in as part of a project. Just archive the whole directory (in a tarball or zip) and the user who unpacks it has access to every version your code has been in. Each branch, each stage of development. And very light-weight to boot.

I can’t speak for others, but I will be using git for the foreseeable future as it’s incredibly easy to use and alleviates many of the problems I encounter regularly with development.

Tagged with:
 

Compustalgia

In the midst of a new school, having recently left my undergraduate institution, I’ve been relatively nostalgic. I remember my family getting its first computer. It was a Compaq, running just a few MHz, but when my father came home one night with it, it seemed positively magical. I had heard of computers, and seen them at school, but nothing beyond Oregon Trail.

You could change the text of the screen saver, and its font, color, etc. This, I was sure, was awesome.

I was in the fifth grade at this point, and several weeks later my parents were meeting with their accountant in the kitchen. I saw mysterious black box in front of the man that turned out to be a laptop. He was staring at it intently, but from where I was I could see nothing on the screen – viewing angles just weren’t what they are today. I slinked around and tried to catch a glimpse, but I was noticed and my parents remarked on my curiosity saying that I had never seen one before. Slightly embarrassed, I scurried off as children do.

By the time I was in high school, I had learned about Napster, and torrents, and had learned a small amount about the hardware. I bought my first hard drive (120 GB) for about US$100, and though it’s large compared to the 16MB disks of yore, looking back it still seems ridiculously tiny.

I eventually started playing with C++ my junior year, helped out by my friend Michael’s mother, Katja. She was a programmer (and perhaps she still is) at Ball Aerospace, and she helped me to install Cygwin and get a compiler running. At last, I could actually compile and run the code I had been reading about in the books I had picked up from the local library.

I was constantly aware of the differences between my programs and those of the system, an obvious difference in quality and found it easy to lose interest because of the lack of a GUI. All the same, the power was obvious, and it was then that I first became interested in mathematical curiosities like prime numbers and Fibonacci.

When I left for school, I imagined that I might end up in computer science, but I initially registered as an electrical engineer. When I found myself taking more CS courses than EE, I switched and embraced it. Still, I can’t help but wonder about nature vs. nurture and what along the way (besides the obvious) pushed me in that direction. Either way, I do not regret my career choice, and I can’t think of anything else I’d be so regularly inspired to work on.

 

Motion to the Rescue

For the last several weeks, things have been disappearing from my office area. First, a backpack I had left out. I had assumed that people in an academic building full of offices would be trustworthy, perhaps I had this one coming. A couple weeks after that, I went to use my camera only to find it gone. Funny, I thought I locked that drawer. I guess I must have been mistaken. A couple weeks after that, my iPhone gone. This time, I’m certain I locked the drawer, and there are marks on the cabinet that indicate it being forced open.

Fed up with the disappearing devices, my friend Tyler and I set out on a mission. We went into Jeddah, bought a webcam and using the popular (thank to Iain for the link) Linux package motion, we set up a hidden motion-detecting spy cam in our office. We have a Linux box sitting near our desk (we’ve locked it to the floor), and so we hid the camera, trained on the place where most of disappearances had taken place.

A test shot of Tyler as we're setting it up.

A test shot of Tyler as we're setting it up.

What motion does is that every time it detects the picture it sees changing, it takes pictures for five seconds (or until the motion stops – which ever takes longer). It’s supposed to be able to encode a video with ffmpeg on the fly, but as it wasn’t working right for us, we decided to just go ahead and throw it into a script. I wrote a short bash script that just took all the photos, archived them and then generated a video (when dealing with the tens of thousands of photos generated in an average day and night I learned about xargs). It also provides triggers for when motion is captured (for example, if you’d like to update Twitter (via Lifehacker) you can do this with curl).

One night, when bored and filled with anger about the situation, I decided to check the feed and found footage of someone clear-as-day breaking into my cabinet. I first saw it about 20 minutes after the fact, but I was sure the guy was still there. I called Tyler and we quickly deliberated (after getting the opinions of a couple officemates) and we decided to wait until the morning and talk to the security officer.

Looking for goodies.  The man's face is not visible in this shot nor is this frame alone incriminating.  In the context of the video, you can see him gain entry, begin rummaging and removing items.

Looking for goodies. The man's face is not visible in this shot nor is this frame alone incriminating. In the context of the video, you can see him gain entry, begin rummaging and removing items.

We spent some time with them the next morning, giving them footage and printing key frames, and then they said they’d look into it. They assured us they would not involve the local authorities if they didn’t have to (the penalty for such crimes in Saudi Arabia can be quite stiff) and would take care of it discreetly. That night, they arrested four people and recovered a number of electronic devices. They held them as evidence for a bit, but today, I was given back my camera and iPhone (the only really big-ticket items I had stolen).

I am extremely relieved to have these back, especially my camera as I had been wanting to take photos of trips, events, etc. in its absence. Our next step was going to have off-site storage in case the bandits took off with our computer, but it would seem it wasn’t necessary.

Motion: 1, Thieves: 0

Of course, this was not a solo effort by any means. Some system admins and colleagues in the office park offered input, and the evidence wouldn’t have left our webcam if not for the security staff. Thanks, guys.

Tagged with:
 

Movember @ KAUST

Apparently a tradition many places, Mines had an annual “No-Shave November” competition, with prizes. And beards.

This year, after seeing a post about “Movember” (Movember = Mustache + November) on The Art of Manliness, Tyler and I decided enough was enough. It was time to grow beards for charity.

We’re busy students, and we can’t be training to run marathons for testicular cancer, so why not turn something we already do on a daily basis into something useful. Plus, we won’t have to waste time shaving.

A shave on October 31st will be my last for a month. The trick is to push on through past the “pedo-stache” stage and into the manly beard stage. I’ve grown a beard before, but was displeased with it and enough time has passed that it’s time to test the waters again, for, how can one truly know one’s beard without having one?

Movember @ KAUST has a few rules:

There are varying levels of moustached/bearded-ness.

Level 0: the Supporter. This means you support our cause, but are otherwise shaving regularly.

Level 1: the Sophisticate. You allow the growth of the facial hair, but still trim it into a neat moustache or beard.

Level 2: the Chuck Norris. Very minimal shaving. You are allowed to trim if there is unevenness, and do basic styling, but otherwise the amount of growth is way over the usual. Should be a complete beard and moustache if possible.

Level 3: the Castaway. No shaving or facial grooming allowed. Let your facial hair grow wild and free. Wilson! Wilson!

The rules for the month are that, in order to participate, you must increase at least one level from your current growth.

Unfortunately, there aren’t that many ladies on campus to impress with your manliness. On the bright side, though, in Saudi your glorious beard will be more acceptable than in many western countries. And, being graduate students, you certainly won’t be persecuted at work for an “unkempt” appearance.

But its not all about having fun and looking manly, we want some good to come from this event. Find friends and relatives willing to pledge money for your Movember month. Have them pledge a donation to one of the below listed mens-health related charities.

We’re still finalizing our chosen charity, but it looks at this point as if it will be Everyman, a group that helps to fund the Institution of Cancer Research.

UPDATE: We’ve settled on that group, and please feel free to donate!

Good luck, and good growing.

Tagged with:
 

Play

The various dailies I read have all been covering a VW program called The Fun Theory. It’s a contest and entries are supposed to provide evidence that making things fun can influence peoples’ behavior (presumably they mean to influence it positively).

For example, to encourage people to recycle bottles and cans more, a group turned a recycling receptacle into a “Whack-A-Mole” game of sorts. Or mounting giant piano keys (like in the movie Big) on stairs to encourage people to walk up the stairs rather than use the adjacent escalator. The site provides a lot of great videos and statistics:

I’ve mentioned Luis von Ahn before (incidentally he’s the man behind CAPTCHAs – the distorted text websites sometimes ask you to type in). His area of research is human computation, which generally takes the form of turning a repetitive or boring task into a really truly enjoyable game. Sure, it’s advice one’s mother has given them a hundred times, but how many times have you washed the floor with scrub-brush-shoes like in Pipi Longstocking? It’s non-trivial to turn something into a game, but still not a new idea, strictly speaking.

Not only is making monotonous tasks fun a great motivator, but many indicate that play is important. I’ve been watching a lot of TED Talks lately for our upcoming TEDx event, and these Fun Theory projects remind me of one I watched recently:

 

Home

A few days ago, I finally moved into what I’m told will be my permanent residence at KAUST.

I left the United States on August 16th making it almost two months of living out of a suitcase, sleeping in eight different beds in various places and cohabitating with a number of people. It’s far from perfect, but to have a home that will remain the same is enough for now. About half of the possessions I brought with me had not left my suitcase for those two months.

I’m moving furniture around and cleaning this weekend, but I’m very excited to nest. This may very well be where I live for the next several years of my life.

I’d post pictures, but the camera I got this summer (a Nikon D60) was stolen this week. My backpack and headphones preceded it in disappearing, and so my friend Tyler and I will be setting up a hidden spy camera in our office to hopefully get some of our belongings back or at least catch some nefarious individuals as security staff has been less than helpful.