2012-08-17

Got your keys?

Did you ever feel unsure whether all your property-files were in sync?

Well, I am more often than not. So here's a small utility script I wrote to make sure:




Give it some name (propertiesDiff.sh for instance) and make it executable. Then run it like so:
$ propertiesDiff.sh messages.proerties messages_sv.properties

2012-08-14

Did GGTS fail to convert your Gradle project?

Groovy/Grails Tool Suite

I just installed the brand new Groovy/Grails Tool Suite from springsource.org/sts/.
Looks brilliant and just what I needed (I did't use any Spring stuff in STS 2.x).

However, since this version of STS (GGTS) is built on Eclipse 4, when opening the workspace you used previously the project settings needs to be migrated.

GGTS does this migration for you upon first launch, and my Grails projects were migrated just fine.
But I also has a couple of Gradle projects in there that didn't get migrated since the GGTS doesn't come with the Gradle extension.

These are the steps I took to fix this:

  1. Installed the Gradle extension (from under the Extensions tab in the SpringSource Dashboard)
  2. Restarted GGTS
  3. Right-click in the Project Explorer and select "Configure" > "Migrate legacy STS projects…"
  4. Select the Gradle projects to upgrade
And that's it! I could then right-click the project and do a "Gradle" > "Refresh Dependencies".

2012-07-02

Är det så här alla former av dokumentärer måste utformas nuförtiden?:

||:
Person A knackar på och går in i Person Bs hem.
Person A och Person B gör någonting tillsammans.
Person A lämnar Person Bs hem.

Person A pratar LIKSOM I FÖRTROENDE om vad som hände hemma hos Person B.
Person B pratar LIKSOM I FÖRTROENDE om vad som hände när Person A var hemma hos Person B.
:||


||:
Person B säger NÅGONTING KONTROVERSIELLT.
Person A och Person B gör någonting tillsammans.
Person A svarar NÅGONTING KONTROVERSIELLT.

Person A pratar LIKSOM I FÖRTROENDE om vad hen kände när Person B sade NÅGONTING KONTROVERSIELLT, gärna NÅGONTING KONTROVERSIELLT.
Person B pratar LIKSOM I FÖRTROENDE om vad hen kände när Person A svarade NÅGONTING KONTROVERSIELLT, ganska säkert NÅGONTING KONTROVERSIELLT.
:||



Shame on you alla fucking "dokumentärfilmare". (Ni vet vilka ni är!)

2011-06-22

Why are there congas in jazz?

Ought to be banned!

2010-05-04

Sugestion: Scrap Javascript, use type="text/somethinggood"

I'm very excited and optimistic about html5 (just read http://diveintohtml5.org/ for instance).

Hoping for the same good feeling when catching up on EcmaScript 5, I'm left very disappointed.

For instance just look at what you have to do to create an somewhat ok behaving object:



function Point(x, y) {
  return Object.freeze(
    Object.create(Point.prototype, {
      x: { value: +x, enumerable: true},
      y: { value: +y, enumerable: true}
    }));
  }



That is not nice code!!

I understand that they are some very clever people working hard on this assignment, making it predictable and usable across platforms (browsers) and maintaining backwards compability. But it seems to me that it is the assignment that is plain wrong.
Leave javascript messed up as it is. The 'use strict;' is nice though (and a very appropriately chosen keyword, remembering from where it originates...).

There are tons of good languages out there today, and there is an attribute on the <script>-tag called "type". Why not use it?

My dreamteam:

type="text/groovy"
type="text/python"

Sure it will take time for the world to adopt. But all the more reason to move on from js and get started on something decent. NOW.


2010-03-15

Inbäddad webbtv

Här är ett inbäddat inslag från hd.se. Spelare: flowplayer

2010-02-12

The most beautiful thing

I can think of right now: http://open.spotify.com/track/78LNk4Elk106k22nb90ENS It's killing me