5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions
comment 3y ago · link · parent
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
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
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
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
> 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
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 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
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
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.
comment 3y ago · link · parent
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
git cat-file --unordered --batch-check='%(objectname)' --batch-all-objects | xargs -n1 -- git cat-file -p | grep 1cae71a9d5b24991c0d632b45186ca8a250e5d52comment 3y ago · link · parent
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.