Categories
Big Data Couchbase Databases

Getting your head around the Couchbase SyncGateway

I like Couchbase. One of the things that really appeals to me is the sync gateway. As a mobile developer I often find that the apps I’m developing are just interfaces into some backend service. Somewhere out there in the cloud I’ll have a web application that sits on top of some database (nodejs/mongoDB is […]

Categories
Certification Java Oracle Expert, Java Web Services XML

Service first using JAX-WS

There are two ways for developing services using JAX-WS, service first, and contract first. Service first means you would typically write the implementation first and generate the WSDL afterwards, whereas contract first you would define the WSDL first, then write the implementation afterwards. There are pros and cons for each approach, but I won’t dwell […]

Categories
Android Grails Java

Grails based survey system, the android app

Some time back I wrote an article describing the roosearch system I developed using grails. This is the second part, the android client, please checkout the previous article otherwise this might not make much sense! After completing the grails component, I had a RESTful API available to me, and I just needed to build an […]

Categories
Linux Operating Systems Raspberry Pi

Changing the hostname on your raspberry pi

By default, the hostname on a raspberry pi installation will be “raspberrypi”, which is great if you just have the one pi. If you’ve got more than one, then you’re going to get hostname conflicts when you attach both to your network. Fortunately its easy to correct this. Plug the pi that you want to […]

Categories
Grails Groovy

Getting to grips with Grails, building a survey management system

Sometime in late 2012 I was discussing dissertation project ideas with my girlfriend, as she was coming up to her final year of a computing bachelors. The usual option chosen by many graduates would be to just build a website or an app, or do some form of market research. We decided to encompass all […]

Categories
Mathematics Project Euler

Project Euler, problem 4, palindromes

Problem 4: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. Firstly I decided to try and solve the problem using two 2-digit numbers so I can […]

Categories
Mathematics Project Euler

Project Euler, problem 3, largest prime factor

Problem 3 : The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? To solve this, I needed to understand the process of prime factorisation (surprisingly, it is something which I was never taught at school/uni). What we need to do, is to […]

Categories
Java Programming Python Raspberry Pi Robotics

BrickPi Lego robot takes its first steps!

A little while back I wrote a post about creating a python script to control a brickpi robot, now that I actually have the brickpi components, motors and cables and have actually tried it out, I’ve made a few improvements to that script to make it work. Installing Raspbian Firstly, I had to revisit the […]

Categories
Mac OS X Operating Systems

Installing a new Java JDK on a Mac

Updating Java on a Mac is easy, it’s just a case of installing a new JDK and recreating the symbolic link that is used to point to the current JDK. Download the Java .dmg for mac from the Oracle website, then run through the installer. That will install Java for you, but your default Java […]

Categories
Mathematics Project Euler

Project Euler, problem 2, fibonacci sequence

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, … By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the […]