Readit News logoReadit News
padthai commented on Lesser known parts of Python standard library   trickster.dev/post/lesser... · Posted by u/rbanffy
judicious · a year ago
I find defaultdict, OrderedDict, namedtuple among other data structures/classes in the collections module to be incredibly useful.

Another module that's packaged with the stdlib that's immensely useful is itertools. I especially find takewhile, cycle, and chain to be incredibly useful building blocks for list-related functions. I highly recommend a quick read.

EDIT: functools is also great! Fantastic module for higher-order functions on callable objects.

https://docs.python.org/3/library/itertools.html

padthai · a year ago
Why do you use OrderedDict for now that regular dicts are ordered by default?
padthai commented on AI Has Created a Battle over Web Crawling   spectrum.ieee.org/web-cra... · Posted by u/pseudolus
padthai · a year ago
Getting Covid paper toilet crisis vibes here
padthai commented on MIFARE Classic: exposing the static encrypted nonce variant [pdf]   eprint.iacr.org/2024/1275... · Posted by u/dave_universetf
emag · a year ago
From experience, more places than you'd expect only have you badging in one direction and not both.
padthai · a year ago
Probably fire safety laws
padthai commented on Signal messenger blocked in Russia, says Roskomnadzor   reuters.com/technology/si... · Posted by u/dtquad
kornhole · 2 years ago
Russia to block Google, IOS and Android.

Aleksei Didenko, a member of the Russian State Duma, has said that Google, including its Android operating system and Apple's iOS, will soon be blocked in Russia.

Didenko advised the public not to cling to services like YouTube, stating, "Soon Google will be blocked, along with Google Android. iOS will also be blocked, and this will not be our initiative."

t.me/ForeignAgentIntel

padthai · 2 years ago
So they will not use Smartphones? I am not buying it.
padthai commented on Why Polars rewrote its Arrow string data type   pola.rs/posts/polars-stri... · Posted by u/fanf2
padthai · 2 years ago
I am getting Vietnam flashbacks of all the small incompatibilities between Numpy arrays and Pandas Series
padthai commented on Twitter kills its San Francisco headquarters, will relocate to South Bay   sfstandard.com/2024/08/05... · Posted by u/crhulls
ryandrake · 2 years ago
I thought the company would collapse after firing 80% of staff, and for a long time I kept arguing that Twitter was still in the "Wile E Coyote ran off the edge of the cliff but didn't fall yet" phase where they were running on pure momentum. I must admit, as time goes by, it's harder and harder to argue that. I just can't believe that 80% of the company was really just not needed. Every company I've ever worked at was lean to the point where they almost couldn't get anything done due to lack of people. I can't imagine a company that could lose 80% of their people and keep on trucking.
padthai · 2 years ago
I think Twitter is down 60% in advertisers and 30% in users? Elon personality is part of it, but losing so many people handling community, clients, institutions… I am sure the company has lost most of its institutional knowledge.
padthai commented on Typst: An easy to learn alternative for LaTex   github.com/typst/typst... · Posted by u/vogu66
wlievens · 2 years ago
Markdown doesn't give you a table of contents, an index, page breaks, control over typesetting, control over table layout, captioned figures, diagramming tools, etc. The difference is about the same magnitude as between Pong and Call of Duty. Yes they're both video games, sometimes one is preferable over the other, but they are not equivalent.
padthai · 2 years ago
Pandoc/Quarto markdown gives you most of these.

In my experience, it rarely really matters fine control. If the effort is too big to tweak the templates/markdown you export it to an intermediate state (LaTeX/Office/whatever) and drop the original markdown source.

There is no lock-in.

padthai commented on Run CUDA, unmodified, on AMD GPUs   docs.scale-lang.com/... · Posted by u/Straw
LtWorf · 2 years ago
I don't think nvidia bans anyone from running code on their devices.
padthai · 2 years ago
They do from time to time: https://wirelesswire.jp/2017/12/62708/
padthai commented on Reverse engineering Ticketmaster's rotating barcodes   conduition.io/coding/tick... · Posted by u/miki123211
rareitem · 2 years ago
So items inside google/apple wallet don't need to be 'static'?
padthai · 2 years ago
No, I have flight tickets autoupdate when there is a delay.

u/padthai

KarmaCake day360September 15, 2016View Original