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!


  • A trip to the End of the World!

    December 15th 2013, 7 AM, me and my beloved started a 35 day car journey to the end of the world. From Florianópolis, Brazil to a city called Ushuaia situated at the very tip of Argentina, the last city in South America before Antarctica.

    We drove a total of 13500 km or 8400 miles, the same distance from New York to California and back in our Peugeot 307 which we called “Poverello,” on every kind of road imaginable.

    After this amazing trip, we decided to build a website to share our experience. We hope that it is useful to future adventurers…

    Please check our page at:

    www.RoadToPatagonia.net


  • AD5204 Digital Potentiometer Breakout Board

    board-pic

    The AD5204 is a Digital Potentiometer with four internal 10kΩ, 50kΩ or 100kΩ potentiometers. It’s a 8 bits chip which means it has 2^8 = 256 steps from 0Ω to 100kΩ. It can be easily controlled by any microcontroller as it uses a Serial Peripheral Interface Bus (SPI).

    I was working on a project where I needed to use some of those AD5204, so I developed a tiny breakout board in order to be able to prototype it using a SMD chip on the breadboard.

    Now I’m sharing the Eagle Cad files, so whenever you need to use this chip, you can make some breakout boards with OSH PARK and use it with your projects.

    Below you can find an Arduino code example along with useful links.
    Hope this can be useful for you!

    Any question just let me know!

    (continue reading…)


  • 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:

    ;)


  • 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…)