2012
Delicious macchiato at Bradbury’s in Madison. Definitely real deal.
Macchiato report from Barriques in Madison. Okay, slightly above average.
Agree.
@jdludlow: Ah crap. April Fools Day is almost here already? If you’re “hilarious” and have a website, keep it to yourself ok?
Driving out of town with American Pie by Don McLean playing! 🎶
Infinite scroll is torture for OCD types like me. You can never finish!
MediaWiki Template Get Hostname
I was working on a template for one my personal wikis and needed to get the hostname for a given URL. Using the capabilities of the Parser Functions extension for MediaWiki I whipped up this template. I figured others may find this useful so here it is. The first version has a bunch of spaces and newlines added to make it more readable.
{{#vardefine: hoststart | {{#expr: {{#pos: {{{1|}}} | // }} + 2 }} }}
{{#vardefine: hostend | {{#pos: {{{1|}}} | / | {{#expr: {{#pos: {{{1|}}} | // }} + 2 }} }} }}
{{#vardefine: hostlen | {{#expr: {{#var: hostend }} - {{#var: hoststart }} }} }}
{{#sub: {{{1|}}} | {{#var: hoststart}} | {{#var: hostlen}} }}
To put it in your own MediaWiki, copy this version that removes the spaces and newlines.
To use this template put it on a page like
Template:Get hostname
and then call it in your
pages as
{{Get hostname|https://www.thingelstad.com/another-reason-you-need-to-use-a-password-manager/}}
which will return www.thingelstad.com
.
At the theater for Hunger Games. It’s a teenage zoo here.
😊
@damonallison
/* this is the ugliest code you will ever see. squint hard and pray right now */
Listening to Coldplay! 🎶
9 yards of mulch distributed. Will push it around tomorrow.
First wood project of the day done.
9 yards of mulch and a third cord of firewood coming tomorrow. I’ll be sweating and dirty.
Joining the Dollar Shave Club
This Dollar Shave Club service seems to be making the rounds and it happened to be a time when I was running out of blades for my Gillete Mach 3 razor. I’m always amazed at how much the blades cost. The 15 pack at the store is nearly $40. Sure it’s spread over 15 weeks, but it still seems like a lot. So the Dollar Shave Club $6 a month plan sounded interesting.
I fired up Soulver and did some quick math. I gave the classic Mach 3 blades a fair treatment using the price from Amazon if I subscribe to have them sent on a defined schedule, $33.24.
$33.24/15 week = 2.216 $/week
2.216 $/week by month = $9.64
$6/4 week = 1.50 $/week
1.5 $/weekby month = $6.52
$6.52 as % off $9.64 = 32.31%
I’ll happily sign up to save 32% and not have to think about getting blades anymore. Brilliant service and good price. They just need to execute great.
Tyler having a 2nd minor brush with croup. Stuff sounds terrible and makes me nervous. Feel bad for the little guy.
4G? #ios51