Ackbar, KirbyBase, and Rails

Posted by stoyan Tue, 21 Feb 2006 02:38:00 GMT

Intreresting stuff:

In general: if you have Ruby, you can have Rails too, no need to install some special database, webserver etc. Pure Rails :)

Posted in Programing, Ruby | no comments

Optimizing Rails Resource Usage

Posted by stoyan Sun, 19 Feb 2006 07:41:00 GMT

Found via Rails Tips , link point to TextDrive weblog

  • Minimize the amount of FCGI listeners
  • Use caching
  • NEVER run “development” on FastCGI for more than 1-2 hours
  • Observe your memory consumption
  • Rotate your logs
  • Write and run unit tests
  • Check for memory leaks when you are developing
  • Be careful with iterations
  • Watch the Rails TRAC for bug reports
  • Be vigilant when restarting your server

Use RailsHelp for quick searching through the Rails API docs.

Posted in Programing, Ruby | no comments

Stylish your code

Posted by stoyan Fri, 10 Feb 2006 17:58:00 GMT

Rules for better Rails programming :

  • Two spaces, no tabs
  • Blocks use { }, if they are one-liners, otherwise do … end
  • Surround equal signs with spaces, @myvar = ‘foo’, not @myvar=’foo’
  • Surround hash assignments with spaces, :foo => ‘bar’, not :foo=>‘bar’
  • Class.method(my_arg)—not method( my_arg ) or method my_arg

Posted in Programing, Ruby | no comments

New Books

Posted by stoyan Mon, 06 Feb 2006 05:24:00 GMT

We have some new books :) (still PDF only)

 

Posted in Ruby, Programing | no comments

Globalize (i18n for Rails)

Posted by stoyan Thu, 02 Feb 2006 01:02:00 GMT

Some people on the Rails ML was worried what’s happend to the Globalize plugin . It’s not dead, just moved to another home.

Planet Aragon has been using Globalize for a few months now on a few client projects that require support for ~30 languages … It’s a really clean way to integrate i18n into your application without cluttering it. It even works in PostgreSQL!

Posted in Programing, Ruby | no comments

Mongrel HTTP Server

Posted by stoyan Wed, 01 Feb 2006 17:59:00 GMT

A small fast HTTP server written in (mostly) Ruby that can be used to host web frameworks directly with HTTP rather than FastCGI or SCGI.

Examples already working with Camping .

See also: Mongrel RDoc pages

Posted in Programing, SysAdmin, Ruby | no comments

ActiveRecord goes :through

Posted by stoyan Fri, 27 Jan 2006 20:50:00 GMT

In Rails 1.1, the :has_many method has a couple of new parameters that allow us to effectively bridge an intermediate object…A basic bridging is as simple as adding a new :has_many method on the two main objects, adding a :through parameter which specifies the intermediate object…

Posted in Programing, Ruby | no comments

RailsCron 0.2

Posted by stoyan Fri, 27 Jan 2006 06:26:00 GMT

RailsCron is a way to execute background tasks using your Ruby on Rails environment. The RailsCron object is an ActiveRecord, so you can manipulate it in familiar ways.

Posted in Programing, SysAdmin, Ruby | no comments

Reverse Proxying SSL Connections To Rails

Posted by stoyan Thu, 26 Jan 2006 02:55:00 GMT

We had the same problem with Reverse Proxying SSL Connections To Rails . Needed apache for subversion and lighttpd for rails projects.

See also: lighttpd, apache 2 and rails

Posted in Programing, Ruby | no comments

Testing C with Libtap

Posted by stoyan Tue, 24 Jan 2006 05:53:00 GMT

Libtap is a library for testing C code. It implements the Test Anything Protocol , which is emerging from Perl’s established test framework.

Posted in Programing | no comments

Older posts: 1 2 3 4 5 ... 8

Powered
Ruby Blogs Directory
Performa
Box.net Refer