<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>mentholych&#39;s blog</title>
    <link>https://blog.mentholych.xyz/</link>
    <description>Recent content on mentholych&#39;s blog</description>
    <generator>Hugo -- 0.120.4</generator>
    <language>en</language>
    <lastBuildDate>Sun, 14 Apr 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.mentholych.xyz/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Traceback That Ate Memory</title>
      <link>https://blog.mentholych.xyz/posts/2024-04-14-traceback-the-memory-eater/</link>
      <pubDate>Sun, 14 Apr 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.mentholych.xyz/posts/2024-04-14-traceback-the-memory-eater/</guid>
      <description>Let&amp;rsquo;s write a tiny program. At first glance, it seems unremarkable.
from dataclasses import dataclass @dataclass(slots=True) class Book: title: str description: str cost: float ParseBookException = Exception(&amp;#34;parse book failed!&amp;#34;) def validate_book(book: Book) -&amp;gt; Book: if book.cost % 2 == 0: return book raise ParseBookException def process_books() -&amp;gt; list[Book]: books = [] for book in ( Book( title=&amp;#34;title&amp;#34;, cost=i, description=&amp;#34;lorem&amp;#34; * 10**6, ) for i in range(2000) ): try: books.append(validate_book(book=book)) except Exception: continue books.</description>
    </item>
    <item>
      <title>Let the whisper</title>
      <link>https://blog.mentholych.xyz/posts/2023-07-09-transcribe-videos/</link>
      <pubDate>Sun, 09 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.mentholych.xyz/posts/2023-07-09-transcribe-videos/</guid>
      <description>Without further ado, let&amp;rsquo;s get to it.
Target:
Make a summary of the youtube video
Installation Install python 3.10. Strongly recommend using pyenv.
Install ffmpeg and yt-dlp. Scripts for mac.
# ffmpeg brew install ffmpeg # yt-dlp wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos chmod +x yt-dlp_macos sudo mv yt-dlp_macos /usr/local/bin/yt-dlp Install whisper. For greater good use virtualenv:
pip install -U openai-whisper Usage Download video as an audio. ba == bestaudio.
yt-dlp -f &amp;#34;ba&amp;#34; -o &amp;#34;to_transcribe.</description>
    </item>
    <item>
      <title>How to work with me guide</title>
      <link>https://blog.mentholych.xyz/posts/2022-05-04-how-to-me/</link>
      <pubDate>Wed, 04 May 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.mentholych.xyz/posts/2022-05-04-how-to-me/</guid>
      <description>What is it and who is it for This post is both for those who have never worked with me before, and for those who worked, but it was a long time ago.
This is a short and simplified summary of my values, approach to work and organization of work.
This note should not be taken as a complete description of me as a colleague, but it is a good starting point.</description>
    </item>
    <item>
      <title>Calathea in the eye of the beholder</title>
      <link>https://blog.mentholych.xyz/posts/2021-11-07-calathea-gif/</link>
      <pubDate>Sun, 07 Nov 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.mentholych.xyz/posts/2021-11-07-calathea-gif/</guid>
      <description>Disclaimer: I stricltly encourage you not to use code from this article in production
In this article I&amp;rsquo;m&amp;hellip; Using an old webcam with a raspberry pi Writing stupid telegram bot Downloading images from bot Stitching images into a gif with ffmpeg Idea So. Plants are weird. They move, like, A LOT, but you never see plants moving. So I&amp;rsquo;ve decided to spy on them. It was time to shake off the dust from my raspberry pi and the damn old webcam and write some code to ocassionaly take pictures.</description>
    </item>
  </channel>
</rss>
