Setting up a crypto-currency wallet on Ubuntu 14.04 LTS

There might be a few reasons that you’d want to setup a bitcoin or altcoin wallet. I set one up recently for a client and found there wasn’t much info out there about compiling from source. Bitcoin has a PPA which makes it easier, but that doesn’t help us for the altcoins. The methods below […]

ETags in Laravel 4 using Filters

Laravel 4 has some very nice features in which you can build your api on. After reading about some best practices for REST many people suggest using ETags for validation caching. I’ve come up with a realtivley simple solution to enable ETag validation of your api data. I simply used a filter to catch the […]

Web Notifications Safari 6.0 and OSX 10.8

Web notifications have been around for a while, but with Apple’s latest release of OSX 10.8 and notification center they are most likely to become a bit more popular. I had a look into the developer documentation for safari and found a nice chunk of code for displaying notifications in Safari 6.0.

tar and gzip files from linux command line

Sometimes it’s hard to remember all the options you need to include to tar and gzip files or a folder from the command line. Here it is… tar -cvzf tarballname.tar.gz myfilestocompress To untar and unzip simply do: tar xvfz filename.tar.gz And if there are only certain files you want in the tar then do: tar […]

Installing SSH2 Extension for PHP on CentOS 5

Here is a great tutorial from Dynamic Hosting Blog on installing ssh2 extension for php. I use this often for wordpress installations since I don’t normally setup my server with ftp. This will allow me to download and install updates/plugins using ssh instead of using the less secure ftp. via Installing SSH2 Extension for PHP […]

Show Categories Filter on Custom Post Type List

Found this useful thread on displaying a category filter on a custom post type in wordpress. Here’s the code: add_action( ‘restrict_manage_posts’, ‘my_restrict_manage_posts’ ); function my_restrict_manage_posts() { global $typenow; $taxonomy = ‘your_custom_taxonomy_name'; if( $typenow != “page” && $typenow != “post” ){ $filters = array($taxonomy); foreach ($filters as $tax_slug) { $tax_obj = get_taxonomy($tax_slug); $tax_name = $tax_obj->labels->name; $terms […]