LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

QT4 GUI Programming: Center Window

Posted 05-28-2012 at 12:50 AM by rainbowsally

Today's Features:
  • Center a non-dialog window in qt4.

If you have mc2, 'mc2 -fetch qt4' for the Makefile, otherwise, do whatever you do to get this rolling.

Here are the files for this demo/test.

file: src/main.cpp
Code:
// generic C++ source template created by new.main

#include <stdio.h>  // printf(), FILE*, etc.
#include <malloc.h> // malloc(), free()
#include <string.h> // strcpy(), memcpy(), etc.
...
Member
Posted in Uncategorized
Views 927 Comments 0 rainbowsally is offline
Old

qt type id test/demo

Posted 05-27-2012 at 09:38 PM by rainbowsally
Updated 05-27-2012 at 09:40 PM by rainbowsally

Today's features:
  • Use C++ typeid's to compare or check types.
  • Share base64 encoded compressed file/dir data in message forums (example).

The typeid(obj) doesn't require QT, but it also works with it. Here's a simple makefile and a widget to show some type ids and how to compare
them.

After running this you should have a folder named typeid-test. Type 'make' inside that folder to create the 'main' executable.

Requires base64, QT4, make, gcc, and all that...
Member
Posted in Uncategorized
Views 803 Comments 0 rainbowsally is offline
Old

libLQ-qt-mc2 with qt4 support

Posted 05-27-2012 at 09:22 PM by rainbowsally
Updated 05-04-2015 at 12:50 PM by rainbowsally (new version)

Note: As of March 2015, there are 64-bit versions of mc2 and kdevelop3, debugged kdbg, new.make, and more available for d/loading.

See blog entry here if you are running a 64 bit linux.
http://www.linuxquestions.org/questi...-64-bit-36530/

Here's the original post which might contain helpful links if you have trouble finding or linking the Qt libs. There are quite a few versions floating around at this time....
Member
Posted in Uncategorized
Views 1199 Comments 0 rainbowsally is offline
Old

Wheezy Memory Leaks

Posted 05-27-2012 at 07:35 AM by jere21

I had excess memory usage. seems to be I'm hit by some memory leak caused by tracker, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612242

This solved it for now:
[REMOVE] tracker-extract:amd64
[REMOVE] tracker-gui:amd64
[REMOVE] tracker-miner-fs:amd64
[REMOVE] tracker-utils:amd64
LQ Newbie
Posted in Uncategorized
Views 1381 Comments 0 jere21 is offline
Old

Running a Genetic Algorithm on an Amazon EC2 Cluster

Posted 05-26-2012 at 04:22 PM by robertvi
Updated 05-27-2012 at 03:20 AM by robertvi

Running a Genetic Algorithm on an Amazon EC2 Cluster

I've started working on a simple tool to run genetic algorithms on a Linux cluster. I'm using MIT's StarCluster utility to create an on-demand Linux cluster on Amazon's EC2 cloud computing service. Using this as a starting point it should be pretty easy to deploy as much computing power as I want (budget permitting).

Step one was Amazon Web Services (http://aws.amazon.com/) sign up. I already had a normal Amazon account,...
LQ Newbie
Posted in Uncategorized
Views 1486 Comments 0 robertvi is offline

  



All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration