Instarecipe!

We’re happy, if not proud, of introducing our entry in the 2012 Rails Rumble competition: Instarecipe.

Instarecipe is a simple application that allows you to search for recipes and tries to give you results as fast as possible.

It also integrates some external social media, allowing you to post on facebook and pinterest, and watch videos, taken from youtube, on how to make your favorite recipes.

We’d love to teach you how to use it, but it’s pretty simple. Run to instarecipe.com and start searching!

The application has been coded in around 30 hours during 48rails, an Italian competition parallel to Rails Rumble.

We used Ruby, a lot of Javascript, and several graphic assets found around the Internet.

We had lots of fun building it, and hope you’ll have fun playing with it :)

How to add WiFi capability to the RaspberryPi in 10 easy steps

After a bit of struggling, we finally managed to make the Micronext MN-WD552B USB dongle work on the RaspberryPi. I choose this dongle beacuse it’s tiny, and it was suggested by Farnell’s website. Unfortunately the driver for Realtek RTL8188CUS chipset provided with wheezy is not working so there’s a little bit of hacking to do.

Here’s a step-by-step guide to have a perfectly working WiFi RaspberryPi

  1. Buy your dongle :) 
  2. Download a brand new wheezy. New is always better. Download it from here. I installed the 2012-08-16-wheezy-raspbian.zip version.
  3. Install the brand new wheezy image on a brand new SD Card (or a used one, it really doesn’t matter because we are going to format it) following these instructions.
  4. Plug your raspberry to a monitor, a keyboard and an ethernet connection, power it on and login locally or via ssh
  5. Complete the initial setup of the RaspberryPi
  6. Download the fantastic python script made by MrEngman from here
  7. Manually put the old driver into the RPi’s modprobe blacklist:
    sudo vi /etc/modprobe.d/raspi-blacklist.conf 
    • add this line: blacklist rtl8192cu
    • save the file
    • reboot the system: sudo reboot
  8. Exec the MrEngamn’s script:
    sudo bash install-rtl8188cus.sh
    • Follow the instructions and reboot
  9. Exec the script again, as in step 8, this will make the RPi download all the updates
    • Follow the instructions and reboot again
  10. THE END, now you finally have a 100% WiFi capable RaspberryPi!!!

I hope it will help! Bye Guys and happy prototyping!

I’ll speak at RubyDay.it tomorrow!

I was asked to write about the talk I’ll give tomorrow at RubyDay.it.

Without giving away too much here’s a post I wrote some time ago about @instance_variables usage in Rails implementation.

Last I add a promise: it will be fun!

“Use Node.js FOR SPEED” — @RoflscaleTips

I obeyed, therefore I wrote an opal NPM package.

Now I can trash Rails and opal-rails and start working on Node only!

server = Server.new 3000
server.start do
  [200, {'Content-Type' => 'text/plain'}, ["Hello World!\n"]]
end

For it I had to write the Server class:

class Server
  def initialize port
    @http = `require('http')`
    @port = port
  end

  def start &block
    %x{
      this.http.createServer(function(req, res) {
        var rackResponse = (block.call(block._s, req, res));
        res.end(rackResponse[2].join(' '));
      }).listen(this.port);
    }
  end
end

Put them in app.opal and then start the server:

$ npm install -g opal      # <<< install the NPM package first!
$ opal-node app

The running app

YAY! now I can roflSCALE all of my RAils apps!!1

Cross posted from Eliæ

Yet another BaseCamp Chrome extension

A small utility for the “old” BaseCamp webapp that will insert “comments” links within the /todo_lists page to jump directly to the desired TODO.

Available the dedicated Chrome Web Store page.

Have Fun