The other day while troubleshooting an issue on a server I noticed something I hadn’t ever noticed before which was an exclamation mark next to the uptime output from the htop command. After investigating and looking over the source I found that it is a bonus letting you know that your server has been up for a long time. Basically anything over 100 days of uptime will produce an exclamation mark next to the uptime reading. Below I show the sourcecode from the UptimeMeter.c file in the htop source as well as examples of how the htop uptime can vary depending on how long your server has actually been up.
The other day I was attempting to use the Linux ftp command line application to obtain all of the files, sub directories, and files within the sub directories from an FTP site. The first issue I ran into was the issue of being prompted to confirm each and every file that is downloaded. Below I describe how to accomplish turning off the prompt and just to note I ended up using “wget” to download all of the files, sub directories, and files within the sub directories via FTP on the remote server.
I have been using the Flexible Upload D3Z Edition WordPress plugin for a couple years now on various sites that I work on or manage. To me it provides a much easier interface to upload images while building thumbnails on the fly than the default WordPress image media upload. The issue is the Flexible Upload D3Z Edition plugin has not been updated since WordPress version 2.6.X so it has broken on more than one occasion. So when upgrading to WordPress 3 recently it broke the Flexible Upload D3Z Edition plugin and below I describe how to fix the plugin so it will operate without issue in WordPress 3.X.
Counting files in Linux is fairly easy by simply listing the files using ls and then using the wc application. Both the ls application and the wc application are core Linux applications and should be installed by default on your server. One thing that I had forgotten how to do was how to count all files in a specific directory as well as all files in each sub directories. The second method I will display below is not 100% accurate because it will count sub directories twice however it is likely you just need a round about method to get an idea of how many files and sub directories you are working with. Below I describe first how to count all files and directories within a single directory and second how to count all the files, sub directories, and files within the sub directories via a Linux shell or command prompt.
When attempting to format a SD memory card on your Windows computer it is possible to receive an error which states that the disk is write protected. Resolving this problem is typically very easy and simply requires you to slide a mini switch on the side of the SD card to the unlocked position. Below is more information on the error itself as well as how to resolve the error.