Archive for March, 2008

Touch Commander 2.0

March 30, 2008

Touch Commander 2.0 Pentru cunoscatorii produselor HTC nu mai este o noutate ingenioasa aplicatie Touch Cube, aplicatie care da posibilitatea sa iti folosesti touch screenul in adevaratul sens adica sa iti controlezi smartphonul direct de pe ecran fara stilus-uri si alte butuoane ajutatoare. OK dar ceilalti posesori de smartphonuri, PDA-uri care nu au fost atat [...]

Posted in Software Comments Off

C for Atmega (GCC) Data Types

March 30, 2008

Tipuri de date recunoscute de compilatorul GCC pentru microcontrolele de la Atmel Toate Exemplele sunt testate in Avr-Studio & GCC plugin Tipuri Intregi de date 8 bit types typedef signed char        int8_t typedef unsigned char    uint8_t 16 bit types typedef int                       int16_t typedef unsigned            int uint 32 bit types typedef long                    int32_t typedef unsigned long    [...]

Tags: , , , ,
Posted in Atmega128, uControlers Comments Off

Atmega 128 – UART Comunication

March 30, 2008

Exemplul este valabil pentru Atmega128 + Quartz 8MHz Atmega 128 – UART Comunication   UART0 Initializare                BaudRate 4800 se seteaza registrul UBRR1H = 0 si UBRR1L = 103                BaudRate 9600 se seteaza registrul UBRR1H = 0; UBRR1L = 51;                BaudRate 115200  – UBRR1H = 0; UBRR1L = 3; Activare Linie RX, TX si intreruperea aferenta [...]

Tags: , , , , , , , ,
Posted in Atmega128, uControlers Comments Off

Formatting C# strings

March 28, 2008

  string s = String.Format("{{ hello to all }}"); Console.WriteLine(s);    //prints ‘{ hello to all }’   int i = 42; string s = String.Format("{0}", i);   //prints ’42′   int i = 42; string s = String.Format("{{{0}}}", i);   //prints ‘{42}’       int i = 42; string s = String.Format("{0:N}", i); [...]

Posted in .NET, Visual C# Comments Off

LINQ to DataSet (C#)

March 26, 2008

LINQ to DataSet Perform set operations on sequences of DataRow objects. Retrieve and set DataColumn values Obtain a LINQ standard IEnumerable sequence from a DataTable so Standard Query Operatorsmay be called. To use LINQ to Dataset include next namespaces using System.Data; using System.Linq; Step by Step Exemple: Starting with a simple class: class Student { [...]

Posted in Visual C# Comments Off

.NET – LINQ in C#

March 26, 2008

LINQ (Language integrated Query) string[] numbers = { "0042", "010", "9", "27" }; int[] nums = numbers.Select(s => Int32.Parse(s)).ToArray(); foreach (var num in nums) Console.WriteLine(num); What where LINQ is useful? LINQ to Objects – LINQ to XML – LINQ to SQL – LINQ to DataSet Perform set operations on sequences of DataRow objects. Retrieve and [...]

Tags: , , , ,
Posted in Visual C# Comments Off

LINQ to SQL (C#)

March 25, 2008

Startup for LINQ to SQL with C# This walkthrough requires the following: This walkthrough uses a dedicated folder (“c:\linqtest6″) to hold files. Create this folder before you begin the walkthrough. The Northwind sample database. If you do not have this database on your development computer, you can download it from the Microsoft download site. For [...]

Posted in Visual C# Comments Off