Posts
 
Reputation
Joined
Last Seen
Ranked #494
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
40
Posts with Upvotes
38
Upvoting Members
37
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
2
14 Commented Posts
~130.57K People Reached
Interests
Programming, Football, Music, Physics, Maths, Philosophy, Movies
PC Specs
Intel i5-2300 @2.80 GHz4 Gig RAM500 Gig HDDNvidia GT 430 Linux Ubuntu 11.04Windows XP
Favorite Tags
c++ x 247
c x 181
qt x 7
math x 6
Member Avatar for myk45

Hi all, I am developing a Qt Gui application. Here I have a Qtreeewidget that has a list of Qtreeewidgetitems. I also have a qtablewidget beside it which displays some information when any item present in the list is clicked/selected.When the content of any of the cell in the tablewidget …

Member Avatar for mapsonyllaer
0
263
Member Avatar for myk45

Hi All, I am trying some experiments with pthread scheduling policies. I have a couple of apps and within all these apps, I set the thread policy to SCHED_RR and I set the priority to MAX - 1. Now, I see that the CPU utilization as reported by top for …

Member Avatar for iš_iš_iš
0
234
Member Avatar for myk45

Hi All, I saw some code where a `sem_init` was called with a value of 0. I didn't quite understand what this meant. I understand that semaphores can be used to protect shared data, in that we allow just one thread to access the data. And, the way to do …

Member Avatar for myk45
0
5K
Member Avatar for myk45

Hi All, I'm trying to use bools to sync between two threads. I cant' use C++11 and I thought mutexes would be slightly heavy for this. So, I do something like this: // ================================== // Thread A .. do some stuff .. // wait for signal. while (!signalFromThreadB) { pthread_yield(); …

Member Avatar for myk45
0
958
Member Avatar for myk45

Hi all I have a qt application in which I have a QTreewidget that displays some content in the QTextBrowser. I set the contents for the html document in the textbrowser using the setHtml() function. All I want now is to fetch the url of this html document so that …

Member Avatar for myk45
0
465
Member Avatar for myk45

I have a horizontal layout inside which i have added a group box. The group box is split using a QSplitter and contain a QListWidget and a QTextBrowser. I want to add two push buttons at the bottom right corner of the window to navigate inside the QTextBrowser. I'm adding …

Member Avatar for Banfa
0
446
Member Avatar for myk45

Hi all, I have a problem where i need to find to what library my code links to. Here is the scenario: a) I have two executables. Both link to pthread. But pthread seems to behave differently. b) I am not sure that they are linking to the same version …

Member Avatar for L7Sqr
0
148
Member Avatar for myk45

Hi All, I run gdb server on a remote linux target and debug with the client. Are there some gui front-ends that might come in handy? I use gdb with --tui, but still sometimes find difficulty in "watch"ing variables. Is there some way i can perhaps use a gui based …

0
149
Member Avatar for myk45

Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different …

Member Avatar for NathanOliver
0
2K
Member Avatar for myk45

Hello All, I want to convert a markdown file to its equivalent HTML programatically and Iam looking for a way to do this properly. I would need a script that converts the markdown file into proper html.I'am aware of Doxygen which generates these .md files to hmtl just with a …

Member Avatar for pritaeas
0
203
Member Avatar for myk45

Hi All, 1)It's easy to create a window in QT that the user can resize, but when they make the window bigger, all the contents stay where they were in the top left hand corner. They don't grow with the window. 2)Also when the window is launched the size of …

Member Avatar for myk45
0
4K
Member Avatar for myk45

Hi all, I have an xml file with some information inside it. I want to load this xml during runtime and generate an equivalent HTML document for this xml file. All this needs to be done programatically and on the fly during runtime. How could i do this? I'm using …

Member Avatar for jwenting
0
264
Member Avatar for myk45

Hello. Well, im a little confused as to what exactly the terms Data Abstraction and Data Encapsulation mean: This is what i read: [B]Data Abstraction[/B]:data abstraction is a process of representing the essential features without including implementation details. [B]Data Encapsulation:[/B]: Data encapsulation, also known as data hiding, is the mechanism …

Member Avatar for naaz.kaushik.3
0
870
Member Avatar for myk45

Hi, I have a Qt based tool and I want to add a QtWidget(button) in the gui which will act as a help button for my tool just like the windows help button for any application. The help button when pressed should display some text information in the form of …

Member Avatar for mike_2000_17
0
171
Member Avatar for myk45

Hello All, Well this is not exactly a C++ question. More of a math one. But I've seen many guys work on GameDev in this forum. So, posting it here. Here it goes: I was reading an article to check if a point in view frustum and i read some …

Member Avatar for myk45
0
413
Member Avatar for hassai

Hi what is the solution ? i have a file like this : 0 1 2 C 10 1 2 S 7 1 2 C 11 1 2 S 9 3 43 C 10 3 43 S 1 3 43 C 101 3 43 S with this code : ifstream …

Member Avatar for Schol-R-LEA
0
264
Member Avatar for Azmah

I'm looking at getting back to C++ . Its been awhile since I last did it, so I am planning on going from the very beginning and looking for a site to learn it from. I've found a few but wish for the best one to stick to. Thanks in …

Member Avatar for Labdabeta
-1
467
Member Avatar for Navlag

So I have this OpenGL program that displays a cube using gluLookAt(0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); And it allows users to modify/rotate it along the x, y and z axis using input. Right now it looks it works pretty well, however, it terminates once the image …

Member Avatar for myk45
0
267
Member Avatar for Renesme-LuCiFeR

Hi Every One, I Was Wondering If Anyone Could help me With This Problem Or Not... I Just Need A Simple Program, With The Least Amount Of Using Arrays, And Loops... And My Main Problem While Writing It Is When I Want To command The Program To Act Like a …

Member Avatar for Ramesh.YoTLC
0
234
Member Avatar for varun51

Hi, Can somebody write a sample code to reverse a string using recursion. Basically a function which takes string as input parameter, reverses the string using recusrion and returns back the reversed string to calling function. Thank you Naveen

Member Avatar for Amangpt01
0
2K
Member Avatar for Labdabeta

Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float …

Member Avatar for Ketsuekiame
0
263
Member Avatar for dospy

first of all, sorry if this thread is in the wrong section, but i think this is the most appropiate one i need clear instructions for installing AND configuring QT for my machine(i am running windows 7 on 64bit) i don't want other reference links unless they perfectly suit my …

Member Avatar for dospy
0
129
Member Avatar for vasuv

Hi all, I am planning to design mibile app using c,c++ if possible.can any one please suggest me how to design it if possible. Please your thoughts regarding this and appreciate your suggestions. Thanks, Va.

Member Avatar for myk45
0
171
Member Avatar for myk45

Hello All, i have a small question regarding casts in C++. 1) Now, dynamic_casts ensure safety with casts. ie. for example: for the below polymorphic class: class Base { public: virtual void foo() {} }; class Derived : public Base { }; int main() { Base *bPtr = new Base; …

Member Avatar for myk45
0
569
Member Avatar for on93

can anyone help me to solve this problem ? i cannot excute this program. ----------------------------------------------------------- #include<iostream> #include<string> using namespace std; class linklist { private: struct node{ struct student{ string name; int id; string prog; double cgpa; }st; node *link; }*head; public: void linklist_1(); void linklist_2(); void insFirstNode (string name, int …

Member Avatar for Lucaci Andrew
0
123
Member Avatar for myk45

Hello All, I am reading the Effective C++ book by Scott Meyers. Regarding new, he mentions the following: > this additional bookkeeping data can more than double the amount > of memory needed for each dynamically allocated object (especially if the class contains no virtual functions). This is in reference …

Member Avatar for jjl.
0
216
Member Avatar for moroccanplaya

Task Your task is to write a file archive utility similar to that of the Unix tar program. This program will be a command line program (i.e. there will be no graphical user interface). The purpose of this file archive utility is to allow users and system administrators alike to …

Member Avatar for Dolby779
0
218
Member Avatar for myk45

Hi all, I am reading about non-copyable objects from this source: [Link](http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Non-copyable_Mixin) I am not able to understand how making the "=" operator for the base class as private is preventing the derived class to make copies. We could just have a public "operator =" in the derived class that …

Member Avatar for myk45
0
289
Member Avatar for myk45

Hello All, I was doing some multi-threaded programming using the new C++11. This thought came across my mind: Is there any problem if some shared data is accessed by multiple cores on a CPU? Even if it is just a read. Does this lead to some problem? Could anyone please …

Member Avatar for mike_2000_17
0
225
Member Avatar for myk45

http://www.technologyreview.com/news/406923/the-problem-with-programming/ A very good article. I myself am guilty of sometimes "just getting the work done" in a hurry :(

Member Avatar for Dani
0
77