skysight-inc/HackerNews huggingface dataset:
The code already has UB if it does not respect the "const in spirit"-ness of what those functions return. The warnings would be introduced to prevent new code from triggering that foot gun.
I second this suggestion. I have an older copy of the book. I have applied it to my business prose, and it has made a world of difference.
As a guest you don't need to log in with your socials. For now hosts do but we are working quickly on a login with out socials solution. Stay tuned, and thanks for the feedback!
It seems to me the only conclusion we can draw by studying Sweden is that Sweden's policy may have worked for their country for the studied timeline. Let's see if it continues to work going forward. We can't say for sure that the policy was what kept virus propagation under control, it might just be the set of factors outside of the government policy. Similarly we can't just apply the same policy elsewhere, in completely different circumstances, and expect for it to yield similar results. Policy has to be decided based on as much data as you can gather, find out the main virus propagation causes and try to deal with those in an effective way. Don't do something because "Sweden did it".
Yeah, us-east-1 is pretty good at failing already. We lost us-east-1c for most of the day about a week ago due to a fiber line being cut. I'd estimate that AWS manages fewer than "three 9s" in us-east-1 on average. Not across the board, but at any given time something has a decent chance of not working, be it an entire AZ, or regional S3, etc. They're still pretty reliable, and I like the idea of a zone with built-in failure for testing things, but your joke about us-east-1 is based in solid fact.
Pragmatic testing with Pytest-Locker; Assert not-changed
> All in all, the whole 'colonization was not so bad' is whitewashing of history. And we should stop putting positive light on it. Just because one slave owner was 'good' it doesn't make slavery justified

Eh, you're whitewashing history right there.

Projecting today's morals,values & information on to a past people who did not have those who were raised when the norm was the norm.

Savagery existed throughout mankind and to think otherwise is silly.

Every land had tribes who may have formed an alliance but also would have just as likely killed & enslaved others outside their tribe. _Every_ land.
While they are still withholding info about how to exploit the bugs, there is more technical detail in their Defcon talk, "Pwn2Own Qualcomm Compute DSP for Fun and Profit" https://www.youtube.com/watch?v=CrLJ29quZY8
I wonder how much you would have to pay Amazon for them to send a tech down to the datacenter and pull the plug on your running node
Kind of a lame article. He is complaining about his $50 consumer grade UPS. The minimum any server needs is the Apc SMT750 "Smart-ups". It takes two batteries, cheap ones last about 3 years, the replacements from APC can last between 5-7 years. But the unit can supply mains power with no battery connected and the batteries can be hot swapped easily from the front of the case. These are $300 new, but you can find them used on ebay between $50-$100.
"Yo, squid guy, what do you think about Seinfeld?"

[...silence...]
Please tell me if I misunderstood but this is what I thought I was reading here:

- The author is someone quite young (undergrad age) who is serving on a C language committee (that I assume is mostly made up of people who are over 40, probably mostly over 50).

- The author not only is donating his own time to C language committee work, but also clearly knows what he's talking about regarding C.

The article came across to me as thinly-disguised frustration/anger that the committee had no interest in making C "safer".

My take away was that the article very much fitted in with all the articles one sees being positive about Rust not just being of academic / hobbyist interest but being a serious contender for a replacement in many industry contexts.
Sure, my point was that even with the proper == comparison I'd still write the (now redundant) parens because I find it more readable that way.

Actually in languages like Rust with type inference that make it cheap and non-verbose to declare intermediate values I tend to avoid complicated conditions altogether, I could rewrite the provided expression like:

let invalid_options = (options == (__WCLONE|__WALL));
let is_root = (current->uid == 0);

if invalid_options && is_root {
// ...
}

One might argue that it's overkill but I find that it's more "self-documenting"
that way. I find that the more experienced I get, the most verbose my code
becomes. Maybe it's early onset dementia, or maybe it's realizing that it's
easier to write the code than to read it.

Of course you can do that in C as well but you have to declare the boolean
variables, and in general it's frowned upon to intermingle code and variable
declarations so you'd have to add them at the beginning of the function so it
adds boilerplate etc...
It's difficult in practice to transfer load to generators for test especially if there's load shedding involved as is common in larger facilities (higher-power-consumption items like part of air conditioning capacity are cut off when transferred to generators). To help address this a lot of more critical facilities are equipped with a test load (really just a very large outdoor resistor with active cooling) that allows for running the generators at rated load for test and exercise without actually transferring. Of course, these tests do not always detect problems with the transfer equipment, and if things aren't designed and maintained well the generator may experience load under real conditions that behaves differently from the test load.
I don’t know if their newer revisions are any better, but I bought a CP1500PFCLCD in 2011. When the battery died from old age, it cut power to all of the battery backed receptacles until I power cycled the UPS. When the charger failed a few years after that, it did the exact same thing.
Google Has Removed the Weather App for Some Pixel Owners
Damn, you're right: Currently, “reaching the } that terminates the main function returns a value of 0”. In my defense, that was different in C89, which was the last one I worked on implementing and knew completely: “If the main function executes a return that specifies no value, the termination status returned to the host environment is undefined” and “Reaching the } that terminates a function is equivalent to
executing a return statement without an expression.”
Auditing/public research and bug bounties are not really the same category.
> If you have a lot of such companies or such jobs then you will have a societal insolvency, won't you?

See: Canada's free health system, or UK's NHS, or literally any other single payer system.
The good news is that any new avionics system is going to have the ability for electronic distribution. Mostly due to reduced cost (cheaper than mailing out disks/CDs/DVDs) and better ability to correct any bad updates that are released.
my new habit is that I still don't do any of the things I know I should, but now I don't feel as guilty
Well if I had one minute that would have been plenty. But mine went right into "overload" after a second and shut itself off.
They would actually provide support? That's amazing! Right now, the solution is to contact them through social media campaigns and hope the right people step in to fix.

$50 could be steep for many and trivial for others, but that's a different discussion.
I just want to say thank you for providing your perspective to help balance out all the uninformed China-bashing. And for taking the time to address all the points that others have brought up in their replies.
I have power failures a few times a week up to a few hours each time, living in a capital city of an European Union country. Having power failures a couple of times per year is "extremely infrequent".
“ the P-51H Mustang was rated at 1,380 hp, but WEP would deliver up to 2,218 hp”

Wow!
I think the core problem is this: In building ANY documentation you have a slider between cost, freshness and accuracy. You can pick any two. You can NEVER obtain all three. My last place of work was a large FAANG and we had multiple knowledge management systems.

I was, and still remain firmly in the wiki camp. If you find information out of date date in a wiki you can flag it, comment on it or update it. Wikis are not a "single-source-of-truth". The effort to make everything authoritative and run through 20 layers of approvals kills the will/time/ability to document things and tosses tar into the speedy gears of your documentation machine.

So you have articles from 10 years ago? are they hurting you? No they are not- just because 12 editors did not find them useful does not mean that the 'irrelevant' out of date article from 10 years ago wont help the oncall getting paged at 3AM. Keep your stale data. Lessons learned and documentation of old things can find new ways of being important long past the time that they served their core function.

Storage is cheap. No need to be a deletionist- you gain nothing. What you loose is history and perspective.

Personally I had plenty of documents I would look at that were over 6 years old and I was very thankful to find something from the past- "Ohhhh so that is why we chose this architecture!" so now I can say "Yeah, I actually found out why we did things this way- we no longer need to do this and should revisit how we stand these things up."

What I see is a 3-4 year cycle/tenure/promo/depart on good engineers. If your history only goes back that far then you are basically losing history every generation of engineer. For what it is worth, in my experience, most of the people who propose this sort of thing have never been on the other side of the pager at 3AM.
When I worked at Skype / Microsoft and Azure was quite young, the Data team next to me had a close relationship with one of the Azure groups who were building new data centers.

The Azure group would ask them to send large loads of data their way, so they could get some "real" load on the servers. There would be issues at the infra level, and the team had to detect this and respond to it. In return, the data team would also ask the Azure folks to just unpug a few machines - power them off, take out network cables - helping them test what happens.

Unfortunately, this was a one-off, and once the data center was stable, the team lost this kind of "insider" connection.

Howerver, as a fun fact, at Skype, we could use Azure for free for about a year - every dev in the office, for work purposes (including work pet projects). We spun up way too many instances during time, as you'd expect, and only came around to turning them off when Azure changed billing to charge 10% of the "regular" pricing for internal customers.
Did that predate TurboC 1.00? I always used the tiny model in that (being an assembly programmer used to flat memory spaces it was the only way to go).
Change the "No" to "Yes you are right" :)
Yeah because Samsung has so much better history of fixing security issues...
There's a huge difference between controlling what people do on their own land, and controlling how people affect the broader ecosystem. Burning oil or gas and affecting the atmosphere for everyone is a much larger-scale issue than a local wetland.

(And if you're told you can't turn a swamp into a field, for example, you also ought to get paid for effectively having to maintain a public resource.)
smut is gratituous and without meaning and has a singular purpose. It is pretty easy to tell apart.
I don't know why, but it happens to everyone and it's been that way for a long time. Either their engineers are failing, or there's some sketchy monetary reason for it. You're not the only one.
Ideas for Programmers Looking Beyond Web Development
Deciding Between Row- and Columnar-Stores – Why We Chose Both
You beat me to it. Roam's Daily Notes (automatically created) are about as low-friction as it gets to meet the OP's "spec".
> What if $50 million was enough to bankrupt/kill Facebook?

If if's and but's were candy and nuts then we'd all have a merry christmas.

If $50 million could bankrupt FB then the Winklevoss twins would have never got that much.
Corroborated!

Back-UPS stepped sine wave has about 3 square steps above or below zero, so it's a very rough approximation of a sine wave. Adequate for many kinds of equipment, but ugly on a scope.

There is, or used to be, a pin on the Smart-UPS line that you could tie high (or low?), to tell the device to operate in "Online" mode (inverter always active, line power continuously tending the battery). APC also sold it preconfigured that way as a separate, more expensive, product. :)

There's also a trick to jump-starting an unplugged-but-charged Smart-UPS. I've used this for several hours of remote power in inconvenient locations.

Quality devices, but test them regularly. The switch from idle to high-draw can be violent, and it takes out weak components. Similar to tungsten lightbulb filaments.
Allowing companies to charge their customers $50 to resolve account access issues would only give companies an incentive to make 'mistakes' so they can earn $50 by spending a few minutes 'fixing' the error.

Customers shouldn't be billed to fix mistakes that aren't their fault. In a functioning market, money is supposed to flow away from faults, not towards them.
> I want to agree with you, but: a company whose employees' lives must be subsidized by the taxpayer (because they aren't earning enough to live on from full-time wages) is a net economic negative to society.

Err...is it? Some income is better than no income. The more the company pays, the less the worker's life has to be subsidized. Any pay at all reduces the necessary subsidy, not including say, unpaid transportation costs. The pay must at least match the cost of being at work, but no employee would accept payment less than the cost of getting to work.
This will be interesting for the LNG exports to Europe

The EU commission is looking at associated methane emissions from natural gas imports, so there is a risk that the US may very well shut off their access to EU markets, or be subject to taxation or similar

https://ec.europa.eu/info/news/commission-open-views-methane...
Whilst I'm building signup, I realise that I probably also need reset password functionality. If a user signs up, but then forgets their password, that's a problem. But from my perspective right now, is this a nice problem to have? Actually, yes! I have zero users, but having this problem implies I would have users, which would be great. Reset password functionality is important, and will absolutely be required eventually, but I can do it later. First, I should ship anything that's stopping me from getting users in the first place.

While I'm all for building minimum viable products, I would argue that a login process that does not have a password reset function is too minimal to be viable. If you're so strapped for time that you can't build a password reset form while you're building your user sign-up form, I would ask why you're bothering with building your own sign-up functionality at all. Why not use OpenID or OAuth based logins that bypass the need for building a sign-up system at all?

As a user, I would be hesitant to sign up for a product that didn't have password-reset functionality, and, if I discovered that the service I just signed up for has no way to reset a password, I would probably stop using it (since I lost my password and have no way of resetting) and disrecommend it to people who ask me about it.
The libre/gratis distinction is important, sure. But when rms argued against "programs as property" here, there were certain implications about pricing models that came along for the ride, whether that was his primary intention or not.

My argument is really a (somewhat tongue in cheek) rebuttal to people who think libre software, which incidentally tends to be gratis, can never be high quality or sustainable.
> each with an NSN price tag of $170,000 per

This is why we don't have decent public health care. That's obscene.
I wonder if this can be used to build a 3D display?

Since they can control propagation speed, you can control the intersection point of two laser pulses.

Let's say that each pulse is not enough to excite some medium to emit a photon, but if you time both pulses to intersect at a specific point in space, the combined energy of both pulses could trigger the excitation so the medium emits a photon.

You could even use the same laser to select the position, send the slow pulse first, then the fast one exactly right so they intersect at the spatial point where you want a "dot" to appear.
The graphs are cool, and when I saw them I was seriously tempted. Then I thought:

(a) What does this tell me?

(b) How will I act on this?

I still have no answers to those questions, and while I still think the graphs are cool, and still create similar graphs from my bespoke system, I still don't think they actually give me anything.

I'd love to hear your thoughts on that.
> "Clean this item and put it away. Then do that for every other piece of cooking equipment."

Without the "do" it's nonsensical. And that was exactly my point.
https://archive.is/zlOzx
Why is that lame? My smartphone has compute capabilities that come close to my home PC's, yet it has a battery that's much cheaper than $50.
My own UPS system is focused around keeping the telephone system and one DSL modem up and running through 2 days without power. That way if there is a bad thunderstorm there is no panic about working at home, I can use a laptop and tablets and communicate as much as I need.

I have a PC tower server and realized off the bat that it would not be feasible to supply it with backup power for any worthwhile period of time. If the power goes out it will crash, but it runs on ext4 and ZFS and odds are very good it will come back when the power does and put itself back together.
Step up your Zapier emails: get analytics
It's AWS; surely half of the work would be finding the server that happens to be running your instance, anonymously sitting in a datacenter with thousands of other servers. There's also the question of how many other customers' instances are located on the same hardware.
The European colonialism would not have happened had there not been resources - human and mineral - to exploit. They would not have brought their technology over in exchange for a smile and a hug. Without something to exploit their would have been no reason for the Europeans to have anything to do with Africa or the New World.

Your comparison with passwords is apt. In fact, it was less than a decade ago that I would sniff wifi and collect all kinds of passwords. In fact, it was so easy that a browser extension was created specifically to sniff other wifi users' Facebook passwords. That browser extension was the straw that broke the camel: since then there has been a huge push towards HTTPS.

Where does this fit into your analogy? Weakness invites exploitation, exploitation catalyses the push towards improvement. We see it everywhere: car safety, environmental regulations, Arab spring, gay rights. Yes, the colonialism _was_ necessary to get to the standard of living now seen in major African cities. As a Jew, I'll tell you that the Holocaust was a necessary step towards a modern, independent Jewish state.

That does _not_ excuse colonialism, the Holocaust, password sniffing, toxic chemical dumping, or any of the other atrocities that had to occur for the dice to fall where they are today.
Google never said their phone support is for login issues and makes it clear you need to login for support, and the op (who is using a throway) said they didn't remember using a mobile number when signing up so it sounds like the problem is partly on them. If you've been a customer for almost a year and suddenly realized you don't have a number you can call for support, then there is no reason to be outraged since they never promised that in the first place before you signed up and you were too careless to look. They do have a help page regarding login issues:

https://support.google.com/a/answer/6335621
Thanks, this is the best example I've seen.
The quantity of dumb fucks in the US is extraordinary
The software that really matters, like really matters (not talking even about something like Google Search or Gmail)... is usually like this, since it's built to be almost never changed, since changing it is so high risk that it's almost never worth the cost.
They didn't pay him for the reduced value of his land, did he? I think that's a lot of the problem with these regulations - the government requires people to abide by them, but does not compensate for them.
Cool product! I've actually been working on something somewhat similar (WIP: https://cyberparty.io/).

Have you considered or tried playing background music to get more of a bar atmosphere?
In short because it's an easy to people who are acutely harmed by this stuff (even while experiencing unseen long-term benefits).

I have an early-90s Volkswagen van. It came with a very underpowered and fuel-thirsty gas engine. Eventually it could barely make it up the hills around here, and was prohibitively expensive (not to mention unreliable) to use practically.

I replaced the old engine with a modern TDI that gets ~33mpg and is undoubtably cleaner than the 80s-era technology that powered it before. It gave the van a renewed life, keeping it from being crushed and precluding the environmental cost of building a new car. And above all, it solved my problem in a mentally engaging way.

For this I have been rewarded with constant red tape from the state department of air quality and EPA. They test tailpipe opacity while driving it on a set of rollers (if I can find a tech that knows how to drive stick shift). The standard to beat is 20% opaque, which would choke out the room. Despite the LED/opto pair usually measuring less than 1% opaque, it once measured 100% opaque. Think about that for a minute.

I am not the only one to have done something like this, much less the only one to have EPA-mandated portable gas container designs break & spill, EPA-mandated sensor systems break and cost hundreds, etc. I'm not the only one who's been annoyed by land closures (despite having a permit) due to the EPA's concerns of dust entering the air. This is to say nothing of e.g. the farmers who have had increased compliance costs and fines for operating on their own land. A politician coming out against the EPA is an immediate emotional appeal to many people who are somewhat likely to support Trump's ideas to begin with. These people feel they have been hamstrung by the man, and apparently think that mining for uranium in the Grand Canyon is a reasonable price to pay to beat back the EPA a little.

The answer, of course, is to be more sensible in the way that the environment is regulated. No, people should not mine the Grand Canyon (at least not in any way mining is currently conducted). No, a yearly tailpipe opacity test is not an effective way of regulating diesel emissions. But unfortunately, politics turns everything into an emotional appeal that leads to both sides talking past one another. I think the best thing we can do as individuals is honestly try to be better.
I was going to post this but you beat me to it.

We are forced to use Azure for business reasons where I work, and the frequency of one off failures and outages is insane.
To me the main problem would be the noise. I don't have a dedicated server room and even if me and my wife's bedroom + living room is quite big it'd still be annoying during the night. But I am quite fond of the idea to reuse old laptops regardless.

Can you post a link to those 7 year old micro towers, please?
Twitch is one offensive drama after the other. I’d say it’s wiser to keep some distance.
If the cable provider offers digital voice, they're required to have backup power for their infrastructure for at least 24 hours (or 8 hours under older regs) to allow for 911 calls. The power injectors used for cable amplifiers usually just have a couple of lead-acid batteries in them.