Moved to: WoodyHayday.com
Woody Hayday

Fresh Ideas

Hi there! This is my old blog, I don't hang around here much.
You can now find me trying to mix things up here:
Visit WoodyHayday.com Subscribe To My Email List

The Pliers are coming!

Someone sent me this random streetview find – Pliers revenge!

Posted in WoodyLabs

Thailand Express – 2010

Next Friday I fly out to Bangkok, Thailand for a month of sun. Just wanted to shout out thank you to all the people that have given advice, helped me prepare and the few that are coming with me – I will update the blog a few times while out there – stick a few photographs on flickr etc and then do a proper photo dump etc when I am back, hardly taking any technology so should be a change from the normal! I was hoping to refresh this blog style but I haven’t got round to it – I updated my homepage but thats about it.

thailand
Thailand Here I come!

P.S. Silent City Collective site is coming soon 😉

Posted in Projects, Travel, WoodyLabs

Javascript in Spreadsheets? – Google Apps Script Does that

Far from being a google promoter, I do like this. Google Apps Script opens up google spreadsheets to scripting – Just like Macro’s etc in Excel, but with Javascript. This effectively opens up a world of online data processing and analysis that would have not been easily possible within a browser before hand, especially suiting web-devs its nice to see an amount of custom programmability going into semi-democratised tools.

I can see applications ranging from replacing my SEO QUAKE’s list parameter check to many many web marketing, analytics, data crawling and recording processes, all of which you could do in ms.excel, yet more accessible here. This isn’t a big deal, but landed on my lap this morning so here’s the share 😉

Posted in Affiliate Marketing, Javascript, Search Engine Optimisation, Technology, Web Development, Web Technology

Microsoft Skinput?

Is funny how technology develops…it takes a while for the lag to catch up I suppose. I like this novel pursuit of new interfaces between humans and technology, I can’t help thinking it wont end up used at all like it is shown here though, I see this more useful to warfare, body electronic metrics and gaming than for personal devices like mobile phones. I could be wrong though, anyway I like the idea of Microsoft Skinput, at least the projection part!

Read the rest : Microsoft Skinput? »
Posted in Technology

Some idea’s for Listening to music

Over the years I have used a whole bunch of Music Libraries, streaming programs, download tools, websites and formats for maintaining a way of listening to music I liked and as good as they have all been, not a single one has been perfect. I am currently with Spotify, which is the current best (or I wouldn’t be with it) that I have seen, which is good for its simplicity, range of available songs which are stream-able and ultimately is currently cleaning up because it was early to jump to a new model for music sales. Give it a few years and most of the media we used to pay for on disks, tapes, digital download will be streamed to us (or streamcached) – its a way the industries can move forward with technology instead of battling it and millions and millions of pirates. Games, tv, films, music will all become services fed to whatever technology we want them fed too, putting the control of the flow of data back in the hands of the owners, reaffirming ownership laws and creating a new dynamic between creative arts and media consumption.

Img courtesy of ~necrolz

This I think is a given at this point, but anyway. I wanted to write this post to put down some ideas I have had recently after I started using a few new music services. So this really is just an idea dump more than anything (if you haven’t a lot of time just JUMP TO THE IDEAS and perhaps you can tell me what you think in a comment!) If I had intentions to move into music software perhaps I would write something along these lines, but to be honest I would prefer if Spotify or similar invested some of their first few years profits and did it :p

Posted in Ideas, Looking Forward, Music, Open Letters, Technology, Visualisation Tagged

Nvidia CUDA does Video converting | Use your GPU to convert video

CUDA on Nvidia cards rocks. This box’s ATI was hardcore about 9 months ago, but even though the latest ATI card’s are the world’s best in performance, and by no means bad, NVIDIA’s CUDA changes anything for anyone who uses a pc for more than facebook. SUPER is a video converter that does prettymuch every type of video to any other type of video, its good, but its slow. Dreadfully slow. I have the best AMD from 9 months ago, which dispute its flaws is no small chip but encoding video takes an absolute age.

After seeing a post (cant find it now typically) last week on tricking software into using the gpu instead of the cpu for doing things like 3D renders I randomly did a search not knowing anything about GPU video converting – turns out theres already software in market. Badaboom converts video using any CUDA friendly nvidia graphics card, at a supposed 20 x the speed. ATI’s version – Avivo has a ton of mixed reviews on the net, people saying it doesnt even use the GPU it uses the CPU, I am not sure either way – but DAMN CUDA is an ace in the hole for Nvidia.

With real time rendering engines, video converters and scientific modelling software already using and abusing the GPU what will this mean for the Personal Computer of the 2010’s? More to the point are ATI going to follow them down this path? I doubt it personally, they will focus their efforts as they seem to have been on the multi-display, media, gaming rich end of the market. I don’t follow the whole graphics card war thing to be honest but I would put my money in NVIDIA right now. With cloud computing and gaming coming to us via a pc things like CUDA gpu clustering and this whole program-open aspect to the cards is going to line them up well for both sides of the telephone/optical cable.

Posted in Technology

Dubstep track of the moment: B-Complex Beautiful Lies

Of late I have been listening to a bunch of dubstep music and I am completely addicted to the track B-Complex Beautiful Lies, check it out:

Posted in Music Tagged ,

Multiple WordPress blogs from 1 instance / 1 wordpress folder to maintain

WordPress is a victim of its own success, but its no victim. It is huge. Millions upon millions of people use wordpress to power their blogs (like this one for example) to make money and to have their voice present on the internet. It has become a first stop for a huge host of people making their way online and is often one that leaves such a positive impression that it never leaves that same user. Its free, its slick, its efficient, its easy…literally I have nothing but good things to say about wordpress and the people that support it. I could spend hours applauding the democratisation of tools that is wordpress and discuss how its helped the internet blossom and why its so key to understanding the web today but that’s not what this post is about. If you haven’t already got a wordpress blog then I would suggest you get one, either for free at wordpress.com or from wordpress.org (the latter if you have your own hosting) – and once you have one you might soon realise the huge benefit of having 2, 3, 4 or more wordpress blogs. These are real benefits.

The question then comes after you have 30 wordpress blogs on the go, various niche market’s blogged too or personal sites about cats or what have you, what then? Updates then. WordPress do update fairly regularly, they aren’t the slow moving behemoths some other companies are because they are open source, and that’s a good thing. Anyway maintaining 30 copies of wordpress is actually a lot easier than it sounds, an update is usually nothing more than 10 minutes uploading the new wordpress files over the old ones via FTP. But say you had a little project where you wanted to create a few more wordpress blogs. For the sake of this post lets say you wanted 90 blogs. 90 WordPress blogs installed on an average web host (I suggest 1and1) is not a big deal. It can be as big a deal as you make of it but in your pursuits and interests online its potentially likely to crop up.

You can run 90 wordpress blogs (or 1000 etc.) from 1 instance of wordpress. That is 1 wordpress folder on your host serving to 90 blogs at blogsite1.co.uk, blogsite2.com etc. thats nothing new – I am sure the quicker off the mark or longer in the tooth of wordpress users have been doing it for a while, but somehow I missed this up until I got past the 30 blog mark and so I thought its about time I looked at the option of hundreds of wordpress-blogs running from 1 folder, a project has come up. The reason this works by the way is the wonderful way (take not web developers) that wordpress splits its config files and its database. The only file in the wordpress files you upload to your blog that contains any site specific data is the config file, which pulls everything from the database.

On the preface there are both good and bad things about doing this with word press, here are the pro’s and con’s as I see them pre-project.

Pros

  • Single central wordpress folder  – 1 wordpress folder to update periodically
  • File size – rather than using up 4mb per wordpress install, this method uses 4mb per x number of wordpress installs, although space isn’t an issue really in current web hosting
  • Plugins and themes only need to be copied once – they can effectively be shared
  • Easier to backup – backing up files of wordpress blogs is pretty pointless apart from wp-content (uploaded images, themes, etc) – putting all your blogs in one basket means backing up the whole lot is a breeze, 1 folder not 90!
  • WordPress database is seperate – you could potentially run all the blogs from 1 database too – (capacity dependant) – as wordpress allows table prefix’s
  • Adding a blog can be automated 😉 – replicating the first wp database from an install can mean tons less setup work

Cons

  • Permalink structure may have to be the same? *not 100% on this one and havent tested but there may be issues with permalink setups across multiple blogs as htaccess is shared*
  • Other .htaccess differences – because you will effectively only have 1 .htaccess file for all domains pointing to this folder, this puts all that custom .htaccess code out of the window
  • Flip side of themes being easy to install is that editing one theme will lead to all blogs using that theme to notice the change, fine if your blogs are stable in design but multiple versions of the same theme will be required if you want to tweak these on a blog specific level, which could make for a messy confusing setup if not through through
  • If you are running a network of blogs and want to stay under the radar or just want the sites to be as different as possible – by nature of single resource they will leave footprints unless you are aware and make sure you do things like rename folders for themes non-sequentially etc ( or maybe don’t be paranoid :p )
  • Centralising the files for all domains/sites/blogs does mean this folder on this box does then become a single point of failure, loose/break this and the whole of your blog network/project is down. Probably not such an issue with stable hosts these days
  • As previous point if you do update, change a file or accidentally delete anything it does effect every site – its a risk but not a big one just be careful!

Limitations

  • Unsure about .htaccess but presume custom rewriting becomes a pain as all sites share a file
  • There will be a limit as to how many blogs you can run off a single install. It’s probably thousands though – if you had 30,000 sites for example – the file which points the install to the right database tables would become bloated

How to run tens, hundreds or thousands of wordpress blogs from 1 instance – install wordpress once for hundreds of blogs – without MU.

  1. Install wordpress into a folder on you hosting (download latest from wordpress.org and then upload via FTP/copy across network)
  2. Get your database details together, you will need Database Name, Database Username, Database Password and the Database host for each of the databases you are going to host wordpress tables in
  3. Install a single blog using the normal method – point a domain at the folder, go to that domain and follow the wordpress wizard, entering your database connection details and this blogs title.
    1. Go through this newly installed blog and commit any changes that you will want duplicated throughout the new installs – delete the “hello world” post/default wp links for example.
    2. Imagine this like creating a ghost image for a network of pc’s – you want to make a bare bones default wordpress setup so you can replicate this onwards without having to redo it.
  4. Happy with  your ghost blog setup? go to your phpmyadmin (assuming you have it) and export all the tables for this blog into SQL.
  5. Open that SQL into your favourite text editor, in this case I am using Dreamweaver because I like its find+replace.
  6. You will need to do several find + replaces here, but by doing this you can literally clone a wordpress installation – (works as at 2.9.1 anyway) – this is great for mass distribution (This is quicker than installing and can be automated)
  7. For example if your site was “harrysblog1.co.uk” with a title of  “Harrys Blog 1” then do a find and replace for “harrysblog1.co.uk”, switching out the new domain to be added, same with title’s, users, post’s etc. This way you could clone a wordpress site and switch out words…you can change the table prefix this way too.
  8. Run this newly modified SQL on whatever mysql database you want to run the blog from (could be same one if you mass replaced the table prefix’s)
  9. Alter your wp-config.php file very simply:
    1. Open it up and put a bit of logic which basically says “what domain am I loading from, ah this one – use this DB and this table prefix” – This logic can be as simple or as complex as you want it to be – I kept mine short and sweet with literally:
$thisDom = $_SERVER[‘HTTP_HOST’];

if ($thisDom == “www.specificDomainWhatever.co.uk” || $thisDom == “specificDomainWhatever.co.uk”){ $useDB = 1; $table_prefix = “specificDomainWhatever_”; }

if ($useDB == 1){

define(‘DB_NAME’, ‘xxx’);

/** MySQL database username */
define(‘DB_USER’, ‘xxx’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘xxx’);

/** MySQL hostname */
define(‘DB_HOST’, ‘xxx’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

}

*note this is just how I did it, there are other ways – the code works but was just to test the theory – when upscaled to a network of xxx or x,xxx sites this is automated quite easily

*note2 I am having to cut this post short but if anyone has any questions or wants to know more/help on replicating wordpress or multi blog – 1 wordpress instance installs let me know in the comments

References

Striderweb – this post pretty much explains the theory, a bit like this post – but I actually happened across it after writing the post – well worth reading if your going to do this – Stephen Rider has made a great plugin that will do everything you want it to do as above, I winged it and just modified the wp-config which simply worked in my case so personally I didn’t use it, but no doubt its probably worth a try if  you want a more deep solution.

Woody Hayday
9a Holywell Hill

Hi Jo

I have just found out that I will be away to thailand in the beginning of march and as my 6 months of tenancy is up in feb (08th) I was wondering how it worked with regards to rolling contracts?

I would like to move out just before

Posted in Affiliate Marketing, PHP, Transactional SQL, Web Development, Web Technology, Wordpress
The New Blog
WoodyHayday.com
A Quote..
"Learn from yesterday, live for today, hope for tomorrow"
Albert Einstein
Old Random Projects
    © Woody Hayday 2008-2025