tariq shadid

Greenhorn
+ Follow
since Jul 31, 2006
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 tariq shadid

what is the different between the use case and scenario ??

Tariq shadid
Java Developer
shadidonline@gmail.com
HELLO THERE ,

I WANT TO ASK ABOUT TIME ZONE , and i know this is not good room to ask about !!!
but my problem which i have depend on TIMEZONE AND Timer and TimerTask,
and here more description about it :
i use Time and TimeTask API to create schedule and it is run every minute

and it is checking what the time if inDaylightTime() or not but when i put the time and data at 10-march and the time is 23:58:40 PM so when i use inDaylightTime() i get false which is correct but when the is be 11-march and the time 00:01:40 AM it is still give false !!! and it have to give true

and my timeZONE it UTC !!!

so please any help ???/

[ February 05, 2007: Message edited by: tariq shadid ]

[ February 05, 2007: Message edited by: tariq shadid ]
[ February 05, 2007: Message edited by: Bear Bibeault ]
17 years ago
hello there

please , i want to know when i have to use Flush in java , i saw alot of code that used it IO streaming , but i cannt understand how can i use it , or when i have to use it !!!?

tariq shadid
java developer
17 years ago
Hello there ,

i want to know when i have to use DAO With POJO or use EJB and if anybody know please can he give exmaple and resource about this issue

Tariq Shadid

JAVA DEVELOPER
my project depends on ip address...if a system is using proxy ip address for internet connection..My lan ip is different and internet ip address is differen...By java code i found lan ip ...Is it possible to find the internet proxy ip address using java code...in http://www.haxial.com/whatismyipaddress they have achieved.pLEASE IF ANYBODY IS HAVING THE CODE for finding internet proxy ip address..pLEASE SEND ME
17 years ago
hello

no i dont mean like this

lsn man

i have executable JAR file and this file create rmi object ( skeleton )
in the client side

so how can i lookup to this object(skeleton) if the client connect through
LAN NETWORK so he will have porxy ip and LAN IP

???
17 years ago
hello there

need help in RMI and I'm really need it

and my problem is :

i want to create the rmi object in client machine , i mean the client machine connect to Internet thorougher ADSL

or maybe in local network ( DNS )

so my problem when i make binding or rebinding to rmi object which ip will use it to make look up to the object

i.e( the local ip or DNS IP OR PROXY IP , i mean if any use command line( ipconfig in windows or ifconfig in linux or unix ) to know what is ip he will got the local IP and if he

use this link

( http://whatismyipaddress.com/) will got another IP (proxy IP )

so how can i connect to the client machine if he have proxy ip and local ip ?? .
so i mean when im make lookup what i have to do
(connect to proxy then to MY Internal (LAN) IP)

IF YES , HOW CAN I MAKE IT
???


and is it like P2P application !!!???
[ September 14, 2006: Message edited by: Bear Bibeault ]
17 years ago
hello
please test this code if you need to solve your problem


public static void main(String[] args) throws Exception
{
try
{
remoteServer server = new remoteServerImpl();
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
System.setProperty(Context.PROVIDER_URL, "rmi://localhost:1099");
Registry registry = LocateRegistry.createRegistry(1099);
remoteServer stub = (remoteServer) UnicastRemoteObject.exportObject(server,1099);
registry.rebind ("dataSource", stub);
JOptionPane.showMessageDialog(null,"##### SERVER STARTED #####");
System.out.println("##### SERVER STARTED #####");
}
catch (Exception e)
{
}
}
TARIQ SHADID
WEB DEVELOPER
17 years ago
and i write this code in unix to create hidden folder which is:

boolean setHidden(boolean value)
{
if (value && !isHidden())
return renameTo('.' + getPath());
else if (isHidden())
return renameTo(getPath().substring(1));
else
return false;
}

but it doesnt work

can any body help me

Tariq Shadid
PHP DEVELOPER
17 years ago
yes you can use windows command to create hidden folder which is "ATTRIB +h"
and here sample code


import java.io.*;
public class Class1
{
public static void main( String[] argv )
{

String folderName = "\\whatevere";
File fp = new File(folderName);
fp.mkdir();

String command = "ATTRIB +h \\"+folderName;

try
{
Process process = Runtime.getRuntime().exec("cmd /C "+command );
process.waitFor();
System.out.println("Exit code is " + process.exitValue());
}
catch ( Exception ioex )
{
ioex.printStackTrace();
}
}
}
17 years ago