<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rohit Mangale on Medium]]></title>
        <description><![CDATA[Stories by Rohit Mangale on Medium]]></description>
        <link>https://medium.com/@rohitmangale010?source=rss-8b3e8997eed5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DiAchM1G5hd-1eSQ</url>
            <title>Stories by Rohit Mangale on Medium</title>
            <link>https://medium.com/@rohitmangale010?source=rss-8b3e8997eed5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:30:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohitmangale010/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building DeHire: A Decentralized Freelance Marketplace on Ethereum]]></title>
            <link>https://medium.com/@rohitmangale010/building-dehire-a-decentralized-freelance-marketplace-on-ethereum-69cd1eb84a43?source=rss-8b3e8997eed5------2</link>
            <guid isPermaLink="false">https://medium.com/p/69cd1eb84a43</guid>
            <category><![CDATA[web3j]]></category>
            <category><![CDATA[ganache]]></category>
            <category><![CDATA[truffle]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Rohit Mangale]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 08:53:39 GMT</pubDate>
            <atom:updated>2025-11-30T08:53:39.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n3CgS3lbEpTSH1fjyoN5Yw.png" /></figure><h3>How we eliminated the middleman and built a trustless platform connecting freelancers and clients</h3><p><em>Have you ever lost 20% of your earnings to platform fees? Waited weeks for payment disputes to resolve? I have — and that’s why we built DeHire.</em></p><h3>The Problem with Traditional Platforms</h3><p>Traditional freelance platforms like Upwork and Fiverr have transformed remote work, but they extract a steep price:</p><ul><li><strong>High commission fees</strong>: Often 20% or more of your earnings</li><li><strong>Payment delays</strong>: Wait days or weeks for escrow releases</li><li><strong>Lengthy disputes</strong>: Resolution can drag on indefinitely</li><li><strong>Centralized control</strong>: Your data, your funds, their rules</li></ul><p>As someone who’s worked on both sides of the freelance economy, I’ve felt these pain points deeply. So we asked ourselves: <em>What if we could eliminate the middleman entirely?</em></p><h3>Enter DeHire: Trust Through Code</h3><p>DeHire is a decentralized freelance marketplace running entirely on the Ethereum blockchain. Instead of trusting a company, you trust transparent, immutable smart contracts.</p><p><strong>What makes it different:</strong></p><ul><li><strong>Instant payments</strong> — No waiting for escrow or bank transfers</li><li><strong>Minimal fees</strong> — Only network gas fees, not platform commissions</li><li><strong>Transparent disputes</strong> — All transactions and agreements are on-chain</li><li><strong>Automated trust</strong> — Smart contracts enforce rules without human intervention</li></ul><h3>The Tech Stack: Battle-Tested Tools</h3><p>We chose technologies that balance developer experience with production reliability.</p><h3>Frontend</h3><ul><li><strong>React 18 + Vite</strong> for lightning-fast development with instant hot reloading</li><li><strong>Tailwind CSS</strong> for rapid, responsive UI development</li><li><strong>Ethers.js v5</strong> for seamless blockchain interactions</li><li><strong>React Router</strong> for smooth client-side navigation</li></ul><h3>Blockchain</h3><ul><li><strong>Solidity 0.8.17</strong> for secure smart contract development</li><li><strong>Truffle</strong> for compilation, testing, and deployment</li><li><strong>Ganache</strong> for local blockchain testing</li><li><strong>MetaMask</strong> for wallet integration</li></ul><h3>Infrastructure</h3><ul><li><strong>Docker &amp; Docker Compose</strong> for containerized deployment</li><li><strong>Nginx</strong> for production-ready static file serving</li></ul><h3>Why These Choices?</h3><p><strong>React + Vite</strong> gives us near-instant dev server starts thanks to esbuild-powered bundling. When you’re iterating on Web3 UX, every second of feedback time matters.</p><p><strong>Ethers.js over Web3.js</strong> provides a cleaner, more intuitive API. Even in JavaScript projects, its TypeScript support gives us better IDE autocomplete and catches errors before they reach users.</p><p><strong>Truffle over Hardhat</strong> offers a more straightforward migration system for our use case, with seamless Ganache integration for local testing.</p><h3>Smart Contract Architecture: Where the Magic Happens</h3><h3>Core Data Structures</h3><p>Our platform revolves around two main entities:</p><pre>struct Job {<br>    address jobPoster;<br>    string title;<br>    string shortDescription;<br>    string detailedDescription;<br>    uint256 budget;<br>    uint256 deadline;<br>    string image;<br>    string workUrl;<br>    bool isCompleted;<br>    bool isApproved;<br>    address[] applicants;<br>    uint256[] applicationIndexes;<br>}</pre><pre>struct Application {<br>    address applicant;<br>    string name;<br>    string previousWorkLink;<br>    string projectLink;<br>    bool isReviewed;<br>    bool isAccepted;<br>}</pre><h3>Critical Design Decisions</h3><p><strong>1. Separating Jobs and Applications</strong></p><p>We designed jobs and applications as separate structs to enable competitive bidding. This architecture allows:</p><ul><li>Clients to review multiple qualified candidates</li><li>Freelancers to track application status across jobs</li><li>Efficient querying of all applications for a specific job</li></ul><p><strong>2. Hybrid Storage Strategy</strong></p><p>Not everything belongs on-chain. We strategically split data:</p><ul><li><strong>On-chain</strong>: Job budgets, deadlines, acceptance status, payment records</li><li><strong>Off-chain (localStorage)</strong>: User profiles, work submissions, detailed feedback</li></ul><p>This hybrid approach keeps gas costs reasonable while maintaining transparency where it matters most. Storing everything on-chain would make transactions prohibitively expensive for users.</p><p><strong>3. Instant Payment Flow</strong></p><p>Our payment mechanism was the most critical design decision:</p><pre>function reviewWork(<br>    uint256 _jobId,<br>    uint256 _applicationIndex,<br>    bool _isAccepted,<br>    string memory _workUrl<br>) public {<br>    // ... validation checks ...<br>    <br>    if (_isAccepted) {<br>        // Transfer payment immediately upon acceptance<br>        (bool sent, ) = payable(application.applicant).call{<br>            value: jobs[_jobId].budget<br>        }(&quot;&quot;);<br>        require(sent, &quot;Payment failed&quot;);<br>    }<br>}</pre><p><strong>Why immediate payment instead of escrow?</strong></p><p>We deliberately eliminated the traditional escrow model. Once a client accepts work, payment is instant and irreversible. This creates powerful incentives:</p><ul><li><strong>Freelancers</strong> are motivated to deliver exceptional work</li><li><strong>Clients</strong> are motivated to review promptly and thoroughly</li></ul><p>It’s a trust-building mechanism enforced by code, not committees.</p><p><strong>4. Minimum Budget Requirement</strong></p><p>We enforce a 0.001 ETH minimum budget to prevent spam while keeping the barrier low enough for legitimate small projects.</p><h3>Frontend Architecture: Crafting the User Experience</h3><h3>State Management</h3><p>We opted for simplicity over complexity:</p><ul><li><strong>React Context</strong> for global state (wallet address, connection status)</li><li><strong>Local component state</strong> for UI-specific data</li><li><strong>localStorage</strong> for persistent profiles and work submissions</li></ul><p>We deliberately avoided Redux. Our state needs didn’t justify the added complexity, and keeping things simple made onboarding new developers easier.</p><h3>Component Organization</h3><pre>src/<br>├── components/          # Reusable UI components<br>│   ├── Navbar.jsx<br>│   ├── JobCard.jsx<br>│   └── JobCard_FC.jsx<br>├── pages/              # Route-level components<br>│   ├── Home.jsx<br>│   ├── FindJob.jsx<br>│   ├── PostJob.jsx<br>│   └── Profile.jsx<br>├── config/             # Configuration<br>│   └── web3.js<br>└── Web3/               # Contract ABIs<br>    └── FreelanceMarketplace.json</pre><h3>The Real-Time Update Challenge</h3><p>Synchronizing UI state with blockchain events and localStorage proved surprisingly complex. We implemented a multi-layered approach:</p><p><strong>1. Custom Event System</strong></p><pre>// Dispatch custom events when work is submitted<br>window.dispatchEvent(new CustomEvent(&#39;workSubmitted&#39;, {<br>    detail: { jobId: job.jobId, applicant: account }<br>}));</pre><pre>// Listen for events across components<br>useEffect(() =&gt; {<br>    const handleWorkSubmitted = () =&gt; {<br>        fetchJobs(); // Refresh job list<br>    };<br>    <br>    window.addEventListener(&#39;workSubmitted&#39;, handleWorkSubmitted);<br>    return () =&gt; window.removeEventListener(&#39;workSubmitted&#39;, handleWorkSubmitted);<br>}, []);</pre><p><strong>2. Strategic Polling</strong></p><p>For critical updates like feedback, we added lightweight polling:</p><pre>useEffect(() =&gt; {<br>    const intervalId = setInterval(loadProfileData, 3000);<br>    return () =&gt; clearInterval(intervalId);<br>}, [account, loadProfileData]);</pre><p><strong>3. Cross-Tab Synchronization</strong></p><p>To keep multiple browser tabs in sync:</p><pre>window.addEventListener(&#39;storage&#39;, (e) =&gt; {<br>    if (e.key &amp;&amp; e.key.startsWith(&#39;submittedWork_&#39;)) {<br>        fetchJobs(); // Refresh when localStorage changes<br>    }<br>});</pre><h3>The Complete User Journey</h3><h3>For Clients: Posting a Job</h3><ol><li><strong>Connect wallet</strong> — MetaMask integration authenticates your identity</li><li><strong>Create job posting</strong> — Title, description, budget, and deadline</li><li><strong>Submit transaction</strong> — Pay the budget amount to the smart contract</li><li><strong>Review applications</strong> — Evaluate freelancer profiles and proposals</li><li><strong>Accept applicant</strong> — Choose the best candidate</li><li><strong>Review completed work</strong> — Accept or request revisions</li><li><strong>Automatic payment</strong> — Funds transfer instantly upon approval</li></ol><h3>For Freelancers: Finding Work</h3><ol><li><strong>Connect wallet</strong> — Your blockchain address is your identity</li><li><strong>Browse jobs</strong> — Filter by budget, deadline, and category</li><li><strong>Submit application</strong> — Showcase your portfolio and proposal</li><li><strong>Get accepted</strong> — Receive notification when chosen</li><li><strong>Submit deliverables</strong> — Upload work through the platform</li><li><strong>Instant payment</strong> — Get paid immediately when work is approved</li></ol><h3>Lessons Learned and Future Improvements</h3><h3>What Worked Well</h3><p><strong>Smart contract simplicity</strong>: Keeping our contract focused on core functionality made it easier to audit and trust.</p><p><strong>Hybrid storage</strong>: Balancing on-chain and off-chain data kept costs manageable without sacrificing transparency.</p><p><strong>Instant payments</strong>: Eliminating escrow simplified the user experience and created better incentives.</p><h3>What We’d Do Differently</h3><p><strong>Gas optimization</strong>: Some functions could be refactored to reduce transaction costs further.</p><p><strong>Decentralized storage</strong>: Moving off-chain data to IPFS would make the platform truly decentralized.</p><p><strong>Dispute resolution</strong>: Adding an optional arbitration mechanism for contested work would increase trust.</p><p><strong>Multi-signature wallets</strong>: Implementing milestone-based payments with multi-sig could protect both parties better.</p><p><em>Have questions about building on Ethereum or implementing Web3 features? Drop a comment below. I’d love to hear your thoughts on decentralized marketplaces.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69cd1eb84a43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Histogram Equalization Techniques for Image Enhancement]]></title>
            <link>https://medium.com/@rohitmangale010/histogram-equalization-techniques-for-image-enhancement-e828651fdcd2?source=rss-8b3e8997eed5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e828651fdcd2</guid>
            <category><![CDATA[image-analysis]]></category>
            <category><![CDATA[image-enhancement]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[contrast-adjustment]]></category>
            <category><![CDATA[histogram-equalization]]></category>
            <dc:creator><![CDATA[Rohit Mangale]]></dc:creator>
            <pubDate>Mon, 11 Nov 2024 07:17:46 GMT</pubDate>
            <atom:updated>2024-11-11T07:17:46.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Image enhancement is a cornerstone of digital image processing, playing a vital role in making images more interpretable and visually appealing. When images suffer from poor contrast, details may be lost or obscured, impacting everything from medical diagnostics to photo editing. One effective method for improving image contrast is histogram equalization — a process that redistributes the intensity values of an image to enhance its overall visibility. While traditional techniques offer a broad-based solution, modern methods like Adaptive Histogram Equalization (AHE), Contrast Limited Adaptive Histogram Equalization (CLAHE), Dual Sub-image Histogram Equalization (DSIHE), and Dynamic Histogram Equalization (DHE) are designed to overcome limitations and bring new possibilities to image clarity.</p><p>In this blog, we’ll explore these techniques, their impact on image enhancement, and their applications across diverse fields such as medical imaging, remote sensing, and digital art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GN0JAzGf31W0D2zpbkayig.jpeg" /></figure><h3>Understanding Histogram Equalization Techniques</h3><h4>What is Histogram Equalization?</h4><p>Histogram equalization is a method of enhancing an image’s contrast by spreading out the most frequent intensity values. Essentially, it adjusts the brightness levels within an image to make dark areas brighter and light areas darker, creating a more balanced distribution of pixel intensities. The goal is to improve visibility and detail in areas that may otherwise be poorly lit or washed out.</p><h4>Limitations of Global Histogram Equalization (GHE)</h4><p>While effective for global contrast enhancement, GHE applies the same transformation to the entire image, leading to potential problems such as:</p><ul><li><strong>Over-Enhancement:</strong> In high-contrast areas, GHE may exaggerate intensity differences.</li><li><strong>Brightness Distortion:</strong> By altering pixel intensities uniformly, the overall brightness of an image can become unbalanced.</li></ul><p>To address these limitations, advanced methods have been developed, each designed to improve local contrast, maintain brightness, and avoid noise amplification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Inn7kwOnZV6lVdIzMxI7ig.jpeg" /></figure><h3>Advanced Techniques for Histogram Equalization</h3><h4>1. Adaptive Histogram Equalization (AHE)</h4><p>AHE breaks an image into smaller regions called tiles and applies histogram equalization locally. This approach enhances contrast in each region, making it particularly useful for images with uneven lighting. However, AHE can introduce noise in areas with minimal variation.</p><ul><li><strong>Application Example:</strong> AHE is often used to enhance X-ray and other medical images, revealing finer details that would otherwise be obscured.</li></ul><h4>2. Contrast Limited Adaptive Histogram Equalization (CLAHE)</h4><p>An improvement over AHE, CLAHE limits the enhancement applied to each tile to reduce noise and prevent over-amplification of contrast. By capping the histogram distribution, CLAHE provides a balanced enhancement, preserving important image details without overwhelming noise.</p><ul><li><strong>Application Example:</strong> CLAHE is widely used in low-light photography and in medical imaging to enhance visibility without introducing excessive noise artifacts.</li></ul><h4>3. Dual Sub-image Histogram Equalization (DSIHE)</h4><p>DSIHE divides an image’s histogram into two sub-histograms based on the median intensity, then applies histogram equalization to each sub-histogram independently. This technique emphasizes preserving brightness while improving contrast, making it ideal for images with both bright and dark regions.</p><ul><li><strong>Application Example:</strong> DSIHE is effective for enhancing images that have a broad range of intensity levels, such as night scenes or high-contrast photos.</li></ul><h4>4. Dynamic Histogram Equalization (DHE)</h4><p>DHE segments the histogram into several smaller parts and equalizes each segment individually. This technique ensures that both high-contrast and low-contrast regions are enhanced appropriately, leading to a more natural-looking result compared to global equalization methods.</p><ul><li><strong>Application Example:</strong> DHE is particularly useful in enhancing natural landscapes or photographs where contrast varies across different regions.</li></ul><h3>Impact of Advanced Histogram Equalization Techniques</h3><h4>Improving Image Contrast</h4><p>By selectively enhancing different regions of an image, advanced histogram equalization techniques provide superior contrast improvement compared to traditional GHE. This is crucial in applications like:</p><ul><li><strong>Medical Imaging:</strong> Techniques like CLAHE and AHE reveal fine details in radiographic images, aiding in diagnosis.</li><li><strong>Remote Sensing:</strong> DSIHE improves visibility in satellite imagery, making it easier to distinguish between different land features.</li><li><strong>Photography and Art:</strong> CLAHE and DHE enhance photos taken in challenging lighting conditions, creating more balanced and visually appealing images.</li></ul><h4>Noise Reduction and Contrast Management</h4><p>While traditional equalization often amplifies noise, CLAHE and DHE excel at maintaining a balance between contrast enhancement and noise suppression. This makes them suitable for images captured in low-light conditions or noisy environments.</p><h3>Comparing Techniques: Visual Insights</h3><p>To illustrate the impact of these methods, consider an example image with poor contrast:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*YnrXQlQGx0aGYD0S8BzeMw.png" /></figure><ul><li><strong>Original Image:</strong> Displays washed-out details and uneven lighting.</li><li><strong>AHE Enhanced Image:</strong> Noticeable improvement in local contrast but with slight noise amplification.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*MIzoo1gDHGuFH6cLoIEZ3g.png" /></figure><ul><li><strong>CLAHE Enhanced Image:</strong> Balanced contrast enhancement with minimal noise, making it ideal for diverse applications</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*uiTVlicjzsZs8msG2DvPhQ.png" /></figure><ul><li><strong>DSIHE Enhanced Image:</strong> Preserves both shadows and highlights, providing a natural contrast boost.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*NPZeJXo1kekwQ6KL6Q_6hw.png" /></figure><ul><li><strong>DHE Enhanced Image:</strong> Offers well-balanced contrast without exaggerating specific regions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*cHoU4Ncrp6PRDKL1CPqi8g.png" /></figure><p><em>Visuals of each technique’s output and corresponding histograms can be shown here to reinforce the explanations.</em></p><h3>Conclusion</h3><p>Histogram equalization techniques offer powerful tools for enhancing image contrast. While GHE remains a classic method, advanced techniques like CLAHE, AHE, DSIHE, and DHE open the door to more refined and adaptable image enhancements. Whether applied in medical imaging, digital photography, or other fields, choosing the right technique depends on the specific needs of contrast management, noise reduction, and brightness preservation.</p><p>As technology evolves, these techniques will continue to adapt, providing even more sophisticated ways to tackle visual challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e828651fdcd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>