Posts

Showing posts from January, 2021

Dirty Logging With Serilog For ASP.NET 5

Image
Programming isn't about what you know; it's about what you can figure out. — Chris Pine. Hey guys, whats up? Here we are again on yet-another tutorial on using Serilog 1 as your primary logging framework for both development as well as production. If you look on the internet you’ll see there are many ways to integrate Serilog in your existing application, on this tutorial I’ll show you what I’ve been using for all the projects that I’ve handled. You may ask what is the difference of my setup compared to others? The setup I’ll show you allows easy addition of new sinks and on the fly modification of log format without the need of recompiling your app again. So how does that work? Follow me and let’s dive on how to implement it. 👆 Prerequisites First of all, you must have a . NET 5.0 SDK (Software Development Kit) installed in your computer and also I assumed you are currently running Windows 10 or Linux with proper environment set. If you are

Quick Simple GraphQL Provider On ASP.NET Core 5.0

Image
In your thoughts, you need to be selective. Thoughts are powerful vehicles of attention. Only think positive thoughts about yourself and your endeavors, and think well of the endeavors of others. — Frederick Lenz. Hey guys, my most recent project tackles implementing GraphQL 1 provider using C#. This is my first time implementing this stuff on C#, but I’ve already implemented it before on Java and also on Rust. This are the simple things I’ve learned while implementing a simple (hello world) GraphQL server on C#. Come on join me and lets dive in! ☄ Prerequisites First of all, you must have a . NET Core 5.0 SDK (Software Development Kit) installed in your computer and also I assumed you are currently running Windows 10 or Linux with proper environment set. If you are on Windows 10 and already have a Visual Studio 2 2019, just update it to the most recent version, that way would ensure your system to have the latest .NET Core SDK version. So where do we s

Find Unintended CSS Overflow

Image
You can only find truth with logic if you have already found truth without it. — Gilbert Keith Chesterton. Hey guys, ever coded an HTML static design site? I’m sure you’ve encountered problems where you’ve just installed some CSS framework then coded some additional CSS files. After you’ve finished the code you run it on a browser then TADAHHH ! There were overflows horizontal and vertical scrollbars. 😁 It’s a bit cumbersome to find where those scrollbar or overflow originated, so that’s what this article is for. In order to find those overflows, here’s a one liner that you can directly paste on your web developer console or just press F12 then the console tab. The console tab is the place where you look at javascript logs ( console.log ), anyways just copy this then analyze it first before pasting on your console. javascript : void ( function ( ) { var docWidth = document . documentElement . offsetWidth ; [ ] . forEach . call ( document . querySelector

Popular posts from this blog

Top Three DNS Providers That Provides Good Service in SEA (Southeast Asia)

Sending Email Using MailKit in ASP.NET Core Web API

Disable mDNS and SSDP Discovery in Google Chrome