skysight-inc/HackerNews huggingface dataset:
> You can bypass this whole inefficiency by making the backend a pass-through. That gives you one fewer thing to worry about, which any engineer will welcome.

Um, yeah, and now you have front end security issues, since all the expressive power that you have just given to your front end engineers is also available to any damned fool who can fire up a browser console.

I strongly agree that you should make the distance between the front end and the data as thin as possible, but this article comes at that from the front-end developer perspective.

There is another option: make the front end as thin as possible. Eliminate the huge front end framework and go with something closer to the HTML.

This keeps the expressiveness on the server side, which is a trusted computing environment, rather than exposing it on the client side, in an untrusted computing environment, where security concerns become much more complicated.
The 100m eithernet distance restriction used to be to ensure that if two machines tried to start talking on the same line, they would hear the noise from the other before they finished sending their packet, and could therefore know there was a transmission error.

That is, at least, what was described to me in Computer Networks I back in 2006. I'm sure things have changed as we've moved to always using full-duplex wiring and fully-switched networks.
How much do statins prolong life?
What I'd really like to find is some variety of smart switch with a mode change between 'control the wall circuit' and 'leave the wall circuit always on and send commands over the network', so that the same switch hardware can be used everywhere but you can change the mode for specific circuits that have smart bulbs.

I have no idea how one would design this in an intuitive way, though.
“Still, his political spending remains almost entirely partisan. Koch Industries’ PAC and employees donated $2.8 million in the 2020 campaign cycle to Republican candidates and $221,000 to Democratic candidates, according to the Center for Responsive Politics.“
In the case of the tool buttons in macOS windows my feeling is that this is really is splitting hairs. Literally everything that is not the same color as the toolbar itself is clickable. The frustration or the supposed 'cognitive overload' is purely theoretical.
Rails makes it really easy to do something 10 different ways to get the same result. Unfortunately, most of which aren't the most performant way. In my 10 years of building Rails apps of all different sizes, and seeing some very mature apps in production, this is the most common culprit I've seen.

I currently work on a rather large Rails app for a site that most of us here use. A common pattern for our performance pitfalls are things like this:

Tag.all.map(&:name)

versus

Tag.all.pluck(:name)

Using `#map` will instantiate a `Tag` object and do all the slow(er) metaprogramming to get you the syntactic sugar that makes interacting with an ActiveRecord object a treat. It does this, and then you only hit `#name`, completely wasting all that effort.

`#pluck` will change the SQL from `select * from tags` to `select tags.name from tags` and never instantiate a `Tag` object, instead short-circuiting and directly fetching the resulting SQL rows — which comes back as an array. It's something along the lines of:

ActiveRecord::Base.connection.exec_query(Tag.select(:id).to_sql)

Another one I see:

ProgrammingLanguage.where(tag_id: @user.tags.select(&:language_tag?).map(&:id))

versus

ProgrammingLanguage.where(tag_id: @user.tags.select(:id).where(type: 'LanguageTag'))

The first example loops over the loaded `@user.tags`, loads them if they're not already `#loaded?`, selects ones that are `type == 'LanguageTag'`, only to grab the `#id`.

The second example joins the two resulting SQL statements and calls `#to_sql` on the second statement, building one query from two queries.

Are these times when the first example would be preferred? Yeah, plenty! If your result is already `#loaded?`, then you probably don't need to hit the database again. But for this example and the ones I'm stumbling across while getting our company up-to-speed on "good ways", these are the the commonalities.

Save for only very recently, the company I work for hasn't put emphasis on real-world Ruby/Rails skills, instead "if you can code at a high level for any language, we think you can make reasonable contributions to our codebase." This has lead to hiring skilled developers that just don't know that there's a more preferred way of doing things in Rails for different contexts.

Double-edged sword, really.
And when it was posted here, he was lambasted for it.
Hey .. I saw your comment just now (yeah .. I know 11 days!). I think you are spot on (about several points), and some really interesting insights. I'm bookmarking this comment.
the way India backed off from such trade agreement makes me worries.
> The article would have been improved by giving some insight into what changed his mind.

The article would have been improved by at least proving he has changed his mind. Charles Koch is 85. There is a decent chance he is not going to live long enough to see another Republican administration. It would be in the best interest of maintaining some political influence and making some more change for him to change his public position like this. If he were 60, I would have expected him to wait 4–8 years for the next Republican administration instead.
Average gross salary in Poland is ~$1400 if you are looking for options. But please do some research before relocating, current political climate is one of the reasons why I'm not really considering moving back there...
>I don't think the parent is confusing these notions.

I'm not (I've even maintained distro spins). I am at a loss how anyone could read my question and think otherwise ;).

> I hope the pre-installed distribution will have an up to date kernel with latest patches.

That's precisely what I want to find out. I've seen so many blog posts and forum threads about different PinePhone builds. It's like the best and worst of Android ROM development from the XDA forums.

Different people seem to be hacking on different thing (which is fun) and many are attempting to get things upstreamed but the development seems to be all over the place. It's not clear what builds have safety features like the Power IC limits enabled for example.
Until you have to go hunt a bug in Zephyr. Or you need a particular subsystem to have immediate priority NOW.

It's quite irritating that everybody wants to complicate something which is basically "1) call this init function" "2) call that function every n ms on a timer".

The problem in programming (and this is true even for desktop stuff) is that everybody wants to own the event loop.

No. No no no no no no no. Bad programmer. No biscuit.

Two systems that want to own the event loop can't compose.

Maybe I'm running a CANOpen and a BLE stack. Both want to own everything. Well, sometimes that CAN system emits an event that I MUST not ignore (human proximity alert on a robot--for example). And I have to spend a not insignificant amount of time getting the bloody BLE stack out of the way so that I can focus solely on the CAN system for the moment.
> people don't expect a final tally until December.

It's always been this way, even before the pandemic. States have 30 days to certify their results. It always been this way. Many trump supporters believe that results will magically change in December. The reason it took longer this time is because:

1. Majority of people voted by mail

2. Many states were not allowed to count as the votes were arriving

3. Many states weren't even allowed to check signature and remove voted from envelopes in advance

4. Dismantling sorting machines in USPS before election causing delays (it took 10 days for my friend's ballot to be delivered within the same county) because of that many states extended wait time for incoming ballots.
Most projects on SourceHut don't receive anywhere near 10 patches per day. There are not any many large projects on sr.ht - established projects are slow to move off other platforms, and new projects haven't had a lot of time to gather steam. The top lists peak at like, 3 per day. What matters more is their volume: 1,447 of them were created in 2020.
Open source != unpaid, uncredited work. That is just what corporations want it to be. In this case, it's a violation of the open source MIT license to remove the original copyright statement.
Best advice a serial entrepreneur ever gave me: don’t risk your own money.
I have seen a lot of people losing everything chasing a dream. It’s the most probable outcome of entrepreneurship. Heal your wounds and stand up!
Fire risk is a gradient, possible to price but impossible to be certain about.

If someone wants to build on a volcano let them, and let them pay for it.
10% of the 30% is China's GDP, and another 10% relies on Chinese inputs for their GDP outputs. So, the title might just as accurately read: 10% of global GDP accepted Chinese hegemony. Don't believe me?

Ask yourself how free "free" is a "free trade" agreement when one side:

- Has a per capita fraction of the environmental regulations/costs.

- Has a per capita fraction of the social program costs.

- Has a per capita fraction of the labor/union costs.

- Has a per capita fraction of the regulatory/I.P. costs.

- Provides tax incentives for export.

- Manipulates its currency to undercut global pricing.

- Has no foreign bribe prohibitions.

The world's one and only attempt to check Chinese economic domination died when Trump lost his reelection bid. It is now a race to curry favor with Beijing.

This post will be downvoted into oblivion because it says thing people don't want said and that others don't want to believe.
I think that's the point? It's trying to display the difference between the most commonly used projection and the actual relative sizes of territories.

(Forgive me if my snark detectors are misfiring, and have an xkcd)

https://xkcd.com/977/
I think your dichotomy of either you’re a liberal conservative or you’re a fascist illustrates my point pretty well. You simply cannot imagine that someone could be a non-liberal without being evil.

By conservative here i meant really anyone who is not 100% onboard with democratic party doctrine, which is enough to be ostracized in SV today.
This is the key part here.

China has been retaliating recently against Australia since they chose to stand up to them over COVID-19, HK, South China Sea etc.

And they've done this through sneaky but legal means e.g. suspending wine imports by accusing them of dumping, magically finding pests in a range of imports and labelling Australia as a dangerous place to live in order to discourage Chinese students.

So having a FTA in place doesn't necessarily mean much.
Cantor was Wrong: debunking the infinite set hierarchy
Given the US' attack on immigration, it too will have a rapidly aging population.
All power grid infra is already hardened against lightning strikes because power lines are, trees aside, usually the highest point and thus the best target for lightning.

Usually there is one or two lines at the top that are grounded at each pole to dissipate lightning, and in the event that lightning does hit a power-carrying line there are arc "spikes" at the isolators so that the lightning energy can again dissipate over the masts to the ground safely.
If you think this agreement represents "free trade" then you don't understand how these things work.
Order of magnitude, making a car creates about as much emissions as driving it over its lifetime. [0]

If we typically average even just 20 years from an ICE and 10 from a BEV, the BEV starts out way behind in the green race and might never catch up.

Stopping making new inefficient cars is good. Scrapping working perfectly good cars is an alloy of good and bad.

[0] https://www.theguardian.com/environment/green-living-blog/20...
If it makes you feel any better, a brain that young, even if identical to that of a baby, is probably not sentient. AFAIK, current research pegs the early development of sentience around 150 days.

Despite that, I'm a bit unsettled by this too. I think we should understand the mind a bit more before we go down the path of creating one.
He will probably try to buy off both parties now. And no doubt he will be successful. His real mistake wasn’t partisanship but pouring money into organizations that distorted science like they did with climate change.
Does anyone know any VPS providers that are planning to support this? I'm using Linode primarily because they are one of the few providers that provides openSUSE images, but they haven't said anything about supporting MicroOS yet.
Can we please use paragraphs to create a coherent thought/point rather than a series of one-liners? Perhaps spend a little more time to think through/build out your thoughts. It is more interesting for your reader and (I think) promotes more nuanced conversation if we all spend more time thinking about our ideas before we rush to post.

Note, this is not specific to the parent post but just a general comment made with the hope of raising the level of conversation beyond twitter.
Although at the NGO level activists claim that "Roma" should be used instead of "gypsy", it is very common when talking to Balkan Roma to be corrected by them: “Don’t call us Roma, we’re <locally used exonym equivalent to ‘gypsies’>". Obviously their own endonym is Rom, plural Roma, but they sometimes bristle at outsiders using it.
Naming things is very hard, as the saying goes, this name is turning out to be better than expected now that you uncovered the secret "no str" meaning :)
I think you are confused, this was posted on Indie Hackers under the self care section, not to hacker news directly.

Besides that, there is no point to compare risks and suffering, both are relative and subjective experiences.

And lastly, social anxiety could be (or not) by it self a major problem, bigger than losing a Green Card, your comment sounds too condescending and not really useful.
I'm glad it's out there - for most people, the 'boring' software dev career at a larger tech company is better off financially at critical junctions in your life and often lets you solve more challenging/advanced problems as compared to doing accounting/sales/pm/hr/dev work all by yourself.
I've been following an ex-googler who reached $30k in revenue after two years (total), compared to his previous salary+options of around $225k/year.
But most importantly you're not stressed out as much.
Future brainy monkeys will watch that movie like it’s a documentary.
It's interesting that the novel assumes that the bonding is likely to be stronger than almost all other bonds humans form - for example, we grieve when our spouse, best friend or child dies, but we don't usually presume that euthanizing the grievers asap would be kinder than having them to go through grief and rehab. It would seem plausible for some of the individual bonds to be like that, but notas a general rule.
how can one "quit". indie hacking is not a "job"
Interesting. I did some (IT) work for a company making photo plotters for the PCB industry. The MDA Fire 9000, later Cymbolic Sciences and other companies. This was about 1985.

They had a minicomputer with a hardware rasterizer driving a laser writing to photosensitive film. They had amazing throughput for the day.

One of the issues was temperature and humidity stability of the film. It would change dimensions with as little as 10% change in humidity.

The change was more than the resolution of the laser.
Disagree. The app's url scheme is stateless, which is great. Linear views of browser history is the problem.
What Is Censorship? – American Civil Liberties Union
>How is it "originalist" to take the 2nd Amendment, which refers to "well regulated Militia," and using it to say there's a Constitutional right to owning a handgun for personal protection...?

The relation between the operative clause and the prefatory clause is that, historically, kings had effectively destroyed the militia by forbidding the keeping or bearing of arms. Justice Scalia's opinion in Heller cites a great deal of evidence that the original public meaning of the phrase "the right to keep and bear arms" included keeping and bearing arms for individual self-defense.
I actually don't like Python and much prefer Java, but I think #3 is really only for performance research and like, fun and games. It would be cool to have a quantified answer to "just how slow is Python"? I suspect the answer is many orders of magnitude slower.

However, if the experiment in question is, "using python glue code, can a developer string together a service that replicates the functionality of redis", then that illustrates what would actually happen in the real world.

For example, for a very junior Python developer, writing something in C is basically like asking a C developer to write assembly- possible, but they'd have to learn a lot of different things to do it.

Similarly, when I write Java, I want to be calling Arrays.sort(myarray) instead of writing my own sort (if the focus is on developer convenience and development velocity).

So, it's just a difference in what you're desiring to measure.
This is great! would you be able to integrate it with Live Transcribe to make a great FOSS solution for the deaf and hard of hearing? :)

https://github.com/google/live-transcribe-speech-engine
Cost is probably biggest factor. First home in Auckland, NZ is 1m+ NZD, first flat in Eastern Europe gonna be 15k EUR.

Then it's market maturity. Sure there were rentals in soviet union, but there wasn't nowhere close mobility as there is now.
It's actually based on the name of the inventor, a Canadian, and is commonly used in Canada as a generic name.
This is dope. Really a pleasure to play around with. A+
I can't see how insurance companies wouldn't simply exclude fire-damage from fire-prone areas in their policies. It would be crazy not to, given the risk of large numbers of simultaneous claims. I would even speculate that insurance companies have teams of specialized actuaries who model fire risk all over the place and use that to shape the policies they offer. To not do that would be either foolish or nefarious (in the case of an insurance company with no plan other than to declare bankruptcy in the event of a catastrophic fire).
Aren't UK elections generally just for your individual MPs? That's different than the US where you will have numerous races and ballot issues during the same election. For example, I voted for President, 2 senators, a congressman, probably a dozen state & local officials, and three state constitutional amendments.
The worst part is that Democrats eat that shit up. I can't believe that we're going to get nothing done for another 4 years because Biden believes in a weaker executive branch.

Personally, I think the president has far too much power (especially in war-powers), but Biden will need to deploy a ton of executive orders to get anything done with the legislative branch he's about to get - and he won't do it because he (along with his party and Obama) believe in fair-play, norms and institutions. The issue is that their opponents don't.

Republicans will win back the house in 2024 in no small part due to Biden being precieved as having done nothing due to his reluctance to use executive orders to legislate from the oval office like his predecessor did.
windows also doesn't upgrade windows 8 to windows 10 like this . windows 10 to windows 10 isn't that breaking change so its fair and osx is not better than this since mojave.
NHS Staff Were Told the Swine Flu Vaccine Was Safe, and Now They're Suffering
If you watch planet earth, or other nature programs, you will find out that a forest fire is part of the natural forest life cycle. Some seeds, like pine code seeds, grasses, and so on, will only generate after a fire. Then there is succession of plants that grow out. Nature has this figured out. And the forest benefits from fires. Fire kills off parasites, and diseased trees. The new forest will be healthier.

I understand preventing fires around human habitation. But it will probably be used to preserve the forest for logging too. Logging is not at all a natural process.
I was referring to attribution, not trademark claims. They can reuse the name (though unethical), but they can't avoid this part of the License:

> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Where do you see the original copyright statement in this obvious derivative?

Edit: The FB developer has since replied and has agreed to attribution. I guess this complaint is resolved.
A pet peeve of mine is incorrect usage of e.g. (and i.e.).

https://www.aje.com/arc/editing-tip-using-eg-and-ie/
You reason why you think the book is not worth reading, which is fine with me. Reasoning why other people should not read the book is fine as well. As far as I'm concerned you're free to picket in front of the book store with a sign "don't buy this book", all of this falls under freedom of expression which is - barring illegal actions - a given as far as I'm concerned. What is not OK is to call for a book to be banned so others can not read it even if they want to. There are many books out there which espouse ideas which I do not hold with but I will not call for them to be banned.

I will not go too far into the whole 'trans issue' since that is a minefield which can not be negotiated without having a current map which is likely to try to send me ways I'd rather not tread. What little experience I have with the phenomenon tells me that people who were 'born in the wrong body' just want to be accepted for what they are without being forced into a cheerleader role for a team. The book - which I have heard about, having listened to several interviews with the author as well as having read Douglas Murray's "The Madness of Crowds" - calls for caution in performing irreversible operations on children, something which I whole-heartedly support. As far as I know - from having listened to the author as well as several others lecturing on the subject - the large majority of children who present as 'trans' end up as gay or lesbian, at ease in their own bodies. To me this makes it clear that a call for caution needs to be heard, given the irreversibility of sex change operations and the negative effects of puberty blockers.
> In the three-tier frontend-backend-database architecture, try to have as thin a middle layer as possible. Or even eliminate the backend layer altogether by directly exposing the database to the frontend.

Wat...

This article reads like a jumbled mess of ideas. But, the above is a total wat...

And it also assumes that your backend doesn't have to consume and tie together several resources or that you need a caching layer and so many other naive assumptions - and I'm not even addressing the security implications.

Take this article with a heavy cup of salt.

To me it just reads like something someone would write because they want full control and does't like working with and/or being dependant on other people/teams.
Trump had a lot of rhetoric over China but was weak on action.

Pulling out of TPP was a massive geo-political and economic win for China. And nothing was done about widespread IP theft, trade imbalances, data sovereignty concerns or the use of trade to influence other country's policies.
"we realize that some species have disappeared, and in their wake, others are going too, and we are left with a homogeneous ecosystem "

Species come and go all the time. Globalisation just made it a lot faster. So there will be imbalances and local system collapsing and temporary a dominating species etc., but alltogether the diversity of species will be increased, with fast global exchange. Because there are more candidates to fill a niche.

Local established ones still have a home bonus. Their DNA is adopted to the local climate and soil, unlike the invaders. They won't vanish anytime soon.

The thing really threatening diversity are monoculture fields with pesticides.
What I think of Everyone in Biglaw – Can I get an AMEN?