Quick Tips Tutorials

  • By
    Upgrade Node.js via NPM

    I was recently installing a utility via NPM when I learned that my version of Node.js itself was out of date.  No worries -- simply upgrade my Node.js install and move forward.  Of course I could just hit nodejs.org and get the new image, but figured...

  • By
    Remove HTML Comments with PHP

    When it comes to sending content to users, I'm of the belief that less is more.  There's no reason for HTML comments to be sent down to the user -- they simply bloat the payload.  I remove unwanted HTML comments within my WordPress theme, so I...

  • By
    Run Individual Cron Routines within Django

    When you're looking to run a single cron routine within Django, hit the terminal and run this: To see a list of available cron routines, run: Running individual cron routines is probably an obvious flow for Django experts but hopefully this is easier to find than searching through...

  • By
    Remove an Item From an Array with JavaScript

    One operation that seems to be more difficult than it should be in every programming language is removing a value from an array.  It's such an easy concept mentally that it skews our programmatic view of the task.  In JavaScript the splice method is of huge help...

  • By
    Allow More HTML Tags in WordPress Comments

    WordPress allows a select few HTML tags within the content of post comments.  This is an awesome feature, of course, because it prevents XSS security holes and other malicious code from being injected by spammers, hackers, and jerks.  Unfortunately there are many other tags that bloggers...

  • By
    Gist Shortcode Embed

    Blog comments and forum posts are traditionally the worst place to post code, but unfortunately are the frequent hosts of code for developers like us.  Many developers choose to post links to more dev-friendly environments like GitHub instead, but there's a certain disconnect that comes with...

  • By
    apple-itunes-app Meta Tag

    Whenever you visit the website of a vendor that provides an iOS app, you're either hit by an alert or ugly popup saying "Download our iPhone App!"  It's great that they want to pitch their iOS app but the lack of structure and uniformity in the...

  • By
    Get Class Methods with Python

    As a newbie to the excellent world of Python development, I'm not always familiar with the methods provided by imported classes.  Oftentimes these classes are well-documented but in the case that methods aren't documented, I found the dir function useful for getting a list of methods: The...

  • By
    Empty an Array with JavaScript

    Emptying an array is a common JavaScript task but too often I see the task performed in the incorrect way.  Many times developers will create a new array: That isn't the optimal way to get a fresh array;  to truncate an array, and thus empty it, you...

  • By
    Placeholders and Overflow

    Oftentimes our search boxes and other form fields get drastically shortened on mobile devices.  Unfortunately in some circumstances the INPUT element's placeholder text doesn't fit within the length of the element, thus displaying an ugly "cut off."  To prevent this ugly display, you can use