It’s relatively easy to detect motion with a PIR sensor connected to your Raspberry pi’s GPIO.
This is merely an overview of how to write the python script. For more details on how to connect the sensor, read this.
Continue reading “Detect motion with a Raspberry PI”
What’s the best way to auto mount a usb drive or hard disk? What if the filesystem is ntfs?
To get a list of connected usb disks you can:
Continue reading “Mount a usb drive or hard disk on Raspbian”
At In The Pocket‘s Harald I’ve developed a library for Android: the iBeacon Scanner Android library.
This library takes the pain away when you want to scan for iBeacons on Android. You register the iBeacons you are interested in and via a callback you are notified when you enter or exit the range of an iBeacon.
You can read more about this on In The Pockets developer blog.
On top of that I created 2 apps that build upon this library:
- iBeacon Scanner scans for all the iBeacons around you and displays them.
- iBacon allows you to broadcast an iBeacon via your bluetooth chip on your Android phone.
After cycling from Aix-En-Provence to Bordeaux I wanted to share this simple map with most of the campings close to the Canal Du Midi and Canal Du Garonne as it was always a search to find one!
While I agree that a Singleton shouldn’t be used to often, I do want to share my favourite way to implement the singleton pattern for reference.
public class Example
private static Example instance;
// this class cannot get instantiated
public static Example getInstance()
if (instance == null)
instance = new Example();
In October of 2015, my girlfriend and I went to Peru. One of the highlights of the trip was our trek to Choquequirao! I want to share what we have learned about this fantastic trek!
Continue reading “Going to Choquequirao!”