Ruby Cookbook PDF

Posted by stoyan Wed, 09 Aug 2006 01:51:00 GMT

O’Reilly is now selling the Ruby Cookbook as a downloadable PDF for 50% off the cover price (see the ”I want the PDF checkbox in the upper right corner). Seems this is the first full-length O’Reilly book to be sold as PDF. PDF copies of the Cookbook will be watermarked but not encumbered by DRM. There is also interesting Ruby Cookbook Official Unofficial Homepage with book source code, tests etc.

Posted in Programing, Ruby | no comments

Typo with installer

Posted by stoyan Fri, 07 Jul 2006 04:54:00 GMT

Without a lot of noise there is a new version of everybody’s favourite blog engine – Typo. It including also an installer, which lets us following the no-step3-way :
$ gem install typo
$ typo install /tmp/typo
Like always with RoR, there is no step 3 ;) you have you blog ready to go.

What else give us the new Typo:

  • no need to downgrade your Rails environment – working without problems with the current Rails version
  • production ready – the new installer making mass-producing pretty easy – creating database(sqlite3 by default), choosing the random port etc.
  • Mongrel friendly – it started mongrel_rails, not webrick. Can be changed from installer/rails_installer_defaults.yml
  • jabber and email notifications – that one is pretty good I think. I need to study more the implementation.

Posted in Programing, SysAdmin, Ruby | no comments

Your own Digg-like news

Posted by stoyan Fri, 07 Jul 2006 03:40:00 GMT

You can have your personal Digg – like news site (social bookmarks): Crispynews…a network of community news sites where the visitors choose the news stories that interest them most.

Or you can participate in my crispynews site ;) I’m trying to keep the news RoR and Web2.0 oriented. So shut up and vote or shut up and post good news ;)

Posted in General, Ajax | no comments

ActiveMailer sending via GMail

Posted by stoyan Tue, 27 Jun 2006 08:03:00 GMT

On the previous Kansai Rails Conference in Asiyagawa somebody asked me about using GMail (smtp+ssl or tls) with Rails ActiveMailer. Didn’t find solution until now but ‘dza-dza-dzaaaaaaan’ (hahaha i’m not so smart, all credits going to entombedvirus ):

Send email with ActionMailer through TLS only SMTP server

So for Debian (Ubuntu):

Install msmtp (light SMTP client with support for server profiles)

$ sudo apt-get install msmtp

Create/edit ~/.msmtprc

account gmail
host smtp.gmail.com
auth on
user <your_account>@gmail.com
password <your_password>
tls on
tls_starttls on
from <your_account>@gmail.com
maildomain gmail.com
account default : gmail

Stop msmtp complaining about permissions

$ chmod 600 ~/.msmtprc

Add on the bottom of yourrailsapp/config/environment.rb (and comment another ActionMailer::Base.delivery_method settings if exists)

ActionMailer::Base.delivery_method = :msmtp

module ActionMailer
  class Base
    def perform_delivery_msmtp(mail)
      IO.popen("/usr/bin/msmtp -t -C /<path_to>/.msmtprc -a gmail --", "w") do
 |sm|
        sm.puts(mail.encoded.gsub(/\r/, ''))
        sm.flush
      end
    end
  end
end

Do not forget to fix the exact path to your .msmtprc in the source above.

Posted in SysAdmin, Ruby | no comments

RailsConf 2006 Summaries

Posted by stoyan Mon, 26 Jun 2006 15:13:00 GMT

A nice summaries of the RailsConf2006 sessions by Nick Sieger.

update (seel also):

Posted in Ruby | no comments

WebDAV Ruby On Rails Plugin

Posted by stoyan Sun, 25 Jun 2006 17:20:00 GMT

Via liverail.net :

I’m releasing the first version of the RailsDAV plugin . What does RailsDAV do. Well it allows people to create Ruby On Rails controllers which will respond to WebDAV requests and expose functionality as a file-system.

Uhoo, finally. Now I can access my Rails applications not only with browser, but also mount them from the OS X Finger or like Windows Network Disks.

Pretty cool. I’m waiting also for the changes in the Rails itself, to support PUT and DELETE in addition to GET and POST, changes DHH promised to us in Tokyo.

Posted in Ruby, SysAdmin | no comments

Litespeed+mongrel+HTTPS

Posted by stoyan Tue, 20 Jun 2006 06:12:00 GMT

Great news from LiteSpeed Technologiesafter a post to the forum they have ”X-Forwarded-Proto: https” AUTOMATICALY added to the headers, when proxing requests, initially comming via HTTPS. Now Rails applications are not confused, when doing redirects for HTTPS. Good to be added to Litespeed+Mongrel docs .

The litespeed-2.1.17 is already available for download (even still there is no announce).

Posted in Ruby, SysAdmin | no comments

Rails "one-click" installer for Debian Sarge

Posted by stoyan Fri, 16 Jun 2006 02:32:00 GMT

- Add to your /etc/apt/sources.list :
deb http://rails.netlab.jp/debian sarge rails
- Install Rails
$ sudo apt-get update
$ sudo apt-get install rails
- There is no step 3 ;)

And if your question is “who the hack made this package?”, it’s NaCl – the company where Matz is working :)

Posted in SysAdmin, Ruby | 2 comments

RubyKaigi2006 with DHH (2)

Posted by stoyan Mon, 12 Jun 2006 17:09:00 GMT

Finally home. Notes about the second Japan Ruby Conference 2006 day are ready and online. Also some conference days photos .

Posted in Ruby, Fun | no comments

RubyKaigi2006 - day first

Posted by stoyan Sat, 10 Jun 2006 15:31:00 GMT

I put some notes about Japan Ruby Conference 2006 on my wiki . DHH is here! Stay tuned…

Posted in Ruby | no comments

Older posts: 1 2 3 4 ... 13

Powered
Ruby Blogs Directory
Performa
Box.net Refer