<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sami Islam on Medium]]></title>
        <description><![CDATA[Stories by Sami Islam on Medium]]></description>
        <link>https://medium.com/@samiislam0306?source=rss-6876e8bcf78e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VIt7wdolIK7ekCGfn6K0eA.jpeg</url>
            <title>Stories by Sami Islam on Medium</title>
            <link>https://medium.com/@samiislam0306?source=rss-6876e8bcf78e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:06:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samiislam0306/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Containerize your Conda environment]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/containerize-your-conda-environment-c8afeaa3e860?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/1091/1*taotZOVa_-grs-g2eqOiFQ.png" width="1091"></a></p><p class="medium-feed-snippet">3 phases to containerize a conda/mamba environment for ease of use</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/containerize-your-conda-environment-c8afeaa3e860?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/containerize-your-conda-environment-c8afeaa3e860?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8afeaa3e860</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[plotting]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[conda-environment]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 14:11:01 GMT</pubDate>
            <atom:updated>2023-10-02T13:47:29.300Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Insightful Monitoring of Kubernetes Clusters with Traces]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/insightful-monitoring-of-kubernetes-clusters-with-traces-c7c3b33ed07e?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/1151/1*xaBPpDmoSPhRNr9pZkTKKA.png" width="1151"></a></p><p class="medium-feed-snippet">Gain valuable insights into the performance of your Kubernetes cluster with trace monitoring. A guide that helps you optimize your&#x2026;</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/insightful-monitoring-of-kubernetes-clusters-with-traces-c7c3b33ed07e?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/insightful-monitoring-of-kubernetes-clusters-with-traces-c7c3b33ed07e?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7c3b33ed07e</guid>
            <category><![CDATA[jaeger]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[kubernetes-monitoring]]></category>
            <category><![CDATA[grafana]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 14:59:22 GMT</pubDate>
            <atom:updated>2023-03-12T16:37:45.202Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stay safe with Kubernetes CI/CD …]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/stay-safe-with-kubernetes-ci-cd-52d51a7af99c?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/1024/1*FtGQJ__sTMJdbJ65buEliQ.png" width="1024"></a></p><p class="medium-feed-snippet">&#x2026; and put on your Helmet</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/stay-safe-with-kubernetes-ci-cd-52d51a7af99c?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/stay-safe-with-kubernetes-ci-cd-52d51a7af99c?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/52d51a7af99c</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[helm-chart]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[argo-cd]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 14:55:09 GMT</pubDate>
            <atom:updated>2022-10-21T14:55:09.869Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mock reading a File line-by-line with Python]]></title>
            <link>https://samiislam0306.medium.com/mock-reading-a-file-line-by-line-with-python-b5b5158cbfe8?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5b5158cbfe8</guid>
            <category><![CDATA[file-reading]]></category>
            <category><![CDATA[mocking]]></category>
            <category><![CDATA[unittest]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 18:01:11 GMT</pubDate>
            <atom:updated>2022-08-20T18:01:11.571Z</atom:updated>
            <content:encoded><![CDATA[<p>Easily test python code that reads a .csv file using unittest.mock.mock_open</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYgr6p56HLzRlLH9eDvUvQ.png" /><figcaption><a href="https://undraw.co/">unDraw</a> by <a href="https://twitter.com/ninaLimpi">Katerina Limpitsouni</a></figcaption></figure><p>For one of my recent Python projects, I had to read a .csv file containing test data-set line-by-line and map them to one of 4 regression models. My solution was to create a generator method that returned every line read from the file.</p><p>Before returning the data I packed it into a rudimentary DataRecord object that indicated whether the record returned was a header or data line together with the data read from the file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5390453d908ba8c16770fc876ed1ff4b/href">https://medium.com/media/5390453d908ba8c16770fc876ed1ff4b/href</a></iframe><p>The code above shows how the given source file is read line-by-line and processed. Each line is then returned in the form of a DataRecord. The line that does not constitute a header is expected to consist of only floating point numbers in my example. The DataRecord is as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1182481d304c09dd0ed9243b1af61ab7/href">https://medium.com/media/1182481d304c09dd0ed9243b1af61ab7/href</a></iframe><p>The built-in python function open is used to open the file to read followed by reading each line. When I started to write unit tests to test the file reading and parsing functionality I struggled a little bit to figure out how to mock the build-in python function open and inject test data into it in order not to depend on the existence of a physical file for my tests.</p><p>I found what I was looking for in the following python documentation:</p><p><a href="https://docs.python.org/3/library/unittest.mock.html?highlight=mock_open#mock-open">unittest.mock - mock object library - Python 3.10.6 documentation</a></p><p>The unit test code is as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd83c83557faa54d5ae63eb631d4ae8f/href">https://medium.com/media/cd83c83557faa54d5ae63eb631d4ae8f/href</a></iframe><p>To make it easier for me to assert the lines of data read I used a list of data lines containing the header line as the first item followed by data lines. The tricky part was to figure out what to set the read_data parameter of mock_open to. It must be set to newline delimited strings which are then read by the actual built-in python function open line-by-line.</p><p>After that my test code worked as expected and I was able to assert that a DataRecord of type header was indeed the header line and a DataRecord which was not of type header was a line containing actual data.</p><p>I hope this helps others to quickly and easily test their file reading functionality in their unit tests.</p><p>All code used in this article can be found in my <a href="https://github.com/samiislam/MockFileReadingLineByLine">GitHub </a>repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5b5158cbfe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ask Not What You Can Do For Your Container Build…]]></title>
            <link>https://samiislam0306.medium.com/ask-not-what-you-can-do-for-your-container-build-c47b3ec34584?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c47b3ec34584</guid>
            <category><![CDATA[cloud-native-buildpacks]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[docker-image]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 19:04:41 GMT</pubDate>
            <atom:updated>2020-10-21T16:14:06.086Z</atom:updated>
            <content:encoded><![CDATA[<h4>…Ask What Your Container Build Can Do For You</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*dtzX2Oa5DECa6rE58Ba-Ew.png" /><figcaption><a href="https://undraw.co/">unDraw</a> by <a href="https://twitter.com/ninaLimpi">Katerina Limpitsouni</a></figcaption></figure><p>While learning about Docker containers it is common to start with a Dockerfile to specify the steps and dependencies required to build a Docker image. In this article, I am going to build docker images containing applications each using different technology - dotnet, node, and python.</p><p>The article will focus on two different ways of building the images:</p><ol><li>We describe exactly how to build an image using a Dockerfile</li><li>We let the build process figure out how to build the image - no Dockerfile</li></ol><p>My project structure is as follows:</p><figure><img alt="Project structure" src="https://cdn-images-1.medium.com/max/301/1*7-UHbADHFfoEvwdME0oxnw.png" /><figcaption>Project structure</figcaption></figure><h4>We work for the container build process</h4><p>When we really care about which base image should be used by our projects we create a Dockerfile manually and use that to build our images.</p><p><strong>DotNet Core:</strong></p><p>For the dotnet core console app project our dockerfile is a follows:</p><figure><img alt="Dockerfile dotnet console app" src="https://cdn-images-1.medium.com/max/1024/1*OhV1zBP3lF9OR4lpmBPfvA.png" /><figcaption>Dockerfile.dotnet console app</figcaption></figure><p>Here we define which base image to use, which in our case is the dotnet/core/runtime:3.1. Then we copy our published binary and define an entry point to use to run out app.</p><p>Before we can create a docker image we build the dotnet console project and publish it in the console folder:</p><figure><img alt="Build the dotnet project and publish it" src="https://cdn-images-1.medium.com/max/1024/1*i26uqg2aVuVgczPfJV96sw.png" /><figcaption>Build the dotnet project and publish it</figcaption></figure><p>Now we build and run the console image using the Dockerfile Dockerfile.dotnet:</p><figure><img alt="Build console image using dockerfile and run container" src="https://cdn-images-1.medium.com/max/1024/1*6u2c8RjrjqkFSVrQJ08Rsw.png" /><figcaption>Build console image using dockerfile and run container</figcaption></figure><p><strong>Node:</strong></p><p>For our Node project we use the following docker file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTbEvBQtIHQB4wkBD7PTOg.png" /><figcaption>Dockerfile.node Node app</figcaption></figure><p>We use the base image node:14.14.0-alpine3.12. We copy our <strong><em>package*.json</em></strong> files in the working directory and install all dependencies. In our case, we have a single dependency on express.js as we see below. We then copy all our files to the image and after exposing port 8080 we start our node app server.js.</p><p>Our package.json file is as follows:</p><figure><img alt="Node package.json" src="https://cdn-images-1.medium.com/max/1024/1*9gqnVF0PL8mvDhmiyIf7xw.png" /><figcaption>Node package.json</figcaption></figure><p>The thing to note here is that <strong>we specify the node engine</strong> we use. This is extremely important for the next section of the article as we shall see later.</p><p>We build our Node image and run it using the Dockerfile.node:</p><figure><img alt="Build Node image using dockerfile and run container" src="https://cdn-images-1.medium.com/max/1024/1*feHg_-f6CEPaLeo39LKMaw.png" /><figcaption>Build Node image using dockerfile and run container</figcaption></figure><p><strong>Python:</strong></p><p>For our python project our Dockerfile looks like the following:</p><figure><img alt="Dockerfile.python for Python App" src="https://cdn-images-1.medium.com/max/1024/1*u5qtf-SEwvMudcEIaT_nzw.png" /><figcaption>Dockerfile.python for Python App</figcaption></figure><p>A very simple dockerfile using Python 3.8 base image, copying the main.py to the working directory, and starting it.</p><p>Building the python image and running it using the Dockerfile.python is as follows:</p><figure><img alt="Build Python image using dockerfile and run container" src="https://cdn-images-1.medium.com/max/1024/1*MpxTR2mK9T_XlmhNeUMMlQ.png" /><figcaption>Build Python image using dockerfile and run container</figcaption></figure><p>Everything that we have seen so far is a vanilla docker image creation process using Dockerfile. We specified exactly what dependencies we wanted to have and where to copy our files and how to start it.</p><p>In a cloud environment, we probably don’t care about what base image is being used. We just want something that takes our code and figures out what dependencies are required and how to start our application. We can do just that using <a href="https://buildpacks.io/">Buildpacks</a>.</p><h4>The container build process working for us</h4><p>According to the Cloud Native Computing Foundation:</p><blockquote>“A buildpack is a unit of work that inspects your app source code and formulates a plan to build and run your application.”</blockquote><p>It actually uses various ways of detecting how to build your source code and run your application but I am not going to go into details in this article. Here we are going to actually see how to use buildpacks to create an image without using a Dockerfile.</p><p><strong>DotNet Core:</strong></p><p>Once again we start by building our console app and publishing it. We then use the command line tool pack for Cloud Native Buildpacks to build our image. This is of course console:2.0:</p><figure><img alt="Pack Building the Dotnet app — Part 1" src="https://cdn-images-1.medium.com/max/1024/1*NAKr8VB4D-6nLp32F5O3hw.png" /><figcaption>Pack Building the Dotnet app — Part 1</figcaption></figure><p>On the first part of the window we see the command line:</p><pre><strong><em>pack build s/console:2.0 --builder gcr.io/buildpacks/builder:v1</em></strong></pre><p>It uses the pack build command to create a s/console:2.0 image. Instead of using a Dockerfile it uses the google cloud builder gcr.io/buildpacks/builder:v1 which is itself an Ubuntu 18 base docker image providing buildpacks for DotNet, Go, Java, Node.js, and Python. As we’ll see, this is the only builder we need for all the rest of our projects.</p><p>One can see how it detects the version of .Net Core to use (it does this by looking at the .csproj file). It then builds the myconsole app and creates the docker image s/console:2.0.</p><figure><img alt="Pack Building the Dotnet app — Part 2" src="https://cdn-images-1.medium.com/max/1024/1*ihJyKRZW2Cq0JafWf_zGIg.png" /><figcaption>Pack Building the Dotnet app — Part 2</figcaption></figure><p>We run the image in the usual way:</p><figure><img alt="Run the console 2.0 container" src="https://cdn-images-1.medium.com/max/1024/1*ZUFQw_SFvvkKguT7OVsrhA.png" /><figcaption>Run the console 2.0 container</figcaption></figure><p><strong>Node:</strong></p><p>Similarly, for our Node project we run:</p><figure><img alt="Pack Building the Node App — Part 1" src="https://cdn-images-1.medium.com/max/1024/1*VDq8TrZms4hEPRCkD1wYQw.png" /><figcaption>Pack Building the Node App — Part 1</figcaption></figure><p>Note that it looks at our package.json to detect the node version to use.</p><figure><img alt="Pack Building the Node App — Part 2" src="https://cdn-images-1.medium.com/max/1024/1*zqyns9SsSZ5PwDRVJuZ5pA.png" /><figcaption>Pack Building the Node App — Part 2</figcaption></figure><p>Again the only command we had to run was:</p><pre><strong><em>pack build s/node:2.0 --builder gcr.io/buildpacks/builder:v1</em></strong></pre><p>Running the image and connecting to localhost:</p><figure><img alt="Run the Node 2.0 container" src="https://cdn-images-1.medium.com/max/1024/1*QblR2gkjvs__n0UBm-haJQ.png" /><figcaption>Run the Node 2.0 container</figcaption></figure><p><strong>Python:</strong></p><p>For Python, we do need to help the buildpack by providing the exact command to run when running our container. There are several ways to do this but we use the environment variable “way”:</p><pre><strong><em>pack build s/python:2.0 --builder gcr.io/buildpacks/builder:v1 --env GOOGLE_ENTRYPOINT=&quot;python main.py&quot;</em></strong></pre><p>And the output:</p><figure><img alt="Pack Building the Python App — Part 1" src="https://cdn-images-1.medium.com/max/1024/1*T3_3_VQ2H4adIlP0ewUlMQ.png" /><figcaption>Pack Building the Python App — Part 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v13Vg-WKUu8G5Ec7TpQgoQ.png" /><figcaption>Pack Building the Python App — Part 2</figcaption></figure><p>And running it:</p><figure><img alt="Run the Python 2.0 container" src="https://cdn-images-1.medium.com/max/1024/1*PhmfxRfWryzA733g36ix9Q.png" /><figcaption>Run the Python 2.0 container</figcaption></figure><p>That’s it!! We just created docker images for applications using three different technology without self-created Dockerfiles. How cool is that?! 😃</p><h4>Conclusion</h4><p>I have touched the surface of what Cloud Native Builders and Buildpacks are capable of and can’t wait to explore them further. I hope this introduction will make you curious enough to explore them as well.</p><p>There are various other builders one can use. The following command lists some of them:</p><figure><img alt="A list of builders" src="https://cdn-images-1.medium.com/max/1024/1*IOj34tJCx51T1kEuADc0JA.png" /><figcaption>A list of builders</figcaption></figure><p>We have used Google builders in our article.</p><p>You will find all the code for this article in my <a href="https://github.com/samiislam/ContainerBuildpacks">GitHub</a> Repo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c47b3ec34584" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Link Containerized DotNet Core Libraries During Runtime]]></title>
            <link>https://samiislam0306.medium.com/link-containerized-dotnet-core-libraries-during-runtime-154fdd61e494?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/154fdd61e494</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sat, 17 Oct 2020 12:11:18 GMT</pubDate>
            <atom:updated>2020-10-17T17:23:45.690Z</atom:updated>
            <content:encoded><![CDATA[<h4>A look at how to Package DotNet Core Libraries in a Docker Base Image to Link to Dynamically</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n1HPRwGA4rvDLBpi" /><figcaption>Photo by <a href="https://unsplash.com/@swell?utm_source=medium&amp;utm_medium=referral">S&#39;well</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In my quest to learn more about Docker and containerization I asked myself whether it was possible to package a dotnet core class library in a container and use it from projects in other containers.</p><p>This article takes a closer look into how that can be done by using:</p><ul><li>A dotnet core class library that I want to containerize - mylib</li><li>A dotnet core console application that includes mylib as a reference assembly - myconsole</li><li>A dotnet core AspNet Api that includes mylib as a reference assembly - myapi</li></ul><p>I use Visual Studio Code, Docker Desktop Community Edition 2.4.0.0 on Mac OS X 10.15.</p><h4>MyLib - Jill</h4><p>Mylib provides a class called ClassLib:</p><figure><img alt="ClassLib in mylib.dll" src="https://cdn-images-1.medium.com/max/1024/1*ZT_ycjsMdoyV7tNyPFIkeA.png" /><figcaption>ClassLib in mylib.dll</figcaption></figure><p>After building the library it is published in a lib folder under the root folder where my solution resides. To keep things simple, I have a single root folder containing mylib, myconsole and myapi. In reality, these could be separate solutions.</p><figure><img alt="Build and publish mylib" src="https://cdn-images-1.medium.com/max/1024/1*w9Fah57xjrCsdEgcT3Cvpw.png" /><figcaption>Build and publish mylib</figcaption></figure><p>To package the library in a base image the following Dockerfile is used:</p><figure><img alt="Dockerfile for the library" src="https://cdn-images-1.medium.com/max/1024/1*6kJWN5fMrgXrAS2WLUCCzQ.png" /><figcaption>Dockerfile for the library</figcaption></figure><p>To create a base docker image that does not depend on any other docker images it starts FROM scratch. It then creates an /app directory in the image and sets it as the working directory. The COPY /lib . command copies all the files <strong>from</strong> the /lib folder where the mylib library was published <strong>into</strong> the working directory /app in the image.</p><p>The Docker Image build for the s/lib image is as follows:</p><figure><img alt="Docker build for the library" src="https://cdn-images-1.medium.com/max/1024/1*de9Q6MmpSGbM-3s4o6gIbQ.png" /><figcaption>Docker build for the library</figcaption></figure><p>The output of the mylib project is all that this image contains. It has no dependencies on any other images.</p><h4>MyConsole - Jack</h4><p>The first project to use mylib is myconsole:</p><figure><img alt="MyConsole using mylib" src="https://cdn-images-1.medium.com/max/1024/1*ei6YUW6fzuWzZDWou7uUHQ.png" /><figcaption>MyConsole using mylib</figcaption></figure><p>It uses mylib.dll as a reference assembly from under the lib folder:</p><figure><img alt="MyConsole project file referencing mylib" src="https://cdn-images-1.medium.com/max/1024/1*NEjNchXhh18Xu3hPXhOnIA.png" /><figcaption>MyConsole project file referencing mylib</figcaption></figure><p>The HintPath tells it where to look for the mylib.dll during runtime. This is set to look for the reference assembly in the same folder where myconsole runs from. I have explicitly commented out the &lt;Private&gt;false&lt;/Private&gt; tag since we need this to create the myconsole.deps.json dependency file properly. Setting &lt;Private&gt;true&lt;/Private&gt; creates a dependency file without the mylib as a dependency which leads to a runtime failure even when the mylib.dll is present in the same folder and myconsole:</p><figure><img alt="Deploying and starting myconsole with incorrect .deps.json file" src="https://cdn-images-1.medium.com/max/1024/1*6Vev4925PY2saV7lYybkjw.png" /><figcaption>Deploying and starting myconsole with incorrect .deps.json file</figcaption></figure><p>Another way to handle the issue would be to manually modify the myconsole.deps.json file to include the dependency which I choose not to in order to keep this article simpler.</p><p>Since the whole point of this article is to re-use a reference library from a docker container, during the creation of the console image we are going to explicitly <strong>only copy</strong> the myconsole* items into the image and ignore the mylib* items.</p><p>The myconsole items are published in the console folder:</p><figure><img alt="Build and publish myconsole" src="https://cdn-images-1.medium.com/max/1024/1*gsDSUJL4UrglOUs5T3iBOw.png" /><figcaption>Build and publish myconsole</figcaption></figure><p>The Docker Image file to create an s/console image is as follows:</p><figure><img alt="Docker file for myconsole" src="https://cdn-images-1.medium.com/max/1024/1*r2plq6831WOM83w0HeNV0w.png" /><figcaption>Docker file for myconsole</figcaption></figure><p>Here we start by referencing the s/lib image as library. Since console is a dotnet core application, it requires the dotnet/core/runtime to run - which is the basis of this image. All the files published under /app/ folder of the base s/lib image are then copied into the working directly /app of this image. Only the files starting with <strong>myconsole*</strong> published by building myconsole are then copied into the /app directory. This allows myconsole to pick up the mylib.dll reference assembly (copied in the previous step) during runtime. To show that we are only copying the files starting with <strong>myconsole*</strong>, we copy the same batch under a /app/consoleonly/ directory. We are going to check this folder later in the article.</p><p>Let’s build the s/console image:</p><figure><img alt="Docker build for the console" src="https://cdn-images-1.medium.com/max/1024/1*xH9VAHaaFjxtQT72PvlGZA.png" /><figcaption>Docker build for the console</figcaption></figure><p>and run it:</p><figure><img alt="Start a console container" src="https://cdn-images-1.medium.com/max/1024/1*Yh3ndizsDZ-WIt0KOlXnqw.png" /><figcaption>Start a console container</figcaption></figure><p>My, my!! Jill and Jack are in love 💏 .</p><p>Let’s start the container again and go and have a peek inside:</p><figure><img alt="Ensure that the correct files are copied for the console" src="https://cdn-images-1.medium.com/max/1024/1*p0CM80_T74X4qg1UU5X9SA.png" /><figcaption>Ensure that the correct files are copied for the console</figcaption></figure><p>and as expected, only the items starting with myconsole* has indeed been copied into the consoleonly directory. This indicates that the mylib* items in the app directory are from the base s/lib library-only image.</p><h4>MyApi - Jane</h4><p>The second project to use mylib is myapi:</p><figure><img alt="Myapi using mylib" src="https://cdn-images-1.medium.com/max/1024/1*oL1aq3OkYakSlgQqaJIczQ.png" /><figcaption>Myapi using mylib</figcaption></figure><p>It also uses mylib.dll as a reference assembly in the exact same way as myconsole. The myapi items are published in the api folder:</p><figure><img alt="Build and publish myapi" src="https://cdn-images-1.medium.com/max/1024/1*vTuhkVMgEb0EL7AG76VNaA.png" /><figcaption>Build and publish myapi</figcaption></figure><p>The Docker Image file to create s/api is almost exactly like the one to create s/console differing only in the inclusion of the dotnet/core/aspnet image:</p><figure><img alt="Docker file for myapi" src="https://cdn-images-1.medium.com/max/1024/1*1uZ6ha8ut5_oyBewRMjVCg.png" /><figcaption>Docker file for myapi</figcaption></figure><p>Building and running the container:</p><figure><img alt="Build api image and run container" src="https://cdn-images-1.medium.com/max/1024/1*pb4Grt8F75slpoKmsGgA6w.png" /><figcaption>Build api image and run container</figcaption></figure><p>The web api is published on port 5000 and navigating to it shows:</p><figure><img alt="Output of running api" src="https://cdn-images-1.medium.com/max/1024/1*OelMcNgs9ajsm0vS4fqf-A.png" /><figcaption>Output of running api</figcaption></figure><p>Well, well… Jill and Jane are in love 👩‍❤️‍💋‍👩 . Wait … What happened to Jack❗</p><p><strong>What happened to Jack?</strong></p><p>Let’s see what we did so far.</p><ol><li>We have created a dotnet core library and a base docker image that contains the library</li><li>We have built two different kind of dotnet projects - console and webapi - that requires the dotnet library during the build process</li><li>We have created a docker images for each of the dotnet projects that use the library <strong>but</strong> have explicitly made sure that the library being used is not the ones that these projects have built against. The library being used is the one that comes from the base docker image in step 1.</li></ol><p>Step 3 feels very awkward. What is the point of using the library from the base image instead of keeping the dependency for each project during the image creation? Well, let’s see what the point really is.</p><p>Here is the list of Docker images that we have create so far:</p><figure><img alt="List of first set of images" src="https://cdn-images-1.medium.com/max/1024/1*US67fqCZKuD8uvSH9AtuJA.png" /><figcaption>List of first set of images</figcaption></figure><ol><li>s/lib:latest — contains the class library</li><li>s/console:latest — contains the class library + dotnet/core/runtime</li><li>s/api:latest — contains the class library + dotnet/core/aspnet</li></ol><p>Let us now go ahead and change the code in the library being shared and create a new version of the image s/lib:2.0:</p><figure><img alt="Modify mylib, rebuild and recreate image 2.0" src="https://cdn-images-1.medium.com/max/1024/1*JvOVYP0gmw3MOlAHcEgXOQ.png" /><figcaption>Modify mylib, rebuild and recreate image 2.0</figcaption></figure><p>Now, <strong>without rebuilding</strong> our console or api projects, let’s just create a new version of their corresponding images using s/lib:2.0 as the base image:</p><figure><img alt="List of all images old and new" src="https://cdn-images-1.medium.com/max/1024/1*g_r5oQwjkMmglHoA5516eg.png" /><figcaption>List of all images old and new</figcaption></figure><p>If we now run the console 2.0 container:</p><figure><img alt="Run console 2.0" src="https://cdn-images-1.medium.com/max/1024/1*Xv265I8Ph4LYLpZfvVeh5A.png" /><figcaption>Run console 2.0</figcaption></figure><p>Well… Well… It looks like Jack has a new girlfriend named Amy ❤️ .</p><p>And running the api 2.0 container we see:</p><figure><img alt="Run api 2.0" src="https://cdn-images-1.medium.com/max/1024/1*k_EZOLCRJ-anbCuoxpuX-w.png" /><figcaption>Run api 2.0</figcaption></figure><p>Alas! Our story does not end well for Jack and Jill 💔 . Will they find each other again?</p><h4>Conclusion</h4><p>I had a great time learning how to package a library in a docker image so that it can be used by other images. Of course, we have to keep in mind that only trusted docker images should be used — especially in this case since we are dynamically binding to the assembly. Moreover, I haven’t used any versioning in this article but in production, it is extremely important.</p><p>I hope you will have as much fun as I did learning about containers 😃. As always you will find all the code for this article in my <a href="https://github.com/samiislam/lib-demo">GitHub</a> Repo.</p><h4>Reference</h4><p><a href="https://andrewlock.net/exploring-the-net-core-mcr-docker-files-runtime-vs-aspnet-vs-sdk/">https://andrewlock.net/exploring-the-net-core-mcr-docker-files-runtime-vs-aspnet-vs-sdk/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=154fdd61e494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Procedural Python to Object Orientation]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/from-procedural-python-to-object-orientation-1441438d4b47?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*fBxGm_Mfhe4jyglr" width="5497"></a></p><p class="medium-feed-snippet">A look at how to refurbish Python code to use Classes, Attributes, Encapsulation, Inheritance, and Polymorphism</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/from-procedural-python-to-object-orientation-1441438d4b47?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/from-procedural-python-to-object-orientation-1441438d4b47?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1441438d4b47</guid>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 20:15:41 GMT</pubDate>
            <atom:updated>2020-10-07T20:29:01.719Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Write Safer Python Code using Static Type Checking]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/write-safer-python-code-using-static-type-checking-4e10b29bc0ca?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/2600/0*lp74dUVaHttYjxoW" width="4509"></a></p><p class="medium-feed-snippet">Mypy - Compile-Time Static Type Checker for Python</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/write-safer-python-code-using-static-type-checking-4e10b29bc0ca?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/write-safer-python-code-using-static-type-checking-4e10b29bc0ca?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e10b29bc0ca</guid>
            <category><![CDATA[static-type-checking]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[mypy]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 09:07:58 GMT</pubDate>
            <atom:updated>2020-09-20T18:34:01.253Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Help your Colleagues Save Time by Using NUnit Attributes in your Tests]]></title>
            <link>https://samiislam0306.medium.com/help-your-colleagues-save-time-by-using-nunit-attributes-in-your-tests-c1b1528d6793?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1b1528d6793</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nunit]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 07:33:02 GMT</pubDate>
            <atom:updated>2023-01-05T18:11:08.256Z</atom:updated>
            <content:encoded><![CDATA[<h4>Use NUnit Test Attributes to Generate Method Input</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ud2B01z4sCwHq9ZV" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_source=medium&amp;utm_medium=referral">Nathan Dumlao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s face it, there is nothing worse than trying to understand the code you wrote 3 months ago. Well, to be honest, trying to understand the <strong><em>test code</em></strong> you wrote 3 months ago is worse.</p><blockquote><strong>And the worst of the worst - is when your colleagues try to understand the test code you wrote 3 months ago.</strong></blockquote><p>I really feel awkward when this happens, especially because I respect their time - <strong>which is the most expensive thing that any of us own</strong>.</p><p>In this article, I am going to take you through 5 ways of using the NUnit Test Framework to simplify your test code and make it more readable. I am going to focus only on the input to your Unit Tests and not the test itself or the correct way to name your tests.</p><h4>A Simple Test to Begin With</h4><figure><img alt="A simple NUnit test method" src="https://cdn-images-1.medium.com/max/822/1*7YJs4zh0jtXkAdaU6Go75g.png" /><figcaption>A simple NUnit test method</figcaption></figure><p>The Class1 implements a TrueOnEvenNumbers check. You can see the repetition with multiple Asserts which is completely unnecessary. It’s worse when something like this is done in a loop inside the test method.</p><p>Having a single assertion per test makes it easier to understand and maintain the test code. Let’s use the NUnit TestCase attribute to do just that.</p><h4>1. The TestCase Attribute</h4><figure><img alt="Using the NUnit TestCase method-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*FCazO7hmKHK3nZUDcY5IGg.png" /><figcaption>Using the NUnit TestCase method-level attribute</figcaption></figure><p>NUnit is going to run the test once per theTestCase attribute. The refactored test method now takes an input and returns an output. The input is taken from the first parameter of the TestCase attribute. The output is checked against the ExpectedResult property of the TestCase attribute. I love this since the test now focuses more on the logic being tested and has a single assertion.</p><p>The NUnit Test output:</p><figure><img alt="Output of the test using the TestCase attribute" src="https://cdn-images-1.medium.com/max/1024/1*dUyYo3wijKCR2IKc3KzOmw.png" /><figcaption>Output of the test using the TestCase attribute</figcaption></figure><p>The output shows the exact parameter value being passed in each time the test method is called.</p><p>The test method logic used here are:</p><ol><li>Even numbers return true</li><li>Numbers that are not even numbers return false</li></ol><p>If you think it makes more sense to separate out the logic, it can be done nicely by using the Range attribute from NUnit.</p><h4>2. The Range Attribute</h4><figure><img alt="Using the NUnit Range parameter-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*AyIRr5mLNwYFXOW391q1Ug.png" /><figcaption>Using the NUnit Range parameter-level attribute</figcaption></figure><p>Separating the test logic, I now test the result of even number inputs. A great way to do that is to use the Range attribute that takes a ‘<em>from’</em>, a ‘<em>to’</em> and a ‘<em>step’</em> value.</p><p>In this example I want the input to be 40, 42, 44 and 46 and therefore I use a Range(40, 46, 2) that starts ‘<em>from’</em> 40, go ‘<em>to</em>’ 46, and increments at each ‘<em>step</em>’ by 2. Notice how the Range attribute is used on the input parameter and not on the test method.</p><p>The output:</p><figure><img alt="Output of the test using the Range attribute" src="https://cdn-images-1.medium.com/max/1024/1*tZpV-hNPN0c4g8xZ2JVRcQ.png" /><figcaption>Output of the test using the Range attribute</figcaption></figure><p>And the test for odd numbers would look like the following:</p><figure><img alt="Another test using the Range attribute" src="https://cdn-images-1.medium.com/max/1024/1*K5543nLSBCMe9OM7taoC7w.png" /><figcaption>Another test using the Range attribute</figcaption></figure><p>Wait, what is that Should().BeFalse() syntax?!</p><p>Well, that is another way to make your tests more readable. The wonderful FluentAssertions Extensions allow for such fluent syntax during assertion: <a href="https://fluentassertions.com/introduction">https://fluentassertions.com/introduction</a></p><h4>3. The TestCaseSource Attribute</h4><p>The TestCase attribute that we used allows us to also use Enumerations:</p><figure><img alt="Using enumeration in the TestCase attribute" src="https://cdn-images-1.medium.com/max/1024/1*z-xfe49utG-4YA9pVT05mA.png" /><figcaption>Using enumeration in the TestCase attribute</figcaption></figure><p>For a given workday, test that the mood one is in matches the expected value. Notice the return type of the GetMoodWithReasonForWorkday method:</p><figure><img alt="The method - GetMoodWithReasonForWorkday" src="https://cdn-images-1.medium.com/max/1024/1*pp58ymjnrFQjIgYRnTDu4Q.png" /><figcaption>The method - GetMoodWithReasonForWorkday</figcaption></figure><p>It is not the enumeration Mood but the type MoodWithReason :</p><figure><img alt="The struct - MoodWithReason" src="https://cdn-images-1.medium.com/max/1024/1*9ZCMwXf9NP6i2lfbce9y1w.png" /><figcaption>The struct - MoodWithReason</figcaption></figure><p>I would like to test both the properties of the struct MoodWithReason and would like to use it as the ExpectedResult property in the TestCase attribute like this:</p><figure><img alt="Using MoodWithReason as the TestCase ExpectedResult type" src="https://cdn-images-1.medium.com/max/1024/1*Qkv-FXF3OSe595z8xBtfDA.png" /><figcaption>Using MoodWithReason as the TestCase ExpectedResult type</figcaption></figure><p>But that leads to the following compilation error:</p><figure><img alt="Compilation error when trying to use a struct as the ExpectedResult type" src="https://cdn-images-1.medium.com/max/1024/1*SrXjokUffIPyWDPTE6ij2A.png" /><figcaption>Compilation error when trying to use a struct as the ExpectedResult type</figcaption></figure><p>Well have no fear, the TestCaseSource attribute is here:</p><figure><img alt="Using the NUnit TestCaseSource method-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*Tz7MAYd0PiiOJHbe_2cU_Q.png" /><figcaption>Using the NUnit TestCaseSource method-level attribute</figcaption></figure><p>The TestCaseSource attribute allows us to define any number and type of input (including expected results) and use it as input to our test methods. The iterator MoodWithReasons (with an ‘<strong>s</strong>’ at the end) is defined as followed:</p><figure><img alt="Iterator MoodWithReasons returning TestCaseData" src="https://cdn-images-1.medium.com/max/1024/1*C7S2DR5S2eO-ayfypbffVw.png" /><figcaption>Iterator MoodWithReasons returning TestCaseData</figcaption></figure><p>We can yield any number of TestCaseData items from the iterator. The TestCaseData type can take any number of parameters. We return two values for the two input parameters of our test method (Workday workday, MoodWithReason moodWithReason) . Unfortunately, the output of running the tests with our generated parameters look like this:</p><figure><img alt="Output of using MoodWithReasons TestCaseSource" src="https://cdn-images-1.medium.com/max/1024/1*aoNQGWJ9w2jkn6zEYb_DSQ.png" /><figcaption>Output of using MoodWithReasons TestCaseSource</figcaption></figure><p>The second parameter is of type MoodWithReason and does not show the actual values used during the test. To see the actual parameters passed in, a different TestCaseSource can be used:</p><figure><img alt="Iterator SeparatedMoodWithReasons returning TestCaseData" src="https://cdn-images-1.medium.com/max/1024/1*PM0npwqLwOKtj0qfYWtMaQ.png" /><figcaption>Iterator SeparatedMoodWithReasons returning TestCaseData</figcaption></figure><p>The corresponding Test Method now takes three input parameters:</p><figure><img alt="New method using TestCaseSource SeparatedMoodWithReasons" src="https://cdn-images-1.medium.com/max/1024/1*IjLHE52GZv9ix0IhI6x1Tg.png" /><figcaption>New method using TestCaseSource SeparatedMoodWithReasons</figcaption></figure><p>And the corresponding Test Output shows all input parameter values:</p><figure><img alt="Output of using TestCaseSource SeparatedMoodWithReasons" src="https://cdn-images-1.medium.com/max/1024/1*s56Mz7I_RhvALsgrGX6H2g.png" /><figcaption>Output of using TestCaseSource SeparatedMoodWithReasons</figcaption></figure><h4>4. The Values Attribute</h4><p>The Values attribute creates a combination of each possible input value. Let’s see what that means:</p><figure><img alt="Using the NUnit Values parameter-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*Xo0pRrKopxoggeIDcxUvZg.png" /><figcaption>Using the NUnit Values parameter-level attribute</figcaption></figure><p>Here the Values attributes are used on the parameters of type Mood and Reason, each being an enumeration:</p><figure><img alt="The enumerations Mood and Reason" src="https://cdn-images-1.medium.com/max/664/1*sja3JuaZgdO6-toIXnN5CA.png" /><figcaption>The enumerations Mood and Reason</figcaption></figure><p>Running the test lead to a total of 10 test method calls:</p><figure><img alt="Output of the automatic combination of the Mood and Reason values" src="https://cdn-images-1.medium.com/max/1024/1*vgskQ_qkmBGS58lPfO22FQ.png" /><figcaption>Output of the automatic combination of the Mood and Reason values</figcaption></figure><p>As you can see NUnit generates a test for each possible combination of the two input parameter types!! How cool is that?</p><p>There are a few Test Method level attributes that can be used together with the Values attribute for specific purposes. A list of all the NUnit attributes can be found at:</p><p><a href="https://docs.nunit.org/articles/nunit/writing-tests/attributes.html">https://docs.nunit.org/articles/nunit/writing-tests/attributes.html</a></p><h4>5. The ValueSource Attribute</h4><p>Just like the TestCaseSource attribute, there is a ValueSource attribute.</p><figure><img alt="Using the NUnit Values parameter-level attribute again" src="https://cdn-images-1.medium.com/max/1024/1*xtvVvHOoiWPiFeMeqvFpTg.png" /><figcaption>Using the NUnit Values parameter-level attribute again</figcaption></figure><p>Using the Values attribute you could write a test to check that any multiplication of the firstValue and the secondValue always gives a value of less than 10000. Another way to do that would be to use the ValueSource attribute:</p><figure><img alt="Using the NUnit ValueSource parameter-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*MUYg9dNnPm9FQBLqYBPuag.png" /><figcaption>Using the NUnit ValueSource parameter-level attribute</figcaption></figure><p>And the parameter sources for the test, FirstValueSource and SecondValueSource, can be defined as:</p><figure><img alt="The Iterators FirstValueSource and SecondValueSource" src="https://cdn-images-1.medium.com/max/884/1*u6MlU-_9cBcJu1tn0WouxA.png" /><figcaption>The Iterators FirstValueSource and SecondValueSource</figcaption></figure><p>And the corresponding Test Method output is as follows:</p><figure><img alt="Output of using the ValueSource parameter-level attribute" src="https://cdn-images-1.medium.com/max/1024/1*tLM3ydjX0tX3weKtHSRpEw.png" /><figcaption>Output of using the ValueSource parameter-level attribute</figcaption></figure><p>There are a lot of other useful NUnit attributes for varying purposes. I have found the ones I described to be the most helpful.</p><p>All code used in this article can be found in my <a href="https://github.com/samiislam/UnitTestingWithNUnit">GitHub</a> repository.</p><p>I hope that my article helps others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1b1528d6793" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protect your ASP.Net Web API from the Client]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://samiislam0306.medium.com/protect-your-asp-net-web-api-from-the-client-7c5c68fab9f4?source=rss-6876e8bcf78e------2"><img src="https://cdn-images-1.medium.com/max/2600/1*rh0LFrSfLnw8kx-tq5DVZQ.jpeg" width="4272"></a></p><p class="medium-feed-snippet">&#x2026; and the Client from your ASP.Net Web API</p><p class="medium-feed-link"><a href="https://samiislam0306.medium.com/protect-your-asp-net-web-api-from-the-client-7c5c68fab9f4?source=rss-6876e8bcf78e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://samiislam0306.medium.com/protect-your-asp-net-web-api-from-the-client-7c5c68fab9f4?source=rss-6876e8bcf78e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c5c68fab9f4</guid>
            <category><![CDATA[contracts]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Sami Islam]]></dc:creator>
            <pubDate>Sat, 15 Aug 2020 09:24:57 GMT</pubDate>
            <atom:updated>2020-08-15T17:26:33.625Z</atom:updated>
        </item>
    </channel>
</rss>