Jump to Navigation

Politics

xrayspx's picture

You know what, no, they don't

Music: 

Because if people could remember what 100 years ago Earth was like, they'd know that the best things to happen in the last 100 years are based around the idea that if we all work together, then when we're old, we will take care of each other. And when we're young, rather than work like adults, we will teach our children with the collective knowledge of our species so we can continue to advance. We can afford to take care of those who can't work like the rest. Too much of the time, we choose not to take care of those people.

xrayspx's picture

Do people really not understand how good things are?

Music: 

One thing which has bothered me as much as anything about the right wing populist uprising this year is that if people could even remember to 100 short years ago, literally zero of what they see as their daily life to which they're entitled even existed.

xrayspx's picture

James Bond Accidentally Killed Democracy

Music: 

It's the best I can do folks. This is the most obvious, if accidental conspiracy I can think of.

Fixed Tags:
xrayspx's picture

2016 Third Party Voters

Music: 

In 2016, a vote for a third party is a vote to legitimize Trump's fascist vision.

As I sit here watching a Donald Trump rally, and my fellow Granite Staters chanting "Build That Wall" while a stream of consciousness volley of nonsense, lies and unconstitutional threats comes out of this horrible man, I'm reminded of exactly how close the race is here in New Hampshire.

Far from being utterly repudiated, we're looking at fairly even poll numbers in New Hampshire. Think about that.

Fixed Tags:
xrayspx's picture

KRS-One in Manchester

Music: 

Clearly I need to post more music stuff, last night we went to KRS-One.

... and it seems that my camera has fucked every photo I've taken in the last month. So enjoy oddly-cropped KRS-One:

"Mic check, mic check, louder, louder more! more! ('Turn them shits up!') whoops, shit, no power":

"But no problem, we don't need power":

Temple of Hip-Hop:

xrayspx's picture

Simple location aware ssh tunneling for Chrome (Mac)

Music: 

Hall and Oates - Private Eyes (Seriously, it just came on randomly)
and really, just as I finished formatting the stupid script, Big Brother from Humanwine was playing.

This is both a nice toy to have in a Big Brother Is Watching sense, and a glaring example of why one should never log in and use a Mac (or any other system obviously) as an Administrator. Just have a Regular Guy account, and escalate to Administrator/Root when needed. For example, this tool could be inserted by a script to cause all your browsing traffic to route through a proxy server of an attackers choosing. If you're not running as an Administrator, you can't write the file without escalating. (Example of the risk, though it wouldn't help here, since there is LCE to root...goddammit Apple...)

I had a use case recently where I wanted to have multiple copies of Chromium start in different profiles and with different proxy settings. I'm getting to the point at which I don't think that's really feasible, in that any new instance will assume the proxy settings of any already running instance.

BUT, I did get some cool location aware-ish proxying set up. Since one use case involves laptops, I'd like to see it use a local proxy when I'm home, and a remote proxy when I'm not at home (hosted VPS for instance).

I'm using ssh to set up a SOCKS5 proxy, and push all traffic including DNS through the tunnel, ssh'ing to different hosts based on different local system IPs. I have it checking en0 and en1 and if their IPs match my home subnet, it ssh's to a local system, if they are anything else, it will run against a publicly hosted system to which I can ssh.

Next step is to clean up after itself, so when you run Chromium (or Chrome), it will detect IPs, ssh to the appropriate host, and connect using that tunnel. When Chromium closes, it cleans up the SSH session so it's not just hanging around.

To use - Have a local and remote host you can ssh to using keys, and which allow you to forward. On the Mac, navigate to /Applications/Chromium.app/Contents/MacOS/. Rename Chromium to Chromium-bin. Drop this script in, chmod appropriately, and name it Chromium. Now when the Chromium app is run, it runs our script to set up proxies and launch the browser:


#! /bin/bash

ip0=`ifconfig en0 | grep -v inet6 | grep inet | awk '{print $2}' | awk -F "." '{print $1"."$2"."$3}'`
ip1=`ifconfig en1 | grep -v inet6 | grep inet | awk '{print $2}' | awk -F "." '{print $1"."$2"."$3}'`

if [ -z "$ip0"  ]
  then
   if [ "$ip1" = "192.168.30" ]
     then
       ssh -C2qTnN -D 8181 username@192.168.30.241 &

       proxypid=`jobs -p`
       /Applications/Chromium.app/Contents/MacOS/Chromium-bin --proxy-server="socks5://127.0.0.1:8181" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1" --profile-directory=Tunnl 2>&1 /dev/null

       kill $proxypid

      else

        ssh -C2qTnN -D 8181 username@publichost.com &

        proxypid=`jobs -p`
        /Applications/Chromium.app/Contents/MacOS/Chromium-bin --proxy-server="socks5://127.0.0.1:8181" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1" --profile-directory=Tunnl 2>&1 /dev/null

        kill $proxypid

      fi

  elif [ "$ip0" = "192.168.30" ]
    then
      ssh -C2qTnN -D 8181 username@192.168.30.241 &

      proxypid=`jobs -p`
      /Applications/Chromium.app/Contents/MacOS/Chromium-bin --proxy-server="socks5://127.0.0.1:8181" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1" --profile-directory=Tunnl 2>&1 /dev/null

      kill $proxypid

  else

      ssh -C2qTnN -D 8181 username@publichost.com &

      proxypid=`jobs -p`
      /Applications/Chromium.app/Contents/MacOS/Chromium-bin --proxy-server="socks5://127.0.0.1:8181" --host-resolver-rules="MAP * ~NOTFOUND, EXCLUDE 127.0.0.1" --profile-directory=Tunnl 2>&1 /dev/null

      kill $proxypid

fi

xrayspx's picture

Hmm. So that's how it is in their family

Music: 

Shriekback - Malaria

TL;DR: Here is how to restore DJ to iTunes, as much as possible

A few months ago, Apple maliciously broke iTunes in several really specific ways, one of which was to drop the DJ functionality, which is basically how I would listen to music.

Reading a thread on JWZ's site this issue, among others, I posted my somewhat-fix for the issue. And it is. A "somewhat" fix. It acts pretty much like DJ used to act, but for two problems. You can't drag things from a window with your whole collection into your "DJ" window (Cause hey, ONLY ONE WINDOW NOW), and besides, I had to create a Smart Playlist to fix it, and you can't add to a smart playlist anyway. There is "Play Next", which I guess works.

My other main gripe with this is that when I hit Next to skip a track, usually it removes it from the top of the playlist, but often enough to annoy the fuck out of me, it doesn't, and I have to go back in and clean up the top of my list a few times a day. Worse, songs I've skipped will come back up in the mix sooner than I would otherwise want them to, since iTunes doesn't know I've skipped them.

I remember reading somewhere that there was a discussion once about how to make iTunes mark something as "Skipped", or at least what the secret parameters are that cause things not to become "Skipped". So tonight it annoyed me enough to hunt around, and of course, the very first hit was back to a different JWZ post from exactly three years ago this week, complaining about this exact skipping thing.

Of course he didn't get a satisfactory answer, because he almost never gets a satisfactory answer to exactly what he asked. It looks like if you skip between 2 and 20 seconds into the song, and don't hit pause ever, it will show as Skipped. Neat.

His Herp Derp checkbox was the only thing that made any of this sane for me in this case.

To mostly restore iTunes DJ, do the following:

Click + at the bottom left of the iTunes window and create a new Smart Playlist. I named mine "DJ-ish".

Match All of the following rules:

  • Last Played not in the last 1 days -- Or however long you want to go between repeats
  • Last Skipped not in the last 2 days -- This will make iTunes clean up most songs you skip using the Next button.
  • Limit to 100 items selected by Random -- or however many upcoming tracks you want it to pull at a time
  • Match only checked items -- Unless you want iTunes to randomly play songs you've explicitly told it you don't want to hear by un-checking them
  • Live Updating

It's pretty simple to get most of that functionality back, but you know what would have been simpler? NOT REMOVING IT.

xrayspx's picture

Salman Rushdie at Portsmouth Music Hall

Music: 

A change of pace tonight. A few months ago, we saw Salman Rushdie speak and do an interview as part of the Writers on a New England Stage series presented by NH Public Radio. He gave a brief reading from his recent memoir, Joseph Anton, followed by an interview.

Listen Here

Fixed Tags:
xrayspx's picture

Scurvy Fundamentalists React To Tragedy

Music: 

This week we've had a massive tragedy. Dozens of innocents killed in the most callous way possible. Everyone, everywhere very, very sad.

Except for those devoutly religious enough to bring their unique view to the whole event. I've been reading statements to the effect that God did not intervene because he is polite enough not to go where he isn't welcome. That the answer to this is that our children should pray before every school day, also, More Guns.

Fixed Tags:
xrayspx's picture

The Coup & People Under The Stairs at the Middle East, 12/5/2012

Music: 

DEVO - Smart Patrol/Mr. DNA

Go Here:Read an interview with Boots Riley, by old friend and excellent writer Tom Andes. -- @The Rumpus

A very happy confluence of events led me to lie to Chris Portugal at The Coup / People Under the Stairs show. The first thing that had to happen was that the original venue for People Under the Stairs had to be unprepared to open. That venue is the Sinclair in Cambridge. It's apparently still not open as they're shuffling shows to TT's and the Royale.

Pages

Subscribe to RSS - Politics


by Dr. Radut