Gödel, Escher, Bach

2009-06-23

I just finished reading Gödel, Escher, Bach by Douglas R. Hofstadter. I’ll wait for you to at least read the wikipedia description of the book.

Done? Ok… The main surprise for me was how many seemingly unrelated topics the book touches. Logic (Gödel), graphic art (Escher), music (Bach) to start with. But also mathematics, molecular biology, genetics, philosophy, zen buddhism, formal systems, artificial intelligence, programming, recursion and self-reference, various paradoxes, and much much more.

It is easily the best book I’ve ever read, although I can’t claim to have understood everything. If you want to borrow my copy, I’d be glad to help (the book is sort of expensive and really hard to get in Czechia).

DSLR – first impressions

2009-05-31

I’ve wanted a DSLR for a while. At first, I wanted to buy an entry level camera like Canon 1000D, but after I found out that the price of a used Canon 20D (semiprofessional camera, about five years old model) was considerably lower than price of 1000D, I just had to buy it.

1000D has more megapixels, but that’s about where the advantages end. 20D is more sturdy, has better handling and controls, rubberized grip, bigger viewfinder, higher frameburst rate (5 shots per second) and better high iso performance.

I decided to buy two lenses (neither money nor space for more :-)). The first one was the kit 18-55mm with IS (maybe buying used lenses isn’t such a good idea… but hey – it was cheap). As the second one, I originally wanted to buy Canon 50mm f/1.8, but I wanted also a little longer lens (I already have 50mm covered by the kit lens) and after finding the new Samyang 85mm f/1.4 with manual focus, it was an easy decision. That said, I’m still fighting with getting the focus right (it is very very hard, as almost everything appears in focus in the viewfinder… I wish I had live view and could zoom in to get preview of focus).

I am really happy with the high iso performance. With Canon 20D at ISO 3200, the noise is somewhere between ISO 200 and 400 on my point & shoot Canon A590. Five shots per second is very useful whenever you are shooting something moving unpredictably (kittens!).

I hope I haven’t become an equipment-theoretician freak yet. :)

Poland – the good and the bad

2009-04-29

The good:

  • Polish people are extremely hospitable and helpful.
  • Either there is a very low amount of thieves or I am really lucky.
  • Food (cheese, bread, yoghurt, chocolate) in shops is quite a bit cheaper here than in Czechia (though restaurants aren’t cheaper at all).
  • Krakow rocks. Especially the shores of Wisła river next to the Wawel castle.

The bad:

  • Car drivers drive like assholes. When you’re going by bike, they drive way closer than what I find comfortable (I thought I was used to this from Czechia, but in Poland it’s even a little worse). When you, as a walker, get to a zebra crossing, in Western Europe the drivers will do everything they can to stop and let you pass. In Czechia, they usually let you pass, but not always (not when they’re going fast and don’t want to halt). In Poland, drivers almost never stop at a zebra crossing. You can see them slowing down, so you step into the street thinking “finally a decent driver” and the next thing you know is that you are jumping back onto the pavement as the driver was just slowing down to take a right turn. Similar on red lights – just because there’s red lights shining 50 meters ahead of the passing car doesn’t mean that the driver will let you pass.
  • No discounts for lunch menu in restaurants. Eating out is quite expensive compared to cooking yourself.

Yeah, both lists are incomplete. Does it look like I post this just because I haven’t posted anything in April yet?

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?