Better HN
topnewbestaskshowjobs
Log inSign up

Denvercoder9

5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions

Submissions

comment 3y ago · link · parent

The "pool all streams" model doesn't necessarily favor big artists, it favors artists that are listened to by people that stream a lot of music.

For example, consider a bimodal population of 1000 people that listen 10 times to a popular artist (for a total of 10,000 streams) and 10 people that listen 1000 times to a small artist (for an identical total of 10,000 streams). In the "pool all streams" model, both artists get paid the same, while in a "split per user" model, the popular artist gets 100x the payout of the small artist.

An interesting question then is whether big or small artists are disproportionaly listened to by people that stream a lot. I haven't seen any data on it, but intuitively it wouldn't surprise me if it's the latter case.

comment 3y ago · link · parent

Airbus won't touch this data with a 90ft pole. Their lawyers will make sure of that, as even just downloading it opens them up to tons of lawsuits.

The ones looking at this will be China, Russia and their associates that don't care about (Western) law.

comment 3y ago · link · parent

Converting from a local date/time with an associated timezone to an UTC time is not a lossless nor unchanging operation. By converting everything to UTC, you're throwing away information that you might need to do the conversion at the 'last mile' later on.

For example, imagine I schedule a dentist appointment for 9AM in my local timezone sometime next summer, and put it in my calendar. Now, if the government decides that we won't do daylight saving times next year, my dentist and I still expect that appointment to happen at 9AM local time. However, if my calendar application had converted it to UTC using the timezone definitions at the moment I created the appointment, it would show in my calendar at 8AM, and I'd be an hour early!

This is not an as hypothetical situation as it seems. To give just two recent examples: the Chilean government decided to postpone the start of DST with less than a month's notice last year, and Morocco shifts the clock an hour during Ramadan, the date of which only becomes certain on the day itself.

comment 3y ago · link · parent

"very recently" is more than 40 years ago, when the Space Shuttle made its first flight in 1981. That's closer in time to Sputnik than it is to today.

comment 3y ago · link · parent

Unix time isn't a fixed offset from TAI: it stops the clock during leap seconds (the timestamp for a leap second is the same as for the next second), so the offset from TAI changes at every leap second.

comment 3y ago · link · parent

They likely installed the remote controls because there were already signs something was going on a week ago. If today's events happened a week ago, the whole timetable would just have been shifted a week.

comment 3y ago · link · parent

That makes your editor run as root, which is a bad idea for many reasons (aside from security, any mistake now has the potential mess with the whole system).

comment 3y ago · link · parent

Space is generally considered to start at either 100 km or 60 miles up, so 200 miles is squarely in space. Before the Space Shuttle was retired, the ISS orbited at just over 200 miles for years.

comment 3y ago · link · parent

> how tightly is search integrated with the OS/interface?

Basically not at all.

comment 3y ago · link · parent

Putting screens in front of fridges could actually reduce energy consumption, if they allow the badly isolated glass doors to be replaced by thick, well-isolated doors.

comment 3y ago · link · parent

> Isn't it simpler and readable to keep non-trivial expressions out of the f-string itself?

But then you have to define what non-trivial expressions are, and more importantly, people using the language have to learn that definition too. By having f-strings accept all valid expressions, the language actually becomes simpler.

comment 3y ago · link · parent

They don't need to sell if they hold to maturity, at which point they'll get their investment paid back in full. Their only "loss" is the opportunity cost of not having been able to hold better-yielding bonds, but that's not a loss in an accounting or practical sense.

comment 3y ago · link · parent

No, if they do need the money before maturity they'll loan it from the Fed's Bank Term Funding Program, which accepts government securities as collateral at par value.

comment 3y ago · link · parent

> Only one job runs at a time

At least on Debian, this is not true. If your hourly cronjobs take longer than an hour, it'll happily start a second instance of them in parallel.

comment 3y ago · link · parent

> Not sure if I understand - a Cron "unit" is just a command that runs in a clean environment - you can test that without Cron.

It's not that easy to do. I've wasted hours in an old life figuring out that cron ran my scripts with a different $PATH than `env -i` did. systemd timers/units on the other hand are executed through the exact same code path, so if `systemctl start` works, you can be sure it works when started by a timer too.

comment 3y ago · link · parent

> You'd think we can just interchange the . and : so you should wake up 12:83…, or 2:83… the next day.

> But no, it's apparently 2:75 metric time. Why?

You can, they just messed up the example by unnecessarily rounding off the times. The night from 9:50 till 2:75 metric time only lasts 3.25 metric hours, or 7h48m in standard time; less than the 8 standard hours they started with.

comment 3y ago · link · parent

> Uh, how is Cloudflare sending 1kB messages with signals? Neither this article nor the linked Cloudflare post seem to elaborate on this.

Cloudflare links to the code they used; it doesn't actually seem to transfer any message (note that the README there also marks unix signals as broken): https://github.com/goldsborough/ipc-bench/blob/master/source...

comment 3y ago · link · parent

> I want the software that I'm running to be reflective of the software that was authored

I don't. As an end-user, I couldn't care less about what the author wanted, I want to run the best possible version of the software. Often that's the version maintained by my distro, as they've put in the effort to make sure all the different software on my system works well together.

comment 3y ago · link · parent

You're both correct, but USB Power Delivery, like so many things USB, is a total mess with different revisions, and versions of those revisions, that each extend and deprecate parts of the previous revision. I'm going to ignore the actual protocol used for negotiation here, but there have also been at least three different protocols.

The first revision, rev 1.0, had six fixed power profiles: 5V/2A, 12V/1.5A, 12V/3.0A, 12V/5.0A, 20V/3.0A and 20V/5.0A. These were deprecated by rev 2.0, version 1.2, which instead introduced power rules at four fixed voltages, supporting power supplies with different output powers. The maximum supported currents by the specification were 5V/3A, 9V/3A, 15V/3A and 20V/5A. These power rules were retroactively named the Standard Power Range (SPR) in rev 3.1. That revision also added the Extended Power Range (EPR), which raised all the current limits up to 5A, but only when used with electronically marked cables. EPR also added power rules at 28V, 36V and 48V, again requiring (differently) marked cables and up to 5A. So 5V/5A is a valid option, but only when used with a USB PD rev 3.1 compatible power supply and cable.

Orthogonally to the fixed power rules, rev 3.0 introduced the Programmable Power Supply, which allows a configurable voltage between 3.3V and 21V in steps of 20 mV. This was extended by rev 3.1 with voltages between 15V and 48V in steps of 100 mV, called the Adjustable Voltage Supply. As far as I'm aware this is not commonly used, and most products advertising Power Delivery support use the predefined power rules.

comment 3y ago · link · parent

> As a curiosity, what would it entail to make the two tgz byte-for-byte identical ?

It can't be that complicated. The tarballs autogenerated by GitHub (using `git archive`) were byte-for-byte identical for years, until GitHub upgraded git and things broke because entire ecosystems had started to rely on that.

[1] https://news.ycombinator.com/item?id=34586917

comment 3y ago · link · parent

One big thing is that Apple has (almost) bought out TSMC's N3 node, so they're the only one with chips made on the most advanced manufacturing process available.

comment 3y ago · link · parent

> I don’t understand why a tablet requires lugging a briefcase around? Just carry it raw between meetings and put it down if you need two hands for something.

Being forced to carry the tablet every time you're moving during a work day is annoying. The big issue is not moving between meetings, it's every other movement during the day. For example getting lunch or getting to the office (especially on e.g. the subway or bike).

comment 3y ago · link · parent

Yes, but that amount of time is measured in years to decades.

comment 3y ago · link · parent

Court cases, and documents submitted in them are, unless the judge decides otherwise, public information.

comment 3y ago · link · parent

Lots of projects on GitHub (not sure about lodash) automatically lock closed issues so you can't comment on it anymore. That closes an avenue for those that are impacted by the issue to discuss fixes, workarounds and alternatives.

comment 3y ago · link · parent

Generally regulators increase fines like this over time if the violation is not resolved. GDPR allows a maximum fine of 4% of global turnover.

comment 3y ago · link · parent

That won't work, as loose objects are stored zlib-compressed in .git, and packed objects can be stored in a delta format. You'd need something like this:

   git cat-file --unordered --batch-check='%(objectname)' --batch-all-objects | xargs -n1 -- git cat-file -p | grep 1cae71a9d5b24991c0d632b45186ca8a250e5d52

comment 3y ago · link · parent

On Linux, it'd likely go until completion. You can't write to executables and libraries that are currently running (ETXTBUSY), so shred can't trash either itself or find.

comment 3y ago · link · parent

Nowadays sudo uses seccomp filtering for its noexec option, which is enforced by the kernel and does not allow the workarounds that userspace-based solutions (including LD_PRELOAD) have.

comment 3y ago · link · parent

> proxychains uses LD_PRELOAD [0] to hook the necessary syscalls [1]

Technically, it uses LD_PRELOAD to hook the necessary libc functions. As, at least on x86-64, a syscall is just a CPU instruction like any other, you can't hook into it through LD_PRELOAD or any other tricks that don't involve the kernel (apart from rewriting the program before you execute it). That's also why it doesn't work on e.g. Go programs, as they don't use libc.

1
91011
41