The end of an era

I’m at the end of an era. After several years of this site being a blog where I haven’t posted much I’ve decided to do a redesign and move the blog to a directory.

The main reason for this is that I am planning to write some windows (good chance there will be Mac too :P ) software after reading a post on Lifehacker.

I hope to complete this new design before the end of this week, and the software done before christmas. It will be free, don’t worry. :)

Hope you like the new design…

Code: PHP Detect Server OS

While writing some PHP software to detail the server information i came across a problem. I searched the web high and low but couldn’t find a way of returning the host server OS. So I decided to write some solutions myself.

Solution 1: (Return example: Linux, Win32)

<?php
$S_SS = $_SERVER['SERVER_SOFTWARE'];

$S_SS_E = explode('(',$S_SS);

$S_SS_E2 = explode(')',$S_SS_E[1]);

echo $S_SS_E2[0];
?>

In the method above we simply use the $_SERVER['SERVER_SOFTWARE'] variable and we explode out the brackets.
UPDATE: This method only works with apache software as far as I know – does not work with litespeed software. Untested on Lighttpd.

Solution 2:

<?php
$os_string = php_uname('s');

if (strpos(strtoupper($os_string), 'WIN')!==false) {
echo 'Windows';
} else {
echo 'Linux';
}
?>[/php]

Windows 7 on my new PC

Yesterday i installed Windows 7 on a PC that I built. I’ve been using Windows 7 for about 2 hours now, and i am very impressed. It is a very big improvement over Vista (I downgraded from Vista to XP because it anoyyed me so much).

I also got a Wacom Bamboo Tablet for my birthday recently, and it has been interesting playing with the touch support in Windows 7.

I shall be buying a new GFX Card soon so I can run blender smoothly.

Setting up a datacenter – Part 3

So. Its been about 3 months since my last post. I have now moved the rack out into the server room and the servers are all sitting in it waiting, just waiting…

Well, i say that but several of them are running – there is a local development server, and a teamviewer server which i use to access the network from remote locations such as at school.

I am hoping to get some “new” tower PCs before christmas which we plan to put together as a cluster.

We are just waiting on an internet connection now, i have been emailing companies and getting quotes for lines :) . I have got one or two in mind so far…

I have included pictures of the current setup with the rack and the servers in it. (Sorry about the quality – they were taken with an iphone camera).

BTW – the cables have now been tidyed up, and are neatly tied to each side of the rack seperating Power and Data cables

Setting up a datacenter – Part 2

Today my server rack cabinet arrived. Its a 42U compaq 10,000 with one of the rear doors missing… >.<

I have been playing around with server positions and other stuff, while it is in the warm of my office before being moved out to the datacenter where it is a frosty 5.7 degrees celsius.

I have included some pictures below for those that are interested :)

This is the first of hopefully many server racks for JCKD Hosting. Part 3 of this series is hopefully coming mid-april when we move into our facility. Stay tuned!

Setting up a datacenter – Part 1

So yesterday i started to set up the JCKD Hosting datacenter, which will be completed in mid-April. Amongst other things i laid 3 Internet cables to the first server room, had the electrician put 6 plug sockets in on the wall for the first rack and installed a physical IDS. Photos below:

sorry for the bad quality – was taken with an iphone.