Hi, I'm Pete Karl. I like to refresh web pages, hit tab, and yell at acronyms — I call it Web Development.

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

RT @refreshroc: First 4 sponsors to donate $800+ to @refreshroc get a ticket to ANY An Event Apart conf! ($95 off) http://kck.st/aJD4bf

Chrome 6 is out, folks #incaseyoudidntknow http://bit.ly/aUKl9y

I am destroying the @bocoup office this morning! By which I mean, I'm twitching and sipping coffee.

Find: /<(\/)?li(\s)?/

Replace: <$1p$2

die proud.

RT @Blue_Crab: Boss, if you would just get a fb account and spend a few minutes on bejeweled, you would understand why this project is t ...

Good notions about apps having an 'app bubble' about them. http://bit.ly/btc01x. I'd like to agree.

RT @kadamwhite: It is one million degrees at @bocoup loft.

Oh that @boazsender!

Fudge, that requires Safari on OSX; I take it back.

O HAI Apple live stream link http://bit.ly/cx4Y4B

You were wondering what different sorting algorithms *sounded* like, right? http://bit.ly/a9KOxH!

Next @bocoup event is tonight! @jonathanstark will be talking mobile jquery, jqtouch, mobile development at 6:30PM http://bit.ly/9XJjc3

RT @leedrake: YEAH #ROC IS #1! #EOTF Rochester Public Market voted as the #1 "large market" public market in the US! http://bit.ly/9eumR1

Comments
Recent
Great work, thanks!
Saved me alot of time thanks!
http://developer.yahoo.com/weather/ there is a new rss urls. Thank you very much for sharing..
Thanks a lot !!!!!!!
It works like a charm! Thanks!
Fixed! Thanks, I imagine everybody who uses this plugin would want a better looking nav than what the plugin creates by default. He's got to get that example fixed!
Take at look at the code on here: http://theyrenearlywed.com Those links will look like this: <a class="xtrig" rel="coda-slider-1" href="#3">In-panel nav to Annoying Things * Add the class 'xtrig' in order to make Coda Slider attach an event listener * add the rel to tell Coda Slider what slider it's dealing with here * add the href equal to the assignment in your custom nav. (#3 in this case)
Ha! Every day is amateur design day for me :D
Thanks for helping out :)
The same navigation in two places, eh? I'm assuming that cutting & pasting the example nav didn't work out for you. I think you may be out of luck here. As the ID's used in the nav might indicate, the slider library will only work with a single custom nav. It parses the ID apart, and IDs are unique, so having two is not in the cards here.