Category Archives: Code

Instantly Search Your Source Code With OpenGrok


OpenGrok indexes your source code to allow for instant search over a large codebase which can be an invaluable timesaver. I finished setting this up on a server at work today, here’s how. Pre-requisites OpenGrok requires Tomcat 6 or 7 … Continue reading

Posted in Code, Linux | Tagged OpenGrok | Leave a comment

Gist Page Improvements


I noted my Gists page had gone a bit wonky last week which I assumed (wrongly) to be a caching issue. Turns out GitHub now need a User Agent passed with any request to the API, in their words “Requests … Continue reading

Posted in WordPress | Tagged GitHub API, PHP | Leave a comment

Gists Page


I’ve added a new page to the site, a Gists page, listing simple info and links to the stuff I have on GitHub:Gists. I added this as the interface over at GitHub was starting to get to me. All I … Continue reading

Posted in WordPress | Tagged GitHub API, PHP | Leave a comment

Git Flow


I’ve not had time to complete a full post with having started my new day job last week as well as having all the usual time killers. In the meantime I quickly wanted to mention a tech that is being … Continue reading

Posted in Git | Tagged git, git-flow | Leave a comment

Oracle Certified MySQL 5 Associate


On Friday I took and passed the Oracle Certified MySQL 5 Associate exam, which covered all the MySQL 5 basics. My preparation only really involved the use of the MySQL 5.0 Certification Study Guide (up to page 300ish) making some … Continue reading

Posted in MySQL | Tagged MySQL, Oracle | Leave a comment

Git Reference


I have put up a gist of my Git cheat sheet that has been developing since the switch from SVN earlier this year, also testing a Gist embed plugin….

Posted in Git | Tagged Reference, Version Control | Leave a comment

PHP Database Based Session Handling


Due to a move to a multi-server environment at work to cope with peak time performance I was asked to implement a replacement to PHP’s standard session handling so that sessions would work in this new environment. In PHP 5.4 … Continue reading

Posted in PHP | Tagged Databases, PHP, Sessions | Leave a comment

PHP cURL Wrapper


I’ve put up a gist of a simple PHP cURL wrapper which simplifies basic content fetching with cURL. The class throws standard Exceptions in case of no content being returned or incorrect settings being passed as arguments. Setup:

Simple setters for … Continue reading

Posted in PHP | Tagged cURL, PHP | Leave a comment

Generic Archive Page WordPress Template


Now that I have a few posts up I realised it would probably be a good idea to add an archive links page to my blog.  As the standard Twenty Ten WordPress theme does not have one of these I … Continue reading

Posted in WordPress | Tagged PHP, Templates | Leave a comment

Authors Page Template For Multi-Author WordPress Blog


As it turns out there is not a simple / native way to have a single page with information on all authors for a multi-author blog with WordPress. So time to make my first WordPress template…. Starting Point I used … Continue reading

Posted in WordPress | Tagged PHP, Templates | Leave a comment