Hi, I'm Pete Karl. I love semicolons, bulleted lists, lines, boxes, and arrows — I make recipes for the Web.

Articles
Latest

Guide to writing smooth drag & drop Javascript (from scratch): Part I

May 2010

Do you really want to limit your JavaScript repertoire to what you can find in the jQuery plugin library? I'm going to explore (with code examples & practical knowledge) the world of JavaScript drag & drop, and expand what you're capable of. Let's build something completely awesome. From scratch.

see the full post »
Recent

Connect to the Foursquare API via OAuth, Python

Apr 2010

Everyone's talking about Foursquare, and everyone at my office is flipping obsessed. I chose to participate in the nerdiest way possible I guess. The following post will break down (and even explain, kinda) a connection to Foursquare's API using OAuth (and Python).

see the full post »

Updating a LinkedIn Status with a PUT request (using LinkedIn Profile API, Django, Python)

Mar 2010

As part of a recent project, we were asked to set up a system that allowed folks to authenticate using their LinkedIn credentials. We used LinkedIn's Oauth Authentication API, and plugged it into Django's built-in user admin using django-socialauth. I'm writing this short guide because the Internet seems woefully disorganized & underinformed on this topic.

see the full post »

Prevent content copying nicely with a friendly 'no copy' script

Jan 2010

It's miserable. There isn't any way to slice it. Hobbling browsers to keep people from copying your precious content is lame. During my tenure at GateHouse Media (newspaper company), I was asked to create & implement a script that would stop people from copying the content from our articles. "It's ludicrous", I said. If they're driven enough, people will find a way. Why mock them further?

see the full post »

Custom tabbed navigation with coda-slider 2.0

Jan 2010

Believe it or not, this was kind of a pain in the butt. Just enough so that I'm going to belt out a quick blog post about it. It comes down to changing a single line of code in the end, but there are some gotchas I'll share w/you along the way.

see the full post »

Generate Date & Time picking HTML with PHP

Sep 2009

Here's some PHP that generates date & time-picking drop-down menus.

Besides providing someone with a quick HTML-only solution to date/time picking, you can see how I generated the dates using PHP's mktime() and date() methods.

see the full post »
Tweets

24 hours, 6 minutes of cheap, good fun with friends.

Level 42, 1132 dps, near the end of Act II, Nightmare. #diablo3

The work day bars our way, but the will of a Templar is stronger!

RT @hellofisher: I love this. Test your responsive design in IE6. http://t.co/1o8DDL6L /via @idiot

Going to see a man about a bike.

Current status: http://t.co/xGwZcDKr #tryingtosleep

I'm liking my new phone background. ;) http://t.co/60UCTZIn

RT @angustweets: OH "this is going to require ten peanut butter cups"

Today I learned that Torvalds invariably things.

Comments
Recent
hello, for me this is the best solution ... tks
Perfect!! It works Thanks :)
Thank you very much! Saved me a lot of time with this!! Did anyone manage to get the next and previous buttons working? I tried: <div id="coda-nav-right-1" class="coda-nav-right">next</div> and <div id="coda-nav-right-1" class="coda-nav-right">next</div> But when I click on them, it slides to the next slide and waits there half a second, then slides all the way to the last slide, and then goes to a blank one. Can't seem to figure it out. Any ideas?
I LOVE YOU!!!!!!!!!!
Excelente!!!
Excellent, thank you for this script. I do not want to stop people from using the Right Click for legitimate reasons, I just want to make it more difficult for low-down scrapers from taking the Home Page content of my high ranking sites and plastering it all over the web, rendering my unique content as just one in 50, and damaging my rankings :( Very much appreciated
Thank you soooo much!
That's a simple and neat way of doing it.
bravo! just used it and saved myself some bother. thanks
I love you, dude!