If I have seen further, it is by standing on the shoulders of Giants Issac Newton, 1675. Although it should be credited to 12th century Bernard of Chartres. You will know why I have shared this, probably at the beginning of Civil Aviation history itself.
Comments on the BBI court case which happened in Kenya, then and the subsequent appeal.
I am not going to share much about the coverage of the BBI appeal as Gautam Bhatia has shared quite eloquently his observations, both on the initial case and the subsequent appeal which lasted 5 days in Kenya and was shown all around the world thanks to YouTube. One of the interesting points which stuck with me was that in Kenya, sign language is one of the official languages. And in fact, I was able to read quite a bit about the various sign languages which are there in Kenya. It just boggles the mind that there are countries that also give importance to such even though they are not as rich or as developed as we call developed economies. I probably might give more space and give more depth as it does carry some important judicial jurisprudence which is and which will be felt around the world. How does India react or doesn t is probably another matter altogether But yes, it needs it own space, maybe after some more time.
Report on Standing Committee on IP Regulation in India and the false promises.
Again, I do not want to take much time in sharing details about what the report contains, as the report can be found here. I have uploaded it on WordPress, in case of an issue. An observation on the same subject can be found here. At least, to me and probably those who have been following the IP space as either using/working on free software or even IP would be aware that the issues shared have been known since 1994. And it does benefit the industry rather than the country. This way, the rent-seekers, and monopolists win. There is ample literature that shared how rich countries had weak regulation for decades and even centuries till it was advantageous for them to have strong IP. One can look at the history of Europe and the United States for it. We can also look at the history of our neighbor China, which for the last 5 decades has used some provision of IP and disregarded many others. But these words are of no use, as the policies done and shared are by the rich for the rich.
Fighting between two State Borders
Ironically or because of it, two BJP ruled states Assam and Mizoram fought between themselves. In which 6 policemen died. While the history of the two states is complicated it becomes a bit more complicated when one goes back into Assam and ULFA history and comes to know that ULFA could not have become that powerful until and unless, the Marwaris, people of my clan had not given generous donations to them. They thought it was a good investment, which later would turn out to be untrue. Those who think ULFA has declined, or whatever, still don t have answers to this or this.
Interestingly, both the Chief Ministers approached the Home Minister (Mr. Amit Shah) of BJP. Mr. Shah was supposed to be the Chanakya but in many instances, including this one, he decided to stay away. His statement was on the lines of you guys figure it out yourself.
There is a poem that was shared by the late poet Rahat Indori. I am sharing the same below as an image and will attempt to put a rough translation.
kisi ke baap ka hindustan todi hain Rahat Indori
Poets, whether in India or elsewhere, are known to speak truth to power and are a bit of a rebel. This poem by Rahat Indori is provocatively titled Kisi ke baap ka Hindustan todi hai , It challenges the majoritarian idea that Hindustan/India only belongs to the majoritarian religion. He also challenges as well as asserts at the same time that every Indian citizen, regardless of whatever his or her religion might be, is an Indian and can assert India as his home. While the whole poem is compelling in itself, for me what hits home is in the second stanza
:Lagegi Aag to aayege ghat kayi zad me, Yaha pe sirf hamara makan todi hai
The meaning is simple yet subtle, he uses Aag or Fire as a symbol of hate sharing that if hate spreads, it won t be his home alone that will be torched. If one wants to literally understand what he meant, I present to you the cult Russian movie No Escapes or Ogon as it is known in Russian.
If one were to decipher why the Russian film doesn t talk about climate change, one has to view it from the prism of what their leader Vladimir Putin has said and done over the years. As can be seen even in there, the situation is far more complex than one imagines. Although, it is interesting to note that he decried Climate change as man-made till as late as last year and was on the side of Trump throughout his presidency. This was in 2017 as well as perhaps this. Interestingly, there was a change in tenor and note just a couple of weeks back, but that could be only politicking or much more. Statements that are not backed by legislation and application are usually just a whitewash. We would have to wait to see what concrete steps are taken by Putin, Kremlin, and their Duma before saying either way.
Civil Aviation and the broad structure
Civil Aviation is a large topic and I would not be able to do justice to it all in one article/blog post. So, for e.g. I will not be getting into Aircraft (Boeing, Airbus, Comac etc., etc.) or the new electric aircraft as that will just make the blog post long. I will not be also talking about cargo or Visa or many such topics, as all of them actually would and do need their own space. So this would be much more limited to Airports and to some extent airlines, as one cannot survive without the other. The primary reason for doing this is there is and has been a lot of myth-making in India about Civil Aviation in general, whether it has to do with Civil Aviation history or whatever passes as of policy in India.
A little early history
Man has always looked at the stars and envisaged himself or herself as a bird, flying with gay abandon. In fact, there have been many paintings, sculptors who imagined how we would fly. The Steam Engine itself was invented in 82 BCE. But the attempt to fly was done by a certain Monk called Brother Elmer of Malmesbury who attempted the same in 1010., shortly after the birth of the rudimentary steam engine The most famous of all would be Leonardo da Vinci for his amazing sketches of flying machines in 1493. There were a couple of books by Cyrano de Bergerac, apparently wrote two books, both sadly published after his death. Interestingly, you can find both the book and the gentleman in the Project Gutenberg archives. How much of M/s Cyrano s exploits were his own and how much embellished by M/S Curtis, maybe a friend, a lover who knows, but it does give the air of the swashbuckling adventurer of the time which many men aspired to in that time. So, why not an author???
L Autre Monde: ou les tats et Empires de la Lune (Comical History of the States and Empires of the Moon) and Les tats et Empires du Soleil (The States and Empires of the Sun). These two French books apparently had a lot of references to flying machines. Both of them were authored by Cyrano de Bergerac. Both of these were sadly published after his death, one apparently in 1656 and the other one a couple of years later.
By the 17th century, while it had become easy to know and measure the latitude, measuring longitude was a problem. In fact, it can be argued and probably successfully that India wouldn t have been under British rule or UK wouldn t have been a naval superpower if it hadn t solved the longitudinal problem. Over the years, the British Royal Navy suffered many blows, one of the most famous or infamous among them might be the Scilly naval disaster of 1707 which led to the death of 2000 odd British Royal naval personnel and led to Queen Anne, who was ruling over England at that time via Parliament and called it the Longitude Act which basically was an open competition for anybody to fix the problem and carried the prize money of 20,000. While nobody could claim the whole prize, many did get smaller amounts depending upon the achievements.
The best and the nearest who came was John Harrison who made the first sea-watch and with modifications, over the years it became miniaturized to a pocket-sized Marine chronometer although, I doubt the ones used today look anything in those days. But if that had not been invented, we surely would have been freed long ago. The assumption being that the East India Company would have dashed onto rocks so many times, that the whole exercise would have been futile. The downside of it is that maritime trade routes that are being used today and the commerce would not have been. Neither would have aircraft or space for that matter, or at the very least delayed by how many years or decades, nobody knows. If one wants to read about the Longitudinal problem, one can get the famous book Longitude .
In many mythologies, including Indian and Arabian tales, in which we had the flying carpet which would let its passengers go from one place to the next. Then there is also mention of Pushpak Vimana in ancient texts, but those secrets remain secrets. Think how much foreign exchange India could make by both using it and exporting the same worldwide. And I m being serious. There are many who believe in it, but sadly, the ones who know the secret don t seem to want India s progress. Just think of the carbon credits that India could have, which itself would make India a superpower. And I m being serious.
Western Ideas and Implementation.
Even in the late and early 18th century, there were many machines that were designed to have controlled flight, but it was only the Wright Flyer that was able to demonstrate a controlled flight in 1903. The ones who came pretty close to what the Wrights achieved were the people by the name of Cayley and Langley. They actually studied what the pioneers had done. They looked at what Otto Lilienthal had done, as he had done a lot of hang-gliding and put a lot of literature in the public domain then.
Furthermore, they also consulted Octave Chanute. The whole system and history of the same are a bit complicated, but it does give a window to what happened then. So, it won t be wrong to say that whatever the Wright Brothers accomplished would probably not have been possible or would have taken years or maybe even decades if that literature and experiments, drawings, etc. in the commons were not available. So, while they did experimentation, they also looked at what other people were doing and had done which was in public domain/commons.
They also did a lot of testing, which gave them new insights. Even the propulsion system they used in the 1903 flight was a design by Nicolaus Otto. In fact, the Aircraft would not have been born if the Chinese had not invented kites in the early sixth century A.D. One also has to credit Issac Newton because of the three laws of motion, again without which none of the above could have happened. What is credited to the Wilbur brothers is not just they made the Kitty Hawk, they also made it commercial as they sold it and variations of the design to the American Air Force and also made a pilot school where pilots were trained for warfighting. 119 odd pilots came out of that school. The Wrights thought that air supremacy would end the war early, but this turned out to be a false hope.
Competition and Those Magnificent Men and their flying machines
One of the first competitions to unlock creativity was the English Channel crossing offer made by Daily Mail. This was successfully done by the Frenchman Louis Bl riot. You can read his account here. There were quite a few competitions before World War 1 broke out. There is a beautiful, humorous movie that does dedicate itself to imagining how things would have gone in that time. In fact, there have been two movies, this one and an earlier movie called Sky Riders made many a youth dream. The other movie sadly is not yet in the public domain, and when it will be nobody knows, but if you see it or even read it, it gives you goosebumps.
World War 1 and Improvements to Aircraft
World War 1 is remembered as the Great War or the War to end all wars in an attempt at irony. It did a lot of destruction of both people and property, and in fact, laid the foundation of World War 2. At the same time, if World War 1 hadn t happened then Airpower, Plane technology would have taken decades. Even medicine and medical techniques became revolutionary due to World War 1. In order to be brief, I am not sharing much about World War 1 otherwise that itself would become its own blog post. And while it had its heroes and villains who, when, why could be tackled perhaps another time.
The Guggenheim Family and the birth of Civil Aviation
If one has to credit one family for the birth of the Civil Aviation, it has to be the Guggenheim family. Again, I would not like to dwell much as much of their contribution has already been noted here.
There are quite a few things still that need to be said and pointed out. First and foremost is the fact that they made lessons about flying from grade school to college and afterward till college and beyond which were in the syllabus, whereas in the Indian schooling system, there is nothing like that to date. Here, in India, even in Engineering courses, you don t have much info. Unless until you go for professional Aviation or Aeronautical courses and most of these courses cost a bomb so either the very rich or the very determined (with loans) only go for that, at least that s what my friends have shared. And there is no guarantee you will get a job after that, especially in today s climate.
Even their fund, grants, and prizes which were given to people for various people so that improvements could be made to the United States Civil Aviation. This, as shared in the report/blog post shared, was in response to what the younger child/brother saw as Europe having a large advantage both in Military and Civil Aviation. They also made several grants in several Universities which would not only do notable work during their lifetime but carry on the legacy researching on different aspects of Aircraft.
One point that should be noted is that Europe was far ahead even then of the U.S. which prompted the younger son. There had already been talks of civil/civilian flights on European routes, although much different from what either of us can imagine today. Even with everything that the U.S. had going for her and still has, Europe is the one which has better airports, better facilities, better everything than the U.S. has even today. If you look at the lists of the Airports for better value of money or facilities, you would find many Airports from Europe, some from Asia, and only a few from the U.S. even though they are some of the most frequent users of the service. But that debate and arguments I would have to leave for perhaps the next blog post as there is still a lot to be covered between the 1930s, 1950s, and today. The Guggenheims archives does a fantastic job of sharing part of the story till the 1950s, but there is also quite a bit which it doesn t. I will probably start from that in the next blog post and then carry on ahead.
Lastly, before I wind up, I have to share why I felt the need to write, capture and share this part of Aviation history. The plain and simple reason being, many of the people I meet either on the web, on Twitter or even in real life, many of them are just unaware of how this whole thing came about. The unawareness in my fellow brothers and sisters is just shocking, overwhelming. At least, by sharing these articles, I at least would be able to guide them or at least let them know how it all came to be and where things are going and not just be so clueless. Till later.
FTP master
This month I accepted 13 and rejected 2 packages. The overall number of packages that got accepted was 13.
As the Release Team prefers not to have any new package upload to unstable, the numbers are this low. I am afraid there is some discussion needed after the release of Bullseye
Debian LTS
This was my eighty-fifth month that I did some work for the Debian LTS initiative, started by Raphael Hertzog at Freexian.
This month my all in all workload has been 30h. During that time I did LTS and normal security uploads of:
[DLA 2720-1] aspell security update for two CVEs
[DLA 2722-1] libsndfile security update for one CVE
[DLA 2723-1] linuxptp security update for one CVE
prepared aspell update in Buster, which resulted in DSA 4948-1
I also made further progress on gpac and started to test the package now.
Last but not least I did some days of frontdesk duties. I am not sure whether it is just me, but I got the impression that nowadays lots of CVEs can be marked as not-affected in the corresponding Stretch-version. Most of the remaining CVEs only have a small security impact (if at all) and can be marked as no-dsa. So the number of packages that really need an update decreases steadily. Does that mean that all issues in older versions are fixed now? Or are people more focused on new features in software as it is easier to find issues in more or less unexplored code?
Debian ELTS
This month was the thirty-seventh ELTS month.
During my allocated time I uploaded:
ELA-461-1 for jasper
ELA-462-1 for aspell
ELA-464-1 for libsndfile
Last but not least I did some days of frontdesk duties. In ELTS the decreasing number of uploads, as mentioned above, seems to be even more clearly.
Other stuff
I played a bit with RISC-V and looked after some packages that did not build on that architecture. Generally this looks like fun but building packages with qemu dampens the mood a bit. So if anybody knows some hardware that runs Debian, that is available now and that does not cost more than my car, I would be happy to get some pointer.
This month I uploaded new upstream versions of:
Leonardo and I are pleased to share that a new nanotime version 0.3.3 was released today, and arrived on CRAN. This release brings a new (plotting) demo, an updated documentation site, additional nanoduration and nanoperiod functionality, and enhanced testing.
nanotime relies on the RcppCCTZ package for (efficient) high(er) resolution time parsing and formatting up to nanosecond resolution, and the bit64 package for the actual integer64 arithmetic. Initially implemented using the S3 system, it has benefitted greatly from work by co-author Leonardo who not only rejigged nanotime internals in S4 but also added new S4 types for periods, intervals and durations.
The NEWS snippet adds full details.
Changes in version 0.3.3 (2021-08-09)
New demo ggplot2Example.R (Leonardo and Dirk).
New documentation website using mkdocs-material (Dirk).
Updated unit test to account for r-devel POSIXct changes, and re-enable full testing under r-devel (Dirk).
Additional nanoduration and character ops plus tests (Colin Umansky in #88 addressing #87).
New plus and minus functions for periods (Leonardo in #91).
I have a cheap no-name UPS acquired from Jaycar and was wondering if I
could get it to connect to my Synology DS918+. It rather unhelpfully
identifies itself as MEC0003 and comes with some blob of
non-working software on a CD; however some investigation found it
could maybe work on my Synology NAS using the Network UPS Toolsnutdrv_qx driver with the
hunnox subdriver type.
Unfortunately this is a fairly recent addition to the NUTs source,
requiring rebuilding the driver for DSM7. I don't fully understand
the Synology environment but I did get this working. Firstly I
downloaded the toolchain from
https://archive.synology.com/download/ToolChain/toolchain/ and
extracted it. I then used the script from
https://github.com/SynologyOpenSource/pkgscripts-ng to download
some sort of build environment. This appears to want root access and
possibly sets up some sort of chroot. Anyway, for DSM7 on the DS918+
I ran EnvDeploy -v 7.0 -p apollolake and it downloaded some
tarballs into toolkit_tarballs that I simply extracted into the
same directory as the toolchain.
I then grabbed the NUTs source from
https://github.com/networkupstools/nut. I then built NUTS
similar to the following
The tricks to be aware of are setting the locations DSM wants
status/config files and overriding the USB detection done by
configure which doesn't seem to obey sysroot.
If you would prefer to avoid this you can try this prebuilt nutdrv_qx
(ebb184505abd1ca1750e13bb9c5f991eaa999cbea95da94b20f66ae4bd02db41).
SSH to the DSM7 machine; as root move /usr/bin/nutdrv_qx out of
the way to save it; scp the new version and move it into place.
If you cat /dev/bus/usb/devices I found this device has a Vendor
0001 and ProdID 0000.
DSM does a bunch of magic to autodetect and configure NUTs when a UPS
is plugged in. The first thing you'll need to do is edit
/etc/nutscan-usb.sh and override where it tries to use the
blazer_usb driver for this obviously incorrect vendor/product id.
The line should now look like
Then you want to edit the file
/usr/syno/lib/systemd/scripts/ups-usb.sh to start the
nutdrv_qx; find the DRV_LIST in that file and update it like
so:
local DRV_LIST="nutdrv_qx usbhid-ups blazer_usb bcmxcp_usb richcomm_usb tripplite_usb"
This is triggered by /usr/lib/systemd/system/ups-usb.service and
is ultimately what tries to setup the UPS configuration.
Lastly, you will need to edit the /etc/ups/ups.conf file. This
will probably vary depending on your UPS. One important thing is to
add user=root above the driver; it seems recent NUT has become
more secure and drops permissions, but the result it will not find USB
devices in this environment (if you're getting something like no
appropriate HID device found this is likely the cause). So the
configuration should look something like:
I then restarted the UPS daemon by enabling/disabling UPS support in
the UI. This should tell you that your UPS is connected. You can
also check /var/log/ups.log which shows for me
Which corresponds to the correct input/output voltage and state.
Of course this is all unsupported and probably likely to break --
although I don't imagine much of these bits are updated very
frequently. It will likely be OK until the UPS battery dies; at which
point I would reccommend buying a better UPS on the Synology support
list.
The Last Battle is the seventh and final book of the
Chronicles of Narnia in every reading order. It ties together (and
spoils) every previous Narnia book, so you do indeed want to read it last
(or skip it entirely, but I'll get into that).
In the far west of Narnia, beyond the Lantern Waste and near the great
waterfall that marks Narnia's western boundary, live a talking ape named
Shift and a talking donkey named Puzzle. Shift is a narcissistic asshole
who has been gaslighting and manipulating Puzzle for years, convincing the
poor donkey that he's stupid and useless for anything other than being
Shift's servant. At the start of the book, a lion skin washes over the
waterfall and into the Cauldron Pool. Shift, seeing a great opportunity,
convinces Puzzle to retrieve it.
The king of Narnia at this time is Tirian. I would tell you more about
Tirian except, despite being the protagonist, that's about all the
characterization he gets. He's the king, he's broad-shouldered and
strong, he behaves in a correct kingly fashion by preferring hunting
lodges and simple camps to the capital at Cair Paravel, and his close
companion is a unicorn named Jewel. Other than that, he's another
character like Rilian from The Silver
Chair who feels like he was taken from a medieval Arthurian story.
(Thankfully, unlike Rilian, he doesn't talk like he's in a medieval
Arthurian story.)
Tirian finds out about Shift's scheme when a dryad appears at Tirian's
camp, calling for justice for the trees of Lantern Waste who are being
felled. Tirian rushes to investigate and stop this monstrous act, only to
find the beasts of Narnia cutting down trees and hauling them away for
Calormene overseers. When challenged on why they would do such a thing,
they reply that it's at Aslan's orders.
The Last Battle is largely the reason why I decided to do this
re-read and review series. It is, let me be clear, a bad book. The plot
is absurd, insulting to the characters, and in places actively offensive.
It is also, unlike the rest of the Narnia series, dark and depressing for
nearly all of the book. The theology suffers from problems faced by
modern literature that tries to use the Book of Revelation and related
Christian mythology as a basis. And it is, most famously, the site of one
of the most notorious authorial betrayals of a character in fiction.
And yet, The Last Battle, probably more than any other single book,
taught me to be a better human being. It contains two very specific
pieces of theology that I would now critique in multiple ways but which
were exactly the pieces of theology that I needed to hear when I first
understood them. This book steered me away from a closed, judgmental, and
condemnatory mindset at exactly the age when I needed something to do
that. For that, I will always have a warm spot in my heart for it.
I'm going to start with the bad parts, though, because that's how the book
starts.
MAJOR SPOILERS BELOW.
First, and most seriously, this is a
second-order
idiot plot. Shift shows up with a donkey wearing a lion skin (badly),
only lets anyone see him via firelight, claims he's Aslan, and starts
ordering the talking animals of Narnia to completely betray their laws and
moral principles and reverse every long-standing political position of the
country... and everyone just nods and goes along with this. This is the
most blatant example of a long-standing problem in this series: Lewis does
not respect his animal characters. They are the best feature of his
world, and he treats them as barely more intelligent than their
non-speaking equivalents and in need of humans to tell them what to do.
Furthermore, despite the assertion of the narrator, Shift is not even
close to clever. His deception has all the subtlety of a five-year-old
who doesn't want to go to bed, and he offers the Narnians absolutely
nothing in exchange for betraying their principles. I can forgive Puzzle
for going along with the scheme since Puzzle has been so emotionally
abused that he doesn't know what else to do, but no one else has any
excuse, especially Shift's neighbors. Given his behavior in the book,
everyone within a ten mile radius would be so sick of his whining,
bullying, and lying within a month that they'd never believe anything he
said again. Rishda and Ginger, a Calormene captain and a sociopathic cat
who later take over Shift's scheme, do qualify as clever, but there's no
realistic way Shift's plot would have gotten far enough for them to get
involved.
The things that Shift gets the Narnians to do are awful. This is by far
the most depressing book in the series, even more than the worst parts of
The Silver Chair. I'm sure I'm not the only one who struggled to
read through the first part of this book, and raced through it on re-reads
because everything is so hard to watch. The destruction is wanton and
purposeless, and the frequent warnings from both characters and narration
that these are the last days of Narnia add to the despair. Lewis takes
all the beautiful things that he built over six books and smashes them
before your eyes. It's a lot to take, given that previous books would
have treated the felling of a single tree as an unspeakable catastrophe.
I think some of these problems are due to the difficulty of using
Christian eschatology in a modern novel. An antichrist is obligatory, but
the animals of Narnia have no reason to follow an antichrist given their
direct experience with Aslan, particularly not the aloof one that Shift
tries to give them. Lewis forces the plot by making everyone act stupidly
and out of character. Similarly, Christian eschatology says everything
must become as awful as possible right before the return of Christ, hence
the difficult-to-read sections of Narnia's destruction, but there's no
in-book reason for the Narnians' complicity in that destruction. One can
argue about whether this is good theology, but it's certainly bad
storytelling.
I can see the outlines of the moral points Lewis is trying to make about
greed and rapacity, abuse of the natural world, dubious alliances,
cynicism, and ill-chosen prophets, but because there is no explicable
reason for Tirian's quiet kingdom to suddenly turn to murderous resource
exploitation, none of those moral points land with any force. The best
moral apocalypse shows the reader how, were they living through it, they
would be complicit in the devastation as well. Lewis does none of that
work, so the reader is just left angry and confused.
The book also has several smaller poor authorial choices, such as the
blackface incident. Tirian, Jill, and Eustace need to infiltrate Shift's
camp, and use blackface to disguise themselves as Calormenes. That alone
uncomfortably reveals how much skin tone determines nationality in this
world, but Lewis makes it far worse by having Tirian comment that he
"feel[s] a true man again" after removing the blackface and switching to
Narnian clothes.
All of this drags on and on, unlike Lewis's normally tighter pacing, to
the point that I remembered this book being twice the length of any other
Narnia book. It's not; it's about the same length as the rest, but it's
such a grind that it feels interminable. The sum total of the bright
points of the first two-thirds of the book are the arrival of Jill and
Eustace, Jill's one moment of true heroism, and the loyalty of a single
Dwarf. The rest is all horror and betrayal and doomed battles and abject
stupidity.
I do, though, have to describe Jill's moment of glory, since I complained
about her and Eustace throughout The Silver Chair. Eustace is
still useless, but Jill learned forestcraft during her previous adventures
(not that we saw much sign of this previously) and slips through the
forest like a ghost to steal Puzzle and his lion costume out from the
under the nose of the villains. Even better, she finds Puzzle and the
lion costume hilarious, which is the one moment in the book where one of
the characters seems to understand how absurd and ridiculous this all is.
I loved Jill so much in that moment that it makes up for all of the
pointless bickering of The Silver Chair. She doesn't get to do
much else in this book, but I wish the Jill who shows up in The Last
Battle had gotten her own book.
The end of this book, and the only reason why it's worth reading, happens
once the heroes are forced into the stable that Shift and his
co-conspirators have been using as the stage for their fake Aslan. Its
door (for no well-explained reason) has become a door to Aslan's Country
and leads to a reunion with all the protagonists of the series. It also
becomes the frame of Aslan's final destruction of Narnia and judging of
its inhabitants, which I suspect would be confusing if you didn't already
know something about Christian eschatology. But before that, this
happens, which is sufficiently and deservedly notorious that I think it
needs to be quoted in full.
"Sir," said Tirian, when he had greeted all these. "If I have read the
chronicle aright, there should be another. Has not your Majesty two
sisters? Where is Queen Susan?"
"My sister Susan," answered Peter shortly and gravely, "is no longer a
friend of Narnia."
"Yes," said Eustace, "and whenever you've tried to get her to come and
talk about Narnia or do anything about Narnia, she says 'What
wonderful memories you have! Fancy your still thinking about all
those funny games we used to play when we were children.'"
"Oh Susan!" said Jill. "She's interested in nothing nowadays except
nylons and lipstick and invitations. She always was a jolly sight too
keen on being grown-up."
"Grown-up indeed," said the Lady Polly. "I wish she would grow
up. She wasted all her school time wanting to be the age she is now,
and she'll waste all the rest of her life trying to stay that age.
Her whole idea is to race on to the silliest time of one's life as
quick as she can and then stop there as long as she can."
There are so many obvious and dire problems with this passage, and so many
others have written about it at length, that I will only add a few points.
First, I find it interesting that neither Lucy nor Edmund says a thing.
(I would like to think that Edmund knows better.) The real criticism
comes from three characters who never interacted with Susan in the series:
the two characters introduced after she was no longer allowed to return to
Narnia, and a character from the story that predated hers. (And Eustace
certainly has some gall to criticize someone else for treating Narnia as a
childish game.)
It also doesn't say anything good about Lewis that he puts his rather
sexist attack on Susan into the mouths of two other female characters.
Polly's criticism is a somewhat generic attack on puberty that could
arguably apply to either sex (although "silliness" is usually reserved for
women), but Jill makes the attack explicitly gendered. It's the attack of
a girl who wants to be one of the boys on a girl who embraces things that
are coded feminine, and there's a whole lot of politics around the
construction of gender happening here that Lewis is blindly reinforcing
and not grappling with at all.
Plus, this is only barely supported by single sentences in
The Voyage of the Dawn Treader and
The Horse and His Boy and directly
contradicts the earlier books. We're expected to believe that Susan the
archer, the best swimmer, the most sensible and thoughtful of the four
kids has abruptly changed her whole personality. Lewis could have made me
believe Susan had soured on Narnia after the attempted kidnapping (and,
although left unstated, presumably eventual attempted rape) in The
Horse and His Boy, if one ignores the fact that incident supposedly
happens before Prince Caspian where
there is no sign of such a reaction. But not for those reasons, and not
in that way.
Thankfully, after this, the book gets better, starting with the Dwarfs,
which is one of the two passages that had a profound influence on me.
Except for one Dwarf who allied with Tirian, the Dwarfs reacted to the
exposure of Shift's lies by disbelieving both Tirian and Shift, calling a
pox on both their houses, and deciding to make their own side. During the
last fight in front of the stable, they started killing whichever side
looked like they were winning. (Although this is horrific in the story, I
think this is accurate social commentary on a certain type of cynicism,
even if I suspect Lewis may have been aiming it at atheists.) Eventually,
they're thrown through the stable door by the Calormenes. However, rather
than seeing the land of beauty and plenty that everyone else sees, they
are firmly convinced they're in a dark, musty stable surrounded by refuse
and dirty straw.
This is, quite explicitly, not something imposed on them. Lucy rebukes
Eustace for wishing Tash had killed them, and tries to make friends with
them. Aslan tries to show them how wrong their perceptions are, to no
avail. Their unwillingness to admit they were wrong is so strong that
they make themselves believe that everything is worse than it actually is.
"You see," said Aslan. "They will not let us help them. They have
chosen cunning instead of belief. Their prison is only in their own
minds, yet they are in that prison; and so afraid of being taken in
that they cannot be taken out."
I grew up with the US evangelical version of Hell as a place of eternal
torment, which in turn was used to justify religious atrocities in the
name of saving people from Hell. But there is no Hell of that type in
this book. There is a shadow into which many evil characters simply
disappear, and there's this passage. Reading this was the first time I
understood the alternative idea of Hell as the absence of God instead of
active divine punishment. Lewis doesn't use the word "Hell," but it's
obvious from context that the Dwarfs are in Hell. But it's not something
Aslan does to them and no one wants them there; they could leave any time
they wanted, but they're too unwilling to be wrong.
You may have to be raised in conservative Christianity to understand how
profoundly this rethinking of Hell (which Lewis tackles at greater length
in The Great Divorce) undermines the system of guilt and fear
that's used as motivation and control. It took me several re-readings and
a lot of thinking about this passage, but this is where I stopped
believing in a vengeful God who will eternally torture nonbelievers, and
thus stopped believing in all of the other theology that goes with it.
The second passage that changed me is Emeth's story. Emeth is a devout
Calormene, a follower of Tash, who volunteered to enter the stable when
Shift and his co-conspirators were claiming Aslan/Tash was inside. Some
time after going through, he encounters Aslan, and this is part of his
telling of that story (and yes, Lewis still has Calormenes telling stories
as if they were British translators of the Arabian Nights):
[...] Lord, is it then true, as the Ape said, that thou and Tash are
one? The Lion growled so that the earth shook (but his wrath was not
against me) and said, It is false. Not because he and I are one, but
because we are opposites, I take to me the services which thou hast
done to him. For I and he are of such different kinds that no service
which is vile can be done to me, and none which is not vile can be
done to him. Therefore if any man swear by Tash and keep his oath for
the oath's sake, it is by me that he has truly sworn, though he know
it not, and it is I who reward him. And if any man do a cruelty in my
name, then, though he says the name Aslan, it is Tash whom he serves
and by Tash his deed is accepted. Dost thou understand, Child? I
said, Lord, thou knowest how much I understand. But I said also (for
the truth constrained me), Yet I have been seeking Tash all my days.
Beloved, said the Glorious One, unless thy desire had been for me,
thou wouldst not have sought so long and so truly. For all find what
they truly seek.
So, first, don't ever say this to anyone. It's horribly condescending
and, since it's normally said by white Christians to other people, usually
explicitly colonialist. Telling someone that their god is evil but since
they seem to be a good person they're truly worshiping your god is only
barely better than saying yours is the only true religion.
But it is better, and as someone who, at the time, was wholly
steeped in the belief that only Christians were saved and every follower
of another religion was following Satan and was damned to Hell, this
passage blew my mind. This was the first place I encountered the
idea that someone who followed a different religion could be saved, or
that God could transcend religion, and it came with exactly the context
and justification that I needed given how close-minded I was at the time.
Today, I would say that the Christian side of this analysis needs far more
humility, and fobbing off all the evil done in the name of the Christian
God by saying "oh, those people were really following Satan" is a total
moral copout. But, nonetheless, Lewis opened a door for me that I was
able to step through and move beyond to a less judgmental, dismissive, and
hostile view of others.
There's not much else in the book after this. It's mostly Lewis's
charmingly Platonic view of the afterlife, in which the characters go
inward and upward to truer and more complete versions of both Narnia and
England and are reunited (very briefly) with every character of the
series. Lewis knows not to try too hard to describe the indescribable,
but it remains one of my favorite visions of an afterlife because it makes
so explicit that this world is neither static or the last, but only the
beginning of a new adventure.
This final section of The Last Battle is deeply flawed, rather
arrogant, a little bizarre, and involves more lectures on theology than
precise description, but I still love it. By itself, it's not a bad
ending for the series, although I don't think it has half the beauty or
wonder of the end of The Voyage of the Dawn Treader. It's a shame
about the rest of the book, and it's a worse shame that Lewis chose to
sacrifice Susan on the altar of his prejudices. Those problems made it
very hard to read this book again and make it impossible to recommend.
Thankfully, you can read the series without it, and perhaps most readers
would be better off imagining their own ending (or lack of ending) to
Narnia than the one Lewis chose to give it.
But the one redeeming quality The Last Battle will always have for
me is that, despite all of its flaws, it was exactly the book that I
needed to read when I read it.
Rating: 4 out of 10
Christoph and I are please to share that a new release 1.1.57-1 of x13binary, of the X-13ARIMA-SEATS program by the US Census Bureau (with updated upstream release 1.1.57) is now on CRAN.
The x13binary package takes the pain out of installing X-13ARIMA-SEATS by making it a fully resolved CRAN dependency. For example, when installing the excellent seasonal package by Christoph, then X-13ARIMA-SEATS will get pulled in via the x13binary package and things just work. Just depend on x13binary and on all major OSs supported by R you should have an X-13ARIMA-SEATS binary installed which will be called seamlessly by the higher-level packages such as seasonal or gunsales. With this the full power of the what is likely the world s most sophisticated deseasonalization and forecasting package is now at your fingertips and the R prompt, just like any other of the 17960+ CRAN packages. You can read more about this (and the seasonal package) in the Journal of Statistical Software paper by Christoph and myself.
This release brings a new upstream release as well as binaries. We continue to support two Linux flavours (theh standard x86_64 as well as armv7l), windows and for a first time two macOS flavour. In addition to the existing Intel binary we now have a native built using the arm64 M1 chip (with thanks to Kirill for the assist).
We still lack a genuine binary for Solaris so if any of the esteemed readers of this post happens to have access to R on Solaris along with a basic Fortran compiler, we would love to hear from you. Building X-13ARIMA-SEATS from source on Solaris should be straightforward as it is on the other OSs. Or is someone with a bit of time wants to help following Gabor s tutorial we would greatly appreciate it.
Courtesy of my CRANberries, there is also a diffstat report for this release showing changes to the previous release.
If you like this or other open-source work I do, you can sponsor me at GitHub.
Wrote a tool to parse /sys/block/*/stat.
It's probably impossible for a human brain to appreciate the
numbers so I made a web
page that you can paste the contents and parse it from
JS to emit some processed numbers. Probably iostat is the
tool you want, but hey, sometimes you need this kind of
stuff.
After a very long porting journey,
Launchpad is finally running on Python 3 across
all of our systems.
I wanted to take a bit of time to reflect on why my emotional responses to
this port differ so much from those of some others who ve done large ports,
such as the Mercurial
maintainers.
It s hard to deny that we ve had to burn a lot of time on this, which I m
sure has had an opportunity cost, and from one point of view it s
essentially running to stand still: there is no single compelling feature
that we get solely by porting to Python 3, although it s clearly a
prerequisite for tidying up old compatibility code and being able to use
modern language facilities in the future. And yet, on the whole, I found
this a rewarding project and enjoyed doing it.
Some of this may be because by inclination I m a maintenance programmer and
actually enjoy this sort of thing. My default view tends to be that
software version upgrades may be a pain but it s much better to get that
pain over with as soon as you can rather than trying to hold back the tide;
you can certainly get involved and try to shape where things end up, but
rightly or wrongly I can t think of many cases when a righteously indignant
user base managed to arrange for the old version to be maintained in
perpetuity so that they never had to deal with the new thing (OK, maybe Perl
5 counts here).
I think a more compelling difference between Launchpad and Mercurial,
though, may be that very few other people really had a vested interest in
what Python version Launchpad happened to be running, because it s all
server-side code (aside from some client libraries such as
launchpadlib, which were ported
years ago). As such, we weren t trying to do this with the internet having
Strong Opinions at us. We were doing this because it was obviously the only
long-term-maintainable path forward, and in more recent times because some
of our library dependencies were starting to drop support for Python 2 and
so it was obviously going to become a practical problem for us sooner or
later; but if we d just stayed on Python 2 forever then fundamentally hardly
anyone else would really have cared directly, only maybe about some indirect
consequences of that. I don t follow Mercurial development so I may be
entirely off-base, but if other people were yelling at me about how late my
project was to finish its port, that in itself would make me feel more
negatively about the project even if I thought it was a good idea. Having
most of the pressure come from ourselves rather than from outside meant that
wasn t an issue for us.
I m somewhat inclined to think of the process as an extreme version of
paying down technical debt. Moving from Python 2.7 to 3.5, as we just did,
means skipping over multiple language versions in one go, and if similar
changes had been made more gradually it would probably have felt a lot more
like the typical dependency update treadmill. I appreciate why not everyone
might want to think of it this way: maybe this is just my own rationalization.
Reflections on porting to Python 3
I m not going to defend the Python 3 migration process; it was pretty rough
in a lot of ways. Nor am I going to spend much effort relitigating it here,
as it s already been done to death elsewhere, and as I understand it the
core Python developers have got the message loud and clear by now. At a
bare minimum, a lot of valuable time was lost early in Python 3 s lifetime
hanging on to flag-day-type porting strategies that were impractical for
large projects, when it should have been providing for bilingual
strategies (code that runs in both Python 2 and 3 for a transitional period)
which is where most libraries and most large migrations ended up in
practice. For instance, the early advice to library maintainers to maintain
two parallel versions or perhaps translate dynamically with 2to3 was
entirely impractical in most non-trivial cases and wasn t what most people
ended up doing, and yet the idea that 2to3 is all you need still floats
around Stack Overflow and the like as a result. (These days, I would
probably point people towards something more like Eevee s porting
FAQ
as somewhere to start.)
There are various fairly straightforward things that people often suggest
could have been done to smooth the path, and I largely agree: not removing
the u'' string prefix only to put it back in 3.3, fewer gratuitous
compatibility breaks in the name of tidiness, and so on. But if I had a
time machine, the number one thing I would ask to have been done differently
would be introducing type annotations in Python 2 before Python 3 branched
off. It s true that it s technically
possible
to do type annotations in Python 2, but the fact that it s a different
syntax that would have to be fixed later is offputting, and in practice it
wasn t widely used in Python 2 code. To make a significant difference to
the ease of porting, annotations would need to have been introduced early
enough that lots of Python 2 library code used them so that porting code
didn t have to be quite so much of an exercise of manually figuring out the
exact nature of string types from context.
Launchpad is a complex piece of software that interacts with multiple
domains: for example, it deals with a database, HTTP, web page rendering,
Debian-format archive publishing, and multiple revision control systems, and
there s often overlap between domains. Each of these tends to imply
different kinds of string handling. Web page rendering is normally done
mainly in Unicode, converting to bytes as late as possible; revision control
systems normally want to spend most of their time working with bytes,
although the exact details vary; HTTP is of course bytes on the wire, but
Python s WSGI interface has some string type
subtleties.
In practice I found myself thinking about at least four string-like types
(that is, things that in a language with a stricter type system I might well
want to define as distinct types and restrict conversion between them):
bytes, text, ordinary native strings (str in either language, encoded to
UTF-8 in Python 2), and native strings with WSGI s encoding rules. Some of
these are emergent properties of writing in the intersection of Python 2 and
3, which is effectively a specialized language of its own without coherent
official documentation whose users must intuit its behaviour by comparing
multiple sources of information, or by referring to unofficial porting
guides: not a very satisfactory situation. Fortunately much of the
complexity collapses once it becomes possible to write solely in Python 3.
Some of the difficulties we ran into are not ones that are typically thought
of as Python 2-to-3 porting issues, because they were changed later in
Python 3 s development process. For instance, the email module was
substantially improved in around the 3.2/3.3 timeframe to handle Python 3 s
bytes/text model more correctly, and since Launchpad sends quite a few
different kinds of email messages and has some quite picky tests for exactly
what it emits, this entailed a lot of work in our email sending code and in
our test suite to account for that. (It took me a while to work out whether
we should be treating raw email messages as bytes or as text; bytes turned
out to work best.) 3.4 made some tweaks to the implementation of
quoted-printable encoding that broke a number of our tests in ways that took
some effort to fix, because the tests needed to work on both 2.7 and 3.5.
The list goes on. I got quite proficient at digging through Python s git
history to figure out when and why some particular bit of behaviour had changed.
One of the thorniest problems was parsing HTTP form data. We mainly rely on
zope.publisher for this, which
in turn relied on
cgi.FieldStorage; but
cgi.FieldStorage is badly broken in some
situations on Python 3. Even if that
bug were fixed in a more recent version of Python, we can t easily use
anything newer than 3.5 for the first stage of our port due to the version
of the base OS we re currently running, so it wouldn t help much. In the
end I fixed some minor issues in the
multipart module (and was kindly
given co-maintenance of it) and converted zope.publisher to use
it. Although
this took a while to sort out, it seems to have gone very well.
A couple of other interesting late-arriving issues were around
pickle. For most things
we normally prefer safer formats such as JSON, but there are a few cases
where we use pickle, particularly for our session databases. One of my
colleagues pointed out that I needed to remember to tell pickle to stick
to protocol
2,
so that we d be able to switch back and forward between Python 2 and 3 for a
while; quite right, and we later ran into a similar problem with
marshal too. A more
surprising problem was that datetime.datetime objects pickled on Python 2
require special care when unpickling
on Python 3; rather than the approach that ended up being implemented and
documented
for Python 3.6, though, I preferred a custom
unpickler,
both so that things would work on Python 3.5 and so that I wouldn t have to
risk affecting the decoding of other pickled strings in the session database.
General lessons
Writing this over a year after Python 2 s end-of-life date, and certainly
nowhere near the leading edge of Python 3 porting work, it s perhaps more
useful to look at this in terms of the lessons it has for other large
technical debt projects.
I mentioned in my previous article that
I used the approach of an enormous and frequently-rebased git branch as a
working area for the port, committing often and sometimes combining and
extracting commits for review once they seemed to be ready. A port of this
scale would have been entirely intractable without a tool of similar power
to git rebase, so I m very glad that we finished migrating to git in 2019.
I relied on this right up to the end of the port, and it also allowed for
quick assessments of how much more there was to land. git
worktree was also helpful, in that I
could easily maintain working trees built for each of Python 2 and 3 for comparison.
As is usual for most multi-developer projects, all changes to Launchpad need
to go through code review, although we sometimes make exceptions for very
simple and obvious changes that can be self-reviewed. Since I knew from the
outset that this was going to generate a lot of changes for review, I
therefore structured my work from the outset to try to make it as easy as
possible for my colleagues to review it. This generally involved keeping
most changes to a somewhat manageable size of 800 lines or less (although
this wasn t always possible), and arranging commits mainly according to the
kind of change they made rather than their location. For example, when I
needed to fix issues with / in Python 3 being true division rather than
floor division, I did so in one
commit
across the various places where it mattered and took care not to mix it with
other unrelated changes. This is good practice for nearly any kind of
development, but it was especially important here since it allowed reviewers
to consider a clear explanation of what I was doing in the commit message
and then skim-read the rest of it much more quickly.
It was vital to keep the codebase in a working state at all times, and
deploy to production reasonably often: this way if something went wrong the
amount of code we had to debug to figure out what had happened was always
tractable. (Although I can t seem to find it now to link to it, I saw an
account a while back of a company that had taken a flag-day approach instead
with a large codebase. It seemed to work for them, but I m certain we
couldn t have made it work for Launchpad.)
I can t speak too highly of Launchpad s test suite, much of which originated
before my time. Without a great deal of extensive coverage of all sorts of
interesting edge cases at both the unit and functional level, and a
corresponding culture of maintaining that test suite well when making new
changes, it would have been impossible to be anything like as confident of
the port as we were.
As part of the porting work, we split out a couple of substantial chunks of
the Launchpad codebase that could easily be decoupled from the core: its
Mailman integration and its code import
worker. Both of these had substantial
dependencies with complex requirements for porting to Python 3, and
arranging to be able to do these separately on their own schedule was
absolutely worth it. Like disentangling balls of wool, any opportunity you
can take to make things less tightly-coupled is probably going to make it
easier to disentangle the rest. (I can see a tractable way forward to
porting the code import worker, so we may well get that done soon. Our
Mailman integration will need to be rewritten, though, since it currently
depends on the Python-2-only Mailman 2, and Mailman 3 has a different architecture.)
Python lessons
Our database layer was already in pretty good
shape for a port, since at least the modern bits of its table modelling
interface were already strict about using Unicode for text columns. If you
have any kind of pervasive low-level framework like this, then making it be
pedantic at you in advance of a Python 3 port will probably incur much less
swearing in the long run, as you won t be trying to deal with quite so many
bytes/text issues at the same time as everything else.
Early in our port, we established a standard set of
__future__ imports
and started incrementally converting files over to them, mainly because we
weren t yet sure what else to do and it seemed likely to be helpful.
absolute_import was definitely reasonable (and not often a problem in our
code), and print_function was annoying but necessary. In hindsight I m
not sure about unicode_literals, though. For files that only deal with
bytes and text it was reasonable enough, but as I mentioned above there were
also a number of cases where we needed literals of the language s native
str type, i.e. bytes in Python 2 and text in Python 3: this was
particularly noticeable in WSGI contexts, but also cropped up in some other
surprising
places. We
generally either omitted unicode_literals or used six.ensure_str in such
cases, but it was definitely a bit awkward and maybe I should have listened
more to people telling me it might be a bad idea.
A lot of Launchpad s early tests used
doctest, mainly in the
style
where you have text files that interleave narrative commentary with
examples. The development team later reached consensus that this was best
avoided in most cases, but by then there were far too many doctests to
conveniently rewrite in some other form. Porting doctests to Python 3 is
really annoying. You run into all the little changes in how objects are
represented as text (particularly u'...' versus '...', but plenty of
other cases as well); you have next to no tools to do anything useful like
skipping individual bits of a doctest that don t apply; using __future__
imports requires the rather obscure approach of adding the relevant names to
the doctest s globals in the relevant DocFileSuite or DocTestSuite;
dealing with many exception tracebacks requires something like
zope.testing.renormalizing;
and whatever code refactoring tools you re using probably don t work
properly. Basically, don t have done that. It did all turn out to be
tractable for us in the end, and I managed to avoid using much in the way of
fragile doctest extensions aside from the aforementioned
zope.testing.renormalizing, but it was not an enjoyable experience.
Regressions
I know of nine regressions that reached Launchpad s production systems as a
result of this porting work; of course there were various other regressions
caught by CI or in manual testing. (Considering the size of this project, I
count it as a resounding success that there were only nine production
issues, and that for the most part we were able to fix them quickly.)
Equality testing of removed database objects
One of the things we had to do while porting to Python 3 was to
implement
the __eq__, __ne__, and __hash__ special methods for all our database
objects. This was quite conceptually fiddly, because doing this requires
knowing each object s primary key, and that may not yet be available if
we ve created an object in Python but not yet flushed the actual INSERT
statement to the database (most of our primary keys are auto-incrementing
sequences). We thus had to take care to flush pending SQL statements in
such cases in order to ensure that we know the primary keys.
However, it s possible to have a problem at the other end of the object
lifecycle: that is, a Python object might still be reachable in memory even
though the underlying row has been DELETEd from the database. In most
cases we don t keep removed objects around for obvious reasons, but it can
happen in caching code, and buildd-manager
crashed as a result (in
fact while it was still running on Python 2). We had to take extra
care
to avoid this problem.
Debian imports crashed on non-UTF-8 filenames
Python 2 has some unfortunate
behaviour around passing
bytes or Unicode strings (depending on the platform) to shutil.rmtree, and
the combination of some porting
work
and a particular source package in Debian that contained a non-UTF-8 file
name caused us to run into this. The
fix
was to ensure that the argument passed to shutil.rmtree is a str
regardless of Python version.
We d actually run into something
similar
before: it s a subtle porting gotcha, since it s quite easy to end up
passing Unicode strings to shutil.rmtree if you re in the process of
porting your code to Python 3, and you might easily not notice if the file
names in your tests are all encoded using UTF-8.
lazr.restful ETags
We eventually got far enough along that we could switch one of our four
appserver machines (we have quite a number of other machines too, but the
appservers handle web and API requests) to Python 3 and see what happened.
By this point our extensive test suite had shaken out the vast majority of
the things that could go wrong, but there was always going to be room for
some interesting edge cases.
One of the Ubuntu kernel team reported that they were seeing an increase in
412 Precondition
Failed errors in some
of their scripts that use our webservice API. These can happen when you re
trying to modify an existing resource: the underlying protocol involves
sending an If-Match header with the ETag that the client thinks the
resource has, and if this doesn t match the ETag that the server calculates
for the resource then the client has to refresh its copy of the resource and
try again. We initially thought that this might be legitimate since it can
happen in normal operation if you collide with another client making changes
to the same resource, but it soon became clear that something stranger was
going on: we were getting inconsistent ETags for the same object even when
it was unchanged. Since we d recently switched a quarter of our appservers
to Python 3, that was a natural suspect.
Our lazr.restful package provides the framework for our webservice API,
and roughly speaking it generates ETags by serializing objects into some
kind of canonical form and hashing the result. Unfortunately the
serialization was dependent on the Python version in a few ways, and in
particular it serialized lists of strings such as lists of bug tags
differently: Python 2 used [u'foo', u'bar', u'baz'] where Python 3 used
['foo', 'bar', 'baz']. In lazr.restful 1.0.3 we switched to using
JSON
for this, removing the Python version dependency and ensuring consistent
behaviour between appservers.
Memory leaks
This problem took the longest to solve. We noticed fairly quickly from our
graphs that the appserver machine we d switched to Python 3 had a serious
memory leak. Our appservers had always been a bit leaky, but now it wasn t
so much a small hole that we can bail occasionally as the boat is sinking rapidly :
(Yes, this got in the way of working out what was going on with ETags for
a while.)
I spent ages messing around with various attempts to fix this. Since only
a quarter of our appservers were affected, and we could get by on 75%
capacity for a while, it wasn t urgent but it was definitely annoying.
After spending some quality time with
objgraph, for
some time I thought traceback reference
cycles
might be at fault, and I sent a number of fixes to various upstream projects
for those (e.g.
zope.pagetemplate).
Those didn t help the leaks much though, and after a while it became clear
to me that this couldn t be the sole problem: Python has a cyclic garbage
collector that will eventually collect reference cycles as long as there are
no strong references to any objects in them, although it might not happen
very quickly. Something else must be going on.
Debugging reference leaks in any non-trivial and long-running Python program
is extremely arduous, especially with ORMs that naturally tend to end up
with lots of cycles and caches. After a while I formed a hypothesis that
zope.server might be keeping a
strong reference to something, although I never managed to nail it down more
firmly than that. This was an attractive theory as we were already in the
process of migrating to Gunicorn for
other reasons anyway, and Gunicorn also has a convenient
max_requests
setting that s good at mitigating memory leaks. Getting this all in place
took some time, but once we did we found that everything was much more stable:
This isn t completely satisfying as we never quite got to the bottom of the
leak itself, and it s entirely possible that we ve only papered over it
using max_requests: I expect we ll gradually back off on how frequently we
restart workers over time to try to track this down. However,
pragmatically, it s no longer an operational concern.
Mirror prober HTTPS proxy handling
After we switched our script servers to Python 3, we had several reports of
mirror probing
failures. (Launchpad
keeps lists of Ubuntu archive and image mirrors, and probes them every so
often to check that they re reasonably complete and up to date.) This only
affected HTTPS mirrors when probed via a proxy server, support for which is
a relatively recent feature in Launchpad and involved some code that we
never managed to unit-test properly: of course this is exactly the code that
went wrong. Sadly I wasn t able to sort out that gap, but at least the
fix
was simple.
Non-MIME-encoded email headers
As I mentioned above, there were substantial changes in the email package
between Python 2 and 3, and indeed between minor versions of Python 3. Our
test coverage here is pretty good, but it s an area where it s very easy to
have gaps. We noticed that a script that processes incoming email was
crashing on messages with headers that were non-ASCII but not
MIME-encoded (and
indeed then crashing again when it tried to send a notification of the
crash!). The only examples of these I looked at were spam, but we still
didn t want to crash on them.
The
fix
involved being somewhat more careful about both the handling of headers
returned by Python s email parser and the building of outgoing email
notifications. This seems to be working well so far, although I wouldn t be
surprised to find the odd other incorrect detail in this sort of area.
Failure to handle non-ISO-8859-1 URL-encoded form input
Remember how I said that parsing HTTP form data was thorny? After we
finished upgrading all our appservers to Python 3, people started reporting
that they couldn t post Unicode comments to
bugs, which turned out
to be only if the attempt was made using JavaScript, and was because I
hadn t quite managed to get URL-encoded form data working properly with
zope.publisher and multipart. The current standard describes the
URL-encoded format for form data as in many ways an aberrant
monstrosity ,
so this was no great surprise.
Part of the problem was some very strange
choices in
zope.publisher dating back to 2004 or earlier, which I attempted to clean
up and simplify.
The rest was that Python 2 s urlparse.parse_qs unconditionally decodes
percent-encoded sequences as ISO-8859-1 if they re passed in as part of a
Unicode string, so multipart needs to work around
this on Python 2.
I m still not completely confident that this is correct in all situations,
but at least now that we re on Python 3 everywhere the matrix of cases we
need to care about is smaller.
Inconsistent marshalling of Loggerhead s disk cache
We use Loggerhead for providing web
browsing of Bazaar branches. When we upgraded one of its two servers to
Python 3, we immediately noticed that the one still on Python 2 was failing
to read back its revision information cache, which it stores in a database
on disk. (We noticed this because it caused a deployment to fail: when we
tried to roll out new code to the instance still on Python 2, Nagios checks
had already caused an incompatible cache to be written for one branch from
the Python 3 instance.)
This turned out to be a similar problem to the pickle issue mentioned
above, except this one was with marshal, which I didn t think to look for
because it s a relatively obscure module mostly used for internal purposes
by Python itself; I m not sure that Loggerhead should really be using it in
the first place. The fix was
relativelystraightforward,
complicated mainly by now needing to cope with throwing away unreadable
cache data.
Ironically, if we d just gone ahead and taken the nominally riskier path of
upgrading both servers at the same time, we might never have had a problem here.
Intermittent bzr failures
Finally, after we upgraded one of our two Bazaar codehosting servers to
Python 3, we had a
report of intermittent
bzr branch hangs. After some digging I found this in our logs:
Traceback (most recent call last):...
File "/srv/bazaar.launchpad.net/production/codehosting1-rev-20124175fa98fcb4b43973265a1561174418f4bd/env/lib/python3.5/site-packages/twisted/conch/ssh/channel.py", line 136, in addWindowBytesself.startWriting()
File "/srv/bazaar.launchpad.net/production/codehosting1-rev-20124175fa98fcb4b43973265a1561174418f4bd/env/lib/python3.5/site-packages/lazr/sshserver/session.py", line 88, in startWritingresumeProducing()
File "/srv/bazaar.launchpad.net/production/codehosting1-rev-20124175fa98fcb4b43973265a1561174418f4bd/env/lib/python3.5/site-packages/twisted/internet/process.py", line 894, in resumeProducingforpinself.pipes.itervalues():builtins.AttributeError: 'dict' object has no attribute 'itervalues'
I d seen this before in our git hosting service: it was a bug in Twisted s
Python 3 port, fixed after
20.3.0 but unfortunately after the last release that supported Python 2, so
we had to backport that patch. Using the same backport dealt with this.
Onwards!
Piranesi is a story told in first-person journal entries by someone
who lives in a three-floored world of endless halls full of statues. The
writing style is one of the most distinctive things about this book (and
something you'll have to get along with to enjoy it), so it's worth
quoting a longer passage from the introductory description of the world:
I am determined to explore as much of the World as I can in my
lifetime. To this end I have travelled as far as the
Nine-Hundred-and-Sixtieth Hall to the West, the
Eight-Hundred-and-Ninetieth Hall to to the North and the
Seven-Hundred-and-Sixty-Eighth Hall to the South. I have climbed up
to the Upper Halls where Clouds move in slow procession and Statues
appear suddenly out of the Mists. I have explored the Drowned Halls
where the Dark Waters are carpeted with white water lilies. I have
seen the Derelict Halls of the East where Ceilings, Floors sometimes
even Walls! have collapsed and the dimness is split by shafts of
grey Light.
In all these places I have stood in Doorways and looked ahead. I have
never seen any indication that the World was coming to an End, but
only the regular progression of Halls and Passageways into the Far
Distance.
No Hall, no Vestibule, no Staircase, no Passage is without its
Statues. In most Halls they cover all the available space, though
here and there you will find an Empty Plinth, Niche or Apse, or even a
blank space on a Wall otherwise encrusted with Statues. These
Absences are as mysterious in their way as the Statues themselves.
So far as the protagonist knows, the world contains only one other living
person, the Other, and thirteen dead ones who exist only as bones. The
Other is a scientist searching for Great and Secret Knowledge, and calls
the protagonist Piranesi, which is odd because that is not the
protagonist's name.
Be warned that I'm skating around spoilers for the rest of this review. I
don't think I'm giving away anything that would ruin the book, but the
nature of the story takes some sharp turns. If knowing anything about
that would spoil the book for you and you want to read this without that
knowledge, you may want to stop reading here.
I also want to disclose early in this review that I wanted this to be a
different book than it is, and that had a significant impact on how much I
enjoyed it. Someone who came to it with different expectations may have a
different and more enjoyable experience.
I was engrossed by the strange world, the atmosphere, and the mystery of
the halls full of statues. The protagonist is also interested in the same
things, and the early part of the book is full of discussion of
exploration, scientific investigation, and attempts to understand the
nature of the world. That led me to hope for the sort of fantasy novel in
which the setting is a character and where understanding the setting is a
significant part of the plot.
Piranesi is not that book. The story that Clarke wants to tell is
centered on psychology rather than setting. The setting does not become a
character, nor do we learn much about it by the end of the book. While we
do learn how the protagonist came to be in this world, my first thought
when that revelation starts halfway through the book was "this is going to
be disappointing." And, indeed, it was.
I say all of this because I think Piranesi looks, from both its
synopsis and from the first few chapters, like it's going to be a world
building and exploration fantasy. I think it runs a high risk of
disappointing readers in the way that it disappointed me, and that can
lead to disliking a book one may have enjoyed if one had read it in a
different mood and with a different set of expectations.
Piranesi is, instead, about how the protagonist constructs the
world, about the effect of trauma on that construction, and about the
complexities hidden behind the idea of recovery. And there is a lot to
like here: The ending is complex and subtle and does not arrive at easy
answers (although I also found it very sad), and although Clarke, by the
end of the book, is using the setting primarily as metaphor, the
descriptions remain vivid and immersive. I still want the book that I
thought I was reading, but I want that book in large part because the
fragments of that book that are in this one are so compelling and
engrossing.
What did not work for me was every character in the book except for the
protagonist and one supporting character.
The relationship between the protagonist and the Other early in the book is
a lovely bit of unsettling complexity. It's obvious that the Other has a
far different outlook on the world than the protagonist, but the
protagonist seems unaware of it. It's also obvious that the Other is a
bit of a jerk, but I was hoping for a twist that showed additional
complexity in his character. Sadly, when we get the twist, it's not in
the direction of more complexity. Instead, it leads to a highly
irritating plot that is unnecessarily prolonged through the protagonist
being gullible and child-like in the face of blatantly obvious
gaslighting. This is a pattern for the rest of the book: Once villains
appear on stage, they're one-note narcissists with essentially no depth.
There is one character in Piranesi that I liked as well or better
than the protagonist, but they only show up late in the story and get very
little character development. Clarke sketches the outline of a character
I wanted to learn much more about, but never gives us the details on the
page. That leads to what I thought was too much telling rather than
showing in the protagonist's relationships at the end of the book, which
is part of why I thought the ending was so sad. What the protagonist
loses is obvious to me (and lines up with the loss I felt when the book
didn't turn out to be what I was hoping it would be); what the protagonist
gains is less obvious, is working more on the metaphorical level of the
story than the literal level, and is more narrated than shown.
In other words, this is psychological fantasy with literary sensibilities
told in a frame that looks like exploration fantasy. Parts of it,
particularly the descriptions and the sense of place, are quite skillful,
but the plot, once revealed, is superficial, obvious, and disappointing.
I think it's possible this shift in the reader's sense of what type of
book they're reading is intentional on Clarke's part, since it works with
the metaphorical topic of the book. But it's not the existence of a shift
itself that is my primary objection. I like psychological fantasy as well
as exploration fantasy. It's that I thought the book after the shift was
shallower, less interesting, and more predictable than the book before the
shift.
The one thing that is excellent throughout Piranesi, though, is the
mood. It takes a bit to get used to the protagonist's writing style (and
I continue to dislike the Affectation of capitalizing Nouns when writing
in English), but it's open-hearted, curious, thoughtful, observant, and
capable in a way I found delightful. Some of the events in this book are
quite dark, but it never felt horrifying or oppressive because the
protagonist remains so determinedly optimistic and upbeat, even when
yanked around by the world's most obvious and blatant gaslighting. That
persistent hopefulness and lightness is a good feature in a book published
in 2020 and is what carried me through the parts of the story I didn't
care for.
I wish this had been a different book than it was, or failing that, a book
with more complex and interesting supporting characters and plot to fit
its complex and interesting psychological arc. I also wish that Clarke
had done something more interesting with gender in this novel; it felt
like she was setting that up for much of the book, and then it never
happened. Ah well.
As is, I can't recommend Piranesi, but I can say the protagonist,
atmosphere, and sense of place are very well done and I think it will work
for some other readers better than it did for me.
Rating: 6 out of 10
VLC has a really neat feature which consists of
time-stretching audio to allow users to speed up or slow video playback
with the [ and ] keys without affecting the pitch of the sound. I
recently switched to Kodi as
my video player of choice and I was looking for the equivalent feature.
which allows me to press the Ch + and Ch - buttons on the remote to
adjust the speed while the video is playing (in full-screen mode only, not
with the menu displayed).
Examples
Here are three ways I use this functionality:
I set it to 0.9x for movies in languages I'm not totally proficient in.
I set it to 1.1x for almost everything since the difference is not
especially perceptible, but it still allows me to watch 10% more movies in
the same amount of time
I set it to 1.2x for Rick &
Morty because it makes
Rick even more hilariously
reckless and impatient.
Unfortunately, I haven't found a way to set the default tempo value. The
closest setting I could find is the one which allows you to set the maximum
tempo value maxtempo.
If you know of a way, please leave a comment!
Fugitive Telemetry is the fifth Murderbot novella. It is not a
sequel to the (as yet) lone novel, Network
Effect. Instead, it takes place between Exit Strategy and Network Effect, filling in more of the
backstory of the novel. You should not read it before Exit
Strategy, but I believe it and Network Effect could be read in any
order.
A human has been murdered on Preservation Station. That is not a thing
that happens on Preservation Station, which is normally a peaceful place
whose crime is limited to intoxication-related stupidity. Murderbot's
first worry, and the first worry of his humans, is that this may be one of
their enemies getting into position to target them. That risk at least
makes the murder worth investigating, rather than leaving it solely to
Station Security.
The problem from Murderbot's perspective is that there is an effective and
efficient way of doing such an investigation, which starts with hacking
into the security systems to get necessary investigative data and may end
with the silent disposal of dead bodies of enemy agents. But this is
Preservation Station, not the Corporation Rim, and Murderbot agreed to not
do things like casually compromise all the station security systems or
murder people who are security threats.
There was a big huge deal about it, and Security was all "but what if
it takes over the station's systems and kills everybody" and Pin-Lee
told them "if it wanted to do that it would have done it by now,"
which in hindsight was probably not the best response.
Worse, Murderbot's human wants it to work collaboratively with Station
Security. That is a challenge, given that Security has a lot of reasons
not to trust SecUnits, and Murderbot has a lot of reasons not to trust a
security organization (not to mention considers them largely incompetent).
Also, the surveillance systems are totally inadequate compared to the
Corporation Rim for various financial and civil rights reasons that are
doubtless wonderful except in situations where someone has been murdered.
But hopefully the humans won't get in the way too much.
This is one of those books (well, novellas) that I finished a while back
but then stalled out on reviewing. I think that's because I don't have
that much to say about it. Network Effect pushed the
world-building and Murderbot's personal storyline forward significantly,
but Fugitive Telemetry doesn't pick up those threads. Instead,
this is another novella in much the same vein as the first four. If you,
like me, are eager to see where Wells takes the story after the events of
the novel, this is somewhat disappointing. But if you enjoyed the
novellas, this is more of what you enjoyed: snarky comments about
humanity,
competence porn, Murderbot getting pulled into problems somewhat against
its will and then trying to sort them out, and the occasional touching
moment of emotional connection that Murderbot escapes from as quickly as
possible.
It's quite enjoyable, helped considerably by Wells's wise choice to not
make the supporting human characters idiots. Collaboration is not
Murderbot's strength; it is certain the investigation will be an endless
series of frustrations and annoyances given the level of suspicion Station
Security starts with. But some humans (and some SecUnits) are capable of
re-evaluating their conclusions when given new evidence, and watching that
happen is part of the fun of this novella.
What this novella is missing is the overarching plot structure of the rest
of the series, since where this story sits chronologically doesn't leave
much room for advancing or even deepening the plot arc. It therefore
feels incidental: delightful while I was reading it, probably missable if
you have to, and not something I spent time thinking about after I
finished it.
If you liked the Murderbot novellas up until now, you will want to read
this one. If you haven't started the series yet, this is not a place to
start. If you want something more like the Network Effect novel,
or a story where Murderbot makes significant decisions about its future,
the wait continues.
Rating: 8 out of 10
I wrote about budgeting nine years ago and I've been a little reluctant to write about it again: by far, it's the blog post that has attracted the most requests from people asking me to link to their blog, site, or service.
I wasn't good at budgeting then and I'm still not good at it now, although I have learned a few things in the intervening time. Those things more properly relate to accounting than budgeting (so there's the first thing:
I learned the difference!). I wanted to write about some of the things I've learned since then, starting with our family's approach to pooling income.
Pooling
From talking to friends about how they manage stuff, this doesn't seem to be a common approach. We pay all our income into a shared account. We agree on an amount of "play money" that we can individually spend on whatever we like, and we pay that amount to ourselves from the shared account every month. Crucially, the amount we pick is the same for each of us, irrespective of our relative incomes. All of our shared family expenses come out of the shared account.
Some of my friends, especially (exclusively) the bread-winners, find this a bit alarming. One of the things I like about it is that whichever partner earns less than the other is not disadvantaged in terms of their discretionary spending. When my wife earned less than me, and I believe structural sexism was a contributing factor to that, that impacted us both equally. When my wife was not earning a salary at all, but was doing the lion's share of bringing up our children, she has the same discretionary spend as I do. Apart from the equity of it, there's a whole class of gripes and grumbles that some of my friends have about their partner's spending habits or money management that we completely avoid.
KVM switch. I am using ES-Tune KVM switch to switch Linux
and ChromeBox. The Linux side seems to be
unreliable. Sometimes it complains USB cable is bad. Reboot
doesn't fix it and reconnecting seems to improve the
state. Unplugging power from the KVM switch seems to fix the
situation sometimes. Could be the KVM switch issue.
I feel like I haven t had a lot to say about open source or, in general, tech for a while. From another perspective, I have a whole lot of heady things to say about open source and technology and writing about it seems like a questionable use of time when I have so much other writing and reading and job hunting to do. I will briefly share the two ideas I am obsessed with at the moment, and then try to write more about them later.
The Defensible-Charitable-Beneficent Trichotamy
I will just jokingly ha ha no but seriously maybe jk suggest calling this the de Blanc-West Theory, considering it s heavily based on ideas from Ben West.
Actions fall into one of the following categories:
Defensible: When an action is defensible, it is permissible, acceptable, or okay. We might not like it, but you can explain why you had to do it and we can t really object. This could also be considered the bare minimum.
Charitable: A charitable action is better than a defensible action in that it produces more good, and it goes above and beyond the minimum.
Beneficent: This is a genuinely good action that produces good. It is admirable.
I love J.J. Thomson example of Henry Fonda for this. For a full explanation see section three at this web site. For a summary: imagine that you re sick and the only thing that can cure you is Henry Fonda s cool touch on your fevered brow. It is Defensible for Henry Fonda to do nothing he doesn t owe you anything in particular. It is Charitable for, say if Henry Fonda happened to be in the room, to walk across it and touch your forehead. It is Beneficent for Henry Fonda to re-corporealize back into this life and travel to your bedside to sooth your strange illness. P.S. Henry Fonda died in 1982.
I don t think these ideas are particularly new, but it s important to think about what we re doing with technology and its design: are our decisions defensible, charitable, or beneficent? Which should they be? Why?
The Offsetting Harm-Ameliorating Harm-Doing Good Trichotamy
I ve been doing some research and writing around carbon credits. I owe a lot of thanks to Philip Withnall and Adam Lerner for talking with me through these ideas. Extrapolating from action and policy recommendations, I suggest the following trichotamy:
Offsetting harm is attempting to look at the damage you ve done and try to make up for it in some capacity. In the context of, e.g., air travel, this would be purchasing carbon credits.
Ameliorating harm is about addressing the particular harm you ve done. Instead of carbon credits, you would be supporting carbon capture technologies or perhaps giving to or otherwise supporting groups and ecosystems that are being harmed by your air travel.
Doing Good is Doing Good. This would be like not traveling by air and choosing to still help the harm being caused by carbon emissions.
These ideas are also likely not particularly new, but thinking about technology in this context is also useful, especially as we consider technology in the context of climate change.
I realised this week that my recent efforts to improve how Consfigurator makes
the fork(2) system call have also created a way to install executables to
remote systems which will execute arbitrary Common Lisp code. Distributing
precompiled programs using free software implementations of the Common Lisp
standard tends to be more of a hassle than with a lot of other high level
programming languages. Executables will often be hundreds of megabytes in
size even if your codebase is just a few megabytes, because the whole
interactive Common Lisp environment gets bundled along with your program s
code. Commercial Common Lisp implementations manage to do better, as I
understand it, by knowing how to shake out unused code paths. Consfigurator s
new mechanism uploads only changed source code, which might only be kilobytes
in size, and updates the executable on the remote system. So it should be
useful for deploying Common Lisp-powered web services, and the like.
Here s how it works. When you use Consfigurator you define an ASDF system
analagous to a Python package or Perl distribution called your consfig .
This defines HOST objects to represent the machines that you ll use
Consfigurator to manage, and any custom properties, functions those properties
call, etc.. An ASDF system can depend upon other systems; for example, every
consfig depends upon Consfigurator itself. When you execute Consfigurator
deployments, Consfigurator uploads the source code of any ASDF systems that
have changed since you last deployed this host, starts up Lisp on the remote
machine, and loads up all the systems. Now the remote Lisp image is in a
similarly clean state to when you ve just started up Lisp on your laptop and
loaded up the libraries you re going to use. Only then are the actual
deployment instructions are sent on stdin.
What I ve done this week is insert an extra step for the remote Lisp image in
between loading up all the ASDF systems and reading the deployment from stdin:
the image calls fork(2) and establishes a pipe to communicate with the child
process. The child process can be sent Lisp forms to evaluate, but for each
Lisp form it receives it will actually fork again, and have its child
process evaluate the form. Thus, going into the deployment, the original
remote Lisp image has the capability to have arbitrary Lisp forms evaluated in
a context in which all that has happened is that a statically defined set of
ASDF systems has been loaded the child processes never see the full
deployment instructions sent on stdin. Further, the child process responsible
for actually evaluating the Lisp form received from the first process first
forks off another child process and sets up its own control pipe, such that it
too has the capacbility to have arbitrary Lisp forms evaluated in a cleanly
loaded context, no matter what else it might put in its memory in the
meantime. (Things are set up such that the child processes responsible for
actually evaluating the Lisp forms never see the Lisp forms received for
evaluation by other child processes, either.)
So suppose now we have an ASDF system :com.silentflame.cool-web-service,
and there is a function (start-server PORT) which we should call to start
listening for connections. Then we can make our consfig depend upon that ASDF
system, and do something like this:
CONSFIG> (deploy-these ((:ssh :user "root") :sbcl) server.example.org
;; Set up Apache to proxy requests to our service.
(apache:https-vhost ...)
;; Now apply a property to dump the image.
(image-dumped "/usr/local/bin/cool-web-service"
'(cool-web-service:start-server 1234)))
Consfigurator will: SSH to server.example.org; upload all the ASDF source for
your consfig and its dependencies; compile and load that code into a remote
SBCL process; call fork(2) and set up the control pipe; receive the
applications of APACHE:HTTPS-VHOST and IMAGE-DUMPED shown above from your
laptop, on stdin; apply the APACHE:HTTPS-VHOST property to ensure that Apache
is proxying connections to port 1234; send a request into the control pipe to
have the child process fork again and dump an executable which, when started,
will evaluate the form (cool-web-service:start-server 1234). And that
form will get evaluated in a pristine Lisp image, where the only meaningful
things that have happened is that some ASDF systems have been loaded and a
single fork(2) has taken place. You d probably need to add some other
properties to add some mechanism for actually invoking
/usr/local/bin/cool-web-service and restarting it when the executable is
updated.
(Background: The primary reason why Consfigurator s remote Lisp images need to
call fork(2) is that they need to do things like setuid from root to other
accounts and enter chroots without getting stuck in those contexts.
Previously we forked right before entering such contexts, but that meant that
Consfigurator deployments could never be multithreaded, because it might later
be necessary to fork, and you can t usually do that once you ve got more than
one thread running. So now we fork before doing anything else, so that the
parent can then go multithreaded if desired, but can still execute
subdeployments in contexts like chroots by sending Lisp forms to evaluate in
those contexts into the control pipe.)
Quick hardware review
This is a neat little device. It's very similar to the Glo HD, which
is a bit disappointing: you'd think they would have improved on the
design in the 5+ years since the Glo HD has come out.. It does have an
"amber" night light which is nice, but the bezel is still not level
with the display, and the device is still kind of on the thick side. A
USB-C (instead of micro-USB) port would have been nice too.
But otherwise, it's pretty slick, and just works. And because the
hardware design didn't change, I can still hack at it like a madman,
which is really why I bought this thing in the first place.
Hopefully it will last longer than 5 years. Ebook readers should
really last for decades, not years, but I guess that's too much to
expect from our consumerist, suicidal, extinctionist society.
Configuration hacks
Here are the hacks I done on the device. I had done many more hacks on
the Kobo Glo HD, but I decided to take a more streamlined, minimalist
and, hopefully, easier for new users than the pile of hacks I was
doing before (which I expand on at the end of the article).
SD card replacement
I replaced the SD card. The original card shipped with the Clara
HD was 8GB which meant all my books actually fitted on the original,
but just barely. The new card is 16GB.
Unfortunately, I did this procedure almost at the end of this guide
(right before writing the syncthing scripts, below). Next time, that
should be the first thing done so the original SD card acts as a
pristine copy of the upstream firmware. So even though this seems like
an invasive and difficult procedure, I actually do recommend you do it
first.
The process is basically to:
crack open the Kobo case (don't worry, it sounds awful but I've
done it often)
take the SD card out
copy it over to a new, larger card (say on your computer)
Install koreader
My e-reader of choise is Koreader. It's just that great. I still don't
find the general user interface (ie. the "file browswer") as intuitive
as the builtin one, but the book reading just feels better. And
anyways it's the easier way to get a shell on the device.
Follow those instructions, particularly the NickelMenu
instructions (see also the NickelMenu home page). Yes, you need
to install some other thing to start koreader, which doesn't start on
its own. NickelMenu is the simplest and better integrated I have
found.
You might also want to install some dictionnaries and configure
SSH:
mount USB
drop your SSH public key in
.../KOBOeReader/.adds/koreader/settings/SSH/authorized_keys
Note that ed25519 keys do not work: try an RSA key. This might be
because koreader ships with dropbear (or an older version), but I
haven't verified this.
Install syncthing
I use Syncthing to copy all my books into the device now. I was
previously using Koreader's OPDS support with Calibre's web interface,
but that was clunky and annoying, and I'd constantly have to copy
books around. Now the entire collection is synchronized.
As a bonus, I can actually synchronise (and backup!) the koreader
metadata, since it's stored next to the files. So in theory, this
means I could use koreader from multiple devices and have my reading
progress sync'd, but I haven't tested that feature just yet.
I chose Syncthing because it's simple, lightweight, supported on
Linux and Android, and statically compiles by default which means it's
easy to deploy on the Kobo.
Here is how I installed and started Syncthing at first:
copy a valid ca-certificates.crt file (say from your Linux
desktop) into /etc/ssl/certs/ on the Kobo (otherwise syncthing
cannot bootstrap discovery servers)
launch syncthing over SSH: /mnt/onboard/.adds/syncthing
You should now be able to connect to the syncthing GUI through your
web browser.
Immediately change the GUI admin user and password on the
Settings: GUI tab.
Then, figure out how to start it. Here are your options:
on boot (inittab or whatever). downside: power usage.
on wifi (udev hacks). downside: unreliable (see wallabako).
on demand (e.g. nickel menu, koreader terminal
shortcuts). downside: kind of clunky in koreader, did not work in
nickel menu.
manually, through shell. downside: requires a shell, but then
again we already have one through koreader?
What I have done is to write trivial shell scripts (in
.../KOBOeReader/scripts) to start syncthing. The first is
syncthing-start.sh:
#!/bin/sh
/mnt/onboard/.adds/syncthing serve &
Then syncthing-stop.sh:
#!/bin/sh
/usr/bin/pkill syncthing
This makes those scripts usable from the koreader file browser. Then
the folder can be added to the folder shortcuts and a long-hold on the
script will allow you to execute it.
Still have to figure out why the Nickel Menu script is not working,
but it could simply reuse the above to simplify debugging. This is the
script I ended up with, in .../KOBOeReader/.adds/nm/syncthing:
It's unclear why this doesn't work: I only get "Error starting
Syncthing server" for the toggle, and no output for the (start)
action. In either case, syncthing doesn't actually start.
Avoided tasks
This list wouldn't be complete without listing more explicitly the
stuff I have done before on the Kobo Glo HD and which I have deliberately
decided not to do here because my time is precious:
plato install: beautiful project, but koreader is good enough
wallabako setup: too much work to maintain, Wallabag articles
are too distracting and available on my phone anyways
using calibre to transfer books: not working half the time,
different file layout than the source, one less Calibre
dependency
using calibre to generate e-books based on RSS feeds (yes, I did
that, and yes, it was pretty bad and almost useless)
If you have been involved in Debian packaging at all in the last few years, you
are probably aware that autopkgtest is now an important piece of the Debian
release process. Back in 2018, the automated testing migration process started
considering autopkgtest test results as part of its decision
making.
Since them, this process has received several improvements. For example, during
the bullseye freeze, non-key packages with a non-trivial
autopkgtest test suite could migrate automatically to testing without their
maintainers needing to open unblock requests, provided there was no regression
in theirs autopkgtest (or those from their reverse dependencies).
Since 2014 when ci.debian.net was first introduced, we have seen an
amazing increase in the number of packages in Debian that can be automatically
tested. We went from around 100 to 15,000 today. This means not only happier
maintainers because their packages get to testing faster, but also improved
quality assurance for Debian as a whole.
However, the growth rate seems to be decreasing. Maybe the low hanging fruit
have all been picked, or maybe we just need to help more people jump in the
automated testing bandwagon.
With that said, we would like to encourage and help more maintainers to add
autopkgtest to their packages. To that effect, I just created the
autopkgtest-help repository on salsa, where we will take
help requests from maintainers working on autopkgtest for their packages.
If you want help, please go ahead and create an issue in there.
To quote the repository README:
Valid requests:
"I want to add autopkgtest to package X. X is a tool that [...] and it works
by [...]. How should I approach testing it?"
It's OK if you have no idea where to start. But at least try to describe your
package, what it does and how it works so we can try to help you.
"I started writing autopkgtest for X, here is my current work in progress
[link]. But I encountered problem Y. How to I move forward?"
If you already have an autopkgtest but is having trouble making it work as
you think it should, you can also ask here.
Invalid requests:
"Please write autopkgtest for my package X for me".
As with anything else in free software, please show appreciation for other
people's time, and do your own research first. If you pose your question with
enough details (see above) and make it interesting, it may be that whoever
answers will write at least a basic structure for you, but as the maintainer
you are still the expert in the package and what tests are relevant.
If you ask your question soon, you might get your answer recorded in video: we
are going to have a DebConf21 talk next month, where we I and
Paul Gevers (elbrus) will answer a few autopkgtest questions in video for
posterity.
Now, if you have experience enabling autopkgtest for you own packages, please
consider watching that repository there to help us help our fellow maintainers.
BBI Kenya and live Supreme Court streaming on YT
The last few weeks have been unrelenting as all sorts of news have been coming in, mostly about the downturn in the Economy, Islamophobia in India on the rise, Covid, and electioneering. However, in the last few days, Kenya surpassed India in live-streaming proceeds in a Court of Appeals about BBI or Building Bridges Initiative. A background filler article on the topic can be found in BBC. The live-streaming was done via YT and if wants to they can start from
https://www.youtube.com/watch?v=JIQzpmVKvro
One can also subscribe to K24TV which took the initiative of sharing the proceedings with people worldwide. If K24TV continues to share SC proceedings of Kenya, that would add to the soft power of Kenya. I will not go into the details of the case as Gautam Bhatia who has been following the goings-on in Kenya is a far better authority on the subject. In fact, just recently he shared about another Kenyan judgment from a trial which can be seen here. He has shared the proceedings and some hot takes on the Twitter thread started by him. Probably after a couple of weeks or more when he has processed what all has happened there, he may also share some nuances although many of his thoughts would probably go to his book on Comparative Constitutional Law which he hopes to publish maybe in 2021/2022 or whenever he can. Such televised proceedings are sure to alleviate the standing of Kenya internationally. There has been a proposal to do similar broadcasts by India but with surveillance built-in, so they know who is watching. The problems with the architecture and the surveillance built-in have been shared by Srinivas Kodali or DigitalDutta quite a few times, but that probably is a story for another day.
Uttar Pradesh Population Control BillHindus comprise 83% of Indian couples with more than two child children
The U.P. Population Bill came and it came with lot of prejudices. One of the prejudices is the idea that Muslims create or procreate to have the most children. Even with data is presented as shared above from NFHS National Family Health Survey which is supposed to carry our surveys every few years did the last one around 4 years back. The analysis from it has been instrumental not only in preparing graphs as above but also sharing about what sort of death toll must have been in rural India. And as somebody who have had the opportunity in the past, can vouch that you need to be extremely lucky if something happens to you when you are in a rural area.
Even in places like Bodh Gaya (have been there) where millions of tourists come as it is one of the places not to be missed on the Buddhism tourist circuit, the medical facilities are pretty underwhelming. I am not citing it simply because there are too many such newspaper reports from even before the pandemic, and both the State and the Central Govt. response has been dismal. Just a few months back, they were recalled. There were reports of votes being bought at INR 1000/- (around $14) and a bottle or two of liquor. There used to be a time when election monitoring whether national or state used to be a thing, and you had LTO s (Long-time Observers) and STO s (Short-Term Observers) to make sure that the election has been neutral. This has been on the decline in this regime, but that probably is for another time altogether. Although, have to point out the article which I had shared a few months ago on the private healthcare model is flawed especially for rural areas. Instead of going for cheap, telemedicine centers that run some version of a Linux distro. And can provide a variety of services, I know Kerala and Tamil Nadu from South India have experimented in past but such engagements need to be scaled up. This probably will come to know when the next time I visit those places (sadly due to the virus, not anytime soonish.:( ) .
Going back to the original topic, though, I had shared Hans Rosling s famous Ted talk on population growth which shows that even countries which we would not normally associate with family planning for e.g. the middle-east and Africa have also been falling quite rapidly. Of course, when people have deeply held prejudices, then it is difficult. Even when sharing China as to how they had to let go of their old policy in 2016 as they had the thing for leftover men . I also shared the powerful movie So Long my Son. I even shared how in Haryana women were and are trafficked and have been an issue for centuries but as neither suits the RW propaganda, they simply refuse to engage. They are more repulsed by people who publish this news rather than those who are actually practicing it, as that is culture . There is also teenage pregnancy, female infanticide, sex-selective abortion, etc., etc. It is just all too horrible to contemplate.
Personal anecdote I know a couple, or they used to be a couple, where the gentleman wanted to have a male child. It was only after they got an autistic child, they got their DNA tested and came to know that the gentleman had a genetic problem. He again forced and had another child, and that too turned out to be autistic. Finally, he left the wife and the children, divorced them and lived with another woman. Almost a decade of the wife s life was ruined. The wife before marriage was a gifted programmer employed at IBM. This was an arranged marriage. After this, if you are thinking of marrying, apart from doing astrology charts, also look up DNA compatibility charts. Far better than ruining yours or the women s life. Both the children whom I loved are now in heaven, god bless them
If one wants to, one can read a bit more about the Uttar Pradesh Population bill here. The sad part is that the systems which need fixing, nobody wants to fix. The reason being simple. If you get good health service by public sector, who will go to the private sector. In Europe, AFAIK they have the best medical bang for the money. Even the U.S. looks at Europe and hopes it had the systems that Europe has but that again is probably for another day.
South Africa and India long-lost brothers.
As had shared before, after the 2016 South African Debconf convention, I had been following South Africa. I was happy when FeesMustFall worked and in 2017 the then ANC president Zuma declared it in late 2017. I am sure that people who have been regular visitors to this blog know how my position is on student loans. They also must be knowing that even in U.S. till the 1970s it had free education all the way to be a lawyer and getting a lawyer license. It is only when people like Thurgood Marshall, Martin Luther King Jr., and others from the civil rights movement came out as a major force that the capitalists started imposing fees. They wanted people who could be sold to corporate slavery, and they won. Just last week, Biden took some steps and canceled student loans and is working on steps towards broad debt forgiveness.
Interestingly, NASA has an affirmative diversity program for people from diverse backgrounds, where a couple of UC (Upper Caste) women got the job. While they got the job, the RW (Right-Wing) was overjoyed as they got jobs on merit . Later, it was found that both the women were the third or fourth generation of immigrants in U.S.
NASA Federal Equal Opportunity Policy Directive NPD 3713 2H
Going back to the original question and topic, while there has been a concerning spate of violence, some calling it the worst sort of violence not witnessed since 1994. The problem, as ascertained in that article, is the same as here in India or elsewhere.
Those, again, who have been on my blog know that merit 90% of the time is a function of privilege and there is a vast amount of academic literature which supports that.
If, for a moment, you look at the data that is shared in the graph above which shows that 83% of Hindus and 13% of Muslims have more than 2 children, what does it show, it shows that 83+13 = 96% of the population is living in insecurity. The 5% are the ones who have actually consolidated more power during this regime rule in India. Similarly, from what I understood living in Cape Town for about a month, it is the Dutch Afrikaans as they like to call themselves and the immigrants who come from abroad who have enjoyed the fruits of tourism and money and power while the rest of the country is dying due to poverty. It is the same there, it is the same here. Corruption is also rampant in both countries, and the judiciary is virtually absent from both communities in India and SA. Interestingly, South Africa and India have been at loggerheads, but I suspect that is more due to the money and lobbying power by the Dutch. Usually, those who have money power, do get laws and even press on their side, and it is usually the ruling party in power. I cannot help but share about the Gupta brothers and their corruption as I came to know about it in 2016. And as have shared that I m related to Gupta s on my mother s side, not those specific ones but Gupta as a clan. The history of the Gupta dynasty does go back to the 3rd-4th century.
Equally interesting have been Sonali Ranade s series of articles which she wrote in National Herald, the latest on exports which is actually the key to taking India out of poverty rather than anything else. While in other countries Exporters are given all sort of subsidies, here it is being worked as how to give them less. This was in Economic times hardly a week back Export incentive schemes being reduced
I can t imagine the incredible stupidity done by the Finance Minister. And then in an attempt to prove that, they will attempt to present a rosy picture with numbers that have nothing to do with reality.
Interestingly enough, India at one time was a major exporter of apples, especially from Kashmir. Now instead of exporting, we are importing them from Afghanistan as well as Belgium and now even from the UK. Those who might not want to use the Twitter link could use this article. Of course, what India got out of this trade deal is not known. One can see that the UK got the better deal from this. Instead of investing in our own capacity expansion, we are investing in increasing the capacity of others. This is at the time when due to fuel price hike (Central taxes 66%) demand is completely flat. And this is when our own CEA (Chief Economic Adviser) tells us that growth will be at the most 6-7% and that too in 2023-2024 while currently, the inflation rate is around 12%. Is it then any wonder that almost 70% are living on Govt. ration and people in the streets of Kolkata, Assam, and other places have to sell kidneys to make sure they have some money for their kids for tomorrow. Now I have nothing against the UK but trade negotiation is an art. Sadly, this has been going on for the last few years. The politicians in India fool the public by always telling of future trade deals. Sadly, as any businessman knows, once you have compromised, you always have to compromise. And the more you compromise, the more you weaken the hand for any future trade deals. IIT pupil tries to sell kidney to repay loan, but no takers for Dalit organ.
The above was from yesterday s Times of India. Just goes to show how much people are suffering. There have been reports in vernacular papers of quite a few people from across regions and communities are doing this so they can live without pain a bit.
Almost all the time, the politicians are saved as only few understand international trade, the diplomacy and the surrounding geopolitics around it. And this sadly, is as much to do with basic education as much as it is to any other factor
Suli Deals
About a month back on the holy day of Ramzan or Ramadan as it is known in the west, which is beloved by Muslims, a couple of Muslim women were targeted and virtually auctioned. Soon, there was a flood and a GitHub repository was created where hundreds of Muslim women, especially those who have a voice and fearlessly talk about their understanding about issues and things, were being virtually auctioned. One week after the FIR was put up, to date none of the people mentioned in the FIR have been arrested. In fact, just yesterday, there was an open letter which was published by livelaw. I have saved a copy on WordPress just in case something does go wrong. Other than the disgust we feel, can t say much as no action being taken by GOI and police.
IT Rules 2021 and Big Media
After almost a year of sleeping when most activists were screaming hoarsely about how the new IT rules are dangerous for one and all, big media finally woke up a few weeks back and listed a writ petition in Madras High Court of the same. Although to be frank, the real writ petition was filed In February 2021, classical singer, performer T.M. Krishna in Madras High Court. Again, a copy of the writ petition, I have hosted on WordPress. On 23rd June 2021, a group of 13 media outlets and a journalist have challenged the IT Rules, 2021.
The Contention came from Digital News Publishers Association which is made up of the following news companies: ABP Network Private Limited, Amar Ujala Limited, DB Corp Limited, Express Network Pvt Ltd, HT Digital Streams Limited, IE Online Media Services Pvt Ltd, Jagran Prakashan Limited, Lokmat Media Private Limited, NDTV Convergence Limited, TV Today Network Limited, The Malayala Manorama Co (P) Ltd, Times Internet Limited, and Ushodaya Enterprises Private Limited. All the above are heavyweights in the markets where they operate. The reason being simple, when these media organizations came into being, the idea was to have self-regulation, which by and large has worked. Now, the present Govt. wants each news item to be okayed by them before publication. This is nothing but blatant misuse of power and an attempt at censorship. In fact, the Tamil Nadu BJP president himself made a promise of the same. And of course, what is true and what is a lie, only GOI knows and will decide for the rest of the country. If somebody remembers Joseph Goebbels at this stage, it is merely a coincidence. Anyways, 3 days ago Supreme Court on 14th July the Honorable Supreme Court asked the Madras High Court to transfer all the petitions to SC. This, the Madras High Court denied as cited/shared by Meera Emmanuel, a reporter who works with barandbench. The Court says nothing doing, let this happen and then the SC can entertain the motion of doing it that level. At the same time, they would have the benefit of Madras High Court opinion as well. It gave the center two weeks to file a reply. So, either of end-week of July or latest by August first week, we might be able to read the Center s reply on the same. The SC could do a forceful intervention, but it would lead to similar outrage as has been witnessed in the past when a judge commented that if the SC has to do it all, then why do we need the High Courts, district courts etc. let all the solutions come from SC itself. This was, admittedly, frustration on the part of the judge, but due in part to the needless intervention of SC time and time again. But the concerns had been felt around all the different courts in the country.
Sedition Law
A couple of days ago, the Supreme Court under the guidance of Honorable CJI NV Ramanna, entertained the PIL filed by Maj Gen S G Vombatkere (Retd.) which asked simply that the sedition law which was used in the colonial times by the British to quell dissent by Mahatma Gandhi and Bal Gangadhar Tilak during the Indian freedom struggle. A good background filler article can be found on MSN which tells about some recent cases but more importantly how historically the sedition law was used to quell dissent during India s Independence. Another article on MSN actually elaborates on the PIL filed by Maj Gen S. G. Vombatkere. Another article on MSN tells how sedition law has been challenged and changed in 10 odd countries. I find it equally sad and equally hilarious that the Indian media whose job is to share news and opinion on this topic is being instead of being shared more by MSN. Although, I would be bereft of my duty if I did not share the editorial on the same topic by the Hindu and Deccan Chronicle. Also, an interesting question to ask is, are there only 10 countries in the world that have sedition laws? AFAIK, there are roughly 200 odd countries as recognized by WTO. If 190 odd countries do not have sedition laws, it also tells a lot about them and a lot about the remaining 10. Also, it came to light that police are still filing laws under sec66A which was declared null and void a few years ago. It was replaced with section 124A if memory serves right and it has more checks and balances.
Danish Siddiqui, Pulitzer award-winning and death in Afghanistan
Before I start with Danish Siddiqui, let me share an anecdote that I think I have shared on the blog years ago about how photojournalists are. Again, those who know me and those who follow me know how much I am mad both about trains and planes (civil aviation). A few months back, I had shared a blog post about some of the biggest railway systems in the world which shows that privatization of Railways doesn t necessarily lead to up-gradation of services but definitely leads to an increase in tariff/fares. Just had a conversation couple of days ago on Twitter and realized that need to also put a blog post about civil aviation in India and the problems it faces, but I digress.
This was about a gentleman who wanted to take a photo of a particular train coming out of a valley at a certain tunnel at two different heights, one from below and one from above the train. This was several years ago, and while I did share that award-winning photograph then, it probably would take me quite a bit of time and effort to again look it up on my blog and share.
The logistics though were far more interesting and intricate than I had first even thought of. We came around a couple of days before the train was supposed to pass that tunnel and the valley. More than half a dozen or maybe more shots were taken throughout the day by the cameras. The idea was to see how much light was being captured by the cameras and how much exposure was to be given so that the picture isn t whitened out or is too black.
Weather is the strangest of foes for a photojournalist or even photographers, and the more you are in nature, the more unpredictable it is and can be. We were also at a certain height, so care had to be taken in case light rainfall happens or dew falls, both not good for digital cameras.
And dew is something which will happen regardless of what you want. So while the two days our gentleman cameraman fiddled with the settings to figure out correct exposure settings, we had one other gentleman who was supposed to take the train from an earlier station and apprise us if the train was late or not.
The most ideal time would be at 0600 hrs. When the train would enter the tunnel and come out and the mixture of early morning sun rays, dew, the flowers in the valley, and the train would give a beautiful effect. We could stretch it to maybe 0700 hrs.
Anything after that would just be useless, as it wouldn t have the same effect. And of all this depended on nature. If the skies were to remain too dark, nothing we could do about it, if the dewdrops didn t fall it would all be over.
On the day of the shoot, we were told by our compatriot that the train was late by half an hour. We sank a little on hearing that news. Although Photoshop and others can do touch-ups, most professionals like to take as authentic a snap as possible. Everything had been set up to perfection. The wide-angle lenses on both the cameras with protections were set up. The tension you could cut with a knife. While we had a light breakfast, I took a bit more and went in the woods to shit and basically not be there. This was too tensed up for me. Returned an hour to find everybody in a good mood. Apparently, the shoot went well. One of the two captured it for good enough. Now, this is and was in a benign environment where the only foe was the environment. A bad shot would have meant another week in the valley, something which I was not looking forward to. Those who have lived with photographers and photojournalists know how self-involved they can be in their craft, while how grumpy they can be if they had a bad shoot. For those, who don t know, it is challenging to be friends with such people for a long time. I wish they would scream more at nature and let out the frustrations they have after a bad shoot. But again, this is in a very safe environment.
Now let s cut to Danish Siddiqui and the kind of photojournalism he followed. He followed a much more riskier sort of photojournalism than the one described above. Krittivas Mukherjee in his Twitter thread shared how reporters in most advanced countries are trained in multiple areas, from risk assessment to how to behave in case you are kidnapped, are in riots, hostage situations, etc. They are also trained in all sorts of medical training from treating gunshot wounds, CPR, and other survival methods. They are supposed to carry medical equipment along with their photography equipment. Sadly, these concepts are unknown in India. And even then they get killed. Sadly, he attributes his death to the thrill of taking an exclusive photograph. And the gentleman s bio reads that he is a diplomat. Talk about tone-deafness
On another completely different level was Karen Hao who was full of empathy as she shared the humility, grace, warmth and kinship she describes in her interaction with the photojournalist. His body of work can be seen via his ted talk in 2020 where he shared a brief collage of his works. Latest, though in a turnaround, the Taliban have claimed no involvement in the death of photojournalist Danish Siddiqui. This could be in part to show the Taliban in a more favorable light as they do and would want to be showcased as progressive, even though they are forcing that all women within a certain age become concubines or marry the fighters and killing the minority Hazaras or doing vile deeds with them. Meanwhile, statements made by Hillary Clinton almost a decade, 12 years ago have come back into circulation which stated how the U.S. itself created the Taliban to thwart the Soviet Union and once that job was finished, forgot all about it. And then in 2001, it landed back in Afghanistan while the real terrorists were Saudi. To date, not all documents of 9/11 are in the public domain. One can find more information of the same here. This is gonna take probably another few years before Saudi Arabia s whole role in the September 11 attacks will be known.
Last but not the least, came to know about the Pegasus spyware and how many prominent people in some nations were targeted, including in mine India. Will not talk more as it s already a big blog post and Pegasus revelations need an article on its own.