Get rid of new mail message in linux unix terminal

I had a message that was returning every time I was using Terminal on my local machine. It says that I had unread mail in /var/mail/$USER. But how can you read this mail and how can you get rid of this?

It’s mail that has been send by for example a local install of WordPress or it’s a cronjob which sends reports on cron-jobs which you ran locally. You can of course see if you can disable the mailings. But you also want to read the mails first (what they are about) and get rid of this message that keeps appearing when starting terminal/CLI (so you need to get rid of the emails).

First reading the messages can be done by running:

$ cat /var/mail/$user

Then removing the mail can be done by following the following commands:

$ mail
> d *
> quit


[dutch] Notificaties voor nieuw aanbod

2015-03-18 at 16.41

In navolging van mijn post over het krijgen van notificaties over nieuw aanbod op een specifieke zoekopdracht op, wilde ik hetzelfde bereiken met nieuw aanbod op Nou bied dat zelf al aan via een e-mail notificatie, welke je kan instellen op een specifieke zoekopdracht. Alleen kan je deze maar 1x instellen als 1 zoekopdracht. Maar misschien heb je andere wensen per regio, stad of dorp. Of misschien wil  je een notificatie ontvangen op een ander kanaal dan via email. Hoe pak je dat dan aan? Continue reading

Add YouTube titles to Google sheets through Apps Script


I wanted to get a list of all the videos uploaded on YouTube by a specific user. A nice feature of Google Docs (Spreadsheet) is the abbility to add and run apps scripts to get data based from an external source like YouTube. So I changed a already existing script ( and it works perfectly for me. Open a new Google Spreadsheet. The click “Tools > Script editor…” and copy past the code below. The you can run the script from within the “Script editor”. You probably need to authorise using YouTube within Google Spreadsheet. Continue reading

Fixing the locale error on Debian Wheezy

When you get errors with running commands on your Raspberry Pi like “warning: Setting locale failed.” you can fix this by updating the locale file in the OS. You can do this by typing:

pi@raspberrypi ~ $sudo nano /etc/default/locale

on your Raspberry Pi command line or in your Terminal window from your Mac when connected to the Raspberry Pi.

Next you have to change the following lines within the editor that just opened: Continue reading

Access files on your Raspberry Pi from your Mac

To access the files on your Raspberry Pi on your Mac Finder you can install the appletalk protocol on the Pi by typing the following commands on the Raspberry Pi.

pi@raspberrypi ~ $sudo apt-get install netatalk

This lets you use the following (in the terminal on your Mac) to connect to the Pi

yourmac:~ username$ open afp:/

Now you will see the Raspberry Pi appearing in your Mac Network where you will need to login on (default user/pass), to see access the files and folders.

Next up is

Connecting with a remote desktop (VNC, Debian Wheezy)

You don’t need to connect to a external monitor when the Raspberry Pi is connected to a network. You can use Virtual Network Computing by installing tightvnc on your Raspberry Pi and using the pre installed “screen sharing” on your Mac.

First you need to install tightvnc on your Pi:

pi@raspberrypi ~ $sudo apt-get install tightvncserver

and run it

pi@raspberrypi ~ $tightvncserver

If you have a Mac you need to go to the “Finder” and select “Go > Connect to Server…” or use the Shortcut “CMD + K”

Continue reading

Raspberry Pi Camera (Mac)

Recently I ordered a Raspberry Pi camera module and I going to share the some I made for getting the camera and the Pi working for me. The Hardware I have is a Mac (OS version 10.9 – Mavericks), a Raspberry Pi module B 2012 and a Raspberry Pi Camera Module v3.

Connecting and installing the camera

Follow the steps on Don’t forget to use the connector behind the Ethernet port and not the other one.

Next up – movies you and your friends have seen - movie page

When I was searching for the best app for keeping track of my watched movies/series I found to be the best one. Months ago I already started adding movies that I wanted to see on But this was not a very nice listing system for keeping track of my movies I wanted to see or have seen. I’ve also looked at a similar service called, but I think the interface is less cool.

Continue reading