Better HN
topnewbestaskshowjobs
Log inSign up

Hello71

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

Submissions

comment 5y ago · link · parent

there are more issues after fixing all of those: grep -w is not POSIX, the exit status of type is not clearly defined by POSIX, realpath is not POSIX, basename is POSIX but can be replaced with ${path##*/} for most well-formed paths (gives different results for /, but this script doesn't work properly for / anyways?), inodes are not unique across devices, --directory=dir has ugly handling but seems to work but --directory dir doesn't (i think it silently sets the directory to --directory and then passes dir as a separate argument?)

comment 5y ago · link · parent

> Runescape was basically turn-based and ran like 1 turn a second

actually, runescape still has 0.6 sec ticks. it has become part of the meta-game to input commands at exactly 0.6 second intervals for optimal efficiency, and is basically mandatory for high-level pvp combat.

https://oldschool.runescape.wiki/w/Tick_manipulation https://runescape.wiki/w/Tick_manipulation

comment 5y ago · link · parent

according to wiktionary, they both originate from Arabic اَلزَّهْر‎ (az-zahr, “the dice”). presumably frenchmen were simply wont to add a bunch of silent letters.

https://en.wiktionary.org/wiki/hasard https://en.wiktionary.org/wiki/azar

comment 5y ago · link · parent

i assume they mean "Managed install & setup"

comment 5y ago · link · parent

this is a zsh-ism. on bash it will have no effect.

comment 5y ago · link · parent

> call stack

strace -k

> specific IRQ

IRQs are very low level and can't be traced by strace or procmon. both can easily log specific syscalls, e.g. strace -e. strace can't quite filter on ioctl, but apparently procmon can't trace ioctl at all: https://stackoverflow.com/questions/9947933/how-to-log-the-d..., so strace is ahead there.

> specific file

strace -P path

comment 5y ago · link · parent

it skews the data in the right direction (from their point of view). if you saw it on twitter, and shared it with 100 people, then (from their perspective) they should spend more time advertising on twitter.

comment 5y ago · link · parent

it feels like it should be easier to plug in a few times a week rather than drive to a gas station, stop the car, exit the car, insert card, enter pin/zip code, open gas cap, remove nozzle, insert nozzle, pump, wait for pumping, remove and return nozzle, close gas cap, take receipt (optional at some stations), return to car, start car, and leave. yes, you have to stop and start the car when plugging in at home, but you already have to do those things, whereas driving to a gas station is additional stopping and starting.

comment 5y ago · link · parent

ssllabs is happy with it, seems like you are missing ISRG Root X1 and refuse to download intermediaries.

https://www.ssllabs.com/ssltest/analyze.html?d=www.regierung...

comment 5y ago · link · parent

musl automatically uses a bump allocator if free is not referenced in the program.

comment 5y ago · link · parent

This is reminiscent of anti-scraping lawsuits: "you may only access LinkedIn using the LinkedIn web application; it is a violation to access it using curl". Ironically, Google's position in that regard is likely to bite them here, where someone else wants to use unconventional clients.

comment 5y ago · link · parent

sure, but it'd be less confusing to just make it a new command. you could add features like invoking lsblk with a sensible set of flags.

comment 5y ago · link · parent

> A release that is only supported for five years is a hobby project.

and how much are you paying for support?

comment 5y ago · link · parent

There are two major problems with this: partitions/device-mapper and backwards compatibility. First, partitions inherently overlap the parent block device. You would need to carefully track exactly which portions of the device are in use, or your solution is useless (it doesn't protect /dev/sda when /dev/sda1 is in use) or blocks the vast majority of use cases (/dev/sda2 cannot be used when /dev/sda1 is in use). The same applies for device-mapper, but worse. Secondly, the Linux kernel has a very strong backwards compatibility guarantee. Any change that would break valid (or even invalid) uses will be loudly rejected by Linus. With your idea, many disk management programs will be broken.

comment 5y ago · link · parent

libsigsegv (slow) or userfaultfd (less slow) can be used for this purpose.

comment 5y ago · link · parent

It's worth noting that the NCSE (formerly known as Morality in Media) is completely against pornography of any type.

comment 5y ago · link · parent

yes, and if a cop murders a civilian they are (supposed to be) liable, but innumerable news stories over the past... long time have shown that not to be the case far too often.

comment 5y ago · link · parent

this is way too optimistic for the US criminal justice system. police and prosecutors regularly lie on warrant applications, and judges regularly grant the flimsiest of justifications for search and arrest warrants. there is no legal accountability whatsoever: the most that defense attorneys can usually do in the case of illegal search warrants is to have the illegally seized evidence excluded; there is no punishment for the state using its immense power to harass and intimidate individuals.

comment 5y ago · link · parent

as implied in a cousin comment, I don't think this applies if they're currently incarcerated. at least at the federal level, the BOP should have records of who was sentenced with firearms or other violent sentencing modifiers in order to properly segregate them from non-violent offenders. that wouldn't work for the idea of purging their records, but for the OP argument, it ought to work reasonably well. for the rare cases where it doesn't, some burden could be put on the inmate to collect and submit their documents for approval, the same as if they were filing an appeal.

comment 5y ago · link · parent

to clarify, since most people without personal experience in the US criminal system don't know: in the US, you can be, and usually are, sentenced based on crimes and/or facts you were not convicted or even charged for.

comment 5y ago · link · parent

Your third solution basically reinvents Kerberos. I don't think Kerberos envisioned services making calls to each other though. In the 1980s, I think it was assumed that the client would contact each service separately and combine the results itself.

comment 5y ago · link · parent

Actually, I think the intended usage in this situation is to click on the filename field, then press Save (or Enter/Return). Which is still terrible discoverability, but at least it's theoretically possible?

comment 5y ago · link · parent

  Location: Toronto, Canada
  Remote: OK
  Willing to relocate: Yes
  Technologies: Linux, C, Python, shell, others
  Résumé/CV: https://alxu.ca/resume/
  Email: see resume

comment 5y ago · link · parent

not according to the standard, but in practice yes, currently. there are arguments that it should be considered not for optimization reasons, but there is likely too much existing code relying on it to change behavior. (see related llvm, gcc bugs)

comment 5y ago · link · parent

> I'm somewhat surprised nobody has packaged up an old version and wrapped it with "only run flash for these urls" and "don't update the ppapi plugin" type functionality. All the pieces seem to be available: https://support.google.com/chrome/a/answer/7084871?hl=en

This is likely to be of minimal use, since browsers will soon be removing Flash support entirely. Firefox in particular is carrying a significant amount of code to shim gtk2 in a gtk3 program.

comment 5y ago · link · parent

this story does not sound accurate. if Malma truly had good finances before this, it could simply take out another loan at a different bank, who would presumably look at Malma's true finances and ignore this fake immediate payment. it is standard for major companies to renew their loans at different financial institutions at different rates, and a single call bankrupting a company would mean that the company was already in dire shape. this is consistent with https://www.eurofound.europa.eu/observatories/emcc/erm/facts..., which says that the bank claims that the company was managed poorly, and the management claims that it was caused by reduced Russian demand as well as increased interest rates.

comment 5y ago · link · parent

it's a problem in the git model, since all the commit hashes would change. that means that all existing references become invalid, including emails, commit messages, and pull requests.

comment 5y ago · link · parent

mac doesn't have realpath command.

comment 5y ago · link · parent

> -z? ! -z? one bracket? two brackets? quotes? no quotes? something about a semicolon and "then", right? where can you add newlines, again? oh yeah, it's not "end" like Ruby/Lua but "fi" right? what's "else if", again?

really, most of these questions have only one correct answer. [ ! is never correct, neither is ! [ -z or ! [ -n. one bracket in /bin/sh, two in bash. quote every variable expansion unless you have a very good reason not to. add new lines in sensible places. nobody (sensible) complains that you can't write

  for
    num
  in
    mylist
  :
in Python, so don't write it in shell either.

the problem is there is so much cargo culting garbage. the same problem exists in "C/C++", where people write "int* buf = (int* )malloc(num*sizeof(int))" to be "compatible", or do gratuitous pointer aliasing with undefined behavior, despite the fact that any modern C implementation with any optimizations at all will inline small fixed-size memcpy.

comment 5y ago · link · parent

my mistake. I thought MDI was new in Windows 95, but in fact it dates back to Windows 3.0, and was in fact deprecated by 95.
1
678
34