Validate E-mail Addresses With This Simple Perl Script

For websites that send out e-mails to members or new users, keeping your bounce rate low is a must in order to keep your deliverability rates high. This handy perl script below can help you scrub your new user registration e-mail addresses by checking for both a valid formatted address as well as making sure the domain has a valid/active MX record.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

Build a Floating Menu Bar While Scrolling – Touch/Mobile Device Compatible

I recently had the need to float one of my site’s static top menu, but only when someone scrolled down. I needed it to work on both desktop and mobile devices like iPhones/iPads, etc.

The most common solution I found utilized the window’s scroll event:

1
$(window).scroll(myFunction);

This worked (for the most part). However on touch devices, the event would not trigger until the scrolling was completely finished. Which caused a visible lag on most touch devices while it waited for the swiped scroll to slow down and stop.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

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