tomhoppe.com

Racing, Web Development, Photography, and Beer...Stuff that matters.

Monday, September 22, 2008

How to make a MacBook Pro hibernate

Since I've had the MacBook Pro I've been wanting it to "hibernate" instead of "sleep" when I close the lid. There are times when I've shut the lid, stuck it into my backpack, just to not look at it again for 3 days over a long weekend. During that time, even in regular sleep mode, the battery dies as the laptop is not all the way off. My Thinkpad on the other hand can fully hibernate, in which it turns itself all the way off and stores its current state to the hdd.

Turns out that the MacBooks have the same mode, but its not an option in the menu. After a little digging, I've found a site that tells you what to do. I've outlined the steps below for "mac noobs" such as myself.

  • Go to Finder, Utilities, Terminal
  • type pmset -g | grep hibernate
  • You should see that your hibernate is set for mode 3. This means when it sleeps, your items are saved to the RAM and power stays on. What you want is to set that to mode 5 which will function just like windows hibernate, and actually turn your laptop all the way off while saving where your state to the hdd.
  • Create two aliases, one to enable mode 5, and another to set back to 3 if you want.
  • Type alias hibernateon="sudo pmset -a hibernatemode 5"
  • Type alias hibernateoff="sudo pmset -a hibernatemode 3"
  • Now when you type hibernateon, it will set that mode to 5. Once you do that, type pmset -g | grep hibernate again to confirm that you are on mode 5
  • Your laptop is now set to hibernate like windows when you close the lid. If you ever want to revert back, run terminal again and type hibernateoff

Labels: ,

Friday, September 19, 2008

How to make iPhone ringtones from MP3s

This is easy as pie. With the below steps, you can take any MP3 and make it into a ringtone for your iPhone.

  • Grab the MP3 you want to turn into a ringtone and using Audacity turn it into an MP3 that is less then 30 seconds in length.
  • Drag the newly shortened file into iTunes
  • Find it in iTunes, right click on it and choose "Convert to AAC". It will make another version of the song.
  • Find that song in your iTunes folder library (probably c:/..../My Documents/My Music/iTunes) and rename if from .m4a to m4r. In iTunes, delete the m4a that you made.
  • In iTunes, go to "file" then "add file to library" and select the newly renamed m4r that you made in the step above
  • Now you can sync with your iPhone and you will have a new ringtone to select.

Labels: ,

Tuesday, September 16, 2008

The Quest for cheap racing radios

In car radios are a very "nice to have" in our amateur racing world. The crappy this is, that a nice radio setup is just south of $1k, while the bottom of the line systems are $600. I had a chance to spend that kind of cash on the race car earlier this year, and correctly opted for the data acquisition package. Having data in the car has allowed me to very quickly pick up time at new race tracks, and also find more time at my home track. Frankly, I don't see a point in even doing practice or test days w/o data.

Back to radios though. I had to buy a helmet headset for a few endurance races I've done, and also my codrives with Lyman last year. With that, I had a small but expensive chunk of the system out of the way. I decided to put together a cheapo system with the rest of the components, and we'll see how it works out

Below are the pieces one needs and how I got them, and for how much.

  • Radios - I found Sampson Racing uses Midland 5 watt radios in their "cheap" radio package. Found mine at Bass Pro Shops for $50 for the pair on closeout. Sweet.
  • Driver - Headset/headphones I had to buy before. $140, no way to get around that one. Any cheaper/crappy mic or headphones and the crew chief cannot hear the driver.
  • Car - Two components needed. The car harness, and PTT. Car harness connects from the driver to the PTT button and to the Radio. I picked this up for $0 since Lyman had a busted connector on his and just bought a new one. Connector needs some re-wiring. We'll see if it works. PTT is $40 from Sampson Racing.
  • Crew Chief - Need a fancy crew chief headset. This needs to be noise cancelling in order to work trackside while cars are going by. Most of the time these are right around $180 or so. I found some on ebay for $100 new. We'll see if that works, but it seems to be the same stuff as the more expensive one.

The above system should work for some of the parts of the race tracks. To have full track coverage, you need nicer (read: $$$$) radios with an external antenna. Depending on finding some used ones, I will do that later, but for right now, I'll settle with having radio communications for the front half of Road Atlanta.

My total outlay so far is $330. Same components, but 1/2 of the price of the bottom of the barrel system, and 1/3 the price of a middle of the road system. We'll see how it works in November at the ARRC

Labels: ,

Monday, September 15, 2008

Working on the Jeep is harder then I thought

Almost done putting the Jeep back together now. We got a heck of a deal on it through craigslist so I couldn't resist pulling the trigger. Its a 4" Superlift with the RockRunner upgraded adjustable control arms.

Figured with the Jeep everything is so much bigger, that it all should just be easier. Well actually couple of those bigger things just make it a pain the ass. The springs are almost 3 freaking feet tall :) Between that, the gigantic control arm that was a pain to put in, to the giant axle, dang.

Last Sunday I started by taking the front suspension off. The nice thing about the big garage and 4 cars, is I can put it back together when I want. Today I finished installing the front suspension and the new extended brake lines. I still have to finish up the rear and then do some brake bleeding. We're going out of town this coming up weekend, so it probably won't be completed for a few more weeks. I'll have some "in progress" pics up soon.

Labels: ,

Monday, September 8, 2008

All we got left is the paint

So the kitchen is 95% done! Cabinets with pimpy soft close sliders are all in. Appliances are in. Finishing touches are almost done. We picked the final paint color tonight and I'll be picking some up tomorrow to get the wall paint finished. After that, the trim/doors are going white and the crown molding gets installed. Finally the stair banister pieces are getting traded out for nice metal ones and we'll be able to call our downstairs "finished" :)

Labels: , ,

Hiking in North Georgia

After the Barber race on Memorial Day weekend, we decided to go hiking on the Amicalola Falls trails around Ellljay, GA. The hiking was pretty good, but like last time, the views weren't quite there. There were more trees then you know what to do with, but no clearings or balds to see any views. We got to stop by the falls and walk the 600 steps to the top. Good exercise :)

This area is the start of the Appalachian trail on the south end. I still want to take a long weekend and go hike some of the trail. We'll see when we get to it

Labels: , ,

Friday, September 5, 2008

Get Parameter from Querystring via Javascript (getParam)

A while back I posted a method to grab all the querystrings out of a URL and parse them into arrays. While that is very useful sometimes, its overkill for other situations, when you have 1 or 2 variables in the querystring and you know their names already. For those times, I like to use a function "getParam". It takes in the variable name and returns you its value from the querystring.

function getParam(name) {
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

Labels: ,

Tuesday, September 2, 2008

Barber!

Fun weekend! First off, the facilities at Barber are top notch. Everything is "F1 Quality". From the manicured grass to the buildings/bathrooms, to the timing tower spectating areas with TV cameras on all the parts of the track.

I've never been to Barber before, so as I posted about previously, I played a bunch of video games to try to get used to the track before I drove it. It was certainly time well spent, as other then the obvious G's that you feel, the visuals were right on with what I was seeing in real life, down to the braking points/zones.

I started out with qualifying on Saturday morning. I was able to use the new Dash3 part of my DL1 to display sector times and lap times, and I was able to run some decent times right off the bat. After only 6 laps on the track, I qualified 2nd in ITA and right after hometown boy Chuck Baader in his BMW, who was sitting on pole. Chuck put in a new motor since last season, and my time was faster then everyone's lap times from this race last year, so I felt pretty good.

In no time at all it was time for the afternoon race. I started on the inside with Chuck in front of me. Got a decent, but not great start and took it easy for the first few turns. In the corkscrew turn, the 3rd place qualifier, Steve, had his air flow meter break and basically stall out on the outside of the turn. Just happens that I was on the inside, and the 4th place car of Willie Phee was right behind Steve. This allowed me to get a huge lead on Willie. By this time Chuck has pretty much checked out on the rest of us, so it was a very boring 15 lap race for me, basically driving around by myself and getting bored.

In nice contrast, Sunday ended up being a lot more exciting. I tried to find more time out there during qualifying, and got closer to Chuck, but still qualified 2nd. This time I got a GREAT start and pulled right alongside of Chuck before turn 1. As we entered Turn 1 three wide, Chuck got hit, and in turn hit me, which sent both of us off into the grass, still on the throttle, not letting up. Steve was able to get by both of us and started off a great battle with Chuck for the lead, while I hung back and watched. I was being held up in the turns by a higher classed (ITS) RX7, which was supposed to be much faster then I was. I ended up hitting him a few times in turns trying to push him out of my way as I couldn't pass him cleanly. After a few laps, he got faster and then started getting in the way of the Chuck/Steve battle ahead of me. In the meantime, my car started overheating a bit. I had a bunch of grass stuck in the radiator opening, and also was right on this RX7's bumper not getting any airflow. I lost focus in a few turns and lost a bit of ground to the lead pack. Chuck ended up passing Steve for the lead and I started reeling both of them in from 3rd. After a few fun laps of chasing and battling, I was able to pass Steve under braking into the hairpin and started to try to chase Chuck down. Unfortunately I wasn't able to come back all the way and ended up in 2nd again, with a 2 second margin to Chuck. Not bad!

All in all, I feel good for this being my first time at Barber. Both Steve and Chuck live within miles of the track and have a lot of experience here. Chuck's 325 BMW is also a lot better here then my car. He's got a LOT more torque to get out of the tight turns, and my car never gets a chance to stretch its legs. Never even get into 5th gear. I also ended up eating two fairly new front tires because of all the wheelspin that I get out of the very slow turns.

Now I take some time off and work on the Jeep/House. Going to start working on the car again in a few weeks to get it ready for the ARRC in November.

Labels: ,