Apr 28, 2014

Humanizer



Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities.
One can install Humanizer as a nuget package: 
Install-Package Humanizer

Features
  • Humanize: Humanize string extensions allow you turn an otherwise computerized string into a more readable human-friendly one.
  • Dehumanize: Much like you can humanize a computer friendly into human friendly string you can dehumanize a human friendly string into a computer friendly one
  • Transform: There is a Transform method that supersedes LetterCasing, ApplyCase and Humanize overloads that accept LetterCasing.
  • Truncate: You can truncate a string using the Truncate method
  • Humanize DateTime: You can Humanize an instance of DateTime and get back a string telling how far back or forward in time.
  • Inflector methods: There are also a few inflector methods:
    • Pluralize: Pluralize pluralizes the provided input while taking irregular and uncountable words into consideration.
    • Singularize: Singularize singularizes the provided input while taking irregular and uncountable words into consideration.
    • ToQuantity: Many times you want to call Singularize and Pluralize to prefix a word with a number; e.g. "2 requests", "3 men".
    • Ordinalize: Ordinalize turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
  • Number to words: Humanizer can change numbers to words using the ToWords extension



Few examples of above features:
  • "PascalCaseInputStringIsTurnedIntoSentence".Humanize() => "Pascal case input string is turned into sentence"
  • "CanReturnTitleCase".Humanize(LetterCasing.Title) => "Can Return Title Case"
  • "Pascal case input string is turned into sentence".Dehumanize() => "PascalCaseInputStringIsTurnedIntoSentence"
  • "Sentence casing".Transform(To.SentenceCase) => "Sentence casing"
  • "Long text to truncate".Truncate(10) => "Long text…"
  • "Long text to truncate".Truncate(2, Truncator.FixedNumberOfWords, TruncateFrom.Left) => "…to truncate"
  • DateTime.UtcNow.AddHours(30).Humanize() => "tomorrow"
  • DateTime.UtcNow.AddHours(2).Humanize() => "2 hours from now"
  • "Man".Pluralize() => "Men"
  • "Men".Singularize() => "Man"
  • "case".ToQuantity(0) => "0 cases"
  • 1.Ordinalize() => "1st"
  • 122.ToWords() => "one hundred and twenty-two"


You can download from here also.

Apr 8, 2014

WebMaker


WebMaker is a Mozilla project dedicated to helping you create something amazing on the web. Tools, events and teaching guides allow webmakers to not only create the content that makes the web great, but — perhaps more importantly — understand how the web works. With this knowledge, everyone can make a web without limits. That's the philosophy behind webmaker.org.

Few related links:

Apr 7, 2014

.Net Foundation


Microsoft announced the formation of the .NET Foundation, an independent organization created to foster open development and collaboration around the growing collection of open source technologies for .NET.  The .NET Foundation will serve as a forum for commercial and community developers alike with a set of practices and processes that strengthen the future .NET ecosystem.

The .NET Foundation will start with 24 .NET open source projects under its stewardship, including the .NET Compiler Platform (“Roslyn”) and the ASP.NET family of open source projects, as well as the MimeKit and Mailkit libraries from Xamarin.

.NET Foundation goals:

  • Open the development process for .NET: The .NET Foundation brings under a common umbrella existing and new relevant open source projects for the .NET platform, such as ASP.NET, Entity Framework and the recently released .NET Compiler Platform (“Roslyn”). The .NET Foundation will help establish this as the norm moving forward, so more and more .NET components and libraries can benefit from an open process that is transparent and welcomes participation.
  • Encourage customers, partners and the broader community to participate: The .NET Foundation will foster the involvement and direct code contributions from the community, both through its board members as well as directly from individual developers, through an open and transparent governance model that strengthens the future of .NET.
  • Promote innovation by a vibrant partner ecosystem and open source community: The .NET Foundation will encourage commercial partners and open source developers to build solutions that leverage the platform openness to provide additional innovation to .NET developers. This includes extending .NET to other platforms, extending Visual Studio to create new experiences, providing additional tools and extending the framework and libraries with new capabilities.


Apr 3, 2014

Dynamic Website Activation in IIS 8.5

Dynamic Website Activation in IIS 8.5 


Recently I heard about very interesting new feature in IIS 8.5 i.e., Dynamic Website Activation. IIS will activate all the websites which are configured in it. This means automatic activation of all the configured sites is ready to respond whenever the first request arrives. This will help in proper memory management by IIS.

Even we can set threshold level i.e, number of sites to be started at system boot-up using proper configuration. 

Source: http://www.iis.net/learn/get-started/whats-new-in-iis-85/dynamic-site-activation-in-iis85