Asaf Karass

Greenhorn
+ Follow
since Mar 08, 2001
Merit badge: grant badges
For More
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 Asaf Karass

hello all
I wish to ask something about COM/RMI.
it's about how the OS/Broker find the Object inside the exe he is located in.
I know we need to register the interface and the object in the GUID , but how does it finds it?
thank you,
Asaf.
22 years ago
Hello All!
I got this source code for finding IP addresses who has some port num opened.
as you can see the addresses are been generated using a for() function and I think this make it work
kinda slow.
please help me to make it fast,
Asaf.
for (int v=11; v < 255; v++)
{
for (int j=1; j < 255; j++)
{
for (int k=1; k < 255; k++)
{
for ( int l = 1; l<255; l++)
{
for (int m=1; m<255; m++)

{
String str = new String(v + "." + j + "." + k + "." + m);

JOptionPane.showMessageDialog(null , str, "Hey!", JOptionPane.ERROR_MESSAGE);


try{
Socket sk = new Socket(str,80);
}
catch(java.net.UnknownHostException jnue)
{
JOptionPane.showMessageDialog(null,"Address sh'll not exsist.", str, JOptionPane.ERROR_MESSAGE);
}

catch(java.io.IOException jiioe)
{
JOptionPane.showMessageDialog(null,"I/O Exception", str, JOptionPane.ERROR_MESSAGE);
}

catch(java.lang.SecurityException jlse)
{
JOptionPane.showMessageDialog(null,"Security exception.", str, JOptionPane.ERROR_MESSAGE);
}
23 years ago
Hello All!
I got one simple questions.
how can I delete a JLabel during run time?
like after an event?
thanks,
Asaf.
23 years ago
Hello All!
simple questions-
1. how can I decide the type of file that I want to write?
I mean creating a file and filling it with data?
what is the best class for this - FileOutputStream ?
2.how do I write in lines?
I mean so there will be lines between the strings I write to the file?
thank you ,
Asaf.
23 years ago
where are they located? if on a webserver, how does the cell phone software knows where they are?
23 years ago
Hello All!
I would like to check whether a byte[i] equals is a 'A'.
can this be done? if not - can I cast the byte array into a char?
thank you,
Asaf.
23 years ago
will this work for a final int array :
int m = 2;
final int array[] = new int[500];
array[1] = m;

??
btw - I know what static is.
23 years ago
hello.
what is the const syntax?
I want to put a int array as a const.
where in the JavaDoc can I find this stuff?
23 years ago
Hello All!
I would like to encrypt all of my client/server (not webserver)
applications with a master encryption key, so that the applications will recognize eachother, and that the master encryption key will be in thier key store from the begin.
I just don't know how to do it.
is to be encrypted with bulk encryption or authentication encryption?
how this can be done?
please help me,
Asaf.
ok, I'm sorry for not being specific enough.
also Frank I'm sorry for not following the rules at the begin, I hope it's all ok now.
now what I want to do, is to take the file and to split it into 16 (equal in size) sections. then I want to send them off,
and then to assemble them into the same exact file.
is it enough data?
does it matter what type it is?
Thank you,
Asaf.
23 years ago
but how?
thank you in advance,
Asaf.
23 years ago
yes, I'm adding it to a JFrame.
where to put the the code where I set it to invisible?
thank you,
Asaf.
23 years ago
is it possible for me to load a file and then to 'cut' it into different parts?
thank you,
Asaf.
23 years ago
I use this source code to create a label after user clicked a button and it doesn't appear - what is the problem?
the code:
javax.swing.JLabel jLabela;
jLabela = new javax.swing.JLabel();
jLabela.setText(filenumstr);
getContentPane().add(jLabela);
jLabela.setBounds(120, 120, 0, 300);

Thank you,
Asaf.
23 years ago