Entries from July 2008

Tuesday, July 15th, 2008

Pass Blocks to Your Markdown Helper

For the new site, I’m going to be using Markdown to handle the formatting of all of my content. I created a simple helper to make things easy:

def markdown(str) RDiscount.new(str).to_html end

(Note: I’m using the RDiscount library instead of BlueCloth, for reasons discussed here)

However, what if I wanted to add a “Read more” link at [...]

Saturday, July 12th, 2008

Redevelopment Update

I put together a quick video showing where I’m at with the new design and backend for KyleSlattery.com. Take a look, and let me know what you think!

Tuesday, July 8th, 2008

PHP Facebook Paginator

While building the Viddler Facebook application, I needed to create a pagination tool that worked just like Facebook’s. After looking at their HTML and their logic of what pages to display, I came up with one, which I’m releasing for anyone to use. The function takes 5 arguments, in the following order:

$base_path: The [...]

Friday, July 4th, 2008

Sebago Lake, Maine

Sometimes, I wonder how I ever get anything productive done up here.