Archive for July, 2010

First baby steps with Android OS

July 31st, 2010 No comments

I do not have a phone that runs Android but i am curious about this OS created by Google. That is something possible with an emulator.
This link has a nice and quick tutorial to get started with the emulator for PC.

Press Ctrl-F11 to switch between portrait mode and landscape mode.

Also, this other tutorial explains how to install the Android Market in the emulator, so you
can install new apps or games and test them.

Read more…

Categories: Android Tags:

Anti IF programming campaign

July 11th, 2010 No comments

The site aims to persuade developers to avoid using too many IFs in their code and to use “Object Oriented principles” instead.

It seems like a nice effort, too bad there is not much to see in the website (only 1 article).

Categories: General Tags:

Control and data flows in SSIS

July 10th, 2010 No comments

I created this package while working with SSIS for the first time.
The objective of this package is to extract data from 3 flat files in .txt format and perform some controls before inserting the data into 3 tables,
one table (destination) for each file (source).
These files are Territoires.txt, Personnes.txt and Ventes.txt. The data is extracted in that order.
The tables are SimuTerritoires, SimuPersonnes and SimuVentes.
These controls aim to :
– check if the SalesQuota is null
– check if the TotalDue is empty. If so, assign the value 0
– check the  Orderdate value. If it is empty, assign the value 01/01/2001
– check the referential integrity. In the Ventes.txt file, if the Territory ID is not found in the table SimuTerritoires, then reject the row.

Inside my script component, I have a very simple method which processes every row.
The Microsoft Visual C# 2008 code for that method is :

 public override void Input0_ProcessInputRow(Input0Buffer Row)
        if (Row.OrderDateConverti_IsNull == true)
            Row.OrderDateConverti =
            DateTime.ParseExact("01/01/2001", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture);

The data of the files comes originally from the AdventureWorks sample database (Territories, Persons and Sales tables). You can download the package file, Simulation2.dtx, here.

Here are a few screenshots :

Read more…

My book on EJB 3 is now on sale

July 3rd, 2010 No comments

I received an email from the editor informing me that the book is now printed and will be available in bookstores next week (from July 5th, 2010).

It is already available for sale on Amazon and ENI.

An online version is also available.

Here is the cover of the book :