skysight-inc/HackerNews huggingface dataset:
I have a little metadata table in production that has a field that says “this is a production database”. The delete-everything script reads that flag via a SQL query that will error out of it’s set in the same transaction as the deletion. To prevent the flag from getting cleared in production, the production software stack will refuse to run if the “production” flag is not set.
What about CO<subscript>2</subscript>?
Are you really marveled by your phone after you've had it for a week or so?

I think once the honeymoon gadget phase wears off, most people get over it and then prefer to protect it so that their expensive device lasts longer.
Agreed. I don’t know anything about the players here, but I’m kind of surprised that a CEO would air a letter like this publicly, not only from the “dirty laundry” perspective, but because it comes off as really petty and ridiculous.

I’d expect this from some middle manager at a university.
Low quality glass cracks more.
On wireguard -- I recently replaced a pretty grim/complicated openvpn setup with a wireguard one, and while I had to write a ~200 line shell script to let our ops guys create configs for the users, it's been pretty much a great experience. (wireguard is itching for a nice ui or cli tool for managing configs.... if anyone knows one please let me know...)

Wireguard is simple point-to-point, I have an iptables rule that masquarades the tunnel interface to the internal interface of the 'vpn server' but it's all so simple that don't feel bad at all that someone down the road will inherit this system and have to mange it. It's obvious, the stuff I wrote around it is simple enough to grok in an hour, and that's a world of difference from openvpn, where you can easily deploy it with some ansible-galaxy role, but actually maintaining it for 200+ devs requires you to actually undersand it which is a different thing.

I'm not really contributing anything here, apart from -- everywhere I've used wireguard I feel better for it. If you're weighing up options, I suggest you go wg. :}
Every now and then comments like this one pop up (or even a bit more frequently than the way that sounds). But it's hard to understand how they get written up and posted. It only makes sense if you assume the author has dozed off halfway through the comment they meant to reply to, woke up, and banged out a response anyway.
That's wonderful, the virus is literally political.
> MySQL also bundles most external dependencies (excluding for example boost)

This is a great callout. Most people running PG for serious production probably need pgbouncer which looks like it adds 35-50K lines. There's probably a few more 50K-ish plugins that are must haves for serious usage.

I don't know how many lines NDB is, but the lack of a standard failover mechanism and cluster manager in Postgres is a pain. The number of effective lines that the bespoke systems people build for that purpose is probably quite large.
Use cash. Also ensures they get all of it.
Thinking that localhost is anything special is like year 1.5 developer mistake
Do you want a cynical answer?

Because a lot of the types of misinformation that are being spread from abroad (conspiracy theories and dangerous anti-science information) are equally generated and spread from within the country, and by elected officials. If you're just regulating the type of information, you're screwed. You need to regulate where it's coming from, which is much harder on the internet (because it can be faked so easily).
https://en.wikipedia.org/wiki/Herd_immunity

> Herd immunity was first recognized as a naturally occurring phenomenon in the 1930s when A. W. Hedrich published research on the epidemiology of measles in Baltimore, and took notice that after many children had become immune to measles, the number of new infections temporarily decreased, including among susceptible children.

(To be clear, though, I don't think the herd immunity strategy is a good one for COVID-19.)
This is correct. The earth is ductile at long time periods, and mountains maintain isostatic equilibrium as the tops are eroded away. The article quote is absurd. Source: my earth science PhD.
Gotcha. I expected the bar to be relative to the other produce. I guess I don't really care that a vegetable is 105/200 days remaining because the total length of that specific vegetables season is kinda irrelevant in this context.
> Beyond that, why does one company need to make multiple algorithms? Why do we need a law to enforce this?

I meant they are enforced to open their content for licensing.

The market we have today is for services that are actually a bundle of things; youtube is both a video infrastructure and a recommendation engine. Twitter is both an infrastructure for textual content, for a network of people and a recommendation engine based on both.

It is hard to say if they are chosen for their recommendation engines or their content/network. The latter is very prone for monopolistic dynamics, the former is being victims of that power law distribution in my opinion.

I don't want to be as engaged as possible with twitter, but twitter does. If the new "virtuous-recommendation-engine" promised they are not there for maximum money but maximum wellbeing and sensemaking of their users, I might switch to that, ask my relatives to switch to that, force my kids to switch to that.
I'd rather get over it and still have the device in my pocket without needing the extra hardware to keep it in one piece.
No rebuttals. Just downvotes. That'll teach you a lesson, right??

edit: Oh no! Someone downvoted this comment? Whatever will I do?!
Or a reason to make better gestures that don't require swiping from the very edge.

iOS is cryptic enit with all of its arcane gestures that only work within invisible boundaries.
The fact that the production db has the same username/password as the development one is perhaps more troubling.
The govt offers chickenpox vaccines here in NZ for kids now. I think it has been a fairly recent addition to the vaccination schedule but it was definitely there 3 years ago when sprog number one arrived.
I really wanted to check it out to see whether it's better than the web version, too bad it's only available as a snap app, which anyone with self-respect should stay far away from.
This is my greatest fear when it comes to terraform:

> terraform destroy

(And either a confirmation or a flag) and everything is deleted.

I know you can add some locks but still :/
Some of the issues you raise are important. But I am questioning the social dynamics of what you are suggesting.

You could have copied your comment from sometime in the late 90s. Because the same argument could have been made by replacing FAANG with Internet Explorer. A bunch of decent folks did come together and fix things. It was called the Mozilla foundation.

There is an opinion that the old decent folks don't matter anymore, but I don't share it. I think what is happening is nothing short of sabotage within Mozilla. I am sad that this is happening.
Companies are silly not to allow you to start a bit later to get some time off. If they do they’ll get a more energised less burned out new starter for exactly $0 extra. If desperate for someone to start they should be looking at contractors.
Also note: https://web.archive.org/web/20130115123445/http://michael.yo...
And I've always bought flagships, there's no reason to think the glass was low quality.

I am aware Apple have good glass, but the number of cracked iPhones I've seen inform me they aren't immune from this phenomenon.
It's absolutely nothing like autopilot. Source: I've owned a Tesla for the past three years and I drove a friend's brand new Outback a couple months ago. Autopilot is smooth, easy to use, and lets you basically "monitor" instead of driving for any highway driving. Overtaking a slow car is just tapping the turn signal, and it handles waiting for a window, merging, and accelerating for you.

The Subaru version on the other hand is more of a "driver safety" tool that would sometimes stop you from drifting all the way out of lane, but was nowhere near reliable enough to be relied on to steer.
TLDR: The Octocopter costs $4000. Of course, if you can afford to buy a RED Komodo, $4000 is a drop in the bucket of your loss if your RED Komodo falls out of the sky!
Worked for them in the Herndon DC. Forget the name of their lovecraftian ticketing/control interface (which was always breaking) but it was hands down the worst interface I've ever worked with. Their remote SA team was not very good either. The supply/parts folks serving DC techs earned bonuses on having bad parts recycled into production and the parts delivery was not managed properly. One xmas I saw the same motherboard 5 times after returning it as defective each time. I resigned and was then fired. Only place that ever happened. Was so happy to leave I didn't care but it has come back to haunt me once or twice.
Yes, China is an example to the world. If only my government bolted my doors shut, I'd be so happy.
Bt it's great news for people who want some turnover in the US Senate.
Categorizes Banking, News, Government, popular sites and rest of web
Any/every public webpage is categorized for Government, State/city portals, Banking websites (to prevent phishing) and categorizes news outlets and the factuality of outlets (heuristics based) and top ~1 million websites are called out. Rest of the webpages are showed with generic unpopular message.
With news/email frenzy around the corner, it is important we (and non-tech savvy) do not fall prey.
This extension is US focussed. NO data is shared with anyone by the user.
This isn't about freedom, it's about responsibility and competence. Pandemics are our new normal. We've been anticipating pandemics for decades, in movies, books, etc, and here they finally are. They are both predictable and predicted.

There's a competent, pro way of handling pandemics, and incompetent, amateur way of handling them.

The pro way is brief but comprehensive shutdowns + distancing + masks + sanitizing + testing & tracing + travel restrictions. It only takes 4-8 weeks of that to shut down a pandemic, then everyone can get back to being their normal, self-centered, freedom-loving selves.

The amateur way is to scream about it like a child, refuse to take measures to help stop the outbreak, and be so brainwashed that you're unable to distinguish a conspiracy for a real emergency. Which is of course what Trump and half the US has done.

Sometimes a pandemic is just a pandemic, not a conspiracy of the global elites.
That's not happening anymore. Time to be adults, instead of terrified children, and find alternatives to lockdowns and mask-shaming with the occasional assault, and arrests from local governments.
I tried to go caseless but realized I was constantly thinking about what surface I was putting it on. Is the surface wet at this restaurant? Is it dirty? Is it slippery? Can metal slide on it? If it does inevitably fall, what will happen?

A case solved all this. And frankly I can't even recall seeing someone use their phone without a case, so it seems to be a prevailing issue.

I'm not sure what the alternative is that you seem to be pitching though, if you were.
Most of them:

https://jalopnik.com/teslas-pr-department-hasnt-responded-to...

People have stopped bothering to ask because they don't get answers. To quote this article, "While The Drive would contact Tesla for an explanation of Gigafactory Berlin's situation, the automaker recently disbanded its communications department.":

https://www.thedrive.com/news/37086/german-officials-shut-of...
Recreate and seed test database is totally ok in RoR world.

I think the main reason of this accident is lack of separation between development and operations.
> The New Left wasn't weaponizing free speech to spread disinformation

Yes, they were. They were advocating a way of organizing society that had already killed tens of millions of people and would go on to kill tens of millions more. And they were relying on their audience not being aware of the death toll.
So I cloned the mysql-server and postgres repos and ran sloccount. It's not the deepest dive or anything but was interesting.

I saw MySQL had...600k lines of JavaScript?

It turned out that the storage/ndb directory had a Web-based management interface for NDB, which vendors in the Dojo JavaScript framework. It also had ~50k lines of Java for the "ClusterJ" framework, which interfaces with NDB skipping the SQL layer. Overall, sloccount reports about 1.4M lines of code in storage/ndb/.

NDB is a specialized cluster database where all secondary indexes have to fit in the cluster's RAM(!). Work on it started at Ericsson, then it was spun out into a startup which MySQL AB eventually bought. I imagine MySQL management at the time hoped the future of DB clusters might end up looking more like NDB and less like...gestures at today's database landscape.

There are also ~500K lines of Unicode tables in the strings/ directory. I recall Postgres calls out to libc for locale/collation related stuff so probably doesn't need those tables in-tree.

Even accounting for those chunks you still end up with ~1M vs ~2M SLOC as measured by sloccount. (I don't want to pretend the numbers are super precise.) There are probably other differences in what's in scope for the repo or other surprises. [Edit: see johannes1234321's comment which lists some of them.]

Besides those, though, might be truth to others' comments about MySQL spending lots of code supporting drastically different old and new "worlds" in a single binary (non-transactional and transactional storage, originally very-nonstandard vs. currently more-standard SQL, statement-based and row-based replication...). And at a totally non-technical level, as a product MySQL seems to have had more money thrown at it and that tends to mean more code.

This was fun but was an incredibly quick and dirty dive into it, and I'd love to hear more from folks who can look more or just know more.
The main shader:

uniform vec3 mouse;
uniform vec2 resolution;
uniform sampler2D texture;

vec3 computeNormal( vec4 n ) {

// pixel scale
vec2 un = 1.0 / resolution;
vec2 uv = gl_FragCoord.xy / resolution;

// tex sample neighbour-4;
vec3 n_r = texture2D( texture, uv + vec2( 1., 0. ) * un ).xyz;
vec3 n_l = texture2D( texture, uv - vec2( 1., 0. ) * un ).xyz;
vec3 n_u = texture2D( texture, uv + vec2( 0., 1. ) * un ).xyz;
vec3 n_d = texture2D( texture, uv - vec2( 0., 1. ) * un ).xyz;

// partial differences n-4;
vec4 dn = vec4( n.z );
dn -= vec4( n_r.z, n_l.z, n_u.z, n_d.z );

// right - left, up - down;
vec2 xy = vec2( dn.x - dn.y, dn.z - dn.w );
xy += n_r.xy + n_l.xy + n_u.xy + n_d.xy;
xy *= 0.89;

float z = length(xy) * 0.1;

return vec3( xy, z ) * 0.25;

}

void main() {

vec2 uv = gl_FragCoord.xy / resolution;

// normal sampling
vec4 height = texture2D( texture, uv );

float vel = height.a; // previous velocity
float elasticity = 0.002;
float viscosity = 0.06;
vel += - (height.z - 0.01) * elasticity - vel * viscosity;

// compute normal advection
vec3 normal = computeNormal( height );
normal.z += height.z + vel;

float dist = distance( mouse.xy, gl_FragCoord.xy);
float mouseRadius = 10.0;
float peak = 1.9; // max-height

if ( dist <= mouseRadius ) {
float dst = ( mouseRadius - dist ) / mouseRadius;
normal.z += pow( abs(dst), 1.9 ) * peak * 2.5;
normal.xy -= normal.xy * pow( abs(dst), 1.9 ) * 0.1;
normal.z = min( peak, normal.z );
}

gl_FragColor = clamp( vec4( normal, vel ), -1.0, 1.0);

}
Bulk isn’t just about looks, it’s about function. The bulkier the phone (including any case, if using one), the harder it is to hold and use in one hand.

Apple’s announcement of the iPhone mini is a pretty clear indication that they believe there is still a market for smaller phones.
Yeah I wouldn't use C++ for building web applications.
Source code ?
This happens more often than you might think.
It likely doesn't... it probably reads it from the environment or a config role, and since it was in production it had the production credentials.
PopSockets undermine this thesis. They stick onto a device without magnets.

More likely the case magnets are there to help magsafe work, not vice versa.
Yes! This is the biggest mistake probably
I'm a novice. I would not use my code for anything even remotely important, but I do have very good writing skills.
Nice. Very nice.
I heard a Keysight engineer saying they have NDA-ed tech to achieve picosecond synchronization over the network, so there is a case for precise ticks but the planck time is about 20 orders of magnitude shorter than cutting edge research that is a one shot experiment in a laboratory.
...and same credentials apparently also - there are lots of things that could have prevented something like this.
It isn't true unless that investment includes tons of bespoke and unrealistic compiler work and an open side channel (e.g. in the form of command-line flags to the compiler) to get it to lay down exactly what you want it to.

When people write those kinds of things, they're being hyperbolic. It's best not to assent, in light of the chest thumpers. Complete control just isn't possible in C++. More control than many of its contemporaries, yes.
What is the “mode” you are talking about?

Seems like life is back to normal and the lockdown is over in NZ
Wouldn’t that be equivalent to a case you can’t remove?
For two weeks!
When I had a cute phone[1], I would get random complements, so some people do care.

[1] I got lots of compliments with a blue-green Nextbit Robin, and some, and fewer but still many with a blue Nokia windows phone(well it was black, but in a blue cover), an orange Blu windows phone, and a blue-green Google(LG) Nexus 5x.
KY Postal Worker Dumped 100 Absentee Ballots Fired, May Face Federal Charges
Do people actually drop their phones much while using it? I feel like most of the time you drop it by knocking if off of a table, or dropping it while pulling it out of your pocket, where a wrist strap wouldn't help.

And I think Apple actually is much better at execution than coming up with new ideas. A lot of the things they do (iPad, face ID, notch, airpods, airdrop) are not new ideas, just executed better.
Slaves are paid too, mostly in kind but often in money. That's not what makes them slaves.
Early human species likely driven to extinction by climate change
The honest answer to that is - I don't know. I don't know what the big manufacturers are capable of.

That is effectively what "ruggedised" phones look like, I'll agree.
A few weeks of lockdown destroyed civilisation? With the exception of international travel, life is more or less as per normal in NZ right now. What are you even talking about.
The blog mentions it's a managed DigitalOcean database, so the script likely wasn't run on the host itself.

More likely, I'd suspect, is something like an SSH tunnel with port forwarding was running, perhaps as part of another script.
I don’t think $1000 matches the value loss of a car that is no longer zero-miles, let alone anything less than that.
It's a problem. Been one since the Spanish-American war.

Some of the biggest source of advertising revenues for news media organizations comes from defense companies. The New York Times pushed for the Iraq war, for example. They fired journalists who reported dovish news, too. Many others left to report as freelancers so they could paint more accurate pictures in smaller publications.

Similarly, MSNBC will bring on ex-Pentagon officials to "analyze" current events, but they don't bring in ex-State Department officials. There are likely patterns and incentives here. "Follow the money" as they like to say.
Libsixel – images as terminal escape sequences
> Until a new standard down at that level comes into widespread use hardware will be designed to run C code efficiently.

Exactly this hinders any substantial progress in computer architecture for at least 40 years now.

Any hardware today needs to simulate a PDP-7 more or less… As otherwise the hardware is doomed to be considered "slow" should it not match the C abstract machine (which is mostly a PDP-7) close enough. As there is no alternative hardware available nobody invests in alternative software runtime models. Which makes investing in alternative hardware models again unattractive as no current software could profit from it. Here we're gone full circle.

It's a trap. Especially given that improvements in sequential computing speed are already difficult to achieve and it's known that this will become even more and more difficult in the future, but the computing model of C is inherently sequential and it's quite problematic to make proper use of increasingly more parallel machines.

What we would need to overcome this would be a computer that is build again like the last time many years ago, as a unit of hard and software which is developed hand in hand with each other form the ground up. Maybe this way we could finally overcome the "eternal PDP-7" and move on to some more modern computer architectures (embracing parallelisms in the model from the ground up, for example).
Yeah, this. The problem is not that the production database was deleted by accident. The problem is that it was possible to (unrecoverably) delete the production database by accident.
Multi-Account Containers is what is keeping me on Firefox at this point.
The code explicitly referenced “DevelopmentConfig” though
Thinking on this, I don’t remember cases for the original Blackberry or Palm devices. I never cased a flip phone. Or one of my candy bar phones.

Apple gets really excited to say “thinnest iPhone ever” — but then we (or at least I) slap an Otterbox on it because I want the thing to last.

At the end of the day, it’s just for marketing purposes. No one wants to buy a Jitterbug phone. People want to buy sleek and sexy. And then they surround it in rubber bumpers.

It’s really pretty stupid all the way around. I don’t think Apple would sell as many phones if they shipped with a built-in bumper. Even to people like me who require that their pocket computers be protected...
Only one of these is a solution. The other is a cop-out.
> Computers are just too complex and there are days when the complexity gremlins win.

Wow. But then again it's not like programmers handle dangerous infrastructure like trucks, military rockets or nuclear power plants. Those are reserved for adults
Nuanced understanding of humor is not a strong characteristic of censors.
You can save yourself from scary operations like deleting everything by a.) not rooting your entire infra in the same main.tf and b.) using Terraform's lifecycle meta-argument: https://www.terraform.io/docs/configuration/resources.html#l...

I like to use the lifecycle feature for suuuper core things that will never be deleted (VPC, r53 zone, etc) and eventually when I start targeting multiple DCs w/ lots of infra I'll eventually move to many state roots (or use tools like Terragrunt, which make things mildly scary again).
These are the same word games that got us tired arguments like "guns don't kill people, people kill people." Looking only at people as individuals limits you to seeing first-order effects. The insidious effects of social media come about because large scale algorithmic optimization has found high leverage points for influencing society. While that's ultimately a consequence of individual people, you can't solve many complicated problems using a lens that can't see higher-order effects.

People seem to be fundamentally incompatible with social media, much in the same way they're incompatible with bullet wounds and drug addictions. Blame-passing word games just get us farther from taking that truth and starting to fix the world.