An interesting mistake with Go's context package that I (sort of) made
Today, Dave Cheney did another Go pop quiz on Twitter ,where he asked whether the following code printed -6, 0, ' I I've read a reasonable number of Vim tutorials and introductionsby now, and one of the things that stands out is how some of whatI do differs from what seems to be considered 'proper' Vim. Thesimple way to put it is that I use less of Vim's features than thetutorials often introduce. One of the best examples is somethingthat I do all of the time, which is reflowing paragraphs. The official proper Vim way to reflow paragraphs (based on tutorialsI've read The news of the time interval is that Firefox 80 is out and intheory it can support hardware video acceleration on X11, not justWayland ( source , also ).The master Mozilla tracking bug for hardware accelerated video onX11 is bug #1619523 , with allsorts of information. So I downloaded the official release (one ofmy Firefox setups uses the official builds these days for reasonsbeyond the scope of this entry) and tried to get it to do Back in the days of our OmniOS fileservers ,which used HDs (spinning rust) across iSCSI, we wound up changingkernel tunables to speed up ZFS scrubs andsaw a significant improvement. When we migrated to our currentLinux fileservers with SSDs , Ididn't bother including these tunables (or the Linux equivalent),because I expected that SSDs were fast enough that it didn't matter.Indeed, our SSD pools generally scrub like lightning. (Our Linux fileservers use a ZFS version before sequential scrubs ( also In early 2019 I wrote about the mystery of my home desktop thatwas locking up when it got too cold . Atthat point the machine was about a year old ( I built it in Marchor so of 2018 ) and the winter of 2018-2019was its first winter and thus my first chance to see this. I regretto report that I haven't really done anything since then, and themachine will still lock up when it gets By now, the desktop x86 PC market has segmented itself into a numberof categories. There are machines, CPUs, and motherboards that arebasic machines with limited features and made to be quite inexpensive,'business' machines that don't need very much but are more than thevery basics, machines for gaming enthusiasts, and HEDT ('High EndDesktop') workstations that are aimed at people building high poweredmachines. Typical examples of what are in these categories are inAnandtech's Best CPUs The general rule of the Internet is that everything gets spammed,so at one level it should be no surprise to me that bug reportingsystems for open source projects do. As it happens, I sort of havepersonal experience with this, especially through this old bugfor AMD Ryzens hanging on Linux , which I'msubscribed to because it sort of affects me . Actually reading the bug willgenerally not show you any spam, but that's because people go throughand remove it quite promptly when it's I recently discovered that argparse allows you to abbreviate longoptions , and then Chris Wellons wroteabout Conventions for (Unix) Command Line Options , which included a criticismof First, both Wellons and I had a bad reaction to argparse acceptingabbreviated options. However, based on the documentation you probably have to David Teller's Why Did Mozilla Remove XUL Add-ons? is the answer to this question, from someone who works on Firefox.Firefox XUL Add-ons are the old and more powerful form of addons,which have now been replaced by WebExtensions as of Firefox Quantum. I knew a certain amount about this area (and it's an interest ofmine, since Firefox WebExtensions still aren't quite as good for my addons ), but I didn't know all of thedetails and the article Once upon a time I might have believed in Google's fundamentalgoodness and well intentioned nature (probably with qualifications).Google themselves eventually taught me better, perhaps later thanit took for other people to realize that they were an amoralcorporation. For me, the moment of realization, the point where Iknew for sure that Google's "don't be evil" slogan was inoperative,was the great Google+ 'nymwars', where Google (for Google+) declared that everyone onGoogle+package main
import ( "context" "fmt")func f(ctx context.Context) { context.WithValue(ctx, "foo", -6)}func main() { ctx := context.TODO() f(ctx) fmt.Println(ctx.Value("foo"))}
My divergence from 'proper' Vim by not using and exploring features
Firefox 80 and my confusion over its hardware accelerated video on Linux
Even on SSDs, ongoing activity can slow down ZFS scrubs drastically
My home desktop is still locking up when it gets too cold (and what next)
I want a type of desktop PC (and motherboard) that's generally skipped
The Linux kernel bugzilla (and others) get spammed (of course)
Some bits on making Python's argparse module work like Unix usually does
argparse . I'mnot going to write about how to make argparse behave today, because Ihaven't explored that in full; instead, this is some quick notes fromthe documentation and my past experiences.
Link: Why Did Mozilla Remove XUL Add-ons?
When I stopped believing in Google's fundamental good nature
Menu