Geek Girls Carrots @ Seattle Central Library

ggcarrots

 

I was invited to give a 7 minute lightning talk at Geek Girls Carrots’ first Seattle Maker Party. Had a great time showing people how to use Intel Galileo to make Mashery API calls!

Fixing “could not obtain a database connection within 5.000 seconds” on Heroku

Being a relative Ruby on Rails + Heroku n00b I was being plagued by an error message which accompanied hard crashes on my RoR server being deployed on Heroku:

"Error during failsafe response: could not obtain a database connection within 5.000 seconds"

This seems to basically just mean that the thread pool got tied up processing stuff and crapped itself. The fix is to use Unicorn or other solution to improve the way Rails allocates resources within Dynos. It took me 3 minutes to install Unicorn using the Heroku instructions and the problem has not occurred again.

Sharing Wi-Fi with a Gen 2 Galileo Board via USB

Follow these steps to share Wi-Fi from your laptop with your Galileo Gen 2 board.

You will need the following:

Here is how to do it:

  • Step 1: Download + Install Intel XDK
  • Step 2: Download and install Bonjour Browser
  • Step 3: Power on your Gen 2 board and connect it to your PC’s USB slot via the ethernet -> USB adapter like this (make sure you have the Yocto linux loaded SD card in the slot)

adjust

  • Step 4: Open System Preferences -> Sharing and select “Internet Sharing.” Before turning it on, make sure to have enabled “USB Ethernet” checkbox.

sharing

  • Step 5: Discover your connected Galileo device’s IP address using the Bonjour Browser (listed under “xdk-app-daemon”)

Bonjour

 

  • Step 6: SSH into your Galileo and prove it has internet:
ssh root@your.ip.here.from.bonjour

Simply make some call like “ping google.com” to see if you get a real internet response back.

Intel Galileo GEN 2 Board Unboxing

Galileo Gen 2

Today the “Intel fairy” delivered unto me a set of Intel Galileo Gen 2 boards. Setup instructions were simple and getting up and running was a snap.

A couple pointers: Make sure you plug the power in via the external cable or the Intel Galileo v2 “usbmodem” entry will not appear under the Serial Ports menu. You might be deceived because the board seems to have power when plugged in via USB but you won’t be able to see it in the Arduino IDE drop down menu.

For a full run down of differences, check out this diagram.