HNHacker News
TopNewBestAskShowJobs

demomode

69 karma · joined November 14, 2017

submissionscomments
demomode··on Stop making swap partitions—use swap files instead
Swap files are very fragile if you are using hibernation. For FDE I prefer LVM-over-LUKS and a dedicate partition
demomode··on Restic: Backups done right
Isn't that the purpose of `restic mount`?
demomode··on Building a browser using Servo as a web engine
You are right, the "HTML-is-the-UI" confused me. Related but different.
demomode··on Building a browser using Servo as a web engine
> "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.

demomode··on Boxxy puts bad Linux applications in a box with only their files
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

demomode··on Considerations for a long-running Raspberry Pi
Also: consider using overlayfs to make root fs read-only
demomode··on NPMprune: Remove unnecessary files from node_modules to optimize storage
There's so many things wrong with this stuff, from the motivation of the project to the (dangerous) implementation
demomode··on Flathub – The Linux App Store
Well, technically is still bash who does the tab-completion, flatpak just provides a helper.

Try tab-completion under pure sh or powershell

demomode··on Flathub – The Linux App Store
> 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".

demomode··on Swig – Connect C/C++ programs with high-level programming languages
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).

demomode··on A Dotfile History
I can only recommend to take a look at https://yadm.io/
demomode··on FFmpeg Cheat Sheet
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...

demomode··on GTK4 for Graphical User Interfaces
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/

demomode··on FFmpeg Drawtext Filter for Overlays, Scrolling Text, Timestamps on Videos
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.

demomode··on FFmpeg Drawtext Filter for Overlays, Scrolling Text, Timestamps on Videos
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
demomode··on Barcelona Fines Landlords Who Let Buildings Sit Empty
Please, leave politics aside here. I can smell your antiColau feeling from miles away.
demomode··on Detecting Screen Content via Remote Acoustic Side Channels
IIRC this is what "Tempest for Eliza" was for CRTs

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

demomode··on The Apple Watch can detect hypertension and sleep apnea, a new study suggests
> 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.

demomode··on The Apple Watch can detect hypertension and sleep apnea, a new study suggests
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.

demomode··on The Apple Watch can detect hypertension and sleep apnea, a new study suggests
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.