567 karma · joined Aug 22, 2011 (15y ago) · 139 submissions
comment 10mo ago · link · parent
String operations in Python are fast as well. f-strings are the fastest formatting style, while even the slowest style is still measured in just nano-seconds.
Concatenation (+) 39.1 ns (25.6M ops/sec)
f-string 64.9 ns (15.4M ops/sec)
It says f-strings are fastest but the numbers show concatenation taking less time? I thought it might be a typo but the bars on the graph reflect this too?comment 1y ago · link · parent
BaseEstimator.__init__(self, **kwargs)
ServingMixin.__init__(self, **kwargs)
If one wants to inherit from multiple classes then they should be responsible for specifying the details of how that happens. Why should a base class be expected to add boilerplate just in case some external consumer comes along and wants to use it in some unforeseeable context?That super() has a "method resolution order" seems like a fudge. Now 'super' doesn't necessarily mean 'superclass' anymore at the point of use. Am I missing some other hypothetical situation in which super()'s MRO brings more value for the price of having to know about this extra, implicit behaviour?
And what's funny is that in the example given, the first base class not calling super() leads to the bad consequence that the other base class doesn't get to set some internal state (self.mode). Yet in the next section, "When to use a Mixin", it advises: "A mixin is a class that [...] does not contain state"
comment 1y ago · link · parent
* Gints Zilbalodis, who is 30 years old, is the youngest director to win the Oscar for best animated feature.
* Flow is the first fully-European produced and funded film to win the feture animation Oscar.
* Flow is the first dialogue-less film to win the feature animation Oscar.
* Flow, made for under $4 million, is by far the lowest-budget film to ever win the category.
It also says the winner of the animated short category, In the Shadow of the Cypress, was unexpected since the Iranian filmmakers couldn't do any of the usual in-person campaigning of Academy voters due to visa problems.
[1] https://www.cartoonbrew.com/awards/underdogs-win-latvias-flo...
comment 2y ago · link · parent
(It right-shifts by 4 instead of 2.)
comment 2y ago · link · parent
Could do with 3 more stages ;P
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
11.
IPv6 and the coming IP Apocalypse:2024(medium.com ↗)
10 points · by CmdrKrool · 2y ago · 1 comment
comment 3y ago · link · parent
15.
Rescuing the lost code and stereo sound to Sinistar [video](youtube.com ↗)
64 points · by CmdrKrool · 3y ago · 11 comments
comment 3y ago · link · parent
(Not sure why Imgur is gating that with an adult content warning, but I assure you all it contains nothing of the sort.)
comment 3y ago · link · parent
I investigated and found that Firefox's in-memory DNS cache can be manually cleared by clicking a button in about:networking. To be fair Chrome also has a similar cache and method for clearing it. See: https://www.makeuseof.com/chrome-edge-firefox-safari-opera-b...
comment 3y ago · link · parent
This is the closest thing I found just now by googling, though by similarly 'directional' reasoning I think Del and Backspace don't belong in the central column and should be on opposite sides: https://www.keyboardco.com/keyboard/truly-ergonomic-227-mech...
comment 4y ago · link · parent
https://en.wikipedia.org/wiki/Soda_Constructor http://maciejmatyka.blogspot.com/2018/02/soda-constructor-re...
comment 4y ago · link · parent
https://www.pprune.org/military-aviation/499352-military-fli...
comment 4y ago · link · parent
comment 4y ago · link · parent
And BTW I'm using Chrome with uBlock Origin enabled here.
comment 4y ago · link · parent
Funnily enough I'm pretty sure I played Papers Please on this machine at length without problems but I think that was probably the Windows version through Wine.
comment 5y ago · link · parent
https://aware7.de/wp-content/uploads/Netscape_4.png
Doesn't look like a showstopper, at least for the specific toolbar icons that Netscape had.
comment 5y ago · link · parent