<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Projects on Janusworx</title><link>https://janusworx.com/tags/projects/</link><description>Recent content in Projects on Janusworx</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feedback@janusworx.com (Mario Jason Braganza)</managingEditor><webMaster>feedback@janusworx.com (Mario Jason Braganza)</webMaster><copyright>© 2026, Mario Jason Braganza</copyright><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><author>feedback@janusworx.com (Mario Jason Braganza)</author><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="https://janusworx.com/books-ive-read-2020/" target="_blank" rel="noreferrer"&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;
&lt;p&gt;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.&lt;br&gt;
I also had an external thunderbolt ssd, that I could no longer plug into my Mac, because my Mac is dead (sob)&lt;br&gt;
The LaCie did however also have a USB interface too.&lt;/p&gt;
&lt;p&gt;Lightbulb moment!&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Then went to the &lt;a href="https://www.plex.tv/media-server-downloads/#plex-media-server" target="_blank" rel="noreferrer"&gt;Plex site&lt;/a&gt; and got the armf distribution.&lt;br&gt;
Copied it over to the Pi and installed it with a &lt;code&gt;dpkg -i&lt;/code&gt;.&lt;br&gt;
There are better ways to do it. Check the webz if you need better directions and handholding.&lt;/p&gt;
&lt;p&gt;Decided that I did not need a Plex account to do what I needed.&lt;br&gt;
Which basically was just reading a folder full of videos, presenting them and playing them.&lt;/p&gt;
&lt;p&gt;The web interface is beautiful and functional.&lt;br&gt;
It keeps pushing you to get a Plex account, which you might want … or not.&lt;br&gt;
Added my folders as video sources and then after a few minutes, they showed right up.&lt;/p&gt;
&lt;p&gt;I downloaded the Plex apps (on the iPhone and the iPad) and paid for the option to stream files and play them.&lt;/p&gt;
&lt;p&gt;And that was that.&lt;/p&gt;
&lt;p&gt;It works beautifully, if it is just a couple of devices.&lt;br&gt;
More than that, and it struggles.&lt;br&gt;
But most importantly, Plex handled darn near every video format, I had.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description></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><author>feedback@janusworx.com (Mario Jason Braganza)</author><guid>https://janusworx.com/work/git-the-branch/</guid><description>&lt;p&gt;I started playing with a way to control &lt;a href="https://janusworx.com/blog/starting-work-on-git-the-branch/" target="_blank" rel="noreferrer"&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="https://cr.janusworx.com/jason/git-the-branch" target="_blank" rel="noreferrer"&gt;code repo&lt;/a&gt;, &lt;a href="https://gitlab.com/jasonbraganza/git-the-branch" target="_blank" rel="noreferrer"&gt;Gitlab&lt;/a&gt;, and &lt;a href="https://github.com/jasonbraganza/git-the-branch" target="_blank" rel="noreferrer"&gt;Github&lt;/a&gt;.&lt;br&gt;
It just consists of me using &lt;a href="https://gitpython.readthedocs.io/en/stable/" target="_blank" rel="noreferrer"&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;
&lt;p&gt;The important work was done &lt;em&gt;yesterday&lt;/em&gt;, when I pored over the documentation and figured out how GitPython actually works.&lt;br&gt;
And I realised that is what Kushal wanted me to do.&lt;br&gt;
Read something and figure out how I could adapt it to my situation.&lt;/p&gt;
&lt;p&gt;The other thing I realised, was licensing.&lt;br&gt;
I want my programs to be used, played with and adapted.&lt;br&gt;
So it makes sense for me, to make it as easy to use as possible.&lt;br&gt;
This is why I have decided, that until circumstances dictate otherwise, I shall use the &lt;a href="https://choosealicense.com/licenses/mit/" target="_blank" rel="noreferrer"&gt;MIT License&lt;/a&gt;.&lt;br&gt;
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.&lt;br&gt;
My arbitrary and random research suggests that I can do so.&lt;br&gt;
If I learn otherwise, I shall think about what to do next.&lt;br&gt;
If you have anything to suggest, please let me know, by mailing me at jason at this domain.&lt;/p&gt;
&lt;p&gt;One other (painful) thing, that I realised is that I cannot focus at all when I am writing code.&lt;br&gt;
This post has come out in a blur of focussed writing.&lt;br&gt;
My academic studies are also something that I can focus for hours on.&lt;br&gt;
Apparently that focus does not translate to programming.&lt;br&gt;
I need to build up this skill for this domain seperately.&lt;br&gt;
Hopefully, this will come with showing up daily.&lt;/p&gt;
&lt;p&gt;This was fun to do.&lt;br&gt;
Here’s to writing my way to fluency.&lt;/p&gt;
&lt;p&gt;P.S. Subscribe to my &lt;a href="https://janusworx.com/subscribe/" &gt;mailing list&lt;/a&gt;!&lt;br&gt;
P.P.S. Feed my &lt;a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share" target="_blank" rel="noreferrer"&gt;insatiable reading habit&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;P.P.P.S. &lt;em&gt;Update, 7pm the same day,&lt;/em&gt; The answer to focus, lies in &lt;a href="https://seths.blog/2020/11/the-incoming/" target="_blank" rel="noreferrer"&gt;this serendipitous Seth post&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;A third might be, just for an hour, to turn it off.&lt;br&gt;
All of it.&lt;br&gt;
To sit alone and create the new thing, the thing worth seeking out, the thing that will cause a positive change.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;I love it when the universe speaks to me :)&lt;/p&gt;</description></item><item><title>Poem Feed</title><link>https://janusworx.com/personal/poem-feed/</link><pubDate>Fri, 13 Nov 2020 17:00:00 +0530</pubDate><author>feedback@janusworx.com (Mario Jason Braganza)</author><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="https://janusworx.com/blog/a-hundred-days-of-code-day-029/" target="_blank" rel="noreferrer"&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="https://cr.janusworx.com/jason/poemfeed/src/branch/main/poemfeed.py" target="_blank" rel="noreferrer"&gt;Poemfeed&lt;/a&gt; is a tiny little utility that does just that for me.&lt;/p&gt;
&lt;p&gt;It looks up Poetry Foundation’s, &lt;a href="https://www.poetryfoundation.org/poems/poem-of-the-day" target="_blank" rel="noreferrer"&gt;Poem of the Day&lt;/a&gt; for a new poem.&lt;br&gt;
If there is one, it follows the link to the complete poem, and then gets the link to &lt;em&gt;that&lt;/em&gt; page and writes that into an simple RSS entry in an xml file.&lt;/p&gt;
&lt;p&gt;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.&lt;br&gt;
Et voilà, a brand new poem everyday! (or as often as they publish :))&lt;/p&gt;
&lt;p&gt;The code’s here, on &lt;a href="https://cr.janusworx.com/jason/poemfeed/src/branch/main/poemfeed.py" target="_blank" rel="noreferrer"&gt;my repo&lt;/a&gt;, on &lt;a href="https://gitlab.com/jasonbraganza/poemfeed/-/blob/main/poemfeed.py" target="_blank" rel="noreferrer"&gt;Gitlab&lt;/a&gt; and on &lt;a href="https://github.com/jasonbraganza/poemfeed/blob/main/poemfeed.py" target="_blank" rel="noreferrer"&gt;Github&lt;/a&gt;, if you want to have a look see.&lt;/p&gt;</description></item></channel></rss>