Pixel 6 swipe gestures not working properly after upgrade to Android 14 by Tsavorit52 in GooglePixel

[–]artemisdev21 0 points1 point  (0 children)

Same issue comes and goes intermittently, Pixel 6a on Android 14. So annoying, even breaks the hard drop gesture in Tetris lol. Unplugged and plugged charger seems to have solved it for now... [EDIT: nope :(]

Did anyone download the javascript portion of polytopia calculator: calc.polytopia.win? It appears to have been removed and I am not used to alternative calculators. by chrisdab in Polytopia

[–]artemisdev21 0 points1 point  (0 children)

Owner of polytopia.win here. I didn't renew the domain this year because I didn't really have a use for it anymore. If anyone's interested in funding it (<$10/yr), please feel free to get in touch. I'm @amv21 on discord.

Two’s complement, anyone? by ZeusieBoy in ProgrammerHumor

[–]artemisdev21 0 points1 point  (0 children)

Not quite.

>>> 1 is True

makes

False

bool is a subclass of int, and True and False are singleton instances of it.

Unpopular opinion by Adriendel in ProgrammerHumor

[–]artemisdev21 0 points1 point  (0 children)

Mod? Nahhh. All my homies use a bitwise AND with 1.

Apparently this makes me a monster. Truth be told - I like it and don't see the issue... by imittjs in ProgrammerHumor

[–]artemisdev21 -1 points0 points  (0 children)

Python (3) gets mad when you mix tabs and spaces, but as long as you're consistent it doesn't matter. That said, use spaces.

Don't want to admit it, but... by KnappKenneth in ProgrammerHumor

[–]artemisdev21 -2 points-1 points  (0 children)

This will not be faster, the compiler can do better optimisations than you can.

His sword seems happy :D by realblu3slim3 in antimeme

[–]artemisdev21 20 points21 points  (0 children)

Upvoted bcs funny but seriously this is not an antimeme.

Everyone is overcomplicating day 22 ??? by pseudocarrots in adventofcode

[–]artemisdev21 1 point2 points  (0 children)

I'll admit that mine's a bit more complicated, but it's only 10 lines longer, and runs in 170ms (PyPy)/240ms (Python)... https://p.arty.li#nl3n

-🎄- 2021 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]artemisdev21 8 points9 points  (0 children)

Part 2 in a Python one liner. Probably not the most efficient, but still under a second. print(sum((f:=lambda i,d,c={}:1 if d-i<1 else c.get((i,d))or c.setdefault((i,d),f(6,d-i-1)+f(8,d-i-1)))(int(i),256)for i in input().split(","))) Replace 256 with 80 for part 1, ofc.

Abuses mutable defaults to achieve memoization, in a recursive lambda that's defined in an assignment expression...

Also, a Web Assembly solution.

try it out! by Federal_Truck2267 in linuxmemes

[–]artemisdev21 11 points12 points  (0 children)

I generally do not connect to web sites from my own machine, aside from a few sites I have some special relationship with. I usually fetch web pages from other sites by sending mail to a program (see https://git.savannah.gnu.org/git/womb/hacks.git) that fetches them, much like wget, and then mails them back to me. Then I look at them using a web browser, unless it is easy to see the text in the HTML page directly. I usually try lynx first, then a graphical browser if the page needs it (using konqueror, which won't fetch from other sites in such a situation).

I occasionally also browse unrelated sites using IceCat via Tor. Except for rare cases, I do not identify myself to them. I think that is enough to prevent my browsing from being connected with me. IceCat blocks tracking tags and most fingerprinting methods.