omregn.nu

Omregn.nu | an AngularJS side project

I finally got around to deploying the AngularJS version of omregn.nu.

Omregn.nu is a web app for converting units. The web app exists in an extremely crowded space and is by no means anything new. Omregn.nu has one thing going for it though, it’s mobile friendly.

However, all of that doesn’t matter; the main purpose of omregn.nu has been to learn AngularJS and routing by AngularJS.

Refactoring from jQuery to AngularJS

The first version of omregn.nu was written in jQuery using a classic paradigm:

  1. Change in input field causes
  2. JavaScript to calculate resulting values and
  3. jQuery updates the frontend.

Basic and event driven.

I wanted to do more though, and I’ve been wanting to work with routing and canonical urls for a while. Enter routing with AngularJS and a head-first dive into thinking in MWC.

The model is king

With AngularJS, I needed to get rid of all the event hooks, thinking differently about where values come from. With AngularJS, the model, the M in MWC, is king. You have to focus on updating the model and just make the frontend follow suit.

I also had to get into routing and the intricacies of ngRoute, keeping the url-bar and to current unit and value into sync. My hope is that at some point, it’s going to become SEO awesome.

Deep SEO

Check this out:

AngularJS routing SEO

This is Google hitting deep and dynamic content – score!

I am definitely going to work further on this – preferably hitting the Knowledge Graph with a vengeance at some point. I don’t think I could have done this without AngularJS routing.

Hit me at @mocdotcom if you have any questions.

Vector Racer 0.2

Vector Racer 0.2 – #winning

Vector Racer 0.2 is out! And I’m glad to say that I’ve solved the two primary issues in version 0.1:

  • Detecting collisions if the player path crosses an obstacle
  • Determining when a player does a lap

So now, you are actually able to win the game! And you are able to determine if you’re better than your buddy since the number of steps are declared upon crossing the finish line.

My record is 42(!). What’s yours?

PLAY NOW (more…)

Polyline/polygon tool for Google Maps

This small tool aids you in getting the coordinates for your polyline or polygon
This small tool aids you in getting the coordinates for your polyline or polygon.

By: Martin Ove

Hi all.

I made a little tool, which can make the process of finding coordinates for polygons and polylines in Google Maps a lot easier and intuitive.

It lets you draw a line with multiple points by just clicking on the map. When you’re done, you just copy-paste the coordinates for further use.

Check it out: martinove.dk/maptools/polytool/ (more…)

Pointsystemet – En interaktiv grafik

[tweetmeme]Af: Martin Ove

Udlændingeaftalen med tilhørende pointsystem faldt på plads onsdag d.17 november, og det gav mig en idé til en interaktiv grafik, man kunne lave i den forbindelse.

Jeg har indsat en rå udgave nedenunder, og i første omgang er du meget velkommen til at se, om du kan samle nok point sammen. Senere skal jeg nok få skrevet om koden bagved. Det bliver engang i næste uge.

Jeg vil gøre opmærksom på, at indlægget her ikke handler om politik, overhovedet. Det handler om at bruge nettets muligheder, når det kommer til dynamiske hjemmesider. Så skulle det være på plads.

Kommentarer og spørgsmål er hjertelig velkomne.

Siden vises i øvrigt bedst i Firefox.

Opdatering 18. nov. 2010 kl. 19:53: Jeg er ikke den eneste, som har udgivet en pointberegner. TV2 har også en pointberegner, det er dog et Excel-ark, man skal downloade.


0

Vælg alder:
Jeg er 24 år eller derover. Krav: 60 point.
Jeg er under 24 år. Krav: 120 point.

1. Færdiggjort uddannelse:
120 POINT: Ph.d./kandidatuddannelse i Danmark eller top 20 universitet.
80 POINT: Ph.d./kandidatuddannelser andre universiteter i udlandet.
70 POINT: Bacheloruddannelser i Danmark eller top 20 universitet.
50 POINT: Bacheloruddannelser andre universiteter i udlandet.
50 POINT: Erhvervsakademi- og professionsbacheloruddannelser i Danmark.
40 POINT: Erhvervsakademi- og professionsbacheloruddannelser i udlandet.
2. Erhvervserfaring:
80 POINT: Kvalificeret erhvervserfaring (positivliste-job) i 2 år i Danmark.
60 POINT: Kvalificeret erhvervserfaring (positivliste-job) i 2,5 år ud af de seneste 3 år i udlandet.
40 POINT: Anden erhvervserfaring i 2,5 år ud af de seneste 3 år i udlandet.
3. Sproglige kvalifikationer:´
50 POINT: Dansk, svensk og norsk på niveau svarende til studieprøven (C 1).
40 POINT: Engelsk, tysk, fransk, spansk på niveau svarende til studieprøven (C 1)
4. Øvrige:
20 POINT: Dansk på niveau svarende til Prøve i Dansk 2 (B1-B2)
20 POINT: Engelsk, tysk, fransk, spansk på niveau svarende til Prøve i Dansk 2 (B1-B2).
20 POINT: Hvis ansøger ikke bosætter sig i et udsat boligområde.
10 POINT: Aktiv deltagelse i globale humanitære organisationer.
10 POINT: Selvforsørgelse (kan ikke kombineres med erhvervsarbejde).

Getting started with JavaScript – Online tutorials


[tweetmeme]If you want to learn JavaScript, these two sites will make your life easier.

By: Martin Ove

Learning new stuff is a lot easier, when you have access to good and inspiring materials to aid you on the way.

I wanna share two sites with you, that have taught me the JavaScript I know. If your seeking a step-by-step incremental tutorial on how start using JavaScript, this is it. (more…)