Minecraft Cube

After my flowers went down a treat on Valentines Day I decided that I needed another project. A friends birthday is in April, so I figured that would be enough time to build something. While reading my usual news stuff I came across this http://imgur.com/a/Z2Uvu and thought it looked cool. But I wanted to go one better, using RGB LEDs to change the color of the cube! Then I decided to attempt one better and make it android controllable. Below is the first part of my journey :) its broken into 2 sections as both the electronics and cube assembly were done in tandem. Everything can be found in this post :)

Continue reading

Website to dropbox query


// Set the timezone so filenames are correct

// Backup all files in public_html apart from the gz
$siteroot = "/path/to/backup";

$dropbox_email='dropbox@email';  //Dropbox username
$dropbox_pass='pass';   // Dropbox password


$uploader = new DropboxUploader($dropbox_email, $dropbox_pass);

function FolderToDropbox($dir, $dropbox_link){	
	$dropbox_folder = 'FolderInDropboxRoot/';
    $files = scandir($dir);
    foreach($files as $item){
        if($item != '.' && $item != '..'){
            if(is_dir($dir.'/'.$item)) FolderToDropbox($dir.'/'.$item,$dropbox_link);
            else if(is_file($dir.'/'.$item)) {
            	$clean_dir = str_replace("/path/to/backup", "", $dir);