skysight-inc/HackerNews huggingface dataset:
> Most Python programmers wouldn't see a need for that, but that can be attributed to Python not having the capability by default and so they've just internalised not to use dict for anything that needs to be a key.

You're being extremely uncharitable here.

To a Python programmer "using a dict as a key" is a nonsensical idea for the same reason "using a list as a key" is — both dicts and lists are mutable. Python programmers don't think of dicts or lists as synonymous with their content.

I'm assuming you don't want to literally use a dict as a key, you want to use the keys and values contained in a dict as a key. Nothing stops you. You just have to say it:

point = dict(x=4, y=5, z=1)
point_reviews = dict()
point_reviews[tuple(point.items())] = "A+++ great coord would point to again"

You might wonder why you can't just use dicts directly. Again, dicts are mutable. What happens if you write:

point = dict(x=0, y=9001)
point_reviews = dict()
point_reviews[point] = "Love how it's over 9000 here!"
point["y"] = 8999
result = point_reviews[dict(x=0, y=8999)] # Is this a KeyError or not?

More detail on this issue is explained here: https://wiki.python.org/moin/DictionaryKeys

In the simplest case where you have a predefined list of keys, I'd suggest using a namedtuple instead of a dict. If you need to treat a dict's content as hashable but can't enumerate the keys, `tuple(d.items())` is probably the best choice in recent Python versions. Be aware though that in older Pythons you can't rely on stable sort order of dictionary items, so you have to use something like `frozenset(d.items())`.
Steps to correctly prepare your data for your machine learning model
Agreed on avoiding yaml templating at all costs, but I've also found that you don't normally need a full programming language for these types of config files - if you do find yourself reaching for those tools you might be better served by something like Dhall https://github.com/dhall-lang/dhall-lang (which has its own K8s bindings as well)
I like Python and it's my main language currently after years of C++ and Java. My main problem with Python is that it's really easy to create really messy code that no one can follow. And I see it often because everyone is using Python these days. For example, you have an undocumented function with 6 arguments and have no idea what these are (having bad names also doesn't help, but that's not a Python specific issue).

Type hints and annotations are a step in the right direction. But the adoption is still not high. That's the blessing and curse of Python - it supports many good practices but it doesn't force you to use them so it really depends on the programmer.
I think schizophrenia is the much bigger problem regarding the homeless.
https://news.ycombinator.com/item?id=19695234
His "now for the tricky bit" talk was not only funny but thought provoking. He was kind and very open minded. Thanks for pointing this out.
Buy Google Places Reviews – Buy 5 Star Google Reviews
sshreach.me (https://sshreach.me) - it's currently only ramen profitable but I'm getting new users every day.
I'm struggling to understand why this would be useful, so I guess I'm not the target market - can you say something about who this is useful for, why they want to see this info, and what they can do with it?
> To this day I have the nervous tick of initializing arrays with zeros even in numpy.

I dunno - I wouldn’t call that a nervous tick. If you know or have a good idea of how much memory you need, then it only seems polite to let the runtime/OS know ahead of time.

I think of it like RSVP’ing to a dinner party. Host is very appreciative when they know how many people they’re serving.
Joe Armstrong: The Mess We’re In
It depends on the property manager. The one I had let the tenants stay 3 weeks beyond their lease end date rent free, pre-dated the move-out inspection and didn't even bother itemizing the damage the caused to the unit (which was well beyond their security deposit). They didn't get a forwarding address from them and there's no way to collect additional damages.
Apple only pocket hundreds in profit per phone so it makes sense Tim would freak out about paying Qualcomm less than $10.

Withholding royalties till you can pay less is as unnecessary as downplaying hardware issues and avoiding taxes.
The 1965 Medicaid law changes excluded any reimbursement to psychiatric hospitals with more than 16 beds.

That killed the state run hospitals. Running a 16 bed or less facility in a profitable way with Medicare reimbursement isn't possible. The money moved to other social programs.
Billionaires raced to pledge money to rebuild Notre Dame. Then came the backlash
Here's one approach:

1. Document all datasets at their sources of record

2. Setup jobs to dump their data into an S3 bucket (daily, hourly, whatever makes sense). Use IAM to lock down access if necessary.

3. Setup AWS Athena to give you some analysis capability on those files, while you:

4. Setup jobs to [denormalise/cleanup and] load those files from S3 into postgres RDS/citus data/redshift (alternatively you could denormalise after the load ELT-style using materialised views or [dbt](https://github.com/fishtown-analytics/dbt))

You'll still need a tool to orchestrate it all. I'm excited about trying [pachyderm](https://www.pachyderm.io/) for my next project.
A few points also to consider:

1) I haven’t personally seen outright outrage about it. I’ve seen some light criticism that there appears to be no black traders which would exist in those times, and that the characters are uniformly white while Slavic skin color is actually a range between pale and olive. These criticisms make sense to me and were not presented with anger. Could you show me example of outrage?

2) Jordan Peterson has not generally done much science lately, if at all about this subject with significant backing. He’s become more of an advocate of a specific viewpoint within his field(similar to other representatives Neil degrasse Tyson) and should not be considered an authority without several additional citations of more academically well regarded researchers. I wonder if perhaps this claim was more acceptable due to its palatability and not due to its actual veracity.

3) I agree that making jokes should eh universal, but as the OP mentioned empathy can teach someone why making a racist joke isn’t okay. Unfortunately we don’t live in a society where people make jokes but don’t actually act on them. Making jokes about oppressed groups in society, depending on their harshness, actually occurs in tandem with people tearing the same groups with harshness. For example, jokes about missing black fathers or single black mothers in America tend to be more hurtful than funny because it describes a real phenomenon where black men are disproportionately jailed and utilizes it for enjoyment. It’s similar to joking about assaulting a friend when one knows that that friend was recently stalked and assaulted by a stranger- it’s viewed as a ‘dick move’ because it is a joke that lacks empathy and understanding of ones audience. I believe this is an alternative viewpoint to your concerns that may he of interest to you to cosnsider.
They Were Rejected on Shark Tank and Today Are Making Millions
> "Show me every match where this field contains 'extinction' within 10 words of 'impact crater' but NOT containing 'oceanic' and the publish date is > last month and one of the subjects is anthropology"

...and then aggregate into time-based buckets, and within each bucket split the results by this field, and then...
That is so sad, he was in his late 60s and it seemed like he had a lot of life left in him, talking about how software can get better and having a great (and sometimes snarky) outlook on the profession.

Highly recommend his thesis (2003) and a few of his great interviews/presentations for anyone who isn’t familiar with Joe, it captures a lot of what he thought about and pushed for in his professional life.

http://erlang.org/download/armstrong_thesis_2003.pdf
https://youtu.be/fhOHn9TClXY
https://youtu.be/lKXe3HUG2l4
https://youtu.be/rmueBVrLKcY

I hope his family and friends can find some comfort in how much he was appreciated and admired in the development community.
I suggest considering REIT stocks that actually own real estate instead. They push through 90% of their income as dividends and enjoy a tax shelter because of it. It’s a liquid and passive proxy for real estate investing.

Also, the RE market is just lousy for buyers right now all around.
I have my problems with Python, but I'm not aware of any language where it's not "really easy to create really messy code that no one can follow".
React Themes – Free and Paid. Crafted by HTML5 Up, LekoArts, Creative-Tim
A similar tool that stumbled upon recently is duckrails: https://github.com/iridakos/duckrails

It's got some nice features like building dynamic mocks with JavaScript or Ruby, cause delays, timeouts etc..
Book Online Luxury Zimmer in in Northern Israel
Just re-watched his Strangeloop talk: “The mess we’re in”. Still so spot on. He will be dearly missed.

https://youtube.com/watch?v=lKXe3HUG2l4
What occurs to me is the different approaches to attacking the same market. BYD, at least as characterized by the author, took an incremental approach to learning the technology and market, starting with buses as a kind of low-hanging fruit and then building on that learning.

Tesla identified the primary market challenge of range anxiety and design
& performance stereotypes went straight at them with high consequence investments in charger infrastructure, battery technology strategies, gigafactory, 'appealing' design, and incredible performance. It's kind of a tortoise vs. hare and at least as far as this article is concerned, both approaches are having success on their own terms.
This is great—as an Inbox user I see a lot of potential here. Quick thoughts:

- Any support you can give to existing plugins that support Google would be great. Much as I like the fact that templates are built into this, I really love the plugin Gorgias Templates, for example (partly due to the fact those plugins can be used anywhere), and having it available would be awesome.

- I'd love it to be possible that there was no background at all, or at least something flat.

- Would like to be able to set a different default font in the compose menu. Sans-serif is fine, I just want it to be able to decide on Helvetica or Courier New.

- Any ability to change the keyboard shortcuts would be great. The fact that they're not the same as Inbox/Gmail makes it hard to immediately jump in and use.

I'm sure I'll have more, but I just wanted to tell you this really makes me happy to see!
While I agree with this direction, it does make me begin to question why I don't just abstract the entire thing away with a REIT or other similar investment vehicle.

8% off the top depending on your particular scenario could get you pretty close to the same net returns at the end of the day. If you went with a few REITs, management would take maybe a few hours a month even for a massive portfolio. This also has the benefit of being much more diversified than a single investor directly owning various properties could possibly manage.

Granted, using REITs is a tradeoff in granularity of asset allocation and potential upside, so there is always that zone of opportunity to exploit. It just takes a delicate evaluation of the value of your time vs the opportunity itself relative to other competing strategies.
I always wondered what the opposite of steganography was. Perhaps it is being really overt and 'hiding in plain sight'. My only issue with this is there's always somebody clever enough to spot anomalies and in fact there is no shortage of people with too much time on their hands and will spot something if it seems out of the ordinary. Machine learning / AI / deep learning methods can be very good at spotting anomalies and this is why AI etc is regularly employed by authorities and intel agencies to spot bad actors. Many hardened criminals are resorting to hiding in plain sight because steganography can prove too tedious to implement, and there are always various tools you can use to deobfuscate steganography (by visualizing large datasets and looking for inconsistencies).
Hopefully this would easily be detected, and the brand damage from the resultant public shaming should be enough of a deterrent. But maybe it's really well hidden and eludes detection, or people just don't care and there is no brand damage, or maybe even there's no "real" brand to damage (OEM crapware).
Mostly that digging giant holes in the ground is harder than it looks.
Yeah... you can go to any DBA/database developer and say "I have a 100GB dataset that might grow to 1TB within 10 years" and they will just pick the RDBMS they are familiar with and you are 90% of the way there.

I work on an ELT process for something that's doing that about now on SQL Server, and not much query tuning is needed tbqh.
There is no shortage of software to run on a sufficiently fast ARM processor. [0] The bigger problem is that (even without emulation) most ARM processors aren't powerful enough in comparison to x86 processors. Apples processors are the exception and they are only available with locked down operating systems.

[0] https://youtu.be/T-pPkpIDNnM?t=388
I don’t think so? Whatever entity you do add to the DB can reference that content address and can determine permissions. That DB entity is what makes access to the underlying content possible. The file is garbage collected when nothing in the DB references it.
The python one is a good example: https://github.com/kubernetes-client/python

This is auto generated from a swagger API spec. Of course the intent is that you define your service and launch it with the client, but if you want a yaml file you can dump the objects to yaml - it would be far better than templating.
I will never understand why Armstrong didn't pursue a career in acting.
Many features don't require newer hardware.

How long is it reasonable?

One of the reasons I have heard about people buying Apple hardware is that it has great resale value.

So the answer is: Long enough to keep this true.

If Apple keeps its current path, people will stop buying Apple hardware and it will hurt Apple's bottom line.

But yes, I concede they have the money to make mistakes for about 20 years. So they do make the mistakes.
Fair enough, but you literally gave zero evidence for your claim that "Other countries, those with a somewhat decent social safety net, do not have such a big problem with homelessness".

You should at least consider the possibility that what you said isn't really true and just fits your preconceived notion of a heartless US society versus a supposedly more social environment in Europe.
>(1-X)% of tenants

You mean (100-X)% ?
So if a person incorporates and buys an apartment to rent, then it somehow changes everything?
You make it sound like those professionals have some magical training to withstand the abuse, the stress, the bad situations of the job.

While they do have some training, it is not possible to shake some things off easily and it does get old quick. One of the reasons why drug abuse is so prevalent in some medical communities.
I did, you just abstract the problem out.

Some programming language and frameworks have more active communities on StackOverflow than others.

So in my sprints, I would typically have 3 tasks in progress at once: 1 I would work on myself, 1 would go on Stackoverflow waiting for the answer, and 1 would be something that required progress from a different team in the company (like a new API endpoint so I could do something on a frontend, or different service)

It was pretty efficient for me. In some communities, the real thought leaders and framework developers are on stack overflow, watching the hashtag like a hawk.

You can also use github issues on the actual package you have issue with pretty well too, alongside it.

So you're really crowdsourcing a lot, and evaluating if that solution is correct enough for your implementation.

But so many times, especially with frameworks, the answer is a good copy and paste job. your mileage and use case may vary.
Wait, what?

"After some thinking, I figured it would be hilarious to actually implement a basic version control system on these primitives. In hindsight, it's probably closer to terrifying than hilarious."

Ah, ok.

Also, if you want to experiment with diffs and recreating versions:

Patch: https://en.m.wikipedia.org/wiki/Patch_(Unix)

Xdelta: https://github.com/jmacd/xdelta
The best advice that I got came from CodeSchool's github course (this was about 5 years back so I am not sure if they have updated it). It said that the commit message should indicate what will happen if that commit is applied by another user, not what changes have been carried out. It's worked well for me so far.
rip joe. sorry that your last tweet was in reply to my trolling.
https://en.wikipedia.org/wiki/Bidirectional_map

Any hashmap will have problems with storing mutable objects, where the hash value itself can change after the object has been stored, causing some very unwanted paradoxes.

And that is the problem with Python dicts as keys.
Very sad news. Thank you to HN mods for commemorating Joe's passing with the black bar. His contribution to our world is immeasurable. Although I never had the pleasure of meeting him in person, by all accounts he was much loved. Joe you will be missed.
But is it true? Because speaking as someone living abroad, it's certainly true for me.
It seems like the black ribbon has now been added to the site.
As a disclaimer, I work on the BigQuery team, but I wanted to point out that there is now support for transferring data from S3 to BigQuery: https://cloud.google.com/bigquery/docs/s3-transfer-intro
That's good right? Incentivizing EV adoption by the trend setters
> Bors builds one change at a time.

Bors builds multiple changes at once (it creates a merge commit of all available changes and then runs the tests on all of them), and merges if all of them are good.

Possibly you are thinking of the older bors, as opposed to modern bors-ng?
They make a huge difference. Depreciation in a low land-value area gives you an extra (tax bracket * house value / 27.5) per year. For a 200K house that's easily 2900/y extra return, more if you split out internal components of the house - an extra 1.45% return, when your cap rate might be only a bit higher than 4%! Even when it's fully depreciated, you never actually take the hit from the lowered basis on sale if you keep doing 1031 exchanges.
I wouldn’t go that far. If that place is “booming” likely so is all the other places that are similar that you would like to live. Unless you sell and move to a much lower cost of living area, the equity in your house doesn’t help you.

If you go by the popularly accepted rule of thumb, you should put 1% of your house’s value in savings for unexpected home repairs per year. Feels a little high to me.
Same, I find I don't need to go to Stack Overflow because MDN has good documentation.
Francesco is encouraging people to share their memories of Joe:

https://twitter.com/FrancescoC/status/1119604272000315394?s=...
Is the logic of which queue what files trigger automatically or manually determined?
It would be less labor intensive and less error prone.
Sounds like a terrible property manager. Thankfully it is usually very easy to fire them and get a new one. At least where I am, there are a lot of them and competition is strong, so it's not hard to find a good one.
Avalanche Noise Generator Notes
CVE-2019-3828 Ansible fetch module bef v2.5.15,2.6.14,2.7.8 path traversal vuln
The article mentions a scenario in which someone was "throwing books, newspapers and plastic sign holders at us, screaming that he would kill every one of us." This is not about living unhealthily.
Sure thing! Thanks for asking.

We're closed to new signups now while we wrap up the last bit of feature parity from the old app (and make sure all is working smoothly for our current subscribers), but would love to have you check it out in a little bit: https://pearbudget.com
Sovereignty is always personal or community, with geographic or other (e.g., subject matter) limits adopted by the sovereign (perhaps with encouragement from others, particularly other sovereigns whose preferred domains would otherwise be threatened.)

That's actually kind of the point of GP: the geographic limit here doesn't apply to the power of the sovereign around whose notional domain the line is drawn, it applies as a rule adopted governing relations between sovereigns but does not in practice apply where no sufficiently powerful sovereign has an interest at stake for which they will Lodge a protest (backed with the implicit threat of force.)

Parties using geographic games as a way to reject affiliation with recognized sovereigns are not evading the power of such sovereigns, only the protection of them.
Is "Norvegia" a typo?
Unbelievable. Such a sad day.
I do agree with the original contention that it's just a proxy for popularity. All of the things that you just mentioned may be factors. But at the end: these factors are probabilities that are mixed together in a nonmonotonic way somehow, and then multiplied by the total number of people out there doing stuff with the langauge. I would expect that that latter aspect is the dominant one in determining the ranking by language.

I would expect advanced people to ask just as many questions as beginners (they just do more advanced stuff, and ask questions relating to more advanced things pertaining to the langauge). Good documentation does not stop people from asking questions, as questions are frequently asked to which "RTFM" is the answer. Schools? Actually pupils asking "do my homework" questions is probably a driver in the opposite direction.
Web Components UI Libraries You Should Know in 2019
I've only recently started learning Erlang (via Elixir), but I'm absolutely amazed by the underlying technology and the brilliant minds behind it.

I'll remember Joe by the several insightful, entertaining talks he's given in recent years. https://www.youtube.com/watch?v=lKXe3HUG2l4 in particular.
I think that the main problem is that novice programmers write python code just because they are domain experts since it’s quite easy to pick up.
But sadly it’s not a kind of code that any seasoned programmer would write.
It happened to me to reduce a >500 loc monstrosity to a rather manageable 50 or 20 loc or something like that...
Very sad. My condolences to his family, friends and everyone who knew him.
PyImageSearch [1] is one of the best resources for doing actual stuff with opencv. I personally find the writing style a little patronising sometimes, but the content is excellent and kept up to date.

[1] https://www.pyimagesearch.com/
Having properly separated and single-purpose commits is awesome when running `git bisect` [1] — especially with automatic tests. As well when you revert said commits after the offender is found.

[1]: https://git-scm.com/docs/git-bisect
Is your product open source? Because for this kind of thing it's really hard to trust unless it's open and self-hostable.

Even if you say you don't need to store emails, there is still a chance of leaks via logging systems or simply programmer errors, or some caching layer. It's likely your security protocols aren't as robust as Google's. (You mention "https" as the primary reason this is secure. Much wow.)

Given the importance of email there is no way I could trust another closed system with my email. I'm sorry if that sounds harsh, I also want to see alternative email frontends because gmail isn't cutting it.
We may be back to building our own devices again.
I really disagree this is over engineered. This sounds like the problem is under-engineering. You suggest setting up proper infrastrucutre, rather than what they have now which sounds like a shared drive and various different processes written in whatever the person knew to make something quickly.

It's currently one step up from people running notebooks locally and having no shared space for the data.
Sirix: Effective and efficient storing and querying of your temporal data