<?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>Projects on Janusworx</title>
    <link>https://janusworx.com/tags/projects/</link>
    <description>Recent content in Projects on Janusworx</description>
    <image>
      <title>Janusworx</title>
      <url>https://janusworx.com/images/jw-logo.png</url>
      <link>https://janusworx.com/images/jw-logo.png</link>
    </image>
    <generator>Hugo -- 0.161.1</generator>
    <language>en</language>
    <lastBuildDate>Thu, 28 Jan 2021 09:15:20 +0530</lastBuildDate>
    <atom:link href="https://janusworx.com/tags/projects/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Thoughts on Running Plex on a Raspberry Pi 4</title>
      <link>https://janusworx.com/personal/thoughts-on-running-plex-on-a-raspberry-pi-4/</link>
      <pubDate>Thu, 28 Jan 2021 09:15:20 +0530</pubDate>
      <guid>https://janusworx.com/personal/thoughts-on-running-plex-on-a-raspberry-pi-4/</guid>
      <description>&lt;p&gt;This is just a play post to do a few things.&lt;br&gt;
One, I am now testing categories for the blog.&lt;br&gt;
So that the tech folk can subscribe only to the tech rss feed if need be.&lt;br&gt;
Second, I need to get into the swing of writing things again.&lt;br&gt;
It’s only been close to a month of not writing, but I already feel rusty 😂&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;I have been watching a lot of Netflix and other online streaming media last year. Well &lt;em&gt;lot&lt;/em&gt; is relative. Definitely not &lt;a href=&#34;https://janusworx.com/books-ive-read-2020/&#34;&gt;as many as the books&lt;/a&gt;.&lt;br&gt;
But what I realise, is that I just spend my time endlessly browsing through what I want to watch rather than, you know, &lt;em&gt;actually watching something.&lt;/em&gt;&lt;br&gt;
I also realise that most of my watching is mostly stuff I already watched. I want my old Holmes, or Yes Minister, or Suchet’s Poirot.&lt;br&gt;
&lt;em&gt;Stuff I already have, offline.&lt;/em&gt;&lt;br&gt;
But not easily accessible, since it lies on an external hard disk, which I need to plugin to my desktop and then watch.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This is just a play post to do a few things.<br>
One, I am now testing categories for the blog.<br>
So that the tech folk can subscribe only to the tech rss feed if need be.<br>
Second, I need to get into the swing of writing things again.<br>
It’s only been close to a month of not writing, but I already feel rusty 😂</p>
<!-- TEASER_END -->
<p>I have been watching a lot of Netflix and other online streaming media last year. Well <em>lot</em> is relative. Definitely not <a href="https://janusworx.com/books-ive-read-2020/">as many as the books</a>.<br>
But what I realise, is that I just spend my time endlessly browsing through what I want to watch rather than, you know, <em>actually watching something.</em><br>
I also realise that most of my watching is mostly stuff I already watched. I want my old Holmes, or Yes Minister, or Suchet’s Poirot.<br>
<em>Stuff I already have, offline.</em><br>
But not easily accessible, since it lies on an external hard disk, which I need to plugin to my desktop and then watch.</p>
<p>Then I realised that my trusty little Raspberry Pi was always there, in the corner, running away silently, currently serving as a repository for podcast episodes.<br>
I also had an external thunderbolt ssd, that I could no longer plug into my Mac, because my Mac is dead (sob)<br>
The LaCie did however also have a USB interface too.</p>
<p>Lightbulb moment!</p>
<p>I formatted my external disk on the desktop with the ext4 filesystem, copied all the stuff that I always watch or have running in the background and connected it to my Pi.</p>
<p>Then went to the <a href="https://www.plex.tv/media-server-downloads/#plex-media-server">Plex site</a> and got the armf distribution.<br>
Copied it over to the Pi and installed it with a <code>dpkg -i</code>.<br>
There are better ways to do it. Check the webz if you need better directions and handholding.</p>
<p>Decided that I did not need a Plex account to do what I needed.<br>
Which basically was just reading a folder full of videos, presenting them and playing them.</p>
<p>The web interface is beautiful and functional.<br>
It keeps pushing you to get a Plex account, which you might want … or not.<br>
Added my folders as video sources and then after a few minutes, they showed right up.</p>
<p>I downloaded the Plex apps (on the iPhone and the iPad) and paid for the option to stream files and play them.</p>
<p>And that was that.</p>
<p>It works beautifully, if it is just a couple of devices.<br>
More than that, and it struggles.<br>
But most importantly, Plex handled darn near every video format, I had.</p>
<p>And so, every evening for the past week has been bliss, with an hour, solving crimes Poirot and his “littel gray sells” as I go off to bed.</p>
<p>P.S. Subscribe to my <a href="/subscribe/">mailing list!</a><br>
Forward these posts and letters to your friends and get them to subscribe!<br>
P.P.S. Feed my <a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share">insatiable reading habit.</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Git the Branch</title>
      <link>https://janusworx.com/work/git-the-branch/</link>
      <pubDate>Fri, 13 Nov 2020 18:55:00 +0530</pubDate>
      <guid>https://janusworx.com/work/git-the-branch/</guid>
      <description>&lt;p&gt;I started playing with a way to control &lt;a href=&#34;https://janusworx.com/blog/starting-work-on-git-the-branch/&#34;&gt;Git via Python&lt;/a&gt;.&lt;br&gt;
Kushal had asked me to write a program, that would show me the local git branches.&lt;br&gt;
So here it is!&lt;br&gt;
I call it &lt;em&gt;&lt;strong&gt;Git the Branch&lt;/strong&gt;&lt;/em&gt;. (painfully, punny, I know :))&lt;/p&gt;
&lt;p&gt;And now I realise why he asked me to do this.&lt;br&gt;
The program itself is trivial.&lt;br&gt;
Here’s the code on my &lt;a href=&#34;https://cr.janusworx.com/jason/git-the-branch&#34;&gt;code repo&lt;/a&gt;, &lt;a href=&#34;https://gitlab.com/jasonbraganza/git-the-branch&#34;&gt;Gitlab&lt;/a&gt;, and &lt;a href=&#34;https://github.com/jasonbraganza/git-the-branch&#34;&gt;Github&lt;/a&gt;.&lt;br&gt;
It just consists of me using &lt;a href=&#34;https://gitpython.readthedocs.io/en/stable/&#34;&gt;GitPython&lt;/a&gt; to access the current folder via a GitPython &lt;code&gt;Repo&lt;/code&gt; object.&lt;br&gt;
And then querying it for its branches.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I started playing with a way to control <a href="https://janusworx.com/blog/starting-work-on-git-the-branch/">Git via Python</a>.<br>
Kushal had asked me to write a program, that would show me the local git branches.<br>
So here it is!<br>
I call it <em><strong>Git the Branch</strong></em>. (painfully, punny, I know :))</p>
<p>And now I realise why he asked me to do this.<br>
The program itself is trivial.<br>
Here’s the code on my <a href="https://cr.janusworx.com/jason/git-the-branch">code repo</a>, <a href="https://gitlab.com/jasonbraganza/git-the-branch">Gitlab</a>, and <a href="https://github.com/jasonbraganza/git-the-branch">Github</a>.<br>
It just consists of me using <a href="https://gitpython.readthedocs.io/en/stable/">GitPython</a> to access the current folder via a GitPython <code>Repo</code> object.<br>
And then querying it for its branches.</p>
<p>The important work was done <em>yesterday</em>, when I pored over the documentation and figured out how GitPython actually works.<br>
And I realised that is what Kushal wanted me to do.<br>
Read something and figure out how I could adapt it to my situation.</p>
<p>The other thing I realised, was licensing.<br>
I want my programs to be used, played with and adapted.<br>
So it makes sense for me, to make it as easy to use as possible.<br>
This is why I have decided, that until circumstances dictate otherwise, I shall use the <a href="https://choosealicense.com/licenses/mit/">MIT License</a>.<br>
This led me to check if I could then actually license my software as such, if the software that I depend on (in this case GitPython) have different licenses.<br>
My arbitrary and random research suggests that I can do so.<br>
If I learn otherwise, I shall think about what to do next.<br>
If you have anything to suggest, please let me know, by mailing me at jason at this domain.</p>
<p>One other (painful) thing, that I realised is that I cannot focus at all when I am writing code.<br>
This post has come out in a blur of focussed writing.<br>
My academic studies are also something that I can focus for hours on.<br>
Apparently that focus does not translate to programming.<br>
I need to build up this skill for this domain seperately.<br>
Hopefully, this will come with showing up daily.</p>
<p>This was fun to do.<br>
Here’s to writing my way to fluency.</p>
<p>P.S. Subscribe to my <a href="/subscribe/">mailing list</a>!<br>
P.P.S. Feed my <a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share">insatiable reading habit</a>.<br>
P.P.P.S. <em>Update, 7pm the same day,</em> The answer to focus, lies in <a href="https://seths.blog/2020/11/the-incoming/">this serendipitous Seth post</a></p>
<blockquote>
<p><em>A third might be, just for an hour, to turn it off.<br>
All of it.<br>
To sit alone and create the new thing, the thing worth seeking out, the thing that will cause a positive change.</em></p>
</blockquote>
<p>I love it when the universe speaks to me :)</p>
<hr>
]]></content:encoded>
    </item>
    <item>
      <title>Poem Feed</title>
      <link>https://janusworx.com/personal/poem-feed/</link>
      <pubDate>Fri, 13 Nov 2020 17:00:00 +0530</pubDate>
      <guid>https://janusworx.com/personal/poem-feed/</guid>
      <description>&lt;p&gt;&lt;em&gt;Update, 2020/11/13: This has been working beautifully! I love the poems as they show up in my feed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This is a tiny little niche thing, I built all for my ownsome.&lt;br&gt;
It all &lt;a href=&#34;https://janusworx.com/blog/a-hundred-days-of-code-day-029/&#34;&gt;started&lt;/a&gt;, when I got hooked on reading the daily poem, on the Poetry Foundation page.&lt;/p&gt;
&lt;p&gt;Learning Python as I am, I wondered if there was a way to have it come to my RSS reader.&lt;br&gt;
And so &lt;a href=&#34;https://cr.janusworx.com/jason/poemfeed/src/branch/main/poemfeed.py&#34;&gt;Poemfeed&lt;/a&gt; is a tiny little utility that does just that for me.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><em>Update, 2020/11/13: This has been working beautifully! I love the poems as they show up in my feed.</em></p>
<p>This is a tiny little niche thing, I built all for my ownsome.<br>
It all <a href="https://janusworx.com/blog/a-hundred-days-of-code-day-029/">started</a>, when I got hooked on reading the daily poem, on the Poetry Foundation page.</p>
<p>Learning Python as I am, I wondered if there was a way to have it come to my RSS reader.<br>
And so <a href="https://cr.janusworx.com/jason/poemfeed/src/branch/main/poemfeed.py">Poemfeed</a> is a tiny little utility that does just that for me.</p>
<p>It looks up Poetry Foundation’s, <a href="https://www.poetryfoundation.org/poems/poem-of-the-day">Poem of the Day</a> for a new poem.<br>
If there is one, it follows the link to the complete poem, and then gets the link to <em>that</em> page and writes that into an simple RSS entry in an xml file.</p>
<p>I then wrote a simple cron job that executes the python script twice a day, and if an xml file is generated, it moves it to a place that my RSS reader can access.<br>
Et voilà, a brand new poem everyday! (or as often as they publish :))</p>
<p>The code’s here, on <a href="https://cr.janusworx.com/jason/poemfeed/src/branch/main/poemfeed.py">my repo</a>, on <a href="https://gitlab.com/jasonbraganza/poemfeed/-/blob/main/poemfeed.py">Gitlab</a> and on <a href="https://github.com/jasonbraganza/poemfeed/blob/main/poemfeed.py">Github</a>, if you want to have a look see.</p>
<p>P.S. Subscribe to my <a href="/subscribe/">mailing list!</a><br>
Forward these posts and letters to your friends and get them to subscribe!<br>
P.P.S. Feed my <a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share">insatiable reading habit.</a></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
