Don't feed the troll

In internet speak, “to feed the troll” means to try to engage people online who are just trying to stir up discord for no other reason than to provoke people. Trolls are almost always insecure, psychologically-damaged people, if not full-blown psychopaths who lack the usual social barriers that most of us possess. Thus, a common piece of advice tossed about on the Internet is: “don’t feed the troll.” This is sound advice.

A useful corollary might be: “Don’t elect a troll.” But that’s already done, so we’re left to deal with a Troll-in-Chief. Trump can be engaged on two levels: 1) By reference to his policy decisions (which in less than two weeks have thrown the world into chaos), or 2) By reference to his childish, impulsive, ill-informed tantrums on Twitter. I’ll explain why constraining our responses to his policies is the best best.

Trump is not a politician. Judging by the fact that his personal ventures have failed to beat the S&P 500, he’s not much of a businessman either. So what exactly is Mr. Trump? He’s a showman of course. He has a pathological need for attention. Attention for Mr. Trump is an addiction like mainlining heroin. He is an arch-narcicisssist who stirs up shit on Twitter not only because he’s an angry man but also because he likes the dopamine spike when people respond to his countless micro-tantrums. By responding to his vacuous mean-spirited tirades, we the people along with the media are simply enabling an addicted, very impaired man. We must stop feeding the troll. When he publicly mocks an esteemed U.S. Senator who lost relatives in the Holocaust as he did with Senator Schumer, we need to restrain the impulse to report it or fire back. Only by interrupting the positive feedback loop do we have any hope of staying focused on priorities. After all, sticks and stones may break my bones but words will never hurt me. (Well, at least not directly.) Trump-the-Troll is going to say whatever he needs to say in order to get attention. Where does it end? Trump calling in the nuclear codes because he’s tired of being compared to a Cheeto? It’s time to starve the troll of the attention that fuels his impulsive blathering.

But more importantly, we must not feed the Troll-in-Chief because it’s a side-show. While we and the media are attending the carnival of trolls, the real architect, the real Goebbels, Bannon is working up some serious white-supremacist, Nazi-style mischief. The main attraction isn’t the Troll himself. The Troll is simply a distraction. While we’ve got our eyes on the Troll, Bannon is busy dismantling the foundations of the Republic.

Progressives have to become laser-focused and disciplined. We can start becoming more disciplined by starving the Troll of the attention he desperately craves.

AppleScript and iTerm2

Among the many reasons I use iTerm2 in lieu of the macOS Terminal is its AppleScript support.

I recently had the need to automate some tasks on my Amazon Web Services EC2 server in a way that takes advantage of iTerm2 AppleScript functionality.

Use case

I’ve found recently, that my screen sessions were disappearing. Although I haven’t completely excluded other causes, some have suggested that infrequently-reconnected sessions can be cleaned up. Since I’m not a Unix sysadmin, I’m not sure about this. However, I decided to test the hypothesis by writing an AppleScript that logs into my EC2 server, attaches to each screen session, detaches and closes the connection.

screen escape sequence implementation

The trickiest bit to solve was the ^A escape sequence that screen uses. Here’s how I solved that part:

key code 0 using {control down}
delay 1
keystroke "d"

By wrapping that in a subroutine, I was able to automate the detachment from the current screen.

Full implementation

The complete implementation just loops over the screen session ID’s, attaches and detaches then finally logs out and closes the window. I use LaunchControl to have the AppleScript run every 2 hours.

--
--	Created by: Alan Duncan
--	Created on: 2017-02-02
--
--	Copyright (c) 2017 OjisanSeiuchi
--	All Rights Reserved
--

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

set screenIDs to {5546, 5208, 5129, 5580}

tell application "iTerm"
	set newWindow to (create window with profile "OjisanSeiuchi EC2")
	tell current session of current window
		delay 3
		repeat with screenID in screenIDs
			-- attach to this screen session
			set screenCommand to "screen -r " & (screenID as string)
			write text screenCommand
			delay 2
			--	detach from the session
			my detach()
			delay 1
		end repeat
		write text "logout"
		delay 1
	end tell
	close newWindow
end tell

--	detaches from the current screen session
on detach()
	tell application "iTerm" to activate
	tell application "System Events"
		tell process "iTerm2"
			key code 0 using {control down}
			delay 1
			keystroke "d"
		end tell
	end tell
end detach

We’ll see if this solves the problem of screen sessions disappearing.

Law and order

“The Trump Administration will be a law and order administration.”

- whitehouse.gov January 25, 2017

NYT: Women who voted for Trump

Some insight into women who voted for Trump.

“I think he’s a really good man, deep down. This guy has such potential, and I truly believe he cares about our country and wants to help everyone.”

Well, by everyone, you mean “those exactly like me.” Actually, how about “just me”.


“But I had an 8-year-old who was totally on the Trump train. He talked me into taking him to a Trump rally.”

Trumpku No. 1


vicious neurotic,
blue blood coursing in black heart.
eyes piercing with lust.

Scripting Indigo with Python

I’ve used Indigo home automation software for a few years. It’s a integrated home automation software environment for the Mac and its a solid stable and well-supported platform.

Within Indigo, it’s possible to script triggers and actions either AppleScript or Python. It’s funny - AppleScript often looks like the easier route to take. It looks more like plain English than Python. But as they say, looks are deceiving. Two bits of bad news put the nail in AppleScript’s coffin for me - as least with Indigo.

Going "low information"

In the wake of Donald Trump’s victory in the U.S. presidential election, Republicans are taking the opportunity to scold progressives about living in an echo chamber and failing to take a moment to sample thought patterns of the Right.

Well I did, but I came to the conclusion that most is still complete rubbish. In fact, according to Sturgeon’s Law, 90% of everything is crap. So don’t take it personally.

Extracting mp3 file from web page with Python and ApplesScript

As I’ve mentioned before I use Anki extensively to memorize and practice Russian vocabulary. With language learning in particular, adding spoken pronunciations to the cards makes an enormous difference. Since I use Open Russian extensively to provide information to built my Anki cards, it’s a natural source of audio data, too. To optimize my learning time, I built two small scripts to grab and rename the audio files from the Open Russian site. First, I’ll describe my workflow.

How to tell if you're being pandered to

You might be the subject of political pandering if:

1. Fear, uncertainty, and doubt are the main tricks in the politician’s kit.

A politician who never tires of scapegoating a feared group, or a feared outcome is undoubtedly pandering. Or a demagogue. Or both. Whether it’s Mexicans, or Jews, or Muslims, or gay people, they never seem to stop talking about why you should be afraid of someone or something.