Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

Not just that - they can ~all be bricked remotely unless running the latest updates!!

CVE-2022-23968: https://neosmart.net/blog/xerox-vulnerability-allows-unauthe...

comment 3y ago · link · parent

Just fyi I replied to that here: https://news.ycombinator.com/item?id=36732918

comment 3y ago · link · parent

Here’s a map of abandoned oil wells; they’re referred to as “orphaned wells” in the official nomenclature and there’s a state-maintained registry so they should be easy to find.

They’re all over the state. Probably can’t walk far without tripping over one!

[0]: https://www.nola.com/news/environment/new-federal-office-wil...

comment 3y ago · link · parent

That was my own motivation and this should work for you out of the box. (just that the default/sample config file is for three finger swipe, not two.)

comment 3y ago · link · parent

Yes; no nuclear proponent asks for that process to change for nuclear but only for the same to be applied to other sources. I just listened to an NPR program about methane leaks in Louisiana from fly-by-night operators that drill, make a profit while prices are high, then abandon shop leaving the drill sites spewing methane without capping a thing off when they shut their business down because the market price makes it unprofitable to continue drilling and selling compared to other energy sources. Then rinse and repeat. Apparently hundreds of thousands of these (growing by thousands more a year) and Louisiana hasn’t wizened up to asking for a full deposit of the costs to cap off a site before granting a drilling license; the cost is punted to the taxpayers and even then the state only gets around to capping off a tiny percentage of the abandoned sites.

comment 3y ago · link · parent

I am in the same boat but experience this on mobile, too. They just slow everything down by the same factor.

comment 3y ago · link · parent

On the other hand, nuclear is only “expensive” because we make power plants pay for ~all externalities and put aside huge amounts of money in advance to cover the (projected, though sometimes not comprehensive) cost of clean up and decommissioning.

comment 3y ago · link · parent

Or maybe they type quickly and don’t stop after each and every letter to see the autocomplete results?

comment 3y ago · link · parent

Good question. There is no technical barrier since it is possible to generate a mouse down event separate from a mouse up event however currently events are generated after the gesture is complete (meaning mouse location has been lost).

It’s easy to separate that into pre- and post- hooks, but the most reliable method I found for counting fingers in a gesture is “the maximum number of fingers during the gesture at any point” as it allows for variations in timing, location, direction, etc of first, second, subsequent fingers for a multi-finger gesture (you can’t assume they’re all present from the very start or that one finger won’t accidentally be raised mid-gesture). I’d have to change that to “detect number of fingers within xx ms of start of gesture” but that is somewhat problematic because the cursor position actually changes in response to touch between when your fist finger touched the trackpad and the time when (in your example) the third finger was finally added to the gesture (even if that all takes place in “a split second”). So it can be done but you might need to be intentional about being more careful with your three-finger swipe-to-drag to ensure the cursor remains within the desired click area until your third finger has made contact with the trackpad and hover there a brief moment to allow the daemon to determine you’re not going to add a fourth finger to the mix (changing it to another gesture altogether).

It would be entirely possible to retroactively generate a mouse down event at the original gesture start (with the first finger) when the third finger is added and no fourth finger is added, but that might be jarring from a UX perspective (cursor moves out of the bounding rectangle then the drag starts some ms later).

comment 3y ago · link · parent

Hahaha I never thought of it like that! But to admit it myself and to my own detriment, having seen people so accustomed to their phones try to “pinch and zoom” in real life makes me think that no number of additional gestures will make up for not supporting the ones macOS/iOS does.

comment 3y ago · link · parent

There’s a great article on XFG here [0] but it observed that a failed XFG check downgrades to a regular CFG check instead of a denial.. meaning it adds zero extra protection? Perhaps this behavior has changed since the preview they tested, though!

[0]: https://www.offsec.com/offsec/extended-flow-guard/

comment 3y ago · link · parent

Thanks for looking. There is no such fundamental limitation and the code was written to support these and other gestures in the future. However I don’t use those other gestures myself and had no motivation to write in support for them. (They might also not be particularly in demand by users as I’ve never been asked to add them.)

(Also, syngestures separately recognizes and supports both taps and swipes, and it supports both/either with anywhere from 1 to 5 fingers.)

comment 3y ago · link · parent

You’re not the only one to express this sentiment; a lot of people grappling with the discontinuities in the X11 to Wayland migration (and the gnome 2 to gnome 3 to gnome 4) have been saying the same thing. And that’s just for cases where the same developers have decided to move on to a new approach and the community has begrudgingly agreed to march along.

comment 3y ago · link · parent

Yup. libxo is much more free-form, while anything going through a serialize-deserialize process is going to necessarily have to be more regular.

comment 3y ago · link · parent

Serde can kind of do this for rust projects, but you're usually constrained to outputs that are "identical but for the syntax/format" (i.e. same field names though perhaps with different naming conventions).

I've used that to convert configuration files from one language to the other, such as this json2toml and toml2json tool [0].

[0]: https://github.com/neosmart/toml2json

comment 3y ago · link · parent

I've shared my opinion before on why mouse/trackpad handling is terrible on most Linux distributions [0], thanks to a misguided obsession w/ rewriting the entire stack and throwing away vendor-provided acceleration curves (most recently in order to provide gesture support instead of just building it on top of the correct, working solution).

More importantly, there is a solution for fixing this and I've done my part by open sourcing a multi-touch gesture solution (userland daemon) that's driver-agnostic and runs on top of the vendor-provided drivers w/ their correct acceleration curves [1].

(But TBH I don't know if this applies to Apple's trackpad because I don't know if there are any first-party drivers w/ proper acceleration curves for Linux or if they've all been – unfortunately poorly – reverse engineered.)

[0]: https://neosmart.net/blog/multi-touch-gestures-on-linux/

[1]: https://github.com/mqudsi/syngesture/

comment 3y ago · link · parent

> Instead of that we have some support for it in FreeBSD

My google fu is failing me right now but FreeBSD also has a shared library used for reading/parsing config files and providing either a common or universal dsl for all conf files using the same library. This is one of the benefits of using an OS instead of a distribution - all the tools are developed holistically and refactors such as providing a shared, universal input or output format, sandboxing everything with capsicum, etc across the board are much more possible.

EDIT

Remembered it. Surprised at how bad Google was at finding this, though!

UCL - Universal Configuration Language [0]. Introduced in a paper by Allan Jude in 2015 [1]. Man page: libucl(3) [2].

[0]: https://github.com/vstakhov/libucl/

[1]: https://papers.freebsd.org/2015/bsdcan/allanjude-ucl/

[2]: https://man.freebsd.org/cgi/man.cgi?query=libucl&sektion=3&f...

comment 3y ago · link · parent

Really cool tech behind this demo! I wish I could see the realtime php error/warning log (configured to log everything, of course); it would be interesting to see how perfect this simulator is, especially with the SQLite db rewrite.

It's also awesome how easy it is to use this to test out a plugin (or a theme) - you just need to add &plugin=plugin-slug-from-dir where the slug matches the plugin's WordPress.org url and it'll be automatically downloaded and added to the sandbox!

The full query api used to configure the sandbox (tech and loaded env) is documented here [0].

[0]: https://wordpress.github.io/wordpress-playground/query-api/

EDIT

I'm absolutely positive there has to be a way to open or show a debug log (if only because I wouldn't have been able to develop this without that)!

comment 3y ago · link · parent

I don’t think the new scroll timeline fixes the lazy loading issue.

comment 3y ago · link · parent

Gmail does that too, no? I remember an HN discussion on this many years ago.

Here, I found a corroborating link from 2013: https://www.litmus.com/blog/gmail-adds-image-caching-what-yo...

comment 3y ago · link · parent

> tbh this sounds like a self-inflicted SFF build problem

No, the error is in automatically assuming that the GPU should be the one to get the x16 port. This is a tower server; the x16 and x8 ports are for the SAS cards, network cards, and NVMe drives. The GPU takes whatever is left.

comment 3y ago · link · parent

It’s a problem when the x16 slot is the bottom-most and the orientation is such that the clicky thing you must depress is on the bottom side of the DP connector when plugged in, and your case has a ledge after the PCI slots so you cannot realistically depress the latch.

Of course, no one would realistically encounter a case/GPU/cable combo like that. Right?

comment 3y ago · link · parent

A bigger problem is that it breaks text rendering. Transforms turn off pixel snapping in the hinting engine so you’ll get blurry text or lines.

(At least if you applied it as a css transform you would. Maybe if you did it natively in svg you wouldn’t?)

comment 3y ago · link · parent

> I didn't want to go into all the technical details

HN is here for the technical details ;)

comment 3y ago · link · parent

I’ve been using Linux and BSD for twenty years and never ran an OS I couldn’t update to the next release, with the exception of elementary. Some make it easy and some don’t but elementary OS was the only one to say “sorry, no upgrade path for you.”

comment 3y ago · link · parent

Dr Roy on HN. This will be interesting.

- - -

First thing I did on my Ubuntu install was remove the Firefox snap, add the Mozilla ppa, and install Firefox from there via apt.

If Mozilla maintains its own ppa and they do all the hard working of getting everything working, I don’t understand why Canonical has to push a snap option instead.

I did give it a try, but only to get obnoxious popups about being forced to restart Firefox every other day for snap to update, and these popups would even bring my monitor out of dpms (and maybe my machine out of sleep?) to inform me of this. But even heeding these prompts, Firefox would still update in the background leaving me unable to open a new tab because IPC broke since the master and slave processes were now running different Firefox versions..

comment 3y ago · link · parent

The article did an ok job of explaining the firecracker limitations they ran into but it was extremely skimpy when it came to qemu and just rushed to the conclusion “we did a lot of work so try our product.”

comment 3y ago · link · parent

Obligatory reminder that elementaryOS, "the easiest to use Linux distro" made as a knockoff of macOS, expects users to format and reinstall every year when a new version is released.

I can't recommend it.

comment 3y ago · link · parent

Here's a story about producing the smallest possible with .NET Core [0].

[0]: https://medium.com/@MStrehovsky/building-a-self-contained-ga...

comment 3y ago · link · parent

The resulting exe doesn't really "use" the framework in any way, other than relying on an implementation detail of the backing ucrt.dll library exposed as an unmanaged pinvoke (c# ffi) call.
1
555657
277