C# TcpClient and NetworkStream usage behaviour

It can be confusing at first when developing an application that employs TCP connection implementation of TcpClient, TcpListener and the underlying NetworkStream, because the way data is sent and read may not be what you think it is and the MSDN is not very explicit regarding how it actually works, leaving the developers to fall […]

Read more
What Is Node.js

If you are totally confused by the description of Node.js on their very own website, you are not alone. To bring back your sanity, first of all, you need to unlearn Node.js:. 1. Node.js has nothing to do with JavaScript. 2. Node.js has nothing to do with web servers, HTTP, web pages, web applications.

Read more
WrapPanel not wrapping as ListBox ItemsPanel

When using a WrapPanel as the ItemsPanel for a ListBox as such The WrapPanel may not wrap the items as expected. This is because of WPF’s width and height sizing issue. Depending on the type of Panel that the ListBox is contained in e.g. StackPanel, Grid, etc the width of the ListBox will be resolved […]

Read more
SUBST command line tool to shorten file paths

The shadow copy service provides snapshots of the file volumes but appends a time stamp in the path. This may cause the resulting path to be longer than the system can handle. In order to copy files from the shadow copy “previous versions”, you need to shorten the path name. The SUBST command line tool […]

Read more