Posts Tagged ‘rails’

how to install barcode generator in windows

October 13, 2010

at github and googlecode explained how to install barcode generator: it works on linux but failed when the windows and still has not difix: http://code.google.com/p/barcode-generator/issues/detail?id=9

penyeselesaiannya simple fact you also have to install ghostscript (which unfortunately is not written in his github page)

so how to install barcode generator in windows: make sure you have:

* ImageMagick
* GhostScript
* Gbarcode (ruby gem:: gem install gbarcode)

then:

script / plugin install http://barcode-generator.googlecode.com/svn/trunk/barcode_generator

rake barcode_setup

then you can use a barcode generator in your view with

<% = Barcode ‘FJJ4JD’%>

Advertisements

FAQ about starting fb apps on rails

August 11, 2010

Q: which plugin/gem that i should used?
A: because of fb itself doesn’t provide an official plugin for rails so we used unofficial plugin. there are some unofficial plugin: RFacebook, facebookers & facebookers 2 (+ Mogli)
RFacebook is not maintenanced, so you should not used that, the remaining options are facebookers & facebookers 2
Facebookers have many obsolete functions (maybe because they still use the old REST APIs),
while facebookers 2 (+ Mogli) despite already using the new Graph API at the time of this writing (10-08-10) still have not completed it can be seen in the mongli readme file stating “

Feel free to add missing Associations if you see Them as well. My goal is to get a Readonly API in place first, and then
move on to the read / write API


so maybe there still Graph APIs features that can not be used in full CMIIW

Temporary conclusion: if your application only use features of FBML without Graph API, facebookers can be used (although you still need to be careful because there are obsolete fbml helpers, so see references in http://developers.facebook.com/docs/reference/fbml/)
, But if you need to use Graph API use mogli (+ Facebooker2) but if you need features not available in mogli you should make your own with gem HTTParty and guidance in http://developers.facebook.com/docs/api Graph API

Q: why canvas blank when i choose the FBML option althought it’s okay when using iFrame
A: Maybe you not use the tunnel (see below) or you use tag that should not be used

Q: Why should I use the tunnel? and how?
A-1: if you use the FBML, facebook need to parse your pages before they are displayed on the user. that’s why, if you use relative url (like localhost) or non-public ip facebook can’t access your page so the canvas is empty!

A-2: register at tunnlr.com (free for first 90 days)
-When you do ssh (using either the console or via putty) use the username provided by tunnlr (usually tunnlr ) rather than username to log into tunnlr!
-If ssh tunneling is successful, you can enter the url given to you by tunnlr in the Canvas url on facebook (remember the url given for the tunneling (usually web1.tunnlr.com: ) rather than the url for login (usually .Tunnlr.com))