by kalle | Jul 2, 2010 | Hacking, Websidor
Igår började lagen om vidareanvändning av information att gälla. Den är en konsekvens av PSI(Publi Sector Information) direktivet från EU. Detta är viktigt ur ett demokratiskt perspektiv för det ger oss alla möjlighet att använda den information myndigheterna samlar ihop om oss och vårt samhälle! Men det är också en enorm potential för en massa entreprenörskap!! Men för att den möjligheten inte skall gå i stöpet är det enormt viktigt att informationen blir tillgänglig i väldokumenterade och standardiserade strukturer. Så nu vill vi se alla myndigheter komma med öppna och tydliga APIer!
Flera webentreprenörer tar nu och uppmanar myndigheterna att snabba på denna process och att göra det enkelt och tydligt. Jag vill härmed ansluta mig till denna grupp genom att publicera följande öppna brev som är författat av Jonas Lejon och Joakim Jardenberg:
Kära generaldirektörer, låt oss tillsammans göra världen bättre!
Ni sitter sedan många år tillbaka på stora mängder data som är intressant ur flera aspekter. Det handlar om information som vi skattebetalare redan betalt för. Olika aktörer i samhället kan vidareutnyttja information för olika ändamål, t.ex. genom skapandet av nya e-tjänster, såväl kommersiella och ideella. Men ofta har det varit förknippat med stora kostnader och svårtillgängliga lösningar. Äntligen ser vi en ändring komma till stånd.
Att vi entreprenörer kan ta del av denna information även elektroniskt har vunnit laga kraft sedan idag, den 1:a juli 2010. Den så kallade PSI-lagen (Prop. 2009/10:175) öppnar upp för stora möjligheter att skapa tjänster som förbättrar vardagen för oss alla.
Att ni själva sitter på kunskapen att förädla denna information i viss mån är mycket möjligt, rent av sannolikt, men om fler får möjlighet att jobba tillsammans så kommer garanterat resultaten att bli ännu bättre. Det saknas sannerligen inte internationella exempel på de effekter man får av att släppa publikt data tillgängligt för vidareutnyttjande.
Vi vill därför uppmana alla myndigheter och deras chefer att snarast börja arbeta i PSI-direktivets anda och uppfylla den intention som lagen speglar. Citerar från regeringskansliets sida om PSI – vidareanvändning av information:
”Syftet med lagen är att främja utvecklingen av en informationsmarknad genom att underlätta enskildas användning av handlingar som tillhandahålls av myndigheter.”
För att detta ska bli verklighet krävs i praktiken ett API till era tjänster. Vi vill därför med detta brev uppmärksamma er på behovet av att ni skyndsamt öppnar upp en sådan möjlighet. Först då kan vi börja jobba på allvar, och först då kan både ni, vi, lagstiftarna och samhället se den fulla nyttan av den utveckling som startar nu. Vi är många som är villiga att hjälpa till, så se det här brevet också som en utsträckt hand. Dialogen är igång, nu är bollen er.
Ovanstående text är i huvudsak författad av Jonas Lejon (ansvarig bland annat för tjänsten govdata.se)), bearbetad av Joakim Jardenberg (bland annat projektledare för Makten och Öppenheten) och helt fri att kopiera, bearbeta och vidarebpublicera enligt CC0.
—-
För den som vill läsa mer om den nya lagen 2001:566 så finns lagtexten bl.a. på Lagen.nu: https://lagen.nu/2010:566. Mycket intressant finns att läsa i propositionen bl.a. detta:
i direktivet före-skrivs att handlingar ska göras tillgängliga i alla befintliga format hos myndigheten. Detta innefattar även kravet att elektroniska handlingar ska lämnas ut i elektronisk form, under förutsättning att det är möjligt och lämpligt.
Hjälp oss att sprida budskapet genom att länka och återpublicera ovan text!
Och jag kan inte annat än att falla in i uppmaningen: Hjälp oss att sprida budskapet genom att länka och återpublicera ovan text!
by kalle | May 21, 2010 | Foto
Smartson presenterade nyss en ny variant av deras tester. Man testar ihop i team samt de vill man använder sin blogg! Känns både väldigt skoj och helt rätt. Just med att testarna bloggar i sina bloggar gör ju att spridningen nog blir större.
Jag anmälde mig och Staffan till deras test av Canon 550D. Vi kan bli ett riktigt bra team tror jag. Staffan funderar just på att skaffa en systemkamera så han har många nybörjarfrågor och funderingar. Å andra sidan har jag fotat mycket med systemkameror de senaste 5-6 åren. Jag har ett par DSLRer men ingen med video så testen innehåller både sådant jag känner väl till samt video som jag är jättesugen att testa.
Om vi kommer med kommer jag både ladda upp bilder här men kanske även återaktivera min fotoblog. Nu är det bara hålla tummarna.
by kalle | Jan 24, 2010 | Foto
I have been pondering creating my own plugin for generating web galleries of my photos for some time but this weekend I took the time! I have been looking around at different solutions and both Highslide Gallery from The Turning Gate and Elegance from Photographer’s Toolbox are both clean and uses CSS and JavaScript. But they both had a number of issues I didn’t like. The main problem with elegance is that someone with a large display cannot really enjoy the photos since they do not scale, and someone on a small screen can’t see the whole photo. TTG Highslide lacked a few other features,no way to change the controls to small white icons instead of text, no way to place the controls above the enlarged image, no numbers in the heading, unable to remove the thumbstrip when viewing the enlarged images and not possible to constrain the size of the popup so it does not resize depending on image.
But HighSlide which TTG HighSlide is based on is extremly re-configurable and you can fix all of those issues. Specifically easy to do since it also has a very nice visual editor!
Though to use my own modified version required me to write my own web engine. It was very easy to get started with the aid of the Lightroom SDK. With the tutorials in the manual one can create a new web engine in minutes. On the other hand it was not that easy to integrate with Highslide. But after a couple of hours I now have a working version which I’m satisfied with at the moment. I used the Highslide editor to create a how I wanted the enlarged photos and navigation to look like. I downloaded the zip file from the editor, copied it into my new lrwebengine folder. Created a new index.html file and copied all from the highslide-custom-example.html into it. All new styles etc I put into a new gallery.css file. Once I had got a look I liked the next step was to take it appart and but into header.html, footer.html and grid.html.
Then it was bout time to start tweaking the manifest and the galleryInfo files to do what I wanted. One of the things I have not liked with the default galleries is the odd folders they put photos in. But in Lightroom Blog I found out how to control where the web engine store photos.
I ran into some more small problems, related to Lua since I had never written any programs in Lua before. Programming in LUA was useful! Also looking into the LightroomForums.Net was helpful for more Lightroom and plugin related problems.
I have not added support for LiveUpdate yet since that required some more JavaScripting.
Things to improve:
- change the size of the enlarged photo
- change the colour of the background for the enlarged photo
- change font and size for Title, Description, Image number and Caption
- change number of coloumns
- change page background colour and thumbnails layout
- add support for live update
- add support for facebook comments?
If you want to create your own Highslide gallery or based on some other library you can download my files here. I have not included the Highslide files since they are not totally free and you need to agree to the license before using them.
by kalle | Nov 1, 2009 | Hacking
I’m on the train home to Gothenburg after a couple of superfun days in Stockholm!
On Wednesday evening we(me, Staffan, Daniel and Anders) took the boat to Yasuragi Hasseludden together with about 120 other internet geeks for the second 24 hour Business Camp. We all had a great evening with delightful food and marvelous bathing in the hot springs at Yasuragi! Thursday started with presentations from the sponsors and it was really interesting to see that the sponsors put in much more support or funding this time than last. The whole 24 hour concepts seems to have matured and caught a much bigger interest this time. Though the whole comradeship and openness which I like a lot was still very present!
At lunch on Thursday it all started with 24 hours of frenetic coding and building. The rooms was filled again with almost tangible energy which is a great drug to help that sleep stay away. Compared to last time and to my experience from 24HourSormland we did a lot of things right this time! I’ll try to recollect the most important ones here.
Agile development – we decided to have 30 minutes development itterations. Problems became visible quickly, everyone in the team was aware of how things developed etc. At times, specifically late in the morning the iterations became a bit longer, about an hour each and things started to slow down. It’s hard to tell when to stop for a short sleep break. We gave up at 6 in the morning and slept for 3 hours for a final burst until 12.
Many developers – On the last 24hbc I was alone and on 24HourSormland we were four people but I was the only developer. This time we were three developers and it was so obvious how much quicker things got implemented! Also problems was solved much quicker since if we found out that someone had been stuck on one problem during an iteration all three of us could try to solve it! And we could provide each other with new perspectives on the problem as well.
Clear concept and finished idea – when going to Yasuragi we had most of the interaction with HiThere ready. The application flow had been decided in advance, everyone in the team knew roughly how it was supposed to be used and what things needed to be developed. This really helped us to divide things into tasks, Anders worked with the graphics, Staffan worked the backend, Daniel with the iPhone app and I worked with the social network integration.
Prepare as much as possible – we were very well prepared. The hosting on GleSYS servers were setup days in advance. We had registered the domain, pointed it at our server, installed all software on the server and had prepared a deployment script. By execute that script we had a new version up and running live on the site within minutes! We had made sure we know how to get push notifications working on the iPhone, we had checked all certificates were proper and working, all development tools working. We had even prepared to develop the whole site and application without any network connectivity, e.g. setup a code sharing repository on a USB stick which we could hand around to synchronize the code in the team.
Some lessons learnt:
It helps a lot to have used the APIs or libraries before. This time a lot of time was spent on the Facebook integration and there are still more to fix here. One reason why it took time to solve things was that we used the Facebooker plugin to Rails. It works great to use plugins in Rails when everything works but if they are not well documented which is the case with Facebooker and things starts to behave strangely it is much harder to find what is causing the problem. We have a couple of other projects which are about to use Facebook in a similar way so even if things didn’t work out a lot was learnt about the Facebook API.
Another thing which we didn’t focus on was a sales pitch. It was more ad hoc style since we all focused on the problems ahead. The model used at 24HourSormland is probably better, where presentations are done a couple of days after the actual camp. Or one should bring on a person in the team focusing on marketing, sales and presentation during the 24 hours!
Some really useful tools:
Skype – Skype was really useful during the event. We created a chat for the four of us and used it to sync each iteration. Once every hour or so we took a short break in conjunction with the sync to get short breaks too but Skype helped us stay focused on the tasks while quickly making everyone aware how things developed. Some problems were also discussed via Skype as well.
DropBox – DropBox was great for sharing files among us such as graphics or shorter texts. It cannot handle revisions as a code repository can but it is still very useful because it is fast and files stays organized. It is also great how well it integrates into the ordinary file system.
So that’s a long summary of a great event! If you like HiThere, please head over to the 24 hour business camp website and vote for us! You can read a bit more about HiThere on the 24hbc blog but it’s in Swedish. There are also lots of photos uploaded and tagged on Flickr!
Tags: 24hourcamp, hithere
by kalle | Oct 19, 2009 | Diverse
Äntligen går det lätt att regga sig för att slippa adresserad reklam! Plus man slipper den vanliga reklamen med!
Dock dom har lite kvar o fixa på sajten, jag klarade inte registrera mig via Flock utan var tvungen att köra Internet Explorer. Men det är nog bara lite barnsjukdomar så här i starten! Så hjälp dem gärna att sprida ordet och få chans och få ett år reklamfritt spotify med!!
by kalle | Oct 12, 2009 | Websidor
Have spent the last days with moving all my webpages, blog etc to a new host. It takes some time to transfer 5Gb with only 700 kbit uplink! But now it should live in a much more responsive environment with 5mbit access! Please let me know how it works for you. Does the site feel faster? Slower? Or??
by kalle | Sep 21, 2009 | Foto, Hacking, Hardware projects, iPhone, Technology in general
Got inspired by this article on how to use a water drop to create a macro lens for the iPhone. So tested that today and here is the result:
From left to right: a closeup on a Swedish 20 kr bill with the water drop lens. Almost the same photo but without the water lens. Finally a photo of the bill at the minimal distance where one has focus without the water drop.
by kalle | Aug 7, 2009 | Fjällvandring, Foto
I brought my Holux M-241 on our last hike in the Swedish mountains and wanted to use the tracks to geotag all photos. So when I got home I used the Holux Utility software to download all tracks. Worked fine and I uploaded all to WikiLoc but when then to geocode all the images in Ligthroom I tried to use Jeffrey Friedls GeoEncoding plugin but realised it couldn’t handle the kml files. After some fiddling around I found out that the timestamps where missing in the kml files.
After some googling I found out what options to use on GPSBabel to get it working. It was mentioned here.
gpsbabel -p “” -w -i gnav_trl -f “OLDFILE.trl” -o gpx -F “NEWFILE.gpx”
So using those options with all the different trl-files I got from the unit I managed to create one gpx file that Jeffrey’s excellent plugin could manage. Then I used Jeffrey’s other plugin to upload all the photos to Flickr where they can be viewed on a map!
Next time I’ll try to use the built in functionality of GPSBabel to download data directly from the Holux M-241. In the same thread it was mentioned one should do:
Windows (if on COM10): gpsbabel -t -r -w -i m241 -f COM10 -o gpx -F data.gpx
though have not tried it yet.
Tags: photo, geotagging, gpsbabel, lightroom
by kalle | Aug 6, 2009 | Websidor
Är inte nöjd med den bandbredd jag får ut från min ADSL och pågrund av att jag bor över 3500 m från stationen är det inte mycket som går att göra, speciellt vad gäller bandbredden upp. Detta får ju som konsekvens att de som kollar på bilder på min sajt får en ganska seg upplevelse. Så har börjat titta runt på lite olika alternativ att istället hyra en del i en server istället, så kallad VPS(Virtual Private Server)
Hittade lite olika svenska alternativ med bara IPeer tilllåter en att testa på. Har ansökt men inte kommit igång o test än.
Hittade även Gandi och Slicehost. Gandi verkar ha en väldigt flexibel lösning och till hyffsat bra pris och det går att testa på en månad gratis vilket Slicehost inte erbjuder. Så har precis skickat över en stor det av min web till Gandi och det verkar fungera utmäkrt. Och de har MYCKET högre bandbredd än mitt ADSL kan ge. Så tex denna sida bör ladda mycket snabbare här.
Har fört över alla filer från hemma servern så nu skall det mesta ligga här http://92.243.25.1/privat/
Måste dock se till och peka om DNSen och även få upp WordPress och bloggarna med, men skall ta och test köra Gandi ett tag nu.
Tags: VPS, nyserver, bandbredd
by kalle | Jul 13, 2009 | Foto
Mixing in old photos or photos from another time can create interesting compositions, like this one from Flickr, found via A Time To Get
or this one from the Flickr group Looking into the Past
Other interesting combinations are; night/day, summer/winter, crowded/deserted etc. Have to try this sometime!
Tags: photography, inspiration