Primordial Code's Image
More about this blog
Latest Post
27 Jul 2010
Total Posts
92
Readers
488
Liked
0
Disliked
0
Views-Per-Post
05.30
vote up
0
vote down

How to update your TFS Workspace after CodePlex upgrade to TFS2010

Recently CodePlex updated their TFS to the 2010 version, during the update your reference TFS server may have changed name (like it happened for Dexter, our original TFS server was tfs05.codeplex.com and now it is tfs.codeplex.com). To switch to the new
Jul 28 2010 01:33 AM
vote up
0
vote down

Resoconto del 1° Dexter Raduno

Oggi ho avuto il piacere di pranzare con Ugo e Alessandro per fare quattro chiacchiere su Dexter. Tanto per stare leggeri Ugo ci ha deliziato portandoci in un ristorantino sul lungomare di San Benedetto a strafogarci di pesce e tra due chiacchiere su
Jul 27 2010 02:17 AM
vote up
0
vote down

NHibernate - Eager Fetch and Pagination in one query

Let’s consider these mappings: <class name="Item" table="Item"> <id name="Id" column="Id" type="int"> <generator class="native" /> </id> <property
Jul 21 2010 12:23 AM
vote up
0
vote down

Tomorrow’s DotNetMarche Workshop Live Streaming

As anticipated in my previous post, if you cannot be there to attend the workshop directly (and you should be ), thanks to the guys at Ce.S.M.I. we will be able to offer you a live streaming of the event (crossing fingers for everything to work as
Jul 16 2010 01:12 AM
vote up
0
vote down

NHibernate - Eager Fetch, Order By and a strange behavior with ICriteria

Working on Dexter I encountered a very strange NHibernate behavior (I’m using NHIbernate 2.1.2 GA and this is very close to be a bug in my opinion) while trying to apply the eager fetch mode to a child collection whose mapping contains an order-by
Jul 14 2010 12:28 AM
vote up
0
vote down

MSI: a simple Delete Files Custom Action

Reviewing the Install/Uninstall process I’ve created using the standard Visual Studio Setup Project template, I’ve noticed that some files were always left on the installation folder after a complete program uninstall sequence. The default behavior is to
Jul 13 2010 07:05 AM
vote up
0
vote down

Passing a Delegate to an Attribute: a simple workaround

Working on a very simple DataForm control for Winforms I had the need to pass a function delegate to an attribute that qualifies a property to generate a ComboBox on the UI. The function was mean to be used as a way to retrieve the set of values you use
Jul 10 2010 05:54 AM
vote up
0
vote down

Are you ready for the upcoming DotNetMarche workshop on July 16 ?

This announce will be particularly interesting for the people that live and work Italy: our .Net User Group DotNetMarche organizes another cross community Workshop. This time we team up with DotDotNet, Gaia srl and Ce.S.M.I. of the University of Ancona
Jul 09 2010 02:52 AM
vote up
0
vote down

Razor

Ho perso qulche ora a giocare con Razor il motore che sta dietro WebPages. Questi i primi risultati ;D Related ContentCreare un EditorTemplate per gli enum con MVC 2 (05/05/2010)Esperimenti con Balsamiq e Asp.Net MVC (04/06/2010)Work in progress #lucilla
Jul 08 2010 10:14 PM
vote up
0
vote down

Silverlight / WPF: is it possible to bind to an explicit interface indexer implementation?

The WPF binding system allows you to bind to Indexers and properties and it also have a nice feature that allows you to bind to the explicit implementation of interfaces’ members, allowing you to resolve possible ambiguities if the properties have
Jul 08 2010 01:39 AM
vote up
0
vote down

Exams 071-518 and 071-519 passed successfully

I’ll make this short post to test the new Windows Live Writer (which seems quite cool at a first look). Yesterday I got some good news, I passed both the certification exams I tried some time ago: 071-518 - Pro: Design & Develop Windows Apps Using MS
Jul 01 2010 11:34 PM
vote up
0
vote down

Winforms: improving rendering performances with BackgroundImage and BackgroundImageLayout

Even after years you always have something to learn...this time I had a windows forms application with a lot of graphics in it: big and heavy background images, graphic buttons with transparent background, mixed bitmaps, Jpegs and PNGs...the whole thing
Jun 30 2010 11:31 PM
vote up
0
vote down

Questione di virgole

Ho riscontrato un problema in un js nella manipolazione di un oggetto esperesso in notazione Json e ho utilizzato il debugger js integrato del browser per diagnosticarlo. Questo è il codice che crea il problema cercando di accedere ad un oggetto non
Jun 10 2010 12:19 PM
vote up
0
vote down

Microsoft Expression Encoder - using LiveJob, LiveDeviceSource and PreviewWindow

For the proof of concept about a recording and encoding application I’m building, I had the need to show the preview of the actual data stream I can grab from a video source before the actual encoding job started. In the previous example you could view
Jun 09 2010 01:03 AM
vote up
0
vote down

Microsoft Expression Encoder - quick-start

Recently I’ve been asked to build a proof of concept of an application involving the use of a webcam and a microphone to record some streams and elaborate them after. At first I’ve tried with the new Silverlight support for webcam and microphone...it’s
Jun 03 2010 10:56 PM
vote up
0
vote down

Dexter is growing: Dynamic Pages and better Windows Live Writer support

In the past month I was working on some cool new features to extend this blog engine: Dynamic Pages - to add some basic CMS-like capabilities to Dexter. Better Windows Live Writer experience - to manage more details in blog posts and in dynamic pages,
Jun 02 2010 10:23 PM
vote up
0
vote down

WPF: x:Name Referenced Objects

Yesterday a friend of mine showed me some WPF code: he defined a transformation in XAML and was trying to alter it at runtime changing part of its transformation matrix (he was doing that substituting the scale transform matrix as a whole); he kept
tags: wpf
Jun 02 2010 04:03 AM
vote up
0
vote down

Silverlight: adding an IsEditing property to the DataForm

I was playing around with the DataForm control offered by the Silverlight 4 Toolkit and I realized it’s missing an IsEditing property I could have used to bind to other interface elements (and disable them while I am editing something in the DataForm).
May 24 2010 11:40 AM
vote up
0
vote down

Breaking news: the First European NHibernate Day had been officially announced

Ladies and Gentlemen, DotNetMarche and UgiAlt.NET are proud to introduce to you this very interesting initiative: an entire day devoted to Object Relational Mapping, NHibernate and related technologies. It will take place next Fall in Italy on 9th
May 22 2010 05:02 AM
vote up
0
vote down

NHibernate Day

DotNetMarche e UgiAlt.Net hanno unito le forze per creare il primo evento dedicado ad NHibernate in Italia. Per i dettagli rimando al post di Simone ed al sito dedicato realizzato grazie all’infaticabile Claudio. Let the fun begin!Related ContentAperte
May 19 2010 12:00 AM
vote up
0
vote down

Creare un EditorTemplate per gli enum con MVC 2

Intro Nelle mie applicazioni faccio largo uso di enums (e chi non lo fa?), mi sono quindi creato una serie di helpers / providers per la gestione della UI bindata con gli enum. In WebForms utilizzo: IEnumDescriptionProvider: servizio che estrapola le
May 05 2010 10:00 PM
vote up
0
vote down

Visual Studio 2010 Community Launch Tour - Perugia

Giovedì scorso ho avuto l’onore di presentare MVC2 al Community Tour di lancio di Visual Studio 2010 in quel di Perugia: raccolgo in questo post qualche considerazione in merito ed i link al materiale. Prima di tutto ringrazio i partecipanti che restando
May 03 2010 03:44 AM
vote up
0
vote down

Silverlight, M-V-VM ... and IoC - part 4

Let’s move on to the next step and remove all the code on the view that is directly related to the commands the user can give through buttons. To do so we use a new feature of Silverlight 4: Commanding. Since the release of Silverlight 2 the runtime
Apr 28 2010 08:04 PM
vote up
0
vote down

Silverlight, M-V-VM ... and IoC - part 3

It’s time to go on with this series, at this point we know the basic principles of MVVM and we have a set of base classes and interfaces we can use. We need to put it in action and see how we can implement the View and the ViewModel and how we can tie
Apr 26 2010 04:35 PM
vote up
0
vote down

Usertypes per database legacy

Mi trovo a lavorare su un database legacy in cui non vengono usati i null sulle reference esterne. Questo significa che la chiave stringa null è pari a stringa vuota e gli interi (16 e 32 bit) sono pari a zero. Per mappare questa casistica su NHibernate
Apr 21 2010 11:28 PM
vote up
0
vote down

14° Workshop DotNetMarche – Introduzione ai framework per IoC

Pubblicate le slide ed il codice della sessione tenuta al 14° Workshop DotNetMarche Introduzione ai framework ioc View more presentations from andreabalducci. Il codice ed il materiale delle altre sessioni lo potete trovare sul nostro repository pubblico
Apr 21 2010 11:51 AM
vote up
0
vote down

Castle Windsor – Silverlight 4 binaries

Working on solutions based on IoC systems and for our recent DotNetMarche workshop, in which we shown how you can architect a solution based on these systems and some advantages you can have using AOP techniques, I wanted to update the actual Castle
Apr 19 2010 09:41 AM
vote up
0
vote down

Silverlight, M-V-VM … and IoC – part 2

In the previous post I’ve presented a very fast introduction of what MVVM is and I’ve defined the two basic interfaces for the view and the viewmodel; I’m not going to implement a ‘pure’ version of the pattern itself because I consider a pattern just a
Apr 14 2010 01:34 PM
vote up
0
vote down

Silverlight, M-V-VM ... and IoC - part 1

Speaking of my previous post about build and IoC-enabled Silverlight Navigation framework a couple of friends of mine asked me mode details about how I implemented the MVVM pattern for a line of business application. Model-View-ViewModel is a very simple
Apr 13 2010 10:02 AM
vote up
0
vote down

Strategie di configurazione in Lucilla.Framework

Fin dal primo progetto Asp.Net ho avuto la necessità di avere file di configurazione separati (tendenzialmente per macchina) per Windsor, NHibernate e Log4Net in modo da non dover fare il branch ogni volta e poter eventualmente usare anche le
Apr 12 2010 12:47 AM
vote up
0
vote down

Silverlight Navigation Framework: resolve the pages using an IoC container

Silverlight 3 introduced to us a good navigation framework: you could combine Frames and UriMapper objects to change portion of your page (or the entire page) on the fly allowing you to navigate to different section of your application. There are plenty
Apr 08 2010 10:48 AM
vote up
0
vote down

Esperimenti con Balsamiq e Asp.Net MVC

Sto giocando con un paio di ViewEngine creati ad hoc per MVC. Questo è l’esito di mezz’ora buona di implementazione (prototipo) di un BalsamiqViewEngine… http://screencast.com/t/ZjdjOTJm Related ContentWork in progress #lucilla
Apr 07 2010 12:26 PM
vote up
0
vote down

Ready for the 14th DotNetMarche Workshop? IoC, DI, AOP and related techniques = lot of fun for all

On April 16 in Italy at Castelfidardo (Marche) it will take place the next DotNetMarche workshop, based on the requests and the feedback we had on our previous works, we’ve decided to focus on showing some techniques and ‘best practice’ you can use while
Apr 07 2010 10:48 AM
vote up
0
vote down

Creazione di liste paginate con FlexiGrid, Lucilla.Framework ed NHibernate

Ho appena completato la prima “quick & dirty” versione delle griglie ajax in Lucilla.Framework, limitatamente all’estrazione dati. Supponiamo di avere il seguende domain model mappato con FluentNHibernate: public class Product { public virtual string
Apr 05 2010 12:07 AM
vote up
0
vote down

Work in progress #lucilla

Tra qualche giorno prima uscita in società se tutto va bene per metà giugno debutto ufficiale ;DRelated ContentCreazione di liste paginate con FlexiGrid, Lucilla.Framework ed NHibernate (04/04/2010)Esperimenti con Balsamiq e Asp.Net MVC
Apr 04 2010 05:45 AM
vote up
0
vote down

Welcome Back

Ho appena aggiornato il blog con l’ultima versione di Dexter ed ho cambiato leggermente il layout. Qualche altro piccola modifica ed il blog è pronto per iniziare a ricevere codice.
Apr 02 2010 02:36 PM
vote up
0
vote down

Test

test di prova
Apr 02 2010 02:34 PM
vote up
0
vote down

NHibernate: a custom (parametric) UserType to truncate strings

Developing Dexter I encountered again a usual usual error you have to deal with NHibernate and strings: we tried to persist en entity whose string field exceeded the limit imposed by the database table; Nhibernate rightfully complained with:
Mar 26 2010 01:01 PM
vote up
0
vote down

Silverlight / Castle Windsor – how to use a logging framework properly

In my last post I shown you how to build a simple logging framework for Silverlight applications and use it with an IoC container through ‘constructor injection’, well…in my opinion I consider that a bad programming practice. In short
Mar 24 2010 12:39 PM
vote up
0
vote down

Silverlight / Castle Windsor – implementing a simple logging framework

As your Silverlight projects grow complex you’ll soon start to feel the need to have a solid logging system. In my WPF and Windows Forms project I’m now used to have Castle Windsor + Log4Net as my logging system and I really miss it in my Silverlight
Mar 22 2010 12:20 PM