Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

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

mqudsi on most sites.
Submissions

comment 6y ago · link · parent

But that’s the whole point of the census. I agree Democrats wouldn’t care if it weren’t politically beneficial, but in this case their interest and the law coincide. Everyone, legal resident or not, should be counted. There’s zero legal /constitutional question about it. If you’re going to get angry every time someone does the right thing for the wrong reasons, I am afraid you’re in for a lifetime of disappointment.

Now if Democrats were trying to increase census coverage in Florida, Texas, NY, and IL while playing games to get census takers to skip traversing the vast emptiness of Montana and Wyoming, I’d agree that you have a point. But that’s not the case.

comment 6y ago · link · parent

> The only people I ever seem to hear criticize Lightning are people who don’t even own Apple devices.

I've been exclusively iPhone since the 4S and its gorgeous retina display lured me away from my beloved Curve 8900. I am still not as proficient a typist nor as productive a person on the go as I was with my BlackBerry back in 2009.

(I did however ditch my rMBP years ago but I don't see how that could factor into a discussion about Lightning ports.)

comment 6y ago · link · parent

What will they do, put a gun to consumers’ heads to force them to buy exercise bikes and the latest iPhone models?

comment 6y ago · link · parent

Lightning ports are not more durable than USB-C. They are extremely prone to the device-side conductor corroding. USB mini made the mistake of making the device side contain a friction wear item, but USB micro fixed that but had other endurance issues due to its flimsiness. USB C doesn’t suffer from any of those drawbacks.

comment 6y ago · link · parent

No, this is only in the undo path when stealing already failed. But waking all waiters is kind of crazy.

Microsoft’s equivalent API (WFMO) is free of spurious wakes, I can’t imagine how much harder that makes everything

comment 6y ago · link · parent

> It's been shown that deplatforming and moving those nuts out of the mainstream social media channels reduce their influence.

Would you mind linking to the studies you have in mind? In thinking about the likes of The_Donald and its current, banished form.

comment 6y ago · link · parent

That rather depends on their socioeconomic status, and yes, the color of their skin.

comment 6y ago · link · parent

Not just deductibles, my self-insured premiums have almost tripled since ACA.

comment 6y ago · link · parent

> You're completely innocent until you've been proven guilty

Nitpick: you’re presumed innocent, which is very different from saying you’re actually introvert.

comment 6y ago · link · parent

This is a feature of posix shells, the status of `while ...` outside the loop is zero unless the loop never executed.

comment 6y ago · link · parent

Thank you.

> Also please consider posting this on relevant mailing lists.

I’m beginning to accept that I’m terrible when it comes to evangelizing. Suggestions?

comment 6y ago · link · parent

I was surprised at how much better (more fluid, less stuttering, fewer artifacts) mpv was compared to VLC with hardware rendering enabled on Linux.

comment 6y ago · link · parent

Inspect it by piping to less or vim instead?

3374.

Why Paper Jams Persist (2018)(newyorker.com ↗)

2 points · by ComputerGuru · 6y ago · discuss

comment 6y ago · link · parent

Const generics will fix all this; they can’t come a moment too soon, in my opinion.

comment 6y ago · link · parent

People that would notice and object to ads would typically be aware that there’s a fairly easy way to block them.

comment 6y ago · link · parent

Today I learned! It makes all the pushback to them all the harder to understand.

comment 6y ago · link · parent

I've never been a fan of Linux on laptops as I feel its DE is just not there yet and prefer to stick to the terminal or the desktop, but I switched my laptop to Linux about six months ago to re-assess and ran into a number of big issues, the most unexpected of which was the poor state of basic touchpad support, not to mention multitouch input support - I genuinely thought it would be a solved problem by now, but I can't blame anyone but myself given that it's open source and anyone is free to contribute a fix (read on).

IMHO the most egregious offender is libinput because everyone and their pet fish seem to be in a massive hurry to drop the proprietary synaptics driver and replace it with libinput; you're not allowed to ask for synaptics support because all distro and project maintainers will lecture you about "upgrading" to libinput which has "superior" touch and multitouch support... except libinput absolutely does not, even if it is theoretically architectured in a way that would enable superior touch/multitouch support someday.

The biggest problem is that the acceleration curves libinput uses are vastly inferior to those that ship out-of-the-box with other operating systems or the proprietary solutions from the manufacturers. When you read about the TrackPoint and the research that went into developing acceleration curves/profiles for input devices [0], it is hubris to think you can throw it all away and expect to still have a superior product.

Anyway, long story short, if you're using a synaptics or synaptics-compatible trackpad, the old synaptics drivers have the best (by far) acceleration profiles and feel the most natural to use, but they are not supported by multitouch plugins for the desktop environments. That's not to say the drivers don't have multitouch support: they do, and they accurately report all motions, but only as raw events.

I wrote this simple program to read the raw input from the synaptics driver and recognize two-, three-, four-, and five-finger tap and swipe gestures from the raw event stream generated by the synaptics driver per the kernel multi-touch protocol [1]. I initially wrote it in an evening after studying the protocol to get just simple back/forward swipe navigations working with the only actually good touchpad drivers for Linux I could find (the synaptics one), and intended to clean it up before throwing it on GitHub for anyone else that might find it interesting but realized I wasn't sufficiently motivated to clean it up anytime soon so decided to just upload it as-is.

sygesture [2] is written in rust and processes the raw MT protocol events generated by the trackpad in real-time to recognize multitouch gestures. Currently it spawns an `evtest` instance rather than opening the input device directly, that was a hack to not have to deal with translating the binary protocol but adds a dependency on the `evtest` utility (should be in your package manager). The path to device is also hard-coded in `main.rs` (and currently it only supports a single input device), but all that is separated from the actual parsing logic because I planned on making that modular from the start, but never got around to it. The mapping of gesture to action is also hard-coded in `main.rs` and isn't currently configurable. (It's all very easy to change even if you don't know rust, as all it does is spawn a program with certain arguments in response to each motion.) I'll throw an MIT license in the repo as soon as I get a chance.

The utility is pretty bulletproof, even though the heuristic is fairly simple (the rationale behind the consensus algorithm is documented in the comments). It's extremely fast (don't have a reliable way to measure lag, but I'm extremely sensitive to it and don't detect any) and has low memory usage (CPU usage is basically zero except for the duration of a gesture, if you're polling at a high-enough frequency to pick up on that).

Something not accounted for at all in the code is support for non-swipe gestures such as pinch-to-zoom and (has anyone ever used it?) "circle gesture" that can be apparently be used for weird things.

[0]: https://www.microsoft.com/buxtoncollection/detail.aspx?id=60

[1]: https://www.kernel.org/doc/html/v4.18/input/multi-touch-prot...

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

comment 6y ago · link · parent

Known viable option for coffee for someone from out of town, whereas a local brand is an unknown quantity and McDonalds and Starbucks are undrinkable.

comment 6y ago · link · parent

Not for donuts. Guaranteed minimum viable coffee. Starbucks and McDonalds are undrinkable (opposite ends of the spectrum).

comment 6y ago · link · parent

It’s for coffee, not donuts. They even rebranded to drop the latter from their name.

comment 6y ago · link · parent

Just to provide more domain info: if you’re On iOS, the web view in each app has its own profile/cookie store.

comment 6y ago · link · parent

I’m not sure what you refer to as early dawn, but here in the Midwest all Dunkin’ Donuts and many Starbucks are open at 5am.

Side note: it blows my mind each time I’m in California and I have to drive forty five minutes or more to find a Dunkin’.

comment 6y ago · link · parent

No, it really doesn't. Gitea is just your typical web stack built around forking git.exe processes.

comment 6y ago · link · parent

I use kitty on WSL via vcxsrv but I had to hack the OpenGL support. X410 should work.

comment 6y ago · link · parent

Open back headphones are a luxury but not necessary: call centers have long ago taught us about the $5 one-eared headphone with a regular headphone price for one ear and a padded base clipped just above the other ear. All audio/video calls are mono (and horribly encoded and filtered at that), you’re missing nothing by listening with only one ear and gaining nothing by paying for quality headphone drivers that will go wasted on the barely over 8 kHz sampling tinny audio that’s coming in over the pipe.

comment 6y ago · link · parent

This may sound ridiculous (I first saw the headline on r/NotTheOnion) but it’s actually quite nefarious: qualified immunity protects police from anything that wasn’t explicitly verboten thanks to exactly identical previous court rulings. It doesn’t matter how insane or outrageous, if it wasn’t previously adjudicated, then qualified immunity kicks in. Any deviations from precedent basically nullify the precedent and allow QI to apply: a cop was previously found guilty for battering a person with a baton but the cop today used the butt of a rifle? Qualified immunity.

https://www.vox.com/2020/6/3/21277104/qualified-immunity-cop...

comment 6y ago · link · parent

Colds aren’t really seasonal, and while some may be caused by coronaviruses, the more common infections are caused by the rhinovirus. Did you mean the flu?

comment 6y ago · link · parent

Largely the first but also a smattering of the second (in the form of less serious cases in people previously exposed to SARS-COV-1), from the one (iirc) study that looked into this.
1
112113114
277