Archive for the ‘Society’ Category

2011w52

Sunday, January 1st, 2012

Merry belated christmas greetings everyone! And by the time this post is published I could extend it with Happy belated new years greetings as well ;)

vim + html5 syntax

I’ve been tinkering a lot with html5 during my vacation and vim just didn’t want to play nicely with the new html-tags.

Namely, as it wouldn’t recognise the new semantic structural tags (footer, header, article, section, nav, aside) it wouldn’t indent the source properly and it was a cause for both distraction, and the resulting frustration.

I was not the first to feel this frustration, and a quick search turned up this result which solved both the html and css syntax issues (check the comments for the css solution). Very elegant solution, and now I’ve also learned about vim’s .vim/after/ directory… That was pretty cool.

Learning html5

I’ve actually shied away from doing stuff with html5, as whenever I tried to wrap my head around the new tags and how they should be used, there were just a myriad of different sites interpreting the usage in subtle but differing ways, but I finally found a resource which makes sense to me, so until a definitive interpretation has been hammered out, that’s the one I’m going to stick with.

Also, for sticky footers using css, and html5, check out this page. I had no trouble getting that to work.

Links

This question pretty much sums up why I like the command line so much

This looks interesting for synching (and deleting) without having to worry about doing “the right thing”

Nice list of things one could do with a home server

Doing it for teh lulz, 1903 style

EA, Nintendo and Sony now only covertly support SOPA (through their membership in various interest organizations). Wanting to eat the cake and still have it huh?

Tom’s Hardware not being amused by SOPA

Oh how I so hope that Wikipedia, Google, et al, will go down this path. (I do think there is a difference between companies lobbying, writing laws, and pressuring governments, and companies urging people to put pressure on governments, so yes, I think this is ok)

An interesting theory about why cinemas are having such a rough time

Haven’t had a chance to try this, but creating art using a written grammar does sound pretty neat, especially if you could get a script and /dev/random involved as well ;)

German police tracking people via silent SMS. I am beginning to think that rms is correct in his cellphone “usage”

Too much reading and constant information overload makes us pretty little passive consumers

2011w51

Sunday, December 25th, 2011

Bash variable string operators

I had a file filled with URLs to files I needed to download. Some of the files on the list, however, had already been downloaded, so no need to do it all again.

Should be fairly easy, right? cat the file to a while loop, reading the lines one by one, extracting the filename from the URL, check that it isn’t existing already, and if it isn’t, download it with wget.

So… how do you go about extracting the filename? You could certainly use sed and store the extracted filename in a separate variable, but that seems kindof wasteful, especially in a one-liner while loop. This article provided me with another option.

${line##*/} which deletes the longest possible match from the left (which in this case means up to (including) the last “/”) i.e. everything up to the name of the file.

No can haz censorship plz

If you’d like to make it clear that you too oppose SOPA (which, fittingly, means “garbage” in Swedish) then head over to Github, pick up your very own copy of stopcensorship.js, embed it on your site, and you’re set :)

I am also noting, with some glee, that GoDaddy is catching a whole lot of flak for their support of SOPA.

The only thing companies truly understand is when you hit them where it hurts, and that is their wallets (or as some brilliant person jokingly expressed it: “stop hitting us in our quarterly reports!”), and the only way to do that, is by voting with your own wallet.

I’m so happy about the fact that more and more people are catching on to this realization that I could… shit rainbows :)

Japanese Whaling + Tsunami disaster relief funds = disgusting

Just when I didn’t believe it possible for the Japanese whaling industry to appear as bigger scumbags than they already appear (yes, it is a quite one-sided story we’re getting from “Whale Wars” but according to National Geographic, the whalers have gotten the chance to tell their side of the story, and it would seem likely that they decline because they know full well just what type of scumbags they are… but hey, that’s just my opinion…) they go and do even more disgusting stuff, like using money from the tsunami relief donations to hire security ships to keep the Sea Shepherd Conservation Society away from their dirty business…

:wq

2011w46

Sunday, November 20th, 2011

First of all: this is really disturbing.


Commands and flags

I think I’ve already mentioned watch, and how that could be useful at time (e.g. $ watch -n 10 -d 'ls -l')

I just found out about a value which can optionally be appended to the -d flag: -d=cumulative

It has its own flag as well --cumulative, and quoting the man-page it makes highlighting “sticky”, presenting a running display of all positions that have ever changed.

Also, this week I learnt about sdiff, which seems neat if you’re on a system which doesn’t have vim (and thus vimdiff) installed.

Anoter nice flag I just found for grep is -m <int> which tells grep to stop looking after the INT first matches.

Scripting Vim

Ok, so I’ve been running into this problem where I am using my own .vimrc configuration in other places, in systems where the vim version isn’t the same as the one I use myself.

This has proven problematic as some of the configuration options I use (most notably set cul (which gives me a better indication about which line the cursor is on)) doesn’t exist in … say a vim version less than 7.

Which meant that if I loaded the same .vimrc config on a system running a vim version earlier than 7, I’d get a warning at startup, which I’d have to press enter to pass by. Irritating.

As luck would have it, it isn’t all that difficult to make a little conditional to check which version is currently loading the config and just ignore the settings which won’t work for that version, such as:

if v:version >= 700
    set cul
endif

Links

Finally, at this years FSCONS I was introduced to the site renderfarm.fi where people can go to either contribute CPU-cycles, or get CPU-cycles, (or both) to help speed up rendering.

:wq

FSCONS 2011

Monday, November 14th, 2011

FSCONS 2011 is now over, but fear not, FSCONS 2012 is only about a year away.

All of the participants; volunteers, speakers and visitors alike, whom I’ve had the pleasure of speaking with had only good things to say.

The overall feeling is that this was the best FSCONS yet. I am inclined to agree—but of course I am biased—due to the very low amount of incidents at all.

There were some, which is to be expected, but nothing really major, and nothing showstopping.

There were some close calls, but—and this is one of the many GREAT things about FSCONS: the visitors—in most of the close calls, visitors stepped up, graciously lending their own equipment and thereby saving the day.

And this is what I love about FSCONS. Everyone participating, no matter who they are, what they do, all bring their very best.

That, and getting to meet people I’ve only otherwise known through emails. :)

Finally, rest assured that I have a list of all the small things I observed to be in need of improvement.

FSCONS 2010

Tuesday, November 9th, 2010

After couple of months worth of meetings, weeks of planning and days of execution, FSCONS 2010 has come to an end.

I would lie if I said that this weekend hasn’t been stressful, but as last year, and the year before that, seeing the smiles on the faces of all the visitors, and the conversations sparking up between speakers and visitors, or by self-formed groups inspired by  a recent talk, and all the volunteers breaking their backs and all of it coming together in seemingly perfect harmony, it makes it all worth it.

Thank you all, from Jonas, hesa, razor, Marcus R, ljo and all the other people I am probably to oblivious to even know about.

Thank you CoyPu, pesa, and bumby, for doing all the hard work and making my job so easy (and thanks for forgiving my brief temper-flurries).

Thank you all the volunteers which I never had the chance to really map the names of.

And of course, thank you, all the speakers and visitors.

All of you helped to ensure that FSCONS2010 was the best year yet, and I am proud to have been a small part of it all.

Although, with me running around super-stressed out (I worry, so that my team wouldn’t have to), I am glad I got the chance to meet and, however briefly, speak, with gryps75, ben72, Klara Tovhult, Christina Gratorp and Michael Christen.

The two, out of 44, talks I managed to attend, was both awesome!

Andreas Nilsson held a most entertaining presentation about how to create a poster in 45 minutes using only free software and free content (fonts, stock images, the lot). I have always found him a fun guy, but he is truly an entertainer!

Michael Christen presented YaCy (Yet Another Cyberspace), which heavily summarized boils down to being a software for setting up and contributing to a de-centralized search engine. I cannot do the awesomeness of it justice, so just go to http://www.yacy.net/ and check it out, oh and yeah, SET UP A PEER OF YOUR OWN!

I’m sure I’ve forgot something, or someone… I do apologize, my mind and body still isn’t entirely back to normal after the weekend ;D

Försvarsmakten…

Monday, June 14th, 2010

Credit: Mikael Hedberg
Licens: CC BY-NC-SA

FSCONS 09

Wednesday, November 18th, 2009

What a conference it was. Like last year, I volunteered (well actually, this time I voluntarily volunteered, unlike last time when hesa volunteered me ;) ) which resulted in me not seeing much of the talks, but we managed to tape most of them, and those videos will become available through, I guess youtube, as well as our website as soon as they have been transferred and recoded (and licenses have been thoroughly discussed with the speakers).

In the meantime, some of the slides (we are working on getting them all) can be found at slideshare.net/fscons2009, and photographs from the conference can, among other places, be found here.

Just like last year, I walked away from the conference bruised, a bit battered, VERY tired, and extremely happy. I finally got to meet some people I’ve talked to or only heard about online and made some new friends on site as well. It was all just great.

I’m not going to lie, there where some hiccups, not everything went smooth, BUT, and it is an important but, there is no doubt whatsoever that we are learning, improving, with every year.

The social event during Saturday evening, where buses relocated everyone to Berg 211, and Berg 211 in itself, and the atmosphere and … yeah, everything this year was really better.

I can hardly wait for FSCONS 2010. It will be fantastic!

In closing: A great big THANK YOU to all the organizers, all the volunteers, all the speakers, and all the visitors, who together made this such a wonderful experience that I am proud of having gotten the chance to be a part of.

See you again next year :D

In Case of Emergency — ICE

Saturday, July 18th, 2009

Igår inträffade en sak, som fick mig att komma ihåg något jag läste på någon räddningstjänsts hemsida för något år sedan. Det är dock inte en sida jag lyckas hitta till igen, men Google presenterade mig med en massa individuella räddningstjänsters hemsidor[1] från runtom hela landet. I princip allihopa säger samma sak:

ICE i mobilen

Lägg in dina närmaste anhöriga i din mobiltelefons adressbok under namnet ICE. Då kan de snabbt kontaktas om du skulle hittas akut skadad eller sjuk och inte kan tala.

ICE är en förkortning av engelskans In Case of Emergency.

Så här gör du för att lägga in ICE i mobilen:

  1. Lägg till en ny kontakt i telefonboken.
  2. Skriv in ICE1 följt av vilken relation du har till personen t ex wife, dennes namn, +46 och sedan telefonnumret utan den första nollan.
  3. Vill du lägga till fler kontakter, skriv ICE2 etc.

Tänk på att använda landsnummer +46 för Svenska kontaktpersoner och Engelska som språk så att funktionen även fungerar när du är utomlands. Du bör självklart berätta för de personer du lagt in under namnet ICE så att de vet om det.

Ett exempel:
ICE1 wife Rut
+46 703 123456

[1] Västra götaland, Räddningstjänsten Syd och Östra Blekinge m.fl.

My day

Wednesday, May 20th, 2009

The two wortwhile things I’ve done today, in chronological order:

  1. Cheer up a dear friend who needed some kind words
  2. Vote for the Pirate Party in the EU election

Anti-Terror Laws

Sunday, March 29th, 2009

I watched the episode of NCIS (season 6 episode 6) last Tuesday, and made an observation in the end of the episode which I made a mental note to blag about later. The time has now come for that.

In order to discuss the observation, I will need to rehash parts of the story, including the ending, so if you haven’t seen it but will, STOP READING NOW!

So the team is hunting a serial killer, who’s great plan is to get caught, in order to get famous. “Who remembers the name of the police who caught Bundy” or something to that effect is uttered in one of the final scenes. Essentially the bad guy wants his 15 minutes of fame, and is willing to literally kill for it. He gloats before Gibbs that he will be famous, but Gibbs will just be a footnote at most.

So Gibbs pulls some strings, and the final scene depicting the news-cast that evening shows a black silhouette with a white question mark superimposed, instead of the photo, while the reporter announces that due to “suspected association with terrorists” they cannot reveal his identity.

I have to say, they did it skillfully. I was exhilarated “yay, the bad guy failed”, but then later that evening I got to thinking “wait just one goddamn minute”. And then it struck me. They were, in the show, without even the least bit of apologetic behavior, just depicting a rather troublesome breach in what that law is supposed to do.

Sure, they didn’t turn a (fictitious) serial-killer into a star for some unstable psyche to idolize, but consider the implications here for a while. What would stop another agent/agency from “implicating” an outspoken protester (for the sake of the argument let’s say the object of the protests is the government) as a suspected terrorist. Well that just gave them the ?authority? to silence him and ship him off to some shit hole so that he won’t be causing trouble.

And the only thing standing between him, and said shit hole, is the strength in his arguments. If the arguments are weak, he is not a problem, and letting him be just adds to the government image of tolerating different opinions, while if the arguments are strong, he would be a problem.

I find that thought to be incredibly scary. How about you?