December 2007

Block Content and Detect WordPress Preview

Need to block tracking scripts in your WordPress Template when you preview your entries. I have just the way! Just a few lines into your functions.php file and header/footers and you can block Mint or Analytics in WordPress previews.

Read the full article →

Multiple and Dynamic Variable Assignment in PHP

Assigning variables is a core part of any PHP script but there’s many different ways to work with assignments. Assign multiple variables on one line, dynamic variable and references can change the way you think about using variables.

Read the full article →

Evolving Styles: Add, Change Remove Classes with Prototype

Using the Prototype JavaScript library it’s easy to apply, add or remove a class to and from an element. Just few simple lines of JavaScript and you have a whole new interactivity at your fingertips.

Read the full article →

First, Last, Active and Only List Styles With Prototype

It’s easier than ever to apply the classes ‘first, ‘last’, and ‘active’ to your navigation lists using the Prototype Javascript library. Of course this will only work for a JavaScript enabled environment but if you have a list that is out of control, or already requires Javascript, this might be your best solution.

Read the full article →

Simple Hide and Show with Prototype

Hiding and showing elements using Prototype is super easy. We’ll walk through from the most basic hid and show functionality to slightly more complex functionality where you can change the toggle’s text or image.

Read the full article →

Event Observe and Event Listeners with Prototype

My most common mistake with Prototype is not defining elements before i call them with my JavaScript. Using event listeners I can ensure I don’t call on an element until it, or the whole page is loaded, amongst many other reasons.

Read the full article →

Path and Directory Function in PHP

Some great handy PHP functions for dissecting file paths and getting full paths for how they relate to the file you are in. Never again shall we explode or split a string on / or .!

Read the full article →

Repair and Upgrade my Inspiron 600M

After killing my computer a quick upgrade might be just what the hardware doctor ordered.

Read the full article →

Moo Mini Cards Are Being Printed!

I ordered my very first set of Moo mini-cards and I’m so excited. They should get here next week and I can’t wait to see how awesome they are!

Read the full article →

Would I Want to Join the Peace Corp?

Thinking about giving back, would the Peace Corps be for me? Probably not but I felt like I really ought to think it out from both sides before making a decision about whether this is a realistic goal of mine.

Read the full article →