skysight-inc/HackerNews huggingface dataset:
Saving Prod on a Wednesday with Two Lines of Code
Writing a scheduler for Linux in Rust that runs in user-space (part 2)
>> David Blackmon is an energy-related public policy analyst/consultant based in Mansfield, TX. David enjoyed a 40-year career in the oil and gas industry, the last 23 years of which were spent in the public policy arena, managing regulatory and legislative issues for various companies.

https://www.forbes.com/sites/davidblackmon/
I 100% agree. They also apply rules inconsistently, where the handful of times I've tried to make an article on well-known scientists (h-index 70+) years ago, the editors rejected it despite some secondary sources. On the other hand there are many articles being created by some editor on scientists who have almost no track record.

Wikipedia is already one of the best data sources for training LLMs, and if they were less stringent, it could even be a better resource.
Stimulants remain an under-researched, potential gold mine.
Roughly speaking, yes, the short term memory loss is particularly problematic, but depending on the task you can definitely be somewhat productive.
Psychopathological Correlates of Conspiracy Beliefs
This is why you need to make a point to interview stoned to set expectations appropriately.
> taught to reject Wikipedia as an academic source

What ends up happening is people (including academics in published work) still use Wikipedia as a source, but just don't mention it. This is much worse than just citing Wikipedia, because it can lead to "citogenesis", whereby a claim that originated (without evidence) in Wikipedia is then given credibility by being republished elsewhere. Sorting out what happened later is a huge pain, and many examples slip through the cracks.

Overall, Wikipedia should be taken for what it is: a moderately inconsistent tertiary source written by pseudonymous volunteers some of whom are dispassionate world-class experts and others of whom are incompetent amateurs, ideologues, or trolls.

However, what I've found tracking down lots of Wikipedia claims over the years is that Wikipedia is on average no less reliable than many other kinds of sources that are taken more seriously, including paper encyclopedias and peer-reviewed journal articles (and don't get me started on newspaper articles). Every source and author should be carefully evaluated for credibility and read with at least some skepticism.
Ballmer Peak for alcohol. "Spicoli Peak" for cannabis, perhaps?
- "enhances creativity and focus"

Wait, how do you make cannabis enhance task focus? I'm unfamiliar
UNESCO's Quest to Save the World's Intangible Heritage
Fandom is complete and utter SEO garbage - every single fandom with enough nerds to have sense has moved off of it into an actual independent wiki. IndieWikiBuddy is an extension that actually takes fandom websites, and redirects google searches to the actual community run page. https://getindie.wiki/
https://archive.ph/2024.03.02-132329/https://www.newyorker.c...
I have coded many times when high (very rarely on somebody's dime, but it may have happened during Covid few times): you end up doing very little.

Occasionally you'll have some crazy idea and follow it, the kind of ideas that you don't have normally.

But in general your productivity will be very low and results poor.

Don't do any kind of drugs or alcohol if you need your brain to be sharp. It's nonsense.
Can't recall where I read this off the top of my head, but wasn't a similar idea tested with musicians? If memory serves correct, the results were that while high, the musicians thought what they were making was great, but when they later revisited it when sober, they thought it was rubbish.
There are so much changes for the last 15 years. You don't need to learn all that path. You need to learn modern web development from scratch, ignoring history.

Right now, modern web development is:
- Yarn/PNPM as package manager
- TypeScript as a programming language
- React as UI framework/library
- React Router for navigating multiple pages
- UI kit (I personally have good experience with React Material UI - https://mui.com/; there is also https://tanstack.com/)
- Something to deal with fetching data (tanstack query client is cool, provides caching out of the box)
- Something to deal with forms if you have that
- Maybe a store for managing data when it's too complex (see https://redux-toolkit.js.org/api/createSlice)
- And ofc, there are some templates/frameworks that bring something of that together (https://create-react-app.dev/; maybe https://vitejs.dev/) - google for templates.

I recommend finding some friend with modern experience or at least some youtube tutorials or at least some learning course. That would help you to catch up on the best way to bootstrap your first project. Then you can practice.
We Can't Have Serious Discussions About Section 230 If People Misrepresent It
The title was too long. The original title was:

> We Can’t Have Serious Discussions About Section 230 If People Keep Misrepresenting It
I'm no where near a germ phobe, but prefer how and when I interact with people. Just last weekend I was at a dinner theater in Ashland.

I think complete isolation could indeed have an impact. Another thing that I think we will see down the road is more super bugs due to the overuse of sanitizer during that period as well.
that's me on a normal day without ADHD meds... and even then if I'm in a depressive funk, I can't think for shit. Hyper focus though can be glorious and make me feel like a 10x programmer for a few days lol..
I can't square the incredible performance of the market and health of the US economy with the deficit. If times are so good then why aren't we taking advantage of the opportunity to pay down some debt or get control of our deficit? I don't even want to think about what happens in a crisis.
Just going to say I don't think it's moral to do this unless you have permission.
Neuronal dynamics direct cerebrospinal fluid perfusion and brain clearance
A minimal phone, with an e-ink display and an alphabetic keyboard, that costs $400? Umm, that is confused.

Here is what I would call a minimal phone: https://www.gsmarena.com/nokia_3310-192.php

Unfortunately those are all now bricked by the 2G/3G shutdown and nobody makes a phone with a similar feature set (i.e. absence of everything but voice calls) any more. The Jitterbug Flip 2 comes sort of close but it still has Alexa and other confusing stuff, and you can't buy it without an overpriced subscription.

I've been looking for a phone simple enough to not confuse some of my elderly family members and those phones no longer exist. So I'm constantly the involuntary tech support for whatever phone they use. I think of buying a cheap Android phone and writing a kiosk mode app that has no access to anything except dialing the phone. Maybe someday.
You are thinking of a different calculation. I was referring to the average number of probes needed to find an unused slot, not the number needed to have a very low chance of collision for the 10,000 elements in the hash table.

If the slot is already unused, then only one probe is needed. If the slot is used, then either you have a match or you need to test the next slot(s). With 50% of the slots occupied and 50% free, you should expect 1 + 0.5 + 0.25 + ... = 2.0 probes until you find an empty slot.

Here are my results from testing three different probing techniques, using 10,000 items inserted into 20,000 slots, following by generating 10,000 new random words and seeing how many probes are needed to find an empty slot (#probes / num words):

linear_probe: 24899 / 10000 = 2.49
quadratic_probe: 21131 / 10000 = 2.11
k_independent_probe: 19925 / 10000 = 1.99

This shows that with a really good probing algorithm (each probe uses a new sha256 calculation), on average you really do have only have a 50% chance of collision, and even with linear probing (which has is easy to develop, quick to re-probe, and has good cache coherency) you don't take a big hit due to collisions.

Here's the code for the above:

import random, hashlib, itertools

rng = random.Random()

# Create a random 'word' - the details don't matter as I assume there's a good hash
def get_word():
return rng.randbytes(10)

# Return a really good hash of size 2**256.
def get_hash(word, attempt):
sha256 = hashlib.sha256(attempt.to_bytes(4, "little") + word)
return int.from_bytes(sha256.digest(), "little")

N = 20_000
# The following code requires a `slots` list, which should
# be initialized as:
# slots = [None] * N

# Use a new hash for each probe
def k_independent_probe(word):
for attempt in itertools.count(1):
h = get_hash(word, attempt) % N
if slots[h] is None:
return (attempt, h)

# Increment the hash by 1 for each probe (good cache locality)
def linear_probe(word):
h = get_hash(word, 0) % N
for attempt in itertools.count(1):
if slots[h] is None:
return (attempt, h)
h = (h + 1) % N

# Increment the hash by attempt**2 for each probe
def quadratic_probe(word):
h = get_hash(word, 0) % N
for attempt in itertools.count(1):
if slots[h] is None:
return (attempt, h)
h = (h + attempt ** 2) % N

# Add the word to the hash.
# Must set the module variable `probe` to one of the above functions.
def insert(word):
_, h = probe(word)
slots[h] = word

# Test out the probe functions.
for probe in (linear_probe, quadratic_probe, k_independent_probe):
slots = [None] * N

# Add 10,000 entries
for i in range(10_000):
word = get_word()
insert(word)

# See how many probes are needed to find an empty slot
num_tests = 10_000
total_num_probes = 0
for i in range(num_tests):
word = get_word()
num_attempts, _ = probe(word)
total_num_probes += num_attempts

print(f"{probe.__name__}: {total_num_probes} / {num_tests} = {total_num_probes/num_tests:.2f}")
I can recommend Not the End of the World: How We Can Be the First Generation to Build a Sustainable Planet by Hannah Richie if you want to see many long-term plots about pollution per country. The West is mostly decreasing emissions already where other countries will hopefully also switch to newer technologies and reach a peak in emissions too.
All good and great but I think it’s a bit misleading. The participants were asked to do LeetCode—which limits this study to the suggested effects of cannabis on arbitrary and abstract programming tasks.
> the eggs you can produce yourself are just so much better and more nutritious than you get from the grocery store

I don’t dispute the “better” part because that is so subjective. But how do you know they are more nutritious?
Yes, it is. Although seems only limited to Camera Roll folder. Perhaps this is why Samsung Camera built-in OneDrive integration uses different folder.

Their mobile app is now stripping GPS on upload while files uploaded from desktop are unaffected.

However the files I already had uploaded going back to 2017 were stripped. No idea if this was done server side or by the mobile client but the end effect is the same.

Unlike Google, Microsoft doesn't bother documenting this policy.
Not while we have non-stop propaganda blasting us every which way.
I just find it inconsistent. Lisp is (at least nominally) about processing lists, so I don't know why the list (foo bar baz) has to be different in:

(if bar
(foo bar baz)
baz)

When contrasted to:

(define-function quux [foo bar baz]
...)

If you use square brackets [x y z] as shorthand for round brackets (vector x y z), that's fine, but don't use them for basic syntactic elements.
Just go with quickjs, I think this is what you are looking for.

https://bellard.org/quickjs/
> Is the syntactically correct dummy value the same each time? If so, how does that lead to new coverage?

Per my understanding, the dummy value is constant but is only used once (to create the first valid TLV). Everything after that is a mutation of the original value that, due to the custom mutator logic, is a valid TLV. The mutations are where new coverage comes from.

> In any case, why bother with this "if invalid replace with dummy" step? Why not generate/mutate a valid TLV value from the start?

I'm guessing to handle both when there are seed files that are already valid (which you'll want to use instead of a dummy value), and when there aren't any valid seed files.
That is not made very clear in the Play Store, though.
It was some study about usage of cocaine.

That's why using drugs is really stupid, they don't enhance your capabilities, they simply give you an illusion of that.
I once got stoned and watched a washing machine wash a load from start to finish. Utterly fascinating and no way I'd have that focus unaltered. It's not clear whether it was a good use of time though.
Thanks for the links. I built my own super cheap (under $100) electric sauna, though I would not recommend it for anyone else to copy. It's lasted me about 4 years now though with about every-other-day-usage without burning down the house so... that's nice. I'll see if I can apply any of Trumpkin's Notes to my jank build [0]

[0] https://news.ycombinator.com/item?id=28495062
they should have tested building out some crud app in their preferred stack. leet code is hard if you're not high, and it's mentally challenging since every question is a new high complexity issue where normal code you might have a spot your stuck in, but the rest is easy to finagle.
I'm not sure why you're getting downvoted, the actual results were pretty subpar in my experience.

The idea is good, though.
i appreciate your comment!

it's true, you can drive an h-bridge with a pre-canned pwm waveform whose phase you adjust with a latency measured not just in milliseconds but in seconds, though you'd better have safety mechanisms that respond to a fault on the line faster than that. you don't have to use feedback to generate the control signal! but at least in garden-variety class-d amplifiers reproducing arbitrary waveforms (rather than necessarily a fixed-frequency sine wave), you get better performance if you do use feedback, so it's common practice

(disclaimer, i've never built power electronics, so i could totally be misunderstanding something)

i think you're saying that any kind of a pid loop will alternate between being pinned at maximum or minimum when the plant isn't responding to the control output, unless p = i = 0. i don't think that's correct; i think it's sufficient to not make your p coefficient overwhelmingly large. a sufficiently large i coefficient will also make your control loop tend toward extremes in this situation, but not instantly, and a nonzero i will probably always win in the end when the plant is completely unresponsive. but a moderate p won't have that effect, and d can attenuate it.

also, you can totally use current feedback from the output of your smps to drive the pwm, and that seems to me like it would be a very good idea
None of these exams are the basis for professional certification: passing them does not _on its own_ qualify anyone for any particular profession.

The Advanced Sommelier exam is part of a process that involves taking other exams and courses. The GRE Verbal is usually taken in combination with other GRE parts and used to apply for entry into a program where years of further study may be required. The UBE normally follows years of study in an approved program. (Back in the day, some people used to take the MBE, which is now a part of the UBE, while they were still in school because the exam was so easy: it was a standardised, multiple-choice test.)

The plaintiffs must make the argument that GPT-4 is "AGI" because the alleged agreement to form OpenAI was focused on "AGI" specifically, not simply development and improvement of LLMs. If OpenAI has not yet achieved AGI, then arguably the alleged agreement does not restrict whatever it is doing now. It only applies to "AGI".
> There remains a need for an empirical understanding of the true impacts of cannabis on programming.

For some definition of "need", I suppose.
That's very funny. If you have ever seen these EV fires you'll know that they are no joke. Have a look at this: https://www.dailymail.co.uk/news/article-13005001/london-bus... Have you EVER heard of even one petrol-powered bus catching fire, much less multiple in a few weeks in one city?

Insurance companies are drastically raising rates on EVs as more information comes in: https://www.theguardian.com/money/2023/sep/30/the-quotes-wer... There are many reasons for this, among them the fire hazard. The EVs cost more to fix, of course, but EV batteries can reignite weeks or months after being damaged or catching on fire. So they must also be stored very far apart while being repaired.

Ferries do not want EVs on board because of the fire hazard: https://www.autoevolution.com/news/norwegian-ferry-company-b...

This firefighting expert says why these fires are much worse than ICE fires in a thorough presentation at a conference. The audio sucks but the info is gold: https://youtube.com/watch?v=AIXTP-TgPEw

I can't say if this battery replacement costs more than the car because of fire hazards. But I think it was deemed in need of replacement because of possible fire hazards. You be the judge: https://www.autoevolution.com/news/yikes-the-60000-hyundai-i...

If you do a little actual research about lithium battery fires, all of what I'm saying will be very obvious. Idk where your slides came from but they sound very wrong.
You can create your own website.
I have to price some weird derivatives.

You do any consulting on non-adjacent areas.
in other words: if you get high enough, you can fool yourself into thinking leetcode matters for more than 30 minutes at a time
E-ink has really come a long way, applications that involve lots of motion won't be that awful. I bought a Hisense A5C smartphone a couple years ago, which is an android smartphone with a (color!) e-ink display. I bought it as more of a toy/experiment, knowing it wouldn't support US carriers, to see what an e-ink smartphone would be like. I really ended up liking the concept.

https://youtu.be/9vvhbPHFoio?t=20
Italy is putting a big hybrid floating solar–floating wind farm in the sea
> > As noted above, a lot of arable land is used to raise animals,

> The overwhelming majority of pasture lands aren't arable. See also: Wyoming.

True, but that's not a refutation of what I said. I didn't say a lot of pasture lands are arable, I said "a lot of arable land is used to raise animals."

I'd also like to reiterate my point that cattle are not the animals I'd like to see more of.

> No, you're hearing me talk about $25 heads of lettuce like they're a complete non-starter.

We're already subsidizing agriculture massively, and while there are many forms of government spending I oppose, a subsidy which a) allows people to afford food, b) pays workers, and c) improves our food sustainability and security, is exactly the sort of thing I want my taxes going to.
They are both around 4 milion paying users (each)
> Because Candy Crush relies upon being an impulse purchase. If people had to go through five steps to buy it a ton of people would abandon it.

But this does apply to apps that make up 90% of the revenue on the App Store. These aren’t numbers I’m making up - it came out in the Epic trial.

But even if that’s not the case for the other 10%, the same would apply for the App Store that applies for Amazon in the real world. Smaller merchants still choose Amazon for the conversion and that’s where the customers are when literally anyone can sell from a Squarespace website.

> Again: my argument here is choice. Let developers decide. Your counter is “but one of them is better”. You’re entitled to your opinion but that isn’t a counter argument to letting developers choose what type of payment system

And that’s the issue - everyone wants to use Apple’s App Store and have their own payment system not avoid the exposure they get from the App Store.

Once again, on Android where you can in fact tell users to go outside of the Google ay Store - hardly anyone does.

Every Indy developer thinks their little app will be special and they would be okay outside of the App Store. If they can’t even gain traction within the App Store what chances do they have of gaining traction outside of it? It’s not the 15% cut that’s keeping them from succeeding - small developers aren’t paying 30%
> Developing countries receive aid for geopolitical reasons

The point isn't why those countries agree to receive aid, it's why there is political support in developed countries for sending it. If the paper's hypothetical were true, that people in developed countries prefer to increase their own personal happiness instead of helping others, the aid would never be sent because voters in developed countries would never support it.

> There is material abundance but no access.

The paper doesn't just make this factual claim (well, it's sort of factual--talk about "access" already presupposes particular ideological views, but let that pass). It makes an additional claim about why this is true. I don't think that additional claim is true (see above and my other post upthread in response to the author).

> you can project the hoarding behaviour onto the corrupt cronies

The "hoarding behavior" that the paper claims is not the behavior of the corrupt cronies in the countries receiving aid, it's the behavior of the people in the countries that are sending aid. And that claim about "hoarding behavior" is wrong, as I've already posted elsewhere in this discussion.
I assume you have data that backs up your claim that a non-trivial percentage of homeless got hooked, legally, on opiates before turning to fentanyl? Please link it.
I think that the biggest problem is that Google is ashamed of what it is: an advertising company. Until they start embracing their own brand and meaning, there will be a constant stream of toxicity flowing between middle managers who don’t clear see and align with the company goals.
This is literally not true:

It seems to me to be equally plain that no business which depends for existence on paying less than living wages to its workers has any right to continue in this country. By "business" I mean the whole of commerce as well as the whole of industry; by workers I mean all workers, the white collar class as well as the men in overalls; and by living wages I mean more than a bare subsistence level-I mean the wages of decent living.

- Franklin D. Roosevelt

The idea that minimum wage was never a living wage and never meant to be is a rewriting of history.
The source report is presented very nicely. [0]

And this is an extremely interesting data point that we should all be celebrating!?

> Emissions in advanced economies fell to their level of 50 years ago [1]

[0] https://www.iea.org/reports/co2-emissions-in-2023

[1] https://www.iea.org/reports/co2-emissions-in-2023/emissions-...
That's a comprehensive guide. If anyone wants a similar introduction, with interactive exercises to try while they study this is also a good resource: https://www.codecademy.com/learn/learn-r
It does seem that people would wrongly associate the artificial influx of positive/warm feelings coming from a cannabis with increased task performance. Not unlike how people overestimate their own strength when drinking alcohol etc.

However, if it decreases their performance but improves their feelings towards the work, might that still be a net positive?

In other words, if you are going to be a little more pokey and error prone, but on the whole more eager to work and more resistant to burn out, that could be better than a non-cannabis user that makes fewer errors, while continuously stressing out and thinking about changing jobs.
I wonder how it went for Mudita with their "Mudita Pure" minimal phone? It is out of stock on their website and main focus is on alarm clocks.