Tuesday, April 11, 2017

Ego is the enemy of great work

Today coincidentally I listened to two strong podcasts that highlight the enemy of great work. Not fear, but EGO.

In the first talk Andy Molinsky talks persuasively about how to move forward in your career when everything is overwhelming and/or you're an introvert. Example: you have a small business and you feel uncomfortable 1) meeting new people, and 2) promoting yourself. Of course, with a small business, a huge way to get your name out there and to get new clients is to go to "business mixers", where talking to strangers about how great you are is all you do.  His solution is simple and direct: define "success" before you go into a challenge, and repeat to cement incremental progress into large gains over time. Example: define "success" as making one contact in small business mixer, so you can talk with that person later.  Then, schedule yourself for another mixer. By doing these two things over time you learn quickly, expand your comfort level, and adapt yourself to having a running business with lots of contacts.

The second talk very much overlaps with the essential book "War of Art". It's too easy for us to say "I'm great, but I won't bring everything I have to this project until X", where X is something arbitrary. For example in one project I disengaged because I expected someone else to integrate my work into the overall system, whereas management expected I'd learn how to deploy my own work. My ego slowed down my growth in that job.  Todd points out that this behavior is pure ego and self-defeating.  By bringing everything you have to each project, you have the capability and resilience to do great work at all times.

Both of these podcasts are highly recommended!

Radio Free Leader: Stepping Outside Your Comfort Zone with Andy Molinsky

Accidental Creative with Todd Henry: The 3 Letter Word That’s Robbing You Of Great Work

Wednesday, March 22, 2017

podcast: advantages of meditation

lots of great ideas and info in this podcast on the advantages of meditation. Sam Harris interviews Joseph Goldstein.

Tuesday, March 21, 2017

new short talk: Distributed Processing

My new talk is about different processing tradeoffs, using good old Unix utility xargs, Python multiprocessing, gevent, and some distributed processing tips.  Also: tonight there's a seekrit announcement -- watch this space, and/or follow me at @JohnTellsAll

Talk URL is http://bit.ly/jta-dist (this page, which will receive updates)

Slides are in Google Docs

Sunday, January 22, 2017

Favorite podcasts

I listen to a lot of podcasts. Some are moderately heavy and technical, some are lighter stories and just for fun. Many encourage me to be a better person, or help me to move forward to achieve my goals.

Here are a few favorites:

- 99% Invisible: this podcast is fun and interesting!  Their specialty is "intriguing design of everyday things", often architecture. Recently they had an episode of mini-stories, one on the design of the standard ("Snelling") eye chart. It turns out everyone uses it because it's easy, but not because it's the best. It's easier for the doctors, but not necessarily for the patients, it's not as accurate.
Another mini-story was about "copyright traps" in maps. Map makers spend a great deal of time and effort on their work, so they insert fake towns into their maps.  If another map copies their work, they'll copy the fake town, so they'll get busted for copyright violation. In one case people set up a few businesses and homes in a new area. They looked up on the map what they should name their town, they saw a name, so they used it.  A "fake town" became a real one!

- New Stack Makers: As an "expert on quality dev and devops"*, I keep up to speed with what people are doing in terms of web server systems. The trend in the last few years is for containers, specifically Docker containers, and also microservices.  These tools give us power and flexibility at the expense of making things explosively more complex. This podcast helps me stay up-to-date on what practical steps people are making to create, manage, update, and simplify their server infrastructure.

- Entre Leadership Podcast: Again as an expert, commonly I find myself in a leadership position. Generally I'm the most senior person, so people look to me for guidance and perspective. This is a challenge for my enlightenment and humility, and I take this role seriously. By listening to this and other leadership podcasts, I learn how to side step my ego and help people come up with their own plans, execute them, and get feedback.


Tuesday, December 20, 2016

Using multiple worktrees with git

Modern development with Git is great. It's really easy to work on a feature branch, make changes, undo changes (oops), and share work with colleagues. However, there are challenges. If I'm running tests on my local "beer" branch, I can't easily switch over to the "gin" branch to edit code. The local environment only has one feature branch checked out at a time. I can run tests, or add code, or switch branches, but I can't do two things on two different branches at once...

But now I can! Thanks to Manoj Mahalingam S, I know understand the "git worktrees" feature which lets you easily use multiple branches at the same time. Thanks, Manoj!

Using multiple worktrees with git

Friday, November 4, 2016

TIP: recover file from old Git branch

In cleaning up my source code I realize I was too... aggresive in my house cleaning. I deleted a file I needed.  No biggie, just take a look at HEAD or HEAD^... Hey, that didn't work!

TIP: use git rev-list to search and find the most recent commit that affected (deleted) a path. (Source: Charles Bailey on SO)

$ git rev-list -n 1 HEAD -- docker/torta/torta-task.json
0c400d323aff484cfb2bdc18dcdb7813de93a658

Yay!  That was really easy. Now all I need to do is check out from that Git hash and I'm done:

$ git checkout 0c400d323aff484cfb2bdc18dcdb7813de93a658 !$
error: pathspec 'docker/torta/torta-task.json' did not match any file(s) known to git.

Err?  Hmm. Oh: the 0c4 branch contains the "delete" command. If I want to get the file contents, I'll get it from the branch just before that one:

$ git checkout 0c400d323aff484cfb2bdc18dcdb7813de93a658^ docker/torta/torta-task.json
$ ls -l docker/torta/torta-task.json
-rw-r--r--  1 johnm  staff  1445 Nov  4 13:06 docker/torta/torta-task.json

Yay, it worked!  Thanks, interwebs!

Tuesday, November 1, 2016

Videos! For "Platonic Solids of Quality" and "Functional Programming and Django QuerySets"

I've been remiss in posting my videos.  The last two talks went really well

- Platonic Solids of Quality

As people who produce awesome stuff, there are a lot of tools we can use to work less and simplify our workflow. This talk introduces many techniques from Agile Testing and other sources so we can all do more things faster.

- Functional Programming and Django QuerySets

This talk is a quick overview of Python iterators and why to use them, then combining iterators in Functional Programming (vs procedural and object oriented programming). Lastly I show how to use these ideas in order to better understand and test Django QuerySets.

I have another talk video somewhere, but it's about using Selenium for testing and thus has rather a bit of profanity in it.  No link.

Thanks to Don Westland for recording-editing these for me!