i have installed and configured jstat in my pc(windows xp) test with sample java program .but i need to know how to use jstat with jsp or tomcat any other futher configuration needed or not.
Hi :)
I have a part of my program which can be called by various events. Each event however does something different before making use of this part. How can I represent these using a diagram? I was thinking of a flowchart but as far as I know a flow chart can have one start terminal, right?
Thanks a lot for the help,
Regards,
Krt_Malta
Why doesn't the following program return 0, since I am accessing p from a new A(), which has not had main called on it?
public class A {
public int p = 0;
public static void main(String[] args) {
p = Integer.parseInt(args[0]);
new B().go();
}
}
class B {
public void go() {
System.out.println(new A().p);
}
}
I'm a beginner and I want to write Java code in eclipse. This program takes two LinkedLists of integers (for example, a and b) and makes a LinkedList (for example d) in which every element is the sum of elements from a and b. However, I can't add these two elements from a and b because they are Objects
Example:
a=[3,4,6,7,8]
b=[4,3,7,5,3,2,1]
------
d=[7,7,13,12,11,2,1]
Hi,
I'm working on a database program and I noticed that when I'm doing queries with tables that have TEXT/BLOB columns, MySQL will use temp tables and use filesort. I'm not entirely sure when and how this happens, but are there cases where MySQL does not use filesort when there are BLOB/TEXT columns? Like if the sort column is type of VARCHAR() with an index?
I have a C# program that works correctly on xp and vista but it needs to be used on windows 7, I have not been able to come up with a solution, it appears that getpixels just doesn't work right on windows 7, thanks.
Im trying to add variables to a C char array. Also I have tried sprintf, but it is causing a few other issues within my program.
I am looking to do something like this:
char* age = "My age is = " + age;
I am planning on sending the char array to a socket using send()
Thanks
I program open source php scripts and I host the projects' websites on my own server. I'm not sure where to host the code. Maybe on an own svn, or on a website like github, sourgeforce, google code?!?
Where do you host your code / Where would you host your code?
Thanks
I cannot find how I'm supposed to handle file opening in my program. For example if the user does Open With ... myprogram.exe then how do I handle that and do something with it. which WM_Message is sent?
Thanks
Alright so what I am trying to do is essentially create a program that, when it is already executed, can be "executed" again, detect the already existing process and instead of creating another process, execute a function in the existing process.
Any ideas?
Hi,
is there any good program for viewing functions / messages that are being executed on the .net framework in the background? i'm looking for something similar to what spy++ is doing, just for .NET only.
I have some weird behavior that i need to understand what causing it, and i don't think on any better alternative.
Thanks
I want share and introduce new idea to the program and algorithm for researchers. but those people disgraced my interest and degrade my thoughts. They closed my request. Why? I think this is not a good place to prove our talents. I think leave from this forum is better...
I need some way to do the following efficiently in C#:
Make program execution stop until certain value is changed.
Note: I do not want to make it with a while loop to avoid wasting cpu power..
I am writing a program that is declaring an array of 100 integer numbers
and filling the array with random numbers using rand().
All I have so far is:
#include <iostream>
using namespace std;
int main()
{
int random_integer = rand();
My code is similar to the following:
int main()
{
values();
}
int values()
{
if (condition)
{
'code'
}
else if (condition)
{
'code'
}
else
{
'code'
}
motors();
}
int motors()
{
'code'
}
motors() needs values from values() to run. What could I do so that values() and motors() run simultaneously, side by side, and keep running until the user exits out of the program?
Is there a simple way to fetch data from other programs running in the background? Like for instance i want my program to read the temperature values from Speed Fan and so on... So basicly reading data from controls that are present in a diffrent application.
I will probably start with C and then Lisp. Although I started programming in C, I did not program in it as much as I want. It's fun working with the low level stuff. Learning C helped me a lot when I started working. I've only started learning Lisp now and I found it amazing that the concepts it supported from the very start are still very relevant today. Well I think it's better late than never.
Hi everyone :)
I'm currently working on some C program, and I'd like to know if there's any chance to block writing in the writer process (until the read is done) ? i.e. I have 3 pipes between the parent process and the children processes (the parent writes and the children read), I'd like to let the parent to write only to the process that finishes its reading :)
I hope it's clear..
Thanks in advance.
Consider the below program
factorThread = new Thread(
new ThreadStart(
delegate
{
Method1();
Method2();
}
)
);
Is it that 2 threads are getting called parallely(multitasking) or a single thread is calling the methods sequentially?
It's urgent.
Thanks
I have a program where i have a button to change the background color to red and another button to set back the default panel color.
How do i get back the default color for panel??
I have some techniacal question, in this function:
string report() const {
if(list.begin() == list.end()){
throw "not good";
}
//do something
}
if I throw exception what is going on with the program? Will my function terminate or it will run further? if it terminates, what value will it return?