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
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.
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 :)
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!
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!
