skysight-inc/HackerNews huggingface dataset:
Testing locally, adding the "-linkmode external -extldflags '-static'" flags doesn't bring down the binary size. The heavy lifting is done by '-s -w'. It is a good idea to drop privileges even if there's a small attack surface.

At $work we use the following template. Sharing in case you find it interesting:

FROM golang:1.17.1-alpine3.14 as builder
RUN apk update && apk add ca-certificates curl git make tzdata
RUN adduser -u 5003 --gecos '' --disabled-password --no-create-home mycompany
COPY . /app
WORKDIR /app
RUN make build

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/bin/app-3 /bin/app-3
COPY --from=builder /etc/passwd /etc/passwd
USER mycompany
CMD ["app-3"]

And a very simple makefile:

help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo " test to run unit tests."
@echo " build to build the app as a binary."
@echo " build-image to build the app container."
@echo " run to run the app with go."

run:
go run -ldflags="$(govvv -flags -pkg) -w -s" ./cmd/app-3/main.go

test:
go test -v -coverpkg=./... -coverprofile=profile.cov ./...
go tool cover -func profile.cov
rm profile.cov

build:
CGO_ENABLED=0 go build -mod=readonly -a -ldflags="$(govvv -flags -pkg $(go list ./info)) -w -s -linkmode external -extldflags '-static'" -o ./bin/app-3 ./cmd/app-3/*

build-image:
docker build -t mycompanytown/app-3:latest .
Try DSLR scanning.
> DRM was invented for a reason

In its current forms: to prevent secondary sales and lending, to increase primary sales.

Piracy is not the reason, at least not the main one, it is the excuse they give because people won't be happy with the actual reason. If stopping piracy is the goal then we can categorically call it an utterly failed experiment.
Perhaps if we had more a more educated populace, people would stop electing clowns who lie to them.

On both sides, its clowns all around
Listening to discussion on youtube as I do my daily walks. Channels like Jeranism, Karen B, Globebusters, and others talk about such things routinely.
> d) People trust their government every day. Who do you think builds the roads, operates the hospitals and other essential services, sets out safety regulations etc.

If they are going to take my money , I expect at least _something_ of benefit to me in return. That doesn’t mean I trust them.
The human body doesn't "expect" anything, it simply must maintain its core temperature. If the temperature of the environment goes lower, the body responds by

1) increasing thermogenesis, i.e. convert chemical energy to heat through metabolism

2) reducing heat loss through the extremities by reducing blood flow there. In other words, you get cold feet and hands etc.

For people not bothered by cold, presumably it's mostly (1). For me, being skinny and not having a big appetite, it seems to be mostly (2). I suppose I could get used to having cold extremities half the year. But why suffer if I can simply put on an extra layer of clothing? I don't see the point.
It’s so much fun to read this, author has described it well. I think it’s related to the part of the brain responsible for tool mastery.

When you start using a new tool, there is a separation: it’s you and the tool; you use it, learn how it responds to various stimuli.

Over time, your brain has FPGA-like abilities and wires up some specialized circuitry. To you, it feels like you and the tool are now one thing. Your brain controls the tool like it’s an extension of your body.

Riding a bike, playing chess, even reading and writing can be viewed through this lens.

Your brain is amazing! Use it!
tldr: Yes

https://www.wsj.com/articles/turks-pile-into-bitcoin-and-tet...
https://vitalik.ca/general/2021/05/25/voting2.html

Amongst the complicated math and crypto posts that nobody can understand, Vitalik has covered several use cases on his blog.
I like yours better but then I have to explain it to non-techincal people.
Next to the usual 3-2-1 backup cycle I also keep a downscaled (around 5 Megapixels) full backup on my phone (SD card). The originals have several terabytes. Should everything else fail - at least some will survive. Also it's nice to quickly browse the collection.
That's security by obscurity - either do it right (if your data demands it) or don't put any effort in it at all, IMHO.
It doesn’t stop piracy, but it decreases it by making it much more difficult and higher-friction.

Claiming DRM does nothing is a bit like anti-vaxers claiming the Covid vaccine “doesn’t work” because the virus can still spread…
I'd love to use the Google photos API but it's really frustrating that Google won't include geolocation data.
It is not about plain fertility rate but tipping of demographic balance between communities by various means. It can create pockets of Muslim majority in countries where they are minority and then "right to self-determination" means partitions.
They're not always synonymous.
Much of the time it's a little of column A, little of column B.

Even so, I try to ensure that my contracting engagements demonstrate my value as a consultant.
Yeah, the video [0] by Fermilab that taught me this explanation blew my mind.

[0] https://www.youtube.com/watch?v=A2JCoIGyGxc&list=LL&index=94
This seems like a good opportunity for SpaceX. Send an helicopter with a few hundred starlink dishes would certainly help relief coordination.
I am not sure how you enforce this - and that seems to be the sticking point in the article. UBI should be universal to everyone so you don't create incentives problems where you have charlatans claiming they are artists.
To save the environment in terms of redundant storage, I just upload them directly to the NSA cloud service. The free tier plan is pretty good.
There are people legally prevented from holding USD. Take a look at Argentina [0]. They're legally banned from holding USD and if they have an account with USD it'll get taken by the state and converted to quickly depreciating bonds. Of course there is a black market for USD but holding substantial amounts of USD under your mattress in order to preserve your wealth is impractical and dangerous.

[0] https://www.washingtonpost.com/politics/2019/09/06/argentina...
Sure, but ransomware is just extortion and that is a concept that has existed for time immemorial. I think ransomware is a relatively small part of the global volume of generalised extortion which is almost certainly mostly settled in fiat and not crypto.
Are there? The US could not even exfiltrate the knowledge of where Osama Bin Laden was.
> Also, what does @SpringBootTest actually do? How does it work? What if I need to do <anything that doesn't align with the simplest use case that the Spring devs cater to>? Who knows! "Just add the annotation, it's easy!" (but not simple - it's extremely, and extremely needlessly, complex)

You can read the documentation to find out what every annotation does.

https://docs.spring.io/spring-boot/docs/current/reference/ht...

There are several different annotations that you can use to test each particular "slice" of your application, ranging from a fully embedded server, to just testing the controller layer without the embedded server, to just testing the data layer without controllers or servers.
Recovered people were excluded from trials so conclusion of trials says nothing for them. What percent of vaccine holdouts do you reckon have already been infected? If that is a significant percentage, realize your anger is being channeled into restrictions against these people you are not speaking to.
I heard it was pretty easy to get refunded for Diablo 2 Resurrected by Microsoft on Xbox at least.
If the government decides paid sex work is illegal, it'd also be hard to make transactions for it via Bitcoin.

If you think taking your wallet (the key) and running away with it is an option, then how is it better than using cash?
1/1025 of Jupiter's orbital energy sounds absolutely huge.

Of course, it's supposed to say 1/10²⁵, which is quite different.
Let's be real. The vast majority of pro-cryptocurrency arguments break down to something like this: "I have Bitcoin, I want it to become the currency of the future so that the price will go up an I will become rich. Here are $reasons why that should become true, which all my fellow Bitcoin hodlers agree are very good reasons".

We are now many years past not only the creation of Bitcoin but also past it going "mainstream". Everyone who is going to hear about it has hear about it and yet in real terms it is a joke. It's a digital beanie baby, it being is used as described by BTC boosters as something resembling a currency only in a tiny fractional handful of edge cases. All the interest in Bitcoin is in the price going up. Even people who "accept Bitcoin payments" denominate their prices in US dollars and merely run the transactions using Bitcoin.
Cue the classic meme: “we should take Bikini Bottom and PUSH it somewhere else!”

https://youtu.be/ubePTrs2VJc
Except not for software or digital content once you've started downloading it. From the FAQ on the site you linked:

"If you purchase digital content - such as music or a video online - you cannot withdraw once downloading or streaming has started, if you previously agreed that you would lose your right of withdrawal by starting the performance."

That's how Nintendo of EU gets away with not refunding. You started downloading it so no returns.
How I built my own Sega Mega Drive hardware dev kit from scratch
Google Now Allows Wtfpl
To be fair, there is a known problem of social media / messaging accounts being hacked and reanimated by botters / scammers long after the actual account owners have stopped using them.

But it makes no sense at all for games.
Well, I don't store photos or movies, but there is some audio data and total system backups. I'm currently using Cloudberry + Wasabi and pay about $10/month for 1.7TB data on a European server. There is no good way around paying if you want some cloud storage to protect against fire damage, etc. You could ask friends to host servers for you in exchange for you offering disk space for them, but this is very fragile and incurs too much administrative burdens in the long run.

If I were you, I'd delete 90% or more of those photos and videos to save running costs. I don't know how enthusiastic you are about watching photos of yourself when you were shitting your pants as a toddler, but, speaking for myself, I'd consider being urged to watch even a small fraction of what you have at family reunions some form of torture....
While it won't yet solve all your backup needs (still early days), a few friends and I have been working on a privacy focused competitor of sorts for Google Photos, but a bit easier to share your albums with friends and family. It is free for the time being, but it will be a paid solution as you're not paying with your data. It's also E2E encrypted. While all photos are currently hosted by us, we're also exploring letting you to connect the app to your own cloud or storage solution for those that want full control. If you're interested it's called StoryArk https://storyark.eu/
They do “take a cut”, but signing up and managing relationships with big companies is extraordinarily difficult, time consuming and expensive.

If you are working through one boutique consultancy you aren’t actually doing too badly. Sometimes you’ll be working through a system integrator, through a boutique consultancy, and through a staffing agency. And to some degree they are all delivering some value, simply because working with big corporates is so painful and getting direct relationships is so difficult.
In my experience it is fine to first learn only some required commands. One will run into cases, where ones understanding or imagination of how git works will not work any longer. In such cases one can still read up on how it works and build a new working understanding. Only important to not always just shrug, delete the repo and clone again. That will not really facilitate learning.

Of course no one is stopping anyone interested in it from reading more about how it works up front.
not only that, but pizza comes from a long tradition in many countries of making foods using bread that double as a plate! It's certainly come a long way.

https://en.wikipedia.org/wiki/Trencher_(tableware)
It's not but its a lot easier and safer to hold digital currency than wads of cash in your floorboards. Easier to acquire, receive from abroad and verify as well. It allows for a form of civil disobedience against unjust laws
"Unpredictable" is imprecise to the point of being meaningless.

If a black box is fully deterministic to the point that you can construct a model that is entirely accurate, then there's nothing "free" about it. What you're modelling has no agency. For the notion of "free will" to have any meaning at all, it doesn't need to be "unpredictable" in the sense that it keeps confounding someone trying to predict it all the time, but it does need to deviate from predictions sometimes or you have just an automaton, and it needs to do so in a way that is fundamentally impossible to model, and it needs to do so without just injecting randomness.

I've yet to see anyone present a definition of "free will" that doesn't reduce to smoke and mirrors, because that would mean coming up with some fourth category in a venn diagram of determinism, randomness and the combination of the two where they intersect, that is non-deterministic in a way that can't be explained by layering a deterministic model and randomness.
Photos on Mac iCloud and borg to rsync.net
professionally printed ones, yes. However, finding a good print service has become a real hassle and most photos that I printed start to fade after 10ish years.
Can anyone point me to the documentation listing the modal commands? I can't find it in the editor itself or on the website

EDIT: I figured it out. Type ":doc keys"
I have about a years worth synced across my devices via syncthing and everything older than I move to an external drive(s) and AWS glacier. I have a little script that does it and only have to do it once or twice a year.
Kakoune's [design doc](https://github.com/mawww/kakoune/blob/master/doc/design.asci...) stresses that Kakoune is a text editor, not an IDE. What does this really mean? Obviously, the main way people use text editors like this is to develop programs. So, given that Kakoune doesn't want to be an IDE, what features does/will it lack?
Look, this is just nonsense. It's people saying "catalogue shopping will never move online."

Read this instead. This is good.

https://medium.com/humanizing-the-singularity/why-global-tra...
> When you’re an internal employee, you’re often encouraged to ‘stay in your box’ and not disturb the existing hierarchy. By contrast, as a consultant you don’t need to worry as much about the internal politics or history when suggesting changes. Indeed, you’re often encouraged to step outside your boundaries and make suggestions.

What companies encourage this? I want to work for these companies. I have the feeling that companies like EY, Accenture, Deloitte and PWC don't encourage this. I also feel that McKinsey, BCG and Bain don't fully encourage this. So which companies are good to work for?

I am not looking to become a consultant per se. I simply know that I step outside of boundaries by default [1]. I am clueless in this, I need a career coach. I don't know how to find a good career coach.

What I have liked to do in the past (personal/professional): pentesting, Python, C++, JavaScript, data scraping, building web apps, data analysis, improving business processes, trading (signal trading), investing (value investing) and playing poker (standard math of hand ranges, pot odds, fold equity, etc.).

[1] Example: at one company I was a programmer and I saw an approach to improve their business model. This has helped the company to generate 10% more revenue. As a result they get pissed because I am not programming enough.
There are also grants (see https://www.artscouncil.ie/available-funding/ for instance, and local authorities and things have their own), but this thing seems like an interesting addition, and far less complex to administer.
Umbrella JS maintainer here (the library this HN thread is supposed to be about). At 2.8kb gzipped UmbrellaJS doesn't support partial builds because that'd be a bit funny.

Also, and it seems to be something the author of the article likes a lot, Umbrella JS is closer to Javascript than the libraries you mention (& jQuery). Sure that means you need a bit of editing your code (which is made easy by being able to load both jQuery and Umbrella at the same time), but in the end you have a lot better result. Plugins are just methods extending the prototype, loop methods have similar arguments as Array's methods, which in turn makes it easier than ever to use arrow functions, etc.

But IMHO the killer feature of Umbrella JS is that it's quite well documented, every method has at least an example but usually few, where e.g. cash doesn't have any example interleaved.

Basically this would be my recommendation/conclusion:

- If you have thousands of lines of Javascript/jQuery, I'd recommend Cash/Zepto instead.

- If you just use jQuery for few methods/interaction, 100% go with Umbrella JS.
Just a quick note to anyone reading this who's interested in automation. There's a "Puppeteer Script console" under the Menu -> Scripting tab. You can run Puppeteer scripts in a NodeJS sandbox that are automatically connected to your remote browser.

Personally I really like the possibilities of this interactive way of instrumenting an iframe from within the iframe.
UK government to launch anti-encryption ads
1. Encrypted external USB drive as a live copy

2. Encrypted external offline USB drive onsite

3. Encrypted external offline USB drive offsite

4. Upload of an encrypted archive to the cloud storage

It's all manual so sometimes some backups are months old. Haven't lost a single digital photo for almost 15 years now, and have gigabytes of obsolete photos...
Creating something that can argue that free will exists requires an eliza-level chatbot, nothing more.
No, the over-engineering.
Yes, the back of the envelope calculation (Italy) is:

52 weeks x 5 days/week= 260 working days

260 - 20 (minimum paid holydays) -20 (other reasons, national holidays, etc) = 220 working days

220 x 8 = 1760 hours/year, this could vary - maybe - up to 1800 hours depending on a number of factors, but not more.
Modern Techniques to Prevent Malware Instead of Detecting It
Yeah short vignette games were a concern when this was first announced. I don't know which solution Steam has for those (if any).

Maybe they could not offer refunds after a significant percentage of the game has been played, regardless of time spent playing. Would be hard to determine how much of the game has been played though. The only way I could think of is to check achievements, but not all games have achievements.

Or maybe expected length could be part of the store metadata. If the developer estimates 1.5hr playtime Steam could use that when processing refunds.

Either way I'd consider this a corner case. To be solved sure, but not problem enough to disallow refund functionality for other games.
Wow. Thanks for posting this. We love our 20 year old Speed Queen. Glad to know I should keep it going rather than replace it if it needs a repair in the next 20 years.
It doesn't completely fit your use-case but smugmug is pretty cheap for photos and lots of storage. You also get smartphone sync for free.
> Yes, China is well known for their sophisticated healthcare. A country whose smog regularly makes it hard to see buildings just across the street is somehow becoming the most advanced country in the world at preventing covid transmission even though they ironically don't even share any data to confirm any of these speculations in either direction.

You were just talking about how China was not locking down. China is locking down. Now you're just shitting on China by saying "How can we trust China with their secrecy and smog?"
Show HN: Matrix-CRDT – real-time collaborative apps using Matrix as backend
Hi HN! Matrix-CRDT connects the worlds of Yjs [1] (a proven, high performance CRDT) with that of Matrix.org [2].

It started as an experiment, asking myself; can we store "state updates of a datastore" in Matrix instead of chat messages? Now, I'm convinced it's actually a really powerful combination to develop real-time, collaborative software.

I'm using it for a new project and so far didn't have to write a backend yet. Matrix takes care of a lot of stuff: Authentication, E2EE, federation, hosting, etc. - so I can focus on the client.

I love the ideas of Local First [3] software. Personally, I'm convinced the technologies in this ecosystem (CRDTs, etc) are really powerful and can do more to decentralize software than many web3 technologies that currently receive much of the hype.

However, it's still early days, so I decided to open source parts that I think will be useful to others (I recently also shared SyncedStore [4])

[1] https://github.com/yjs/yjs

[2] https://www.matrix.org

[3] https://www.inkandswitch.com/local-first/

[4] https://www.syncedstore.org
I had the same thought!

Is this almost-always faster?

(If not, would there be a workaround if a user didn't want this new behavior? Postgres core team hates new settings...)

Would it be hard it would be to add to the optimizer as a query rewrite?
It doesn't feel right to me to switch languages because of a wrong editor behavior. Also, I'm already using typescript. Hyperscript is just an example, e.g. long lists also have this issue:

foo(bar, baz, ........
quux)

I'd agree if you told that it probably begs for a refactoring into named arguments, but it isn't an excuse to mess with indentation. Virtually every other editor out there would indent quux line, if it at all has indentation concept built in. Even neovim vscode plugin "knows" that.
Wow, you might have just convinced me to consider consulting. This is my natural personality/upbringing and I’ve always hated the internal rah-rah needed to do well for business units in an org, but at the same time am comfortable with self-promotion as needed.
If the government takes half of what I make it would probably be time for a revolution. I make a good living, but having half of what I make support 3 other people that are not my family and just giving them cash. Like being on the afternoon of Wednesday and realizing that all the work I did in the week so far was taken away to give to someone else without my input is insane. And I give over 10 percent of what I earn to charity, but I decide what causes to support and who to help.

The nibbling around the policy is because they know what you proposed would mean they get tared and feathered so they just use it as an excuse to buy votes.
Well, throw in all the additional climate concerns of a crypto economy on top of the current flaws of gaming, for one
For some context when Google first released their license documentation publicly a lot of people were surprised that WTFPL was disallowed. (Discussion at the time: https://news.ycombinator.com/item?id=16636963).

However starting 2021-04-23 it appears as though Google now allows WTFPL (however this happened in a large refactoring of the page).

Last capture saying it was disallowed: https://web.archive.org/web/20210317154041/https://opensourc...

First capture allowing it: https://web.archive.org/web/20210423123435/https://opensourc...

I just thought it was interesting to see that a large company is now comfortable with the WTFPL. Live documentation: https://opensource.google/docs/thirdparty/licenses/#notice
Tek Fog: Where Fake Supporters of the Emergency Drowned Out Opponents
Plenty of Ruby jobs around, and good thing with hype gone, you don't have to compete for the jobs with a bunch of brogrammers. You'll get the jobs if you're good enough.