Clearing (but not deleting) log files

Sometimes, as a Systems Administrator, or SysAdmin, there are times we need to clear out the log files, without actually deleting them. As a smart Sys Admin, you normally wouldn’t need to do this, but as I am currently involved in supporting customers and their Linux machines, I run into some pretty neat stuff (neat as in special). I’ve had a few issues where someone actually runs out of disk space on / (root filesystem) due to the /var/log directory being full.

First off, you might run the df command only to realize that, maybe, you have used 97% of the partition up, in this case / (root filesystem). More times than not, this is usually due to your /var/log directory. Make sure though, I’m presuming that you already know that your /var/log directory is full. To find out what is taking up the most space (you should already know why, and thus you are viewing this possibly because you are having issues with a full filesystem), you would need to run the df command. Continue reading Clearing (but not deleting) log files

Case Project: Validating Google Site-Flavored

According to Google, Google Site-Flavored’s search delivers web search results that are customized to individual websites. The only problem with the output of their code is messy, very messy. Let’s fix this and make it more standards compliant. I will always hold Google’s algorithms and services very high. They offer many free searches and services that, by far, out-do other companies; not to mention that they have created standards that have brought other companies (Microsoft and Yahoo! to name a few) to “dub”. Please note: This is an an older piece of writing of mine, and is a little out-dated, but very useful information. Continue reading Case Project: Validating Google Site-Flavored

Styling “Simple” AJAX

AJAXAJAX – “Asynchronous JavaScript + XML”. “Not a technology – several technologies”. That’s probably why I like it so much, its a little bit of everything, to make one thing. Raj over at his website, wrote a short, yet easily understandable way to understand the very basics of AJAX. I liked it so much, that when I tried it out, I truly felt as if I was really getting the hang of it. I strongly suggest that you read his post before reading on with mine. Possibly being able to create my own applications using AJAX, even though we all need to remember not to “overuse” it, just like with any other cliche (haha). The point is, it was understandable, but the “practical application” wasn’t there. You click on a link, and magically a piece of text appears, and walla, you’ve done a little AJAX. Uninspired by that part of the tutorial felt like taking it just a little further. No, I havent really altered his code, all the credit goes to him, but in the way of implementing my own “practical application” i will take credit for. So you want to make it look pretty? Assign some CSS styles? What about just make a nice looking AJAX AFC scoreboard? Continue reading Styling “Simple” AJAX