Hello, world!

Server-side, client-side, code snippets, scripts, automation, best practices, proven approaches, tips & tricks...

Using GZip compression for large text values in Redis

Store and retrieve larger text values with Redis in .NET
 
0
Using REDIS for caching values for increasing application performance can be quite beneficial and can increase performance and scalability of your application. Although REDIS allows quite large text files, up to 512MB which is something you most likely will not reach if you are storing for example JOSN data, there will be a significant network transfer over the wire for putting and pulling this value in and out. ... read more

QR code MVC html helper

Display runtime generated QR code in MVC page
0
This article is based on one of my previous topic Advanced Base64 image extension in ASP.NET MVC. It uses the same concept to display image on the page and to cache it, but it involves QR code bitmap generation which is basically a NuGet package use. Basically, QR code is generated using NuGet package QRCoder https://www.nuget.org/packages/QRCoder/ and result Bitmap is serialized to base64 string and cached so we do not regenerate same QR bitmap over and over on every request which may lead to server overload. ... read more

Non blocking CSS load on the page

Load external CSS files in an async manner
 
0
Like JavaScript, CSS files are also loaded on the page by default in a blocking manner. Luckily for us, for JavaScript we can use either async or defer attributes on the script tag itself to change the behavior of JavaScript external file loading. There is a different between these two attributes, but this is not the subject of this article. ... read more

Inline JavaScript and CSS tags with ASP.NET MVC

Rendering inline JavaScript and CSS tags in document in MVC
 
0
With ASP.NET MVC Microsoft introduced bundling of JavaScript and CSS resources. These bundles work pretty well but to me it always looks not so natural to define bundles in BundleConfig.css and I had problems if I want to edit CSS or JavaScript during runtime because they are cached. One more thing I was struggling with is injecting the script inside the document instead of referencing the script or css from an external file. ... read more

Google Service Account authentication in .NET

Authenticate app with service account for working with Google services
0
In case you are a .NET developer and you are using Google Cloud platform, eventually your apps or services will have to interact with Google Cloud (GCE) services. Good thing is that complete GCE is exposed through REST API. Whole authentication is done through OAuth 2.0, but the authentication of website applications and your services which might be running in background on your server is not the same ... read more

JavaScript

read more

Umbraco CMS

read more

.NET

read more

SQL/T-SQL

read more