Web Development

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…

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

Keep SSH Connections Alive When Behind Proxy

On Mac fire up Terminal and use vim to edit the file (username is your account): vim /Users/username/.ssh/config In general you can set the interval for any host: Host* ServerAliveInterval 30 Or you may have a server already defined that you wish to apply this property to: MyServer ServerAliveInterval 30