Profilo di ambatiProgramming Myself.. Amb...FotoBlogElenchiAltro Strumenti Guida

Blog


PDC

Source: Mahesh

.NET Framework 4 Poster – Deep Zoom Version & PDF Version

.NET Framework 3.5 namespace poster – Download

Visual Studio 2010 and .NET Framework 4.0 CTP Download from here.

  • Enterprise Library 4.1 - October 2008
  • Enterprise Library 4.0 - May 2008
  • Enterprise Library 3.1 - May 2007
  • Enterprise Library 2.0 - January 2006
  • The first release of the Enterprise Library was in January 2005. That release has been deprecated.
  • Source: From Harish Ranganathan

    jQuery Demos -- Contains sample code that demonstrates how to use jQuery selectors, animations, and plug-ins.

    PDC on LIve :

    Here at PDC, Los Angeles, there is one thing for sure.  ASP.NET Sessions are overflowing invariably across all days.  Yes!  There are way too many exciting things that I can cover over a single post and in this short duration that I wanted to keep them off until I am back.   Quick announcements.

    ASP.NET Builds on various features such as Dynamic Data, MVC, Astora, AJAX & Futures are available at CodePlex http://codeplex.com/aspnet 

    ASP.NET 4.0 Roadmap :

    i. jQuery support built-in to Visual Studio

    ii. MVC Built-in

    iii.  Dynamic Data for Business Objects

    visit http://www.microsoftpdc.com/ for live sessions, recorded videos, downloads and latest updates.

     

     

    29 ottobre

    LINQ problem

    I have two tables with a parent child relationship between them
    But in the child table I have to allow nulls for the child table as I am using the same table for another scenario.
     
    Using LINQ it is not possible to make this situation possible,
     
    So I am going to the old way by removing LINQ from my application

    PDC announcements

    Small basic
     
     
    NET 3.5 SP 1 improvements
    • Graphical improvements
    • Start up performance of .NET code
    • WPF improvements, including graphics and performance
    • .NET end user experience in click once and installation
    • Will be installed as part of Windows 7

     

    • WPF
      • New WPF controls are shipping this week
        • Ribbon
        • A new DataGrid control
        • Calendar
        • DatePicker
      • Visual State Manager is also available for WPF
      • Showed Jump Lists
        • Adding contextualized tasks to your task bar
      • Multi Touch demos and notes
        • Demonstrated using multi touch to scroll through photos
        • Pixel shading effects to create ripples in images or any part of an app
        • Demonstrated sorting out photos, resizing them, etc similar to the iPod Touch

     

    • .NET 4
      • CLR 2 and CLR 4 can be loaded in the same address space
        • backwards support!!!
      • Improved managed and native code interop support
      • Managed Extensibility Framework

     

    • Visual Studio 2010
      • First public CTP was released at the PDC
      • Improved WPF design time experience in VS 2010
      • VS 2010 is built on WPF
      • Multi monitor support
      • Improved refactoring support
      • Code visualizations
      • Better test driven workflow
      • Improved plug in extensibility (very sweet stuff)
        • Scott Gu created a visualization in the IDE and showed how to embed bug tracking information from VSTS.
      • Improved REST support
      • jQuery integrated (also an add-in for VS 2008)
      • ASP.NET MVC enhancements
      • Velocity – distributed caching API (CTP is out this week at PDC)
      • web.config file versions for test, staging, deployment, etc.
      • Great ASP.NET list from Mike Ormond

     

    • Silverlight 2
      • Closing in on 100,000,000 installed machines
      • Samples
        • NBC Olympics site
          • 55 million unique visitors
          • Average person watched 27 minutes of video
        • K2 front end developed in SIlverlight
        • NetFlix turned on video support in Silverlight 2
      • Silverlight Toolkit (Free)
      • Fully interactive Silverlight 2 designer in Visual Studio 2010
        • WYSIWIG
        • Data Binding
        • Finally!!!
      • Silverlight will run inside or outside the browser!!!

     

    • Tesco WPF based grocery app demo (an interesting application of the new tools)
      • This is a demo app, so its more just an example of how Tesco used some of these features for their app.
      • Targets grocery shoppers
      • Sorts recipes, instructions, videos, caloric counts, add all items to your shopping cart
      • Find a birthday cake and add to the cart
      • Rotate, zoom and multi touch built in
      • Integrated web cam scanned the bar code of the Coke can, searched for it, and found some to add to the basket

    Source: Harish Ranganathan

    PDC 2 day coverage : Sam Gentile

    Keynote/Windows 7

    VS2010/.NET Framework 4/ASP.NET 4/Concurrency

    Silverlight

    PDC 1 Day Coverage

    Here is my wrapper topic/links from some people I trust on the Keynote and Day1:

    Keynote

    Azure Services Platform and .NET Services

    WCF REST, WCF and WF 4.0

      VS2010 and .NET Framework 4.0/C# 4.0

       Windows Live ID is publicly committing to support the OpenID digital identity framework. OpenID
       
       Microsoft announced that the next version of Microsoft Office will be available as browser-based tools in addition to being desktop software products, too. The online apps will include Word, Excel, PowerPoint, and OneNote and they will run in the browser thanks to the Silverlight plugin. Plans are to support Internet Explorer, Firefox, and Safari.
       

      image

      Key components of the Azure Services Platform include the following:

      • Windows Azure for service hosting and management, low-level scalable storage, computation and networking
      • Microsoft SQL Services for a wide range of database services and reporting
      • Microsoft .NET Services which are service-based implementations of familiar .NET Framework concepts such as workflow and access control
      • Live Services for a consistent way for users to store, share and synchronize documents, photos, files and information across their PCs, phones, PC applications and Web sites
      • Microsoft SharePoint Services and Microsoft Dynamics CRM Services for business content, collaboration and rapid solution development in the cloud

      patterns & practices App Arch Guide 2.0 Project".

       

    • Get the Visual Studio 2010 and .NET Framework 4.0 bits
    • Watch Anders' talk on "The Future of C#"
    • Read the "New features in C# 4.0" paper
    • Play around with the C# Future samples

      http://blogs.msdn.com/somasegar/archive/2008/10/27/announcements-from-pdc-2008.aspx

      New MSDN REST dev center - http://msdn.microsoft.com/en-gb/netframework/cc950529.aspx

      New REST toolkit from the product team on Codeplex - http://www.codeplex.com/aspnet/Wiki/View.aspx?title=WCF%20REST 

    • 27 ottobre

      Microsoft Devlabs

      http://msdn.microsoft.com/en-us/devlabs/default.aspx
       
      =======
      Currently I am working on a 3.5 project where I have to do lot of calculations and my methods should be wcf exposed.
       
      But I used two dimensional arrays which are not helpful in wcf.. I think they cant deserialize.
      I got help from Sendhil to identify this problem . Again  I have to revamp the calculation engine to jagged arrays. Why there is no support for multidimensinal arrays arr[,] in WCF?? Dont know ...
       
      I am having a method in service interface
      float[,] CalculateProgressPaymentsYearwise(float input_DirectProcurementCost, float []input_OtherEquipmentCosts)
      I implemented it also
      then in my client application when I am taking service reference ..it is giving error that multidimensional arrays are not supported
      you can use a jagged array
      24 ottobre

      WCF basics

      file - new project - wcf -> wcf service library
      It will create Iservice1.cs and service1.cs files
      There is a warning here in Iservice1.cs file
       // NOTE: If you change the interface name "IService1" here, you must also update the reference to
      "IService1" in App.config. (if u try to rename iservice1 file then u have to go app.config and u have
      to manually do the changes .THats y i added a new service file as per my naming conventions which
      automatically updates app.config file.
      Please follow.
      If u want ur own service file just delete this file and add another
      right click on solution ->add new item .. select "wcf service" file and rename (MyWebservice) according
      to ur needs.
      It will automatically adds two files : IMyWebService.cs and MyWebservice.cs files.

      In IMyWebService.cs file
      I wrote
      "
       [OperationContract]
              int AddTwoNumbers(int firstnumber, int secondnumber);
      "
      In MyWebService.cs file I added
       public int AddTwoNumbers(int first, int second)
              {
                  return first + second;
              }
      Thats it.
      Press F5 it wil open a window which shows ur added method "AddTwoNumbers"
      U can test ur webmethod by giving inputs and u can check the result. Fully flexible in 2008
      Then develop a client application
      ===================================
      webapplication:
      File -> Add new website -> selcte asp.net website 3.5 c#
      right click on project : Add new reference --> system.ServiceModel
      right click on project : add service reference.. click on discover and ok
      in default.aspx: add using system.servicemodel
      and page_load
          ServiceReference1.Service1Client cl = new ServiceReference1.Service1Client();
             Response.Write(cl.AddTwoNumbers(1, 2).ToString());
      Make this as startup project ..Press f5.thats it
      =======
      This procedure is same for windows,console (add code in program.cs file)

      Join The Bangalore Jaago Re! One Billion Votes City Team

      Volunteer To Join The Bangalore Jaago Re! One Billion Votes  City Team
      Jaago Re! One Billion Votes is a non-partisan nationwide movement launched by Janaagraha and Tata Tea to awaken and enable the citizens of India, especially the youth, to register for voting. The mission is to register One Billion Voters to vote in the next five years for a more robust democracy. The campaign focuses on empowering the youth of India to lead this change.
      Volunteering
      The campaign will reach out to 11 key cities. Beginning 1st November 2008, talks will be organized in more than 200 of India's largest colleges and companies, to spread the message of the campaign and organizing ON THE SPOT voter registration drives using innovative technology.
      Outreach will be managed largely by volunteers. The campaign will give opportunities to Institutions and Individuals (especially youth) to participate.
      Institutions who have committed their support include Infosys, Wipro, St. Xaviers Mumbai, St Josephs Bangalore etc.
      The Jaago Re! One Billion Votes campaign is looking for volunteers to join the Bangalore city team.
      City Team Member: Role for Volunteers
      You will need to spend one working day per week for the next 3 months,
      playing these roles:
                          1. Outreach campaigner (mandatory)
                          2. Sunday campaigner (optional)
                          3. Outreach facilitator (optional)
      An Outreach Campaigner needs to approach Colleges and Companies, to bring them on board as Host Institutes.
      A Sunday Campaigner will conduct creative outreach events in the city to get youth enrolled on Jaago Re One Billion Votes!
      An Outreach facilitator, will need to address audiences during outreach drives
      You need to attend meetings every Saturday at 3 pm.
      Meeting Venue: Janaagraha, 4th Floor, UNI Building, Thimmaiah Road, Vasanthnagar, Bangalore - 560052
      Contact: Vijay Pamarathi, Regional Outreach Coordinator, vijay@janaagraha.org 
      +91-9886720477

      Jaago re! Please register to vote

      Friends

      As part of my volunteering with Janaagraha I came to know about this program (TATA with Janaagraha)

      For the upcoming elections if u r not registered to vote .. please use this online registration


      I’ve been awakened and I want you to be awake too. I realised how
      important it is to vote and how simple it is now. Jaago re! One Billion Votes has made it possible to register to vote online and it only takes five minutes.
      Go to www.jaagore.com to learn more.
      If you’re already registered to vote, you can still join the Jaago re! One Billion Votes movement and be part of the awakening.
      Go to www.jaagore.com for more information.

      Please pass this information in your company and in your neighbourhood

      Thanks

      18 ottobre

      Excel

      In my current project I am migrating an excel application into .net 3.5 project.
      my client is using an excel sheet as their project.
      After seeing that excel application I learned so much about Excel. we can do so many things in excel.
       
      Formulas tab: Name Manager (For defining the constants) Trace precendents, trace dependents, remove arrows.
       
       
      Excel problem
      If u importing excel into a datatable if some columns are having formulas then they wont go to dataset.
      For getting them imported use IMEX=1;
      Source :http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/680d332d-0243-409d-8e12-e94a4ca435e1
      Soul: IMEX=1;
      string strConnectionToSheet = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pathToSpreadSheet + "; Extended Properties='Excel 8.0; IMEX=1; HDR=YES'";
      ---------
      Find no of columns in a table in sqlserver
      CREATE TABLE #temp (
                      table_name sysname ,
                      row_count INT,
                      reserved_size VARCHAR(50),
                      data_size VARCHAR(50),
                      index_size VARCHAR(50),
                      unused_size VARCHAR(50))
          SET NOCOUNT ON
      INSERT     #temp
          EXEC       sp_msforeachtable 'sp_spaceused ''?'''
      SELECT     a.table_name,
                  a.row_count,
                  COUNT(*) AS col_count,
                  a.data_size
          FROM       #temp a
                  INNER JOIN information_schema.columns b
                  ON a.table_name collate database_default
          = b.table_name collate database_default
          GROUP BY   a.table_name, a.row_count, a.data_size
          ORDER BY   CAST(REPLACE(a.data_size, ' KB', '') AS integer) DESC
      DROP TABLE #temp

      LINQ problem

      Just working on 3.5 framework project and using LINQ .

      sqlmetal.exe tool for generating file

      Exists in   C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin


      sqlmetal /server:servername /database:tco /user:sa /password:Swayam1 /namespace:TCO.DataAccessLayer /code:c:/DBHelper.cs /language:csharp


      LINQ problem:
      Specified cast is not valid

      when casting from a number the value  must be a number less than an infinity

      Solution:
      If any column has foreign key relationship we should not allow null in that column

       

      17 ottobre

      Book: The Monk Who Sold His Ferrari

      The Monk Who Sold His Ferrari   

      Browsing Options: 

      This inspiring tale provides a step-by-step approach to living with greater courage, balance, abundance, and joy. A wonderfully crafted fable, The Monk Who Sold His Ferrari tells the extraordinary story of Julian Mantle, a lawyer forced to confront the spiritual crisis of his out-of-balance life. On a life-changing odyssey to an ancient culture, he discovers powerful, wise, and practical lessons that teach us to:

      Develop Joyful Thoughts,

      Follow Our Life's Mission and Calling,

      Cultivate Self-Discipline and Act Courageously,

      Value Time as Our Most Important Commodity,

      Nourish Our Relationships, and

      Live Fully, One Day at a Time.
       
      https://www.robinsharma.com/

      Review: http://www.chillibreeze.com/bookreviews/ThemonkwhosoldhisFerrari.asp

      http://www.esnips.com/doc/16051b14-70e2-4666-9785-69b30bc68bbf/The-Monk-Who-Sold-His-Ferrari

      16 ottobre

      Dynamic Data Extensions

       1. Dynamic Data Web Site (to use LINQ to SQL)
      -------------------------------------------------
       

      File - new - website - Dynamic Data website template
      Location : file system . Language : c#
      It will have default.aspx

      Open server explorer in vs editor from View tab
      connect to a db in sqlserver
      Then vs solution explorer .. right click add App_code  folder
      Right click App_code folder and add new item and select "LINQ to SQL classes" and name it as northwind.dbml
      Drag required tables from server explorer on to northwind.dbml file.
      Go to web.config and
      check for "  <dynamicData dataContextType="" enableTemplates="false">   "
      change enableTemplates = true
      Thats it
      f5 shows u default.aspx with selected tables.
      2. Dynamic Data Entities Web Site (to use the ADO.NET Entity Framework).
      ===========================================================================
      Restful coding : Coding from the url ..
      I mean like the below:
      File --> New - website -- asp.net website
      location: file system  language : c#
      Choose an ADO.NET Data Service and click Add (say fielname is WebDataService1.svc ..it will generate webDataService1.cs file too)
      Choose an" LINQ to sqlclasses" and click Add (say filename is DataClasses1.dbml)
      view tab --> server explorer .. create a connection with db
      And drop required tables on DataClasses1 file
      Copy the classname of DataClasses1.dbml file ..
      And paste in webDataService1.cs  file  at the first line in between <  >
      and copy this line "
      config.SetResourceContainerAccessRule("*", ResourceContainerRights.AllRead);
      "
      in InitializeService method

      Bankruptcy Concept

      Source : My colleague Mriganka
       

      If you could read patiently and understand, its a great knowledge  !


      Once there was a little island country. The land of this country was the tiny island itself. The total money in circulation was 2 dollars as there were only two pieces of 1 dollar coins circulating around.

      1) There were 3 citizens living on this island country.  A owned the land. B and C each owned 1 dollar.

      2) B decided to purchase the land from A for 1 dollar. So, now A and C own 1 dollar each while B owned a piece of land that is worth 1 dollar.

      * The net asset of the country now = 3 dollars.

      3) Now C thought that since there is only one piece of land in the country, and land is non producible asset, its value must definitely go up. So, he borrowed 1 dollar from A, and together with his own 1 dollar, he bought the land from B for 2 dollars.

      *A has a loan to C of 1 dollar, so his net asset is 1 dollar.
      * B sold his land and got 2 dollars, so his net asset is 2 dollars.
      * C owned the piece of land worth 2 dollars but with his 1 dollar debt to A, his net residual asset is 1 dollar.
      * Thus, the net asset of the country = 4 dollars.

      4) A saw that the land he once owned has risen in value. He regretted having sold it. Luckily, he has a 1 dollar loan to C. He then borrowed 2 dollars from B and acquired the land back from C for 3 dollars. The payment is by 2 dollars cash (which he borrowed) and cancellation of the 1 dollar loan to C. As a result, A now owned a piece of land that is worth 3 dollars. But since he owed B 2 dollars, his net asset is 1 dollar.

      * B loaned 2 dollars to A. So his net asset is 2 dollars.
      * C now has the 2 coins. His net asset is also 2 dollars.
      * The net asset of the country = 5 dollars. A bubble is building up.

      (5) B saw that the value of land kept rising. He also wanted to own the land. So he bought the land from A for 4 dollars. The payment is by borrowing 2 dollars from C, and cancellation of his 2 dollars loan to A.

      * As a result, A has got his debt cleared and he got the 2 coins. His net asset is 2 dollars..
      * B owned a piece of land that is worth 4 dollars, but since he has a debt of 2 dollars with C, his net Asset is 2 dollars.
      * C loaned 2 dollars to B, so his net asset is 2 dollars.

      * The net asset of the country = 6 dollars; even though, the country has only one piece of land and 2 Dollars in circulation.

      (6) Everybody has made money and everybody felt happy and prosperous.

      (7) One day an evil wind blew, and an evil thought came to C's mind. "Hey, what if the land price stop going up, how could B repay my loan. There is only 2 dollars in circulation, and, I think after all the land that B owns is worth at most only 1 dollar, and no more."

      (8) A also thought the same way.

      (9) Nobody wanted to buy land anymore.

      * So, in the end, A owns the 2 dollar coins, his net asset is 2 dollars.
      * B owed C 2 dollars and the land he owned which he thought worth 4 dollars is now 1 dollar. So his net asset is only 1 dollar.
      * C has a loan of 2 dollars to B. But it is a bad debt. Although his net asset is still 2 dollars, his Heart is palpitating.
      * The net asset of the country = 3 dollars again.

      (10) So, who has stolen the 3 dollars from the country ? Of course, before the bubble burst B thought his land was worth 4 dollars. Actually, right before the collapse, the net asset of the country was 6 dollars on paper. B's net asset is still 2 dollars, his heart is palpitating.

      (11) B had no choice but to declare bankruptcy. C as to relinquish his 2 dollars bad debt to B, but in return he acquired the land which is worth 1 dollar now.

      * A owns the 2 coins, his net asset is 2 dollars.
      * B is bankrupt, his net asset is 0 dollar. ( he lost everything )
      * C got no choice but end up with a land worth only 1 dollar

      * The net asset of the country = 3 dollars.

      **************End of the story; BUT ***************************

      There is however a redistribution of wealth.
      A is the winner, B is the loser, C is lucky that he is spared.
      A few points worth noting -

      (1) When a bubble is building up, the debt of individuals to one another in a country is also building up.
      (2) This story of the island is a closed system whereby there is no other country and hence no foreign debt. The worth of the asset can only be calculated using the island's own currency. Hence, there is no net loss.
      (3) An over-damped system is assumed when the bubble burst, meaning the land's value did not go down to below 1 dollar.
      (4) When the bubble burst, the fellow with cash is the winner. The fellows having the land or extending loan to others are the losers. The asset could shrink or in worst case, they go bankrupt.
      (5) If there is another citizen D either holding a dollar or another piece of land but refrains from taking part in the game,  he will neither win nor lose. But he will see the value of his money or land go up and down like a see saw.
      (6) When the bubble was in the growing phase, everybody made money.
      (7) If you are smart and know that you are living in a growing bubble, it is worthwhile to borrow money (like A ) and take part in the game. But you must know when you should change everything back to cash.
      (8) As in the case of land, the above phenomenon applies to stocks as well.
      (9) The actual worth of land or stocks depend largely on psychology.

      11 ottobre

      TV online

      iDesiTV.com
       
      Veoh.com
      10 ottobre

      Dublin’ is the next version of Application Server

      Dublin’ is the next version of Application Server
       
       
      Project Automation:
       

      Concerned about your team’s performance? Looking for ways to enhance your team’s productivity and getting rid of all those mundane tasks? Years of consulting and building products have thought me that Automation is the key to improving team’s productivity and bringing joy back to software development.

      If your team is seriously looking at automating as much as possible on their projects, you must consider some items like:

      • Setting up an automated build for your project. You must explore tools like Ant, NAnt, Maven, GAnt, Rake, etc
      • Creating automated unit, acceptance and UI tests for your project. Have a look at xUnit frameworks, FitNesse, Selenium, Watir, Abbot, etc
      • Setting up a Continuous Integration (CI) process for your team. Configuring a CI server with Version Control System for your project
      • Setting up developer work-stations with all the necessary tools and framework to be able to independently build the project from developer desk in a predictable and repeatable way
      • Setting up an evolutionary database design and data migration process using tools like Migrations, Liquibase, etc
      • Enabling the automated build to switch between Development, CI, Staging and Live environment using simple properties
      • Setting up coding standards for the team and using tools like CheckStyle and other Static analysis tools to automatically validate code format and other aspects with each build
      • Adding code coverage or test coverage frameworks like Cobertura, Jester, etc to your build
      • Setting up an integrated project dashboard on CI server with various project metrics like BurnUp/BurnDown chart, test coverage trends, test counts, etc. This Dashboard is visible to everyone on the team and all the stakeholders
      • Setting up a build promotion process
      • Setting up a team wiki which is versioned along with the whole project