Archive for the ‘Insanity’ Category

It’s not often that I go buy a new set of hair, actually I only do it once every two years or so. I don’t really mind going, in fact I kind of like the type of pampering my hair can only get at a hair salon. And the girls there are always so nice and chatty. It’s pretty cool.

But I’m lazy.

And I like longish hair. The good thing about long hair is that it just sort of happens on its own, you don’t have to really think too much. Once you get used to the mop it doesn’t even take that long to wash, certainly not as long as some girls will have you think to get out of a date they don’t want. Nope, nothing like having long hair. Who wants to be forced into going to the hairdresser’s once a month to keep their ‘do just the way they want it?

Pffft.

So anyway, today I went to CityPark because I wanted to try some new hair salon I’d never been to and the few times I passed this one it looked intriguing enough. Probably because of all the girls of Just The Right Age ™ working in there.

First thing I did was step up to a random pillar and take a Before photo:

If you look carefully you’ll see the hair was pretty long. It was actually about two centimeters beyond nipple-length. Definitely time to get a haircut because making a tail was getting annoying.

The whole salon experience was pretty fun. The lass complained a lot about having to cut so much hair … apparently it’s a sin for people who want long hair but can’t get them to make long hair short … or something like that. There was also some complaining from the other girls about why they didn’t get to cut me … but since I don’t know what that was about I’ll just pretend they found me cute and wanted to touch my awesomeness :P

Anyway, the hairdresser chick took the After photo and this is what my mop looks like now:

I actually quite like it. Turned out nice.

Enhanced by Zemanta
6
Jul

Barefoot running

   Posted by: Swizec Tags: , , , , ,

Handmade leather art
Image via Wikipedia

The story begins with a young boy who had a pair of shoes he loved very much. They were the bestest and most durablest pair of shoes he ever did own.

And they were pretty too! My god, all the female shoes turned their heads as they walked by. The shoes were sporting a lovely black leather body with a red line or two in strategic places, topped off by a magnificent red Fallen logo. The shoe laces were knotted off at the base and survived most of their time being stunk up and walked upon by dirty socks as was the fashion of the time.

The shoes lived life together with the boy through all sorts of haps and mishaps. They were there when he got drunk, they were there when he decided it might be a good thing to do some sporty things like running and stuff. They bared it all!

Resilient little shoes that they were.

There were times when younger, more sexier shoes, almost took their place in the boy’s life. But it never happened, somehow, through some turn of fortune, they always came back to embrace the boy’s feet and make the nasty experience of walking all lovely and comfortable and just like he was floating about on a cushion of air.

But despite all, they were getting old.

There were giant holes gaping from pretty much everywhere. Their posterior was old and battered and nearly mashed up and eaten through like a pack of rabid wolves got their hands on them. Almost every time they made a step they tore through the boy’s socks in an act of defiance as if to scream “HEY I’M FUCKING OLD! I DON’T LIKE WALKING ANYMORE LEAVE ME ALONE!”

And the boy heeded their call and he did decide to buy a new pair very soon. But his mother heard them even more so one day she up and threw them in the trash. Alas, the boy now had not a shoe to put on his feet.

He decided to go for a run despite all. Do it barefoot so to speak.

Now his soles are kind of tender.

The end.

Enhanced by Zemanta
Vending Machine for Books
Image by Still Burning via Flickr

Ok so today has probably been one of the crappiest days in a very very long time. Nothing spectacular happened, just a bunch of small very very irritating and annoying things, just enough to ruin your mood for a whole week.

Which is awesome since it’s Monday.

Even better, I’m going to London tomorrow and am expected to be all chirpy and awesome.

Because the day can speak for itself, I’m just going to list everything:

  1. I got up quite a bit later than I intended.
  2. It was cold and incredibly humid outside.
  3. By the time I got to uni to have a grade officially noted down, I was dripping sweat.
  4. Went to hackerspace to study, made tea.
  5. 10 minutes later realised I’d forgotten my calculator at home, went get it.
  6. Dripping sweat when got home.
  7. This time get in car and go back to hackerspace.
  8. Going for calculator took an hour. Made new tea.
  9. Ten minutes later classmates called, let’s go study at a random open classroom.
  10. It is now almost noon and I’ve only had a few sips of tea.
  11. All vending machines at the faculty are out of energy drinks, everyone’s studying.
  12. With the last change I’ve got I grab a coke.
  13. At 3pm the exam starts and it’s a fucking assrape. I literally felt the professor’s dick go up my arse when I put my eyes on the problem.
  14. Struggle through somewhat solving everything.
  15. It took so long I couldn’t pick a time/date to go get my grade. Got one that is on a day when I’m in London.
  16. Go back to hackerspace to mostly hang out, do some business stuff.
  17. Laptop runs out of disk. Quickly empty trash.
  18. Emptying trash takes two hours.
  19. While emptying trash the only data file for my time logging app where I log pretty much everything I do so I can have an oversee of what I’m doing with my time … goes missing.
  20. Fine I’ll just restore it from backups.
  21. Mate beats me in almost every single game of Guitar Hero.
  22. Get home, start restoring that file from backups.
  23. Find out someone had turned Time Machine off on December 6th 2009.
  24. Give up. The day is officially horrible. The only way it could get worse is if I magically break my leg while sleeping.
Enhanced by Zemanta
10
Jun

List of things I need to do before I’m 30

   Posted by: Swizec

So I was thinking, for the longest of times I’ve been wanting to do a whole bunch of things …

… and I never quite get around to doing them.

Fuck. This. Shit.

This year, I make a list and I fucking clear it by the time I’m 30. There is no sense in living if you aren’t having way over the top fun with it.

Also making a list, publicly posting it and putting a deadline on it is a sure fire way to have a really really really really crappy 30th birthday when you inevitably realise that you’ve done way too few of these things and have just run out of soup.

  1. Bungee jump
  2. Canyoning
  3. Solo sky dive from plane
  4. BASE jump the fjords
  5. Flying suit BASE jump the fjords
  6. Jump off a few other things with a flying suit
  7. Climb Triglav
  8. Climb Everest
  9. Drive at least one official european rally race
  10. Drive and finish the desert oldsmobile rally (I keep forgetting the name)
  11. Ride the trans-siberian railway
  12. Learn to do a no handed endo
  13. Perform a double tailwhip with a mountain bike
  14. Come to a board meeting with a parachute through the window

Noticed a pattern? :P

Well I’ve got 8 (although I like to pretend it’s 9) years to do all of this. Will happily take suggestions for things I haven’t thought of.

EDIT:

Oh and 15: Learn to ride a unicycle

Enhanced by Zemanta
31
May

The upcoming month right out from hell!

   Posted by: Swizec Tags: ,

That is correct, the exam season is upon us once again.

It’s going to be a hellish few weeks and I’m already dreading climbing out of bed each and every day respectfully. Horrible horrible times are afoot.

This week I’m facing two midterms, one somewhat long paper and having to defend my homework before scrutiny. Next week it’s three rather not very easy exams. Yikes!

And then nobody knows! I fully expect the one exam that’s scheduled and the three oral exams partaining to the exams that are next week. Hoorah!

Oh well, the exam season will behave like the drunk daddy in a particular song methinks.

Reblog this post [with Zemanta]
12
May

An engineer’s view on philosophy

   Posted by: Swizec Tags: ,

Bust of Aristotle. Marble, Roman copy after a ...
Image via Wikipedia

Disclaimer: I am writing this on my phone while walking to work

Reading a funny comic  on philosophy vs. engineering and a short discourse on twitter has got me to thinking.

Just why is there such a huge divide between engineers and philosophers?

Because philosophers are annoying brats.

Most of it comes from their general inability to actually think, that is to say, consider all the variables.

For example, a philosopher will natter on and on about how a copy of a copy is an original and completely indistinguishable from the original and arguing that it is now magically impossible to tell which came first.

All the while programmers have been copying variables left and right to good use and distinguishing them quite well for over 60 years.

The philosophers still don’t quite know whether a copy is an original or a copy.

Now while I do think philosophy has made some marvelous contributions to our society – like inventing mathematics, most of the time it’s just about being a colossal brat and regurgitating memorised thousands of years of actual thinking to look smart.

Then again, like a guitar, a good way to impress chicks.

Reblog this post [with Zemanta]
30
Apr

Tracking runs is fun! :D

   Posted by: Swizec Tags: , ,

Today I finally figured out how to get sportypal working. Tomorrow I’m testing the hypotesis to make sure it wasn’t a one-time fluke.

The trick is to start it up when you’re home. Then after the warmup walk kill it and open it again. This time GPS connect is instant.

But the true lesson for today is that tracking runs is FUN. I even got a map and everything :D Sure it looks a bit weird where it decided I was running zigzag through houses and trees and cars and garages and pretty much everything at a sooper speed of 30! kilometers per hour.

But hey, it’s a blackberry not an iPhone (or Android), so I shan’t complain. I’m just glad I can finally use this crap.

Hmmm … for some reason wordpress won’t let me embed the map, so here’s a screenshot.

Reblog this post [with Zemanta]
26
Apr

First hike of the season

   Posted by: Swizec Tags: , , ,

For the past <all of my life> years I’ve been forced to go hiking now and anon by my nature nutter mum.

Then last year I started contracting the bug and sort of wanted to go a few times.

This year I totally want to go for a good hike at least once a month.

Weird right? Does this mean I’m getting old? Or just that I spend too much time inside?

Whatever it is, yesterday the girlfriend and I went for a lovely hike. The first of the season. The destination was this observation tower thing upon some hill above Vrhnika.

I foursquared when we were there of course :P

The hike was quite lovely through some woods and such, many birds were chirping and there were no mammals in sight except for some cyclist a dog or two and a few children. There were also some humans.

An hour of walking each way … it hurt a lot more than I thought it would. No soreness today, but it was surprisingly hard yesterday and I felt strangely sleepy as early as midnight. Maybe I’m just not at all in shape yet?

Anyhow, here are two photos of the purdiful view we got from the top of the tower.

Reblog this post [with Zemanta]
Six hard disk drives with cases opened showing...
Image via Wikipedia

Sometimes we’re given a stupid algorithm or two to implement at this or that course at uni. This time ’round they wanted us to implement something called external matrix transposition … the idea is that you have to transpose a matrix live from the hard drive because it is potentially so bloody huge you can’t store a single row in memory.

Which is a bit silly, who’s got 60+ gig huge matrixes these days? You’re doing it wrong if you need that many dimensions! VERY wrong!

But anyway, what really struck me as a bit silly is that they were big nazis when it comes to how we’re supposed to do this. Needs to compile with their specific command, can only be done in Java or C/C++ … yeah fuck you and fuck your grade, let’s learn something.

So I went and did it in Clojure … well not really since I didn’t finish, but I came close.

Surprisingly, it is in fact very very hard to process data live as it’s being read in a functional environment. Every library that’s already out there open-read-closes the file, at best you get something that can read lines and allows you to work on every line as it’s being read, but oh no, not characters. Nope, what sort of bloody idiot would want that?

Well … me.

So here is my implementation, probably not the most elegant thing out there since I’m new to this, of what Java people call “nextInt”. It returns the next integer in a file as a proper integer and so on.

(ns io (:require [clojure.contrib.io :as io]))
 
(defn read-char [rdr]
   (char (.read rdr)))
 
(defn delimiter? [c]
  (if (or (&lt; (int c) (int '\0)) (&gt; (int c) (int '\9)) (= c nil)) true false))
 
(defn digit [c place]
  (* (- (int c) 48) (Math/pow 10 (- place 1))))
 
(defn numify [seq acc]
  (if (= seq nil)
    (int acc)
    (numify (next seq)
	    (+ acc (digit (first seq) (count seq))))))
 
(defn read-number [rdr acc]
  (let [c (read-char rdr)]
    (if (delimiter? c)
      (numify acc 0)
      (read-number rdr (concat acc [c])))))

You call it with an open reader and an empty [] thingy because, the latter because I couldn’t figure out optional function arguments.

And if anyone’s interested, here’s the rest of the code that opens a file where the first number denotes the number of columns in the matrix and then contains the rest of it delimited with spaces or tabs or anything non-numerical, and copies every row into a separate file so a transposition can then be done (didn’t quite get to this part)

(defn copy-number [rdr writer]
  (.write writer (str (read-number rdr []) " ")))
 
(defn copy-row [rdr writer i]
  (copy-number rdr writer)
  (if (&gt; i 1) (copy-row rdr writer (dec i))))
 
(defn break-row [rdr i columns]
  (try
   (with-open [writer (io/writer (str "podatki-0-" i))]
     (copy-row rdr writer columns))
   (break-row rdr (inc i) columns)
  (catch Exception e
    nil)))
 
(defn transpose-matrix [file-name]
  (with-open [rdr (io/reader file-name)]
    (let [columns (read-number rdr [])]
      (break-row rdr 0 columns))))
 
(transpose-matrix "/home/swizec/Documents/APS2/input.txt")

PS: that try/catch in there is fugly, but I didn’t know how else to check for EOF *blush*

Reblog this post [with Zemanta]
30
Mar

Yay my blog is up and running again! :D

   Posted by: Swizec Tags: , , , ,

Carlton Banks
Image by jimmagz via Flickr

Now this is the story all about how
My blog got flipped, turned upside down
And I’d like to take a minute just sit right there
I’ll tell you how I fucked it all up so damn well

In West Apache born and raised
On the playground where it spent most of his days
Chilling out, maxing, relaxing all cool
And all serving some blabber outside of the school
When a couple of admins said ‘we’re up in no good’
Started making trouble in my neighbourhood
I forgot one little date and my blog got scared
And said ‘you’re moving with your aunt and uncle in nginx’

I begged and pleaded with them the other day
But they packed my suitcase and sent me on my way
They gave me a kissin’ and they gave me my ticket
I put my walkman on and said I might as well kick it

First class, yo this is bad,
Drinking errors juice out of a config glass
Is this what the people of nginx livin’ like,
Hmm this might be alright!

I whistled for a cab and when it came near the
Licensplate said ‘Fresh’ and had a dice in the mirror
If anything I could say that this cab was rare
But I thought now forget it, yo home to nginx

I pulled up to a house about seven or eight
And I yelled to the cabby ‘Yo, home smell you later’
Looked at my kingdom I was finally there
To settle my throne as the prince of Bel-Air

Reblog this post [with Zemanta]
Page 1 of 3123