My New Apartment

All Posts 1 Comment »

I’ve recently moved to Westlake, OH to be closer to work. I took some pictures of the new place, before and after clean-up.

The den/office looks small in the photo but is actually big enough to be another bedroom. I didn’t photograph the bathroom, but it has a beautiful marble countertop. It also has a custom tapestry that my mom made. I would have photographed it but I think toilets are ugly. I also have a walk-in closet. Cool.

One of my favorite features is the patio, where I’ve got my grill and a table. I can access the patio from both the living room and my bedroom. It’s a pretty nice place to do some grilling, have parties, play cornhole (on the green space beyond the patio), etc. When the weather is nicer, I’ll photograph that too.

Here are the photos:
My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment My New Apartment

Originals are on Flickr

Popularity: 8% [?]

Parallelized batch media transcoding using bash and ffmpeg

All Posts No Comments »

Thanks to Dave Matthews Band’s liberal taping policy, there are hundreds of DMB concerts available for free on the internet (see bt.etree.org for DMB and others). Most of these concerts are encoded in the lossless audio format FLAC. Unfortunately, iTunes (and consequently the iPhone or iPod) doesn’t read FLAC files. I have downloaded about 30 concerts and I was thinking of a way I could convert all of them from FLAC to something that iTunes can import, like AAC. Converting each song one at a time would take a while, so I also wanted to parallelize the process. Encoding a single file is, of course, completely independent.

A simple Bash script did the trick:

#!/bin/bash
for i in $(find . -type f -name "*.flac")
do
        _basename=${i%.*}
        if [[ ! -e ${_basename}.m4a ]]
        then
                ffmpeg -acodec mpeg4aac -ab 128000 -i "${_basename}.flac" "${_basename}.m4a"
        fi
done

Just pass in a list of files and test to see if the destination file exists before converting the original. Run one instance for each CPU core that you have. When I did this a few months ago, I had four available cores between two machines (I’ve since purchased a dual core Macbook and a dual core Mac Mini), so instead of encoding one file at a time, I was able to do 4 files at a time.

Popularity: 8% [?]

Recipe: Heartburn Hotel Panini Sandwich

All Posts, Cooking No Comments »

Don’t get me wrong - I like to cook - but a lot times I just want a quick meal that is filling and delicious.  Usually hot sandwiches meet that requirement.  And, I have a Foreman grill that I also use as a panini press.  One sandwich I like to make is what I call the Heartburn Hotel.

Ingredients:

  • Two slices of rye bread
  • Sara Lee Buffalo Turkey
  • Smoked Ham
  • Pepperoni
  • Spicy Mustard
  • Cheddar Cheese

I usually take each slice of turkey and ham and dry it off with a paper towel.  Then, I just stack the deli meats and top it off with the pepperoni and the cheddar cheese.  I let the Foreman heat up while I do this, so that my sandwich grills faster.  When the cheese is melted and looking delicious, it’s done.  Pry open one side and apply a generous amount of the spicy mustard.

Tip: Wrap your deli meats in paper towels once when you get home from the grocery store and then a second time about a day later.  It will keep them fresh a few days longer than usual.

Popularity: 22% [?]

Recipe: Tilapia in Panko Crumbs with Soy Sauce

All Posts, Cooking No Comments »

Simple recipe that I just tried, takes just about 10 minutes or so to make…

Ingredients:

  • Two thawed Tilapia fillets
  • Panko Crumbs
  • Soy Sauce
  • Canola Oil
  • 1 egg

Instructions:

Start heating the skillet to medium heat.  Use enough oil to cover bottom with about 2mm of oil.  Beat egg in a small mixing bowl, adding maybe a tablespoon or two of water.  Once skillet is to temperature, bathe fillets in egg and roll in panko crumbs (in another container).  Then place fillet in skillet for about 5 minutes or until the panko crumbs are brown and the fish is thoroughly cooked.  Serve with soy sauce to taste.

I also made up some Bob Evans garlic mashed potatoes - I don’t have a stand mixer so I have to outsource my side dishes sometimes.

Popularity: 23% [?]

Randomizing A Table In MySQL

All Posts, Computers No Comments »

I’m working on a project right now where I want to collect a Network ID (for prize-drawing purposes) from a survey participant but I don’t want it to be able to be tied to their response.  Even if there’s no relational connection through keys or anything, just the fact that the order of the network IDs in the table matches the order of survey responses is enough for correlation.

I tried alter table netIDs order by rand(); but that gave me an error. I used the Google and found a decent solution which I modified for my purposes:

set autocommit=0;
begin work;
insert into netIDs values ('$netID');
create table netIDs_temp like netIDs;
insert into netIDs_temp (select * from netIDs order by rand());
truncate netIDs;
insert into netIDs (select * from netIDs_temp);
drop table netIDs_temp;
commit;

I wanted to wrap the whole operation in a transaction for atomicity - losing network IDs while keeping responses would be a nightmare, not to mention a violation of research ethics.

Popularity: 30% [?]

Bed Time Check List

All Posts No Comments »

(a.k.a. what tabs do I keep permanently open in my browser?)

Before I go to sleep (and many other times during the day), I check:

Tomorrow’s forecast (noaa.gov)
Tomorrow’s schedule (Google Calendar)
Any unread items in Google Reader?
Anything new on Forum.case.edu?
Any new updates on Facebook?
Any new posts on Twitter?
Any new e-mail?

Sleep.

Popularity: 28% [?]

Now on FriendFeed

All Posts No Comments »

I’ve been hearing about FriendFeed on and off for the last few months and I decided to give it a try.  Friendfeed is a service that lets you aggregate your friends’ online presences.  I’m able to track what my friends upload to Flickr, post on Twitter, share in Google Reader, upmod on Reddit, and so on.

So why not just grab RSS feeds for these things and follow it all from Google Reader?  Well, for one, FriendFeed will automatically start showing me updates from services that my friends have just added. So, there’s no need for them to announce they’ve just joined X service.  And it will also let me comment on their updates as well.

I’ll be experimenting with the service for the next few weeks and see what I can do with it.  I’ve already replaced the Twitter Updates widget in my side bar with my FriendFeed widget.  I’m planning on changing my blog theme soon, so the widget won’t clash so much with the current theme (although you can customize it with CSS, but I don’t have the time to do that right now.)

And if you want to check out my page, here it is: http://friendfeed.com/alexhutnik.

P.S. I just found out/remembered that fellow Case student Ben Golub works for FriendFeed.  Nice work, Ben!

Popularity: 27% [?]

iTunes Music Library Visualization

All Posts, Computers 2 Comments »

Inspired by this post I decided to put my iTunes library through wordle:

Unfortunately they don’t have larger thumbnails.

Popularity: 43% [?]

How fast is the iPhone 3G?

All Posts No Comments »

I decided to test my iPhone 3G on EDGE, 3G, Wifi, and Wifi + VPN using testmyiphone.com.

Here are my results.

EDGE:

EDGE

3G:

 

3G

WiFi:

WiFi

WiFi + VPN:

WiFi + VPN

I don’t really know why using the VPN is slower, but it could have just been a fluke.  I only ran the test once and the first time it said I was getting 80kbps downstream.  Definitely an error there.  Also the site caused my phone to lock up.

Popularity: 35% [?]

How I Manage My Own Data Storage

All Posts, Computers, Linux No Comments »

I’ve been (seriously) playing with computers since I was about 12 years old.  So in the last 10 years or so, one of the things I’ve always tried to remain conscious of is how reliable (or unreliable) my computer is.  No one likes it when their computer breaks (not even someone who is talented at fixing them).  For me, this concern has been brought on by the stress of losing data that, in hindsight, may not have been all that important.  But, it was a data loss nonetheless and no one likes it when it happens.

So when I was in high school, my first strategy was to put my OS on a different drive than my user data.  I figured that the system drive would experience many more read/writes than the data drive, because of paging and other things.  So, it would be more prone to stress than a data drive that gets used less vigorously.  I kept this strategy for several years.  I was lucky enough to replace drives before they failed (as all drives do).

But, when I got to Case, I was exposed to a ridiculously fast fiber optic network that made it even easier to fill my hard drive with junk I probably don’t need.  I needed a storage solution that met a few objectives:

  • It had to be a relatively large amount available storage.
  • It had to provide some level of fault-tolerance
  • It had to run on Linux, since I was tired of switching between Linux and Windows Server 2003.  I chose Linux and I was sticking with it.

So I built a 1.2TB software RAID5 array. There’s a pic missing on that page, I’ll see if I can locate it or take another.  I also have some other items to add to that page, including benchmarks and other info.  The RAID array is terrific.  It’s survived one and a half drive failures (one legitimate drive failure and half a drive failure that I simulated by yanking a disc while it was on).  Rebuilding the array takes several hours, but that’s to be expected.  More on that when I update that post.

So of course, even with local data fault-tolerance, I want to have an off-site backup service.  At first I was using Dreamhost, but they tried to extort a bunch of money out of me to use my storage space for backups.  It was really shady.  But it did force me to look elsewhere, and I’m glad I did.  I wanted a cross-platform solution (given the heterogenous nature of my current computer collection).  So I selected JungleDisk, which uses Amazon’s S3 web service for data storage.  I pay a pitance (maybe a couple of dollars per month, if that) to store about 20GB of data.  Backups happen nightly (or however often you select).

I use JungleDisk to backup all of the documents I’ve written in college, all of the code I’ve written, all of my digital photos, my encrypted password database, and a dump of my MySQL databases.  Everything is encrypted before it even leaves my computer.  The client runs right on my file server and just works.  It’s an absolutely terrific product.  My only complaint (a feature request, really) is that I wish it would e-mail me a copy of its log file every time a backup occurs.  That way I know if it was successful and what was transferred.

I foresee keeping this setup for quite a while.

Updates: I added an extra drive to the RAID array.  A few quick terminal commands later and I’m up to 1.5TB.  Also, JungleDisk added a reporting option.  You can get an e-mail when a backup job completes but if you want details you have to pay for their monthly service.

Popularity: 43% [?]

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in