Sunday, December 28, 2014

qt fatal error qdialog no such file or directory #include

In the process of compiling your cpp file in linux under QT 5 or more you may receive such  a weird fatal error message. If you are wondering where and how to start solving it here is the solution for you. Just go to your projectFile.pro and add the following on the top (before headers):
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Special credit goes to AB Bolim stackoverflow

Hope you enjoy it

Rename a file in linux

So you have forgotten or are just a newbee looking for how to rename a file in linux, these two tricks are for you:
  1.  Using mv command: yourdir$ mv oldname newname
  2. Using copy and delete: 
  • copy old file to new file with cp command: yourdir$ cp oldname newname
  • delete old file with rm command: yourdir$ rm odname

Saturday, December 20, 2014

Intrexx : transfer a parameter from one page to another using javascript

Hi, there are many ways to transfer paramters from between pages in Intrexx. This method I am going to present here is one them. I am not intending to write a complete solution with details but rather to point out some directives.

Javascript:


Page A:

- Dropdown list: value(Yes, NO)

- Button (onClick event: paramTransfer(this) )

Page B:
static text and select the option Only default language (such as for programming purposes).
[ $Request.get("rq_KNr") ]

More info regarding this topic can be found in documentations at united planet academy
Hope it helps and do not forget to drop a comment.

Tuesday, December 9, 2014

Distributed database vs Distributed DBMS

Distributed database: a collection of multiple, logically interrelated databases distributed over a computer network.
However,
Distributed DBMS: the software system that permits the management of the distributed database and makes the distribution transparent to the users.

Monday, December 8, 2014

Session in javascript across pages.


 Some days back I had to implement a small feature in one of our company application. Had to think a while on how I could achieve that. Finally I end up solving the issue by smartly using Ajax and global variables. My intention here is not to give you code (at least you request it) but rather to present some ways around on solving such a matter. Taking the following point into consideration may help you dilute the situation:

  1.  Ajax: Asynchronous JavaScript and XML. AJAX is the art of exchanging data with a server, and updating parts of a web page - without reloading the whole page.
  2. Global variables
  3. The localStorage Object: The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year. e.g
  4. The sessionStorage Object: The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the browser window. e.ghttp://www.w3schools.com/html/html5_webstorage.asp

Feel free to share your experience or feedback with us.

GUID vs INTEGER as data type of the Primary key in INTREXX

In this short post I would like to point out few differences between the use of Guid and Integer as a data type of  the primary key when creating a new data group.
  • Guid is treated as a string and Integer as it is.
  • Guid  has a larger range than Integer.
  • When creating a new row for example, to get the current primary key maybe in groovy you need newGuid() (for Guid) while you will need to make a query : select max(id) from dgroup (for Integer)
  That is just what I have in mind now, please feel free to drop a comment and share your thoughts on this with us.