Making custom google map tiles from a master png:

convert -crop 160x160 full.png tile_%d.png

It numbers the tiles sequentially, so a tile at position 1,1 in a 2x2 grid will be tile_3.png (it starts numbering at zero).

Calculating the tile number is terribly easy:

(coord.y * 2^zoom) + coord.x

Where 2^zoom represents the maximum number of tiles across. (At zoom 1, there are a max of 2 tiles across.)

What Is I.B.M.’s Watson?

Ends with:

At least it knew its own name.

Things that vim does that bother me

I love vim. It's pretty much awesome and can do pretty much whatever you can figure out how to tell it to do. While MacVIM solves most of my qualms with vim (making sure ⌘+S works, etc), I still have a few things that just don't feel right at all. If you know how to solve any of these issues, let me know.

  • When I click way to the right it actually puts the cursor there, instead of at the last character on that line
  • The cursor doesn't seem to be able to exist outside the current viewable area, so when I scroll the cursor moves lines (by staying at the bottom/top of the viewable area)
  • Installing plugins still miffs me (I can do it, but man it takes some time for me to get it right)
  • Buffers staying in the open buffers list when I close a tab really bothers me
  • Column selection isn't as fancy as TextMate's
  • Simple things that I miss from TextMate like Run this file or Evaluate all lines with # =>
  • I can't figure out how to make ⌘+Enter make a new line below my current line (I guess I could bind it to Esc,o but that hasn't proven to be easy)

Since vim is so customizable, I am sure I could fix all of these things (and more), but I am currently stumped on these things. If/when I figure them out I will update my vim-config on github.

Holy Grail CSS Columns Using the Flexible Box Model

CSS Columns In Safari

The A List Apart Article about Holy Grail Columns is still a great resource for building columns where the main content is first in the source, but everything lays out and remains flexible.

However, after reading about the Flexible Box Layout Module and looking through some examples I figured it would be easy to do the same without using floats and all that crap that was never intended for columns anyway. I was right.

Here is a demo

It is terribly easy to setup.

First, just tell the wrapper div that it's to behave like a box and that it's children should layout horizontally:

#columns {
  display: box;
  box-orient: horizontal;
}

Note: I am not showing the -moz and -webkit prefixes, but they are included in the demo page's code.

Secondably, let's make sure my columns show up in the correct order:

#center { box-ordinal-group: 2; }
#left { box-ordinal-group: 1; }
#right { box-ordinal-group: 3; }

That's freaking simple. Thirdly, let's add some width's to the left and right:

#left { width: 200px }
#right { width: 150px }

And lastly, let's make the center column "flexible":

#center { box-flex: 1; }

And that's it. Take a look at the demo.

How to make Safari's Reader view left justified

This assumes you have the Develop menu shown and know how the Inspector works.

Step 1

Right click on a part of the text and choose Inspect Element.

Step 2

Click on a div with the class="page".

Step 3

Find the CSS rule for .page and uncheck the text-align: justify; rule.

Tomorrow: make an extension to do this automatically.

Love of Things

My goal is to create products that people love.

I think I just realized this fully today. There are things that are not alive, not people, and may not even really change my life so much and I love them. Sometimes the word adore may even apply.

This is why I want to create content management systems, ecommerce platforms, reusable tools, and other internet related things. I also catch myself wanting to design clothing, bags, storage solutions, and other things that I interact with often. If I can't find something I love then I want to make it. I, apparently, desire to desire something.

Not that Shopify or Expression Engine are bad, but I just don't love them like I do my iPhone or my hat. I actually really enjoy using both of these products, it's just not a full affair type thing. Tons of products are in this "like but not love" category, physical and virtual.

I remember loving my old 3rd gen iPod I used in college. Everywhere I went it went with me; it put me to sleep, woke me up, went for walks with me, and kept me focused when working on school work. So many other examples exist in my past: old laptops, shoes, shirts, etc.

I know everyone can think of a product that they miss or still have a deep affection for. A toy or computer or clothing item or something that they really loved.

A consistent thread running through the objects that I seem to fall in love with is a combination of beauty and utilitarian design. A balance between being terribly useful and practical while being awesomely intuitive and usable and pleasing to the eye seems to be very important to me. I see examples of this everywhere in my house: iPhone, Puma shoes, white fitted hat, front pocket wallet, G2 .5mm pens, moleskins, and many more.

The newest item that I have fallen for is my new Soto OD-1R burner. The little dude performed awesome for boiling water (< 2 minutes for a small kettle) and cooking. The way the supports fall into a locking position, the auto regulation of the fuel to maintain a consistent flame, and light weight really make my appreciate how well it works even more.

Not that this is new or anything, but going forward, I want to only make things that cultivate a love and affection from the people that use or consume them. I see this everywhere when people wear Expression Engine t-shirts, have Apple stickers on their car, and are willing at any time to sell their friends on the awesomeness of things.

My desires may be selfish. Not so much to make money, but more to have a sense of impacting other people in the world.

I want to make love more than make money.

(Hmmm, I think I'll just leave that last sentence as is.)

Honestly, I don't know why my site was down. Dreamhost must have changed something, because I haven't touched the files in months.

Either way, I added a require 'yaml' line and that fixed it. Maybe they upgraded some gem or something and it doesn't include yaml. I'm sure a Gemfile and bundler would fix this sort of thing, but man that would require me to do something.

Expression Engine template html snippet:

<body class="{if segment_1}{segment_1}{if:else}home{/if}">

Very useful to namespace each url and for showing parts of the nav as "current."