Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,402 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 4y ago · link · parent

Perhaps professionals with a lot of money riding on it, sure. But for prosumers, the status quo was good enough that breaking it cannot be justified by "oh it wasn't perfect so who cares?"

comment 4y ago · link · parent

Elementary OS is ok but I have issues with the stability of its window manager, lock screen, and other core UI replacements that often lock up (on 5.x and now on 6.x) and require a hard reset (or killing X).

On my laptop and even w/ proprietary drivers installed, I cannot get eOS to hardware accelerate videos with either my embedded Intel graphics card or my discrete nVidia card in Firefox or Chromium.

The UI is full of really weird inconsistencies and is extremely opinionated without any way of changing some basic things (previously adjustable via `gsettings` but it seems that has been intentionally deprecated). For example, the elementary File Manager forces single-click-to-open ("web-style") behavior for any folders, but then switches to double-click-to-open for any files within those folders, so you can select a file but not open it but you cannot do the same with a folder. If it weren't for elementary tweaks (neutered as it has become for eOS 6), elementary would be completely unusable.

The decision to not even have an official upgrade path besides "nuke everything and reinstall" makes me question the clarity of vision of elementary OS developers/decision makers. You want to be the macOS of the Linux world but you have a worse upgrade experience than any other Linux distro bar none? You purposely advertise to "less techy" users that are exactly the kind of users that won't be able to handle a "back up your files, wipe everything, and clean install" upgrade path?

They added multitouch gesture support... but the only gestures available are for interacting with the desktop window manager (show all windows, move to prev/next virtual desktop)? Fortunately my `syngestures` that I wrote for elementary OS 5 works just fine alongside eOS 6's so-called "multitouch support" but for something that was going to be their killer feature, you'd think they would integrate some of the TouchEgg configuration into their touchpad gestures control panel UI, wouldn't you?

comment 4y ago · link · parent

You're not typically cloning your main screen but rather outputting to a second display (that doesn't have the focus). It would be very weird indeed for a notification to wind up on that display.

comment 4y ago · link · parent

This thread has exposed a very weird dichotomy between HN users that believe that they (as owners/operators of the device in question) should ultimately be in control of what their machine outputs - down to the pixel - at least if and when they care to do anything about it, and those that accept it's our role to just take whatever bones the manufacturer's are kind enough to throw our way, apparently unless and until it is an egregious violation of what one considers to be "the" line that shouldn't be crossed.

As a hacker without a horse in this particular race (Macs and I parted ways a long time ago), it's definitely interesting to observe the interactions between the two groups in this thread!

IMHO the fundamental difference between the two sides is that when it's posited as a dogmatic matter, it's immediately clear whether or not your (perceived) rights have been violated (Can you do X? No => Violation, Yes => Keep chugging along) but for the latter group it becomes not just a question of whether or not X is possible but also whether or not each individual can agree that X should/shouldn't be determined by the vendor/manufacturer (c.f. the recent hullabaloo about on-device scanning).

I see similarities to the concept of "I may not agree with what you are saying, but I will fight to the death for your right to do so," which just makes it so much easier to agree on whether or not rights are being infringed, regardless of it's something you'd want to engage in yourself or otherwise.

comment 4y ago · link · parent

Do Not Disturb/Focus is a thing.

comment 4y ago · link · parent

> And it does seem there could be a fix here; you already have to give applications permission to access your mic and camera, and it seems there should be some way for an app to disable the orange dot once its permissions are elevated with opt-in by the user.

The obvious caveat is that a hacker w/ local access can do that themselves to hide their system foothold, which is just par-for-the-course when it comes to physically compromised machines... except I'm willing to bet they're more concerned with "jealous ex" than they are with professional hackers.

Apple is trying to add features to protect against the unprotectable instead of just acknowledging that at some point local access means game over; the only way to do that is to make it virtually unbearable to use the OS as a regular user (see UAC in Windows Vista).

comment 4y ago · link · parent

It's device agnostic; this is from the controller software that manages all the Unifi devices on your network. This was the latest version of the controller, available on their website as "UniFi Network Application 6.5.55 for Debian/Ubuntu Linux and UniFi Cloud Key" (Cloud Key is the appliance they ship that simply runs Debian w/ the package installed).

My email is mqudsi at neosmart dot net; I'd love if you could let me know what happens.

comment 4y ago · link · parent

You mean monkey brains?

comment 4y ago · link · parent

Yes, personally I think C#/.NET is a much better complement to rust than golang is, but it’s just not as hip a langauge.

comment 4y ago · link · parent

This is why I don’t understand why people insist on creating web frameworks in rust. It’s one thing to write a proxy server or load balancer in rust, it’s another thing to write your actual CRUD app in rust. And the community has bent over backwards to support this use case and expended enormous resources to that end.

I write embedded firmware, replacements for GNU coreutils, system services, and more in rust and I love it. But I write my web apps in C# and I wouldn’t change that.

comment 4y ago · link · parent

Is that USB-C or thunderbolt over USB-C? One is an entire graphics card and the other is just a muxer.

comment 4y ago · link · parent

It depends on how the card’s speed governor works. Do you set a desired clock rate and then the firmware tries to hold that speed dependent on factors like core temperature or do you set a hard value and the firmware holds that come hell or high water?

comment 4y ago · link · parent

If that were the case then manually setting the clock speed would be supported but it would lock out any speeds higher than the OEM configuration.

comment 4y ago · link · parent

    021-12-07T19:05:23.822-0600 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, processManagement: { pidFilePath: "/usr/lib/unifi/run/mongod.pid" }, storage: { dbPath: "/usr/lib/unifi/data/db", wiredTiger: { engineConfig: { configString: "cache_size=256M" } } }, systemLog: { destination: "file", logAppend: true, logRotate: "reopen", path: "/usr/lib/unifi/logs/mongod.log" } }
    2021-12-07T19:05:23.822-0600 I -        [initandlisten] Detected data files in /usr/lib/unifi/data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
    2021-12-07T19:05:23.822-0600 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=256M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),cache_size=256M
    2021-12-07T19:05:24.339-0600 E STORAGE  [initandlisten] WiredTiger error (-31802) [1638925524:339440][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 604: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1638925524:339440][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 604: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error
    2021-12-07T19:05:24.339-0600 E STORAGE  [initandlisten] WiredTiger error (0) [1638925524:339475][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 611: WiredTiger has failed to open its metadata Raw: [1638925524:339475][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 611: WiredTiger has failed to open its metadata
    2021-12-07T19:05:24.339-0600 E STORAGE  [initandlisten] WiredTiger error (0) [1638925524:339483][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 614: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1638925524:339483][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 614: This may be due to the database files being encrypted, being from an older version or due to corruption on disk
    2021-12-07T19:05:24.339-0600 E STORAGE  [initandlisten] WiredTiger error (0) [1638925524:339489][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 617: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1638925524:339489][1327:0x7f952058b400], file:WiredTiger.wt, connection: __wt_btree_tree_open, 617: You should confirm that you have opened the database with the correct options including all encryption and compression options
    2021-12-07T19:05:24.340-0600 F STORAGE  [initandlisten] WiredTiger metadata corruption detected
    2021-12-07T19:05:24.340-0600 F STORAGE  [initandlisten] This version of MongoDB is unable to repair this kind of corruption, but version 4.0.3+ may be able to repair it. See http://dochub.mongodb.org/core/repair for more information.
    2021-12-07T19:05:24.340-0600 F -        [initandlisten] Fatal Assertion 50944 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 71
    2021-12-07T19:05:24.340-0600 F -        [initandlisten] \n\n***aborting after fassert() failure\n\n

comment 4y ago · link · parent

Microsoft has much lower turnover than that.

comment 4y ago · link · parent

Windows 10 does this automatically if you pair your phone to your Windows 10 PC via bluetooth. When you walk away, it locks the screen.

comment 4y ago · link · parent

This is just a supplier generating traffic to their website. The actual post is here and has the real details: https://www.briandorey.com/post/raspberry-pi-zero-2-w-extern...

comment 4y ago · link · parent

Of course it is. Unwrap panics on error, while ? bubbles up the error instead. But ? wasn’t introduced to replace unwrap, unwrap was always frowned upon. It instead replaces match and return.

comment 4y ago · link · parent

Yeah I’ve written about those on here before. I bought some but haven’t had time to use them; I’ve read anecdotal reports of them not lasting any longer than regular HTL (instead of LTH) discs.

comment 4y ago · link · parent

To clarify again, I'm not the one starting it - Unifi ships its network appliance as a debian package that depends on mongod and starts it up itself (and it's absolutely a single node configuration). Maybe you guys should have a talk with them :)

This is what monogd.log contains when started:

    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] MongoDB starting : pid=7531 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=unifi
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] db version v3.6.20
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] git version: 39c200878284912f19553901a6fea4b31531a899
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] allocator: tcmalloc
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] modules: none
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] build environment:
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten]     distmod: debian92
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten]     distarch: x86_64
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten]     target_arch: x86_64
    2020-09-24T21:18:54.231-0500 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, processManagement: { pidFilePath: "/usr/lib/unifi/run/mongod.pid" }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, logRotate: "reopen", path: "/usr/lib/unifi/logs/mongod.log" } }
    2020-09-24T21:18:54.231-0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=256M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),

comment 4y ago · link · parent

You’re correct, but in all honestly the devil is in the details. The difficulty here being in determine if a three-finger gesture has started or if it’s actually a three-finger gesture on its way into becoming a four-finger gesture - the sort of issue that plagues first input delay on mobile devices because it’s not clear if a tap is a “tap to scroll” or “tap going to become a pinch to zoom.”

The solution is simple but somewhat ugly, just like on Android and iOS: set a maximum time limit (up to 250ms) before going with the number of fingers detected.

Also, I’m not sure if macOS is distinguishing between tap and click? The online documentation says it’s with force click enabled.

comment 4y ago · link · parent

You’re right - I think I was misremembering the details and it was something like a poisoned supply chain leading to people who thought they had bought the real thing shipping devices that ended up breaking or something.

comment 4y ago · link · parent

That seems.. harder to use than what I described because being precise with three fingers (eg precise enough to drag to the correct row in detail view) isn’t easy. Also gesture accuracy decreases as the number of tools (read: fingers) goes up.

In all cases, that is easier to implement in code than a stateful transition like I described since there is no state persisting beyond the gesture itself, it just needs gesture_start and gesture_end support (with the difficulty being in determine if a three-finger gesture has started or if it’s actually a three-finger gesture on its way into becoming a four-finger gesture).

comment 4y ago · link · parent

You mean click with three fingers once and let go to initiate a drag, move the cursor with one finger on the touchpad to its destination, then click and let go with three fingers to end it?

That’s a very good question as I didn’t consider stateful gestures (where state doesn’t reset when all fingers are removed). It can be shimmed (without touching the code) in the configuration file by replacing the invocation of xdotool (or whatever) with a wrapper script that provides state enabling a “toggle mousedown” rather than just explicit, separate mouseup and mousedown events but I wonder if there’s a clean way to model that into the event loop as serialized to/from the configuration file directly. Feel free to open a GitHub issue if you like.

comment 4y ago · link · parent

My Dell Precision 5520 (née XPS 9560) battery came with obvious spelling and grammatical errors.. just like the cheap Chinese clones I bought to replace it after a few years did (because Dell doesn’t sell the battery online). The clone I received was garbage and not up to the advertised specs so I tossed it and called my Dell sales rep and managed to get him to order me a new battery (it’s apparently not considered a user-replaceable part although it really is) and lo and behold the new one came with the same spelling errors as the one I got from China.

I have zero faith in their supply chain.

comment 4y ago · link · parent

Or worse: if they mistakenly thought you had a non-genuine FTDI component when you really didn’t.

comment 4y ago · link · parent

You’re most welcome. Please read the article before downloading or cloning from GitHub: this “solves” the acceleration issue by not breaking it in the first place; imho what libinput should have done by developing gesture support on top of the existing, working driver/hardware stack instead of throwing away the userland/kernel separation and all layers of abstraction.

The linked project is only the userland daemon that uses the raw Linux Multitouch Protocol events to interpret gestures; to get the acceleration curves working again I recommend using this in conjunction with xf86-input-synaptics as your actual input driver (which provides the correct acceleration curves for compatible hardware - basically all touchpads since they all cloned synaptics’ hardware once upon a time - but doesn’t by itself have gesture support).

Side note: Syngesture (this project) isn’t dependent on X11 or Wayland, but I don’t know if anyone has ported or will port xf86-input-synaptics to Wayland, which is/was pretty much developed along the same lines as libinput: rewrite everything from scratch without taking into account that some things you’re throwing out actually work really well (regardless of the fact that they are built for X11 or not), get rid of all abstractions that made it possible to plug in better components/replacements at various points in the stack, and without a concern for actual feature parity for what they are purportedly replacing.

comment 4y ago · link · parent

It can, within reason. Also source machines (and more importantly, source media) are much faster in the first place this side of 2010.

comment 4y ago · link · parent

Modern disks have read/write heads that don’t magically seize from lack of use any more. SSDs are way worse here: if it’s not powered up (and initialized), the individual NAND cells lose their charge and you’ll fairly quickly get some serious bitrot (especially with TLC and now QLC being the predominant options leaving very little room for analog drift). You can no longer throw an external drive into a safe and leave it there for a couple of years like you could with 2.5” or 3.5” spinning rust.

comment 4y ago · link · parent

I was going through that same dilemma but they’re really not perfectly comparable options. Drives are more sensitive to storage and handling damage than a tape cartridge is.
1
848586
277