RLB3.COM

Aut disce aut discede

Scripting screen

Posted by rlb3 Sun, 07 Sep 2008 14:59:00 GMT

Good article on scripting screen

Posted in | no comments |

Deploying Ruby on Rails

Posted by rlb3 Fri, 31 Mar 2006 14:09:00 GMT

Here is another article about deploying rails apps. This time it uses apache and fastCGI.

Posted in , , | no comments |

Why Fedora Ships Mono

Posted by rlb3 Thu, 30 Mar 2006 21:46:00 GMT

For everyone that wondered why fedora used mono in fedora core 5. They have released a statement about why.

Posted in | no comments |

Using Top More Efficiently

Posted by rlb3 Tue, 28 Mar 2006 17:48:00 GMT

Here is a good article how to use top better.

Posted in | no comments |

Setting up a rails app with lighttpd on FC5

Posted by rlb3 Sun, 26 Mar 2006 00:18:00 GMT

Just a quick tutorial to get your typo blog running.

Install Ruby:

  1. yum install ruby
  2. yum install ruby-libs
  3. yum install ruby-devel
  4. yum install ruby-docs
  5. yum install ruby-irb
  6. yum install ruby-mysql
  7. yum install ruby-rdoc
  8. yum install ruby-ri

Download and install rubygems

  1. wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
  2. tar -zxvf rubygems-0.8.11.tgz
  3. cd rubygems-0.8.11
  4. ruby setup.rb

Install rails:

  1. gem install -r rails -y

Install lighttpd:

  1. yum install lighttpd
  2. yum install lighttpd-fastcgi

Download and install fastCGI:

  1. wget http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz
  2. tar -zxvf fcgi-2.4.1-SNAP-0311112127.tar.gz
  3. cd fcgi-2.4.1-SNAP-0311112127
  4. ./configure
  5. make
  6. make install

Install the ruby binding for fastCGI:

  1. gem install fcgi

Create the lighttpd config file:

  1. /etc/lighttpd/lighttpd.conf:
server.modules = ("mod_rewrite", "mod_accesslog", "mod_fastcgi")
server.document-root = "/srv/www/lighttpd/" 
server.port = 80
server.username = "lighttpd" 
server.groupname = "lighttpd" 
server.pid-file = "/var/run/lighttpd.pid" 
accesslog.filename = "/var/log/lighttpd/access_log" 
server.errorlog = "/var/log/lighttpd/error_log" 
server.indexfiles = ( "index.html" )

mimetype.assign = (
  ".css" => "text/css",
  ".gif" => "image/gif",
  ".html" => "text/html",
  ".jpeg" => "image/jpeg",
  ".jpg" => "image/jpeg",
  ".js" => "text/javascript",
  ".pdf" => "application/pdf",
  ".png" => "image/png",
  ".txt" => "text/plain",
)

$HTTP["host"] == "www.rlb3.com" {
  server.document-root = var.data + "/blog/public" 
  url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
  server.error-handler-404 = "/dispatch.fcgi" 
  fastcgi.server = ( ".fcgi" =>
    ( "localhost" =>
      ( "min-procs" => 5,
        "max-procs" => 5,
        "socket" => "/tmp/www.fcgi.socket",
        "bin-path" => var.data + "/blog/public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "production" )
      )
    )
  )
}

Start lighttpd:

  1. service lighttpd start

This article does not cover setting up the rails app itself. I assume you know how to setup your favorite database with rails.

Posted in , , | no comments |

Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4

Posted by rlb3 Sat, 04 Mar 2006 15:55:00 GMT

Here is an article about using lighttpd with rails on FC4. So if you’ve been curious about lighttpd here’s your chance to try it out.

Posted in , , | no comments |

Linux bashing at imagenow

Posted by rlb3 Wed, 01 Mar 2006 15:05:00 GMT

Right now the instructor and the one of the students, who is also works for imagenow, are talking trash about linux. I guess there is always a snake in the garden. They talk like mysql is the only opensource database. I think this is where mysql popularity does OSS a disservice in bussiness. Looking at the lack of features and general imaturity of it’s view, trigger, and PL just make all OSS seem not usable for enterprise uses. I’m not saying the mysql is bad, I just wish more people knew about postgresql and firebird.

Posted in , | no comments |

25 Reasons to Convert to Linux

Posted by rlb3 Fri, 10 Feb 2006 01:59:00 GMT

Here is a list of reason to switch to linux. Most of these are ovious but I guess its good spell them out somewhere.

Posted in | no comments |

Filesystem in Userspace

Posted by rlb3 Sat, 26 Nov 2005 19:10:00 GMT

Ok, this is too cool! With FUSE it is possible to implement a fully functional filesystem in a userspace program. You can even use perl or ruby to make the file system.

Posted in , , | no comments |

Windows Supports More Hardware Than Linux, Just Not As Well

Posted by rlb3 Fri, 11 Nov 2005 15:39:00 GMT

Here is an article that I really agree with. He talks about driver support when things go bad.

Posted in | no comments |

Older posts: 1 2