Twitter Feed Reader Using PHP

Here’s a simple PHP snippet that I’m sure some of you might find pretty handy: it’s a Twitter feed reader! Copy the code below and simply replace all the necessary info with the proper Twitter user handle, run it, and then let it do its magic. The reader takes a username, load the user’s feed, [...]

Continue Reading →

Automatically Save CSS and JS Changes From Chrome DevTools

Today’s featured web development tool comes in the form of an extension for Google’s Chrome browser: it’s called DevTools Autosave by Nikita Vasilyev and it automatically saves your work on the fly as you make any and all changes on your stylesheet using Chrome Developer Tools. Other than the fact that this tool can smoothen [...]

Continue Reading →

Adding Expires Headers In Ruby On Rails

Whenever a first-time visitor visits your page, it may take several HTTP requests before the web page finish loading. To speed up your website, it helps to use Expires header to make any web page components cachaeble. By doing this, you can avoid any unnecessary HTTP requests on subsequent page views. Expires headers are most [...]

Continue Reading →

Validate Filename Before Uploading Image Using JavaScript

Today’s helpful snippet will help you validate the filename of an image that’s being uploaded onto the server using JavaScript, making sure that it doesn’t consist of any unwanted spaces or invalid characters. This basically prevents the user from uploading or submitting any image file unless the proper format is used. <script language=”javascript”> function Checkfiles() [...]

Continue Reading →

Logout Idle/Inactive Users Using PHP

Today’s tutorial comes in the form of a PHP snippet that will automatically sign out idle or inactive users on your site. Three functions are involved to complete the inactive session task: A function to check if the user is actually logged in using the isLogged function. A function to check the time the page [...]

Continue Reading →

Limit Download Speed Using PHP

Today’s featured PHP snippet is from Jonas John and it’s a simple and helpful solution for controlling a file’s download rate. This is very beneficial for those who have limited bandwidth. The code is still a bit rough around the edges and could use a bit more polishing. Like for one, the execution time doesn’t [...]

Continue Reading →

Facebook Now Features Auto-Generated Documentation

Developers using Facebook’s API have something to cheer about as the social networking giant has improved its reference documentation by automatically updating and generating the docs straight from the source code. So any changes made to APIs and methods will be instantly reflected in the documentation, which means Facebook engineers can now spend less time [...]

Continue Reading →

10 Ruby Capabilities You Might Not Know About

Today’s programming tips and tricks come in the form of a slideshow presentation created by James Edward Gray II for his role as a speaker in the Aloha Ruby Conference held in Honolulu on October 2012. His talk featured a collection of various Ruby capabilities that programmers either tend to overlook or are completely unaware [...]

Continue Reading →

Give Your Client’s Website a Makeover

If you’re a freelance web developer or designer, you may have encountered some clients who need their website updated, whether they’re aware of this or not. A website needs to be revamped every 5 years or less, especially if it’s for business or e-commerce. If your clients are unaware of this, these are reasons why [...]

Continue Reading →

Single Page App Book

A single-page app (aka single-page interface) is an application that fits on a single web page, making it simpler and easier for the user to explore its functions. Today I’m featuring Mixu’s single page app book which contains focusing on discussing patterns, implementation choices and decent practices in creating single page apps, all of which [...]

Continue Reading →

Page 2 of 3«123»