The Unending Ring

For as long as I’ve been in social situations where noisemaking in inappropriate, I’ve had a crippling, irrational fear of one of my devices making some noise and embarrassing me or worse – my Philosophy professor threatened to take away a letter grade (10%) for every Unauthorized Electronic Device Incident. Like everyone should, I check to see if my phone is off and my laptop muted and, probably unlike everyone, compulsively check the silent status of my phone during presentations and meetings. The worst thing that I imagined was that, despite being on silent, one of my devices would start making a noise and not stop until it was powered off, battery removed, or device destroyed. This is especially frightening whenever I have my Macbook – one of the many reasons I always keep a 10-in-1 screwdriver on hand ^_~

Anyway, my fear was rationalized yesterday, when my silent-mode phone started ringing for no reason and DID NOT STOP until it was powered off. The only indication of a call was a notification email from Google Voice, but there was absolutely no indication on the screen of a current phone call, txt, email, alarm, game, missed call, low battery, or anything. There was no vibration that usually accompanies any of my ringtones. No action I could do from the screen would shut it off and the ringing did not stop until the screen was black and the phone was completely off.

The phone in question is a Droid Pro from Motorola running Android 2.2. I was in my car on my way to work at the time (not in a meeting or in class), but still, in any circumstance, this is a Thing that Must Never Happen. Android is a decent OS and I respect what Google has done in making it an open platform. But openness and freedom and 80,000 apps means jack squat if the core OS sends txts to the wrong people, locks up randomly, doesn’t let you save MMS pics or vids*, or rings forever for no reason. These bugs are extremely rare and difficult to replicate for sure, but their very presence leads one to wonder about the complexity, and thus the quality, of the rest of the codebase… =/


* another “feature” of the Droid Pro. The way it displays MMS messages doesn’t seem to be the same as on any other 2.2 handset I’ve seen, so it’s probably Motorola’s fault.

Posted in Soapbox | Tagged , , , , | Leave a comment

Mote Build Log Part 0: Motivation and Wireless Sensor Networks 101

To start off the build log, I’d like to say a few words about the motivation for the project. As background, my Masters research in Computer Science is in the area of Wireless Sensor Networks (WSNs) and, specifically, their application towards useful goals. A central assumption in WSN research is that the sensor nodes – a.k.a “motes” – are small, battery powered devices with limited computational resources. The idea behind this assumption is that WSN nodes should be cheap and ubiquitous, if not disposable. Because they are battery powered and are designed to be placed close together (think one in each room of a building), sensor nodes usually use low-power, short-range radios for communication. Because they are short-range, sensor networks are designed as a “mesh,” where the nodes work together to transmit data from one to another in order to get it to the outside world.

Most of the research that I have read in the WSN field is focused on making that “mesh” work. Routing protocols, Media Access Control (figuring out what nodes can talk and when), and keeping the network running when a node breaks down are popular areas of research. My interest, however, is not so much in these higher-level things – I’m more interested in how WSNs can be deployed in innovative ways in the real world. This is the main motivation behind this project.
Continue reading

Posted in Build Logs | Tagged , , , | 1 Comment

Mote Build Log

Mote prototype

Over the past few months, [Evan] and I have been working on designing some wireless sensor motes based on the Arduino platform. I’ve been posting build photos to Picassa and am working on a detailed write up here. In the meantime, though, here’s the eye-candy :)

Posted in Uncategorized | Tagged , , , , | Leave a comment

Running Minecraft headless on Linux

Everyone loves Minecraft, but it’s kind of a pain to run headless in Linux. Normally, running things that don’t normally daemonize as ‘daemons’ is not that big a deal, just add a `&` to background the process and away you go! Unfortunately, Minecraft has an admin console that you still need to access in order to check status, send messages, ban players, etc. The perfect tool for this is screen, so here are some instructions on getting Minecraft running at startup in a screen session that can be connected to later to issue commands. The second half of the post contains some tips on making the setup friendly in a multi-user environment.

Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Gauss Elimination Functions in Python and Matlab

[This was a page from my old site]

This was an extra credit project for ME260 (Matlab programming/MathCAD). The task was to create a function that solved linear systems usingĀ Gaussian Elimination. Since Matlab and Python parallel each other pretty closely, I thought it would be interesting to write the code in both Matlab and Python usingĀ Scipy and see how the two scripts compared. Scipy is a scientific calculation library for Python, and it provides a lot of functionality found in other calculation software like Matlab. Code after the bump:
Continue reading

Posted in Software | Tagged , , | Leave a comment

Triumphant return of the blag!

Well I’ve finally managed to set up a stable web server that I have root on and plenty of bandwidth to the cloud. I’ve also decided to go with WordPress as the main front-page of the site instead of having two separate sections that have to be maintained separately. Since I can now administer things, I hope to be able to keep this space updated with relevant commentary on the subjects up there in the tagline :)

Enjoy the archives and thanks for reading!

-MH

Posted in The Blog | Leave a comment

1-5-2009

We started the say by going to the 100 yen store and getting some
stuff for Erin’s apartment (a cup to replace one that broke and a
spatula to replace her crappy one). After that, we went back to
nishionomia gardens to buy boots and some more misc stuff for presents.

Shoes!

Continue reading

Posted in Fashion, Japan, Movies, Shoes!, Travel | Leave a comment

1-1-2009: Movies

1-1-2009
new years day, everything was closed, save the video store and the
game store across the street (lawson was open, of cousre). Luas got up
and bought the psp he wanted while danny and i slept.

After “breakfast” We walked over to the station in mukonoso but danny
and Lucas just wound up going to lawson and getting some hamburger
patties and eggs which we cooked for dinner. Lunch/Breakfast for me
was a couple pieces of bread with butter and strawberry jelly. We
watched casshern around breakfast time and watched summer time travel
blues over dinner.

Casshern was probably the most epic
Movie that I’ve ever seen. Style wise, it’s a live action furi kuri;
any filmaking style you can think of was thrown in. Story wise, it was
amazingly epic. Zombies, robot armies, wwii style war steampunk,
romance, sweet jesus…

Summer time machine blues was also most excellent and hillarious.

After dinner,I did some laundry and we sat around and read and blogged
and surfed the web. I also watched a few more episodes of darker thank
black, which is a pretty epic anime. It’s more adult like ghost in the
shell, but it’s animation style is more cartoony, like paprika. I
think we all finally went to bed around 12…

Posted in Anime, Japan, Movies, Travel | Leave a comment

1-2-2009 : Mukonoso, Back to Zerro

slacked during the day, went back to zerro at night. Met Roy
and talked about clubs and stuff to do, computers, etc. Roy owns his
own English school. Roy and I and his buddy talked with the bartender
about ways to dupe the Japanese immigration aurhorites and get her
American passport back (short answer is just to reclaim the American
one and not tell the japanese). Roy’a buddy’s kids apparently have
American, Japanese, and australian passports.

I talked to the other bartender (also works for cinquecento) about
phones and school and part time jobs. I also asked Akimi what her
favorite drink is – 42 below vodka and cherry something…

Some black guy came in looking for his friend, couldn’t find him, so
be came back. I suggested the chicken sandwich and fish and chips. A
discussion ensued where we compared the price/quantity of fish and
chips from uk/Ireland with those in japan.

Posted in Japan, Nightlife, Travel | Leave a comment

New Years:

So finally, the rest of Japan! School is over, so I finally have time to finish it all up. I wrote the next few posts on my iPod while riding on the train to various places, so they might be a little terse, but authentic!

Continue reading

Posted in Japan, Nightlife, Travel | 1 Comment