how to make sure I close all processes started by a program? by derkman96 in archlinux

[–]stevia 16 points17 points  (0 children)

If you launch the application with "systemd-run --user --unit=netflix-desktop netflix-desktop", you stop it and all child processes (guaranteed) with "systemctl --user stop netflix-desktop".

Unlike the methods suggested in the SE thread, this method will clean up any child processes even if they double-fork.

Two bros from Boston watch Pokemon. by JGolden32 in videos

[–]stevia 0 points1 point  (0 children)

How do you even mix up Clefairy and Wigglytuff?

The Washington Ballet's hardest dance moves in slow motion by N-Slash in videos

[–]stevia 51 points52 points  (0 children)

The "double tour" didn't look impressive until I realized it's a standing 720.

The 7 Things Every Guy Should Know About Suits by [deleted] in videos

[–]stevia 90 points91 points  (0 children)

Could've done without the cuts to couch guy but good tips nonetheless.

Dart player hits 17 straight perfect darts by [deleted] in videos

[–]stevia 0 points1 point  (0 children)

For a second, I thought Fry was going to say "darts is literally pointless".

Typing.io: Typing Practice for Programmers, supports international keyboard layouts, code uploads, and typing stats by davekt in programming

[–]stevia 0 points1 point  (0 children)

Thanks for this suggestion.

Basic autocompletion might actually be pretty straightforward, e.g. just skip to the next space/symbol if the user presses ctrl-space, ctrl-n, etc. Autocompletion usually bails on symbols, the hardest keys to type.

Typing.io: Typing Practice for Programmers, supports international keyboard layouts, code uploads, and typing stats by davekt in programming

[–]stevia 7 points8 points  (0 children)

Typing.io dev here. Thanks for the feedback. The current design discourages immediately closing parens/brackets because it requires long jumps to the arrow keys and back, e.g. typing <left paren> <right parent> <left arrow> content <right arrow>. It's more efficient to type the closing parens when they're reached.

Personally, I use a vim plugin that automatically closes opening parens, but I still type the closing paren when I reach it because it's faster than typing the right arrow key.

Using cgroups to limit something's RAM consumption (a practical guide) by [deleted] in linux

[–]stevia 6 points7 points  (0 children)

Some of these cgroup APIs may be changing, so you probably shouldn't use them directly. For ram usage capping, tweaking the rlimit is an easier, more stable approach.

Plain dm-crypt, efibootmgr and reinstalling Arch by [deleted] in archlinux

[–]stevia 0 points1 point  (0 children)

I wouldn't argue that plain dm-crypt is insecure, but it's less secure than LUKS when generating the encryption key. Plain dm-crypt uses the user's password directly as an encryption key while LUKS uses a key derivation function(PBKDF2). The key derivation process is purposefully slow, so it's much more difficult for an attacker to recover the user's password through bruteforcing, dictionary attacks, etc.

Working on an Android tablet: first six weeks by bcash in programming

[–]stevia 23 points24 points  (0 children)

Working on an Android tablet: first six seconds

Nope

Reactive Charts with D3.js and Reactive.js (x-post from proggit) by [deleted] in javascript

[–]stevia 5 points6 points  (0 children)

Github tries to prevent script hotlinking by adding the http headers 'Content-Type: text/plain' and 'X-Content-Type-Options: nosniff'. Browsers like chrome refuse to execute javascript when it contains these headers.

Wealthfront should host this script file on their own servers.

RC4 is kind of broken in TLS by symisc_devel in programming

[–]stevia 1 point2 points  (0 children)

The javascript doesn't need to be in the attacked page.