vim: firefox-like tab controls

I approve of this tip to make tab navigation in vim the same as with firefox. Life is too short to memorize multiple sets of commands.


:nmap :tabprevious
:nmap :tabnext
:map :tabprevious
:map :tabnext
:imap :tabpreviousi
:imap :tabnexti
:nmap :tabnew
:imap :tabnew

Getting server messages via irc

irccat is a bot designed to facilitate sending server messages to an irc channel

The irccat bot joins all your channels, and waits for messages on a specified ip:port on your internal network. Anything you send to that port will be sent to IRC by the bot. IRCCat – as in, cat to IRC.

Using netcat, you can easily send events to irc from shell scripts:

echo “Something just happened” | nc -q0 somemachine 12345

That will send to the default channel only (first in the config file). You can direct messages to specific combinations of channels (#) or users (@) like so:

following irc with inotail

Being always in a several irc channels, it’s helpful to have an overview of what’s going on without tabbing through a dozen windows. Fortunately I can follow the logs using inotail:


$ find /home/dan/.purple/logs/ -name "`date +%F`*" | xargs inotail -fv

This would also work with tail — the only problem is that _tail_ with so many files would put some strain on the filesystem.

urban agriculture

Via robokow, news of plant cultivation in an old IBM typewriter factory:

The location for the first commercia nursery in the world in an office is the former IBM typewriter factory on Johan Huizinga Avenue. The large factory building has already been empty for eleven years

It goes without saying that this is an area where the cannabis cultivators have a *big* headstart
:)

Stuxnet under the bed

Botnets are convenient enemies, providing justification for the introduction of spyware and restrictions on computers.

Walter and Amelia have good posts on the subject, particularly in South Korea.

South Korea, it seems, is further along a path that can be expected also in Europe and elsewhere. The country’s infrastructure has repeatedly been attacked by botnet-fuelled DDoS. These attacks strengthened demand for official regulation:

Popular support is rising for a helpful Zombie PC Act giving a government-controlled authority the mandate to access and scrutinize commercial, official and private datasystems. The authortity will help the government determine if the system is infected by any potential virus. Lacking appropriate anti-virus software shall, according to the bill, lead to repercussions.

That is, there would be a requirement for official intervention in every computer. With intervention comes inspection. And thus, the threat to alarm the paranoid — a sideways approach by which governments could seize computers. Walter:

Your computer may become a target for a serach (and seizure) just because it is a computer. The cherry on the cake is of course that we also should expect governmental bodies to take enough care that backdoors installed for this very purpose will not be abused by those very nefarious people, the Zombie-operators, it aims to fight. To quote Top Gear: what could possibly go wrong?


ETA

: Amelia has another post, laying all this out much more clearly.

playing mp3s in orer

I often use mplayer to play all files in a directory:

mp ./*

*mp*, by the way, is simply an alias for mplayer, used to play things faster and with speed control:


$ which mp
mp: aliased to mplayer -speed 1.21 -af scaletempo=speed=tempo

But what if I want to play them in date order? (useful to replay a stream with streamripper). I need a shell loop. A for loop will choke on filenames with spaces

:


$ for i in `ls -tr`
do
mp "$i"
done

A while loop seems to give me some problem of mplayer reading too much from stdin:


$ ls -1tr | while read i
do; mp '$i'
done

So I end up using an array:


$ mp3files=( ./*mp3 )
$ for d in "${mp3files[@]}"; do
mp "$d"
done

phew! that was

far

too much work

To joyfully watch the fumbling coalescence as a community becomes self-aware

He had the sense, at the moment, of groping for intellectual support, of casting about and dimly receiving a hint here, a hint there. Like a radio technician delicately picking signals out of background static, he’d learned to recognise voices worth listening to, voices that meant something distinct even when they ued hte same compulsory words as everyone else.

Here and there, people were speaking with secret passion

— Francis Spufford, Red Plenty p.65

Tatu and the IWW

Tatu are secretly Wobblies, aren’t they?

All About Us

hinges on a personalization of the great IWW slogan

An injury to one is an injury to all

,

transmuted into obsessive romance

:


If. They. Hurt. You. They. Hurt. Me. Too

So we’ll rise up won’t stop

And it’s all about

It’s all about

It’s all about

us

It’s not just me feeling the solidarity. This group review returns to the theme time and time again, albeit with a point-missing tendency to link it to the USSR:

You can imagine those pounding war drums soundtracking the Bolshevik revolution – there’s certainly a similar sense of collective running through the lyrics, drawing strength from standing shoulder to shoulder with fellow revolutionaries. “If. They. Hurt. You. They. Hurt. ME. TOO.”: spine-tinglingly magnificent pop moment of the year.

And more generally, you can make a case that the value of TATU is fitting their various high-pitched emotional states into a grand narrative of love and rebellion:

If you listen across their ‘Best Of’ album, you can see it unfold: forbidden love and ensuing confusion as the girls, through their transgression, are thrust beyond the bounds of the normative (“All The Things She Said”‘); the forging of a new revolutionary ethics (“All About Us”, “They’re Not Gonna Get Us”); yet more confusion as one of the girls falls for a boy (“Loves Me Not”); a Thermidorian inquest into the motives and consequences of the betrayal (“Friend Or Foe”); then finally, the realisation that the only place this utopian society can exist is in space (“Cosmos”)

Policing Costs

Does the cost of policing affect what laws are enforced?

I’d (naïvely?) imagined that there would be some kind of institutional firewall in place, analogous to the division between advertising and content in a newspaper, or the various Chinese Walls inside financial firms. That is, that decisions on which types of crime to pursue would be separate from decisions about how to pay for it.

Is that not the case? Brooke Magnanti (belle de jour) writes:

Another way in which opposing sex work brings financial benefit is through the Proceeds of Crime Act 2002. Police know, for instance, that if a brothel owner is prosecuted, since running a brothel is illegal, any money and property retrieved from the ‘crime scene’ becomes theirs. When police resources are limited, does the temptation of profit possibly influence victimless crimes being prosecuted more vigourously than they otherwise would?



It’s impossible to know for certain, but one can imagine plenty of situations in which police – with restricted time and money – must make choices: unknown violent criminals who may be difficult and expensive to catch, or women technically breaking the law standing right in front of you, with cash assets?

Similarly, there’s a debate about the cost of evicting travellers from Dale Farm:

The cost of evicting travellers from Europe’s largest illegal camp could spiral to £18million, councillors have revealed.

The occupants of Dale Farm in Crays Hill, Essex, have threatened violence if bailiffs move in, pushing up the bill to remove them from £3.5million just 18 months ago.

Basildon Council has set aside £8million for the operation – almost a third of its annual budget – while Essex Police has a £10million ‘worst-case scenario’ fund.



Despite the huge cost, Tony Ball, leader of the council is determined to press ahead if the families choose not leave by their own accord.

Mr Ball said: ‘No one wants a forced clearance of this site and we have spent ten years asking the travellers to work with us to seek a peaceful resolution.

‘However, it is important the law is applied equally and fairly to all people and if we do not take action in this case, we would have little moral right as a planning authority to take action against future unauthorised developments.

So it sounds like the cost of enforcement is taken into account in policing decisions, whether at the level of the police themselves or their political masters. Is that the case? If I break the law in some way that’s expensive to identify, can I expect to get away with it?

Untitled

Cory Doctorow on the joys of writing for teenagers:

That’s one of the most wonderful things about writing for younger audiences — it matters. We all read for entertainment, no matter how old we are, but kids also read to find out how the world works. They pay keen attention, they argue back. There’s a consequentiality to writing for young people that makes it immensely satisfying. You see it when you run into them in person and find out that there are kids who read your book, googled every aspect of it, figured out how to replicate the best bits, and have turned your story into a hobby.



young people live in a world characterized by intense drama, by choices wise and foolish and always brave. This is a book-plotter’s dream. Once you realize that your characters are living in this state of heightened consequence, every plot-point acquires moment and import that keeps the pages turning.