skysight-inc/HackerNews huggingface dataset:
+1 for feature flags. We have struggled to manage long-lived changes (our current iteration has been going on for nearly a year.)

The amount of uhh "pucker" I'll feel when we release next month, and certain pieces of code are touching prod for the first time, is much higher than I'd like.

The only reason I can sleep at night while spending a whole year with only hotfixes and minor feature addons for the last release going to prod, is because we've spent much too much time at all layers of the testing pyramid, and every time I've made a change that should probably break some tests, it actually breaks a few more tests than I expected (so I know that our coverage is pretty good.) Every time we write a brand new feature, it absolutely gets a matching Cucumber feature test in plain english that we run before and after every merge. And that's not even to mention unit testing.

So we can be reasonably confident that everything we've ever promised, is still true. Our test suite takes over an hour to run at this point, which is way longer than it should. But it helps us catch the bugs, and well before they start to have "piled up."

I'd feel marginally better if we knew what code doesn't run in prod because we could turn it on and off, and see those feature tests failing (or simply exclude them, since they would also be tagged with the feature label.)

It's interesting that some people feel feature flags are complicated enough to make "Feature flags as-a-Service" businesses a thing, like LaunchDarkly. I looked at what they are offering and thought it would serve us well, but we haven't actually started using feature flags for anything.
> I really hate living on top of other people.

Is that sentiment due to the concept of living in a high density environment, or the execrable execution of practically all high density residential developments?

There are known ways to develop high density without it feeling like high density. But they all subtract from the profit margin of the developer, and there is currently no customer demand for it over the lower-cost, higher-margin and more miserable executions, thus you very rarely ever see high density actually executed well.

I haven't been able to find a forum that specifically discusses affordable, high density design. Because I'd like to pepper them with a lot of questions I've pondered, but as a layperson, can't find answers to. Like: assuming cost can be absorbed, lots of people see digging below grade space as more trouble than its worth, because water is always seeping in. I see the water and think, great, let it flow into a cistern even deeper down to pump up and water plants. Why aren't we using the capital concentration of high density housing to make more space below grade and reduce water consumption off city mains at the same time?
Ode to a White Apple MacBook
> No, it doesn't. It requires you to answer the questions the regulator asks

Most companies would--and do--retain lawyers to answer regulators' questions. Particularly when in respect of a new law, and doubly so given the political uncertainty currently present across the Continent. Naturally, one is free to self represent with regulators as one is in a court.
Indeed. The passage is from near the beginning of Volume 2 (Chapter 3), where he says how he came up with something that seemed like it should be "super random", tried it, and found that it was not. It ends with:

> The moral of this story is that random numbers should not be generated with a method chosen at random. Some theory should be used.

and the rest of the chapter proceeds to give some relevant theory.
I had a similar question. Django is not python.
Out of curiosity, what happens in the unfortunate case of a startup closing shop while still carrying a Brex balance?

Ie, does Brex have some legal senior debt-holder claim against the company’s assets? And what happens to the personal credit history of the founders, does it remain untarnished since they were never personally responsible?
Linux MintBox Mini 2 Pro
> a bigger country is always better

Only if they're very compatible, harmonious and voluntarily operating under a superior system together, along with countless other prerequisites.

The USSR satellites were radically better off apart from Soviet Russia.

Czech and Slovakia were better off apart from each other and have thrived individually since the split.

South Korea was just slightly ... better off separate from North Korea.

The US, Australia, Canada, New Zealand, India were all better off separating from the British Empire.

It's plausible that Iraq would be better off split into pieces in some manner, rather than remaining the forced-together entity that it is today.

A bigger country is clearly not inherently better.
Actually they optimized the hashmap, and it turned out a side effect of the optimization was insertion order.

First implemented in pypy, then ported to cpython 3.6.

Talk by Raimond Hettinger about the new implementation with several other implementations:

https://m.youtube.com/watch?v=p33CVV29OG8#
Tangentially related but hopefully someone one HN can help me out.

I want to try using Kubernetes with my current project. I've built it using Docker and docker-compose. My compose file currently has four services (web, db, dbadmin, and reverse proxy). I am using a flask app for the web container, postgres for db, pgadmin for the dbadmin, and traefik for the reverse proxy.

I am currently running the above stack on a single host using `docker-compose up`. I like how docker-compose creates a network for me where I can access other containers by their container name.

For my own education, I would like to try deploying this with Kubernetes. Specifically I am interested in learning how to spin up multiple web containers that all talk to the same postgres container.

Can someone let me know if I am thinking about Kubernetes correctly, and if so some good resources for me to learn how to deploy by stack with it?
Actually, that'd be one Pi but half Tau! Ha!!
I had that same frustration this week. Trying to generate geotiffs from arrays in Python. I found four libraries, all of which just wrap GDAL, all of which have the same quirky issues. Alas. :)
avc1 is https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC not AV1

The available formats for that video are:

$ youtube-dl -F https://www.youtube.com/watch?v=ogfYd705cRs
[youtube] ogfYd705cRs: Downloading webpage
[youtube] ogfYd705cRs: Downloading video info webpage
[info] Available formats for ogfYd705cRs:
format code extension resolution note
249 webm audio only DASH audio 70k , opus @ 50k, 37.58MiB
250 webm audio only DASH audio 88k , opus @ 70k, 45.92MiB
140 m4a audio only DASH audio 136k , m4a_dash container, mp4a.40.2@128k, 98.65MiB
171 webm audio only DASH audio 148k , vorbis@128k, 70.46MiB
251 webm audio only DASH audio 158k , opus @160k, 95.71MiB
160 mp4 256x144 144p 114k , avc1.4d400c, 30fps, video only, 29.91MiB
278 webm 256x144 144p 147k , webm container, vp9, 30fps, video only, 61.11MiB
242 webm 426x240 240p 226k , vp9, 30fps, video only, 75.75MiB
133 mp4 426x240 240p 252k , avc1.4d4015, 30fps, video only, 54.98MiB
243 webm 640x360 360p 413k , vp9, 30fps, video only, 140.49MiB
134 mp4 640x360 360p 644k , avc1.4d401e, 30fps, video only, 182.59MiB
244 webm 854x480 480p 764k , vp9, 30fps, video only, 227.69MiB
135 mp4 854x480 480p 1193k , avc1.4d401f, 30fps, video only, 377.25MiB
247 webm 1280x720 720p 1521k , vp9, 30fps, video only, 423.38MiB
136 mp4 1280x720 720p 2375k , avc1.4d401f, 30fps, video only, 730.12MiB
248 webm 1920x1080 1080p 2674k , vp9, 30fps, video only, 810.25MiB
137 mp4 1920x1080 1080p 4461k , avc1.640028, 30fps, video only, 1.34GiB
17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k, 57.43MiB
36 3gp 320x180 small , mp4v.20.3, mp4a.40.2, 162.63MiB
18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k, 332.87MiB
43 webm 640x360 medium , vp8.0, vorbis@128k, 452.27MiB
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
You’re wrong. House prices aren’t included anymore in CPI. Imputed rents are. These are very different things.

Anyways, I’m sure all this falls on deaf ears. If you used the same calculation the Fed used in the 80s to measure inflation we’d currently be at 10%. You can pick and choose and weight whats in the cpi basket to get any number you want and the government is incentivized to make it appear lower.
Yea, I can tell you don't work in embedded and have never made anything for production.
This article is a PR piece about an activist investment firm that buys up and revives dead coins with a new dev team and rebranding. It is masquarading as the "I told you so" article that you already wanted to read. But thats not what it is at all

As someone that has led zombie coin revivals multiple times over the last several years (after spending months buying up a coin from bagholders), hit me up

just respond to this message and put your email in your hackernews profile

This new firm has got one thing right: Bull market or bear market it doesn't matter, you can get hockey stick growth.
You're not going to have many customers for long if you have a "roach motel" model for depositing funds. Customers get very worried and very angry, very quickly, if they cannot reliably withdraw their funds.

You could have "WE DON'T DO CRYPTO WITHDRAWALS, ONLY DEPOSITS" in giant 30pt bright red letters on the account signup flow in three different places, and people would still think they could, and then threaten suits and class actions when they find out they can't.

Why would they still think they could, despite all warnings to the contrary? Because withdrawals are a fundamental action in banking, and they think cryptocurrency is another form of money. (Don't get me started on the alien concept of an irreversible transaction...)

When you target the cryptocurrency-newbie customer as your market, results like this are unfortunately predictable.
I tend to agree with you they tend to be academic architecture students who design "machines for living" which they think the "working class" will enjoy living in.

Narrator voice they don't.

Its what in away lead to Grenfell tower
Fraud.

You have protections under both systems (debit & credit), but the ones on the credit card are much more in your favor. With credit cards it's pretty hard to end up on the hook for the fraudulent charges (50$ limit on liability), while on debit cards you have to report the charges before a deadline.
Perhaps in long term Amazon drones with climate controlled container could drop the medicine off.
As a disabled person who's spent his entire life dependent on others for transportation basically anywhere, I'll confirm how badly I'd love to live in a place like that. (I understand if you don't want to say where you live, but any hints to narrow it down or other places like that you know of?)

It can't be overstated how confining it is when anything you'd like to do or see involves logistical wrangling to work out when exactly you need to be there, how long you'll be there, when you need to be picked up, etc. I've lost count of the number of times I've just decided to not bother with all that and just stay home, which makes for a pretty depressing existence after a while.

Things like uber can help, but you're still placing your trust in someone you've never met to be able to get you there, and more importantly, to be able to get you back home. Not to mention having to do an upfront value analysis to determine if the trip is worth it, and for disabled people this can be a tough call given the difficulties with employment and income in general.
> no good healthcare

I'm sorry, what? The WHO puts the Greek healthcare system at #14. The UK is at #18, Sweden at #23, Germany's healthcare system is at #25, and Canada, Finland and the US are at #31, #31, and #37, repsectively [1][2]

And a more recent paper from The Lancet[3] puts Greece at #19. Sweden, Finland, and Canada have usurped Greece coming in at #4, #7, and #17, repsectively. That means that your healthcare system is still objective scoring better than Germany, the UK, and the US (the last of which is arguably a low, low goalpost, I admit).

[1]: http://www.who.int/healthinfo/paper30.pdf
[2]: http://thepatientfactor.com/canadian-health-care-information...
[3]: https://www.thelancet.com/journals/lancet/article/PIIS0140-6...
What I'm most excited about with Kennedy's replacement is seeing affirmative action finally get the axe. Many, many people think that the erosion of meritocracy is a bad thing even for the groups it's intended to benefit.
Who cares about this one lone guy and his punishment?

Why is Equifax still around.. we have no say or opt in system to allow them to use our personal data for their financial gain.

I didnt agree to this! Isn't there an Equifax competitor that lets you opt in and is all about security. If not one of their competitors needs to rebrand as such or such a competitor needs to enter the market and whoop their a#*!
They don't like to but they are doing it now. They have no choice as a younger demographic is clamoring for it and developers are responding by getting zoning for it. If a city isn't planning with mixed use, mid/high density housing in mind then I'm not sure I'd call them a city.
There is a certain amount of luck/risk involved in doing a startup. You can do everything “right” and still fail.
It is also worth noting that a lot of those mad-science projects that we look back at and consider potentially visionary were often stabs in the dark by scientists who saw a ministry picking up their project as a way to avoid conscription into the army. They were seldom backed up by any real science and frequently had little chance of success, but they somewhat resemble something that was developed later so we assume the project leads knew what they were doing...
The reason the streetcars went away in the US was because of competition from cars, which, not coincidentally, were beginning their rise to dominance ~100 years ago. GM and Ford were in the process of killing streetcars the moment the Model T went on sale.

The vast majority of American towns, with their lower density and wider streets than their European counterparts, were simply better served by the automobile than by mass transit in 1920, and after 100 years of car-centric planning are even more so today.

The genie is already out of the bottle, and with the exception of a few rapidly-growing cities, mass transit use in most American cities is falling.
why was this downvoted? as far as I can see the claims of excessive burden have been equally vage, I don't see how this comment will lead into trolling
Play! framework for Scala was pretty close to Django back in 2012, has something changed? Did they stop developing Play! ?
I certainly agree that this is refreshing and a very interesting read.

At the same, because of survivorship fallacy, I think the best way to get insight into what makes stuff tick is to get a balanced mix of both success and failure stories.
Just so what we are on the same page: There are people in the cars.
True. And the others mostly couldn't deliver.

Also not surprising is that one of the few news on HN about ICOs compares them disfavorably to VC founding. A bit predictable, that's all.
Yeah, try that and see how it goes. :)

Courts aren't stupid, and can generally see through collusion attempts, and would probably have a fairly easy time showing culpable intent if you try to trade through friends and/or family members.
20 Simple Tricks to Secure Your WordPress Website in 2018 (including 2FA)
to some extent - using com.lowagie.text.html.simpleparser.HTMLWorker (more like if you have really simple html and css, you can generate a PDF doc out of those - which works well for various reports).

Although if you are looking to convert real web pages to PDF, then this is not a good choice.
Compiler Explorer – See the assembly output of C, C++, Rust, Go, D, Haskell
In the US it probably makes more sense to go with an inch-based standard, since it's easier to find materials in those sizes. I've been making up my own 'standard' for rack-mount electronics with an eye towards making it work nicely with as many other defacto standards as possible (19" racks, standard lumber sizes, pegboard, unistrut, erector sets): http://www.nuke24.net/docs/2018/TOGRack.html
Opinions vary on QT Creator. I personally found it to be hostile to my desires. The little thing that made it unfit for my purpose was that, when I code for Cygwin use, I need my Windows editor to be configurable for Unix conventions, but QT Creator was not configurable to Unix conventions. Eclipse is configurable.

I believe if I had been making programs targeting QT, I might not have run into this issue. But I don't make that kind of program.
> it's personal data if a natural person can be identified from it using reasonable means

I could fit a planet into that "reasonable means" caveat.
Rendering a webpage does not require an 800+ watt 50-pound computer setup. A balanced diet does not require flavor. Clothes do not require coloring.

We can't just throw out having nice things because they aren't "required."
I found the link again, apparently Rob Pike had said:

The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. [1]

But I think we should also keep Rob Pike's experience and wits in mind. It was probably intended as a humble witty remark. If you consider how complex concurrency is, and how Golang has made it simple with a single keyword to spawn coroutines (go) and a straightforward data structure (channels), I think he is right to say that Golang is easy to understand and easy to adopt.

[1] http://nomad.uk.net/articles/why-gos-design-is-a-disservice-... citing the quote from http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Fro...
Those "structural changes" are called austerity and they have not worked well where they have been tried. There is a very strong argument that the Euro currency is deflationary and is causing many of the various issues like unemployment, government debt crises, etc. See Stiglitz's book The Euro for an in depth argument.

Or just look at the unemployment statistics. https://www.statista.com/statistics/268830/unemployment-rate... The countries outside of northern Europe that are on the Euro or pegged to it have much higher jobless rates than those with their own currency. Czechia, Romania, Poland, Hungary are not pegged while Bulgaria, Lithuania, Estonia are. Similarly outside the EU, Bosnia is pegged and doing poorly, Iceland is not and doing fine even though they were very hard hit by financial crisis.

It's exactly analogous to the way the fixed gold exchange rate was deflationary during the Great Depression and as soon as countries dropped the gold standard they started recovering.
Barcode scanner in the browser using WebAssembly and ZBar
Mimir (YC S15) – helping instructors teach CS – hiring Frontend in Indianapolis
It's less confusing because the fetch vs push preferences are per-account, so you can see right in preferences which accounts use push and which use fetch (and what the fetch intervals are, as that's also per-account).

> What's more, you get the same behaviour with push notifications already - if you're on a really crappy network, you're likely to not get your notifications instantly due to having too long keepalive timeout until OS adjusts.

In all my years of using iOS I've never noticed push notifications becoming noticeably delayed in situations where I still have a network connection. Maybe Android sucks at this, I don't know, but iOS has always been really good about delivering push notifications quickly if my device is reachable.
You’re referencing indexes of various health systems metrics, not perception of health systems, which would be the salient facet here (and might not change anything about your point).
The issue is more it being approved at lower levels, but CEO Jack Dorsey directly killing it: an example of bias at the very top.

Any ad that directly mentions the opposing candidate, no matter how polite, is an attack ad. And there is no guidance from ANY regulatory authority that I can see, that bans, discourages, or even regulates them.
Remember that most of the people down voting think that the stock market trades on actual financial multipliers like 10x earnings or whatever. Let them miss out on the ride, make your money. You can't convince crazy you just have to let them miss out on the ride.
> Walmart? Would not have guessed they sold 80/20.

they don't, their website is a marketplace just like amazon's, these days.
Five languages that could change the way you see the world
Joelle Kaufman’s Secrets to Leading a Successful Team
Plus the other stockholders
Induction gives a hood answer. Would your country be better off balkanized with many small territories feuding and redundant administration on every new level? While there are occasional scaling issues there is a synergistic effect to larger unified territories - as opposed to actively occupied ones.

Joining together would be a long term investment for the US. Given how well trade matches as size of neighbors attenuated by distance roughly it would pay off long term. Short term at least a significant minority would probably be discontent about it given what happened just with German reunification and they weren't even apart for a century.
or you're lying

There is no need for that, you can disagree without being impolite.
How do you solve this?

ABC, one of them is different weight than the other two (either more or less)

Possible ways to weigh them:

A v B
A not enough information
E C is odd one out
B not enough information

A v C
A not enough information
E B is odd one out
C not enough information

B v C
B not enough information
E A is odd one out
C not enough information

AB v C
AB not enough information
E C is odd one out
C C is odd one out

AC v B
AC not enough information
E B is odd one out
B B is odd one out

BC v A
BC not enough information
E A is odd one out
A A is odd one out

In all possible ways to weight 3 coins, all have uncertainty which means you cannot deduce which is the odd one out.
Ping Pong: Conduct effortless user research, remotely
Guys behinds PostgreSQL / CitusDB wrote awesome article on which methods of pagination work how well and where they fail.

https://www.citusdata.com/blog/2016/03/30/five-ways-to-pagin...

Highly recommended read.
Sure. I'm pretty sure you could also walk into any Bestbuy with just one piece of black masking tape and nobody would be able to tell flat panel TVs with thin bazel from one another once the brand gets masked. Further Apple's design was not even new, much less unique. Apple's lawyering helped -- along with Apple's hometown Judge Koh who disallowed prior arts to stand in the court. So your point being?

Design patents are for very specific design elements, not the overall impression. Apple did assert trade dress claims (overall impression) against Samsung tablets (and IIRC smartphones), but the appeals court rejected it -- you can't assert trade dress claims on non-ornamental (or functional, obvious) features.