Technology Insights

Find Out If My Ruby Binaries are Stripped Or Not Stripped

During some testing earlier a gem we were using required that the Ruby binaries on the server to be unstripped or not stripped. I wanted to provide information relating to finding out if your Ruby binaries were stripped or not stripped including what the output of each will look like. Below is a command you can use to find out if your Ruby version is stripped or not stripped including example outputs to display what each will look like.

Details
Technology Errors

Linux -bash: which: command not found

Typically the “which” command is installed by default though depending on what Linux distribution and what packages you decided to install there is a possibility the command is not installed. Installing which is easy on any distribution as the package is literally just called “which”. Below is a brief explanation of the error you could get if which is not installed and information on how to install the which package using the yum package manager on CentOS.

Details
Technology Insights

Modify WordPress Admin Plugin To Display As A WP Admin Dashboard Widget

Previously I wrote an article that detailed modifying the WordPress Most Commented plugin to display the most commented WordPress posts via the WP admin site. If you need more information on creating admin plugins or just wanted to glance over the article related to this one you can read it by clicking here. Something I did not include in that article was how to add code to the plugin that would also display a widget on the WP Admin dashboard. Below is basic information that should assist you in adding code that will display a dashboard widget.

Details
Technology Insights

NRPE Nagios Plugin To Check The Number Of Files In A Directory

We have various scripts on a server that process files that are uploaded to a specific directory so we needed a way to monitor these directories and verify that all files are being processed. Once they are processed on our server they are moved to different directory so the file count should never get over a certain amount of files. The below script assumes that you have NRPE installed on the server so you can reference the bash script locally. Follow the directions below with some monitor modifications and you can monitor directories for the number of files with Nagios very easily.

Details
Technology Insights

WordPress Plugin To Display Blogroll Links By Category On Any Page Or Post

Working on a project for a client a couple days ago I needed a good way to display WordPress blogroll links on various pages and posts. The plugin would hopefully provide a method to sometimes display all blogroll links and other times display only blogroll links of a specific category. Below I discuss the plugin I settled on and some of the capabilities of the plugin.

Details