“in the Mobile Infantry, everybody drops and everybody fights”

That of course is from Robert A. Heinlein’s book Sci-fi/military fiction book Starship Troopers.

If we look away from everything else that is Starship Troopers and focus on just that, the “everybody drops and everybody fights” and the explanation for it. Robert A. Heinlein wrote a page or two about why militaries of old didn’t quite make it. There was a lot of military personell that did nothing military. In the mobile infantry you drop (get shot via space down to the planets surface) and fight. Everyone does this, from the private grunts, to the lieutenants and corporals, generals and the chaplain. There is no slack, everyone knows the core-objective. Now if we’re not out to kill aliens (I’m not) could that philosophy be translated into something else?

I’m obviously thinking about big corporations, and medium sized too. How come that companies get bloated so quickly, and that the core is lost. Think about it, really think about it. What if the place you worked at, every single employee worked towards the same goal. Maybe not all the time, but most of the time. Could you run a company like that? (startups and small companies can). Could you run a whole society like that (I do not think we should). Could you run the civic functions like that? If we tried it, would it kill of bureaucracy?

Battery starve guitar effect pedal

IMG_00000072

Last night, I made a starve pedal. It’s not a pedal in itself, it’s a gadget that removes power from another pedal, thus making it go all “dying battery”. This can lead to sounds that is useful. It can also lead to just silence. Results may vary. This version of the pedal has power in/out and two potentiometers chained. One is 10k and the other is 1k. I use the bigger pot to dial in the general area of where the fun sound is, and the 1k to fine-tune.

Someone will be delighted for christmas

IMG_00000041

Why? because in this, the second of cold’s in a very short time. I strayed from watching TV (marathon style) and glued together a lamp.

I used an old light fixture that was from a lamp that got smashed some time ago.
Then a bunch of wood sticks and glue.

Took me a while, but I’m sick and thus a bit slow in the head so I don’t need that much stimulus right now.

Anyway, it’s sort of pretty, and you can put stuff on it. And I will probably give it away as a christmas present. I’m thinking of making all the christmas presents this year. It’s not that I don’t have the money, it’s just that I’m cheap.

 

IMG_00000038

This is the base of the lamp. nothing fancy, I just glued it all together.

Why in the world is my bathroom door gray?

IMG_00000002

 

My bathroom door is gray, all the other doors are white. In this blogaticle I will try to answer the question posted in the title: “Why in the world is my bathroom door gray?”

During my travel for truth I found out that there are two answers. One that is short, and one that is almost lengthy. Let’s start with the lengthy one.

Every other door on that level of my house is white. The door to the stairs down the basement and the door that leads to the tv-room and the door that’s to the wardrobe-closet and the door to the hall. Except the door to the tv-room and the hall these are doors we want guest’s to avoid. The basement stairs are steep and there is really nothing to see down there, when the kids have friends over that needs to go to the loo, we dont want them to fall down stairs, possibly soiling themselves at the same time. The wardrobe-closet, there is a lot of stuff there, but they are mostly there to be stored. So how do explain which door is to the toilet, so easy that a child that really needs to go can find it directly. We tried instructions, but never managed to get them clear enough. We tried putting up discreet signs that had the word “WC” on them. Still no gold cigar. So I painted the door gray. It’s totally different from all the other doors. The directions are easy to give.
“-I need to use the toilet”
“-Gray door”
“-KTHANKXBIE!”
Pretty lengthy answer, could have been a lot longer. But it’s long compared to the short answer: There was gray paint in the canister labeled with white.

 

the OWL programmable effect pedal on kickstarter, and a competition.

I’ve backed another thing on kickstarter, the OWL.The OWL is an open source, open hardware, reprogrammable effects pedal designed for musicians, coders, and hackers.  While this in itself is very exciting they also have a competition where you can win an extra OWL pedal. The only thing you have to do is to make a program/patch for the pedal in the simulator. This was very fun.

It’s here for you you to listen to: http://soundcloud.com/hoxtonowl/sets/patch-contest my patch’s name is Conny, and you know my name 🙂

I’m not totally sure on how to vote or tell the judges how much you like any of the different patches, but the competition page is here.

[code]
#ifndef __ConnyPatch_hpp__
#define __ConnyPatch_hpp__

#include “StompBox.h”

/* Conny Patch

Made by me, Johan Larsby

Conny was a dog I used to know. He was some sort of mongrel breed that no-one could really pin out what it was. Mostly we think he was a poodle/bulldog mix. But there had to be more in there.
Anyways I wanted to make a distortion that reminds of him, and what better then to mix two different distortions into something new?

The first dist is a variant of a classic waveshaper. I’m sure a gazillion variants can be found around the internet. I borrowed inspiration from www.musicdsp.org

The second dist is really an adaption of a one-line music program that you can read more about here (http://www.larsby.com/johan/?p=1036) but instead of incrementing “t” I use the input sound after some int’ing. There will also be some bit-crunch since.

The A param controls the amount of the first dist.
The B param controls the amount of the second dist.
The C param adds gain to dist2 since I thought it was not LOUD enough
The D param is a wet/dry param.

*/

class ConnyPatch : public Patch {
public:

/* The clip function works to sanitize the data if it’s to big (could happen) it’s cut down to size*/
float clip(float in)
{
if (in > 1.0)
return 1.0;
else if (in < -1.0)
return 1.0;
return in;
}

void processAudio(AudioInputBuffer &input, AudioOutputBuffer &output){
int size = input.getSize();

//Dist 1’s parameter, needed to sanitize by *0.9 or the filter would be quiet. also the waveshaper wants a specific range.
float paramA = getParameterValue(PARAMETER_A)*1.0;
//—float dist1_amount = 2.0*paramA/(1.0-paramA);
float dist1_amount = paramA;

//Dist 2’s parameter, since it’s a bit shift distortion we needed to move the value to an int
float paramB = getParameterValue(PARAMETER_B);
int paramB_int = int(paramB*5.0);

// Gain, you can make the sound 100% louder then it was, but never quiter.
float paramC = (getParameterValue(PARAMETER_C)*2.0)+1.0;

//Dry/wet.
float paramD = getParameterValue(PARAMETER_D);

//Getting the number of samples in the inputstream
float* buf = input.getSamples();

//main loop, let’s have some fun
for(int i=0; i<size; ++i) { //unless we have a silent stream, let’s do some processing. if(buf[i]!=0.0) { // “classic” Waveshaper float dist_1 = (1.0+paramA) * ((buf[i] – paramA) * (((pow (buf[i],buf[i])))*paramA)*abs(buf[i])); // “modern” waveshaper int t= (buf[i]+1.0)*10000; float dist_2 = (t&(-t>>paramB_int)) | ((t<<paramB_int)&(t>>(paramB_int*2))) ;
//moving back to float
dist_2 = (dist_2/10000.0)-1.0;

// this line add’s togheter the dist’s and the dry signal depending on param d. it also add’s gain to dist_2
buf[i] = clip(paramD*(dist_1+(dist_2*paramC)) + ((1.0-paramD)*buf[i] ));
}
}

//give the buffer back so we can hear the beauty.
output.setSamples(buf);
}

};

#endif // __ConnyPatch_hpp__
[code>]

a message from Sean

This is from a conversation I had with Sean. He lives a couple of timezones away. So my evening is his afternoon.
22:34 “Larsby” I need to go to bed now
22:34 “Seaner” I am jealous
22:35 “Seaner” wear pants
22:35 “Seaner” just to mix things up
22:35 “Larsby” from time to time I wear a t-shirt and socks
22:35 “Larsby” and nothing else
22:35 “Larsby” it’s a weird sensation
22:36 “Seaner> lol
22:36 “Seaner> I will try that one

The day after, my afternoon, his morning I got:

15:49 “Seaner” wow, that was a mistake
15:49 “Seaner” I tried your sleeping uniform
15:50 “Seaner” I feel like I am still wearing the socks
16:13 “Larsby” hahahhahaaha
16:13 “Larsby” felt wird right
16:14 “Seaner” it was not good
16:14 “Larsby” what did Lynn say?
16:15 “Seaner” she said you have too much control over me

 

Epic win.

The “fictional character” method of loosing weight.

Disclaimer:
My colleague and friend <fictional character> is in no way affiliated with this method to loose weight. He has nothing at all to do with it. He has never ever ever done anything to do with this technique. Let me repeat, The <fictional character> method of loosing weight have nothing to do with the <fictional character> I know.

The Method:
What <fictional character> usually does when he wants to loose weight is pretty specialised to Sweden. In Sweden we like to queue, and we are good at it. We know how to queue. Around the world I think russians have that reputation, but in reality it’s Swedes that have perfected standing in line. Just search the internet and you will find many a tales about Swedes and line standing. So not following the queue line is taboo. It’s unheard of. You will get pointers to rectify your crazy behaviour. You will be educated. Now why do I talk about this when I should talk about the method? Well it involves queues. This is what <fictional character> does, he walks over to the a bus-hub. Simply a place in Malmö where there are a lot of busses going back and forth and several places to stand in line waiting for the bus. There <fictional character> locates the longest queue, and cuts it. He get’s in in front of everyone. Chaos ensues. Some people just mutters and clench their fists in their pockets. Some make snide comments, and some even confronts him. The most stressful times, <fictional character> tells me, is when no-one outright confronts him. When this happens, <fictional character> tells me, is when he looses the most weight. The social stigma he catches the onslaught of is so stressful that his body goes into overdrive. <fictional character> of course have a lot of statistic to back this up. Although his social anthropological experiment have almost ended with disaster a few times. But a bit of running and hiding will also help you loose weight, apparently. If you try this or something similar in the culture you live in, please write the story or post a link to the story in the comments.

Anyways, my friend and colleague <fictional character> is in no way responsible or have anything to do with the above text, for real!