tag:blogger.com,1999:blog-60879417249302990762024-03-13T10:48:24.289-07:00SommercodeThis Blog shares some programming solutions I found working on my ruby on rails projects. Current projects include <a href="http://www.languagememory.org">www.languagememory.org</a> and <a href="http://www.totemize.com">www.totemize.com</a>. Repositories can be found at <a href="http://github.com/materialvision/">github.com/materialvision</a>.the silent readerhttp://www.blogger.com/profile/03513553909545357428noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6087941724930299076.post-22895491290598510102009-11-16T07:04:00.000-08:002009-11-16T07:05:11.559-08:00Devise authenticationA great solution for authentication I used in a project today. Very simple to set up, and totally unobtrusive because of its middleware nature. Devise uses Warden.<br />
<br />
A good blogpost <a href="http://blog.plataformatec.com.br/2009/11/devise-authentication-for-lazy-programmers/">explains</a>.<br />
<br />
<a href="http://github.com/plataformatec/devise">http://github.com/plataformatec/devise</a><br />
<br />
Devise worked great with my rails 2.3 project, restful nested resources and all. Now just need to get that actionmailer setup working...the silent readerhttp://www.blogger.com/profile/03513553909545357428noreply@blogger.com0tag:blogger.com,1999:blog-6087941724930299076.post-39077222344001705172009-11-16T06:56:00.000-08:002009-11-16T06:56:26.665-08:00wicked_pdfFinally a pdf solution that works great and is fairly easy to set up. It uses simple html as a template for the pdf rendering.<br />
<br />
First download and install wkhtmltopdf program. I used this osx version:<br />
<a href="http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltopdf-0.8.3.1-OS-X.i386&can=2&q=
">wkhtmltopdf</a><br />
<br />
Then I had to change the name of the binary to just wkhtmltopdf and put it in the search path. In my case /bin<br />
<br />
The wicked_pdf plugin uses the which command to locate it.<br />
<br />
Then follow the simple instructions at <a href="http://github.com/mileszs/wicked_pdf">wicked_pdf github page</a>.the silent readerhttp://www.blogger.com/profile/03513553909545357428noreply@blogger.com0tag:blogger.com,1999:blog-6087941724930299076.post-86247727595747589602009-09-27T08:18:00.000-07:002009-09-27T10:47:08.479-07:00Linkparser and linkgrammar on Mac OS X LeopardAfter some hours struggling with installationproblems I finally figured this out today. Installing <a href="http://deveiate.org/projects/Ruby-LinkParser/">Ruby Linkparser</a> on Snow Leo was a breeze, but since my server workds on OSX Leopard I had to work out a way to make the installation work on that version as well. Somehow linkparser did not find the link grammar library. Following the instructions on the linkparser page, the solution was to do the following line instead of the bottom one in the instructions:<br />
<br />
ARCHFLAGS="-arch i386" sudo gem install linkparser-1.0.5.gem -- --with-link-grammar-dir=/usr/local/lib<br />
<br />
adding the option of "with-link-grammar-dir" to the gem install instead of the rake. . . <br />
<br />
This works with version 1.0.5, and grammar version 4.6.2<br />
<br />
http://deveiate.org/code/Linguistics/<br />
<br />
http://deveiate.org/projects/Ruby-LinkParser<br />
<br />
http://www.abisource.com/projects/link-grammar/#downloadthe silent readerhttp://www.blogger.com/profile/03513553909545357428noreply@blogger.com0