<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Anis Afifi — Technology</title>
    <link>https://www.anisafifi.com/blog/tech/</link>
    <description>Hands-on writing about AI, programming, web and mobile development, cloud, networking and cyber security.</description>
    <language>en-us</language>
    <atom:link href="https://www.anisafifi.com/blog/tech/rss.xml" rel="self" type="application/rss+xml" />
    <lastBuildDate>Sun, 15 Nov 2026 00:00:00 GMT</lastBuildDate>
    <copyright>© 2026 Anis Afifi</copyright>
    <item>
      <title>PhotoKit: Batch Photo Metadata and Signatures from the CLI</title>
      <link>https://www.anisafifi.com/blog/tech/tools/photokit-photo-metadata-watermark-cli/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/tools/photokit-photo-metadata-watermark-cli/</guid>
      <description><![CDATA[PhotoKit is an open source CLI that writes EXIF, IPTC and XMP metadata and stamps a PNG signature on copies of your photos, driven by YAML presets.]]></description>
      <content:encoded><![CDATA[<p>PhotoKit is an open source CLI that writes EXIF, IPTC and XMP metadata and stamps a PNG signature on copies of your photos, driven by YAML presets.</p><h3>What is PhotoKit?</h3><p>PhotoKit is an open source command-line tool for photographers. It reads and writes photo metadata, adds a transparent PNG signature to JPEG and PNG images, and runs whole export workflows from reusable YAML presets.</p><h3>Does PhotoKit change my original photos?</h3><p>No. By default it writes processed copies to an output folder (./export) and only reads the originals. The one exception is metadata set --in-place, which edits originals only when you explicitly ask for it.</p><h3>Do I need to install ExifTool to use PhotoKit?</h3><p>Yes. ExifTool 12 or newer is PhotoKit's only external dependency, and it does all the metadata reading and writing. Install it first, then run photokit version to confirm it is found.</p><h3>Can PhotoKit watermark RAW files?</h3><p>No. Visual watermarking works on JPEG and PNG only. RAW files are skipped with a clear reason during a watermark run, and you can still write metadata to them with --no-watermark or metadata set.</p><h3>How do I remove GPS location from photos before publishing?</h3><p>Run photokit metadata set ./photos --strip gps -o ./safe-to-publish. It removes all GPS tags from the copies in EXIF and XMP and keeps everything else.</p>]]></content:encoded>
      <pubDate>Sun, 15 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Tools</category>
      <category>Photography</category>
      <category>cli</category>
      <category>exiftool</category>
      <category>open-source</category>
      <category>golang</category>
    </item>
    <item>
      <title>PHP2Shell Explained: The PHP RCE Bugs, the Patch and the Lessons</title>
      <link>https://www.anisafifi.com/blog/tech/cyber-security/php2shell-php-rce-explained/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/cyber-security/php2shell-php-rce-explained/</guid>
      <description><![CDATA[What PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is, why it happened, how PHP fixed it, and what developers should change after it.]]></description>
      <content:encoded><![CDATA[<p>What PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is, why it happened, how PHP fixed it, and what developers should change after it.</p><h3>What is PHP2Shell?</h3><p>PHP2Shell is the nickname for two critical vulnerabilities in the PHP core engine, CVE-2026-109618 and CVE-2026-109619, both rated CVSS 9.2. They can let an unauthenticated remote attacker read PHP worker memory or execute code, regardless of which application runs on top.</p><h3>Which PHP versions fix PHP2Shell?</h3><p>The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, published on 21 October 2026. PHP 8.1 and older have no official upstream release, so those servers need an upgrade or a vendor backport.</p><h3>Am I safe if my WordPress or Laravel code is secure?</h3><p>No. The bugs are in PHP itself and can trigger during early request handling, before application code runs. Patching the PHP runtime is the real fix; application hardening cannot replace it.</p><h3>Do I need to rotate secrets after patching PHP2Shell?</h3><p>If an exposed server could have been probed before you patched, assume anything in PHP worker memory may have leaked. That includes passwords, tokens and API keys, so rotating them is the safe choice.</p><h3>Why did PHP2Shell take so long to fix?</h3><p>The out-of-memory root cause was spotted in 2024, but every candidate fix had trade-offs such as compatibility breaks or changes to third-party extensions. With no known path to remote code execution at the time, the fix stalled until researchers showed the full impact in August 2026.</p>]]></content:encoded>
      <pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Cyber Security</category>
      <category>php</category>
      <category>security</category>
      <category>vulnerability</category>
      <category>rce</category>
      <category>cve</category>
    </item>
    <item>
      <title>GitHub + GitLab Dual Push: One Remote, Automatic Backup</title>
      <link>https://www.anisafifi.com/blog/tech/engineering/github-gitlab-dual-push-backup/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/engineering/github-gitlab-dual-push-backup/</guid>
      <description><![CDATA[How I run one Git remote that fetches from GitHub and pushes to GitHub and GitLab, plus the failure cases I plan for: outages, drift, tags and LFS.]]></description>
      <content:encoded><![CDATA[<p>How I run one Git remote that fetches from GitHub and pushes to GitHub and GitLab, plus the failure cases I plan for: outages, drift, tags and LFS.</p><h3>Can one Git remote push to GitHub and GitLab at the same time?</h3><p>Yes. Keep origin fetching from GitHub and add two push URLs with git remote set-url --add --push origin , one for each host. A plain git push then sends the same refs to both.</p><h3>What happens if GitLab is down when I push?</h3><p>GitHub still receives the push, Git prints an error for GitLab and exits non-zero. Run git push again later and GitLab catches up, because Git only sends the missing commits.</p><h3>What happens if GitHub is down when I push?</h3><p>Git stops at the first failing push URL, so GitLab is skipped. List the host you trust most last, or push to the backup URL directly until the outage ends.</p><h3>Does pushing to GitLab back up issues and pull requests?</h3><p>No. A push only copies Git data: commits, branches and tags you pushed. Issues, pull requests, CI secrets and repository settings live on the platform and need a separate export.</p><h3>Why does git push --tags not push my lightweight tag with followTags?</h3><p>push.followTags (or --follow-tags) only sends annotated tags that point at commits being pushed. Create release tags with git tag -a, or push lightweight tags explicitly.</p>]]></content:encoded>
      <pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Engineering</category>
      <category>git</category>
      <category>GitHub</category>
      <category>gitlab</category>
      <category>backup</category>
      <category>ssh</category>
      <category>devops</category>
    </item>
    <item>
      <title>Mastering JavaScript Syntax: From Beginner Fundamentals to Advanced Techniques</title>
      <link>https://www.anisafifi.com/blog/tech/coding/javascript-syntax-from-beginner-to-advanced/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/javascript-syntax-from-beginner-to-advanced/</guid>
      <description><![CDATA[A comprehensive, example-driven guide to JavaScript syntax—from variables, functions and objects through closures, prototypes, classes, promises, async/await, modules and modern features—so you can write clear, idiomatic and reliable JavaScript.]]></description>
      <content:encoded><![CDATA[<p>A comprehensive, example-driven guide to JavaScript syntax—from variables, functions and objects through closures, prototypes, classes, promises, async/await, modules and modern features—so you can write clear, idiomatic and reliable JavaScript.</p><h3>What is the difference between var, let and const?</h3><p>var is function-scoped (or global) and is hoisted with the value undefined. let and const are block-scoped and live in the temporal dead zone until their declaration is evaluated. const prevents reassignment of the binding (but not mutation of objects or arrays). Prefer const by default, let when you need to reassign, and avoid var in modern code.</p><h3>How does `this` work in JavaScript?</h3><p>this is determined by how a function is called, not where it is defined. In a method call it is the object; in a plain function call it is the global object (or undefined in strict mode); arrow functions inherit this lexically from the enclosing scope. Explicit binding is possible with call, apply and bind.</p><h3>What is the difference between == and ===?</h3><p>== performs type coercion before comparison; === (strict equality) does not. Prefer === and !== almost everywhere to avoid surprising conversions such as 0 == "" or null == undefined. The only common intentional use of == is checking for null or undefined together with == null.</p><h3>How do Promises and async/await relate?</h3><p>A Promise represents a value that may be available now or in the future. async functions always return a Promise; await pauses the async function until the Promise settles and then resumes with the fulfilled value or throws the rejection reason. async/await is syntactic sugar over Promises that makes asynchronous code read like synchronous code while still being non-blocking.</p><h3>What is a closure and why does it matter?</h3><p>A closure is a function that retains access to the variables of its outer (enclosing) scope even after that scope has finished executing. Closures are the mechanism behind data privacy, partial application, callbacks and many framework patterns. They are created every time a function is created inside another function.</p><h3>What are the most important modern syntax features?</h3><p>Optional chaining (?.), nullish coalescing (??), private class fields (#name), top-level await, logical assignment operators, Array and Object methods such as at, structuredClone, and improved modules (including dynamic import()). These features reduce boilerplate and entire classes of null/undefined bugs.</p>]]></content:encoded>
      <pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>javascript</category>
      <category>programming</category>
      <category>syntax</category>
      <category>web</category>
    </item>
    <item>
      <title>Mastering Python Syntax: From Beginner Fundamentals to Advanced Techniques</title>
      <link>https://www.anisafifi.com/blog/tech/coding/python-syntax-from-beginner-to-advanced/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/python-syntax-from-beginner-to-advanced/</guid>
      <description><![CDATA[A comprehensive, example-driven guide to Python syntax—from variables, control flow and functions through classes, comprehensions, generators, decorators, type hints, async and modern features—so you can write clear, idiomatic and effective Python.]]></description>
      <content:encoded><![CDATA[<p>A comprehensive, example-driven guide to Python syntax—from variables, control flow and functions through classes, comprehensions, generators, decorators, type hints, async and modern features—so you can write clear, idiomatic and effective Python.</p><h3>What is the difference between a list and a tuple in Python?</h3><p>Lists are mutable sequences ([1, 2, 3]); you can change, add or remove elements. Tuples are immutable sequences ((1, 2, 3)). Tuples are hashable (when their contents are hashable) and can be used as dictionary keys or set elements; they also signal that the collection is not intended to change. Prefer tuples for fixed collections of heterogeneous data and lists for homogeneous sequences that grow or shrink.</p><h3>What does the LEGB rule mean?</h3><p>LEGB describes Python’s name-resolution order: Local, Enclosing (non-local functions), Global (module), Built-in. When you refer to a name, Python searches these scopes in that order. Understanding LEGB explains closures, the global and nonlocal keywords, and many surprising name-lookup bugs.</p><h3>When should I use a list comprehension versus a generator expression?</h3><p>A list comprehension ([x2 for x in data]) builds the entire list in memory and returns it. A generator expression ((x2 for x in data)) produces values lazily and is much cheaper for large or infinite sequences. Use list comprehensions when you need random access or to iterate multiple times; use generator expressions (or generator functions) when you only need to iterate once and want to save memory.</p><h3>What is the difference between `@staticmethod`, `@classmethod` and ordinary methods?</h3><p>An ordinary method receives the instance (self). A @classmethod receives the class (cls) and is often used as an alternative constructor. A @staticmethod receives neither and is essentially a function namespaced inside the class; it does not participate in inheritance of instance or class state.</p><h3>How does exception handling work in Python?</h3><p>You raise exceptions with raise and handle them with try / except / else / finally. Prefer catching specific exception types rather than a bare except:. The else clause runs only if no exception occurred; finally always runs and is ideal for cleanup. Context managers (with statements) are the modern way to guarantee resource cleanup.</p><h3>What did the walrus operator and structural pattern matching add?</h3><p>The walrus operator (:=, Python 3.8+) assigns inside an expression, reducing duplication in while and if conditions. Structural pattern matching (match / case, Python 3.10+) provides a powerful alternative to long if/elif chains for destructuring sequences, mappings and objects, similar to match in other languages but with Python’s own semantics.</p>]]></content:encoded>
      <pubDate>Wed, 11 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>python</category>
      <category>programming</category>
      <category>syntax</category>
    </item>
    <item>
      <title>Supermarket Fridge Hacks: What Happened and What to Fix</title>
      <link>https://www.anisafifi.com/blog/tech/cyber-security/supermarket-fridge-hacks-explained/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/cyber-security/supermarket-fridge-hacks-explained/</guid>
      <description><![CDATA[France blames Iran’s IRGC for hacking about 700 supermarket fridges. Here is how the attacks worked, what failed, and a checklist to protect your own systems.]]></description>
      <content:encoded><![CDATA[<p>France blames Iran’s IRGC for hacking about 700 supermarket fridges. Here is how the attacks worked, what failed, and a checklist to protect your own systems.</p><h3>Who hacked the supermarket fridges in France?</h3><p>On 9 November 2026 France’s foreign minister said Iran’s Revolutionary Guard Corps carried out the 11–12 October attack, and Paris prosecutors requested arrest warrants for the leader of the affiliated Shahid Kaveh unit and two deputies. This is a government attribution, and Iran routinely denies such operations. Pro-Russian groups separately claimed later attacks, but that claim is unconfirmed.</p><h3>How can hackers raise a fridge’s temperature remotely?</h3><p>Supermarket refrigeration controllers have web admin panels so technicians can change settings remotely. When those panels are reachable from the internet, attackers can log in through known bugs or factory-default passwords and change temperature setpoints or defrost cycles. No special malware is needed once they are in.</p><h3>Which refrigeration controllers were affected?</h3><p>France’s CERT-FR named Danfoss AK-SM and AK-SC systems and Copeland and Dixell XWEB supervisors as compromised. Danfoss said much of the affected equipment was legacy hardware. Researchers have found thousands of similar panels still exposed to the internet in dozens of countries.</p><h3>How do I protect an industrial refrigeration or cold-storage system?</h3><p>Follow the US joint fact sheet of 5 November 2026: take controllers off the public internet, put them on a separate OT network, change default passwords and use phishing-resistant MFA, patch or replace end-of-life devices, allowlist who can change settings, keep offline backups, enable logging, and set safe temperature limits with alerts.</p>]]></content:encoded>
      <pubDate>Wed, 11 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Cyber Security</category>
      <category>cybersecurity</category>
      <category>ot-security</category>
      <category>iot</category>
      <category>critical-infrastructure</category>
    </item>
    <item>
      <title>Sock Puppet Accounts: What They Are and How to Spot Them</title>
      <link>https://www.anisafifi.com/blog/tech/cyber-security/sock-puppet-accounts-explained/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/cyber-security/sock-puppet-accounts-explained/</guid>
      <description><![CDATA[What sock puppet accounts are, why people use them, what research says about detecting them, and what to do if you run a product or community.]]></description>
      <content:encoded><![CDATA[<p>What sock puppet accounts are, why people use them, what research says about detecting them, and what to do if you run a product or community.</p><h3>What is a sock puppet account?</h3><p>A sock puppet account is a false online identity used for deceptive purposes. Its operator presents it as an independent person while secretly controlling it, often alongside other accounts.</p><h3>What is the difference between a sock puppet and a bot?</h3><p>A sock puppet is a fake identity run by a person, who deliberately poses as someone independent. A bot is usually automated and often discloses that it is a bot. The two can overlap when automation is used to run many fake identities.</p><h3>Why do people create sock puppet accounts?</h3><p>Common reasons are to praise or defend themselves, to manipulate public opinion, to fake reviews and conversation about a product, or to get around a block or ban on their main account.</p><h3>How can you tell if an account is a sock puppet?</h3><p>No single sign is reliable. Researchers found that single accounts are hard to classify, and that interactions between linked accounts are the strongest predictors. Look at patterns across accounts, not at one profile alone.</p><h3>Are fake reviews from sock puppets illegal?</h3><p>In the United States, an FTC rule in force since 21 October 2024 bans creating, buying or selling fake consumer reviews. Other countries have their own laws, so check the rules where you operate.</p>]]></content:encoded>
      <pubDate>Tue, 10 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Cyber Security</category>
      <category>security</category>
      <category>trust-and-safety</category>
      <category>social-media</category>
      <category>fake-reviews</category>
    </item>
    <item>
      <title>Web Cache Poisoning: How It Works and How to Defend</title>
      <link>https://www.anisafifi.com/blog/tech/cyber-security/web-cache-poisoning-explained/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/cyber-security/web-cache-poisoning-explained/</guid>
      <description><![CDATA[Learn how web cache poisoning works, why a cache buster can fail on hidden framework caches, and the defences that reduce your exposure.]]></description>
      <content:encoded><![CDATA[<p>Learn how web cache poisoning works, why a cache buster can fail on hidden framework caches, and the defences that reduce your exposure.</p><h3>What is web cache poisoning?</h3><p>It is an attack where someone gets a web server and its cache to store a harmful response, so the cache serves that response to other users. It has two phases: eliciting a dangerous response, then getting it cached.</p><h3>What is an unkeyed input in caching?</h3><p>An unkeyed input is any part of a request, such as a header, that the cache ignores when deciding whether two requests are equivalent. If the server still uses that input to build the response, an attacker can use it to inject a payload.</p><h3>What does a cache buster do, and why can it fail?</h3><p>A cache buster is a unique parameter added to a request so your test is stored under its own cache key and never reaches real users. It can fail when a second cache behind the CDN keys only on the path, because the parameter is then ignored there.</p><h3>How do I reduce my exposure to web cache poisoning?</h3><p>Cache only truly static responses, disable request headers you do not need, never reflect arbitrary request headers into responses, avoid fat GET requests, and keep frameworks patched. If you must leave something out of the cache key, rewrite the request instead.</p>]]></content:encoded>
      <pubDate>Mon, 09 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Cyber Security</category>
      <category>cache-poisoning</category>
      <category>web-security</category>
      <category>cdn</category>
      <category>http-caching</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>AI Agent Frameworks in 2026: LangGraph, CrewAI, ADK Compared</title>
      <link>https://www.anisafifi.com/blog/tech/ai/ai-agent-frameworks-2026-compared/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/ai-agent-frameworks-2026-compared/</guid>
      <description><![CDATA[A practical comparison of LangGraph, CrewAI, OpenAI Agents SDK, Google ADK and others, sorted by who owns the loop and where state lives.]]></description>
      <content:encoded><![CDATA[<p>A practical comparison of LangGraph, CrewAI, OpenAI Agents SDK, Google ADK and others, sorted by who owns the loop and where state lives.</p><h3>Which AI agent framework should I use in 2026?</h3><p>Decide who owns the loop and where state lives before you compare logos. A thin vendor SDK suits short single-agent jobs. A workflow runtime such as LangGraph, Google ADK 2.0 or Microsoft Agent Framework suits approvals, branching and long runs. CrewAI is quickest for role-based prototypes, and its Flows are the part to run in production.</p><h3>Is LangGraph still worth learning if LangChain has create_agent?</h3><p>Yes, because create_agent in LangChain 1.0 is built on the LangGraph runtime, so you are already running a LangGraph graph. You drop down to LangGraph itself when you need custom control flow, durable state or human approval steps.</p><h3>What is the difference between the OpenAI Agents SDK and the Agents API?</h3><p>The Agents SDK is an open-source library whose runner executes inside your own application, so you own storage and deployment. The Agents API, in public beta since 10 September 2026, runs OpenAI's managed Codex harness and saves session state on OpenAI's side.</p><h3>Do MCP and A2A depend on which framework I choose?</h3><p>No. Both protocols now sit under the Linux Foundation's Agentic AI Foundation. MCP connects an agent to tools and data, and A2A lets agents find each other and hand over tasks. Pick a framework that speaks both and your tool integrations stay portable.</p>]]></content:encoded>
      <pubDate>Sat, 07 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>ai-agents</category>
      <category>langgraph</category>
      <category>crewai</category>
      <category>openai-agents-sdk</category>
      <category>google-adk</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Git and GitHub Best Practices: A Complete Guide</title>
      <link>https://www.anisafifi.com/blog/tech/engineering/git-github-best-practices/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/engineering/git-github-best-practices/</guid>
      <description><![CDATA[A practical guide to Git and GitHub best practices: setup, branching, commits, pull requests, branch rulesets, security, releases and recovery.]]></description>
      <content:encoded><![CDATA[<p>A practical guide to Git and GitHub best practices: setup, branching, commits, pull requests, branch rulesets, security, releases and recovery.</p><h3>What is the best Git branching strategy for most teams?</h3><p>For most teams, GitHub flow is enough: keep the default branch deployable, create a short-lived branch for each change, open a pull request, get a review and passing checks, merge, then delete the branch. Add long-lived release branches only if you must support several versions at once.</p><h3>Should I squash, rebase or create a merge commit on GitHub?</h3><p>Use squash merge when a branch has noisy commits and you want one clean commit on the default branch. Use rebase merge when every commit is already atomic and well described. Use a merge commit when you want to preserve the branch topology. Requiring linear history allows only squash or rebase merges.</p><h3>How do I safely force push after a rebase?</h3><p>Use git push --force-with-lease instead of --force. It only overwrites the remote branch if it still points to the commit you last fetched, so it will not erase a teammate's newer work. Only rewrite history on branches that you own, never on the default branch.</p><h3>How do I protect the main branch on GitHub?</h3><p>Create a ruleset for the default branch that requires a pull request with at least one approval, requires status checks to pass, restricts deletions and force pushes, and optionally requires linear history or signed commits. Keep the bypass list as small as possible.</p><h3>What should I do if I commit a secret to GitHub?</h3><p>Revoke and rotate the secret immediately, because anyone who saw it may already have copied it. Then remove it from the code, and enable push protection so supported secret types are blocked before future pushes land.</p><h3>Do I need to sign my Git commits?</h3><p>It is not required, but signing lets GitHub mark your commits as verified and lets a ruleset enforce signed commits. Signing with an SSH key is the simplest setup and needs Git 2.34 or later.</p>]]></content:encoded>
      <pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Engineering</category>
      <category>git</category>
      <category>GitHub</category>
      <category>version-control</category>
      <category>workflow</category>
      <category>devops</category>
    </item>
    <item>
      <title>Binance Hack: How a DevOps Laptop Led to $6.3B Stolen</title>
      <link>https://www.anisafifi.com/blog/tech/cyber-security/binance-hack-devops-lessons/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/cyber-security/binance-hack-devops-lessons/</guid>
      <description><![CDATA[Binance lost about $6.3B in October 2026 with no leaked private key. How a DevOps laptop became the way in, and the controls that limit your own signing path.]]></description>
      <content:encoded><![CDATA[<p>Binance lost about $6.3B in October 2026 with no leaked private key. How a DevOps laptop became the way in, and the controls that limit your own signing path.</p><h3>How did the Binance hack happen?</h3><p>Binance's early investigation says a compromised DevOps engineer's laptop gave an attacker access to a service container that could submit unauthorized withdrawal transactions. Binance later said it found additional points of breach. Its full technical post-mortem had not been published when this was written.</p><h3>Were Binance's private keys stolen?</h3><p>Binance says it found no evidence of a wallet private key leak. Analysts such as TRM Labs read the valid signatures as a sign that Binance's hot-wallet signing infrastructure was compromised, so the attacker did not need the keys themselves.</p><h3>How much was stolen from Binance and who did it?</h3><p>Binance estimates about $6.3 billion, while TRM Labs counts $6.36 billion and Elliptic $6.43 billion. The FBI said on 31 October 2026 that North Korea was responsible and named the TraderTraitor group, though President Trump cast doubt on that attribution.</p><h3>What is the EIP-7702 part of the Binance hack?</h3><p>On Ethereum, the attacker submitted one transaction carrying 50 EIP-7702 authorizations signed by a Binance hot wallet, which delegated that wallet's behavior to an attacker-controlled sweeper contract. Analysts say this shows a compromise of Binance's signing path, not a flaw in Ethereum.</p><h3>How can DevOps teams prevent a similar attack?</h3><p>Enforce policy inside the signing boundary and refuse raw signing requests, keep hot balances small, default-deny network access to the signer, replace standing production credentials with short-lived device-bound access, and alert on unexpected code at addresses you own. These limit the damage but cannot guarantee prevention.</p>]]></content:encoded>
      <pubDate>Sun, 01 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Cyber Security</category>
      <category>binance</category>
      <category>security</category>
      <category>devops</category>
      <category>incident-response</category>
      <category>ethereum</category>
    </item>
    <item>
      <title>Seven RAG Architectures, and the Two I&apos;d Ship Before Touching the Other Five</title>
      <link>https://www.anisafifi.com/blog/tech/ai/seven-rag-architectures-and-the-two-id-ship-before-touching-the-other-five/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/seven-rag-architectures-and-the-two-id-ship-before-touching-the-other-five/</guid>
      <description><![CDATA[Seven RAG architectures, what each one actually fixes, and why hybrid search plus a reranker should come before graphs, agents, or self-critique.]]></description>
      <content:encoded><![CDATA[<p>Seven RAG architectures, what each one actually fixes, and why hybrid search plus a reranker should come before graphs, agents, or self-critique.</p>]]></content:encoded>
      <pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>rag</category>
      <category>retrieval</category>
      <category>Search</category>
      <category>llm</category>
      <category>vector-search</category>
      <category>reranking</category>
    </item>
    <item>
      <title>Your Backend Knows Too Much: What Cloudflare&apos;s New OHTTP Gateway Actually Changes</title>
      <link>https://www.anisafifi.com/blog/tech/ai/your-backend-knows-too-much/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/your-backend-knows-too-much/</guid>
      <description><![CDATA[Every request your server receives arrives with a small dossier attached. An IP address. An ASN. A TLS version and cipher list that's often unique enough to tell one device from another.]]></description>
      <content:encoded><![CDATA[<p>Every request your server receives arrives with a small dossier attached. An IP address. An ASN. A TLS version and cipher list that's often unique enough to tell one device from another.</p>]]></content:encoded>
      <pubDate>Sat, 03 Oct 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>ai</category>
      <category>bun</category>
      <category>agentic-ai</category>
    </item>
    <item>
      <title>My AI Agent Kept Forgetting Everything - Until I Understood Memory Architecture</title>
      <link>https://www.anisafifi.com/blog/tech/ai/my-ai-agent-kept-forgetting-everything-until-i-understood-memory-architecture/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/my-ai-agent-kept-forgetting-everything-until-i-understood-memory-architecture/</guid>
      <description><![CDATA[I spent three weeks building what I thought was a genuinely useful personal assistant agent. It could search the web, summarize documents, write code drafts, and call external APIs. It felt smart.]]></description>
      <content:encoded><![CDATA[<p>I spent three weeks building what I thought was a genuinely useful personal assistant agent. It could search the web, summarize documents, write code drafts, and call external APIs. It felt smart.</p>]]></content:encoded>
      <pubDate>Thu, 01 Oct 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>ai</category>
      <category>bun</category>
      <category>agentic-ai</category>
    </item>
    <item>
      <title>Mastering Go Syntax: From Beginner Fundamentals to Advanced Techniques</title>
      <link>https://www.anisafifi.com/blog/tech/coding/go-syntax-from-beginner-to-advanced/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/go-syntax-from-beginner-to-advanced/</guid>
      <description><![CDATA[A comprehensive, example-driven guide to Go syntax—from variables, control flow and functions through structs, interfaces, slices, error handling, concurrency and generics—so you can write clear, idiomatic and concurrent Go.]]></description>
      <content:encoded><![CDATA[<p>A comprehensive, example-driven guide to Go syntax—from variables, control flow and functions through structs, interfaces, slices, error handling, concurrency and generics—so you can write clear, idiomatic and concurrent Go.</p><h3>Why does Go use short variable declarations with := ?</h3><p>The := operator declares and initializes a variable in one step, with the type inferred from the right-hand side. It can only be used inside functions. It reduces boilerplate while keeping the language statically typed. Outside functions you must use var.</p><h3>What is the difference between a slice and an array in Go?</h3><p>An array has a fixed size that is part of its type ([5]int). A slice is a descriptor (pointer, length, capacity) that refers to an underlying array and can grow. Almost all Go code uses slices; arrays appear mainly when a fixed size is required for performance or interop.</p><h3>How does error handling work in Go?</h3><p>Go has no exceptions. Functions that can fail return an error as the last result. Callers check the error explicitly with if err != nil. The language encourages handling errors near the call site. The errors and fmt packages (plus errors.Is / errors.As since Go 1.13) provide the standard tools for wrapping and inspecting errors.</p><h3>What makes goroutines different from OS threads?</h3><p>Goroutines are lightweight, user-space threads multiplexed onto a smaller number of OS threads by the Go runtime. Creating a goroutine is cheap (a few kilobytes of stack that grows and shrinks). You can start hundreds of thousands of them. Communication and synchronization are preferably done with channels rather than shared memory and locks.</p><h3>When should I use a pointer receiver versus a value receiver?</h3><p>Use a pointer receiver when the method needs to mutate the receiver, when the struct is large (to avoid copying), or when you need consistency with other methods that already use pointer receivers. Use a value receiver for small, immutable types or when you explicitly want a copy. Mixing them on the same type is allowed but can surprise callers.</p><h3>What did generics add to Go (1.18+)?</h3><p>Generics allow you to write functions and data structures that work with multiple types while preserving static type safety. Type parameters appear in square brackets (func MinT constraints.Ordered T). They reduce the need for interface{} / any and code duplication, while the language still prefers concrete types for most application code.</p>]]></content:encoded>
      <pubDate>Sat, 05 Sep 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>go</category>
      <category>golang</category>
      <category>programming</category>
      <category>syntax</category>
      <category>systems-programming</category>
    </item>
    <item>
      <title>Mastering Rust Syntax: From Beginner Fundamentals to Advanced Techniques</title>
      <link>https://www.anisafifi.com/blog/tech/coding/rust-syntax-from-beginner-to-advanced/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/rust-syntax-from-beginner-to-advanced/</guid>
      <description><![CDATA[A comprehensive, example-driven guide to Rust syntax—from variables, ownership and borrowing through pattern matching, traits, generics, error handling and advanced features—so you can write correct, safe and idiomatic Rust.]]></description>
      <content:encoded><![CDATA[<p>A comprehensive, example-driven guide to Rust syntax—from variables, ownership and borrowing through pattern matching, traits, generics, error handling and advanced features—so you can write correct, safe and idiomatic Rust.</p><h3>What is ownership in Rust and why does it matter?</h3><p>Ownership is Rust’s core memory-safety model. Every value has a single owner; when the owner goes out of scope the value is dropped. This eliminates whole classes of bugs (use-after-free, double-free, data races) at compile time without a garbage collector. Understanding move, borrow and lifetime rules is the central skill of writing Rust.</p><h3>What is the difference between &amp;T and &amp;mut T?</h3><p>&amp;T is an immutable (shared) reference; you may have many of them at once, but none of them can modify the data. &amp;mut T is a mutable (exclusive) reference; you may have only one at a time, and while it exists no other references are allowed. These rules are enforced by the borrow checker and are what make data races impossible in safe Rust.</p><h3>When should I use String versus &amp;str?</h3><p>String is an owned, growable, heap-allocated UTF-8 string. &amp;str is a borrowed string slice—usually a view into a String or a string literal. Prefer &amp;str for function parameters when you only need to read; use String when you need to own or mutate the data.</p><h3>How does error handling work in Rust?</h3><p>Rust has no exceptions. Fallible operations return Result (or sometimes Option). The ? operator propagates errors upward. For cases where an error is unrecoverable you can use panic!, but idiomatic Rust prefers explicit Result handling so callers decide how to recover.</p><h3>What are traits and why are they important?</h3><p>Traits define shared behavior (similar to interfaces). They are the foundation of generics, operator overloading, and many standard-library abstractions (Iterator, Display, From, Error, etc.). You can implement traits for your own types and write generic functions that work with any type that implements a given trait.</p><h3>What is a lifetime and when do I need to write one?</h3><p>A lifetime is a named region of code during which a reference is valid. The compiler infers most lifetimes. You need to write them explicitly when the relationships between references cannot be inferred—most commonly in function signatures that return references or in structs that hold references. Lifetimes do not change how long data lives; they only describe existing relationships so the borrow checker can verify them.</p>]]></content:encoded>
      <pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>rust</category>
      <category>programming</category>
      <category>syntax</category>
      <category>systems-programming</category>
    </item>
    <item>
      <title>Mastering C Syntax: From Beginner Fundamentals to Advanced Techniques</title>
      <link>https://www.anisafifi.com/blog/tech/coding/c-syntax-from-beginner-to-advanced/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/c-syntax-from-beginner-to-advanced/</guid>
      <description><![CDATA[A comprehensive, example-driven guide to C syntax—from variables, control flow and functions through pointers, memory ownership, structures, the preprocessor and modern C features—so you can write correct, robust and efficient C.]]></description>
      <content:encoded><![CDATA[<p>A comprehensive, example-driven guide to C syntax—from variables, control flow and functions through pointers, memory ownership, structures, the preprocessor and modern C features—so you can write correct, robust and efficient C.</p><h3>What is the difference between = and == in C?</h3><p>= is the assignment operator; it stores a value in a variable and itself yields that value. == is the equality comparison operator; it tests whether two values are equal and yields 0 or 1. Mixing them up is a classic source of bugs because assignment is also an expression, so if (x = 5) is legal and almost always wrong.</p><h3>Why do pointers matter so much in C?</h3><p>Pointers give direct access to memory addresses. They are required for dynamic allocation, efficient array and string handling, passing large data without copying, and building data structures such as linked lists and trees. Almost every non-trivial C program uses them; understanding ownership and lifetime is the real skill.</p><h3>What does the C preprocessor do?</h3><p>The preprocessor runs before the compiler. It handles #include, #define, conditional compilation (#if, #ifdef) and macros. It performs pure textual substitution, so macros are not the same as functions and can have surprising side effects if written carelessly. Prefer static inline functions when the language allows it.</p><h3>How should I allocate and free memory in C?</h3><p>Use malloc, calloc or realloc from ` to request memory from the heap, then always call free on every successful allocation when you are finished with it. Check the returned pointer for NULL before use. Never free the same pointer twice, never use memory after it has been freed, and set the pointer to NULL` after freeing as a defensive habit.</p><h3>What is the difference between an array and a pointer in C?</h3><p>An array name decays to a pointer to its first element in most expressions, but arrays and pointers are not the same. An array has a fixed size known at compile time (for local arrays) and sizeof on an array yields the total bytes; sizeof on a pointer yields the size of the pointer itself. Function parameters declared as arrays are adjusted to pointers.</p><h3>What is undefined behavior and why does it matter?</h3><p>Undefined behavior is any action for which the C standard imposes no requirements. The compiler is allowed to do anything: ignore the problem, produce a crash, or generate code that appears to work until it suddenly does not. Common sources include null dereference, signed overflow, out-of-bounds access, use-after-free and shifting by more bits than the type width. Tools such as AddressSanitizer and UndefinedBehaviorSanitizer help catch many of these at runtime.</p>]]></content:encoded>
      <pubDate>Thu, 03 Sep 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>c</category>
      <category>programming</category>
      <category>syntax</category>
      <category>systems-programming</category>
    </item>
    <item>
      <title>Bun Just Rewrote Half a Million Lines of Zig in Rust Using AI Agents</title>
      <link>https://www.anisafifi.com/blog/tech/ai/bun-just-rewrote-half-a-million-lines-of-zig-in-rust/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/bun-just-rewrote-half-a-million-lines-of-zig-in-rust/</guid>
      <description><![CDATA[I've spent the last decade watching 'we're doing a full rewrite' turn into the most predictable way to kill a project.]]></description>
      <content:encoded><![CDATA[<p>I've spent the last decade watching 'we're doing a full rewrite' turn into the most predictable way to kill a project.</p>]]></content:encoded>
      <pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>ai</category>
      <category>bun</category>
      <category>agentic-ai</category>
    </item>
    <item>
      <title>Why Rust Is the New Standard for Systems Programming </title>
      <link>https://www.anisafifi.com/blog/tech/coding/why-rust-is-the-new-standard-for-systems-programming/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/coding/why-rust-is-the-new-standard-for-systems-programming/</guid>
      <description><![CDATA[A few years back I was debugging a use-after-free bug in a C++ service that handled connection pooling for a database proxy. It took me three days, a sanitizer build, and a very patient senior engineer to find it. The bug wasn’t exotic.]]></description>
      <content:encoded><![CDATA[<p>A few years back I was debugging a use-after-free bug in a C++ service that handled connection pooling for a database proxy. It took me three days, a sanitizer build, and a very patient senior engineer to find it. The bug wasn’t exotic.</p>]]></content:encoded>
      <pubDate>Thu, 02 Jul 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>Coding</category>
      <category>rust</category>
      <category>coding</category>
    </item>
    <item>
      <title>WebMCP: The Quiet Protocol That’s About to Change How AI Uses the Web</title>
      <link>https://www.anisafifi.com/blog/tech/ai/webmcp-the-quiet-protocol-thats-about-to-change-how-ai-uses-the-web/</link>
      <guid isPermaLink="true">https://www.anisafifi.com/blog/tech/ai/webmcp-the-quiet-protocol-thats-about-to-change-how-ai-uses-the-web/</guid>
      <description><![CDATA[WebMCP is a new W3C browser API that lets websites expose callable tools directly to AI agents — ending the era of screenshot-based browsing. Here’s what it is, how it works, and why it matters for full-stack developers.]]></description>
      <content:encoded><![CDATA[<p>WebMCP is a new W3C browser API that lets websites expose callable tools directly to AI agents — ending the era of screenshot-based browsing. Here’s what it is, how it works, and why it matters for full-stack developers.</p>]]></content:encoded>
      <pubDate>Fri, 06 Mar 2026 00:00:00 GMT</pubDate>
      <dc:creator>Anis Afifi</dc:creator>
      <category>Technology</category>
      <category>AI</category>
      <category>ai</category>
      <category>mcp</category>
      <category>web</category>
    </item>
  </channel>
</rss>
