<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>python on Sourav Badami</title>
    <link>https://souravbadami.com/tags/python/</link>
    <description>Recent content in python on Sourav Badami</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 31 May 2022 16:39:01 +0530</lastBuildDate><atom:link href="https://souravbadami.com/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>heating issues with MacBook Pro</title>
      <link>https://souravbadami.com/heating-issues-with-macbook-pro/</link>
      <pubDate>Tue, 31 May 2022 16:39:01 +0530</pubDate>
      
      <guid>https://souravbadami.com/heating-issues-with-macbook-pro/</guid>
      <description>this post covers a set of configurations and external factors to assess and fix heating issues with MacBook Pro; some of the below might work for you and some might not. i&amp;rsquo;ve curated this list from my own hit and trial experiments.
Device: MacBook Pro (16-inch, 2019)
activity monitor check your activity monitor and figure out the processes with max CPU and memory consumption; manually close some of them if you&amp;rsquo;re not using it.</description>
    </item>
    
    <item>
      <title>the requested address is not valid in its context</title>
      <link>https://souravbadami.com/the-requested-address-is-not-valid-in-its-context/</link>
      <pubDate>Wed, 15 Nov 2017 02:31:13 +0530</pubDate>
      
      <guid>https://souravbadami.com/the-requested-address-is-not-valid-in-its-context/</guid>
      <description>facing this with Python 2.7 and ftplib? i won’t waste your time; let’s fix it.
the error shows up when passive mode returns an address your client can’t route to. ftplib trusts that address; your network doesn’t. so we stop trusting it — subclass FTP_TLS, keep the port from makepasv, and force the host you already connected to.
import ftplib class FTP_TLS_UNROUTABLE_HOST(ftplib.FTP_TLS, object): def makepasv(self): _, port = super(FTP_TLS_UNROUTABLE_HOST, self).makepasv() return self.</description>
    </item>
    
    <item>
      <title>MyCleanIndia app</title>
      <link>https://souravbadami.com/mycleanindia-app/</link>
      <pubDate>Mon, 09 Jan 2017 02:31:13 +0530</pubDate>
      
      <guid>https://souravbadami.com/mycleanindia-app/</guid>
      <description>you can’t fix what you can’t see; cities have plenty of unhygienic spots that never make it onto a map.
MyCleanIndia was a project to tag those places on Google Maps (Maps API v3), with a Python backend. the goal was simple — make cleanliness gaps visible so people and civic systems have something concrete to act on. it was a student project, rough in places, but it taught me a lot about shipping something public instead of just talking about impact.</description>
    </item>
    
    <item>
      <title>passport status change notifier</title>
      <link>https://souravbadami.com/passport-status-change-notifier/</link>
      <pubDate>Sun, 16 Oct 2016 02:31:13 +0530</pubDate>
      
      <guid>https://souravbadami.com/passport-status-change-notifier/</guid>
      <description>waiting on an Indian passport application is mostly refreshing a status page and hoping the text moved.
i wrote a small Python script that checks the status every hour and fires a desktop notification when it changes. no dashboard, no app store listing — just one less tab open in my brain while bureaucracy does its thing.
code: passportstatus.py.</description>
    </item>
    
    <item>
      <title>birthday wishing bot</title>
      <link>https://souravbadami.com/birthday-wishing-bot/</link>
      <pubDate>Tue, 23 Aug 2016 02:31:13 +0530</pubDate>
      
      <guid>https://souravbadami.com/birthday-wishing-bot/</guid>
      <description>forgetting birthdays is easy; automating them is easier.
this is a small Python bot that reads a list of birthdays and posts a wish to a Facebook page via the Graph API. nothing clever about the wish itself — the point was learning how page publishing works end to end, and removing one more thing from my head.
code’s here.</description>
    </item>
    
    <item>
      <title>auto hibernate</title>
      <link>https://souravbadami.com/auto-hibernate/</link>
      <pubDate>Sun, 14 Aug 2016 02:28:01 +0530</pubDate>
      
      <guid>https://souravbadami.com/auto-hibernate/</guid>
      <description>most machines don’t know when you’ve walked away; they just sit there burning power until you remember to close the lid.
i built a small Python script that watches the room through a camera, uses OpenCV for motion detection, and hibernates the system when nobody’s nearby for a while. no fancy product — just a useful automation for a machine that sits idle too often.
code’s on GitHub.</description>
    </item>
    
  </channel>
</rss>
