<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: saboor</title>
    <description>The latest articles on DEV Community by saboor (@saboorhamedi).</description>
    <link>https://dev.to/saboorhamedi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F484950%2Ffa4fc6c2-f514-4ce9-9efc-08c7b9af8667.jpeg</url>
      <title>DEV Community: saboor</title>
      <link>https://dev.to/saboorhamedi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saboorhamedi"/>
    <language>en</language>
    <item>
      <title>How I Rebuilt My Research &amp; Dev Workspace in Rust and Shrunk It from 1 GB to 16 MB</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:08:42 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/how-i-rebuilt-my-research-dev-workspace-in-rust-and-shrunk-it-from-1-gb-to-16-mb-31in</link>
      <guid>https://dev.to/saboorhamedi/how-i-rebuilt-my-research-dev-workspace-in-rust-and-shrunk-it-from-1-gb-to-16-mb-31in</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;After 11 months of building Lumina, v2.3.0 brings a 16 MB Rust/Tauri core, hybrid local + live web RAG, an infinite canvas, and an integrated terminal in one local-first workspace.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For the past 11 months, I have been building &lt;strong&gt;Lumina&lt;/strong&gt;—a local-first workspace built for developers, researchers, and writers who are tired of bouncing between Obsidian, VS Code, a whiteboard app, and an external terminal.&lt;/p&gt;

&lt;p&gt;Early prototypes worked, but they were heavy ~1 GB. So I re-architected the core in &lt;strong&gt;Rust + Tauri&lt;/strong&gt;, cutting the application size down from &lt;strong&gt;1 GB to ~16 MB&lt;/strong&gt; while keeping the Rust host footprint around &lt;strong&gt;8 MB&lt;/strong&gt; at runtime.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;&lt;code&gt;v2.3.0&lt;/code&gt;&lt;/strong&gt;, Lumina has evolved from a Markdown editor into a complete local-first research cockpit[cite: 9].&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s Inside Lumina v2.3.0
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hybrid Vault + Live Web Search:&lt;/strong&gt; Ask Lumina AI anything using &lt;code&gt;@&lt;/code&gt; to reference local notes and folders, and it simultaneously cross-references your private Markdown vault with live external web sources (complete with OpenGraph preview cards for papers, docs, and articles)[cite: 3, 9].&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100% Local-First Plain Text:&lt;/strong&gt; Your notes stay on your machine as standard &lt;code&gt;.md&lt;/code&gt; files—no proprietary database lock-in, no mandatory cloud account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Infinite Canvas &amp;amp; Knowledge Graph:&lt;/strong&gt; Brainstorm visually on an infinite canvas or explore connections across hundreds of notes without leaving your workspace[cite: 3, 9].&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real Integrated Terminal:&lt;/strong&gt; Run builds, git workflows, and scripts right alongside your notes via a native ConPTY terminal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Polished "Islands" UI:&lt;/strong&gt; Clean floating workspace cards, customizable wave/gradient note covers with repositioning, and a structured IDE-style file tree[cite: 9].&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Rust + Tauri Made the Difference
&lt;/h2&gt;

&lt;p&gt;Moving heavy file indexing, search, and backend operations into Rust eliminated the bloat typical of Electron-based workspaces while keeping cold startup nearly instant. Even with hundreds of notes indexed, an active terminal, and live web retrieval ready, the Rust binary stays under 10 MB of RAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Out &amp;amp; Star on GitHub
&lt;/h2&gt;

&lt;p&gt;Lumina is open-source and available for Windows, macOS, and Linux:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Saboor-Hamedi/lumina" rel="noopener noreferrer"&gt;https://github.com/Saboor-Hamedi/lumina&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you give &lt;code&gt;v2.3.0&lt;/code&gt; a spin, I’d love to hear what you think—or what workflow you’d like to see added next!&lt;/p&gt;

</description>
      <category>rust</category>
      <category>tauri</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Lumins is better than obsidian and notion prove me wrong!</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Wed, 25 Nov 2026 02:55:45 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/lumins-is-better-than-obsidian-and-notion-prove-me-wrong-4k7d</link>
      <guid>https://dev.to/saboorhamedi/lumins-is-better-than-obsidian-and-notion-prove-me-wrong-4k7d</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;A 6.2 MB installer, 14.7 MB app footprint, one-click bulk PDF export for thousands of notes, detached 3D + 2D split graphs, a real terminal, and AI diff approvals. Here is why I built it.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7ioh7jtfk5errwgbddz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7ioh7jtfk5errwgbddz.png" alt="Lumina full backgorund image" width="799" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I know that title is going to trigger some people, so let's skip the marketing fluff and get straight to why I spent the last 11 months building &lt;strong&gt;Lumina **—an open-source (MIT), 100% local-first workspace powered by **Rust + Tauri 2.0&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you live in your notes all day, you usually have to pick a poison:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Notion&lt;/strong&gt; looks great, until you lose internet, hit a slow workspace, or realize your notes are locked inside someone else's database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Obsidian&lt;/strong&gt; keeps your files local, until you install 12 community plugins just to get basic workflows working, watch Electron eat hundreds of megabytes of RAM, and spend weekends fixing broken plugins after updates.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I got tired of choosing between the two, so I built Lumina to give you Notion's visual polish and Obsidian's plain-text &lt;code&gt;.md&lt;/code&gt; ownership—plus things neither of them does out of the box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/Saboor-Hamedi/lumina" rel="noopener noreferrer"&gt;Lumina&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feqvbaiytubar7pffnofa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feqvbaiytubar7pffnofa.png" alt="Meta Background image live GIF" width="799" height="257"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  5 Things Lumina Does That Make Me Never Want to Go Back
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Installer: 6.2 MB. Installed App Size: 14.7 MB.
&lt;/h3&gt;

&lt;p&gt;While Electron-based note apps ship entire Chromium browsers and take up 500–800+ MB on disk, Lumina runs on native &lt;strong&gt;Tauri 2.0 + Rust&lt;/strong&gt; (&lt;code&gt;crates/lumina_core&lt;/code&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Installer size:&lt;/strong&gt; 6.2 MB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Installed size:&lt;/strong&gt; 14.7 MB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Idle Rust host memory:&lt;/strong&gt; ~5.8 MB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It opens before your finger leaves the mouse button.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. One-Click Merge: Thousands of &lt;code&gt;.md&lt;/code&gt; Files into a Single PDF
&lt;/h3&gt;

&lt;p&gt;Ever tried exporting an entire Obsidian vault or nested folder of research notes into one clean, formatted PDF with a table of contents? Usually you're stuck hunting for Pandoc scripts or third-party exporters. In Lumina, &lt;strong&gt;one click&lt;/strong&gt; merges thousands of Markdown files into a single print-ready PDF across 50 built-in themes.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. One-Click Backups (Single Note or Entire Workspace)
&lt;/h3&gt;

&lt;p&gt;No complicated sync setup or manual zipping:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One click&lt;/strong&gt; backs up your current note (export or push straight to Google Drive).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One click&lt;/strong&gt; backs up your entire workspace into a compressed archive.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your notes stay 100% plain-text &lt;code&gt;.md&lt;/code&gt; and &lt;code&gt;.canvas&lt;/code&gt; files on your disk at all times.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Side-by-Side Vertical &amp;amp; Horizontal 3D + 2D Knowledge Graphs
&lt;/h3&gt;

&lt;p&gt;Obsidian gives you one global graph. In Lumina, graph panes are completely detached—you can split your screen horizontally or vertically and run a &lt;strong&gt;3D WebGL cluster graph&lt;/strong&gt; on one side and a &lt;strong&gt;2D Canvas radial graph&lt;/strong&gt; on the other at the exact same time, with independent cameras, physics, and filters.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F965a43zwi0x1wx4yzdi7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F965a43zwi0x1wx4yzdi7.png" alt="Lumina graph both 3D and 2D view" width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. A Real Terminal + Vault-Aware AI Copilot with Diff Approvals
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Press &lt;code&gt;Ctrl + J&lt;/code&gt; and you get a real native &lt;strong&gt;ConPTY / PTY terminal&lt;/strong&gt; (bash, zsh, PowerShell, &lt;code&gt;vim&lt;/code&gt;, &lt;code&gt;ssh&lt;/code&gt;, Python) right underneath your notes—not a fake command runner.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Lumina AI&lt;/strong&gt; (works offline with &lt;strong&gt;Ollama&lt;/strong&gt; or with cloud models) and every file edit it proposes shows an inline &lt;strong&gt;Approve / Reject diff card&lt;/strong&gt; with &lt;strong&gt;multi-file Undo&lt;/strong&gt;, so the AI never silently wrecks your notes.&lt;/li&gt;
&lt;li&gt;Plus live &lt;strong&gt;URL preview grids&lt;/strong&gt;, borderless inline YouTube playback, and Notion-style cover banners and tables—all backed by plain &lt;code&gt;.md&lt;/code&gt; files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Okay, Now Prove Me Wrong
&lt;/h2&gt;

&lt;p&gt;I'm genuinely curious: &lt;strong&gt;what is the one thing in your Obsidian or Notion setup that Lumina still can't replace for you?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Drop it in the comments—if it's a valid gap, it goes straight onto my roadmap. And if you want to test it out on Windows, macOS, or Linux, grab the latest release or inspect the Rust/React source here:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/Saboor-Hamedi/lumina" rel="noopener noreferrer"&gt;https://github.com/Saboor-Hamedi/lumina&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>tauri</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why I Built Lumina: A Local-First Markdown, AI Copilot, and Real Terminal Workspace in Tauri 2.0 + Rust</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:13:44 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/why-i-built-lumina-a-local-first-markdown-ai-copilot-and-real-terminal-workspace-in-tauri-20--4g6g</link>
      <guid>https://dev.to/saboorhamedi/why-i-built-lumina-a-local-first-markdown-ai-copilot-and-real-terminal-workspace-in-tauri-20--4g6g</guid>
      <description>&lt;p&gt;If you study, research, or write code every day, your desktop probably looks like mine used to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Obsidian&lt;/strong&gt; or &lt;strong&gt;Notion&lt;/strong&gt; open for Markdown notes and backlinks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VS Code&lt;/strong&gt; or a terminal window open to run scripts, &lt;code&gt;vim&lt;/code&gt;, or Git commands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Excalidraw&lt;/strong&gt; open for spatial diagrams.&lt;/li&gt;
&lt;li&gt;A browser tab open to copy-paste context back and forth with an &lt;strong&gt;AI assistant&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Alt-tabbing between four heavy apps breaks flow and running multiple Electron apps at once eats gigabytes of RAM just to edit plain text.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Lumina&lt;/strong&gt;: a 100% local-first, open-source (MIT) desktop workspace powered by &lt;strong&gt;Tauri 2.0 + Rust&lt;/strong&gt; and &lt;strong&gt;React 19 + CodeMirror 6&lt;/strong&gt; that brings Markdown notes, an infinite canvas, a vault-aware AI copilot, and a real pseudoterminal into a single fast app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/Saboor-Hamedi/lumina" rel="noopener noreferrer"&gt;Lumina&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ojcn8xpp1kpycv66noy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ojcn8xpp1kpycv66noy.png" alt="This lumina agent, you can work with the as like codex or other agents" width="800" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Makes Lumina Different from Obsidian &amp;amp; Notion?
&lt;/h2&gt;

&lt;p&gt;Lumina keeps your notes as &lt;strong&gt;100% plain-text &lt;code&gt;.md&lt;/code&gt; and &lt;code&gt;.canvas&lt;/code&gt; files&lt;/strong&gt; directly on your disk—zero proprietary databases, zero cloud lock-in—while adding native developer workflows out of the box:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Detached Split-Screen 3D WebGL + 2D Canvas Knowledge Graphs
&lt;/h3&gt;

&lt;p&gt;Most note apps give you a single global graph view. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feysut91i8i5lpn3aahy1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feysut91i8i5lpn3aahy1.png" alt="Lumina desktop workspace showing a Markdown note editor, note properties inspector, and integrated bash terminal" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Lumina, graph panes are completely detached—you can open a &lt;strong&gt;3D WebGL cluster graph&lt;/strong&gt; on the left and a &lt;strong&gt;2D Canvas radial graph&lt;/strong&gt; on the right side-by-side, with independent cameras, physics simulations, and filters.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Drag and drop your split-screen 3D + 2D Knowledge Graph screenshot here)&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A Real Integrated ConPTY / PTY Terminal (&lt;code&gt;Ctrl + J&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Instead of a fake command runner, Lumina embeds a real native pseudoterminal powered by &lt;code&gt;portable-pty&lt;/code&gt; in Rust (&lt;code&gt;crates/lumina_core&lt;/code&gt;). You can run &lt;strong&gt;Git Bash&lt;/strong&gt;, &lt;strong&gt;PowerShell&lt;/strong&gt;, &lt;strong&gt;CMD&lt;/strong&gt;, &lt;strong&gt;Zsh&lt;/strong&gt;, &lt;code&gt;vim&lt;/code&gt;, &lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;python&lt;/code&gt;, and interactive CLIs with full &lt;code&gt;Tab&lt;/code&gt; completion, &lt;code&gt;Ctrl+C&lt;/code&gt;, and split panes right underneath your notes.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Vault-Aware AI Copilot with Safety Diffs
&lt;/h3&gt;

&lt;p&gt;Lumina AI works &lt;strong&gt;100% offline with Ollama&lt;/strong&gt; or with cloud providers (DeepSeek, OpenAI, Claude). You can &lt;code&gt;@&lt;/code&gt;-mention notes, audit broken wikilinks, or let the agent draft and refactor files across three modes (&lt;em&gt;Planning &amp;amp; Strategy&lt;/em&gt;, &lt;em&gt;Execution &amp;amp; Action&lt;/em&gt;, &lt;em&gt;Research &amp;amp; Analysis&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;Every file edit proposed by the AI renders an inline &lt;strong&gt;Approve / Reject diff card&lt;/strong&gt; with &lt;strong&gt;multi-file Undo&lt;/strong&gt;—so the agent never silently overwrites your vault.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Spatial Infinite Canvas (&lt;code&gt;.canvas&lt;/code&gt;) &amp;amp; 50-Theme Exports
&lt;/h3&gt;

&lt;p&gt;Sketch architecture diagrams on a freeform 2D whiteboard with magnetic ports and orthogonal routing, or export notes across &lt;strong&gt;50 curated themes&lt;/strong&gt; to self-contained HTML, print-ready PDF (with auto-generated TOC), Markdown, &lt;code&gt;.doc&lt;/code&gt;, or ZIP archives.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Migrated from Electron to Tauri 2.0 + Rust
&lt;/h2&gt;

&lt;p&gt;Lumina originally started on Electron + N-API, but migrating to &lt;strong&gt;Tauri 2.0&lt;/strong&gt; transformed both startup speed and memory footprint:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native OS WebView:&lt;/strong&gt; Renders via WebView2 on Windows and WebKit on macOS/Linux instead of bundling Chromium and Node.js.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Direct Rust Core (&lt;code&gt;crates/lumina_core&lt;/code&gt;):&lt;/strong&gt; Multithreaded &lt;strong&gt;Rayon&lt;/strong&gt; disk scanning, sub-millisecond fuzzy search, and graph construction compile straight into the Tauri binary with zero IPC bridge overhead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Non-Blocking Async &amp;amp; Raw Binary IPC:&lt;/strong&gt; Heavy disk scans, exports, and ConPTY I/O run off the main thread via &lt;code&gt;spawn_blocking&lt;/code&gt;, while images, PDFs, and ZIP archives stream as raw binary &lt;code&gt;tauri::ipc::Response&lt;/code&gt; buffers instead of JSON byte arrays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tested End-to-End:&lt;/strong&gt; Backed by &lt;strong&gt;1,242 Vitest tests&lt;/strong&gt; and &lt;strong&gt;16 Rust core tests&lt;/strong&gt; (&lt;code&gt;npm run test:all&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It Out or Build from Source
&lt;/h2&gt;

&lt;p&gt;Prebuilt binaries for &lt;strong&gt;Windows, macOS, and Linux&lt;/strong&gt; are available on GitHub Releases, or you can run it locally from source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone &lt;span class="o"&gt;[&lt;/span&gt;https://github.com/Saboor-Hamedi/lumina.git&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://github.com/Saboor-Hamedi/lumina.git&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; lumina
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>rust</category>
      <category>tauri</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Building a Local-First Spreadsheet Analyzer with DuckDB-WASM and Metadata-Only AI</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Fri, 20 Nov 2026 04:03:40 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/building-a-local-first-spreadsheet-analyzer-with-duckdb-wasm-and-metadata-only-ai-1off</link>
      <guid>https://dev.to/saboorhamedi/building-a-local-first-spreadsheet-analyzer-with-duckdb-wasm-and-metadata-only-ai-1off</guid>
      <description>&lt;p&gt;Most AI spreadsheet and BI tools share the same architectural trade-off: to query your data with natural language, you have to upload your entire CSV or Excel file to their backend. &lt;/p&gt;

&lt;p&gt;For quick public datasets, that's fine. For financial reports, customer PII, or internal production logs, uploading raw rows to a third-party server is often a non-starter.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;&lt;a href="https://www.luminatabula.com" rel="noopener noreferrer"&gt;Lumina Tabula&lt;/a&gt;&lt;/strong&gt; to solve this by keeping the data processing engine inside the browser while still offering AI-assisted querying and visualization.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;Instead of shipping files to a cloud database, Lumina Tabula uses a three-part client-side pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;In-Browser DuckDB-WASM Engine:&lt;/strong&gt; When you drop a &lt;code&gt;.csv&lt;/code&gt; or &lt;code&gt;.xlsx&lt;/code&gt; file into the app, it is ingested directly into an in-memory DuckDB instance running inside a dedicated Web Worker. Running it in a worker keeps the main UI thread responsive even when scanning hundreds of thousands of rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metadata-Only AI Context:&lt;/strong&gt; To generate SQL from natural language prompts without exposing your dataset, the AI layer only receives the schema (column names, inferred data types) and lightweight summary statistics. Your actual rows never leave the browser sandbox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client-Side Execution &amp;amp; Visualization:&lt;/strong&gt; Once the model returns a SQL query, DuckDB-WASM executes it locally against your in-memory table and renders the output into interactive charts and summary views.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React + TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Query Engine:&lt;/strong&gt; DuckDB-WASM (WebAssembly)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind CSS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth &amp;amp; Sync:&lt;/strong&gt; Supabase (optional authentication and saved workspace metadata)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons &amp;amp; Challenges So Far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WASM Memory Limits:&lt;/strong&gt; Browser tabs have strict memory ceilings depending on the OS and device. Managing memory allocation and cleaning up temporary DuckDB tables when switching files was critical to prevent tab crashes on larger spreadsheets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema Ambiguity:&lt;/strong&gt; When the LLM can't see sample rows (to preserve privacy), edge cases in date formats or dirty string columns require careful prompt engineering and automated SQL error-recovery loops.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;You can test it with your own files (or sample datasets) at &lt;strong&gt;&lt;a href="https://www.luminatabula.com" rel="noopener noreferrer"&gt;luminatabula.com&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Since everything runs locally in your browser, I'd love feedback from other devs on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Query latency on larger CSV/XLSX files on your machine&lt;/li&gt;
&lt;li&gt;Browser memory limits you run into&lt;/li&gt;
&lt;li&gt;Ideas for supporting local LLM endpoints (like Ollama) for 100% offline air-gapped workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let me know what you think in the comments!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>duckdb</category>
      <category>webassembly</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Your Thesis is Being Used to Train Its Own Replacement: The Ethics of Cloud-Based AI Detection</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Thu, 18 Jun 2026 01:28:22 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/your-thesis-is-being-used-to-train-its-own-replacement-the-ethics-of-cloud-based-ai-detection-35c0</link>
      <guid>https://dev.to/saboorhamedi/your-thesis-is-being-used-to-train-its-own-replacement-the-ethics-of-cloud-based-ai-detection-35c0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Team&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Abdul Saboor Hamedi&lt;/li&gt;
&lt;li&gt;Rosyaida Saara Hellena&lt;/li&gt;
&lt;li&gt;Akhmad ghozal&lt;/li&gt;
&lt;li&gt;Novar Kurniawan&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the &lt;a href="https://github.com/Saboor-Hamedi/ai-detection.git" rel="noopener noreferrer"&gt;repo&lt;/a&gt;  you can find all the source code. &lt;/p&gt;




&lt;h2&gt;
  
  
  Your Thesis is Being Used to Train Its Own Replacement: The Ethics of Cloud-Based AI Detection
&lt;/h2&gt;




&lt;h2&gt;
  
  
  The Hidden Cost of Good Writing
&lt;/h2&gt;

&lt;p&gt;There is a growing fear in schools and universities today. Students who spend hours writing perfect, professional papers are being wrongly accused of cheating.&lt;/p&gt;

&lt;p&gt;Because online AI detectors are too simple, they cannot tell the difference between a highly disciplined human writer and a machine. To a basic detector, clean and correct English looks exactly like a robot wrote it.&lt;/p&gt;

&lt;p&gt;To fix this, we built the &lt;strong&gt;Neural Lab&lt;/strong&gt;—a private, offline software tool that lets you check your own writing on your own computer without losing your privacy.&lt;/p&gt;




&lt;h3&gt;
  
  
  Free Online &lt;a href="https://github.com/Saboor-Hamedi/ai-detection.git" rel="noopener noreferrer"&gt;Detectors&lt;/a&gt; Steal Your Work
&lt;/h3&gt;

&lt;p&gt;Most popular online AI detectors seem free, but you actually pay with your data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Risk&lt;/strong&gt;: When you upload your essay or thesis to a cloud website, you give away your ownership. The company uses your original ideas to train and improve their future AI systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;: The Neural Lab runs completely on your own computer hardware. It keeps your data safe and uses a fast local system to scan a massive document in under 2 seconds.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  How Neural Lab Works Under the Hood
&lt;/h3&gt;

&lt;p&gt;To keep your data 100% private, the entire system is built to run locally on your own machine, completely bypassing the cloud. The following figure shows how the project handles your text using a fast, secure setup:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu39z5lop2bdumsyz7rog.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu39z5lop2bdumsyz7rog.png" alt="To keep your data 100% private, the entire system is built to run locally on your own machine, completely bypassing the cloud. The following figure shows how the project handles your text using a fast, secure setup" width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Ingestion (The Gateway)
&lt;/h4&gt;

&lt;p&gt;The system workflow begins with how it safely receives your documents.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Frontend Editor (A)&lt;/strong&gt;: This is the simple screen where you paste your raw text or upload your PDF files to be checked.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;FastAPI Gateway (B)&lt;/strong&gt;: This acts like a private front door on your computer. It safely takes your document without letting any outside websites spy on it, keeping your files completely private.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  2. Pre-processing (The Smart Traffic Controller)
&lt;/h4&gt;

&lt;p&gt;Once inside, the tool checks the document size and breaks it down.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Document Length Check (C)&lt;/strong&gt;: The system automatically counts the characters to choose the fastest way to handle your paper.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fast Heuristic Router (D)&lt;/strong&gt;: If your document is massive (over 30,000 characters), it takes this shortcut path to keep your computer from slowing down or freezing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Deep Neural Router (E)&lt;/strong&gt;: If your document is standard or short (under 30,000 characters), it takes this path for a deeper, highly accurate test.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Splitter (F)&lt;/strong&gt;: No matter the length, the tool cuts the text into separate sentences so it can scan your writing piece by piece.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  3. Forensic Instruments (The Three Examiners)
&lt;/h4&gt;

&lt;p&gt;Next, three different local tests scan your text fragments at the exact same time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Neural Analysis (G)&lt;/strong&gt;: Uses an AI model (&lt;strong&gt;GPT-2&lt;/strong&gt;) running directly on your computer to measure how predictable and robotic your word patterns look.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lexical Analysis (H)&lt;/strong&gt;: Checks your personal writing habits by looking at your sentence rhythm and how many unique words you choose.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Integrity Audit (I)&lt;/strong&gt;: Uses a super-fast local scanner (&lt;code&gt;pg_trgm&lt;/code&gt;) to check your text against your own private saved drafts to see if you are reusing your older work.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Global Verdict: 81% Neural
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What Your Score Means:&lt;/strong&gt; The engine runs a deep mathematical calculation across every line to give you an overall result. For example, a document scoring an 81% Neural Signature shows very consistent machine-like text patterns, meaning the system is highly confident the writing mimics an AI model.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqrejhvt4mr4xc95wbhc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqrejhvt4mr4xc95wbhc.png" alt="Global Verdict circular chart dashboard displaying an 81% AI neural probability score" width="546" height="337"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h4&gt;
  
  
  4. Score Fusion (The Math Combiner)
&lt;/h4&gt;

&lt;p&gt;After gathering data from all three tests, the system blends the signals together so it doesn't make mistakes or rely on unfair guesses.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Forensic Calculator (J)&lt;/strong&gt;: This acts as the central brain, combining the neural scores, vocabulary patterns, and draft history.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sigmoid Normalization&lt;/strong&gt;: It runs these mixed numbers through a smooth mathematical curve. This guarantees that long, critical paragraphs carry more weight than tiny connector phrases, giving you an accurate final score for every single sentence.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  5. Persistence &amp;amp; Presentation (The Safe and Display)
&lt;/h4&gt;

&lt;p&gt;The final step securely logs your data and builds your visual dashboard.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;PostgreSQL Database (L)&lt;/strong&gt;: Your scan histories, text pieces, and final scores are safely saved right on your own hard drive under your complete control.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;3-Tier Assembly Engine (M)&lt;/strong&gt;: Uses a clean system build to instantly package your saved metrics for your screen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Visual UI (N)&lt;/strong&gt;: Brings up a clear, color-coded editor where you can view your highlighted sentences alongside automated metric graphs.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Why Being "Too Perfect" Makes You Look Like a Bot
&lt;/h3&gt;

&lt;p&gt;Basic detectors use a &lt;strong&gt;single-metric approach&lt;/strong&gt;, meaning they only look at one thing: word patterns.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;AI is trained on highly polished, formal English.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If a human writes a flawless paper, a basic detector flags it as AI simply because it lacks mistakes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Neural Lab solves this by testing multiple patterns at once, including how tightly packed the information is.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Real Human Writing Has a "Heartbeat"
&lt;/h3&gt;

&lt;p&gt;Human writers naturally change their rhythm. We talk and write in irregular bursts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We constantly mix short, punchy statements with long, complicated sentences.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This creates a bumpy, natural reading rhythm.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AI models are programmed to be perfectly smooth, so their sentences all share the exact same length and complexity, making them sound flat and robotic.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Territory Coverage Breakdown
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Mapping Your Document:&lt;/strong&gt; The system splits your physical text into three clear zones based on probability thresholds, showing you exactly how much of your document real estate looks human versus machine.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Exact AI Match&lt;/strong&gt;: High AI signals (probability over 60%).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Minor AI Changes&lt;/strong&gt;: Mixed text that looks like a hybrid blend (probability 25% to 60%).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Human Written&lt;/strong&gt;: Clean text showing authentic human signatures (probability under 25%).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  The Element of Surprise
&lt;/h3&gt;

&lt;p&gt;AI text is highly predictable because the machine always selects the most common, statistically likely word to come next.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Neural Lab measures how &lt;strong&gt;surprised&lt;/strong&gt; its local baseline engine is by your text.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Because human minds are creative, we choose unexpected words and unique phrasing that break the machine’s mathematical expectations.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Your Typos Prove You Are Human
&lt;/h3&gt;

&lt;p&gt;In a digital world where perfection belongs to machines, human mistakes have become a superpower.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Neural Lab scans your text for natural human typing mistakes, like swapped letters or missed apostrophes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;While an AI can be told to fake a mistake, it cannot copy the chaotic, organic pattern of a real human slip of the finger.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the tool finds a genuine human typo, it instantly drops the AI suspicion score.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  The "Furthermore" Trap
&lt;/h3&gt;

&lt;p&gt;AI models tend to constantly recycle a small list of transition words like &lt;em&gt;furthermore&lt;/em&gt;, &lt;em&gt;moreover&lt;/em&gt;, &lt;em&gt;consequently&lt;/em&gt;, and &lt;em&gt;essentially&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If your paper repeats these specific words too often, your vocabulary score drops.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Humans naturally use a much wider variety of words when explaining complex ideas.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Neural Lab uses a dashboard vocabulary gauge to track this; using a rich, diverse set of words provides a strong indicator that a human wrote the text.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Model Classification Matrix
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Behind the Accuracy Numbers:&lt;/strong&gt; To protect authentic academic writers from false plagiarism accusations, the local engine monitors its own system performance constants to keep its precision levels incredibly high.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftnolyud0xanvf1fldhd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftnolyud0xanvf1fldhd3.png" alt="o protect authentic academic writers from false plagiarism accusations, the local engine monitors its own system performance constants to keep its precision levels incredibly high" width="573" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Precision Control&lt;/strong&gt;: 95.20% accuracy in separating human text from AI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Confidence Rating&lt;/strong&gt;: 94.90% reliability score based on signal data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Recall Sensitivity&lt;/strong&gt;: 96.10% success rate in catching actual AI patterns.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Protecting Your Voice
&lt;/h3&gt;

&lt;p&gt;AI detectors must stop using single, blind guesses to accuse students. The Neural Lab fixes this by making sure your main paragraphs hold more weight than small connecting sentences.&lt;/p&gt;

&lt;p&gt;As AI continues to make all writing look identical, your unique rhythm, diverse vocabulary, and even your mistakes are your best defense to prove your humanity.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>plagiarism</category>
    </item>
    <item>
      <title>A Private Laboratory for Forensic AI Detection and Academic Rigor</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Wed, 06 May 2026 12:26:11 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/a-private-laboratory-for-forensic-ai-detection-and-academic-rigor-27cl</link>
      <guid>https://dev.to/saboorhamedi/a-private-laboratory-for-forensic-ai-detection-and-academic-rigor-27cl</guid>
      <description>&lt;p&gt;A Private Laboratory for Forensic AI Detection and Academic Rigor&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post serves as my masters degree midterm at the University of Pamulang. The subject is Advanced Computer Vision.&lt;/em&gt;&lt;br&gt;
Author: &lt;strong&gt;Abdul Saboor Hamedi&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;a href="https://github.com/Saboor-Hamedi/ai-detection.git" rel="noopener noreferrer"&gt;Repo&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Taking Back Our Data: Why We Built a Private AI Detector (And How It Works)
&lt;/h2&gt;

&lt;p&gt;If you have spent any time in the modern academic landscape, you already know about the climate of fear surrounding AI writing tools. While large language models offer incredible assistance, they have also created a massive problem: students and researchers live in constant fear of being wrongly accused of AI plagiarism.&lt;/p&gt;

&lt;p&gt;Have you ever written a highly structured, perfectly grammatical paper, only to have a cloud-based detector slap a 90% AI-generated label on it? You aren't alone. This is known as "Standardization Bias." Highly disciplined writers and non-native English speakers frequently get flagged simply because their writing is "too perfect." Most mainstream detectors rely on a flawed, single-metric approach that struggles to tell the difference between Standardized Academic English and machine-generated text.&lt;/p&gt;

&lt;p&gt;Even worse is the data privacy crisis. When you upload your thesis or a novel research paper to a cloud-based AI detector, you are often participating in a "pay with your data" model. You are essentially handing your intellectual property over to a third-party corporation to train future models.&lt;/p&gt;

&lt;p&gt;To solve this, a new system was developed called the &lt;strong&gt;Neural Lab&lt;/strong&gt;. It is designed as a localized, private laboratory for forensic AI detection, giving the power of auditing back to the user before their work ever reaches a teacher's desk. Let’s dive into the architecture, the detection methodology, and some of the cool engineering challenges solved along the way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4o8slht7w5k4nm2a9tk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4o8slht7w5k4nm2a9tk.png" alt="The Neural Lab user interface showing a document editor with real-time AI probability scores, sentence highlighting, and forensic metrics like Perplexity and Burstiness." width="480" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture Stack
&lt;/h2&gt;

&lt;p&gt;The Neural Lab was built for industrial production, running entirely on the user's local hardware to guarantee full data sovereignty.&lt;/p&gt;

&lt;p&gt;The backend relies on a high-performance &lt;strong&gt;FastAPI&lt;/strong&gt; web server with a &lt;strong&gt;PostgreSQL&lt;/strong&gt; database acting as the persistence layer to safely store research history. On the machine learning side, the engine integrates a &lt;strong&gt;PyTorch&lt;/strong&gt; backend to run the foundational transformer model, which seamlessly auto-detects CUDA availability to load the model in half-precision (float16) on GPU machines, saving VRAM and boosting throughput.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Four Pillars of Detection (The Secret Sauce)
&lt;/h2&gt;

&lt;p&gt;Instead of relying on a single, easily confused metric, the Neural Lab utilizes a four-metric fusion approach to dramatically reduce false positives.&lt;/p&gt;

&lt;p&gt;The baseline model powering this is GPT-2. Why an older model? Because GPT-2 represents the foundational autoregressive logic used by all modern LLMs. When you feed GPT-2 text generated by a more advanced model like GPT-4 or Claude, it recognizes the familiar probability-maximization patterns.&lt;/p&gt;

&lt;p&gt;The first core metric is &lt;strong&gt;Perplexity&lt;/strong&gt;, which basically measures how "surprised" the model is by the text. Advanced AI text registers as low perplexity because GPT-2 easily anticipates it, whereas idiosyncratic human text registers as high perplexity.&lt;/p&gt;

&lt;p&gt;The second metric is &lt;strong&gt;Shannon Entropy&lt;/strong&gt;, which measures predictability at the token level. AI is highly confident at each step, taking highly predictable token paths (low entropy). Humans, on the other hand, are uncertain, and our text could go in many different directions at any given point (high entropy).&lt;/p&gt;

&lt;p&gt;The third metric is my personal favorite: &lt;strong&gt;Sentence Burstiness&lt;/strong&gt;, which acts as the "Human Pulse." Human writers naturally vary their rhythm. We mix short, punchy sentences with long, drawn-out elaborations, creating high statistical variance. AI models are optimized for coherence and fluency, meaning they tend to spit out sentences of highly uniform complexity resulting in low burstiness.&lt;/p&gt;

&lt;p&gt;Finally, the system calculates a &lt;strong&gt;Lexical Uniqueness Ratio&lt;/strong&gt;. This catches the AI's tendency to constantly lean on common transitional vocabulary (think words like "furthermore," "moreover," and "essentially").&lt;/p&gt;

&lt;p&gt;These four metrics are fused together using a non-linear sigmoid calibration to create a final AI probability score. The developers even added a brilliant "Human Override" pipeline that scans for structural keystroke typos—if a human error is found, it applies a massive static deduction to the AI score.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forensic Audit Performance Metrics
&lt;/h2&gt;

&lt;p&gt;To demonstrate the system's precision, the following data represents a typical industrial audit performance. The engine uses a fused scoring model to ensure high-fidelity results.&lt;/p&gt;

&lt;h4&gt;
  
  
  Neural Signature &amp;amp; Coverage
&lt;/h4&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Explanation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Global Neural Confidence&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;35%&lt;/td&gt;
&lt;td&gt;The character-weighted average of AI intensity across the entire document.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Human Authorship&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;65%&lt;/td&gt;
&lt;td&gt;The percentage of the document identified as purely human-written.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Exact AI Match&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;Territory coverage for sentences with 100% machine signature.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Minor AI Changes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;70%&lt;/td&gt;
&lt;td&gt;Territory coverage for sentences likely refined or edited by AI.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Human Written&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;td&gt;Territory coverage for sentences with no machine signature.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h4&gt;
  
  
  Integrity Audit &amp;amp; Neural Accuracy
&lt;/h4&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Explanation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Plagiarism Index&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;td&gt;Percentage of this document found in previously archived records.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Archive Size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;176&lt;/td&gt;
&lt;td&gt;Total records currently stored in the private forensic archive.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Source Traces&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;61&lt;/td&gt;
&lt;td&gt;Individual matches detected across the internal database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;F1-Score&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;95.80%&lt;/td&gt;
&lt;td&gt;The balanced accuracy of the neural engine.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Audit Confidence&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;86.20%&lt;/td&gt;
&lt;td&gt;The statistical reliability of the current forensic audit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Precision&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;95.20%&lt;/td&gt;
&lt;td&gt;The engine's accuracy in identifying true AI-generated content.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Recall&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;96.10%&lt;/td&gt;
&lt;td&gt;The engine's ability to detect all instances of machine text.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Streamlined Ingestion: Drag &amp;amp; Drop PDF Support
&lt;/h3&gt;

&lt;p&gt;A critical feature for researcher productivity is the native support for &lt;strong&gt;Drag &amp;amp; Drop&lt;/strong&gt; PDF ingestion. Instead of traditional file picking, users can simply drag a PDF file directly onto the editor workspace. This triggers an automated pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Extraction&lt;/strong&gt;: The system uses &lt;code&gt;PyMuPDF&lt;/code&gt; to extract text with per-word precision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coordinates&lt;/strong&gt;: It maintains spatial bounding boxes (&lt;code&gt;bbox&lt;/code&gt;) for every word.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visualization&lt;/strong&gt;: The frontend renders a visual text layer over the original PDF layout, allowing for spatial forensic highlighting without altering the source document.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Overcoming Engineering Challenges
&lt;/h2&gt;

&lt;p&gt;Building a high-fidelity local detector brought up some fascinating edge cases.&lt;/p&gt;

&lt;p&gt;One major issue was the Calibration Consistency Problem. Early versions of the app would sometimes show a global score of 97% AI, but the editor would highlight almost no sentences in red. This happened because the global score and the sentence scores were being calculated by two completely independent algorithms. To fix this UI nightmare, the global score was rewritten to be a character-length-weighted average of the individual sentence probabilities. This means a 50-word analytical paragraph now correctly carries more weight than a 5-word transition sentence, ensuring the UI is exactly 100% mathematically consistent with what the user sees highlighted.&lt;/p&gt;

&lt;p&gt;Another massive win was optimizing the Integrity Audit Engine (the plagiarism checker). Scanning a massive document by running exact string matches against a database is a fast track to an expensive $O(N)$ database loop. Scanning a 78,000-character document used to take about 60 seconds and required over 520 individual queries.&lt;/p&gt;

&lt;p&gt;The engineering fix? They partitioned the text into fixed 55-character overlapping fingerprints and utilized PostgreSQL's &lt;code&gt;pg_trgm&lt;/code&gt; trigram indexing. By passing the extracted fingerprints in a single batched execution using &lt;code&gt;UNNEST&lt;/code&gt; and &lt;code&gt;ILIKE&lt;/code&gt;, they reduced the database scan time from 60 seconds down to under 2 seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;The Neural Lab proves that high-fidelity, mathematically rigorous AI detection doesn't require uploading your intellectual property to a corporate cloud. By leveraging local hardware, smart database indexing, and a multi-metric forensic approach, developers can build tools that actually protect students and researchers from false accusations while keeping their data completely safe and sovereign.&lt;/p&gt;

</description>
      <category>aidetection</category>
      <category>ai</category>
      <category>plagiarism</category>
    </item>
    <item>
      <title>Dev Snippet — A Local-First Markdown Editor That Thinks With You</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Fri, 02 Jan 2026 02:56:59 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/dev-snippet-a-local-first-markdown-editor-that-thinks-with-you-4m23</link>
      <guid>https://dev.to/saboorhamedi/dev-snippet-a-local-first-markdown-editor-that-thinks-with-you-4m23</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fae4w2tut0ql1b3vyibkm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fae4w2tut0ql1b3vyibkm.png" alt=" " width="800" height="506"&gt;&lt;/a&gt;&lt;br&gt;
Free. Offline. No Cloud. No Tracking. Just pure, high-performance knowledge crafting.&lt;/p&gt;

&lt;p&gt;After nine years of coding and months of focused development, I built the Markdown editor I always wished existed — one that respects your focus, your privacy, and your intelligence.&lt;/p&gt;

&lt;p&gt;Why Dev Snippet stands out:&lt;/p&gt;

&lt;p&gt;True Local-First: All data stays on your machine via SQLite and a secure snippet:// protocol. No accounts. No forced sync.&lt;br&gt;
Flow Mode: A borderless, shadowed editor designed to induce deep work — neither VS Code nor Obsidian offers this.&lt;br&gt;
Scientist Mode: Typewriter scrolling and minimal UI, optimized for thesis writing and long-form technical drafting.&lt;br&gt;
Full Mermaid and Mathematical Support: Render diagrams, equations, and architectural sketches directly in the live preview.&lt;br&gt;
Semantic Linking: Connect ideas with wiki-links [[snippet_name]], categorize with tags (#), and reference concepts with mentions (@).&lt;br&gt;
Hybrid Search: Press Ctrl+Shift+F to search across all snippets by tag, mention, language, or content — powered by FTS5 and BM25.&lt;br&gt;
Stable Editing Experience: A cursor-aware rendering architecture eliminates layout jumps when switching between modes.&lt;br&gt;
Thoughtful Theming: Four built-in themes inspired by modern CLI tools, with real-time sync between editor and preview.&lt;br&gt;
Built for:&lt;/p&gt;

&lt;p&gt;Researchers drafting papers in Markdown (arXiv-ready)&lt;br&gt;
Developers documenting systems and code&lt;br&gt;
Students organizing lecture notes with structure and links&lt;br&gt;
Anyone who values privacy, speed, and cognitive clarity&lt;br&gt;
Tech Stack: Electron, React, CodeMirror 6, SQLite (WAL mode), and unified.js&lt;br&gt;
License: MIT — fully open source, no hidden costs&lt;/p&gt;

&lt;p&gt;Download v1.2.2 for Windows, macOS, and Linux: &lt;a href="https://github.com/Saboor-Hamedi/dev-snippet/releases" rel="noopener noreferrer"&gt;releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source and documentation: &lt;a href="https://github.com/Saboor-Hamedi/dev-snippet" rel="noopener noreferrer"&gt;repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tools should adapt to cognition — not force cognition to adapt to tools.&lt;/p&gt;

&lt;p&gt;I welcome your feedback — especially from researchers, developers, and serious note-takers. What would make this your daily driver?&lt;/p&gt;

</description>
      <category>electron</category>
      <category>react</category>
      <category>sqlite</category>
      <category>md</category>
    </item>
    <item>
      <title>Quick Snippets — A Small Tool for Big Focus</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Mon, 01 Dec 2025 13:15:56 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/quick-snippets-a-small-tool-for-big-focus-hjl</link>
      <guid>https://dev.to/saboorhamedi/quick-snippets-a-small-tool-for-big-focus-hjl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Built for developers who hate interrupting their flow.&lt;/strong&gt;&lt;br&gt;
Future update here &lt;a href="https://dev-dialect.com/" rel="noopener noreferrer"&gt;dev-dialect&lt;/a&gt;&lt;br&gt;
When you're deep in the zone and need to save that perfect regex, API response, or config snippet, you don't want to open a new IDE tab or search through messy text files. Quick Snippets gives you a lightning-fast, distraction-free space for those micro-knowledge pieces that deserve to be saved but don't belong in a full project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1uhskbm3q4so46j0sf7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1uhskbm3q4so46j0sf7.png" alt=" " width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Philosophy: Less Friction, More Flow
&lt;/h2&gt;

&lt;p&gt;Quick Snippets was born from frustration with existing tools that were either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Too heavy&lt;/strong&gt; (full IDEs for 10 lines of code)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too simple&lt;/strong&gt; (plain text files with no organization)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too slow&lt;/strong&gt; (cloud apps requiring authentication)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted something that feels like an extension of my muscle memory — a tool that appears when I need it and disappears when I don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Makes It Special
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Instant Capture&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl/Cmd+N&lt;/strong&gt; → New snippet immediately focused and ready&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drag &amp;amp; drop&lt;/strong&gt; files directly into the app&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-save&lt;/strong&gt; every keystroke (never lose work)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Smart Organization&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Command Palette (Ctrl/Cmd+P)&lt;/strong&gt; – Fuzzy-search through all snippets instantly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Markdown Preview&lt;/strong&gt; – See formatted results as you type&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite Backend&lt;/strong&gt; – Local, fast, reliable storage that syncs nothing to the cloud&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Keyboard-First Workflow&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl+R&lt;/strong&gt; – Rename selected snippet&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl+Shift+C&lt;/strong&gt; – Copy snippet to clipboard&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete key&lt;/strong&gt; – Remove with confirmation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Esc&lt;/strong&gt; – Smart modal hierarchy (closes only what's relevant)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Clean, Focused Interface&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// No bloat. No distractions.&lt;/span&gt;
&lt;span class="c1"&gt;// Just your code and a live preview.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  See It in Action
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Split-Pane Productivity&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F770it6xfporyzvmhcoxf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F770it6xfporyzvmhcoxf.png" alt=" " width="800" height="358"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Left: Clean editor. Right: Instant Markdown rendering. No switching tabs.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Perfect For...
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Daily Developer Tasks
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Saving &lt;strong&gt;one-off commands&lt;/strong&gt; you always forget&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API examples&lt;/strong&gt; and curl commands&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Config snippets&lt;/strong&gt; for different environments&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bug reproduction&lt;/strong&gt; templates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code review&lt;/strong&gt; notes and templates&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Beyond Just Code
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Meeting notes in Markdown&lt;/li&gt;
&lt;li&gt;Quick calculations&lt;/li&gt;
&lt;li&gt;Project ideas&lt;/li&gt;
&lt;li&gt;Contact templates&lt;/li&gt;
&lt;li&gt;Issue descriptions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev  &lt;span class="c"&gt;# For development&lt;/span&gt;
npm run build  &lt;span class="c"&gt;# For production&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  First 60 Seconds
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl+N&lt;/strong&gt; – Create your first snippet&lt;/li&gt;
&lt;li&gt;Give it a name (&lt;code&gt;.js&lt;/code&gt; extension auto-detects language)&lt;/li&gt;
&lt;li&gt;Type some code – watch it auto-save&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl+P&lt;/strong&gt; – Search for it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ctrl+Shift+C&lt;/strong&gt; – Copy it back to your main project&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why This Works
&lt;/h2&gt;

&lt;p&gt;The magic is in the constraints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No folders&lt;/strong&gt; – Search instead of organizing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No cloud sync&lt;/strong&gt; – Local-first means instant&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No tabs&lt;/strong&gt; – Single focus reduces cognitive load&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No settings&lt;/strong&gt; – It just works&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5q497ldig5eaa5ob0ye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5q497ldig5eaa5ob0ye.png" alt=" " width="800" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Roadmap Ideas
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Snippet tagging and collections&lt;/li&gt;
&lt;li&gt;Quick export to gist/git&lt;/li&gt;
&lt;li&gt;Theme customization&lt;/li&gt;
&lt;li&gt;Plugin system for syntax highlighting&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;MIT – Use it, modify it, share it. Just keep the credits if you redistribute.&lt;/p&gt;




&lt;h2&gt;
  
  
  Want to Contribute?
&lt;/h2&gt;

&lt;p&gt;Found a bug? Have a feature idea? The code is intentionally simple so you can jump right in. Issues and PRs are welcome!&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Quick Snippets isn't trying to be your main editor. It's the sticky note on your monitor that actually gets used.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>snippet</category>
      <category>electron</category>
      <category>node</category>
      <category>sqlite</category>
    </item>
    <item>
      <title>Cracking Down on Cyber Scams: A Breakthrough in Email Threat Detection Using AI .</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Wed, 11 Jun 2025 12:09:22 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/cracking-down-on-cyber-scams-a-breakthrough-in-email-threat-detection-using-ai--4049</link>
      <guid>https://dev.to/saboorhamedi/cracking-down-on-cyber-scams-a-breakthrough-in-email-threat-detection-using-ai--4049</guid>
      <description>&lt;p&gt;We're students of Information Technology (IT) at the &lt;strong&gt;University of Pamulang (Universitas Pamulang)&lt;/strong&gt;. It's one of the best private universities, providing excellent classes for various majors.&lt;br&gt;
&lt;strong&gt;Student Names:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Abdul Saboor Hamedi
&lt;/li&gt;
&lt;li&gt;Esa Rizki Hari Utama
&lt;/li&gt;
&lt;li&gt;Anydya Relbi Wayah Pandeyani &lt;/li&gt;
&lt;li&gt;Moh. Erland Sumantri&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This blog is an assignment for our &lt;strong&gt;Computer System and Networking&lt;/strong&gt; subject. In this blog, we will go through a paper sourced from Scopus, titled "Machine learning algorithm for detecting suspicious email messages using Natural Language Processing NLP."&lt;br&gt;
You can access the paper through this &lt;a href="https://doi.org/10.1016/j.aej.2025.04.067" rel="noopener noreferrer"&gt;here&lt;/a&gt;...&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In our increasingly connected world, email isn't just for sending holiday snaps or coordinating a Friday arvo barbie. It's a fundamental part of global connectivity and even drives economic growth. But with this convenience comes a serious downside: email is a prime target for cyber threats. We're talking sophisticated phishing schemes and sneaky malware distribution that can hit individuals, companies, and even institutions hard.&lt;/p&gt;

&lt;p&gt;Traditional security measures, bless 'em, are finding it tough to keep up with how quickly these nasty tactics evolve. And let's be fair, there's a serious shortage of cybersecurity pros to fight this battle – one survey across eight countries found about 82% of employers are feeling the pinch. Data from the US also shows unfilled cybersecurity jobs have jumped over 50% since 2015, with projections of a global deficit reaching a whopping 1.8 million roles soon. This talent gap just makes the problem worse.&lt;/p&gt;

&lt;p&gt;When security systems can't adapt, we end up with frustrating classification errors: &lt;strong&gt;false positives (FP)&lt;/strong&gt; and &lt;strong&gt;false negatives (FN)&lt;/strong&gt;. FPs are when a perfectly harmless email gets flagged as a threat, ruining the reliability of email communication. Even worse are FNs, where a genuinely harmful email slips through the net. These errors can lead to data breaches, losing your hard-earned cash, or damaging reputations. With email being crucial for business, sorting out email security is a huge deal, demanding fresh ideas to fix the gaps in older systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Rise of Machine Learning and NLP
&lt;/h3&gt;

&lt;p&gt;Over the years, folks have tried various ways to combat email threats. Early efforts moved beyond just labelling emails as 'ham' (good) or 'spam' (bad) to a three-class system using Artificial Neural Networks (ANN). Hybrid machine learning techniques also showed promise. More recently, tackling &lt;strong&gt;targeted malicious emails (TMEs)&lt;/strong&gt; has been a focus. Some approaches have used methods like SpamAssassin and ClamAV, while others have found success with Support Vector Machine (SVM) algorithms. However, dealing with the sheer volume and complexity of spam means selecting the right features in the email data is crucial for boosting performance.&lt;/p&gt;

&lt;p&gt;Despite the progress, existing systems still chuck up too many false positives, don't quite grasp the full context of a phishing attempt, and struggle to adapt to new threats. This is where combining &lt;strong&gt;Machine Learning (ML)&lt;/strong&gt; and &lt;strong&gt;Natural Language Processing (NLP)&lt;/strong&gt; comes in. NLP helps systems analyse the actual content of emails, spotting tricky language and common patterns found in phishing attempts. This improved accuracy, cutting down on both FPs and FNs. Later on, NLP started looking at the context and meaning of the content, working out the intent behind the text to tell suspicious emails apart from everyday ones. Analysing linguistic patterns and sentiment became key, flagging emails that use persuasive or urgent language. It turns out NLP works particularly well when teamed up with SVM models.&lt;/p&gt;

&lt;h3&gt;
  
  
  Our Proposed Solution: SVC with NLP and BERT
&lt;/h3&gt;

&lt;p&gt;This research builds on previous efforts by bringing together a &lt;strong&gt;Support Vector Classifier (SVC)&lt;/strong&gt; with &lt;strong&gt;NLP-based feature extraction&lt;/strong&gt;, including the advanced &lt;strong&gt;BERT&lt;/strong&gt; model, to really nail down classification accuracy and cut those pesky false positives. While past studies often used Random Forest, Naïve Bayes, or standard SVM models, our work shows that an optimised SVC model using smart feature selection techniques achieves higher accuracy (an impressive 98.65%) and is more effective at filtering spam.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Does It Work? Unpacking the Methodology
&lt;/h3&gt;

&lt;p&gt;Let's break down the process.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;The Data&lt;/strong&gt;: The study used the &lt;strong&gt;Kaggle Email Spam Classification Dataset&lt;/strong&gt;. This dataset is a benchmark and contains details from 5172 emails, each labelled as either spam (1) or non-spam (0). Each email is represented by word counts across a massive 3002 columns, plus its label. About 39.4% were spam and 60.6% non-spam, showing the dataset had a class imbalance.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Getting the Data Ready (Preprocessing)&lt;/strong&gt;: Before the ML model could chew on the data, it needed a clean-up. This involved a few steps:

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Lowercasing&lt;/strong&gt;: All text was converted to lowercase to ensure consistency.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Tokenization&lt;/strong&gt;: Emails were broken down into individual words or "tokens" for detailed analysis.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Stop Word Removal&lt;/strong&gt;: Common, uninformative words like "the", "is", and "and" were removed to focus on words that actually carry meaning. Other cleaning included removing emojis, HTML tags, special characters, and URLs.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Lemmatization&lt;/strong&gt;: Words were reduced to their base form.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Extracting Features&lt;/strong&gt;: Once the text was clean, important features were pulled out using NLP techniques.

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;One-Hot Encoding&lt;/strong&gt;: Categorical features (like email subject) were turned into a binary format. While efficient, it doesn't capture meaning or relationships between words, limiting its use for complex phishing detection.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;TF-IDF Vectorization&lt;/strong&gt;: This technique turns the preprocessed text into numerical features, giving words a weight based on how often they appear in an email compared to the whole dataset. It's simple and good for basic text classification, but misses the context between words, which is a limitation for sophisticated phishing.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;BERT Embeddings&lt;/strong&gt;: To fix the limitations of TF-IDF and One-Hot Encoding, BERT was brought in. BERT is a state-of-the-art NLP model that creates contextual embeddings, helping the model understand the meaning of words based on their surroundings. This is a game-changer for spotting subtle linguistic cues in phishing emails, though it does require a fair bit of computational power. Combining One-Hot, TF-IDF, and BERT showed the best performance in feature extraction tests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Handling Imbalance&lt;/strong&gt;: Because there were more non-spam emails than spam, the dataset was imbalanced. To counter this bias and improve performance, especially in reducing false negatives, several techniques were used:

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;SMOTE&lt;/strong&gt;: This technique creates synthetic examples for the minority class (spam) by interpolating between existing ones. This boosted recall.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Under-sampling&lt;/strong&gt;: This reduces the number of majority class (non-spam) examples. This slightly reduced overall accuracy but improved precision for spam detection.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Algorithmic Adjustments&lt;/strong&gt;: The &lt;code&gt;class_weight&lt;/code&gt; parameter in the SVC was set to 'balanced', giving more importance to the minority class during training. Combining these methods helped balance recall and precision for better overall reliability.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Choosing and Training the Model&lt;/strong&gt;: An &lt;strong&gt;SVC model&lt;/strong&gt; was selected because it's great at binary classification (suspicious or not suspicious), handles high-dimensional data well (like text features), and finds an optimal separation boundary that helps prevent overfitting. Its performance was compared against other popular classifiers like Random Forest, Neural Networks, Decision Trees, and Naive Bayes. The SVC model came out on top, especially for critical metrics like recall and F1-score, which are vital for catching true threats. The training involved using &lt;strong&gt;k-fold cross-validation (with 5 folds)&lt;/strong&gt; to check for overfitting and evaluate the model better. &lt;strong&gt;GridSearchCV&lt;/strong&gt; was used to find the best settings (hyperparameters) for the SVC model. Specific parameters for the SVC included C=1.0, kernel='RBF' (for non-linear data), gamma='scale', and class_weight='balanced'. The model achieved a training accuracy of 98.89%.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Understanding the SVC Structure&lt;/strong&gt;: At its heart, the SVC finds the best &lt;strong&gt;hyperplane&lt;/strong&gt; (a decision boundary) to separate the different classes in the data. It does this by maximising the &lt;strong&gt;margin&lt;/strong&gt; (distance) between the boundary and the closest data points from each class, known as &lt;strong&gt;Support Vectors&lt;/strong&gt;. The model uses a &lt;strong&gt;Kernel Function&lt;/strong&gt; to calculate similarity between data points.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;The Procedure in Steps&lt;/strong&gt;: The overall process involved Exploratory Data Analysis (EDA) to visualise the dataset, the preprocessing and splitting (80% for training, 20% for testing), loading and initialising the SVC model, training the model, and finally testing it. The process can be visualised as data preprocessing -&amp;gt; handling imbalance -&amp;gt; model training -&amp;gt; model evaluation -&amp;gt; output.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Tools Used&lt;/strong&gt;: The research employed standard computing gear and several software tools, including &lt;strong&gt;Python&lt;/strong&gt; (3.7), &lt;strong&gt;Pandas&lt;/strong&gt;, &lt;strong&gt;NumPy&lt;/strong&gt;, &lt;strong&gt;Scikit-learn&lt;/strong&gt;, &lt;strong&gt;NLTK&lt;/strong&gt;, &lt;strong&gt;Matplotlib/Seaborn&lt;/strong&gt;, &lt;strong&gt;BeautifulSoup&lt;/strong&gt;, &lt;strong&gt;Joblib&lt;/strong&gt;, &lt;strong&gt;Uvicorn&lt;/strong&gt;, and &lt;strong&gt;FastAPI&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Deployment&lt;/strong&gt;: The proposed email security solution is envisioned as a &lt;strong&gt;browser extension&lt;/strong&gt; installed on a user's personal computer. The ML and NLP modules would work within a security engine in the extension to analyse emails and provide results to the user.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Results Are In!
&lt;/h3&gt;

&lt;p&gt;Our model achieved an impressive &lt;strong&gt;accuracy of 98.65%&lt;/strong&gt; on the test set. This is pretty darn good at telling spam/phishing emails from legitimate ones. The study used a test set of 1034 emails. The results, shown in the confusion matrix, highlight the model's effectiveness:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;True Positives (TP)&lt;/strong&gt;: 731 phishing emails correctly identified.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;True Negatives (TN)&lt;/strong&gt;: 290 non-phishing emails correctly identified.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;False Positives (FP)&lt;/strong&gt;: Only 11 non-suspicious emails were wrongly flagged as suspicious.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;False Negatives (FN)&lt;/strong&gt;: Only 3 suspicious emails were wrongly missed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This high precision means the model is reliable for real-world use.&lt;/p&gt;

&lt;p&gt;Comparing our SVC approach with others mentioned in the literature showed it performed very competently:&lt;br&gt;
| Paper                  | Model Used                | Accuracy |&lt;br&gt;
|------------------------|---------------------------|----------|&lt;br&gt;
| Amin et al.            | Random Forest Classifier  | 91%      |&lt;br&gt;
| Khamis et al.          | SVM                       | 88.80%   |&lt;br&gt;
| Ghaleb et al.          | MOGOA and EGOA            | 98.3%    |&lt;br&gt;
| Magdy et al.           | ANN                       | 99.5%    |&lt;br&gt;
| M. Dewis and T. Viana  | MLP                       | 94%      |&lt;br&gt;
| Y. Li                  | Naïve Bayes               | 99.2%    |&lt;br&gt;
| Our SVC Approach       | Integrated NLP and SVC    | 98.65%   |&lt;br&gt;
&lt;em&gt;Table derived from source.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;While some studies showed slightly higher accuracy (like Magdy et al. and Y. Li), our approach particularly excels in reducing FPs and FNs, which is crucial for reliability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Balancing Performance and Efficiency
&lt;/h3&gt;

&lt;p&gt;It's also worth looking at how the models perform computationally:&lt;br&gt;
| Classifier | Training time (s) | Inference latency (ms/email) | Memory usage (MB) | Accuracy (%) |&lt;br&gt;
|:---|:---:|:---:|:---:|:---:|&lt;br&gt;
| Random Forest  | 18.5  | 1.8  | 210 |      97.20         |&lt;br&gt;
| Neural Network | 210.3 | 5.6 | 350 |       97.80         |&lt;br&gt;
| Naive Bayes    | 4.2   | 0.9   | 80 |      95.40         |&lt;br&gt;
| Gradient Boosting      | 35.7  | 2.1 |     180 |    97.60 |&lt;br&gt;
| SVC (Proposed) | 42.1  | 3.2  | 120 |      98.65 |&lt;br&gt;
&lt;em&gt;Table derived from source.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Our SVC model takes a bit longer to train (42.1 s) and uses more memory (120 MB) compared to Naive Bayes (4.2 s, 80 MB) or Random Forest (18.5 s, 210 MB). This is mainly because of its kernel-based optimisation. However, it strikes a good balance with inference speed (3.2 ms/email) and high accuracy. Neural Networks had a higher accuracy listed in the table (97.80%), but with significant computational cost, which limits scalability for large-scale deployments. This shows that the choice of model depends on what you need – SVC is great for high accuracy, but others might suit if computing resources are tight.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dealing with Errors: False Positives and False Negatives
&lt;/h3&gt;

&lt;p&gt;Let's revisit those classification errors, as they matter a lot in detecting phishing emails.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;False Positives (FPs)&lt;/strong&gt; are annoying. They can make users distrust the system, lead to lost productivity from checking quarantined emails, and mean you might miss important messages.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;False Negatives (FNs)&lt;/strong&gt; are dangerous. When a phishing email slips through, it can lead to successful attacks, compromising sensitive info, and causing financial and reputational damage. FNs are considered more critical in this context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How can we tackle these?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Threshold Adjustment&lt;/strong&gt;: Tweaking the model's decision threshold can help balance catching threats (sensitivity) with not flagging good emails (specificity). This was tested and reduced FNs by 20%.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Ensemble Methods&lt;/strong&gt;: Combining multiple models (like SVC with others) can make the system tougher and more accurate, helping to reduce both FPs and FNs.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cost-sensitive Learning&lt;/strong&gt;: Designing models that penalise missing a threat (FN) more heavily than flagging a safe email (FP) can bias the model towards minimising FNs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even with few errors, there's always room to improve. The complexity of email content and very subtle text details can still cause misclassifications.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion and What's Next
&lt;/h3&gt;

&lt;p&gt;This study put forward a solid email security framework combining machine learning and NLP to get better at spotting suspicious emails. By teaming SVC with advanced feature extraction like BERT embeddings, the model hit an accuracy of 98.65%, outdoing many older spam detection methods. The results clearly show this system is effective at cutting down both false positives and false negatives, making email communication more reliable.&lt;/p&gt;

&lt;p&gt;However, there are still challenges:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Dataset Scope&lt;/strong&gt;: The dataset used is a benchmark, which is good for evaluation, but it might not fully represent the wild diversity and constantly changing nature of real-world phishing emails, especially in businesses. It lacks some real-world context like sender reputation.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Overfitting Risks&lt;/strong&gt;: Complex models like BERT can risk overfitting, although cross-validation helps. Using more data and regularization techniques could further mitigate this.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Language and Domain&lt;/strong&gt;: The model was mainly trained on English emails. It might not work as well for other languages or phishing attacks specific to different cultures or domains.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Dataset Biases&lt;/strong&gt;: The dataset might have biases from its source or how it was labelled, potentially affecting performance in varied real-world situations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Looking ahead, future work will focus on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Cross-Lingual Training&lt;/strong&gt;: Making the framework work for emails in different languages using models like mBERT.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Bias Mitigation and External Validation&lt;/strong&gt;: Testing the model on real corporate datasets and using techniques to identify and correct biases from public datasets.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Generalizability&lt;/strong&gt;: Using transfer learning to help the model adapt to new email types, including regional threats and emerging tactics like AI-generated phishing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These steps are about making the model continuously better and adaptable to the ever-changing world of email threats.&lt;/p&gt;

&lt;p&gt;Ultimately, this research highlights the huge potential of using AI-driven solutions to enhance email security, helping to protect our digital communication channels from cyber threats.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>nlp</category>
      <category>springboot</category>
      <category>svc</category>
    </item>
    <item>
      <title>MySQL charset</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Sat, 31 Oct 2020 07:30:50 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/mysql-charset-11l7</link>
      <guid>https://dev.to/saboorhamedi/mysql-charset-11l7</guid>
      <description>&lt;p&gt;I don't know is it the correct place to ask this types of question? &lt;br&gt;
BTW, I have a problem with charset "utf8mb4" of MySQL I have built a website and everything is working fine except Arabic Language here is the case:&lt;br&gt;
I can update and insert new Arabic record on my table through PHP script, when I  open workbench or BDeaver I get this character "ØµØ¨ÙˆØ±" which is == "صبور", but on my  website I get the correct result, It sound like encrypt and decrypt process.&lt;br&gt;
Here is the opposite, when I update this record through MySQL I get my name  which is "صبور" but when I fetch this name on my website I get question mark  == "?????"&lt;br&gt;
Any help would be big help thank you in advance&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>php</category>
      <category>sql</category>
    </item>
    <item>
      <title>How to decrypt hash password</title>
      <dc:creator>saboor</dc:creator>
      <pubDate>Mon, 12 Oct 2020 09:12:05 +0000</pubDate>
      <link>https://dev.to/saboorhamedi/how-decrypt-hash-password-30cb</link>
      <guid>https://dev.to/saboorhamedi/how-decrypt-hash-password-30cb</guid>
      <description>&lt;p&gt;Hello everyone! this is my first time I'm posting here. I have a question,  Is it possible to decrypt hash password and fetch them all in table ?&lt;br&gt;
here is the example&lt;/p&gt;

</description>
      <category>php</category>
      <category>mysql</category>
      <category>sql</category>
      <category>mysqli</category>
    </item>
  </channel>
</rss>
