<?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 amal v s on Medium]]></title>
        <description><![CDATA[Stories by amal v s on Medium]]></description>
        <link>https://medium.com/@rjamaltdt123?source=rss-7589e689509b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xhZloIP1wQBcnnga</url>
            <title>Stories by amal v s on Medium</title>
            <link>https://medium.com/@rjamaltdt123?source=rss-7589e689509b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:56:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rjamaltdt123/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[Cloning Human Personality. The Next ERA of AI]]></title>
            <link>https://medium.com/@rjamaltdt123/cloning-human-personality-the-next-era-of-ai-f619ad7b81ee?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f619ad7b81ee</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 05:01:06 GMT</pubDate>
            <atom:updated>2025-11-03T05:01:06.305Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IqC8-onqICx7S_YZPKdB-g.jpeg" /></figure><p>Imagine if we could capture <em>how</em> a person thinks, feels, jokes, and text. Not by uploading their brain, but by mapping the subtle patterns in their daily communication. What if someone’s digital reflection could continue to respond, converse, and express emotions in their unique way, even when they’re not around? That’s the vision behind my research on <strong>Human Behavioural Pattern Cloning</strong>.</p><h3><strong>The Idea: Personality Through Patterns</strong></h3><p>Every person has a hidden fingerprint in their communication, The timing of their replies, the way they say “hmm,” their choice of emoji, the rhythm of their messages. These aren’t random; they are behavioural signatures shaped by emotion, culture, and experience.</p><p>My research focuses on using <strong>Large Language Models (LLMs)</strong> to detect and reproduce those behavioural patterns from text conversations. The goal isn’t to build generic chatbots — it’s to create <em>behavioural twins</em>: AI models that think, feel, and respond the way <em>you</em> would.</p><h3>Why Not Consciousness Uploading?</h3><p>Movies imagine uploading a full human consciousness memory, logic, creativity, emotion into machines. That’s Not pure science fiction (from now). But we don’t need to upload the <em>entire mind</em> to preserve what makes someone feel alive.</p><p>Every human expresses their intelligence through patterns: how they write, how they react to jokes, how they comfort others, and how they handle silence. By identifying and mathematically encoding these patterns, we can build systems that <strong>simulate personality through behaviour</strong>, not biology.</p><h3>How It Works</h3><p>The core engine of this project is something I call <strong>CLONE‑SMS‑LLM</strong> an AI pipeline that learns from chat histories (like WhatsApp, Telegram, or SMS) and creates a behavioural model of an individual. Here’s the flow:</p><ol><li><strong>Collect and clean data ethically</strong> only with full consent from everyone involved.</li><li><strong>Extract behaviour traits. </strong>tone, pacing, emoji use, length, emotional tone, and response speed.</li><li><strong>Train a lightweight adapter</strong> on top of a large language model using <strong>LoRA / QLoRA</strong> efficient methods that let us fine-tune big models for specific people without massive compute.</li><li><strong>Generate personality-based responses</strong> the model doesn’t just reply to messages; it replies <em>like you would</em>, following your unique emotional rhythm.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlWGXfNjA4IJAmL_CAYGKw.jpeg" /><figcaption>My research on behavioral pattern algorithms</figcaption></figure><h3>Why This Matters</h3><p>Think about these possibilities:</p><ul><li>Families could preserve the way loved ones spoke a form of digital memory that feels alive.</li><li>Digital assistants could adapt to your emotional tone and thinking pattern.</li><li>Therapeutic systems could simulate familiar personalities to provide comfort or continuity.</li><li>Creators could train clones of their own conversational style for fans or interactive storytelling.</li></ul><p>But this vision demands <strong>deep ethics</strong> consent, transparency, and privacy are non-negotiable. Every cloned personality must exist with full awareness and control of the person it represents.</p><h3>Ethics: The Line Between Imitation and Identity</h3><p>Cloning someone’s personality raises profound questions. When does imitation become identity? Can a digital reflection represent someone without crossing moral or emotional boundaries?</p><p>That’s why this research includes strict guidelines:</p><ul><li>Only clone with <strong>explicit written consent</strong>.</li><li>Always <strong>disclose</strong> when an AI personality is speaking.</li><li>Allow <strong>data deletion and opt-out</strong> at any time.</li><li>Build <strong>emotional and ethical guardrails</strong> into every clone.</li></ul><p>Our goal isn’t to cheat death — it’s to celebrate life, by preserving the unique behavioural signatures that make every human irreplaceable.</p><h3>Step Into the Future</h3><p>We stand at the edge of something extraordinary. The future won’t be about machines that replace us it will be about machines that <em>remember</em> us, <em>sound</em> like us, and help our stories continue.</p><p>Human Behavioral Pattern Cloning is more than a technical challenge; it’s a philosophical one. It asks: <em>What truly defines us our memories, or our patterns?</em></p><p>This research is my attempt to find that answer to let humanity live on through its words, emotions, and digital echoes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f619ad7b81ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Octo-Bloom (postgres extension)— When Databases Learn to Whisper, Not Shout]]></title>
            <link>https://medium.com/@rjamaltdt123/octo-bloom-postgres-extension-when-databases-learn-to-whisper-not-shout-ba97a2f23e17?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba97a2f23e17</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 14:32:40 GMT</pubDate>
            <atom:updated>2025-08-31T15:18:43.546Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“A little knowledge goes a long way — but the right filter makes it beautiful.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwmVwQzLG7cUyHXe_mmcBw.png" /></figure><p>Imagine you’re standing in the engine room of the internet: registration forms blinking, checkout carts filling, moderation queues swelling. Every single click asks the database a tiny, earnest question — <em>“is this email taken?”</em>, <em>“does this SKU exist?”</em>, <em>“is this IP blacklisted?”</em> — and the database answers by waking up entire subsystems, scanning indexes, touching disks. Not loud, just costly. Thousands of those tiny costs add up until your app feels sluggish and every engineer becomes a budget manager.</p><p>This is a story about quieting the noise. It’s about building a small, elegant filter that, when placed between your app and your data, transforms how your system thinks. It’s not a silver bullet — it’s the art of clever approximation, the engineering equivalent of listening more and doing less. Meet <strong>Octo-Bloom</strong>.</p><h4>The Quiet Tragedy: When Validation Becomes Heavy Lifting</h4><p>We imagine scale as a mountain: more users, more rows, more everything. The instinctive response is vertical — bigger machines, more indexes, more caches. But every extra layer is friction: more maintenance, more complexity, more points of failure.</p><p>The real tragedy is subtle: most of the time those membership queries mean <em>nothing</em>. A sign-up form checks three things — email, username, and whether the email is blacklisted. In real systems, most checks answer the same way: <em>“no, not present.”</em> Yet we run the full, heavy machinery to prove that absence. That waste piles up into cost, latency, and cognitive load.</p><p>What if most of those checks could be answered instantly — with a tiny probabilistic nod — and only when suspicious do we wake the heavyweight engine?</p><h4><strong>Short Love Letter to Approximation</strong></h4><p>Engineers are often allergic to uncertainty. We love exactness: counts, indexed lookups, and precise guarantees. Bloom filters ask us to be friends with a small truth: sometimes “maybe” is enough.</p><p>A Bloom filter is a simple contraption: a compact array of bits, a few hash functions, and a mantra — <em>“if I say ‘no’, I am sure; if I say ‘yes’, I might be wrong.”</em> That asymmetry is gold for user-facing validation and pre-checks. Most negative checks — no account, no SKU, no banned word — get resolved on the spot. Only the occasional “maybe” forces a full database check.</p><p>It’s a pragmatic humility: trade a little uncertainty for a lot of speed.</p><h4>Octo-Bloom: The Idea in One Breath</h4><p>Octo-Bloom brings that pragmatic humility <em>into PostgreSQL’s heart</em>. Instead of relying on an external cache or a separate service, it lives in Postgres shared memory, beside the things it helps. That means:</p><ul><li>Membership checks that return in microseconds.</li><li>No separate infrastructure to deploy or debug.</li><li>Filters that are shared between all sessions, light on memory, and fast to check.</li></ul><p>Octo-Bloom isn’t magic. It’s an instrument — one you tune to the symphony of your data. You choose the expected set size and the false-positive rate. Octo-Bloom chooses the optimal bit array and hash count. Always fast. Usually decisive. Occasionally a gentle “maybe” that triggers the definitive check.</p><h4>Architecture — A Tiny Engine With Big Impact</h4><pre>App -&gt; Postgres -&gt; Octo-Bloom (quick bit-check)<br>                       ↳ No -&gt; done (definite)<br>                       ↳ Maybe -&gt; real DB lookup (exact)</pre><p><strong>Key elements:</strong></p><ul><li><strong>Shared Memory Bit Arrays</strong>: compact, process-shared, low-latency.</li><li><strong>Double Hashing</strong>: two base hashes generate the necessary offsets efficiently.</li><li><strong>Trigger Integration</strong>: keep filters fresh on INSERT/UPDATE (and counting variants can enable deletes).</li><li><strong>Monitoring</strong>: statistics expose memory use and estimated false positives.</li></ul><p>It sits light in the system but touches performance in large, visible ways.</p><h3>A Tiny Example — Big Effect</h3><p>Here’s the pattern that becomes a daily superpower.</p><pre>-- initialize filter for a column<br>SELECT octo_bloom_init(&#39;users&#39;::regclass, &#39;email&#39;, 100000, 0.01);<br><br>-- fast pre-check in application flow<br>SELECT<br>  CASE<br>    WHEN NOT octo_bloom_might_contain(&#39;users&#39;::regclass, &#39;email&#39;, &#39;alice@example.com&#39;)<br>      THEN false<br>    ELSE EXISTS (SELECT 1 FROM users WHERE email = &#39;alice@example.com&#39;)<br>  END;</pre><p>Most non-existent emails will stop at the first line — a microsecond decision. Only potential hits escalate.</p><h4>Where Octo-Bloom Helps Most — The Human Problems</h4><p>The best engineering solves human friction. Here are the stories where Octo-Bloom sings:</p><ul><li><strong>A Signup That Feels Fast</strong><br> Fast validations reduce abandonment. When sign-ups respond instantly, users stay in flow.</li><li><strong>A Moderation Queue That Scales</strong><br> When scanning posts for duplicates or banned words, a Bloom filter weeds out 99% of non-issues before expensive checks.</li><li><strong>A Global Catalog Lookups</strong><br> In e-commerce, SKU checks are frequent. Fast pre-checks speed up cart logic and reduce synchronous calls to slow services.</li><li><strong>Edge-Routing in Sharded Systems</strong><br> Determine whether a key <em>might</em> belong to a shard before making an expensive network call.</li><li><strong>Fraud Prevention at Wire Speed</strong><br> IP, device, and token blacklists that answer instantly keep malicious traffic low-latency without heavy queries.</li></ul><p>These are not just technical wins. They’re UX wins. They save money. They make teams breathe easier.</p><h4>The Tradeoffs — Truthfully</h4><p>No elegant tool is without tradeoffs. Bloom filters introduce <em>false positives</em>: occasionally you won’t be sure. That’s why Octo-Bloom is a pre-check, not a replacement for verification. The mental model is:</p><ul><li><em>No</em> → definite, skip the expensive work.</li><li><em>Yes</em> → possible, so verify.</li></ul><p>Tune your acceptable false-positive rate. For account existence, 1% is common. For shipping logic, you might need tighter bounds. Octo-Bloom gives you control.</p><h4>The Craft — How Octo-Bloom Keeps It Robust</h4><p>Octo-Bloom doesn’t just set bits. It’s engineered for production:</p><ul><li><strong>Shared across sessions</strong> so every backend process benefits.</li><li><strong>Triggerable maintenance</strong> keeps filters in sync with writes.</li><li><strong>Background workers</strong> can resize or rebuild filters as data grows.</li><li><strong>Observability</strong> provides counts and memory metrics so you’re never flying blind.</li></ul><p>You can start simple — initialize a filter and attach triggers — and evolve toward counting filters or hybrid strategies as needs change.</p><h4>A Small Roadmap for Big Thinking</h4><p>If this tool is a candle, the roadmap is the lighthouse:</p><ul><li><strong>Counting Bloom Filters</strong> to support deletions.</li><li><strong>Hybrid Bloom + B-Tree</strong> tiers for cold vs hot data.</li><li><strong>Compression and Sparse Representations</strong> for humongous sets.</li></ul><p>Each step keeps the same philosophy: do less, earlier, and with confidence.</p><h4>Why This Matters — Beyond Benchmarks</h4><p>Engineers love numbers; humans love feeling. Octo-Bloom is not just about shaving milliseconds. It’s about changing how systems behave at scale — making them responsive, predictable, and cheaper to operate.</p><p>When an app feels snappy, users trust it. When infrastructure shrinks, teams innovate instead of firefight. When a small filter can stop thousands of needless queries, we reclaim time and budget for the creative work that matters.</p><h4>Try It, Tune It, Tell Its Story</h4><p>If you’re building systems that ask Postgres simple, frequent membership questions, try this pattern:</p><ol><li>Pick a high-traffic lookup column (emails, SKUs, tokens).</li><li>Estimate expected cardinality and acceptable false-positive rate.</li><li>octo_bloom_init(...) and attach triggers.</li><li>Use octo_bloom_might_contain(...) as a fast pre-check.</li><li>Monitor and adjust parameters as your data grows.</li></ol><p>Then, tell someone about it. Tell your team. Tell your users by delivering faster flow.</p><h4>Closing — An Invitation to Elegant Engineering</h4><p>Building Octo-Bloom is a small rebellion against the assumption that more is always better. It’s an argument for precision: more thought, less noise. Like a master editor who trims a sentence until every word matters, Octo-Bloom trims unnecessary database work until what remains is meaning: faster responses, cheaper operations, and more headspace for the things engineers love — designing systems that hum.</p><p>If this resonates, let the next thing you optimize be the questions you ask your database. Ask less loudly. Ask wisely. Let Octo-Bloom be the filter that lets your system whisper when it should — and shout only when it must.</p><p>gitHub repo link: <a href="https://github.com/alchemist123/octo-bloom">https://github.com/alchemist123/octo-bloom</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba97a2f23e17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How grep Became the Command-Line Superpower You Use Every Day]]></title>
            <link>https://medium.com/@rjamaltdt123/how-grep-became-the-command-line-superpower-you-use-every-day-c4492b3ca98f?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4492b3ca98f</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 12:59:17 GMT</pubDate>
            <atom:updated>2025-07-06T12:59:17.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oh3dVk1wVejIg17W8yDVSA.png" /><figcaption>grap cmd</figcaption></figure><p>The story of how a single night of coding and one brilliant idea created one of the most powerful Unix tools ever.</p><p><strong>The Problem: Big Text, Tiny Tools</strong></p><p>In the early days of Unix, computers were… tiny.</p><p>We’re talking <strong>256KB of memory</strong> tiny. Running anything larger than a few pages of text was a challenge. So when <strong>Lee McMahon</strong>, a linguist at Bell Labs, wanted to analyze the entire <em>Federalist Papers</em> using regular expressions — his go-to editor ed just couldn’t handle the load.</p><p>Now imagine you’re an early Unix engineer, and your tools just give up when fed a big file. What do you do?</p><p>You go to the wizard.</p><p>Hahaha… “JK”</p><p><strong>Enter Ken Thompson</strong></p><p>McMahon approached <strong>Ken Thompson</strong>, co-creator of Unix and absolute legend. He needed a tool that could:</p><ul><li>Read huge text files without choking</li><li>Use regular expressions to find patterns</li><li>Print matching lines</li></ul><p>Thompson didn’t just tweak ed. He took the concept of <strong>g/re/p</strong>—the editor command for &quot;globally search for a regular expression and print the matching lines&quot;—and wrote an entirely new standalone program.</p><p>In just <strong>one night</strong>, grep was born.</p><h3>So What Does grep Stand For?</h3><p>grep literally stands for:</p><pre>g/re/p → global / regular expression / print</pre><p>It came directly from the ed command syntax. Simple, elegant, and instantly useful.</p><p><strong>Why grep Matters (Even Today)</strong></p><p>Even though it was born in the ’70s, grep is still a rockstar in your terminal. Why?</p><ol><li><strong>Blazing fast search</strong> in large files (like logs, datasets, or codebases)</li><li><strong>Regex-powered filtering</strong> lets you match complex patterns</li><li><strong>Simple to use</strong>, but incredibly powerful when piped with other commands</li><li><strong>Scripting essential</strong> — grep + awk + sed is a sysadmin’s holy trinity</li></ol><p><strong>Real-World grep</strong></p><p>Find all TODOs in your code:</p><pre>grep -r &quot;TODO&quot; .</pre><p>Search for error messages in logs (case-insensitive):</p><pre>grep -i &quot;error&quot; /var/log/syslog</pre><p>Show line numbers for matches:</p><pre>grep &quot;^INFO:&quot; server.log</pre><p>Still think it’s basic? Think again. With grep, the real power lies in combining it with pipes, xargs, or find</p><h3>grep Changed the Way We Build Tools</h3><p>Thompson’s philosophy was clear:<br> <strong>“Build small tools that do one thing well, and let users combine them.”</strong></p><p>That idea became the foundation of the Unix philosophy, and grep was one of its <strong>first poster children</strong>. The entire Linux/Unix ecosystem — your CI/CD tools, logging systems, even Docker logs — still lives off this principle.</p><p><strong>Lessons for Modern Developers</strong></p><ul><li><strong>Build for real needs</strong>: grep solved a real pain point — scanning large text files efficiently.</li><li><strong>Don’t overengineer</strong>: grep was simple. It didn’t try to be a full text editor or parser. It just searched.</li><li><strong>Reuse what works</strong>: grep borrowed logic from ed. Innovation doesn’t always mean reinventing.</li><li><strong>Great tools last</strong>: It’s 2025. We still use grep daily.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4492b3ca98f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitOpus]]></title>
            <link>https://medium.com/@rjamaltdt123/gitopus-beece90d58f1?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/beece90d58f1</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 13:00:32 GMT</pubDate>
            <atom:updated>2025-03-19T13:00:32.957Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Eight-Armed Git Hero You Didn’t Know You Needed 🐙</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*rDRfxAzilILtG522se2QQA.jpeg" /></figure><h3>Why I Became a Git Therapist</h3><p>Imagine this: You’re trying to push code to your company repo at 2 AM.</p><p>Git yells:<em>“Permission denied (publickey). Please make sure you have the correct access rights”</em><br>You stare at the screen, whispering: <em>“But… I AM </em><a href="https://mailto:work@company.com/"><em>work@company.com</em></a><em>!”</em><br>Git responds: <em>“LOL nice try, </em><a href="http://coder69@dumbmail.com/"><em>coder69@dumbmail.com</em></a><em>”</em> 😱</p><p>If you’ve ever accidentally committed to your company repo with your “<em>HelloDestroyer420</em>” GitHub handle, GitOpus is your new emotional support animal.</p><h3>What is GitOpus?</h3><p>GitOpus is a <strong>command-line tool</strong> that helps you:</p><ol><li><strong>Manage multiple Git identities</strong> (work, personal, secret anime fan account 🐱)</li><li><strong>Automatically switch profiles</strong> based on the repo you’re in</li><li><strong>Stop embarrassing yourself</strong> with wrong emails or SSH keys</li><li><strong>Save time</strong> by not manually configuring Git every time</li></ol><p>Think of it as a <strong>Git butler</strong> who knows all your secrets and keeps them safe.</p><h3>Why GitOpus is a Game-Changer</h3><ul><li><strong>No more “Permission Denied” errors</strong></li><li><strong>No more “Oops, wrong email” commits</strong></li><li><strong>No more SSH key juggling</strong></li><li><strong>Perfect for developers with multiple Git accounts</strong> (so… all of us)</li></ul><h3>Step-by-Step Guide for Beginners</h3><p>Don’t worry if you’re new to Git or Rust. GitOpus is here to make your life easier, not harder. Let’s dive in! ( Don’t trust ME! )</p><h3>Installation: For When You’re Tired of Googling “git reset — hard”</h3><p><strong>Step 0:</strong> Pretend you’re a Linux user (Windows folks: 😬 see FAQ)<br><strong>Step 1:</strong> Become BFFs with Rust:</p><pre>curl --proto &#39;=https&#39; --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre><p><strong>Step 2:</strong> Clone our emotional support repository:</p><pre>git clone -b main https://github.com/alchemist123/gitopus.git<br><br>cd gitopus</pre><p><strong>Step 3:</strong> build octopus and source it:</p><pre>Cargo build --release<br>sudo cp target/release/gitopus /usr/local/bin/</pre><p><strong>Step 4:</strong> Verify the Version:</p><pre>octopus --version<br># Should output: &quot;Octopus 0.2.0 (Because 0.1.0 was too mainstream)&quot;</pre><h3>How GitOpus Saves Your Marriage (to Code)</h3><p><strong>Scenario 1:</strong> The Work-Personal Tango</p><p><em>Problem:</em> Your “work” commits keep showing your “<em>IloveMJ13</em>” email</p><p><strong>Octopus to the Rescue:</strong></p><pre># Create profiles<br>gitopus profile create --name work --email corporate_drone@company.com --ssh-key-path ~/.ssh/work_rsa --domain github.com<br>gitopus profile create --name personal --email cool_hacker@protonmail.com --ssh-key-path ~/.ssh/personal_rsa --domain gitlab.com<br><br># This is your &quot;after-hours&quot; identity. GitOpus won’t judge.<br><br># Let the magic begin!<br>gitopus git push origin main<br># gitopus auto-detects GitHub, uses work profile. Your HR department remains clueless </pre><p><strong>List Your Profiles</strong>:</p><pre>gitopus profile list</pre><p><em>Output:</em></p><pre>work (): work@company.com - github.com  <br>personal (): cool_hacker@protonmail.com - gitlab.com  </pre><p><em>Look at that! You’re officially a multi-dimensional being.</em></p><h4>Step 5: Use GitOpus in Real Life</h4><p>Now that GitOpus knows your identities, let’s put it to work.</p><ol><li><strong>Navigate to a Work Repo</strong>:</li></ol><pre>cd ~/work-project</pre><p><strong>2. Run a Git Command</strong>:</p><pre>gitopus git status</pre><p><em>GitOpus will automatically detect the repo’s remote (e.g., GitHub) and use your work profile. Magic!</em></p><p><strong>Commit Something</strong>:</p><pre>gitopus git commit -m &quot;Fix critical bug&quot;</pre><p><em>Check the commit history:</em></p><pre>git log</pre><p><em>You’ll see your work email. HR is happy. You’re happy. Everyone’s happy.</em></p><p><strong>Switch to a Personal Repo</strong>:</p><pre>cd ~/personal-project<br>gitopus git push origin main</pre><p><em>GitOpus will switch to your personal profile. No more accidental work emails in your side projects!</em></p><h3>Real-Life Scenarios Where GitOpus Saves the Day</h3><ul><li><strong>The “Oops Wrong Email” Fix</strong>:</li><li>Before GitOpus: Commit with iloveMJ@fanmail.com in your work repo.</li><li>After GitOpus: Professional commits only. Your secret stays safe.</li></ul><p><strong>2. The “Permission Denied” Nightmare</strong>:</p><ul><li>Before GitOpus: Spend 2 hours debugging SSH keys.</li><li>After GitOpus: GitOpus handles it. You drink coffee instead.</li></ul><p><strong>3. The “Too Many Repos” Problem</strong>:</p><ul><li>Before GitOpus: Manually configure Git for every repo.</li><li>After GitOpus: GitOpus auto-detects and switches profiles. You’re basically a productivity guru.</li></ul><h3>FAQ: Because We Know You Won’t RTFM</h3><p><strong>Q:</strong> <em>“What if I have 69 GitHub accounts?”</em><br><strong>A:</strong> GitOpus handles more identities than a CIA operative. Go nuts.</p><p><strong>Q:</strong> <em>“Will this steal my SSH keys?”</em><br><strong>A:</strong> Only if you name your key please_hack_me.rsa</p><p><strong>Q:</strong> <em>“Windows support when?”</em><br><strong>A:</strong> When Microsoft stops making developers cry (PRs welcome!)</p><h3>Future Superpowers 🚀</h3><ol><li><strong>GitHub Token Vault</strong> — Store secrets safer than your browser’s “passwords.txt”</li><li><strong>Auto-Profile Creator</strong> — Because typing is hard</li><li><strong>Commit Time Machine</strong> — Fix past mistakes (philosophical implications sold separately)</li><li><strong>Windows Support</strong> — So Bill Gates can use it too</li></ol><h3>Contribute: Earn Eternal Developer Karma</h3><p>Found a bug? Fixed it? Want to add cat GIFs to the codebase?<br><strong>Our GitHub:</strong> <a href="https://github.com/alchemist123/gitopus">https://github.com/alchemist123/gitopus</a></p><p><em>Current Issues Perfect for First Timers:</em></p><ul><li>Add “ — dramatic-exit” flag that plays sad violin music on errors</li><li>Implement “GitOpus therapy” command that says nice things about your code</li><li>Windows support (we’ll pray for you)</li></ul><h3>Join the GitOpus Cult 🐙</h3><p>Octopus won’t:<br>❌ Judge your 3 AM commits<br>❌ Leak your embarrassing email<br>❌ Ask why you have 12 “test” repos</p><p>What it will do:<br>✅ Make you look competent<br>✅ Save you from HR meetings<br>✅ Let you focus on coding (not Git configs)</p><p><strong>Final Warning:</strong> Once you go GitOups, you’ll wonder how you lived like a peasant before.</p><p><em>Now go forth and commit (responsibly)!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beece90d58f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Containerized Azure Function: A Hilariously Simple Guide]]></title>
            <link>https://medium.com/@rjamaltdt123/deploying-a-containerized-azure-function-a-hilariously-simple-guide-c5a1ef469ad0?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a1ef469ad0</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 09:09:55 GMT</pubDate>
            <atom:updated>2025-03-16T09:09:55.028Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, fellow code wrangler and tech enthusiast! Today, we’re diving into the world of Azure Functions — but with a twist: we’re containerizing our Python-based timer trigger function and deploying it using Azure CLI commands. Yes, you read that right. We’re taking your humble function and giving it a shiny Docker makeover. Grab your favorite beverage, and let’s get rolling before any “super errors” come knocking at your door!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vB2x-9lQxzuxnVQSdSvY_Q.png" /><figcaption>Azure function + Docker + Me = Love</figcaption></figure><h3>Prerequisites (AKA “Before You Die… Err, Deploy”)</h3><p>Before you even think about containerizing your Azure Function, make sure you have the following in your arsenal:</p><ul><li><strong>Azure Container Registry (ACR):</strong> A place to store your Docker images.</li><li><strong>Premium Azure Function App:</strong> Already created and waiting for your container magic.</li><li><strong>Azure CLI Installed:</strong> This is your magic wand for talking to Azure.</li><li><strong>Visual Studio Code:</strong> Because who doesn’t love a good code editor?</li><li><strong>Docker:</strong> To build and run your containers.</li></ul><p>Once you have these set up, open your terminal and <strong>log in to Azure</strong>:</p><pre>az login</pre><p>Select the correct subscription and resource group. Next, log in to your ACR:</p><pre>az acr login --name &lt;acr_name&gt;</pre><h3>Creating the Azure Function with Docker Support</h3><p>First, create your Azure Function project with Docker support. Use the Azure CLI to initialize your function (we’re assuming you’re creating a V2 function):</p><pre>func init MyFunctionProj --python --docker<br>cd MyFunctionProj<br>func new --name TimerTrigger --template &quot;Timer trigger&quot;</pre><p>This command scaffolds a Python-based timer trigger function and sets up Docker support for you.</p><h3>Customizing Your Dockerfile</h3><p>Now, it’s time to customize your Dockerfile. <strong>Pro tip:</strong> Don’t forget to expose port 80, or you’ll be greeted with a super error — and trust me, that’s not a good way to start your day!</p><p>Replace your Dockerfile contents with the following:</p><pre>FROM mcr.microsoft.com/azure-functions/python:4-python3.11<br><br>ENV AzureWebJobsScriptRoot=/home/site/wwwroot \<br>    AzureFunctionsJobHost__logging__Console__IsEnabled=true \<br>    ASPNETCORE_URLS=http://+:80 \<br>    WEBSITES_PORT=80<br><br>EXPOSE 80<br>COPY . /home/site/wwwroot<br>RUN cd /home/site/wwwroot &amp;&amp; \<br>    pip install --no-cache-dir --upgrade pip setuptools wheel &amp;&amp; \<br>    pip install --no-cache-dir -r requirements.txt</pre><p>This Dockerfile uses the latest Azure Functions Python image, sets up necessary environment variables, and ensures that port 80 is exposed to avoid those dreaded errors.</p><h3>Building and Pushing Your Docker Image</h3><p>With your Dockerfile in place, it’s time to build and push your image to your ACR. Replace the placeholder values with your actual registry name, image name, and tag.</p><p><strong>Build your Docker image:</strong></p><pre>docker build -t &lt;acr_name&gt;.azurecr.io/&lt;image_name&gt;:&lt;tag&gt; .</pre><p>Push the image to your ACR:</p><pre>docker push &lt;acr_name&gt;.azurecr.io/&lt;image_name&gt;:&lt;tag&gt;</pre><p>Tip: Double-check your image name and tag to avoid any naming mishaps. Remember, consistency is key!</p><h3>Deploying the Containerized Function to Azure</h3><p>Now comes the grand finale: deploying your containerized Azure Function. Use the following Azure CLI command, and again, replace the placeholders with your actual values:</p><pre>az functionapp config container set \<br>  --name &lt;function_app_name&gt; \<br>  --resource-group &lt;resource_group_name&gt; \<br>  --image &lt;acr_name&gt;.azurecr.io/&lt;image_name&gt;:&lt;tag&gt; \<br>  --registry-server https://&lt;acr_name&gt;.azurecr.io \<br>  --registry-username &lt;acr_username&gt; \<br>  --registery-password &lt;acr_password&gt;</pre><p><em>Note:</em> You can pass other environment key values here, or set them later on the Azure Function App console if needed.</p><h3>Final Check: Mission Accomplished or Facepalm?</h3><p>After deploying, head over to the Azure portal and check the console of your Function App. If your function is up and running, congratulations — you’ve just containerized and deployed your Azure Function like a pro! If not, well… you might need to re-read this guide (or dramatically blame your coffee for being too weak).</p><p>Remember, containerisation can be tricky, but with these steps, even a beginner can become an Azure ninja. May your deployments always be error-free (or at least hilariously educational when they’re not)!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5a1ef469ad0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Neovim: The Ultimate Guide for Power Users]]></title>
            <link>https://medium.com/@rjamaltdt123/mastering-neovim-the-ultimate-guide-for-power-users-0bb32587e4f6?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bb32587e4f6</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 17:50:15 GMT</pubDate>
            <atom:updated>2025-02-03T17:50:15.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMklY2OJ9EYfjIwN02fJUg.png" /></figure><h3>Introduction</h3><p>Neovim is a modern reimplementation of Vim, designed to be more extensible, embeddable, and maintainable. While it retains the core philosophy of Vim, Neovim introduces significant improvements, including asynchronous job control, built-in LSP support, and a more modular architecture. In this guide, we dive deep into Neovim’s technical aspects, including its architecture, plugin ecosystem, and performance optimizations.</p><h3>Neovim vs. Vim: Key Differences</h3><p>Neovim enhances the traditional Vim experience by offering:</p><ul><li><strong>Asynchronous Job Control</strong>: Enables background processing without blocking the UI.</li><li><strong>Built-in LSP Support</strong>: Provides native integration with Language Server Protocol (LSP) for intelligent code assistance.</li><li><strong>Tree-sitter Parsing</strong>: Allows precise syntax highlighting and code manipulation.</li><li><strong>Embedded Lua API</strong>: Moves away from Vimscript in favor of Lua, improving configuration and extensibility.</li><li><strong>Improved UI Support</strong>: Enables seamless integration with external GUIs and TUI enhancements.</li></ul><h3>Neovim Architecture</h3><p>Neovim follows a modular architecture with the following core components:</p><h3>1. Core Engine</h3><p>The Neovim core retains Vim’s modal editing but introduces a <strong>msgpack-rpc API</strong>, allowing communication with external clients. The core itself is written in C for performance.</p><h3>2. Extensibility via Lua</h3><p>Unlike Vim’s reliance on Vimscript, Neovim provides first-class support for Lua. This allows for efficient scripting and plugin development. Configuration files now leverage init.lua instead of init.vim.</p><h3>3. Language Server Protocol (LSP)</h3><p>Neovim includes native LSP support (:help lsp), enabling real-time autocompletion, diagnostics, and code actions. The <strong>nvim-lspconfig</strong> plugin further simplifies the LSP setup.</p><p>Example LSP Configuration:</p><pre>local lspconfig = require(&#39;lspconfig&#39;)<br>lspconfig.tsserver.setup({<br>    on_attach = function(client, bufnr)<br>        print(&quot;LSP attached&quot;)<br>    end,<br>})</pre><h3>4. Tree-sitter for Syntax Highlighting</h3><p>Tree-sitter provides better syntax awareness compared to traditional regex-based highlighting. It enhances text objects, refactoring capabilities, and folding.</p><p>Installation:</p><pre>require&#39;nvim-treesitter.configs&#39;.setup {<br>    ensure_installed = {&quot;lua&quot;, &quot;javascript&quot;, &quot;python&quot;},<br>    highlight = {<br>        enable = true,<br>    },<br>}</pre><h3>5. Asynchronous Jobs and Plugins</h3><p>Neovim allows running tasks asynchronously using jobstart() and vim.loop. This is particularly useful for LSPs, formatters, and external CLI tools.</p><p>Example:</p><pre>vim.fn.jobstart(&quot;ls&quot;, {<br>    on_stdout = function(_, data)<br>        print(vim.inspect(data))<br>    end,<br>})</pre><h3>Plugin Management</h3><p>Neovim supports multiple plugin managers, with <strong>lazy.nvim</strong> and <strong>packer.nvim</strong> being the most popular.</p><h3>Installing Packer.nvim</h3><pre>vim.cmd [[packadd packer.nvim]]<br>return require(&#39;packer&#39;).startup(function()<br>    use &#39;neovim/nvim-lspconfig&#39; -- LSP support<br>    use &#39;nvim-treesitter/nvim-treesitter&#39; -- Better syntax highlighting<br>    use &#39;hrsh7th/nvim-cmp&#39; -- Autocompletion<br>end)</pre><h3>Performance Optimization</h3><p>Neovim can be optimized for speed and efficiency using:</p><ul><li><strong>Lazy-loading plugins</strong>: Load plugins only when needed.</li><li><strong>Disabling unnecessary providers</strong>: Reduce startup time by disabling unused interpreters.</li></ul><pre>vim.g.loaded_python3_provider = 0<br>vim.g.loaded_ruby_provider = 0</pre><p><strong>Profiling startup time</strong>:</p><pre>nvim --startuptime nvim.log +q</pre><h3>Conclusion</h3><p>Neovim is more than just a Vim successor; it’s a powerful, modern text editor built for developers who demand efficiency, speed, and extensibility. Whether you’re customizing it with Lua, integrating LSP for intelligent code assistance, or leveraging Tree-sitter for precise syntax parsing, Neovim stands as one of the best editors available today.</p><p>Are you ready to supercharge your workflow with Neovim? Let us know how you’re using it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bb32587e4f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOPS ! Your Authentication Module With Bcrypt is Vulnerable.]]></title>
            <link>https://medium.com/@rjamaltdt123/oops-your-authentication-module-with-bcrypt-is-vulnerable-353f3ce588c6?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/353f3ce588c6</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 06:50:42 GMT</pubDate>
            <atom:updated>2024-11-04T06:50:42.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOPS! Your Bcrypt Authentication Module May Be at Risk</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cc_qAlNcpZPdlPqoIUBMzg.png" /></figure><p>What is Bcrypt ?</p><p><strong>bcrypt</strong> is a popular algorithm used to securely store passwords. Instead of saving a password directly, bcrypt converts it into a <strong>72-character hash</strong> that’s unique and cannot be easily reversed. This way, even if someone gains access to the database, they can’t see the original password.</p><p>What’s the problem with this?</p><p>One vulnerability with <strong>bcrypt</strong> lies in how it handles long passwords. Specifically, bcrypt only processes the <strong>first 72 characters</strong> of a password. If a user enters a password longer than 72 characters, bcrypt ignores any characters beyond that limit.</p><p>Why is This a Problem?</p><ul><li><strong>Loss of Uniqueness:</strong> When bcrypt truncates the password to the first 72 characters, two passwords with identical first 72 characters but different endings will produce the same hash. This means longer passwords are essentially “cut short,” which can reduce their intended strength.</li><li><strong>Verification Risk:</strong> The same limitation applies during password comparison. When bcrypt verifies a password, it only checks the first 72 characters. This means an attacker who knows this limitation could craft a password with the same beginning, bypassing the additional security users expect with longer passwords.</li></ul><p>Okey wait! I Will Explain this with some piece of Code</p><pre>const bcrypt = require(&#39;bcryptjs&#39;);<br><br>// Length of the string<br>const length = 72;<br><br>// Create two strings<br>const string1 = Array(length + 1).join(&#39;0&#39;);<br>const string2 = string1 + &#39;_&#39; + Date.now();<br><br>console.log({ string1, string2 });<br><br>// Hashing the strings<br>const hash1 = bcrypt.hashSync(string1);<br>const hash2 = bcrypt.hashSync(string2);<br><br>// Compare hashes and log results<br>console.log(&#39;string1-hash1&#39;, bcrypt.compareSync(string1, hash1)); // true<br>console.log(&#39;string1-hash2&#39;, bcrypt.compareSync(string1, hash2)); // true<br>console.log(&#39;string2-hash1&#39;, bcrypt.compareSync(string2, hash1)); // true<br>console.log(&#39;string2-hash2&#39;, bcrypt.compareSync(string2, hash2)); // true</pre><pre>{<br>  string1: &#39;000000000000000000000000000000000000000000000000000000000000000000000000&#39;,<br>  string2: &#39;000000000000000000000000000000000000000000000000000000000000000000000000_1730702169875&#39;<br>}<br>string1-hash1 true<br>string1-hash2 true<br>string2-hash1 true<br>string2-hash2 true</pre><p>The Vulnerability Explained:</p><p><strong>Truncation of Input:</strong></p><ul><li>Bcrypt truncates any input longer than <strong>72 characters</strong>. In this case, while string2 is 73 characters, only the first 72 characters (&#39;0&#39;s) are considered when generating its hash.</li><li>This means that both string1 and string2 produce the <strong>same hash</strong>, even though they are technically different strings.</li></ul><p><strong>Hash Collision:</strong></p><ul><li>Because of this truncation, it creates a <strong>hash collision</strong> scenario where multiple different inputs can generate the same hash. In this example, string1 and string2 lead to the same hashed output because their first 72 characters are identical.</li></ul><p><strong>Security Implications:</strong></p><ul><li>An attacker can exploit this behavior by crafting different passwords that share the same initial 72 characters. For instance, an attacker could use a password that looks different but starts the same way as a known valid password, potentially gaining unauthorized access.</li><li>Users who think they are creating unique and complex passwords that exceed 72 characters may not realize that their extra characters are being ignored, thereby reducing the effectiveness of their password security.</li></ul><h3>Conclusion:</h3><p>This code effectively demonstrates how bcrypt’s 72-character limitation can lead to vulnerabilities in password security. It emphasises the importance of understanding how hashing algorithms handle input and the potential risks associated with truncation, ultimately affecting the strength of password protection.</p><p>Okta’s experience serves as a reminder that understanding cryptographic limitations is crucial when building secure systems. Bcrypt’s input length restriction, while not a flaw, makes it unsuitable for some use cases, particularly those involving long strings or complex authentication data. By selecting the right hashing algorithm, validating inputs, and carefully monitoring cache usage, developers can avoid similar vulnerabilities.</p><p>Refereance: <a href="https://trust.okta.com/security-advisories/okta-ad-ldap-delegated-authentication-username/">https://trust.okta.com/security-advisories/okta-ad-ldap-delegated-authentication-username/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=353f3ce588c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brief Introduction to Quantum Computer]]></title>
            <link>https://medium.com/@rjamaltdt123/brief-introduction-to-quantum-computer-cfaf0ea15845?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfaf0ea15845</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Thu, 25 May 2023 07:02:43 GMT</pubDate>
            <atom:updated>2023-05-25T07:02:43.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum computers may also be called probabilistic or nondeterministic computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsNRdJU1SgCThPi4pRG4iQ.jpeg" /></figure><h4>What is Quantum Mechanism?</h4><p>In simple terms, quantum mechanics tells us that particles can exist in multiple states at the same time. This is called superposition. For example, an electron can be both here and there simultaneously, or a particle can spin in both directions simultaneously. It’s like a blending of possibilities.</p><h4>What is a Quantum Computer?</h4><p>A quantum computer is a special kind of computer that uses the rules of quantum mechanics to solve problems. The basic building blocks are not traditional electronic components like transistors but rather atoms or other quantum systems that can represent and manipulate quantum information. These quantum systems, known as qubits, take advantage of the properties of quantum mechanics to perform computations. It can work with many possibilities at the same time and can quickly find answers to certain types of problems that regular computers struggle with. It’s like a superpowered computer that uses the strange behavior of tiny particles to do incredible calculations.</p><h4>Two common Quantum Computer architectures:</h4><p>The architecture of a quantum computer can vary depending on the specific technology being used to implement the qubits. I’ll provide an overview of two common architectures: the circuit model and the adiabatic model.</p><ol><li><strong>Circuit Model Architecture:</strong></li></ol><ul><li>Qubits: The qubits are typically implemented using physical systems such as superconducting circuits, trapped ions, or topological qubits. These qubits are manipulated and controlled using quantum gates.</li><li>Quantum Gates: Quantum gates are applied to the qubits to perform specific operations. They can include single-qubit gates, such as the Hadamard gate or the Pauli gates (X, Y, Z), as well as multi-qubit gates like the CNOT gate (Controlled-NOT) that entangle two qubits.</li><li>Control System: A control system is responsible for generating the appropriate gate sequences and managing the interactions between qubits during the computation. It orchestrates the timing and application of quantum gates to achieve the desired quantum algorithm.</li><li>Readout and Measurement: At the end of the computation, the qubits’ states are measured to extract the output. This usually involves mapping the quantum states to classical bits for analysis and interpretation.</li></ul><p>2.<strong> Adiabatic Model Architecture:</strong></p><ul><li>Qubits: The qubits in the adiabatic model are typically implemented using superconducting loops or other systems that can be manipulated to represent two-level quantum systems.</li><li>Adiabatic Quantum Computing (AQC): Instead of using quantum gates, the adiabatic model relies on slowly changing the system’s Hamiltonian from an initial state representing a simple problem to a final state representing the desired problem. This process maintains the system in its ground state and enables quantum annealing.</li><li>Quantum Annealing: Quantum annealing involves using the adiabatic process to find the global minimum of an energy function associated with a given optimization problem. By carefully controlling the annealing schedule, the system settles into the lowest energy state, which corresponds to the solution of the problem being solved.</li><li>Control System: A control system is responsible for maintaining the adiabatic conditions and precisely controlling the evolution of the system’s Hamiltonian during the annealing process.</li><li>Readout and Measurement: Similar to the circuit model, the final states of the qubits are measured to extract the output, which represents the solution to the optimization problem.</li></ul><blockquote>As of my knowledge cutoff in September 2021, the largest quantum computers in the world are built by various companies and research institutions. Quantum computers are still in the early stages of development, and their sizes and capabilities are rapidly evolving. However, it’s important to note that the field is advancing quickly, and new developments may have occurred since then.</blockquote><blockquote>One notable example is Google’s quantum computer, known as Sycamore. In 2019, Google announced that their 54-qubit quantum processor, Sycamore, had achieved a milestone called “quantum supremacy.” It demonstrated the ability to perform a specific calculation significantly faster than any classical computer could. Sycamore was a significant advancement in the field and represented a significant step towards practical quantum computing.</blockquote><blockquote>IBM also has a notable quantum computing initiative called IBM Quantum, which offers access to a variety of quantum computers with different numbers of qubits. Their largest system available to the public as of 2021 was the IBM Quantum System One, which had 65 qubits. IBM is actively working on advancing their quantum technology and regularly adds more powerful machines to their lineup.</blockquote><p>Watch this video for more about the world&#39;s largest system available to the public by IBM</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fe3fz3dqhN44%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3De3fz3dqhN44&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fe3fz3dqhN44%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ce6053c1e3a5ebfb480b8595ee74cd9/href">https://medium.com/media/4ce6053c1e3a5ebfb480b8595ee74cd9/href</a></iframe><h4>Conclusion</h4><p>However, quantum computers are still in the early stages of development, and many technical challenges need to be overcome, such as managing decoherence and improving qubit stability. Building practical and scalable quantum computers is a complex task that requires advancements in various areas of research and engineering.</p><p>Despite the challenges, quantum computers hold the promise of revolutionizing fields such as cryptography, optimization, material science, and drug discovery. They offer the potential to tackle problems that are currently intractable for classical computers, opening up new possibilities for scientific and technological advancements.</p><p>As the field of quantum computing continues to progress, researchers and engineers are striving to develop larger, more stable, and more powerful quantum computers that can realize the full potential of quantum information processing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfaf0ea15845" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up a GitLab CI/CD pipeline for a dockerized Application]]></title>
            <link>https://medium.com/@rjamaltdt123/how-to-set-up-a-gitlab-ci-cd-pipeline-for-a-dockerized-application-3d7ef2362075?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d7ef2362075</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Wed, 24 May 2023 08:31:11 GMT</pubDate>
            <atom:updated>2023-05-24T08:31:11.904Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This is a simple tutorial for setup the GitLab CI/CD pipeline to automate your deployments.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*qmsR86Ak5a7CpCE_Aqf__g.png" /></figure><h4>What is CI/CD?</h4><blockquote>CI/CD is a method to frequently deliver your application to customers by introducing automation into the stages of app development. The main concepts attributed to CI/CD are continuous integration, continuous delivery / continuous deployment. CI/CD is a solution to the problems integrating new code can cause for development and operations teams.</blockquote><p><strong>Setting up a GitLab CI/CD pipeline for a dockerized application involves several steps to automate the build, test, and deployment processes. Here is a conclusion on how to set up such a pipeline:</strong></p><ol><li><strong>Configure GitLab Repository: </strong>Ensure you have a GitLab repository set up for your project and the code is pushed to the repository.</li><li><strong>Define GitLab CI/CD Configuration:</strong> Create a .gitlab-ci.yml file in the root of your repository. This file will define the stages, jobs, and steps for your pipeline.</li><li><strong>Specify Docker Image:</strong> Specify a base Docker image that will be used for building and running your application. You can use an existing image or create a custom image based on your application’s requirements.</li><li><strong>Define Stages and Jobs:</strong> Divide your pipeline into stages representing different phases of the development lifecycle (e.g., build, test, deploy). Define jobs within each stage to perform specific tasks like building the Docker image, running tests, and deploying to different environments.</li><li><strong>Configure Build Job:</strong> Set up a job to build your Docker image. This job should include the necessary steps to build the application code, package it into a Docker image, and optionally push the image to a Docker registry.</li><li><strong>Configure Test Job: </strong>Set up a job to run tests on your application. Depending on your application’s testing requirements, you can include unit tests, integration tests, or other types of tests. Make sure the job fails if any of the tests fail.</li><li><strong>Configure Deployment Job(s):</strong> Set up job(s) to deploy your application. Define separate jobs for deploying to different environments (e.g., staging, production). Use the appropriate deployment method, such as Docker Swarm, Kubernetes, or a cloud platform like AWS or Google Cloud. Include the necessary steps to pull the Docker image and deploy it to the target environment.</li><li><strong>Define Triggers:</strong> Specify the triggers that should initiate the pipeline. For example, you can configure the pipeline to automatically run whenever changes are pushed to specific branches or when a merge request is created.</li><li><strong>Set Up GitLab Runners:</strong> Ensure you have GitLab runners available to execute the jobs defined in your pipeline. Runners can be shared or dedicated to your project. Configure them to run your jobs in parallel or sequentially, depending on your requirements.</li><li><strong>Test and Iterate:</strong> Commit and push your .gitlab-ci.yml file to trigger the pipeline and verify that each stage and job executes as expected. Make any necessary adjustments to the pipeline configuration based on the results.</li></ol><h3>Create a .gitlab-ci.yml file</h3><blockquote>Now create a .gitlab-ci.yml file. It is a YAML file where you specify instructions for GitLab CI/CD.</blockquote><blockquote>In this file, you define:</blockquote><blockquote>The structure and order of jobs that the runner should execute.</blockquote><blockquote>The decisions the runner should make when specific conditions are encountered.</blockquote><h4>Detailing .gitlab-ci.yml</h4><pre>build-job:<br>  stage: build<br>  before_script:<br>   ## Here we can write script to auth your gitlab profile<br>   ## whatever you want before deployment or test<br>    - echo &quot;Hello, $GITLAB_USER_LOGIN!&quot;<br><br>test-job1:<br>  stage: test<br>  script:<br>    - echo &quot;This job tests something&quot;<br><br>deploy-prod:<br>  stage: deploy<br>  script:<br>    - echo &quot;This job deploys something from the $CI_COMMIT_BRANCH branch.&quot;<br>  environment: production</pre><blockquote>Above is a basic structure of .gitlab-ci.yml</blockquote><blockquote>Now we are moving to real-world example before that you need the following pre-requirements.</blockquote><ol><li>You need a GitLab account with a project repo</li><li>Push your code into the GitLab repo</li><li>Need a basic understanding of docker and dockerCompose.</li></ol><h4>my project structure:</h4><blockquote>— src</blockquote><blockquote>— nodemodule</blockquote><blockquote>— Dockerfile</blockquote><blockquote>— docker-compose</blockquote><blockquote>— .env</blockquote><blockquote>— .gitlab-ci.yml</blockquote><p>Create GitLab pipeline</p><pre>image:<br>  name: alpine:latest<br>stages:<br>  - build<br>before_script:<br>  #verify ssh user<br>build:production:<br>  stage: build<br>  only:<br>    - prod<br>  script:<br>    - echo &quot;Build starting..&quot;<br>    - apk update<br>    - apk add rsync<br>    - rsync --version<br>    - rsync -av -r --rsh=&#39;ssh &lt;ip of your server&gt;&#39; :/home/&lt;root&gt;/&lt;project_folder_name&gt;<br>    - ssh &lt;ip_of_your_server&gt;&#39;cd /home/&lt;root&gt;/&lt;foldername&gt; &amp;&amp; docker compose --env-file /home/&lt;root&gt;/&lt;project_folder_name&gt;/.env -f docker-compose.yml up --build -d&#39;</pre><p>before pushing this code you need to set the prod branch to be protected</p><h3>What is Rsync?</h3><blockquote>Rsync is a Linux-based tool that can be used to sync files between remote and local servers. Rsync has many options that can help you define the connections you make. From deciding the type of shell that should be used to files that should be excluded in a transfer, rsync gives you the power to shape the transfer specifications.</blockquote><h3>what is APK?</h3><blockquote>apk is the Alpine Package Keeper — the distribution’s package manager. It is used to manage the packages (software and otherwise) of the system. It is the primary method for installing additional software, and is available in the apk-tools package.</blockquote><p><strong>You can check the deployment log in the GitLab console</strong></p><p><strong><em>Go to GitLab -&gt; repo -&gt; ci/cd -&gt; jobs.</em></strong></p><h3>Conclusion</h3><p>Setting up a GitLab CI/CD pipeline for a dockerized application involves configuring the GitLab repository, defining the pipeline stages and jobs, specifying the Docker image, and configuring the build, test, and deployment steps. By following these steps, you can automate the build, test, and deployment processes, ensuring efficient and reliable development workflows for your dockerized application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d7ef2362075" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Node.js application (Hello World Express server) in Podman Container Engine.]]></title>
            <link>https://medium.com/@rjamaltdt123/deploy-node-js-application-hello-world-express-server-in-podman-container-engine-5552f4e08df6?source=rss-7589e689509b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5552f4e08df6</guid>
            <dc:creator><![CDATA[amal v s]]></dc:creator>
            <pubDate>Thu, 18 May 2023 10:02:13 GMT</pubDate>
            <atom:updated>2023-05-18T10:07:30.128Z</atom:updated>
            <content:encoded><![CDATA[<p>This quick tutorial shows you how to run a Node.js Express Server on Podman.</p><figure><img alt="podman" src="https://cdn-images-1.medium.com/max/823/1*ypX0m1LHPXujC6sir2QuGQ.png" /></figure><h3><strong>What is Podman ?</strong></h3><blockquote>Podman is a daemonless, open-source, Linux native tool designed to make it easy to find, run, build, share, and deploy applications using Open Containers Initiative (OCI) Container and Container images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine. Most users can alias Docker to Podman (alias docker=podman) without any problems. Similar to other common Container Engine (Docker, CRI-O, container -d), Podman relies on an OCI-compliant Container Runtime(runc, crun, runv, etc) to interface with the operating system and create the running containers. This makes the running containers created by Podman nearly indistinguishable from those created by any other common container engine.</blockquote><h3>Podman Vs. Docker Architecture.</h3><blockquote>Podman uses fork-exec model architecture. It doesn’t restrict itself to the client-server model. There is no need for a daemon to keep running in the background. There is a primary Podman process that has containers called child processes. The main component is a container. Similar to Kubernetes Pods, Podman can create pods, a group of one or more containers sharing the same resources. A pod will always have the main container and a supporting sidecar container.</blockquote><blockquote>Docker uses the well-known client-server architecture. Docker daemon runs in the background, managing containers and communication. Free-flowing communication between client and server helps with a smoother operation.</blockquote><h3><strong>shows you how to run a Node.js Express Server on Podman.</strong></h3><h3><strong>Step 1:</strong></h3><blockquote>create a node.js server application with a get route.</blockquote><pre>~/Desktop <br>❯ mkdir my-server &amp;&amp; cd my-server/<br><br>~/Desktop/my-server <br>❯ npm init<br><br>~/Desktop/my-server <br>❯ npm init<br>This utility will walk you through creating a package.json file.<br>It only covers the most common items, and tries to guess sensible defaults.<br><br>See `npm help init` for definitive documentation on these fields<br>and exactly what they do.<br><br>Use `npm install &lt;pkg&gt;` afterwards to install a package and<br>save it as a dependency in the package.json file.<br><br>Press ^C at any time to quit.<br>package name: (my-server) <br>version: (1.0.0) <br>description: <br>entry point: (index.js) <br>test command: <br>git repository: <br>keywords: <br>author: <br>license: (ISC) <br>About to write to /home/amal/Desktop/my-server/package.json:<br><br>{<br>  &quot;name&quot;: &quot;my-server&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;description&quot;: &quot;&quot;,<br>  &quot;main&quot;: &quot;server.js&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;:&quot;node server.js&quot;<br>    &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;<br>  },<br>  &quot;author&quot;: &quot;&quot;,<br>  &quot;license&quot;: &quot;ISC&quot;<br>}<br><br><br>Is this OK? (yes) yes<br><br>~/Desktop/my-server is 📦 v1.0.0 via  v19.0.0 took 15s <br>❯ npm install express</pre><h3><strong>Step 2:</strong></h3><blockquote>create a server.js file for create a basic express server</blockquote><pre>~/Desktop/my-server is 📦 v1.0.0 via  v19.0.0 <br>✦ ❯ nano server.js</pre><p>add this javascript code,</p><pre>const express = require(&#39;express&#39;)<br>const app = express()<br>const port = 3000<br><br>app.get(&#39;/&#39;, (req, res) =&gt; res.send(&#39;Hello World!&#39;))<br><br>app.listen(port, () =&gt; console.log(`My server listening at http://localhost:${port}`))</pre><h3><strong>Step 3: </strong>Build a Podman image</h3><blockquote>Create a Dockerfile.</blockquote><pre>FROM node:10-alpine<br><br>RUN mkdir -p /src/app<br>WORKDIR /src/app<br><br>COPY package.json /src/app/package.json<br>RUN npm install<br>COPY . /src/app<br><br>EXPOSE 3000<br>CMD [ &quot;npm&quot;, &quot;start&quot; ]</pre><p>Based on your Dockerfile, start building the Podman image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_dq2If3orjp_iKzTR5EmQ.png" /></figure><h3><strong>Step 3: Run the Podman container</strong></h3><blockquote>Run the application with below command (-d: run container in detached mode, --name: specify a name for container, -p: specify exposed port mapping).</blockquote><h3><strong>Step 4: List Podman images</strong></h3><pre>$ postman images</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*dKBi1XovVDhqJmfQ2yhhBw.png" /><figcaption>localhost/app-image</figcaption></figure><h3>Step 5: Run the Podman container</h3><blockquote>Run the application with the below command (-d: run the container in detached mode, --name: specify a name for the container, -p: specify exposed port mapping).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*bYXO47kn2FrUB_Vf2MEeKA.png" /><figcaption>Run the podman container ,(app-image)</figcaption></figure><pre>$ podman ps</pre><p>which shows the running containers.</p><pre>~/Desktop/my-server via 🐳 desktop-linux is 📦 v1.0.0 via  v19.0.0 <br>✦ ❯ podman ps\<br>∙ <br>CONTAINER ID  IMAGE                            COMMAND     CREATED         STATUS             PORTS                   NAMES<br>24124bba0391  docker.io/library/ubuntu:latest  /bin/bash   2 hours ago     Up 2 hours ago                             my-linux<br>78f17db6720e  localhost/app-image:latest       npm start   47 seconds ago  Up 48 seconds ago  0.0.0.0:3000-&gt;3000/tcp  app-container</pre><blockquote>Now call the app using curl or postman : localhost:3000</blockquote><pre>~/Desktop/my-server via 🐳 desktop-linux is 📦 v1.0.0 via  v19.0.0 <br>✦ ❯ curl localhost:3000<br>Hello World!</pre><h3>Conclusion</h3><blockquote>we have seen that both Docker and Podman are amazing in running and managing containers. You can build and deploy large-scale applications with both of them.<br>Since Docker needs a daemon to manage its containers, it will need root permission to run the processes.</blockquote><blockquote>As Podman does not have a daemon, it has a (daemonless architecture). It does not require root privileges for its containers.</blockquote><blockquote>If you are more concerned about security in your applications or planning to use Kubernetes to orchestrate your containers, Podman is the better choice for you.</blockquote><blockquote>If you want a well-documented tool with a much larger user base, then Docker is the better option for you.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5552f4e08df6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>