Blog Archives

A web developer playing with the Intel Galileo part 4: Buttons!

Buttons are one of the main components on even some of the simplest circuits. We want our program to know when a button has been pressed and take appropriate action. While we could use our current code and check the

Tagged with: , , ,
Posted in devices

A web developer playing with the Intel Galileo part 3: Analog Output (PWM)

So, now that we have figured out digital input/output and analog input it is time for the Analog Output… or rather, a simulation of it using the technique known as Pulse Width Modulation, or PWM. If you have some bases

Tagged with: , , ,
Posted in devices

A web developer playing with the Intel Galileo part 3: Analog Input

Next in the list is Analog Input. Once again following the arduino template, the Galileo has 5 pins that read a voltageĀ  with a resolution of 12 bits, meaning that we will get a number from 0 to 4095 where

Tagged with: , , ,
Posted in developer tips

A web developer playing with the Intel Galileo part 2: Digital Input-Output

Our next step is manipulating the hardware ports from a language we feel comfortable, like JavaScript, so we can do future experimentation on it. Since this seems to have some potential, we may turn this into a library so future

Tagged with: , , ,
Posted in devices

FirefoxOS app Localization, the Javascript side of things

After playing around with adding several languages for my app’s HTML interface on the previous post I began researching how to use this setup to change strings on the JavaScript side depending on the settings language. After a look at

Tagged with: , ,
Posted in developer tips

Easy guide to Localize a FirefoxOS app’s html interface

Since Firefox OS was released in Spain and Latin America is targeted next I tough that translating the app I keep working on to Spanish was a natural decision. Since my HTML interface is pretty simple, my first impulse was

Tagged with: , , ,
Posted in developer tips

Detect if app is running on Firefox OS using JavaScript

While we live in an time of Responsive Web Design where a webApp is expected to adapt to any screen (and device) it is still useful to have some way of checking if you are running this or that platform

Tagged with: , , , ,
Posted in developer tips