Hi, I'm Pete Karl. I love semicolons, bulleted lists, lines, boxes, and arrows — I make recipes for the Web.
Guide to writing smooth drag & drop Javascript (from scratch): Part I
May 2010Do 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 »Connect to the Foursquare API via OAuth, Python
Apr 2010Everyone'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 2010As 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 2010It'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 2010Believe 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 2009Here'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 »Remember that you're not doing it for the money.
RT @aexmo: base64 is like voodoo. the good kind.
#protip If you're not seeing Xcode 4.2.1 after updating from the App Store, it's because you have to run Install Xcode from ~/Applications
RT @terrycavanagh: List of words containing "meow": meow, meowed, meowing, meows, homeowner
RT @bocoup: Announcing Startup Data Trends – open source Backbone.js app for open source Venture Capital : http://t.co/VmyhViFB
The people at @SportelloBoston are incredibly personable and friendly, from chef, to management, to the counter, and the bakery. #delicious
FINNISH THEM. http://t.co/G2cX7kpj
Current status: http://t.co/d9s027P5
Gentle @jorydotcom issued a pull request on her first day. Bravo!
In honor of my new Twitter background: http://t.co/upJQ7h4t
RT @d6: Some people, when confronted with a problem, think "I know, I'll use multithreading". Nothhw tpe yawrve o oblems.
go to comment »