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.
Follow these steps to share Wi-Fi from your laptop with your Galileo Gen 2 board.
You will need the following:
- Standard ethernet cable
- Laptop connected to Wi-Fi internet
- USB to Ethernet adapter
- Bonjour Browser
- Intel Galileo Gen 2 + proper SD card loaded with necessary software (provided by Intel)
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)
- Step 4: Open System Preferences -> Sharing and select “Internet Sharing.” Before turning it on, make sure to have enabled “USB Ethernet” checkbox.
- Step 5: Discover your connected Galileo device’s IP address using the Bonjour Browser (listed under “xdk-app-daemon”)
- Step 6: SSH into your Galileo and prove it has internet:
Simply make some call like “ping google.com” to see if you get a real internet response back.
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.
I organized a successful first Seattle API Meetup with John Musser last night at DevLocal: Ten Reasons Developers Hate Your API. Very strong turn out!
Article I wrote just went live for the GoMoDev Wearable conference I will be speaking at in DC: http://gomodev.com/3-ways-to-evangelize-your-thing-at-hardware-hackathons/