Manage D-Link DCS-960L motion detection using a RaspberryPi

Installing and configuring a surveillance camera is becoming an operation very easy and very common, strong technical skills are not required anymore.
The question is: can we control a “home camera”  with our RaspberryPi ? The short answer is: YES !

I’ll show how to use the RaspberryPi to control, using jus the linux shell, a D-Link DCS-960L .

Continue reading “Manage D-Link DCS-960L motion detection using a RaspberryPi”

How to delete Gradle cache files

If, like me, you are having troubles compiling projects (also Android Studio ones) after having upgraded Gradle you can try to delete cache files.

I’m assuming you are working on a Linux box and that your Android projects are saved inside  ~/AndroidStudioProjects/

  • How to delete general caches:
  • How to delete Android Studio caches:

    I hope these commands will help you!

Linux – suspend Thunderbird when screensaver is active

If you have configured many Thunderbird’s mail filters and you don’t want them to be applied when you are away from your computer, maybe because (like me) you want to have all the messages in the standard Inbox when you are reading them on the smartphone, you could try to suspend Thunderbird when screensaver is active.

 

A simple script, and crontab, could be enough … Continue reading “Linux – suspend Thunderbird when screensaver is active”

Android icons creation tool

Are you developing an Android application and have you to convert an image to a set of icons ? Do you want to avoid as much as possible repetitive manual operations ?

Here you can find a tool to convert a single image to the set of icons needed by Android for various device screen resolutions.

Continue reading “Android icons creation tool”

Cross platform push notification

Do you need to add a cross platform push notification system to your App ? Do you want to make it as generic as possible without having to implement specific versions for each platform ?

You have, at least, 4 possibilities to do so:

  • AMAZON Simple Notification Service (SNS)
  • Push Woosh
  • QuickBlox
  • BoxCar

Continue reading “Cross platform push notification”

SimpleORM: PHP ORM classes and tools

SimpleOrm is a set of PHP classes to let you interact with tables and views in a database using an object oriented syntax (as the name implies it’s a simple PHP ORM).

Key features are:
1- Database abstraction
2- Query builder
3- Table-Model mapping
4- Fully iterable Resultsets

Continue reading “SimpleORM: PHP ORM classes and tools”

PHP: container for values and objects

Using the class  \Airaghi\Tools\Container it’s  possibile to share between your scripts (inside a single execution flow) values and objects reference without having to use global variables.

The class has methods for:
– saving and getting values
– saving and getting objects references
– deleting of values stored
– deleting of stored references

The code is available here.