A web development/programming blog providing info, tips, and tricks on programming languages, scripting, Linux, MySQL and more
Posts tagged Programming
What do three “less than” (<<<) symbols mean in PHP?
Jul 2nd
I am a true believer in that the best ways to learn how to do anything is by studying work of those who have done the same thing previously. When programming, that means looking at others’ code and learning from what they do. However, don’t assume that everything someone else does is correct! What this means is that not only should you learn what to do from other peoples’ code, but you should also learn what not to do.
Read the rest of this entry »
How to append values to an array in bash
Feb 4th
Last week I was working on a bash script for a project at work. The script parsed through a log file with server load and disk usage statistics at regular intervals. The script was calculating the average CPU idle time, disk utilization, and disk usage for servers. After calculating the averages for each of these three metrics, I then proceeded to loop through all the lines in the file and create an array of all the times when the CPU idle time was below average, or the disk utilization or usage was above average.
Read the rest of this entry »

