Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hddqsb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
hddqsb
2y ago
I thought this was going to be about Android (which makes heavy use of that term), and I was expecting completely different complaints: - The toast disappears quickly, so you might not have time to read it / take a screenshot - It'
2.
▲
Wolfram Alpha's math input is broken
(wolframalpha.com)
4 points
by
hddqsb
2y ago
|
2 comments
3.
▲
by
hddqsb
2y ago
There is a serious bug in Wolfram Alpha's "math input" mode. When you enter e²ⁿ, it is interpreted as e²n (full details at the end). This was reported to them a month ago and still hasn't been fixed, so I figured it was
4.
▲
by
hddqsb
2y ago
Docker & co. also let you create a clean build environment (to a lesser extent), and I find them less intrusive than Nix / Guix.
5.
▲
by
hddqsb
2y ago
Fix: ps() { for i in /proc/[0-9]*; do readarray -d '' -t cmdline < "$i/cmdline"; printf "%s: %s\n" "${i#/proc/}" "${cmdline[*]}"; done; }
6.
▲
by
hddqsb
2y ago
A little late to the party... > The slow cases usually tend to be trying to find wider slots and skipping through many smaller slots. There are often a lot of bookings up to the first wide enough slot too though, so it's a little bi
7.
▲
by
hddqsb
3y ago
The article's actual title is "High Court orders temporary suspension of Telegram's services in Spain", not "Spanish High Court banned Telegram". This is a temporary suspension while investigating "after m
8.
▲
by
hddqsb
3y ago
Great sleuthing, the missing piece of the puzzle is that the file contents are inside a <code> element while the line numbers are not, and <code> elements have a default font so they don't inherit the font from their parent
9.
▲
by
hddqsb
3y ago
There is now an open issue: https://github.com/francoismichel/ssh3/issues/79
10.
▲
by
hddqsb
3y ago
In fact the article mentions a tool for this (sslh), but rejects it because it hides the source IP from the HTTP backend (and other reasons).
11.
▲
by
hddqsb
3y ago
In the case of SSH, there is a single connection (in fact SSH implements its own multiplexing), so I don't see the advantage of HTTP/2.
12.
▲
by
hddqsb
3y ago
I agree. Stack Exchange's Code Golf has public source, but the best there is 644 bytes: https://codegolf.stackexchange.com/a/4198
13.
▲
by
hddqsb
3y ago
Yes, that's likely to work on many firewalls, but: - it means you can't also serve HTTP on those ports (so you'd need a dedicated IP address for SSH), and - as @charcircuit wrote, it won't resist deep packet inspection.
14.
▲
by
hddqsb
3y ago
This article is not about graphics drivers. The project in question is "advanced parking and driving assistance technology".
15.
▲
by
hddqsb
3y ago
Tip: If pull up/down feel backward to you when the plane is flipped, go into the options and enable "Harry keys mode" :)
16.
▲
by
hddqsb
3y ago
Yep. The relevant parts from the article: > ... I run a simple scan ... against all the 74 real looking GitHub user tokens ... and discovered that 6 of them are actually valid. > ... only 2 of them actually have bio and email, but one
17.
▲
by
hddqsb
3y ago
A clever person got that account banned. When you try logging in with that email and a random password, it will fail, and Windows will allow you create a local account. (ref: https://news.ycombinator.com/item?id=37179504 ,
18.
▲
by
hddqsb
3y ago
It is perfectly reasonable and consistent for one thread to set an environment variable while other threads are reading different environment variables.
19.
▲
by
hddqsb
3y ago
Sure, some applications might require custom higher-level synchronisation, but it's still important for getenv/setenv to be thread-safe (i.e. not crash): - The race might be irrelevant (e.g. simultaneous calls that access differen
20.
▲
by
hddqsb
3y ago
In Chrome you can inspect your closure (as you clarified in https://news.ycombinator.com/item?id=38226743#38231705 ) using the "Watch" pane, and then look at its "[[Scopes]]" pseudo-property. I don't
21.
▲
by
hddqsb
3y ago
> printf can also replace a lot of uses of the "date" command Very cool (but bash-specific). Manual: https://www.gnu.org/software/bash/manual/bash.html#index-pri... > sh /bin/echo -n
22.
▲
by
hddqsb
3y ago
EDIT: - They do have several non-spherical moons and asteroids (bottom left), which is awesome. I tried finding a 3D model of Charon online; NASA's model ( https://science.nasa.gov/resource/charon-3d-model/ ) i
23.
▲
by
hddqsb
3y ago
Very cool. Some small criticism/feedback: - Pluto is shown as if it is spinning around itself, but in reality Charon (its largest moon) is so heavy (12.2% of Pluto) that their barycentre ( https://en.wikipedia.org/wiki&#
24.
▲
by
hddqsb
3y ago
It's not a big deal because there is no need to retry 20 times. The probability of getting a deleted article several times in a row is very low, so you could limit to e.g. 5 tries, and if all are deleted fall back to the next non-delet
25.
▲
by
hddqsb
3y ago
For the curious: They make getenv() thread-safe by intentionally leaking the old environment, which they argue is acceptable because the memory leak is bounded to 3x the space actually needed. The getenv/setenv/putenv/envir
26.
▲
by
hddqsb
3y ago
Good point about `putenv()`; however there is also `setenv()`, which does make a copy, so you are wrong about `getenv()` in general. POSIX explicitly states "The string [returned by getenv] may be overwritten by a subsequent call to
27.
▲
by
hddqsb
3y ago
@robocat linked a great video showing how to do this: https://m.youtube.com/watch?v=A-L7KOjyDrE
28.
▲
by
hddqsb
3y ago
You have a minor bug -- when len(lst) is a multiple of batch_size, this will have an extra iteration at the end with an empty batch. The fixed version is `range((len(lst) + batch_size - 1) // batch_size)`, which emulates `ceil(len
29.
▲
by
hddqsb
3y ago
The attackers didn't even use a trojan project/source. They just sent a malicious .exe (wrapped in an .iso file) and asked the victim to run it and write a C++ program that produces the same output.
30.
▲
by
hddqsb
3y ago
I'm also curious about this; I don't know how secure the traditional native clients are (FreeRDP, Vinagre, Remmina, etc.). On the other hand, there are browser-based clients such as Apache Guacamole and noVNC, which are protected
More ›