TekOnline

Tag: C#

  • Building a Dockerized C# Email Tester: A Step-by-Step Guide šŸ“§šŸ³šŸ‘Øā€šŸ’»

    As developers, we often need to test email functionality in our applications. But how can we do that efficiently, especially when working with Docker containers? In this tutorial, I’ll walk you through the process of creating a Dockerized C# Email Tester. We’ll cover everything from setting up the project to sending test emails—all within a…

  • String Literal Cheat Sheet (Python, C#, JS)

    String Literal Cheat Sheet (Python, C#, JS)

    Python Python uses f-strings for string interpolation. Here’s an example: In this code, the variablesĀ nameĀ andĀ ageĀ are inserted into the string using curly bracesĀ {}. C# C# uses string interpolation with theĀ $Ā symbol. Here’s an example: In this code, the variablesĀ nameĀ andĀ ageĀ are inserted into the string using curly bracesĀ {}. JavaScript JavaScript uses template literals for string interpolation. Template literals are…

  • Converting from DOCX to PDF for thumbnails

    Converting from DOCX to PDF for thumbnails

    I recently needed to show some thumbnails of docx files online. Here is what I came up with. Please note that this will not create a perfect thumbnail. In fact its quite basic. It allows the user to simply see that the file contains something. Nevertheless, I hope you find it helpful! Here is the…