Readit News logoReadit News
kolanos commented on Show HN: Tinder but it's only pictures of my wife and I can only swipe right   trytender.app/... · Posted by u/risquer
kolanos · a month ago
I swiped but your wife didn't match. What gives?
kolanos commented on DaisyUI: Tailwind CSS Components   daisyui.com/... · Posted by u/a_bored_husky
kolanos · a month ago
A bit baffled by all the "Why not just use CSS?" comments here.

Did we forget how much of a pain CSS still is?

For example, I recently made a UI with a series of numbered steps. To the left of each step is a number with a circle around it as a highlight.

The CSS I came up with looked like this:

.step-number { align-items: center; background-color: #0074cc; border-radius: 50%; color: white; display: flex; font-size: 14px; font-weight: bold; height: 24px; justify-content: center; line-height: 24px; margin-right: 10px; width: 24px; }

Did it produce a circle? Of course not. It produced a squished egg shape.

What did I have to do? I had to add "min-width: 24px;" to the class. Why? Hell if I know. "width: 24px;" should've done the job.

Bootstrap (and now Tailwind) exist for a reason: CSS still sucks.

kolanos commented on I'm switching to Python and actually liking it   cesarsotovalero.net/blog/... · Posted by u/cesarsotovalero
moffkalast · a month ago
I would think the dumber thing is having to create an empty file called __init__.py for a package to register as a package. And relative imports being completely fubar.
kolanos · a month ago
> I would think the dumber thing is having to create an empty file called __init__.py for a package to register as a package.

This hasn't been true since Python 3.3. You no longer need a __init__.py for Python to recognize a module, but it can still be useful in many cases.

kolanos commented on Port of Los Angeles says shipping volume will plummet 35% next week   cnbc.com/2025/04/29/port-... · Posted by u/perihelions
rvba · 4 months ago
What is the source of wood for that paper? Canada?
kolanos · 4 months ago
> The top 10 softwood lumber producers in the US have a combined capacity of 24.1 billion board feet, representing 50% of the US industry, according to Forisk.

> The U.S. imports a significant portion of its softwood lumber from Canada, with roughly 30% of its softwood lumber needs being met by Canadian exports.Specifically, in 2023, Canada exported 28.1 million cubic meters of softwood lumber to the U.S. This accounts for a large percentage of the total softwood lumber imported by the U.S., with Canada being the primary supplier.

> The United States can potentially supply up to 95% of its own softwood lumber consumption through domestic production.While the U.S. is a net importer of lumber, its domestic industry has the capacity to meet most of its needs.

kolanos commented on Port of Los Angeles says shipping volume will plummet 35% next week   cnbc.com/2025/04/29/port-... · Posted by u/perihelions
parineum · 4 months ago
China is selling goods to the US because it's good for China. China not selling goods to the US is, therefore, bad for China. China doesn't care about how it affects the US but it does effect them negatively. They are "holding all the cards" except the one that says "The US must buy things from China" which is the one they care about.

> Second, the US is ~15% of China's exports and a lot of those exports will continue even with tariffs. Some by diversified supply chains (eg "laundering" Chinese made goods through Vietnam)

Sure. 15% of their economy either just disappears, gets dramatically more expensive (laundering goods cost money too) or they have to reduce the prices so they can sell their extra 15% of goods to the people that are already buying them.

Keep in mind that China is also only around 15% of US imports too so if 15% is negligible, it's negligible for the US too.

> or the Chinese goods are so low cost that the tariffs will be paid (eg a milk carton represents a small percentage of the cost of a carton of milk).

The tariffs are a percent. Just because the cost of a single item is low doesn't mean the cost of the tariffs paid by the company is going to be low. Low cost goods are profitable because they sell in bulk. It's going to hit their bottom line in the same way it hits everyone else. You've obviously not given much thought into that point.

> Third, the US will feel the inflationary effects. China will not.

China isn't immune to 15% of their economy disappearing. Selling of an extra 15% of the goods in your warehouse at discounted rates while you scale down your factory production 15% is bad.

> Fourth, if China needs to raise funds they can and will sell US treasuries, spiking yields, hitting the ability of the US to issue further debt as well as borrowing costs for homeowners and businesses.

That's a good way to permanently remove 15% of their economy.

> Lastly, the rest of the world is on China's side. This whole tariff fiasco may be the largest self-own in American history. Additionally, it's undoing generations of American soft power globally.

That's not relevant at all. What's relevant is who the American people are on the side of. I'm not saying Trump has unanimous support or anything but he doesn't care at all what Switzerland thinks of tariffs on the Chinese.

Your #4 doomsday scenario is bad for the EU given the role that the US plays in their defense and as trade partners. WTO countries will be urging both sides to come to an agreement.

kolanos · 4 months ago
I see commentary like this frequently in the west, then I read financial analysis like this:

> Goldman Sachs in its latest China forecast, reports China's GDP is about to fall off a cliff: the bank now expects China's Q2 GDP growth to crater to just 0.8% QoQ from 4.9% in Q1.

[0]: https://www.reuters.com/markets/asia/view-chinas-q2-gdp-grow...

kolanos commented on Port of Los Angeles says shipping volume will plummet 35% next week   cnbc.com/2025/04/29/port-... · Posted by u/perihelions
MaxPock · 4 months ago
GM used to sell more cars in China than in the US .Same with VW , Mercedes and BMW
kolanos · 4 months ago
While this is true, this changed around 2009. What happened? The Chinese government started heavily subsidizing domestic automakers [0]while continuing the joint venture requirements for foreign automakers, which started in 1979 [1]. These joint venture requirements have been a source of significant intellectual property theft [2]. All foreign automakers operating in China, not just U.S. ones, have either faced bankruptcy or a significant downturn in market share in China over the past 15 years.

[0]: https://www.carscoops.com/2024/07/china-gives-its-automakers... [1]: https://www.imd.org/ibyimd/innovation/chinas-automotive-odys... [2]: https://harris-sliwoski.com/chinalawblog/china-joint-venture...

kolanos commented on Port of Los Angeles says shipping volume will plummet 35% next week   cnbc.com/2025/04/29/port-... · Posted by u/perihelions
taylodl · 4 months ago
This could get really ugly when the shelves start going empty. This may make the toilet paper incident seem quaint in comparison.
kolanos · 4 months ago
It's a good thing the United States doesn't depend on China for toilet paper, then.

> The United States primarily sources its toilet paper domestically, with about 90% being manufactured within the country.However, a significant portion of imports come from Canada and Mexico.

In fact, the United States does not depend on China for any essential consumer goods from what I can find.

kolanos commented on Port of Los Angeles says shipping volume will plummet 35% next week   cnbc.com/2025/04/29/port-... · Posted by u/perihelions
jillesvangurp · 4 months ago
Empty shelves are just one of the symptoms. The real pain will come from companies having to deal with increased taxes (that's what tariffs are) for Chinese components, decreased exports (counter tariffs, anti US sentiments), etc. and then their follow up to that would be using tools like layoffs, price increases, etc. Some of those companies might have to close doors and go bankrupt. If that happens a lot you get the ripple effect on banks via foreclosures of businesses and mortgages (like sixteen years ago).

There are of course quite a few large US businesses being affected directly by this stuff. I imagine that they are not happy with this. And that level of unhappiness will translate into shifts in political donations. Which, I'm sure is something that will get more apparent as next year's mid term elections get closer. That's a stick that can be (and probably already is) wielded that might produce results soonish.

At least, I imagine the CEOs of GM, Ford, Boeing, etc. might have a thing or two to say about seeing China disappear as a market where they can do business to sell stuff or to source key components that they require for their own products. China was not being subtle rejecting delivery of a couple of new Boeing planes. And reductions in container traffic from China (which are the life blood of the US economy) are of course a very visible thing. And since container deliveries are critical for supply chains of most manufacturing that actually still happens in the US, that could get ugly really quickly.

Worst case all this triggers a recession. Those are rarely predicted accurately until after they've happened. But the signs aren't great and wall street is definitely nervous. A few stocks crashing because investors start panic selling could do the job. We're not there yet, but it got close a few weeks ago.

kolanos · 4 months ago
> At least, I imagine the CEOs of GM, Ford, Boeing, etc. might have a thing or two to say about seeing China disappear as a market where they can do business to sell stuff....

They largely weren't doing this anyway due to Chinese economic policy. For example:

> Ford's market share in China has declined significantly.In 2024, Ford's market share was 1.6%, down from a peak of 4.7% in 2015. Over the past three years, Ford's average market share in China has been a modest 1.8%.

kolanos commented on Scientists find strongest evidence yet of life on an alien planet   reuters.com/science/scien... · Posted by u/prossercj
rbanffy · 4 months ago
Surface gravity is a bit higher than Earth (12 m/s2), but totally bearable for humans. The smell of the atmosphere, on the other hand, will be something the first human visitors will never forget ;-).
kolanos · 4 months ago
I read it would smell like cabbage.

u/kolanos

KarmaCake day2089February 2, 2011View Original