skysight-inc/HackerNews huggingface dataset:
Category theory studies the composition of (things that look like) functions. So each thing has a domain, and a codomain, and if we compose A --f--> B with B --g--> C then the intermediate B goes away. This doesn't sit nicely with how parallel composition works, e.g. If I talk to Google, that doesn't prevent you from talking to Google.

That's the essence of why category theory works nicely with pure functional programming, but beyond that simply fails to be useful. In particular, there has been virtually no progress in useful categorical models of parallel computation.
I used your service 2 months ago, thank you sooooo much!
> In releasing the redacted PDF of the report to the public, Barr avoids suspicion that the document had been edited (changed) in addition to straightforward redactions. PDF serves the need to unambiguously assure the press and the public that they are seeing Mueller's actual report.

This is such a shame. The PDF wasn't even signed.

Is an HTML file with a hash provided directly by Mueller/whoever is doing the redacting too much to ask?

> There's really no model for redaction of HTML-based web content.

Is replacing censored text with a fixed number of some character not good enough?
This news seems to have escaped HN attention. Too bad, I would have liked comments for some of the security experts who usually post here.
That looks very interesting and could be source of interesting ideas. Thank you.
Having been lucky enough to grow up in Western Europe, in a “socialist” democracy, I’ve read a lot about the state of poverty in the US and been shocked by visits to San Francisco and Washington to see so many homeless people. I’d thought that seeing a street full or homeless people literally one block over from the Whitehouse was the most shocking thing - it is inconceivable in Western Europe that homelessness would be tolerated near a national monument.

But reading this, the idea that libraries are doubling as homeless shelters is the most shocking thing I think I’ve ever encountered about poverty in the US.

Sorry to provoke anyone from the US reading this but how badly does your society have to be broken to allow this to become an accepted norm? Given it’s an extremely wealthy country, the cruelty of the system that lets this happen is hard for me to even imagine.

This whole “survival of the fittest is what makes America great” crap needs to stop. Period. Because to me that seems like that’s the root cause, the excuse for treating a societies weakest so cruelly. The only discussion should be “how do we fix this?”.

OK rant over ... apologies to anyone triggered but genuinely shocked.
The problem with how we treat the poorest people in the country is that we have a fair number of completely psychotic people who spoil the whole social support network for everyone else by requiring 100x the help everyone else does because they are actively destroying the facilities and people that try to help them.

In Western Europe these people are likely held against their will in mental institutions, but in America, especially in San Francisco we'd rather they be out walking around off their meds if they haven't murdered anyone yet. There are homeless people who regularly randomly assault people for no reason and as long as they don't use a weapon they are back out on the street in 24 hours.
When I look at commit messages its to know why the and who the . Note. Its still OK to leave comments.
I run https://www.javawebscrapinghandbook.com which is a book/sandbox website to learn web scraping and browser automation with Java. I launched in August 2018, it's averaging $500 / month.

The most challenging part was marketing. I also run a blog about this subject and 90% of my traffic is from the blog.
The discussion is on the question “Should you buy a house and rent it out?”
That "new generation" seems perfectly happy paying for Netflix, Spotify, Apple Music, etc.

They also seem happy to create content on Instagram, Snapchat, YouTube, etc, with a handful of them becoming stars as big as the pop stars and TV/movie stars of earlier generations.

Attributing simplistic traits to entire generations, comprising hundreds of millions of people spanning many different countries, cultures and classes, never really goes well.

At any point in time, people just choose the most appealing and cost-effective options of those available to them.

It's up to those offering products and services to make their economic model work, but the ability of the big content companies to generate big revenues, either via subscriptions or advertising, shows that there are various models that can work well.
ProductHunt influence ;)
"If you don't like it don't use it" fallacy doesn't work because I'm not talking about private but professional use. Look what happened with GNU/Linux, one cannot "not use it if one doesn't like it" because someone else already decided, also out of incompetence stemming from ignorance (which I'm then forced to deal with, unnecessarily). So there is more than plenty of reason for deep seated bitterness and resentment.

Of course I wouldn't use those privately but private use is irrelevant.
You don’t need to go to America for that - I live in Berlin and visit SF on occasion and didn’t get the impression there are more homeless people in the latter (nor that it is dirtier).
I thought we were talking about rental properties?

That said, buying a house is basically buying an index linked annuity that covers your rent on a property you have to maintain. So it is an investment, albeit one tied up with a lot of other baggage.
Stylometry isn't hard science. And it is vulnerable to attack.

You can fake it. If you have a target to frame then it is possible to impersonate them. If you wish to evade detection then it is possible to attempt a disguise. It can be useful when looking at innocuous passages of text but the context of stylometry is ruined by an author aware of the technique.
Welcome to Belgium, Europe. Our Library doubles as a homeless shelter too. Shelter shortage.
As a christian I follow the teachings of Jesus and believe this life is just the beginning. This doesn’t mean I walk around in a state of bliss. I often think on the meaning of my work in IT. At nearly 50 I am beginning to realise daily life has more meaning when I focus less on myself and more on others.

A funny thing happened last Christmas which highlights my being too introspective. I wrote a poem for the first time in my life and gave it to my wife, son and daughter. They absolutely misunderstood the poem and thought it was about our strong family bond. The poem was actually about stars, space and time. I honestly believe my family’s interpretation of my poem was better than my own. This was just a quirky reminder for me of how I was missing the bigger picture by being so internally focussed. I also think it may be my last poem ;-)
Then start with one, about "The Europeans", the most gross that comes to your mind.
And who are you to dictate what "needs to stop"? This is not tumblr. Your language and tone are not productive. Please suggest solutions and have a civil discussion!

Perhaps I'll start:

I think this is tragic but the average American feels totally powerless to help. In San Francisco the homeless are almost all mentally ill, often dangerous, people from other states. My suggestion would be to pool money from all cities they come from and fund homeless programs outside of SF, outside of metropolitan areas. Then, transfer the homeless there and give them another chance to restart and get the help they need outside of a revolving door urban environment.
I think you need some % match indicator or a floor (eg chose at least 8 values? Match more than 1). At the moment it isn't clear when I would want to stop scrolling or improve my search criteria.

Perhaps use a soft floor? I.e. a little header "matched one value" at the right point in results. If people want to scroll past that they can, if not they'll know where to stop. You could also exclude them from the result count. In which case it would say "We also found these companies which matched one of your values".
It gets worse. In my days as an attorney i had contact with people who arent allowed into public libraries. Think being homeless is bad, have pitty for those homeless also convicted of certain crimes. Many shall never again be allowed near a school, park, library or recreation center. They live under bridges without the option of visiting such friendly places.

It is easy to help the innocent. Real charity comes when asked to help someone you may hate.
With either a PDF file or an HTML file, there's no way to prove that the document is a redacted version of the original, rather than an edited-and-redacted version of the original. I also don't see what using PDF adds here.
> I feel like a large part of why people on the internet are so terrible to one another is that there's really no accountability because of the anonymity.

Sounds plausible until you consider that many of the worst comments are written by real people logged in using their real Facebook accounts -

... and some of the best forums online don't demand anything but a username and password like here.

IMO real name policies are way less effective than some people want you to think, and they'll effectively prevent certain minorities from participating in online debates.
I've seen real problems with using commitizen. The first, and probably most insidious, is that if you've got a tool to enforce a format, people stop thinking about the content, but still believe they're getting good commit messages because the tool tells them so. This makes it harder to convince them that content quality needs addressing. Worse, it gives you no flexibility to use the limited space in the commit header if you, the human, have a better idea of what the commit message should be than the tool has.

It breaks muscle memory. For me, `git commit` is something that happens frequently - on the order of several times an hour, and not necessarily only in a single project. If the steps to commit are different from project to project, that's a mental speedbump every time I make a change, which pulls me out of flow and distracts me from whatever it is I'm doing. This is made worse when the commit format rules are in flux, because I then get tripped up within a single project.

Lastly, it's Yet Another Thing That Can Break(TM), and a specific example of that pernicious class of Technical Solutions To Human Problems.
It seems the simulation just gives the upper bound and lower bound based on the input ranges. A spreadsheet model can do the same thing by running the model with different input ranges. In fact, that's what a spreadsheet model is for, trying different input to run what-if scenarios.

On the rental investment example itself, it would really help to have a finance person to go over the model. A rental investment needs to be modeled like running a business, not like buying a house to live. Its analysis is usually done using net operating income, CAP rate, cashflow, ROI, and IRR.

BTW there's no magic 1% to 4% annual appreciation in rental investment. Appreciation is purely based on increasing net operating income faster than market rate, or in simpler term improving CAP vs the market CAP rate. Let's say you buy a property with 4% CAP rate and the market CAP rate is 4% now. 10 years from now your NOI still produces the same 4% CAP but the market CAP rate has risen to 6%, your property will depreciate! Market CAP rate is affected by different things that're out of your control and it's hard to model.
SF is a open air mental asylum and based on what I see, I think London Breed wants it that way.
I thought it was 'Se Germans'. We make progress here.

In another of your comments it's "The Asians". I don't think it helps putting billions of people into a bucket and then label and bad mouth them. It doesn't explain anything about the world and helps no one.

"second-worst wireless environment on Earth"

Well I have splendid working 4G here in Europe. If that's the second worst wireless environment on Earth I'm fine with it.
Maybe they should not have committed those crimes. Or are you suggesting they are unfairly punished?
What a beautifully geeky article.

I was wondering if they'd want to also print-then-scan the document out of a fear that redactions can be undone somehow? Stories in my memory about how older revisions of documents were still retained in the meta (or otherwise not immediately visible) data of documents (at the very least documents from Microsoft Office).
Ultimately what that boils down to is that if I don't want to be recorded, I should stay in my own home and not even visit anywhere, because only at home I can expect privacy.

That's not privacy.
> US economy is the biggest in the world, twice as big as the next country, and 5 times bigger than Japan

Nominally yes, but PPP is generally more apt.

> GDP comparisons using PPP are arguably more useful than those using nominal GDP when assessing a nation's domestic market because PPP takes into account the relative cost of local goods, services and inflation rates of the country, rather than using international market exchange rates which may distort the real differences in per capita income.

https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(PPP)
movie is pretty good, but it has so much fictional elements, it probably should've been called something else.
Nice!

Can you give more details about your marketing? Do you just point to your sales page from your blog? Any email capture form / mailing list / automated sequence?

Also, is there Any advantage of using java for webscraping instead of python? (Which is often used by web scrapers)
because it's really hard, and they need to publish :)

-- phd in physics
> it is inconceivable in Western Europe that homelessness would be tolerated near a national monument

There are two options for that: a) solve homelessness b) send in the police to make sure the homeless stay where you can't see them.

I don't know about other Western European countries, but neither is done in Germany. You will see homeless people in Berlin near monuments. Maybe Berlin is an exception, but I have some doubts.

> Given it’s an extremely wealthy country

I always have huge problems with statements like these. What makes a country wealthy? The size of the federal budget? The amount of debt? The private wealth of the median citizen? The number of billionaires? And even if you find a country to be wealthy while having social issues - how much should it invest, and how should it prioritize, and who should be paying the extra taxes, or which other parts of the budget do you want to reduce? I don't believe in the "wealthy country" meme in a "look, you have lots of money, why don't you just buy a new pair of pants" way.

> The only discussion should be “how do we fix this?”

I'm certain that nobody sits there and says "Listen, we must not fix this, otherwise we lose our edge". It's just hard to fix. You can temporarily make homelessness disappear by simply throwing money at it, but you won't solve it. Homelessness in general isn't so much a financial problem as it's a mix of mental health, drug abuse, bureaucracy, broken housing markets and certainly many more factors.
Why is it such an expensive place to live in then?
Perhaps that was more what I was getting at. Most professional sports players peak around 30. If anything, you should feel more healthy than ever around this age.
Show HN: Mockit – Open-source app to create and configure HTTP mocked endpoints
AFAIK a UWP app can use Windows Imaging Components (WIC) for that task, which is a COM API introduced around the Vista era. Part of the great nebulousness of defining UWP is that they can retroactively say a particular Win32 API is "modern" enough to fit.
Artificial market constraints through rent control?
People who have commit crimes are still people. Homelessness should not be used or seen as a valid punishment.
Haskell in Production: Beware Idle Garbage Collection (2017)
> I distinctly recall trying to limit my questioning to daily stand-up

If you are doing anything scrum-like, the daily standup is the worst time for a junior to ask questions, except if it's "I'm stuck with X, who can I ask after the standup about it?" (but that type of question is better done in a team chat, if you ask me).

The standup is meant to identify impediments and blocked issues, not time for technical questions. The standing up part is to make everybody uncomfortable if it's dragging on to long.

Now, I don't expect a junior developer to know this, but a scrum master (or in its absence, a team lead or more senior developer) should really have told you about it, and gave you instruction for a better time to ask such questions.
> Be a part of the solution and build something. Do not be a part of the problem and become a landlord.

Well, presumably he built something, and then exchanged that something for a home - the exact sequance being:

1. Do some work for someone.

2. Get paid money for results of that work.

3. Use that money to buy a house.
How to Sidestep Anxiety
Homelessness is not their punishment. Not being allowed in libraries, schools, etc, is.
Coz international speculators don't care about the environment.
React Themes – Dashboards, Landing Pages. Free and Paid
I think david927's intuition is more correct here. The uncertainty in the position and momentum is intrinsic to quantum mechanics - it's built into the 'wave function'.

The suggestion that if one pushes away something by throwing something else builds on a purely classical intuition and wouldn't require quantum mechanics to explain if this was all we observed. The uncertainty in quantum mechanics is fundamental (to quantum mechanics) and emerges through a different, as yet unknown, mechanism.
The Predator That Makes Great White Sharks Flee in Fear
What surprises me with visualisation is that you soon find yourself on your own when it comes to making a 'simple' graph. This takes you out in to a whole world of coding that nobody else will ever re-use.

The examples out there will not do for your data and even if you wonder 'am I using the wrong chart for this?' you can find that you are not.

Recently I needed to do a stacked bar chart with different things in each stack. Imagine column 1 - fruit - with that broken down by apples/bananas/oranges and column 2 - vegetables - with that broken down by tomatoes/potatoes/carrots.

The other problem area was colouring the chart. I generated colours in the hsl colour space so that where something was on the chart determined colour and how much of it there was determined saturation/lightness. Some people get offended by eXcel style hard colours so I could not just use random clashing colours and call it a day.

Beautiful visualisations are hard, even with the best graph tools out there I expect some inevitable situation of being an edge case and having to find solutions the hard way. The goal being so that nobody even notices the hard work put in. Only if the graph is ultra intuitive and simple is it going to work with some audiences. Simplicity is hard.
I read it as, but I could be wrong, that if you start out in life with money (parents/inheritance/...) and you decide wisely, like buying a house close to uni and putting in a shitload of students, then you have it easy.

I owned a student home which I bought from partly smart and mostly lucky stock investing (I had savings from strawberry picking (yes, really; that made money faster than coding in those days for me) and I put it on Borland before 2000; they went up big time, I sold at the right time and student me could buy a house suddenly); it was in a city with high student housing prices and it was a really good house for it; it was big and could house 8 (to 16 if pairs) students paying 8*400 euros/mo. It was not easy money though; I lived there too for a while and the constant maintenance drove me up the wall. I am (always was) mostly someone who lives in his head and thinking about code and leaking toilets, pipes, flooding etc really is something I cannot deal with. So I sold it after 4 years of getting stressed.

I definitely wouldn't do real estate again; I like virtual assets and the stock market & starting + selling companies treated me a lot better than real estate ever can do. Without the worries of brick & mortar.
15 years of Python here, started in 2.4. Day to day Python is not more complicated to use. It's actually easier due to many bugs fixes, quality of life features and better error messages.

However, Python does provide more tools to do more complicated things (async, type hints, etc), but that's not what most people use. They actually don't even know about it, and don't have to care. So it's not the questions you see on SO.

Python has gotten much, MUCH more popular, and we are currently facing a wave of new beginners. Particularly from schools (it's now the default teaching language in most countries) and from loads of workers that can benefit from manipulating data with programming and are attracted to Python for this.

It is precisely because Python is still easy that it's that popular: it doesn't benefit from massive existing code bases like Java or accidental monopoly like JS. We just have a lot of people creating a lot of libs for pretty much everything, because everybody can do it.

I also think the aesthetic of the language plays a big role. Python has been designed to allow you to dev with it with just MS notepad if you have to. It means you don't need to learn about a gigantic and complicated ecosystem to be productive with it (although it does exist): it's a huge help for all those people that are just getting started or not a programmer at heart. It's also harder to create very ugly code because you don't know what you are doing, and if you do, the result will not be as bad as with other languages because Guido made sure of it.

It's also why you don't get multi-line lambdas. Everything is a compromise.
Homelessness is used as punishment:

https://youtu.be/vP0gTksLU8g

https://youtu.be/852ZyRIPdjI
I don't particularly feel bad for sex offenders. If you can't control yourself...
Nope, totally agreeing with you!

:-)
Having been lucky enough to grow up in Western Europe, in a “socialist” democracy,

Neither Switzerland nor the UK have ever been a socialist / "socialist" democracy. Your claim is factually untrue and surprisingly bizarre.

"I’ve read a lot about the state of poverty in the US and been shocked by visits to San Francisco and Washington to see so many homeless people."

Cities long under administration of the left.
I often say that Python is the best at nothing, but pretty good at most things. And hence it became huge by the sheer appeal of being versatile. Life is short and most people needing to program are not programmers. Also many programmers didn't start as such, and were simply looking for an easy way to solve a task.
Histogram Backprojection: Image Segmentation Using OpenCV Python
️ 8 Performance and Usability Improvements for Manjaro Linux Deepin
See also recent demonstrations in Berlin. Increasing housing costs are changing the character of the city.
Californian software is eating the world
I'm running https://mybrandnewlogo.com — an automatic, online logo generator.

I'm also running https://monokai.pro — a professional color scheme for coders.

I've done both on the side of co-running a design agency. Last year I've spent quite some time on the logo design tool. It helps that I enjoy programming, learning and making stuff, but something's always got to give. I've sacrificed a lot of weekends, but luckily the foundation is there now.

Both projects are profitable and have quite different mechanics. I've done almost no marketing for the color scheme, whereas the logo machine needs a lot of marketing.
What are some examples of those certain crimes?
For instance, Russel's paradox arises from an inconsistent naive set theory.