In this part of the series (see Part 1 and Part 2) we will:
- Make one of the components compulsory to install.
- We will look at a way to write our script in such a way that it can be reused for future releases of MyApplication.
- A few extra tips and tricks.
Continue reading “NSIS installer for a Ruby application - Part 3 - A few script improvements”
In Part 1 of this series we had a look at the general structure of a NSIS script as it was created for us by the HM NIS editor and IDE. We previously defined three components to be installed by our installer:
- Ruby (the target machine that our application is installed on requires Ruby)
- MyGem (our application is dependent on this fictitious gem)
- MyApplication (this is our application to be installed)
In this part we will look at how we will let the installer take care of the Ruby and MyGem components.
Continue reading “NSIS installer for a Ruby application - Part 2 - Install Ruby and a gem”
I am working on an NSIS (Nullsoft Scriptable Install System) installer for a Ruby application (Dradis - check it out!). In this series I will try to keep log of how I progress with this.
I am using HM NIS editor and IDE for NSIS to make the task a little easier. To get out of the blocks a little quicker I used the HM NIS wizard to create a simple framework from where I will progress.
Continue reading “NSIS installer for a Ruby application - Part 1 - HM NIS wizard output”
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.
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”
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”
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”
With 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.
Continue reading “ruby Qt custom widget example”
I 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.
Continue reading “ruby Qt::TreeWidget example”