May 1, 2009
One of the things I absolutely love and have shown off to more than a few people, is how quickly my Mac goes in and out of sleep mode. It means that I can open and close with abandon and not really have to worry about it affecting my productivity. It also means that when I realize I’m running late, I can drop the lid and don’t have to twiddle my thumbs very long (sans Solitaire/WebSudoku) while I wait for everything to spin down. I love this – when it works. Occasionally when I attempt to wake my machine, I will get a totally black screen with no login prompt. The machine appears to be awake but the screen isn’t active. Closing the lid does not put it back to sleep so I have to power cycle the thing to get it going again. I know, I know, everyone is going to give me grief about how Mac just works and whatnot but it’s total bollocks. EVERYTHING has issues. Live with it.
Tweak It
Never one to stop fiddling and exploring, I recently ran across this post where a guy was complaining that they’d messed with the sleep behavior between his trusty Powerbook and the new MacBook. He detailed a tweak that made this already great (albeit occasionally flaky) feature even better along with a good explanation of the details of the change. He claims it’s more reliable but I haven’t had it long enough to say one way or the other yet but I can tell you, my MBP sleeps and wakes nearly instantly now. The only thing that this tweak takes away from you is the ability to swap out batteries while the machine is in sleep mode. Since I didn’t even imagine I could do that and I’m not really sure I would do that anyway since I don’t have any spare batteries, I didn’t feel like I was giving anything up. I’m duplicating the tweak here for reference purposes and you “lazy” folks who aren’t going to go read the original post:
From the terminal, you should check your current mode using:
pmset -g | grep hibernatemode
Then set you machine to use mode 0:
sudo pmset -a hibernatemode 0
And reboot.
If you’d like to clear out the file where the memory was being written to, you can use this:
sudo rm /var/vm/sleepimage
David O’Hara is a Principal with Improving Enterprises in Dallas, Texas.
2 Comments |
Apple, MacBook Pro, Tips |
Permalink
Posted by David O'Hara
April 26, 2009

Background
Recently, I’ve decided to work with Ruby a little more and I’ve been trying to wrap my head around a number of new things. I’m working to put together a series of posts that will detail my exploration but I ran into a nasty issue and wanted to get something up to help anyone else who falls into this little pit.
Setup
I have been using Heroku in my explorations and have come to truly dig their service. These guys know what the heck their doing and really make me feel like I do as well. Anyway, since I needed a CMS for the project I was working on, I grabbed Radiant and started playing. It worked quite well out of the box for me and was supported on Heroku (directions here) so I installed several of the extensions that I needed and pushed it up to Heroku.
Uh oh. No worky.
I pulled down the logs from Heroku, I sent emails to everyone I could think of, I Googled, I re-pushed (yes, I know that’s the definition of insanity), I even shook my fist at the bash shell but could not get it to work.
Resolution
Along the way, I came to find a couple of rather important pieces of info. Heroku doesn’t support Git on the server side (like git-wiki). And Git has sub-modules. These two important details, and the fact that I was unaware of the previously, is what lead to me to grab a copy of what was on the production server (the bundle command on Heroku) and dissect it. The extension directories were completely empty. Because of the sub-modules, Git wasn’t pushing them to Heroku and so the extensions weren’t loaded. Removing the sub-modules and then adding the files from the extensions, followed by a re-push and I was back in business.
Hope this help.
David O’Hara is a Principal with Improving Enterprises in Dallas, Texas.
3 Comments |
Heroku, Radiant CMS, Ruby |
Permalink
Posted by David O'Hara
October 10, 2008
If you’ve ever wondered if you could get into speaking at the local user groups but just haven’t been sure where to get started, then this is the group for you. Whether you need help with that bad case of stage fright or you’re just looking for help in getting that deck/code combo just right, we can help.
And you are??
This group is comprised of some really passionate folks with diverse experiences and styles in technical speaking. We hope to create a highly interactive and focused group that will help to grow and hone those skills that you need to be effective and interesting as a speaker. Come join us and see if we can help you find your voice – hey, we’ll even help you find a speaking spot once you’re ready.
Details
We are happy to announce that we are finally ready to have our first meeting (or so we believe). Granted, this is as new to us as it is to anyone so I’m sure that it’s going to be a process but I’m really looking forward to see what comes of it and I know that we’re going to have a good time helping folks. If you’re interested, please go sign up on CodeZone so we can get you on the attendance list as well as letting you know about future events.
Hope to see you there.
David O’Hara is a Principal with Improving Enterprises in Dallas, Texas.
3 Comments |
Presentation, Presenter Mentor, User Group |
Permalink
Posted by David O'Hara