Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nneonneo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
241.
▲
WorstFit: Unveiling Hidden Transformers in Windows ANSI [pdf]
(worst.fit)
1 points
by
nneonneo
2y ago
|
1 comments
242.
▲
by
nneonneo
2y ago
WorstFit is a vulnerability in Windows-based programs which use ANSI APIs - especially those that handle command-line arguments or environment variables. Characters such as full-width quotes and yen signs can be silently changed into quotes
243.
▲
Discussion on Advent of Code LLM Cheaters
(old.reddit.com)
3 points
by
nneonneo
2y ago
|
1 comments
244.
▲
by
nneonneo
2y ago
The FAQ for Advent of Code disallows using LLMs to get on the global leaderboard; nevertheless, many users have done so, obtaining clearly impossible times day after day. A community member emailed Eric (AoC's creator) about the proble
245.
▲
by
nneonneo
2y ago
Brian Krebs is great. Back in 2018, I discovered a flaw in a website enabling anyone to track any US cellphone’s location without consent, and I contacted US-CERT and Krebs to break the news ( https://krebsonsecurity.com/2018
246.
▲
by
nneonneo
2y ago
It was, of course, an AI-generated solution; they posted it here: https://web.archive.org/web/20241201052156/https://github.co... Later, after being called out on it, they posted an apology to their GitH
247.
▲
by
nneonneo
2y ago
Use two leading spaces to create monospaced code on this site, like so: import sys sys.set_int_max_str_digits(0) # Allows for printing very large numbers x = (2 ** 136_279_841) - 1 print(x) Also, note that 1 << 136_279_84
248.
▲
by
nneonneo
2y ago
It's worth pointing out that Python's asserts can also be "compiled" away if you use the -O flag (or PYTHONOPTIMIZE=1), which eliminates their runtime cost. It's also worth pointing out that this is the reason you s
249.
▲
by
nneonneo
2y ago
8.4 is not even backwards compatible with perfectly working code written to target 8.x . It doesn't materially matter that the code is written in "5.2" style if it was meant to run on only 8.x. Even that style point is argua
250.
▲
by
nneonneo
2y ago
IIUC the `use` declaration is including the target namespace ( https://laravel.com/api/8.x/Illuminate/Support/Arr.html ) in the current scope, not declaring a namespace itself. If you wanted to create a na
251.
▲
by
nneonneo
2y ago
Seriously? 2k results for array_find in PHP on GitHub: https://github.com/search?q=array_find++language%3APHP&type=... . RFC authors ( https://wiki.php.net/rfc/array_find ) explicitly noted over 600 h
252.
▲
by
nneonneo
2y ago
Rust namespaces everything in the standard library to std:: or core::, and has a clear distinction between them. However, it does implicitly include the entirety of the std::prelude namespace ( https://doc.rust-lang.org/std&
253.
▲
by
nneonneo
2y ago
Suppose I want to add some new code to an old website? Or I want to gradually upgrade an ancient code base - twelve years is not so old for PHP, when ancient frameworks like Wordpress are still alive and kicking.
254.
▲
by
nneonneo
2y ago
If you want any evidence that terrible language design is alive and well in PHP, look no further than the new array_find function. Not only is it yet another global function in a namespace already chock full of random array helpers, it is
255.
▲
by
nneonneo
2y ago
They could help by not adding any more cruft to the global namespace . Adding any globals should be a carefully-considered change. User-defined functions are global by default, and although there are (now) much better ways to write PHP lib
256.
▲
by
nneonneo
2y ago
This is because earlier reports coming out of law enforcement agencies suggested that the network was involved in making even older devices reboot. This blog post is an effort to debunk that claim.
257.
▲
by
nneonneo
2y ago
The fancy lock-ordering type bounds can be found here: https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main/s... Whenever you explicitly declare a lock ordering "B must be locked after A&
258.
▲
by
nneonneo
2y ago
You’re running desktop Linux - your whole system is permanently in “developer mode”. That’s kind of the point? Windows and macOS don’t have “developer mode” either, at least not to the extent seen in the mobile OSes. They’re very different
259.
▲
by
nneonneo
2y ago
Somewhat tangentially, I will say that Touch ID-based sudo is a real upgrade over password sudo. It still gives you that extra moment to reflect on whether you really want to run that command (unlike passwordless sudo), without being burden
260.
▲
by
nneonneo
2y ago
Honestly, sudo’s value is really sanity, not security. The first time you use certain flavors of sudo, you get a nice little message which reminds you why sudo exists: We trust you have received the usual lecture from the local System
261.
▲
by
nneonneo
2y ago
To be precise: you don't need to be in the sudo group, but in the lpadmin group. I'm not familiar with how Ubuntu groups are set up, but I guess it's likely that lpadmin is only granted to administrators by default. That said
262.
▲
by
nneonneo
2y ago
The parody website in question: https://repaer.earth/ It uses real logos from three gas companies, two of which tried (unsuccessfully) to have their logos removed.
263.
▲
by
nneonneo
2y ago
export TMPDIR=" / " to surprise the next person or script to do "rm -rf $TMPDIR/foo"...
264.
▲
by
nneonneo
2y ago
Eh, maybe. In practice I usually do all my moderately-heavy filesystem scripting in Python these days, for which pathname quoting is just a complete non-issue. Of course, I still use a shell for quick-and-dirty stuff, but usually only for p
265.
▲
by
nneonneo
2y ago
No, they did not do the right thing: > the following utilities are now either encouraged to error out if they are to create a filename that contains a newline, and/or encouraged to error out if they are *about to print a pathname th
266.
▲
by
nneonneo
2y ago
Rather unfortunately, I happen to have a handful of files on my machine with newlines in them (the filenames were programmatically generated from a summary of their contents). I loathe the possibility that my shell tools are going to sudden
267.
▲
by
nneonneo
2y ago
Once you get to ~5000 characters you can read most common texts. Vanishingly few people will know ~40,000 characters; a large fraction of those are obscure or ancient characters that only show up in historical texts.
268.
▲
by
nneonneo
2y ago
Some older folks, particularly those with regional accents or less Pinyin education, stick with handwriting input (which was surprisingly good even ~20 years ago) - drawing the characters with a stylus or a finger. Most folks these days use
269.
▲
by
nneonneo
2y ago
This is comically incorrect. Even the article plainly states that you need to know ~1500 characters to be considered literate in Chinese, with sixth graders required to learn ~2500 characters. A quick perusal of practically any Chinese-lang
270.
▲
by
nneonneo
2y ago
Thank you for building this game, Gabriele! I very much enjoyed playing the game - and later, building what was (at that time) the best AI for the game while procrastinating on my PhD! ( https://github.com/nneonneo/2048-
More ›