Browsing articles in "Programming"
Jan
14
2012

Coding coding and coding…

coding art

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.

Jan
10
2012

Runtime error: division by zero

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.

Jul
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. [...]

May
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 [...]

May
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 [...]

May
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 [...]


Domain Registrations starting at $9.98*

Categories

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

EverBot twitter