I decided to write an article about a thing that is second nature to embedded systems programmers - low level bit hacks . Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing some operation (such as counting the 1 bits in an integer) by looping over individual bits, these programming nuggets do the same with one or two carefully chosen bitwise operations. To get things going I'll assume that you know what the two's complement binary representation of an integer is and also that you know all the the bitwise operations. I'll use the following notation for bitwise operations in the article:
Oh dear God, anybody who votes [for unit-testing] has major problems. I hate the @#$% things. And the "Write tests first, code later" paradigm eludes me.
Menu: C# DataView RowFilter Syntax – DataView.RowFilter expression in examples String Formatting C# String Format for Double – format float numbers C# String Format for Int – format (align) integer numbers C# String Format for DateTime – format date and time C# Align String with Spaces – how to align text to the right or left C# Indent String with Spaces – how to indent text with repeated spaces C# IFormatProvider for Numbers – parse float numbers with IFormatProvider C# Custom IFormatProvider – string formatting with custom IFormatProvider Files and Folders
All the patterns: The patterns for DateTime.ToString ( 'd' ) : The patterns for DateTime.ToString ( 'D' ) : The patterns for DateTime.ToString ( 'f' ) : The patterns for DateTime.ToString ( 'F' ) : The patterns for DateTime.ToString ( 'g' ) :
In software development , obfuscation is the deliberate act of creating obfuscated code , i.e. source or machine code that is difficult for humans to understand. Programmers may deliberately obfuscate code to conceal its purpose ( security through obscurity ) or its logic, in order to prevent tampering, deter reverse engineering , or as a puzzle or recreational challenge for someone reading the source code.
If you find the links to any of my tutorials broken, you might try either: Going to Google or Bing and searching the web for pages having the same title, or Going to More articles by Richard G. Baldwin at Developer.com and searching that page for the tutorial by title. One of those two options is almost certain to lead you to a copy of the tutorial. The New Face of Computer Science Education - The Scratch Generation
Introduction This is just a simple article visually explaining SQL JOIN s. Background I'm a pretty visual person.
Scott Mitchell June 2006 Download the ASPNET_Data_Tutorial_2_CS.exe sample code. Contents of Tutorial 2 (Visual C#) Introduction Step 1: Creating the BLL Classes Step 2: Accessing the Typed DataSets Through the BLL Classes Step 3: Adding Field-Level Validation to the DataRow Classes Step 4: Adding Custom Business Rules to the BLL's Classes Summary Introduction
Introduction This article demonstrates how to remove the problem of limited precision when numbers such as 1/10, 1/7, 1/3, etc. are represented in a floating point variable type in C#. Yes, you guessed it right, this problem can be solved by storing such numbers in a fraction format. As a fraction object stores its numerator and denominator as integer variables, there is no loss of accuracy. For this purpose, I have written a simple C# class representing fractions.