Uploading Files In Sails.js

Uploading files in Sails.js is quite simple and is actually well documented via the Sail.js documentation. What isn’t documented is handling the file after the upload. Most of the time if a file is uploaded, such as an image, we want to use it immediately as a profile picture or so it can be viewed in a gallery. The problem…

Building OpenCV from Source for Older CPUs

In general, CPU architecture is not an issue when working with software as long as you have the right family of CPU in mind. For example, we know things run differently on AMD vs Intel vs PowerPC or they at least need to be code differently to take advantage of each architecture. Recently, I developed an application using OpenCV that…

Using the Real-time Instagram API

Instagram has an interesting feature that it likes to call the “real-time” API. If you are familiar with a real-time API like the Twitter firehouse I must inform you that Instagram’s version by no means functions the same way. Twitter’s streaming API gives the subscriber a feed of all tweets and the associated data. However, Instagram’s version requires the user…

Creating PHP Scripts in WordPress

As WordPress becomes more popular as a website development platform it is constantly be pushed to the limits. What should be simple blogging platform has been expanded to full blown websites with stores and a host of other integrations. However, for every addition there isn’t a plugin to drop in. In many cases your site may just act a middle…

How to User Secure Copy (scp)

SCP let’s you easily copy files and directories from a remote host down to local machine. scp your_username@remotehost.edu:/some/remote/file.txt /some/local/directory