Get Today’s Bandwith Usage from a Shoutcast Log

Shoutcast logs can be pretty big, if you don’t read them in line by line there is a fair chance of getting an out of memory error. The following function getShoutcastBW(logfile) simply returns the number of bytes streamed today out of the log. Good for calculating bandwidth. function my_strip($start,$end,$total){ $total = stristr($total,$start); $f2 = stristr($total,$end);… Read More »

Introducing Shafe’s Picks

As some of you regulars have noticed, I’ve cut back on some of the posts on the odd and interesting things that people are trying to sell on the internet. But fear not, I’ve been compiling these and making a comprehensive list of these oddities. With that, I’m happy to introduce Shafe’s Picks.  A site… Read More »

Install ISPConfig on Debian Quickly

I have a client who routinely deploys cloud servers and they like ISPConfig installed to serve as a hosting control panel. ISPConfig is great for your average customer to manage their server or even for a small hosting company to manage their servers. It is a cost effective alternative to commercial solutions like Plesk and… Read More »

Need A New Password

Need A new password? Here is a randomly generated one: Here is the PHP code to generate these passwords: function genRandomString($length) { $length = 10; $characters = ‘123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnopq3stuvwxyz!^+.?’; $string = “”; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters))]; } return $string; }

Advice On Brewing Your Own Beer From Shafe

As an avid homebrewer… I was recently asked for any homebrewing tips from a friend of mine… Here is my response: The most important brewing advice… In my experience over the years… is that you prepare in advance 2 compilation cd’s to play while brewing. One while actually brewing and one for bottling. The only… Read More »

Mel’s Hole

Broadcasting from his double-wide trailer in Nevada, Art bell was good at what he did, and in his heyday, there was one broadcast that had me completely enthralled. Mel’s hole is one of those stories I listened to on the edge of my seating cursing commercials because they where too long. I came across some… Read More »