2010
31
Jul
Category: Mac
Tags: , ,

Really? I have to restart my computer for 6Kb?

2010
25
Jun
Category: Entertainment
Tags: , ,

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

2010
06
Jun
Category: Misc, Self, Website
Tags: ,

Testing out creating a post from my Android phone. Android is so cool!

2010
24
May
Category: Mac, PHP

I use MAMP daily. I love MAMP. I recently discovered how truly awesome MAMP Pro is too. But that’s a story for another time. I recently upgraded from MAMP 1.8.4 to 1.9. When I got MAMP 1.9 installed I started the servers. Apache came up but MySQL didn’t want to. I tried shutting down both servers and starting it back up again, which didn’t work.

Thankfully, there is a pretty simple fix. To begin with, make sure MAMP is shut down. Next, open Terminal. To open Terminal either open Spotlight (Cmd+Space) and type “terminal” or you can find Terminal in the /Applications/Utilities/ folder.

Once you get Terminal opened, type the following:

ps aux | grep mysql 
lsof -i 
killall -9 mysqld

That’s it. Start up MAMP and MySQL will come back up just like normal. Another option would be to simply change the port number MySQL is using in MAMP. Restarting your computer may work too but I did’t try that.

2010
10
May
Category: Entertainment, News
Tags: , ,

Recently, Darth Vader was in the studio recording his voice for TomTom GPS. Makes me wish I had a TomTom instead of a Garmin.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

Be sure to check out the website. C-3PO, Yoda, and Han Solo are coming soon!

2010
10
Apr
Category: Javascript, jQuery

Using document.getElementById(“…”) in plain ol’ Javascript will return a reference the DOM element by the given name. In jQuery, we use $ for everything. So I assumed using $(“#…”) would be the same thing. This is wrong. $(“#…”) will return an associative array (object) which is what allows us to change properties of the DOM element. If I am looking to return the reference to the DOM element alone in jQuery, then you need to use $(“#…”).get(0) which will return the first instance of that object. The zero is important because .get() return an array. So if you have more than one instance of what you are looking for, you can target a specific instance of it.

If you can’t bring yourself to use .get() you can also use $(“#…”)[0] which would do the same thing.