Tutorials

...because we all need help sometimes

  • Increase font size
  • Default font size
  • Decrease font size
Tutorials

Installing PHP and Zend Framework on Ubuntu

E-mail Print PDF

I had a lot of trouble setting up Zend Framework. The installation procedure is very simple, but making the custom controllers and routes work isn't that easy.

Installing a PHP and Apache server on linux is very easy: just find and install the following packages (or open the terminal and run sudo apt-get package_name for each package):

apache2
php5
Last Updated on Wednesday, 20 July 2011 14:01 Read more...
 

Running X Window applications through a SSH connection, without prompting for a password

E-mail Print PDF

First, you have to connect to the remote host by enabling X11 forwarding. This can be done using -X or -Y
(trusted X11 forwarding) parameter at the ssh command line:

ssh -Y 
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 


If you wish to omit these parameters, you can enable the ForwardX11Trusted directive in ~/.ssh/ssh_config
configuration file. You can also check this directive in the remote host configuration (eg /etc/ssh/sshd_config).

Last Updated on Monday, 11 July 2011 15:19 Read more...
 

Using plugins: mysql and postgresql drivers

E-mail Print PDF

In Qt, plugins are used to create custom database drivers, image formats, text codecs, styles and widgets as stand-alone components.

There are two ways to use plugins:

  1. compiling the plugin into a dynamic library (ie. dll on Windows) that is detected and loaded at runtime
  2. linking the plugin statically against your application (the only option for statically compiled Qt)

In this tutorial, I'll show you how to use MySQL and PostgreSQL database drivers using the first method.

Last Updated on Saturday, 25 June 2011 16:53 Read more...
 

Using libraries: QCA (Qt Cryptographic Architecture)

E-mail Print PDF

When developing an application that implies user authentification or sensitive data, you'll need to encrypt or hash data. There are few C/C++ APIs that provide encryption, digital signature and hashing algorithms. One of them, QCA, is developed using Qt datatypes and conventions. I chosen to use it because it is cross-platform, since my application had to run on both Windows and Linux. I encountered few issues at installing it, so I thought that it might be a good idea to write a tutorial about it.

In this tutorial, I'll show you how to compile QCA and QCA-ossl plugin with mingw. QCA has built-in support for the SHA1 and MD5 hash algorithms, and a weak random number source, so we must compile QCA-ossl plugin, that adds support for some well-known encryption, hashing and digital signature algorithms. Then I'll show you how to include QCA into your project, then encrypt and decrypt some data.

Last Updated on Thursday, 14 July 2011 14:43 Read more...
 

Generating PDF files

E-mail Print PDF

In my last Qt project, which was an spreadsheet application (like Microsoft Excel or OpenOffice Calc), I wanted to implement an PDF export feature. At first I decided to use an report generator, but then I found out that Qt has some classes that can be used for saving PDF files.

In this tutorial, I'll show you how to generate a PDF file for a spreadsheet, using a function that opens a file save dialog (supposing that you created a Gui Application) and another function that generates the PDF file. Of course, you could modify the functions described below so it can use any "model" (ie. data source).

Last Updated on Monday, 27 June 2011 08:50 Read more...
 

Polls

What kind of tutorials would you like to see on this site ?
 

Who's Online

We have 1 guest online