Thursday, January 14, 2016
Wednesday, January 13, 2016
Emacs: ido is currently the replacement for iswitchb, not icomplete-mode
So Emacs recently, well, recently in Emacs time, obsoleted iswitchb, the package I've been using to switch buffers.
The suggestion is to try icomplete-mode instead. But icomplete-mode isn't really tuned for buffer switching in the same manner as iswitchb. After some digging, it looks like there was a plan to gradually integrate the features of iswitchb/ido into icomplete-mode, but that hasn't happened yet, and yet iswitchb was obsoleted.
Fortunately, it looks like ido these days allows one to only turn it on for buffers. This will do the trick as a replacement for
Once that's done, you can even enable icomplete-mode safely without having it meddle with buffer switching, so:
The suggestion is to try icomplete-mode instead. But icomplete-mode isn't really tuned for buffer switching in the same manner as iswitchb. After some digging, it looks like there was a plan to gradually integrate the features of iswitchb/ido into icomplete-mode, but that hasn't happened yet, and yet iswitchb was obsoleted.
Fortunately, it looks like ido these days allows one to only turn it on for buffers. This will do the trick as a replacement for
(iswitchb-mode 1):(ido-mode 'buffers)Once that's done, you can even enable icomplete-mode safely without having it meddle with buffer switching, so:
(ido-mode 'buffers)(icomplete-mode 1)
Wednesday, January 6, 2016
Last-minute bugs
You've just completed a new big feature.
There's been ups and downs - you started thinking how hard can it be, then discovered the inherent ambiguities, the dissonances with the existing code base, got stuck, pacing the floor of the office, chatting to coworkers, slowly building, discarding and rebuilding refined models, getting stuck and unstuck again and again, then gradually transcending into a coding frenzy, with the code bending towards your goals and your will, constantly in the zone, writing tests, wrapping things up, thoroughly testing everything manually, finally letting some trusted users try it out.
And now you're ready for release. Release!
Except just now someone remarked how something is a little bit odd. Perhaps it's even yourself, the overworked brain having mentally let go of the whole thing and suddenly remembering a little forgotten detail.
Ah. But I just need to fix this. It is simple. The world is my feet. And the test works. I can do this.
Except you didn't bother running the full test suite. Or going through the full test procedure. Or full release procedure. Or checking with the users.
This is the time of the last-minute bug where the little innocent fix turns out to violate an assumption somewhere else.
My piano teacher Karen-Marie once explained to me that finales can be the most dangerous parts for a musician. When you stop thinking ahead, instead thinking about what you've accomplished, letting concentration slip.
There's been ups and downs - you started thinking how hard can it be, then discovered the inherent ambiguities, the dissonances with the existing code base, got stuck, pacing the floor of the office, chatting to coworkers, slowly building, discarding and rebuilding refined models, getting stuck and unstuck again and again, then gradually transcending into a coding frenzy, with the code bending towards your goals and your will, constantly in the zone, writing tests, wrapping things up, thoroughly testing everything manually, finally letting some trusted users try it out.
And now you're ready for release. Release!
Except just now someone remarked how something is a little bit odd. Perhaps it's even yourself, the overworked brain having mentally let go of the whole thing and suddenly remembering a little forgotten detail.
Ah. But I just need to fix this. It is simple. The world is my feet. And the test works. I can do this.
Except you didn't bother running the full test suite. Or going through the full test procedure. Or full release procedure. Or checking with the users.
This is the time of the last-minute bug where the little innocent fix turns out to violate an assumption somewhere else.
My piano teacher Karen-Marie once explained to me that finales can be the most dangerous parts for a musician. When you stop thinking ahead, instead thinking about what you've accomplished, letting concentration slip.
Sunday, September 20, 2015
Simulating statistics
This presentation was interesting - it explains how you can simulate your way through various statistical problems instead of trying to figure out the right analytical approach. For instance, to answer the question: is this a typical scenario? You just run the simulation many times in a loop and see what happens.
Wednesday, October 29, 2014
Confident idiots
This article about the problem that ignorance makes people more confident and how that affects society was really, really interesting - e.g. is it safer to educate people on how to drive on icy roads or not? It even has some advice on how to not fall into the ignorance trap.
Sunday, May 11, 2014
When three becomes four
It's now a little over three months ago that Janne gave birth to Nor.
He was born almost on time, and slightly disappointingly, he wasn't quite as done as Storm - more wrinkles and odd baby skin.
The birth itself went fast. Despite being warned last time by the midwives, Janne didn't think the birth was actually starting until quite late, so in the end an ambulance came to pick up us and went through the morning traffic with blinking lights and sirens on. A young female apprentice ambulance driver sailed us through the red traffic lights as if nothing was on.
After delivering us at the hospital, everything went pretty smooth and calm, though. Janne is good a giving birth, and in many ways the perfect mother too. I don't think most people think of that when they pick their partner. But I guess some of us are lucky.
I managed to ask the assistant midwife for some help so didn't faint this time either. I swear they turn up the heating every time we're there - this time a technician even came to try to fix it afterwards.
Nor is turning out well and is day-by-day developing the muscles and skills that make us those human beings we are. Keeping the head up and smiling.
Nor, Storm and me a few hours after the birth
He was born almost on time, and slightly disappointingly, he wasn't quite as done as Storm - more wrinkles and odd baby skin.
The birth itself went fast. Despite being warned last time by the midwives, Janne didn't think the birth was actually starting until quite late, so in the end an ambulance came to pick up us and went through the morning traffic with blinking lights and sirens on. A young female apprentice ambulance driver sailed us through the red traffic lights as if nothing was on.
After delivering us at the hospital, everything went pretty smooth and calm, though. Janne is good a giving birth, and in many ways the perfect mother too. I don't think most people think of that when they pick their partner. But I guess some of us are lucky.
I managed to ask the assistant midwife for some help so didn't faint this time either. I swear they turn up the heating every time we're there - this time a technician even came to try to fix it afterwards.
Nor is turning out well and is day-by-day developing the muscles and skills that make us those human beings we are. Keeping the head up and smiling.
Friday, October 25, 2013
The disproportionality factor - why do people get angry?
It has recently occurred to me that many of the conflicts and negative feelings I see from time to time at work and elsewhere are caused by two parties having very different levels of interest in something they are cooperating on. For one party, the party that wants something from the other party, the effort is extremely important, for the other party, the delivering party, it doesn't really matter.
For instance, think of a situation where you're going to a foreign country on the other side of the world. You have done countless preparations, booked the flights, scheduled everything around it at work, and now just need to obtain the visa from the embassy - which is late.
So you send reminders, press for it to go through, and finally get through by phone in the one service hour per day to a person who kindly explains that yes, he has your papers, and yes they look fine, but unfortunately he will not be able to process them because he's going to lunch and after that he has two weeks off so the case will have to wait on his desk until well into your travels.
I think most people would get pretty angry in that situation.
For better or worse, we have to rely on other people which means they sometimes have power over us. I am not talking about formal power relations, I am talking about the fact that when someone is doing something for you, you have effectively lost control over what happens. A manager who assigns a task to one of this workers is dependent on the worker to do his job. Otherwise everyone, not just the worker but also the manager although he's formally the one in power, gets in trouble.
And when you have lost control over something that is very important to you, and the other party has very little if any inherent interest in the matter, chances are something will go wrong.
I think of this as the disproportionality factor.
More examples: the bus is a bit late. For the driver, it's only 3 minutes, but for you it's the difference between being able to catch the train or having to wait two hours for the next one. Are you cursing at the transportation company? Yes, you are.
Or in reverse: you spend 10 minutes extra at work with the phone turned off to finish up an important project, get home in high spirits, and find an angry and hurt husband or wife who wasn't able to go to a concert because you were supposed to get home half an hour early to take care of the children. Which you had of course forgotten - because you weren't the one buying a ticket three months in advance in anticipation.
In a similar way at work: when we call the hosting company because our server is down, it's critical for us. But for the operator in the other end, it's just pressing a button to restart one server among thousands.
It happens with minute details too: why are people not aligning their vehicles properly at the parking lot - now I can't park properly! Why are people not formatting their code properly when they know I hate camelNotation! Why has this error in the software I'm using not yet been fixed when it annoys me everyday!
I think there are two things that are important in dealing with the disproportionality factor.
The first is that we need to understand what's important to other people. This goes both ways - you need to think about what's important for people you are dealing with, and you need to communicate effectively what you think is important.
The second is that we need to remember that on average, we can't expect people to really care that much about anything that isn't important to them. That's just human nature.
So we need to help them, not just by explaining what we think is important but also by helping them out, instead of just crossing our fingers and hoping for the best, and then getting ticked off when we are inevitably disappointed.
And sometimes, when in the land of the minute details, we perhaps need to help ourselves to just get some perspective.
For instance, think of a situation where you're going to a foreign country on the other side of the world. You have done countless preparations, booked the flights, scheduled everything around it at work, and now just need to obtain the visa from the embassy - which is late.
So you send reminders, press for it to go through, and finally get through by phone in the one service hour per day to a person who kindly explains that yes, he has your papers, and yes they look fine, but unfortunately he will not be able to process them because he's going to lunch and after that he has two weeks off so the case will have to wait on his desk until well into your travels.
I think most people would get pretty angry in that situation.
For better or worse, we have to rely on other people which means they sometimes have power over us. I am not talking about formal power relations, I am talking about the fact that when someone is doing something for you, you have effectively lost control over what happens. A manager who assigns a task to one of this workers is dependent on the worker to do his job. Otherwise everyone, not just the worker but also the manager although he's formally the one in power, gets in trouble.
And when you have lost control over something that is very important to you, and the other party has very little if any inherent interest in the matter, chances are something will go wrong.
| Oops, you need to walk here? (by Gabriel) |
More examples: the bus is a bit late. For the driver, it's only 3 minutes, but for you it's the difference between being able to catch the train or having to wait two hours for the next one. Are you cursing at the transportation company? Yes, you are.
Or in reverse: you spend 10 minutes extra at work with the phone turned off to finish up an important project, get home in high spirits, and find an angry and hurt husband or wife who wasn't able to go to a concert because you were supposed to get home half an hour early to take care of the children. Which you had of course forgotten - because you weren't the one buying a ticket three months in advance in anticipation.
In a similar way at work: when we call the hosting company because our server is down, it's critical for us. But for the operator in the other end, it's just pressing a button to restart one server among thousands.
It happens with minute details too: why are people not aligning their vehicles properly at the parking lot - now I can't park properly! Why are people not formatting their code properly when they know I hate camelNotation! Why has this error in the software I'm using not yet been fixed when it annoys me everyday!
I think there are two things that are important in dealing with the disproportionality factor.
The first is that we need to understand what's important to other people. This goes both ways - you need to think about what's important for people you are dealing with, and you need to communicate effectively what you think is important.
The second is that we need to remember that on average, we can't expect people to really care that much about anything that isn't important to them. That's just human nature.
So we need to help them, not just by explaining what we think is important but also by helping them out, instead of just crossing our fingers and hoping for the best, and then getting ticked off when we are inevitably disappointed.
And sometimes, when in the land of the minute details, we perhaps need to help ourselves to just get some perspective.
Subscribe to:
Posts (Atom)

