1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from December
2012</title>
5 <description>Entries from December
2012</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>A word on bitcoin support in Debian
</title>
11 <link>http://people.skolelinux.org/pere/blog/A_word_on_bitcoin_support_in_Debian.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_word_on_bitcoin_support_in_Debian.html
</guid>
13 <pubDate>Fri,
21 Dec
2012 23:
59:
00 +
0100</pubDate>
14 <description><p
>It has been a while since I wrote about
15 <a href=
"http://www.bitcoin.org/
">bitcoin
</a
>, the decentralised
16 peer-to-peer based crypto-currency, and the reason is simply that I
17 have been busy elsewhere. But two days ago, I started looking at the
18 state of
<a href=
"http://packages.qa.debian.org/bitcoin
">bitcoin in
19 Debian
</a
> again to try to recover my old bitcoin wallet. The package
20 is now maintained by a
21 <a href=
"https://alioth.debian.org/projects/pkg-bitcoin/
">team of
22 people
</a
>, and the grunt work had already been done by this team. We
23 own a huge thank you to all these team members. :)
24 But I was sad to discover that the bitcoin client is missing in
25 Wheezy. It is only available in Sid (and a outdated client from
26 backports). The client had several RC bugs registered in BTS blocking
27 it from entering testing. To try to help the team and improve the
28 situation, I spent some time providing patches and triaging the bug
29 reports. I also had a look at the bitcoin package available from Matt
31 <a href=
"https://launchpad.net/~bitcoin/+archive/bitcoin
">PPA for
32 Ubuntu
</a
>, and moved the useful pieces from that version into the
33 Debian package.
</p
>
35 <p
>After checking with the main package maintainer Jonas Smedegaard on
36 IRC, I pushed several patches into the collab-maint git repository to
37 improve the package. It now contain fixes for the RC issues (not from
38 me, but fixed by Scott Howard), build rules for a Qt GUI client
39 package, konqueror support for the bitcoin: URI and bash completion
40 setup. As I work on Debian Squeeze, I also created
41 <a href=
"http://lists.alioth.debian.org/pipermail/pkg-bitcoin-devel/Week-of-Mon-
20121217/
000041.html
">a
42 patch to backport
</a
> the latest version. Jonas is going to look at
43 it and try to integrate it into the git repository before uploading a
44 new version to unstable.
46 <p
>I would very much like bitcoin to succeed, to get rid of the
47 centralized control currently exercised in the monetary system. I
48 find it completely unacceptable that the USA government is collecting
49 transaction data for almost all international money transfers (most are done in USD and transaction logs shipped to the spooks), and
50 that the major credit card companies can block legal money
51 transactions to Wikileaks. But for bitcoin to succeed, more people
52 need to use bitcoins, and more people need to accept bitcoins when
53 they sell products and services. Improving the bitcoin support in
54 Debian is a small step in the right direction, but not enough.
55 Unfortunately the user experience when browsing the web and wanting to
56 pay with bitcoin is still not very good. The bitcoin: URI is a step
57 in the right direction, but need to work in most or every browser in
58 use. Also the bitcoin-qt client is too heavy to fire it up to do a
59 quick transaction. I believe there are other clients available, but
60 have not tested them.
</p
>
63 <a href=
"http://people.skolelinux.org/pere/blog/Now_accepting_bitcoins___anonymous_and_distributed_p2p_crypto_money.html
">experiment
64 with bitcoins
</a
> showed that at least some of my readers use bitcoin.
65 I received
20.15 BTC so far on the address I provided in my blog two
67 <a href=
"http://blockexplorer.com/address/
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">seen
68 on the blockexploer service
</a
>. Thank you everyone for your
69 donation. The blockexploer service demonstrate quite well that
70 bitcoin is not quite anonymous and untracked. :) I wonder if the
71 number of users have gone up since then. If you use bitcoin and want
72 to show your support of my activity, please send Bitcoin donations to
73 the same address as last time,
74 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
&label=PetterReinholdtsenBlog
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
79 <title>Piratpartiet på opphavs-retrett?
</title>
80 <link>http://people.skolelinux.org/pere/blog/Piratpartiet_p__opphavs_retrett_.html
</link>
81 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Piratpartiet_p__opphavs_retrett_.html
</guid>
82 <pubDate>Wed,
19 Dec
2012 13:
10:
00 +
0100</pubDate>
83 <description><p
>Jeg ble overrasket over å se at Piratpartiet i
84 <a href=
"http://www.aftenposten.no/kultur/Piratpartiet-stiller-til-Stortingsvalget-
7073298.html
">Aftenposten
</a
>
85 er referert på følgende:
</p
>
88 Når det gjelder retten til opphavsrett for kulturproduktene, mener
89 Piratpartiet av levetid +
14 år er tilfredsstillende.
92 <p
>Det betyr en vernetid langt ut over det kommersielle livet til de
93 aller fleste opphavsrettsbeskyttede verker, og er i strid med slik i
94 hvert fall jeg har tolket punkt
5 i
95 <a href=
"http://people.opera.com/howcome/
2012/piratpartiet/kjerneprogram.html
">kjerneprogrammet
96 til Piratpartiet
</a
>:
</p
>
99 <p
><strong
>5: Åndsverk og patenter: tilbake til start
</strong
></p
>
101 <table border=
"1">
102 <tr
><th
>forslag:
</th
><td
>14 års opphavsrett og ingen
103 programvarepatenter
</td
></tr
>
105 <tr
><th
>grunn:
</th
><td
>Den første loven om opphavsrett spesifiserte
14
106 års vernetid. Senere har mediabransjens lobbyister stadig presset
107 loven mot lengre vern, nå er det
70 år etter forfatters død. Dette
108 gjør at mange verk glemmes og går tapt, noe som er skadelig for norsk
109 språk og kultur. Vi til tilbake til start:
14 års
110 vernetid. Patentloven sier klart at dataprogrammer ikke kan
111 patenteres. Likevel klarer patentadvokater å lure gjennom
112 programvarepatenter. Slike patenter gjør dingsene våre dyrere og kan i
113 enkelte tilfelle stoppe dem helt.
</th
></tr
>
117 <p
>Den opprinnelige opphavsretten var på
14 år totalt, ikke
14 år
118 etter opphavspersonens død. Jeg tenkte først dette kanskje var
119 feilsitering fra Aftenposten, men jeg finner samme påstand i en
<a
120 href=
"http://piratpartietnorge.org/om-gramo-og-piratpolitikken/
">bloggpost
121 fra Geir Aaslid
</a
> på Piratpartietes offisielle nettsider. Der
122 skriver han følgende:
</p
>
125 Hva vi gjør med opphavsretten er mer komplisert fordi den omfavner så
126 mange bransjer, med ulike behov. Enhver reform er en forbedring men
127 det er nærliggende å anta at en opphavsrett på levetid +
14 år er
128 fullt ut tilfredstillende for musikk, film, litteratur og spill.
131 <p
>Det virker dermed på meg som om Piratpartiet allerede har gjort
132 retrett fra sin beundringsverdige holdning om at det holdt med
14 års
133 total vernetid, til sin nye som tar utgangspunkt i levetiden til
134 opphavspersonen. Jeg håper det baserer seg på en misforståelse hos
135 piratlederen som blir korrigert tilbake til
14 års total vernetid før
136 partiet stiller til valg.
</p
>
138 <p
>Hvis du lurer på hvilke problemer lang vernetid bringer med seg,
139 anbefaler jeg å lese boken
<a href=
"http://free-culture.cc/
">Free
140 Culture
</a
> av Lawrence Lessig. Jeg og en liten gruppe andre er igang
142 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">oversette
143 boken til bokmål
</a
> og tar gjerne imot hjelp med oversettelse og
144 korrekturlesing.
</p
>
146 <p
><strong
>Oppdatering
2012-
12-
20</strong
>: Oppdaget at
147 <a href=
"http://piratpartietnorge.org/om-gramo-og-piratpolitikken/
">bloggposten
148 til Geir Aaslid
</a
> er endret siden i går, og nå inneholder følgende
149 avsnitt i stedet for det jeg siterte over:
</p
>
152 Hva vi gjør med opphavsretten er mer komplisert fordi den omfavner så
153 mange bransjer, med ulike behov. Enhver reform er en forbedring men
154 det er nærliggende å anta at en opphavsrett lik levetiden, evt +
14 år
155 er fullt ut tilfredstillende for mange skapere av musikk, film,
156 litteratur og spill. Det er for det meste de store forlagene som er
160 <p
>I tillegg har det dukket opp en setning nederst
"Dette dokumentet
161 er et utkast til svar på et angrep på Piratpartiet fra Gramo. Det
162 endrer seg derfor over tid og den endelige versjonen er det som blir
163 publisert på Hardware.no
", som tyder på at originalformuleringen ikke
164 var veloverveid og sitatet i Aftenposten kanskje var basert på en
165 misforståelse.
</p
>
170 <title>Ledger - double-entry accounting using text based storage format
</title>
171 <link>http://people.skolelinux.org/pere/blog/Ledger___double_entry_accounting_using_text_based_storage_format.html
</link>
172 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Ledger___double_entry_accounting_using_text_based_storage_format.html
</guid>
173 <pubDate>Tue,
18 Dec
2012 23:
30:
00 +
0100</pubDate>
174 <description><p
>A few days ago I came across
175 <a href=
"http://joeyh.name/blog/entry/hledger/
">a blog post from Joey
176 Hess
</a
> describing
<a href=
"http://ledger-cli.org/
">ledger
</a
> and
177 hledger, a text based system for double-entry accounting. I found it
178 interesting, as I am involved with several organizations where
179 accounting is an issue, and I have not really become too friendly with
180 the different web based systems we use. I find it hard to find what I
181 look for in the menus and even harder try to get sensible data out of
182 the systems. Ledger seem different. The accounting data is kept in
183 text files that can be stored in a version control system, and there
185 are at least
<a href=
"https://github.com/ledger/ledger/wiki/Ports
">five
186 different implementations
</a
> able to read the format. An example
187 entry look like this, and is simple enough that it will be trivial to
188 generate entries based on CVS files fetched from the bank:
</p
>
190 <blockquote
><pre
>
191 2004-
05-
27 Book Store
192 Expenses:Books $
20.00
194 </pre
></blockquote
>
196 <p
>The concept seemed interesting enough for me to check it out and
197 look for others using it. I found blog posts from
198 <a href=
"http://blog.spang.cc/posts/hledger_rocks_my_world/
">Christine
200 <a href=
"http://bugsplat.info/
2010-
05-
23-keeping-finances-with-ledger.html
">Pete
202 <a href=
"http://blog.andrewcantino.com/blog/
2010/
11/
06/command-line-accounting-with-ledger-and-reckon/
">Andrew
203 Cantino
</a
> and
204 <a href=
"http://blog.iphoting.com/blog/
2012/
11/
29/command-line-double-entry-accounting/
">Ronald
205 Ip
</a
> describing how they use it, as well as a post from
206 <a href=
"https://groups.google.com/forum/?fromgroups=#!topic/ledger-cli/r0oWjwbQ9Bo
">Bradley
207 M. Kuhn
</a
> at the Software Freedom Conservancy. All seemed like good
208 recommendations fitting my need.
</p
>
210 <p
>The
<a href=
"http://packages.qa.debian.org/l/ledger.html
">ledger
</a
>
211 package is available in Debian Squeeze, while the
212 <a href=
"http://packages.qa.debian.org/h/haskell-hledger.html
">hledger
</a
>
213 package only is available in Debian Sid. As I use Squeeze, ledger
214 seemed the best choice to get started.
</p
>
216 <p
>To get some real data to test on, I wrote a
217 <a href=
"http://www.nuug.no/tools/lodo2ledger
">web scraper
</a
> for
218 <a href=
"http://www.lodo.no/
">LODO
</a
>, the accounting system used by
219 the
<a href=
"http://www.nuug.no/
">NUUG
</a
> association, and started to
220 play with the data set. I
'm not really deeply into accounting, but I
221 am able to get a simple balance and accounting status for example
222 using the
"<tt
>ledger balance
</tt
>" command. But I will have to
223 gather more experience before I know if the ledger way is a good fit
224 for the organisations I am involved in.
</p
>
229 <title>61 kommuner lenker nå til FiksGataMi fra sine nettsider
</title>
230 <link>http://people.skolelinux.org/pere/blog/
61_kommuner_lenker_n__til_FiksGataMi_fra_sine_nettsider.html
</link>
231 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/
61_kommuner_lenker_n__til_FiksGataMi_fra_sine_nettsider.html
</guid>
232 <pubDate>Tue,
11 Dec
2012 23:
55:
00 +
0100</pubDate>
233 <description><p
>For noen dager siden omfavnet nok en kommune NUUGs
234 <a href=
"http://www.fiksgatami.no/
">FiksGataMi
</a
>. Med
61 kommuner
235 som lenker til FiksGataMi fra sine hjemmesider er «markedsandelen»
14%
236 (av
429 kommuner). Siden
237 <a href=
"http://people.skolelinux.org/pere/blog/
59_kommuner_omfavner_n__FiksGataMi.html
">siste
238 oppdatering i november
</a
> har kommunene Re og Vågsøy kommet til og
239 slår følge med kommunene Askim, Askøy, Audnedal, Aure, Balestrand,
240 Bærum, Eide, Farsund, Flekkefjord, Folldal, Gran, Grue, Hadsel,
241 Halden, Halsa, Hamar, Hobøl, Holtålen, Hægebostad, Høyanger,
242 Kongsberg, Kristiansund, Kvinesdal, Kviteseid, Levanger, Lindesnes,
243 Luster, Lyngdal, Løten, Mandal, Marnardal, Moss, Namsos, Nissedal,
244 Nordreisa, Randaberg, Rindal, Sel, Sirdal, Skiptvet, Sortland,
245 Spydeberg, Stange, Stjørdal, Stord, Søgne, Sør-Odal, Tolga, Trysil,
246 Tynset, Tysvær, Ullensvang Herad, Utsira, Vennesla, Verdal, Vågan,
247 Vågå, Våler og Åseral. Oppdatert liste er tilgjengelig fra
248 <a href=
"http://wiki.nuug.no/grupper/fiksgatami/positivemottakere
">NUUGs
249 wiki
</a
>. Kartet er dog ikke oppdatert med de siste kommunene.
</p
>
251 <p
>Kanskje du bør høre med din kommune om de vil bli mer aktive
252 brukere av FiksGataMi? Se
253 <a href=
"http://people.skolelinux.org/pere/blog/
40_kommuner_lenker_n__til_FiksGataMi_fra_sine_nettsider___gj_r_din_.html
">en
254 tidligere bloggpost
</a
> med tips om hvordan det kan gjøres.
</p
>
256 <p
>I snitt rapporteres det nå via FiksGataMi ca.
60 meldinger fra
257 innbyggerne i uka om feil på offentlig infrastruktur.
</p
>
262 <title>Scripting the Cerebrum/bofhd user administration system using XML-RPC
</title>
263 <link>http://people.skolelinux.org/pere/blog/Scripting_the_Cerebrum_bofhd_user_administration_system_using_XML_RPC.html
</link>
264 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Scripting_the_Cerebrum_bofhd_user_administration_system_using_XML_RPC.html
</guid>
265 <pubDate>Thu,
6 Dec
2012 10:
30:
00 +
0100</pubDate>
266 <description><p
>Where I work at the
<a href=
"http://www.uio.no/
">University of
267 Oslo
</a
>, we use the
268 <a href=
"http://sourceforge.net/projects/cerebrum/
">Cerebrum user
269 administration system
</a
> to maintain users, groups, DNS, DHCP, etc.
270 I
've known since the system was written that the server is providing
271 an
<a href=
"http://en.wikipedia.org/wiki/XML-RPC
">XML-RPC
</a
> API, but
272 I have never spent time to try to figure out how to use it, as we
273 always use the bofh command line client at work. Until today. I want
274 to script the updating of DNS and DHCP to make it easier to set up
275 virtual machines. Here are a few notes on how to use it with
278 <p
>I started by looking at the source of the Java
279 <a href=
"http://cerebrum.svn.sourceforge.net/viewvc/cerebrum/trunk/cerebrum/clients/jbofh/
">bofh
280 client
</a
>, to figure out how it connected to the API server. I also
281 googled for python examples on how to use XML-RPC, and found
282 <a href=
"http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-python.html
">a
283 simple example in
</a
> the XML-RPC howto.
</p
>
285 <p
>This simple example code show how to connect, get the list of
286 commands (as a JSON dump), and how to get the information about the
287 user currently logged in:
</p
>
289 <blockquote
><pre
>
290 #!/usr/bin/env python
293 server_url =
'https://cerebrum-uio.uio.no:
8000';
294 username = getpass.getuser()
295 password = getpass.getpass()
296 server = xmlrpclib.Server(server_url);
297 #print server.get_commands(sessionid)
298 sessionid = server.login(username, password)
299 print server.run_command(sessionid,
"user_info
", username)
300 result = server.logout(sessionid)
302 </pre
></blockquote
>
304 <p
>Armed with this knowledge I can now move forward and script the DNS
305 and DHCP updates I wanted to do.
</p
>