pauldhani

FacebookTwitter

Paul

http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/

Low Level Bit Hacks You Absolutely Must Know

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:

Advanced Unit Testing, Part I - Overview

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. http://www.codeproject.com/Articles/5019/Advanced-Unit-Testing-Part-I-Overview#An%20Example21
http://www.csharp-examples.net/examples/ 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

C# Examples

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' ) : http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm

DateTime.ToString() Patterns

Obfuscated code

http://en.wikipedia.org/wiki/Obfuscation_(software) 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.
http://www.dickbaldwin.com/tocCsharp.htm

C#, Java, and JavaScript Programming, by Richard G Baldwin

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.

Visual Representation of SQL Joins

http://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins

Tutorial 2: Creating a Business Logic Layer

http://msdn.microsoft.com/en-us/library/aa581779.aspx 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
http://www.codeproject.com/Articles/9078/Fraction-class-in-C 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.

Fraction class in C#

Pearltrees videos

Help