MurphyA/hacker-news huggingface dataset:
Improved Arranging Desktop Windows
by graycat | 2025-04-30 20:56:51+00:00
In computing such as on Microsoft Windows, with several, especially 10 or more, windows (visible, not minimized) need a way to arrange them in a productive way.

So, wrote some code to do that.

In simple terms, the problem is that during routine work some windows too easily get completely covered by other windows.

E.g., with the version of the Firefox Web browser I have, if click on window A to open a new window B, Firefox displays B to the lower right of window A; then clicking on A shows A but covers the upper left and maybe all of window B.

Solution: The basic idea is to move the windows so that the upper left corners of all the windows are equally spaced on a line on the screen with slope from upper right to lower left.

[For a definition, if window A covers some or all of window B, then A is higher than B in the Z-order. Think of Z as a coordinate axis orthogonal to the screen.]

Then the window at the top of the Z-order is on the lower left and fully visible; we can see at least the upper left corner of each window; and if click on some window and change the Z-order, then that window becomes fully visible and we will still have at least the upper left corner of each window visible.

For this solution wrote the code in Object Rexx 4.2.0, which permits finding the coordinates of the windows in their Z-order and moving the windows preserving the Z-order.

I invoke this solution via an icon, right, in the upper left corner of the screen, i.e., in a position nearly always visible.

Others may also like this solution!
by lysace | 2025-04-30 20:56:58+00:00
> Google to award $10 million grant for electrician training

...

> Google (GOOGL.O), will fund the training of tens of thousands of new U.S. electricians, the company told Reuters on Wednesday,

So like $1k or less per "trained electrician"? That's a fantastic bargain. Some would say unrealistic and idiotic. But let's add some LLMs to the mix and most people probably won't die.

It's really embracing the shithole attitude.
by AngryData | 2025-04-30 20:57:05+00:00
The US has one of the largest agricultural sectors in the world, it should be no surprise that food is not in short supply. But we don't live in an era where people live in homes built from local gathered sticks and rocks and just need food to survive, our modern lives depend on far more than just food. Poor people are fat because we made extremely calorie dense foods the cheapest foods, poor people often shop by calorie per dollar, not because they have extra cash to throw around.

Try living on the US median wage only and let me know how much ludicrous amount of stuff you can afford.
by SJC_Hacker | 2025-04-30 20:57:13+00:00
Outside of legislation, there isn't a way to make a distinction. Corporations and most individuals are going to do whatever is legally permissible in order to maximize revenue.

And I would say its mostly not YouTube actually producing the content. They are responsible for the "reward mechanism" of clickbaity/shock content driving views, and in return, more views meaning more money for the creators. But I would really like to hear of another model. If YouTube didn't do it, someone else assuredly will. And traditional media is/was barely any better.
by ndriscoll | 2025-04-30 20:58:24+00:00
I would expect everyone at all levels to do better under a more highly segregated model. In the desegregated model, faster students are artificially held back and slower students are left behind (unless the class operates at the level of the absolute slowest student). In a segregated model, you are better able to approximate a mastery learning approach, which is known to create vastly better outcomes for everyone.

The mechanism AI would use to solve the problem is to give everyone individualized education, which would effectively be maximal segregation.

For socialization, another commenter here wrote a few months back about their experience at a school where they had more academic classes segregated by ability and more social classes segregated by age[0], which sounds to me like an excellent solution.

[0] https://news.ycombinator.com/item?id=42117313
by Root_Denied | 2025-04-30 20:58:46+00:00
>As though Google doesn't have a entire team of data scientists and top tier engineers managing this experiment and driving it to optimal results. (Spoiler: they do)

Optimal for who, though?

From Google's perspective I'm sure these changes push towards a more optimal revenue generation through ads. They potentially also push a more optimal layout on tablets/phones, or for shorts content.

Meanwhile from a desktop/laptop user perspective these changes are hardly optimal, especially compared to what they were before.

> If you don't like the service, you can stop using it. And if you do, they have already factored that into their metrics guardrail, and it was the right decision.

Also likely that people find and implement workarounds. Browser extensions or interface layers (e.g. Invidious or reVanced) that block ads and/or grant user specific control over the layout. This represents a hidden cost for Google too, because now you have a subset of your user base eating up resources that you don't see ad revenue for. There's a risk as they optimize more and more for a smaller number of people that this hidden cost grows.

All in all seems like a bad long-term proposition for Google to alienate parts of their userbase that are tech savvy enough to bypass their revenue generation.
by berkes | 2025-04-30 20:59:02+00:00
My website has no tracker nor any third party cookies so it doesn't need cookie dialog. And even if I had some analytics that stays on prem, doesn't store or gather PII, I wouldn't need one.

The first dark pattern, is that websites want to send all your PII and other data to other companies, and act as if this is normal.

The second dark pattern is how they do this. They could just not track and share this data, but allow you to flip some setting if you really want them to gather and sell or share this data. No popup needed. Or one that has some big button "proceed" that denies all tracking and a tiny link "advanced settings" that allows opt in to tracking. Instead, their UX is the exact opposite. Sometimes with deliberate javascript to make the "nope" button not work, slow or clumsy.
by jen729w | 2025-04-30 20:59:53+00:00
Shopify store owner here. Credit to them, they make deleting customer data trivial. One obvious button.

This is interesting though: is that data deleted everywhere? It makes no sense just to delete from ‘my store’. But I can delete any customer data at any time.

Perhaps this is a nice example of complexity. From the outside it’s easy for us to why don’t they just…, but as soon as you scratch the surface…
by ziddoap | 2025-04-30 20:59:58+00:00
>a JetBrains employee said that reviews were removed because they mentioned issues that had since been solved

That shouldn't be considered a valid reason to remove a review. I could maybe understand down-weighting reviews as they age and as issues are resolved, but as a potential buyer of some product/service/whatever, knowing that something was released with a bunch of issues (even if now solved) is a valuable signal. Preferably, they would reply to reviews and say "XYZ was addressed in update ABC" or something.

Nuking reviews is a valuable signal as well, I guess. Just not in the way that they hope. Knowing that they've done that has (further) lowered my impression of them.
by eieio | 2025-04-30 21:00:59+00:00
these days I mostly use vscode / cursor, although I still really like vim and use it for languages that I know really well (mostly python these days) and quick edits.

I spent much of my professional career at Jane Street Capital, which means that I spent a long time just writing OCaml and some bash (and a tiny bit of C). I'm very comfortable with Python, and over the last year I've gotten pretty comfortable with frontend javascript. And now golang!

I could probably write semi-reasonable java, ruby, or perl if you gave me a few days to brush up on them. And it'd take me a while before I was happy putting C on the internet. Not sure otherwise.
by stockstr | 2025-04-30 21:01:02+00:00
A moving average (MA) trading strategy uses averages of past prices to help you decide when to buy or sell. It smooths out price data to spot trends over time. There are two very popular types: • Simple Moving Average (SMA): Straight average over a period. • Exponential Moving Average (EMA): Gives more weight to recent prices. • for more information about trading strategy best stock strategies Basic moving average strategies include:

1. Single Moving Average Crossover • Setup: Plot one MA (e.g., 50-day MA). • Buy Signal: When the price crosses above the moving average. • Sell Signal: When the price crosses below the moving average. 2. Dual Moving Average Crossover • Setup: Plot two MAs (e.g., 50-day and 200-day). • Buy Signal: When the shorter MA (50-day) crosses above the longer MA (200-day). Called a "Golden Cross." • Sell Signal: When the shorter MA crosses below the longer MA. Called a "Death Cross." 3. Moving Average + Trend Filter • Setup: Use an MA to confirm trend direction (only buy in uptrends, only sell in downtrends). • Example: Only take long trades if price is above 200-day MA. • we use best stock strategy that consists of 6 exclusive chart patterns

Pros: • Very easy to automate. • Helps avoid trading against the trend. Cons: • Lags behind price (you'll enter trades late). • Whipsaws happen (false signals when the market chops sideways).
by bobthepanda | 2025-04-30 21:01:06+00:00
NYC is unlike most housing markets in that for a lot of people, an international pied-a-terre in NYC is a sign of luxury and wealth, whereas no one really gives a crap if you have a second home in Seattle or Chicago or Boston.

In the US the only other markets that operate like that are probably LA, Miami, maybe Honolulu.
by Theodores | 2025-04-30 21:01:07+00:00
You are correct in that it is all based on margins. I am used to the UK where there is VAT, plus multiple steps in an import chain, from importer, distributor, wholesaler and retailer. With some brands the importer is the distributor, sometimes the distributor is the wholesaler and sometimes the wholesaler is the retailer. Supply chains depend on the product to some extent and if the product is exclusive to a given supplier.

In B2B there is typically a doubling of price at each step so the 'trade price' appears incredibly cheap to a customer, yet that is a multiple of the import price.

Each step has its own risks and overheads so it is not greedy to have these markups.

B2B customers are in a strong position to negotiate prices and B2B sales staff know their customers well. It is therefore entirely possible for costs due to tariffs to be passed down the chain without everyone doubling that tariff tax at every stage. There is no incentive to do so, or for those costs to be absorbed.

What I am saying is that it works more like a customs duty rather than a simple price hike.

Wait for the panic to die down and see how this happens.

Two observations, much like Brexit, life goes on, shops are full and people still eat. Then, as for the vast bounty that the guy in the White House expects to raise, there is very little and no cash windfall arrives.

Clearly some products are more complex than others, I only really know typical e-commerce stuff, not automobiles that go across the Mexican border three times as they get assembled.

I have noted that the media has mom and pop entrepreneurs importing things such as plastic spoons for autistic pigeons to clean their ears with or diapers for left handed crypto-bros, where they are going to be exposed to the tariffs bigly. The media have not had typical medium sized retail businesses that buy goods from wholesalers that deal with distribution companies.

I am no fan of the tariffs or the orange man but I did live through Brexit and have my reasons not to go into panic mode.

I also think historical comparisons to tariffs a century or more ago are not helpful as the distribution chain has evolved over time. In these distant times a tariff would act like a customs duty on tobacco or alcohol.
by HarHarVeryFunny | 2025-04-30 21:01:16+00:00
I think the real risk isn't USA going bankrupt as much as the dollar losing significant value relative to other currencies, thereby making holding US debt a bad deal for overseas holders, and/or possibility that Trump could do something previously unthinkable such as stopping interest payments on debt or trying to "make a deal" and renegotiate payments in some way.
by JumpCrisscross | 2025-04-30 21:01:27+00:00
Deleted comment cited by the author:

“ I previously submitted a review critiquing this plugin, but it was removed by JetBrains moderation — an unfortunate decision that, in my view, undermines trust in open feedback. I have now tested the latest AI plugin (v243.23654.270.16). The plugin does offer limited support for third-party providers like Ollama and LM Studio (the latter being a better fit for most local LLM users). However, this support is restricted to chat interactions only — not to autocomplete, inline suggestions, or in-editor refactoring tools. In practice, this limitation significantly reduces the plugin’s value for users who already maintain ChatGPT Pro accounts or local LLM workflows. Rather than fully enabling local model integration, the design seems oriented toward promoting JetBrains’ proprietary cloud models and subscription services. Specific ratings: • Integration with IDE: 5 stars — Excellent UI integration into JetBrains products, smooth setup. • Performance: 1 star — Noticeable latency compared to local models; frequent delays. • Available Features: 1 star — Limited flexibility for serious LLM users; core features locked to cloud services. • User Interface: 1 star — Chat feels bolted-on rather than deeply native; inconsistent UX across project types. • Documentation Quality: 1 star — The documentation exists but feels sparse, with limited guidance on third-party setup and unclear disclosures about feature limitations. While some users may find the plugin sufficient for lightweight AI chat, in my assessment, it falls short both in technical flexibility and in respecting user choice. Thank you to JetBrains for providing the opportunity to share my neutral and unbiased observations with fellow developers” [1].

[1] https://plugins.jetbrains.com/plugin/22282-jetbrains-ai-assi...
by robrtsql | 2025-04-30 21:01:35+00:00
Linux is a great way to spend more time customizing your computer than using it. I'm sure there are lots of people in this community that just roll with whatever defaults KDE or Gnome has, but there's _also_ lots of people who consider installing and configuring a minimal tiling window manager to be a Friday night well spent. I think PewDiePie kind of proves my point in this video too.
by eieio | 2025-04-30 21:02:05+00:00
The rate limits aren't that aggressive and have a decent amount of burst, you can get about 10 moves done in 1 second before you hit them and start getting throttled[1]. And of course you can run multiple clients (I account for this too, but I'm not that aggressive because I don't want to punish many people NAT'd behind a single IP)

[1] down to something like 3/sec?
by lp0_on_fire | 2025-04-30 21:02:29+00:00
These deals are a joke and unattainable to the vast majority of people in the post-covid economy.

paying $12k down on a $400k house with a fixed 6.48% rate means your monthly payment is almost $3k per month, and you'll pay more than the house is worth in interest alone. Not to mention if you only have $12k to put down you're _probably_ not in a position to pay $3k a month.
by kergonath | 2025-04-30 21:02:45+00:00
> Devils advocate argument could be that they needed to do this immediately and could not take the time to stockpile.

But they did not, though. Nobody gave any argument about why it needed to be done now instead of in 6 months or a year. We can speculate all we want, but the overwhelming evidence points to recklessness and stupidity.
by parrit | 2025-04-30 21:02:53+00:00
I wonder what stopped me being at that level. Mostly attitude, fear and perhaps aptitude. I liked things that were easy to install and follow tutorials. I got into Visual C++ as it actually installed as opposed to a magazine cover Linux distributionn that barely run. I think having the main system (gotta get those grades) takes most of the energy for most people. Either those who are happy to drop out or genius enough to both study and hack survive to do really cool stuff.
by eesmith | 2025-04-30 21:03:09+00:00
> the market rate for labor is not $7.25 anywhere in the country

Here are a couple of restaurants where the feds found they broken the federal minimum wage law, from last fall.

https://www.dol.gov/newsroom/releases/sol/sol20241220

"Court orders 3 West Michigan taco restaurants to pay $823K in back wages, damages to 177 workers shortchanged minimum wage, overtime"

"... concluding that the restaurants operated an illegal tip pool that led to violations of federal minimum wage and overtime regulations."

"the court found the employers ... Failed to pay tipped employees the federal minimum wage of $7.25 per hour."

https://www.dol.gov/newsroom/releases/whd/whd20241121

"US Department of Labor recovers $87K in back wages, damages from New Port Richey restaurant for 21 workers denied minimum wage, overtime"

"U.S. Department of Labor Wage and Hour Division investigators found the restaurant required employees to purchase a uniform shirt, which caused their average weekly wages to fall below the federal minimum wage"

That site lists more, and I'm sure they aren't the only organization which does these investigations.
by endofreach | 2025-04-30 21:03:26+00:00
Not great. Any other company would have been put on my greedy-morons list. But i believe JetBrains is special and is allowed more mistakes than others.

I also believe they should really stay calm and not get sucked into the AI hype. Worst case they will be the heroes to the people who like to program for the joy of it, in case these AI IDEs should really take over (which i highly doubt).
by ericmay | 2025-04-30 21:03:50+00:00
> As I said before, you very much downplay the sort of damage the US is causing to its relationship with former allies.

No, no I'm really not. It's more so that you are overstating the damage. All of a sudden we are "former allies" now? That's nonsense.

> For example, you seem to forget the very real threats of US annexing Greenland, which is part of Denmark. Such an act of war would force every EU nation to go in its defense, even non-NATO ones.

There's 0 chance the European Union would go to war with the United States over this. Not that I condone it, but it just won't happen. The EU can't fight Russia (why are 500 million Europeans asking 330 million Americans to defend them from 180 million Russians?) let alone the United States.

> As for the rest, I think you very much downplay the gravity of going in a trade war with the whole world at once can do to the US economy, while you massively amp up the damage simple trade between China and EU can do to EU.

Well we're not really in a "trade war with the whole world" - many tariffs haven't been implemented, some are already being suspended, exceptions are carved out, etc. I don't agree with the way we're going about things, but I think you're overstating things again. The EU isn't going to absorb the former US - China trade. That's simple a fact of reality.

I'm sad you feel the conversation got nowhere, but I suppose that happens when two people just see the world fundamentally differently. I have no interest in getting in the last word, I simply am interested in discussing and debating things and so I usually reply. I sincerely hope you have a good evening as well.
by tootie | 2025-04-30 21:04:02+00:00
Renegotiating trade with Mexico and Canada was one of his most prominent achievements of his first term. Fair to say that deal wasn't substantially different from NAFTA, but it was a deal that he approved. To come back a few years later and blow it up as being completely unfair is just screaming that he is acting on pure emotion and not logic. Even if he were capable of giving a coherent justification for his actions, he's proven himself to be a completely unreliable negotiating partner. Other countries are refusing to deal with any intermediaries like Lutnick or Navarro because they are all pushing separate agendas and Trump has not held to any of them. They're just going to wait for him (or Congress) to break.
by rconti | 2025-04-30 21:04:25+00:00
I was also struck by

| He told her he believed that air traffic control wanted them to turn left, toward the east river bank.

Now, I'd love to _hear_ the actual comment/instruction here. He may have been hedging because he was trying to piece together the stepped on "pass behind" direction from ATC. But I also wonder if it's an inherent problem when the student outranks the instructor?
by tw04 | 2025-04-30 21:04:33+00:00
Not to mention if your goal is to fix a trade imbalance with a specific country, you kind of need all of your allies to help you with it or it's never going to work.

As I've done with just about everything that makes no sense from this administration, I go back to: what would Russia want?

Russia would want the US to piss off both all of its closest allies and its largest trading partner at the same time, because it would significantly weaken the country, and potentially result in social unrest. They would want Trump to continually talk about annexing neighbors because it justifies their attempts at annexing Ukraine.

Until someone can give me an explanation that makes more sense than: Putin is pulling Trump's strings - I'm going to continue to just assume he's literally a Russian asset.
by serial_dev | 2025-04-30 21:04:43+00:00
Gee, I wonder why.

Publishing on the Play Store for indie devs or hobby projects just doesn’t make any sense.

You need to jump though so many hoops and doxx yourself in the process, only to make basically no money with the apps, and even if you miraculously do, risk getting kicked out of their platform without any way to contact a competent human.

Even before all this, the general consensus amongst solo app devs was that “don’t waste your time with Android”, now add about a hundred hour of bureaucracy to even get started with your first app, the choice is obvious for many.

I was a long time Android user and switched to iOS because the apps there are just better, I honestly think that Google of running the Android ecosystem into the ground and only the big players will want to go though this mess.

As a Flutter developer, it makes me want to switch to other technologies, because if Android loses its appeal, Flutter, another Google product, offers basically nothing. On web, it scks, on iOS SwiftUI will always have an advantage, Android as discussed is in steady and fast decline, and who the hell needs Flutter desktop apps that have poor integration with the operating system…
by dmix | 2025-04-30 21:04:47+00:00
There still seems to be people in the loop and this person isn't making any changes himself.

> Sweet’s primary role appears to be leading an effort to leverage artificial intelligence to review HUD’s regulations, compare them to the laws on which they are based, and identify areas where rules can be relaxed or removed altogether. [...] [He] has produced an Excel spreadsheet with around a thousand rows containing areas of policy where the AI tool has flagged that HUD may have “overreached” and suggesting replacement language.

> Staffers from PIH are, specifically, asked to review the AI’s recommendations and justify their objections to those they don’t agree with. “It all sounds crazy—having AI recommend revisions to regulations,” one HUD source says. “But I appreciated how much they’re using real people to confirm and make changes.”

> Once the PIH team completes the review, their recommendations will be submitted to the Office of the General Counsel for approval.