Monthly Archives: October 2018

Week 3012

Hell of a week, friends.

Work

I’m writing from midway through a trip to Hyderabad to meet my work colleagues and help out with a DR drill. It’s been great. I’ve been able to get to know some great folks  better, eating amazing food and checking out how they get work done.  The DR test went off much much better than the last one, so our preparation paid off.

Trying to remote into a NY machine from Hyd to do work was way too laggy, so I went full local. An unforeseen benefit of my jumpstart script – I ran it and had all my tools and environment ready to go!

I’ve had a chance to go out for meals and meet people in our cafeteria – breaking naan with someone is a great way to get to know them. The cafeteria here is very impressive, but I’ve also gotten to enjoy a diner like Chutney’s and the crazy spicy food at Sahib Sindh Sultan‘s train car restaurant.

I also got to go out to see Niraval play at Tabula Rasa. Krishnan, the keyboardist, made sure I had a table down front for a bit – until the dancing started. Show was great, I drank and danced and had tons of fun until 4 AM out with the band afterward.

Got to go out and experience Hyd a bit even though mostly I’m just shuttling between the hotel and the office. The city, the traffic, everything is pleasantly nuts. Every single person I’ve met has been kind and helpful and really giving of their time. If anything, it seems like I get irritated at being overpampered.  People want to do everything for you, so it keeps you from just getting what you want. For instance, I want to have some coffee – but I have to ask someone to get it for me and it turns into a 3 person operation where in the end someone also adds milk to my coffee for me. On the other hand, here you can hire a  motorcycle to drive you right through the middle of traffic on a whim. Still haven’t gotten into a tuk-tuk yet, but the motorcycle ride is sweet!

Books

On the plane I finished An Unkindness of Ghosts by Rivers Solomon which was brilliant. The hero is a neuroatypical woman of color trapped aboard a titanic interstellar steampunk ship that’s racially stratified and she’s unraveling a mystery of death and power guided by the journals of her missing mother. Everything about this book was awesome and I was sucked in totally. I completely recommend this one.

Just recently I finished River of Teeth by Sarah Gailey which I wanted to like so much more than I actually did. It’s a western style adventure set in an America where the government seeded the Mississippi river with hippopotamuses. It’s got adventure, intrigue, a non-binary love affair, all sorts of things that sound interesting, but… I just never really loved anyone in the book. They all seemed like they showed up in a bad action movie where a narrator has to hastily explain their unusual quirks, background and skills. Like, there’s a demo expert, a knife fighter and a french master of disguise. And that’s mostly all they are.

Family

I miss them immensely. Every day I get a half hour glimpse back home with a google hangout video chat. Things aren’t going great – it’s been a hell of a week of hell for Sam. She’s  doing her best, but first Max got sick, then Z got sick. Max is also having problems at school. The teachers seem exasperated with him, like they are giving up on him to focus on the other kids because he needs much more individual attention. We really don’t want him to feel like school is a place that isn’t good for him, we want him to get a love of learning – but 2 teachers for 23 kids isn’t working well. We aren’t getting much feedback about how he’s doing or what we need to work on other than a brief conversation at the end of the day.

One of the reasons for weeknotes is to be able to look back on what’s been happening – how things shifted over time. It’s been a hell of a week. We’re creeping right up on the midterm elections and it doesn’t look good.

This week we saw the MAGABomber caught attempting to assassinate leadership of the Democratic party, a white gunman attempt to get into a black church then go kill 2 black people in a grocery store, a gunman kill 8 people in a synagogue and there are no consequences. The republican machine is calling the bombs fake or a false-flag, the synagogue was told by the president they should have had better security, and it’s all insane. The republican machine is proclaiming that only they can save your healthcare and the wave of Democrats needed to paralyze the government from doing more harm seems unlikely to happen. I’m volunteering and donating to the Great Slate, but I hope more people do as well.

I’m terrified that people aren’t taking this seriously enough. That if they aren’t directly confronted with something that impacts their lives, they won’t do something.

Week 3011

Getting ready for my first trip to Hyderabad!

Health

Been working on dragon flags and handstand pushups at the gym. Only 3 biking days this week :(. On the other hand, they were all good days. It’s cold enough now to break out the gloves here in NYC, so I’m looking forward to warmer days in Hyd for the next few weeks. I wonder if I can rent a bike there easily?

Family

One of the reasons for that: I got to take Max Lazer to go see Tinga Tinga. He got to see it, I just got to be part of the parental escort through the subways to Times Square. He handled it great, but it was amazing to see the way the teachers handle 22 kindergartners getting through the subway system.

Z is teething and it’s so tough on her. I hope it ends soon. On the other hand, I managed to get both kids to sleep in the same room at the same time on Wednesday and Thursday we got Z to sleep the whole night through!

My Kobo broke and I sent it off to be replaced, but I must have an e-reader for the trip so I am now the owner of a Kindle Paperwhite as well. As someone who’s now owned and used a Nook, Kobo and Kindle, I’ll write up my take on it. Should have some time on the 16 hours or so of flight time!

Code

Been helping folks at work learn some more advanced Python. I get excited every time I talk about list or dictionary comprehensions because they were a real light when I was learning python in the beginning.

You often need to transform data structures and the first way is usually to just iterate a list, construct new instances of something else, then pop them into a list of new things.

Say you have a list of cool coders you want to talk about.

 


from collections import namedtuple
Coder = namedtuple('Person', 'name login url')
cool_coders = [Coder(name="Grace Hopper", login="ghopper", url="https://en.wikipedia.org/wiki/Grace_Hopper"),
Coder(name="Ada Lovelace", login="ladyada", url="https://en.wikipedia.org/wiki/Ada_Lovelace"),
Coder(name="Jenn Schiffer", login="jennmoney", url="https://jennmoney.biz/"),
Coder(name="Nina Zharenko", login="nnja", url="https://www.nnja.io/"),
]

intro = "Here's a list of some cool coders and more you can learn about them: "

Maybe you want to produce a markdown sentence listing them.

coder_markup = []
for programmer in cool_coders:
    coder_markup.append( "[{}]({})".format(programmer.name, programmer.url) )
markup = intro + ", ".join(coder_markup)

Sure, that could be more complicated and have more changes or filtering that needs to be done. But what’s nice about a comprehension is that it helps cut down boilerplate and it makes things clearer.

coder_markup2 = ["[{}]({})".format(coder.name, coder.url) for coder in cool_coders]
markup = intro + ", ".join(coder_markup2)

And of course, if we were on python 3.6 we could make that even smaller by just using fstrings.

I’ve been using tmux pretty heavily, but now I get annoyed that on reboot I have to rebuild all of my workspaces. So now I’ve installed tmuxinator. It should be useful for setting up project/workspaces and then firing them up after a reboot.

Of course – I don’t just install tmuxinator. I set it so that it can auto-install on any account I’ve got with my jumpstart script.  If you know any cool tricks or experiences you want to share about either, I’m eager to learn.

 

Week 3010

Another combo because I’m late!

Here’s the The Owl from I Love You but I’ve Chosen Darkness

It’s rainy and dark and suddenly fall.

More riding in the rain.  Had to skip a day because I felt horrrrrible after the happy hour Wednesday night.

Sleeping poorly is the rule in our house as we struggle to figure out how to get Max Lazer and Queen Z to bed in the same room at a reasonable hour. It takes forever.  We think some of Max’s trouble in kindergarten is that he just can’t get good sleep at home anymore. So he goes in tired and can’t be his best.

I’ve got my visa for the Hyderabad Trip coming up and while I’m excited to go visit India I think my first trip will be almost entirely business – there’s a DR test that weekend so I’ll probably spend the whole trip in just the one city.

Going to our building’s yearly meeting for the first time in a while as NOT a board member. WOO!

Got to work on competitor pricing and take friends out to lunch to discuss. Also got to spend time with our R&D project plans for 2019.

 

 

Week 3009

VERY interested in trying to make a MagicMirror.

But I want to see if I can simulate it first before I buy a bunch of stuff to have around the house. So I’m trying to figure out how to emulate a  raspberry pi on Ubuntu and its a bit of a nightmare.

On the other hand I finally figured out how to remote into work on my linux laptop. Just for future reference:

  • downgrade to Citrix Receiver 13.8 – this gets you at least to a point where you just get a certificate error.
  • cd  /opt/Citrix/ICAClient/keystore
  • sudo mv cacerts cacerts.old
  • sudo ln –s /etc/ssl/certs cacerts

This is very stupid, but hey. At least I can remote in now!

I only got in 4 days of biking because I needed to go to a conference with Max Lazer’s teachers. They are working hard to find the best ways to help him.

So this was Thursday’s office:

Week 3008

Welp, I’m getting this in a bit late, so I’ll also put in some Music Monday.

But since the world is a pit, you get Cotton Eye Joe Gregorian Chant Nightcore Hardcore Dubstep remix. Do better this week, world! The Senate confirmation hearings for Brett Kavanaugh were a reminder of how little women’s pain matters. The guy is also clearly lying.

Code

My team won one of the 2nd place slots in the Hackathon as “Most Complete Hack”! We are talking about bringing it through to complete prod deployment.

Read up on Conflict Free Replicated Data Types which are a really interesting way to do mergable data structures. Underlies lots of interesting stuff like Redis.

Experimented with Mozilla’s Configman – the docs are NOT good enough, because they actually have a great drop in replacement for the standard ArgumentParser in there.

Bike

Got in all but 1 day last week. Rode in the rain 2 days! The first convinced me that I need to either own rainproof pants or just plan on riding in shorts in the rain. I bought a pair of Showers Pass transit pants and they worked great on Friday. Also got to randomly ride in with my buddy Lance again and reminded how nice that is.

Family

Zeebus is really smart and understands a lot of what we say! She picks things up and puts them where you ask, she understands that we need sleep, she’s got a lot going on upstairs.

She puts on Max’s bike helmet to let us know she wants to go riding!

When she slapped Sam hard in the face she realized she had hurt her- then Z gave her a big hug and patted her. That’s what Max does when he plays too rough with her!

Max and I did a really good hike together. We went a little crazy and climbed up next to a little waterfall and did some semi-safe bouldering nearby.  Max and I actually climbed way up a small cliff and got to the top. We also found a cool Puffball mushroom. But we didn’t eat it because we didn’t know how to tell if it was poisonous or not. (now we know and we’ll eat it next time!)