Nelen & Schuurmans, the company where I work, offered the Software Developers a User Interface Design course by Namahn. It was a great reminder of the seemingly obvious processes one can incorporate in a software project, but sadly also a warning for blatant ignorance we sometimes portray as Developers (of course not just at N&S). The workflow Namahn uses is similar to what other design oriented companies would use. Which can be described in three phases: Understand, Explore and Define.
Last time I wrote something about something very simple, but something I really enjoy. Conditional classes and inline event handlers. It’s not a very difficult or complex feature. But I did not find a lot of writing about it. And also it saved me loads of jQuery statements that you don’t want in a controller, but in the UI. Next up: Directives. Directives are pret-ty awesomevilles. For the “stop/play video player like”-thing we are building, we would like to have a timeline or time slider, to go back to a previous images.
Last few weeks at work I have been trying out Angular JS. First of all, because it is fun and useful to try out new stuff. Secondly because after working with Backbone/Marionette for a few months some things felt that they could’ve been done better. So whilst working on a big Backbone/Marionette project I started looking at Angular a bit. I’ll just show you some of my favourite features. We are building an app that needs to play, stop, pause etc much like a video player.
Vagrant is a great tool if you like to develop and test on the same server. Or at least emulate that you have the same server and at the same time keep your own system fairly clean. I’ve been using it for quite a while. After reinstalling my ubuntu machine to get rid of 12.10 and start 12.04 LTS a fresh I had to fix something in my install of vagrant.
This took me a while to unravel, so before I forget or before other people run into the same issues, let’s make a note of this. Assuming you are using a debian-like linux distribution (ubuntu, debian, linux mint, etc. anything using: apt-get to install packages) there are a few things to note. First of all make sure you have the latest packages for: mapserver, gdal, etc. (ubuntu-gis repository has newer versions than the standard repositories).
This might be a repost of some sort. However I found that it was kind of hard to find anything about this specific topic. So here it goes. Kriging is a geostatistical method to be able translate point data to a grid, to find out where you can predict stuff really well and where the variance is really high. As always GIGO (garbage in garbage out). But it is at least a large improvement from interpolation techniques such as Inversed Distance Weighting (IDW) which is often implemented in GIS software.
This has been a little mystery for me waiting to be uncovered. However I solved it. Depending if you are using a SLD (styled layer descriptor) or the embedded Style commands this is what your Mapfile could look like: MAP NAME "Some Map" DEBUG ON FONTSET "/home/fritz/maps/fonts.txt" WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "WMS Demo Server" ##required "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=map.map" ##required "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:7030 EPSG:32736" ##recommended END END PROJECTION "init=epsg:32736" ##required END # # Start of layer definitions # LAYER NAME 'test' METADATA "wms_title" 'test' END TYPE RASTER STATUS ON DATA '/home/fritz/maps/colorscale_test.tif' PROJECTION "init=epsg:32736" ##required END CLASS NAME "test" STYLE COLORRANGE 255 255 0 140 160 160 DATARANGE 0.02 0.6 RANGEITEM "[pixel]" END END PROCESSING "SCALE=0.2, 0.6" END The Scale and Datarange command look very similar and I haven’t figured out quite how to set it properly, or how to have three-color scale.
Those who think they “know” everything from the beginning will never, in fact, come to know anything – Thomas Merton Over the last few weeks (months) I haven’t been posting too much. Sorry about that. For all the people who are interested in what I am doing a little update. At the moment I am trying to write up the document to present the thesis to my supervisors. The research part is almost brought to an end with this step.
Excuses Had het druk Met dingen Vuilmaken aan bezigheden Hier en daar Zaakjes lopen Radiostilte uit kamer 2 Bezigheden houden hem druk Hooi op zijn vork Een vol bord, een lege maag Nee, niet nu Morgen Nee, ja, druk Met dingen