Saturday, April 24, 2010

This post costs nothing

One of my favorite sayings is, "Free advice is worth double what you pay for it."  I primarily use it in reference to mine own suggestions, an acknowledgement of the recipient's freedom to ignore them.  In fact, I do expect whatever advice I give to be helpful, but I don't want to seem like a stereotypical engineer when giving it; engineers, fundamentally, are problem-solvers, and sometimes forget that some problems are not best solved with gizmos.  For example, when a friend complains about a home's messiness, he or she is likely searching for empathy, not a robot to tidy the living quarters.  Simple?  Indeed, but it took me many years to learn this.

I give this disclaimer because I share some computer advice below, though these tips are entirely unsolicited.  I found them non-obvious but useful; YMMV.
  • Firefox has a nasty habit of restarting things when pulling a tab into a new window.  If you rock two or more monitors on your computer as I do, you've probably run into this as you try to, say, move a Youtube video into a new window so you can surf the web while watching.  Doing so causes the video to reset, often having to load from scratch again.  Google Chrome doesn't have this problem, so now I can watch Rachel Maddow whilst browsing BoingBoing without having to arrange the tabs in advance.
  • Ubuntu has an update manager which keeps most of my software up-to-date, but standalone programs (without their own update managers) on any OS can languish.  Since remembering to check for updates manually is tedious, look for an RSS feed on the software's download page.  By subscribing to the feed, you'll effectively create your own update manager.
  • Set up nightly, automated backups.  This is basic stuff, but an alarmingly large number of intelligent and computer-savvy people don't do this critically important task*.  There are a plurality of free, excellent tools for this; try searching Lifehacker to find one that suits you.  Hard drives die, but their death doesn't have to ruin your week.
My semester is drawing to a close, as next week is the last week of classes, and finals will directly follow that.  I will have to put forth a Herculean effort to get there successfully; I still have heaps of lab reports to grade, major studying to do, and a robot to (proverbially) get into gear.  I've written this post a day early as part of my effort to complete my obligations for the weekend in advance.  Between now and Sunday, I hope to make significant progress on all of those fronts.  Normalizing my sleep schedule is also a priority.

While my last scheduled academic obligation is on the 5th of May, I won't move out until the 8th.  I'm looking forward to the time off, to a chance to hang out with friends, but equally excited about moving home for the summer.  Surely I jest- after all, here at Purdue I'm free to keep whatever hours I wish.  But no, I am serious, if only because I won't have to put up with bullshit like this.

I've stripped this of its EXIF data, but let me assure you that I took this today

Of all the faults that people may have, I consider apathy to be among the worst.  Unfortunately, it is also one of the more persistent; shame and ridicule don't work when the subject is something considered unimportant.  Yes, in the larger scheme of things, replacing an empty roll of toilet paper is not essential, but the thinking behind it, considering the feelings of others, is.

-Jeff

P.S.  Yes, I've replaced the roll.

*: Security expert Bruce Schneier has this to say about what one should do for practical computer safety: "Backup.  Backup, backup, backup.  You're going to get whacked sooner or later, and the best thing you can do for yourself is to make regular backups."

Monday, April 19, 2010

Christ, what an asshole

The relationship between cause and effect is essential to sanity; when this no longer holds, things become irrational as the search for correlation begins.  Such was the case last Friday when I was working on the robot.  Though I was tired from having just TA'ed for some four hours, I was excited to test some new code I had written the night before. But I didn't get to that point-- old code, code that had been working for a week, was suddenly failing, in seemingly fundamental ways.  I traced the error to some variables that weren't getting copied properly; perhaps things worked before due to some special conditions.  The changes resolved that error, but now things further down the line were crashing and burning.  After a few iterations of playing this error cat-and-mouse game, I gave up for a while, opting to have some much-delayed supper and change clothes in light of the unexpectedly cool evening.  As I put on my jeans, my mind puzzled over the cause of the colossal errors.  I wondered if the cause lay at my feet: the green shorts I had worn!  I am not superstitious in the least, but in moments where nothing makes sense, anything seems possible.

I returned to the lab, but of course the problem had not miraculously fixed itself.  I was fairly despondent as YJ and I chatted before he left.  He told me not to work to hard, trying to cheer me up as always.  I resumed my labor and within a few minutes, I spotted the error: too little memory was allocated to the method, causing erratic results.  I reverted my code to the copy on the repository and made the fix-- success.  Referring to the microcontroller, I spoke aloud the words that had been going through my head for the last few hours: "Christ, what an asshole."*

Sorry for the oddly cropped photo - removing faces while keeping the object in question isn't always pretty

This week was Spring Fest at Purdue, an event largely featuring the entomology and agriculture departments, where the local community is invited for family activities.  I went to the fair with SB, his family, and his girlfriend, and had a great afternoon.  SB kindly shared one of the chocolate-dipped crickets he bought with me: chocolate-y, crispy, and a flavor I can't adequately describe, but by which I was not wholly displeased.  Prior to the entomophagy, we walked around an exhibit showcasing insect collections (we declined the insect petting zoo due to its surprisingly long line). This was of great interest to me, as I am a bit of an armchair entomologist.  However, it only occurred to me as we were preparing to leave that I should examine the insects for novel mechanical principles that I could apply to future robots.  Biomimicry is a common practice in robotics, often yielding simple machines that perform remarkably well.  On the bright side, this does give me an excuse to check out more insect exhibits.

Various friends have given me tips for studying on the weekend, including JB who suggests earplugs over the noise-isolating headphones I have now.  Thanks to everyone for their suggestions; I now have a few study locations and techniques to use.  Unfortunately, I didn't get to employ them, as yesterday was spent on compulsory work and today was mostly squandered.  I will be tackling my preponderance of lab reports to be graded next; anyone have any tips for how forego sleep?**  ^_^

Finally, I have begun thinking about how I would like to spend my summer, or at least the time that won't be spent working.  There are a few projects that I would like to do that are related to sleeping, or more appropriately, its cessation:
  • Pulse (heart rate) sensor
  • Hack toy for cheap EEG
    • Integrate these with an alarm system to continue alerting if I appear to still be sleeping
  • Artificial sunrise using high-power LEDs
The last one will prove necessary, as the room that I will have next fall will not have a window.  I would love to deploy such a system now, but alas, I currently share a room.  My hope is that such an arrangement will promote a more regular sleep schedule, bringing broad benefits to my academic work.  Another project in the works is devising a special post to commemorate the one-year anniversary of JMaP.  It's over a month away, but I want to do something fairly different.  I was thinking about doing an audio post, possibly featuring a radio show skit I've been considering for a few weeks.  But JMaP is for you all, so if you have a way in which you would like to see me mark JMaP's birthday, let me know.

I'm debating whether to stay up tonight or sleep now, but either way I have to go.  Thanks for reading-- goodnight!

-Jeff


*: When I began this blog, I said that I would not be posting things from elsewhere on the net; that's not what you have come here to see, and plenty of other sites do that perfectly well.  But I should mention that this line and title reference a recent observation that "Christ, what an asshole" works as a punchline to almost any comic (link is down at time of posting).  While this is no groundbreaking innovation in the field of joke study, I found it somewhat amusing.
**: I've considered polyphasic sleep (micro-naps replacing extended rest) as my sleep schedule is already irregular and malleable, but I've heard few reports of people using it with great success.

Sunday, April 11, 2010

Purdue (University)

At the risk of sounding inane, Purdue is a university.  This is apparent most of the time, as students pack classrooms and libraries, studying intently.  However, it does not seem like Purdue is much of a university on weekends.  Students are likely to be out roaming the quad, with frizbee rather than book in hand.  "But Jeff," you protest, "surely you are only being bitter about having to study over the weekend, right?"  Admittedly, I would prefer doing the following instead of pouring over notes and assignments: going to a informal gathering of the Starcraft club, watching our team play the SC match that determines if we advance to the playoffs, and several other (non-SC!) related opportunities to hang out with friends.  But no, it is not pure bitterness; Purdue doesn't have anywhere to study on the weekends. 

Allow me to illustrate my point:  On Saturday afternoon I rode around for an hour searching for a a quiet nook in which to study.  I first went to my electronics lab, which is empty on the weekends.  I had just placed my key in the door when the building fire alarm went off.  I retreated from the siren, going to the graduate library nearby.  The library was closing in 10 minutes-- drat.  I decided to try a different, larger library, but again I was turned away, as the place was also closing.  A computer lab in a building that is usually open late?  I didn't get past the front door.  Eventually I found a basement classroom in a building that is open 24/7, occupied only by another student who seemed to be there for the same reason.  I had difficulty focusing, hindered by the oppressive air conditioning and tiny desk space.  What the hell?  While I understand that a university is more than simply a place for study, that many people go out and enjoy themselves on the weekend, surely there should be at least one place dedicated to the fastidious studiers among us?  I cannot count my apartment as a suitable choice, as my roommate's milling about and general noise-making distracts me even more than I distract myself.  Next year I'll have my own room, but that doesn't address either the larger problem or the situation today.

To be clear, I'm currently studying for a test on which I have to do quite well.  I did poorly on the previous two exams, although the class averages were not much better.  While class averages in the 50th percentile are familiar to mechanical engineering students, I can't remember being in this situation before, so I'm not certain how the professor will curve the grades.  I haven't done enough to help myself succeed in the class, but I'll study during all waking hours before the exam on Tuesday morning in an attempt to prepare.  One reason why I haven't spent as much time on that class as I ought to have is because I've spent so much time working on my robot project.  I've spent many an hour soldering over the past week, to say nothing of the time programming.  The language used by the microcontroller is quirky, particularly when it comes to pointers.  Sometimes it feels like an instruction will do exactly what the manual says, except on opposing Tuesdays or if you are wearing green shorts.

I did get to have some fun this weekend, as I played doubles tennis with SB, JP, and another friend on Saturday afternoon.  It had been a while since I had seen SB, but with the weather being conducive to outside sports, we are planning on getting together more often.

My attempts to avoid high-fructose corn syrup were again thwarted as I learned yet another food I had been enjoying was rife with the stuff.  I can't espouse the measure, as I have yet to see any empirical benefits from having removed the ingredient from my diet*, but it has had an interesting, incidental plus.  In having to look beyond my standard fare, I have noticed other food and drink that I normally would not have considered.  For example, most of the energy drinks that I enjoy contain HFCS, but I have recently discovered a product called Steaz Energy that is void of HFCS and tastes decent.  In the days of old, I would have put on my drink-reviewing hat**, but I'll demur.

Finally, looking ahead, the coming week is going to be busy.  I've put off grading lab reports until after my test, and I have much more work to do on my robotics project.  Nevertheless, these things will be done during the week, and at least then, I can do them someplace quiet.

-Jeff


*: I am perpetually annoyed by reports of someone adding or removing something from their diet and proclaiming that doing so has turned their life around.  The benefits that the people see are generally psychosomatic but are taken as having been the direct results of the change.
**: I had once planned to start a website devoted to energy drink reviews, when the beverages were in vogue about five years ago.  I never got off the ground with it.

Sunday, April 4, 2010

12:00 is closer still

Today is Easter Sunday for Christians, and what I believe to be the first Easter that I have not spent with my family.  Most of you know that I am an atheist, as is my brother, but our family gathers every Easter as my parents are both Christians.  The four of us do not gather more than ten times a year, so it's somewhat noteworthy that I wasn't around to join them.  These uncommon occasions are pleasant opportunities to see everyone and I would have like to have gone home, but I had work piled up and couldn't afford to put things off any further.  The difference in religious beliefs does not diminish the occasion, as my parents do not try to cajole my brother or me into going to church, and we don't disparage their beliefs.  It has been about five years since I went from apostle to apostate and even longer for my sibling, so any tension has long since dissipated.  As the day is important to our family, I called home to chat with my parents, and likely will touch base with my brother soon.

The past week has been about as vanilla as my weeks get, brightened by talking with several friends from home and IIT.  I've managed to dodge HFCS this week (to the best of my knowledge), but the foods that I've been eating in its stead are probably not that much better.  Still, it felt good loading up on fruit rather than fruit-flavored foodstuffs at the store.  Tonight I spent about two hours watching my friends at Starcraft Club play in the college league, which was pretty exciting.  There isn't much else on my mind tonight (a good sign), so I'll share an anecdote from the last week.

I've been taking care of logistics with [redacted], and got a laugh when I received a particular email from them.  The email stated that, as a modern company, they ask employees to fill out paperwork online.  Clicking on the link to do so, I was presented with a notice informing me that my browser (Firefox 3.5.x) was not supported, and that I should switch to Internet Explorer 5 or 6 >_<  Just as a point of reference, if you switch your useragent to appear like IE6 or earlier to YouTube, they explicitly tell you that your browser is too old and provide you with links to contemporary browsers.  The [redacted] site let me through when I guised myself so, but a few things didn't work properly.  I'll have to go to the computer lab to finish, as I doubt that there is a version of IE for Linux.

Finally, I would like to apologize for the blander writing style in some of the more recent posts.  I always read, reread, and edit my posts, but I haven't been putting enough thought into artful wording as of late.  I'm glad when people read my posts, and taking time to be playful with my word choice is my attempt to make doing so enjoyable.

Goodnight!
-Jeff