Better HN
topnewbestaskshowjobs
Log inSign up

demomode

69 karma · joined Nov 14, 2017 (9y ago) · 22 submissions

Submissions

comment 2mo ago · link · parent

Swap files are very fragile if you are using hibernation. For FDE I prefer LVM-over-LUKS and a dedicate partition

comment 2y ago · link · parent

Isn't that the purpose of `restic mount`?

comment 2y ago · link · parent

You are right, the "HTML-is-the-UI" confused me. Related but different.

comment 2y ago · link · parent

> "we can draw our UI with additional webviews. The main reason we want to write UI using Servo itself is that we can dogfood our own stack and verify that it […]"

It's XUL again.

comment 2y ago · link · parent

FYI. There is a XDG checker called "xdg-ninja"[1]

> A shell script that checks your $HOME for unwanted files and directories.

> When xdg-ninja encounters a file or directory it knows about, it will tell you whether it's possible to move it to the appropriate location, and how to do it.

1. https://github.com/b3nj5m1n/xdg-ninja

comment 2y ago · link · parent

Also: consider using overlayfs to make root fs read-only

comment 2y ago · link · parent

There's so many things wrong with this stuff, from the motivation of the project to the (dangerous) implementation

comment 3y ago · link · parent

Well, technically is still bash who does the tab-completion, flatpak just provides a helper.

Try tab-completion under pure sh or powershell

comment 3y ago · link · parent

> What's even more insane is at the command line when you Tab to autocomplete the thing makes network requests and hangs! It's the only CLI app I know what requires the internet to autocomplete!

I'm pretty sure that it's a bash-completion feature / "fault".

No command is really executed while your are typing in a terminal until you press "enter".

comment 3y ago · link · parent

I used and created libraries using g-i (gobject introspect), also bindings for an app to develop plugins in python.

g-i is algo available for JavaScript, in fact gnome-shell it's written in JS

It's extremely easy if you stick to Gobject convention (this is a good thing).

comment 4y ago · link · parent

I can only recommend to take a look at https://yadm.io/

comment 5y ago · link · parent

You should take a look at Gstreamer, it has all the bells, whistles and codecs of ffmpeg (it integrates ffmpeg directly as a plugin). It's designed around the concept of graph pipelines and command line interface it's a little more verbose that ffmpeg's but more easy to understand.

https://gstreamer.freedesktop.org/documentation/tools/gst-la...

comment 5y ago · link · parent

It exists, it's GtkBuilder[1]. There's also a tool to create those XML files, Glade[2] (needs to be updated for Gtk4 but...)

1. https://developer.gnome.org/gtk4/stable/GtkBuilder.html

2. https://glade.gnome.org/

comment 6y ago · link · parent

You can't use expressions like that (from ffmpeg cmld) in gst-launch.

As far as I know in gst-launch you can't access properties from one element (video stream width) in other elements.

comment 6y ago · link · parent

I find gstreamer (using gst-launch)[1] a more pleasant experience than ffmpeg.

You can't use some expresions on the command line like `x=(w-text_w)/2:y=(h-text_h)` but it can be workaround with some scripting using python bindings for example.

Some (simple) text overlay can be acomplished with:

  gst-launch filesrc location=sample.mp4 \
    ! decodebin \
    ! videoconvert \
    ! textoverlay text="Hello" font-desc="Sans Bold 150px" y-absolute=0.5 \
    ! autovideosink

1. http://manpages.org/gst-launch

comment 7y ago · link · parent

Please, leave politics aside here. I can smell your antiColau feeling from miles away.

comment 8y ago · link · parent

IIRC this is what "Tempest for Eliza" was for CRTs

http://www.erikyyy.de/tempest/

comment 9y ago · link · parent

> It seems like a fallacy to claim that since diagnosis required complicated equipment in the past, that it will be necessary going forward. Machine learning is going to make tons of current diagnostic equipment look archaic in comparison.

As someone sais below "ML is not going to replace raw input from sensors."

> Medical doctors are rarely up to date on the latest technology. I wouldn't be surprised if my doctor has never heard the term machine learning before in his life.

Current dignose equipament is big, invasive and unconfortable; often they require you to stay one night at the hospital.

There are tests programs about using those devices to replace current tech (obvious reasons: less costs, less invasive tests, subject owns the hardware…)

This kind of procedures are not used because "doctors are old and non-tech people", it's because it's not working.

Sure, apps and smart devices could replace some day those devices but they need more and accurate sensors. Extrapolation of data from a good-enough pulse rate sensor it's not a replacement.

comment 9y ago · link · parent

Apnea has obvious signs (fatigue, day sleep, depression, …) that are the equivalent of the "self check-up" in your example of breast cancer.

If you suspect that you have apnea episodes you should go to a doctor.

comment 9y ago · link · parent

As someone with diagnosed apnea I have so many doubts about this.

Machines to diagnose apnea have lots of sensors including electrodes, "chest-band" pulsometers, and "saturationmeters". I have asked doctors about capabilities of smart devices for apnea control or detection, all I got was laughs.

Sorry but I think this is not true. Go and see your doctor.