<?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 Shaheen N S on Medium]]></title>
        <description><![CDATA[Stories by Shaheen N S on Medium]]></description>
        <link>https://medium.com/@shaheennamboori?source=rss-4bcee1e79f83------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mVCamHJ1H8xVn0Zt1EymeQ.jpeg</url>
            <title>Stories by Shaheen N S on Medium</title>
            <link>https://medium.com/@shaheennamboori?source=rss-4bcee1e79f83------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:17:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaheennamboori/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[Six Years Later, I Came Back to an App I Never Finished -കൂടെ]]></title>
            <link>https://shaheennamboori.medium.com/%E0%B4%95%E0%B5%82%E0%B4%9F%E0%B5%86-aac-communication-app-that-helps-autistic-and-non-verbal-children-express-their-daily-needs-10600b79858c?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/10600b79858c</guid>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 06:20:06 GMT</pubDate>
            <atom:updated>2026-09-13T06:55:44.007Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ufoIoL-tk-Bm_AeL.jpg" /></figure><h4>2019 — Where it started</h4><p>Back in 2019, we had an opportunity to visit Autism center Thrissur through a program by NSS in collaboration with DSC club. We were there to participate in the inauguration of project “<strong>Kootu</strong>” and launch of a demo application flagging of the launch. — <a href="https://news.vidyaacademy.ac.in/2019/06/12/vidya-students-develop-mobile-app-to-help-autistic-children/">https://news.vidyaacademy.ac.in/2019/06/12/vidya-students-develop-mobile-app-to-help-autistic-children/</a></p><h4>What we learned</h4><p>Later, we visited the center with a team to observe the students and understand the day-to-day struggles they went through. We also spoke with their parents to learn more about their experiences. The event was very productive, we were able to talk with multiple parents. They gave us their input on what would make the app great, what’s good to have. We were also able to talk with teachers handling the students, they also gave us a lot of inputs on the day to day life as a parent , student and teachers.</p><p>It was really heart breaking, while writing this I can still recall many of the faces and their struggles and it also gave me a lot of understanding as a person.</p><p>I am not a specialist, the problem statement I derive is purely from my personal perspective on this matter. Our main goal was to understand how tech would be able to help or provide assistance in this case. Many students faced issues communicating their needs and parents were already using a solution called avazapp .</p><h4>Avaz</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HiSy_1Jx_nm6ZRKn.jpg" /></figure><p>avazapp : It’s a great initiative, you can look up more information about it here in their website — <a href="https://www.avazapp.com/">https://www.avazapp.com/</a> .Many parents were already using this, it works better in a tablet. It had a very silly interface, but very functional. It helps students phrase the sentence using blocks of text and action.</p><p>One of the parent did lend me their tablet to take a look. The application did help parents localize the sound generated from the app. There was also one interesting thing about this application, that few students started to speak the words directly instead of relying on the app that they used to generate.</p><p>I can see that the purpose of the app is not to make money, it is like a service. But something I felt, was the generated voice was lacking emotion because at the end it was a pre-recorded voice or computer voice. While researching for this article I can see that they have added a tone option to the generated voice — <a href="https://www.youtube.com/watch?v=r70xIYPbMm8">https://www.youtube.com/watch?v=r70xIYPbMm8</a> , which is great.</p><p>I was also able to find that Avaz has a tie up with Tamil Nadu govt with which they have distributed many tablets and trained many staffs, you can read about it and in their official website — <a href="https://www.avazapp.com/blog/avaz-partnership-with-tamil-nadu-government/">https://www.avazapp.com/blog/avaz-partnership-with-tamil-nadu-government/</a> . Similarly I think Kerala Govt can obtain a tie up and that might help parents who are not able to afford the premium or the tablet have access to it.</p><h4>കൂട്ട് — Our first attempt</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*2oIexotdgKoY92-Q.jpg" /></figure><p>As part of the event we did launch a demo application that assists in communication, we called it “Kootu” — kootukaarkaay oru kootu . Also we published the source code in GitHub hoping to have further developments as an open source offering. (https://github.com/dsc-vast/Kootu) .</p><p>Avaz — was already a great solution for this issue and its pricing was also well reasoned for the solutions they offer (I am not up to date with their current pricing). It is actively maintained, they are not just an app, they are a solution.</p><p>But reason for initiating an open source alternative was not to copy Avaz, but have a very minimal version. Self operated not behind a pay-wall. Also to act like an add-on on top of avaz. Also few parents were not able to afford the above premium and were not having any app at all. And Awaz required a tablet, which also many parents were not able to afford. Also I noticed that students who started speaking after using app had a lack of emotion in the voice ( like I said Awaz later added tone settings to the generated voice that adds some emotion)</p><h4>Our Idea</h4><p>Our goal was simple, create an app that helps in communication. The sounds will not be computer generated, it should have the flexibility to add as many items as parents want. All are locally stored , mobile friendly layout basic easy to access and configure, free. It also helps parents record their sound for each item, so that the voice used by the app would be familiar to the child and, if they eventually began speaking those words themselves, the words would already be associated with a familiar voice.</p><p>Few ideas parents put in good to have was the ability to track the student using some hardware in the app. Now watching the tone added to Avaz, I think that would be a great add-on in our application as well.</p><h4>Where We Are Today? കൂട്ട് -&gt; കൂടെ</h4><p>After launching the demo, the project never progressed much further. It’s partially due to a well known offering exists at a decent price. The project “Kootu” did further grow from just an application to collaborating with Dr Sethu Madhavan Wariyar to develop a quistionnaire application for Autism evaluation with DSM-5 criteria, and facial expression analysis. Which we proceeded to take as final year project.</p><p>However, in a corner of my mind, I always wanted to spend some time and do an MVP of the simple application. I was trying out anti-gravity last week, and I thought why not kick start the application, again. I named it “Koode” and was able to create a working MVP application fully vibe coded in expo ( cross platform support) — <a href="https://github.com/shaheennamboori/koode">https://github.com/shaheennamboori/koode</a> . I am not sure how to take it further, will polish and publish a usable version in play store soon.</p><h4>Conclusion</h4><p>Through this article, I hoped to shed some light on this project while also taking you on a small journey through the lives of some of the people I encountered along the way.</p><p>What started as a college project in 2019 stayed somewhere in the back of my mind for years, eventually finding its way back as Koode. I don’t know where the project will go from here, but I’m glad I finally gave it another chance.</p><p>I hope you enjoyed reading about the journey. Any contributions, feedback, ideas, or improvements to the application are genuinely appreciated. If this project can be useful to even a few people, that would make the journey worthwhile.</p><h4>Aknwoledgements</h4><p>Team:<br><a href="https://www.linkedin.com/in/hjanesh/">Hemanth Janesh</a><br><a href="https://www.linkedin.com/in/shoukkiyaashraf/">Shoukkiya Ashraf</a><br><a href="https://www.linkedin.com/in/msayyaf/">Mohamed Sayyaf</a><br><a href="https://www.linkedin.com/in/hashimjvz/">Muhammed Hashim</a><br><a href="https://www.linkedin.com/in/radhika-sharma23/">Radhika Sharma</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10600b79858c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Rabbit MQ in .Net]]></title>
            <link>https://shaheennamboori.medium.com/getting-started-with-rabbit-mq-in-net-67b4401413f3?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/67b4401413f3</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Sun, 14 Dec 2025 16:25:05 GMT</pubDate>
            <atom:updated>2025-12-14T16:25:05.586Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Rabbit MQ in .Net</h3><p>I am writing this article alongside learning how to do a simple implementation in .Net and learn Rabbit MQ. If you are doing the same feel free to read and code along.</p><ol><li>This is the official client library of Rabbit MQ in .net <a href="https://www.nuget.org/packages/rabbitmq.client">https://www.nuget.org/packages/rabbitmq.client</a></li><li>Create two .net console application projects , name one as consumer and the other one as producer.</li></ol><h3>Producer</h3><ol><li>Install the official client package in this project in my case its 7.2.0 and .Net10 as of the date in which I am writing</li><li>Create a connection factory, then create a connection with the factory and with the connection create a channel to communicate with RabbitMQ and make sure to use using keyword to dispose them properly</li></ol><pre>using RabbitMQ.Client;<br><br>var factory = new ConnectionFactory { HostName = &quot;localhost&quot; };<br>using var connection = await factory.CreateConnectionAsync();<br>using var channel = await connection.CreateChannelAsync();</pre><p>Now lets create a queue in this channel and publish some messages</p><pre>await channel.QueueDeclareAsync(<br>    queue: &quot;messages&quot;,<br>    durable: true,<br>    exclusive: false,<br>    autoDelete: false,<br>    arguments: null<br>    );<br><br>for(var i = 0; i &lt; 10; i++)<br>{<br>    var message = $&quot;{DateTime.UtcNow} - {Guid.CreateVersion7()}&quot;;<br>    var body = Encoding.UTF8.GetBytes( message );<br>    await channel.BasicPublishAsync(exchange: string.Empty,<br>        routingKey: &quot;messages&quot;,<br>        mandatory: true,<br>        basicProperties: new BasicProperties { Persistent = true },<br>        body: body<br>        );<br><br>    Console.WriteLine($&quot;Sent: {message}&quot;);<br>    await Task.Delay(2000);<br>}</pre><p><strong>QueueDeclareAsync()</strong> method arguments explained,</p><ol><li><em>queue means name of the queue</em></li><li><em>durable , do u want to keep the queue when instance is stopped (There maybe unconsumed messages lost if set to false)</em></li><li><em>exclusive to a certain consumer</em></li><li><em>autoDelete in case of 0 consumers</em></li><li><em>arguments idk figure it out.</em></li></ol><p>We are using the <strong>BasicpublishAsync()</strong> method to publish the message to the queue</p><ol><li><em>routing key — name of the queue that was created</em></li><li><em>mandatory — true — means the client will be notified in case if the queue is not available yet or failed due to some reason.</em></li><li><em>persistant — means persistance only</em></li><li><em>body — of the message</em></li></ol><h4>Final Producer:</h4><pre>using RabbitMQ.Client;<br>using System.Text;<br><br>var factory = new ConnectionFactory { HostName = &quot;localhost&quot; };<br>using var connection = await factory.CreateConnectionAsync();<br>using var channel = await connection.CreateChannelAsync();<br><br>await channel.QueueDeclareAsync(<br>    queue: &quot;messages&quot;,<br>    durable: true,<br>    exclusive: false,<br>    autoDelete: false,<br>    arguments: null<br>    );<br><br>for(var i = 0; i &lt; 10; i++)<br>{<br>    var message = $&quot;{DateTime.UtcNow} - {Guid.CreateVersion7()}&quot;;<br>    var body = Encoding.UTF8.GetBytes( message );<br>    await channel.BasicPublishAsync(exchange: string.Empty,<br>        routingKey: &quot;messages&quot;,<br>        mandatory: true,<br>        basicProperties: new BasicProperties { Persistent = true },<br>        body: body<br>        );<br><br>    Console.WriteLine($&quot;Sent: {message}&quot;);<br>    await Task.Delay(2000);<br>}</pre><p>Let’s run an instance of Rabbit MQ in our local using docker, I don’t docker , so I am gonna install that and run one, attaching the docker command below, not gonna write in detail about this step</p><pre>docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:4-management</pre><p>See the docker desktop, you will be able to see the Rabbit MQ container running, click on the URL near it and u can login to the Rabbit MQ dashboard — <strong>guest</strong> is the default username and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKvqBTdoWjNP0km1NDWouQ.png" /></figure><p>Now you are able to see our Queue in this dashboard (<a href="http://localhost:15672/#/queues">http://localhost:15672/#/queues</a>) when we run our console application.</p><h3>Consumer</h3><ol><li>Copy paste till Queue declaration, Declare a queue is idempotent, so even though we are calling it from Producer and Consumer, The first call goes through create the queue and the next one will just get back the existing queue.</li></ol><pre>using RabbitMQ.Client;<br><br>var factory = new ConnectionFactory { HostName = &quot;localhost&quot; };<br>using var connection = await factory.CreateConnectionAsync();<br>using var channel = await connection.CreateChannelAsync();<br><br>await channel.QueueDeclareAsync(<br>    queue: &quot;messages&quot;,<br>    durable: true,<br>    exclusive: false,<br>    autoDelete: false,<br>    arguments: null<br>    );</pre><p>2. Create an event based consumer, use the <strong>RecievedAsync</strong> and provide the async delegate to consume the message. It will have the message as the event args body.</p><p>3. After consuming , acknowledge back to broker so the message can be removed from the queue</p><p>4. This method requires <em>delivery tag</em> as well as <em>multiple flag</em> set to indicate whether we are acknowledging multiple messages.</p><pre>var consumer = new AsyncEventingBasicConsumer(channel);<br>consumer.ReceivedAsync += Consumer_ReceivedAsync;<br><br>async Task Consumer_ReceivedAsync(object sender, BasicDeliverEventArgs @event)<br>{<br>    byte[] body = @event.Body.ToArray();<br>    string message = Encoding.UTF8.GetString(body);<br><br>    Console.WriteLine($&quot;{message} recieved&quot;);<br>    await ((AsyncEventingBasicConsumer)sender).Channel.BasicAckAsync(deliveryTag: @event.DeliveryTag, multiple: false);<br>}</pre><p>5. And finally call the BasicConsumeAsync() to start the consumption</p><pre>await channel.BasicConsumeAsync(&quot;messages&quot;, autoAck: false, consumer);</pre><h4>Final Consumer looks like this</h4><pre>using RabbitMQ.Client;<br>using RabbitMQ.Client.Events;<br>using System.Text;<br><br>var factory = new ConnectionFactory { HostName = &quot;localhost&quot; };<br>using var connection = await factory.CreateConnectionAsync();<br>using var channel = await connection.CreateChannelAsync();<br><br>await channel.QueueDeclareAsync(<br>    queue: &quot;messages&quot;,<br>    durable: true,<br>    exclusive: false,<br>    autoDelete: false,<br>    arguments: null<br>    );<br><br>var consumer = new AsyncEventingBasicConsumer(channel);<br>consumer.ReceivedAsync += Consumer_ReceivedAsync;<br><br>async Task Consumer_ReceivedAsync(object sender, BasicDeliverEventArgs @event)<br>{<br>    byte[] body = @event.Body.ToArray();<br>    string message = Encoding.UTF8.GetString(body);<br><br>    Console.WriteLine($&quot;{message} recieved&quot;);<br>    await ((AsyncEventingBasicConsumer)sender).Channel.BasicAckAsync(deliveryTag: @event.DeliveryTag, multiple: false);<br>}<br><br>await channel.BasicConsumeAsync(&quot;messages&quot;, autoAck: false, consumer);<br>Console.ReadLine();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNPKT8u6_zMn1T4nBdgAjw.png" /></figure><p>As you can see, the previously published messages are received safely</p><p>That’s the end of it guys, thanks for your time, attaching few resources below.</p><p><em>References:</em></p><p><a href="https://www.youtube.com/watch?v=sN5YpfOpCHA"><em>https://www.youtube.com/watch?v=sN5YpfOpCHA</em></a><em> — Rabbit MQ</em></p><p><a href="https://www.youtube.com/watch?v=zKppEQIzvcU"><em>https://www.youtube.com/watch?v=zKppEQIzvcU</em></a><em> — MassTransit</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67b4401413f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SASS standalone installation in windows]]></title>
            <link>https://shaheennamboori.medium.com/sass-standalone-installation-in-windows-ae5864569473?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae5864569473</guid>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Sun, 04 May 2025 16:40:06 GMT</pubDate>
            <atom:updated>2025-05-04T16:40:06.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jNHLxAqA0J_Yb6mG" /></figure><p>Imagine you are writing a simple static website using HTML CSS and JS, but u feel that CSS is a bit lengthy and messy and hard to manage. Then you can use SCSS, but browsers won’t be able to understand SASS. So you have to convert the SCSS into CSS while writing the code and obiviously we would like to make that happen automatically.</p><p>Official Installation guide for SASS -&gt; <a href="https://sass-lang.com/install/">https://sass-lang.com/install/</a></p><p>Step by Step Instruction for installing SASS in a standalone windows system.</p><ol><li>Download SASS for windows from here -&gt; <a href="https://github.com/sass/dart-sass/releases/tag/1.87.0">https://github.com/sass/dart-sass/releases/tag/1.87.0</a> (get any version that you want).</li><li>Edit the system environment variable, search “Edit system …” in search bar and you will get this option.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*yUScCCSp-gZOrS_cyo0ADA.png" /><figcaption>it will look like this</figcaption></figure><p>3. Find Path under system variables and add path to the extracted, downloaded folder here (don’t panik — explained in step4).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2xYkaZ8hM3Kloq_BUZJeQ.png" /><figcaption>Follow this if you are PC illiterate.</figcaption></figure><p>4.Click on “New” , and click on “Add” and paste the path there. Path will be the path to the extracted folder illustrated in below Screenshots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*1uhknc1BPpToJsK5bN71ZQ.png" /><figcaption>Follow if you are PC illiterate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Nl7sSHnRKKH-F56kVIVGkQ.png" /><figcaption>This is my extracted folder.</figcaption></figure><p>5. Basically putting this path in system variable helps CMD understand what is SASS, like if you type “sass --watch input.scss output.css” , it won’t even understand command “sass” . Now after putting in system path variable it will use this batch file, whenever u type sass as a command.</p><p>6. To know the basics of the SASS and how to use it, head over to <a href="https://sass-lang.com/guide/">https://sass-lang.com/guide/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae5864569473" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to find and kill process running on a specific port]]></title>
            <link>https://shaheennamboori.medium.com/how-to-find-and-kill-process-running-on-a-specific-port-a31caaaceaeb?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/a31caaaceaeb</guid>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 11:21:47 GMT</pubDate>
            <atom:updated>2024-10-31T11:21:47.029Z</atom:updated>
            <content:encoded><![CDATA[<p>Open Command Prompt or PowerShell with administrator privileges and run:</p><pre>netstat -aon | findstr :8080</pre><p>This command will display the process ID (PID) of any processes listening on port 8080. To identify the application, you can then use:</p><pre>tasklist /FI &quot;PID eq &lt;PID&gt;&quot;</pre><p>Replace &lt;PID&gt; with the process ID obtained from the first command.</p><pre>taskkill /PID &lt;PID&gt; /F</pre><p>Replace &lt;PID&gt; with the actual process ID you want to kill.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a31caaaceaeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution to Chromium browsers restricting localhost of .NET Web API project]]></title>
            <link>https://shaheennamboori.medium.com/solution-to-chromium-browsers-restricting-localhost-of-net-web-api-project-1d655ff6d2d4?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d655ff6d2d4</guid>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Thu, 24 Oct 2024 18:32:49 GMT</pubDate>
            <atom:updated>2024-10-24T18:32:49.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>Solution to Chromium browsers restricting localhost of .NET Web API project</h3><p>I was trying to run my newly created web API project in .net , for my surprise my webbrowsers were not allowing me to view the localhost.</p><p>Solutions from chat GPT and many stack overflows didn’t help, included a lot of steps, so instead of that I want you to try this first in your chromium based browser.</p><p><em>chrome://flags/#allow-insecure-localhost</em></p><p><em>brave://flags/#allow-insecure-localhost</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*sKS-3bWuh0ZNWw6rsfyJ3g.png" /></figure><p>enable this flag, you are good to go</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*gRTi4eyzeBwsC8aLBVO8tA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d655ff6d2d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to Get Started with Hive in Flutter | straight from Chat GPT]]></title>
            <link>https://shaheennamboori.medium.com/steps-to-get-started-with-hive-in-flutter-straight-from-chat-gpt-a13e45352f3e?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/a13e45352f3e</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 14:12:26 GMT</pubDate>
            <atom:updated>2024-10-26T22:23:06.913Z</atom:updated>
            <content:encoded><![CDATA[<h4>1. Add Hive and Hive Flutter Dependencies</h4><p>In your pubspec.yaml file, add the following dependencies:</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  hive: ^2.2.3  # Add the latest version<br>  hive_flutter: ^1.1.0  # Required for Flutter integration<br><br>dev_dependencies:<br>  hive_generator: ^1.1.0  # Required if using TypeAdapters<br>  build_runner: ^2.0.0  # Required for code generation if using TypeAdapters</pre><p>After adding these dependencies, run:</p><pre>flutter pub get</pre><h4>2. Initialise Hive in Your App</h4><p>You need to initialise Hive before using it. You can do this in the main() function.</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:hive_flutter/hive_flutter.dart&#39;;<br><br>void main() async {<br>  await Hive.initFlutter();  // Initialize Hive for Flutter<br>  await Hive.openBox&lt;String&gt;(&#39;myBox&#39;);  // Open a Hive box (a storage container)<br>  <br>  runApp(MyApp());<br>}</pre><h4>3. Store and Retrieve Data Using Hive</h4><p>You can think of a Hive “box” as a database or storage container where you store key-value pairs. Here’s how you can use it to save and retrieve data:</p><p>Example: Storing a List of Strings</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:hive/hive.dart&#39;;<br>import &#39;package:hive_flutter/hive_flutter.dart&#39;;<br><br>class MyHomePage extends StatefulWidget {<br>  @override<br>  _MyHomePageState createState() =&gt; _MyHomePageState();<br>}<br><br>class _MyHomePageState extends State&lt;MyHomePage&gt; {<br>  late Box&lt;String&gt; myBox;<br><br>  @override<br>  void initState() {<br>    super.initState();<br>    myBox = Hive.box&lt;String&gt;(&#39;myBox&#39;);  // Access the opened box<br>  }<br><br>  // Add an entry to the box<br>  void _addEntry(String entry) {<br>    myBox.add(entry);  // Add entry to the box<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;Hive Example&#39;),<br>      ),<br>      body: ValueListenableBuilder(<br>        valueListenable: myBox.listenable(),  // Listens for changes in the box<br>        builder: (context, Box&lt;String&gt; box, _) {<br>          if (box.isEmpty) {<br>            return const Center(child: Text(&quot;No entries yet&quot;));<br>          }<br>          <br>          return ListView.builder(<br>            itemCount: box.length,<br>            itemBuilder: (context, index) {<br>              final entry = box.getAt(index);  // Retrieve entry at index<br>              return ListTile(<br>                title: Text(entry ?? &#39;No entry&#39;),<br>                trailing: IconButton(<br>                  icon: const Icon(Icons.delete),<br>                  onPressed: () {<br>                    box.deleteAt(index);  // Delete entry at index<br>                  },<br>                ),<br>              );<br>            },<br>          );<br>        },<br>      ),<br>      floatingActionButton: FloatingActionButton(<br>        onPressed: () {<br>          _addEntry(&#39;New Entry ${myBox.length + 1}&#39;);<br>        },<br>        child: const Icon(Icons.add),<br>      ),<br>    );<br>  }<br>}<br><br>void main() async {<br>  await Hive.initFlutter();  // Initialize Hive for Flutter<br>  await Hive.openBox&lt;String&gt;(&#39;myBox&#39;);  // Open a box for string entries<br>  <br>  runApp(MaterialApp(home: MyHomePage()));<br>}</pre><h3>4. TypeAdapters for Custom Data Types</h3><p>Hive can store more than just basic types like strings, integers, etc. You can store custom objects by using <strong>TypeAdapters</strong>.</p><h4>Example: Storing Custom Objects</h4><p>Let’s say you have a class Entry and want to store objects of this class.</p><p>Step 1: Define Your Model Class</p><pre>class Entry {<br>  final String id;<br>  final String name;<br><br>  Entry(this.id, this.name);<br>}</pre><p>Step 2: Create a TypeAdapter for the Model</p><p>You need a <strong>TypeAdapter</strong> to tell Hive how to serialize and deserialize your custom class.</p><ol><li>Annotate your model class like below and run this command to generate an adapter automatically:</li></ol><pre>flutter pub run build_runner build</pre><p>Example annotation:</p><pre>import &#39;package:hive/hive.dart&#39;;<br><br>part &#39;entry.g.dart&#39;;  // Include this line to generate the adapter automatically<br><br>@HiveType(typeId: 0)<br>class Entry extends HiveObject {<br>  @HiveField(0)<br>  final String id;<br><br>  @HiveField(1)<br>  final String name;<br><br>  Entry(this.id, this.name);<br>}</pre><p>Step 3: Register the Adapter</p><p>Register the adapter in your main() function:</p><pre>void main() async {<br>  await Hive.initFlutter();<br>  Hive.registerAdapter(EntryAdapter());  // Register the generated adapter<br>  await Hive.openBox&lt;Entry&gt;(&#39;entriesBox&#39;);  // Open a box for Entry objects<br><br>  runApp(MyApp());<br>}</pre><p>Step 4: Store and Retrieve Objects</p><p>You can now store and retrieve Entry objects in Hive just like basic types.</p><pre>// Store an Entry object<br>myBox.put(&#39;key&#39;, Entry(&#39;1&#39;, &#39;Category 1&#39;));<br><br>// Retrieve an Entry object<br>Entry? entry = myBox.get(&#39;key&#39;);</pre><h3>Summary</h3><ul><li><strong>Hive</strong> is a powerful option for persistent storage in Flutter apps.</li><li><strong>TypeAdapters</strong> allow you to store custom objects.</li><li>Hive is fast and suitable for both small key-value storage and more complex use cases.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a13e45352f3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dimensional Paradox | Are we invisible beyond 4th dimension ?]]></title>
            <link>https://shaheennamboori.medium.com/dimensional-paradox-are-we-invisible-beyond-4th-dimension-6cd8f2f92670?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cd8f2f92670</guid>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 08:10:08 GMT</pubDate>
            <atom:updated>2023-12-24T08:10:08.314Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dimensional Paradox | Are we invisible beyond 4th dimension ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmJKgCU4ofCgzRb6COkfIA.jpeg" /><figcaption>Photo by David Yu: <a href="https://www.pexels.com/photo/person-walking-inside-room-2684385/">https://www.pexels.com/photo/person-walking-inside-room-2684385/</a></figcaption></figure><p>Whenever we talk about 4th dimension , we take an example of 2nd Dimension and stick figures. Explains how we can see beyond the wall and 2D figures cannot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*E9TAFKdoFyLHtmJAAGRTAg.png" /></figure><p>Even though I searched for 1D, youtube will only recommend 4D because there is no need to look back, we are already living in a 3D world.</p><p>The reason I was wondering about 1D world is because. In a 2D world you have length and width. In a 3D world, add height as a dimension , In a 4D world add another time or whatever. But the problem is , what about a 1D world ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*DtoExoeMx2JHz8PvJmuWHA.png" /><figcaption>A point</figcaption></figure><p>We usually uses a point to represent 1D world. But whenever we try to draw a point , on a closer look we can see that, we accidentally drew a 2D Figure instead of 1D Figure.</p><p>Since we need to restrict this point to a 1D, which we will never be able to do , we need to make it smaller and smaller and smaller , to a level that is invisible to us.</p><h3>Now Imagine,</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*NRWWebwp_cp2RQXgt1XfYQ.png" /><figcaption>A 2D person sitting in a locked room</figcaption></figure><p>If we had a 2D world , in our room we will be able see their lives, we will be able to look inside their locked room,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*tE499TcIeg0yUo9MT1aXww.png" /><figcaption>1D world</figcaption></figure><p>But if we had 1D world, inside our room , it will be invisible for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*LjlDCNnYfjIhycyh1JkO7g.png" /><figcaption>A locked 3D room from the perspective of a 4D Person</figcaption></figure><p>Similarly, a 4D species living in a 4D world will be able to see everything in our world. They will be able to look inside someone’s room , even if it is completely locked.</p><p>But What if the species is from 5D, they will never be able to see us , like we are not able to see the 1D world. We will exist in their room , but will be infinitely small and invisible to them at the same time.</p><p>I call this Dimensional paradox or idiocy, thanks for reading see ya.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd8f2f92670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lines in Angular]]></title>
            <link>https://shaheennamboori.medium.com/lines-in-angular-ddf4c75c3a50?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddf4c75c3a50</guid>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 04:35:09 GMT</pubDate>
            <atom:updated>2023-10-30T04:35:09.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imZMJPDd3u7t18U3uClJqw.jpeg" /></figure><h3>Chapter 1: Single line using HTML Canvas</h3><p>Almost all of the Google/YouTube searches resulted in HTML Canvas and tutorials for drawing in Canvas. Main issue with this approach is that <strong>we don’t have any control over the drawn line, as drawing a line just changes the colour of that particular pixel</strong>. Since I was not able to find anything else, I decided to start implementing HTML Canvas.</p><p>Created a line-service.ts</p><pre>  drawLine() {<br>    if (this.lineCanvas) {<br>      const context = this.lineCanvas.getContext(&#39;2d&#39;);<br>      if (context == null) {<br>        return;<br>      }<br><br>      if (!this.startSaved || !this.endSaved) {<br>        alert(&#39;Please set start and end point&#39;);<br>        return;<br>      }<br>      context.strokeStyle = this.lineColor; // Set line color<br>      context.lineWidth = this.lineWidth; // Set line width<br>      context.setLineDash([15, 3]);<br>      context.beginPath();<br>      context.moveTo(this.startx, this.starty);<br>      context.lineTo(this.endx, this.endy);<br>      context.stroke();<br>    }<br>  }</pre><h3>Chapter 2: Drawing Multiple lines and Line events</h3><p>Drawing multiple lines was fairly easy with HTML Canvas , just call the drawLine() method again and again with different start and end points. But Adding line events was a pain.</p><ol><li>Delete</li><li>Drag</li></ol><p>I found it difficult to delete a particular line. Because my only option was to paint white color in the line, so that it will get blend with background, and won’t be visible for the user. But I had a grid background and it was impossible to erase the line. Also that might be erase the existing lines as well.</p><p>Anyways keeping performance god in my mind , I created a global array of lines. And From that array, I was drawing on the canvas. When someone want to delete a line , I can simply , remove that particular line from the array and re-draw everything. Also I during drag I can simply re-draw with new co-ordinates.</p><p>But major concern was showing the dragging animation, only solution for this was to use a secondary canvas , and during dragging we keep re-drawing that canvas. And when the dragging is done, just paint it to the primary cnavas. For the users eye, it won’t make any difference.</p><p>But but but but I am not pasting any snippets for these solutions , because I chose none of these to move forward, <strong>I removed Canvas.</strong></p><h3>Chapter 3: Not Canvas ?</h3><p>Thanks to this tutorial in Solidjs <a href="https://www.youtube.com/watch?v=1JNbGf8dhAQ">Here</a>. (Feel free to check it out , way better than reading my article from here onwards) 😂. I decided to scrap HTML Canvas and use SVG instead.</p><pre>&lt;svg class=&quot;wrapper&quot;&gt;<br>  &lt;path<br>  [ngClass]=&quot;{&#39;edgeNew&#39;: isNew, &#39;selected&#39;: selected, &#39;edge&#39;: !selected}&quot;<br>  [attr.d]=path&gt;&lt;/path&gt;<br>&lt;/svg&gt;</pre><pre>ngOnInit(): void {<br>  this.edgeObserver.subscribe((value) =&gt; {<br>    this.isNew = value.isNew;<br>    this.selected = value.selected;<br>    this.x1 = value.position.x1;<br>    this.y1 = value.position.y1;<br>    this.x2 = value.position.x2;<br>    this.y2 = value.position.y2;<br>    this.path = `M${this.x1} ${this.y1} C ${this.x1 + Math.abs(this.x2 - this.x1)} ${this.y1}, ${this.x2 - Math.abs(this.x2 - this.x1)} ${this.y2}, ${this.x2} ${this.y2}`<br>    this.lineReady = true;<br>  })<br>  if(this.LineOptions){<br>    this.isNew = this.LineOptions.isNew;<br>    this.selected = this.LineOptions.selected;<br>    this.x1 = this.LineOptions.position.x1;<br>    this.y1 = this.LineOptions.position.y1;<br>    this.x2 = this.LineOptions.position.x2;<br>    this.y2 = this.LineOptions.position.y2;<br>    this.path = `M${this.x1} ${this.y1} C ${this.x1 + Math.abs(this.x2 - this.x1)} ${this.y1}, ${this.x2 - Math.abs(this.x2 - this.x1)} ${this.y2}, ${this.x2} ${this.y2}`<br>    this.lineReady = true;<br>  }<br>}</pre><p>This allowed me to componentize a line. That is what I love about angular, now everything can be handled in component level. The click , the drag and everything. I did also make it look like a curved smooth line.</p><h3>Chapter 4: Finishing Touches</h3><p>Like I did for canvas , I created a global line array that keep tracks of all the lines. The main advantage of SVG component is that it made easy to identify the click made on a line , where as in Canvas it was not possible to say whether the user clicked on a line without complex calculations.</p><pre>&lt;ng-container *ngIf=&quot;lines.length &gt; 0&quot;&gt;<br>   &lt;div *ngFor=&quot;let line of lines&quot;&gt;<br>     &lt;line [LineOptions]=&quot;getLineOptions(line)&quot;&gt;&lt;/line&gt;<br>   &lt;/div&gt;<br> &lt;/ng-container&gt;</pre><pre>export interface LineOptions {<br>  selected: boolean;<br>  isNew: boolean;<br>  position: {x1: number, y1: number, x2: number, y2: number};<br>}</pre><p>Well this all worked out pretty well, but still the question remained on how to show the drag animation. I can’t keep on re-drawing the global array, so I decided to create a new component for this case , it will only be visible during the drag</p><pre>&lt;ng-container&gt;<br>  &lt;line *ngIf=&quot;newLine&quot; [edgeObserver]=&quot;edgeObserver&quot;&gt;&lt;/line&gt;<br>&lt;/ng-container&gt;</pre><pre> @HostListener(&#39;document:mousemove&#39;, [&#39;$event&#39;])<br>  onMouseMove(e: any) {<br>    if(this.currentOutput){<br>      this.edgeObserver.next({<br>        isNew: true,<br>        selected: false,<br>        position: {<br>          x1: this.currentOutput.x,<br>          y1: this.currentOutput.y,<br>          x2: e.clientX,<br>          y2: e.clientY<br>        }<br>      })<br>      this.newLine = true;<br>    }<br>  }</pre><p>During the mouse drag edgeObserver keeps updating the line options of the new line. Which will only re-render that particular component instead of the whole thing and that’s it we are good to go.</p><p>PS: This is part of a project , that is closed as of today and will be published as soon as possible, stay tuned 😊</p><p>For more update stay posted : <a href="https://www.linkedin.com/in/shaheennamboori/">Shaheen</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddf4c75c3a50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frog in a pond.]]></title>
            <link>https://shaheennamboori.medium.com/frog-in-a-pond-e92f7d6324e3?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/e92f7d6324e3</guid>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Sat, 16 Sep 2023 22:48:44 GMT</pubDate>
            <atom:updated>2023-09-16T22:48:44.740Z</atom:updated>
            <content:encoded><![CDATA[<p>Frog in a pond great story that we all have heard in our childhood. If not , I’ll brief it for you, It is a story about a frog who was born in a deep pond with no way of getting out of that pond, he lived his entire lifetime in that pond and died in his homeland.</p><p>Moral of the story is that he should have went out and explored the infinite world outside the pond , blah blah. There is an alternative version, where he decides not to go out of the pond, when he have option and dies during the summer, when the pond gets dry locking him in deep under ground.</p><p>Let’s talk about the first version, His world was just that pond, He knew the boundaries and he thought that’s it. That was the universe for him. He never looked up the stars and wondered, what’s up there. He may have travelled the whole world in his lifetime. He would have met all the different kinds of pond people in that world. He would have achieved everything that could have been done in his lifetime and he died happily. Now it doesn’t seem like his choice of thinking, is not that bad.</p><p>Now let’s talk about us, We have never seen the boundaries of our world. Nothing is ever enough, I travelled to another district, There are 20+ districts in my state itself. Even if I travel to all the places in ma district, there are several states, countries, planets, galaxies, infinite space. We will never be that frog, we will never feel the satisfaction that he got.</p><p>It’s not a bad thing to have these infinite possibilities and wishes. What if the frog achieved everything that he could do within 1 yr in that pond and there after he lived for 30 years. He would have suffered from 29 years of boredom and died. So I was saying, it gives us all a purpose for living in this world. If we ever achieve everything that is possible, which is impossible, we are good as dead.</p><p>Like I mentioned before there was an alternative version, where the frog dies during summer, let’s discuss about that. What if the frog decided to go out when he had the chance, he might have died, he might have visited other ponds in nearby or other areas. He might have met many other frogs from other parts of the world. He might have seen dry ponds, could have learnt that this could happen to his hometown as well. Could have learnt from experiences to rescue all the people, before they die from dehydration during summer. His single choice would have changed that pond world entirely.</p><p>This is how I would like to look at the dreamers, I am not a dreamer, I work a day job, play games, write some bullshit. But when someone tries to achieve their dreams, I watch them closely to see how it goes. I know this girl who was very passionate about acting, (not judging by looks) but she didn’t have any heroine look. But she got her first gig as a dubbing artist in a movie, Then she joined a day job in an ed-tech company, I thought her dreams died, that’s what happen with the dreamers, the reality will strikes them so hard that, they won’t get up again.</p><p>She then did resign from the job after a very few months, I got curious and asked her like why did she resign. She said , she wanted to chase her passion. Then shortly after that I started seeing in small roles in few short films, then on govt ads, then in sponsored ads and other contents, and so on..</p><p>I felt happy that someone is chasing their dreams. That said, dreamers are people who changes something in us , in our perspective and in our world. We never learnt about moon, until someone decided to think about, what’s on the moon. Someone who thinks, moon is just there, we don’t need to think about haven’t taught us anything but not to be like him.</p><p>That said, I won’t say everyone should dream and be passionate and start thinking out of the box because I believe everything is in place, because we have a balance. (PS: someone decided to use carbonfiber on a submersible putting 5lives at stake on 20$ controller). Even if someone decided to build a rocket, and gathers 30 people to help him build it. 90% of the people gathered there are not dreamers, they are there for the money. They are helping dreams come true without even being a dreamer.</p><p>I started writing this article, when I started thinking about, why life is hard at this age , when you are above 25, life is an anormaly. There is no a Right or Wrong. There is only partially wrong , partially right. Right but also wrong. Wrong but also right. Someone taught us to do the RIGHT thing was not teaching the RIGHT thing.</p><p>Every aspect of life is like that, every decision we make. Every thoughts that we think. Every word that we speak. Every action that we take. Changes the universe in its entirety. (Someone dreamt of creating a digital platform where people can write their trash, So I am writting on it, okay bye)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e92f7d6324e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introversion and new work culture.]]></title>
            <link>https://shaheennamboori.medium.com/introversion-and-new-work-culture-7b41f394da98?source=rss-4bcee1e79f83------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b41f394da98</guid>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[remote]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Shaheen N S]]></dc:creator>
            <pubDate>Mon, 26 Apr 2021 06:36:55 GMT</pubDate>
            <atom:updated>2021-04-26T06:36:55.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZwQB6R8OkWe0KEUVEDsgw.jpeg" /></figure><p>Most of the IT sector has now been pushed to WFH due to this pandemic. Whether your work is office/remote, now you have to sit in your room, work till, whenever you want, eat food on your table, sleep amidst the work and compensate those rest hours after work, in one word, an unbalanced work-life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jpoKugKeXFhyctVR-L8b_w.gif" /></figure><p>The difference between a completely remote job and an office job turned WFH is. The employers are trying to make the office remote. Unlike most remote jobs with flexible hours, you can start whenever you want and end whenever you wish. But the Office turned remote still has that starting schedule and the ending schedule.</p><p>But the schedule is not the hot topic here, Office turned WFH also wants the Office communication to be remote. Like in the Office, everyone should talk to each other and maintain a healthy vocal relationship.</p><p>Sitting in your home and doing your job seems like excellent work, from the point of view of an introvert. But the fact that he needs to keep the social communication alive to keep learning and doing and improving his job may haunt him, no matter what. He needs to communicate with his senior to learn the ways the job needs to be done. He needs to communicate with the PM to understand the task. He needs to talk to his colleagues to keep his work relation alive.</p><p>But, wait, what, even in the old office work style, he still needs to do all this. But I’m afraid I have to disagree with that statement because, in an office-style work, someone could have kept his work relation alive by just simply offering his mere presence, but doing the same in teams, seems more like <strong>“You left me on read.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93RfG9wh7ySCQCtFlKs2xQ.jpeg" /></figure><p>The only conclusion I could draw is that you are getting more home time, you are getting more time in your comfort zone, you are getting homely food. Your homesickness needn’t be exposed, and it all comes at a price.</p><p>Like all difficult times, this shall pass too. Let us not lose hope and pray to God for brighter days ahead.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b41f394da98" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>