Rails on Facebook Published

Posted by shane
on Wednesday, July 30

I’m happy to announce the publication of my first PDF book, Rails on Facebook, along with co-author David Clements.

“This 67 page PDF will get you up and running with the Facebooker plugin. You’ll learn to install and configure the plugin. You’ll send HTML, Javascript, and images to Facebook (with caching). You’ll learn about the parts of Facebook that you can augment. Finally, you’ll learn how to write tests for your Facebook application”. —Peepcode Press

Like all Peepcode books, there’s no fluff here. Just straight ahead how to make a Facebook application using Ruby on Rails. David and I made sure it covers the latest API additions and changes.

Using Xcode with Git

Posted by shane
on Wednesday, July 09

For Xcode and Git to work smoothly with each other, you need to make sure Git treats Xcode project files properly. You do this by configuring Git via .gitignore and .gitattributes. Create these files in your repo’s root folder and add the following lines:

.gitignore

# xcode noise
build/*
*.pbxuser
*.mode1v3

# old skool
.svn

# osx noise
.DS_Store
profile

.gitattributes

*.pbxproj -crlf -diff -merge

The line in .gitattributes treats your Xcode project file as a binary. This prevents Git from trying to fix newlines, show it in diffs, and excludes it from merges. Note that you will still see it shown as a conflict in merges, although the file won’t have changed. Simply commit it and things should be good.

Thanks to Jonathan Wight and Chris Double.