Win a copy of Securing DevOps this week in the Security forum!

Ali Gilani

Ranch Hand
+ Follow
since Mar 01, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ali Gilani

Simply put the Ibook and its family are the best designed laptops in the world. Now that apple has decided to use Intel chips, would it possible to run Windows or linux on that machine instead of an OS by apple?
12 years ago
i have started learning linux and came across emacs. theres a game in it called Dunnet.

can someone provide me with a list of commads?

Ali
12 years ago
Problem resolved, Swati thanks for the help.

Daniel: riddles are not for forums. you should be more helpful. the duplication occurs as all 5 numbers must be compared not just the previous one, as told in the sun forums

Ali
12 years ago
heres the excercise i have to do. a lottery program that randomly selects 6 numbers from 1 to 49 (with no repeats), and gives 5 sets of numbers.




Problem: 'if(number > 50 | (number == pnum)' although numbers above 50 are not used, often two numbers repeat in a single set (after running the program for about 6 times)

problem2: the output it something like:

34
32
16
10
8
19
--------------- (execution stops here)

how do i get the rest 4 sets, and the numbers to be printed on a single line?


Ali
12 years ago
can a java program run a motor? i want to run a motor attached to 4 wheels., using my computer. how do i get the commands to the motor wirelessly? and make it understand where to go?


Ali
12 years ago
if i make a 4 node cluster with P2's. how do i get a program i made for a single XP machine to run on the cluster utilizing all of its resources? does the JVM or the program need modification?

perhaps JINI or Javaspaces can help? i do not know much of this technologies.

Ali
12 years ago
and what is the javaspaces concept?

Ali
12 years ago
yes, PC's networked together. but the program would be initiated on the main host, which would then automatically use the other resources to run the program, i want to know how?

Ali
12 years ago
i meant a stand alone application, that i wrote for a single XP machine, how do i get it to realize the cluster and run on it?

Ali
12 years ago
i read somewhere that the JVM has to be made aware of the cluster, that the JVM wont use all the resources of the cluster unless it is told so, and will just run on the host computer. how do we make the JVM aware of the cluster?


Ali
12 years ago
so how do you make a java program aware of the cluster?

and what difference is there between a Grid and a Cluster


Ali
12 years ago
is there a forum somewhere wholly dedicated to cluster computing? detailing how to build one?

Clusters run programs that give the image of a single system with massive resources such as Clusterit and others. does this mean that if i take a normal java program i wrote for a typical single XP machine, will it execute using all the resources of the Cluster?


Ali
12 years ago
What exactly are methods?

I hear that within each class, there is only one syntax to call any method present in that class? is that so?

could you give an example? for example how to invoke methods in the Math Class?


Ali
12 years ago
i wrote a program which exceeded the ranges of int so would print a constant value. At the Sun forums, they said to use BigInteger.



the code allows any number to be shown. i looked up the docs on the Math class but could not understand how to use any of its objects. for example

what does this mean ? BigInteger.valueOf(2)

and also, in the docs
multiply(BigInteger val) is present which says Returns a BigInteger whose value is (this * val) how do i use it in my programs? i mean what is the format?


Ali
12 years ago
so if i want to view beyond the limits??


and what do u mean by lower precision? if the value is 2343443545 will double show it as 2343443545.0 or 2.3e9?


Ali
12 years ago