Welcome to my blog. Below is a list of links to my favorite blogs and resources. Recent posts are displayed below that.
Click any of the tags at the top right to show recent posts with the tag of that web language.
If you are interested in my work history, check out my Linked-in profile.
15 Nov 2013
Version 1.0 of iTerm2 for OS X was recently released. They removed one of my favorite features: tab coloring. You used to be able to right click on a tab to change its color. For example, I changed the tab with my ssh connection to our production server would be red and the tab with the ssh connection to our test server would be green.
I looked into it, and there is a way to set the tab color from the command line itself. This turns out to be much more helpful because I can add the following lines to my bash profile:
10 Nov 2013
It turns out that creating an endpiont for an API in WordPress is super easy. Use cases for such a plugin include:
- Add new posts from an external application
- Request data from WordPress such as a feed of latest posts
22 Feb 2013
2 Nov 2012
You may be familiar with the problems related to WordPress
wpautop() function. The most notable problem is that your WordPress pages will leave you with empty paragraphs. The empty paragraphs can't be removed by simply removing
<p></p> with a find and replace. It turns out that the result HTML doesn't actually have
<p></p>. But the empty paragrapsh do show up in the DOM tree.
24 May 2012
25 Apr 2012
delete is "dog slow". When you use
with, V8 has to wait until run time to resolve the scope chain. When you use
delete V8 has to transform your object from a highly-optimized class structure into a slower hash table.
24 Apr 2012
Enabling database sessions with CakePHP 1.3 is super easy. But first I want to cover a few reasons that I know of where you need sessions stored in the database: load-balanced environments and PHP file-locking issues.
7 Feb 2012
I made the switch from Windows 7 to Mac OSX (Lion) for my development laptop. I got a new job and my boss asked me what kind of laptop I wanted to buy. I heard so many of my friends and bloggers talk about how OSX is the ultimate platform for Web Developers. I decided to take the plunge.
I want to report on my progress. First I'll start with the software I'm using.