MyNotePad

Count LOC in a VS solution

leave a comment »

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
-------------------------------------------------------------------------------

Written by Panos

12 December 2011 at 10:57

Posted in Etc

Get text from PDF file with iTextSharp

leave a comment »

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);
    pdfText.Append(pgText);
  }
  reader.Close();
  return pdfText.ToString();
}

Written by Panos

12 December 2011 at 10:35

Posted in .NET

Tagged with ,

The General Problem

leave a comment »

From: http://xkcd.com/974/

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.

Written by Panos

23 November 2011 at 10:22

Posted in Etc

A perfect storm of technology change

leave a comment »

Written by Panos

16 November 2011 at 02:04

Posted in Etc

Notes on Product Engineering

leave a comment »

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

Written by Panos

13 November 2011 at 16:36

Posted in Etc

Tagged with

Lucene.Net Resources

leave a comment »

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.

Written by Panos

7 November 2008 at 15:15

Posted in .NET

Tagged with

BPMN/BPEL posts

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]

Written by Panos

30 October 2008 at 11:30

Posted in Etc, Workflow & BPM

Tagged with , ,

Follow

Get every new post delivered to your Inbox.