skysight-inc/HackerNews huggingface dataset:
1. Full withdrawal of the extradition bill

2. A commission of inquiry into alleged police brutality

3. Retracting the classification of protesters as “rioters”

4. Amnesty for arrested protesters

5. Dual universal suffrage, meaning for both the Legislative Council and the Chief Executive

from https://www.reddit.com/r/HongKong/comments/czhs4q/the_five_d...

Another thread discussing the demands, though I'm sure there's more on that sub: https://www.reddit.com/r/HongKong/comments/cqnxh9/the_5_dema...
Ubuntu 19.10 wallpaper competition open for voting
"Designing" the database by creating objects first and exporting create statements is ignoring the responsibility to design the database completely, the database which is the foundation of almost all apps. It's irresponsible and leads to a database that isn't optimal at best and doesn't work at worst. The database design should be one of the most important tasks of an app and it shouldn't be an afterthought. The design shouldn't even involve code, even sql at first. Getting the data structures correct is most important. The code will flow from there. "Show me your data structures and I don't even need to see the code to understand how it works."

Putting an orm layer on top of this refusal to do one's job and design the database is the second nightmare of an orm. Adding a new language and new paradigms that don't make much sense just to translate data into objects adds a ton of completely unnecessary complexity. Not to mention many orms are slow either at fetching or hydrating data. They are just unnecessary solutions for nonexistent problems. It's too bad most people have no experience with database design or even sql to understand and see this. Most people prefer to make apps more complex unnecessarily rather than reduce complexity and think that makes them experts. They are usually the ones advocating for the unnecessary orm layer. On the other hand, this problem mostly goes away when you no longer deal with objects in oop languages, so there is hope.
After reading "Functional architecture is Ports and Adapters" [1] and using ORMs (Hibernate) for some time now, I'm wondering whether a functional approach wouldn't be better in many cases. With such an approach you would have the following flow:

HTTP adpater receives request -> object is loaded from database as immutable object -> business operation creates a modified copy -> DB adapter persists the new object.

The last step could be improved if the DB adapter would look what was actually changed. Since everything is immutable it is as easy and fast as comparing references (like React does btw). This works even with Domain Driven Design, what is usually used with mutable entity objects.

[1] https://blog.ploeh.dk/2016/03/18/functional-architecture-is-...
It doesnt replace the DB. It just uses Kineses to be the messaging provider from the lambda to the DB and back. Not sure that's a great idea TBH but who knows?!
Tesla is defined by its technology. Most importantly, it’s valued based on its technology.
So wrong, you always want to know how your database works, you should be tuning your database, and queries against your specific database. Every database has unique technology you can take advantage of and there are performance tuning techniques and design techniques you should be aware of. If you're doing simple INSERT/UPDATE/SELECT then sure, but in a large organization with tons of data that's not gonna cut it.
What the flying fuck? We don't even understand how modern AI algorithms actually work and how they decide stuff. And we want to give such blackboxes the power to annihilate all life on Earth?
> We Don’t Need One Until We Do

Exactly that. In my career, I had to use a SM only once, but I really don't know how I could avoid it.
The final code was a bit difficult to follow (PHP without Goto), but I drew an ASCII-art comment representing the state machine. And, it was perfectly fine. Fortunately, it was a "write only once" kind of business logic function.
In the near future, we are going to have autonomous battlefield weapons:

https://www.theatlantic.com/technology/archive/2019/09/kille...
How to install Android 10 on any android device
A Job Queue in Bash (2017)
After more than 10 years using those ORMs at work, in DotNet/Java worlds, my current opinion on that topic:

-the only project where ORM was worth was a simple backend admin project with many tables and very little load: ORM avoids having to write tedious simple CRUD queries.

-for recruiters, it feels more simple to find people with language X than to find people with language X + SQL.
OK but ...

-to understand the intricacies of ORMs takes a lot of time and effort, probably as much if not more as writing proper SQL.

-illustration of the previous point: it is hard to know the amount of data the ORM is really carrying, hence the common situation where half of your DB ends up in memory.

-developers tend to forget performance improvements. For instance, in C#, IQueryable objects are used everywhere, meaning that in any layer of your app, the query that will be pushed to your server might be modified: hard to tweak your performance in such context. More generally, this additional layer makes everybody postpone the time when you have to think about DB performance.

-it prevents you to use advanced DB features (ex.: built-in audit trailig and versioning), either because nobody ends up knowing SQL DB anymore, or because ORM makes it harder if not impossible.

-queries sent by the ORM to the DB seem always huge and be returning more than they should.
-for performance or complicated requests, you always end up adding some SQL to your ORM.

-because of the previous point, the maintenance advantage of ORM, namely being able to automatically migrate your DB with your code is lost: you end up having to maintain more or less manually some SQL.

-letting the ORM automatically update the SQL DB during migration on real data always make people sweat: if any problem occurs during that process, welcome in hell. I feel always more comfortable being able to write some SQL fix in worse case.

-for my side projects, I never use ORM, and enjoy it.
One of the responsibilities an employer has in the UK is to pay national insurance taxes, that are ostensibly believed to be how the NHS is funded (it's not), this is a responsibility that Uber/Lyft were shirking by their 'creative use of employment law' initially until they were forced to treat drivers as employees.

So no, government issued healthcare is likely to make the issue even more starkly obviously wrong.
Netlify: How to Redirect to an API That Doesn’t Support CORS by Tapas Adhikary
Alternate title: Men erroneously considered experts issue a public correction.
"I mean, there are only really 4 options. 1, 5, 10, and 25 cents."

Really 5 - I got a dollar coin. Apparently they're rare although I didn't handle a lot of cash and I got one on the second or third day I was there so...not that rare then.

I used my UK contactless card. It was funny because in a lot of places they'd never seen one and kept telling me to insert or even swipe it - something I've not done for years in the UK. When the tap didn't work once it was amusing handing the card to the cashier and watching him repeatedly swipe the card and then enter the long card number, expiry date etc like it was a cardholder-not-present transaction!
This is great but I think it would be more interesting the other way round: write regex to capture complex input. Maybe add some steps constraints to up the difficulty.
> the amount of regular (non tech) people using SQL is too damn low.

That is still no reason for me to use an ORM instead. Learn SQL then, that's way more valuable than to learn the next ORM library with all it's issues.
> 1) He's not a hypocrite in any way. He's honest and you can tell that he has truly thought about his opinions.

I think that's crucial. I remember he was discussing one of the aspects of software freedom with my friend and she said "I don't agree." He answered: "No problem, you have your view, I have mine, we don't have to agree on everything."

It struck me as I had expected he'll try to convince and win her over his ideas.
It's incredible how entitled people are. Explaining why your product is better then basecamp is a perfectly legitimate use of an ad. It's something that people who google "basecamp" rather then typing in the URL might be interested in.
JPA/Hibernate has moved on a lot from the church-of-XML days. The basics are a lot smoother, with annotations and sensible defaults and so on, and there are some pretty nice additions.

My favourite neglected feature is JPQL with constructor expressions, which lets you write queries in an SQL-like language, but in terms of objects rather than tables, which is slightly easier, and materialise results directly into objects of your choice.
headline for the article is actually "How to download and install Android 10 on your smartphone".

Offering a way of installing android 10 on any device is just false.
I think it's might have been a knowing ommission. This piece is pretty much a transcript of Tim Harford's series "50 Things That Made the Modern Economy". The episodes for that series are only 8 minutes long, so there isn't much time for extra biographical info without sacrificing the main story of the piece. I wouldn't be surprised if this article wasn't just written up by a scribe from the show's script and Harfords byline slapped on it.

Harford also presents the excellent series More Or Less, which is all about numbers and statistics in the news. Rosling gets mentioned fairly often, and is clearly something of a personal hero (and friend I think) of Tim's. He knows exactly who he was and what he did. I just don't think there was the time in the programme to cram that in.
>...traits in very short supply in an era where people that literally sweep floors think that work is worth $15 per hour.

The move to increase the minimum wage to 15 is presented by the uninformed as a cash grab by the lazy. The truth is 15 dollars just isn't much nowadays. The old often have a hard time forgetting about the nominal value and considering the actual buying power.

Lets ignore the fact that minimum wage workers can't actually buy houses and compare the minimum wage of $1 in 1960 to the cost of a median house at 11,900. So 11,900 hours of work 1.35 years of labor hours worth.

In 2018 it was 210k divided by 7.25 is 3.3 years of labor hours. Divide by 10 and its 2.4 years of labor hours. Divide by 15 and its 1.6 years worth of labor hours.

Alternatively we could discuss tuition at a 4 year public university where our 1965 counterpart now making 1.25 could expect to pay 240 labor hours for a year of instruction vs 1380 hours to pay the 10k it costs now at 7.25 1000 at 10 or 667.

How about a loaf of bread 22c or 13 minutes of work at 1960s $1. Now 2.50 vs 7.25 about 21 minutes of work at 10 its 15 minutes at 15 its now 10 minutes.

In real terms people wanting $15 to sweep the floor want $15 to sweep the floor because that is what it now costs to have a barely acceptable life. Not a good or a healthy one but one which is spent sleeping indoors and eating decent food.

In fact the fact is those agitating hardest for a better minimum wage are overwhelmingly have a disproportionate share of the jobs AND above average rent.

Essentially if this minimum wage looks too high you might just be too old.

Not everyone has the same options as everyone else. Some of us are just stuck trying to get by.
This article seems like rage bait.
Apart from scarcity, I wonder what it was about dishes like Fugu[1]. Maybe every fish didn't kill everyone all the time, so the element of danger added to the intrigue, etc.

[1] https://en.wikipedia.org/wiki/Fugu
The SQLAlchemy ORM is a very complex beast. It provides plenty of methods to optimise the queries it generates. It provides no way to "magically speed up the python code".

This is not just for writes, but also for loading complex relationships from the database: we've gone to great lengths to ensure we're using relationships optimally so as to cache query results and not fall into the N+1 query problem, but our application spends all its time inside SQLAlchemy.

The only way to get the performance improvements we needed was to stop using it as an ORM altogether. However, the ORM was too intricately tied with our business logic to do that without a near total rewrite.

What we've actually ended up doing to do this rewrite more incrementally is to create a Rust service which implements just the "GET" end-points: this gives us an order of magnitude performance improvement despite it using the exact same database and fetching the exact same data. Most of the business logic did not need to be duplicated as it is not used from "GET" requests, but users of our application will get much snappier loading times, and it will generally feel much better.
That looks like overly simplistic explanation. Literature Nobel Prize are usually given when someone's body of work stands the test of time although Lit. Nobel Prize has more than it's share of controversies.
The "experts" in this case seem to be defense experts, not AI experts.
Parallel calls to performed to MongoDB hang-up without entering middleware
Link to the actual proposal rather than the clickbait article:

https://warontherocks.com/2019/08/america-needs-a-dead-hand/
Dogs Are Not Here for Our Convenience
> Playing infinitely in Tetris means repeating a pattern over and over again.

Not necessarily - you could define an infinitely long non-repeating sequence (although it will have arbitrarily long repeating sequences inside it) which would still not contain any certain-death sequences.
When I wrote my reply the comment I replied to only contained its first three lines. There was nothing about pork in it then. It was edited since then.
To save you from the OP and the article clickbait:

The installation only works on Pixel devices.
The tomato was considered dangerous to eat in Europe because of its relationship to the Nightshade family, so no one ate it. One day, some Italian <unpublishable> <unpublishable> decided to cook it into a sauce and give it to a woman, so she would get drugged and he could take advantage of her.

She didn't get poisoned, and he invented what we currently know as Italian cuisine.

So, my guess is going to be "by less than ethical ways".
Well, first, you make a lot of kids...

Joke aside, this article is... incomplete at best:

> "Toxic plants are everywhere. Sometimes simple cooking

> processes are enough to make them edible. But how does

> anyone learn the elaborate preparation needed for cassava

> or nardoo?

> No single person does, according to Joseph Henrich, an

> evolutionary biologist.

> He argues this knowledge is cultural.

...

> In South America, where humans have eaten cassava for

> thousands of years, tribes have learned the many steps

> needed to detoxify it completely: scrape, grate, wash,

> boil the liquid, leave the solid to stand for two days,

> then bake.

> Ask why they do this, and they will not mention hydrogen

> cyanide. They will simply say "this is our culture".

Never ask a scientist something outside their specialties. Evolutionary biology and sociology are differenent. This article misses the fact that these cultures also do know that the food is unsafe without these steps. In Japan, where they eat fugu, the poisonous fish, they know why they remove the toxic parts. In France, where we do tons of cheese from raw milk, we know why we need fresh milk to do that: otherwise you get sever food poisoning. My mom used to grow rhubarb and do jam, she explained to me that the leaves are toxic.

I agree that there may be or have been useless steps in the process and that it was not as well understood 100 years ago as it is now, but this is not just pure dumb imitation.
I wasn't entirely truthfull. Still, 4, 6, 7, 8 are all 'A' solutions. I went back over them and googled some words, now I do understand those.

I guess all I showed was that if you don't want to learn, you're not gonna learn.
> the compound bow wasn't invented until 1966

Err.. doesn't the Mongol bow count? I distinctly recall reading how the fact that it was made of multiple materials made it a lot more lightweight and efficient than bows made out of one piece.

EDIT: NVM, I confused "compound" for "composite"

EDIT2: And this passage on Wikipedia explains my confusion

> In literature of the early 20th century, before the invention of compound bows, composite bows were described as "compound".[2] This usage is now outdated.

https://en.wikipedia.org/wiki/Compound_bow

https://en.wikipedia.org/wiki/Composite_bow
Be sure to check out Megaparsec[1].

[1]: https://github.com/mrkkrp/megaparsec
Nightly can inspect WebSockets now.
> the drastic shift we have undergone as a human consciousness

I don't really know what this means, but if you think that the inherent nature of the human soul has changed in the last few decades, think again... If tomorrow there was a catastrophic event such as a worldwide nuclear fallout, humans would be at each other's throats in the blink of an eye. The only thing really keeping us together are institutions and collective constructs such as "human rights", which are far from permanent. It is hardly our evovled 21st century post-modernist souls keeping us prosperous and peaceful - we are fundamentally not different from the Romans, who enslaved people and had them mauled by lions in giant arenas. Or hey, the Nazis, which were a thing like 70 years ago - practically yesterday.

Also, tell Beijing about the wonderful droplets of color that are the people of Hong Kong and see what they think. They'll probably laugh heartily while they order their tank commanders to raze the city, if they become persuaded that that's what needs to be done to fulfill their vision of a dominant China.
Did you just create this account to insult people seems like a bad use of your time.
I just downloaded 4tH with macports, anyone have experience or tips with that? Seems very cool.

"4tH is a very small Forth compiler that can create bytecode, C-embeddable bytecode, standalone executables, but also works fine as a scripting language. It supports over 85% of the ANS Forth CORE wordset and features conditional compilation, pipes, files, assertions, forward declarations, recursion, include files, etc."

Home page: https://thebeez.home.xs4all.nl/4tH/

Also..anyone tried or programmed in colorForth? Sounds extremely colourful!

"colorForth uses different colors in its source code (replacing some of the punctuation in standard Forth) to determine how different words are treated."

https://en.wikipedia.org/wiki/ColorForth
I've not met anyone who is "afraid" of GMO, though anyone with a severe allergy should be very careful of GMO: you just don't know what foreign proteins might be unexpectedly present. Lots of people are opposed to GMO for various reasons to do with patents, economics, power, ...

I think people are quite used to the idea that some parts of an edible plant may be poisonous: rhubarb is another well-known example. A plant requiring special treatment to not be poisonous is a bit more scary, but red kidney beans are not an exotic food in the UK.
If you have a company, hiring FF developers who are allowed to contribute directly to Firefox may be a good contribution.
Example:
One side of the world:

Hey we used bluetooth to communicate to my next door neighbour while our internet was being sniffed by the government.

Other side of the world:

Hey man, looks like the bluetooth tech they were using is pretty outdated. I wonder how they are living.

How did the talk get diverted ?

Why the other side of the world didn't talk about whats important?

How can they start appreciating first than putting the intellect mind into work?

Whats feels wrong?

Something feels wired in the brain.

Haaa right!

Tech is as addictive as any other addiction.

Intellect is the addictive substance.

Big brains know it,

We use it,

We think along with it.

So what got lost?

When did we stop to think like a humble monkey instead like a greedy machine ?

couple more questions.

point - Balance the mind with its own nature and external influence.

Reject if something feels wrong. Or atleast dont express.

Depression is prevalent in tech.

Why ! Because brain was giving you signs from beginning that it isnt healthy.

Everything is connected.

Hope I gave you the message you needed.
Kill snake by its head. Which is the snake in this world ?
People who oppose "safe but artificial" things like GMO and vaccines, and people who oppose "unsafe but natural" things like poisonous plants (or for example, unpasteurized milk) are not necessarily the same group. In my experience, they've actually been opposite camps.
Go 1.13 Released
If you are scaling up, profitable (or speculated to be very profitable in the future), and eventually get big enough to do an IPO, then yeah why not? Booking.com a CRUD website making hotel reservations, and called a tech company.

What is missing however in the picture of "someone building a site" is the other points mentioned in the essay: network effects, building a platform and forming an ecosystem around you. Everyone can do it, but not everyone succeeds. This is why there is such a big rush within tech startups to be the first in a space.
Yes, assuming you have all the required elements (ingredients, time, tools, etc).

There's plenty of people who are okay at following basic directions for cooking - but the moment anything goes astray or they want to do something that's not exactly in the recipe (say, substitute one ingredient for another), they don't understand what is happening and how to fix it.

A lot of cooking is about knowing general rules and how to apply them, but if you've never learned them, you can end up with inedible messes. This is where those who arn't terribly confident can decide that it's all too difficult and give up.
> On the other hand, demands regarding rioting are unreasonable

How else are you supposed to fight against a dictator for life in a system that's not a democracy?
How to Unblock Domain / Website URL on Facebook (100%%20Working)
I wonder if the MOFs self assemble. I just started searching, but if any experts here know how they're made, please explain. I found an article that says the organic linkers are "ditopic or polytopic organic carboxylates (and other similar negatively charged molecules)," but MOFs are crystalline, so do they have to be baked? I get the impression that they're pretty easy to create, and can be designed to have affinity for any molecule. I really wonder if hydrogen storage will ever be solved. https://science.sciencemag.org/content/341/6149/1230444
Terminator hasn't taught them nothing?
Over the last 5 years I've been slowly shifting into the Apple ecosystem. It started with a 2015 Macbook Pro which I immediately installed Chrome on because what the hell even was Safari? Chrome was basically the only browser in my universe. Then I switched to Firefox but I had so many issues with it. It was slow and buggy and made my laptop chugg along for some reason. Quantum was a good step forward, though.

But now I own three Apple devices and have fully made the switch to Safari. I'm so locked into the Apple eco system now though but it has made my life many times easier using the browser that's designed by the hardware manufacturer of all my devices.
As well as the basics, it really helps to understand all the different options for window frames, allowing you to only look backwards or forwards a certain amount, or skip the current row etc with more recent support in Postgres at least.

Also if you want to get really fancy, it's always worth remembering that you can write your own aggregates in Postgres, which can of course work as window functions.
How does it compare to https://looka.com?