Do you trust the police? (my response to Patel)

 

patel
http://www.gofundme.com/m757pw

The tragic story of Sureshbhai Patel‘s arrest and serious injury (partial paralysis) 1.5 weeks ago (on Feb 6th, 2014) resonates strongly with me for a few reasons, despite the fact that I am not Indian.

I am not here to discuss police brutality or white privilege or any of another alienating terms that people “know their opinion on.” I am here to discuss my personal feelings and experiences.

Here is the dashcam video of Patel’s arrest and injury, should you wish to judge for yourself.

fifty-seven

 

Patel is 57, around the age of my parents. I love my parents a lot. Although 60 years old seemed crazy old to me a few years ago (when I was a teenager), my parents are in good health and kick my butt in getting stuff done, including physical chores.

grandparents leaning in

 

I am friends with a Chinese couple (the husband works in biotech and the wife is a Harvard grad student) in my area. They recently had a baby, and their parents flew in from China to help take care of the baby. (I’m not sure if this is a thing in European cultures? but I think it is common in Chinese cultures for the grandparents to take care of the children while the parents works. See here and here). So immigrants bring this cultural mindset with them.

(By contrast, I’m an ABC, in other words I was born and grew up in the US, and find the thought of my parents taking care of my baby to be weird and unrealistic… Actually, I’ve instilled in myself a deep suspicion of babies, so the words “my baby” :s eww).

Like Patel,  my friends’ parents speak almost no English, but are by no means stupid. They (the grandparents) constantly invite me over for dinner and cook delicious foodstuffs for me, oh man, now I’m hungry. Sadly I can’t find any pictures of the food they cooked right now (possibly I don’t have any pictures). They always send me home with tupperwares of leftovers too. As a result, I’m quite fond of them, even if making conversation is a bit of a struggle due to language, cultural, and generational differences.

English as a Second Language

I’ve known from a friend’s experiences that simply not knowing English or not understanding it well enough / fast enough can get you arrested, even if you’ve spent decades in the US, worked your way up from being a dirt-poor immigrant, and now contribute to the US economy, pay your taxes, and are generally an upstanding citizen.

To get your record cleaned of an arrest when you did nothing wrong is still an easy few thousand dollars in lawyer’s fees. They did not benefit from police cams; they swept their arrest under the rug out of shame. Shame for what? Not being born in the US? Years later, it’s just something to be bitter about and not ever bring up again after dealing with it.

As a result, since a young age I’ve been open to the idea that our justice and policing system is not perfect.

Do I trust the police?  Unfortunately, instinctively I do not.

due to my aforementioned experiences.

I temper my gut feelings with the knowledge that I should look more into the research behind whether police are trust-worthy, since my personal experiences will only ever constitute a part of the whole picture.

global comparison

For instance, having visited other countries, I am able to get some prospective and understand that the US is pretty high up there in terms of standards of governance. In 2008, the US ranked in the 90-100th percentile in terms of perceived corruption:

http://en.wikipedia.org/wiki/Worldwide_Governance_Indicators
http://en.wikipedia.org/wiki/Worldwide_Governance_Indicators

Or from the world bank in 2013, with links to the methodology:

http://info.worldbank.org/governance/wgi/index.aspx#reports
Interactive version: http://info.worldbank.org/governance/wgi/index.aspx#reports

Personally, I’ve visited several other countries where, in broad daylight, police officers will deliberately lead you (tourist in car = people with money) astray or ambush you, waste your time and make you sweat, and then threaten you with a ticket unless you realize what is going on and pay them a bribe.

However,

None of these facts excuse us from working together to build more just and trustworthy social systems. Our rule of law in the US maybe be good, on average, compared to the rest of the world. But you or I could easily be caught in one of the “outlier events” and lose thousands of dollars, our mobility, or our life. Averages are small comfort then.

Thanks for listening.

Cinnamon 2.4.5 & Ubuntu 14.04: stop it from crashing & battery notification fixes (xmobar, cronjob, notify-send), fix pidgin

Cinnamon is a “desktop manager” that is visually similar to Gnome 2 while incorporating new features from Gnome 3. It does not have an official Ubuntu package.

key features

these are the reasons why I don’t use whatever came with Ubuntu 14.04 and sink time into my own setup

  • Edge Tiling and Snapping: I can drag a window to the sides tile it, or use Win-[arrowkeys]
  • Workspaces and hot corners: Allow me to add more workspaces, title them. Using cinnamon-settings, I put my hotcorner in the bottom right
  • Switching windows: If I have a lot open, “Expo view” lets me see open windows quickly (ctrl-alt-down)
  • Built-in panel applications: Supports the normal stuff (tomboy notes, pidgin, volume, notifications) as well as custom applications (pomodoro timer, timer). Cinnamon panel has its own “app store”-like interface (I don’t show it here) where you can add other people’s applications painlessly
  • Top panel (cinnamon panel): Shows me which windows are open in my current workspace
  • Big frequently-used icons: Using docky, I put my most frequently used applications to the left side and can easily see how many instances of each application I have open across all my workspaces
  • Search across applications: Similar to Windows 7, I can type in a keyword and Cinnamon Start Menu will pull up the appropriate program, so I don’t have to hunt for the command-line name for infrequently used programs

stop crashing

A few days ago, I accidentally updated my cinnamon install. I thereby spent the next half-day hating myself.

I had been using the nightly package from Gwendal Le Bihan. Upon closer inspection, that repo was discontinued. I tried to follow  http://www.omgubuntu.co.uk/2014/07/new-cinnamon-ubuntu-14-04-ppa-stable to upgrade my Cinnamon to a newer version, but cinnamon still flat-out refused to start (“Cinnamon crashed, would you like to restart Cinnamon?”).

Eventually, I installed Gnome 3 in a fit of trying out desktop environments that would be “good enough.”

$ sudo apt-get install gnome-session

When I rebooted, I no longer had any gnome options to select from, although the “user login” screen had definitely turned into some gnome 3 thing. But I could select cinnamon and it no longer crashed!

what. -___- Oh, the woes of linux customizations.

pros/cons

Upgrading did fix things. I no longer get lots of “Ubuntu detected an error in your system” pop-ups when I reboot. Tomboy appears in the panel again (yay!! I really like Tomboy). There is a “hotcorners” GUI editor now. Oh, and I have pidgin tray icon, except I have manually toggle it on and off for it show up instead of a blank space 🙁 (see https://bugs.launchpad.net/linuxmint/+bug/1325103)

EDIT: I fixed pidgin system tray notifications! Cinnamon > Panel Settings > Check “Use customized panel size”  & “Allow scale icons”. My top panel is set at the default font size.

If that doesn’t work for you, try this: https://pidgin.im/pipermail/support/2013-January/026238.html. I can confirm that editing the icons in “/usr/share/pixmaps/pidgin/tray/hicolor/16×16/status” changes the icons in cinnamon’s status bar.

Sadly, restarting is still slower than it should be, and feels even slower now. I swear when I first installed the SSD my boot-time was at least 5 seconds faster, which may not sound like much, but makes rebooting feel a lot less painful (for instance, when switching between Windows and Ubuntu, because **** xbees and their windows-only gargantun XCTU, that’s why)

My wifi will suddenly die for no reason, and I have to

$ sudo restart network-manager

Cinnamon itself will freeze sometimes, I haven’t figured out why. Then I have to Ctrl-Alt-F1, log-in, and run

$ sudo killall Xorg

My suspend still doesn’t work, so I just shut-down the computer (the fan is loud and I have perhaps forty minutes of battery life).

Shutting down takes on the order of a minute :/ I want to leave already. Also, my zombie computer’s fan keeps going & hard-drive monitor LED keeps going for several seconds after my screen blanks out on shutdown… :/

Worst of all, power management no longer worked. Not only did the battery indicator not update, my laptop would just instantly die with no warning when it ran out of battery.

This is because Cinnamon switched how it checked battery status: https://bugs.archlinux.org/task/39989

This looked promising, but I could not get anything to show up in my Cinnamon panel bar: https://github.com/robin92/cinnamon-power-applet

version info

$ cinnamon --version
Cinnamon 2.4.5
$ lsb_release -a
Ubuntu 14.04.1 LTS
$ gnome-session --version
3.12.1
$ docky
Docky version: 2.2.0 Release

create battery status indicator

This was straight-forward-ish. I used another program entirely,  xmobar.

$ sudo apt-get install xmobar

Cinnamon does not respect keeping xmobar on top (windows will cover xmobar), so I just stuck it behind my semi-transparent Docky (Theme: HUD), since Cinnamon never tries to cover up docky. Hence, the “fixed-width bottom left” position. I increased the font-size (to 20).

full battery
full battery. 100% = percent remaining, f = fully charged
xmobar-charging
charging
xmobar-notcharging
discharging

Then there’s a mess of battery commands — basically, defining the colors when high, normal, or low battery, defining the thresholds (% remaining) for high, normal, or low battery, and then defining the “acstatus” (charging/discharging status) characters — I chose “-!” to indicate discharging, “f” to indicate full battery, and “+” to indicate charging (xmobar does not support fancy unicode arrows by default).

The template goes “battery percent left” and then “acstatus”.

$ cat ~/.xmobarrc 
Config { font = "-*-Fixed-Bold-R-Normal-*-20-*-*-*-*-*-*-*"
, position = BottomW L 3
, bgColor = "black"
, fgColor = "#f3f3f3"
, commands = [ 
 Run Battery ["-t", "<left><acstatus>"
 , "-L","49","-H","75","--high","green","--normal","yellow","--low","red"
 , "--", "-o", "-!", "-O", "+", "-i", "f"
 , "-f", "ADP1/online" ] 20
]
, sepChar = "%"
, alignSep = "}{"
, template = "%battery% "
}

The last “template” line just adds a “space” after the battery template is rendered.

Oh, about the -f option, that’s another possibly ubuntu-specific or laptop specific thing…

https://code.google.com/p/xmobar/issues/detail?id=36

Q: In the git version of src/Plugins/Monitors/Batt.hs , in the haveAc function, we try to find out whether the computer is on AC power by checking “/sys/class/power_supply/AC/online” . On some computers this is instead located in “/sys/class/power_supply/ADP1/online”.

A: i’ve added a new config argument (-f) to specify the online file.

While you’re setting this up, you can use

upower -d

to check your battery state manually.

Finally, add xmobar to startup: Ubuntu comes with “startup application preferences” GUI. Click “Add” and put in command “xmobar”. Done!

create low battery warning

example notify-send notification
example notify-send notification

Thanks to http://unix.stackexchange.com/a/60936/14574. Essentially, I use notify-send to pop-up a low-battery notification using a shell script that I run every 5 minutes using a cron job.

It turns out cron hates notify-send so this ate up way too much time.

(I think crontab -e does persist across reboots by default, fortunately). I followed several guides, I’m not sure what exactly fixed it in the end, but here is my full setup for running the checker every 5 minutes:

$ crontab -e

*/5 * * * * sh /home/nrw/.notify-send_setup
*/5 * * * * sh /home/nrw/.battnotif

$ cat .notify-send_setup

#!/bin/bash
touch $HOME/.dbus/Xdbus
chmod 600 $HOME/.dbus/Xdbus
env | grep DBUS_SESSION_BUS_ADDRESS > $HOME/.dbus/Xdbus
echo 'export DBUS_SESSION_BUS_ADDRESS' >> $HOME/.dbus/Xdbus

exit 0

$ cat .battnotif

#!/bin/bash
export DISPLAY=:0
XAUTHORITY=/home/nrw/.Xauthority

if [ -r "$HOME/.dbus/Xdbus" ]; then
    . "$HOME/.dbus/Xdbus"
fi

battery_level=`acpi -b | grep -P -o '[0-9]+(?=%)'`

# I tried to only notify when not charging, but could not get it to work
# STATUS=$(cat /sys/class/power_supply/ADP1/online)
# if [ $battery_level -le 15 ] && [ $STATUS == "0" ]

if [ $battery_level -le 15 ]
then
    /usr/bin/notify-send -u critical "Battery low" "Battery level is ${battery_level}%!"
    echo 'batt low' >> /home/nrw/cron.log
fi

echo 'ran batt' >> /home/nrw/cron.log

Make sure to chmod +x the bash scripts.

boston winter 2015: it snowed a lot.

snopocalypse? snowmaggedon?

Jan 27 2015 snow
Jan 27 2015 snow

Here in Boston, it didn’t snow at all the last few months, and then suddenly it snowed a lot (90” over the last 30 days).

Here are some sweet graphs from http://weather.ou.edu/~splillo/misc.html

http://weather.ou.edu/~splillo/misc.html Samuel Lillo
Source: http://weather.ou.edu/~splillo/misc.html Samuel Lillo
BOS30snowp
Source: http://weather.ou.edu/~splillo/misc.html Samuel Lillo

On the plus side, I’ve now met my neighbors (since they’re outside shoveling for hours). At this point, we just throw the snow up as high as we can onto piles of snow. There’s nowhere to shovel to snow to…

20150211_030924
when the snowbanks are higher than you, where do you shovel snow to?

I’ve also made new friends and spent quality time with my roommates. We all co-work, since everyone is working from home because our city cannot handle the snow. *

20150209_185702

* I come from Georgia. My Boston friends were laughing last year about Atlanta shutting down due to a few inches of snow. WHO’S LAUGHING NOW HUH? 😛 My Alaskan friends tell me our Boston snowfall is normal for them, but their cities are built to handle it.

Here is a large icicle.

20150210_151307

It later fell and broke the railing/steps on our side-access porch. o__o Apparently, falling icicles do kill people. I’m glad no one died from our icicles.

Here are some more pictures of my poor bike. <3 bike, I will spend $$ and give you a professional tune-up after winter is over.

20150215_004425

Biking in boston is a struggle right now. The major streets are passable, but all the bike racks are very buried. For instance, at wework south station, they admonished me for locking to the railing I didn’t need to step in chest-high snow to reach. To add insult to injury, when I got out of work the railing was blocked anyway by trash bags. :/

bike at work on top of bike racks
bike at work on top of bike racks that are buried in snow

Here is my bike after the valentine’s weekend snowstorm. i left it overnight on top of a snowpile in order to lock it to something. When I left, I had a “where did I lock up?” moment. It was well-camouflaged.

20150216_202551

here are some pictures from my friends

mt. albany street snow farm

mt. mit, mt. simmons, mt. albany
back when it was “just” 3.5 stories tall.

mt. mit, mt. simmons, mt. albany, mt. cambridge, who knows

view from the top
view from the top

miters

There were some silly snow vehicles: fansled aka meloncraft, ebike-ski, and scooter-ski

For technical details / build reports, see

around the web

our mayor is flummoxed

Walsh: “I don’t know what to say to anybody anymore. Hopefully it will stop eventually”

Turns out the National Weather Service meteorologists are humans and not computers

“NEXT CHANCE OF WARMTH: SOMETIME SPRING INTO SUMMER:

Source: https://twitter.com/stannenb/status/566975835316690947/photo/1
Source: https://twitter.com/stannenb/status/566975835316690947/photo/1

“SADLY JUST CONTINUED EXCEPTIONALLY COLD WEATHER … NO END APPEARS IN SIGHT”

Source: https://twitter.com/BostInnoCity/status/567379898059485184
Source: https://twitter.com/BostInnoCity/status/567379898059485184

(i wonder why they have ellipses… AND ALL CAPS… is it for maritime radio, which I’ve now spent hours listening to … for their text-to-speech synthesizer… trivia, maritime radio weather reports have three voices since 2002… here are some voice samples via NOAA “Voice Improvement Processor” … listening to it brings up salty memories for me)

weather is happening

https://www.facebook.com/weatherishappening
https://www.facebook.com/weatherishappening

He just appeared on WMBR too. http://wmbr.org/m3u/Brainworms_Radio_20150213_1900.m3u at 24 mins in. If you want your daily dose of Angry Boston Weather Preacher Dude.

train through snow

https://vine.co/v/OP9YFebzX27

everyday i’m shovelling

MBTA quick reference map

Source: https://twitter.com/SaraMorrison/status/567111295552335873/photo/1
Source: https://twitter.com/SaraMorrison/status/567111295552335873/photo/1

Note: I dug out some of this from https://twitter.com/hashtag/BOSnow

highway signs with a boston accent

Source: 5wcvb ABS news? http://www.plengegen.com/blog/genetic-forecasting-cell-biology-experimentally-validates-functional-mutations-complex-disease-sequencing-studies/
Source: 5wcvb ABS news?

build a snow igloo, then rent it out on airbnb?

https://www.airbnb.com/rooms/5195545

Screenshot from 2015-02-17 00:54:51

PSA: Be careful. Turns out collapsing snow caves can kill you by asphyxiation. This happens when snow plows don’t realize it’s a snow cave instead of a snow bank and dump tons of snow on top of your cave. Then you die. So make sure to stick a flag with a picture of a human on top of your snow cave, and don’t make it on the side of the street.

weather forecasts

predicting the future is hard. here are some good websites to help you

howmuchwillitsnow.com

howmuchwillitsnow.com
howmuchwillitsnow.com

wunderground.com (great UI, graphs temperature forecast for you and you can hover over it for instance to check out the likelihood it will be raining at 1pm on Tuesday)

wunderground.com
wunderground.com

Add Media

weather.gov (links to the national weather forecast broadcasts)

Screenshot from 2015-02-16 23:37:42

sailing.mit.edu/weather/ (comes with webcams! very clean and detailed)

sailing.mit.edu/weather
sailing.mit.edu/weather

weatherishappening.com (if you like a dose of snarky with your forecast)

weatherishappening.com SNOBLOBS
weatherishappening.com
SNOBLOBS

here is a narwhal on a narwhal

to end on a happier note, here is some cuteness for you

narwhals on narwhals
narwhals on narwhals