skysight-inc/HackerNews huggingface dataset:
> - C version source: https://code.blicky.net/yorhel/ncdu/src/branch/master/

> The code is nice and very well commented.

I opened the first file in src/: browser.c. Let's take the function browse_draw_mtime() and start picking nits :-)

It has a buffer of 26 chars, which will (for a regular C string) mean 25 characters + 1 NUL terminator.

char mbuf[26];

But in the end, it prints with the printf()-like function:

printw("%26s", mbuf);

the count there is supposed to exclude the NUL terminator. So it should be 25 and not 26. Note that it cannot cause a problem, but it may indicate that the author didn't carefully grasp the exact definition of the format.

Before that, in a branch the mbuf buffer is filled with the strftime() function. This function is stupidly defined by the C standard and POSIX didn't make it better. It is not the author's fault, but one has to account for its flaws.

strftime(mbuf, sizeof(mbuf), "%Y-%m-%d %H:%M:%S %z", localtime(&t));

One would assume that the result string is truncated if it happens that the result would be too long, so that code would be fine. Well, not quite, it just protects from writing after the buffer. The standards say that in cases when the buffer is not long enough, the content of the result string is indeterminate :-/ Actually, it could even be not a string (not a properly terminated string).

So one should check the value returned by strftime(), check if it is 0, and act accordingly.

Again, it is not dangerous, since the printw("%26s", mbuf) won't read after the buffer. But it may write garbage, for example after year 9999, when the expected result string is too long for the buffer.

-------------

Then in the last file, util.c, there are those macros:

#define oom_msg "\nOut of memory, press enter to try again or Ctrl-C to give up.\n"

and

#define wrap_oom(f) \

which at some point does:

write(2, oom_msg, sizeof(oom_msg));

This is going to emit a NUL character after the newline, because sizeof() of a string literal accounts for it. So, to stop after the newline is emitted, it should be sizeof(oom_msg)-1.
He did skip out on bail the last time he was released. Fool me once ...
By doing work you're contributing, in a minute but measureable amount, to the heat death of the universe in about 10^100 years.
I’m using it in a stream-identification library I’m writing (à la ‘file’/‘libmagic’) where I want to parallelize file IO against a frozen/shareable bank of in-memory type representations (known file extensions, magic byte sequences, etc).
I live in authoritarian country. so yeah Signal is the answer and my country does fear it and trying to block it.
They don't fear whatsapp, telegram or facebook but they do fear signal.

And weird this bug never encountered with me.
I think there's room for (i.e. I think I'd read) an IndieHackers type site that focuses on one-man armies! Like IH has done in the past couple years you'd probably have to expand it, but even including <5ppl companies might still place a lot of success stories within arm's reach of OMA ambitions.
That's because no one can afford to drive in Oslo any more. Every road is a toll road and there are no parking spaces any more.
Also, as far as I know, there's no "ArgvToCommandLine", at least officially. There is a fairly common one floating around the Internet.

That means there are always subtle little gotchas with programs that build up command lines to call other programs.
Just a heads up; but these have been sold out for over a year.

It’s a great and fun kit for people looking to get into advanced electronics; but sadly is not available.
What, you mean this methane spewing stove that causes really bad air quality, and is no more responsive than an induction stove and far less powerful than an induction stove?

"Cooking with gas" is great marketing, but not so great in reality unless it's an outdoor wok.
I don't know. For what it's worth, the account is back and the entire basis for this conversation (a perm suspension) is null and void.

The system largely works, from what I can see. Getting thrown off Twitter for 24h isn't that bad of a mistake even, given the scale of the challenge they face to enforce their TOS to billions of accounts.
The conversation is whether UBI will fuel existing inequalities or remove them. I argue it will exacerbate inequalities because of the taxes needed to pay for it. How is this any more derailing than the OP's comment about Garcetti?
Yeah, I don't mean to discredit her. Just saying the peloton didn't think of her as they caught up with the front runners, as they didn't really know her. Exactly for the reason you state: she didn't attend a whole lot of pro events.
> Those are the options

No, they’re not. One can disagree with his treatment and disagree with his conduct.
If drones can encourage rain, could they be used to delay rain or spread it out over a longer time? https://interestingengineering.com/the-uae-is-using-drones-t...

> rain-controlling drones engineered by the University of Reading. The drones don't create rain themselves but help to jump-start rain production via cloud seeding. They "zap" the clouds with an electric charge, subsequently charging the droplets inside. Since the beginning of 2021, the National Center of Meteorology (NCM) has conducted 126 instances of cloud seeding.
That won’t help, of course, but that doesn’t change the fact these really are extreme weather events. They’d be causing damage and disruption anyway. I live in south east London. Last week my wife was driving home in a rain burst, she got stuck in traffic and took video of water gushing up out of a drain like a fountain. The road was near the bottom of a valley, and the pressure in the drain pipes running down the hill must have been enormous.
> I wonder how much of this is related to people having paved over their lawns and gardens.

Whilst that may well contribute, the main cause here was just the sheer volume of water in such a short space of time. I was right under the thunderstorm, we had about 80mm of rainfall in a couple of hours. That’s the equivalent of two months of normal rainfall this time of year.

When you get it coming in that quickly the water is going to run off everything.
I don't know if HN folks, on average, are grumpy and negative and mean. They might get feisty in a particular debate and there are a lot of sky-is-falling type articles.

However, I find Reddit straight-up mean. I rarely participate, and if I do, it's more around specific hobbies, real estate and stock type forums. From the mods all the way down, there's a certain take-ya-down-with-one-liners personality type that seems to just predominate. Similar to Twitter. I'm sure there are good subs, but I'm really curious what it is about Reddit that leads to toxicity on seemingly neutral topics. I always thought it was the young age, but honestly a lot of these people are adults and not teens (teens don't frequent real estate investment subs).
True, thanks for the correction. I think I got the notion about muscle growth from a news article that reported on this paper.
> I think what I'm trying to get at is that incorrectly believing you have access to a secure messenger can be worse than acting as if you don't, if those are your options.

For the average person, I do not believe this is true. For the non-average person, I believe you are correct but most of these people are aware and should be constantly trained.

I'm not saying you're wrong, I'm saying that there are two different conversations to be had and we need to know which one we're having. To me it looks like Signal is about as good as you get without loads of complication and for what it is meant to do.

> he Pegasus exploit does reflect badly on Apple

And same with this on Signal. I do believe we should hold these companies to high standards. But the point I'm trying to make is that these also aren't reasons to abandon the platforms completely (as many users are suggesting here). That's throwing the baby out with the bathwater.
> It’s high time, either way, for both sides to be heard in court.

This is one of those positions that is designed to sound reasonable by appealing to "the middle ground" for its own sake.

It's not time for both sides to be heard in court. It never was. To bring someone into court, you need to make the case that they did something wrong first.
> MrWissen2Go

Holy shit, that’s hilarious. That channel is not only well known for integrity, they (it‘s multiple channels run by a team now) also recently followed a spam e-mail looking for ghost writers and have made multiple videos on vaccines.

That was about the worst place to hit. I wonder how many people they contacted - the number of known cases is so small that it looks like they should’ve selected well.
Given the thousands of US Mil installations all across the globe, foreign intervention and police actions, geopolitical intrigue, etc it is unfortunately looking more and more like a Pax Romana -- a troubling sign, depending on your perspective.
I think I see now. So the author wasn't saying that construction of values is what defines the type. Rather it is a necessary step before you can start talking about sets of values. (And you can talk about a type without knowing how to construct it, so that makes types different from sets?)
The position was quite clear: Linux is more than capable to work as Desktop or business computer for the most common industries and that its support for common peripheral devices has been pretty much in "just works" territory, provided these peripherals are not using or dependent on extremely new protocols or standards.
If you like and share enough quotes from and links to Mein Kampf, it doesn't take Sherlock Holmes to figure out you're a Nazi. And if you don't think that says something about your "moral values" you're sadly mistaken.

(My prerogative to assign cognitive attributes to you derives not from your choice of reading material, but from your apparent inability to realise the above.)
When it comes to vaccines, you don't necessarily have to trust government institutions.

If you are normal, adult, educated person you don't need to "trust" the government for everything. You should hopefully be able to think for yourself and be able to evaluate when the story checks out and where it doesn't.

Trust knowledge that has been gathered over decades, statistics and research that has been gathered by many research institutions (unless you can claim all of them are in collusion). Vaccines do work and we desperately need everybody to get vaccinated. Every country that has implemented vaccinations vigorously has seen immediate, large drop in cases. People who are going to hospital at the moment are almost exclusively unvaccinated.

A person or institution or government that shows it is not trustworthy in one area undermines itself in other areas and so it is understandable that it may sow confusion. But you should still have ability to think for yourself and use it to make rational decisons.
Specifically on reddit and twitter, the few times I’ve used them, they seem to be filled with assholes.

It seems that these people have no release for their views in the real world and for some reason these social sites are suitable places (from their perspective)
https://swprs.org/covid-vaccines-deaths/

But you should confront your opinion with reality instaed of data, that are manipulated and can be interpreted many ways. How many people did you know personaly that was killed by covid?
BJJ is great exercise! Think of it as extreme yoga with a little chess sprinkled in ;)

I've seen quite a few people who were out of shape come in and start training BJJ and drop weight and get in great shape. Eventually, if you keep training BJJ you will want to supplement some cardio and weight lifting though.

With all that said, for me personally, the biggest benefit from BJJ was mental and emotional.
> To bring someone into court, you need to make the case that they did something wrong first

I’m not a fan of our espionage laws. But they are, indisputably, laws. There has been a lot of evaluation of the questions of jurisdiction and standing. Barring wild, new evidence, I don’t see good reason to question that string of precedence.
Isn't this illegal? How is the student data making its way into the sheriff department's hands?

This reminds me of the 1990 film Pump Up The Volume [0] where the school's dean was creating dossiers on singled out students, which was eventually portrayed as a criminal act in the end.

[0] https://en.wikipedia.org/wiki/Pump_Up_the_Volume_(film)

[0.0] https://www.imdb.com/title/tt0100436/
This letter is in a foreign language called "big city liberal democrat caught between burn the world marxists and panicked townsfolk running from the movie monster of failed activist government policies". Here. Let me translate:

KID!

YOU ABOUT TO BE MERKED BY HARD CORE CRIMINALS. WE KNOW. WE'RE THE COPS. SEE YOU ON THE CORONER SLAB.
Laurens Cerulus @laurenscerulus Feb 20, 2020

News: The EU Commission told its staff to start using @signalapp to chat to friends and contacts. The move is part of an effort to fix the holes in EU cybersecurity. Story (for Pros for now) https://twitter.com/bendrath/status/1230455295018766337
Of the consumer/Enterprise SaaS companies I've worked with, many devs who say they are doing "backend" are just writing controllers and APIs specifically for front end/UI consumption.

A lot of places have combined that work into same stack/JS and call it "frontend".
And all you managed to demonstrate being misguided was yourself.
I think the idea is to seed rain to get moisture out of the air mass before it builds up too much, or before it hits population centres.
> Here's the thing I try to remember: when life isn't going well for a person, it's easy to turn to the Internet to vent frustration

Yes. It's right there (it takes three seconds to pull a phone out of a pocket), and it's instantly a way to talk to people. Sometimes there's no one else there.

Also, in American culture you're not supposed to be negative in social situations. Always positive, always chirpy. Maybe that is why it's so toxic online. Because similar to the Victorian age and sexual repression, the always-positive leads to a toxic sublimation into Internet anonymity? I'm just tossing this out there as a thought. A counter would be, the entire world is toxic online.
Using your brain to differentiate between completely unrelated topics helps.
I think it’s illegal basically everywhere.
Can we stop with Guardian articles? It's a tabloid rag that routinely pumps out sensationalist bullshit...
In Southern California we’ve paved almost everything from the Ocean until 50 or 60 miles inland.
Who is behind Freenom? Shouldn't they have to disclose this method of business in their TOS?
>are at least working on E2E

So they're in the process of moving it from 1995 to 2004. That's great!

If all you have on Signal is opt-in feature for payment, and an issue of usernames that's being worked on -- but you want to offer as a solution a product that's for now, completely insecure by design (but it's being worked on), you're in dangerous waters. This is especially condemnable because the issue with Signal here is confidentiality of sensitive data.

You'd replace a one-in-a-billion database key collision problem with 100% of content leaking to service provider that literally offered the Telegram defense "The AES256 key is on a DIFFERENT computer". It's not. It by definition of how computers work, can not be. The database key sits in the RAM of the database server doing the database commits. The CPU can't perform AES operations without the key, and the key isn't being quantum teleported from another machine's RAM to the registers of the computer doing the encryption. These guys have no idea how computer security works, yet you deem them worthy of your attention. This makes me question your expertise on the subject matter too.
DW was the most mainstream coverage I saw: https://www.dw.com/de/hoffnungsschimmer-f%C3%BCr-julian-assa...
What are you even talking about?

YouTube has had ads ever since shortly after it launched, and it never did anything like promise it would be ad-free. There's no bait and switch, nor is it anything like Freenom.

If YouTube acted like Freenom, it would wait until your video got popular, then remove it unless you paid YouTube a bunch of money. Which it doesn't do.

So how on earth are you trying to connect Freenom to YouTube...?!
From my anecdotal data, a whole lot of tutorials are written by 'learn Java in 21 day' stage developers. People are excited, want to put their name out there and start churning out tutorials on concepts only yesterday they had no clue about. Similar situation with many online courses too.
There are entire fields of medicine, including psychiatry and psychology, that believe surveying people on how depressed, anxious, etc. they feel is the scientific basis of research, diagnosis, and treatment.

Your idea to just ignore what people say is just totally out there...
Now they have the analytical tools given to them by the tech industry to say "Yes, we need more of this depressing stuff because it's most profitable"

To make matters worse, journalism is not longer a career that provides a path to a respectable middle to upper middle class life, so you have an entire profession where those working in that profession have generally depressive prospects in life.

Want to make society content? Keep journalists content.
The upcoming Interface Types spec for WebAssembly was thinking to not support WTF-16 string format, which means any Wasm modules (for example those written in AssemblyScript, a web-inspired language) passing strings from one side to the other (f.e. from Wasm to JS) will experience two things:

- an extra performance cost due to format conversion at the boundary,

- as well as negative implications on security and data integrity,

thus making this a loss for the web if Interface Types will not be fully compatible with the web (JavaScript) by default.

Hope that sums it up in one sentence. :)
I love stuff like this. I recently[0] put some raspberry pis and beaglebones to work monitoring my plants (though my own solution is not as smooth as this, and I didn't opt for photo capability).

My robogardeners alert me via push notification on my phone when e.g. my basil needs watering, and I can issue them commands to set water/dryness thresholds via IRC.

[0] https://0x85.org/raspi.html
R32 (difluoromethane) or R290 (propane) both have ozone depletion potential (ODP) of 0 and are in common use with new refrigeration units.

This technology looks interesting due to its simplicity and could potentially be cheaper than existing phase-change systems which are prone to leaking and need maintenance. But refrigerants which don't directly harm the ozone layer are already here...
It is because the only logic we have left is Market Logic and the only ethical barrier we have left between us and violence is The Economy. The Economy is entirely faith based. And our faith is waning, and among younger generations, is gone. To survive in Market Logic we must act as though we believe we are fully individuated and on our own with bootstraps tugged. But how we actually live is totally, globally interdependent. The pandemic, on top of this, insists on it. This is the source of cognitive dissonance. ( JP Dupuy The Economy and The Future)
Fundamentally I agree with you and have been doing my best to remove 20th century laboratory science experiments from my diet. I mostly don't use Teflon at all and when I do I clean it using hot water jets instead of scrubbing it.

That being said, I'm not a chemist, I was just mostly awake during undergrad chem, and I know there are fluorine compounds that are enthusiastic oxidizers[1], but some like Teflon coatings are more or less chemically inert. I assume that's because the oxidization has been taken to the point it's going to go. Is there a fluorine compound that will happily oxidize Teflon? The point of my rambling is can it be conclusively shown in controlled laboratory experiments that these compounds are completely nonreactive with the human digestive tract?

[1] https://blogs.sciencemag.org/pipeline/archives/2010/02/23/th...
> "... and not confuse my by adding the mysqli_real_escape_string stuff... CSRF token ...I already know to do that..."

If you're already that good, how does seeing a CSRF token in an answer actually impact you? Does it prevent you from copy/pasting someone's "example" code?
This isn't a valid argument.
> just based on common sense regarding how the application is normally used

Just based on assumptions of how the application is used.

"falsehoods programmers believe" comes to mind. The uniqueness of names in your example could be false in some (or many? No idea) cultures.
Why not? It seems like finance fills the “marquee industry makes a small percentage of the population very rich” for NYC.
The 48hz would ruin the whole build for me. Is that likely to be an Openbsd issue?
I look forward to Westminster taking climate change more seriously now…
Issues with vaccines are typically caught within months, in the first few trials. No reason this should be different.
Typical of HN to downvote the one person who actually participated in bodybuilding competitions.
>I'd rather use a chat app that takes security matters seriously and urgently and will eventually have E2E.

Deploying messaging app without E2EE being the first four chars on the security design paper -- even before the product name -- is the opposite of taking security matters seriously.
Evaporated I think 66grams of propane is about 1cuft of gas. which doesn't seem to me to be that scary. A perfect air to fuel ratio would require mixing 16 cuft of air. And flammable range is narrow. Comparison, your kitchen is probably 1000 cuft.

So I think you are right, slow leak isn't much of a hazard.
>natural state of nature

What about modern life has anything to do with this mythical "natural" state? Why should people be left to die as if we were the same as gazelles?
SmartWriter – Personalisation Outreach Software
Smartwriter is personalisation outreach software that creates ultra-unique icebreakers using customer data such as their Linkedin profile, bio, job description, recommendations and recent activity.

You personalise emails based on the companies case studies, blogs, news mentions or unique points about the firm. SmartWriter lets you acquire 100s of backlinks in a click of a button with personalised outreach to help you insert links, replace competitors and get guest posts within seconds.
Personally, I use it because it was the best choice a couple of years ago, and I (somewhat recently) managed to convince family to use it too.

However, after this, I am probably going to set up my own Matrix server and use that as much as possible, encrypted of course.
Just focusing on Assange alone, it's not pertinent, sure. But Assange (and wikileaks, and anything behind it) in this (my?) frame of reference is not an individual, but serves as a pars pro toto for the freedom of press and the judicial system as a whole.

To me, the coverage he gets in the far-reaching magazines is a little bit underrepresented, to stay polite. This includes U.S. press, UK press and german press.
The quote you provided states that:

"In 2019, 36% percent of the chronically homeless suffered from a chronic substance abuse problem, a severe mental illness, or both"

The key word here is "chronic." According to the National Alliance to End Homelessnes[0][1] (based on data, including the link you cited, from HUD[2]), less than 20% of homeless people are chronically homeless. As such, less than 10% of the total homeless population "suffer chronic substance abuse problem, a severe mental illness, or both"

So you're projecting the traits of a (relatively) small group onto the larger whole. An assertion which seems problematic at best.

[0] https://endhomelessness.org/homelessness-in-america/homeless...

[1] https://public.tableau.com/static/images/20/2020SOH_PIT_bars...

[2] https://www.hudexchange.info/programs/coc/coc-homeless-popul...
yep, we should def do double-blind studies with hydrogen peroxide