skysight-inc/HackerNews huggingface dataset:
> China is a police state

May be good to make the distinction between the Xinjiang Uyghur Autonomous Region† in the very north-west of China and the rest of China itself. The surveillance, monitoring, detention, "education", and de-radicalisation that are happening in Xinxiang are not to my knowledge representative of the rest of China. It is, of course, very troublesome that this illiberal dragnet exists anywhere in China. We would do well to remember that the crackdown (on the face of it) is a heavy-handed response to multiple Uyghur Muslim terrorist attacks‡ over decades that have claimed the lives of many and injured many more.

While an argument could be made that if any part of China is a police state then all of it is the same could have been said of, for instance, the United Kingdom at the height of the Troubles. At the time the UK deployed watch towers, mass stop and search checkpoints, and harsh anti-terrorism laws that encroached on everyone's freedoms. This was in Northern Ireland but the rest of the UK was relatively unaffected. And nobody at the time that I'm aware of called the UK a police state. The measures were seen as a clumsy response to localised terrorism.

What I'm saying is: yes we know that China is authoritarian, yes we know that it is totalitarian (bar Hong Kong and even that is crumbling…), yes we know China employs a (some would say draconian) social credit scoring system – but it might even still be a stretch to label China in its entirety as a police state when the measures being discussed (installing surveillance apps on phones at security crossings) are localised to one region of ~25 million people out of a country of ~1.4 billion. I'd like to think that if the whole of China was treated the same way there would be an uprising. For the record the ethnic composition of Xinjiang is: 45.84% Uyghur, 40.48% Han, 6.50% Kazakh, 4.51% Hui, 2.67% Other.

Calling WeChat "a kind of malware", what do you mean by this? I would see a miniscule difference between WhatsApp or Facebook Messenger or whatever and WeChat – none of these corps, be they Tencent or Facebook or whoever are cuddly and friendly, they're all out to extract as much revenue and profit from the eyeballs they engage as humanly possible. If you think WeChat is a kind of malware I expect you think the same about WhatsApp and FB Messenger. If you don't, why don't you? Is WeChat actually required in China? I can't find any article to corroborate this claim. Or are you just saying that it's extremely inconvenient to get by without it. One could say the same about Google or Facebook services in the West.

† https://en.wikipedia.org/wiki/Xinjiang

‡ https://en.wikipedia.org/wiki/Terrorism_in_China
would you be interested in a job at LEGO ?
https://www.lego.com/en-us/careers/jobdescription/cloud-infr...
I was curious what PRNG was being used and it was a bit deep in the post, but it appears to be Philox [1] or ARS5 [2].

[1]: http://michaelbrundage.com/note/2005/01/05/random-number-gen...

[2]: https://software.intel.com/en-us/node/590411
That’s pretty standard for electrek.
Well, being able to see the city is a benefit. It still seems like if they take regular buses (or worse, taxis), it will be more crowded and less efficient.
how do you use multiple regions when Google only supports certain things in limited regions like Dataflow Shuffle only being available in a single region in north america
https://cloud.google.com/dataflow/docs/guides/deploying-a-pi...
Negative opinions go over much better when your argument can convince others with more than saying something sucks. Detailed reasoning and experience etc. It also helps to not mention votes.
At 1402 UTC we understood what was happening and decided to issue a ‘global kill’ on the WAF Managed Rulesets, which instantly dropped CPU back to normal and restored traffic. That occurred at 1409 UTC.

So for about 50 minutes, those who relied on the WAF were open to attack?
Yeah Reddit.
So, to address some of the comments referencing Brave, Flattr, and other similar sites, as far as I know, those are all for profit entities. My idea would be a non-profit.

Initially they'd need to be bank rolled by someone, but I'd think that if they gained enough traction, operating costs could come out interest gains. Or just donations directly to the org.

I'd also hope that any unclaimed tips would be kept for something like 50 years. They'd just be generating interest for use by the non-profit.
Businesses pay to solve business problems, not change frameworks. The majority of software dev requires long-term decision making, commitment and support. Developers who can't solve problems because they're too busy chasing the latest framework aren't going to be getting much work.

People will experiment, and it's good for the industry to have new innovation, but there's really not that much danger of constantly shifting tech stacks unless your team and leadership don't know what they're doing - and if that's the case, you have bigger problems then the tech stack.
Deploy once, never update, and deploy a missile defense to prevent backhoes from digging up fiber?
A proxy helps not to expose your IP and user agent which is good enough in most cases.
True, but you can't eat nuclear bombs.

China was a communist military dictatorship. All resources went to the military, while millions starved to death.
That statement was too vague, you're right. I meant that it doesn't automatically do anything. I'm aware of with (it's mentioned in the post you're responding to ;) ).

The thing about `with` (and similar constructs in other languages) is that you must remember to use them at every single site of use. If you forget, while the resource usually gets cleaned up when the language's GC decides to finalize the object, it's non-deterministic and might be too late. The consequences of forgetting are significantly better vs. C, as the GC will usually get to it in time, but that's not something I'd like to depend on. But the amount of "effort" and possibilities for mistakes is, generally, the same as C (in number, not severity): each resource allocation and each resource free requires the programmer's attention — excepting the specific, and I grant, quite common, case of memory, which one can say the GC will handle for you. RAII makes it s.t. you don't have to remember except in the (hopefully rare) case of implementing a new resource, and you can treat variables holding resources at sites-of-use like any other variable.

For your specific example, if you can do w/o the list of lines (which I find is often possible) Python's actually got a somewhat nicer construct w/ Path:

pathlib.Path('foo.txt').read_text()

This only reads the data into a single string, whereas yours is a list of strings. Slight different, but usually it is acceptable. But it moves the required `with` into Path's helper method, so then it's harder for you to forget it. But this is a specific case (reading all data in a file), and doesn't generalize.
Kickbacks, plain and simple.

For example:

My firm requires we use a corp booking engine. That engine charges a fee to book a ticket online or over the phone. We get a slight discount on fares and they in turn give a kickback each year to my employer.

The real kicker is that they sell some fares as "refundable" when in reality the fares are just regular fares but allow rebooking via this corporate travel agent. They've essentially locked you into using them and any interaction with an agent incurs a fee. My firm doesn't care, they just see that kickback at the end of the year and are happy. They don't care how inconvenient it is to use the TA.

I get some of the desires to control costs but in my case, I have schedules to keep and a lot of last minute travel and the corporate TA is nothing but an inconvenience. I frequently have to put in reasons for "breaking" policy (for example, I don't take red-eyes) on price because the limit between the lowest fare and your ticket is $100. So if the schedule is right but the fare for that is $110, you have to put in a reason why you booked it.
An SLA of 100% just mean your account will be credited for any downtime. It doesn't mean that the company guarantees 100% uptime. No company signs a 100% or 99.99% SLA expecting to actually get 99.99% uptime but with the understanding they will be compensated when their is an issue.

None of the major cloud vendors actually hit 99.99% uptime.
Apple Sans Ive
Work for$9/hr
To somewhat echo BurritoElPastor's comment, running a system/app that can be run in multiple clouds is orders of magnitude more difficult than just running a system/app that can be run in multiple regions.

And, not to be snarky, but many of the other responses that are along the lines of "It's not really that difficult to run in multiple clouds" - let's just say I have trouble believing these commenters have real world experience actually doing this. I'm not saying it's impossible, but it is extremely difficult for any system of reasonable complexity with a dev team of, say, 10 or more people.

And, if you can stomach the cost, you do give up the ability to really use any of the proprietary (and often times awesome) functionality of a particular provider, which can put your dev velocity at a big disadvantage.
You seem to have forgotten twitter
D is one of those language that while it's technically very good, it's small eco system makes me look over it. I'm quite conservative about what libraries I rely on, and with these smaller languages 90% of the libraries you want are someones hobby.

The betterC scenario has intrigued me before though, it seemed like a win all around since you'd be using C libraries anyway. I'd love to hear others experiences and anecdotes with this.
>> Pretend that the local electric company had a power outage (and it wasn't caused by some obvious weather event).
>> Does it really matter if they tell people that 'some hardware we deployed failed and we are making sure it never happens again'.

It does, and most people would be relieved to hear about an equipment failure rather than a malicious employee, poor security, etc...
I don't want to knock dang or whoever wrote it but when I look at HN's JS it looks to me like it was written more to resemble Lisp idioms and to look elegant than to be efficient. If so, that may just be someone working in their comfort zone, which is fine - it works, and if it were much more complex than it is, HN being HN would complain. It's not bad, it just doesn't scale.

Also, I suspect but don't know that the table based layout makes showing and hiding elements a lot slower than it would be with, say, divs or an unordered list. If this is the case, it would probably only be exacerbated on mobile.
Apple is quite different though, since it didn't start peeling off components until it was stable. Tesla is trying to solve every single difficult problem involved in producing a fully autonomous electric vehicle at production volume. Each individual part of that sentence is a very difficult problem to solve, so why are they wasting time on batteries when they haven't got volume or AD fixed yet?
Can you expand on why you find it “meaningless”? As my other comment says, I’m not in SRE and the real people fixing it are trying their best to remediate the problem. I agree that the text I posted (with blessing from SRE!) gives you some more detail, but you can’t do anything differently with it, right? What about the new text do you prefer? (We’re happy to improve!)
> how did the “most conservative scientific estimate” of 1 to 7 degrees rise fared?

Seems accurate to me. We've already passed +1C and approaching +1.5C today: https://www.climatecentral.org/gallery/graphics/the-globe-is...

You didn't even specify whether you're talking about Centigrade or Fahrenheit degrees, but +1C is ~1.8F. 1.5 C would be about 2.7F.
> not worth it over Javascript

It absolutely is. As someone who's dealt with JS/TS/Coffeescript and a bunch of other "scripts" that compile, transpile to Javascript for very long time, I can honestly say: Clojurescript today is the only truly production-ready viable alt-js PL.

and you don't have to use it with React. React with immutable data structures just makes sense. Once it stops making sense for any reasons, Clojurescript community will move on to using something else.
That's not a good reason to do the equivalent of carpet bombing and killing every other sort of insect life.
The Power of Google and Amazon Looms over Tech IPOs
Didn't Google try to do this a few years ago? IIRC, they had a service where you could put in a set amount of money a month, and Google would essentially use it to buy the ad slots on pages you visited. Bit of a conflict of interest since Google was also selling the ad slots at non-fixed costs, but it was a nice idea.
I never said it was nonliving.

The most parsimonious hypothesis I have come up with is that Reiki is life. (That's a bit of a cop-out because both terms are somewhat loosely defined so there's enough wiggle room to simply equate them, and it doesn't really add much to a scientific conversation does it?)

Check out: "What Bodies Think About: Bioelectric Computation Outside the Nervous System - NeurIPS 2018"

https://www.youtube.com/watch?v=RjD1aLm4Thg

https://news.ycombinator.com/item?id=18736698

Reiki could be as simple and (relatively!) unremarkable as some kind of biological near-field communication ( https://en.wikipedia.org/wiki/Near-field_communication )

> Put up or shut up.

Honestly, I'm just some weirdo on the internet. I'm in SF, if you're ever out this way hit me up and I'll demonstrate Reiki for you. There are Reiki practitioners in your city no doubt. If you're really interested you should go meet some of them. I'm willing to keep answering your questions but if you want to really see hard science doing some wild "supernatural" stuff, Levin's work (above) is much more worth your time.

Cheers! :-)

- - - -

edit: I was rereading my replies and it occurred to me that since, as I told AgentME, there is apparently no distance limit to Reiki, we could attempt a demonstration. To wit: if you reply within, say, 24 hours with a time (Pacific Standard if you would be so kind) I'll go ahead and do a distance treatment on you. The image from your Github account is enough to "dial it in". (For sake of parity I'll tell you that I'm "calroc" on that site. You can see what I look like. ;-) Maybe nothing happens, maybe something. YMMV

@AgentME, same offer.
These are good points, but a thing to keep in mind is that we were discussing how to update the internal buffer data structure, not refreshing the screen. However, you could imagine peeking into the keyboard buffer so as to do a batch-insert if several keystrokes happened while you were doing the memmove(), so that the next memmove() would insert two or three bytes instead of just one — then at least it wouldn't progressively fall further behind your keystrokes.

All else being equal, though, I think a source-code editor that can comfortably handle a 48-kibibyte source file is considerably superior to one that can only handle, say, 10 or 20 kilobytes before it starts getting sluggish. Searching works better, refactoring is easier, you need less header files in C, and you can split and join source files a lot less often. Note that qe.c itself is (barely) over 20 kilobytes, and that's using TAB characters for compression.
The census question not asked: are these squirrels native or invasive?

In most of the world the answer would be "invasive", particularly in the UK where they are wiping out the natives, but they appear to be native to New York.
Since we use GCP Global LBs I presume that "draining the Google.com traffic" also meant that you're diverting all global LB traffic, which is what we see. The second incident (the OP's link) indicates that but at first it was very confusing to a customer when the first issue was marked as resolved but we still saw no traffic being sent to us-east1 via our global LBs. If that makes sense.
Maybe. If you get a billing issue or get marked as suspicious, you can lose all services with one provider.
I have a particular interest in the languages of Mozambique. Many of these languages are heavily used in their local areas, but endangered by lack of acceptance in schools, lack of media in the language, and lack of resources (Possibly one of the reasons Moz is blank in the linked map).

I've found most of the best resources for actual text in smaller languages comes from religious translations, which can be a bit outdated but usually offer a fair amount of text. And beyond that I've gotten lucky with a few google drives and other repos mostly containing educational packets put together by various volunteer and missionary groups.

Unfortunately I'm not sure the copyright on many of those. I think that's why most of the language projects[1] I've seen wind up being mainly repos of titles of papers published on various languages. Which can be hit or miss for educational purposes.

[1] From the linked site I mainly poked at a couple African languages and didn't see much beyond the paper titles. There may be others with much more info.
So... like... not the same thing at all?
Michigan checking in, 20 acres not that big really.
I wonder what happened with that poor regex expression.

My thoughts are immediately shifting to one of my favorite articles of all time "Regular Expression Matching can be Simple and Fast..." [0]

[0] https://swtch.com/~rsc/regexp/regexp1.html
Beaker Browser has (a version of) this feature -- you can specify a donate link for your dat site, and the browser then displays a heart button that takes you to that page.
Tesla Shares Surge as Model 3 Paces Record Deliveries
Derivations of Applied Mathematics
I lived in a condo which was 2/3 owned by one corporation. The high-cost maintenance that only happens every 20-50 years was NOT amortized into the HOA fee. It was expected that special assessments would pay for such things. And the corporation for its part was happy with that arrangement. In the short term the regular HOA fee was lower.
You can read our SOC3 (public facing SOC2) if you're curious about your availability question:
https://www.cloudflare.com/compliance/

There's a lot of good info in there
Scope guards seem like a really good idea. Has there been any effort to write a C to -betterC transpiler just like there has for Rust (e.g. C2Rust [0], Corrode [1])?

[0] https://www.github.com/immunant/c2rust

[1] https://www.github.com/jameysharp/corrode
For once, stay in touch with this client, and get to know how they are doing.

It's not impossible they come back to you, sometime - not necessary either, but offshoring is much much more to manage than just a lower price tag - and perhaps they don't know it, yet.
Thanks. I can’t take too much credit: Jitbit did most of that work, I added some integration testing and added a couple of methods.
I actually think it is unprecedented!

Not only was China poor on an African level. It had a communist command economy. Compare to how the former Soviet block countries have floundered in the same period, despite starting from a higher economic level.

Maybe South Korea and Taiwan are comparable, I don't know. China's rise is still by its size the biggest event in world history the last 30 years. And no one in 1989 would have predicted it.
any practical application outside of complexity field eco chamber?
A good war story there, at least the problem was relatively simple and quick to identify as the root cause, rather than something deeper.

Would be interested to see what the gnarly regex was that was bombing their CPUs so hard!
You should really check out https://greatescape.co/

I'm not sure if it's a startup or an MVP or a student project at this point, but it's the closest that I've come across
Kind of funny that it was a regexp.
The article links to an original NYT publication from the 1890s. What struck me first about it was that it was a reckless police shooting of an unarmed man. And the policeman was arrested and charged and people were upset about it. History repeats itself.
This Guy Drives Around the Country Selling Georgia Peaches Out of a Truck
> P.S. all in all if not Tesla breathing into the car giants' backs (and probably if not diesel-gate), most manufacturers will not be aggressively expanding their EV line-ups now.

This doesn't seem to really be true. Most cars sold in the US are still not EV, and Tesla's ~245k[1] cars delivered in 2018 is really, really small compared to ~5.3 million cars sold in the US in 2018 in total[2].

Looks like of the 5.3 million sold in the US in 2018, about 361k[3] were EV's. So, ya, Tesla has the lion share of EV's delivered in 2018 (not necessarily sold in 2018, mind you), but EV's is still a very small market and no sign that it's being aggressively expanded beyond a few select customer bases.

[1] https://www.statista.com/statistics/502208/tesla-quarterly-v...

[2] https://www.statista.com/statistics/199974/us-car-sales-sinc...

[3] https://www.greentechmedia.com/articles/read/us-electric-veh...
Yes, doskey back when using DOS. I had to run multiple commands and found that doskey remembered what I typed. It was awesome. I could arrow up or down and get the long painful command that compiled my code or copied my files, etc. The problem was upon reboot doskey had no memory of what I did. I got curious and used disassembler to view the memory of doskey. Painfully I would add one simple command like dir to doskey and then inspect the memory looking for where that command lived in the memory and searching for the hex bytes. I found it rather quickly and wrote code to inject my own commands into doskey memory upon computer startup (us programmers are a lazy bunch!). Problem is it didn’t work! I went back to the good old disassembler and kept trying more. Meaning I added one then two commands manually. I happened to notice that a certain memory area changed as I added more and more commands for doskey to remember. That was my ahah moment! It was a count of the number of items that doskey had in memory and I was loading tens of commands but never updating the count. I modified my program to add my items, modified the count and low and behold I had doskey functioning with my pre-loaded commands! My life was set! I used this method for over two years until I upgraded and by then I could use the IDE properly and not have to use the command line as much.
Am I a hacker? Yes at heart but not in practice. Anyone with curiosity is a hacker. Did I do anything more? No. I saw the power and realized the potential for abuse and never hacked anything again.
SEEKING WORK - Berlin, REMOTE

I'm looking for short term contracts up to 4-6 weeks. I'm available right away.

I'm a C++ developer by career, but my passion lies in Linux and C with lots of shell scripting. I started as a game developer and shifted towards embedded systems. I have an experience with Qt (with Qt Web Enigne), Python, Lua, Go, some vanilla frontend work. Also Android and iOS, but I'm rusty with them.

Something that would fit me right now would be a performance enhancements for various scripting languages with C++ or C. Or a shell script to automate something.

E-mail: hadrian at hawski dot com

Resume: https://docs.google.com/document/d/1ozozOF2yzw9CHgPCcAjs8WvA...

https://github.com/hadrianw

https://www.linkedin.com/in/hadrian-w%C4%99grzynowski-780028...
I have not softened my thesis. For the sake of brevity I assumed that just saying threat was sufficient.

> Oracle should be immune to this disruption: the same people are doing the same thing to the same data for the same purpose - so, the cloud is a "sustaining" innovation in this context.

The idea that any company is immune to disruption seems obviously wrong to me. But in this case, it seems very clear. You're correct that people use databases the same way for the same purpose on cloud vs self host -- no one disputes that. What the cloud dramatically alters, among many things, is pay-what-you-use pricing and scalability. AWS database offerings render license fees obsolete. How could that be anything less than an existential threat to a company that is reliant on license fees?