<?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 Afrar Malakooth on Medium]]></title>
        <description><![CDATA[Stories by Afrar Malakooth on Medium]]></description>
        <link>https://medium.com/@mmafrar?source=rss-a4b111702819------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Afrar Malakooth on Medium</title>
            <link>https://medium.com/@mmafrar?source=rss-a4b111702819------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 02:20:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mmafrar/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[How to use Eclipse Transformer to migrate from Tomcat 9 to Tomcat 10]]></title>
            <link>https://mmafrar.medium.com/how-to-use-eclipse-transformer-to-migrate-from-tomcat-9-to-tomcat-10-022b3070d249?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/022b3070d249</guid>
            <category><![CDATA[jakarta]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[apache-tomcat]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 08:12:55 GMT</pubDate>
            <atom:updated>2025-11-01T08:12:55.661Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I was tasked with upgrading a large, outdated codebase from Tomcat 9 to Tomcat 10. This upgrade involves a significant change due to Java EE code ownership transfer from Oracle to the Eclipse Foundation, which resulted in a namespace change from javax to jakarta. Migrating a project to Tomcat can be challenging, especially when the project relies heavily on dependent libraries that are no longer being maintained.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uYs-679N5wV4M9Ok" /><figcaption>Photo by <a href="https://unsplash.com/@legendc713?utm_source=medium&amp;utm_medium=referral">Nabo Ghosh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Eclipse Transformer, a tool introduced to make developers’ lives easy, is a utility that transforms Java binaries. These transformations include JAR and WAR files, mapping changes to Java package names, etc.</p><p><a href="https://repo.maven.apache.org/maven2/org/eclipse/transformer/org.eclipse.transformer.cli/1.0.0/org.eclipse.transformer.cli-1.0.0-distribution.jar">https://repo.maven.apache.org/maven2/org/eclipse/transformer/org.eclipse.transformer.cli/1.0.0/org.eclipse.transformer.cli-1.0.0-distribution.jar</a></p><p>Use the provided link to download the tool. After downloading, change the file extension from .jar to .zip and extract the archive into a folder. The extracted folder should have a structure similar to the one shown below. It contains a command-line tool and the necessary libraries. Note that the command-line tool is compiled using Java 17, so if you have a lower Java version, you may not be able to run it.</p><pre>mmafrar@Afrars-MacBook-Pro transformer % tree<br>.<br>├── META-INF<br>│   └── MANIFEST.MF<br>├── libs<br>│   ├── biz.aQute.bnd.transform-7.0.0.jar<br>│   ├── commons-cli-1.9.0.jar<br>│   ├── org.eclipse.transformer-1.0.0.jar<br>│   ├── org.eclipse.transformer.jakarta-1.0.0.jar<br>│   ├── slf4j-api-1.7.36.jar<br>│   └── slf4j-simple-1.7.36.jar<br>└── org.eclipse.transformer.cli-1.0.0.jar<br><br>2 directories, 8 files</pre><p>Open a Terminal or Command Prompt session inside the folder and run <strong>java -classpath ‘org.eclipse.transformer.cli-1.0.0.jar:libs/*’ org.eclipse.transformer.cli.JakartaTransformerCLI &lt;WAR_FILE&gt; &lt;OUTPUT_FILE&gt;</strong> command to transform a single file.</p><blockquote>NOTE: The key difference in Java classpath handling between Windows and Linux environments lies in the path separator character. Windows uses a semicolon (;) to separate multiple entries in the classpath. Linux (and other Unix-like systems) uses a colon (:) to separate multiple entries in the classpath.</blockquote><p>Alternatively, if you have multiple files to transform or if you need to perform transformations repeatedly, you can integrate the tool with a shell script to accomplish the task. Below is an example of a shell script.</p><pre>#!/bin/bash<br><br># Configuration<br>INPUT_DIR=&quot;build/libs&quot;<br>OUTPUT_DIR=&quot;build/libs/transformed&quot;<br>TRANSFORMER_CLASSPATH=&quot;org.eclipse.transformer.cli-1.0.0.jar:libs/*&quot;<br>MAIN_CLASS=&quot;org.eclipse.transformer.cli.JakartaTransformerCLI&quot;<br><br># Create output directory if it doesn&#39;t exist<br>mkdir -p &quot;$OUTPUT_DIR&quot;<br><br># Check if there are any .war files in the input directory<br>shopt -s nullglob<br>war_files=(&quot;$INPUT_DIR&quot;/*.war)<br>shopt -u nullglob<br><br>if [ ${#war_files[@]} -eq 0 ]; then<br>    echo &quot;No WAR files found in $INPUT_DIR. Skipping transformation.&quot;<br>    exit 0<br>fi<br><br># Transform each WAR file<br>for war in &quot;${war_files[@]}&quot;; do<br>    [[ &quot;$war&quot; == *&quot;$OUTPUT_DIR&quot;* ]] &amp;&amp; continue<br><br>    war_name=$(basename &quot;$war&quot;)<br>    output_file=&quot;$OUTPUT_DIR/$war_name&quot;<br><br>    echo &quot;Transforming $war_name...&quot;<br><br>    java -classpath &quot;$TRANSFORMER_CLASSPATH&quot; &quot;$MAIN_CLASS&quot; &quot;$(realpath &quot;$war&quot;)&quot; &quot;$output_file&quot;<br>done</pre><p>If you’re using Windows, you can write a PowerShell script to perform the task. Please note that PowerShell is a cross-platform tool, and the script below is for Linux (and other Unix-like systems). If you want to run it on Windows, make sure to update the path separator character.</p><pre># Configuration<br>$InputDir = &quot;build/libs&quot;<br>$OutputDir = &quot;build/libs/transformed&quot;<br>$TransformerClasspath = &quot;org.eclipse.transformer.cli-1.0.0.jar:libs/*&quot;<br>$MainClass = &quot;org.eclipse.transformer.cli.JakartaTransformerCLI&quot;<br><br># Create output directory if it doesn&#39;t exist<br>if (-not (Test-Path $OutputDir)) {<br>    New-Item -ItemType Directory -Path $OutputDir | Out-Null<br>}<br><br># Get all .war files in the input directory<br>$WarFiles = Get-ChildItem -Path $InputDir -Filter *.war<br><br>if ($WarFiles.Count -eq 0) {<br>    Write-Host &quot;No WAR files found in $InputDir. Skipping transformation.&quot;<br>    exit 0<br>}<br><br># Transform each WAR file<br>foreach ($War in $WarFiles) {<br>    $WarName = $War.Name<br>    $OutputFile = Join-Path $OutputDir $WarName<br><br>    Write-Host &quot;Transforming $WarName...&quot;<br><br>    &amp; java -classpath $TransformerClasspath $MainClass $War.FullName $OutputFile<br>}</pre><p>Another option is to integrate the tool with the Gradle build process. Whenever you build the project, it will automatically be transformed into Tomcat 10 compatible artifact. Below is a sample script that you can use in the build.gradle file to perform this transformation.</p><pre>configurations {<br>    transformer<br>}<br><br>dependencies {<br>    transformer &#39;org.eclipse.transformer:org.eclipse.transformer.cli:1.0.0&#39;<br>}<br><br>tasks.register(&#39;transform&#39;) {<br>    group = &#39;build&#39;<br>    description = &#39;Transforms WAR files using JakartaTransformerCLI.&#39;<br><br>    doFirst {<br>        // Ensure the transformer configuration is resolved<br>        configurations.transformer.resolve()<br>    }<br><br>    doLast {<br>        def inputDir = layout.buildDirectory.dir(&quot;libs&quot;).get().asFile<br>        def outputDir = layout.buildDirectory.dir(&quot;libs/transformed&quot;).get().asFile<br>        def classpath = configurations.transformer<br>        def mainClass = &#39;org.eclipse.transformer.cli.JakartaTransformerCLI&#39;<br><br>        // Create output directory if it doesn&#39;t exist<br>        if (!outputDir.exists()) {<br>            outputDir.mkdirs()<br>        }<br><br>        def warFiles = fileTree(dir: inputDir, include: [&#39;*.war&#39;], exclude: [&#39;transformed/**&#39;])<br><br>        warFiles.each { warFile -&gt;<br>            def outputFile = new File(outputDir, warFile.name)<br>            println &quot;Transforming ${warFile.name}...&quot;<br><br>            exec {<br>                commandLine &#39;java&#39;, &#39;-classpath&#39;, classpath.asPath, mainClass, warFile.absolutePath, outputFile.absolutePath<br>            }<br>        }<br>    }<br>}<br><br>build.finalizedBy(transform)</pre><p>Happy Tomcat 10 upgrade! Thanks to Apple Intelligence for helping me write better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=022b3070d249" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 things to do in Malaysia’s Pangkor Island]]></title>
            <link>https://mmafrar.medium.com/top-10-things-to-do-in-malaysias-pangkor-island-cca82c7bcfc8?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca82c7bcfc8</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[southeast-asia]]></category>
            <category><![CDATA[tourism]]></category>
            <category><![CDATA[pangkor-island]]></category>
            <category><![CDATA[malaysia]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 16:21:30 GMT</pubDate>
            <atom:updated>2025-10-21T16:21:30.744Z</atom:updated>
            <content:encoded><![CDATA[<p>Pangkor Island is a fantastic duty-free island in Malaysia, especially loved by locals and just a hop, skip, and a jump from Kuala Lumpur, the capital! It’s a bit of a trek to get there, which might make it less popular with tourists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsztZiEHGRmkePSl1ZIh0Q.jpeg" /><figcaption><a href="https://maps.app.goo.gl/Bqa96eg4NcmHabMM7">https://maps.app.goo.gl/Bqa96eg4NcmHabMM7</a></figcaption></figure><p>I recently decided to visit because it’s super easy to get to compared to all the other islands! There aren’t any flights or trains you can take to reach it. You can only get there by bus or driving yourself and then taking a ferry. The island is accessible from two ferry terminals: Lumut and Marina Island. I read online that the ferry ride from Lumut takes about 30 minutes and is cheaper, while the ferry from Marina Island takes only 15 minutes but is a bit pricier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMXOlIR-OvCXYxMkhI5DMQ.jpeg" /><figcaption><a href="https://maps.app.goo.gl/Ken29nquS5a6Q6gk6">https://maps.app.goo.gl/Ken29nquS5a6Q6gk6</a></figcaption></figure><p>I hopped on a bus from KL Sentral to Lumut bus terminal and then spent the night there. The next day, I wandered around the charming little town of Lumut for a few hours. Then, I caught a ferry from Lumut jetty to Pangkor Island. Lumut is a small town that might be famous for Pangkor Island, but there’s not much to do, so you get the feel of a small town anyway.</p><blockquote>I found a stall selling <strong>apam balik</strong> in Lumut, which is one of my favorite snacks!</blockquote><h3>1. Lin Je Kong Temple</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjP3gjRgNlgLfu2p-w2bGg.jpeg" /><figcaption><a href="https://maps.app.goo.gl/tJ82y2Spydjmygnz9">https://maps.app.goo.gl/tJ82y2Spydjmygnz9</a></figcaption></figure><p>After checking out all the other spots, this is definitely my favorite! It’s a cute little seaside Chinese-style temple tucked away outside the main tourist area. What really made me pick it out wasn’t the temple itself—it was the most clean and least crowded beach I could find on the island. The water was a beautiful green and crystal clear, and it wasn’t too deep. I definitely miss taking a dip in this beach!</p><h3>2. Masjid Al-Badr (Floating Mosque)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GONebubhMtYI1wz9QHD2nA.jpeg" /><figcaption><a href="https://maps.app.goo.gl/y7iVgvSznL97cR947">https://maps.app.goo.gl/y7iVgvSznL97cR947</a></figcaption></figure><p>This Masjidh is absolutely stunning! Even though it’s known as a floating mosque, the inside is just gorgeous, with beautiful Islamic scripts and Arabic calligraphy. You absolutely have to check out this Masjidh while you’re on your Pangkor vacation!</p><h3>3. Fu Lin Kong Temple</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4oXzenBk_Qhe52PH5tFVdA.jpeg" /><figcaption><a href="https://maps.app.goo.gl/rJ4Q723Zn6dHtSxY8">https://maps.app.goo.gl/rJ4Q723Zn6dHtSxY8</a></figcaption></figure><p>This is a super popular Taoist temple on the island! I had to weave through some residential areas to get there. The temple is huge and has this amazing structure that looks like the Great Wall of China. If you’re up for a climb, you can reach the top of the staircase and get a breathtaking view, just like in the photo!</p><h3>4. Teluk Nipah Beach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8cAoBeIwkdgqRV37Esix8Q.jpeg" /><figcaption><a href="https://maps.app.goo.gl/oFNHxyMZnZHHiDm76">https://maps.app.goo.gl/oFNHxyMZnZHHiDm76</a></figcaption></figure><p>This is the most popular beach on the island. I purposefully didn’t place this in Top 3 attractions becuase it’s an overcrowsed area. Honestly i didn’t enjoy visiting this beach. The road besided the beach has stalls on both sides and it’s very congested. During my stay I joined for snorkeling sessions which started from this beach.</p><blockquote>Words from my tour guide “Don’t come here, it is hell”</blockquote><h3>5. Fire Show Pasir Bogak</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKLQUTUApFHOmKtg4ESd7g.jpeg" /><figcaption><a href="https://maps.app.goo.gl/c9EqFgVugkJPXGJh9">https://maps.app.goo.gl/c9EqFgVugkJPXGJh9</a></figcaption></figure><p>Another awesome beach on the island is Pasir Bogak, and it was super close to my hotel! Sadly, I didn’t get a chance to hit the beach while I was there, but I did manage to catch the fire show. It’s not the first time I’ve been to a fire show—I actually saw one during my Langkawi trip. The Pasir Bogak fire show didn’t quite wow me, but it was still pretty cool.</p><h4>Just a heads-up: The crew in Pangkor seemed a bit less experienced than the Langkawi crew. And get this—once, a fire stick actually fell onto the audience!</h4><h3>6. Pangkor Hill</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESCw-9BhDoQ9LK-0kolTWw.jpeg" /><figcaption><a href="https://maps.app.goo.gl/NubdG2KemWMNr8GP7">https://maps.app.goo.gl/NubdG2KemWMNr8GP7</a></figcaption></figure><p>I was really not expecting much when I visited Pangkor Hill, especially since it was my last day of the trip and I had a half-day to spare. I did some research the night before, but it wasn’t too promising. I even saw a review on Google Maps saying Pangkor Hill doesn’t have a view! It was a gloomy morning on my last day, but I still decided to check it out. Just a heads-up: Google Maps might not be the best guide if you’re planning to visit. The rainbow staircase to Pangkor Hills is actually near <strong><em>Voyage Retreat</em></strong> holiday inn. After climbing it, I thought the view from the top wasn’t as bad as the reviews suggested. Ultimately, it’s up to you whether you want to go!</p><h3>7. Dutch Fort</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LuZZnCyyzPNmB84P_QYOlQ.jpeg" /><figcaption><a href="https://maps.app.goo.gl/sKZNyCg9FTDyeZn18">https://maps.app.goo.gl/sKZNyCg9FTDyeZn18</a></figcaption></figure><p>I went to this place with really high hopes, but it didn’t quite live up to my expectations. I’ve also visited Dutch forts like Galle Fort in Sri Lanka and the fort in Bandaraya Melaka before. But this one was much smaller, and there wasn’t much to do nearby. You might want to swing by this spot on your way to the floating mosque!</p><h3>8. Masjid Al-Khairiyah (Chinese Mosque)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_xtzSzMiIk4bZDDYxZLKQ.jpeg" /><figcaption><a href="https://maps.app.goo.gl/dfouPxtHvZq1U58U7">https://maps.app.goo.gl/dfouPxtHvZq1U58U7</a></figcaption></figure><p>This is another cool tourist spot on the island, nestled near Pangkor Hill and Fu Lin Kong temple. It’s my second time checking out a Masjidh with Chinese architectural flair. It’s not super common to see Masjidhs like this, but there are some Chinese Majidhs popping up across different Malaysian states now. Visiting a Masjidh with Chinese architectural elements would be a fresh experience for both Muslims and non-Muslims!</p><h3>9. Blue Eyes Paradise</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ocWNhxoB3Ht48CdG674hFQ.jpeg" /><figcaption><a href="https://maps.app.goo.gl/5FJTtMxwzznF1KD3A">https://maps.app.goo.gl/5FJTtMxwzznF1KD3A</a></figcaption></figure><p>This is a super popular shopping spot right near the Pangkor jetty! If you’re stuck waiting a few hours to get to your jetty, like I was, you absolutely have to check it out. I went on a long weekend, and it was rainy, so the place was buzzing with locals. If you’re looking for perfumes, chocolates, or kitchenware, the duty-free shops are a must-visit. Oh, and you’ll find ikan blis (dried fish) and shrimp everywhere in Pangkor and Lumut—it’s a local favorite!</p><h3>10. Galeri Pangkor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUJzo6SdjihR6JJE8i6gSQ.jpeg" /><figcaption><a href="https://maps.app.goo.gl/s3VzY6TvN3t9ymje7">https://maps.app.goo.gl/s3VzY6TvN3t9ymje7</a></figcaption></figure><p>You absolutely HAVE to visit a museum when you’re in a new place—it’s the best way to dive into the history! I couldn’t find this place in any of the online guides I looked at. I just stumbled upon it while I was passing by. Even though the Pangkor Gallery has only two rooms with exhibits, you can still learn a lot there. And here’s something I noticed as a foreigner: most of the texts are in Bhasha Meleyu only.</p><h4>If you’re thinking of heading to Pangkor Island soon, I’d love to share my experience with you. I hope it helps you plan an amazing vacation! Just wanted to let you know that I’ve been using Apple Intelligence to give my content a little boost!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca82c7bcfc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[certgen: A CLI tool to generate base64-encoded TLS certificates]]></title>
            <link>https://mmafrar.medium.com/certgen-a-cli-tool-to-generate-base64-encoded-tls-certificates-85a49aeba230?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/85a49aeba230</guid>
            <category><![CDATA[tls-certificate]]></category>
            <category><![CDATA[certificate-management]]></category>
            <category><![CDATA[golang-tools]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 01:37:07 GMT</pubDate>
            <atom:updated>2025-10-12T01:37:07.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nbiRsZtxuRYzmj0S" /><figcaption>Photo by <a href="https://unsplash.com/@franckinjapan?utm_source=medium&amp;utm_medium=referral">Franck</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Over the past ten months, I’ve been exploring <a href="https://github.com/crc-org/crc"><strong>OpenShift Local</strong></a>, diving deep into its unique architecture and tooling. One of the key differences between OpenShift and other Kubernetes distributions is its <strong>strict certificate validation</strong>. This meant I had to learn how to generate certificates in various formats to meet different requirements.</p><p>While I haven’t yet explored Windows 10-specific CLI tools for certificate management, I did come across <a href="https://keystore-explorer.org/"><strong>KeyStore Explorer</strong></a>, a popular GUI-based option. However, since it’s written in Java, it requires a Java runtime environment — which may or may not be bundled with your installation.</p><p>To streamline the process, I turned to <strong>Windows Subsystem for Linux (WSL)</strong>. My initial attempt was with <strong>Ubuntu</strong>, but I ran into issues where some OpenSSL commands didn’t behave as expected. This was likely due to version differences in OpenSSL.</p><p>Eventually, I switched to <strong>Oracle Linux</strong> within WSL, and that made all the difference. I was able to execute the necessary commands and complete the certificate generation tasks successfully.</p><p>Recently, one of our customers ran into an issue within their OpenShift cluster: they had accidentally misconfigured their certificates, making some of the services unaccessible. I was tasked with helping them resolve the situation.</p><p>In our setup, certificates are dynamically generated during <a href="https://helm.sh/"><strong>Helm</strong></a> chart installation using Go’s templating engine. This approach works well during initial deployment, but it posed a challenge in this case — recreating the cluster was not an option.</p><p>So, we had to find a way to regenerate the certificates <strong>without</strong> tearing down and rebuilding the entire environment. This required a deep dive into how our Helm charts handle certificate generation, and how we could manually intervene to restore functionality.</p><p>I ended up building a lightweight, cross-platform CLI tool in Go to streamline certificate and key pair generation for OpenShift deployments with the help of Microsoft Copilot. The tool is open-source, and you can explore the source code on GitHub via the link below.</p><p><a href="https://github.com/mmafrar/certgen">GitHub - mmafrar/certgen: A CLI tool to generate base64-encoded TLS certificates</a></p><p>Managing certificates used to be a tedious part of my workflow — especially when working with OpenShift. This tool streamlines the process by allowing me to generate self-signed or custom CA-signed certificates along with their key pairs effortlessly.</p><p>One of the key requirements in OpenShift is that the private key must be in <strong>PKCS#1 format</strong>. Additionally, both the certificate and key are typically <strong>Base64-encoded</strong>, which the tool handles automatically. I often had to manually convert PEM files to Base64 — an extra step that was both time-consuming and error-prone.</p><p>Generating self-signed certificates doesn’t have to be complicated or platform-dependent. With the certgen tool, I can easily create a certificate and key pair using a single command on Windows:</p><blockquote>certgen.exe — common-name=example.com — days-valid=1825</blockquote><p>On macOS, the same tool allows me to generate custom CA-signed certificates by simply adding a few extra parameters:</p><blockquote>./certgen — common-name=example.com — days-valid=1825 — ca-crt=./ca.crt — ca-key=./ca.key — pkcs-format=pkcs8</blockquote><p>What makes certgen especially convenient is its consistent behavior across operating systems. I don’t need to memorize OS-specific commands or syntax. Another major advantage is that it&#39;s compiled to native code, so there&#39;s no need for a runtime environment like the Java Runtime Environment (JRE).</p><p>If you want to try out the tool check the releases page in GitHub repository. For the detailed documentation checkout the <strong>README.md</strong>.</p><p>If you’d like to clone the code and run the project yourself, start by ensuring that Go is installed on your machine. You can verify this by running go version in your terminal. This tool was built using Go 1.25.1, so it&#39;s recommended to use that version or later.</p><p>Once Go is set up, navigate to the project directory. To run the project directly without compiling, use the command go run main.go. If you prefer to build the project first, run go build, which will generate an executable file.</p><p>After building, you can run the executable using certgen.exe on Windows or ./certgen on Linux/macOS, depending on your operating system.</p><p>Additionally, I’ve checked in build scripts to generate artifacts for multiple operating systems.</p><ul><li>If you’re on <strong>Windows</strong>, execute the build.ps1 script using <strong>PowerShell</strong>.</li><li>If you’re on <strong>Linux/macOS</strong>, run the build.sh script to generate the artifacts.</li></ul><p>Since Microsoft has made PowerShell cross-platform, you can also run the build.ps1 script on Linux/macOS. To verify whether PowerShell is installed on your system, run pwsh -Version which will display the installed version of PowerShell, confirming it’s available for use.</p><blockquote>Disclaimer: I have utilized Microsoft Copilot to enhance the quality of this story.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85a49aeba230" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to record webcam and screen using QuickTime Player on macOS]]></title>
            <link>https://mmafrar.medium.com/how-to-record-webcam-and-screen-using-quicktime-player-on-macos-00517494f46f?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/00517494f46f</guid>
            <category><![CDATA[webcam]]></category>
            <category><![CDATA[screen]]></category>
            <category><![CDATA[quicktime-player]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[recording]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 11:58:54 GMT</pubDate>
            <atom:updated>2025-04-28T11:58:54.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nzv7hHByDHj6Pi2f" /><figcaption>Photo by <a href="https://unsplash.com/@jakobowens1?utm_source=medium&amp;utm_medium=referral">Jakob Owens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hey there! I’m here to help you out with recording your webcam and screen using QuickTime Player on macOS. Let’s break it down step by step. Open QuickTime Player on your Mac, navigate to the menubar, and click <strong>File</strong>. Then, select the <strong>New Movie Recording</strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNSkrMQ-EaXOD94OpSv6kw.png" /><figcaption>QuickTime Player &gt; File &gt; New Movie Recording</figcaption></figure><p>Now, you’ll see your webcam view appear on your screen. You can resize it to your expected size and position it as you like on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wJCX_6tQX8_5u9vZY0_9g.png" /><figcaption>QuickTime Player webcam view</figcaption></figure><p>Navigate to the menubar again and click <strong>View</strong>. Then, select the <strong>Float on Top</strong> option. This will ensure that the webcam remains on top when you switch between different windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*CV7n267ke0cd5tfH7UFwsQ.png" /><figcaption>QuickTime Player &gt; View &gt; Float on Top</figcaption></figure><p>Then, navigate to the menubar and click <strong>File</strong>. Next, select the <strong>New Screen Recording</strong> option. Now, you can record your screen while your webcam is displayed on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*NeLX4kctbNoUoGVaWvrEmQ.png" /><figcaption>QuickTime Player &gt; File &gt; New Screen Recording</figcaption></figure><p><em>Thanks to Apple Intelligence for helping me to write better.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00517494f46f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I failed MongoDB Java Associate Developer Exam]]></title>
            <link>https://mmafrar.medium.com/i-failed-mongodb-java-associate-developer-exam-b639c869edd3?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/b639c869edd3</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Sun, 01 Dec 2024 13:15:54 GMT</pubDate>
            <atom:updated>2024-12-01T13:15:54.965Z</atom:updated>
            <content:encoded><![CDATA[<h3>I failed <strong>MongoDB Associate </strong>Java <strong>Developer Exam</strong></h3><p>It’s been almost 3 years since <a href="https://www.credly.com/badges/c8130680-c52f-46d2-93b3-74dcc2383b0e">I got my AWS Certified Developer — Associate certification</a>. I wasn’t really into certifications before, but 8 months ago, I signed up for the <a href="https://education.github.com/pack">GitHub Student Developer Pack</a>. It’s got a bunch of cool benefits, one of which was $50 in MongoDB Atlas Credits, plus access to MongoDB Compass and MongoDB University. And guess what? <strong>MongoDB University has free certifications that are worth a whopping $150!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PgQPnBsZD9dpfUcV" /><figcaption>Photo by <a href="https://unsplash.com/@punttim?utm_source=medium&amp;utm_medium=referral">Tim Gouw</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>What is MongDB? (Source: Wikipedia)</blockquote><p>MongoDB is a <a href="https://en.wikipedia.org/wiki/Source-available">source-available</a>, <a href="https://en.wikipedia.org/wiki/Cross-platform">cross-platform</a>, <a href="https://en.wikipedia.org/wiki/Document-oriented_database">document-oriented database</a> program. Classified as a <a href="https://en.wikipedia.org/wiki/NoSQL">NoSQL</a> database product, MongoDB utilizes <a href="https://en.wikipedia.org/wiki/JSON">JSON</a>-like documents with optional <a href="https://en.wikipedia.org/wiki/Database_schema">schemas</a>. MongoDB is developed by <a href="https://en.wikipedia.org/wiki/MongoDB_Inc.">MongoDB Inc.</a> and current versions are licensed under the <a href="https://en.wikipedia.org/wiki/Server_Side_Public_License">Server Side Public License</a> (SSPL).</p><blockquote>MongoDB Associate Java Developer Exam</blockquote><p>MongoDB has been around for 15 years and is getting more and more popular. It has a different way of working with databases compared to traditional Structured Query Language. So, the developers need to rethink how they work with databases. As part of their ongoing efforts, MongoDB organizes meetups, trainings, conferences, and other events to help developers learn more about the platform. One of their cool ways to do this is through certifications. MongoDB’s certifications are recognized by professional institutions and the tech community worldwide. They show that you’ve mastered MongoDB applications.</p><blockquote>How to get a FREE MongoDB certification voucher?</blockquote><p>If you don’t want to pay for a MongoDB certification, sign up for GitHub Student Developer Pack. Then sign in to MongoDB Atlas with GitHub or connect your GitHub account to MongoDB. Complete a certification learning path to get your free voucher.</p><blockquote>How I prepared myself for the MongoDB Associate Java Developer Exam?</blockquote><p>Initially, as part of preparing for the certification exam, I followed the <a href="https://learn.mongodb.com/learn/learning-path/mongodb-java-developer-path">MongoDB Java Developer Path</a> provided by MongoDB University. I thoroughly went through each unit, which included video lectures, hands-on labs, and quizzes.</p><p>Then, I read the MongoDB Documentation, available at <a href="https://www.mongodb.com/docs/manual,">https://www.mongodb.com/docs/manual</a>, to gain further insights into the topics covered in the learning path.</p><p>I also had the chance to attend the MongoDB.local event in my city, which was an awesome learning experience!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRuYcSe2lbJ2aMbKnLY9-w.jpeg" /><figcaption>MongoDB.local Kuala Lumpur</figcaption></figure><blockquote>My associate developer certification exam outcome</blockquote><blockquote>Thank you for taking the Associate Developer Java Certification Exam. Unfortunately, you did not pass the exam. We recommend reviewing the exam guide if you plan to retake the exam.</blockquote><blockquote><a href="https://www.mongodb.com/community/forums/t/mongodb-developer-exam-results/247069/3">Why does MongoDB not disclose the cut score?</a></blockquote><p><strong>Confidentiality and Fairness</strong> — Disclosing the cut score could potentially enable candidates to game the system by narrowly focusing on the exact passing score rather than genuinely mastering the material.</p><p><strong>Psychometrics</strong> — Determining a fair and valid cut score is a complex process that involves psychometric analysis. Psychometricians take into account factors like question difficulty, candidate performance, and exam reliability to establish a passing score. These calculations may not lend themselves to a simple, easily communicable number.</p><blockquote>Recommendation on additional learning materials</blockquote><p><a href="https://gabriel-dev.medium.com/c100dev-mongodb-developer-associate-exam-56c5ccf662cd">C100DEV: MongoDB Developer Associate Exam</a></p><p>After failing the exam, I realized how challenging the Associate Developer exam is. I came across the above Medium story that might be useful for anyone preparing for the exam. Below are the links to two important materials mentioned in that Medium story.</p><p><a href="https://www.udemy.com/course/mongodb-the-complete-developers-guide/?couponCode=CMCPSALE24">MongoDB — The Complete Developer’s Guide 2024</a></p><p><a href="https://www.oreilly.com/library/view/mongodb-the-definitive/9781491954454/">MongoDB: The Definitive Guide, 3rd Edition</a></p><p><em>Thanks to Apple Intelligence for helping me to write better.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b639c869edd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Apache Kafka and Spring Boot]]></title>
            <link>https://mmafrar.medium.com/getting-started-with-apache-kafka-and-spring-boot-9fb4874a7c25?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb4874a7c25</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[confluent]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 14:20:08 GMT</pubDate>
            <atom:updated>2022-02-02T04:30:58.408Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to another Spring Boot tutorial. Today let’s have a look on how to get started with Apache Kafka on Spring Boot. This tutorial is fully based on <a href="https://developer.confluent.io/get-started/spring-boot">Getting Started with Apache Kafka and Spring Boot</a>, while making it a bit better to follow. Hence all the credits goes to original authors. You need to have a Java 11 environment and Confluent account to follow along.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JcypnBSw-yBsvkkx" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Head on to <a href="https://www.confluent.io/">https://www.confluent.io</a> and signup for an account or login if you have an existing one. Within the Confluent dashboard click on <strong>Add cluster</strong> button. In the create cluster wizard choose either basic or standard for cluster type. On the second step choose your preferred cloud service provider to provision the resources. Finally provide a name for the cluster and launch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOa6po2IGwvnFoeHWHqOWg.png" /><figcaption>Confluent Cloud</figcaption></figure><p>From dashboard navigate to Cluster overview -&gt; Cluster settings and <strong>make a note of Bootstrap server URL</strong>. Then navigate to Data integration -&gt; API Keys and <strong>create a new key with scope Global access</strong>. These values will be needed later when setting up the Spring Boot application. Finally navigate to <strong>Topics</strong> from the side pane and add a new topic named <strong>purchases</strong> with default values.</p><p>Now let’s headon to <a href="https://start.spring.io/">Spring Initializr</a> for setting up a new Spring Boot project. Refer to the below screenshot and create a new project as instructed. Once done download and open it on your favourite IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5chPKYWOz38DOlYhj7rVAg.png" /><figcaption>Spring Initializr</figcaption></figure><p>Navigate to <strong>src/main/resources</strong> folder and create a file named <strong>application.yaml</strong>. Make sure to replace the placeholders with actual values for Bootstrap Server URL, Cluster API Key and Cluster API Secret.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f404f2b5b6f9faf0e804bc35b60578de/href">https://medium.com/media/f404f2b5b6f9faf0e804bc35b60578de/href</a></iframe><p>Then open the <strong>SpringBootWithKafkaApplication.java</strong> file and make changes to it referring to the below Gist.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8467b4fefdf195f9cf2a8288d510aff7/href">https://medium.com/media/8467b4fefdf195f9cf2a8288d510aff7/href</a></iframe><p>After that create a new Java class called Producer under com.example.kafka package and add the below content into it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f48184764ffd061b8c6fa8be7f2bb3ae/href">https://medium.com/media/f48184764ffd061b8c6fa8be7f2bb3ae/href</a></iframe><p>Finally create another class called Consumer under com.example.kafka package and add the below content into it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e9c0b3f4e92a3e14a00ac36ed33eae0c/href">https://medium.com/media/e9c0b3f4e92a3e14a00ac36ed33eae0c/href</a></iframe><p>Run the below command to run the Spring Boot application as Producer.</p><blockquote>./gradlew bootRun — args=’ — producer’</blockquote><p>Run the below command to run the Spring Boot application as Consumer.</p><blockquote>./gradlew bootRun — args=’ — consumer’</blockquote><p>Happy Coding! Below is a DEV Community video I have published. Also, you might be interested to check my Medium story <a href="https://medium.com/nerd-for-tech/writing-unit-tests-in-spring-boot-with-junit-5-9498e204de34">Writing unit tests in Spring Boot with JUnit 5</a>.</p><p><a href="https://dev.to/mmafrar/adding-a-launch-screen-to-an-ios-app-4dp8">Adding a launch screen to an iOS app</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb4874a7c25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing unit tests in Spring Boot with JUnit 5]]></title>
            <link>https://mmafrar.medium.com/writing-unit-tests-in-spring-boot-with-junit-5-9498e204de34?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/9498e204de34</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[junit-5]]></category>
            <category><![CDATA[spring]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Mon, 28 Jun 2021 18:50:28 GMT</pubDate>
            <atom:updated>2022-03-21T03:29:46.353Z</atom:updated>
            <content:encoded><![CDATA[<p>Unit tests are an integral part of Test Driven Development and Continuous Integration practices. Although there are a couple of frameworks available to implement this in Java, JUnit has been popularly used for a long time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I5krU_M1oKqioO1Q" /><figcaption>Photo by <a href="https://unsplash.com/@homajob?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>This Medium story will be a continuation of my previous Spring Boot tutorials and in this story I’ll be focusing on writing unit tests for a project I have previously implemented. I’ll be using a Spring Boot MVC project which uses Gradle as the build tool, but you should be good to go even if you prefer Maven.</em></p><p>Feel free to fork the below example if you don’t have a project to continue,</p><p><a href="https://github.com/mmafrar/spring-mvc-crud-example">mmafrar/spring-mvc-crud-example</a></p><p>In this example we’ll be writing unit tests for ContactService.java inside the package com.example.demo.service in the above repository. Create class ContactServiceTest inside src/test/java/com/example/demo/service directory as shown in the below given image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*RO-N1x0rU7juysCmOnvfiQ.png" /><figcaption>ContactServiceTest.java</figcaption></figure><p>Then add the below given annotations at class level to indicate that this is a test class and to instruct JUnit to execute all test cases on the same test instance it creates.</p><pre>@SpringBootTest<br>@TestInstance(TestInstance.Lifecycle.<strong><em>PER_CLASS</em></strong>)<br><strong>public class </strong>ContactServiceTest {</pre><p>Next auto wire the ContactService class into the test class. Use before all and after all annotations to create and delete the data needed to run the test cases.</p><pre>@Autowired<br>ContactService <strong>contactService</strong>;<br><br>@BeforeAll<br><strong>void </strong>setUp() {<br>    Contact contact = <strong>new </strong>Contact();<br>    contact.setName(<strong>&quot;Mohamed Afrar&quot;</strong>);<br>    contact.setEmail(<strong>&quot;example@gmail.com&quot;</strong>);<br>    contact.setCountry(<strong>&quot;Sri Lanka&quot;</strong>);<br>    <strong>contactService</strong>.saveContact(contact);<br>}<br><br>@AfterAll<br><strong>void </strong>tearDown() {<br>    <strong>contactService</strong>.deleteById(1);<br>}</pre><p>Then we’ll be writing test cases for findAll, findById and updateContact methods, one test case per method. Refer test annotated methods in the below given Gist.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad6f02ad8fb6e0559b3d703192308eee/href">https://medium.com/media/ad6f02ad8fb6e0559b3d703192308eee/href</a></iframe><p>Once your test class is ready you can run it either via IDE or build tool. I’ll be running the tests through IDE, but if you want to try it via the build tool use <strong>./gradlew test</strong> command for Gradle. Below given image shows test execution results through IDE,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*uaMp9vIi27vJ8Z_N1Enf4g.png" /><figcaption>Test Results</figcaption></figure><p>Test class created above will be run against an embedded H2 database. But running tests against a database is not a good practice. Hence we need to integrate frameworks like Mockito in order to mock database calls etc.</p><p>Happy Coding! Below is a DEV Community video I have published. Also, you might be interested to check my Medium story <a href="https://towardsaws.com/deploying-spring-boot-mvc-with-jsp-project-to-aws-elastic-beanstalk-dc665b6b8849">Deploying Spring Boot MVC with JSP project to AWS Elastic Beanstalk</a>.</p><p><a href="https://dev.to/mmafrar/configuring-multiple-data-sources-with-spring-boot-2-and-spring-data-jpa-5c95">Configuring multiple data sources with Spring Boot 2 and Spring Data JPA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9498e204de34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Spring Boot MVC with JSP project to AWS Elastic Beanstalk]]></title>
            <link>https://towardsaws.com/deploying-spring-boot-mvc-with-jsp-project-to-aws-elastic-beanstalk-dc665b6b8849?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc665b6b8849</guid>
            <category><![CDATA[jsp]]></category>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Sun, 06 Jun 2021 01:18:22 GMT</pubDate>
            <atom:updated>2021-11-18T01:35:20.448Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: Try this at your own risk. AWS resources required for DemoApplication should be covered under the free tier. If you’re not on a free tier make sure to clean up the resources provisioned soon after trying this out. Check if there are any leftovers remaining inside an Amazon S3 bucket after deleting the application.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*51AGIDOQnCB3eSEJ" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are multiple options available when it comes to the deployment of a Spring Boot project. In this story, we’ll be focusing on how to deploy a project with JSP pages using a service available in Amazon Web Services.</p><p>Throughout the last couple of Medium stories, I have discussed how to create a Spring Boot project and adding different features to those projects. In order to proceed with this story you need to have a Spring Boot MVC project, if you don’t have one check out my Medium story <a href="https://mmafrar.medium.com/implementing-spring-boot-mvc-crud-operations-with-jpa-and-jsp-4dfa1882b4a3">Implementing Spring Boot MVC CRUD operations with JPA and JSP</a> or feel free to clone the below repository.</p><p><a href="https://github.com/mmafrar/spring-mvc-crud-example">mmafrar/spring-mvc-crud-example</a></p><p>Once you have a project to work on, open <strong>build.gradle</strong> file and under plugins change <em>id ‘java’</em> to <em>id ‘war’</em> and add the below dependencies to the project.</p><pre>implementation <strong>&#39;org.apache.tomcat.embed:tomcat-embed-jasper&#39;<br></strong>implementation <strong>&#39;org.springframework.boot:spring-boot-starter-tomcat&#39;</strong></pre><p>If you’re using Maven as the build tool, update the <strong>pom.xml</strong> file. Then open the main Spring Boot application and make below changes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f3e045fc542232ddc736a9c157a9688/href">https://medium.com/media/9f3e045fc542232ddc736a9c157a9688/href</a></iframe><p>Next login to AWS Management Console. From the search bar look for Elastic Beanstalk and navigate to the page. Click on <strong>Create Application</strong> button to open Create a web app form. Make sure to provide a suitable name for the application. Select the values in the image for the dropdowns. Upload *.war file and click on Create application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*gDpAahK_r8azaR_QWxonpA.png" /><figcaption>Create a web app form</figcaption></figure><p>You’ll be displayed with the steps and progress on provisioning the resources needed to deploy the application. This will take some time based on the size and resources required for the project. If the deployment was successful you’ll be seeing the shown screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7czW0MbD0u0IiBT8fHBMrQ.png" /><figcaption>Environment page</figcaption></figure><p>Click on the domain name displayed on the screen to open the application. Use <strong>Upload and deploy</strong> button to publish a different version of the code.</p><p>Happy Coding! Below is a DEV Community video I have published. Also, you might be interested to check my Medium story <a href="https://medium.com/geekculture/setting-up-continuous-integration-in-spring-boot-with-github-and-circleci-f2e68690e138">Setting up continuous integration in Spring Boot with GitHub and CircleCI</a>.</p><p><a href="https://dev.to/mmafrar/how-to-add-an-icon-for-an-ios-app-312c">How to add an icon for an iOS app</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc665b6b8849" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/deploying-spring-boot-mvc-with-jsp-project-to-aws-elastic-beanstalk-dc665b6b8849">Deploying Spring Boot MVC with JSP project to AWS Elastic Beanstalk</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up continuous integration in Spring Boot with GitHub and CircleCI]]></title>
            <link>https://medium.com/geekculture/setting-up-continuous-integration-in-spring-boot-with-github-and-circleci-f2e68690e138?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2e68690e138</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[circleci]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Wed, 26 May 2021 20:02:55 GMT</pubDate>
            <atom:updated>2022-03-11T05:43:18.578Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuous integration is a primary DevOps practice allowing all developers’ working copies to be merged to a shared repository several times a day. At present there are several tools available to set up this, namely GitLab Runners, AWS CodeBuild, GitHub Actions, Travis CI &amp; Jenkins etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tAPdMOb8CE4W4AVY" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this story I’ll be focusing on how to set up this with CircleCI for a GitHub repository. I’ll be using a Spring Boot MVC project which uses Gradle as the build tool, but you should be good to go even if you prefer Maven. To proceed with this tutorial you need to have your Spring Boot project hosted in a GitHub repository, if you don’t have one feel free to fork the below example.</p><p><a href="https://github.com/mmafrar/spring-mvc-crud-example">mmafrar/spring-mvc-crud-example</a></p><p>Next visit CircleCI website and login with your GitHub account. Once you have logged in you’ll be landing on the <strong>Dashboard</strong> page. From the left hand pane click on <strong>Projects</strong> menu and you should be redirected to the below shown screen. From the list of projects displayed click on <strong>Set Up Project</strong> button for the one you’re planning to proceed with this tutorial. You should be displayed with sample configs for the project, choose the right one based on your programming language and build tool. I have chosen <strong>Java (Gradle)</strong>, if your project uses Maven choose <strong>Java (Maven)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kh_36pQu9Uoz8pa1wQthLA.png" /><figcaption>Projects</figcaption></figure><p>You’ll be displayed with a template <em>config.yml</em> file, given below is an example for Java projects based on Gradle. Click on <strong>Commit and Run</strong> button. This will create a <em>config.yml</em> file inside the <em>.circleci</em> folder at the root of your repository on a new branch called <em>circle-ci-setup</em>. If you are happy with this configuration you can merge it into your main branch later, or continue to make changes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba8e27079b5428d0e9fffa3c3906d725/href">https://medium.com/media/ba8e27079b5428d0e9fffa3c3906d725/href</a></iframe><p>If the <strong>Commit and Run</strong> option didn’t work (as it did for me a couple of times), you should be displayed with manual steps to get that working. Commit the file manually to your repository and push the change. Then click on the <strong>Start Building</strong> button to trigger the job manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzZjSi4PY_Yp9-sf2cqPDw.png" /><figcaption>Job Steps</figcaption></figure><p>Next navigate to the <strong>Dashboard</strong> page from the left hand pane and click on hyperlink with the text <strong>build</strong>. You’ll be displayed with a summary of the job as shown above.</p><p>Happy Coding! Below is a DEV Community video I have published. Also you might be interested to check my Medium story <a href="https://mmafrar.medium.com/adding-a-launch-screen-to-an-ios-app-ac197075b25b">Adding a launch screen to an iOS app</a>.</p><p><a href="https://dev.to/mmafrar/creating-a-simple-browser-for-ios-2b3">Creating a simple browser for iOS</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2e68690e138" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/setting-up-continuous-integration-in-spring-boot-with-github-and-circleci-f2e68690e138">Setting up continuous integration in Spring Boot with GitHub and CircleCI</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating animated routes with Maps SDK for iOS and Directions API]]></title>
            <link>https://mmafrar.medium.com/creating-animated-routes-with-maps-sdk-for-ios-and-directions-api-4419b6d421ed?source=rss-a4b111702819------2</link>
            <guid isPermaLink="false">https://medium.com/p/4419b6d421ed</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[google-maps-sdk]]></category>
            <category><![CDATA[google-directions-api]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Afrar Malakooth]]></dc:creator>
            <pubDate>Wed, 12 May 2021 23:00:03 GMT</pubDate>
            <atom:updated>2022-03-11T05:45:45.539Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes you might have come across some requirements like displaying an animated route between two points on Google Maps, not necessarily have to be in a mobile application but for purposes like video editing etc. as I did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kxoJXNW8GrwweUPG" /><figcaption>Photo by <a href="https://unsplash.com/@tamas_tuzeskatai?utm_source=medium&amp;utm_medium=referral">Tamas Tuzes-Katai</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This will be an extension of <a href="https://levelup.gitconnected.com/animated-routes-on-google-maps-5de4f32261d7">Animated Routes on Google Maps</a> story written by <a href="https://medium.com/u/d516315b7918">Ryan NHP</a> and published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a>, as I found a beginner might be having a hard time getting started with above tutorial. In order to proceed with this you need to have macOS with Xcode 11 or higher installed and a simulator or a physical device running on iOS 13 or higher.</p><p>In your browser, navigate to <a href="https://console.cloud.google.com/apis/dashboard">https://console.cloud.google.com</a> and login with your Google account. Either use an existing project or create a new one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*QQe-YRHj9hWF_sveA0ZScQ.png" /><figcaption>Select a project</figcaption></figure><p>Navigate to <strong>APIs &amp; Services</strong> menu on left hand pane. Click on <strong>Credentials</strong> menu and create an API key for your usage. Then go back to <strong>Dashboard</strong> menu and navigate to <strong>Enable APIs and Services</strong> link. Search for Maps SDK for iOS and Directions API and navigate inside each of the APIs to enable them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*KUR8oyNIbhqRIqyAFcKW-g.png" /><figcaption>APIs &amp; Services</figcaption></figure><p>In order to use Directions API you need to have a billing account linked. <em>Don’t worry, you won’t be charged anything for this tutorial’s usage.</em> Click on <strong>Google Cloud Platform</strong> text on top left hand corner. Navigate to <strong>Billing</strong> menu and link an existing billing account or create a new one.</p><p><a href="https://github.com/ryanisnhp/AnimatedRoute">ryanisnhp/AnimatedRoute</a></p><p>Once you’re done setting up the Google APIs, clone the above GitHub repository. Open a terminal window inside the cloned folder and run <strong>pod install</strong> in order to install CocoaPods dependencies. Then open the project in Xcode. Create a file named <strong>Constant.swift</strong> inside AnimatedRoute folder and add the below text. Replace the placeholder with API key generated above.</p><blockquote>let DGoogleAPIBrowserKey=”&lt;YOUR_GOOGLE_API_KEY&gt;”</blockquote><p>After that open <strong>AnimatedRoute/Controller/ViewController.swift</strong> file and find the variables named a, b. Replace latitude and longitude for those variables and/or add additional variables as needed. If you have created additional variables make sure to add them to parameter array passed to <strong>addMarkersOnMap</strong> and <strong>getRoute</strong> functions. Once you’re done with the changes run the application on a simulator or a physical device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*Iqc9DObN8rMgpe_tI-Zy5A.png" /><figcaption>Animated routes inside a simulator</figcaption></figure><p>Happy Coding! Below is a DEV Community video I have published. Also you might be interested to check my Medium story <a href="https://mmafrar.medium.com/adding-a-launch-screen-to-an-ios-app-ac197075b25b">Adding a launch screen to an iOS app</a>.</p><p><a href="https://dev.to/mmafrar/creating-a-simple-browser-for-ios-2b3">Creating a simple browser for iOS</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4419b6d421ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>