Tutorials Page 74
Managing Node.js Versions with nvm
A while back I wrote a blog post called Upgrade Node.js with NPM. The shell commands within that post work great but there were reports in the comments that it could mess with node module paths and such -- a far from ideal situation. Little did...
Detecting Online Status with JavaScript
It seems like there's been a huge push in the past year or two to make offline browsing an enjoyable experience with the web; a large part of that push probably being HTML5 mobile apps, or just web apps in general. Of course it would be helpful...
Exclusive: 10 Free OSCON EU Pavilion Plus Passes!
O'Reilly Media is holding its first OSCON in Amsterdam next week: October 26-28. OSCON has been a big hit in the United States and it's exciting to see the conference series make its way to Europe. There's still time to sign up...
Detect Function Argument Names with JavaScript
I was recently looking over the promisify-node code to see how the author was able to convert basic functions and objects to a promised-based API. I quickly realized that they were reading function signatures to look for common callback argument names like
callback
andcb
.FileReader API
As broadband speed continues to get faster, the web continues to be more media-centric. Sometimes that can be good (Netflix, other streaming services), sometimes that can be bad (wanting to read a news article but it has an accompanying useless video with it). And every social service does...
Focused Image Cropping with smartcrop.js
Images tend to make any page more engaging, especially when done right. The problem is that automating image creation and sizing can be a very difficult task, especially when the image is uploaded by a user -- who knows what format, size, and resolution the image will...
Convert SVG to PNG
Earlier this year I became obsessed with different types of media (images, audio, video) and how to convert and merge one format to/with another. Half of that obsessions is due to fascination in how it's done, the other half is love of performance. A few of...
Best Practices and Tools for Superior Prototyping Results
There are a number of good prototyping tools on the market, but only a handful can legitimately qualify as being among the best. Five of the very best are listed here, along with brief descriptions of some of their key features. To use any of these...
Don’t Wait for ServiceWorker: Adding Offline Support with One-Line
The HTML5 Application Cache should make building offline-friendly web apps possible. In practice, its unforgiving nature makes it very challenging to use at all, giving it a uniquely negative reputation among front-end developers. It's expected that apps continue to work offline—most users don't won't care about...
Social Sharing Links without Widgets
Social sharing sites like Facebook, Twitter, and Google Plus are essential for people who blog like myself. Why write about something you're passionate about if no one can find the article (purposely or by chance?) People share enough of your posts and you get noticed and get...