Monthly Archives: November 2012

Hootsuite Hootlet causing problems with WordPress code snippets

Last night I reviewed one of my blog posts, and noticed that the source code samples were all scrambled in some places. I eventually figured out that it was the #region and #endregion tags that got messed up. I was … Continue reading

Posted in General Technical | Tagged , , , , , , | 2 Comments

Organising custom Commands in a WPF TreeView using the Model-View-ViewModel design pattern

In my current project’s interface, the main elements of the GUI are a TabControl holding any number of workspaces, and a side panel with commands to launch the desired workspaces. It is closely based on a MVVM demo I saw, … Continue reading

Posted in Software Development | Tagged , , , , , , , , , , , | Leave a comment

Quick and easy way to insert a PDF graph or diagram into a Microsoft Word Document without losing too much quality

I had to solve this one for my boss today, and thought I would make a quick post with the solution I found. The Image Quality Problem In our line of work, when we want to include a PDF in … Continue reading

Posted in General Technical | Tagged , , , , , , , | 10 Comments

A Python script that finds and runs other Python scripts (which I use to build my SQLite database)

My, what an unwieldy blog title. While working on my current project, I wanted to be able to generate and fill my SQLite database from scratch, in an instant, by calling a single script. I found a convenient way of … Continue reading

Posted in Software Development | Tagged , , , , , | 2 Comments

Python Script to Count Tables, Columns and Rows in SQLite Database

One of my colleagues asked me for some metrics regarding the size of our project’s database to put in a report, so I wrote a short little script Python to summarize the dimensions of SQLite tables. It prints a list … Continue reading

Posted in Software Development | Tagged , , , , | 1 Comment

Generating Smarter Visual Studio Code Snippets Using T4 Templates

The last formal tip in The Pragmatic Programmer urges the reader to “Sign Your Work”, and states that, at the very least, each code file should have the author’s name and the creation date as a comment at the top. … Continue reading

Posted in Software Development | Tagged , , , , , , , | Leave a comment

Replacing a delegate with an inline lambda expression: Improvements on an MS Exams Custom WPF Control example

I was dusting off my WPF skills when I took a look at the Custom WPF Control example in this book: MCTS Self-Paced Training Kit (Exam 70-511): Windows Application Development with Microsoft .NET Framework 4 The example, in Chapter 5 … Continue reading

Posted in Software Development | Tagged , , | Leave a comment