skysight-inc/HackerNews huggingface dataset:
Just so you're aware, one wouldn't typically build a "web app" in Go the way you would with Rails or Django. Go is more typically used for microservices deep within the backend (which may even use something like gRPC rather than HTTP), or for APIs accessed from a SPA. I'm sure you can find all the traditional tools for working with forms, templates, etc. but that's not where the community's critical mass is.
Suppose you control 51% of the network and want to do a double spend against a merchant requiring 6 blocks of confirmation. To do that, you make the spend and allow the chain to operate normally. While it is doing so, you work on your own chain. After the main chain achieves 6 blocks, you wait until you have more than the main chain, then publish your chain. Now, everyone switches over to your chain. In particular, the last 6 blocks (or more, if you had to wait longer to overtake the main chain) are all your's because you were the only one working on your chain during that time.

If someone else has a block in those last 6, it would mean that someone else (who I assume is an honest node) saw your block. At this point, your entire chain will be published and likely overtake the mainline (otherwise, the honest miner wouldn't have bothered with it). Now, it appears to the merchant that your transaction has not yet made it onto the chain, so you have to wait for another 6 blocks confirming the transaction.

The only way I see around this is if you can partition the network. However, not only is this difficult, if you can partition the network, then you no longer require 51% to do an attack. In fact, if you can assure that the target is on the smaller partition, you require 0 mining power to do the attack.

EDIT: Essentially, at 51% you can make a "rule" that all blocks must be yours.
Christopher Lemmer Webber on MediaGoblin and ActivityPub
Injured and sick get out of manual labor, oftentimes in pain. Developers whose back hurts or joints are bad continue working slightly less happy. Worker whose back or joints hurt gotta find new job.
An entire essay and, aside from the opening but about chili, not a single example of this “art form.” It’s like having an essay about Picasso without even one picture
https://en.wiktionary.org/wiki/chile

Look at the Spanish section.
My point is mainly that it's determined by the loop iterator, not the body of the loop; the else clause being skipped if you explicitly break is a consequence of this, not a cause. This is important because there is another case that can terminate the loop early- the else will not be evaluated if the loop body throws an exception (even if it is caught):

try:
for i in range(5):
raise Exception
else:
print("Foo") # still won't be evaluated
except:
print("Loop aborted")

The vacuous case (iterating over []) is also kinda important if you're iterating over something of variable length in case you need to distinguish between "loop terminated normally" and "input was empty". "else" can't really tell these two cases apart.
If the training were free and I was guaranteed a job, then I definitely would. I see little downside.
exist.

keyfob version: £12

https://www.amazon.co.uk/Ckeyin-Bluetooth-Wireless-Control-S...
I find HN fairly right wing economically & willing to dismiss that a large portion of the country isn't so well off right now, and has been steadily declining since the 90's.

78% currently live paycheck to paycheck, with this number rising year after year [0]. The endless consumerism that this type of unchecked capitalism needs to survive looks to have a pretty bleak future if we keep going down this path.

[0] https://www.cnbc.com/2017/08/24/most-americans-live-paycheck...
I wonder whether the indirect benefits of discouraging competing coins would outweigh the costs of loss of confidence in crypto currency is in general (and the computer cost).
If police can stop you randomly for 'drunk driving checks' - and they can stop you randomly if there is an 'active crime scene' (i.e. they are looking for dangerous baddies on the run) then I don't see why spot-checks for other crimes/problems is somehow considered out of bounds.

The problem with the argument is that it leans political: I think people are interested in just allowing people across the border willy nilly, without having to be stopped by such checks.

Otherwise, the ACLU might be similarly up in arms over DD checks? Wouldn't that be the case?

I try to be pragmatic about it:

+ If there's a high occurrence of Drunk Driving, then cops can do spot checks, esp. on long weekends.

+ If there are 'escaped dangerous cons' on the run, well, spot checks in a specific zone makes sense.

+ If there is a specific problem with large numbers of people who are in the country illegally travelling through - then random checks are a reasonable and proportional response to that.

Constitutional? Legal? I have no clue. But unless it gets really out of hand I don't see how it's totalitarian.

FYI I was never stopped randomly in the 5 years I lived in the US, and I was stopped quite a few times in France by the local Gendarmes. Sometimes obviously for DD checks, but other times I had no idea why but I had to show my passport and visa.
5 of the Best Board Games for Software Engineers
Any sort of non-toy moon colony is simply a toy for (super) rich

It is probably cheaper and safer to repopulate 100K back to Chernobyl/Fukushima than it will ever be to put 1000 on the moon.

It is cheaper to encourage systematic recycling (including subsidies, research, regulation and tax) than it is to mine anything in space.

It is cheaper and more effective to start an extinction level protection program here on earth (to save say 100K people) than it will ever be to build a true independent space colony.

Sure - it has scientific value and its progress, and its a stepping stone to Mars, etc.

But economically this is the equivalent of buying a Ferrari while you still have student debt.
I couldn't find any firm numbers on "the 2nd 1%", so I'd probably have to get my hands on some data to calculate it. That makes sense though. 1%, 9% and 90% may be a reasonable approximation of upper, middle, and lower classes.

And I think your point about the interests of the 9% being more aligned with the 1% than the 90% is an important one. Which is part of the author's point as well, that the 9% are really benefiting from the system in a way that those at the bottom aren't.

And I myself am an example of exactly this. I plug myself in those calculators and think "how much would I have to make to be in the 1%?" rather than "this is unfair, how do we lift more people up?"
> Radios and Checkboxes are very complex to create

where's that complexity?

It's like a few lines of CSS and folks in our coding bootcamp can do it after watching a YT video.
The Top F2P Monetization Tricks
CEO salaries are not infinite; they are huge but not infinite. If Tim cook continues to ask for more and more and more eventually he will lose his job.

But CEO salary has nothing to do with the `Talent`. Tim Cook, Sundar Pichai, Satya Nadella all replaced their predecessors pretty well and will be replaced by someone better in future too.

The real reason for high CEO salaries is mostly about risk associated with replacement. Sundar Pichai got paid $100M in years 2015. Which looks high but when you realise there are 20M shares of Google it is merely $5 per share.

If you are a Google shareholder would you risk Google's steady growth for a $5 dividend per year ? Will you waste your time saving $100M or rather focus on empowering Sundar to find next $10B market to disrupt ?

CEO salaries are high and they will soar with time too as corporations become large and government regulations increase. As regulations and size of corporations increase a person friends with Ajit Pai would matter more than a person willing to take a pay cut.

As a free market person I have no problem understanding it. Whether it is desirable, good or bad those are value judgements but there is no magic or hidden conspiracies at play here.

P.S. : I think Sundar is getting paid really pennies. Justin Bieber made $80 Millions in year 2016. He is just a singer (and a bad one at it). Sundar on other hand is spearheading a company that forms the brain of our civilisational progress at the moment, responsible for employing millions across the globe and saving billions for entire humanity.
If you read the article you would know that this is perfectly legal under the proposition. It's selling your data to third parties without user consent that it makes illegal.
Also in the same vein of plain text (command-line only): GNU `pem` (Personal Expense Manager):

https://www.gnu.org/software/pem/

It's a single Perl script. Used this for my monthly expenses before I bought a "smart phone" a few years ago. Since then I use a more crude method -- the 'Keep' utility on Android as an "expense manager". A note with tick boxes, where each tick box denotes an expense entry, later do the math, I know it's super inefficient, but I don't want to install yet another application).
NSA General Counsel Glenn Gerstell Remarks Georgetown Cybersecurity Law Institut
Show HN: Keras implementation of Faster-RCNN applied to self driving vehicles
You might want to read: https://blog.cloudflare.com/exposing-go-on-the-internet/

Personally I use Go to build APIs and place some kind of UI client in front of it (e.g. a static PWA). That way you don't have to use some Go specific template engine and can focus on what it is best at.
For the daytime shots especially, I see lots of weird aliasing artifacts on the buildings. Is it like that for everyone, or is that just a sideeffect of watching a 4320p video on a 1440p monitor?
> [..]bear hug him instantly and we
> both start drowning[..].

For anyone who knows how to swim who's on the other side of this, what I was taught you should do is:

a) Try to find another way to deal with the situation, e.g. throw something that floats at that person, or swim to them with a tree branch, or anything you have at hand. You'll be risking your life approaching them if they're all you can grab.

b) If you're OK with risking your life, you dive, approach them from underwater from the rear, and push them up by the hips long enough that they can breathe or show that they're not panicking. If they are you let them go, swim away, take a breath, and repeat.

c) If somehow they manage to grab a hold of you you dive. Their panic reflex is to try to approach the surface. If you try to also approach the surface they'll try to climb on top of you and they'll likely kill you. It's really hard to get rid of someone clinging to you in the water in panic. Even an 8 year old could kill an adult male under those circumstances.

People who are drowning are in a complete state of panic. If you're close enough to shore you may both be better off if you let them lose consciousness and haul them in unconscious and try to resuscitate them, otherwise you might both die.
Writing !important to something I extend is not what I'd expect, it feels like a hack.
Try rigorous an hour long focused exrcise while caring about toddler whole day. Super frustrating. Or kid that you need to supervise after work and then not leave alone while the kid sleeps.

Exercise can be done - but only if you adopt the "5 minutes are actually fine if there is interruptiom" mindset parent recommends. And only if you did not exercised for long, because otherwise those small chunks are frustrating and make you hate them (as you are painfully aware of difference between old one and this one).
Somewhat off-topic, but regarding automatic tracking for speeding, there was a system recently put in place on Turkish highways. Toll roads have booths at each entry and exit — so they can run plate recognition and fine you if your average speed between two booths exceeds the limit (eg if you travel 130 km in less than an hour on a 120 km/h limited road).
This is incredibly well done. The teaching approach is top-notch, focusing on small concepts in each video.

A pleasure to watch and try.
Wow, actually I do remember that, and it sucked!

So, I've never written apl, and I'm glad I read this comment because that's an excellent point you raise.

To expand a bit, I was thinking about being able to notate computation graphically. That's really what I want. Visual programming has existed and has sucked forever, but those thoughts don't go away that there might be a way to do it, if I just had the missing piece.

I need to sit down with dyalog and find out what I'm missing, it sounds like.

Thanks!
Is it the trucking companies or the customers that bound the pay? What does it cost to move a container a distance of five days?

What would be the annual billable revenue if you decided to buy a truck and start hauling cargo around yourself, cutting the middlemen? There are people who do this.

Obviously your income is limited by regulations regarding how long you can drive and how long you must rest in between. These physically clamp the amount of time you can do billable work (unless you're driving with a partner and take turns).

I would guess some hundreds of thousands of gross revenue per truck annually, EBITDA is probably a lot less. Would be interesting to know what the books might look like.
I do this regularly with my Pebble. One of my side gigs is acting as the announcer for a colorguard contest (basically a dance contest with flags) and for sound checks, I can run Spotify on my phone, run around the gym listening to speakers, and control the music from my wrist. This is super useful, as I'm usually setting up the sound equipment by myself and don't always have a reliable assistant.
Within a certain number of years, i.e. anything currently showing on your driving record. But the point is, they don't care if you were at fault, just that there was a police report.
Are corporations better managed today, than a few decades ago, when CEO's earned much less ?
I think the demo is broken.

Failed to execute 'querySelectorAll' on 'Document': The provided selector is empty.
> I can't do any serious writing without it.

Well that's too bad, as people have done some serious writing using simper tools - a pen, a typewriter... Isn't Notepad (on Windows) a sufficiently good tool to type, say, a novel in? Less distracting it is, for sure. (Well, I heard some people say that Notepad requires an OS to run, whereas Emacs is an OS in its own right, but really?)
I went to the U.S. recently, and apart from having to go endless times through the x-ray machine and removing shoes, belt, etc (which I haven't experienced in other countries), it wasn't too bad.

They did do a thorough questioning when applying for the visa, but the border itself was pretty easy.

And once inside, people were overall very friendly.
I bet all the hybrid smart watches work as remotes. I had a Skagen that did.
I think the key there is to open the windows at a time when it’s cooler outside. Without sufficient openings to pull air in, the pressure differential is inefficient
> you become a criminal

this is why I hate the USA

I had coworkers at Google treat me like a criminal

the entire USA society is infected with abusing men

it is sick and twisted

the reality is that USA society is criminal and necrotic

it is designed for drug dealers and prostitutes, not people

we are witnessing the mexicanization of the usa

this is a disgusting time to be alive
That already exists. Simply create a failing test as a separate commit then have the fix be a subsequent commit.
Better to have one person who can attack you than to have 25.
Visual quantitative literacy test 0.4
Their entire job function is to prevent illegal entry, toll violations etc.

To me, one of the key elements of the story is this: getting from Yuma, AZ to Las Vegas, NV does not involve crossing an international border. So this level of harassment a few hours drive from an actual border seems a bit uncalled for.
Yes and no. If all you wanted to say was:

> "This site uses cookies to store your preferences and it can't work without this essential technology".

... then you didn't need to display anything at all. You only needed a cookie warning if you were doing tracking and other data collection that was not a technical requirement of the site (and "supporting the business model of selling user data" is not a technical requirement of a site).

Alas, the law was broken enough that everyone could get away with defaulting to show a vague "this site uses cookies for your own good" message.

Where it applies, GDPR doesn't disallow selling data. It just ensures the user explicitly opts into that scheme. That creates extra burden for those who don't mind their data being resold, but that's like a small percentage of users. The ones who desperately don't want to be tracked are another small percentage. The vast majority of users are people who don't know any better and don't even understand the topic, so they will go along with whatever is presented.
In that case, 3 companies will realize they don't actually need those workers afterall, not for the salary they're demanding. They'll find another way to do business without hiring them, or they might even go out of business, which is fine and normal in a well functioning economy.

There's actually no need for truck drivers. People could carry loads on their backs. The reason companies don't hire people for this is because they're much more expensive (ignoring speed/etc.) than truck drivers. So if you're saying there can be labor shortages (in a free market), you could also say there's a severe shortage of human thing-carriers, which is ridiculous.
EDIT: I misunderstood the parent comment; it's not talking about Shadow DOM.

---

> It can act in the shadow too, allowing parallel computing. Is it the great beginning of «in browser javascript multi threading»?

Unless something has recently changed, this is not true.

Shadow DOM elements are still part of the same JavaScript execution environment as the Light DOM; there's no concurrency at that level.

If you want browser multi-threading, we've had WebWorkers for years and they keep getting better (OffscreenCanvas and module support being current examples).
Similar story here. My brother drives the I-40 route from West Texas to Arizona. He had a short stint doing City of Industry to Stockton. Hated every second of driving through LA, Grapevine and anywhere north of Bakersfield. Food choices are pretty much the same considering you can't venture far off the interstate and its rare that there's anything good _right_ off the five.
Why the fuck would anyone in their right mind want to live on the moon or Mars or any other celestial body in this solar system apart from earth? Anywhere will be so much worse to live on that even the worst places on earth.
But it's ultimately the high price of the real estate in that area that makes the schools good. We live in an economy where intelligent academic achievers do pretty well. So expensive areas are highly skewed toward intelligent academic achievers. Guess what kind of children they have...
A piece of Victorian science fiction considered first tale of urban apocalypse
Bit better story IMHO:
https://nypost.com/2018/05/28/jeff-bezos-planning-for-moon-c...
Hello CMake – Simplify C++
Or, I just don't go. I understand the risks are incredibly minor (and the negatives probably overplayed), but there's just so many other places to go to that aren't as problematic as the US at the moment. Border guards with a bad reputation, government with a bad reputation, gun policy with a bad reputation, all things that I'm happy not entertaining as a tourist.

When it comes to tourism, the US certainly has a PR problem at the moment. Among my (admittedly, incredibly privileged) group of friends, all have expressed reluctance to visit the US in the past couple of years.
And then some random company, will steel your idea and start producing clones for fraction of costs as they didn't have to spent any money on R&D.

If it is that easy for somebody to clone your thing, it probably wasn't actually all that revolutionary. And anyway, all this dynamic will do is force an innovation "arms race". You won't be able to just invent something and then rest on your laurels, getting rich while you laugh your way to the bank. You'll have to innovate continuously to stay ahead of the would-be "idea grabbers". That's a net win for everybody, even if you don't get quite as rich in the end.
I don't know that I accept your premise. There are mainstream frameworks in Go, and there are people who write Python who also think you should eschew frameworks, so some of that is just fashion. What I think you can say is that Go programmers discourage frameworks that take your code out of compatibility with the net/http interfaces. This used to be a big deal, but ever since net/context was introduced, is less and less of one.

From a vantage point of being a consultant who reads a lot of people's Go code, the two things I see getting used a lot in real code are Gin, which is a full-on framework that historically hasn't been net/http compatible, and Gorilla, which is (and thus chooses not to call itself a framework at all). I think the difference between "toolkit" and "framework" is pretty academic.

In the rest of the web programming world, an according-to-Hoyle batteries-included "framework" ticks off the boxes for model, view, and controller, where "model" also provides persistence. For Django in Python and Rails in Ruby, which I think sort of set the standard for what we think about when we think of frameworks, this means an SQL-generating ORM of some sort. There are no good Go ORMs, so the frameworks you'll run into in Go tend not to do a whole lot more than providing a URL matcher/router and before/after middleware filters.

Security in Go web apps is good-news/bad-news. The good news is that the language itself forecloses on a bunch of security problems that are common in other languages; for instance, there's no eval() equivalent you can easily get to. The bad news is that because there isn't a standard ORM, you're more likely to have SQL injection than a comparable Django app would --- I still find SQLI in Go apps somewhat routinely, and virtually never find them in Django apps. Go's HTML templates do the same reasonable job of stopping XSS that every other modern framework does. You can get CSRF protection from any number of libraries (Gorilla provides one; so, I think, does Gin). It's especially straightforward to configure the "hygiene" security stuff like TLS/HSTS in Go, because of how closely server and application code is in Go.

Veering more into my own fashion sense, and so take this with a grain of salt: I find Go pretty painful to code interface and high-level presentation stuff in, and don't at all enjoy working in Go's html/template system. Rather than fight it, I just use Go to build JSON API code, and then deliver a React application as my only real HTML payload. In this design, basically all of the "user interface" stuff is delegated to ES6, and Go just handles the "model" and "controller" parts of MVC.
Is it time to bury the h-index?
You are assuming that I am using Facebook. I am not. They have a shadow profile on me anyway, together with my cellphone number and lots of private information, because my friends uploaded it to get access to Facebook Messenger & WhatsApp.
Someone in the industry suggested to me that the number of long-haul truckers needed is relatively small. And that’s where autonomous trucks are going to be viable for quite a while. It’s one thing to autopilot a truck down a long straight freeway. It’s another to pilot a truck through city streets.
Or use the new ones for a delightful fresh scent!

Kidding!