Better HN
topnewbestaskshowjobs
Log inSign up

Hello71

1,909 karma · joined Sep 24, 2012 (14y ago) · 1,011 submissions

Submissions

comment 8y ago · link · parent

> requiring the companies to pay a deposit to cover potential scooter-involved damage to city property

so I guess if they damage non-city property, tough shit?

comment 8y ago · link · parent

it's because you load a huge 2.4 MB JS file, and your web server is configured terribly so gzip is off so it really is 2.4 MB.

comment 8y ago · link · parent

I highly doubt there are any devices that are capable of accessing the modern web, with all its JavaScript bloat, yet cannot decode a simple audio codec. Even when Apple was installing AAC hardware decoders, they were already almost obsolete by modern embedded CPU development (especially the rise of medium-power ARM SoCs). I highly doubt any devices released in the past 5 years have any sort of fixed-function audio decoder. Maybe an encoder, possibly some general-purpose DSPs, but not a format-specific decoder.

comment 8y ago · link · parent

How does this differ from PCH?

comment 8y ago · link · parent

except, YouTube Kids already exists, and the whole point of the NYT article was that it's not working.

comment 8y ago · link · parent

Ironically, despite complaining about the misuse of the word "complicit", you yourself misappropriate the word "theft". When someone watches a movie illegally they found via Google, the copyright owner is not forever prevented from using it or making money from it ever again.

577.

Git-issue: minimalist distributed issue management system based on Git(github.com ↗)

2 points · by Hello71 · 8y ago · discuss

comment 8y ago · link · parent

This is a safe, if slow, alternative for strncpy, but it does not safely replace strncat. The C standard does not define the behavior if the code "sprintf(buf, "%s some further text", buf);" is used.

comment 8y ago · link · parent

In addition to tlb's point, the article's description of strncat is not correct.

> As with strcat(), the resulting string in dest is always null-terminated. > Therefore, the size of dest must be at least strlen(dest)+n+1.

comment 8y ago · link · parent

everyone is complaining about the accounting here, but I just want to say that 100 FONT WEIGHT AT #666 ON WHITE IS NOT AN ACCEPTABLE CONTRAST RATIO FOR BODY TEXT, especially if you do not provide your own font. even on a 1920x1080 IPS display with 1.1x scaling, using my preferred font, Noto Sans, font-weight 100 is extremely difficult to read for long stretches. DejaVu Sans's 100 is slightly thicker, but is still not acceptable for body text at that color.

comment 8y ago · link · parent

if you find yourself automagically pthread_joining, something is probably terribly terribly wrong. similarly, if you commonly need to release a mutex far away from where you acquired it, something is probably also terribly wrong.

comment 8y ago · link · parent

Source? Cloudflare did post a moderately hostile response to Tor a few years back, but their technical implementation is sound and does not present multiple CAPTCHAs to users who have cookies enabled (the CAPTCHA might be broken with JS off, but that's a Google problem).

comment 8y ago · link · parent

you can, and it is still a valuable contribution to the Tor network, since it adds cover traffic. the catch is just that the website you're using will know who you are. I hope that the vast majority of users will understand that if they log in, there is no privacy mode that will save them from the site they log into.

comment 8y ago · link · parent

sounds really useful, but to be fair, it doesn't really remove either. you're effectively just using the Tor network as freely available (but slow) signalling and TURN servers.

comment 8y ago · link · parent

There are in fact some vague ideas floating around about using QUIC as a transport protocol for Tor. However, there is so much work to do and so few people that have the necessary skills (solid cryptography -- not at a "build the next AES" level, but "implement AES with no side channels" is already incredibly difficult -- plus low-level networking, C, and so on...) that in my view it is a minimum of 2-3 years from being mainstream available (look at how long HSv3 took).

comment 8y ago · link · parent

wait, wait, it's harder to audit source code than a binary? wtf?

comment 8y ago · link · parent

FTFA: Whether there will be two private browsing modes is to be determined.

comment 8y ago · link · parent

Which sites in 2018 still present multiple CAPTCHAs to users with cookies and JavaScript enabled?

I think the theory behind this project is that those problems are primarily caused by Tor's popular image as a 'fringe network for pedophiles and drug dealers' and that by making it more mainstream they can fix those issues.

(please more replies saying "that sounds really hard" and less replies saying "tor is not a fringe network for pedophiles and drug dealers", thanks)

comment 8y ago · link · parent

So... SQLite FoundationDB?

comment 8y ago · link · parent

For my sibling comments: http://www.catb.org/esr/writings/unix-koans/prodigy.html

591.

Updated Linode Plans / New Larger Linodes(blog.linode.com ↗)

3 points · by Hello71 · 8y ago · discuss

comment 8y ago · link · parent

in fact, names are the default. "--numeric-owner" must be passed to use numeric values.

comment 8y ago · link · parent

speaking of true --help, did you know that GNU true can exit non-zero? the exact way is left as an exercise to the reader :)

(if you're actually trying it at home, remember that "true" is virtually always a builtin. AFAIK there is no legitimate way to have shell builtin true return non-zero. (overwriting the command doesn't count :P))

comment 8y ago · link · parent

afaik, only pixz does this; they store the index in xz.

comment 8y ago · link · parent

the idiomatic way:

    if (( ${#array[@]} )); then

comment 8y ago · link · parent

unfortunately, zsh is installed on probably about 1% of Linux systems worldwide. maybe it can be installed almost anywhere, but the fact is it isn't, and you might as well use Python or something at that point.

comment 8y ago · link · parent

this is intentional, since you can store your regular expression in a variable:

    $ a=BCD; b=.C.; [[ $a =~ $b ]]; echo $?; [[ $a =~ "$b" ]]; echo $?
otherwise, interpolating variables in regular expressions as text would require other syntax (more confusing).

also, "cat -" is redundant, use "cat". this behavior is specified by POSIX.

comment 8y ago · link · parent

those both suppress word splitting too.

comment 8y ago · link · parent

what the balls are you talking about?

    $ touch bad; a='*'; echo $a
    bad
I tested with shbot and this is the case in at least original bourne sh, ksh, mksh, dash, bash 1, and bash 4.4.
1
192021
34