HNHacker News
TopNewBestAskShowJobs

divingdragon

99 karma · joined June 28, 2020

submissionscomments
divingdragon··on Fire declared in OVH SBG2 datacentre building
You might be thinking of Halons, which are CFCs that depletes the ozone layer? They are mostly phased out worldwide but existing installations might still be in use.

FM200 is something else that is often used in modern builds (not just datacenters).

divingdragon··on Namecheap just snaked another domain off me
Hmm, could it be a system glitch when Namecheap tries to register the domain for you during checkout? This seems less likely to be a coincidence.
divingdragon··on Deno v1.8 – support for WebGPU, private modules, Intl, and much more
Small correction: TS (MPEG transport stream) is mainly used for transmissions or broadcasts (e.g. DVB). The container format used for DVDs is PS (MPEG program stream), which is often stored as .mpeg files, and isn't quite the same as TS.
divingdragon··on Möbius Printing Helper
But scaling down from A4 to A5 makes the text less readable.
divingdragon··on Bluetooth Trackball Mark II
It is a very intriguing idea, but without integrated mouse buttons and a dedicated scroll wheel, it has to be used in conjunction with a custom keyboard.

I love my CST (now X-Keys) L-Trac trackball and I don't think the OP trackball can replace it. That said, it might be interesting to use one as a secondary input device. Hmm...

divingdragon··on Email from Jeff Bezos to employees
Some browsers automatically "fix" addresses by appending `.com` for you. I think even Firefox used to do that until mid 2010s.
divingdragon··on Graphics in Qt 6.0: QRhi, Qt Quick, Qt Quick 3D
Ah right, createWindowContainer should work for this.

I believe there is a reason why we don't call createWindowContainer with our use of QOpenGLWidget, though I currently can't remember it. If it still applies, then I suppose we might not be able to use QRhi.

divingdragon··on Graphics in Qt 6.0: QRhi, Qt Quick, Qt Quick 3D
Just curious: Is it possible to do rendering with QRhi inside QWidget in a similar way as one would do with QOpenGLWidget?

Actually, the post also stated that using `QQuickWidget` will force OpenGL composition, so if an application uses QML inside QWidget it looks like QRhi will not be usable at all. It would seem that QWidget composition does not support QRhi.

divingdragon··on Graphics in Qt 6.0: QRhi, Qt Quick, Qt Quick 3D
It appears that one might not even be able to make use of QRhi without porting all the QWidget-based UI over to Qt Quick.

Given how some high-profile Qt applications are using OpenGL, continuing with using ANGLE would seem to be the superior choice over having to rewrite everything with a completely new API.

divingdragon··on Rust 1.47
You don't even need `std::mem::take`, you can just `drain` the `Vec`. This also allows the allocation to be reused, unlike your `mem::take` which ends up dropping the allocation.

`Vec::drain`: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dra...

divingdragon··on What happens when you load a URL? (2015)
> putting the tty into cbreak or raw mode and then just reading keys from stdin

You're saying this like most beginners even have an idea what a tty is.

An anecdote: When I wrote my first C++ program that reads an input (using `cin`, hello-world style), I immediately wondered how to read single keys including arrow keys. The book I was following had nothing about this. I don't remember the exact details but a bit of Internet search got me to `conio.h` (I was using Dev-C++ on Windows) which did work. But getting it to work was so confusing to me at the time. And I didn't even get to understand what it's actually doing under the hood.

I imagine it would be a bit easier in Python given the right libraries, but the dependency management probably adds to the complexity for a beginner.

divingdragon··on Ventoy: A new bootable USB solution
> make a [...] ntfs partition

I think it would only work if your UEFI firmware happen to contain a driver for reading NTFS partitions. UEFI firmwares are only required to read FAT12/FAT16/FAT32. Rufus solves this by making an extra FAT partition with a UEFI:NTFS [1] binary which loads its own NTFS driver to boot the Windows `bootmgfw` EFI binary.

[1]: https://github.com/pbatard/uefi-ntfs

divingdragon··on Ventoy: A new bootable USB solution
I have been using a rooted Android phone with DriveDroid which mounts images as a USB drive for a PC. It works pretty well too. (Except for Windows setup ISOs. Those does not support direct booting from a USB drive and I had to mount a blank image and use Rufus to properly write it as a bootable non-optical disk.)

This seems to be a fine alternative that I will have to try. The problem is that I don't really have large USB sticks for this anymore...

divingdragon··on KDE Slimbook: Linux Laptop with Ryzen 4000
It's blocking me too. I have no issues with other Cloudflare sites however. I wonder what site-specific firewall filters has been triggered.
divingdragon··on Go generics may use square brackets [] not parenthesis ()
This doesn't help with some of the difference between ANSI and ISO layouts. For example ANSI uses a long Enter key while ISO uses one that looks like the shape of a "7".
divingdragon··on Cooperative Linux – running Linux as a Windows driver (2011)
There was a "distribution" called "pubuntu" (aka Portable Ubuntu) that makes use of coLinux, along with an X server (probably Xming) and even PulseAudio running on the host Windows system. For a while I used it to play around with Android porting (that was around Gingerbread), compiling kernels and Android with no issues at all. Fun times.
divingdragon··on EasyOCR: Ready-to-use OCR with 40 languages
This approach seems a bit weird to me. While I appreciate them separating the models of Traditional and Simplified Chinese, I think I might prefer them to be combined (perhaps even including Japanese Kanji), and instead provide a way for the user to specify which language or regional variant is expected so characters matching the expected variant are simply given a higher score.
divingdragon··on Godot 4.0 gets SDF based real-time global illumination
IME do have some uses for games, like for in-game text chat. I think it is reasonable to ask for at least some IME input capabilities in a game engine UI library. It is a must if one wants to make a multiplayer game targeting CJK markets.
← PreviousPage 2 of 2