I love Cloudant, simple as, their implementation of CouchDB as a DDaaS (as opposed to DBaaS) has no real competitor – as CouchDB develop’s, that may, of course, become a problem as it gives dominance in a market, but for now, we’re good. One of their best features is the dbcopy command, this copies the … Read More “Cloudant’s Rather Awesome dbcopy for re-reducing the output of existing map/reduce data.” »
Category: Programming
So often you find yourself needing a list of countries for use in your software and I keep having to re-use this code so here is a list of countries with their ISO codes in a variety of formats you can simply just use. # C# Dictionary ISO { countrycode, countryname } list new Dictionary<string, … Read More “Country/Currency List for C#, JSON, PHP and HTML select” »
Amazon’s EC2 platform has a very in-depth console which allows you to do a lot, but what if you want to automate some of the processes or handling servers? I’ve been working with EC2 a lot recently and automating server starting/stopping based on parameters of the system we use here at MediaSkunkworks and thought I’d … Read More “Using Amazon EC2 with C# .net” »
Dotdeb.org have the PHP 5.4 series available for installation on Debian based OS’s, you can either do it manually or use my installation script I wrote to make the process easier. All you need to do is run: curl https://wade.one/blog/wp-content/uploads/php54.sh | sudo bash And it’ll do the rest for you! Feel free to just download … Read More “PHP5.4.3 Available on Dotdeb.org (Installs fine on Ubuntu)” »
Ondřej Surý has released apt-get’table packages for PHP 5.4 on Ubuntu. Instructions and installation are available from https://launchpad.net/~ondrej/+archive/php5 . Think I’ll keep custom building for now so I get total control but for the majority of people this is better than waiting until potentially October for it to hit the official channels.
Needed to use this recently to create a specificity parameter for an API at work, it gives you a key/value array from an ISO date string regardless of what is actually set in the string (e.g. if you give 2011-06-07 04 you’ll get an array back as array(‘year’=>2011, ‘month’ => 6, ‘day’ => 7, ‘hour’ … Read More “Regular Expression (Regex) For Date part extraction/array split” »
In my leedsphp talk last week I mentioned making a developer (and consumers) life easier by automatically implementing the allow methods functionality that your API may expose (e.g. you call PUT on a URL that only allows GET or POST). I did have an example slide there showing how to implement but I thought I’d … Read More “Automating “Implemented methods” for a web based API” »
Finally got around to uploading my slides (sorry for the delay!) for my talk at leedsphp on Monday 18th. They are now available online at http://www.slideshare.net/wadewomersley/building-a-horizontally-scalable-api-in-php
UPDATE 14/07/2012: The author of the client has released version 2.5 a short while ago and also a video for using self-signed certificates in the client. RESTClient is a great little CLI and GUI tool for testing your REST API. I recently pushed a new API up in the office and it runs over SSL. … Read More “Using SSL in RestClient” »
Just had a need to reset the mysql root login password for a server, did a bit of Googling and found out this is how you do it (I work on Ubuntu so you may have to tinker with the lines slightly depending on your distribution): Stop the current MySQL instance from running: /etc/init.d/mysql stop … Read More “Reset MySQL root password if you forgot it #mysql” »