Monday, July 18, 2011

Make your happiness work for you

Endorphins, serotonin and their friends are the happy chemicals in your brain. When you have tasty food, they are released. When you get attention that you desire, they are released. They are mechanism by which a naughty child learns to be naughty to get attention - she gets a happy rush when she gets attention, and if her parents give her that attention when she's naughty and ignore her when she's good, she has been trained to be naughty. Why?


Because we are all addicted to happy chemicals


It's the only good addiction, and it's the root of all those psychological addictions (not the chemical ones). You have somehow learnt that there is only one thing that will give you that happy rush right now, so that's what you indulge in, even if you know at the back of your mind that it's not right.


Hedonism


So are we all hedonists, just doing whatever makes us happy? To a degree, yes. Many hedonists are just doing whatever makes them happy. There is a kind of logic that if you are doing something that makes you happy but which is damaging your future (like spending all your money), then you will be storing up unhappiness, so you try to fit your hedonism into a longer-term picture.


But you can train yourself (or be trained) to seek some future goal which will make you happy, or to change your values so that your happiness depends on something else. So I can pin my happiness on academic achievement, so I work to do what it takes to get that goal, in order to get that happiness waiting for me. This is what hedonism lacks - the willingness to change what makes you happy. For hedonists, happiness is the goal itself.


For me, that's a problem. Chasing happiness itself means that if I find a way to get a steady drip of happy chemicals then I should take it. So if I was offered a lifetime on a cocaine and morphine drip, then I should take it. Happy ever after, right? No, I want more from life than just some happy chemicals. I want to make a difference, I want my genes and memes to survive, to live on, to improve the human race and its future. Maybe that's some successful memes showing through, enslaving me to their goals, maybe it's just common sense not to want to end up as a body in a hospital bed with an ecstatic smile.


Choosing a new goal


So an ecstatic smile is not a good enough goal. What is? I'm a husband and father, so I want the best for my family. I want to support them, house them and feed them. I also want to inspire my children to live joyful lives. I want to make a difference to the world, not just live a quiet life in the corner.


So if those are my goals, I need to pin my happiness on them, so that I learn to derive happiness from the steps I make in that direction, in pursuit of those goals.


I could do with losing a bit of weight, being a bit more focused at work and at home, having more of a plan. So I'm defining some medium term goals, setting aside reasonable amounts of time for them, planning to succeed. I lose focus when I can't see my efforts leading to some worthwhile goal, so I'm weaving these goals into a longer term achievement.


Change


Often people fail with long term goals because circumstances change. Aiming for that job or that dream may make sense now, but not work out when you get there. So the goals have to be largely about how you are improving yourself and your circumstances, not about achieving specific targets that may move. Fortune favours the prepared, so aim to be prepared.


Jobs, companies, houses, all pass in the night. Getting attached to any single one is easy, because of all the improvements to your life you imagine will result. But the key is to notice what they mean to you, what you yearn for. Sometimes it's recognition, self-worth, belonging; if you realise it's one of these then they are better (and more cheaply) worked on by addressing the real issue rather than seeking the answer in purchases or jobs, which won't actually resolve an underlying emotional problem.


Coda


So this is me working out what I actually want to achieve, what will make me a happy man in the long run, and trying to avoid the pitfalls of vainly seeking fulfilment in jobs and purchases, taking an active approach to getting to where I want to be.

Saturday, June 11, 2011

Looper live jam

The basic problem with live jamming on the net is latency. You play along, hearing yourself in perfect timing, while the people receiving your music hear a delay, because of the time taken for the data to get from your computer to theirs. Unfortunately the delay is twice as big as that lag, because their notes have to get from their PC to yours, and then your notes have to get all the way back again. Not conducive to good jamming.

How about using loops, then? Someone plays a 4-bar section, which everyone receives, along with the timing data. They begin jamming with a delay, and their sections are sent back again to the other player(s). Instead of attempting to play person B's notes with no lag, person A's software plays them at the beginning of the second loop. So the players can now play with no lag, and have their notes heard with no lag.

The price is that the leader has to change to the next pattern on their own.

Since people are receiving each other's notes with this fixed delay, I would expect a layering to happen - B harmonises to A, C to B, and so on. Each gets a different actual rendering of the music, since they are all synchronous with their own notes but offset with respect to everyone else's.

Would be a great experiment...

Friday, April 15, 2011

Lunch hour code jam

Thinking about how I would like to improve my programming in my lunch hour, I had an idea: lunch hour coding as a jam, or a competition.

The format could be: A challenge/puzzle is posted at a given time, competitors sign in, and start coding live in their browsers. Other competitors and spectators can log in and watch the code being written live. Since competitors can see each others' code, they could easily fork someone else's implementation and make their own modifications.

I suppose having a few awards would work: first competitor to produce a correct solution, fastest execution time, most forked, etc. Use unit tests to determine whether a solution succeeds or fails.

Would work quite nicely for recruitment, CV-building, etc.

Thursday, March 24, 2011

PassiveActiveAllThatFlowsInMyMind

I'm sitting at my dersk feeling a bit like a graphic designer - I've got the clean designed specs, the cool thermal mug, a wireless keyboard and I've spent a while scrolling through pages of design blogs. They are heavy on the photos of cool stuff, and my mind is infected with the feel of it, the clean lines, the colours, the indulgence in texture and form and thought. Luxuriating in brass inset in walnut, castigating the endless over-designed-but-clearly-uncomfortable chairs.

If I designed a chair, it would be comfortable. Because a good chair you sit on. A good chair you sit on so much that you can't even see it. A good chair you feel more than you see, except for the bits in the periphery of your vision from your seat.

And a good chair, once you've got past the novelty of its entrance in your life, ceases to be about sitting. No, sitting on a good chair, you can stop worrying about sitting and focus on reading, watching, curling up with your baby, enjoying the warmth of a friendly coffee with someone dear to you.

So once you've got the chair that's so good it leaves your mind, and you've got a table so good that you aren't distracted by it, a PC or a notepad and pen that just works, what do you do?

All things are derivative, all things are a following of what was before, a continuation. Nothing is new that doesn't begin somewhere - all things are a journey, and journeys have a beginning. Having a beginning is nothing to be ashamed of - a trek across the Andes is no less a thing because you didn't invent the mountain range, nor the gear you used or build the town you started from.

Meaning is in the personal, the relational. Wood is better than plastic for making a desktop because the wood has a story and it has tactile meaning to me.

Thursday, December 9, 2010

Idea: A story in Vi commands

The thought occurs that, a bit like hearing one side of a telephone conversation and slowly piecing together the story, a particularly niche storytelling device could be to tell the story using only the vi commands. A series of searches, a replace, perhaps a :q! (runaway!).

Wednesday, December 8, 2010

Idea: An optimally diffusing reflector

In an unlikely twist of events, here's an actual idea, like I intended to be posting.


The problem

I have a consumer digital camera, but I hate the glare of the flash when I take an indoor photo at a family event. So I usually either find a bit of white paper or a spoon and hold it in front of the flash to bounce the flash off the ceiling or a wall behind me. This has its downsides; you look silly, you flash whoever's behind you, it's cumbersome (particularly when shooting vertically) and it doesn't work whenever there's a dark or far away wall or ceiling.


The concept

So I thought it would be good to have a little diffuser I could attach to my camera. But a little piece of plastic would waste a lot of the light by sending it out the sides, more so the larger the diffuser. And so that it actually improves the shot, I'd like the diffuser to be a reasonable size (A6?). So how about using 2 bounces? Firstly, a bounce in front of the flash to redirect it upwards, and then a second above the flash to bounce it forwards. If both of those were made of some kind of semi-diffusing reflector, like shiny paper, or had a bumpy surface like crinkled tin foil, then the light would be diffused without too much loss. I could also just use the first reflector to bounce of the wall or ceiling.


Optimizing the solution

What shape should the two reflectors be? If the first was concave it could focus the flash onto the second reflector, or even (via a paraboloid) create a fairly narrow beam. The second reflector would need to again diffuse the light to create the most diffuse source it could. So could we throw two surfaces of nodes and a light source into an optimising algorithm and see what answer it comes up with? The constraints would be to maximise diffuseness of the resulting light (so a given point in the field of view would be uniformly lit from as wide an angle as possible), minimise size, maximise the intensity within the field of view, etc.

Thursday, December 2, 2010

Visualization: Analysis plus Design

In response to Dave McCandless' post on Data, Information, Knowledge and Wisdom:


I would say that the value visualization brings is not only design but also analysis. First, you must analyse the information, and then you have to communicate that analysis to others. You can generate a very well designed pie chart, but if the useful analysis is better done with a bar chart, you’ve missed the best visualization. That’s why you get mush – not because the design is missing, but because the analysis is.