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% [?]
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% [?]
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: 22% [?]
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% [?]
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: 13% [?]
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: 9% [?]
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% [?]
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: 27% [?]
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% [?]
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: 87% [?]