HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bionoid

no profile record

comments

bionoid
·قبل سنتين·discuss
I use Video Background Play Fix [1] (along with uBlock of course). "Firefox for Android can continue playing video even if you switch to another tab or app. However, sites can detect these user actions with the Page Visibility API and the Fullscreen API. This add-on is designed to block events and properties exposed by the APIs."

[1] https://github.com/mozilla/video-bg-play
bionoid
·قبل 4 سنوات·discuss
I'm not sure if I picked it up from a documentary or book, but worth noting that the photographer Frank Hurley dived into the ice water and chopped through a wood wall to rescue the glass plate negatives from the sinking ship. I'm not sure what the best source for this is, but it's at least mentioned in [0]

[0] https://www.pbs.org/wgbh/nova/shackletonexped/images.html
bionoid
·قبل 4 سنوات·discuss
I didn't get past the pricing page to be honest. Podio costs $20/seat for premium, your product costs $48 for pro (with enterprise price not even listed)
bionoid
·قبل 5 سنوات·discuss
> 1080p at 240hz with a fancy graphics card

On manufacturer's website [0], both the 15" and 17" Stellaris are listed with WQHD IPS-Panel (2560 x 1440 pixels) - I was looking at them just a few days ago.. The article lists 1080p as option, but it's not possible to order.

[0] https://www.tuxedocomputers.com
bionoid
·قبل 5 سنوات·discuss
I have seen it a lot of code over the years, sometimes referred to as "shorthand ternary" or the "and-or-trick". In Python and/or do not return a boolean, but one of its input arguments. So I am going to say it is official syntax, but I don't know to what extent it's encouraged
bionoid
·قبل 5 سنوات·discuss
Python also has "shorthand ternary" which uses and/or:

    a = bar and foo # "or None" is implied
    b = bar and foo or baz
It does almost the same but not quite. In the latter example, if foo is falsey, it evaluates to "b = baz":

    b = bar ? (foo ? foo : baz) : baz
bionoid
·قبل 5 سنوات·discuss
I cut my teeth on Perl back in the day, and while I have stopped using it completely by now, I am no hater. But this article does not contain the word "bless", and I wonder why it was left out. If I had to guess, it's not as easy to defend as the nice features.
bionoid
·قبل 5 سنوات·discuss
In case anyone is interested, the $N-Protractor algorithm was ported to Python for use in the Kivy framework [0]. Unfortunately it's tied to kivy's clock among other things, but easy to rip it out should you need it in a different context. There is also anexample application that can be used to create gesture templates [1]

[0] https://github.com/kivy/kivy/blob/master/kivy/multistroke.py

[1] https://github.com/kivy/kivy/tree/master/examples/demo/multi...
bionoid
·قبل 5 سنوات·discuss
My interpretation is $1 reads as "unistroke"/"singlestroke" while $N = "multistroke"
bionoid
·قبل 5 سنوات·discuss
The FAQ suggests that NFS is problematic for concurrent access:

> But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time.

https://www.sqlite.org/faq.html#q5
bionoid
·قبل 5 سنوات·discuss
The subreddit is /r/Random_Acts_Of_Pizza and still in operation. /r/RandomActsOfPizza was a copycat started with the explicit purpose of bartering nudes for pizza (forbidden in the original). It was later shut down when it turned out it was run by a scammer.
bionoid
·قبل 5 سنوات·discuss
"Ministry of Propaganda and Public Enlightenment" - it was candidly named, if nothing else.

> Indeed, Goebbels initially opposed the term propaganda, recognizing that in popular usage, both in Germany and abroad, it was associated with lies. Even after the ministry had been in existence for a year, he proposed changing its name to Ministry of Culture and Public Enlightenment, but Hitler vetoed this proposal.

https://encyclopedia.ushmm.org/content/en/article/ministry-o...
bionoid
·قبل 5 سنوات·discuss
I like the idea and the execution, nice job!
bionoid
·قبل 6 سنوات·discuss
> Nobody's speed-reading code. That doesn't make sense.

Well, I speed-read code all the time.. it's a necessity in my role as independent consultant. Clients have a lot of half-baked/unfinished projects, and I'm called in to get it progressing. Speed-reading enables me to assess the state of the existing code and suggest a way to move forward, without breaking the bank up front.

That said, for me column width is irrelevant for speed-reading. The typical time-killer is lacking separation of concerns and poor naming conventions (God classes, or worse, God files with 20 classes)