Skip to main content

Posts

Showing posts from January, 2017

Requirements file in Python

Requirements files in Python is used to get and install all python dependencies packages across user PCs. Here is how to create and use the requirements file using pip package manager (pip comes built in with Python 3.4 and higher. For previous versions, download and run get-pip.py) 1. Save your project dependencies in requirements.txt. It also includes correct package versions. pip freeze>requirements.txt 2. Install all packages listed in requirements.txt pip install -r requirements.txt

How to implement Wait Cursor in C#

public class WaitCursor : IDisposable {      private Cursor _previousCursor;        public WaitCursor()      {          _previousCursor = Mouse .OverrideCursor;            Mouse .OverrideCursor = Cursors .Wait;      }        #region IDisposable Members        public void Dispose()      {          Mouse .OverrideCursor = _previousCursor;      }        #endregion }

Threading tutorials from Microsoft

Do you know what’s lurking in the deepest, darkest parts of your thread pool? Take control of that monster and keep your applications responsive by becoming a threading expert with this free 5-part course. Advanced .NET Threading , Part 1: Thread fundamentals Advanced .NET Threading , Part 2: Compute-bound async operations Advanced .NET Threading , Part 3: I/O-bound async operations Advanced .NET Threading , Part 4: Thread synchronization primitives Advanced .NET Threading , Part 5: Thread synchronization locks