Blog Posts

How to check if a jquery plugin is installed or available

Most Jquery plugins act a lot like functions. They are attached to the main Jquery object, so essentially all we have to do is check that the function exists and is defined.

Strip Whitespace on save with Aptana

So recently I had a coworker get slightly annoyed with me and my trailing whitespaces at the end of lines. I’m using Aptana and not anything crazy like vim to do my programming work, I don’t actually see the whitespace I’m leaving around. However, they do show up in the…

Fixing the error 0xe800400c or (-48) when syncing to Itunes

Imagine how disappointed I was when I had plugged in my brand new iPad 2 and only to realize that it simply cannot sync with my iTunes. If you’re getting an error messages or weird stuff like: Device Timed Out error message Internal device error An unknown error has…

Installing Ruby on Rails 3 in Windows

So last week I got a little tired of having to reboot my computer to dual-boot in a linux environment so that I could work on Rails stuff. Then I decided to try using Rails in Windows. Here’s a step by step guide on how to install rails in Windows. Install Ruby 1.9 To…

How to read remote files using PHP

When I was implementing pingback functionality in my custom blogging software, I needed to read files from a remote server. As long as allow_url_fopen is enabled in your php.ini configuration you can use HTTP and FTP urls with a majority of the functions that use a…

Using Jquery to disable the enter key

There are times that you do not want a form to automatically submit when a user hits the enter key. Or if you want to do some validation via javascript before you allow the submit to go through. By returning false in the keypress function it tells the browser not to…

Removing empty elements from an array

When dealing with tag inputs from users, I find myself having to make sure they they don’t enter in any blank or empty tags. Then I realized that I needed to find out how to remove undesirable elements not only from the Php side, but also from the Javascript side as…

Case-insensitive replaceAll in Java

How to use a case-insensitive replaceAll in javascript

No more updates to Google Notebook

One of the only Google app (apart from Gmail) that I use the most Google Notebook will have no more updates. Before I signed up to Google I used to keep all of the websites that I thought were useful in my bookmarks and that became really messy really quickly. Also with…

Remove Anchors from a Url in Javascript

Here is something useful that I discovered in my programming for my personal websites. I needed to strip out the anchor portion of a link and leave the rest of the url intact. For example I wanted: http://jelaniharris.com/I-love-apple-pies#comments To look like: http…

Adding a delay to JQuery Functions

Recently I was working on a few functions that I didn’t want to have activated immediately after hovered over a div. I neededthe functions to activate after a half a second of hovering by the user. To do this I created this this piece of code. Let’s go through line by…

First Post!

Well, this is the start to my blog. Hopefully I’ll post here often, but hopefully with something useful each time. I just don’t want to have one of those blogs where you just post because you haven’t posted in awhile. That always leads to apologizing at the beginning of…