Comment Re:I dunno about LEDs, but CFLs don't last (Score 1) 602
I went through three different brands of CFLs in my bathroom before I learned that little detail as to why they all failed within just a matter of months.
More compact: tmux at -d || tmux
That merely detaches other sessions. It does not detach AND log them out, which is what screen -DR does. The only way I know to do a detach-and-logout is with the "detach-session -P" option.
Is there a tmux equivalent to "screen -DR" ? If so, I might try it out.
Not exactly, no. I REALLY liked this particular flag combo in screen, and it's the one thing that tmux doesn't do natively that I miss (but I still use tmux because of all the other happiness it brings me). I even opened a ticket on the lack of this functionality but the answer I got back was basically "I'm not looking to just emulate screen so exact functionality may not be added."
tmux has an option to detach other sessions when you attach yours, but it ONLY detaches. There is not a "detach AND log out" option when attaching a session. However, it does have a detach-and-logout function if you ONLY want to do that (not attach a new session at the same time). Basically "tmux detach-client -P" will detach and log out an attached session, but you'll notice there's nothing to attach your session at the same time. That's the crux of the issue.
Naturally, I'm not the only one that wants this functionality (and clearly so do you), so there is some kludgy ways to do it. The simplest is to create a bash alias (or alias in your shell of choice) to first do the detach-and-logout and then perform the attach-session. Something like this:
tmu() {
if tmux -q has-session -t tmux; then
tmux detach-client -P -s tmux
tmux -2 -u attach-session -t tmux
else
tmux -2 -u new-session -s tmux
fi
}
Basically, I just type "tmu" to run the alias. If the session named "tmux" exists, detach-client and log them out, then attach my current pty to the session. Otherwise, if the session does not exist at all (i.e., tmux server isn't running), create a brand new tmux instance with the session name of "tmux".
Not ideal, but it's the closest way to achieve screen's -DR option at current, at least with the version I'm using. Newer versions of tmux may be better; Debian by its nature doesn't use the very latest, of course, which is the distro (Wheezy) I use. I seem to recall that newer versions of tmux will create a brand new session via attach-session if it doesn't exist; my version requires an explicit new-session in order to start up a tmux server from a totally non-running state. So that could certainly simplify my alias a fair bit.
...(We don't have national performance yet, but that's no big deal; just take a $200 trip to California. It's still binding in every hateful corner of the South. The UK has no such privilege.)...
If only that were true, but no. You remember DOMA, right? The Defense of Marriage Act? It explicitly allows states to refuse to recognize same-sex unions performed in other states. That section of DOMA has NOT been struck down. Only Section 3 (which prevented the federal government itself from recognizing same-sex unions) was ruled unconstitutional. The rest of the act has not been struck down as yet, despite the big hullabaloo that happened back in the summer of last year when Section 3 got the boot.
Of the 29 states that have state constitutional amendments banning same-sex unions (and 4 more states that ban it by law), only two--Oregon and Missouri--actually recognize out-of-state same-sex unions. Missouri recognizes them for joint-file tax purposes only and nothing else, so really it's just Oregon.
So you could say we have "national observation" in the sense that the federal government now recognizes legal same-sex unions no matter where you live in the country, but unfortunately it is not "binding in every hateful corner of the South," since the states themselves don't have to recognize it. And really, the vast majority of benefits that come with marriage are state-level benefits, so the striking down of Section 3, while important, still leaves a whole hell of a lot to be desired.
$8 for a ticket. Where are you going? I might need to move there.
C'mon down to Central Texas. $5 matinee (anything before 6pm, seven days a week), $7 regular adult admission. Discounts for seniors, students, children. That's at a fully digital theatre too, 100% of their screens. Even better, most of their screens are 2D as they've found 3D isn't all that popular. They also offer online ticket purchase with no add-on fees; you can even buy up to a week in advance.
Sometimes it feels odd to realize a relatively small, somewhat pokey almost cow-town actually has good things to offer the modern world. We even have some of the best broadband speeds and prices in all of Texas. Maybe the town ought to be renamed Twilight Zone.
Software production is assumed to be a line function, but it is run like a staff function. -- Paul Licker