14
2012
Coding coding and coding…
Sometimes it may be simpler to write your own program from scratch if you have good knowledge about what you are going to do. But it would be better if you can read, debug, understand, and improve other programmers’ code. Having the capability of digesting existing code is a must for a programmer.
10
2012
Runtime error: division by zero
So, after more than 10 years of writing code, I’m making a basic careless mistake in PLC – division by zero. This is so ashamed. Although I am not really interested in this kind of graphical block programming but it’s a nice lesson to learn.
16
2010
Some notes for string handling
Clearing my phone since it is very messy with a lot of files, and found some notes here: Handling string in C# List of Numeric Formats * C or C – For Currency. Uses the cultures currency symbol. * D or D – Integer types. Add a number for 0 padding eg D5. * E or e – Scientific notation. * F or f – Fixed Point. * G or g – Compact fixed-point/scientific notation. [...]
5
2009
Network programming in C#
Basic definitions It is important to have a firm understanding about networking. Here, I only mention about some very basic knowledge. – Protocol: is a set of rules and procedures used for communication. Computers on a network must agree upon a common protocol in order to communicate. – IP (Internet Protocol) is the method or protocol by which data is sent from one device to another on the Internet. Each computer on the Internet has [...]
5
2009
C# programming language
Microsoft .NET Microsoft .NET contains 2 main components: Framework and Integrated Development Environment (IDE). Framework is the most important part of .NET and it is the core of the environment. .NET Framework contains: 4 main programming languages: C#, VB.NET, C++ and JScript.NET Common Language Runtime (CLR) – this is the core of the framework – which is Microsoft implementation of the Common Language Infrastructure (CLI) standard – handles code execution and all of the tasks [...]
3
2009
[VB.NET] Detect whether the USB device is plugged in or taken out without timer
.NET programming The following VB.NET code will help you to check whether a USB device is plugged in or taken out. No timer is used here. You can integrate this tip to your program just by copy and paste. Private WM_DEVICECHANGE As Integer = &H219 Public Enum WM_DEVICECHANGE_WPPARAMS As Integer DBT_CONFIGCHANGECANCELED = &H19 DBT_CONFIGCHANGED = &H18 DBT_CUSTOMEVENT = &H8006 DBT_DEVICEARRIVAL = &H8000 DBT_DEVICEQUERYREMOVE = &H8001 DBT_DEVICEQUERYREMOVEFAILED = &H8002 DBT_DEVICEREMOVECOMPLETE = &H8004 DBT_DEVICEREMOVEPENDING = &H8003 DBT_DEVICETYPESPECIFIC [...]
Categories
- Diary (10)
- IT (19)
- Programming (6)
- Life (6)
- LTT App Store (1)
- Mechatronics (6)
- Others (1)
EverBot.com
EverBot twitter
- Looking forward to seeing Ice Cream Sandwich on my old little Desire. Gonna be in-ter-rest-ting! 2 months ago
- I've learned that everything is uncertain. 4 months ago
- Every morning starts freshly and energetically when I think of YOU <3 4 months ago
- what makes you happy? 4 months ago
- I'm number 4 =) 5 months ago

An article by

