Count LOC in a VS solution

Option #1: Quick-and-dirty Powershell (count non-empty lines)

 C:\> (dir -include *.cs,*.xaml -recurse | select-string .).Count

Option #2: cloc (perl command-line tool)

Language                     files          blank        comment           code
XML                              6             21              0          30818
C#                              18            110            148            518
MSBuild scripts                  3              0             21            203
ASP.Net                          2              0              0             22
SUM:                            29            131            169          31561
Posted in Etc | Leave a comment

Get text from PDF file with iTextSharp

string ReadPdfFile(string filename)
  var pdfText = new StringBuilder();
  var reader = new PdfReader(filename);
  var pages = reader.NumberOfPages;
  for (int page = 1; page <= pages; page++)
    var tes = new SimpleTextExtractionStrategy();
    var pgText = PdfTextExtractor.GetTextFromPage(reader, page, tes);
  return pdfText.ToString();
Posted in .NET | Tagged , | Leave a comment

The General Problem


I find that when someone is taking time to do something right in the present, they’re a perfectionist with no ability to prioritize, whereas when someone took time to do something right in the past, they’re a master artisan of great foresight.

Posted in Etc | Leave a comment

A perfect storm of technology change

Source: Dion Hinchcliffe, Defrag Keynote on CoIT – November 10th, 2011

Related post: The “Big Five” IT trends of the next half decade: Mobile, social, cloud, consumerization, and big data

Posted in Etc | Leave a comment

Notes on Product Engineering

Notes from this presentation by Mike Lee (@bmf):

  • IDEA => (Product Engineering) => PROFIT
  • Seek not originality… but quality
  • The product is under the ideas (must find it)
  • Consider customers: Start at the end by making a commercial
  • Picking a platform: Platform is culture
  • Building a team: x platforms => x+1 teams
  • Test your product: Like enemy – Build what user expects
  • Shipping is necessity: Plan-Design-ShipOnTime, Shipping a draft = Amateur Mistake
  • When is ready? “Holy Crap!”
  • Hook: Magnetic covers in iPad2
Posted in Etc | Tagged | Leave a comment

Lucene.Net Resources

Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework.

Inspired by: “Apache Lucene and Lucene.Net – Full Text Search Servers” by Jonathan Allen.

Posted in .NET | Tagged | Leave a comment


Why BPEL is not the holy grail for BPM [P. Vigneras, Oct 21, 2008]

BPMN-BPEL in Perspective: [B. Silver, Oct 25, 2008]

Directly Executing BPMN [K. Swenson, Oct 29, 2008]

Posted in Etc, Workflow & BPM | Tagged , , | Leave a comment