April 9 2011 is Global Internet of Things Day.

Stay tuned as we will be hosting a mega-hack-a-thon in London.

Levent Ali · 3 March 2011 ·

This year at Connected Environments we have dedicated Fridays as ‘hack-days’. The rules are fairly simple: “build something using Pachube and eat food”. During the first one I decided to play with an Arduino as I had never touched one in my life. I also had no idea what a circuit was.

After a quick download and install of the Arduino IDE (plus the USB driver for OS X), Neill gave me an introduction to circuits, resistors and resistive sensors. We also drew fake electronic symbols and probed our surroundings with multimeters.

Playing around with some of the sample projects in the IDE quickly shows how easy it is to program the Arduino and what an incredible platform it really is. We soon built a crude circuit that modified an LED’s intensity based on the ambient light reading.

See a picture of one of our innovative designs

Time to talk to Pachube

The idea was to register an account on pachube.com, create a new feed and have the Arduino send the light sensor reading directly to Pachube using our api key.

To my surprise and slight embarassment, I discovered that the Arduino IDE comes with sample code for connecting an Arduino with an ethernet shield to Pachube. In fact the example code does everything required.

Pachube Client

As my sensor reading was being made over analog 0, the only modifications made to my script were to enter the feed id, my api key, plus the mac address and ip address of the ethernet shield.

Note: a couple of things threw me: the sample ip address is 192.169 instead of 192.168 and Pachube’s ip address has changed to 173.203.98.29 (even though we’ve kept the old one). We’ll try and get this updated in a future releases of the Arduino IDE.

In conclusion

Attach a battery and a weatherproof enclosure and you have the beginnings of an internet enabled weather station.

Levent Ali · 26 January 2011 · pachube ruby arduino

I use the git grep command pretty much exclusively these days.

I find the following options useful:

  • -n # show line numbers¹
  • --no-index # search all files even those that aren't tracked
  • -F "string" # don't interpret as regex
  • --color=auto|always # highlight the search term¹

See Mislav’s post for excellent pro tips: git tips

¹ Default options in ~/.gitconfig
Levent Ali · 7 October 2010 · git scm

During a recent evaluation of different databases and ORMs, I realised how so many comparative assessment articles follow the same shallow pattern.

In order to reduce the painstaking amount of time that must go into writing these, feel free to use this as a template for any such future posts.


Technology that will make you win at life versus the onset of haemorrhoids¹

Benchmarking graphic

Conclusion: Use new hotness. It will not cool.²

¹ no I did not recommend it
² yes it will
Levent Ali · 17 September 2010 ·

Reading @ahmednuaman’s early morning tweets make me feel like it’s groundhog day.

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Ahmeds tweet

Disclaimer: Mr. Nuaman is the best freelance designer/developer I have ever worked with. His sense of humour allows him to put up with all of my immature bullshit.

Ahmed correspondance

Levent Ali · 11 August 2010 · humour flash adobe

☜ newer posts older posts ☞