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

BPMN usage and tips

leave a comment »

Are Floating Intermediate Events Valid? The issue is an intermediate event (e.g., message or timer) “floating” in a process or expanded subprocess alongside the regular flow, the one bounded by start and end events.  The floating event has a sequence flow out, leading eventually to end event, but no sequence flow in.

When Are Error End Events Legal? Is it valid to end a top-level process in BPMN with an error end event?

Written by Panos

30 October 2008 at 11:24

Posted in BPMN

Tagged with

Workflow (WF) Screencasts

leave a comment »

  1. Your first sequential workflow
  2. Your first state machine workflow
  3. Running workflows in your .NET applications: Matt covers the basic steps to host workflows in your applications.  He covers the basic hosting steps in a console application, then jump in and run a workflow in an ASP.NET application. 
  4. Using persistence services in WF: Matt presents the basics of add persistence services into the workflow runtime using code or configuration.  Additionally, to show off the power of this feature in Windows WF, he uses two different host processes sharing a persistence store: the first host starts a workflow and then it persists, while the second host picks up the workflow after its configured delay and resumes the processing.
  5. Using the WCF Receive Activity in a workflow: Learn how to use the Receive activity in your workflows to implement WCF services as workflows. In addition, see how to use the WorkflowServiceHost class to host your workflow as a service.
  6. Using the WCF Send activity in Windows Workflow Foundation: Matt Milner presents  the basics of using the Send activity to consume a service from a workflow using WCF. 
  7. Creating Custom Activities:Matt Milner presents  the basics of creating custom leaf activities including how to use Dependency Properties to make your properties bindable.

Written by Panos

28 October 2008 at 02:35

Posted in Workflow Foundation

Tagged with ,

Link – Synchronous call of a workflow from an activity

leave a comment »

Jon Flanders provides an example where an activity creates and calls syncronously another workflow by using a custom service.

Written by Panos

6 September 2006 at 10:15

Posted in Workflow Foundation

Tagged with

Follow

Get every new post delivered to your Inbox.