un tipo neuroso

technical blog

Evento: DotNetToscana – Creare App per Office 365 e SharePoint 2013 con ASP.NET MVC 5

La community DotNetToscana ha organizzato questo ottimo evento, in cui verrà illustrato il nuovo “App-Model” introdotto dalla nuova versione di Office 365 e da SharePoint 2013.

Si parlerà anche di com’è possibile sfruttare le conoscenze di ASP.NET MVC 5 e SQL Azure, per scrivere un’App che interagisca con i servizi e i contenuti offerti da SharePoint e che funzioni sul Cloud ed on-premises.

L’evento, della durata di un’ora dalle 17 alle 18 di Lunedì 28 Aprile 2014, sarà curato da Emanuele Bartolesi di DotNetToscana e da Giuseppe Marchi (SharePoint MVP).

Questi sono i link per la pagina dell’evento e per l’iscrizione, mentre qui trovate la pagina Facebook della community.

I posti sono limitati, se siete interessati iscrivetevi (gratuitamente) al più presto.


17/04/2014 Posted by | Communities, Development, Microsoft, Mobile | , , , , , , | Leave a comment

Evento: //learn/ Global Community Webcast


L’evento in streaming sulle novità e tutto ciò che c’è da sapere per sviluppare applicazioni per Windows Phone 8.1.

Il 24 Aprile 2014 durante tutto il pomeriggio alcuni MVP e Nokia Champion italiani offriranno le sessioni in lingua italiana.

Ecco l’agenda:

14:00-15:00: Introduction to Windows Phone 8.1 di Matteo Pagani
15:00-16:00: Getting started building Windows XAML apps di Nicolò Carandini
16:00-16:30: Page navigation & data binding di Carmine Punella
16:30-17:30: Lists di Corrado Cavalli
17:30-18:00: Adapting UI for different screens di Alessandro Scardova
18:00-18:30: Windows Runtime XAML App Lifecycle di Dan Ardelean
18:30-19:00: Background tasks di Marco Dal Pino
19:00-20:00: Tiles, badges and toasts and Action Center di Michele Locuratolo

Iscrivetevi al seguente link .

Chi partecipa lo faccia sapere sulla pagina Facebook.

A presto!

17/04/2014 Posted by | Communities, Development, Microsoft, Mobile | , , , , , | Leave a comment

Architecting Mobile Solutions for the Enterprise (Dino Esposito, Microsoft Press)

This is not the first book I read of Dino Esposito. And it will not be the last! Dino Esposito is a great author, and any book of him is always a guarantee.

In this book the author share with the reader his experience about architectural topics, explaining with great simplicity the basic and the advanced rules and guidelines we should count on to design and implement a mobile application.

After introductory chapters in which the author illustrates concepts about requirements and strategy for which can be necessary to develop a mobile application, the following chapters begins with the analysis of the context where the app is concerned to exist, to understand tips and techniques to determine the right architecture paradigm to adopt.

Then the book begin its journey to mobile apps implementation. Just to give some references, the reader will understand what are CSS Media Queries and how can be used for responsive design, will learn terms such as DDR and WURFL and understand in deep how can be used programmatically for device capabilities recognition, and will encounter some code examples with ASP.NET MVC, jQuery Mobile, HTML5 and CSS, and so on.

Another great chapter is about patterns for Mobile Application Development, used to explain a lot of patterns about interaction, presentation and behavior for the app to implement. This could be really useful to determine the right approach to design of the app.

Finally book complete the tour making a brief and concise dive into development for different major platforms such as iOs, Android and Windows Phone. Last but not least, an introduction on PhoneGap helps the reader to understand if this framework can be helpful for the development scope.

In conclusion, this is really one the best books I read about mobile development. Its coverage of topics about mobile development topics is almost complete.

I strongly encourage any mobile developer to read this book, because the final quality of a mobile app can be hardly influenced by most of the tips, concepts and guidelines explained in this book.

22/08/2012 Posted by | Book Review, Development, Mobile, Uncategorized | Leave a comment

Mobile Design Pattern Gallery by Theresa Neil

For whom it may concern mobile application development, this singular book can really help to understand how a developer can organize and represent informations inside the implementing app.

In fact, the scope of this book is really just this. To help mobile developer to reduce effort having ideas about templates, allocation and information architecture to create a successful app with a great level of usability.

To implement an app using tips and templates exposed inside this book, any reader should understand how to replicate and adapt his requirements to that idea. Indeed, this book is not limited to design part, but contains patterns definition and a lot of other tips and suggestion of how to create and model own app.

Main mobile platforms treated are, of course, iOs, Android and Windows Phone, but any concept can be easily rearranged to target any mobile platform.

In brief, this is a very good reference guide to have for any mobile developer involved in creating a powerful and “easy to use” app.

Book is available here.

17/04/2012 Posted by | Book Review, Development, Mobile, Uncategorized | 2 Comments

Beginning PhoneGap

If you are oriented to develop apps for mobile devices, and your intention is to write code once for different platforms, you should take a look at PhoneGap framework.

This book can you help you to understand what PhoneGap is and what can do to help you achieve your projects.

It is a reference book, to correctly understand APIs available in this framework and to show how you can simply create an app using web development paradigm and then deploy to different mobile platform such as iOs, Android, Windows Phone and so on.

But be careful, because this is not a magic wand. Platforms are different and even if developers and the communities are contributing to develop this framework, some differences persists between this mobile worlds, and so there are a lot of compromises you could accept to develop using PhoneGap.

It is anyway a great idea, and maybe in the near future, a more mature version will allow full capabilities on all devices.

This book was written when PhoneGap 1.0 was release. At this moment the last version is 1.4.1, so changes are in progrress and maybe something in this guide could be no more actual. But it covers all most significant APIs and explain with examples every single capability, so I can affirm that is a good deal to have this book to read it before, and to put it on your desk to use as a reference guide after.

If you are interested, the book is available here.

6/03/2012 Posted by | Book Review, Development, Mobile, Uncategorized | | Leave a comment

Microsoft® SharePoint® 2010: Customizing My Site

This book is a brief and coincise guide, focused on creating and customizing “My Site” host of SharePoint 2010.

Anyone can found it quietly interesting. For instance I found some chapters really useful to addressing me for my next choices with this great Microsoft product.

The approach is so simple and is based on concepts, commands and tips. But this could just be its strength, to allow the maximum profit of this book to the reader.
Even if not directly, has a good “social” connotation as an added value too.

I thinks this is a good deal, a cheap and good reference to have on own desktop, especially for junior profiles.

The book is available here.

4/02/2012 Posted by | Book Review, Development, Microsoft | , | 18 Comments

Installing self-created Exchange certificate on Windows Phone 7 Mango

When I bought my Window Phone, one year ago, there was the first version of the operating system, so I easily configured (with advanced settings) my company’s exchange mail account on my phone.

In the last month, two colleagues of mine have bought Windows Phone with Mango yet installed on it, and for some unknown reason, the same procedure I made to configure my phone doesn’t work at all, on both devices.

The problem is that device says that there is not a valid certificate, and seems impossible to understand why it doesn’t retrieve the certificate.

So firstly tried searching on the web for the solution, and at the end, after a lot of different tries, I got the right one.

Of course I cannot assure the solution that has worked for me may fit your issue, but it is the following, make a try.

First, navigate with IE (or another web browser) to your “owa” web page (i.e. https://owa.mydomain.com/) and log into your webmail.

So click on the “lock” icon (or similar) into the url field to view and manage the certificate.

So this is the most important action (in my case): export (or save) the certificate on your file system using .p7b extension (that is the PKCS#7 version).

Then send this certificate in attachhment to another email account you are able to receive on the phone (Gmail or Hotmail). Download and install the certificate on the phone.

Then return on your settings and try to sync the Exchange account you have. In my case worked on both devices.
Now my colleagues can receive company’s mail. But I’m not sure they are happy about this…  :-)

21/12/2011 Posted by | Uncategorized | , , , | Leave a comment

Developing Microsoft® SharePoint® Applications Using Windows Azure™ by Steve Fox

Developing Microsoft® SharePoint® Applications Using Windows Azure™ by Steve FoxThis book clearly explains the points of contact and possible integration between Microsoft® SharePoint® 2010 and Windows Azure™.

It begins with a series of introductory chapters, using products and technologies characteristics, to introduce reader to most interesting concepts for the purpose of the book.

Successive chapters are focused on techniques to allow data access and consuming, and other interesting methods to understand how to implement applications and web parts using both components.

The examples inside the book represent a good entry point on the route to this kind of integration, and are explained so well through code and screenshots that guides the developer on his steps to follow to accomplish the objectives.

If I should define a defect for this book, then it is its brevity. I think that a deep understanding of this kind of integration is not possibile with this number of pages. So this could be a starting point but will not be exhaustive to define himself an “expert”.

At the end, I think this is a good reference to have always on own desk, the target reader is in my humble opinion should be a developer focused on SharePoint 2010 (better if senior developer but not mandatory) and must have known basic concepts about Azure and its platform. Also a basic skill on WCF could be useful for correct understanding of some paragraphs and examples.

You can buy the book here.

20/10/2011 Posted by | Book Review | , , , , , | Leave a comment

Using an existing connection string with Entity Framework

Maybe most of you all using Entity Framework have had my same problem, working on a project with an existing (and undeletable) connection string and a new part of the solution, based on Entity Framework, using same server and instance but requiring a second connection string for the model.

I tried to solve the problem creating and using an instance of the model able to be initialized with the existing connection string.

In this example, we will use a model named MyModel and, in the web.config file, there is a section like this:

 <add name="MyConnectionString" 
 connectionString="Server=mysrv\myinst;Database=mycatalog;Integrated Security=True" /> 
 <add name="MyModel" 
 provider connection string= 
 &quot;Data Source=mysrv\myinst;Initial Catalog=mycatalog; 
 Integrated Security=True;MultipleActiveResultSets=True&quot;" 
 providerName="System.Data.EntityClient" /> 

As you can see, the strings are similar but not exactly the same, even if they use same physical server and database, because the model requires additional information about data mapping (csdl, ssdl, msl).

To accomplish the requirement, we need to “extend” the model class, creating the same class as “partial”, giving in this mode additional members to the model itself.
The class will have the same name of the model, so it will be named MyModel.

public partial class MyModel
 // ...

In this partial of the class we will put a singleton instance of the model itself, implemented as a static property:

// private static instance to create only once
private static MyModel context = null; 
// public static instance of the model
public static MyModel Context 
        if (context == null) 
         context = CreateModelContext("MyConnectionString""MyModel"); 
 return context; 

The singleton instance returns the static private instance, having care to initialize it when null (so just in the first occurrence of the usage).

Initialization happens through a method that receives in input the connection string name and the model class name, and returns the instance of the model created with the existing connection string:

/// <summary> 
/// Returns an instance of the model created with an existing connection string from config file 
/// </summary> 
/// <param name="ConnStringName">Name of the connection string</param> 
/// <param name="ModelName">Name of the class that represents the model</param> 
/// <returns>Returns an instance of the model</returns> 
private static MyModel CreateModelContext(string ConnStringName, string ModelName) 
    // read connection string from config file   
    ConnectionStringSettings sqlconn = ConfigurationManager.ConnectionStrings[ConnStringName]; 
    // use an instance of "EntityConnectionStringBuilder" that will help us to create connection 
 // for the model, using values from existing connection string 
    EntityConnectionStringBuilder ef = new EntityConnectionStringBuilder(); 
    ef.Provider = "System.Data.SqlClient"; 
    ef.ProviderConnectionString = sqlconn.ConnectionString; 
    ef.Metadata = string.Format(@"res://*/{0}.csdl|res://*/{0}.ssdl|res://*/{0}.msl", ModelName); 
    // then returns the instance of the model 
    return new MyModel(ef.ToString()); 

N.B. Italian version of this post can be found here.

1/08/2011 Posted by | Development, Microsoft | Leave a comment

Fake Google Plus Mail

A colleague of mine received this night a message from me through Google+.

It is of course a fake mail, and I want to remember to anyone to avoid using strange links when receiveing this kind of message.

At this step of its life, Google+ is still in beta.

6/07/2011 Posted by | Communities | , | Leave a comment


Get every new post delivered to your Inbox.