Hello, my name is Daniel, and I make things! This is my blog, where I show some of the stuff I do and things I am passionate about. My focus here are electronics, the hacker movement, photography and programming. Welcome!


  • Terminal Tip: Removing hidden files recursively

    If you need to remove all those hidden ‘.files’ from some folder recursively, you can cd into where you want to remove and use the code below:

    find . -name ._\* -print0 | xargs -0 rm -f


  • Raspberry Pi Using Whole SD Card Memory

    When you install a Raspbian Operation System on your Raspberry Pi (I’m currently using Minibian) you can notice that it created a file system with very little space, which can be annoying if you are using a bigger SD card.

    I only noticed it when I started to apt-get all those packages that I needed, when suddenly got the message:

    cannot copy extracted data for './usr/sbin/php5-fpm' to '/usr/sbin/php5-fpm.dpkg-new': failed to write (No space left on device)

    Looking into the SD card’s memory I get:

    It’s full!!
    (continue reading…)


  • Script to Organize Dropbox’s Camera Upload folder

    Dropbox has a great feature called Camera Upload, where you can automatically upload pictures from your phone, making life for lazy people like me easier. The problem is that I take so many pictures with my phone that the folder ends up with a huge amount of files, making the task of browsing and viewing them slow and annoying.

    To fix this problem, I created a python script that will automatically organize pictures inside folders Year > Month.

    DropboxCameraUpload

    How to use:

    In order to use the script, put the file organize.py inside the ‘Camera Upload’ folder and run it from the terminal:
    python organize.py

    Enjoy!

    Code:

    ;)


  • Migrating Server

    Hey people of the “intrawebs”, I’m migrating this blog to another webserver @ DigitalOcean (they are great btw!).

    So until everything is 100%, this blog might look a bit blah.


  • Reboot Buggy

    Industrial designer, Joey Ruiter brings his modern day carriage to life by ignoring the parameters of what a car is supposed to be and asking what a car wants for itself. It’s a story about steel and horsepower, but really it’s a story about what happens when we aren’t afraid to be curious.

    “For some people is enough to just think about it, or talk about it, or watch on tv or read a book about it… My advice is to get your hands dirty, and wonder and not be afraid to ask questions like ‘Why is that this way?’. People say there are no dumb questions, and thats true, but I think we get criticized for wondering too often. In everything we do there are parameters, to ignore those is the key.”


  • Keep tabs on your CryptoCoins!

    btcoin

    Just playing around with Javascript and PHP I built a simple website to display Cryptocurrency Prices such as Bitcoins and Litecoins.

    You can check it at:

    www.danielandrade.net/bitcoin


  • Mounting a Filesystem via SSH on OSX Mavericks

    fuse SSH’ing to a server and doing all the configuration through terminal is easy and very fast, but when you want to edit files and set a remote development environment on your local machine, mounting a remote filesystem over ssh and editing them as the files were in your computer is the way to go.

    Right now I’m using the just released OSX Mavericks (OSX 10.9), so for mounting a remote system you will need to do some tricks and tweaks to have it working. I will try to explain step-by-step on how to do it.

    (continue reading…)


  • Script for Organizing Bitcasa’s Upload Directory

    Bitcasa is a great option for everyone who wants to backup a big chunk of files. You have unlimited space to host your files, and it also works as an external drive. I can say it works alright, but it is still a bit slow and there is still a lot of work to be done in order to be as good as its competitors, such as Dropbox.

    With the last iOS update, you are now able to backup all of your phone’s pictures directly to the Bitcasa Upload folder. It’s great and works very well BUT the problem is that after a month of uploads, the folder is packed with more than a thousand pictures, which makes it extremely slow to function (because it’s all in the cloud). So I made a small python script to automatically organize the folder by the time it was uploaded, creating a folder like /Volumes/Bitcasa/Uploads/2013/Aug and it moves them to those folders.

    Below you can check out the script, hope it helps!


  • Crosschecking movie watchlist from two people

    trakt

    Trakt.tv is a great service for those who like to keep track of everything they watch, both TV shows and movies. I am a bit of a statistics freak and I love to analyze any kind of data, and with this website it’s no different. So far I have watched 2,027 episodes from 35 different shows and 642 movies (that I have tracked so far).

    Another thing that I really like about trakt is that I can install a XBMC plugin to add shows automatically to the list after I’ve watched them.

    You know when you’re trying to decide which movie to watch with your girlfriend or friend, and you spend more time searching for what to watch than actually watching it? With this in mind, and using trakt’s API, I made a Python Script to do this work for me (maybe someday I can make a php version and put it online), and all you have to do is enter two usernames from trackt and it will list the movies.

    (continue reading…)


  • Embedding instagram content on your website

    Today, Instagram enabled the option to embed pictures and videos on the internet, a feature that many people have been asking for. However, if your content is private this feature is disabled.

    To embed any instagram content on your website, all you have to do is go to http://instagram.com/[insert your username].

    Embed Instagram on your Page

    (continue reading…)