ugh just wasted an hour tracking down a bug (Objective-C), only to realize i left out a break statement between two case blocks. this ended up looping between the two cases. i seem to recall someone telling me i should avoid switch statements at all cost, because it offers very little benefit (and these bugs are bound to happen). ruby got it right with their "when 1,2,3" style switch statements. on a plus side, i found a royalty-free (donation based) music archive. has a pretty decent collection of reggae music, so i guess i'll be makin g a
checked in bartCheater on GitHub. basically useless to anyone other than myself, but it tells you what reverse-flow train you can take and until what station so you can get a seat on the BART. It runs on Sinatra w/ Prototype, and optimized for my Android G1. It's my first project running Sinatra since tinkering with pinkyurl. Also trying Heroku for the first time and setting it all up was pretty easy. i set up CoolCurlings.com on Heroku as well, and might switch ChoiBean.com into a Sinatra project on Heroku as well.
My passport is supposed to arrive today. Crazy that I ordered it just 9 days ago and it's ready. If it weren't for Veterans' Day Wednesday, it would have been only 8 days. Extremely impressive and efficient for a government branch - my only complaint is they didn't give me the tracking number for the USPS package I am to expect.
It's a good thing I didn't apply for my passport at the citizenship oath ceremony, because we're going to Korea in 3 weeks. Tickets were so cheap it was too good to pass up - something like $570 + tax per person on United. We had to make trips to get Alex's birth certificate and apply for both our passports super-expedited. Off to Seoul for Thanksgiving!
RN: hard drive failure
RN: on a raid 0 setup
HJ: raid 0 = no raid right?
RN: its raid, just no redundancy
BW: complete guide: http://www.ghen.be/raid.jpg
VP: RAID = Redundant Array of Inexpensive Disks
HC: the R in RAID is redundant... so it's more like AID
VP: so, not R
VP: there was one HD
VP: so, we're down to ID
VP: oh, there's an A
VP: so, AID it is
BW: Redundant Array of Broken, Inexpensive Disks
I was sworn in at the Masonic Center Auditorium today. The ceremony was mostly boring but we got to hear Kiet Do speak, and I can finally travel abroad without worrying about it! Now just need to apply for my passport...
video-2009-10-30-14-50-30.3gp (6739 KB)
Finally getting around to upgrading my G1 to 1.6 Donut. I'm really behind the curve since I never upgraded to 1.5 Cupcake! I'll be updating my progress as I go, starting right now around 12:30. My goal is to finish before 2am
Started backing up the current image using Nandroid, as recommended by the wiki. This was mostly brought on by the news of Android 2.0 coming out soon.
Should I do a full wipe? Why not.
Got distracted going through G1 pictures in iPhoto... first hiccup of the installation process - apparently my recovery utility (build JFv1.42) is so old Alt+A doesn't work as "install any zip file". Since I had already wiped my phone, I had to find an SD card reader, rename the zip file as update.zip and now it seems to be going ok.
Great, I was supposed to install both things... I don't think this will work, but I installed HTC's image first, and now I'm installing the modded one. If this doesn't work I may have to install a different recovery utility.
Ugh, things didn't go so well. I may need to go back to the original state with Nandroid.
Ok, I see a new "android" loading screen, so a sigh of relief here. It's stuck at the HTC image, but at least it should boot up now and I should be able to install the better recovery utility from here and pick up from here tomorrow.
Hell yeah, got it working! I now see the same Donut Android loading animation but with the cyanogenmod logo overlaid on the "o." And now it's past 3am and I really should sleep. I'm going to wait a little while and install tethering software, then call it a night.
Tethering software installed, and at 3:20, I'm calling it done: 2 hr 50 min. Going from 1.4 to 1.6, UI looks a lot smoother and just overall "nicer." Can't wait to do this again for 2.0.
So when I noticed that 너구리 ramen has over 2 grams of awesomenesssodium per package, I had to do an experiment. How much can I raise my (already too high) blood pressure by eating it? Naturally, I picked a day when my wife has class, so that she would not find out about this until after the deed had been done.
Picture #1 shows you the nutrition facts, showing 1040mg of Na+ per serving, times two servings per package. That's 86% of my recommended daily sodium intake! Picture #2 shows the other side of the package. Apparently it's also called the RTA ramen (Thanks JR!) because that's what the Korean text looks like upside down. From what I remember this was my favorite ramen growing up in Korea.
Picture #3 shows you my pre-meal b.p. of 136/86. Definitely higher than it should be, though that's about what it usually is. I'd say my blood pressure ranges from between 120/70 to 150/90.
Picture #4 shows you the finished bowl (actually used chopsticks and everything). Normally, I use about 1/2 of the spice packet, because it's too salty otherwise. In order to get the full effect of the sodium contents, I used everything in the packet, and it was saltier than I would have liked. I tried to finish most of the soup also, by adding some rice once I was done with the noodles.
Picture #5 shows you my post-meal b.p. of 150/95, about 10 minutes after finishing - increase of 15 and 10 mmHg, respectively. Not too shabby for a single meal, though it was probably comparable if not worse after my failed pho challenge attempt. My wife (after telling me how stupid this whole thing was) told me that I probably should have waited about 30 mintues after the meal before taking my b.p. again, to get the maximal b.p. So it's possible that the real results may have been higer than 150/95
Moral of the story: consuming 2 grams of sodium in a single meal is generally not a good idea, even if you already have hypertension. Wait what?
Nice 'human' experiment.. You don't have to use the whole soup powder... just use a half of it if you're in love with NeoGuri and want to live long. :)
Summary: if you started an iPhone project before SDK 3.0 came out and all of a sudden you’re (wrongly) seeing a status bar at launch, convert your App-Info.plist to an XML format.
It was supposed to be easy, in the application info plist you need to enable this key
But for some reason this was not working for me. I was pretty sure this was working at some point before, but git bisect wasn’t helping me out. Naturally, I googled around for several hours with no luck, but every time I start a new app, setting UIStatusBarHidden just worked correctly.
It got to a point where I was going to rewrite the whole app (if I had done that from the start, it probably would have taken less time), but then I noticed something - my (bad) Curling-Info.plist file was a pseudo-array like this:
UIStatusBarHidden = YES;
Whereas in the new (good) plist, it was in an XML format:
<?xml version=”1.0” encoding=”UTF-8”?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
I even tried playing around between “true” and “yes” and the only conclusion I can come up with right now is, the XML version just works where the curly brackets fail.
I’m 99% certain that the old way (non-XML) worked with pre-3.0 SDK - it must be some backward-compatibility error Apple introduced with the new SDK. The XML file is (I’m guessing) new in 3.0, and in the process, some of the properties using the curly brackets stopped working.
I forgot to mention that one of the reasons I had to reinstall OSX several times was to try to access my time machine off of the HP MediaSmart. After speaking with HP’s tech support, it was suggested the problem had something to do with the newest Leopard (and subsequently Snow Leopard) doing something that HP’s software didn’t like. This was a bit odd, as I was at one point able to install the HP software with Leopard 10.5.5 (I think).
Anyway, if anyone runs into a problem where they can’t connect to the time machine using HP’s software, this will resolve the issue:
- Using Remote Desktop (from Microsoft)…
- Go to the /Mac directory
- Copy the —-.macbackup file into an accessible directory (I used my user directory)
- Rename the file —-.dmg
- Close Remote Desktop connection
- Now open the dmg file to mount the file and it should be a sufficient work-around if you’re unable to get to the files in it otherwise.
i was going to write an entry about how usps’s placing 24/7 automated
systems was the best idea they’ve ever had, but now this is about the
inadequecy of said machines. i sold 10 books on amazon and could only
send 1 of them because the machines don’t take media mail. now the
wife has to ship those tomorrow, because they don’t even open ‘til
think about placing about 5-10 of those machines in each post office
and keep about 2-3 real people working there. the post office is
definitely a place where self-service > clerks, and this would
definitely cut down on overall long-term expenses.
Because I didn’t read this Friday I ended up reinstalling Snow Leopard and Leopard each about 2-3 times, and now I’m re-re-re-installing OSX. Chronicling the process once again:
23:00 installed OSX. MacPorts & QuickSilver were the first to be installed, and immediately disabled Spotlight.
23:30 Firefox, Thunderbird (haven’t decided if I’d use this), WebKit, VLC, Google notifier, console fonts, iphone SDK+xcode were next
08:50 downloaded my dev folder from Richard’s dev machine. coudln’t untar my App folder, probably privacy issue, oh well.
09:30 Transmission, Handbrake - I always get these two confused. Good thing I drive automatic.
11:30 sudo port install git-core +svn (took forEVER!)
12:00 installed Opera (for Alex’s facebook)
12:30 sudo port install mysql5-server-devel (also taking forever)
12:50 sudo port install mongrel
13:00 off to IHOP!
14:30 sudo env ARCHFLAGS=”-arch i386” (not sure if this is necessary)
14:31 sudo gem install mysql — —with-mysql-config=/opt/local/bin/mysql_config5 (Hmm that’s not working!)
14:35 sudo port install rb-rubygems
14:40 Walmart run!
15:30 replaced bike tire tube
15:40 sudo port install rvm (just for the hell of it)
15:55 sudo gem install rubygems-update
16:00 sudo port install rb-rail
20:00 ok after tackling this and goofing off, figured out I needed to set up launchd and restart the machine, now mysql seems to be working.
21:20 done with dinner… I think I’m done now. messing around with vim colors now
rice cookers may be unitaskers** but it’s physically impossible to cook rice without them. trust me, i’m asian.
* i still love his show good eats.
** you can actually cook potatoes, sweet potatoes, and steam most things in a rice cooker, so technically he’s wrong.
MP: wtf is a retweet
HJ: it's like you're sending a link to a friend
MP: is that it?
HJ: but it's on twitter
HJ: or you said something funny
HJ: and i write your name and the message
HJ: and put it on twitter
MP: all of these people need to get off my metaphorical lawn
HJ: 90% of the time it's marketing spam
HJ: totally retweeting this
HJ: ok RT is more like forwarding a funny email sent by a coworker
MP: so it's basically horrible?
There is a couple houses on my street that always have this turtle “slow down” sign outside their garage. Then they let the kids ride their bikes and whatnot outside. This is fucking lunacy and simply irresponsible parenting. There is a park maybe 500 yards from here, get off your lazy ass and take your kids to the fucking park you piece of shit. These are probably the same fucking people who voted to put up speed bumps that slows down my bicycle every day. Fuck you, I won’t fucking slow down for your kids.
chronicling this headache…
- figure out a lot of things aren’t working
- try to back things up using time machine at work with the old macbook
- time machine stalls, give up on the macbook and try to back things up at home with the new macbook pro
- figure out that time machine is one of the things not working properly
- to get time machine working, reinstall HP software, restart the server once and the macbook pro three times
- start time machine, see that it will take 2-3 hours
- come back after a 3-hr nap to find the power adapter is broken and the macbook pro has powered down - not certain if the time machine backup has finished before the battery died
- (15 hours later) figure out time machine back up was about 80% finished, finish the rest
- re-install osx (about 2 hours)
- and the fun part now is re-installing all the software…
- sudo gem update —include-dependencies
- sudo port install mysql5 +server (oops, apparently this is deprecated)
- sudo port uninstall mysql5 +server
- sudo port install mysql5-server, mongrel, etc
- had to remove Leopard’s rails and replace it with ours: sudo mv /usr/bin/rails /usr/bin/rails.old && sudo ln -s /opt/local/bin/rails /usr/bin/rails
- sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock (and now it’s 3 am)
it’s a shame it was too dark for pictures and he was chugging along so slowly - we totally saw a quadriplegic man driving his chair with his mouth on the highway on the way back from laura and raymond’s wedding [in Charlotte]… words cannot describe the ridiculousness of this spectacle. truly a mind-bottling experience
Finally went to the farmers market - first time this year I think. it's great when we go, except we never wake up before noon on Saturdays. Having a 10am dentist appointment forced us to wake up and enjoy downtown Pleasanton today and meet a persistent kid giving out strawberry samples (we did buy from that shop).
macfuse + macfusion + ssh = i can finally back up all the hd video of alex onto choilaptop and free up some space on this machine - maybe i’ll install win7 again?
at 802.11g speed, i can play redered video ok, but i doubt i could play the actual the original 1080p video. i definitely couldn’t over ftp; can’t try right now since I’m backing up said videos (10+ gigs)
my only complaint right now is the timestamps are all reset to 0 - the weirdest part is that it resets to 1904-based zero day (1904-01-01 00:00:00 GMT) instead of Unix zero day (1970-01-01 00:00:00 GMT), going from mac to ubuntu
HJ: oh yeah that was awesome i saw that on tv
HJ: carl edwards
HJ: is it bad that i know whose car that is AND know when that was?
HJ: that was about a month ago i think
HJ: talladega i think
AM: and u have already reproduced
HJ: "KD is looking for young BD guy [on LinkedIn]."
HJ: ... to rape
JD: BD? what is BD?
HJ: business development
HJ: i think that's a fluff title that says i don't know shit, i don't do shit
JD: he just wants someone in development. Preferably open to ideas.
HJ: willing to be flexible
HJ: go the extra mile
JD: Some experience ideal, but not required. Willing to teach.
HJ: brown nosers a plus - literally, not figuratively
JD: Someone that sees the cup as half full.
HJ: someone willing to be ridden very hard, stay up all night long
and a chat log that has nothing to do with the title of this post:
Matt: great photo
Matt: who's got two thumbs and is the next supreme court justice: THIS GAL
Matt: his name can't be said alone
Got mod_ruby to work with apache on my home ubuntu machine. I wanted to basically replace my php scripts with Ruby without Rails (though I suppose I could have used this chance to learn Python). Setting it up was pretty painless, but this post helped me get over one last problem I was having.
HJ: from the dept of wtf? http://training.oreilly.com/twitterbootcamp/
Matt: Twitter's widely recognized thought leaders
Matt: @TWITTER WTF LOL
HJ: is that like SBC's widely recognized evolution researchers?
HJ: southern baptist convention
Matt: I see SBC and think "small block chevy"
HJ: i see sbc and think that internet company
HJ: something bell
HJ: couldn't think of a better anti-evolution denomination
Matt: small bell chevy
HJ: southern bell chevy
HJ: totally twittering this
So far I’ve gone through Blogger, WordPress, Typo, and I guess I’ll
give tumblr a try.