Skip navigation

When working with Virtual Machines, you may encounter an issue activating your license of Microsoft Windows. Using Parallels, I ran into this issue as well, as it seemed to use a default Product Key that I didn’t enter.

Read More »

For those of you new to mongoDB, there’s a lot to like… it’s fast and relative easy to get started. When you’ve gotten to the point where you want to make sure your databases are backed, hopefully you can learn from my mistakes. Read More »

Some of you may find that, when encountering a PHP error in your WordPress templates, WordPress is suppressing your error message. This makes it harder to debug and figure out what’s going on. Read More »

Client-Side Browser Detection

When trying to determine what browser your web users are using, there are several schools of thought. Parse the User-Agent string, use conditional comments for IE, or look for features – the latter being the most popular, modern choice when using client-side JavaScript Frameworks.

Server-Side Browser Detection

On the server-side, you would grab the User-Agent string just as you would in JavaScript, and the code is pretty straight-forward. What we’ve also done here is detect a minimum browser version supported, so you could allow only users of Firefox versions 12+, or IE9 and above, for example. Read More »

One of the caveats of using the latest and greatest version of Ruby on Rails seems to be some incompatibilities or flat out failures. One of the things I noticed was a common error, where my version of Rake 0.9.3 beta was too new as the system was expecting Rake 0.9.2.2.

Read More »

I thought I would share some specifications from the Hackintosh I built earlier this year. While it took me many hours of research and implementation, it was all worth it, and I’d do it again. My reasons are simple: I can add higher end components that Apple doesn’t usually offer, and I can save a bunch of money doing it as well.

Read More »

Since Apple has changed a few things with Xcode 4.2, where the /developer folder is no longer created and Xcode becomes an Application, there are a few issues you may run into when trying to install Ruby on Rails.

Read More »

When you make changes to the Apache Configuration file, you will need to start and stop the web server (as the super-user).

Read More »

If you’re new to the Rails 3 Framework, and you come across code examples where they use RAILS_ROOT, RAILS_ENV or RAILS_DEFAULT_LOGGER, you’ll want to use these values instead, since they’ve now been deprecated:

  • RAILS_ROOT becomes Rails.root
  • RAILS_ENV becomes Rails.env
  • RAILS_DEFAULT_LOGGER becomes Rails.logger

I hope someone benefits from this!

Again, for those of you who have tried to read the Apple’s Terms and Conditions on the small screen of your iOS device, here’s the iTunes version dated October 12, 2011. Please be sure to follow @mghtb in your Twitter feed! Read More »