X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/84518de9f25aacf0884072b2c3318ebc31457c5f..c7856f0988d8b4ea27e2e63f439c6a83e534698a:/blog/archive/2015/02/02.rss diff --git a/blog/archive/2015/02/02.rss b/blog/archive/2015/02/02.rss index 95a9cd03cc..145e7f6ac5 100644 --- a/blog/archive/2015/02/02.rss +++ b/blog/archive/2015/02/02.rss @@ -6,6 +6,91 @@ http://people.skolelinux.org/pere/blog/ + + The Citizenfour documentary on the Snowden confirmations to Norway + http://people.skolelinux.org/pere/blog/The_Citizenfour_documentary_on_the_Snowden_confirmations_to_Norway.html + http://people.skolelinux.org/pere/blog/The_Citizenfour_documentary_on_the_Snowden_confirmations_to_Norway.html + Sat, 28 Feb 2015 22:10:00 +0100 + <p>Today I was happy to learn that the documentary +<a href="https://citizenfourfilm.com/">Citizenfour</a> by +<a href="https://en.wikipedia.org/wiki/Laura_Poitras">Laura Poitras</a> +finally will show up in Norway. According to the magazine +<a href="http://montages.no/">Montages</a>, a deal has finally been +made for +<a href="http://montages.no/nyheter/snowden-dokumentaren-citizenfour-far-norsk-kinodistribusjon/">Cinema +distribution in Norway</a> and the movie will have its premiere soon. +This is great news. As part of my involvement with +<a href="http://www.nuug.no/">the Norwegian Unix User Group</a>, me and +a friend have +<a href="http://www.nuug.no/news/Dokumentar_om_Snowdenbekreftelsene_til_Norge_.shtml">tried +to get the movie to Norway</a> ourselves, but obviously +<a href="http://www.nuug.no/news/Dokumentar_om_Snowdenbekreftelsene_endelig_til_Norge_.shtml">we +were too late</a> and Tor Fosse beat us to it. I am happy he did, as +the movie will make its way to the public and we do not have to make +it happen ourselves. +<a href="https://www.youtube.com/watch?v=XiGwAvd5mvM">The trailer</a> +can be seen on youtube, if you are curious what kind of film this +is.</p> + +<p>The whistle blower Edward Snowden really deserve political asylum +here in Norway, but I am afraid he would not be safe.</p> + + + + + The Norwegian open channel Frikanalen - 24x7 on the Internet + http://people.skolelinux.org/pere/blog/The_Norwegian_open_channel_Frikanalen___24x7_on_the_Internet.html + http://people.skolelinux.org/pere/blog/The_Norwegian_open_channel_Frikanalen___24x7_on_the_Internet.html + Wed, 25 Feb 2015 09:10:00 +0100 + <p>The Norwegian nationwide open channel +<a href="http://www.frikanalen.no/">Frikanalen</a> is still going +strong. It allow everyone to send the video they want on national +television. It is a TV station administrated completely using a web +browser, running only <ahref="https://github.com/Frikanalen">Free +Software</a>, providing <ahref="http://beta.frikanalen.tv/api">a REST +api</a> for administrators and members, and with distribution on the +national DVB-T distribution network RiksTV. But only between 12:00 +and 17:30 Norwegian time. This has finally changed, after many years +with limited distribution. A few weeks ago, we set up a Ogg Theora +stream via icecast to allow everyone with Internet access to check out +the channel the rest of the day. This is presented on +<a href="http://www.frikanalen.tv/se">the Frikanalen web site now</a>. And +since a few days ago, the channel is also available +via <a href="https://www.uninett.no/iptv-tilgang">multicast on +UNINETT</a>, available for those using IPTV TVs and set-top boxes in +the Norwegian National Research and Education network.</p> + +<p>If you want to see what is on the channel, point your media player +to one of these sources. The first should work with most players and +browsers, while as far as I know, the multicast UDP stream only work +with VLC.</p> + +<ul> + <li><a href="http://video.nuug.no/frikanalen.ogv">http://video.nuug.no/frikanalen.ogv</a></li> + <li>udp://@224.17.43.129:1234</li> +</ul> + +<p>The Ogg Theora / icecast stream is not working well, as the video +and audio is slightly out of sync. We have not been able to figure +out how to fix it. It is generated by recoding a internal MPEG +transport stream with MPEG4 coded video (ie H.264) to Ogg Theora / +Vorbis, and the result is less then stellar. If you have ideas how to +fix it, please let us know on frikanalen (at) nuug.no. We currently +use this with ffmpeg2theora 0.29:</p> + +<blockquote><pre> +./ffmpeg2theora.linux &lt;OBE_gemini_URL.ts&gt; -F 25 -x 720 -y 405 \ + --deinterlace --inputfps 25 -c 1 -H 48000 --keyint 8 --buf-delay 100 \ + --nosync -V 700 -o - | oggfwd video.nuug.no 8000 &lt;pw&gt; /frikanalen.ogv +</pre></blockquote> + +<p>If you get the multicast UDP stream working, please let me know, as +I am curious how far the multicast stream reach. It do not make it to +my home network, nor any other commercially available network in +Norway that I am aware of.</p> + + + En enklere Osloskolehverdag med automatisk sjekk av Fronter http://people.skolelinux.org/pere/blog/En_enklere_Osloskolehverdag_med_automatisk_sjekk_av_Fronter.html @@ -32,17 +117,17 @@ brukbart, og jeg er dermed klar til å dele det med deg.</p> <p>Jeg startet med å skrive programmet i Python, og hadde en versjon som logget inn og hentet ned enkeltsider fra Fronter. Men -Fronter-websidene suger golfballer gjennom en hangeslange, med +Fronter-websidene suger golfballer gjennom en hageslange, med uleselig HTML, flere nivåer av iframes og en struktur på innholdet som er svært vanskelig å finne ut av, så jeg ga til slutt opp lxml-parsing -med python og forsøkte meg med WWW::Mechanize for Perl som jeg kjente +med Python og forsøkte meg med WWW::Mechanize for Perl som jeg kjente fra før. I ettertid har jeg oppdaget at WWW:Mechanize også finnes for -python, så jeg kunne antagelig droppet språkbyttet. Men da jeg +Python, så jeg kunne antagelig droppet språkbyttet. Men da jeg oppdaget det hadde jeg kommet så langt med Perl-utgaven, så jeg hoppet ikke tilbake.</p> <p>For å logge inn i Fronter besøker en enten skolens websider eller -den sentrale innlogginsiden <tt>https://fronter.com/osloskoler/</tt>. +den sentrale innloggingsiden <tt>https://fronter.com/osloskoler/</tt>. Perl-koden for å logge inn ser slik ut:</p> <pre> @@ -58,7 +143,7 @@ $mech->submit_form(fields => { På vår skole er det rom for skolen, biblioteket, elevrådet, aktivitetsskolen og klasser der en har unger, og dette vil være forskjellig fra person til person. Etter å ha romstert rundt i -Fronter-grensesnittet endel kom jeg over en grei HTMl-side med +Fronter-grensesnittet endel kom jeg over en grei HTML-side med oversikt over rommene, <tt>https://fronter.com/osloskoler/adm/projects.phtml?mode=displayRoomchooser</tt>, så jeg bruker denne til å hente ut romoversikt med rom-ID.</p> @@ -82,7 +167,7 @@ iframes, og en må tre nivåer ned i iframes før en får tak i HTML-informasjonen som vises frem når en ser på det aktuelle rommet. Her ga jeg opp den robuste parsingen og hardkodet endel URL-er som i stedet bør spores opp maskinelt. HTML-informasjonen som vises lagres -i en fil etter at økt- og innloggs-nøkkel er fjernet og deretter +i en fil etter at økt- og innloggings-nøkkel er fjernet og deretter bruker jeg <tt>lynx --dump --nolist</tt> for å hente ut en tekstlig utgave av websiden. Denne tekstlige utgaven sammenlignes med forrige versjon og oversikt over endringer kan så sendes ut på egnet vis.</p> @@ -161,8 +246,8 @@ something everyone should have to accept to travel.</p> <p>When running a TV station with both broadcast and web stream distribution, it is useful to know that the stream is working. As I am involved in the Norwegian open channel -<ahref="http://www.frikanalen.no/">Frikanalen</a> as part of my -activity in the <ahref="http://www.nuug.no/">NUUG member +<a href="http://www.frikanalen.no/">Frikanalen</a> as part of my +activity in the <a href="http://www.nuug.no/">NUUG member organisation</a>, I wrote a script to use mplayer to connect to a video stream, pick two images 35 seconds apart and compare them. If the images are missing or identical, something is probably wrong with @@ -191,6 +276,12 @@ following activity, we now have the schedule XMLTV</a> too. Still a lot of work left to do, especially with the process to add videos and with the scheduling, so your contribution is most welcome. Perhaps you want to set up your own TV station?</p> + +<p>Update 2015-02-25: Got a tip from Uninett about their +<a href="https://scm.uninett.no/maalepaaler/qstream/">qstream +monitoring system</a>, which gather connection time, jitter, packet +loss and burst bandwidth usage. It look useful to check if UDP +streams are working as they should.</p> @@ -1649,19 +1740,19 @@ Norwegian Artists ved å bruke søkeuttrykk</a>:</p> <pre> -PREFIX dbo: <http://dbpedia.org/ontology/> -PREFIX foaf: <http://xmlns.com/foaf/0.1/> -PREFIX skos: <http://www.w3.org/2004/02/skos/core#> -PREFIX dct: <http://purl.org/dc/terms/> -PREFIX dbpprop: <http://dbpedia.org/property/> +PREFIX dbo: &lt;http://dbpedia.org/ontology/&gt; +PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt; +PREFIX skos: &lt;http://www.w3.org/2004/02/skos/core#&gt; +PREFIX dct: &lt;http://purl.org/dc/terms/&gt; +PREFIX dbpprop: &lt;http://dbpedia.org/property/&gt; SELECT ?name ?page ?YEAR WHERE { ?person a foaf:Person ; foaf:isPrimaryTopicOf ?page ; dbpprop:name ?name ; dbo:deathYear ?YEAR ; - dct:subject/skos:broader? <http://dbpedia.org/resource/Category:Norwegian_artists> - FILTER (?YEAR < xsd:date("1945-01-01")) + dct:subject/skos:broader? &lt;http://dbpedia.org/resource/Category:Norwegian_artists&gt; + FILTER (?YEAR &lt; xsd:date("1945-01-01")) } </pre> @@ -1680,6 +1771,56 @@ lista til Wikipedia. Men jeg synes det er veldig nyttig å se at det er flere som er interessert i å bidra med å spore opp allemanseide verk. Litt underlig at listen ikke vedlikeholdes automatisk, når en ser hva dbpedia kan gjøre med innholdet i Wikipedia.</p> + +<p>Oppdatering 2015-05-11: Ble kjent med +<a href="http://www.pdinfo.com/">Public Domain Information Project</a> +som gjør allemanseid musikk tilgjengelig, og prosjektet +<a href="http://outofcopyright.eu/">Out Of Copyright</a>, som lager +opplegg for å kunne identifisere verk som er falt i det fri. Kom også +over <a href="http://publicdomainreview.org/">The Public Domain +Review</a> som både er en samling over verk i det fri, men også et +tidsskrift om verdien av allemannseiet.</p> + +<p>Oppdatering 2015-12-26: Jonas Smedegaard send me an updated search +expression as the original one no longer work with <a +href="http://dbpedia.org/sparql">dbpedia.org</a>. The +<a href="http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0APREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0APREFIX+dct%3A++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+dbpprop%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2F%3E%0D%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0A%0D%0ASELECT+%3Fname+%3Fpage+%3FYEAR+WHERE+%7B%0D%0A++%3Fperson+a+foaf%3APerson+%3B%0D%0A++++++++++foaf%3AisPrimaryTopicOf+%3Fpage+%3B%0D%0A++++++++++dbpprop%3Aname+%3Fname+%3B%0D%0A++++++++++dbo%3AdeathYear+%3FYEAR+%3B%0D%0A++++++++++dct%3Asubject%2Fskos%3Abroader%3F++%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FCategory%3ANorwegian_artists%3E%0D%0A++FILTER+%28%3FYEAR+%3C+xsd%3Adate%28%221945-01-01%22%29%29%0D%0A%7D&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on">updated +search</a> look like this:</p> + +<pre> +PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt; +PREFIX skos: &lt;http://www.w3.org/2004/02/skos/core#&gt; +PREFIX dct: &lt;http://purl.org/dc/terms/&gt; +PREFIX dbpprop: &lt;http://dbpedia.org/property/&gt; +PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; + +SELECT ?name ?page ?YEAR WHERE { + ?person a foaf:Person ; + foaf:isPrimaryTopicOf ?page ; + dbpprop:name ?name ; + dbo:deathYear ?YEAR ; + dct:subject/skos:broader? &lt;http://dbpedia.org/resource/Category:Norwegian_artists&gt; + FILTER (?YEAR &lt; xsd:date("1945-01-01")) +} +</pre> + +<p>He also provided +<a href="http://data.deichman.no/sparql?default-graph-uri=&query=PREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0ASELECT+%3Fressource+WHERE+%7B%0D%0A++%3Fressource+dct%3Acreator+%3Fcreator+.%0D%0A++%3Fcreator+foaf%3Aname+%22Lawrence+Lessig%22+.%0D%0A%7D&format=text%2Fhtml&timeout=0&debug=on">a +search</a> on <a href="http://data.deichman.no/sparql">the SPARQL +interface of data.deichman.no</a> to look up a single author +there:</p> + +<pre> +PREFIX dct: &lt;http://purl.org/dc/terms/> +PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/> +SELECT ?ressource WHERE { + ?ressource dct:creator ?creator . + ?creator foaf:name "Lawrence Lessig" . +} +</pre> + +<p>I hope this can provide me with enough starting points to be able +to map books to long dead authors.</p>