<?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 SatheeshKumar Mohan on Medium]]></title>
        <description><![CDATA[Stories by SatheeshKumar Mohan on Medium]]></description>
        <link>https://medium.com/@sathyz?source=rss-52117a21744------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V8Ahrz5GK2uzzGQY8Re-OA.jpeg</url>
            <title>Stories by SatheeshKumar Mohan on Medium</title>
            <link>https://medium.com/@sathyz?source=rss-52117a21744------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:31:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sathyz/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[ALCplaybackAlsa_mixerPROC: Wait timeout… buffer size too low?]]></title>
            <link>https://medium.com/@sathyz/alcplaybackalsa-mixerproc-wait-timeout-buffer-size-too-low-f0b3b1a200c8?source=rss-52117a21744------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0b3b1a200c8</guid>
            <category><![CDATA[rhythmbox]]></category>
            <category><![CDATA[debian]]></category>
            <dc:creator><![CDATA[SatheeshKumar Mohan]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 04:02:59 GMT</pubDate>
            <atom:updated>2023-04-16T04:02:59.199Z</atom:updated>
            <content:encoded><![CDATA[<pre>ALCplaybackAlsa_mixerPROC: Wait timeout... buffer size too low?</pre><p>Trying to play music in rhythmbox throws the above error and doesn’t play. The error is thrown by openal on trying to use ALSA driver. Replacing this by pulse or pipewire solves the problem.</p><p>To set that set the environment variable,</p><pre>ALSOFT_DRIVERS=pulse</pre><p>or set the config in /etc/openal/alsoft.conf</p><pre>[general]<br>drivers = pulse</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0b3b1a200c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I use Raspberry Pi]]></title>
            <link>https://medium.com/@sathyz/how-i-use-raspberry-pi-f049fab90cde?source=rss-52117a21744------2</link>
            <guid isPermaLink="false">https://medium.com/p/f049fab90cde</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[SatheeshKumar Mohan]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 15:23:40 GMT</pubDate>
            <atom:updated>2023-01-13T15:23:40.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Use old home theatre to play music over bluetooth</h3><ol><li>Connect home theatre to 0.3 jack in Raspberry PI</li><li>Raspberry PI and the raspberry pi os comes with bluetooth setup. Pair the mobile.</li><li>Now, we can play any song in mobile using Jio Saavn or Wynk or Youtube Premium or any other app and hear from the home theatre.</li></ol><h3>2. Digital Photo Frame in Home</h3><p>I tried setting up Yodeck in home to play image slideshow. However later realized <a href="https://www.jwz.org/xscreensaver/">xscreensaver</a> with <em>glslideshow</em> is good enough to play our favourite photos from a directory. This works like a simple digital photo frame.</p><h3>3. Simple Home Weather Station</h3><p>In this setup, I have used a <a href="https://www.amazon.in/gp/product/B07KKB7HR6/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;psc=1">BME280</a> sensor to monitor temperature and an another 128x64 OLED display to show the temperature.</p><pre>import bme280<br>import smbus2<br>import serial<br><br>from time import sleep<br>from datetime import datetime<br><br><br>class Weather:<br>    port = 1<br>    address = 0x76<br>    bus = smbus2.SMBus(port)<br><br>    def __init__(self):<br>        bme280.load_calibration_params(Weather.bus, Weather.address)<br><br>    def run(self):<br>        while True:<br>            try:<br>                data = bme280.sample(Weather.bus, Weather.address)<br>                yield data<br>            except:<br>                continue<br>            sleep(60)<br><br><br>class Badge:<br>    DISPLAY_PORT = &quot;/dev/ttyACM0&quot;<br>    BIT_RATE = 9600<br><br>    def __init__(self):<br>        self.board = None<br>        self.conn()<br><br>    def conn(self):<br>        self.board = serial.Serial(Badge.DISPLAY_PORT, Badge.BIT_RATE)<br><br>    def send(self, cmd):<br>        self.board.write(cmd.encode(&#39;UTF-8&#39;))<br>        sleep(0.2)<br><br>    def refresh(self):<br>        self.send(&#39;clr\n&#39;)<br>        self.send(&#39;sys2x\n&#39;)<br><br>    def display(self, text):<br>        cmd = &#39;o_println(&quot;{0}&quot;)\n&#39;.format(text)<br>        self.send(cmd)<br><br><br>class Station:<br>    def __init__(self):<br>        self.badge = Badge()<br>        self.weather = Weather()<br><br>    def run(self):<br>        for data in self.weather.run():<br>            temperature = &quot;T.. {:.1f} C&quot;.format(data.temperature)<br>            pressure = &quot;P.. {:.1f} hPa&quot;.format(data.pressure)<br>            humidity = &quot;H.. {:.1f} %&quot;.format(data.humidity)<br>            now = datetime.now().strftime(&quot;%H:%M&quot;)<br><br>            msgs = [temperature, pressure, humidity, now]<br>            self.display(msgs)<br><br>    def display(self, msgs):<br>        try:<br>            self.badge.refresh()<br>        except:<br>            sleep(0.2)<br>            self.badge.conn()<br>            self.badge.refresh()<br><br>        for text in msgs:<br>            self.badge.display(text)<br><br><br>if __name__ == &#39;__main__&#39;:<br>    station = Station()<br>    station.run()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08lvDf9Q_AukKeYSRKO2yQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f049fab90cde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python closure — fibanocci]]></title>
            <link>https://medium.com/@sathyz/python-closure-fibanocci-d663b9ebea09?source=rss-52117a21744------2</link>
            <guid isPermaLink="false">https://medium.com/p/d663b9ebea09</guid>
            <category><![CDATA[fibonacci]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[closure]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[SatheeshKumar Mohan]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 12:56:08 GMT</pubDate>
            <atom:updated>2020-07-01T12:56:52.033Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python closure — Fibonacci</h3><p>Here is the python version of writing <a href="https://play.golang.org/p/NeGuDahW2yP">closure to find fibonacci series</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6febe52423518bc0562e98cdeffb9161/href">https://medium.com/media/6febe52423518bc0562e98cdeffb9161/href</a></iframe><pre>$ python fibanocci-closure.py</pre><pre>1 1 2 3 5</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d663b9ebea09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[debian iconv_open invalid argument]]></title>
            <link>https://medium.com/@sathyz/debian-iconv-open-invalid-argument-683816585d96?source=rss-52117a21744------2</link>
            <guid isPermaLink="false">https://medium.com/p/683816585d96</guid>
            <category><![CDATA[debian]]></category>
            <dc:creator><![CDATA[SatheeshKumar Mohan]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 15:10:12 GMT</pubDate>
            <atom:updated>2020-01-22T15:10:12.375Z</atom:updated>
            <content:encoded><![CDATA[<p>I faced a kind of hard disk failure when the debian upgrade was happening. I had to run a file system check to fix the failure. This seem to have corrupted some libraries in the system.</p><p>Problems noticed,</p><ol><li>Kodi stopped showing text, only icons were displayed.</li><li>debian package installations threw two kinds of errors</li></ol><p>2a. iconv_open invalid argument</p><pre>Processing triggers for man-db (2.8.5-2) ...                                                                                                                                     <br>/usr/bin/mandb: iconv_open (&quot;UTF-8//IGNORE&quot;, &quot;ISO-8859-1&quot;): Invalid argument                                                                                                     <br>/usr/bin/mandb: iconv_open (&quot;UTF-8//IGNORE&quot;, &quot;ISO-8859-1&quot;): Invalid argument                                                                                                     <br>/usr/bin/mandb: iconv_open (&quot;UTF-8//IGNORE&quot;, &quot;ISO-8859-1&quot;): Invalid argument</pre><p>2b. ldconfig: .. is not an ELF file</p><pre>Removing libhttp-parser2.1:amd64 (2.1-2) ...<br>ldconfig: /usr/lib/x86_64-linux-gnu/libbd_part.so.2 is not an ELF file - it has the wrong magic bytes at the start.</pre><pre>ldconfig: /usr/lib/x86_64-linux-gnu/libplist.so.3.0.0 is not an ELF file - it has the wrong magic bytes at the start.</pre><pre>ldconfig: /usr/lib/x86_64-linux-gnu/libavahi-glib.so is not an ELF file - it has the wrong magic bytes at the start.</pre><pre>ldconfig: /usr/lib/x86_64-linux-gnu/libgdata.so.22.3.0 is not an ELF file - it has the wrong magic bytes at the start.</pre><p>Step 1. Which package provided the library?</p><pre>$ dpkg -S /usr/lib/x86_64-linux-gnu/libbd_part.so.2<br>libblockdev-part2:amd64: /usr/lib/x86_64-linux-gnu/libbd_part.so.2</pre><p>Collect all affected packages.</p><p>Step 2. Reinstall the packages,</p><pre>$ sudo apt-get install --reinstall libblockdev-part2:amd64</pre><p>After this, kodi started showing the text and iconv_open problem stopped apprearing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=683816585d96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>