Step 1 Download NS2 from http://sourceforge.net/projects/nsnam/ (I use NS2.34)
Step 2 Modifies follow http://sites.google.com/site/pengjungwu/install-ns2-31-on-osx (only step1, step2)
Step 3 run ./configure --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include \\
--x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib in otcl-1.13, tclcl-1.19, and ns-2.32
Step 4 make otcl-1.13, tclcl-1.19, and ns-2.32
Step 5 Enjoy with NS2
Reference
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting
http://sites.google.com/site/pengjungwu/install-ns2-31-on-osx
IT-Developer
JAVA Programing, MySQL, Database, java swing, java printer, ASP.NET, C#.NET, Android, GPhone, iphone, blackberry
Friday, September 4, 2009
Thursday, February 12, 2009
Sunday, February 8, 2009
How to config port forwarding on Windows 2003 Server?
How to config port forwarding on Windows 2003 Server?
Administrative Tools >
Routing and Remote Access >
ServerName >
IP Routing > NAT/Basic Firewall >
Right-Click on your NIC-1 LAN >
Properties >
Services & Ports Tab >
Add... >
Enter Incoming Outgoing Port and IP of the workstation
Routing and Remote Access >
ServerName >
IP Routing > NAT/Basic Firewall >
Right-Click on your NIC-1 LAN >
Properties >
Services & Ports Tab >
Add... >
Enter Incoming Outgoing Port and IP of the workstation
Sunday, February 1, 2009
MySQL Replicate Tutorial
Some time we need to have the slave database server for backup, So we need to create replicate database.
The follow link is the good tutorial for MySQL
http://www.howtoforge.com/mysql_database_replication
The follow link is the good tutorial for MySQL
http://www.howtoforge.com/mysql_database_replication
or
Tuesday, June 24, 2008
Easy AJAX with jMaki Framework
If you are web application developer I think you know about Rich Internet Application, Web 2.0.
AJAX is way to bring you for purpose. You can use jMaki Framework. You are amazed.
Quick start Guides
Download Plugin Netbeans
AJAX is way to bring you for purpose. You can use jMaki Framework. You are amazed.
Quick start Guides
Download Plugin Netbeans
Tuesday, June 17, 2008
Eclipse JVM Terminate on MAC OS
On MAC OS, after you change JDK HOME from JDK 1.5.0 to 1.6.0 when you run Eclipse system alert JVM Terminate will appear.
-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java
The solution, modifier file info.plist in Eclipse HOME/Eclipse.app/contents
remove comment
It's easy.
Monday, June 9, 2008
Extract zip file with Java
File file = new File("c:/test.zip");
BufferedOutputStream dest = null;
BufferedInputStream is = null;
ZipEntry entry;
ZipFile zipfile = new ZipFile(file);
Enumeration e = zipfile.entries();
while (e.hasMoreElements()) {
entry = (ZipEntry) e.nextElement();
System.out.println("Extracting: " + entry);
is = new BufferedInputStream(zipfile.getInputStream(entry));
int count;
byte data[] = new byte[BUFFER];
String fileName = "c:/" + entry.getName();
File outFile = new File(fileName);
if (entry.isDirectory()) {
outFile.mkdirs();
System.out.println("Create Folder " + outFile);
} else {
FileOutputStream fos = new FileOutputStream(outFile);
dest = new BufferedOutputStream(fos, BUFFER);
while ((count = is.read(data, 0, BUFFER)) != -1){
dest.write(data, 0, count);
}
dest.flush();
dest.close();
is.close();
}
}
BufferedOutputStream dest = null;
BufferedInputStream is = null;
ZipEntry entry;
ZipFile zipfile = new ZipFile(file);
Enumeration e = zipfile.entries();
while (e.hasMoreElements()) {
entry = (ZipEntry) e.nextElement();
System.out.println("Extracting: " + entry);
is = new BufferedInputStream(zipfile.getInputStream(entry));
int count;
byte data[] = new byte[BUFFER];
String fileName = "c:/" + entry.getName();
File outFile = new File(fileName);
if (entry.isDirectory()) {
outFile.mkdirs();
System.out.println("Create Folder " + outFile);
} else {
FileOutputStream fos = new FileOutputStream(outFile);
dest = new BufferedOutputStream(fos, BUFFER);
while ((count = is.read(data, 0, BUFFER)) != -1){
dest.write(data, 0, count);
}
dest.flush();
dest.close();
is.close();
}
}
Subscribe to:
Posts (Atom)