I was invited to give a talk at Society Consulting in regards to beacons and Bluetooth LE yesterday, great turn out. Big data is the way to go.
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.
The instructions provided by Heroku on how to get Rails 4 + Heroku + Paperclip gem + Amazon S3 image storage did not work for me. These instructions did: http://jaysonlane.net/tech-blog/2012/04/rails-heroku-image-attachments-using-paperclip-and-s3/.
The one additional thing to make sure of, once you have created an S3 “bucket” for your images (and followed the appropriate naming conventions stated by Heroku) is that you must set an IAM policy.
This is different than an S3 bucket policy and resulted in a lot of confusion on my part as to why I kept getting Access Denied errors on Heroku when trying to upload paperclip images.
To set your IAM policy, you need to navigate over to: https://console.aws.amazon.com/iam/home#users. Select your user and then click “Attach User Policy” -> “Administrator Access.” Once you have added Admin access to your user, your access denied errors should go away.
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/