skysight-inc/HackerNews huggingface dataset:
How about the coups in Guatemala or Iran? In one sense, those are different because we viewed both of those countries as lesser powers and within our sphere of influence, but I would argue that the underlying philosophy of democracy is that all men and women, everywhere, are created equal, which means us secretly meddling in the elections of tiny Gadjookistan has comparable moral weight to Evil Empire meddling in ours. We don’t always live up to that ideal; pluralistic democracy certainly does better than a totalitarian system, but we aren’t blameless. I believe we can be a stronger advocate for democracy abroad by owning up to our past mistakes, making some kind of amends, and making plans for what to do in similar situations in the future that avoid making those mistakes. Containing communism was viewed as a critical threat, but how much did we hurt the long-term cause for democracy by taking short-term steps to suppress what may well have been early democratic socialist leaders? I can’t tell you for sure that Arbenz wouldn’t have been an early Hugo Chavez (at whose feet I lay most of the blame for Venezuela’s current troubles), but I think we ought to have at least let the Guatemalans make their own mistakes.

[1]https://en.m.wikipedia.org/wiki/1954_Guatemalan_coup_d%27éta...

[2] https://en.m.wikipedia.org/wiki/1953_Iranian_coup_d%27état
Voices in Time: Erased from Appalachia
Bali switches off internet services for 24 hours for New Year 'quiet reflection'
So your argument is that Russia or any other nation state that behaves this way is an amoral entity like a crocodile? This is absurd, nations consist of human beings that can understand concepts of right or wrong and behave appropriately. If your argument is correct, and the adversary is amoral and driven only by the opportunity to take advantage of weakness, the other nations at risk by this entity should logically band together and destroy it.
any quotes?
Something to look forward to!

Thinking in yield() generators goes naturally to composition of functions. That's about my limit.
Ask HN: What are the 20% of React JavaScript functionalities that covers 80%?
Hi

I am beginning to learn React JS and would like to get jump start on a demo. Would love to know what are the 20% of the functionalities I should learn first which covers most of the React world.
Why not? Everybody else does.
Well, that's documentation for PeopleSoft, so it's Oracle the company, but not necessarily backed by Oracle the database.

And to paraphrase the old quote, if you're having a problem sending messages between two systems, and you try to solve it by setting up an instance of the PeopleSoft Integration Broker, you now have a larger number of problems.
Hi,

1. Apart from the startup latency i haven't noticed much of a big difference between up/lambda and a live server. And lambda will keep your function warm for AFAIK, 1hr, so if your app has lots of traffic you never experience startup latency.

2. Up is open source, if they close their biz, I'd just continue using their code. I haven't used up pro yet.

3. Up has been around for probably under 1yr so you may not see a lot of testimonials yet. It is made by tj(the same guy who made expressJS, the nodejs web framework among other softwares)

You can direct more questions ; https://up.docs.apex.sh/#links
US utilities don't need saving. It seems like a bizzare statement to make. The reason behind the slow growth in electricity demand is the high price dictated by environmental politics.

Also having such a high burst in demand will be a major problem, not a benefit. Maybe we need to account for grid expansion, peak demand management and production capacity increase costs in a new bill of EV taxes. Arguing that it's good for the economy because of jobs is the same like arguing war is good for the economy because you get to rebuild infrastructure. It's not, we can use this potential for more useful things.
It did not start with the Ukrainian coup, but rather with the Georgia conflict back in 2008. Can't really blame the Russians, what do you think it'd happen if a pro-Moscow government were elected in Mexico? What would be the US' reaction?
Here in Lithuania (EU) you can also get in trouble for wearing the wrong t-shirt.

Nazi and Soviet symbols are banned from being shown in public, and you will end up with a fine if caught with a t-shirt or bumper sticker. I believe it’s the case in a few other post-Soviet countries as well.
I don’t understand your comment about how rust pointers are safer than soft pointers. The article explains how to implement a wide variety of pointer semantics, all of which are memory safe (throw an exception on explicit use after free, use the type system to have the compiler statically check the pointers are live, use dynamic cast, etc). Looking online, I see that people implement all the same primitives in rust, with exactly the same safety caveats.

Also, the container and mutex tricks you mention sound interesting, but I don’t see why they can’t also be used in C++ (which has a turing complete type system / checker).
Surprised how many russian plants are posting here. Very common well known fact Russia is and has been spying and attacking our infrastructure it's been reported by every administration red or blue
Reverse-Shell – Reverse Shell as a Service
> Russia is absolutely prepared to win a land war in their own territory. It kind of appears to be all they're interested in.

That's clearly not true, as recent history shows, unless one has a fairly broad definition of what Russia’s “own territory” is.
I’m not terrible at it, but while useful in general, I rarely use regular expressions in the core programs I develop.

I think the automata theory behind them is more important to know than proficiency with specific regular expression implementations.
Ask HN: Logstash vs. Kafka?
Hi all,

I'm trying to build realtime data infrastructure for logging. For ingestion layer, I'm thinking about using Kafka / Logstash for logging ingestion layer and then after that I can store it in any database and I can easily change the store without changing the ingestion layer in the future.

Any experience using logstash or Kafka in production?

Also, additional question is, I concern a lot for missing data case when we're sending data to logstash or kafka using kind of lightweight shipper like filebeat? Any experience for handling missing data at scale?
I believe this is the correct URL: https://stevenberlinjohnson.com/tool-for-thought-b12c170fcc2...
I think you might enjoy this: http://www.brutalistwebsites.com/
One simple way (basically using Zerocoin/ZCash) is the following.

Every voter is issued one "vote coin" at registration time. There are special addresses for each candidate. Each voter sends their "vote coin" using a zero-knowledge/private transaction to the candidate of their choice. It's totally auditable, not possible to vote more than once, etc.

The main issue is in making it potentially easy to sell your vote, which as the OP was getting at is at the heart of the tension.
Ironically there was never any real legal threat. The whole world freaked out over one totally fabricated story by a rag like The Register and everybody thought Flight Recorder was somehow going to let Oracle sue them. In reality the "commercial features" were free for developer machines, test environments and production environments for "evaluation purposes." It was much more of a CYA thing then some imminent legal apocalypse. That said having it be free in OpenJDK is great.
One note here: David Kanter from RealWorldTech is the, well, real deal. Few, if any have a better understanding of the chipmaking industry. " semiconductor industry consultant, " is a very modest description of someone leading RWT for 16 years now.
Top 5 features to win your next online survey
It is just a default email signature that you can see in your compose window and delete manually if you do not wish to pay.
> anybody with sufficient support can propose any change in legal system

so Switzerland?
“Silicon Valley Billionaire”

Sam hit the three comma club?
“AMD Flaws” Technical Summary
I miss details here.

1. Can it be said that the election was electronic?
If so, why is the headline saying they used blockchain and not elections was first time electronic. (I consider blockchain here only as implementation detail).

2. Could voters vote from home over wire or they had to come to some kind of booth that had electronic voting device in it?
For the most part, it's just a matter of knowing if you're using POSIX Basic Regular Expressions (BRE), POSIX Extended Regular Expressions (ERE), or Perl regular expressions.

Learn those, or at least the main differences between them, and the vast majority of the regular expression engines in software you use will become more recognizable.
Preventing non-registered voters is the easy problem. Some signature systems allow blind signatures: I can create a ballot and encrypt the ballot. The government can sign the ballot, and then knowing my secret encryption key, I can decrypt the ballot and transform the government signature so that it matches the decrypted ballot. The signed but decrypted ballots can then be published using mixnets, Tor, or some other anonymous publishing mechanism.

As I remember, it's still an open problem to set things up (without requiring trusted hardware or trusting the government to destroy a private homomorphic encryption key) so that I can't later prove to Dr. Evil's jackbooted thugs that I voted for Dr. Evil.

Though, maybe there's some mechanism where I actually generate ballots for all candidates and only submit one of the ballots and it's impossible for me to prove which one I actually submitted, and I could cheat by submitting more than one ballot but there's a zero-knowledge proof that my ballots were for all of the N candidates, so in an American-style first-past-the-post voting system, submitting all of my ballots has the same effect as submitting none of my ballots.
Imagine the outrage if the United States tried this.
I am sorry but "casual investors" should be doing long term buy and hold because if you can't be bothered to spend 30 minutes on research to compare brokerages, I am genuinely horrified at the idea of you doing anything other than buying and holding an index fund.

Robinhood's encouragement of the instant gratification, poorly researched trades is going to end badly for many of it's customers when we enter a bear market.
> If I leave my door unlocked can I really blame <bad person> for opening my door and robbing me?

Yes.

To think otherwise removes the social construct that theft is wrong.
Elm! (Currently.)

I might have said Haskell, except I have very little hands on experience with Haskell.

Elm is such a joy. Here are some reasons!

1. In the end, all your code is either functions or data!

2. There are only a few core concepts, and very little extra language features. There is zero implicit indirection. (E.g. macros or class inheritance.) As a result, it’s incredibly easy to reason about what the code is doing.

3. It’s incredibly straightforward to reason about what code is doing. Function bodies are just a single expression saying what the function returns. Functions are 100% “pure”; they don’t perform side effects, and when you pass in the same input you always always get the same output.

I work in Elixir day-to-day. Elixir’s great, but just today I spent hours digging through internals of Phoenix (the prevailing web framework) to implement a “low level” abstraction in our application. Trying to understand the flow of code in Phoenix was painful! (Because a lot of advanced language features are used that bring more layers of indirection.) Not so in Elm. There’s no objects, no classes, no inheritance hierarchies. Everything is way more concrete and clear from the get go.
Not trying to defend IBM here, but as a one time Lotus Notes dev, I can assure you that LN is not just an email program, but a whole platform that enables you to build workflow apps very very quickly. Not unlike sharepoint, but the catch being that it worked best from the LN client rather than the browser.

When I worked for IBM Global Business Service div as a dev, most of our payroll, billing, travel approvals and what not were done on LN. IIRC email was just another app on the platform.
DEFENCE SECRETARY GAVIN WILLIAMSON: HOW OLD WERE YOU WHEN BRITAIN STARTED?
Hi! I have more 1800 bookmarks and use bubblehunt.com.
It's search engine for your information, sync any amount of bookmarks and get access through simple search line.
Which ones? I'm really interested.
And this is why moral equivalence sucks. Yes Europe is not perfect, and America isn't either.

Do reporters get ruined for body language implying they might disapprove of what a single congressman says (but it might be a held-in sneeze too) ?

No.

Imperfect democracy IS NOT THE SAME as a dictatorship.

BTW: let's hope being ruined for life is all that happened to this woman. She wouldn't be the first one to be brutally murdered.
Oh my, Hunter was so captivating! I played it a lot even if I never made much progress, at least as in how they maybe officially intended!

Amiga could certainly do vector graphics but without texturing. The Blitter chip could easily fill large areas with the same color.

Hunter was an older game still but for example Frontier (Elite II) was also more than playable on Amiga and it was a "late" game, around the time where texture mapping was already getting common on PCs. A bit earlier F1GP offered very competitive detail at the time, again with non-shaded polygons only (you would get some textures in the PC version).
So Russia is a mindless predator in the international swimming pool? Time to kill the croc.
It's bad for the companies. This is bad for us because companies can become political lobbying parasites. Assuming they aren't parasites already.
I find myself hoping that there's one person in every hierarchy who loves his (or her, for that matter) country and the world more than the leader, and is willing to execute the leader to prevent a nuclear war.

With the cults-of-personality in place throughout Russia, China, North Korea, and the US, I'm nowhere near believing that such a person is in the right place, but I suppose that's the difference between hope and fact.
It’s Time to Leave San Francisco
Still not the website of Leo Kottke, don't care :(
Voters can sell their votes now. While unethical, it's not illegal and probably not worth combatting since, technically, that is the will of the voter.
Slow but safe is not why people choose C++ for their software.
Insightface: Face Recognition Project on MXNet
If they behaved appropriately, we wouldn't be debating their capacity to destroy our infrastructure for the fun of it. We aren't at war with them. Where is the sense of right and wrong? Why are they trying to harm us? Why won't they extradite the persons responsible for their alleged damage to date so we may seek justice?

I'm not advocating a crocodile hunt FFS, only that if they aren't going to play by our rules then maybe we should take responsibility for our own security by locking shit down, and stop acting like pointing the finger at the bad guy of the day somehow shields us from the consequences of mal-intent.
We wouldn't ban anyone for that reason. What was the username?
I love regex. Not just for doing pattern matching in code, but for searching and data transformation in editors and tools.

But yes, lots of people do seem to do the "I suck at regex". Even when I notice people do crazy long winded transformations by hand which I then do within seconds. Still doesn't seem enough motivation for them to learn them properly.
Thanks! My tech stack is NextJS w. Express / React / Postgres. Thanks for spotting that broken link.

I built it myself, but it's based on Bootstrap. I'll ping you over email sometime to chat. :)
6 Basics, yet Effective Tips to Maximize Online Sales – TheNextScoop
Schneider Electric admits Triconex bug exploited in hack
U.S., Tech Firms Warn Against Internet Monitor’s Privacy Tightening
DeDevelopers – Website Maintenance, Quality Assurance, Website Templates
You want to Design your Website So We are Here to Fulfill Your needs & Turn your Ideas into Reality So Right Now Visit Our Website www.dedevelopers.com and Get Up to 30% Off in this Special week.
To Get a Quote:
http://www.dedevelopers.com/get-a-quote
The map is at least 8+ years old.

https://www.linux.com/blog/interactive-map-linux-kernel (2009)
Learn go with tests
Palantir doesn't do the work of a detective. It's a tool for the detective.
The way around this is to give each person 1 ballot for each of N candidates. 1 ballot goes into an envelope and into the vote box. N-1 ballots go into envelopes and into the discard box. It's trivial to show a photo of your ballot for Dr. Evil, but it would take a video of you going into the voting booth, closely following your hands to prevent three-card-monty, and continuing to follow you into the public lobby containing the vote and discard boxes. If you strictly enforce no recording in the public lobby, then there's no way for you to prove to your boss which box got your ballot for Dr. Evil in the end.

Edit: Perhaps I wasn't clear. Each of the N ballots is already filled out for a different candidate. The envelopes are all identical and sealed by you inside the voting booth. That way an existence proof of a ballot for the given candidate leaks absolutely no information. There are no empty paper ballots, and none of the paper ballots can leave the polling station. Ballots need to be counted both from the "vote" and from the "discard" boxes. Ballots missing from the discard box prove vote tampering.
I wouldn't agree with the high turnover part. Its as much as in other similar sized companies.

Its just that most of my colleagues hate the software made by IBM, its slow, a pain to use and has a tendency to make things very very complicated. You cannot build great stuff with mediocre tools.

The IT industry has moved on to leaner and simpler tools and platforms. IBM, atleast the GBS group, is basically a sales company.

Note : I worked in IBM GBS for a year before I left for more interesting and rewarding jobs. This was in 2008 though.
I've noted that people quickly advise others to issue a chargeback as a resort to "win" against a company that has supposedly "wronged" them, even in cases where the company fulfilled its contractual obligations and no fraud whatsoever was committed. Here's a word of advice: do not issue a chargeback against any company you ever want to do business with in the future.

While this is arguably less a problem with WalMart - issuing a chargeback won't get you banned from their physical stores - a chargeback is especially something be avoided with every vendor where you have an "account" of some sorts, except if you don't care about being banned (permanently).

The examples are numerous. Issuing a chargeback against car rental companies can put you on their DNR (Do Not Rent) list[0]. Issuing a chargeback against Amazon may result in a permanent ban (including loss of access to your Kindle library and even your AWS account)[1]. Issuing a chargeback against Sony for a purchase over PSN may get you banned from PSN[2].

[0] https://www.flyertalk.com/forum/hertz-gold-plus-rewards/1897...

[1] http://bricksetforum.com/discussion/comment/159184/#Comment_...

[2] https://www.reddit.com/r/PS4/comments/2ivsz3/beware_if_you_s...
I came to know about this wonderful site when I saw this article - https://www.rexegg.com/regex-best-trick.html

example:

$ # all words except those starting with 'c' or 'C'
$ echo 'Car Bat cod12 Map foo_bar' | grep -ioP '\bc\w+(*SKIP)(*F)|\w+'
Bat
Map
foo_bar

for more details: https://www.rexegg.com/backtracking-control-verbs.html#skipf...
Dedicated Game Server Hosting and Scaling for Multiplayer Games on Kubernetes
Would you please stop posting these off topic rants?
Build and deploy docker images to Kubernetes using Git push
You might not have enough power for "violence at scale" but you could have enough money to "invest" to buy your way in to government for bigger ROI.
I had similar with Amazon - returned item was lost, and I was told that I would receive the return when they get the item back. Difference being that it only took one more email, saying that you have proof of postage/tracking number, to get a return and a £10 gift card as an apology.

Not sure why that was was different to begin with though - most returns they process as soon as the item is shipped (i.e. before they get it back).
Can't I hold both thoughts.

I don't think it's particularly athletic but I do think it's incredibly difficult.

It depends what we define by athletic. The old greek Ideal of a muscular, and healthy body is not something I associate with the standard pro golfer.
First physically delivered Bitcoin futures
Thanks a lot Antirez for doing this! I have been a fan ever since you discovered the idle ping scan! Your work has inspired me to keep growing!
One point of a dialect (aka “coding standards”) is that you can evolve legacy code bases toward them with a series of simple refactorings instead of by rewriting from scratch.

For me this is the big advantage of C++: it is possible to backport virtually any language feature you want to it, thanks to the combination of modern template programming and low-level C-style bit twiddling.
> Their navy is about 2/3 as big as the US [...]. Anyway if China does join in, their navy is comparable to the US's, and together with Russia's, it'd be bigger.

This is way off. The USN is about 4x the size of the Russian navy and about 5x that of China.
Proxy is a high performance HTTP(S), TCP, UDP, Socks5 proxy server using golang
This is really incomplete and written in a way that's not constructive in any way. This is not why things are the way they are.
They've been watching this in Ukraine for a few years now.
Russia has been using the Ukraine as a cyberwar testing ground attacking utility systems on a seasonal basis.

US utilities and US officials have been in Ukraine for a while working with these utilities on the assumption that what happens in Ukraine will eventually happen on their home turf.

This is actually a thing and it's an important move that officials are calling people out now.

https://www.wired.com/2016/03/inside-cunning-unprecedented-h...

https://www.wired.com/2016/01/everything-we-know-about-ukrai...
GoLang Parse many date strings without knowing format in advance
Some regex implementations allow for comments in the string; if your does not, you can probably make it work with concatenation, like:

String pattern = "^https+" // match the protocol at the beginning
+ "([a-zA-Z])+" // match the machine name
+ ...

Honestly, I use regular expressions because, even in such format expanded with comments, I haven't seen anything more readable after you get used to regex operators. I guess the closest would be the alternative format in CL-PPCRE. For instance:

CL-USER> (cl-ppcre:parse-string "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b")
(:SEQUENCE :WORD-BOUNDARY (:GREEDY-REPETITION 1 3 :DIGIT-CLASS) #\.
(:GREEDY-REPETITION 1 3 :DIGIT-CLASS) #\.
(:GREEDY-REPETITION 1 3 :DIGIT-CLASS) #\.
(:GREEDY-REPETITION 1 3 :DIGIT-CLASS) :WORD-BOUNDARY)

But then, any such form can get mouthful:

CL-USER> (cl-ppcre:parse-string "((\\b[0-9]+)?\\.)?\\b[0-9]+([eE][-+]?[0-9]+)?\\b")
(:SEQUENCE
(:GREEDY-REPETITION 0 1
(:REGISTER
(:SEQUENCE
(:GREEDY-REPETITION 0 1
(:REGISTER
(:SEQUENCE :WORD-BOUNDARY
(:GREEDY-REPETITION 1 NIL (:CHAR-CLASS (:RANGE #\0 #\9))))))
#\.)))
:WORD-BOUNDARY
(:GREEDY-REPETITION 1 NIL (:CHAR-CLASS (:RANGE #\0 #\9)))
(:GREEDY-REPETITION 0 1
(:REGISTER
(:SEQUENCE (:CHAR-CLASS #\e #\E)
(:GREEDY-REPETITION 0 1 (:CHAR-CLASS #\- #\+))
(:GREEDY-REPETITION 1 NIL (:CHAR-CLASS (:RANGE #\0 #\9))))))
:WORD-BOUNDARY)
> There have been far too many false stories about Russian hacking published for them to carry weight.

They never carried weight for me. The "evil Russians" angle has always been about disinforming and misdirecting the public.
I don't think we are reading the same headlines these days.
Clojure. Lisps in general are beautiful.