Archive for December, 2013

Saturday, December 28th, 2013

The song most often commented on at Fraud In France shows is Starshine, which is about Voyager I. We finally have a halfway decent take of it, captured at practice #46 and mixed by Bunne Rabb – for the curious, here’s a link: http://pb.sheer.us/bunne/Dec%202013/Star%20shine/SS-46-non-asplodey_mix.mp3

C# arg parser

Monday, December 2nd, 2013

Since I posted a perl one. Note there’s probably some neat way to do this using system libraries that I just don’t know about, but this is what I use

As part of the class (you can have this as a class i.e. Config.cs, or as part of the program:


static readonly Dictionary argsDict = new Dictionary();

Parser:


static public void ArgHandler(string[] args)
{
foreach (string arg in args)
{
Regex quoteRE = new Regex(“\”(.*)\””);
string[] quoteResults = quoteRE.Split(arg);
string workarg;
if (quoteResults.Length > 1)
{
workarg = quoteResults[1];
}
else
{
workarg = arg;
}

Regex argRE = new Regex(“–(.*)=(.*)”);
string[] regResults = argRE.Split(workarg);
if (regResults.Length > 1)
{
Console.WriteLine(string.Format(” — {0} -> {1}”, regResults[1], regResults[2]));
argsDict.Add(regResults[1], regResults[2]);
}
}
}

Get a argument:


static public string GetArg(string arg)
{
string result = null;
argsDict.TryGetValue(arg, out result);
//if (debug)
// Console.WriteLine(“arg ” + arg + ” -> ” + result);
return result;
}

At the top of main(), call:


ArgHandler(args);

From a emailed conversation..

Sunday, December 1st, 2013

TL;DR=We should use prisons as a experimental ground to find out what media help broken people heal

I emailed this, and then – while I think it needs rework and expanding on, which I will probably do later – I thought I should paste it into my blog now just to get it out there. It’s a idea that I’ve discussed with various people over the years, that’s slowly grown..

From email:

This actually reminds me of a experiment I want to do. I will never,ever,ever be allowed to do it, but I think it would be truly awesome.

I want to retrofit a bunch of the country’s jails. I want to equip every cell with a very hardened computer console [as in virtually indestructable and also virtually impossible to break into from a hacking point of view]. Then, I want to try a number of different permutations of libraries of videos and books in each jail, and try different amounts of freedom to roam the net / free phone calls / things of that nature. I’d even want to try in some of the jails letting the employees work doing data entry or other remote-control things and potentailly also try having their income partially go to pay back their victims. I’d try anything in the initial seed set – porn, religious texts, movies from the 20s, childrens movies..

The purpose is to see what set of media, what set of communications options, and what set of employment options

a) Reduce recividism the most
b) Result in the happiest population

If we really think about it, what we really want our jails to do is help the people inside become better citizens. Since we don’t execute very many criminals and we don’t keep very many inside forever, we really want to figure out what to do for them that will turn them into people who don’t commit crimes. Ultimately it’s in the best interest of everyone who has to live here for our jails, rather than “punishing” people – often for crimes they committed because of mental illnesses they have – to heal them. And if a particular set of books or movies or whatever encourages that process, let’s give it to ’em free of charge, maybe even find ways beyond that to encourage them to watch & read! I know from my parking meter days that I could make a terminal that would survive anything a inmate could do to it. It wouldn’t be pretty, and it wouldn’t be possible to touch type on it that easily, but it probably wouldn’t cost *that* much either – and utlimately, if one is measuring using value rather than money, it would potentially pay for itself many, many times over. Plus, the value of knowing which, out of the milions of books and movies we have really heal people is almost beyond putting a dollar amount on.

I also talk about commercial prisons and the profit motive encouraging recidivism here and suggest a fix

I also make another suggestion here – that if we must have commercial prisons we only pay them for the prisoners that do not re-offend.