Installed speedtest.net Mini in my server:
Check your speed against my server which has a 100mbps synchronous line.
The server is in France by the way.
This website is hosted in one of these servers: http://www.ovh.co.uk/products/rps_offers.xml
OVH offers a wide list of possible OS to install in your dedicated box and I believe the best one is Debian, I love its simplicity, community support, security and above all its cleanliness, you start with a clean base system and you install and configure just what you need, having full control of it.
In OVH you can install Debian 5 (Lenny), which is ideal for web hosting, but if you want to upgrade Debian 6 (Squeeze), much up-to-date and now stable, this is how to do it:
aptitude update
aptitude upgrade
aptitude update
aptitude install apt dpkg aptitude
touch /etc/udev/kernel-upgrade
apt-get install locales
dpkg-reconfigure locales
apt-get dist-upgrade
cat /proc/partitions
major minor #blocks name
180 0 503808 uba
180 1 497983 uba1
8 0 20971520 sda
8 1 20479969 sda1
mknod /dev/uba b 180 0
mknod /dev/uba1 b 180 1
swapon -a
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
Update: Now that Squeeze is stable you might want to try to upgrade to Debian “wheezy” (testing) in order to have newer versions of packages and still a very robust system. I would say that after upgrading to Squeeze you might just have to edit /etc/apt/sources.list again and replace “squeeze” with “wheezy”, then “apt-get update” and “apt-get dist-upgrade”. If anyone tries please let me know what problems (if any) encountered.
Not happy with the existing solutions/plugins to generate photo albums in WordPress I decided to create my own based on a BASH script and some PHP code.
+Indexes
find . -type f | grep -E "jpg|JPG" | grep -v "/.thumbs/" | awk '{ run="convert -geometry 150x150 " "\"" $0 "\" ";
file=$0;
sub(/(.*)\//, "", file);
folder=$0;
sub(file, "", folder);
system("mkdir " "\"" folder ".thumbs/" "\"");
run=run "\"" folder ".thumbs/" file "\"";
system(run);}'
convert -geometry '150x150' "./Alex day 5/DSC_6395_resize.JPG" "./Alex day 5/.thumbs/DSC_6395_resize.JPG"
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
$jpg = strpos($file,"JPG");
$jpg_low = strpos($file,"jpg");
if($jpg == true | $jpg_low == true) {
echo "<a href=\"$file\"> <img src=\".thumbs/$file\" /></a>\n";
}
}
closedir($handle);
}
?>
It is easier than what it looks, more details soon.
Hello! Not much to see here yet. I’ll post interesting things soon.
Arclite theme by | powered by Best email software collection