I’ve updated my MediaWiki vendor branch to 1.22 for Mercurial users.
hg pull https://bitbucket.org/rianjs/mediawiki-vendor
I’ve updated my MediaWiki vendor branch to 1.22 for Mercurial users.
hg pull https://bitbucket.org/rianjs/mediawiki-vendor
I created a “vendor branch” of the MediaWiki stable releases for Mercurial users. (Git is, after all, pretty terrible by comparison.) Commit history goes from 1.21.2 back to 1.19.7.
You’ll do something like this to update:
$ cd your/personal/mediawiki/branch
$ hg pull -u
$ hg pull https://bitbucket.org/rianjs/mediawiki-vendor
$ hg merge tip
$ hg commit
$ hg push
Then deploy however you deploy. Check Special:Version to see that it’s updated.
This is a distillation of the instructions at The Hitchhiker’s Guide to Python, mostly for my own future benefit when I inevitably forget how to do it:
distribute_setup.py script:
wget http://python-distribute.org/distribute_setup.pypython distribute_setup.pyeasy_install to install PIP. PIP is actively maintained, and supports package removal (unlike easy_install)
easy_install pipThis took a grand total of about 60 seconds to complete.
If you’ve wanted to filter by attachment size, or find unlabeled emails… you’re now in luck. Gmail has added some search operators recently.
My favorite is the ability to filter by attachment size:
size:2m searches for attachments of 2MBlarger:3m searches for attachments of 3MB and largersmaller:5m searches for attachments smaller than 5MBYou can combine these searches with the other Gmail search operators:
larger:3m older_than:2ylarger:5m from:email@example.comNeed to find unlabeled messages?
has:nouserlabels will show you stuff you haven’t labeled.
It’s useful to be able to send email from a Linux webserver. I do it to get MediaWiki page change notifications and other automated status updates. I wanted something that supported two-factor authentication, and this does.
This guide is for you, if:
I’ve used this method with Linode, and it works perfectly.
Install mailutils
~ sudo apt-get install mailutils
When the setup wizard launches, choose the unconfigured option. You don’t need to do any special configuration to get this to work.
Install and configure sstmp
~ sudo apt-get install ssmtp~ sudo vim /etc/ssmtp/ssmtp.confFromLineOverride=YES by deleting the #
AuthUser=<user>@gmail.com
AuthPass=Your-Gmail-Password
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
:wq
If you’re using two-factor authentication
Create a new application-specific password to use in the config file above. (If you’re using Gmail, you can manage those passwords here.)
Test it out
~ echo "This is a test" | mail -s "Test" <user>@<email>.com
Using a webmail service other than Gmail
You can follow the same pattern that I used above. You’ll need to:
smtp.gmail.com:587. (587 is the port number.)One area I’ve struggled with consistently as far back as I can remember has been finishing things. I’ve always been good at having good ideas, and–just as often–not carrying them out. IOW, really good at the R part of R&D, not so great at the D. This is something I’ve resolved to change about myself, and tomorrow (Friday) marks the end of four weeks of a focus on finishing things. Some stuff was important, a lot of it wasn’t. At work, I tried to finish the highest-value tasks, or things I’d promised others, and at home, I tried to finish the most important things, and the things that brought me happiness or satisifaction.
Anyway, this hasn’t been a month where I’ve worked harder. It’s been a month where I’ve worked smarter. I’ve never been an adherent of any particular productivity school, but I do borrow from several (GTD, kanban). Here are a couple of things I did:
It’s not all sunshine and daisies, however. Balancing the reactive, “operational” side of my job with the planful, inside-your-own-head development stuff that provides the real, long-term organizational value remains a challenge.
Here’s a good talk by Adam Savage–of Mythbusters fame–that really resonated with me. I feel like I’m good at (and regularly do) all the stuff, except for maybe the last three minutes. That I saw this video while working on finishing stuff was purely coincidental.
The Dictionary of Obscure Sorrows:
n. the realization that each random passerby is living a life as vivid and complex as your own—populated with their own ambitions, friends, routines, worries and inherited craziness—an epic story that continues invisibly around you like an anthill sprawling deep underground, with elaborate passageways to thousands of other lives that you’ll never know existed, in which you might appear only once, as an extra sipping coffee in the background, as a blur of traffic passing on the highway, as a lighted window at dusk.
Note: this is applicable to fixed rate mortgages.
Mortgage brokers typically use your gross monthly income to calculate the amount they’re willing to lend you. Frankly, this is a very bad way of calculating what you can actually afford. It is more useful to know what you can reasonably afford each month before you go house shopping.
If you’ve got a monthly payment in mind that you’re comfortable making, you can use a present value calculation to come up with the amount you can afford to finance. In Excel, this is very easy with the pv function:
=pv(interest rate, number of payments, payment, montly payment)
Suppose:
=pv((0.035/12), 360, 1750)
You can afford to finance: $389,716.22
When determining what you can afford each month, don’t forget the following:
These are things that many renters don’t need to pay, and thus forget to think about when buying their first home.
This past Saturday marked my second cheat day on the slow carb diet. This will be a much shorter post, with the addition of Recipes section.
Recipes
This week we decided we wanted to eat more savory foods, as the diet can be quite bland. We tried spaghetti squash with home made marinara and turkey meatballs with almond flour. It was OK… the squash wasn’t cooked enough, and the marinara recipe we used wasn’t very good, either (it was essentially tomatoes with onions, and not much “sauce” ugh). Next time we’d bake the squash longer, and use a better marinara recipe.
We also made chili with black beans, kidney beans, and garbanzo beans (chickpeas). We added WAY more veggies: mushrooms, broccoli, red peppers, and we also threw in one ear of raw corn cut off the cob. (Yes, we “cheated”, if you could call < 1/8 of an ear of corn per serving “cheating”.)
It was amazing. So. Bloody. Good. Best food we’ve eaten since being on the diet.
Quantitative
I spent first 3 days after my cheat day above my weigh-in weight. I suspect I may have weighed in at the perfect time: just evacuated everything, slightly dehydrated, didn’t eat much the day before. (All of these things were unintentional.)
Qualitative
The most illustrative thing, though, is the bike ride I went on. I hadn’t been on a bike in a month, and I decided to go on one about 2 hours after lunch. Up until that point, I’d had breakfast (two eggs, lentils, half a thick sausage patty) and lunch (cereal-bowl-sized bowl of chili with melted cheddar). I knew I’d be hungry by the end, so I brought some carrots with me to eat when I was done.
About halfway through, I got hungry. In the past, this would have meant I would have hit the wall, unable to bike with any appreciable energy. I did not have this problem. I had no problem sustaining 18-20mph, and when I turned back, I was sustaining 20-22mph, despite being hungry. In fact, these are the fastest speeds I have ever sustained on this course… even though I hadn’t been on a bike in a month, and my weight loss wasn’t much as a percentage of my starting weight.
It was very strange to have my energy levels largely decoupled from my hunger. Similarly, my leg strength was the limiting factor, not my cardiovascular system. This hasn’t been the case since I was in high school, so this is A Very Good Thing.
I’ve been asked what I ate during week 1. The answer: pretty boring stuff, mostly. I actually took pictures of most of the food I was eating to send to Laurel, because she was planning on doing the diet, but was away in Israel when I started.
The trick is to cook more than one serving at a time, even for things like cooked vegetables. I don’t like frozen veggies, so I generally buy fresh and make 2-4 servings at a time because it saves time and energy. Hooray for dishwashers.
Things cooked in bulk:
Breakfast tends to be the same thing every day:
Lunches and dinners are generally a meat with a legume and vegetables–often 2 or more. Sometimes cooked, sometimes raw. If you need rubs for your meats, I recommend Penzeys market (online or retail).
Meats:
Sides:
Vegetables:
Other dishes I make regularly or would make again:
Things I’d like to try:
I eat the same things over and over again, which is what most people do (and certainly what I did before the diet). The only real difference is that I’ve changed the things that I repeat.