Get the Book Man

After a long and extremely coincidental series of events, Alex, Jaime, and I decide to go to head to House of Pies (my third time in four days) for some dinner. When I’m almost there I get a call from Alex saying that the restaurant is closed until eight because of pesticides, and that they’re going to hang at the Border’s across the street. (I think it’s interesting that, knowing of why the restaurant was closed, we didn’t decide to go anywhere else.) Anyway, I’m thinking that would be a good way to kill the time, but I hate going to book stores because I either leave feeling unfulfilled or with a significantly lighter wallet. So I resolved not to buy anything and walked in.

Border's on KirbyI browsed around the store, picked up a few things, put them back. I wandered through the music section, seeing what’s new and noticing how outrageous the prices were. In fact, everything was just fine until I stumbled into the computer section. I was able to keep up my jaded no-spend attitude for a little while. “Look at these lame PHP books. Hah! The only ones worth having I already have. I can’t believe I was worried about coming in this place.” Then my eyes began to wander, and I spotted an Apache 2.0 book, just big enough to be juicy. I opened it up and immediately browsed to the mod_negotiation section, since that’s the module I know the most about and I use it as a benchmark for Apache books, which is the same thing I do with Caesar salad and restaurants. (House of Pies has no Caesar salad! Why do I go there so much?) The book had one of the most comprehensive overviews of the module that I’ve seen, and covered some of the differences between the 1.3 and 2.0 versions. However, it wasn’t good enough to overcome my resolution, so it went back to the shelf. However the thought dawned on me that I needed something to do for the next half hour, so I spotted an O’Reilly title I’ve had my eye on called Mastering Regular Expressions.

I’ll cut the suspense, and admit that I bought it. It’s an amazing book; the first two chapters I read really changed the way I think about things in general, a paradigm shift. I’m hoping to finish the whole thing this week and redo all my regex code with what I learn. The good news is that in rang up $5 cheaper at the register than the sticker said, so I’m not complaining.

The point is, however, I lost. The people at Border’s have my type so well figured out that they know I can’t leave without buying something. All those comfy chairs everywhere are really traps in disguise, hoping to lure you in to being caught up in a book. What I really want to do is go into a bookstore, and read an entire book, start to finish. I don’t care if it takes me a week, I want to go in every day, pick up the same book, and finish it. That would really stick it to the man, the book man. Will it ever happen? We’ll see. Has anyone had a similar experience?

Really great article from my friend Hunter Walk on #Reinventing the Chamber of Commerce, which is especially relevant given how the US Chamber of Commerce has been tending to side with the MPAA and RIAA rather than actual small businesses, startups, and tech communities.

Refresh

I love when it rains because I feel like it soothes my soul.

Last night in the space between conciousness and sleep I wrote an entry. It was beautiful, exquisitely thought out and relevant, and I even imagined the markup I would use. My last thought before I drifted off was I should write something down before I forget it in the morning. I forgot it, and I’ve been trying to toggle my memory since then.

I was trying to toggle my memory while driving this morning. However when I drive I don’t think, I just listen. I couldn’t find the two CDs I had planned for the drive but an older album did the job nicely. When I listen to music the bass vibrates all of the mirrors in the car when it hits. Depending on what pants I’m wearing, it sometimes vibrates my pants as well, making me think that my phone is ringing, but not any more because my phone no longer vibrates. Watching the rearview mirror when it vibrates is fascinating, as a picture of the world behind you goes from near-perfect clarity to fuzziness as the music plays. If I even make a movie, the first shot will be of a rearview mirror vibrating with the music.

A replaced faceplate apparently crippled my phone’s ability to vibrate. Now it is a beautiful, vibrant blue. Can I have my blue and vibrate too? We shall see. Maybe it’s just time for new phone.

Just Saying Hi

I would like to take this opportunity to recognize some of the wonderful visitors to this site. While I love you all, sometimes I get the most amusement out of people who come here from search engines. Since I don’t actually know who these net travelers are, here’s an open letter. Warning: some of these searches are a little off-color, so be careful which ones you click on. As of this posting though I’m either in the top ten results or on the page I link to.

To why does my optical mouse move by itself? — You’re obviously having issues beyond what my simple review can address, so I would recommend seeking the assistance of a professional. When you find out what’s causing it, let me know, because I’m as curious now as you are. Is there any event that coincided with this newfound movement?

To sexy photos josh lucas, josh lucas pic, and the other Josh Lucas searches — Stop bothering me! Though I must admit my friends Lucas and Josh, whose pictures these people see when they click on my site from this search, get a kick out of it. (Josh Lucas is some sort of actor.) Good thing I don’t have any friends named Britney.

To kayak naked — Whatever floats your boat. In a matter of speaking.

To sexy photo google — I found these pictures of the Google people, but I’m not sure if that’s what you’re looking for.

To “best buy” extended warranty opinion laptop — I had good experience taking my laptop back, but just don’t try it with a camera.

To enron women nude — Get a life! You’re on the twelfth page of results! No one looks that far!

To matt sony — Sony has me in a death vise; I love their products and I can’t stop. Run, while you still can.

To “apple sticker” — Okay this one is a trick because I do know who this is, because she sent me an email. It’s Leander Kahney, a writer for Wired, who’s working on a book called “Cult of Mac”. The picture she found (on the tenth page!) is going to be in the book as part of a chapter on Apple stickers. Pretty cool, huh?

To meaning of clie — Communications, Link, Information, and Entertainment. Your guess is as good as mine as to where the accent came from in Sony Clié.

To first day of school i was nervous about the first day because…….however i soon realized…… — I like someone who knows what they’re looking for.

To ihatelongdomainnames (German?) — Me too.

To movie quote ahhh the lowercase a — I have no idea what this means.

To adjusting toshiba laptop screen brightness — On my old 5005 There was a function key, and if you pressed that and one of the function keys at the top of your keyboard. Two of the function keys had little suns on them, and those were the ones you could adjust the brightness of your screen with. Also cranking the brightness down really lets you ink every bit of battery life out of it.

Okay, I think that’s enough vanity surfing for the day!

The problem lies with the business schools which are at fault. What we’ve done in America is to define profitability in terms of percentages. So if you can get the percentage up, it feels like we are more profitable. It causes us to do things to manipulate the percentage. […] Christensen even suggests that in slavishly following such thinking, Wall Street analysts have outsourced their brains.

Clayton Christensen: How Pursuit of Profits Kills Innovation and the U.S. Economy in Forbes. Hat tip: Lane Becker.

Livestream Tomorrow

About eight of the speakers including myself are going to be doing a livestream tomorrow from 2 to 10 UTC, or what would be 9am to 5pm in Bangkok where the inaugural WordCamp Asia was supposed to happen this weekend.

We’d all much rather be in person, but I do think there is a silver lining in us learning how to do official WordPress livestream events that can be accessible to everyone all over the world, following in the footsteps awesome virtual events like WordSesh.

Another Semester

It is with a slightly stuffy nose that I will start my third semester of college tomorrow. For the curious here is my schedule as it stands now, as much for my own reference as anyone elses.

  1. Monday
    • 10:00–11:00 — 3310: Introduction to Political Theory, taught by the prolific Ross Lence. AH 302.
    • 11:00–12:00 — 1336: U.S. and Texas Constitutions and Politics, taught by my favorite instructor of last year Dr. Little. PGH 350.
    • 2:30–4:00 — 3319: Politics of Social Policy, by Dr. Lineberry. PGH 347.
  2. Tuesday
    • 10:00–11:30 — 3332: Philosophy of Language, Dr. Saka. AH 205.
  3. Wednesday
    • 10:00–11:00 — 3310: Introduction to Political Theory. AH 302.
    • 11:00–12:00 — 1336: U.S. and Texas Constitutions and Politics. PGH 350.
    • 2:30–4:00 — 3319: Politics of Social Policy. PGH 347.
  4. Thursday
    • 10:00–11:30 — 3332: Philosophy of Language. AH 205.
  5. Friday
    • 10:00–11:00 — 3310: Introduction to Political Theory. AH 302.
    • 11:00–12:00 — 1336: U.S. and Texas Constitutions and Politics. PGH 350.

As you can see it’s a little light, but that’s by design as I’d like to devote myself as much as possible to excelling in these courses, which by virtue of their instructors should be pleasantly challenging. Also playing in two or possibly three big bands, developing a new business, and moving WordPress forward, I knew that my extra-curricular commitments would be high and I didn’t want to over-commit myself (and possibly get ill again) like I did last semester.

Snaps Along the Camino

I walked a week’s worth of the Portuguese path of the Camino de Santiago with a few friends, which was a nice bookend to my Rebirth and Yellow Arrows post at the beginning of last year. My feet are sore, and I have the first significant knee pain which has given me newfound empathy for the people I love who struggle with their knees. I traveled light and just brought an iPhone XS as my camera, and these are a few snaps of things I saw along the trail.

Continue reading

Stylish Thumbs and Navigation

On the last post I had decided to do something I do occasionally, embed some thumbnails from the photolog in a relevant post. While I was writing the post I thought to myself, “Man this thumbnails are going to look funky, I should center them with <p align="center">.”

Blasphemy! I know. Forgive me, I was tired. Still, align="center"? That is so last decade. So I decided to give the paragraph a little class, postthumbs, which to me describes the content of the paragraph and is something I could see myself reusing. What follows is trying to add a little style to some simple thumbnails.

I’m a fan of the double border look for thumbnails, a thick white border surrounded by a very thin darker border. You see it done all the time, for example Rannie and Christine, but in both cases the border is actually part of the image itself.

This is cumbersome for several reasons. First, this may be geeky of me, but it seems like it’s violating the principle of separating content (the thumbnail or picture) and the presentation (the border). In addition this technique is rather inflexible. If Rannie decided tomorrow that he wanted orange and green borders instead of the white and black ones he has now he would have to regenerate every single thumbnail. Since I suspect both Christine and Rannie do this effect in Photoshop, this is a pain however you cut it, even with heavy batch action.

So the solution is CSS. If you remember the box model you’ll see that this effect should be rather easy. We can just put a background on the element and it will show through on the padding, then the border goes outside that, creating the effect of a double border.

How I do these sort of things is I create an HTML file on my desktop with the generated code from whatever page I’m working on and then I use it as the preview in the excellent TopStyle 3.1 so I can see whatever changes I’m making to the design live. In my opinion this is the only way to design with CSS. The only downside is right now I can only preview things in Internet Explorer because the Mozilla object it calls doesn’t seem to work quite right with 1.5 betas. However for most projects getting it working in IE first is the most realistic thing to do.

So let’s take a look at the code we’re going to be styling:

<p class="postthumbs"><a href="/p/9-9-2003/DSC06440"><img src="/a/9-9-2003/DSC06440.thumb.jpg" alt="The front of my new business card." /></a> <a href="/p/9-9-2003/DSC06439"><img src="/a/9-9-2003/DSC06439.thumb.jpg" alt="The back of my new business card" /></a></p>

So my first inclination was to apply the background and border to the anchors (the <a> element). After playing with the colors for a bit here’s what I ended up with:

.postthumbs {
  background: #eef5c5;
  border: 1px solid #e7f3a5;
  border-left: none;
  border-right: none;
  text-align: center;
}
.postthumbs img {
  padding: 6px;
}
.postthumbs a {
  background: #fff;
  border: 1px solid #cde44e;
}
.postthumbs a:hover {
  border: 1px solid #8a9f18;
}

It did exactly what I was looking for in the preview, and it allowed plenty of flexibility and did exactly what I wanted to do. Let’s talk a little about what the above code does. The first class is for styling the entire paragraph, which fills up all the horizontal space available to it. The first rule gives the whole thing a background, the second rule puts a one pixel solid border on all sides, and then the third and forth rules remove the border from the left and right side. Finally we say to center everything. Occasionally I’m asked why I apply the border to all sides and then remove it instead of just having simply border-top and border-bottom rules. The simple answer is then whenever I changed the color or thickness or style of the border I would have to change it in two places, and this way I only have to change it in one place. I think it’s roughly the same number of characters too.

The second selector says that any images inside of anything with a class of “postthumbs” should have 6 pixels of space around it. Then the next two apply the white background and a border that changes when you hover over the anchor.

We’re done, right? Not quite. As soon as I loaded it up in Mozilla I noticed that the white background and border were, for lack of a better term, bunched up at the bottom. I suspect that for some reason that where Internet Explorer put the anchor “box” around the entire image Mozilla just put the box around what looked like where it would be if there was text there, so the font size (12 pixels) plus the line height. Generally in cases like this I assume Mozilla is right and IE is just being overly forgiving, so I find a workaround. I’d like to find the exact reason for this behaviour, but I don’t have a lot of time right now and the Mozilla Bugzilla interface is so painful.

So the previous method looks funky in Mozilla, but a solution quickly came to mind. If I put the padding, border, and all on the image then that should avoid all problems. I could even keep the hover psuedo-class on the image even though IE users wouldn’t see the effect. Here’s the final code:

.postthumbs {
  background: #eef5c5;
  border: 1px solid #e7f3a5;
  border-left: none;
  border-right: none;
  text-align: center;
}
.postthumbs img {
  background: #fff;
  border: 1px solid #cde44e;
  padding: 6px;
}
.postthumbs img:hover {
  border: 1px solid #8a9f18;
}

As you can see this is a bit less verbose and generally simpler to understand. What we have is a consistent look in IE and Mozilla and enhanced functionality in more technologically advanced browsers, which is something I’m perfectly comfortable with.

In other news the links on the page are no longer bruised blue and purple, but rather some shades that I think match better. I’m a big fan of :visited link states as it can be very useful when browsing and is also interesting to see links you’ve already visited on other sites. I usually make visited links a little darker, which seems to delineate them clearly. Another common technique I’ve seen before is to not have visited links underlined, which I think is also nifty. However sometimes I see :visited states on site navigation, where it is nearly useless.

Navigation has started to flesh itself out, but it still has a long way to go. I’m going to have to reevaluate the site’s information architecture and reassess what sections could be combined and which need to be retired. There is also the question of what to do with all the contemporaria I kept in my sidebar before, and I’m not quite sure yet. I think maybe a nested sidebar that you can turn on but is off by default. I’m using these changes to give Dreamweaver MX 2004 a solid run-through and so far I’ve been very satisfied. It’s nothing revolutionary, and many of the new features they’ve been pushing don’t really appeal to me, but it has the polish of a mature product that I feel comfortable spending a lot of time in. I would have called it 6.5, but then again over at WordPress we put major functionality upgrades and changes in to hundredth point upgrades.

Today the Jetpack plugin turns five years old. Who woulda thunk it? It’s one of the most popular plugins in WP history, and sites that include it as part of their WordPress install are more likely to to have engaged and active users — we’ve even seen it reduce churn on major web hosts. While there’s been a lot that’s happened in the Jetpack plugin so far, what’s around the corner has me even more excited. 😀 🚀 P.S. Check out that new domain.