The official Fatica Labs Blog! RSS 2.0
# Friday, January 30, 2009

Piccolo problema affrontato al volo oggi: Un client WCF non raggiunge un server quando tra i due c'è un proxy che richiede autenticazione. Le credenziali dell'utente però sono sufficienti ad autenticarsi al proxy, e l'utente ha effettuato già il login. La soluzione è ( xEsempio ) dire a .NET di usare le credenziali attive, questo si fa modificanto/aggiungendo la seguenter sezione nel machine.config:

 <system.net>

<defaultProxy enabled="true" useDefaultCredentials="true">

</defaultProxy>

</system.net>

 

Friday, January 30, 2009 2:40:00 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] - Trackback


# Thursday, January 22, 2009

L'applicazione non è un granchè, almeno non è come dovrebbe essere. Il motivo è che è stata scritta imparando la tecnologia "al momento", e quindi la qualità lascia un po' a desiderare.

Servono gli ultimi chart di microsoft per poter compilare l'esempio.

 

QuasiChart.zip (2.26 mb)

Thursday, January 22, 2009 3:18:00 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] - Trackback


# Wednesday, December 31, 2008

Ho da poco pubblicato questo video sul forum di Channel9. Vale davvero scaricare il Microsoft OSLO SDK vedere quanto è facile scrivere una semplice grammatica ed usarla immediatamente.

Il tool intellipad ( compreso nell SDK di cui sopra ) permette di avere un feedback immediato di come il linguaggio che si sta implementando sia interpretato, permettendo uno sviluppo interattivo della grammatrica stessa. 

Wednesday, December 31, 2008 4:16:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] - Trackback


# Friday, May 16, 2008

The ListView VirtualMode allow very efficient data display of very large resultset. We can mix this ability with Linq Skip(n) and Take(m) to bind a IQueryable<T> to a virtual list view.  To efficently avoid to query the underlaying database, we have to cache in some way the results with some paging strategy.

Below the solution I used:

public class LinqPager<T>

{

Dictionary<int, List<T>> pages = new Dictionary<int,List<T>>();

IQueryable<T> queryable;

int pageSize;public LinqPager(IQueryable<T> queryable,int pageSize)

{

this.pageSize = pageSize;

this.queryable = queryable;

}

public void InvalidatePages()

{

pages.Clear();

}

public T this[int index]

{

get {int page, offset;

page = index / pageSize;

offset = index % pageSize;

if (!pages.ContainsKey(page))

{

pages[page] =
new List<T>(pageSize);int start = pageSize * page;

pages[page].AddRange(queryable.Skip<T>(start).Take<T>(pageSize));

}

return pages[page][offset];

}

}

}

The class above has a constructor taking an IQueryable<T> and a page size. It will query the DB with chunks pageSize long, and provide an indexer to randomly access the result. This accessor can be used to fill the item on the RetrieveVirtualItem event.
Friday, May 16, 2008 1:43:00 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] - Trackback


# Tuesday, May 13, 2008

 

We can found more information here. 
The new namespace to investigate inside the library is Microsoft.Practices.CompositeUI.WPF .
Tuesday, May 13, 2008 1:15:00 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] - Trackback


An interesting post here. Unfortunately there aren't a wide scope solution that could target easily both WPF and Winform.

Some ineteresting links about this topic:

Prism : targets WPF. Some features are:

  • "Enabled TFS Integration for releases
  • IMetadataInfo removed from the Prism framework. The application developer is now responsible for providing a model in order for the headers to bind to. We provide guidance on how to accomplish this in the RI though. Reason: flexibility.
  • MultiDispatchCommand renamed to CompositeCommand
  • DelegateCommand is now generic for compile time check of the parameter type (not at the XAML level though)
  • Bootstrapper refactored for unit testing. Added module initialize.
  • Random market feeds updates the UI continuously.
  • Ability to add named views to regions that you can easily retrieve later.
  • Added logger interface and default enterprise libary logger implementation
  • Several more refactorings and consistency fixes (lots!).
  • New UI Composition QuickStart. Demonstrates shell, global, local regions, and views. Note: This Quickstart uses a branch of the Prism framework source. We will be merging into the main."

Caliburn : targets WPF. Some features are:

  • Improved asynchronous programming experience for actions.
  • Asynchronous module loading
  • Eager and lazy loaded modules with lazy loaded commands/presenters.
  • New isolation options for modules: None or Container-based.
  • Scoped UI composition and data storage.
  • Two different mechanisms for event aggregation; take your pick.  Choose a string-based mechanism similar to CAB or a strongly-typed message-based mechanism.
  • Support for triggering actions with routed events.
  • Support for action message forwarding.
  • IActionMessageHandler for advanced action message scenarios.
  • Support for Windsor/StructureMap/Spring.NET and now Unity containers.
  • Various bug fixes, including several that caused (the feeble) VS designer to break 

Smart Client Software Factory – April 2008 : The CAB evolution on Visual Studio 2008.

behind the scenes some projects as Acropolis disappear, and the WPF Composite Client seems not so active even if here we read that something shoul ship at the end of2008.

 

Tuesday, May 13, 2008 10:31:00 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] - Trackback


My Stack Overflow
Contacts

Send mail to the author(s) E-mail

Tags
profile for Felice Pollano at Stack Overflow, Q&A for professional and enthusiast programmers
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Felice Pollano
Sign In
Statistics
Total Posts: 143
This Year: 3
This Month: 0
This Week: 0
Comments: 105
This blog visits
All Content © 2012, Felice Pollano
DasBlog theme 'Business' created by Christoph De Baene (delarou) and modified by Felice Pollano