random musing

I can sorta imagine a future where scientists experimenting with genetically modified bacteria looking to solve pollution will create a bacteria which will eat all carbon based fuel instead. We’ll end up with a globally spread bacteria that will force us into a post-fossil fuel era where only electricity from renewables and nuclear will work and everything else will just not even start.

But how does such a bacteria differentiate between carbon based fuels and carbon based living organisms?

Setting Up a Local Webserver on Debian: Solving the Mystery of .local Domain Advertisement with Avahi

I recently purchased an Intel N100 based mini PC with the idea of turning it into a local webserver hosting many services like RSS feed reader, pi-hole, an open source memos app, and a few other smaller open source projects. I currently host all of these on an ailing Macbook Pro which has a tendency to go into “darkwake”, i.e. it wakes up when I send it a Wake-on-LAN command, and then within 15 seconds it goes back to sleep. Rather a lethargic fellow, that.

Initially wanting to install ubuntu on this new machine, I opted for debian because I’ve recently had some interaction with the OS at work and I’ve found it to be very stable and light. I’m sure someone might disagree and I’ll gladly experiment with other Linux OS somewhere down the line.

While I was installing debian, it asked me what the domain should be and I answered “local” because I want to access the server on my local network with the completely innovative domain name “server.local”. My other machines are “laptop.local” and “macserver.local”.

The latter two are Macbooks, so they automatically advertise the .local domain on the network using Apple Bonjour. But the debian wasn’t doing so. I was googling around but didn’t even know what to ask. Some stackoverflow answers spoke of how Ubuntu automatically advertises the “.local” while debian does not.

Before I rued my fate and having to wipe out my just setup server, I decided to ask the AI powers how I can solve this problem. My go-to is Bing Chat, since it has internet access. I asked the

Does debian 12 advertise itself on the lan with a .local domain name like Ubuntu and MacOS do?

Bing Chat looked around and regurgitated an answer I’d already found on Stackoverflow – that while it is possible to do so, the SO answer author decided to leave out the vital detail of what the heck this service is called on the Linux side of things (Apple Bonjour is a damn well known name in tech circles). The alternatives that the SO answer mentioned and Bing Chat vomited were to setup a local DNS server or to use /etc/hosts. The latter option is NOT available on iOS devices, which are painfully inadequate in terms of actually completely owning your device.

Before I gave up, I went to ChatGPT and pasted the question above exactly as is. I wasn’t really expecting a different answer, but I sure got it.

According to ChatGPT, as of its January 2022 cutoff date, Debian 12 hadn’t been released. But, the technology I’m talking about is called Avahi. Ubuntu and MacOS have it preinstalled and I can check if Avahi is installed using the following command –

dpkg -l | grep avahi

My debian install was of the netinstall flavor, which means it installed all the basic packages it thought were relevant and everything else was left to this poor user to figure out. I googled and found a method to install avahi-daemon on debian and the tutorial even mentioned that after installing it, I basically have to do nothing.

Lo and behold! One quick install step later, I can now access “server.local” on my LAN. Nice!

I don’t often do this, but I dropped the following feedback to the ChatGPT team regarding this excellent answer their LLM provided to me –

Though it doesn’t know that Debian 12 has been released after its cutoff date, ChatGPT was nevertheless point me in the right direction because the underlying technology – avahi – has been around for a while and is clearly the answer to the question I was looking for. In contract, Bing Chat was not able to come to the same answer even though I asked it the same question.

Spelling mistake and all.

The title of this post was created by ChatGPT after I fed it the entire post above and asked it what to name the post. I gave it the title “ChatGPT still wins over Bing Chat”, but that felt too sensational.

Cheers.

Interesting ad

I was just on Twitter and I saw an ad for the new iPhone 15. It said, quite politely, that the iPhone 15 can take photos of 4x more resolution. Compared to what? Well, it had an image of an iPhone 12 and an image of an iPhone 15. “Oh, that’s so nice”, I thought, “but why is it comparing those two phones?”

It dawned on me that the ad is not random, it’s customized. It’s customized to my phone. So if I were on an iPhone 14 Pro, I might see a different ad. Except, here’s a problem – I am not on an iPhone 12. I’m on an iPhone 12 Pro. It doesn’t make a difference. The 12 and the 12 Pro both sport a 12 Mega Pixel main camera setup. The Pro simply adds a nice fish-eye lens, which is very, very useful to me.

What does make a difference is how the ad was crafted. It’s likely iOS is only sending a generic device signature of an iPhone 12 to the Twitter app, which is then passing it on to the Apple advertising vendor and I’m being shown that customized ad accordingly. The sad thing is that it’s just as likely that the exact device information of my phone is being handed to the app and the ad vendor is instead choosing to show me an ad to upgrade from an iPhone 12 to an iPhone 15 instead of an iPhone 12 Pro to an iPhone 15 non-Pro. After all, who wants to lose a camera in an “upgrade”? Apple does a great job of pushing the non-Pro phones every year as budget alternatives to the Pro models. So it’s no surprise they’d want someone using as “old” a phone as an iPhone 12 (Pro) to upgrade to the latest. But it’s an interesting marketing strategy to try to sell me on a non-Pro phone, if it is that.

I dunno which version of this is true. Interesting ad though.

I thought that in reading Bird by Bird after Parisian Lives, I’m stepping away from Samuel Beckett. But Anne Lamott brings him back into my musings, with these lines –

But a writer always tries, I think, to be a part of the solution, to understand a little about life and to pass this on. Even someone as grim and unsentimental as Samuel Beckett, with his lunatics in garbage cans or up to their necks in sand, whose lives consist of pawing through the contents of their purses, stopping to marvel at each item, gives us great insight into what is true, into what helps. He gets it right—that we’re born astride the grave and that this planet can feel as cold and uninhabitable as the moon—and he knows how to make it funny. He smiles an oblique and private smile at us, the most delicious smile of all, and this changes how we look at life.

Bird by Bird: Some Instructions on Writing and Life by Anne Lamott

I’ve been reading listening to “Bird by Bird” by Anne Lamott and two things stuck out – one, I didn’t know Anne Lamott is funny, and by extension, that this book is funny. Two, I love that Anne calls the very first draft of what writers write as “shitty first drafts”. I love it not because I write shitty first drafts and then better second drafts, but because I only write shitty first drafts, and then hit publish. That’s the glory of blogging. Sure, you can write, rewrite, edit, perfect. Or you can just fire off a missive into the ether and care or not that someone reads it. I know this is yet more navel-gazing re: blogging, but it’s the kind I enjoy the most. 🙂

Thoughts on Parisian Lives by Deidre Bair

I started listening to Parisian Lives on the third of July and only just finished it. That’s almost three full months of interrupted listening, mostly in my car. But also while doing the dishes and grocery shopping.

A couple of things struck me about this book.

Firstly, I didn’t know what I was expecting going in. I’ve never been much into reading biographies, let alone autobiographies. But due to my recent interest in feminist memoirs and the “women writing women” idea, I’ve been diving into a lot of non-fiction. It surprised me to see that this book is semi-autobiographical and semi-biographical of the two Subjects Deidre Bair wrote about in her first two biography books – Samuel Beckett and Simone De Beauvoir. It contained equal parts an examination of Deidre Bair’s own life and struggles and her writer jitters and apprehensions when meeting literary giants; and an equal part her interactions with her Subjects, their reactions, and reasons for allowing her into their lives, the doors they opened and closed for her, the way they wanted themselves to be remembered and not. So it was quite the satisfying read.

Second, I wanted to know more about the lives of these two people. They are philosophers and interesting ones. Absurdism and Feminism. Both interesting worlds. So it was a nice introduction to their lives. Something the author says struck me as the perfect reason to read a biography – her goal has always been to make it so that the reader of her biographies whets their appetite for the Subject’s work and after finishing the book, dives right into the published works of the Subject. That’s what this book did for me. Though I’m wont to meander my way through some other works before carrying on with the “original” strain of thought I was following (I’m listening to Bird By Bird by Anne Lamott now instead of digging into either of the Subjects’ works), I do see this book as an important milestone for me to dive into more philosophy and also into more “women writing women”.

Third, and this is something I noticed in Figuring by Maria Popova, I love and hate that the final chapter in such books is chock full of “homework”. No where does Deidre Bair mention so many names, so many influences and inspirations for her Subjects as she does in the Final Chapter. In Figuring too, the final chapter had me taking copious notes and marking multiple books as “to be read”.

Deidre Bair says at one point that she writes the introduction at the end of her book writing arc, because she wants to summarize why the reader should read the book. This explains so well as to why I despise reading introductions. Once I’ve picked up a book, I want to quickly get to the meat of it, not keep navel gazing upon why I should be reading it. So I skip the introduction. But the final chapter, oh I need to keep coming back to it. This is partly why I dislike audiobooks. For all their convenience, there’s no way for me to highlight passages and make good notes. Oh well. Trade offs.

Overall, loved this book. It was unexpected and yet exactly what I needed in my reading journey.

Onwards!

Watching Dead Poets Society reveals a lot about the viewer. Are they a realist and accept the ending of the film? Are they a romantic and accept the profundity of the lesson the students learn? Or are they a Bollywood aficionado and realize this is where Mohabbatein got most of its plot! 😂

My blog was down for the better part of the evening due to excessive MySQL logs and expired cached media filling up the entire 50 GB hard disk with noise.

Now freed up 55% and all my sites are back online. What a way to spend a Friday evening.