skysight-inc/HackerNews huggingface dataset:
> No, it's not still true

The point of rtkit is creating a convenient framework to enforce SCHED_RESET_ON_FORK and rate-throttling in a single place. So if I'm interpreting your comment correctly, running a "while (true) { fork(); }", even without restrictions of SCHED_RESET_ON_FORK, will not lock the system up in a modern system? Is it correct?

> The use of nice to try to adjust scheduling of audio apps (the entire application or specific threads) is completely off-base.

I think the renicing mechanism of "high-priority=" was historical, introduced to PulseAudio long before the system resource limit like RLIMIT_RTPRIO, or the rtkit framework has been put into place. As another document mentioned,
g

> To minimize the risk of drop-outs during playback it is recommended to run PulseAudio with real-time schedulin [...] Alternatively, if the risk of locking up the machine is considered too big to enable real-time scheduling, high-priority scheduling can be enabled [...]

So while renicing is still here, PulseAudio prefers SCHED_FIFO nowadays, and the renice is only a fallback.

So, can you point out where exactly is wrong in the first documentation I quoted in the first comment? Certainly, the paragraph, "high-priority= Renice the daemon after startup to become a high-priority process. This a good idea if you experience drop-outs during playback" is outdated, but if one removes the word "Renice", and moves this paragraph from "high-priority=" to "realtime-scheduling=", it's still correct.
Just checked on CanIUse, querySelector() actually has full support* since 2009!

Btw, querySelectorAll() to match multiple elements.

* IE partial until 2011
I'd be willing to bet literally all of my money that it has more to do with the trade war than it does with the kind of shift you're talking about.
Japan has been in worse debt than the US with much worse demographics for 30 years, and they're somehow doing just fine. I think we have plenty of legs still.
/Thread

Excellent detailed advice! This is THE roadmap for ML study.

PS: While many of us may not have the time/resources for a graduate course, one can absolutely get the mandatory theoretical ideas from books/courses/videos/etc.
Are you channeling Grothendieck? :-)

https://en.wikipedia.org/wiki/Alexander_Grothendieck#Mathema...
The buckets are more flat than sharply defined (ha). That's part of the problem. Information is lost from notation to pitch to recording, and I suspect one could prove that these transforms don't preserve topology and are not homophormisms that can be easily reversed.

To use your example, finger position is not a one dimensional subspace on a guitar. There are between 1-6 ways to play a given pitch even assuming standard tuning on a six string guitar, which is not a safe assumption to make.

But the issue with chord transcription is one at the heart of source separation outside of VC demos, which is the causality problem that no one likes to talk about. To separate into N sources you need to know a priori that there are N sources to separate into. This is not a trivial thing to predict in chord voicings, where N changes and is not predictable. Then you need to make a best guess at which instrument the pitches fall into, which may be shared.

This is something that even humans fall victim too. Untrained listeners are very bad at quantifying sources in an ensemble, and even trained listeners struggle with notating chord voicings with decent accuracy.
This is a perfect candidate for XSV. You might want to try it. I'd suggest do one try after creating an index using XSV and the second one without.

I feel you will be impressed with the performance.
Written in older JS, it would look like this:

$ = function(_) { return document.querySelector(_) }

It basically turns `$` into an alias for `document.querySelector`. I'm not sure that it's any different from:

$ = document.querySelector
Having something to be excited about when you leave work in the afternoon is a positive thing.
This is sort of ignoring who has the dollars though. Reduced wages for U.S. workers for cheap and often disposable goods where the profits go to rich foreign investors doesn't really sound like a win to me regardless of the capital flow.
Just saw a restatement of what happened that seemed apt … “Trickle down theory does work, but billionaires have access to global labor & capital markets so it trickles way, way, way down”.
Send them a formal complaint, MS own them now, they would take this more seriously/their lawyers will tell them to.
"The Markable Mark" site is a great exposition of the Laws of Form: http://www.markability.net/
Five tips for more helpful code reviews
The claim that "the Linux scheduler is bad" seems wrong.

First of all, a program that calls sched_yield() for synchronization is simply broken, since doing so can cause 100% CPU usage (if the other thread is stopped at an unfortunate place), so the only correct method among the ones benchmarked is std::mutex.

When using std::mutex (the only correct approach), Linux and Windows both seem to have similar average performance, but Windows has 10x latency, so Linux is better.
This is why I prefer carbon taxes over EV subsidies.

An EV that largely sits in the driveway doesn’t accomplish anything toward any climate goals.
China has printed more money then any country in history. There is just not many good choices other than the U.S Dollar.
> VW ID 3

https://electrek.co/2019/12/19/volkswagen-id3-has-massive-so... solid is not a word that comes to mind
Assuming you wanted to keep it in base 10 this is the simplest to follow way I could come up with:

numberString = "1578465465464570"
divFive = /[05]$/.test(numberString);

// Check if the digits of the number sum up to 0, 3, 6, or 9. If so it is divisible by 3.
while(numberString.length > 1)
{
total = 0;

for (const digit of numberString) {
total += parseInt(digit, 10);
}

numberString = total.toString(10);
}

divThree = /[0369]/.test(numberString)
divFifteen = divThree && divFive
In my experience the problem isn't elitism. The problem is large swathes of the human population are lazy luddites.

I see it with cars too. I have friends that love owning fast luxury coupes, and yet don't know how to change their own oil, and can't drive a stick shift. Some of those are guys who build their own PCs, but when it comes to anything mechanical? Nope. Don't even want to learn, and that surprises me.

You can lead horses to water but you can't make them drink, I guess.
I just donated to ProPublica. Amazing work.
How will they be destroyed?
@burntsushi ... Sir .. need to say this.. many thanks for your tools! They make my life so clean and so manageable. Data wrangling on the command line with your tools is such a great experience (minimalistic and efficient).

Is there anything for `json` files that you would recommend? `jq` is awesome but just wondering.
Publish it on the internet. Keeping it to yourself and the company is security by obscurity which the security community frowns on.
Something I was curious about, but not sure where to start - suppose you wanted to make something that at 400-500K, would emit radio waves from which the temperature could be derived. And as small, simple and durable as possible, so it didn't break down.

I mean, there's going to inherently be infrared, so how can you convert that to radio of roughly a desired frequency range without complex machinery?
So? The brain had a heck of a lot more than 1.5B parameters
https://yosefk.com/blog/my-history-with-forth-stack-machines... gives an often-referenced (9 submissions to it on HN) counter-commentary to Jeff Fox's essay.

> The tiny VLSI toolchain from the epigraph? I showed Chuck Moore's description of that to an ASIC hacker. He said it was very simplistic – no way you could do with that what people are doing with standard tools.

> But Chuck Moore isn't doing that, under the assumption that you need not to. ...
Here is a simple back of the envelope calculation to demonstrate the idea.

Revenue Cost Gross Rate Tax Profit
1000 700 300 20 60 240
1020 700 320 25 80 240
1000 680 320 25 80 240

Of course, in reality there are many more factors to keep in mind e.g. you can't increase the price while expecting the sales to stay steady, and you can't expect the quality to maintain (and hence keeping the sales) while reducing the cost (personnel or material). But the idea is that the directors can find many ways to keep the shareholders happy even in the face of corporate tax hike.
https://vim-adventures.com/

Fun way to get used to vim
Tesla is a rather simple car at the price of S500 and stretched S600 if fully loaded.

Now, have you ever experienced the level of comfort you get even in the most basic sonderclasse? Tesla simply doesn't feel like a true luxury car.
Source? We are destroying a lot of the negative feedback mechanisms (e.g. clearing rain forests, destroying the tundra, etc) what makes you sure we will be okay? A 4-5 degree Celsius increase in temperature is looking likely by 2100. If that is extrapolated out a few million years doesn’t seem plausible.
China investigates SARS-like virus as dozens struck by pneumonia
https://www.bostonherald.com/2019/12/30/peoples-republic-of-...

> The feds say they believe the Chinese government may be behind the theft of biological research specimens from a Beth Israel Deaconess Medical Center lab involving a Harvard University-sponsored Chinese student.
I often end up playing badminton with a player in his 50s at the club who went through knee replacement two years ago.

He warned me, adding that he isn’t trying to scare me, that knee wear and tear is very real and common and that as an active long distance runner and shuttler I’ll probably definitely have to get one if I continue this physical regime till 40-45. I am not sure it’s that inevitable or there are precautions an preventative measures other than stopping those physical activities.
> I've never used deodorant.

I suppose now you know how people feel around you.

It's very awkward to be around people who smell bad. Most people will just avoid the confrontation of pulling you aside and telling you that you reek.

I speak for a lot of people when I say that I prefer nauseating lilac over the smells that can swelter and fester in someone's pits.
I have calz now. Thanks!

Now I just need a really long e-ink screen.
I was in fact thinking of that idea that "high tax states also pay for literally all the other states", and I pointed out a flaw in that argument. They are underpaying their federal taxes. The voters in those states also happen to be the ones voting for expensive government programs, so it is only fair that they pay.

There is no double taxation. You owe tax first to the federal government. The state could let you deduct federal taxes from your state taxes, or not. The federal government has no duty to give you a discount for your choice to live in a place that would divert lots of your income to local purposes.

As a thought experiment, consider the ultimate extreme. The local government takes 100% in taxes, then provides you with everything (house, food, clothes, etc.) as government services. Your region thus pays ZERO federal income tax despite having wealth to enjoy (you are fed, etc.) and receiving federal funds for various things.

What you have is a partial version of that extreme. Your state isn't being 100% unfair to the other states. It is just modestly unfair. The federal government shouldn't enable that kind of unfairness.

BTW, politifact is not credible due to strong partisan bias. I also don't think that "transfer payments" are a proper accounting for differences.
For scientific nutrition, https://www.reddit.com/r/scientificnutrition
this is a great article went through it and can do it now
These are words that don’t necessarily mean different things. In the broadest sense of mutex and the strictest sense of spinlock, every spinlock is a mutex.

Spinlock is a mutex algorithm based on spinning until the mutex is available.

Mutex is a MUTual EXclusion abstraction. A spinlock is one implementation. But spinlocks are problematic (for lots of reasons) so most of the time when someone says they’ve got a mutex it’s actually an adaptive lock:

- It has a fast path to acquire the lock.

- It may or may not be fair.

- It has a slow path that may enqueue the thread and deschedule it, but that slow path may have some adaptive spinning for a finite amount of time.
> I came to a similar conclusion. You should write every email as if it were public, because it's entirely likely that it will be

I think this is mainly governed by expectation and received benefits.

I would let my doctor see me naked, because I'm expecting the doctor will fix my problem if I agreed to do so, and I assume the doctor will respect my privacy by not leaking information about my physical characteristics and private parts with others.

But what if it's for example the owner of my favor restaurant asking to see the same? I don't think I would go there anymore.
Can't reply to your deepest response.

Basically, read: https://access.redhat.com/documentation/en-us/red_hat_enterp...

(This is from RH, but the kernel params are generic)

Again, RTKit is a convenience wrapper, nothing more or less. It runs with sufficient priviledge to ask for SCHED_FIFO, which by default is not permitted. The more conventional approach is to create a user group and use PAM or equivalent to set the rt priority limit for that group, thus allowing any user in the group to run any app that can then ask for SCHED_FIFO with prio up to the limit. RTKit was created by Lennart to avoid this type of sysconfig (in favor of a different type of sysconfig).

You're mistaken about the historical ordering of things too. SCHED_FIFO was available long before PulseAudio or RTKit was created.

Yes, you could shuffle the text around as you suggest, but that's far from a "trivial" edit. It's basically equivalent to saying "yeah, the old doc was basically totally wrong, here's a correct version" :)
If we're being pedants, "Dennard scaling" is the term for the phenomena that allowed for increased clocks: https://en.wikipedia.org/wiki/Dennard_scaling

Dennard scaling was a nice side benefit of transistor shrinks.
> I don't want to be incentivised to be thinking about that sort of thing, I'd rather just know there are no options.

That's the flip side to a flat tax, we save a ton on the opportunity costs paid for with time and the development of expertise in all this minutiae. We have entire industries and corporations devoted to taxation. At what point does the benefits gained by our tax complexity get outweighed by the regulatory costs and burdens associated with compliance to that complexity?

A quick check

> Tax preparation is BIG business – there were 300k people employed at 109k firms in 2012 - generating $9 billion in revenue in 2012. The industry grew over 2% from 2010-2015, and is expected to speed up the pace of growth. Revenues of $11 billion are forecast for 2018.
https://www.franchisehelp.com/industry-reports/tax-preparati...

What else could we get with that sort of brain/man power?
Interesting project, glad to see some movement there!

Over here we have a high interest in running JS code efficiently within multiple host languages. To that end we ported Ruby’s mini_racer to Python.

https://github.com/sqreen/PyMiniRacer

We also maintain a mini_racer fork and regularly try to backport performance improvements upstream.

We also support alternative platforms such as Alpine/musl and Solaris. One of our main pain points is that the whole libv8 tooling/build system is ever changing and terribly self-serving to Google, so as much as we want to improve support for additional platforms upstream, it’s a tall order to have our hacks to build for those cleaned up and merged there.
Or people do understand how taxes are used and fundementaly disagree that taxes should be used for those purposes

Taxes sole purpose should be to collect money to provide services, Nothing else

they should not be used to socially engineer the society the way the government sees fit, that is not a free society or a functioning democracy/republic at that point
In my opinion the most important medical advance that happened was reversing methylation based age indicator for the first time in a human. It's a bit sad to not see something so important on this list.
Show HN: HumanATS – Hire the Best Staff
Our services could use some bludgeoning to work better together. There’s no question that CAS is an important mission. Providing it with F-18s and F-35s through an underresourced mini-air force within the USMC seems kind of dumb. Give the USMC drones to handle some basic missions, make USAF provide CAS, and use a more diverse, cheaper, and specialized set of platforms.
I dont see this 50% drop https://www.cleanenergywire.org/sites/default/files/styles/g...

There might be 50% accounting drop in some reports thanks to all the biomas co-firing making coal plants ECO on paper, at the cost of freshly chopped European forests.
Regarding Celebration, I recommend Alex Marshall’s book “How Cities Work”. He compares it to Kissimmee, which is also in Florida. He points to the contradictions in the rhetoric people use when they describe what they want in a town. People can be hypocrites. They often say they want old town community like Kissimmee, but they buy large suburban homes in fake New Town communities:

https://www.amazon.com/How-Cities-Work-Suburbs-Sprawl/dp/029...
The thing about jobs is that they mostly balance out. Some people lose their jobs, but that means cars cost less. It means you get the same standard of living with less income. So you take a lower paying job and still have the same life.

There are effectively unlimited jobs at low enough pay, so as long as the pay meets the cost of living it's fine, so anything that lowers the cost of living is good.

That balance doesn't operate at the individual level. It mostly benefits the people who buy cars and mostly hurts the people who used to make cars. But on net it helps more than it hurts -- it's better to make transportation less expensive than have some more jobs that cause transportation to be more expensive.

The biggest problem with this is that it works best when everything gets cheaper at once. Otherwise that individual-level asymmetry starts to become trouble. And what we have right now is a regulatory environment that makes it hard to get cost reductions in certain industries (housing from zoning rules, education from government subsidies, healthcare from a hundred separate causes), so those keep growing as a percentage of income. And that's going to be a problem if we don't do something about it.
Did you see "What Bodies Think About: Bioelectric Computation Outside the Nervous System"?

https://news.ycombinator.com/item?id=18736698
I don't get who is going to be using this library.

Most android developers would prefer to use native Java APIs instead of a C++ library ( with a JNI wrapper around it?) since it's easier. Linux phones barely have any market share so this library would be used mainly on computers where most of the cameras are USB anyway.
> Can't reply to your deepest response.

Pro-Tip: Hacker News has a "new comment cool-off timer", it gives a minute or two before allowing a comment to be answered. It gives a chance for the poster to edit the comment. Just relax when you cannot see a reply button.

> Basically, read: https://access.redhat.com/documentation/en-us/red_hat_enterp.... (This is from RH, but the kernel params are generic)

I see. "The default values for the Real-time throttling mechanism define that 95% of the CPU time can be used by real-time tasks. The remaining 5% will be devoted to non-realtime tasks (tasks running under SCHED_OTHER and similar scheduling policies). It is important to note that if a single real-time task occupies that 95% CPU time slot, the remaining real-time tasks on that CPU will not run. The remaining 5% of CPU time is used only by non-realtime tasks".

So a fork bomb is as safe is an empty loop (at least from a scheduling prospectively), as long as a strict limit is set.

I have noted it down.

> Yes, you could shuffle the text around as you suggest, but that's far from a "trivial" edit. It's basically equivalent to saying "yeah, the old doc was basically totally wrong, here's a correct version" :)

Okay, the main documentation for "man pulseaudio" was a bit better,

> To minimize the risk of drop-outs during playback it is recommended to run PulseAudio with real-time scheduling if the underlying platform supports it. This decouples the scheduling latency of the PulseAudio daemon from the system load a

You see, here it mentions real-time scheduling, not high-priority scheduling in "man pulse-daemon.conf". So I guess the explanation of " high-priority=" was more or less untouched since 2008, but the code kept moving on.

> You're mistaken about the historical ordering of things too. SCHED_FIFO was available long before PulseAudio or RTKit was created.

I meant the renicing mechanism was in PulseAudio before RLIMIT_RTPRIO, or the rtkit framework. I didn't say a word about SCHED_FIFO, which was indeed POSIX, but less useful without later improvement on scheduling policies.

Thanks for your patience and answers, all my questions have been explained.
Is the Whatsapp Api hard to work with? Or does it require using private APIs?
Maybe in a single oddball city in the USA like Portland (though I would still be surprised). Unfortunately, styrofoam is alive and well ubiquitously in the USA outside of whatever bubble you're writing in from.

From the cups stacked at the free coffee booth in the lobby of a bank branch to the vessel that a pho restaurant will use when you ask to take home the rest of your soup to the McCafe I just bought this morning.
sponge: A website crawler and links downloader command line tool
Ironically, poop isn't so bad. You can get water-borne illnesses from poop but you get the nasty air-borne stuff (ie TB, measles) via saliva. Water-borne diseases can be avoided by drinking clean water. Air-borne diseases cannot be so easily avoided.
Physicist’s ideas of time
Mentions phage therapy as a one liner. Kept alive on life support (metaphorically) by Soviet scientists across the life of the antibiotics era which increasingly feels like it too is on life support.
Vape juice is huge, and is being cut with stuff like vitamin e acetate in illegal markets.

There's also fake terpenes you can spray on bud.
Switch to a more fun and interesting job whose skills can be also used in the side project
The Secret Life of Concurrent Data Structures
This sits much lower in the stack than CameraX. This is more of a HAL for cameras standardized across multiple OSes.

http://libcamera.org/docs.html#android-camera-hal-v3-compati...
Hi Ivoah
Gab.com/AndrewTorba
Gab is full of stalkers n porn freaks i met a man that stalked me over 3 momths i reported it to gab n they banned me.Andrew Torba is protecting my stalker for your own safety stay away from gab im not the only girl stalked from a man on gab...
It's no joke, Benadryl gave me horrifying hallucinations when I was a kid. It happened because a careless caretaker gave me the adult dose rather than the children's dose.
Kids Consignment
The lowest wages are finally rising faster than managers. Also of importance is that the administration is actually deregulating. One new rule means 8 old goes out. On top of that finally dealing with China.
Perhaps not an entirely fair comment... Is 'Gone Girl' a politically loaded choice?
Not just an issue for ‘bare metal’ applications- two GCs will be difficult for more complex scenarios as well where objects will have longer lifetimes spanning VMs.

This is a cool project that can definitely be useful, but those GC issues could rise up if you try a complex project and don’t design for them.
I'm not sure if this is the exact situation you're referring to, but you do get interest sent to you if you later amend a tax return in your favor.

Source: I've filed a 1040X twice, both times in my favor (due to my own mistake I noticed on my own later). The IRS issued me a 1099-INT the next year for the interest they paid me. The rate was substantially above market!