Ah yes, the Pi key

Touché CAPTCHA.

Posted in funny | Tagged: , | 3 Comments, join the conversation!

Kindle for Mac (and PC) is feature deficient

Excerpt from: Amazon.com Help: Kindle for Mac

Can I print or make annotations and highlights on Kindle for PC?

The Kindle for Mac application doesn’t offer the ability to print content. Features not yet available on the Kindle for Mac application include the ability to make notes, highlight or clip text, shop from within the application or search within a book. Text-to-Speech and dictionary look-up are also not available with the Kindle for Mac application.

You can add bookmarks and view highlights and annotations made through other devices.

Translation: You didn’t buy a Kindle, so we don’t like you.

Posted in Uncategorized | Leave a comment, start the conversation!

Note to self

When upgrading to the newest version of WordPress you should back up your theme. I wasn’t thinking and clicked update and all my work vanished. With some late night damage control and I’m presentable again… I sure wish upgrading wasn’t such a hassle. The only reason I did it in the first place was to get the most-secure version of the code. I guess it’s better to be safe than and sorry.

Posted in debugging, wordpress | Tagged: , | Leave a comment, start the conversation!

Typekit turns 1, partners with Adobe

Most the designers I work with use Adobe fonts. Having an easy route to implement the fonts I actually encounter day-to-day is a huge plus. I’ve wanted to use typekit in the past, but haven’t, because you ususally have to make the designer and client compromise on a lesser known font. Perhaps the next project I work on I can get by without Cufon or sIFR. It’s nice to see how quickly @font-face typography is gaining traction (finally!).

Check out typekit’s post about this.

Posted in css, typography | Tagged: , , , | Leave a comment, start the conversation!

Canvas presentation

Here’s a presentation I put together about canvas. I’ll try to get some more detailed tutorials together sooner or later.

Posted in canvas, javascript | Tagged: , | Leave a comment, start the conversation!

Added projects to github

I just added a few projects to github. Here’s the rundown:

  • jQuery Asset Loader – This class is based off an example from Steve Souder’s book Even Faster Websites. Essentially you can load a script OR a stylesheet with a callback function.
  • jQuery Canvas Graphs – This is a Work in Progress. So far I built a pie chart and a bar graph.
  • jQuery Custom Selectbox - This class hides the real selectbox and inserts a JS version. It is keyboard accessible, fast, and fully style-able.

If you have any questions, let me know.

Posted in canvas, css, html5, jQuery, javascript | Tagged: , , | Leave a comment, start the conversation!

Safari personal info hack

Jeremiah Grossman recently published a security vulnerability in Safari that can steal your personal information. The gist of the problem is that an attacker can hide some inputs on their site with field names that normally get autofilled by the browser. Then using JavaScript the attacker can extract information about the user.

Check out this creepy demo in Safari. It found all my info successfully… Luckily I only use Safari for testing. If you want to avoid the problem disable AutoFill web forms in your Safari settings.

Posted in Uncategorized | Tagged: , , | Leave a comment, start the conversation!

Cheap eBooks

Mark Pilgrim wrote this great online book “Dive into HTML5” that you should check out. It’s being released by O’Reilly as “HTML5: Up and Running“. I’m not sure how different the physical copy will be from the online version, but it seems to me that you can either read it online now for free, or wait until August 15th for it to be released as a book and pay $20 for it.

Another tip for getting good content cheap is to download the iPhone app version of O’Reilly books. For example, I downloaded High Performance JavaScript as soon as it came out for $5 and read it by the time it would have taken to get shipped to me. The list price for this book is $35.

Honestly I still prefer a real book over an eBook, however, I’m willing to read on a screen when the price is so cheap. Especially when you live in a small apartment and your bookshelf is overflowing onto the floor…

Posted in workflow | Tagged: | Leave a comment, start the conversation!

jQuery UI Position without jQuery UI

When you go download jQuery UI 1.8.2, you have the option to add the position plugin. If you haven’t heard of it, it’s new to jQuery UI and described as “A utility plugin for positioning elements relative to other elements”. It’s a nice helper for making elements like a modal window, tooltips and other positioned items.

Since it can’t be downloaded as part of UI 1.7.3, My initial instinct was to assume that the position plugin needs jQuery 1.4+ in order to work. As a test I downloaded only the position plugin, and tried it out with jQuery 1.3.2. It seemed to work fine, and wasn’t too shabby of an add-on since it’s ~4k (minified, not gzipped).

I work on a lot of different sites, and don’t always have the latest version of jQuery available, so it’s nice to know that I can use this with older versions of jQuery. Also a plus is that I can grab the UI Position plugin as a standalone item without the bulk of the UI core.

Here’s a proof-of-concept I whipped up using jQuery 1.3.2 and the UI plugin. The only hiccup was that the first time I called the plugin it didn’t center the div correctly in Chrome… But if I called it twice, it was fine. Weird and kludgey, but hey it works… even in IE6. Since this is a useful plugin, and apparently not tied to UI, I’d love to see it included in jQuery Core.

Posted in jQuery, javascript | Tagged: , , , , | Leave a comment, start the conversation!

iPad (and iPhone) debugging

Check this article out: iPad HTTP Debugging with Charles

This approach is extremely useful and has saved me a lot of time. Also, the same tutorial works for the iPhone too. Once you have Charles set up to work with your device there are two main benefits that will help you debug your work.

Viewing HTTP traffic to your iPad site – Great for ensuring resources aren’t returning 404, checking that everything is being cached properly, and no extraneous calls are being made etc…

Mapping production files to your local environment - This is great because you can be viewing your production site, but have Charles point to a JS/CSS file on your desktop so you can test changes on the fly.

Posted in Mobile, debugging, iPad, iPhone, workflow | Tagged: , , , | Leave a comment, start the conversation!