<![CDATA[Messages posted by "zThienLongz"]]> /hvaonline/posts/listByUser/130175.html JForum - http://www.jforum.net Re: [Java Thread], vấn đề interrupt! /hvaonline/posts/preList/25526/157077.html#157077 /hvaonline/posts/preList/25526/157077.html#157077 GMT Re: [Java Thread], vấn đề interrupt! /hvaonline/posts/preList/25526/157024.html#157024 /hvaonline/posts/preList/25526/157024.html#157024 GMT Re: problem with my network in Fedora 7 http://sieuquay.byethost9.com/Wireshark.png
còn khi em ko duyệt 1 trang web nào dùng wireshark duyệt tất cả các gói đi và đến máy em thì đc kết quả sau: http://sieuquay.byethost9.com/Wireshark1.png
]]>
/hvaonline/posts/preList/24980/151223.html#151223 /hvaonline/posts/preList/24980/151223.html#151223 GMT
Re: problem with my network in Fedora 7 /hvaonline/posts/preList/24980/151095.html#151095 /hvaonline/posts/preList/24980/151095.html#151095 GMT Re: problem with my network in Fedora 7 Code:
[root@localhost ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:17:31:5C:E5:52  
          inet addr:192.168.1.90  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::217:31ff:fe5c:e552/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111937 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:31314300 (29.8 MiB)  TX bytes:6420495 (6.1 MiB)
          Interrupt:17 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10738 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10738 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:79110566 (75.4 MiB)  TX bytes:79110566 (75.4 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[root@localhost ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.1.1
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:17:31:5C:E5:52
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.90
GATEWAY=192.168.1.1
[root@localhost ~]# ping -c 10 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=0.958 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=0.846 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1.01 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=0.899 ms
pi64 bytes from 192.168.1.1: icmp_seq=5 ttl=254 time=1.01 ms
n64 bytes from 192.168.1.1: icmp_seq=6 ttl=254 time=0.833 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=254 time=1.31 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=254 time=0.880 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=254 time=1.10 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=254 time=0.871 ms
[root@localhost ~]# ping google.com.vn
PING google.com.vn (72.14.207.104) 56(84) bytes of data.
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=1 ttl=238 time=290 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=2 ttl=238 time=292 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=3 ttl=238 time=295 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=4 ttl=238 time=295 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=5 ttl=238 time=290 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=6 ttl=238 time=294 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=7 ttl=238 time=295 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=8 ttl=238 time=293 ms
64 bytes from eh-in-f104.google.com (72.14.207.104): icmp_seq=9 ttl=238 time=300 ms
Hiện tượng trên ko phải lúc nào cũng xảy ra nhưng tần suất xảy ra nhìu đến mức ko chịu. Chỉ duy nhất việc duyệt web là có vấn đề thôi còn vào pidgin thì vẫn okie]]>
/hvaonline/posts/preList/24980/151061.html#151061 /hvaonline/posts/preList/24980/151061.html#151061 GMT
problem with my network in Fedora 7 /hvaonline/posts/preList/24980/151054.html#151054 /hvaonline/posts/preList/24980/151054.html#151054 GMT loạn vì I/O trong java /hvaonline/posts/preList/24544/148342.html#148342 /hvaonline/posts/preList/24544/148342.html#148342 GMT Re: REA_UnPacKing Ebook! /hvaonline/posts/preList/23682/144254.html#144254 /hvaonline/posts/preList/23682/144254.html#144254 GMT Re: REA_UnPacKing Ebook! /hvaonline/posts/preList/23682/144094.html#144094 /hvaonline/posts/preList/23682/144094.html#144094 GMT Re: Thắc mắc về Stack trong Java /hvaonline/posts/preList/23822/143626.html#143626 /hvaonline/posts/preList/23822/143626.html#143626 GMT Re: Thắc mắc về Stack trong Java /hvaonline/posts/preList/23822/143571.html#143571 /hvaonline/posts/preList/23822/143571.html#143571 GMT Thắc mắc về Stack trong Java Code:
import java.sql.*;
public class DB {
	private String driver = "com.mysql.jdbc.Driver";
	private String host = "jdbc:mysql://localhost";
	private String dbName = "test";
	private int port = 3306;
	private String userDB = "root";
	private String passDB = "macarong";
	private Statement sta;
	
	public DB() {
		super();
	}
	
	public void connect() throws Exception {
		Class.forName(driver);
		String url = host + ":" + port + "/" + dbName;
		Connection con = DriverManager.getConnection(url,userDB,passDB);
		sta = con.createStatement();
	}
	
	public ResultSet execSQL(String query) throws Exception {
		ResultSet res = sta.executeQuery(query);
		return res != null ? res : null;
	}
	
	public int updateSQL(String sql) throws Exception {
		int i = sta.executeUpdate(sql);
		return i > 0 ? i : 0;
	}
}
file mystack.java Code:
import java.sql.*;
public class mystack {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		DB db = new DB();
		try {
			db.connect();
			ResultSet rs = db.execSQL("select * from User");
			while(rs.next()) {
				System.out.print(rs.getString("Username") + "\t" + rs.getString("Email"));
			}
		} catch (Exception e) {
			System.out.print("Loi he thong:" + e);
		}
	}

}
Chương trình ở trên chạy ngon lành nhưng mình lại ko hiểu tại sao vậy Khi mình gọi hàm db.connect() thì nó thực hiện những gì trong phương thức connect(): biến "con" đc tạo ra rùi con.createStatement(); tạo ra 1 đối tượng kiểu Statement và sau đó biến sta tham chiếu tới nó. Cái mình thắc mắc ở đây là khi kết thúc phướng thức bình thường như trong C/C++ thì stack đó sẽ bị hủy , các biến đc khai báo bên trong method sẽ biến mất , còn đây tại sao stack ko bị hủy có phải là do thuộc tính "sta" tham chiếu tới 1 đối tượng ( 1 biến ) trong stack (vì trong java cách truyền tham số là class là truyền bằng pass by reference) nên khi kết thúc method stack ko bị hủy. Một câu hỏi phụ nếu như ko có 1 đối tượng nào (1 biến của class ) bên ngoài tham chiếu tới 1 đối tượng trong stack thì stack có bị hủy ko]]>
/hvaonline/posts/preList/23822/143534.html#143534 /hvaonline/posts/preList/23822/143534.html#143534 GMT
Re: Xin code java mô phỏng thuật toán tarjan /hvaonline/posts/preList/21989/130708.html#130708 /hvaonline/posts/preList/21989/130708.html#130708 GMT Re: Xin code java mô phỏng thuật toán tarjan /hvaonline/posts/preList/21989/130703.html#130703 /hvaonline/posts/preList/21989/130703.html#130703 GMT Xin code java mô phỏng thuật toán tarjan /hvaonline/posts/preList/21989/130700.html#130700 /hvaonline/posts/preList/21989/130700.html#130700 GMT Re: TÌm Trường /hvaonline/posts/preList/20511/128454.html#128454 /hvaonline/posts/preList/20511/128454.html#128454 GMT Re: Thắc mắc về toàn tử trên bit Not /hvaonline/posts/preList/20687/123153.html#123153 /hvaonline/posts/preList/20687/123153.html#123153 GMT Re: Thắc mắc về toàn tử trên bit Not /hvaonline/posts/preList/20687/122915.html#122915 /hvaonline/posts/preList/20687/122915.html#122915 GMT Thắc mắc về toàn tử trên bit Not /hvaonline/posts/preList/20687/122914.html#122914 /hvaonline/posts/preList/20687/122914.html#122914 GMT Re: khó khăn trong việc xem các thông tin trong các lệnh liệt kê list /hvaonline/posts/preList/20327/120729.html#120729 /hvaonline/posts/preList/20327/120729.html#120729 GMT khó khăn trong việc xem các thông tin trong các lệnh liệt kê list /hvaonline/posts/preList/20327/120715.html#120715 /hvaonline/posts/preList/20327/120715.html#120715 GMT Re: Tìm 1 IDE về java /hvaonline/posts/preList/20319/120711.html#120711 /hvaonline/posts/preList/20319/120711.html#120711 GMT Tìm 1 IDE về java /hvaonline/posts/preList/20319/120686.html#120686 /hvaonline/posts/preList/20319/120686.html#120686 GMT Re: Không nhận Driver /hvaonline/posts/preList/19917/118567.html#118567 /hvaonline/posts/preList/19917/118567.html#118567 GMT Re: Các bác cho e hỏi về post nhạc trong forum với!! /hvaonline/posts/preList/19920/118532.html#118532 /hvaonline/posts/preList/19920/118532.html#118532 GMT Ebook hướng dẫn các thủ thuật về Gimp I. Text Effects : 1. Neo Glow 2. Cool glowing text 3. Gold Text 4. Transparent Glass Lettering 5. Text to Path 6. Hot text on flames / fire 7. Web 2.0 Text logo 8. Text Outline 9. Neo inscription 10.The Beveled Text Dance 11.iText 12.Metallic Text 13.Rounded Corners 14.Smelting text / Creating blood text 15.Tutorial: Rays of Light (behind text) II. Photos / Wallpapers : 1. Perfect masking using a highpass 2. Infrared / Monochrome Effect 3. Smoke and Flames 4. Old Parchment Paper 5. How to generate realistic mass waterdrops on a surface 6. Planet in a wireframe model 7. Simple Scanlines 8. Exploding Planet 9. Creating the Che Guevara Effect 10.Hot Wallpaper with Flames 11.Create a cool starfield 12.Turning people into stone 13.Create a shocking sphere/ball 14.How to change a boring sky to a cool cloudy sky 15.Vexel Simulation on Photos 16.Old Photo 17.Popout Photo 18.Adding photo frames to a photo in Gimp 19.Choosing your photo 20.Create an Apple like reflection with Gimp III. Buttons, Icons : 1. Orb-Icons for Websites 2. Creating a simple Company Logo 3. Stylish buttons 4. Creating 3D icons 5. Smileys with The Gimp 6. Create soft glassy buttons 7. Create a shield symbol 8. Vista Button 9. Rounded Navigation Bar 10.Windows Vista Folder Icon 11.Button Tutorial for Gimp 12.Designing With Gradients 13.Creating Glassy Buttons 14.Creating a Navigation Button 15.Chains 16.Glassy Spheres 17.Gear Wheel 18.Create a metallic glass button 19.Web 2.0 Badges VI. Website Layouts : 1. Blog Theme Design tutorial 2. Modern Navigation 3. Creating Your Own Website Design Using Gimp 4. The Complete Website Tutorial 5. Create A Professional looking Logo Using Gimp 6. Creating the Simnor Computing navigation menu 7. SimplyBlue web layout - Part I 8. SimplyBlue web layout - Part II 9. Creating a ProBoards forum colour scheme 10.Creating a Website Template 11.Technical Border 12.Sigs in Gimp 13.How to Create Cool Signatures V. Effects : 1. Generate a stripe-like texture 2. Creating a bloody splatter texture 3. Create a mystic chaos Voodoo-Pattern 4. Generate a cool tech pattern 5. A colored swirl of light 6. Crazy Ions 7. Create futuristic looking tech pattern 8. Sun Ray Effect 9. Glow Effect 10.Lightning 11.Gimp Fire 12.Drop Shadow 13.Wallpaper 14.Galaxy VI. Textures : 1. Textured Design 2. Make a Gimp pattern from scratch 3. Snake Skin 4. Water Surface 5. Create a web 2.0 stripe header with Gimp VII. Painting : 1. blend colors 2. Paint Cactus 3. Drawing Trees VIII. Misc : 1. Advance Orb 2. Spam Flame sig 3. Mac style Wallpaper 4. Brave Attempt to Teach Layers in 3 Hours 5. Software Boxes 6. Convert Photoshop Layer Styles to Gimp Gradients 7. iPod Dancer Tutorial 8. Chocolate bar with GIMP 9. Drawing Shapes with Bezier Tool  Định dạng file: PDF Dung lượng: 20MB Download: http://rapidshare.com/files/97532686/Gimp_Tutorial.pdf.rar.html Nguồn từ http://thegioiquay.tk]]> /hvaonline/posts/preList/19891/118349.html#118349 /hvaonline/posts/preList/19891/118349.html#118349 GMT Re: Cần tìm trình thông dịch (interperter) /hvaonline/posts/preList/18207/109564.html#109564 /hvaonline/posts/preList/18207/109564.html#109564 GMT Re: Cần tìm trình thông dịch (interperter) /hvaonline/posts/preList/18207/109358.html#109358 /hvaonline/posts/preList/18207/109358.html#109358 GMT Re: Cần tìm trình thông dịch (interperter) /hvaonline/posts/preList/18207/109350.html#109350 /hvaonline/posts/preList/18207/109350.html#109350 GMT Cần tìm trình thông dịch (interperter) /hvaonline/posts/preList/18207/109170.html#109170 /hvaonline/posts/preList/18207/109170.html#109170 GMT