Kategoriarkiv: programming

Etiketter på lagen.nu

Under sommaren har jag ägnat en del tid åt att implementera kollaborativ etikettering (”tags”) på lagen.nu. Om du är intresserad av att betatesta systemet är instruktionerna som följer: Gå hit och klicka för att sätta en kaka som gör att … Läs mer

Publicerat i lagen.nu, programming | Etiketter , , , | 2 kommentarer

Avstavning i webbläsare

Fram till för några månader sedan hade jag inte tänkt på avstavning på minst femton år. Jag hade visserligen sett hur fint TeX kunde justera mina högermarginaler med hjälp av sin inbyggda avstavningsmotor, men i allt övrigt datoranvändande såg jag … Läs mer

Publicerat i programming | Etiketter , , | 2 kommentarer

The legality of screenscraping

Niklas Lundblad directs me to a couple of interesting propositions about pending laws regarding computer crime (one of them actually uses the phrase ”crimes in cyberspace” — very 1995′ish retro). Both Ds 2005:5 and Ds 2005:6 are intended to be … Läs mer

Publicerat i law, programming | Etiketter , , | 6 kommentarer

Culpatic programming

In the legal world, there is this latin term ”culpa”, which translates roughly to ”carelessness” or ”neglience”. The term does not seem to be used in US Law, but I’m guessing a similar concept still exists in all Common Law … Läs mer

Publicerat i programming | Etiketter , , | Lämna en kommentar

flac2mp3.py

I have a medium-sized CD collection (around 500 or so albums), but like most geeks I never actually fetch the disks and put them in my CD/DVD player anymore. Instead, I rip them to some digital format and listen to … Läs mer

Publicerat i programming | Etiketter | 3 kommentarer

Part 8: Finishing touches

(The last in a series of blog posts about the tech behind lagen.nu. The other parts are here: first, second, third, fourth, fifth, sixth and seventh) URL design: Insired both by ”Cool URIs don’t change” and the general REST emphasis … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 7: Regression testing

(A series of blog posts about the tech behind lagen.nu. Earlier parts are here: first, second, third, fourth, fifth and sixth) Like most developers that have been Test infected, I try to create regression tests whenever I can. A project … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 6: Transforming with XSLT

Now, after having downloaded, analysed and XML-ified the lawtext, theres just one step left: Convert them to HTML. Enter XSLT. XSLT is a complex beast, and I find that it’s better to approach it as a programming language, albeit with … Läs mer

Publicerat i programming | Etiketter , , | Lämna en kommentar

Part 5: Finding and formatting inline law references

(Earlier posts: 1, 2, 3, 4) The second part of the convert-things-to-xml approach deals with finding inline references to other paragraphs in the law text. I’ve written about it in part in this blog post, but to recap: Swedish law … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 4: Converting stuff to XML

(If you missed part 1-3, they are here, here and here) If you look at a sample law text as they are presented in SFST, they are 100% plaintext. In order to convert them to semantically sensible XML, we must … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar