Albin Larsson: Blog

Culture, Climate, and Code

Norway Open data and Night Hawk

23rd June 2014

I’m just about to order a Forerunner 210 GPS watch because I have lost my best running watch and I’m in need of one for the orienteering. In august I’m going to Holmenkollen in Norway to participate in the orienteering relay Night Hawk and last year the Norwegian government decided to release tons of Geo data under CC BY 3.0 ,this data includes height data(DMT) for a major part of Norway (Source (in Norwegian)).

I think you know where I’m heading!

Just think about the amazing visualization I will be available to render! First the DMT rendered with WebGl in 3D, then the orienteering map as a layer on top of that and then the GPS track on top of that(Probably I need to write some custom GeoJSON solution) with the possibility to watch my lap! I can find some “How to write” issues in my idea right now but I leave them for later.

To make it even more cool I will try to lend a GoPro Hero so I can sync a video from the forest with the 3D map(The Headlight is a issue there but it’s a small issue).

Get it, It’s the best most awesome idea in the history of ice cream!

OMapMapper Plans

30th May 2014

If you have been reading my blog time to time you know about OMapMaper, my project with the goal to in one week develop a fully working web app. OMapMapper ended up being a app for browsing your orienteering maps by location and sharing them online. It's not to simple to setup and it should not be used on a shared server. When the project week was over I had no intention to do any major improvements to the app, but things changes and now I got new ideas and feature concepts.

The new concept is about making OMapMapper just as simple to setup and use as Wordpress. Right now OMapMapper has some major issues.

Security

Usability

The new concept introduces support for multiply users/accounts so that people can share server/web host. It will be responsive! It will have a full featured GeoJSON API so that you can embed the maps with no need to update anything. It will be simple to setup(just as Wordpress).

I don't know when I will do this, I have tons of plans this summer, I'm going to do orienteering in at least three countries, I will hopefully launch a private web service and I'm moving from home to study technics and orienteering. But I will get the time because this time my goal is to get the project done in three days not seven as last time.

The AWW Library

7th May 2014

I’m not a big fan of jQuery, but I do many AJAX calls. Most time I just write the AJAX calls straight into my code, it works fine! :-) Some days ago I did some work with WebWorkers(Get it, it’s good stuff), as in many of my tests I’m adding jQuery to do things just a bit faster(by that I mean my coding speed). I ran into the issue that I can’t use jQuery in a WebWorker, and writing it the XMLHttpRequest way for all my future WebWorker tests? No thanks.

You already know what I did next.

I do now that there is tons of small AJAX libraries in the wild, but not to many that’s below two kb in size, works with WebWorkers and most important made by me ;-)

AWW

Minimal AJAX requests for WebWorker usage.

Say hello to AWW.ajax(), AWW.get() and AWW.post().

Simple example:

AWW.ajax({
  url: "http://filltext.com/?rows=10&business={business}&location={city}&pretty=true",
  success: function(data) {
    document.getElementById('results').innerHTML = data;
  }
});

WebWorker example:

importScripts('../../aww.js');

getData();
setInterval(getData, 1000);

function getData() {
  AWW.ajax({
    url: "http://filltext.com/?rows=10&business={business}&location={city}&pretty=true",
    success: function(data) {
      postMessage(data);
    }
  });
}

For the full working examples see the “tests”(NOTE: You will need a web server to run the WebWorker example).

It’s very easy to learn just by reading the code.

If you would like to explore AWW a bit deeper check it out on Github.

Dear Time

12th April 2014

I haven’t posted anything here, I haven’t updated any of my projects and I have been “dead” at Google+/Twitter in a while. I got a reason, or two maybe three but first some things I have done.

Redesigned this blog

I still need some more creative for the blog header, looking weird right now, I need to replace the social buttons(for speed) and design, the Google+ one is really slow and I need to write some script to make sure that Disqus is only loading when used(speed and the fact that all discussions ends up on Twitter and Google+).

Updated App Ground Not any major changes(no needs for it) but changed to Normalize.css version 3 and there is on “and” ;-)

So I need to have some reasons for nearly none commits to Github in about two weeks?

School, boring but interesting, physics is fun, math is also fun, the rest is just boring, I’m quite sure that I have the grades I need but now I end up working to improve them anyway. My old thought “Why work for grades I don’t need?” I seams to forgot about.

Orienteering, the best thing ever invented is back after a not so long winter, I’m not allowed to run everything I would like to,for example I’m not running in the league for now, but still all the traveling takes time and my weekends will be occupied until next winter ;-)

My not so secret project, the thing that takes most time from my open source/data is a web service I’m working on, some people reading this can probably guess what it’s all about, when I decides to tell everyone what it’s I will explain it and my intentions. It’s nothing that doesn’t exists, probably it won’t be public, because I won’t be available to cover the server costs and I have no intends to make any profit. It’s all about learning as always ;-)

Older PostsNewer Posts