All posts by MattK

About MattK

I like you.

Week 3007

I’m writing this one bushed after 24 hours at the company hackathon. Most of our developers are in HYD, so our hackathon starts at 10:30pm Friday and ends 10:30pm Saturday.

Right now we are all done with our deck, the app is finished, we’ve polished everything we can and we don’t want to touch anything in case we break it. So it’s a strange calm.

Another 60 miles on the bike this week and feeling fine. In the gym, we’re working on handstands. Zelda is growing smarter every day, Max suddenly started saying his “R”s like an American instead of a Brit.

I gave Sam a day to travel to Coney Island with Jeremy Fox on friday while I watched Z. Only fair because I’m spending 24 hours away from them.

Speaking of Jeremy, we got to go out and drink and play nerd games and it was SO MUCH FUN. Got to introduce him to another friend who’s out in LA, Dewitt. Hope they actually meet up and hit it off.

Week 3006

Work

We are  having a hackathon! I’m excited.  Its my first since Music Hack Day NYC. We’re going to try out Amazon Lex, Lambda, and some containers.

Some folks are already using my code for working with ELK, so that’s nice.

I’ve been focusing around automating my testing and such, and I really am centering around just learning to write better makefiles. Make is installed everywhere, like vim and other things I like. It just works. And makefiles do almost everything you want. The downside is that it is an ugly syntax. The upside is that if you learn one ugly syntax, you don’t need to learn everything about Rake, Yarn, etc.

Around the web

Best Practices for Staging Environments – this article by the excellent Alice Goldfuss came up at work as we wrestle with big calcs and datasets for our clients.

Why you hate Contemporary Architecture – This is grrrreat. One little note for the computer nerds. If you’ve heard of the Gang of 4 Design Patterns book, read the article and come back. The Design Patterns book was based in part on Christopher Alexander’s “A Pattern Language” which is a great guide to things that seem to work in architecture.

I discovered two things that similar to a POC I was working on (voracious-etl)

  • Datasette provides a readonly JSON api for any SQLite DB.
  • Dataset provides an ORM for any CSV or JSON file

The plugin system at the core of pytest is a library: Pluggy. I like that and I might use it earlier.

A good podcast: Flash Forward. Explores a new future every week. The most recent focuses on fungal enslavement, which I love. If you like that one, I highly recommend the mindblowing Parasite Rex by Carl Zimmer or Sensation by Nick Mamatas

 

 

Politics

None of the big progressive candidates made it in the democratic primaries. Cuomo still won. Tish won, which is OK. However, I see that  some progressive candidates made it through.

I hope they can do some real work and win in November. I’ll be calling and doing work to support them.  I long for a day when I can start moaning about free speech vs hate speech and trying to reign in some liberal excesses. However, right now, the work has to get done.

I also note that children are still in cages and parents are getting deported without hearings, but it isn’t in the headlines anymore. I’m still pissed about it. I’m still pissed that the probable governor of NY seems to only work for progressive issues when pushed and won’t use his clemency powers.

Exercise

I biked around 37 miles this week! Had to take off Monday and Tuesday due to rain and being pretty sick. But otherwise, I rode in. Got to stop on Christie street and help a guy who’d been knocked down by a cab.

Worked to a slightly lower pistol squat and my butt hurts sooo bad. Also, my dragon flag work is getting better. I can kind of hold it.

I started doing partial handstand pushups against the wall and they feel pretty good. I can do 5 at a time part way down and up. Next I’ll try lower and lower, then try freestanding ones.

 

Week 3005

Family

First day of Kindergarten for Max Lazer! It didn’t go great.

Even though we had sent over emails with his IEP, the teachers hadn’t read the documentation for the first day of school. They are very nice, but it was a tough transition day for him. After you drop off kids, all the parents get herded out to the auditorium to get welcomed to the school. I saw his teacher later coming down the aisle to talk to an assistant principal and I knew it was going to be for us. It was. I ended up working from the hallway after calming things down in the classroom. By the end of the day, everything was fine, but what a start. Second and third days were better. I don’t see him participating much yet, so I’m worried that he won’t be getting what he needs.

A young iggy peck makes buildings

These are great buildings – but the rest of the kids are writing things.

I believe he is learning and exploring and thinking, but I’m also worried that he’s dominating the teachers. Do they have the bandwidth to deal with his will and the other children?

Bike

Not much biking! Not because I got hit by a car last week, because it was the first day of kindergarten for Max and there was labor day off of work. Only 24 miles this week.

Z-Ray is now trying to teach herself to ride a scooter. SLOW DOWN GIRL. You just learned how to walk!

Work

Still adjusting from my default setting of an internal technology advocate for clients to a relationship manager. My job isn’t just to make clients happy, it’s to help them understand and prioritize what they want. I’m a few months in and still navigating where is support vs building.  It’s a lot different from being an internal technology team and I often have to adjust my headspace.

Also, I internally released a little tool for working with ELK searches directly in Python. I’ll work on seeing if we can accelerate our open source program so that I can release it out in the world.

I’m also now part of the group leading some changes in how we handle our python stack and our api libraries, a subject very dear to my nerdy heart.

 

Week 3004

Z-Ray is walking like crazy now. Her tiny feet are hilarious and she now just toddles everywhere. This morning she just ran into a room and hugged me.  She brought me my shoes!  She definitely understands when I ask her to put her shoes into the shoe bench.

I love her so much I want to squeeze her for hours.

Max Lazer is going to kindergarten next week! He’s not excited yet, but I think he’ll love it. Just got a call that his ear is large and swollen, but hopefully he’s ok. We’ve been reading a lot of choose your own adventure – I like that he’s seeing how different choices control consequences. When Z cries, he’s very loving and helpful and is doing his best to comfort her or distract her.

Code

I’m thinking about how we will enhance our python support at work. As part of that I’m researching better ways to standardize configuration of objects.  You want to be able to initialize an object foo from a class Foo.

class Foo(object):
    def __init__(bar='baz')
        self.bar = bar
foo = Foo()

print(f"bar = {foo.bar}")
# "bar = baz"

Swell!  But some people may think that bar should be set to “bazzz”.

foo2 = Foo(bar='bazzz')
print(f"bar = {foo2.bar}")
# "bar = bazzz"

Easy enough. But what if I work in a place where we need to change hundreds of uses of bar among tons of different scripts and applications and whatnot?

I may want to get it from an environment variable automatically on startup. Or maybe I work in a place where we like configuring things with a .env file. Or a settings.toml.

Or maybe we want to just this once pass it in as a commandline parameter. Flexibility is really good to have.

Ideally, we can say there’s a hierarchy.

  1. A parameter passed into the constructor is the highest priority.
  2. An environment variable is the next.
  3. A config file is the next most concrete. (I could be convinced to switch these, but as long as there’s a consistent pattern, it’s good enough)
  4. The default value of the parameter in a constructor if there’s not other choice.

There are lots of good libraries out there for achieving this, at least partially. Ideally, I think I’d want to have either something we can apply as a class decorator or as through multiple inheritance.

Some good python configuration libraries I came across that I really like:

For my problem with dreamhost, I’m making progress and have been able to get a set of forward rules pretty much ready. I’m hoping to publish it pretty soon.

I don’t think I’ll get around to auto fixing the mailbox filter rules though.

Reading

I got my Kobo back after it fizzled. I’ve missed having an e-reader so much! I did get to read “The Moon is Down” by Steinbeck because we had a paperback on our shelves, but it’s so nice to be able to read a book in bed or in the bath or in the dark while a kid settles down. It’s also nice to be able to just squeeze in A Road to Common Lisp in between things because of the integration with Pocket.

Bike

Only 50 miles this week. I skipped a day because there were some team drinks on Tuesday.

I also was gently hit by a car. An Uber driver pulled into the bike lane while I was riding to drop off his passenger. As it was happening I was pounding on his window and yelling stop. I was powerless, a thing I’ve known intellectually but I never really believe. He didn’t stop, he knocked me over. I ran up to his window and explained that I am a person, that people die this way and that my children want to see me. I’m fine. Scrapes and bruises and a tendency to replay it in my head.

It spurred me to donate to Transportation Alternatives. They advocate for better laws, for protected bike lanes that don’t get used as parking spaces. For bike lanes that aren’t truck unloading zones. Things that can really save my life and help me get home.

I also finally replaced my speaker.  It’s louder, but I’m not sure how awesome.  It’s designed with push buttons instead of a volume dial, it fucking talks to you instead of doing things and it isn’t clear what it’s doing. Physical interfaces are SO MUCH BETTER than this. On the other hand, it is louder and my old one was broken.

Politics

A good thing you can do about weeknotes is talk about what is going on in the world so you can notice slow changes and not think things were always the way they are.

The government has started confiscating passports from US Citizens who are Latino. There are a very small number of cases where some midwives fraudulently filled out birth certificates. This is the pretext that a racist administration is using to attack Hispanics. Midwife births are more common for those who cannot afford hospitals or who live in areas that are too poor to support a hospital. This is not a thing that started under the current administration – but the character of what is happening has changed.

I am renewed in my determination to work continuously to replace these terrible people with less terrible people. I would love to do that with you! If you wonder what you would do in a time of crisis, the answer is that it is what you are doing right now.

Boob sweat

My buddy Dawn Hunter is smart and charming as hell. She is working on a startup that helps with sweaty ta-tas. I’m no expert, but for people that have boobs and want more comfort with them, she’s writing tips on managing boob sweat and gathering interest from people who might want a product. Get in touch with her!

Week 3003

Things are a bit calmer this week.

Work

Got through delivering a few projects and now I’m talking with my folks about getting a team into the annual Hackathon – maybe doing a chatbot.

Also talking about ways we can get better and faster at responding when things go wrong and how we can not fail at support. Pushing our goals a bit there.

Also in talks about visiting our remote teams, working from India with them for a bit.

Nerd stuff

As part of getting things working in tmux, I thought it would be nice to not only have test scripts running using entr, but to also see what’s going on with the machine I’m running, maybe in a corner pane. I installed python glances and I realllllly like it! It adapts really well to different resolutions.

a gif of python glances on ubuntu

Bike

Another full 5 days of bike commuting! Another 60 miles!

I had to get my brakes fixed – and City Bicycles was super nice. Charlie works the front desk looking like a super nice tiny Slash and we lost track of time talking about riding and music and New York.

Slash from gnr
This guy fixed my bike but smaller and skinnier and nicer.

Gym

A photo from Mark Rippetoe's Starting Strength showing bad squat form captioned "Don't do this, you fool."
My brain, right before I do this.

I’ve been working on a dragon flag. Negative isn’t looking too shabby! Christina took a video:

Family

Max Lazer is being super creative. He’s been designing little video game maps on paper full of traps and zombies and bombs and portals. We get pens and work out how to get to our destination and win. It’s tiring and awesome and I love him.

Zelda is all kinds of tempermental! She’s gotta be teething. It’s lots of crying and cuddling and wah wah. On the other hand, she’s really playful and mischievous and working hard on her walking. She just gets up and stomps around a bit – but she really wants you to hold her hand.

Also, the biggest joy is seeing them play with each other.

On the web

I’m constantly thinking about quitting twitter. I quit facebook and have felt great about it. I hate that twitter is so welcoming to racists and awful people. I really like the non-awful people on it. If @jack is so welcoming to white supremacists I don’t want to be part of his business.

On the other hand, I like finding gems from Robin Sloan:

https://twitter.com/robinsloan/status/1033011549818970112

And I discovered Naomi Wu who made me think in much broader ways about western takes on feminism and maker culture biases and @xlnbwho got me thinking even more about my unconscious biases and on and on and all the smart good folks are so good.

As Carly Leinheiser put it, these places are hard to shift from. It’s that shitty bar you go to because your friends are there. And now that my friends aren’t at Floyd, I don’t go there.  I’m probably going to give Mastadon a go for a bit, but maybe I’ll just go back to emailing and blogging here and sign up for NewsBlur which looks like the greatest thing since google reader.