Extract detail from barcode on bollettini prefilled (Italy)

      namespace PSC{ public class Bollettini { public bool getCode(string strCode) { bool rtn = true; if (strCode.Length != 50) { return false; } int first = Convert.ToInt16(strCode.Substring(0, 2)); Bollettino = strCode.Substring(2, first); int second = Convert.ToInt16(strCode.Substring(first + 2, 2)); Contocorrente = strCode.Substring(first + 4, second); int third = Convert.ToInt16(strCode.Substring(first + second + 4, 2));…

    Read More

      ASP.NET MVC 4 and Entity Framework Database Migrations

      ASP.NET MVC 4 was released in beta by the Microsoft ASP.NET MVC Developer Team and it comes with a number of really cool features: Bundling and Minification Support of CSS and JavaScript, Database Migrations using Entity Framework 4.3, Web APIs, Mobile Web with support for jQuery Mobile, Real Time Communication via SignalR, and Asynchronous Support….

      Read More

        Blogger C# API

        using System;using System.Text;using Google.GData.Client;using System.Net;using System.Xml;using System.Text.RegularExpressions;namespace BloggerDevSample{ class ConsoleSample { /** Lists the user’s blogs. */ static void ListUserBlogs(Service service) { Console.WriteLine(“\nRetrieving a list of blogs”); FeedQuery query = new FeedQuery(); // Retrieving a list of blogs query.Uri = new Uri(“http://www.blogger.com/feeds/default/blogs”); AtomFeed feed = null; feed = service.Query(query); foreach (AtomEntry entry in feed.Entries) {…

        Read More

          How to add a new Blogger post with labels from C#

          First download and install Google API from here:http://code.google.com/p/google-gdata/downloads/list Add a reference to “Google Data API Core Library”,and use the following function: public static bool AddPost(string title, string bodyHTML, string[] labels) {     Service service = new Service(“blogger”, “<program name>”);     service.Credentials = new GDataCredentials(“<username>”, “<password>”);     AtomEntry newPost = new AtomEntry();     newPost.Title.Text = title;…

          Read More

            Creating Custom Live Tiles for Windows Phone

            Using Live Tiles in Windows Phone applications give new fresh way of communication with users. We can provide various information via Live Tiles to the user using text or images. This post will explain how to create custom live tiles with custom formatted text on the secondary tile using Flip template which is default Tile…

            Read More