Readit News logoReadit News
manwe150 commented on Nintendo Switch 2 Dock USB-C Compatibility   lttlabs.com/blog/2025/08/... · Posted by u/croes
naikrovek · 15 minutes ago
> DP -> HDMI conversion hardware is pretty intense.

It can be, but it doesn't have to be. DisplayPort is mostly a superset of HDMI, with different voltage levels. Going from HDMI to DisplayPort is much harder than going from DisplayPort to HDMI, though the hardware to do this is apparently much cheaper than it used to be, which is nice to see.

DisplayPort to HDMI only requires level shifting, as I understand it. I'm sure someone will correct me if they see this and I'm wrong.

manwe150 · 7 minutes ago
No, it requires active protocol conversion, https://www.exhibitedge.com/how-to-connect-a-displayport-dev...

But also yes, most display port implementations also speak hdmi and can get away with simple converters

manwe150 commented on A 'third way' between buying or renting? Swiss co-ops say they've found it   nytimes.com/2025/08/26/re... · Posted by u/lifeisstillgood
carlosjobim · a day ago
Everybody pays "in cash" - cash that was just borrowed with a mortgage from the bank.
manwe150 · 14 hours ago
That isn’t quite true, since the mortgage happens after the sale agreement (exact wording and specifics vary by state law), and the sale typically has a cancellation clause if the mortgage cannot be secured per the various terms and contingencies of purchase. That is why “in cash” offers are preferred, since then the sale and payment timing is less uncertain and risky to the seller.
manwe150 commented on A 'third way' between buying or renting? Swiss co-ops say they've found it   nytimes.com/2025/08/26/re... · Posted by u/lifeisstillgood
pcrh · 19 hours ago
People who haven't inherited wealth can slowly accumulate capital in their properties, especially if prices are rising. They can use this to part-finance further property purchases.

This is the model most Anglophone countries adopt. However, what most miss in this model is that the cost of doing so is much greater than they realize. The most obvious extra cost is the interest paid on mortgages, which can amount to 2-3 times the value of the property by the time the mortgage is fully paid.

A further cost is politically imposed, in that governmental policies will avoid making homes more affordable, as this is perceived as a "loss" by many mortgage-holders and home owners.

manwe150 · 14 hours ago
> People can slowly accumulate capital in their properties

I thought this is actually one of those “myths people believe about owning real estate”. In most markets, it is a depreciating asset that takes considerable time and money to maintain at the original capital value. This is why the cost is much higher, like you said, but not exactly for the reason you said. The net present value of that added interest payment is typically very low. It is a competitive market. It is uncertain whether I’d come out ahead or behind if I pay off the mortgage on day 1 or put that equivalent lump sum in the market and use that asset to pay off the mortgage instead. The political cost isn’t merely perceived loss, that is a real loss as it should cause the sale price to reflect the actual depreciation of the asset of an pre-owned house instead of being able to claim the added value of getting ownership.

manwe150 commented on Vibe coding as a coding veteran: from 8-bit assembly to English-as-code   levelup.gitconnected.com/... · Posted by u/thunderbong
ryandrake · 2 days ago
I still have doubts but I am warming up to Claude Code. Sometimes it gets in these ruts where it tries something wrong, gets shown it's wrong, keeps digging, and can't even explain how its failed suggestions could even work. Other times, it seems to reproduce the kinds of insights (and even judgment) that I'd expect out of an actual practitioner. After suggesting code to fix problems, I always ask it to explain the context in more detail. I was recently using it help to develop a Qt C++ application, and ended up getting this interaction from it:

> Can you speculate on why this problem was only happening with these embedded buttons? Is this a flaw in Qt, or is this application trying to do something unusual?

  Why this problem occurred: This is a Qt design issue, not a flaw per se. Qt's item delegate editing model assumes editors are simple widgets (line edits, spin boxes, combo boxes) that don't spawn modal dialogs. When a modal dialog opens:

  1. The modal dialog steals focus from the editor button
  2. Qt's QAbstractItemView sees the FocusOut event and assumes editing is complete
  3. It calls QStyledItemDelegate::destroyEditor() to clean up the editor
  4. The button gets deleted while the color dialog is still running
  5. When the color dialog closes, it tries to interact with the deleted button

  This application is doing something unusual - using a button that spawns a modal dialog as a table cell editor. Most Qt delegates use immediate editing widgets (text fields, dropdowns) that don't require modal interactions.

  The eventFilter solution works by intercepting the FocusOut event that triggers editor destruction, essentially telling Qt "I'm still editing, don't destroy me yet."
> Is there a danger of leaked Qt resources now that we are blocking destruction?

  Yes, that's a valid concern. By blocking FocusOut events, we're preventing Qt's normal editor cleanup mechanism. However, the risk is likely minimal because:

  1. Qt still cleans up eventually - The editor will be destroyed when the table view itself is destroyed or when editing truly ends (e.g., clicking elsewhere, pressing Enter/Escape)
  2. Short-lived editors - These editor widgets are typically very short-lived (created when editing starts, destroyed when editing ends)
  3. Parent widget cleanup - Since the button has a parent widget, Qt's parent-child ownership will clean it up when the parent is destroyed

  To be completely safe, we could add a more targeted approach - only block FocusOut events while a color dialog is actively open, rather than blocking all FocusOut events. We could track when the modal dialog is shown/hidden and only filter during that window.

  But for this use case, the current solution should be fine since:
  - Color picking is infrequent
  - The editor lifetime is still bounded by the table view's normal lifecycle
  - Qt's parent-child cleanup provides a safety net

  The memory usage impact should be negligible compared to the complexity of implementing more sophisticated tracking.
-----

I've definitely had less-satisfying discussions over bugs with actual human senior software engineers than this.

manwe150 · a day ago
It seems to be just playing the “yes and” improv game with you. You might want to also try prompting it against the same suggestions and see if it changes to follow your lead or continues to hold the original opinion.
manwe150 commented on A 'third way' between buying or renting? Swiss co-ops say they've found it   nytimes.com/2025/08/26/re... · Posted by u/lifeisstillgood
pcrh · 2 days ago
Sure, some people do have "cash" to buy a property. However, the vast majority of home buyers do not, and many who offer "cash" may have pre-approved loans.
manwe150 · 2 days ago
Google search say that the “true” cash purchases represent 20-30% of all purchases. Add to that the people that eventually own after a mortgage ends and it still may not be the most common, but it is not the small minority either.
manwe150 commented on Shared_ptr<T>: the (not always) atomic reference counted smart pointer (2019)   snf.github.io/2019/02/13/... · Posted by u/klaussilveira
manwe150 · 2 days ago
> In conclusion, I’ll assume this is not a typical scenario and it is mostly safe.

Ughh, this brings bad memories of the days I spent trying to diagnose why glibc often would give wrong answers for some users and not other users (they’ve since mitigated this problem slightly by combining pthreads and libdl into the same library). I wish they would get rid of this, since even the comment on it notes that the optimization is unsound (the ability to make syscalls directly, as used by go and others, makes this optimization potentially dangerous). It also upsets static analysis tools, since they see that glibc doesn’t appear to have the synchronization the library promises.

manwe150 commented on A 'third way' between buying or renting? Swiss co-ops say they've found it   nytimes.com/2025/08/26/re... · Posted by u/lifeisstillgood
pcrh · 2 days ago
Note that most people rent, even in the US. They either rent the property itself, or they rent the capital used to buy the property (i.e. a mortgage).

With that in mind, housing associations or co-ops and the like take the place of banks, that is, they possess the capital and rent the property to the residents, but keep a portion of the revenue for future renting, as a bank does for future lending.

The difference between the two is that the housing association is typically not-for-profit, and that in a housing association the resident does not accumulate capital, which allows for a reduction in costs compared to a mortgage.

manwe150 · 2 days ago
I don’t have any numbers to counter whether it is typical of “most”, but when trying to buy, I was outbid several times by people who paid “in cash”, and that was for million+ dollar homes. So it might be they do “rent” the capital, but possibly from a source other than a bank (eg from their forgone returns on stocks instead)
manwe150 commented on “This telegram must be closely paraphrased before being communicated to anyone”   history.stackexchange.com... · Posted by u/azeemba
beerws · 2 days ago
Ironically, stating this at the beginning of telegram would precisely cause what it seeks to prevent (vulnerability to known plaintext attacks).

Which makes me wonder: how many permutations of this rule could be conceived (and needed) that on the one hand would keep the point clear to the receiver, but on the other hand prevent such attacks?

In any case the best option is to not have (to repeat) this rule inside messages.

manwe150 · 2 days ago
It could be sent in the clear, although since the point was to apply it to every encrypted message, that would likely already have been redundant with having originally been encrypted. Just consider it part of the decryption algorithm itself instead: step 1, attach warning text, step 2, initialize decryption state and decrypt.
manwe150 commented on “This telegram must be closely paraphrased before being communicated to anyone”   history.stackexchange.com... · Posted by u/azeemba
Khoth · 2 days ago
It's mostly talking about the case where someone receives an encrypted message which is intended to later be published openly. If it was padded by adding stuff, an attacker can try to reconstruct the original plaintext by removing the flowery adjectives, whereas if things were deleted the attacker doesn't know what to add.
manwe150 · 2 days ago
In particular, the length of a message is not encrypted when encrypting the text. So if the encrypted message is shorter, you know exactly how much to remove to get back the original, and then just need to guess what to delete. If the message is longer, it is much harder to guess whether to add flowery adjectives, a new sentence, change a pronoun for a name, or some other change.
manwe150 commented on “This telegram must be closely paraphrased before being communicated to anyone”   history.stackexchange.com... · Posted by u/azeemba
Zeebrommer · 2 days ago
Or ending it with the same salute involving the name of the leader, for that matter.
manwe150 · 2 days ago
Seems like an interesting conundrum. If you encrypt all transmissions, you end up having a lot of boring repetition, like weather and sign offs to just fill space. But if you don't encrypt the boring stuff, then the transmission itself is a nice signal of something interesting about to happen. But if you try to just pad with completely random noise, the other end might worry they've decoded something wrong and ask for a new cipher pad increasing the chance of interception. So maybe they should have tried to find something almost random but with known structure instead of sending the weather? Seems similar to how we now know that choosing a random password from the dictionary adds encoding redundancy without reducing security. Or similar to the goal of getting ordinary people to use Tor for ordinary things?

u/manwe150

KarmaCake day581January 23, 2017View Original