Wednesday, December 06, 2006

.NETZ - .NET EXEcutables Compressor & Packer

http://madebits.com/netz/index.php

Can use to prevent discompile .Net Assembly (Applications, Dlls).

Bổ sung link trực tiếp đến PDF library

http://www.paologios.com/

Cái này của Paolo Gios, người Ý, rất hay nhưng thiếu phần password để mở file PDF, có cả phần tách/ ghép một file PDF nữa.

Monday, December 04, 2006

Data conversation from C++ to .Net

http://www.codeproject.com/dotnet/Win32APICPlusPlustoDotNET.asp

cái này quả thật là rất hữa dụng

Saturday, December 02, 2006

MegaBuy

Mega buy, đang dạng và trên đà phát triển, hi vọng nó sống lâu để còn có nơi tìm thông tin sản phẩm

http://www.megabuy.vn/

Install Mono 1.2 trên Ubuntu

http://www.mail-archive.com/mono-list@lists.ximian.com/msg20859.html

Bản 1.2 này hổ trợ Windows Form luôn, nhưng thử chưa bao giờ thành công. Nhưng mọi chuyện vẫn còn phía trước, biết đâu một ngày mình chạy được thì sao.

http://www.ubuntuforums.org/showthread.php?t=310404&highlight=Mono+1.2

Install Mono 1.2 trên Ubuntu

http://www.mail-archive.com/mono-list@lists.ximian.com/msg20859.html

Bản 1.2 này hổ trợ Windows Form luôn, nhưng thử chưa bao giờ thành công. Nhưng mọi chuyện vẫn còn phía trước, biết đâu một ngày mình chạy được thì sao.

Thursday, November 30, 2006

Cờ carô

http://xgomoku.cvs.sourceforge.net/xgomoku/xgomoku/
MFC project

Wednesday, November 29, 2006

Một dll cho PDF cực kỳ nhỏ

http://www.codeproject.com/cs/library/giospdfnetlibrary.asp

Application Configure

Cái này trên .Net framework 1.1 chỉ hổ trợ đọc, nhưng nó là một file XML bình thường nên việc ghi thêm thông tin cũng thao tác như khi ghi file XML, còn trên .Net 2.0 hay 3.0 thì hổ trợ cả đọc và ghi.
links: http://www.grimes.demon.co.uk/dotnet/configFAQ.htm

Application Configure

Cái này trên .Net framework 1.1 chỉ hổ trợ đọc, nhưng nó là một file XML bình thường nên việc ghi thêm thông tin cũng thao tác như khi ghi file XML, còn trên .Net 2.0 hay 3.0 thì hổ trợ cả đọc và ghi.
links: http://www.grimes.demon.co.uk/dotnet/configFAQ.htm

Application Configure

Cái này trên .Net framework 1.1 chỉ hổ trợ đọc, nhưng nó là một file XML bình thường nên việc ghi thêm thông tin cũng thao tác như khi ghi file XML, còn trên .Net 2.0 hay 3.0 thì hổ trợ cả đọc và ghi.
links: http://www.grimes.demon.co.uk/dotnet/configFAQ.htm

Tuesday, November 28, 2006

Có quá nhiều thứ miễn phí hàng xịn cho Ubuntu

http://www.debianhelp.co.uk/tools.htm

Chỉ có thể nói là "quá tuyệt".

Có quá nhiều thứ miễn phí hàng xịn cho Ubuntu

http://www.debianhelp.co.uk/tools.htm

Chỉ có thể nói là "quá tuyệt".

Ubuntu help

http://www.debianadmin.com/install-amarok-144-music-player-in-ubuntu-edgy.html

.Net Framework 1.1 download

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=262D25E3-F589-4842-8157-034D1E7CF3A3

Monday, November 27, 2006

Free AntiVirus

http://www.pcworld.com.vn/pcworld/magazine_ol.asp?t=mzdetail&atcl_id=5f5e5d5e565e56

Friday, November 24, 2006

Ubuntu Unleased

Đi tìm cuốn này đã lâu, nay đã có, đọc cho sướng con mắt chơi.
http://www.oebook.com/%7B43D46440-ACA6-4026-842C-6ECAE1CF0B0D%7D.htm

Wednesday, November 22, 2006

Đừng bao giờ tin vào Net Send

http://www.codeproject.com/internet/fakesend.asp

How to install Kubuntu on Ubuntu

http://www.linuxquestions.org/questions/showthread.php?t=342339

Test insert images

Không biết sao khi upgrade rồi mọi chuyện vẫn tốt đẹp như cũ hay không nên post thử một phát xem sao.
[IMG]https://beta.blogger.com/img/logo100.gif[/IMG]

Tuesday, November 21, 2006

Một vài sourcecode collection đáng nhớ

Cái này cũng giống như hằng đẳng thức vậy, nhớ địa chỉ thôi, khi nào cần thì tìm lại.
http://www.sysinternals.com/SourceCode.html

Install KDE trên Ubuntu

http://www.psychocats.net/ubuntu/kde

Monday, November 20, 2006

Học tiếng Anh miễn phí

http://www2.thanhnien.com.vn/Giaoduc/2005/12/26/133752.tno

STA/MTA truyện bây giờ mới biết


http://blogs.msdn.com/larryosterman/archive/2004/04/28/122240.aspx

cedega

http://blues.protoman.sword.googlepages.com/cedega

Ubuntu + rar files

How to install RAR Archiver (rar)
Submitted by MikeTT on Sun, 2005-10-16 15:04.

Prerequisites: add universe and multiverse repositories.

Open a terminal window and type in:
sudo apt-get install rar
sudo ln -fs /usr/bin/rar /usr/bin/unrar

After that you can find Archive Manager in the Gnome menu under Applications -> Accessories.

Thursday, November 02, 2006

Ubuntu discovery

Install VLC to play media files on Ubuntu
http://www.videolan.org/vlc/download-ubuntu.html

Monday, August 21, 2006

backup links

hxxp://www.codeproject.com/csharp/unmanage.asp

About VC++ dlls and use them on C#

backup links

hxxp://www.codeproject.com/csharp/unmanage.asp

About VC++ dlls and use them on C#

Monday, August 14, 2006

Professional .Net Network Programming

Professional .NET Network Programming

Networking is one of the core tasks of enterprise-level programming, and for the programmer familiar with the C# language this book will provide the information to put network programming at the heart of their .NET applications. Prior knowledge of network programming is not assumed, but the reader already familiar with networking from another environment will find the pace quick enough for the book to still prove valuable.This book will give the reader:

An understanding of the general concepts of networking
Information about network programming in .NET with C#
Skills to build network-based applications in .NET
The confidence to use the classes shipped with .NET to implement your own application-level protocols.

After reading this book, readers will be confident C# network programmers, and understand the underlying protocols.

We begin with an overview of the most important background material, such as the architecture of physical networks, network protocols, the OSI model, streams in .NET, and the classes provided to facilitate access to streams such as StreamReader and StreamWriter.

Then we move onto sockets programming, with an introduction to the concept of sockets, and full coverage of using sockets in .NET. We look at TCP, UDP, and using multicast sockets in .NET. We also look briefly at application-level protocols built on top of these layers, such as SMTP and FTP.

The next stop is Internet programming, with a look at HTTP, the underlying protocol of the Internet, and e-mail protocols – we look at the .NET classes for sending e-mails via SMTP, and we see how we can implement POP3 and NNTP clients in .NET to read mailboxes and newsgroups.

The book finishes with an exploration of how to secure network communications in .NET – encrypting network traffic, certificates and SSL, authenticating and authorizing users with NTLM and Kerberos.

Download here:

hxxp://rapidshare.de/files/28170553/Wrox_-_Professional_.NET_Network_Programming.part1.rar

hxxp://rapidshare.de/files/28170769/Wrox_-_Professional_.NET_Network_Programming.part2.rar

hxxp://rapidshare.de/files/28171429/Wrox_-_Professional_.NET_Network_Programming.part3.rar

hxxp://rapidshare.de/files/28171632/Wrox_-_Professional_.NET_Network_Programming.part4.rar

hxxp://rapidshare.de/files/28172156/Wrox_-_Professional_.NET_Network_Programming.part5.rar

hxxp://rapidshare.de/files/28172361/Wrox_-_Professional_.NET_Network_Programming.part6.rar

hxxp://rapidshare.de/files/28172917/Wrox_-_Professional_.NET_Network_Programming.part7.rar

Source code download here:

hxxp://rapidshare.de/files/28173339/Wrox_-_Professional_.NET_Network_Programming_Source_code.zip

Friday, August 11, 2006

code preview checklist

hxxp://www.macadamian.com/index.php?option=com_content&task=view&id=27&Itemid=31

Chưa coi nhưng thấy coi bộ cũng tốt nên backup link lại để khi nào rảnh thì xem.

Wednesday, August 09, 2006

Tra cứu giờ xe lửa chạy

hxxp://dsvn1.dyndns.biz/BanggiaveVx/timetable.asp#t

Tuesday, August 08, 2006

Nên xem cho biết với người ta

WinSpy, very excited
hxxp://www.codeproject.com/threads/winspy.asp

Monday, August 07, 2006

tour cua ba me he 2006

Nha Trang - Da Lat

hxxp://www.dulichthanhnien-ytc.com.vn/tour/tour2.php?gr_id=1&cat=1&pt=2&id=80

Wednesday, August 02, 2006

Tuesday, August 01, 2006

Links about database

Kết nối Database MySql trong VS 2005
hxxp://www.pcworld.com.vn/pcworld/faq.asp?t=faqview&id=1549&cat_id=2&fn=228fd4c31e4e1a1cadc20006&m=7&y=2006

Great article on how to make Setup Project

Setup Project in Visual Studio .Net
http://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/

opendns: 208.67.220.220

Save DirectX surface to file

hxxp://www.g-productions.net/page.php?id=18
Save DirectX surface to file. May be work but language is VC++, I try to port it to C# when I have time.

Thursday, July 27, 2006

coool ebook

ASP.NET Solutions — 24 Case Studies (with source code)

hxxp://rapidshare.de/files/26526438/Aw_asp_dotnet_solut_23_c_s.rar
Password: warez2006

Sunday, July 23, 2006

MessageBoxManager component

http://www.codeproject.com/cs/miscctrl/MessageBoxManager.asp

Having timeout, check box never show this again, custom Font, and many coolest features on a messageBox.
Available for .net Framework 2.0

Beginner with Visual Studio 2005 (video)

How to code with .Net Framework 2.0. Only for beginners.

http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx#forms

Thursday, July 20, 2006

Save DirectX surface to file

Save DirectX surface to file. May be work but language is VC++, I try to port it to C# when I have time.

hxxp://www.codeproject.com/dialog/screencap.asp : codeproject

hxxp://www.g-productions.net/page.php?id=18

Save DirectX surface to file

hxxp://www.g-productions.net/page.php?id=18
Save DirectX surface to file. May be work but language is VC++, I try to port it to C# when I have time.

Wednesday, July 19, 2006

bk links

Download Here




Password: www.ebooksportal.org

Tuesday, July 18, 2006

Motion Detect

hxxp://www.codeproject.com/cs/media/Motion_Detection.asp

Good link about JPEG

hxxp://www.faqs.org/faqs/jpeg-faq/part1/

Amazing, very interested!

Cool Archive Links

hxxp://www.csharphelp.com/archives/
Some acticles are very helpful

Monday, July 17, 2006

Secure Dll on .Net(another link on CSharpHelp)

hxxp://www.csharphelp.com/archives/archive203.html

This links may good than two before. Should have clearly understand about this feature.

Secure Dll on .Net

Cách này dùng để bảo vệ các Dll trên .Net khỏi bị tình trạng xem source hay sử dụng mà chưa được phép của người tạo ra. Sử dụng SecUtil đi kèm trong .Net để làm.

hxxp://www.codeguru.com/csharp/csharp/cs_misc/security/article.php/c8329/

hxxp://www.codeproject.com/dotnet/matlabeng.asp?df=100&forumid=26267&exp=0&select=1447437

Firefox beta 2.0

Thấy chạy nhanh hơn bản cũ và có nhiều tính năng mới hơn. Download links:
hxxp://ftp.mozilla.org:80/pub/mozilla.org/firefox/nightly/bonecho-beta1-candidates/rc1/firefox-2.0b1.en-US.win32.installer.exe

Friday, July 14, 2006

Video dạy lái xe

hxxttp://www.driving-test-success.com/par_parking/par_parking.html

Wednesday, July 12, 2006

Tiếp cận với COM

khi hai chương trình muốn trao đổ dữ liệu cho nhau, cách nhẹ nhàng nhất là sử dụng hàm API SendMessage. Tham khảo link sau để tìm hiểu kỹ hơn
hxxp://www.thescarms.com/vbasic/PassString.asp

Tuesday, July 11, 2006

Pass firewall of XP2

Introduce
Windows XP SP2 basically has a small firewall. It's very easy to control, but sometimes it bothers you. When your application tries to connect to the internet, Windows shows a warning message-box, and this makes users feel your application is an Ad-Ware.

To prevent such things, I suggest you add your program to a Firewall Collection List. (This list contains the allowed programs.)

Link on codeproject:
hxxp://www.codeproject.com/w2k/WinXPSP2Firewall.asp

Monday, July 10, 2006

Fraction Class

hxxp://www.codeproject.com/csharp/fractiion.asp

rất cool, chuẩn mực để tham khảo.

iMac and WindowsXP

hxxp://www.pcworld.com.vn/pcworld/magazine_a.asp?t=mzdetail&atcl_id=5f5e5d5e5b5859

Links trên pcWorldVn về hai tiện ích để có thể chạy XP trên iMac

Thursday, July 06, 2006

Một article tổng quát về lập trình hay

hxxp://www.pcworld.com.vn/pcworld/magazine_a.asp?t=mzdetail&atcl_id=5f5e5d5e585f5e

Nói nhiều vấn đề, người viết có tầm hiểu biết rộng nên đọc rất lôi cuốn.

Thay đổi nút Start của Window XP thành bất cứ cái gì

hxxp://www.theeldergeek.com/change_text_on_xp_start_button.htm

Coi cho biết chứ đừng dại làm thử

Thay đổi nút Start của Window XP thành bất cứ cái gì

hxxp://www.theeldergeek.com/change_text_on_xp_start_button.htm

Coi cho biết chứ đừng dại làm thử

Wednesday, July 05, 2006

Đổi đơn vị đa hệ

Chuyển đổi đơn vị đo lường đa hệ

03-07-2006 09:56:45 GMT +7
Chắc bạn đã không ít lần “điên đầu” khi đọc những sách báo dịch từ báo chí nước ngoài mà người dịch “ngoan cố” giữ nguyên những đơn vị đo lường theo hệ Anh - Mỹ lạ hoắc, đại loại như inch, feet, yard, mile, pound, ounce, độ F...!?

Công cụ chuyển đổi đơn vị đo lường đa hệ mang tên “32bit Convert It” sẽ giúp bạn chuyển hệ đo lường Anh - Mỹ sang các đơn vị đo lường quốc tế quen thuộc chỉ trong tích tắc.

Cách sử dụng “32bit Convert It” cũng vô cùng dễ dàng và trực quan. Bạn chỉ cần nhập số liệu cần chuyển đổi vào đúng ô đơn vị của nó là “32bit Convert It” sẽ tự động chuyển đổi sang toàn bộ các đơn vị còn lại theo kiểu gõ tới đâu - chuyển tới đó cực kỳ nhanh chóng.

Chẳng hạn bạn gặp câu dịch: “Chúng tôi đang bay cách mặt đất 30.000 bộ (feet)...” mà không mường tượng được rằng 30.000 feet là bao nhiêu kilômet thì bạn chọn thẻ “Length” để chuyển đổi đơn vị đo khoảng cách, sau đó nhập số 30000 vào ô “Feet”, ngay lập tức “32bit Convert It” sẽ chuyển đổi số liệu này thành 9,144km. Tương tự như vậy bạn sẽ biết dân Mỹ thường đổ xăng xe hơi một lần là 20 galông, tức khoảng 76 lít.

“32bit Convert It” cung cấp cho bạn bảy lĩnh vực chuyển đổi đơn vị được trình bày theo bảy thẻ chức năng: Length (đo khoảng cách: mét, kilômet...); Area (đo diện tích: mét vuông, kilômet vuông...); Volume (đo thể tích: mét khối, lít...); Weight (đo trọng lượng: gam, kilôgam...); Density (đo mật độ: gam/lít...); Speed (đo tốc độ: km/g...) và Temperature (chuyển đổi nhiêt độ giữa độ C, độ F, độ K...).

Công ty ElectraSoft đang bán ra bản “32bit Convert It” c9.90.01 với giá 20 USD. Người dùng có thể vào địa chỉ hxxp://download1.electrasoft.com/32bcsx.exe để tải về bản dùng thử.

Theo Tuổi Trẻ

Tuesday, July 04, 2006

FreeImage on .Net

hxxp://www.codeproject.com/csharp/freeimagecswrapper.asp

Địa chỉ bảo hành của LG

Hồ Chí Minh
1./ 27-33 Trần Hưng Đạo - Quận 1 HCM
088.218136

2./ 43/2A Võ Văn Ngần - Quận Thủ Đức – TP Hồ Chí Minh
08.8972712

3./ 218 Kinh Dương Vương – An Lạc – Bình Chánh
08.8750525

Daylight Saving Time

Link trên wiki về Daylight Saving Time
hxxp://en.wikipedia.org/wiki/Daylight_saving_time

Website của Emule

hxxp://www.emule-project.net/home/perl/general.cgi?l=1&rm=download

Monday, July 03, 2006

Xử lý nhiều files trong thư mục trên .Net

http://msdn.microsoft.com/msdnmag/issues/05/12/NETMatters/

Friday, June 30, 2006

BK_Links_June_30_2006

hxxp://www.thegioioto.com.vn
Trang web tiếng Việt về ôtô

Thursday, June 29, 2006

KeyLogger Preview

hxxp://www.securityfocus.com/infocus/1829

khá hay, nói rất chi tiết về các loại KeyLogger và cách phòng tránh.

Wednesday, June 28, 2006

Tham khảo thêm

http://www2.sys-con.com/ITSG/virtualcd/Dotnet/archives/0104/brown/index.html

WMI on WindowsXP Embedded
1
http://support.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.windowsxp.embedded&tid=95dabda4-8776-4305-a108-80ff45d24dd4&p=1


2
http://msdn.microsoft.com/chats/transcripts/mobileembedded/05_0810_dn_emb.aspx

3.
http://www.derkeiler.com/Newsgroups/microsoft.public.windowsxp.security_admin/2003-03/2572.html

4.
http://www.pcreview.co.uk/forums/archive/forum-171.php

Một vài lưu ý khi làm với Image trên .Net (cont)

3. Điều chỉnh các thông số trước khi save : dùng để điều chỉnh Quality của ảnh, v.v.... giúp giảm size của ảnh

Listing 1: Rotating a Bitmap Image

private int _totalRotation = 0;


private void btnRotateCW_Click
(object sender, System.EventArgs e)
{
// Rotate image clockwise (90)
if (pbox.Image != null)
{
_totalRotation += 90;
pbox.Image.RotateFlip(
RotateFlipType.Rotate90FlipNone);
pbox.Invalidate();
}
}


private void btnRotateCC_Click
(object sender, System.EventArgs e)
{
// Rotate image counter-clockwise (270)
if (pbox.Image != null)
{
_totalRotation -= 90;
pbox.Image.RotateFlip(
RotateFlipType.Rotate270FlipNone);
pbox.Invalidate();
}
}



Listing 2: Saving a Bitmap Image

private string _origFileName = null;


private void btnSave_Click
(object sender, EventArgs e)
{
if (_origFileName == null)
return;


SaveFileDialog dlg = new SaveFileDialog();


dlg.Filter = "JPG Files (*.jpg)|*.jpg";
dlg.FileName = _origFileName;


if (dlg.ShowDialog() == DialogResult.OK)
{
pbox.Image.Save(dlg.FileName,
ImageFormat.Jpeg);
}
}



Listing 3: Locating an ImageCodecInfo object

private ImageCodecInfo GetImageCodec(string mimeType)
{
ImageCodecInfo[] codecs
= ImageCodecInfo.GetImageEncoders();


foreach (ImageCodecInfo codec in codecs)
{
if (String.Compare(codec.MimeType,
mimeType, true) == 0)
{
return codec;
}
}


return null;
}






Listing 4: Saving an image using encoder parameters


private string _origFileName = null;
private Bitmap _origBitmap = null;
private ImageCodecInfo jpgCodec = null;


private void btnSave_Click
(object sender, EventArgs e)
{
if (_origFileName == null)
return;


SaveFileDialog dlg = new SaveFileDialog();


dlg.Filter = "JPG Files (*.jpg)|*.jpg";
dlg.FileName = _origFileName;


if (dlg.ShowDialog() != DialogResult.OK)
return;


// Ready to save the image
while (_totalRotation < 0)
_totalRotation += 360;
_totalRotation %= 360;
if (_totalRotation == 0 && !cboxQuality.Checked)
{
// No parameters, so just save image.
_origBitmap.Save(dlg.FileName,
ImageFormat.Jpeg);
}
else
{
if (jpgCodec == null)
jpgCodec = GetImageCodec("image/jpeg");


// Determine required number of parameters
int paramSize = udQuality.Enabled ? 1 : 0;
if (_totalRotation != 0)
paramSize ++;
EncoderParameters encoderParams
= new EncoderParameters(paramSize);


if (_totalRotation != 0)
{
// Create transformation parameter
EncoderValue rValue
= EncoderValue.TransformRotate90;
if (_totalRotation == 180)
rValue = EncoderValue.TransformRotate180;
else if (_totalRotation == 270)
rValue = EncoderValue.TransformRotate270;


EncoderParameter tParam
= new EncoderParameter(
Encoder.Transformation,
(long)rotateValue);
encoderParams.Param[paramSize-1] = tParam;
}


if (udQuality.Enabled)
{
// Create quality parameter
EncoderParameter qParam
= new EncoderParameter(
Encoder.Quality,
(long)udQuality.Value);
encoderParams.Param[0] = qParam;
}


// Save the image using encoder settings
_origBitmap.Save(dlg.FileName,
jpgCodec, encoderParams);
}
}

Một vài lưu ý khi làm với Image trên .Net (cont)

2. Class Để Resize một Bitmap

can found at: hxxp://www.codeproject.com/csharp/imageresize.asp

khá đơn giản và dễ hiểu.

Một vài lưu ý khi làm với Image trên .Net

1. Khi cần gửi một Bitmap thẳng qua Client, nhất thiết là phải gửi mảng byte[], ta dùng đoạn code sau:

// we have an Image or Bitmap object already, named imageNeedToSend
MemoryStream ms = new MemoryStream();
imageNeedToSend.Save(Stream, System.Drawing.ImageFormat)

the MemoryStream class has a method to return a ByteArray.
ms.ToArray()



Kiểm tra xe trước khi đi xa

Kiểm tra dầu động cơ, dầu thắng, bánh ....
hxxp://www.vnexpress.net/Vietnam/Oto-Xe-may/2006/06/3B9EB40D/

Tuesday, June 27, 2006

SystemTimeChanged not fire

Cái này là do lỗi MTA và STA, chỉ cần chuyển sang MTA là OK hết.

Monday, June 26, 2006

Cười với Vova - cont

Giờ học tiếng Pháp hôm đó có 1 giáo viên đến dự giờ nên cô giáo rất run. Cô vừa viết lên bảng một từ tiếng Pháp và hỏi:
- Em nào có thể nói cho cô biết nghĩa của từ này không?
Đúng lúc đó thì cô làm rơi viên phấn xuống đất. Lúc cô cúi xuống nhặt thì ông thầy ngồi lẩm bẩm câu gì đó. Vova vội giơ tay xung phong trả lời.
- Mời em Vova, từ này là gì?
- Dạ, thưa cô nghĩa là "mông to quá" ạ!
- Ngồi xuống, 1 điểm. Cô giáo tức giận nói
- Lần sau nếu không biết thì đừng có nhắc bài nhé!. Vova quay sang hầm hừ nói với ông thầy ngồi cạnh!

Cười với Vova - cont

Bé Vôva vào lớp 1. Để buổi đi học đầu tiên của các cháu được hứng thú, cô giáo bắt đầu bằng trò chơi đố vui.
Cô nghĩ đến cái bàn, rồi đặt câu hỏi :
- Đố các em, trong nhà ta có cái gì bằng gỗ, có 4 chân?
Bé Vôva nhanh nhảu:
- Cái ghế ạ
Cô gật gù, ừ, cái em nghĩ cũng được đấy, nhưng mà câu trả lời của cô là cái bàn. Rồi cô đố tiếp, lần này cô nghĩ đến con mèo:
- Đố các em, trong nhà ta nuôi con gì có 4 chân mà các em hay vuốt ve nó?
Bé Vôva vẫn là người nhanh nhất:
- Thưa cô, con chó ạ.
- Ừ cũng được đấy, cô nói, em giỏi lắm, nhưng cái câu trả lời của cô là con mèo cơ.
Bé Vôva xin phép cô ra câu đố:
- Đố cô, cái gì mà đàn ông hay giấu trong quần lâu lâu lấy ra sử dụng, dài dài, tròn tròn , đầu đỏ đỏ...
Chưa nói hết câu, cô giáo đã nổi giận ngắt ngang:
- Vôva, sao em dám ăn nói bậy bạ như vậy
Nước mắt lưng tròng, bé Vôva thút thít trả lời:
- Cái mà cô nghĩ cũng được đấy, nhưng câu trả lời của em là những que diêm cơ...

Cười với Vova - from UDS

Cô giáo hôm nay mặc áo mới, trên ngực thêu hoa hồng. Thấy các học sinh chăm chú nhìn, cô giáo rất vui, hỏi: "Thế các em có biết hoa hồng sống bằng gì ko?"

Vôva trả lời: "Thưa cô bằng sữa ạ" Cô giáo đỏ mặt đuổi Vôva ra đứng hành lang.

Thầy hiệu trưởng đi ngang thấy Vôva vật vờ ở ấy, hỏi đầu đuôi sự tình rồi nói: "Vôva em nhầm rồi, hoa hồng sống bằng phân và nước tiểu"

Vôva lầm bầm:"Em đâu biết rễ nó dài đến thế"

Học tiếng Anh tại hội Việt - Mỹ

Có một ông người Việt và một ông Tây đi đụng phải nhau, ông người Việt thấy thế bàn xin lỗi:
- I'm sorry
- I'm sorry, too - ông Tây lịch sự đáp lại
- I'm sorry, three - ông người Việt trả lời
Ông Tây nghe vậy thấy lạ quá bèn hỏi:
- What are you sorry for?
- I'm sorry five - ông người Việt trả lời
Ông Tây nghe vậy bực quá:
- Shit!
- Seven - ông người Việt đáp lại tỉnh queo.

Thursday, June 22, 2006

Scancode Map example

Trong ví dụ sau ta sẽ bỏ đi phím delete trên numpad và swap phím delete gần nút phím End với phím Scroll Lock

http://photos1.blogger.com/hello/86/9387/1024/swapKey.jpg

Dùng Scancode Map

Cái này dùng để định nghĩa map các phím trên keyboard
Ví dụ: khi user nhấn nút a thì các map này chỉnh lại thành phím b

Dùng HKEY_LOCAL_MACHINE nếu muốn toàn bộ hệ thống (mọi user) đều dùng map này ngược lại dùng CURRENT_USER để chỉ chỉnh cho user hiện tại

Step1: vào
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout

Step2: Add thêm Value Scancode Map có kiểu là REG_BINARY

Xem ví dụ sau để hiểu cách thêm vào
00 00 00 00 00 00 00 00 02 00 00 00 1d 00 3a 00 00 00 00 00

Trong ví dụ trên:
+ Tám cặp số "00" là bắt buộc phải có, tiếp đến là số
mapping ("02") ta sẽ định nghĩa, kế đến là phím đầu tiên
1D 00 là phím LCtrl sẽ thay thế cho phím 3A 00 là phím CapsLock, 4 cặp số "00" sau cùng là bắt buộc.

Lưu ý: Nếu muốn swap hay phím phải làm:
Swap phím 1 -> phím 2 và swap phím 2 về lại phím 1

Step 4: Restart hay Log Off

Chi tiết để tham khảo và lấy list các key code tại:
hxxp://www.microsoft.com/whdc/device/input/w2kscan-map.mspx

Wednesday, June 21, 2006

Diable AutoRun CD

Step1: Run/ regedit

Step2: Go to ->HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Services>Cdrom->

Step3: Change AutoRun ValueData to 0

Step4: Restart again.

Không thể Debug trong VS .Net

Unable to debugging

hxxp://www.gotdotnet.com/community/messageboard/Thread.aspx?id=239063

Tuesday, June 20, 2006

Backup links

Game Mahjong Escape
hxxp://rapidshare.de/files/21139890/escaping.rar.html
Password: estrange


Link ve hook tren C#
hxxp://www.codeproject.com/csharp/GlobalSystemHook.asp
hxxp://www.codeproject.com/csharp/GlobalSystemHook.asp
hxxp://www.codeproject.com/csharp/globalhook.asp
hxxp://www.codeproject.com/info/search.asp?cats=3&cats=5&searchkw=keyboard+hook&Submit1=Search&author=&sd=15+Nov+1999&ed=20+Jun+2006

.NET Framework Solutions: In Search of the Lost Win32 API

links: hxxp://tinyurl.com/znu23

.NET Framework Solutions: In Search of the Lost Win32 API

If you've begun programming using Microsoft's .NET Framework, you've discovered a lot of new and improved functionality. But, more than likely, you've also discovered a lot of missing functionality. Indeed, a third of the functions supported by the old Win32 API are not yet supported by .NET. Although you may not at first notice the loss of Win32 API functionality in .NET, the more you program, the more you'll realize how essential it is. As a programmer, you will not want to do without these solutions.

.NET Framework Solutions: In Search of the Lost Win32 API is one more thing you can't do without: a complete guide to your options for dealing with the functionality missing from .NET. As you'll learn, some functions are handily situated within Visual Basic or C#. In most cases, however, you'll need to access the old Win32 API from the .NET Framework. This is demanding work, but this book makes it easy, walking you through every step and paying special attention to the work of managing memory manually-the most error-prone part of the process. The topics covered inside are as varied as the missing functionality: direct hardware access, low-level security control, certain aspects of OS access, support for multimedia and utilities, and DirectX. You also get hard-to-find information on COM access, plus a collection of examples-dealing with DirectX and the MMC Snap-ins-that unite COM and Win32 access in especially illuminating ways.

Maximizing .NET Performance

Maximizing .NET Performance will focus on providing developers and architects with information on performance characteristics of various aspects of the .NET Framework. In addition to providing high-level material on achieving software with good performance characteristics, the books aims to enhance readers’ knowledge of the design and implementation of the Framework, and to provide the tools and techniques to allow readers to conduct their own investigation into performance problems.

The dominant feature of this book will be the systematic analysis of performance relating to key Framework topics like remoting, garbage collection, and threading. Rather than a ‘tips and tricks’ approach, the book aims to provide a detailed exploration of each topic, and explore the ‘whys’ and ‘by how much’ aspects (with actual benchmark results) of performance that are often overlooked.

Author Information

Nicholas J. Wienholt - Nicholas J. Wienholt is a Windows and .NET consultant based in Sydney, Australia. He has worked on a variety of IT projects over the last decade, ranging from numerical modeling of beach erosion to financial and payroll systems. Career highlights include the highly successful NSW State Rail Passenger Information Display System (PIDS) project, and the Mobile Number Portability (MNP) system. Nick was also responsible for the design and implementation of the messaging layer for Concentrics Pty Ltd, a network provider to Australian telecommunication companies. Nick is the co-founder and president of the Sydney Deep .NET User group, writes technical articles for Pinnacle Publishing and the Microsoft Developer Network, and is a keen participant in .NET related newsgroups.

Table of Contents

Chapter 1: .NET Framework Performance
Chapter 2: Investigating Performance
Chapter 3: Class Design and Implementation
Chapter 4: Strings, Text and Regular Expressions
Chapter 5: Collections
Chapter 6: Language Specifics
Chapter 7: Garbage Collection and Object Lifetime Management
Chapter 8: Exceptions
Chapter 9: Security
Chapter 10: Threading
Chapter 11: IO and Serialization
Chapter 12: Remoting
Chapter 13: Unmanaged Code Interoperability
Chapter 14: The Common Language Runtime
Chapter 15: Solving Performance Problems
Appendix A: Performance Measurement Framework for .NET

Links: hxxp://tinyurl.com/zxhyt

Thursday, June 15, 2006

Link về Fiat Siena 1.5 HL của mình

đang gặp khó khăn trong việc điều khiển xe mới nên phải tìm hiểu về cách thức vận hành của nó, cũng như cách bảo dưỡng. Tui nghĩ chắc cũng không khó với người thích tìm tòi như tui.
Links

Tuesday, June 13, 2006

Chuyện cười - Chế nhạo đàn bà

Chế tạo đàn bà

Ông vua xe hơi, Henry Ford sau khi chết được đưa lên thiên đàng. Tại cổng thiên đàng có Thánh St' Peter chờ sẵn để đón Ford.

Vừa gặp Ford, Thánh Peter cho biết: Ford hồi còn sống, ngươi đã làm nhiều việc công ích cho xã hội, như sáng chế phương pháp làm việc dây chuyền cho kỹ nghệ xe hơi làm thay đổi cả thế giới. Với thành quả như vậy, ngươi sẽ được một ân huệ là có thể chuyện trò với bất cứ ai ở thiên đàng này.

Suy nghĩ vài giây, Ford xin được gặp Thượng Đế. Thánh Peter dẫn Ford đến gặp Thượng Đế. Vừa gặp Thượng Đế, Ford hỏi ngay:

- Thưa Ngài, lúc ngài chế tạo ra đàn bà, ngài đã suy nghĩ gì?

Thượng Đế nghe xong bèn hỏi lại:

- Ngươi hỏi như vậy là ý gì?

Ford liền trả lời:

- Trong sáng chế của ngài có quá nhiều sơ sót. Phía trước thì bị phồng lên, phía sau thì bị nhô ra. Máy thường kêu to khi chạy nhanh. Tiền bảo trì và nuôi dưỡng quá cao. Thường xuyên đòi hỏi nước sơn mới. Cứ đi 28 ngày là lại bị chảy nhớt và không làm việc được. Chỗ bơm xăng và ống xả lại quá gần nhau. Đèn trước thì quá nhỏ. Tiêu thụ nhiên liệu thì nhiều kinh khủng khiếp.

Thượng Đế nghe qua liền bảo:

- Ngươi hãy đợi một chốc lát để ta xem lại bản thiết kế.

Ngài bèn cho gọi toàn bộ kỹ sư thiết kế và cơ khí trên thiên đàng lại để xem lại quá trình, sau một thời gian họ đã trình lên cho Thượng Đế bản báo cáo. Xem xong, ngài bèn phán rằng:

- Những lời ngươi vừa nói hoàn toàn đúng, bằng sáng chế của ta thật có nhiều sai sót, nhưng nếu tính trên phương diện kinh tế thì hiệu quả thị phần lại rất cao: Có gần 98% đàn ông trên thế giới xài sản phẩm do ta chế tạo, trong khi chỉ chưa đầy 10% đàn ông xài sản phẩm của ngươi.

(theo ngoisao.net)

Cười chút vậy mà

Tại một trại giam nữ trại trưởng đi nhận tiếp tế về khoe:
- Chị em ơi tôi muốn báo cho chị em 2 tin: một tin vui và một tin buồn
- Nói tin vui trước đi sau rồi hay nói tin buồn

Nữ trại thông báo:
- Tin vui là: chúng ta được tiếp tê rất nhiều " Dưa Chuột Tươi Và To"

Cả phòng giam như tức nước vỡ bờ reo lên vui sướng. Chị em hỏi:
- Thế tin buồn là gì?
- Tin buồn là: Tất cả các quả dưa đều bị thái lát hết rồi

Monday, June 12, 2006

www.kitco.com

Trang Web về giá vàng thế giới
Đổi đơn vị:
ounce = 28.35 g
1 Lượng (tael) = 37.4999 g

Giá vàng tại đổi ra lượng là = giá vàng tính bằng ounce * 28.35 / 37.4999
hay gần đúng là: giá vàng thế giới * 1.322751

Dùng IIS Final Test

I Hope It's work properly

Thursday, June 08, 2006

Updater in C++

http://www.codeproject.com/tools/updater.asp



http://www.gvhsoftware.org/products/updater/

Auto Update Application

Làm thế nào để tạo được chương trình có khả năng tự kiểm tra và update. Chỉ cần làm theo các hướng dẫn trong bài viết sau trên codeproject là chương trình của bạn đã có khả năng tự nâng cấp.

Link: Code Project

Wednesday, June 07, 2006

Tuesday, June 06, 2006

Make Magazine




























ALL OTHER ISSUES | PDF

Vol 1
http://rapidshare.de/files/5380263/vol1.pdf
41MB

Vol 2
http://rapidshare.de/files/5381284/vol2.pdf
42.6MB

Vol 3
http://rapidshare.de/files/5411478/Vol3.rar
44MB

Vol 4
http://rapidshare.de/files/12657789/makeMag_Vol4.rar
44MB

Vol5
http://rapidshare.de/files/12651841/makeMag_Vol5.rar
56.87MB

http://rapidshare.de/files/21949779/MakeMag_Vol6_.rar
27.46MB | PDF

Các magazine về điện tử để các thợ vọc có thể táy máy.

Multi-threaded file download manager - by Shailen Sukul

Introduction



A few months ago, my lovely wife was downloading her lecture notes from her university website, and I noticed that she had to manually click on every file to save it to the hard disk.

I also noticed that all the hyperlinks were on the same page, and the documents she was downloading were either Word documents or PowerPoint presentations.

Right then, a little light bulb went on in my head, and I decided to build her a file download utility. The requirements were simple:

* I should be able to point to a web page and filter URLs on it. For example, "*.doc" should give me a collection of URLs that have .doc at the end of the link.
* From the list of available files, I should be able to select the files I want to download.
* I should be able to download my selected files simultaneously.
* I should be able to nominate the number of simultaneous threads for download.
* I should be able to cancel a download at any point in time.
* I should be informed of the download status of each selected file.
* I do not want to re-download files that I have downloaded before.

Code Project Link

3 Loại Timer trên .Net

Gồm 3 loại timer: System.Windows.Form.Timer, System.Timers.Timer và System.Threading.Timer. Tạm thời chưa nắm được sự khác nhau và cách dùng của các timer này.

Link on MSDN

Monday, June 05, 2006

Kiểm tra năm nhuần

Đk năm nhuần, một năm là năm nhuần khi thoả 1 trong hai điều sau:
- chia hết cho 4 và không chia hết cho 100
- chia hết cho 400


Code
if (( nam % 4 == 0 && nam % 100 !=0) ||
(nam % 400 == 0))
{
return 0; // la nam nhuan
}
else
{
return 1;// khong phai la nam nhuan
}

Mạng Nơron - Using .Net

1. Overview

Solution Architect: "We have a new project. We need to develop a brain tumor recognition system. I hope you can do that?"

Dumb (And Lazy) Programmer: "No. Oh, probably yes - let me search whether I can I get a component or library for that"

Code Project Link

Rất đáng để xem và nghiên cứu làm theo.

Regex của .Net

The 30 Minute Regex Tutorial
By Jim Hollenhorst

Learning .NET Regular Expressions with Expresso

Did you ever wonder what Regular Expressions are all about and want to gain a basic understanding quickly? My goal is to get you up and running with a basic understanding of regular expressions within 30 minutes. The reality is that regular expressions aren't as complex as they look. The best way to learn is to start writing and experimenting. After your first half hour, you should know a few of the basic constructs and be able to design and use regular expressions in your programs or web pages. For those of you who get hooked, there are many excellent resources available to further your education.

Link on codeproject

Ghi chú về bài viết trên: giới thiệu về Regular Expression của .Net, một công cụ rất mạnh để kiểm tra xem một string có thuộc về một mẫu định trước nào hay không. Ví dụ: số điện thọai, email, hay nhập ngày tháng năm. Trong bài viết có giới thiệu về Expresso 2.1