Hello, my name is Daniel, and I make things! Join me in this exciting journey exploring the world of computers and electronics

Opening a popup ninja from php

Checking the documentation from popup ninja plugin on how to open the popup from a link, the only available option is how to open from a blog post. But if you want to add the link in your website using php, you need to use the wordpress function do_shortcode. The documentation doesn’t show how to add a do_shortcode with content between the tags.

To open the popup with php, simply get the popup ID and use the code bellow. Just remember to change the text for your desired one.

< ?php echo do_shortcode( '[ninja-popup ID=1234]'.'text to open popup'.'[/ninja-popup]' ); ?>

One Dollar Board – Cheapest development board on the market

What if you could manufacture a very simple development board that is arduino compatible and have a final price of only ONE DOLLAR!? That’s what some crazy guys from my home country (Brazil) are trying to accomplish.

one dollar board

The main idea of the project is to enable every kid around the globe to leave school knowing how to program, the basic of electronics, and how to apply their knowledge by building cool things. Think like this, with only $25 you can buy 25 boards, which will enable pretty much an entire classroom to own these boards and create amazing things with it. It’s crazy to think the impact that the project can make in poorer areas of the world, enabling those engineering minds to flourish and change the world for better (why not?!).

Check their indiegogo video below and remember that for every dollar invested is one entire new board built!

Click here to check their campaign!

(of course the project is part of the open hardware movement)

Arduino Crash Course: Get up and running in 1 hour

Have you heard of the Arduino? Its a small but powerful micro-controller that can be used to create many amazing things. An Arduino can be used to sense its own environment, connect and communicate with the Internet, manipulate devices around it, send messages, and much much more. Last year, over 700,000 hobbyists were using and contributing to the Arduino environment.

This course is designed to take you from 0 to 100 with Arduino in less than an hour. At the end of the course, you’ll be fully familiarized with Arduino and ready to build your own applications and devices. Ideally, this course is for beginners who want to get their toes wet with the Arduino system but those already familiar with Arduino can still learn from the techniques used in this course.

What you’ll learn in this course:

– How to setup the Arduino software and start outputting code
– How to understand and write code that your Arduino can understand
– How to setup Serial communication
– How to use a breadboard, and RGB sensor, and a LED Pin.
– How to create a variety of functions that interact with your Arduino
– How to create a device that detects your rooms temperature and changes colors accordingly.


Custom jQuery Slide Button

The idea of this code is to create a button with a cross on the right side and when you click, it rotates the cross and expands a hidden div. To slide up you can click on the button or on a round circle on the bottom of the div.

Everything was made using HTML, JavaScript and CSS.

You can also check a demo here.

button example

ProtoStack Atmega32A Dev Board

During the past few days I have been playing with ProtoStack’s Atmega32A Dev Board and have been very happy with it. Along with the Atmega(8/16/328) dev kit, so far it’s one of my favorite boards.

It comes with everything you need in order to have it going , the big IC-ATMEGA32A-PU µC, 10-pin connector (you can also use a 6-pin ICSP header), capacitors, resistors, voltage regulator for an external power supply and more… You can check the complete list and manual here.

If you are looking for an Atmega32A Dev Board, I would recommend this one for sure!

Relational Space #1

This work presents an urban intervention using interactive technology. Located within a pedestrian and small vehicles tunnel below a busy road, that connects two parts of the Federal University of Santa Catarina Campus, the intervention creates a new relationship between tunnel and road. It operates as a displacement, transposing the sound of the traffic above to the pedestrians below. A sound sensor captures the sound of cars on the road and transmits a signal to the Arduino board, bringing a sense of chaos into the tunnel from above. The installation was developed as part of the discipline of Interactive Technologies and Creative Processes of the Architecture and Urbanism department at UFSC.

This is the final project from an architecture class project that I helped with.

Check out more @ Nimbu

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.


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




Crosschecking movie watchlist from two people


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.