<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Amol Kamble]]></title><description><![CDATA[Amol Kamble]]></description><link>https://ammyskamble.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 19:39:15 GMT</lastBuildDate><atom:link href="https://ammyskamble.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Sudoku Techniques Are Thinking Habits in Disguise]]></title><description><![CDATA[Most people describe Sudoku as a numbers game. It isn't — the digits are just labels; you could play it with nine colours or nine fruits. What Sudoku…]]></description><link>https://ammyskamble.hashnode.dev/sudoku-techniques-are-thinking-habits-in-disguise</link><guid isPermaLink="true">https://ammyskamble.hashnode.dev/sudoku-techniques-are-thinking-habits-in-disguise</guid><category><![CDATA[sudoku]]></category><category><![CDATA[logic]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[learning]]></category><dc:creator><![CDATA[Amol Kamble]]></dc:creator><pubDate>Mon, 30 Nov 2026 17:32:56 GMT</pubDate><content:encoded><![CDATA[<p>Most people describe Sudoku as a numbers game. It isn't — the digits are just labels; you could play it with nine colours or nine fruits. What Sudoku actually trains is a small set of reasoning moves, and the interesting part is that those moves have names. Once you learn the named techniques, you start noticing you use the same moves everywhere else: debugging code, planning a schedule, narrowing down why a payment failed.</p>
<p>Here are four techniques, and the habit each one builds.</p>
<h2>Hidden single: find the only place something can go</h2>
<p>A hidden single is a digit that can only fit in one cell of a row, column, or box — even though that cell still has several candidates written in it. Beginners miss these constantly because they look at cells ("what can go here?") instead of digits ("where can a 7 go in this box?").</p>
<p>The habit: <strong>flip the question.</strong> Instead of asking what a slot can accept, ask where a requirement can be satisfied. Half of troubleshooting works this way. Don't ask what this error could be — ask which component is the <em>only</em> one that could produce it.</p>
<h2>Naked pair: two locked options clear the room</h2>
<p>When two cells in the same unit hold exactly the same two candidates — say {3, 8} and {3, 8} — those two digits are spoken for. Neither cell is solved, yet you can delete 3 and 8 from every other cell in the unit, and that often cracks the puzzle open.</p>
<p>The habit: <strong>partial certainty is still usable.</strong> You don't need to know which of the two cells takes the 3 to know that nothing else in the row can. In planning terms: if two tasks must take the two remaining slots, every other task can stop competing for them — even before you decide the order.</p>
<h2>Pointing pair: let a small area constrain a long line</h2>
<p>If a digit inside a 3×3 box can only live in one row of that box, then it cannot appear anywhere else in that row, across the whole grid. A local observation deletes options nine cells away.</p>
<p>The habit: <strong>local constraints have remote consequences.</strong> This is the move people skip in everyday reasoning — they solve the immediate area and forget to propagate what they learned. Good reasoners propagate. Every time you confirm something in one place, ask what it rules out everywhere connected to it.</p>
<h2>X-Wing: think in patterns, not cells</h2>
<p>An X-Wing is two rows where a digit has the same two possible columns. Whichever way the digit lands, it covers both columns, so the digit can be removed from those columns in every other row. There is no single "aha" cell — the deduction lives in the rectangle as a whole.</p>
<p>The habit: <strong>hold a pattern without resolving it.</strong> You don't know which diagonal is real, and you don't need to. The conclusion follows from the shape, not the outcome. That's a genuinely advanced move — in code, in arguments, in decisions — and Sudoku lets you practise it on a 9×9 grid with instant feedback.</p>
<h2>Why this matters more than "brain training"</h2>
<p>Sudoku won't make sweeping promises about your brain, and it shouldn't. What it does offer is rarer: a closed world where these four moves are <em>provably</em> right or wrong, with feedback in seconds. Ten minutes a day in that world is deliberate practice in elimination, propagation, and pattern-holding — the exact moves open-world problems reward but rarely let you rehearse cleanly.</p>
<p>If you want to practise the techniques by name, I built <a href="https://netsudoku.com">NetSudoku</a> around that idea — its hints name the technique a step needs instead of just revealing the digit, so the feedback loop teaches the move, not just the answer.</p>
]]></content:encoded></item><item><title><![CDATA[Why Exam Portals Reject Your Photo Upload: Pixels, KB Bands and the Spec Sheet]]></title><description><![CDATA[Every application season, the same three upload errors eat an evening for lakhs of applicants: photo is too large, signature is too small, invalid…]]></description><link>https://ammyskamble.hashnode.dev/why-exam-portals-reject-your-photo-upload-pixels-kb-bands-and-the-spec-sheet</link><guid isPermaLink="true">https://ammyskamble.hashnode.dev/why-exam-portals-reject-your-photo-upload-pixels-kb-bands-and-the-spec-sheet</guid><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[image processing]]></category><category><![CDATA[ online tools]]></category><dc:creator><![CDATA[Amol Kamble]]></dc:creator><pubDate>Thu, 26 Nov 2026 04:32:20 GMT</pubDate><content:encoded><![CDATA[<p>Every application season, the same three upload errors eat an evening for lakhs of applicants: <em>photo is too large</em>, <em>signature is too small</em>, <em>invalid dimensions</em>. The rejections feel arbitrary. They aren't — every one of them is written down in the notification's spec table before the form ever opens. The trick is reading that table like an engineer instead of skimming it like a formality.</p>
<h2>A spec table is three separate tests</h2>
<p>Take a typical banking-exam specification:</p>
<table>
<thead>
<tr>
<th>Upload</th>
<th>Dimensions</th>
<th>File size</th>
<th>Format</th>
</tr>
</thead>
<tbody><tr>
<td>Photograph</td>
<td>200×230 px</td>
<td>20–50 KB</td>
<td>JPG</td>
</tr>
<tr>
<td>Signature</td>
<td>140×60 px</td>
<td>10–20 KB</td>
<td>JPG</td>
</tr>
<tr>
<td>Left thumb impression</td>
<td>240×240 px</td>
<td>20–50 KB</td>
<td>JPG</td>
</tr>
<tr>
<td>Handwritten declaration</td>
<td>800×400 px</td>
<td>50–100 KB</td>
<td>JPG</td>
</tr>
</tbody></table>
<p>The portal's validator runs three independent checks on each file:</p>
<ol>
<li><strong>Pixel dimensions, exactly.</strong> 200×230 is not "portrait orientation, roughly". A 207×240 photo fails even though it looks identical to you.</li>
<li><strong>File size inside a band — both edges.</strong> Over 50 KB fails. Under 20 KB <em>also</em> fails. The floor is the one that surprises people: an over-compressed, washed-out photo can be rejected for being too light.</li>
<li><strong>Format.</strong> A PNG renamed to .jpg is still a PNG inside, and the validator reads the file header, not the extension.</li>
</ol>
<p>Fail any one of the three and the whole upload bounces, usually with a message that doesn't tell you which test failed.</p>
<h2>Centimetres on paper, pixels on screen</h2>
<p>Older notifications specify sizes in centimetres — a photo of 3.5 × 4.5 cm, a signature box of 3.5 × 1.5 cm. The conversion the portal expects runs through print resolution: at 300 DPI, 3.5 cm ≈ 413 px and 4.5 cm ≈ 531 px. Scan a physical photo at the wrong DPI setting and you'll produce a file that's the right physical size and the wrong pixel size — test 1 failed again, for a reason that's invisible until you check the actual numbers.</p>
<h2>The live-capture twist</h2>
<p>Several major exams have quietly changed the game in the last two cycles: the photograph is no longer an upload at all. It's captured live through your webcam or phone camera during the application, precisely so that the file you submit is the person who shows up. The signature usually remains an upload — which makes the signature the one file you still fully control, and the one worth preparing carefully against the spec table.</p>
<h2>A pre-flight checklist that actually works</h2>
<ul>
<li>Read the spec table in the <em>current</em> notification, not last year's blog post — dimensions and bands change between cycles.</li>
<li>Check your finished file's real properties (dimensions in px, size in KB) before opening the form, not after the third rejection.</li>
<li>Keep the signature on white, in dark ink, signed the way you sign paper documents — a "signature" in capital letters is explicitly rejected by some banks.</li>
<li>Prepare every upload the notification lists, not just photo and signature — thumb impressions and handwritten declarations are separate files with separate bands.</li>
<li>If a tool prepares the file for you, it should work to the band, not just "compress" — and it should show you the final px and KB so you can verify them yourself. That's the standard I built <a href="https://signresize.in">SignResize</a> to: exact presets per exam, processed entirely in your browser, with the output size displayed before you download.</li>
</ul>
<p>Spec tables are boring reading. They're also the entire game: three tests, all published in advance, all passable on the first attempt once you know they're being run.</p>
]]></content:encoded></item><item><title><![CDATA[VLSM Explained: Plan Subnets of Different Sizes Without Wasting Addresses]]></title><description><![CDATA[Most networks do not grow in neat, equal pieces. One team has fifty people, another has a dozen, and a router-to-router link needs just two usable…]]></description><link>https://ammyskamble.hashnode.dev/vlsm-explained-plan-subnets-of-different-sizes-without-wasting-addresses</link><guid isPermaLink="true">https://ammyskamble.hashnode.dev/vlsm-explained-plan-subnets-of-different-sizes-without-wasting-addresses</guid><category><![CDATA[networking]]></category><category><![CDATA[VLSM]]></category><category><![CDATA[subnetting]]></category><category><![CDATA[Devops]]></category><dc:creator><![CDATA[Amol Kamble]]></dc:creator><pubDate>Mon, 23 Nov 2026 14:07:01 GMT</pubDate><content:encoded><![CDATA[<p>Most networks do not grow in neat, equal pieces. One team has fifty people, another has a dozen, and a router-to-router link needs just two usable addresses. Yet many beginners still carve a network into identical subnets, handing every group the same size block whether it needs it or not. That is where Variable Length Subnet Masking, or VLSM, earns its place.</p>
<h2>The problem with fixed-size subnetting</h2>
<p>Fixed-size subnetting is simple: pick one mask and apply it everywhere. If your largest group needs 50 hosts, you might split a /24 into four /26 subnets. Each /26 holds 64 addresses, so every group gets the same generous slice.</p>
<p>The trouble is that generosity is also waste. A group of twelve people does not become more productive because it owns 62 usable addresses it will never use. Those addresses are locked away, unavailable to anyone else, until the network is redesigned. In a small private network that may only be untidy. In a larger network, or one using scarce public addresses, it can mean running out of space while most of your addresses sit idle.</p>
<p>VLSM fixes this by letting each subnet use a different mask. Instead of one size for everyone, you size each block to the group that will live in it. The result is the same connectivity, with far less waste and much more room to grow.</p>
<h2>A worked example: 10.0.0.0/24 for four departments</h2>
<p>Imagine you have the network 10.0.0.0/24 — 256 addresses in total — and four requirements:</p>
<ul>
<li>Sales needs 50 hosts</li>
<li>Engineering needs 25 hosts</li>
<li>Ops needs 12 hosts</li>
<li>A point-to-point link needs 2 hosts</li>
</ul>
<p>Remember that every subnet loses two addresses: the network address itself and the broadcast address. So a group needing 50 hosts needs a block of at least 52 addresses, which means the next power of two up: 64 addresses, a /26. A group needing 25 hosts needs at least 27 addresses, so the next power of two is 32, a /27. The same logic gives Ops a /28 (16 addresses) and the point-to-point link a /30 (4 addresses).</p>
<p>Here is the finished plan:</p>
<table>
<thead>
<tr>
<th>Department</th>
<th>Network</th>
<th>Mask</th>
<th>Host range</th>
<th>Broadcast</th>
</tr>
</thead>
<tbody><tr>
<td>Sales</td>
<td>10.0.0.0/26</td>
<td>255.255.255.192</td>
<td>10.0.0.1 – 10.0.0.62</td>
<td>10.0.0.63</td>
</tr>
<tr>
<td>Engineering</td>
<td>10.0.0.64/27</td>
<td>255.255.255.224</td>
<td>10.0.0.65 – 10.0.0.94</td>
<td>10.0.0.95</td>
</tr>
<tr>
<td>Ops</td>
<td>10.0.0.96/28</td>
<td>255.255.255.240</td>
<td>10.0.0.97 – 10.0.0.110</td>
<td>10.0.0.111</td>
</tr>
<tr>
<td>Point-to-point link</td>
<td>10.0.0.112/30</td>
<td>255.255.255.252</td>
<td>10.0.0.113 – 10.0.0.114</td>
<td>10.0.0.115</td>
</tr>
</tbody></table>
<p>Notice how each block starts exactly where the previous one ends. Sales uses 10.0.0.0 to 10.0.0.63, Engineering takes the next 32 addresses, Ops the next 16, and the link the next 4. Nothing overlaps, and nothing is left in a gap between blocks.</p>
<p>If you want to check your own numbers before you commit them to a router, <a href="https://devsubnet.com">this VLSM calculator</a> is a handy way to do it. It runs fully in the browser, so you can test different host counts and see the resulting subnets, masks and ranges instantly.</p>
<h2>The golden rule: largest first, aligned to the boundary</h2>
<p>There is one rule that makes VLSM work, and breaking it is the most common beginner mistake: always allocate the largest subnet first.</p>
<p>Start with Sales and its /26. Because a /26 block holds 64 addresses, it must start on a multiple of 64 — in this case, 0. Then take Engineering's /27, which must start on a multiple of 32, so 64 works. Ops needs a /28, which must start on a multiple of 16, so 96 works. Finally the /30 must start on a multiple of 4, so 112 works.</p>
<p>If you allocated in the opposite order, you would quickly paint yourself into a corner. A small block placed at the start of the range can split the space so that a later, larger block has no aligned starting point left. Largest first keeps every block aligned to its own size boundary, and alignment is what keeps the plan clean and routable.</p>
<p>A useful habit is to leave a little headroom in each estimate. If Sales expects to grow from 50 to 55 hosts, a /26 still covers it, but if it might reach 70, you need a /25. Size for the next year or two, not just for today, and write the expected growth next to each requirement before you start calculating.</p>
<h2>How much do you actually save?</h2>
<p>Compare the two approaches on the same 10.0.0.0/24.</p>
<p>With fixed-size subnetting, four /26 subnets use all 256 addresses: 4 x 64 = 256. Sales is happy, but Engineering is given 62 usable addresses for 25 hosts, Ops gets 62 for 12 hosts, and the point-to-point link gets 62 for just 2 hosts. That is 37 + 50 + 60 = 147 usable addresses handed out to groups that do not need them, and zero addresses left for anything new.</p>
<p>With VLSM, the four subnets use 64 + 32 + 16 + 4 = 116 addresses. Everything from 10.0.0.116 onwards — 140 addresses — is still free. That is room for another department, a guest network, a lab, or future growth, without touching the existing subnets or renumbering anything.</p>
<h2>Where VLSM matters most</h2>
<p>You will meet VLSM everywhere addresses are precious or networks are uneven: enterprise LANs with departments of very different sizes, branch offices with a handful of users, data-centre segments, and point-to-point WAN links, where a /30 is enough for the link and larger blocks go where the users actually are.</p>
<p>It also matters for certification and interviews. Being able to look at a list of host requirements, pick the right mask for each, and lay the blocks out in order, largest first, is a practical skill rather than a trick question. The table above is a good pattern to practise with: change the host counts, redo the masks, and check that your blocks still line up.</p>
<h2>A simple workflow to take away</h2>
<ol>
<li>List every group and how many hosts it needs, including growth.</li>
<li>For each group, add two (network and broadcast) and round up to the next power of two to find the block size and mask.</li>
<li>Sort the groups from largest to smallest.</li>
<li>Allocate from the start of the range, checking that each block starts on a multiple of its size.</li>
<li>Record the network, mask, host range and broadcast for every subnet, and note what is left free.</li>
</ol>
<p>Subnetting does not have to mean wasting addresses. Match the block to the need, allocate largest first, and keep everything aligned — and a single /24 can comfortably hold four very different groups with room to spare.</p>
]]></content:encoded></item></channel></rss>