<?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 Adem chaabani on Medium]]></title>
        <description><![CDATA[Stories by Adem chaabani on Medium]]></description>
        <link>https://medium.com/@adem0946chaa?source=rss-cb02352bfa92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7TfjRmBQBjKzoE2K</url>
            <title>Stories by Adem chaabani on Medium</title>
            <link>https://medium.com/@adem0946chaa?source=rss-cb02352bfa92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:48:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adem0946chaa/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[The Best Enjoyable Way To Teach Yourself Programming]]></title>
            <link>https://medium.com/@adem0946chaa/the-best-enjoyable-way-to-teach-yourself-programming-2f6ac385a2c0?source=rss-cb02352bfa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f6ac385a2c0</guid>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Adem chaabani]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 18:33:20 GMT</pubDate>
            <atom:updated>2024-01-23T21:02:31.063Z</atom:updated>
            <content:encoded><![CDATA[<p>I noticed recently that a lot of proficient developers have something in common. They code their way out of their problems.By problem Idon’t mean a bug in the project they work on or function they need to implement, I mean problem outside of there work/projects, problem in the software they are using or even small problems in their life.</p><h3><strong>My Experience</strong></h3><p>i had problem with my laptop fans when i recently installed Debian .The fans noise was annoying even under small load. i have button for controlling the fan mode(fn+F5).It works but there is problem, when changing the fan mode the system doesn’t display any pop up or notification to indicate what mode I changed to or even whether the button works or not.</p><p>First , I searched if there is a fix to my problem. After some digging, I thought “why not to try to fix it by writing program”. So I searched on any documentation that can help me understand how those buttons work I found that it simply changes two files under the directory</p><pre>/sys/devices/platform/asus-nb-wmi</pre><ul><li>First file : fan_boost_mode</li><li>Second file : throttle_thermal_policy</li></ul><p>But for some reason I had only throttle_thermal_policy file on my system. so I wrote simple program in c that watch throttle_thermal_policy file for modification using inotify and send simple notification</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*j5bodSE-xBcFEuJHwT_zmw.png" /></figure><p>You can find the code for this program in <a href="https://github.com/adchaa/tuf-fan-boost-notification">this repository</a></p><p>This program took me around 40 min. 30 min for recherche and reading documentation and 10 min to write and debug simple c program.First, I learned that inotify and also about asus-nb-wmi, which is kernel module.The best thing about this journey is that I enjoyed it. because i was solving my problem that i had on my personal laptop.</p><h3>Conclusion</h3><p>To sum it up, I noticed that good developers don’t just fix issues in their projects. They use their coding skills to solve problems in everyday life too. For instance, when i had problem with the fan mode button didn’t show notifications, I didn’t just look for a solution. I explored how things worked, wrote a simple program in C, and fixed the issue. This not only solved my problem but also showed how coding can be practical and enjoyable for personal problem-solving.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f6ac385a2c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>