Tutorials Page 53

  • By
    Command Line Polling

    In an ideal world, we wouldn't have to poll for anything; we would always have events to trigger other functions.  This isn't an ideal world, however, so it's important to know how to poll in multiple programming languages.  I've covered JavaScript polling (with and without...

  • By
    Serve a Directory with Ruby

    Quickly serving a directory using PHP, Node.js, or Python allows for quick testing with as little hassle as possible.  Imagine having to stand up apache or another server just to serve a directory -- gross!  Since I had touched the three important languages, I looked to...

  • By
    Product Personalization Images with Cloudinary

    A few weeks ago I experimented with using Cloudinary in eCommerce sites because dynamic imagery is a massive part of eCommerce needs. Media-heavy websites usually employ powerful, expensive image-manipulation software so that they can create images on demand.  Little do they know that a service like Cloudinary...

  • By
    Prevent JavaScript Hotlinking with .htaccess

    Almost a decade (!) ago I wrote a post about preventing image hotlinking.  We all have the right to protect imagery hosted on our domain because it can slow our site down tremendously.  I love that post because it shows you how to replace the...

  • By
    Digital Signatures with the ​HelloSign API

    We're living in a world with loads of digital capabilities yet somehow any time I need to sign anything for legal purposes, I'm sent paper to print out, sign, scan, and send back.  I don't own a printer so I usually just find a "signature"...

  • By
    Copy to Clipboard from Command Line

    If you've ever been debugging with a fellow developer, you'll hear "OK, execute that and let me know what it says".  In this case, you can either manually copy the output and instant message the text over to them, or you can write the output to file...

  • By
    JPEG Compression with Guetzli

    A little while ago Google released its Guetzli JPEG encoder, which claims a 20-30% improvement in file size over libjpeg. Being intrigued, I decided to give it a go. My tool of choice for optimizing JPEGs has long been jpeg-recompress, one of the...

  • By
    Format Video Length in HH:MM:SS from Command Line

    In my experimentation with audio and video manipulation, I've found that most tools prefer to handle time in HH:MM:SS (hour:minute:second) format.  I always presumed that using seconds would be easier but I'm barely a novice media tool user, much less a tool creator. When I wrote the Create Short...

  • Media Temple Hosting
  • By
    Scrape Images with wget

    The desire to download all images or video on the page has been around since the beginning of the internet.  Twenty years ago I would accomplish this task with a python script I downloaded.  I then moved on to browser extensions for this task, then started...

  • By
    Using Cloudinary for eCommerce

    Nothing improves sales on the web than imagery and video.  You can describe an item a dozen ways but one picture can suck the user right in, multiple photos (including a nice zoom feature) can clinch the sale.  What does this mean?  It's important to provide users...