Linux Tip: Find the Path to any Executable

Just a quick tip for those who are not familiar with the which command. You can use it to easily find the location of an executable in your system.

For instance, if you are looking for which python executable is running by default you can type:

1
which python

Result:

1
/usr/bin/python
facebooktwittergoogle_plusredditpinterestlinkedinmail

Linux Command to Remove Files Older Than X Minutes

Here is a handy little command to remove files older than 5 minutes. Could be useful for files that are temporarily generated. I’ve included a few variations that may be helpful.

To find and remove files older than 5 minutes in the current directory:

1
find ./*.* -type f -mmin +5 -exec rm {} \;

[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

Build a Simple RESTful API using Mojolicious

In this tutorial I am going to demonstrate how you can setup a RESTful API in just a matter of minutes using a Perl-based framework called Mojolicious.

Mojolicious is a next-gen web framework built off Perl. It is very easy to install on any Linux/Unix based platform, and comes with a built-in full stack HTTP server.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

Get Google Map Coordinates by Address with Python

In this example I will show you how to get longitude and latitude coordinates from a street address to use for displaying a Google map on your website.

Most practical implementations will involve a database of addresses, so I will include code to pull the addresses from a MySQL database, and then update the database with the geo coordinates.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

Simple jQuery Read More/Less Example

In this example I demonstrate how to hide text and add “read more” and “read less” links using jQuery. This applies to a single block of text, or multiple instances of text on the same page.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail