codeBrane Blog

arduino mega web server with wifly and temperature sensor

Sunday Apr 27, 2014

I’ve had a pile of electronics lying around for a while, waiting for me to tackle an interesting project. How to get an Arduino on the wifi network, broadcasting the temperature. Well, the parts list is fairly simple to get hold of: Arduino (I used a Mega 2560) WiFly shield Stackable headers BMP180 temperature/pressure sensor. I got one from eBay (I think!) A load of jumper wires and a wee breadboard (for the BMP180) Soldering iron and lead free solder Some AC/DC albums (optional) Now I haven’t soldered anything in a very long time but it turned out to be easy (once I’d worked round the tip on the brand new soldering iron not working after 5mins).

designing a simple serial api for the arduino and node dot js

Sunday Apr 27, 2014

As I work towards a remote Arduino weather station, sitting out in the garden, or even up a hill (with GPRS perhaps?), I started looking into hooking it up to the Raspberry Pi via the serial port, to investigate an initial hardware control API. Now before you go running off at the thought of RS232 and voltage conversions, the Arduino has an internal serial to usb converter, hoorah! What does this mean?

connecting to sql server from node dot js

Friday Apr 18, 2014

I’ve been hearing some good things about Node.js recently so I thought I’d give it a go. Not on something easy like a quickie server but on something much more gnarly. Getting it to talk to MSSQL via ODBC. First things first, you need to install the ODBC/FreeTDS infrastructure and I’ve already blogged about that here. Once that lot is set up, I’ll be using a DSN to define the connection so some things need to match.

the four levels of software testing

Wednesday Feb 12, 2014

I was recently having a blether with a colleague about testing and how we should thrash out a shared understanding of the different types. There are so many ways to test software, all with their own advocates, terminology and fluff that we just had to write down what we meant when we said ‘the software is tested’. The whiteboard is your friend in cases like this. So I thought I’d write all this down, picking out the different test types from our whiteboard session, refine them and come up with a nice diagram.

developing with tmux

Saturday Jan 25, 2014

Many years I used to work almost exclusively in two development environments. Visual Studio and SoftICE, the latter making me a bit of a digital hermit which I wrote about a few years ago. Back then I’d realised the eremitic connotations of software development and they’ve hovered like a presence in the background throughout my softare development career. Since leaving the driver days behind, that hermit’s cave of SoftICE has been replaced, in turn, by multiple Windows command prompt windows all crammed into a tiny monitor, fighting for space not only on the screen but in my brain’s limited short term memory banks.

adding authentication to spring controller methods with aspectj

Thursday Jan 23, 2014

The latest integration project I’m working on is to wire up the Blackboard VLE to the SITS student records system, mainly to synchronise courses and users. The first version I did was a couple of years ago, using the Blackboard SIS framework but as it’s a sysadmin thingy, file based and incapable of reporting errors programmatically, for this new version I decided to develop a building block with a nice REST interface.

book review backbone marionette

Saturday Jan 18, 2014

To set the scene for this review, I must explain something. I’m a middleware developer in the main, although I like to code side projects for iOS and Android but for the most part, I work with backend data and systems. Plumbing applications together with COM, REST, SOAP and all that jazz. ERB templates in Rails are fine but the client side of things has largely been a ‘here be dragons’ type of thing.

ruby soap integration from the perspective of a seasoned integrator

Friday Nov 1, 2013

I do lots of integration. I mean, lots, so I’ve seen a lot of different systems, APIs and integration methods and the one rule that always stands is, ‘Know Thy System’. In theory that’s what you should do. In practice it’s always appended with ‘to varying degrees!’. This is almost always down to API documentation or the level of (or lack of) system knowledge of the people who look after it.

hello world in commodore 64 assembly

Friday Oct 25, 2013

I’ve been rebooting my interest in the Commodore 64 recently, after a layoff of around 20 years! The last time I used a 64 was back in 1992 when I wrote a BASIC word processor on which I typed my honours thesis and printed out on an MPS printer, if I remember the model correctly. I still have the old machine, printer, tape drive etc but I’ve been relearning everything on VICE before I get round to powering them up again.

developing a simple ios sliding navigation app

Monday Aug 26, 2013

I’m working on an iOS app that lets me identify mountains based on my location and bearing but one of the first things I wanted to tackle was the navigation. How to get from screen to screen. Initially I tried a tabbed app layout but that seems so ‘yesterday’ these days and instead I plumped for a sliding navigation model, ala Facebook app. It’s not as complicated as it sounds once you’ve got your head round iOS development so this post takes you through constructing an app with three coloured views.

codeBrane on Github