20 Pound/$500 Challenge

Update: I won!

20lbs in 55 days

That includes losing two weeks to travel (one week of eating out, and another spent to undo the damage). In the end, it got very close, but I had some events coming up (read, free food) that I didn’t want to miss out on, so I used all my willpower to lose the last few pounds – and I did it!

The true challenge will be maintenance from here on out. But first, lunch.


I made a bet with a friend: Whoever loses 20 pounds first gets $500 from the other.

For me, losing 20 would put me at 10 below my driver’s license weight – which was accurate when I got it at 16—10 years ago. So that’s the big challenge for me, I don’t know when I was last at that weight, so it’s lower than I’ve ever been as an adult. On the other hand just about 2 years ago I put my mind to it and lost almost 50 pounds (though I’ve gained a little back…) so I at least have some experience.

Challenge Accepted.

For my own sake, I’m going to commit myself to a few rules. I don’t usually like “rules” or going on “diets” because they both tend to be unmaintainable. But for the sake of this bet, I’m okay with that. I’ll make some big, hopefully short-term, sacrifices to win, then relax back into good habits. Head on to page 2 if you want to see some of those, but I mostly added them for my own reference. I’m thinking I’ll also make a desktop wallpaper for myself…

Be Nice

There’s a lot of talk about sexism in tech. For the most part I shut it out, even the sincerest stories tend to irritate me. But I think that’s to do with my own feelings on the subject – particularly, that I don’t really know what they are.

Having taken a brief moment to consider it, here’s my position (Spoiler alert: this applies to a lot more than just sexism in tech): be nice.

That’s all I wanted to write on the subject. Two words. But people love rules. Or rather, people love to find the exceptions and loopholes that rules beget. So I wrote some other words. Continue reading Be Nice

Turn That Snippet Into A Plugin

This post is sort of a recap of a talk I gave a couple years ago.

Whenever you get a WordPress code snippet, where do you put it? It’s not uncommon all those bits of code to end up cluttering up the functions.php file of your theme, whether out of habit or suggested by tutorials.

But wouldn’t it be better if all those non-theme snippets were plugins instead? Yes!

As plugins, you can switch/upgrade themes without losing that functionality and toggle the funtionality without editing the theme.

And great news! It’s really easy to turn a snippet into a plugin.
Continue reading Turn That Snippet Into A Plugin

Things You Should Know About the Command Line

The command line is really powerful and there are a quite a few things made easier by using it.

When I started learning things, I did a lot of copy-and-paste. It got the job done (usually…), but I rarely understood what I was doing or why it worked. So I want to outline a handful of basic commands, and some tips and tricks.
Continue reading Things You Should Know About the Command Line

Personal Project Sprint

Here’s the deal — I’m really good at making lists… but in quantity not quality. I can make a dozen or more to-do lists between assorted notebooks, sticky notes, email, Evernote, Trello, and who-knows-what-else. (I’ve created a super simple list tool that I’m hoping will help combat that problem)

But I’m not always very good at following through with the tasks. Lists from 6 months ago might be the same as a list I jotted this morning. That’s right, I still haven’t cleaned up my worktable, or fixed that bug in that code…

Some I’m issuing this challenge to myself:
get as much done on my projects and to-dos as possible during April.
Continue reading Personal Project Sprint

Nginx, robots.txt, and Copy-Pasta

Did you know that if you don’t have an actual robots.txt file, WordPress will create a virtual one for you? For example, I have not created a robots file for trepmal.com, yet you can see one at https://trepmal.com/robots.txt.

So either you have created your own file, or you’re relying on the virtual one. Unless you’ve explicitly disabled WordPress virtual robots.txt file, you’ll have something at yoursite.com/robots.txt

However, if you (1) use nginx, and if you (2) followed certain popular guidelines* for configuring your site, and if you (2) are relying on the virtual file, you might discover that you get a 404 if you try to view your robots file.

Continue reading Nginx, robots.txt, and Copy-Pasta

WP-CLI in the Real World

I’m looking to spread the word about WP-CLI. One way I’ve decided to do this is to submit a WordCamp talk proposal on the subject.

Of course I can talk about how I’ve benefitted and about my favorite things, but I’d really like to make sure my talk is well-rounded and takes into account real world usage. Basically, I would love to hear from you about your experiences with WP-CLI.

  • Biggest hurdle to overcome?
  • Favorite command?
  • Most irritating aspect?
  • That feature you’re looking forward to using?
  • When did WP-CLI save you hours on a project?
  • Did it teach you something?
  • something else?

Whether there’s something you want to learn or a tip to want to pass on, let me know in the comments!

A very simple list (with Alfred and GeekTool)

Things you’ll need: Alfred with Powerpack and GeekTool.

The premise is simple: maintain a simple list with Alfred, use GeekTool to show it on your desktop.

The Alfred part will be a Keyword → Run Script Workflow. The keyword I’m using is list, with an argument required.
Continue reading A very simple list (with Alfred and GeekTool)