Pages about StackOverflow
Signing in to Azure Artifacts using npm on Mac
Microsoft Azure Artifacts uses your email address for logging in. If you are on Linux or a Mac, that can make it difficult to sign in to its npm registry using npm-login or npm-adduser. Here I show you how to configure your .npmrc file manually to avoid the problem.
Allowing "at" characters in npm usernames
Some npm registries use email addresses for usernames. That is incompatible with the npm commandline tools, like npm-login and npm-adduser. I found out how to configure the .npmrc file manually to avoid the problem.
Kafka Unrecognized option PrintGCDateStamps
There is a bug in the Java version detection mechanism in Kafka, that prevents you from running Kafka on newer versions of Java. There is a quick way to fix it, while the issue is being resolved.
Using Source Maps with CSS
Converting from Type to SqlDbType
The .NET type system and SQL Server types are not very easy to map to each other. In SQL, variables don't just have a type, but can also have precision and maximum length, which is not possible to translate into simple .NET types. Here I show a naïve approach at translating from one type system to another.
Control data alignment in C# struct
Using the StructLayout and FieldOffset attributes, it's possible to control detailed data alignment when transmitting data between .NET-base and C++/C-based or assembler software.
How to load jQuery programatically
Check if string contains a character in C#
There are multiple ways of checking if a string contains a specific character in C#. There are methods built into the String class, and there are extension methods in System.Linq.
What is Device Pixel Ratio?
The device pixel ratio is the ratio between physical pixels and logical pixels on a high-resolution screen. Different devices report different values, including non-integer ones. You should use media queries to handle varying screen densities correctly.
How to add a custom header in HttpWebRequest
Adding a custom HTTP header to an HttpWebRequest object, targetting Windows Phone 7, is done through the Headers property. The good thing that it works for a lot of other .NET target platforms as well.