bitpop

home
Nov 27

Fast Test Rails →

Corey Haines talk about getting away from Rails for testing.

Aug 05

Confident Code by Avdi Grim →

May 06

Get Facebook test users

First, get your access token:

You can get the access the token by using curl:

curl “https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials”

Then register a test user to a app:

curl “https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&permissions=read_stream&method=post&access_token=APP_ACCESS_TOKEN”

Full details here

Apr 28

GIT your repository back to a previous commit

Lets say you have two local git branches (master and feature).

Lets say that by accident you push your feature branch and update the master branch, something like this could happen by typing

(bad!) git push origin feature:master

instead of 

(correct!) git push origin feature

note: This happened to me while working and deploying to Heroku.

This bad! bad! bad! command will essentially push all your updates for the features branch to your master branch. bummer!

The way to fix this is,

1. Change to your master branch:

$ git checkout master

2. Revert to a commit

$ git revert —hard <SHA> (Replace SHA with the commit hash)

3. Push to the remote master branch

$ git push -f origin master

Note, this worked for me because there was a clear division from the master branch to the feature branch. It is important to know that the revert —hard command will remove everything on the branch past the current revert point.

Apr 13
First demo app built using Ruboto, that is a Android app built with Ruby code. BTW the app is a photo taking app, not that the photo shows the app, it took the picture :)

First demo app built using Ruboto, that is a Android app built with Ruby code. BTW the app is a photo taking app, not that the photo shows the app, it took the picture :)

Apr 11

git branch tutorial

Apr 09

Dive into HTML 5 →

A great site with all the HTML 5 info you need. Yeah its Saturday and we are still going hard on the Internets!

Apr 08

rake search_path[enter_path_here] BAM!

Lately, we have been working on a lot of Rails projects that have big routes files with many custom paths. Doing rake routes works, but its annoying to have to search line by line to find the path. We know you can search inside the routes file also but for fun we created a new rake task that lets you search for a path right on the command line.

Check it out!

https://github.com/guillec/Search-Custom-Routes

Apr 08

RVM Tutorial by @screencastsorg →

Apr 08

ActiveRecord attributes method

Returns a hash of all the attributes

Apr 07
RubyNation 2011

RubyNation 2011

Apr 07

Our new Blog!

Hey we are new give us a break!