<?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: Cn Kk</title>
    <description>The latest articles on DEV Community by Cn Kk (@cn_kk_).</description>
    <link>https://dev.to/cn_kk_</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%2F4075307%2Faba14803-84b8-4165-b748-332c5fce84a8.jpg</url>
      <title>DEV Community: Cn Kk</title>
      <link>https://dev.to/cn_kk_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cn_kk_"/>
    <language>en</language>
    <item>
      <title>ShowDev: I Built a Client-Side Probability Engine for Global Lotteries 🎲📈</title>
      <dc:creator>Cn Kk</dc:creator>
      <pubDate>Fri, 14 Aug 2026 07:59:38 +0000</pubDate>
      <link>https://dev.to/cn_kk_/showdev-i-built-a-client-side-probability-engine-for-global-lotteries-2ao2</link>
      <guid>https://dev.to/cn_kk_/showdev-i-built-a-client-side-probability-engine-for-global-lotteries-2ao2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey DEV community!&lt;/strong&gt; 👋&lt;/p&gt;

&lt;p&gt;Have you ever looked at lottery numbers and thought, &lt;em&gt;"There has to be a better mathematical approach than just pure &lt;code&gt;Math.random()&lt;/code&gt;?"&lt;/em&gt; I did. Instead of leaving everything to blind chaos, I wanted to see what happens when you apply real statistical models to number generation. &lt;/p&gt;

&lt;p&gt;So, I built &lt;strong&gt;&lt;a href="https://www.smartlottogen.com" rel="noopener noreferrer"&gt;SmartLottoGen&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;It’s a completely free, browser-based probability engine that &lt;strong&gt;analyzes over 60 lottery games across 20+ countrie&lt;/strong&gt;s.&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%2F6c1i27e677u4ljthi967.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%2F6c1i27e677u4ljthi967.png" alt=" " width="800" height="1192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 Tech &amp;amp; Architecture (Privacy First)
&lt;/h3&gt;

&lt;p&gt;As developers, we know how intrusive the modern web can be. That's why I designed this tool to be &lt;strong&gt;100% client-side&lt;/strong&gt;. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero Tracking:&lt;/strong&gt; No databases storing user picks. No server-side processing for the algorithms. Everything happens instantly in the user's browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Geo-IP Routing:&lt;/strong&gt; It uses a simple IP fetch on load to automatically detect your country and present the relevant game pools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;i18n Support:&lt;/strong&gt; &lt;strong&gt;Fully localized into 14 languages&lt;/strong&gt;.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1zksgeaovi6sniy7hgdn.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%2F1zksgeaovi6sniy7hgdn.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🧠 The Math Behind It (The Fun Part)
&lt;/h3&gt;

&lt;p&gt;The core of the app isn't just generating random numbers; it allows users to choose between &lt;strong&gt;8 distinct mathematical algorithms&lt;/strong&gt; to build a rational strategy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bell Curve Optimization:&lt;/strong&gt; Calculates the standard deviation of all possible combination sums and only presents totals that fall on the peak of the Gaussian distribution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spatial Matrix:&lt;/strong&gt; Treats the ticket as a physical Euclidean grid, maximizing the physical distance between selected numbers to prevent visual clumping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Balanced Distribution:&lt;/strong&gt; Uses a simple &lt;code&gt;Modulo(2)&lt;/code&gt; algorithm to force combinations into a perfect 50/50 Odd/Even split (or the closest possible ratio based on the game format).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fibonacci Net:&lt;/strong&gt; Generates numbers using harmonic intervals inspired by the Golden Ratio (1.618) and prime number sets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anti-Seq Filter:&lt;/strong&gt; Specifically blocks consecutive series (like 12, 13, 14) from appearing in the output array.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F44qi54wib3xls2pvlkje.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%2F44qi54wib3xls2pvlkje.png" alt=" " width="799" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🎯 Check it out
&lt;/h3&gt;

&lt;p&gt;If you are interested in probability, statistics, or just want to see a clean client-side JS implementation, I'd love for you to try it out and break the algorithms! &lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://www.smartlottogen.com" rel="noopener noreferrer"&gt;Test the Engine Here: smartlottogen.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Let me know what you think of the UI and the math models in the comments! *&lt;/em&gt;💻✨&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>I built a 100% Client-Side PDF &amp; Media Tool using WASM (Zero Server Uploads)</title>
      <dc:creator>Cn Kk</dc:creator>
      <pubDate>Wed, 12 Aug 2026 22:14:59 +0000</pubDate>
      <link>https://dev.to/cn_kk_/i-built-a-100-client-side-pdf-media-tool-using-wasm-zero-server-uploads-bj2</link>
      <guid>https://dev.to/cn_kk_/i-built-a-100-client-side-pdf-media-tool-using-wasm-zero-server-uploads-bj2</guid>
      <description>&lt;p&gt;Hi everyone! 👋&lt;/p&gt;

&lt;p&gt;I was getting really frustrated with "free" PDF and image formatting tools that either put a massive watermark on your files, hit you with a paywall after two uses, or worse—force you to upload your highly sensitive documents to their remote servers. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So, I decided to build my own solution&lt;/strong&gt;: &lt;strong&gt;&lt;a href="https://www.nanoformatzero.com" rel="noopener noreferrer"&gt;NanoFormatZero&lt;/a&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffba494z56kk0ej539mbd.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%2Ffba494z56kk0ej539mbd.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's a completely free, serverless utility suite that runs entirely in your browser. &lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 &lt;strong&gt;How it works&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Instead of relying on a backend server, NanoFormatZero uses &lt;strong&gt;WebAssembly (WASM)&lt;/strong&gt; and Web Workers to do all the heavy lifting locally in your device's RAM. &lt;br&gt;
&lt;strong&gt;Your files literally never leave your computer.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzi7xonldpmts8goccqs.jpg" 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%2Fgzi7xonldpmts8goccqs.jpg" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ✨ &lt;strong&gt;What it can do&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;PDF Tools:&lt;/strong&gt; Compress PDFs by up to 50% without quality loss, merge/split documents, and use an AI-assisted redaction tool to permanently black out sensitive text.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Media Rescue:&lt;/strong&gt; Convert Apple's HEIC photos to JPG seamlessly, compress WebP, and run local background removal.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Privacy Shield:&lt;/strong&gt; Completely wipe hidden EXIF data and GPS coordinates from your photos before uploading them anywhere online.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are no subscriptions, no data collection, and absolutely no limits. I built this to solve my own problems, and I'm hoping it can help some of you too. &lt;/p&gt;

&lt;p&gt;I'd love for you to try it out and destroy some PDFs or images! Let me know what you think, any feedback on the UI or performance would be massively appreciated! 🚀&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
