Readit News logoReadit News
danpla commented on USB-C hubs and my slow descent into madness (2021)   overengineer.dev/blog/202... · Posted by u/pabs3
gloosx · 8 months ago
Yes. I have exact same story: around 3 completely screwed hubs til I got to mostly decent working one. I hate Apple for the port shenanigans, they are so close sometimes by plugging something into one port, the other one gets blocked. I can even block one port by my headphones cable thats how close together they are. Truly an idiot designed this. Also USB-C really feels more flimsy than USB-A and cables I insert in are quite shaky already after 1 year of usage.

Same goes with 3.5mm jack on the phones. Freaking adapters are just an ominous thing to use. They are just bad and they always break. The port is so loose so after 3 months of using they just start falling away from it. There is no decent phone left with a 3.5mm jack, which is a really sad state of things... Unless you know one? Feel free to suggest.

danpla · 8 months ago
> There is no decent phone left with a 3.5mm jack, which is a really sad state of things... Unless you know one? Feel free to suggest.

Sony Xperia phones traditionally have a 3.5 jack and a normal screen (without holes and other nonsense for the camera).

danpla commented on OCR4all   ocr4all.org/... · Posted by u/LorenDB
fny · a year ago
Run Tesseract on a screenshot and you'll be underwhelmed.
danpla · a year ago
With proper image pre-processing, Tesseract can recognize even tiny text (5-7 px high).
danpla commented on Show HN: I launched a super cheap and simple to use OCR tool for macOS   textcapture.app/... · Posted by u/auden_pierce
rammer · a year ago
Anyone know of good windows alternatives for this?
danpla · a year ago
dpScreenOCR
danpla commented on Show HN: I launched a super cheap and simple to use OCR tool for macOS   textcapture.app/... · Posted by u/auden_pierce
eevmanu · a year ago
Any decent alternative for Linux or Ubuntu-based OS? Thanks.
danpla · a year ago
danpla commented on dpScreenOCR – a cross-platform OCR tool   danpla.github.io/dpscreen... · Posted by u/danpla
danpla · 2 years ago
dpScreenOCR is a free, open-source, and cross-platform optical character recognition tool with support for more than 100 languages.

dpScreenOCR works is like this: you select an area on the screen using a keyboard shortcut, and then text from that area is extracted and, depending on your choice, can be copied to the clipboard, saved to the history, or sent to another application (e.g. dictionary/translator). In most cases, you don't even have to interact with the GUI, and the program can reside in the system tray.

The biggest changes since the program (v1.1.0) was mentioned in HN[1] in 2022 include:

* Added a language manager that allows you to install and remove languages without leaving the application. Previously, you had to manually download the language files and place them in special directories.

* Added a stand-alone GNU/Linux bundle (in a TAR.XZ archive), which should work even on legacy systems released in around mid-2014 or later (tested on Ubuntu 14.04).

* Fixed recognition with vertical variants of Chinese, Japanese, and Korean.

* Added proper selection rectangle scaling according to the screen DPI. The width of the rectangle can now also be configured (as requested by @Lakuma in [1] :).

* Thanks to contributors, the website has been translated into several languages. Some languages are still to be added, so help with translation would be greatly appreciated: https://hosted.weblate.org/engage/dpscreenocr/

The full list of changes since v1.1.0 can be found here: https://raw.githubusercontent.com/danpla/dpscreenocr/v1.4.1/...

The source code (zlib license) is available on GitHub: https://github.com/danpla/dpscreenocr

[1]: https://news.ycombinator.com/item?id=32123437

danpla commented on Immediate Mode GUI Programming   eliasnaur.com/blog/immedi... · Posted by u/jstanley
ocornut · 2 years ago
> it even has an option to limit the FPS, which solves the CPU load a bit, but at the same time results in sluggish input because the event handling is tied to the drawing frequency.

It seems like an issue of how it is implemented. I think Tracy does it well. It's party my fault since Dear ImGui lib and backends currently doesn't have an "official" way to tackle this, so everyone does their own sauce and it's easy to make a mistake. But I have zero doubt it is doable.

> I don't see what these tools would lose by using a proper GUI.

What they would lose is that they wouldn't exist in the first place or wouldn't be as full-featured. I'm surprised this is so hard to comprehend? In spite of its shortcomings, software like Dear ImGui is an enabler to make things exists and happen.

danpla · 2 years ago
> What they would lose is that they wouldn't exist in the first place or wouldn't be as full-featured.

These are some pretty bold statements.

* "They wouldn't exist in the first place" implies that ImGui was the primary reason and foundation for creating these programs. As if using the traditional retained mode GUI is so unbearable that without ImGui the authors would have abandoned the idea of creating these tools in the first place.

* "Or wouldn't be as full-featured" implies that ImGui is either more full-featured or (if you meant time) is faster to develop with compared to a traditional retained mode GUI.

> I'm surprised this is so hard to comprehend?

Well, I'm surprised that some people keep presenting the immediate mode GUI as the silver-bullet alternative to the traditional GUI. Don't get me wrong: I understand that IMGUI is a great tool if you need to quickly add a throway GUI to a game, but otherwise there is a price to pay, both by the developer and the end user.

danpla commented on Immediate Mode GUI Programming   eliasnaur.com/blog/immedi... · Posted by u/jstanley
flohofwoe · 2 years ago
> because the UI itself doesn't hold any state.

...which isn't actually true in most immediate mode UI frameworks. They absolutely do persist state between frames. That state is just on the other side of the API invisible from the API user.

'Immediate mode UI' is only an API design philosophy, it says nothing about what happens under the hood.

danpla · 2 years ago
> 'Immediate mode UI' is only an API design philosophy, it says nothing about what happens under the hood.

Well, if you have a traditional immediate mode API like:

    if (button("Start"))
        start();
Then it's not just about the API philosophy: at the very least, it ties the event handling to the drawing.

danpla commented on Immediate Mode GUI Programming   eliasnaur.com/blog/immedi... · Posted by u/jstanley
flohofwoe · 2 years ago
The RemedyBG debugger (https://remedybg.handmade.network/) and the Tracy profiler (https://github.com/wolfpld/tracy) both use Dear ImGui and so far I've only read high praise from people who used those tools compared to the 'established' alternatives.

For tools like this, programmers are also just "normal users", and from the developer side, I'm sure they evaluated various alternatives with all their pros and cons before settling for Dear ImGui.

danpla · 2 years ago
I didn't use RemedyBG or Tracy, but I did try ImHex (https://github.com/WerWolv/ImHex) and it loaded 12% of the CPU because everything is being repainted 60 times per second. Heck, it even has an option to limit the FPS, which solves the CPU load a bit, but at the same time results in sluggish input because the event handling is tied to the drawing frequency.

So yes, the experience was not good, and I don't see what these tools would lose by using a proper GUI. I don't want every utility to drain my laptop battery like a decent video game.

ImGui is great if you already have a loop where everything is unconditionally redrawn every frame, but otherwise it's a really odd choice for an end-user application.

danpla commented on The C++20 Naughty and Nice List for Game Devs   jeremyong.com/c++/2023/12... · Posted by u/todsacerdoti
tubs · 2 years ago
For me the compile time increases are a killer, even if the api is considerably nicer.
danpla · 2 years ago
Unfortunately, if you're using the standard library, you get this just by switching to the C++20 mode. For example, the committee decided to put tons of std::ranges-related stuff right in <algorithm>.

https://www.reddit.com/r/cpp/comments/o94gvz/what_happened_w...

u/danpla

KarmaCake day39July 17, 2022View Original