<?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 Zamanghostcoder on Medium]]></title>
        <description><![CDATA[Stories by Zamanghostcoder on Medium]]></description>
        <link>https://medium.com/@zamanghostmall?source=rss-6ba90fefa7ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KhuItV1K0VoyUF6a</url>
            <title>Stories by Zamanghostcoder on Medium</title>
            <link>https://medium.com/@zamanghostmall?source=rss-6ba90fefa7ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:34:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zamanghostmall/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[Cheat codes of life that will put you 7 years ahead of 90% of people]]></title>
            <link>https://medium.com/@zamanghostmall/cheat-codes-of-life-that-will-put-you-7-years-ahead-of-90-of-people-6c4af399a7c1?source=rss-6ba90fefa7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4af399a7c1</guid>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Zamanghostcoder]]></dc:creator>
            <pubDate>Tue, 13 May 2025 09:14:47 GMT</pubDate>
            <atom:updated>2025-05-13T09:14:47.701Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>The less you care about the opinion of others, the more powerful you become.</strong></li><li><strong>Smiling is modern-day magic. Many opportunities will come from the energy you radiate.</strong></li></ol><p>3. <strong>When you know what you want, have a plan to achieve it, and do the work consistently, nothing will stop you.</strong></p><p>4. <strong>When you get loads of rejections, you stop fearing it. This makes you unstoppable!</strong></p><p>5. <strong>Watch how people treat service workers. It’ll show you their true colors.</strong></p><p>6. <strong>Seeking out adversity will help us grow more than being in a comfort zone.</strong></p><p>7. <strong>Knowing what you want in life gets you far more than if you didn’t.</strong></p><p>8. <strong>Investing in yourself isn’t selfish. It’s the most worthwhile thing you can do.</strong></p><p>9. <strong>The power of focusing on one thing at a time will change your life.</strong></p><p>10. <strong>The sooner you stop lying to yourself, the quicker you’ll be unstoppable.</strong></p><p>11. <strong>Less friends = deeper relationships.</strong></p><p>12. <strong>People who accept suffering achieve greatness. Those who avoid it go nowhere.</strong></p><p>13. <strong>It’s not what happens, it’s how you react that matters.</strong></p><p>14. <strong>Your life can change tomorrow, if you make the choice to change it.</strong></p><p>15. <strong>The more sacrifices you are willing to make, the more successful you’ll become.</strong></p><p>16. <strong>If you believe in yourself as much as you do the people you admire, you’ll be unstoppable.</strong></p><p>17. <strong>To be great at anything, you must be consistently good for long enough.</strong></p><p>18. <strong>You are what you say to yourself — change the words you use.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4af399a7c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Error Solving: A Developer’s Guide]]></title>
            <link>https://medium.com/@zamanghostmall/python-error-solving-a-developers-guide-5269bd3d6126?source=rss-6ba90fefa7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/5269bd3d6126</guid>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[codi̇ng]]></category>
            <category><![CDATA[read]]></category>
            <category><![CDATA[basics-of-programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Zamanghostcoder]]></dc:creator>
            <pubDate>Wed, 07 May 2025 09:08:59 GMT</pubDate>
            <atom:updated>2025-05-07T09:08:59.484Z</atom:updated>
            <content:encoded><![CDATA[<p>That’s a solid foundation for error handling in Python! You’ve covered the essentials of try-except blocks, specific and general exceptions, logging, and the proactive measure of code reviews.</p><p>To further enrich your blog post and offer developers a more comprehensive approach to error solving, consider adding these points:</p><p><strong>1. Understand the Error Message and Stack Trace Thoroughly:</strong></p><ul><li><strong>Show, Don’t Just Tell:</strong> Emphasize the importance of carefully reading the <em>entire</em> error message. Often, the message itself provides crucial clues about the nature of the problem (e.g., NameError: name &#39;my_variable&#39; is not defined).</li><li><strong>Demystify the Stack Trace:</strong> Explain what a stack trace represents (the sequence of function calls leading to the error). Highlight how to identify the exact line of code where the error occurred and the context of the error. Tools like debuggers can help navigate this.</li><li><strong>Example:</strong> Provide a simple code snippet that generates an error and then dissect the resulting error message and stack trace, pointing out the key information.</li></ul><p><strong>2. Reproduce the Error in Isolation:</strong></p><ul><li><strong>Simplify the Scenario:</strong> Encourage developers to try and reproduce the error in a minimal, isolated code snippet. This helps to eliminate external factors and pinpoint the root cause more effectively.</li><li><strong>Test Cases:</strong> Suggest writing small test cases that specifically trigger the error. This not only aids in debugging but also helps in verifying the fix later.</li></ul><p><strong>3. Leverage Debugging Tools Effectively:</strong></p><ul><li><strong>Introduce the Power of Debuggers:</strong> Briefly explain the benefits of using debuggers (e.g., pdb in Python, or IDE-integrated debuggers). Show how to set breakpoints, step through code, inspect variables, and evaluate expressions.</li><li><strong>Print Statements as a Last Resort (or Initial Step):</strong> While debuggers are powerful, also mention the utility of strategically placed print() statements for quickly inspecting variable values or the flow of execution, especially for simpler issues or when a debugger isn&#39;t readily available.</li></ul><p><strong>4. Utilize Online Resources and Communities:</strong></p><ul><li><strong>Search Engines are Your Friend:</strong> Explicitly mention using search engines (like Google, DuckDuckGo) with the exact error message. Often, others have encountered and solved the same problem.</li><li><strong>Engage with Online Communities:</strong> Highlight platforms like Stack Overflow, Reddit (Python subreddits), and relevant forums where developers can ask for help, providing clear and concise information about their problem (including code and error messages).</li><li><strong>Official Documentation:</strong> Remind developers to consult the official Python documentation and library documentation for insights into how functions and modules are intended to be used.</li></ul><p><strong>5. Implement Robust Input Validation and Data Sanitization:</strong></p><ul><li><strong>Prevention is Better Than Cure:</strong> Emphasize that many errors can be avoided by validating user inputs and sanitizing data before processing it. This can prevent issues like ValueError, TypeError, or even security vulnerabilities.</li><li><strong>Examples:</strong> Show how to use conditional statements, type checking, and dedicated validation libraries (like pydantic or cerberus) to ensure data integrity.</li></ul><p><strong>6. Consider “Fail Fast” Principles:</strong></p><ul><li><strong>Early Detection:</strong> Explain the concept of “failing fast,” which means raising errors as soon as an unexpected condition is detected. This can prevent cascading errors and make debugging easier.</li><li><strong>Assertions:</strong> Introduce the assert statement as a way to check for conditions that should always be true in your code. While not for handling expected errors, they are valuable for catching internal inconsistencies during development.</li></ul><p><strong>7. Write Meaningful Error Messages (When Raising Custom Exceptions):</strong></p><ul><li><strong>Clarity for Others (and Future You):</strong> If your code raises custom exceptions, stress the importance of providing clear and informative error messages that help in understanding the context and cause of the error.</li></ul><p><strong>8. Post-Mortem Analysis and Learning:</strong></p><ul><li><strong>Reflect and Improve:</strong> Encourage developers to analyze recurring or complex errors after they’ve been resolved. What were the underlying causes? Could the code be structured differently to prevent such errors in the future? This learning process is crucial for continuous improvement.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5269bd3d6126" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most common Menu Errors of Odoo CRM I faced]]></title>
            <link>https://medium.com/@zamanghostmall/most-common-menu-errors-of-odoo-crm-i-faced-41f5a58bbdd0?source=rss-6ba90fefa7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/41f5a58bbdd0</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[csv-import]]></category>
            <dc:creator><![CDATA[Zamanghostcoder]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 11:45:00 GMT</pubDate>
            <atom:updated>2025-04-23T11:45:00.935Z</atom:updated>
            <content:encoded><![CDATA[<p>Error Descriptions:</p><p>The menu of Employee_Role_Management that is a custom module and at the period of execution it throw and error which come from server side. As a part of Odoo CRM the server couldn’t matche the minimum requirements of menu bar functionality and its throws it as an error.</p><p>So I ask chatGpt for the error why it occurs and as a result it shows some options that we can measure as a debug section of code.</p><p><strong>Error: </strong>ValueError: External ID not found</p><p>Reason: <strong>Odoo can’t find the action</strong> in the menuitem.</p><p>Action that taken: For fixing this to get out of the error:</p><ol><li>I have to make a action file which generated and inside of it made another action record which made me fix the error.</li><li>The flow is something like this menuitem → action → model flow works like this</li><li>Not only this, I have to make several models file to be execute the menu working.</li></ol><p>Additional Error could occurred:</p><p>Error: AccessError: You do not have the permission</p><p>Action that I took: the csv file often misspelled and could not find the values and then it shows the access error that it can’t access the file.</p><p>And I generate the file correctly and then it works.</p><p>The file is like this: id,name,model_id:id,group_id,perm_read,perm_write,perm_create,perm_unlink</p><p>Access_hr_country,access_hr_country,model_hr_country,,1,1,1,1</p><p>Another <strong>syntax mistake in XML file</strong>, that throws an error message like this lxml.etree.XMLSyntaxError:<br>And chatgpt says, after checking this the error will be vanished:</p><p>1.Unclosed or mismatched tags</p><p>2.Wrong nesting</p><p>3.Typos in tag names</p><p>4.Invalid characters</p><p>TypeError, Uncaught ReferenceError</p><p>Fixed by this:</p><p>&lt;template id=”assets_backend” name=”Custom JS” inherit_id=”web.assets_backend”&gt;</p><p>&lt;xpath expr=”.” position=”inside”&gt;</p><p>&lt;script type=”text/javascript” src=”/your_module_name/static/src/js/your_script.js”/&gt;</p><p>&lt;/xpath&gt;</p><p>&lt;/template&gt;</p><p>ImportError, AttributeError, model not found</p><p>Solution: from . import models</p><p>AttributeError:</p><p>self.env[‘hr.country’].create({‘name’: ‘Ethiopia’})</p><p># AttributeError: ‘Model’ object has no attribute ‘create’ (maybe model isn’t loaded)</p><p>fix:</p><p>1.Check if your model is defined and loaded correctly.</p><p>2.Make sure class names and field names match.<br>3.Recheck the spelling (self.env[‘hr.county’] instead of hr.country is a common typo!).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41f5a58bbdd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free Code Generation Tools for PyCharm Community Edition]]></title>
            <link>https://medium.com/@zamanghostmall/free-code-generation-tools-for-pycharm-community-edition-e88db4a563a6?source=rss-6ba90fefa7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88db4a563a6</guid>
            <category><![CDATA[pycharm]]></category>
            <category><![CDATA[autocomplete]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Zamanghostcoder]]></dc:creator>
            <pubDate>Tue, 22 Apr 2025 10:22:15 GMT</pubDate>
            <atom:updated>2025-04-22T10:22:15.706Z</atom:updated>
            <content:encoded><![CDATA[<p>here are several free tools available that can generate auto code in Python. Here are a few options:</p><ul><li><strong>Cog</strong>: A simple code generation tool written in Python that can be used to generate code from a schema description file. It’s free and open-source.</li><li><strong>GitHub Copilot</strong>: A top AI Python code generator tool that helps developers craft high-quality code faster. It’s free for open-source projects and offers a free trial for commercial projects.</li><li><strong>CodePal</strong>: A comprehensive platform offering various coding helpers and tools to assist developers, including code generation. It offers a free trial and a free plan for limited usage.</li><li><strong>Python Code Generator on effbot.org</strong>: A Python code generator that can be used to generate code from a class definition. It’s free and open-source.</li></ul><p>All of these tools are compatible with PyCharm Community Edition.</p><p>Before choosing a tool, I recommend checking the features and limitations of each option to see which one best fits your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88db4a563a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>