by Mark on

Boilerplate can be bad, and I was an idiot for using it. I used the same @font-face boilerplate code across three sites: Here, 091 Labs, and Alanna’s new Anchor site. The boilerplate is:

@font-face {
    font-family: 'Source Code Pro Regular';
        url('fonts/source_code_pro/scp-r.eot?') format('embedded-opentype'),
        url('fonts/source_code_pro/scp-r.woff') format('woff'),
        url('fonts/source_code_pro/scp-r.otf')  format('opentype'),
        url('fonts/source_code_pro/scp-r.ttf')  format('truetype'),
        url('fonts/source_code_pro/scp-r.svg')  format('svg');

Here is a typical piece of the font-family selection code I recycled:

h1, h2, h3, h4, h5, h6 {
    color: #343537;
    font: bold 2.75em 'Source Code Pro', impact;
    letter-spacing: 0;
    text-align: left;

I declare the @font-face, but never actually use it. And even if the font-face would happen to load, it is also the incorrect file: The typeface file in question is actually the bold version. It was pointed out to me in a Reddit thread last night when a user complained about ugly typefaces on a site I submitted for critique.

So, fuck. Lesson learned. The solution was to move from self-hosted @font-face’s to Google Fonts, for at least common typefaces, and then triple-check @font-face boilerplate in future.

Snowdon from Bray Head in Wicklow

by Mark on

Snowdon in Wales from Bray Head

Look at the above photograph. Low on the horizon, 60% from the left edge, is Snowdon in Wales. According to Wikipedia:

Snowdon offers some of the most extensive views in the British Isles.[29] On exceptionally clear days, Ireland, Scotland, England, and the Isle of Man are all visible, as well as 24 counties, 29 lakes and 17 islands. The view between Snowdon and Merrick (southern Scotland) is the longest theoretical line of sight in the British Isles at 144 miles (232 km).

I spotted a smudge on the horizon while halfway along the walk. Intrigued, I confirmed with my friend that I wasn’t hallucinating, and then for good measure I asked a passing Italian couple too. When I checked my phone in Greystones, I found I had been facing directly at Snowdon in Wales, and a thread confirmed visibility in good conditions.

This is awesome. I had never imagined that any part of England or Wales was visible from mainland Ireland. I know some extreme sightlines exists in area-we were both able to clearly see Slieve Donard in the Mourne Mountains, ~110 km north, in between Lambay Island and Howth Head. But, I suppose, the wide sea made me think that there was nothing to see across the way.

134.365 km from Wicklow to Snowdon

Google Maps confirmed the distance between Bray Head and Snowdon at 134.354 km as the crow flies. I snapped the scene with my phone, and then did my best to boost contrast and sharpness in Instagram yesterday, but the result wasn’t great. I blew up and enhanced the edges in Photoshop this morning:

Photoshop enhanced view of Snowdon

I applied an edge detect filter, sharpened the image, increased the image size, brightened the overall image, and drastically reduced the contrast. The result is still ambiguous, but a quick search found clear evidence of the view from Snowdon and Wales, given the correct light.

Killer treats

by Mark on

Killer looks pretty

Although I had to feed her a handful of cat treats first… Cats, eh?