How to automatically process digital orders with PayPal

It's not trivial to set up PayPal IPN (Instant Payment Notification). It requires a free Business (Premium) PayPal account, a web hosting account with PHP support, configured to allow creating HTTP socket connections using "fsockopen" function, a MySQL database set up on your web server, a mailing mechanism (for sending the product to the buyer) and a free Gmail account. It may seem like a lot, but everything except the web hosting server (which you probably already have) is free, and once it is fully...
read more

How to use the Device Orientation API

Today we have mobile devices that come equipped with everything from cameras to geolocation, and we have little computers in our hands that can do pretty much anything we do with our desktop. One of the key APIs that functions with mobile devices is the Device Orientation API. The Device Orientation API helps us as developers detect the orientation of the user's screen and make the necessary changes to our layout. For example, on YouTube, if you are watching a video and you tilt your phone, the video goes...
read more

Deal of the week: Full Smashing Library

Smashing Magazine always produces high-quality articles, loved by designers and developers alike. And that same quality carries over to their awesome eBooks. The Smashing Library is a collection of more than 60 eBooks that is continually being updated; it’s an amazing resource for web design newbies, and old-hands alike. And with each book averaging 175 pages, it’s sure to keep you busy learning for a whole year. So we’re delighted that, due to huge demand, our sister-site, MightyDeals.com, has...
read more

How to build Growl-style notifications with jQuery

Mac OSX is able to display message notifications — still referred to as Growl messages, despite the fact that the big cat moniker is no longer applied to versions. Many applications send Growl messages to the OS to let the user know that an action has just occurred. Wouldn’t it be nice to use messages like this on our websites? I think so. In this tutorial we’ll construct a notification like this with HTML, CSS3 and a little jQuery. Growl message functionality ... When more than one message is displayed,...
read more

How to enhance HTML5 gaming with the Gamepad API

One of the big obstacles in designing a game in HTML5 is that the popular gamepad hardware isn't available. Nobody wants to play a game with keyboard buttons, so the arrival of the Gamepad API brings us a lot closer to console-style gaming in the browser. Browser support ... At the time of writing, the only browsers that support the Gamepad API are Chrome and Firefox — the latest version of each working unprefixed. However, the more we use this API, the more browser manufacturers will support it, and as...
read more

Deal of the week: 100 professional fonts designed by Ingimage

We can never get enough fonts, so we’re always extra excited when our sister-site, MightyDeals.com, manages to pull together a super fonts deal. This week, MightyDeals are offering 100+ professional grade fonts, for just $19, that’s just $0.19 per font! Designed by Ingimage, this collection, which includes both display and body fonts, is bound to keep even the most hungry of typophile’s busy. There’s all kinds of font-goodness in here, from the hand-writtern delights of Vicentino,...
read more

How to edit text faster with Vim’s command mode

Stick around code nerds long enough, and we'll start talking about text editors. Eventually, one might (or, if you're discussing this on the Internet, one certainly will) bring up Vim. Ah, Vim: the text editor that many command-line users love. Here's what happened to me: I was looking into new software with which to write my articles and synchronize them to Evernote. Through a convoluted series of events which I shall not describe here, I ended up spending a couple of hours learning to use Vim. I'm...
read more

How to use the Battery API

The more demanding our web apps become, the more power we draw from devices. On desktop, where we can be sure that the device is plugged into the mains, that's not a problem, but on a mobile device we need to know what the battery is doing and respond accordingly. Browser support ... At the time of writing the Battery API is only supported by Firefox (mobile and desktop). However, it doesn't require a vendor prefix to be supported. The reason I mention desktop is because this API can also be used with any laptop...
read more
Load more