Skip to content

u/trapxvi

In this archive from Apr 2012 to Apr 2018

0
posts
25
comments
0
media
57
score

Top comments

There's a lesser known form of Verlet integration which I was exposed to in my undergrad in applied math/computational physics which was called "velocity verlet" by the instructor. I haven't seen it discussed since, but I think it's worth knowing about since it keeps the velocity explicit (which makes setting initial conditions more natural and provides traction when extending the method to handle dissipative (velocity-dependent) forces).

Assume the following dynamical equations of motion:

x' = v
v' = f(x)

Expanding these in finite differences:

x_{j+1} = x_j + \Delta^t_j v_j + \frac{(\Delta^t_j)^t}{2}f(x_j)
v_{j+1} = v_j + \frac{\Delta^t_j}{2}(f(x_j) + f(x_{j+1})

That might be kind of confusing, so here's how it works in practice. Each time step repeats the following step (aside from the first, which is only needed to initialize the force field from the initial conditions).

  1. (Initial step only) From the current position x_j calculate the current conservative forces f(x_j).
  2. From the previous information and knowledge of the current velocity, calculate the next position x_{j+1}.
  3. Calculate the conservative forces at the next time step f(x_{j+1}).
  4. Calculate the next velocity.

The important feature of this expression is not that it's accurate to second order, but that it is symplectic. That basically means it preserves important symmetries of the Hamiltonian (which is basically the energy of the system, if you're a physicist you know the whole story and if you're not then you don't care). There's a result in mathematical physics, Noether's Theorem, which relates symmetries in the dynamical structure to conserved quantities. In this case, the crucial symmetry is time reversibility and the conserved quantity is energy. Time reversibility here means that if you take an inverse time step you will recover exactly the previous value state, up to second order.

TL;DR: Verlet integration and its energy conserving properties come from its reversibility, not from the specific dynamics.

10 points

If you want built-in multiseat handling with proper security lockdown (e.g., alice when logged into seat A can access the USB stick she has plugged into port X but not the camera bob has plugged into port Y on seat B) then systemd will be unavoidable. If you don't care about this, then old-fashioned boot scripts should remain adequate.

7 points

In KDE's case, a dependency on libsystemd won't be too invasive since it will be moving to core at some point soon and is inert unless the system was booted with systemd. Basically the app makes a call to libsystemd which says "sorry boss, no systemd running" and the app moves on to its legacy mode.

In Gnome's case, they're talking about using systemd's user instances to take over their session management.

This works. I use systemd's --user mode to start xmonad, nitrogen, xcompmgr, redshift, etc, on login.

4 points

First, run xrandr --listproviders and make sure that your primary GPU and auxiliary GPU respectively advertise Source Output and Sink Output in their capabilities. If so, cross your fingers and run:

xrandr --setprovideroutputsource <AUX_ID> <PRI_ID>

Where AUX_ID and PRI_ID are the ids listed for the appropriate GPUs.

If that works, you should see the additional outputs of the secondary GPU when you run xrandr -q.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.