Monthly Archives: March 2013

Changing Functionality of Circle in LibreCAD

I just changed the code of LibreCAD. Changed the functionality of “drawing circle from 2 points” to “drawing flower pattern from two points”. Make following changes in this file librecad/src/action/rs_actiondrawcircle2p.cpp    double px=data.center.x;    double py=data.center.y; RS_Circle* flower;     … Continue reading

Posted in Uncategorized | Leave a comment

How to make a MenuBar in Qt?

Create Folder mainwindow. Go inside this folder using $cd mainwindow Create 3 files in it. main.cpp, mainwindow.cpp and mainwindow.h main.cpp #include <QApplication>                                                int main(int argc, char *argv[])                                       {                                                                        // create main event loop handler and parse … Continue reading

Posted in Uncategorized | Leave a comment

How to compile LibreCAD Source Code?

Firstly, we should install all dependencies required for compiling. $ sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake libqt4-help qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev $ sudo apt-get build-dep librecad Now you have a development environment on your computer. You need to download the source of LibreCAD. The … Continue reading

Posted in Uncategorized | 1 Comment

How to write MakeFiles?

Compilation and Linking: There are generally three distinct steps in compiling some code to an executable. They are: Compiling the code to Assembly code This step is usually done transparently as most compilers perform it and then invoke the assembler … Continue reading

Posted in Uncategorized | Leave a comment

How to install and use IRSSI on Ubuntu?

Irssi is a terminal based IRC client for UNIX/LINUX systems. Installation on Ubuntu To install on Ubuntu simply do the following: 1. Install via the apt-get command $ sudo apt-get install  irssi 2. Run on terminal $ irssi 3.  To … Continue reading

Posted in Uncategorized | Leave a comment

Form Validations in jQuery

Why jQuery is easy? A single line of jQuery to select the form and apply the validation plugin. And a bit of metadata on each element to specify the validation rules. Prerequisite:- To use jQuery either download the javascript and … Continue reading

Posted in Uncategorized | Leave a comment

How to install CodeIgniter on Linux?

CodeIgniter is installed in four steps: Download and Unzip the package from http://ellislab.com/codeigniter/user-guide/installation/downloads.html. Place the extracted folder in /var/www Open the application/config/config.php file with a text editor and set your base URL (localhost). If you intend to use encryption or … Continue reading

Posted in Uncategorized | Leave a comment