Apr 17 2008

ruby application configuration settings

Category: Rubyetd @ 11:53 am

In this article I want to discuss a way of storing and retrieving the configuration settings of a ruby application. The first thing you need to decide is whether you want to store your settings in a database, a XML file, a YAML,…

Since this is not an easy choice we can mitigate the impact of making the decision upfront by doing some interface based design.

Continue reading “ruby application configuration settings”

Popularity: 10% [?]


Jan 24 2008

ruby ToDo list

Category: Rubyetd @ 4:42 pm

I have created a small Ruby on Rails application to keep track of my personal “ToDo” list of tasks. The idea is to split your different tasks into categories (i.e. important & urgent, no important & urgent, etc.) and have a web front end in which you can get a nice view of your pending tasks.
Continue reading “ruby ToDo list”

Popularity: 12% [?]


Dec 17 2007

ruby workshop: the way of the Qt samurai

Category: Ruby, X Windowsetd @ 6:23 pm

As a side result of my work with dradis during the last months, I’ve been working on some technical sessions that will be grouped in what could be called a “ruby workshop”. The first of this sessions is on ruby + Qt programming and is available now.

  • Slides can be found here.
  • Source and examples: here.

Popularity: 21% [?]


Nov 05 2007

Net::DHCP

Category: Networking, Rubyetd @ 7:59 pm

The aim of Net::DHCP (hosted at RubyForge) is to provide a set of classes to low level handle the specifics of DHCP (rfc2131, rfc2132, etc.) in ruby.

With Net::DHCP you will be able to craft custom DHCP packages and have access to all the fields defined for the protocol.
Continue reading “Net::DHCP”

Popularity: 17% [?]


Oct 23 2007

rComic: comic strip downloader

Category: Ruby, Shell Scriptetd @ 2:26 pm

rComic is a small script to download and display Internet comic strips. To add new strips, you only need to modify the config file. And it is an interesting exercise to play with the Net::HTTP and YAML libraries.
Continue reading “rComic: comic strip downloader”

Popularity: 14% [?]


Oct 02 2007

using the fox toolkit in ruby

Category: Ruby, X Windowsetd @ 3:15 pm

The fox toolkit is a portable C++ graphical library. If you download old code (such as the nice rubyforger – that sits on top of libnet and libpcap) you may end up with some headache, so these easy steps will help to get your fox application up and running :)
Continue reading “using the fox toolkit in ruby”

Popularity: 10% [?]


Sep 04 2007

rails environment with lighttpd

Category: Networking, Rubyetd @ 2:49 pm

We want an automated deployment enviroment. The server will automatically (upon restart) detect all the rails applications under a given folder and create virtual hosts for them. No further changes in the server configuration will be required. never. :)
Continue reading “rails environment with lighttpd”

Popularity: 8% [?]


Aug 15 2007

ruby Qt: model / view / controller

Category: Ruby, X Windowsetd @ 8:10 pm

From the wikipedia:

Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (view) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface.

MVC is not only useful for web frameworks and applications, here is a simple example of the implementation of the MVC pattern for a Qt GUI application.
Continue reading “ruby Qt: model / view / controller”

Popularity: 25% [?]


Aug 07 2007

ruby bot: email processing

Category: Ruby, Shell Scriptetd @ 12:11 am

Pinky: Gee, Brain, what are we going to do tonight?
Brain: The same thing we do every night, try to take over the world!

Have you ever wanted to have the ability to send commands to your box using email? Use RubyBot, the brand new plugin-driven ruby script that makes the task of taking over the world a bit easier!
Continue reading “ruby bot: email processing”

Popularity: 11% [?]


Jul 31 2007

ruby Qt: menu bar, status bar and resources

Category: Ruby, X Windowsetd @ 5:31 pm

Menu and status bar are two elements that you expect to find in most applications out there. Menu bars are rich elements that consists of menu items and actions. Each action consists of a text and optionally a shortcut and an icon.
Continue reading “ruby Qt: menu bar, status bar and resources”

Popularity: 50% [?]


« Previous PageNext Page »