Archive for the ‘Ruby’ Category
rComic: comic strip downloader
Tuesday, October 23rd, 2007using the fox toolkit in ruby
Tuesday, October 2nd, 2007The 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 ![]()
(more…)
rails environment with lighttpd
Tuesday, September 4th, 2007We 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. ![]()
(more…)
ruby Qt: model / view / controller
Wednesday, August 15th, 2007From 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.
(more…)
ruby bot: email processing
Tuesday, August 7th, 2007Pinky: 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!
(more…)
ruby Qt: menu bar, status bar and resources
Tuesday, July 31st, 2007Menu 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.
(more…)
ruby Qt custom widget example
Monday, June 4th, 2007With Qt’s custom widgets you can create the building blocks of the GUI of your application.
In this case we are creating a graphical command line. The command line will consist mainly of a text input box (Qt::LineEdit). The widget will have memory, that is, every line entered by the user will be added to the internal history of the widget and will be accessible by means of Up and Down arrows as the standard *nix command line.
ruby Qt::TreeWidget example
Saturday, June 2nd, 2007I am involved in some projects were we are using Qt library for GUI development with ruby. In the following example I will show how to use the Qt::TreeWidget object.
The TreeWidget can be used not only to display information hierarchically but also to add multiple columns to the data model.
(more…)