/Open Source

Restoring Github Code Streaks

Last week git hub announced it is removing the current and longest code streaks from users profile pages. The change is being touted as a push to give users a more "simplified interface". Personally I think its a disappointing move, the profile pages for users on Github are already lacking content. The code streak was [...]

By |May 23rd, 2016|Open Source|0 Comments

Raspberry Pi 2 Bitcoin Node

Not long ago I set up a Bitcoin node on a Debian Wheezy VPS to teach myself about Bitcoin and the blockchain in general. It was a great learning experience but the memory requirements of the Bitcoin software kept causing my VPS instance to run out of memory. So the kernel would constantly be killing off the bitcoind process. A growing blockchain also meant the node was getting close to the limit of its available disk space as well. Increasing the amount of disk space available to the VPS instance with the plans offered by the hosting provider was going to be prohibitive for the purpose. So I was forced to assess other solutions. Luckily I had a spare Raspberry Pi 2 that I had yet to do anything with at home. So I made the decision to try and install a Bitcoin node on that instead to save some money. The main expense with using the Raspberry Pi was going to be finding enough storage for the block chain. I didn’t have an SD card that was big enough at home to¬†accommodate the operating system image and the block chain. So I opted to buy a cheap external USB flash drive to keep it separate from the root filesystem. After formatting with ext4 the flash drive has 57Gb of available space, at the time of writing the blockchain takes up 40Gb of space so that leaves a further 17Gb for future growth. […]

By |May 26th, 2015|Hardware, Linux, Open Source|0 Comments

Nginx: Locking Down The WordPress Backend By IP Address

I recently looked at the server logs for a new site that had just launched and noticed alot of hits by random IP addresses being made to the WordPress login script. Similar to the excerpt below: – – [10/Jun/2013:07:33:26 -0400] “POST /wp-login.php HTTP/1.1” 200 4807 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” – – [10/Jun/2013:07:36:29 -0400] “POST /wp-login.php HTTP/1.0” 200 4749 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” – – [10/Jun/2013:07:43:00 -0400] “POST /wp-login.php HTTP/1.0” 200 4749 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” – – [10/Jun/2013:07:47:18 -0400] “POST /wp-login.php HTTP/1.0” 200 4749 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” – – [10/Jun/2013:08:06:45 -0400] “POST /wp-login.php HTTP/1.0” 200 4749 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” – – [10/Jun/2013:08:10:43 -0400] “POST /wp-login.php HTTP/1.0” 200 4749 “drinknycity.com/wp-login.php” “Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0” Without installing a dedicated plugin to log more details about the requests on the page. At a glance, it appears that automated bots are trying to brute force access to the WordPress backend of the site. If you are like me you most likely only need to access the back end of your WordPress sites from a couple of networks. So I am going to run through the process of locking down access by IP address to wp-login.php under nginx. […]

By |June 11th, 2013|Linux, Security, Wordpress|0 Comments

S3 Video 0.97 Released

A new version of the S3 Video (0.97) Wordpress plugin has been released to the plugin repository. This release is a combination of some new functionality along with a number of bug fixes. Some of the bigger changes in this release are: Support for Amazon S3 prefixes. This feature allows faster traversal of buckets containing [...]

By |April 10th, 2013|Wordpress|0 Comments

Version 0.96 of S3 Video for WordPress Released

The latest version of my popular S3 Video plugin has been released to the Wordpress plugin repository. After many requests the 0.96 release now allows a user to set a "still" image as a title or splash page for their video. A number of bug fixes have also been fixed in the latest release, the [...]

By |January 8th, 2013|Wordpress|0 Comments

Using The Panoramio Wrapper Class

Ever been working on a project that was area specific and wanted nearby local images? I did recently, and knew after seeing images over layed onto Google maps that it must be possible. Looking around I found a few pieces of code that did what I wanted using the Panoramio API but they were all written in Javascript and I wanted to do some server side processing and caching before presenting them. This prompted me to create a Panoramio wrapper class. Simply instantiate and provide your chosen location via its longitude and latitude and the class will return a PHP object containing images from the surrounding area. The project show up in github as being written in Javascript although this is wrong the main code is PHP, the inclusion of jQuery and a few other javascript libraries with the documentation seem to have thrown its language detection off. […]

By |June 15th, 2012|Open Source, PHP|0 Comments

Removing The WordPress Toolbar

One thing that has caused me some grief since the release of WordPress 3.1 is the admin bar that appears up the top of the blog when you are logged in. Call me a stick in the mud but I have never really used it since its introduction and on a few sites it has even gone as far as breaking the appearance of the template. […]

By |July 9th, 2011|Wordpress|0 Comments

Free Wireframe & Prototype Creation With Pencil

Wireframing is an invaluable technique when starting the development of a new project, both to set functionality expectations with project stake holders and to give the build team a concrete idea of what it is exactly they have to build. There are plenty of web based and commercial packages available but I don’t really do enough wireframing to justify the cost of an ongoing subscription to a web based service and not many of the commercial packages cater to the Linux market. I have always loved Dia ( http://live.gnome.org/Dia ) for creating flow charts and work flow diagrams but never really found it suited to the creation of wireframes. […]

By |June 23rd, 2011|Open Source, web development|0 Comments

Restore The Refresh Button Placement In Firefox 4

The recent release of Firefox has been the new look, features and speed are simply amazing. One issue I am having trouble adjusting to though is the refresh button location. It used to live as a nice big icon next to the back / forward buttons but in the new release it is now positioned as a small icon to the right hand side of the location bar. […]

By |March 30th, 2011|Open Source|2 Comments

Installing Firefox 4 on Ubuntu 10.10

The latest release of the popular browser Firefox is now here with Firefox 4.0 boasting speed improvements, location aware browsing, improved HTML 5 support plus much more. Getting Firefox 4 for your Ubuntu desktop is pretty simple using the mozilla team PPA. To get started open a terminal and enter: sudo add-apt-repository ppa:mozillateam/firefox-stable Potential Issue: [...]

By |March 24th, 2011|Open Source|0 Comments