Powershell - Get CPU Usage by Process (remote)
· ☕ 1 min read
You would expect `Get-Process` to do the job, but it turns out that its CPU metric is not on a 0..100% scale. Here is a one-liner (find who's eating into your CPU - or that of a remote server).

Extend Clickable Area For jQueryUI Slider
· ☕ 1 min read
Even using the default jQueryUI’s slider style, the handle is larger than its container. Now suppose your container is 3x smaller than the handle (specific design requirement). There is a problem - you have to hit the container precisely to be able to change the slider’s value. Otherwise nothing happens. Here is what I mean: It would be nice to extend the slider clickable area to pretend it’s actual height matches slider or its handle, if handle is taller.

TypeScript - Getting started in Visual Studio 2015
· ☕ 4 min read
I decided to write this article simply because there are so many outdated answers to this question linked from Google. Here are some of the things you should NOT do: Install Web Essentials Install Node Package Manager Manually adjust project files to enable Typescript transpiler Automatically adjust project files by installing a nuget package Install something that downloads 1000s of files into a folder inside your project and works with fingers crossed.

Atom Editor by GitHub - Worth It?
· ☕ 5 min read
In short, Atom editor by GitHub is well-built, focused on code (there isn’t really anything getting in your way), similar to Sublime. Now I haven’t used Sublime beyond basics and generally favour GUI, rather than command line. Everything can be found via CTRL+SHIFT+P. However, if something can be typed with 5 characters, and it could have also been called with 2 keystrokes, I’d choose the keystrokes approach. I’m not a Sublime user, you guessed it right, won’t be paying 70$ for a fancy text editor, if WebStorm is worth 59$.

C# - Normalize Whitespace Inside String
· ☕ 2 min read
Simple task - replace all sequential whitespace (tabs, spaces, newlines) with your character of choice, usually a space. Fact - StackOverflow is on top in google results, when searching for “C# normalize whitespace”. How to replace multiple white spaces with one white space c# Fastest way to remove extra white spaces Why this article? Highest voted answers are not the best performing, and some answers are just wrong.

C# - Capture Full Stack Trace Inside Catch
· ☕ 3 min read
When you catch an exception, you only have stack trace relative to the catch point. The problem is very clearly described in this article on CodeProject: .NET: Exception stack trace has no frames above the catch point. Why is this important? Suppose the error occurs when sending email and this is a non-critical part of your application. Let’s say you send confirmation emails to clients as part of the ordering process.

Fix Ugly Fonts in Google Chrome 37
· ☕ 1 min read
Problem - after updating to the latest Chrome version (37), fonts look ugly. v37 is supposed to introduce DirectWrite for font rendering, that makes fonts look better. I’m using a non-standard 125% Windows DPI, it could be why they are ugly for me. Solution, as quoted from here: type "chrome://flags/#disable-direct-write" in your Chrome window and click "Enable" on "Disable DirectWrite". DirectWrite should be off.

Good 24IN LCD Monitor For Home/Office Use
· ☕ 4 min read
Modern monitors today have IPS+VA in one, which means great vertical viewing angles and also 100% color gamut reproduction. So one does not need to choose either and just get both, for some 200-250 dollars. However, they only have 1000 static contrast (read below why this was important for me) and many of them suffer from backlight bleed issue (near bottom of the screen), or produce high-pitch noise. Another thing which I found interesting is that not all IPS monitors make up to 100% of the palette, make sure you read description about how much is exactly covered.