bookmark_borderOpening 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]' ); ?>

bookmark_borderOne 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)

bookmark_borderArduino 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.

ALL IN LESS THAN ONE HOUR!

Continue reading “Arduino Crash Course: Get up and running in 1 hour”

bookmark_borderCustom 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

Continue reading “Custom jQuery Slide Button”

bookmark_borderProtoStack 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!

Continue reading “ProtoStack Atmega32A Dev Board”