Archive
I need help in writing queries in EJB 3.0. I am used to normal select statements in plain java. But I hear that in EJB 3.0, the syntax of writing a custom query is different.
Please help.
Read moreHay all,
Every body knows about the importance of the USB ports on a PC. Now a days there is hardly a computer device which does not have any USB connectivity. So, USB ports are very valuable hardware components of a computer but I am having some problems with the USB ports on my Desktop PC.
I am using Windows XP SP2 and the issue which I am facing is, that some days ago, while I was using a flash drive on one of those ports, my PC pop-upped an error and after that my PC ports didn’t worked properly. After...
Read moreHi.
I am trying to understand this code:
q.push(start);
Visit [start] =1;
while(!q.empty())
{
cur=q.front();
q.pop();
process(cur);
adjacents=get_adjacent of(cur);
fo(i,0,sz(adjacents))
if(visit[adjacent[i]]==0)
{
visit[adjacent[i]]=1;
q.push(adjacent[i]);
}
}
Doing some BFS search. But I don't see anything that matches the text book. As far as I understood the BFS traversing searches the parent first and then from left to right the child nodes. If not found, then the leftmost becomes the parent doing the same thing.
The process continues until the Node is found. But how do I do it? Please explain the process if possible.
Read moreHi there.
I am just beginning to learn some C++ programming. It is quite interesting and flexible. I think it is a good habit to understand algorithms through implementing them in code. I studied some ways to represent graph in the computer. It seems to me that adjacency matrix is most simplest.
I have heard that they take a lot of space. My question is, how do I use adjacency list to reduce this memory consumption? Do I have to allocate the array size dynamically during runtime? How do I do it?
Is there any simpler way to manage adjacency list?
Read more
Hi,
Thank you for reading my post. I am making a simple IDE for C++. I have a compiler installed. I created a IDE like text editor where I can type my code and save it. Now I want a button which can compile the code on click and output the result. How do I do it? Is there anything as simple as system() in C++? I have googled for system() in java. But not much of a success.
Thanks again.
Hi.
I am a student of CSE. I am doing some project using open CV. I need to load a image and save each of the regions predefined in the program, as a separate image. How do i do it in C++?
For example, suppose I have a form with 8 fields, I shall give the pixels from where to crop and the lengths along with it.
The program should crop the image according to the location.
Hi,
I just bought my Core 2 Duo PC past few weeks and have been using it more than one month. I am having a hard time with my mouse because after using it in a few hours it freezes. It is really irritating especially when I am doing my project in a hurry yet I can save my works using shortcuts and tabbing, but the problem is it wastes my time and destruct my ideas.
Hey Dear,
I am using Avast Antivirus version 5. Is this a good Antivirus?
I have traveled to some Antivirus's web sites and in the ESET NOD32’s site says that it is the best Antivirus in the world and when I traveled to the Avast website they say that their product is the best even when I went to the Kaspersky site they also said that they have best Antivirus product/ software in the world.
I have used almost all Antivirus and according to my observation I think that Nod, Kaspersky and Avast are top three as far as performance is concerned. Eset Nod shows some performance graph which shows/clears that it...
Read moreHi all,
I'm using a MacBook 2.4 GHz. I've got a Gmail account. I want to use iChat with a Gmail account on my Mac. I know the instruction, which works only in Tiger, but not with Leopard. I’ve tried the primary steps, but failed to configure it.
I need the iChat to work in my Mac Leopard because, I've to keep always connected with Gmail account and need to respond to important issues quickly. If I have iChat, I can do it easily. Please suggest.
Thanks,
Mohiuddin
Read more