<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Tech in Journalism</title>
	
	<link>http://martinove.dk</link>
	<description>tips for webworkers</description>
	<lastBuildDate>Mon, 04 Apr 2011 11:33:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/martinovedotdk" /><feedburner:info uri="martinovedotdk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Events in and out of Google Maps</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/Qs8Gy4QRpjw/</link>
		<comments>http://martinove.dk/2011/04/01/events-in-and-out-of-google-maps/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 11:40:27 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[dHTML]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Interactive Graphics]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=871</guid>
		<description><![CDATA[Google Maps allows for events to affect the website surrounding it and vice versa. Here's an example and some pointers on how to do it yourself.]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#map_canvas_31032011 {
width: 100%;
height: 400px;
}
#content_wrapper_31032011 {
width: 100%;
height: 250px;
}
#menu_31032011 {
margin-left: 10px;
padding: 5px;
border-style: solid;
border-width: 1px;
background-color: #eeeeee;
width: 30%;
float: right;
}
.highlight {
font-weight: bold;
}
</style>
<p><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><script type="text/javascript" src="http://martinove.dk/js/jquery-1.5.1.min.js"></script><script type="text/javascript" src="http://martinove.dk/js/main_31032011.js"></script></p>
<div id="map_canvas_31032011"></div>
<div id="content_wrapper_31032011">
<div id="menu_31032011">
<h6>Evakueringszonerne<br />nær Fukushima</h6>
<ul id="menuList">
<li id="overblikMenu">Overblik</li>
<li id="20kmMenu">20 km zonen</li>
<li id="30kmMenu">30 km zonen</li>
</ul>
</div>
<div id="content_31032011">
<div id="overblik">
<h2>Fordrevet på ubestemt tid</h2>
<p>Situationen omkring atomkraftværket Fukushima 1 er stadig meget kritisk, og den øgede stråling har betydet, at mange indbyggere i området er blevet evakueret.</p>
<p>Minderne fra Tjernobyl trænger sig på, for der er endnu ingen, der ved, hvornår området igen er sikkert at bo i.</p>
<p>Klik på evakueringszonerne for at læse nærmere om, hvad det betyder at bo inden for henholdvis 20 og 30 km fra atomkraftværket.</p>
</p></div>
<div id="20">
<h2>78.000 uden hjem og tidshorisont</h2>
<p>Omkring 78.000 japanere, som boede inden for 20 km af Fukushima 1-værket, er blevet evakueret.</p>
<p>Det er endnu uvist, hvornår de igen kan komme tilbage til deres hjem, men de bliver ikke i løbet af de første dage eller uger, forklarer de japanske myndigheder.</p>
</p></div>
<div id="30">
<h2>62.000 påvirket</h2>
<p>Der bor 62.000 japanere mellem 20 og 30 km fra atomkraftværket. De er blevet opfordret til at forlade området af de japanske myndigheder. Forlader de ikke området, bør de holde sig indendøre.</p>
<p>Evakueringszonen omkring Tjernobylværket var også 30 km. Inden for den grænse er der &#8211; 25 år efter &#8211; stadig næsten mennesketomt.</p>
</p></div>
</div>
</div>
<hr />
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2011%2F04%2F01%2Fevents-in-and-out-of-google-maps%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2011%2F04%2F01%2Fevents-in-and-out-of-google-maps%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Using circles and events in Google Maps &#8211; the nerdy part</strong></p>
<p>Here&#8217;s a little something I did after reading about the contaminated areas around the Fukushima Dai-ichi Power Plant. The danish newspaper <a href="http://www.information.dk/telegram/264039">Information has a piece here</a>, <a href="http://edition.cnn.com/2011/WORLD/asiapcf/04/01/japan.nuclear.reactors/index.html?iref=allsearch">CNN got a piece here</a>.</p>
<p><span id="more-871"></span></p>
<p>The basic idea is to use the maps object &#8220;circle&#8221; to quickly put a clickable element on the map. Clicking the the circle will then of course present the relevant information. In this example I use JQuery to show() and hide() the corresponding information.</p>
<p><strong>Effects &#8211; It&#8217;s a usability thing</strong></p>
<p>To make the graphic seem responsive to the user I&#8217;ve added some small effects. This is quite important as it bring life to the graphic, I wanna <em>see</em> that something happens when I click something.</p>
<p>In this example, two effects are applied when clicking either of the circles. <strong>1</strong>. The width of the line at the outer rim of the clicked circle goes from 1 pixel to 2 pixels. <strong>2</strong>. The font-weigth of the corresponding list item goes bold.</p>
<p>The same thing happens when you click to list items, except for &#8220;Overblik&#8221;, which just puts both the circles line width to it&#8217;s standard of 1 pixel.</p>
<p><strong>Make the map and site &#8220;listen&#8221; to each other</strong></p>
<p>I won&#8217;t go in details about events in this post. You can get a taste of it here: <a href="http://www.w3schools.com/dhtml/dhtml_events.asp">HTML Events</a>.</p>
<p>For those of you familiar with events fired in the standard HTML DOM, I&#8217;ll just point you in the right direction for making the map respond to DOM events and vice versa.</p>
<p>Google Maps has it&#8217;s own object model inside it. The map itself and various objects like polygons and so on can fire events like you&#8217;re used to from the HTML DOM. That makes the Google Map an powerful anchor for your dynamic website.</p>
<p>The information of events can also flow the opposite way by adding a DOM Listener to the map. In this example I use that feature for listening to clicks on the menu items, which in turn makes the corresponding circle respond by increasing it&#8217;s line width to 2 pixels. You can find all about event handling in Google Maps here: <a href="http://code.google.com/intl/da/apis/maps/documentation/javascript/events.html">Google Maps JavaScript API V3 Events</a>.</p>
<p><strong>End note</strong></p>
<p>First of all, if you&#8217;ve been reading this far, thank you! This is nerdy stuff, but the result are worth it.</p>
<p>Next of, the map seems to have issues when embedded in WordPress. If you take a look at the zoom status bar, it&#8217;s pretty much gone. Also, the satellite images doesn&#8217;t load right when you&#8217;re zoomed in. I&#8217;m not quite sure what to do about it.</p>
<p>That&#8217;s it, thanks for reading! Question and comments are more than welcome, of course.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/Qs8Gy4QRpjw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2011/04/01/events-in-and-out-of-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2011/04/01/events-in-and-out-of-google-maps/</feedburner:origLink></item>
		<item>
		<title>Bye bye, text bubble in Google Maps</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/rpFz0OwwpVE/</link>
		<comments>http://martinove.dk/2011/03/18/bye-bye-text-bubble-in-google-maps/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 13:17:46 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[dHTML]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Interactive Graphics]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=717</guid>
		<description><![CDATA[@import "http://martinove.dk/js/css_alternativ.css"; .gemt { display: none; } #map_canvas {width: 580px; } #infographic {height: 500px;} Orkanen Katrina 29.08.2005 Orkanen Katrina ramte USA og gjorde især skade på byen New Orleans. Også de omkringliggende områder blev ramt, som f.eks. byen Mobile i staten Alabama. Water covers Royal Street in downtown Mobile, Ala., as Hurricane Katrina hit the <a href='http://martinove.dk/2011/03/18/bye-bye-text-bubble-in-google-maps/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<style type="text/css" media="screen">@import "http://martinove.dk/js/css_alternativ.css";</style>
<style type="text/css">
.gemt { display: none; }
#map_canvas {width: 580px; }
#infographic {height: 500px;}
</style>
<p><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><br />
<script type="text/javascript" src="http://martinove.dk/js/jquery-1.5.min.js"></script><br />
<script type="text/javascript" src="http://martinove.dk/js/map_alternativ.js"></script></p>
<div id="infographic">
<div id="infoPanel">
<div id="katrinaResume" class="gemt" >
<h2>Orkanen Katrina</h2>
<h3>29.08.2005</h3>
<p>Orkanen Katrina ramte USA og gjorde især skade på byen New Orleans.</p>
</p></div>
<div id="katrinaFull" class="gemt">
<p>Også de omkringliggende områder blev ramt, som f.eks. byen Mobile i staten Alabama.</p>
<p>			<a href="http://www.flickr.com/photos/au_tiger01/110282519/" title="HURRICANE KATRINA by au_tiger01, on Flickr"><br />
			<img class="imgFull" src="http://farm1.static.flickr.com/54/110282519_8e64abde4e.jpg" width="580" alt="HURRICANE KATRINA" /><br />
			</a><br />
			<br />
			<small>Water covers Royal Street in downtown Mobile, Ala., as Hurricane Katrina hit the Gulf Coast on Sunday, August 29, 2005. (photo and caption: au_Tiger01 @ flickr.com)</small>
		</div>
<div id="China_SichuanResume" class="gemt">
<h2>Jordskælv i Sichuan</h2>
<h3>12.05.2008</h3>
</p></div>
<div id="China_SichuanFull" class="gemt">
<p>Jordskælvet i Sichuan provinsen kostede næsten 70.000 mennesker livet og 11 millioner kinesere deres hjem.</p>
<p>		<a href="http://www.flickr.com/photos/remkotanis/3252492758/" title="Sichuan Earthquake May 2008 by Remko Tanis, on Flickr"><br />
		<img class="imgFull" src="http://farm4.static.flickr.com/3263/3252492758_5b2989c65a.jpg" width="580 alt="Sichuan Earthquake May 2008" /><br />
		</a><br />
		<br />
		<small>Collapsed buildings after the 12 May 2008 earthquake in Hanwang, Sichuan, China (photo and caption: Remko Tanis @ flickr.com)</small>
		</div>
</div>
<div id="map_canvas"></div>
</div>
<p><small>The text bubble is often not the best way to show of information in Google Maps. This is a custom layout which uses the user events of Google Maps the show the relevant information. Very buggy and only a crude sketch for now.</small>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2011%2F03%2F18%2Fbye-bye-text-bubble-in-google-maps%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2011%2F03%2F18%2Fbye-bye-text-bubble-in-google-maps%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><em>By: Martin Ove</em></p>
<p>Google Maps is very widely used, and with good reason. It&#8217;s very easy to create maps, and you can customize the information shown in the text bubbles by embedding images and so on.</p>
<p>One thing I hate, though, is getting pushed around a map, which is to small to display all the information, that the publisher wants to show. Here&#8217;s one example, and it&#8217;s even a mild one from the danish tv-station, TV2: <a href="http://nyhederne.tv2.dk/article.php/id-38243088:verdens-dyreste-naturkatastrofer.html">Verdens dyreste naturkatastrofer(Worlds most expensive natural disasters)</a></p>
<p><script type="text/javascript">
initialize();
</script><br />
<span id="more-717"></span></p>
<p>In each text bubble, there&#8217;s a link to a gallery of pictures, one from each of the disasters. Linking and galleries are good, but it&#8217;s a shame that I have to leave the map to look at the pictures.</p>
<p><strong>Cue: JavaScript, CSS and HTML</strong></p>
<p>I believe that the cure is this: Learn! Learn how to make good use of the small space you have, by making the web dynamic. It&#8217;s built into the web, and my example doesn&#8217;t use anything but supported standards for browsers. The technologies are free too, so there&#8217;s no excuse.</p>
<p>Designing dynamic web elements have another thing going for it too. If it&#8217;s well designed, it will entice the curiosity of the user, eager to explore what lies beneath other elements on the map. Of course, there&#8217;s a potential pitfall in this too. The interactive and dynamic element may become incomprehensible and the user may &#8220;give up&#8221; on exploring it as a result of losing the general view. This is a design consideration.</p>
<p>Dynamic web elements are also very interesting, when it comes to mobile devices. The small screen make for a great challenge on how to present information in an intuitive manner without making the content too shallow.</p>
<p>That&#8217;s it. I hope you enjoyed checking out this crude example. Questions and comments are welcome, of course.</p>
<p>Thanks for reading!</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/rpFz0OwwpVE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2011/03/18/bye-bye-text-bubble-in-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2011/03/18/bye-bye-text-bubble-in-google-maps/</feedburner:origLink></item>
		<item>
		<title>Polyline/polygon tool for Google Maps</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/4HE4qmU4Kgc/</link>
		<comments>http://martinove.dk/2011/03/17/polylinepolygon-tool-for-google-maps/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 14:20:50 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Interactive Graphics]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=702</guid>
		<description><![CDATA[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 <a href='http://martinove.dk/2011/03/17/polylinepolygon-tool-for-google-maps/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="https://lh5.googleusercontent.com/__3qmIyg6F94/TYIAgVzJVII/AAAAAAAACVk/pH34Ghgl8Is/polytool.jpg" alt="This small tool aids you in getting the coordinates for your polyline or polygon" /><br />
<small>This small tool aids you in getting the coordinates for your polyline or polygon.</small></p>
<p><em>By: Martin Ove</em></p>
<p>Hi all.</p>
<p>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.</p>
<p>It lets you draw a line with multiple points by just clicking on the map. When you&#8217;re done, you just copy-paste the coordinates for further use.</p>
<p><strong style="color:#ee0000;">Check it out: <a href="http://martinove.dk/maptools/polytool/">martinove.dk/maptools/polytool/</a></strong><span id="more-702"></span></p>
<p>I made it for myself, as I needed to create some polygons for a little project. The process of finding the coordinates is very tiresome, bordering impossible. With this tool, it should be a breeze.</p>
<p>I tested it using IE9, Firefox 4 and Google Chrome, and had no problems.</p>
<p>Instructions:</p>
<p>1. Go to the area, that you want to work with.</p>
<p>2. Click &#8220;Start Plot&#8221;. When you click the map, it will register the coordinates and append it to area below the map.</p>
<p>3. When you&#8217;re done, go to the coordinates below the map and copy-paste them.</p>
<p>That&#8217;s it, you can now use the coordinates as you wish.</p>
<p>Notes: You can disable and activate the plotting as y0u wish. That might be useful, if you find the behavior annoying while navigating the map. You can also undo the added coordinates by pressing the button &#8220;remove last&#8221;.</p>
<p>If you have no idea, what to do with the coordinates, check out the documentation at Google here: <a href="http://code.google.com/intl/da/apis/maps/documentation/javascript/">Google Maps JavaScript API V3</a> and specifically the stuff about polylines and polygons here: <a href="http://code.google.com/intl/da/apis/maps/documentation/javascript/overlays.html#Polylines">Polylines</a>. (polygons are just below that)</p>
<p>I hope you find it useful.</p>
<p>Here&#8217;s a short video demo. The quality is awful, but I hope it gets the message across. Go to 720p and play in fullscreen for the best result.<br />
<iframe title="YouTube video player" width="700" height="435" src="http://www.youtube.com/embed/lIYsWmpUJtw?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/4HE4qmU4Kgc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2011/03/17/polylinepolygon-tool-for-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2011/03/17/polylinepolygon-tool-for-google-maps/</feedburner:origLink></item>
		<item>
		<title>Getting started with PHP</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/GUq0DpBuPAs/</link>
		<comments>http://martinove.dk/2011/02/17/getting-started-with-php/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 14:06:26 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Getting started]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[w3schools.com]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=680</guid>
		<description><![CDATA[EasyPHP gets you up and running in just a few minutes. By: Martin Ove PHP plays a huge role in the internet today, but unlike JavaScript, HTML and the likes, you can&#8217;t just try it out by typing a few commands into a text file and opening it with your browser. PHP has to be <a href='http://martinove.dk/2011/02/17/getting-started-with-php/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="https://lh5.googleusercontent.com/__3qmIyg6F94/TV0k9cXmMxI/AAAAAAAACU0/48q8X5PbXvI/Indspilning%20i%20fuld%20sk%C3%A6rm%2017-02-2011%20143322.jpg" alt="Your local server with PHP after just a few minutes." style="width:720px" /><small>EasyPHP gets you up and running in just a few minutes.</small></p>
<p><em>By: Martin Ove</em></p>
<p>PHP plays a huge role in the internet today, but unlike JavaScript, HTML and the likes, you can&#8217;t just try it out by typing a few commands into a text file and opening it with your browser.</p>
<p>PHP has to be installed on a server, a fact that for a long time has kept me from learning the language. Luckily, I discovered <a href="http://www.easyphp.org/">EasyPHP</a>, which does all the work for you in a few minutes.<span id="more-680"></span></p>
<p>EasyPHP installs a <a href="http://httpd.apache.org/">Apache server</a> and then installs PHP on it. You can do that yourself of course. Here&#8217;s the <a href="http://php.net/manual/en/install.windows.php">Windows installation instructions from php.net</a>.</p>
<p>Over at <a href="http://www.easyphp.org/">EasyPHP.org</a>, things are a little bit simpler though. Check out the <a href="http://www.easyphp.org/introduction.php">introduction</a>, which will guide you through the first steps.</p>
<p><strong>And you&#8217;re set!</strong></p>
<p>After following the <a href="http://www.easyphp.org/introduction.php">introduction at EasyPHP.org</a>, there should be no more obstacles between you and getting familiar with PHP.</p>
<p>Now, you can head over to the <a href="http://w3schools.com/php/default.asp">PHP Tutorial on W3Schools.com</a> and start learning!</p>
<p><strong>Postscript</strong></p>
<p>I&#8217;m not usually a fan of over-simplifying things. I&#8217;m sure that both the Apache server and the installation of PHP is quite doable, but in this case, there&#8217;s a point in taking a shortcut.</p>
<p>I&#8217;ve been working a lot with WordPress, which is written in PHP. It&#8217;s my experience that you&#8217;ll often come across issues, where some basic knowledge of PHP can be quite useful. An example could be simple string operators.</p>
<p>A while ago, I had to customize the line in the theme that says &#8220;Posted by [author] at [time and date]&#8220;. It was simple stuff, so there were no problems in fixing it, but I would have loved to know that the period sign joins strings in PHP, what the include function does and how the date module works in advance.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/GUq0DpBuPAs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2011/02/17/getting-started-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2011/02/17/getting-started-with-php/</feedburner:origLink></item>
		<item>
		<title>Pointsystemet – En interaktiv grafik</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/9T4yrkbaFm8/</link>
		<comments>http://martinove.dk/2010/11/18/pointsystemet-en-interaktiv-grafik/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 17:38:52 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[På dansk]]></category>
		<category><![CDATA[dHTML]]></category>
		<category><![CDATA[Interactive Graphics]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=585</guid>
		<description><![CDATA[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 <a href='http://martinove.dk/2010/11/18/pointsystemet-en-interaktiv-grafik/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F18%2Fpointsystemet-en-interaktiv-grafik%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F18%2Fpointsystemet-en-interaktiv-grafik%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><em>Af: Martin Ove</em></p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>Kommentarer og spørgsmål er hjertelig velkomne.</p>
<p>Siden vises i øvrigt bedst i Firefox.</p>
<p>Opdatering 18. nov. 2010 kl. 19:53: Jeg er ikke den eneste, som har udgivet en pointberegner. <a href="http://nyhederne.tv2.dk/article.php/id-35097262:test-kan-du-f%C3%A5-ophold-i-danmark.html">TV2 har også en pointberegner</a>, det er dog et Excel-ark, man skal downloade.</p>
<hr />
<script type="text/javascript" src="/js/pointsystem.js"></script></p>
<div id="resultScreen" style="width:200px;float:right;padding-left:10px;">
<div id ="status" style="float:left;"></div>
<div style="border:solid;float:right;height:400px;width:40px;background:#33ff00;">
<div id="bar" style="background-color:#ffffff;height:100%;">
<div id="meterText" style="padding-left:5px;height:400px;width:40px;">
            0
        </div>
</p></div>
</div>
</div>
<div style="height:400px;overflow:auto;">
<strong>Vælg alder:</strong></p>
<input onclick="setReq()" type="radio" id="radio1" name="rad" />Jeg er 24 år eller derover. Krav: 60 point.</p>
<input onclick="setReq()" type="radio" id="radio2" name="rad"/>Jeg er under 24 år. Krav: 120 point.</p>
<form id="valg">
<strong>1. Færdiggjort uddannelse:</strong></p>
<input onclick="calcResult()" type="checkbox" value="120" /> 120 POINT: Ph.d./kandidatuddannelse i Danmark eller top 20 universitet.</p>
<input onclick="calcResult()" type="checkbox" value="80" /> 80 POINT: Ph.d./kandidatuddannelser andre universiteter i udlandet.<br/></p>
<input onclick="calcResult()" type="checkbox" value="70" /> 70 POINT: Bacheloruddannelser i Danmark eller top 20 universitet.<br/></p>
<input onclick="calcResult()" type="checkbox" value="50" /> 50 POINT: Bacheloruddannelser andre universiteter i udlandet.<br/></p>
<input onclick="calcResult()" type="checkbox" value="50" /> 50 POINT: Erhvervsakademi- og professionsbacheloruddannelser i Danmark.<br/></p>
<input onclick="calcResult()" type="checkbox" value="40" /> 40 POINT: Erhvervsakademi- og professionsbacheloruddannelser i udlandet.<br/><br />
<strong>2. Erhvervserfaring:</strong><br/></p>
<input onclick="calcResult()" type="checkbox" value="80" /> 80 POINT: Kvalificeret erhvervserfaring (positivliste-job) i 2 år i Danmark.<br/></p>
<input onclick="calcResult()" type="checkbox" value="60" /> 60 POINT: Kvalificeret erhvervserfaring (positivliste-job) i 2,5 år ud af de seneste 3 år i udlandet.<br/></p>
<input onclick="calcResult()" type="checkbox" value="40" /> 40 POINT: Anden erhvervserfaring i 2,5 år ud af de seneste 3 år i udlandet.<br/><br />
<strong>3. Sproglige kvalifikationer:</strong>´<br/></p>
<input onclick="calcResult()" type="checkbox" value="50" /> 50 POINT: Dansk, svensk og norsk på niveau svarende til studieprøven (C 1).<br/></p>
<input onclick="calcResult()" type="checkbox" value="40" /> 40 POINT: Engelsk, tysk, fransk, spansk på niveau svarende til studieprøven (C 1)<br/><br />
<strong>4. Øvrige:</strong><br/></p>
<input onclick="calcResult()" type="checkbox" value="20" /> 20 POINT: Dansk på niveau svarende til Prøve i Dansk 2 (B1-B2)<br/></p>
<input onclick="calcResult()" type="checkbox" value="20" /> 20 POINT: Engelsk, tysk, fransk, spansk på niveau svarende til Prøve i Dansk 2 (B1-B2).<br/></p>
<input onclick="calcResult()" type="checkbox" value="20" /> 20 POINT: Hvis ansøger ikke bosætter sig i et udsat boligområde.<br/></p>
<input onclick="calcResult()" type="checkbox" value="10" /> 10 POINT: Aktiv deltagelse i globale humanitære organisationer.<br/></p>
<input onclick="calcResult()" type="checkbox" value="10" /> 10 POINT: Selvforsørgelse (kan ikke kombineres med erhvervsarbejde).<br/><br />
</form>
</div>
<div id="test" style="display:none">asdf</div>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/9T4yrkbaFm8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/18/pointsystemet-en-interaktiv-grafik/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/18/pointsystemet-en-interaktiv-grafik/</feedburner:origLink></item>
		<item>
		<title>Tablet anno 2008</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/QFBvAI4b05U/</link>
		<comments>http://martinove.dk/2010/11/09/tablet-anno-2008/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 17:17:37 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Galaxy Tab]]></category>
		<category><![CDATA[N810]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Tablet]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=575</guid>
		<description><![CDATA[I shot this picture back in june 2008 and today I was reminded of it. The screen shows the N810 Internet Tablet with a bluetooth keyboard running Google Docs and saying &#8220;Who needs a laptop?&#8221; in danish. (Photo: Martin Ove Christensen) By: Martin Ove Today I saw the Galaxy Tab on the website of a <a href='http://martinove.dk/2010/11/09/tablet-anno-2008/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://lh5.ggpht.com/__3qmIyg6F94/TNl8masSejI/AAAAAAAACCU/ox_jcucrCNM/s720/13062008833.jpg" width="685" /></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F09%2Ftablet-anno-2008%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F09%2Ftablet-anno-2008%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><small>I shot this picture back in june 2008 and today I was reminded of it. The screen shows the N810 Internet Tablet with a bluetooth keyboard running Google Docs and saying &#8220;Who needs a laptop?&#8221; in danish. (Photo: Martin Ove Christensen)</small></p>
<p><em>By: Martin Ove</em></p>
<p>Today I saw the <a href="http://telia.dk/mobiltbredbaand/tablets/samsunggalaxytab/">Galaxy Tab on the website of a danish retailer</a>. The fourth picture shows the Galaxy Tab with a physical keyboard, and it reminded me of a picture I took, when I got my N810 years ago.</p>
<p>The N810 was the third &#8220;Internet Tablet&#8221; from Nokia and also the last(yet), if you don&#8217;t count in the WiMax edition. Later on, the N900 took over and carried on with the Maemo OS.</p>
<p>The N810 features a 4.13&#8243; 800&#215;480 pixel display and qwerty keyboard. It&#8217;s a bit slow in todays standard, but still very usable.</p>
<p>Anyways, I just wanted to share this little moment of gadget evolution. Oh, check out the header-picture btw, it&#8217;s the same one.</p>
<p>Thanks for reading.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/QFBvAI4b05U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/09/tablet-anno-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/09/tablet-anno-2008/</feedburner:origLink></item>
		<item>
		<title>Getting started with JavaScript – Online tutorials</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/WPeDWNt6aog/</link>
		<comments>http://martinove.dk/2010/11/08/getting-started-with-javascript-online-tutorials/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 18:45:22 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Getting started]]></category>
		<category><![CDATA[htmliseasy.com]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[w3schools.com]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=562</guid>
		<description><![CDATA[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 <a href='http://martinove.dk/2010/11/08/getting-started-with-javascript-online-tutorials/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://lh3.ggpht.com/__3qmIyg6F94/TNhC3QF9rjI/AAAAAAAACB8/ApTRF3kB3ng/w3schools_htmliseasy.jpg" /></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F08%2Fgetting-started-with-javascript-online-tutorials%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F08%2Fgetting-started-with-javascript-online-tutorials%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><small>If you want to learn JavaScript, these two sites will make your life easier.</small></p>
<p><em>By: Martin Ove</em></p>
<p>Learning new stuff is a lot easier, when you have access to good and inspiring materials to aid you on the way.</p>
<p>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.<span id="more-562"></span></p>
<p>The first site is the mother of all, when it comes to learning web technology. The site is <a href="http://www.w3schools.com/">w3schools.com</a>.</p>
<p>There are resources for learning HTML, PHP and all kinds of web technology, and then of course JavaScript.</p>
<p>Check out the <a href="http://www.w3schools.com/js/default.asp">JavaScript Tutorial</a>.</p>
<p>After a while, the tutorial on <a href="http://w3schools.com/">w3schools.com</a> actually became a bit boring, and I tried to find some exercises that would &#8220;light my fire&#8221; concerning JavaScript.</p>
<p>I found the site <a href="http://www.htmliseasy.com/index.html">HTMLisEasy.com</a> and more specific, the JavaScript section. The site offers an excellent <a href="http://www.htmliseasy.com/javascript/index.html">JavaScript Tutor</a>, that you should definitely check out.</p>
<p>After a while I was sorta going back and forth between the two. That&#8217;s actually pretty much where I&#8217;m at now.</p>
<p>That&#8217;s about it for now. If you know of other great sites, let others know in the comments.</p>
<p>Thanks for reading.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/WPeDWNt6aog" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/08/getting-started-with-javascript-online-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/08/getting-started-with-javascript-online-tutorials/</feedburner:origLink></item>
		<item>
		<title>I found a way</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/J8u5v9CzxJE/</link>
		<comments>http://martinove.dk/2010/11/07/i-found-a-way/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 16:54:02 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=557</guid>
		<description><![CDATA[So, Front Page Category didn&#8217;t cut it for me. It was to &#8220;exclusive&#8221;, so to say. The plugin did exclude the category &#8220;Blog&#8221; from the frontpage, but it also made it impossible for the category posts widget to display posts from the category. That wasn&#8217;t good, cause I do want the blog to be more <a href='http://martinove.dk/2010/11/07/i-found-a-way/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>So, <a href="http://wordpress.org/extend/plugins/front-page-category/">Front Page Category</a> didn&#8217;t cut it for me. It was to &#8220;exclusive&#8221;, so to say.</p>
<p>The plugin did exclude the category &#8220;Blog&#8221; from the frontpage, but it also made it impossible for the category posts widget to display posts from the category. That wasn&#8217;t good, cause I do want the blog to be more visible than it would with only the tab in the navigation bar.</p>
<p>I found the plugin <a href="http://wordpress.org/extend/plugins/simply-exclude/">Simply Exclude</a> instead. It&#8217;s actually a bit confusing to use, but once I got my head around it, it does what I want it to. I&#8217;ll recommend it for sure. It seems to allow for some good fine tuning.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/J8u5v9CzxJE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/07/i-found-a-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/07/i-found-a-way/</feedburner:origLink></item>
		<item>
		<title>First “blog” post on this site</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/2AgbjQjwZDs/</link>
		<comments>http://martinove.dk/2010/11/07/first-blog-post-on-this-site/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 16:19:31 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=554</guid>
		<description><![CDATA[I wanted to have a blog on this site beside the more in-depth &#8220;How-to&#8221; stuff. I had to figure out how to keep the blog posts away from the frontpage, as I wouldn&#8217;t like for the small ramblings to take attention away from the heavier posts. Anyways, I might have found the answer in the <a href='http://martinove.dk/2010/11/07/first-blog-post-on-this-site/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I wanted to have a blog on this site beside the more in-depth &#8220;How-to&#8221; stuff.</p>
<p>I had to figure out how to keep the blog posts away from the frontpage, as I wouldn&#8217;t like for the small ramblings to take attention away from the heavier posts.</p>
<p>Anyways, I might have found the answer in the plugin called <a href="http://wordpress.org/extend/plugins/front-page-category/">Front Page Category</a>. I simply allows you to check off the categories, that you want to appear on the frontpage.</p>
<p>I would like for the small blog posts to appear in a widget in the sidebar, and for that, I need to create a category which holds a least one posts. That&#8217;s the one you&#8217;re looking at right now.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/2AgbjQjwZDs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/07/first-blog-post-on-this-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/07/first-blog-post-on-this-site/</feedburner:origLink></item>
		<item>
		<title>Webscraping with Python – Getting started</title>
		<link>http://feedproxy.google.com/~r/martinovedotdk/~3/qm5KciBgGNo/</link>
		<comments>http://martinove.dk/2010/11/07/webscraping-with-python-getting-started/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 11:46:36 +0000</pubDate>
		<dc:creator>Martin Ove</dc:creator>
				<category><![CDATA[Getting started]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[webscraping]]></category>

		<guid isPermaLink="false">http://martinove.dk/?p=518</guid>
		<description><![CDATA[If you have no idea on how to start scraping the web with Python, then read on. The first small step is simpler than I thought it would be. By: Martin Ove img.python {border-style:solid} This post will teach you how to fetch the HTML of a website using Python in windows. This is as far <a href='http://martinove.dk/2010/11/07/webscraping-with-python-getting-started/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://lh4.ggpht.com/__3qmIyg6F94/TNaNw3d6GmI/AAAAAAAACBE/yCn9qP-P7mw/Pythonwebscrape.jpg" /></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F07%2Fwebscraping-with-python-getting-started%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmartinove.dk%2F2010%2F11%2F07%2Fwebscraping-with-python-getting-started%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><small>If you have no idea on how to start scraping the web with Python, then read on. The first small step is simpler than I thought it would be.</small></p>
<p><em>By: Martin Ove</em></p>
<style type="text/css">
img.python {border-style:solid}
</style>
<p>This post will teach you how to fetch the HTML of a website using Python in windows. This is as far as I have gotten at this time, and even though it isn&#8217;t really useful yet, I guess it&#8217;s the first step towards webscraping with Python.</p>
<p>First of all you need to get Python on your computer.<span id="more-518"></span></p>
<p>(<span style="color:red">Update 24.12.2010</span> &#8211; Be sure to check out Thomas&#8217; comment after this post if you&#8217;re using Python 3.1. Some statements have changed. Thanks Thomas!)</p>
<p>1. Go <a href="http://python.org/download/">python.org/download/</a> and download Python. I use 2.7 for windows.</p>
<p>2. Install it. Mine is installed at c:\python27\</p>
<p>Now you&#8217;re all set. Let&#8217;s fire up Python.</p>
<p>3. Go to your start menu and find the folder called &#8220;Python 2.7&#8243;. Click &#8220;IDLE (Python GUI)&#8221;</p>
<p>You should see something like this:<br />
<img class="python" src="http://lh6.ggpht.com/__3qmIyg6F94/TNMcWXtxVHI/AAAAAAAACAU/FAR9nVTdE_4/python1.jpg" alt="" /></p>
<p>4. Type up &#8220;import urllib2&#8243; and press enter. If all is well, nothing will happen and it will look like this:<br />
<img class="python" src="http://lh3.ggpht.com/__3qmIyg6F94/TNMcWp651WI/AAAAAAAACAc/oGtFv-mrqJk/python2.jpg" alt="" /></p>
<p>If something is wrong, you&#8217;ll see something like this. Make sure to check for typos:<br />
<img class="python" src="http://lh4.ggpht.com/__3qmIyg6F94/TNMcW3wRj_I/AAAAAAAACAk/SmSD0TYvRK8/Python3.jpg" alt="" /></p>
<p>5. Type up &#8220;response = urllib2.urlopen(&#8216;http://martinove.dk/test/example.html&#8217;)&#8221; and press enter. This will get the source code of the page as a file, but it won&#8217;t look like anything happened.</p>
<p>6. Type up &#8220;html = response.read()&#8221; and press enter. This will read the response you got from the webpage and assign it to the variable &#8220;html&#8221;. Expect no response other than a new line.</p>
<p>Here comes the magic though.</p>
<p>7. Type &#8220;print html&#8221; and&#8230;*drumroll*&#8230; enter!</p>
<p>If all goes well, you should see the source code of http://martinove.dk/test/example.html. It&#8217;s very small and made for this purpose.<br />
<img class="python" src="http://lh6.ggpht.com/__3qmIyg6F94/TNMcXVGREhI/AAAAAAAACAs/vwsPgNb3e6I/Python4.jpg" alt="" /></p>
<p>Feel free to try out other urls while you&#8217;re at it.</p>
<p>That&#8217;s it for now. In the future I&#8217;ll fool around with parsing the HTML using <a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> You can read a lot more about how to fetching HTML here:<br />
<a href="http://www.python.org/doc//current/howto/urllib2.html">HOWTO Fetch Internet Resources Using urllib2</a></p>
<p>If you have any question be sure to just throw them at me.</p>
<p>Thanks for reading.</p>
<img src="http://feeds.feedburner.com/~r/martinovedotdk/~4/qm5KciBgGNo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://martinove.dk/2010/11/07/webscraping-with-python-getting-started/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://martinove.dk/2010/11/07/webscraping-with-python-getting-started/</feedburner:origLink></item>
	</channel>
</rss>

