New look again

2009-03-15

I was thoroughly bored with the previous theme, and although I tried to revive it with the new header image, it was still bugging me. So I created a new one.

I had a draft of a new theme lying around for quite a long time, so I made few adjustments to it: made the code much longer and much less clean. But it seems to work.

Features of the new design include, but are not limited to:

  • big letters in headings (big letters rock)
  • even less images (none, except the two links to flickriver, smilies and images in posts)
  • half-fixed-width half-fluid design (the design is fixed width, but the sidebar is fluid – works well for many different widths of browser (800px – the sidebar isn’t displayed, it’s accessible through scrolling; 1024px – sidebar in one column, 1280px – two columns, more px – more columns (it is capped at three columns)))
  • emphasis on typography (lists, blockquotes, etc. are styled properly)
  • lines vertically in synch (left column, middle column and sidebar)
  • the old color scheme, I mostly like it and more importantly – couldn’t find a better one at the moment :)
  • justified text (I’m still very unsure here – justified looks way better, but left-aligned is more readable)

Bugs of the new design include, but are not limited to:

  • IE6 sometimes messes up the sidebar, not quite sure why
  • Opera doesn’t keep lines in synch when there are smileys (and I thought I had the solution, sigh…)
  • IE doesn’t align the comment date in the comment list (will look into that later)

Also, I spent ages dealing with various bugs in IE that caused things to disappear.
One such bug caused the sidebar not to appear (it was an absolutely positioned element next to a floated element – don’t ever do that), another sometimes caused titles to disappear (they were relatively positioned, now that they are static it seems ok, but I have no idea why). When repairing the sidebar, I had to move it in front of the actual content in the markup, which is wrong and I know it. I am sorry to all lynx/links users out there.

Bug reports, remarks and suggestions are welcome! ;-)

Back to the basics

2009-03-08

Almost everyone, myself included, underestimates the basics.

If you want to be an expert in any field, you need very strong basics. When you don’t know the basics, you tend to make many mistakes which are hard to get rid of. We are ambitious so we dive deep into all sorts of advanced stuff, leaving the basics for later, perhaps thinking we will somehow figure the basics out along the way. This sometimes works, but more often it doesn’t.

So, back to the basics for me! (in what, you ask? – in everything!)

Desiderata

2009-02-25

I first read Desiderata in Polish, at Letnia Szkoła Go. There’s a path that leads through woods. As you walk down, every few dozen of meters you encounter a slab with one verse on it. I found it hard to understand as my Polish wasn’t as great back then, but from what I understood I knew this was something special.

I thought it was just local folklore and so was surprised to find out that Desiderata was originally written in English almost one hundred years ago by Max Ehrmann.

Desiderata is a short prose poem, possibly the most powerful text I’ve ever read. Everytime I’m feeling down, angry, hurt, upset or desperate it brings instant calmness. Here’s a quote, one of my favourites:

If you compare yourself with others, you may become vain or bitter,
for always there will be greater and lesser persons than yourself.
–Desiderata

I felt an urgent need to print out Desiderata and cover the walls with it. As I haven’t used TeX for quite a while (a year or more?), this was a good opportunity to recall it a bit. You can download Desiderata (pdf) for printing.

Square thumbnails – are they evil?

2009-02-14

The first time I saw square thumbnails (ie. thumbnails which are downsized and cropped to square) I thought they were the best thing since sliced bread.

The advantages of square thumbnails are obvious:

  • they are really easy to align and never mess up your layout
  • the layout will look more uniform and better than with irregular thumbnails
  • they do not show everything so they invite the visitor to view the full sized picture

But there is a downside. Square thumbnails alter the composition of the picture. In some cases, when the photographer hasn’t thought much about composition, it can often actually improve the picture. But in other cases, when the composition is deliberate and well thought out, the square thumbnail can destroy it completely.

I use square thumbnails in my photo gallery (have you seen the pictures from my recent cross-country skiing trip?). And I keep wondering whether I should change it to normal thumbnails (normal = scaled down so as to fit into a given rectangle while preserving the aspect ratio).

Do you personally prefer photo galleries with square thumbnails (cropped) or with normal ones?

Quartermarathon in an hour

2009-01-19

It used to be that I could barely run few hundred meters. The two main problems were that I couldn’t catch my breath and that the side of my stomach started hurting.

I started running regularly few months ago in connection with my extra hour a day program. I abandoned early rising – nowadays I just get up at 9 during the weekend feeling completely drained, not to mention Mondays. Changing this to rising early again is definitely on my to-do list. It rocked, and it sucks now.

When I was starting, I ran a little over 3.5km at a very slow pace (almost half an hour). After reading few articles about running, I started paying more attention to proper breathing and few other things. I added a longer 6.5km route along the river to add variety to the routine. I found it surprisingly easy to run almost twice as far.

And now, feeling pretty comfortable with 6.5km, I connected the two routes to make it over 10 kilometers (I am not sure how far it actually is, but according to google maps it’s something between 10km and a quartermarathon (10.5km)). I ran it in 57 minutes on my first (and so far the only) try. I’ll try again the next weekend, if the weather is any good.

Running is good because:

  • it is rather demanding and makes you tired quickly (so that you can get back to your beloved computer as soon as possible ;))
  • you need no special equipment and you can run anywhere
  • runner’s high is not a rumour
  • it helps your health in various ways (I used to have half-asthma and after running few hundred meters I couldn’t breathe for another two hours (really), but now I trained my lungs and improved my breathing technique)
  • you have plenty of time to think when running, so you are bound to get various good ideas while running

Also, running is simply fun.

Money is time

2009-01-13

As any economist would tell you, time is money. What people sometimes fail to realise is that it works the other way around just as well: money is time.

That is, when you have time, you can work and get money. There are many things you can do with money. Most people just buy things they neither need nor want.

Advertising has us chasing cars and clothes, working jobs we hate so we can buy shit we don’t need.
– Tyler Durden from Fight Club by Chuck Palahniuk

Now, I mostly like my job. :) But this quote is still worth thinking about.

Advertising is the art of convincing people to spend money they don’t have for something they don’t need.
– Will Rogers

On a less serious but still related note…

By the way, if anyone here is in advertising or marketing… kill yourself…you’re the ruiner of all things good… you are Satan’s spawn, filling the world with bile and garbage… kill yourself.
Bill Hicks

So much for quotes. Back to the topic.

I live in an abundance of luxury. I have food to eat, a warm and dry place to sleep, and clothes to wear. I’m not willing to submit to pointless consumerism.

That said, I am left with some money. I can leave it in the bank waiting for the economical crisis to eat it up. Or I can use it to buy some free time to do what I really want to do…

Happy New Year, by the way. :)

Time, space, infinity and anxiety

2008-12-30

I remember thinking about space (as in “three-dimensional extent in which objects and events occur and have relative position and direction”) when I was a little kid. I asked my dad what was outside of the universe and he told me that we do not know for sure but most probably there isn’t anything. I couldn’t quite understand what he meant by that, so I asked him, and he continued to explain that there simply is no space. I couldn’t grasp that either, so I imagined that there is a very hard rock – so hard that nothing else can fit in there, and hence there is no space.

I grew older and abandoned the very-hard-rock theory. But I haven’t found a reasonable substitute for it. And it bothers me. A lot.

There simply is no reasonable possibility for space to even exist:

  1. Space is infinite and extends everywhere and never ends. I think I do not even need to explain why this sounds stupid.
  2. Space is finite. Then what is outside of it? There is no space outside. Then there is no outside. Unreasonable, too.

Please note that I am talking about space, not necessarily in connection with the universe. Just the concept of space and its infinity/finity confuses the hell out of me. And it makes me scared.

It’s similar with time. According to wikipedia, universe is the “entirety of space and time”. So, if I understand it correctly, there was no time before universe. And the universe is approximately 13.73 billion years old. Which means that 14 billion years ago, there was no time. Wait, what?

I just sold my soul

2008-12-22

After pondering about it for a long time, I’ve finally decided to sell my soul. Yes, this blog, the place where I share my thoughts and opinions with you, my dear readers, this very blog has become polluted by ads.

Now, before you leave for good, here are some quick tips on how to avoid being exposed to ads:

  • don’t browse old posts or
  • browse as a registered user or
  • use holy water to protect you from the devil

Any one of the above mentioned tips will help you stay on the safe side. The third one is the best option, as it will also protect you from the devil on most other websites…

Touch typing

2008-12-18

I started trying to touch type about two months ago. I used Klavaro (if you are on linux it’s most probably in your distribution’s repositories) to learn, and I’ve also learned by trying to use the right fingers for typing and not to look at the keyboard whenever typing.

My typing speed was promised to increase dramatically in few weeks while practicing a little every day. No such thing happened, although I’ve practiced almost all the time. I still write considerably slower than I did before I started touch typing. Am I unhappy that I started touch typing? Not at all – let me explain:

The advantage is that I can just look at the screen while typing. That might seem like a single advantage, but it’s actually several in one.

First, I can read other stuff while typing or look at people who are talking to me while I type (I learned that from a colleague, it’s real intimidating).
Second, I don’t have to switch display, keyboard, display, keyboard, display, keyboard… I just look at the display. This is much cooler than it sounds – it enabled me to move the monitor cca 40cm above the keyboard (both home and at work). So I can finally sit straight instead of bending over the keyboard.

On a completely unrelated note, I finally switched from czech qwerty (writing !@#%$&^% characters with alt) to standard english keyboard layout. A lot of stuff in vim has become much more comfortable – such as the ; right under my pinky, which means that repeating f/F/t/T has just gotten even easier and better.

On a semirelated note, I never knew that to write the capital X you can press the right shift plus the x. It’s not that I thought you couldn’t do that, I just never realised it could be useful and no one ever told me “you are doing it wrong”.

Best free fonts

2008-12-07

Many posts have been written on the topic of best free fonts. Therefore, I’d like to approach it differently.

Here, have a picture:

free typefaces

You should click on that picture to see the large version. And if your screen isn’t big enough and your browser thinks the image would look better downsized – your browser is wrong: click on the zoom button and view the picture in its original size.

As you can see, there are only 14 fonts. Surely there must be more quality fonts available for free? Yes, there are. This is a small selection of only the best of the best.

Now that you have the original picture open, let’s have a look at those 14 fonts (all available either in otf or in ttf):

  • Antykwa Toruńska is a very original typeface created by Polish type designer Zygfried Gardzielewski in 1960. It was digitised by Janusz Marian Nowacki. The font contains many obscure glyphs (various diacritical marks, math symbols, etc.) and is available in light, regular, medium and bold versions, each of which has its own italics.
  • Typo Latin Serif is a slab serif (egyptian) typeface with an extremely large x-height. It was created by a German type designer Manfred Klein.
  • The DejaVu fonts are based on the excellent Bitstream Vera typefaces and extended by additional glyphs. They are well hinted so they preserve their onscreen readability even in small sizes.
  • Palatino is a typeface by Hermann Zapf, a pioneer of computer typography. Palladio L is a free Palatino clone created by URW in cooperation with Hermann Zapf. You can download it in URW fonts pack (together with 79 other fonts).
  • Gentium, a typeface for the nations by Victor Gaultney, extensive unicode support.
  • Optima is another wonderful typeface by Hermann Zapf. You can download it as MgOpen Cosmetica.
  • Bembo is a dynamic antiqua created by Francesco Griffo in 1496. The font Cardo, based on Bembo typeface, was created by David Perry.
  • Vollkorn is an old style numerals featuring typeface which was created by Friedrich Althausen. Old style numerals own.
  • Computer Modern is a Didone typeface created by professor Donald Ervin Knuth.
  • Avant Garde by Herb Lubalin can be downloaded in the above mentioned URW font pack where it is known as URW Gothic L.
  • Goudy Bookletter 1911 is a reincarnation of Frederic Goudy’s Kennerley Old Style by Barry Schwartz (funny thing, another Barry Schwartz… there is also Barry Schwartz the SEO and Barry Schwarts the psychologist from Paradox of choice). By the way, have I mentioned that old style numerals own?
  • Helvetica by Max Miedinger. Perhaps the most famous and most abused typeface ever (seriously, fuck Arial). Helvetica isn’t any less awesome now than it was 50 years ago. This version was created by Magenta Ltd. and is available in the MgOpen pack as MgOpen Moderna.
  • Geo Sans Light is a font by Manfred Klein, which is based on Futura, a geometric typeface created by Paul Renner in 1926.
  • Garamond. The best serif typeface ever. For the third time, URW font pack.

The picture was created with Inkscape. Inkscape rocks. For anything that you think might be vector use Inkscape. Generally, GIMP for photo editing, Inkscape for everything else. It enables very easy manual kerning, and after you are done, you can convert the letters to paths (Bezier), and continue making changes (not sure whether that was clear – anyway go and try it out :)).

Ah, I almost forgot – you can get the SVG source file (already converted to paths, as I don’t suppose you have all the fonts installed).

Got other excellent free fonts? Feel free to leave a comment! ;-)