Sunday, June 27, 2010

LASIK surgery

My daughter underwent LASIK surgery on Thursday evening; she's been wearing glasses since the age of 12 and she is now 22. Actually, most of the time she wears contact lenses rather than glasses; the former look better although require more maintenance.

She decided a few weeks ago to undergo the operation and began researching the market. There are several places which offer the operation in Jerusalem, which meant that her eyes were thoroughly examined twice (each clinic has to judge for itself whether the patient's problem is correctable) before she could get to the stage of comparing price quotations and suitability. As it happens, she chose a more expensive clinic, but as my wife would say, one doesn't skimp on health.

The chosen clinic was on the tenth (and top floor) of a building near the entrance to Jerusalem; the expansive windows allowed a panoramic view of the city at night. Even at 7pm, the clinic was full; it's more like a conveyor belt operation than personal attention, as each operation takes only a few minutes. But as there were many patients waiting, it took some time before my daughter's turn came, and we only left the clinic after 9pm, she wearing protective goggles over her eyes.

The next morning we had to return for a brief check-up; as we waited in the building's lobby for the lift, we saw people walking around with sunglasses (it was only 7:30 in the morning). I joked that it was like a scene from 'The Matrix' and that I was wearing sunglasses in order to identify with all the other patients (my eyes are sensitive to light so I wear sunglasses very often). The check-up was fine, and on the way back home, we were having competitions on who could see the better. 

The procedure was miraculous: in a few minutes, her sight problems were corrected and now it seems that she can see better than I can (my eye muscles are tired)!

Wednesday, June 23, 2010

The Israelis are becoming like the British

The Israelis are becoming like the British - always talking about the weather. Normally the climate is like southern California and hot, hot, hot! every day. But the last few days have been extra-ordinary: yesterday morning at 5:30am, the temperature was 32.5 degrees Celsius outside the house, and by 8am it was over 40 degrees (that's 104 Fahrenheit). Apparently at around 10am, cold winds started to blow, slowly taking the temperature down to a more reasonable 30 degrees at 5pm. This morning, it was about 21 degrees outside - but 27 degrees inside! More power to the air-conditioners! According to the television news, the electricity company was supplying 99.98% of its capacity.

Most people are glued to their televisions at the moment watching the World Cup (or Mondial, as it is known here) but I couldn't care less. I have never been interested in football, even as a child (well, maybe I was slightly interested then), although I was a passionate rugby football fan during my school years. 

I have discovered that an obscure television station broadcasting from Cyprus has begun showing 'Star Trek: The next generation', beginning with the first series. I haven't seen these episodes for years (they were originally broadcast over 20 years ago) and am enjoying the trip down memory lane. The acting and plots are a bit clunky, but as I recall, the series improved greatly by the time of the third season. I wonder whether this station is going to show all the episodes.

During the 1990s, this programme acted as my bible for organisational behaviour, although I didn't know the term at the time. I admired how Captain Picard would assemble his officers in the briefing room in order to hold what would be in business terms a management meeting. There was no flapping about: everybody would bring pertinent information to the table and a decision would be reached quickly. If only real life were like that.... Instead, people talk about things which they know little about and conceal or reveal their ambitions. 

Later I always wondered how come the bridge is always manned by the senior staff. Was the concept of 'watches' or shift duty unknown to them?  Actually, I have a dim memory of one episode which is narrated by Data, which starts by him commanding the night shift. Maybe he doesn't have to sleep but surely the others do. Of course, such realities wouldn't make for a very good television series.

Sunday, June 20, 2010

Sunday morning

In western countries, the weekend is Saturday and Sunday, but in Israel it's Friday and Saturday. There are plenty of people who work on Fridays (normally until 1 or 2pm) but there are also plenty of people who don't. A five day work week was instituted maybe ten years ago, adding an hour to every work day. For those who do work on Fridays (my bank, for example), there is usually one weekday when they don't work (the bank is closed today). If one works on an hourly basis (as does my wife), then it's better to work during the week and not work on a Friday as one works more hours this way and so gets paid more. 

The point of this over-elaborate introduction is that two phrases which are resonant in western society ("I don't like Mondays" - the Boomtown Rats, "Someone's got a case of the Mondays" - the film "Office Space") don't really make much sense here. Instead, one could say "someone's got a case of the Sundays", but I've never heard anyone say that. There is definitely a sense of transition, although for religious Jews, this occurs on Saturday night when Shabbat "goes out"; there is a small ceremony held, called "Havdala" (difference) in which this transition is marked.

For me, the first ten minutes on a Sunday are slightly difficult as my head is normally full of the programming which I've done over the weekend, and now I have to clear my head instantly and take on a different set of responsibilities. I'm going to write here about the fun and games of the weekend, and not the fun and games of the day job.

The occupational psychologist for whom I work developed a questionnaire whose results indicate which profession is suitable for the person sitting the exam. The target population for this exam is mainly pre-university youngsters although there are elder populations for whom the questionnaire is applicable. I computerised the questionnaire several months ago; this was fairly routine. Even the program which reads the raw data and "calculates" the suggested profession is fairly routine, although we did spend a large amount of time designing and programming the output in order to make it user friendly.

As we intend this questionnaire to be distributed "in the wild", there are certain aspects which are unique to the program suite (there are four or five programs involved). 
  • People will have to pay in order to get their results, which means that there has to be a mechanism for issuing and distributing licenses. 
  • The raw data has to be sent from the client's computer to our server, the results have to be calculated and the output file has to be returned.
The first point was fairly simple to implement: I added a 'licenses' table to the database, which has fields for username, email, license code, counter and multi-user. If the license is defined as multi-user, then the same code can be used many times (this is intended for external establishments, who presumably will pay according to the license counter, which is incremented every time a licensed data file is received). For a normal user, the license is good for one time only.

In order to implement the second point, I added to the distributed questionnaire program a code snippet which automatically sends by email the raw results file to a specific email address. I then wrote a program which polls this email address every five minutes and downloads any letter which has certain characteristics (it's not going to download spam!). The program extracts the attached data file from the email and passes it to the calculation and output stages of the results program and then returns the output file by email. How does it know where to send the email? Because output files are sent only to registered users and the email of the registered user is known. So even if someone bothers enough to fake a registration code, they won't get the results.

The previous paragraph glossed over several points which actually took me quite a time to get right. Finding a free email server which handles POP3 was surprisingly difficult and took several attempts before I found one whose mail I could download successfully. I had never written a program which downloads email before, so I had to learn how to do the ins and outs of this as well. Checking the license and the multi-user status of the license was tricky but not difficult.

There were several little parsing errors which needed to be solved, but on Friday night, the occupational psychologist's son (who is in the target population) was roving the kibbutz with a mobile computer and the computerised questionnaire, getting all his friends to complete the questionnaire and getting the results back by email. Well, not quite: there was a problem with the file returning code. I woke up at 6am with a possible solution to the problem; it wasn't the correct solution, but did help pave the way.

This mobile computer was a pain in the neck by itself. I had programmed the display for a normal computer screen, but this mobile was one of the new breed of notebook computers with an aspect ratio sufficiently different from a standard screen to cause problems. The normal screen displays instructions at the top and five questions; on the notebook, the screen was truncated and only one or two questions were being displayed - and there were no scrollbars visible which would have enabled the user to scroll the display in order to see the missing questions.

I spent a few hours on Friday afternoon solving this problem. The other son of the occupational psychologist had done some design work with me on the program, resulting in an aesthetically pleasing display. His design called for the questions to be displayed in a dialog box with no borders - and it transpires that such a dialog box cannot have scrollbars. After knocking my head against a brick wall for some time, I found a compromise solution in which the dialog box has no caption but has a minimal border. This allowed the vertical scrollbar to appear (I fiddled with the width of the dialog in order to prevent a horizontal scrollbar from appearing).

There was another wish which I had been avoiding for the time being: the output file should be a PDF file and not a Word file. I know that Word 2007 has a 'save to PDF' option but we are using Word 2003 and upgrading solely for this ability seemed non-proportional. Yes, I know that Open Office can save to pdf, but then I would have to learn how to automate Open Office, a task which seems somewhat daunting at the moment, especially considering the lack of documentation. I tried a command line program which sort of did the job, but it seemed very slow, required most of the computer's cpu time whilst converting and was not free. 

After a brief nap on Saturday afternoon, I contemplated the pdf problem again. The program which I had tried automatically invoked Word and instructed it to send the file as output to a printer driver which the program had installed. This is when the light went on over my head: we already have a pdf printer driver! I had erroneously assumed that it couldn't help us as it always asks where to save the file and then invokes a pdf reader after the file has been created. Wrong! The printer driver has settings which enable the user to avoid the 'file save' dialog and not invoke the pdf reader. After five minutes work, I had a test program which wrote to a Word file via automation and then converted that file to pdf. 

I still had to install the pdf printer driver on the server, sets its definitions and add the necessary few lines to the output program, but these tasks were trivial. Now the automatic downloader/dispatcher program will send a pdf file back to the questionnee! (This is yet to be tested as no more data files have been received since I added this, but I am confident of the results).

In conclusion: I now have to switch off the part of my brain which has been operating on finding solutions for the problems posed by this questionnaire suite, and reprogram it in order to meet the challenges provided by the day job (for example, show where the differences in inventory value for examples in the last two months come from).

Thursday, June 10, 2010

MTD2Prio

I wrote a few weeks ago about our attempts to take the output from an external program and feed it into our ERP program. The external program is known as MTD (although I think that this is the name of the company and not the program itself) and the ERP program is called Priority; hence my program is called (with great imagination) MTD2Prio.

The previous installment of this saga had the team realising that the glue program needed to more than simply parse one of MTD's output files. I developed a simple quasi-database program (utilising a clientdatabaseset) which would display lines read from the file as well as lines added by the user. With no small amount of effort, I wrote code which would output five different files for import into Priority, one file for each table in Priority. Not all lines (parts) displayed on the screen are in each of the different files, so this part was more than tricky.

Once I had the five files (and originally I thought that I would need only three), I started on the work of importing those files into Priority and substituting parts in the given order with the parts in the files. Most of this work was achieved without difficulty, although it became apparent that I needed more data than I had originally planned (which is why the number of files increased). In a moment of inspiration, I also figured out how the program could use standard parts - a problem which had occupied us in a previous meeting and had been ignored since.

After displaying this new, improved version, some bright spark asked what would happen if the same part designed in the external program appeared more than once in the user's order. This could happen if the order was split up into sections, each section representing a different room in the customer's office; the same special table could be in each room. Obviously, the part would have to be designed only once, but the problem became mine: how could the user show that the part would have to be inserted into lines 1, 5 and 7 (for example) in the customer's order without defining three parts?

I figured out how to do most of the work as a mental exercise whilst driving back from Tel Aviv after the final economics lecture on Friday, but hadn't wanted to devote any time to implementing this new feature until after the exam. Today I had the time and space to devote to solving the problem, so solve it I did. I probably spent more time on parsing the input file than I did on the mechanics of the substitution in Priority. I wouldn't necessarily say that the work was overly complicated, but it demanded a certain finesse.

Anyway, that problem has been solved, leaving only one more problem of which I am aware, which is concerned with raw materials handling. As this is solely a Priority issue, I'm not expecting too much difficulty, but I'm leaving it for the moment in order to allow the solution to mature in my brain.

Of course, the users will probably have several issues which haven't been considered yet. These will probably be interface problems which won't necessitate any changes in the Priority code.

Wednesday, June 09, 2010

Post mortem on my Economics exam

Today was held the examination in Economics, the third course which I have taken for my MBA degree. As opposed to the previous exams which had been held in the Exhibition grounds of Tel Aviv, this exam was held in a posh hotel on the sea front. As I understand, this is going to be the new home for all future exams. For me, getting to the location was more problematic than before; in the past, I would take a train to the Tel Aviv University station and walk a few hundred metres. Yesterday, I took a train to an earlier Tel Aviv station, took a bus from there - and had to walk more than a few hundred metres. Coming back, I took a slightly different route which involved less walking. 

Obviously the conditions inside the hotel were better than before: both cold and hot drinks were waiting outside the examination room, and there were also adjacent lounges facing the sea, where most of us relaxed for a few minutes before the exam started. But once the exam started, all the external conditions ceased to have any effect as 100% concentration was directed to the exam.

The exam was much harder than I had expected; as part of the preparation process, I had worked on several previous exams, and in the morning even went over once more the two practice exams given in the course's textbook. Maybe it was the familiarity, but none of them were as hard as this one. Our lecturer said that every now and then the exam is very difficult, but with luck we would miss the hard one. Our luck did not hold.

The exam consists of four parts: 30 multiple choice questions (2 marks each), one 'case study', which is normally a numerical exercise in micro-economics (20 marks), one essay on micro-economics (40 marks) and one essay on macro-economics (40 marks). This makes a total of 160 marks and one needs 80 in order to pass. 

The multiple choice questions, as usual, were difficult and it's easy to make mistakes. In about half of the questions, there was a statement and four different answers; these are usually not too difficult to answer as normally two of the potential answers are obviously wrong. But this exam added a new wrinkle: there were several questions in which three statements were made, and then one has to choose (for example) whether the first is right, the second and third are right, all are right or all are wrong. My certainty on this type of question was lower.

Unfortunately, we didn't get, in the case study, a nice numerical question about a fishing company and how many people should go fishing every day. No, we had to get a question about a tennis player who endorses watches (why not tennis racquets?); she wants to get a percentage of the selling price whereas the manufacturers wish to maximise their profits. Write an essay explaining the situation - no numerical data provided. I thought that this section would bring an easy 15-20 marks, but instead I had to sweat in order to achieve maybe 15. 

The micro-economics essay, as expected, was about economic efficiency and 'marginal efficiency conditions', but instead of linking this to market failures as per usual, it was connected to the labour market. This is a combination which we hadn't come across before, and again, a great deal of mental sweat was necessary.

In the macro-economics question, several data about a nation's economy over two years were presented, along with four statements saying that 'if x and y, then z would be expected'. The question was to explain why z did not happen.

I imagine that I passed the exam, but with a lower mark than I might have otherwise expected. I don't know how anyone else felt about the exam because no one left at the same time as I did, and anyway we are now on holiday - until August. Next up is Project Management, which is a subject which will definitely be useful in my daily life.

Tuesday, June 01, 2010

Network card

I'm typing this from a mobile computer whilst sitting in a crowded train travelling from the north of Israel to Tel Aviv. I've had a laptop for some time, but have never been able to use it on trains because I didn't have a network card that connects to a mobile supplier. Finally today I got the long waited card and of course wasted no opportunity to start using it. As the connection is not via the work network (to which I have to connect via VPN), I am free to point my browser at whatever site I want, which is what enables me to write this entry.

There are some train journeys in which the computer is going to prove invaluable - I could have done with it this morning when I received several phone calls on my way up north - but there are also going to be times when using it is impractical. It's not very easy at the moment - the train is more than full, and before there were groups of youngsters walking up and down the aisles and bumping into my elbow.  But even so.... 

We have just arrived at the Binyamina station and it's time to log off.

Monday, May 31, 2010

Another month comes to an end

Another month comes to an end and there's little blogging to show for it. I've simply been too busy to devote time to writing here.

My economics course has come to an end and the exam is next Wednesday. I'm revising, but not that thoroughly. I think that I know the material well and much of it is common sense anyway (at least, common sense after having finished a course in the subject).

I saw the Tom Hanks film "That Thing You Do" the other day and thoroughly enjoyed it. Of course, the subject matter does talk to me. All the way through, I was waiting for the moment when the manager screws the band but that never happened. The entire financial scam element was missing from the film; the innocent band members enjoyed the largesse showered upon them, never realising that the costs would be borne from their earnings. Maybe then they would have been slightly more careful with their money.

The IMDB page has a very active discussion board for the film. There is even a thread discussing how the title song changes throughout the film. One thing missing from the discussion: the closing chord in the early versions is different from the closing chord in later versions.

I'm listening at the moment to "A parcel of Steeleye Span", a three cd compilation of "their first five Chrysalis albums". I thought that I knew some of this material quite well, but I haven't heard it for about 35 years and my memories have faded somewhat. To be honest, I prefer the two previous B&C albums (with Martin Carthy and Ashley Hutchings) - their starkness plays in their favour. The entire package cost only six pounds, and I hope that some of that money finds its way to the group as royalties - although maybe they still haven't paid off the advances for these records.

Reading material is yet another Eliyahu Goldratt book, "Necessary but not sufficient". This book is about a company which has developed and sold an ERP package, making it close to home. How much does such a program contribute to the bottom line? Fortunately, that's not a question which I've often been asked, although the book does provide a few answers.

Saturday, May 15, 2010

It's not luck ... and much more on business problems

As I have previously written, my lecturer in Organisational Behaviour suggested that we read a business novel called "The Goal" by Eli Goldratt. Eventually the penny dropped and I ordered the book. After reading it, I came to the conclusion that every MBA student should read it, even though at times the book seems antiquated. I have also recommended to people in one of the companies that I support that they too read it. It transpires that there was a plant manager who worked there only for a short while who also recommended the book and even read extracts to his managers.

After rereading the book a few times, I decided that it was time to read its sequel,  "It's not luck". Despite USA Amazon promising a delivery date somewhere in June, the book actually arrived about five days after having been ordered (rule #1 in business: always outperform one's promises). As usual, I read it far too fast to absorb too much, so I'm going to read it again in the next few days, taking it slower and trying to think about what is written.

As a novel, it's far less successful than "The Goal", although there is a clearly defined protagonist (Alex Rogo) and a problem to be solved. Although this is touted as a sequel, there are several tools used by Rogo whose source is never explained. These are clearly tools derived from the Theory Of Constraints, Goldratt's contribution to management studies, but their derivation is not described in the same way as in "The Goal", which made the early chapters somewhat frustrating. Maybe there is another book which is a true sequel to "The Goal", or at least a true predecessor of "It's not luck".

One of the more charming aspects of "The Goal" was how Rogo's private life provided several examples which eventually became paradigms for his industrial success. In "It's not luck", Rogo uses the new business tools for solving problems in his personal life; whilst this might be more realistic, it is less engrossing as a novel. Writing management books as novels is definitely a good way of enabling the brain to absorb what are sometimes complex issues. I shall be on the lookout for more such books.

After finishing the book and reflecting on how I can use the ideas presented within, it becomes clear to me that I am too low on the corporate level - or at least, not in a chain of command post - to do very much. Even though I work for what is essentially a holding company which is running three or four different companies, our scale is much much smaller than the companies discussed in the books. Actually, this smaller size should be to my advantage as there are fewer levels of beaurocracy and I have a direct line to the company's president.

My problem is more that I think on too low a scale: I think mainly about computer problems and how I can solve them, not on the corporate strategic level. In order to solve this problem, I am studying for an MBA; the final course - strategic planning - is supposed to give me the necessary tools and vision.

At the moment I am engrossed with three different problems at work, two of which are championed by the president. One is an attempt to improve the throughput of one factory - or rather, reduce waiting time for orders before beginning production. I have done the necessary development work to enable this system to be implemented in our ERP program; that's actually a joke, as the ERP program can easily handle what needs to be done, and in fact was designed to work in this "new" way. This factory had implemented change after change in order to force the program to work in the way that they wanted it to work. My job was to maintain their way of looking at things whilst making the program more flexible. After a few false starts, I realised about six weeks ago that the solution was actually simpler than I had originally thought, and the implementation was done quickly. My problem has been convincing the factory managers to use the new system. The president has given his political clout to the change, but I am convinced that the managers are only paying lip service to the ideas and are not using the new system to its full potential.

The other problem is using an external program to perform design work. An ERP system whilst being flexible in certain respects is also very rigid: there is no such thing as a parametric bill of materials - yet this is exactly what is needed if one is building wooden tables, whose length and width can be tailored to the customer's needs. This external program is designed from the ground up to be parametric - but of course only replaces one module of the ERP program. Thus it is my job to 'glue' the two together.

This program does export several files, but it turns out that all of them bar one are useless. The only useful file - and it contains all the information that I need - is in HTML format, which is not the most conducive to parse. Suffering a lack of time, it was only on Tuesday that I managed to give serious time to the problem. It became obvious to me that I could read the HTML file with Excel and then save it as a CSV file, which made parsing much simpler. After about an hour, I had written a Delphi program which could parse the file and output a text file holding the bill of materials which could serve as input to the ERP program.

As it happens, on Wednesday was held a divisional meeting, and the subject of integrating this external program was raised. I was able to report on my progress, and pointed out that we had received a price quotation of 5,500 euros to do what I had done in one hour. On the basis of this, I suggested (somewhat tongue in cheek) that my salary should be "only" 4,000 euros per hour, but that I was willing to settle for 4,000 euros a month.

On Thursday, the implementation team had another meeting in which we attacked the problem of how the factory was going to integrate this external program. It soon became clear to me that there was a major problem that we had not considered, the problem of producing a delivery note from the ERP program. I don't want to go into details, because most of the problems derive from the way that this factory produces delivery notes. If I were Alex Rogo, I would change this system immediately, but on the other hand, it won't make any difference to our bottom line and so the change is not needed.

The needed insight was that writing a program that simply interpreted a csv file and exported the information contained in a suitable format was not enough. The program has to receive a certain amount of extra information and impart much more information to the export file. Writing the program won't be too difficult; what was necessary was the insight. The other members of the team seemed somewhat lost at what I was suggesting (although one caught on fairly quickly) and it took a great deal of persuasion and explanation before they understood the problem and how I proposed to solve it.

After the meeting I wrote a proposal which explains the problem and how to solve it without going into specifics. Then I went into very specific detail and explained - mainly to myself - how to implement my idea. I will have to put my money (or rather, my brain) where my mouth is.

Friday, May 14, 2010

The Fourteenth of May

On the fourteenth of May at the dawn of the day
With my gun of my shoulder to the woods I did stray
In search of some game if the weather proved fair
To see could I get a shot at the Bonny Black Hare
So begins the allegorical tale of a hunter - or more correctly, a poacher - who is not hunting a hare, a small creature that many mistake for a rabbit, but rather for a piece of feminine anatomy.

This bawdy tale came to my attention in 1971 when it was recorded by Fairport Convention for their sixth album, "Angel Delight", a rather mixed offering which suffered on the one hand by the loss of Richard Thompson but gained by the others trying their hardest. 

Around the same time, their cousin group, Steeleye Span, released a rather more sombre song which also mentions the 14th of May:
When I was on horseback, wasn't I pretty
When I was on horseback, wasn't I gay
Wasn't I pretty when I entered Cork City
To meet with my downfall on the fourteenth of May
This song, set to a chilling arrangement, was not about some flighty young girl, as the above words might hint, but rather about a young British soldier serving in Ireland.

In 1971, I was beginning to think that traditional folk was my kind of music, and I found it both strange and pleasing that two songs encountered within a few months should reference the same calendar date. As it happens, I can't recall any other song referencing any date at all, so this remains a coincidence. 

Today is, of course, the 14th of May, so the Fairport mailing list is full of wishes that our powder stays dry and that our ramrods never go limp.

Friday, May 07, 2010

Economics

As I mentioned previously, I am currently taking a course in Economics and I am enjoying it immensely. The first six or seven meetings were devoted to Micro-economics and since then we have been studying Macro-economics. This has provided the perfect backdrop to the economic crisis in Greece, and today, amongst discussion of the Keynes multiplier, deflationary and inflationary gaps, we also talked a little about previous economic crises in Israel and what is happening in Greece.

I fail to understand what the people are demonstrating about. Obviously, they want to retain their standard of living, but they also seem unable to do the work necessary to maintain it. 14 salaries a year? Retirement at 55? Who wouldn't want these things? The only problem is that there is no money to pay for these things, and if the Greeks don't go to work and improve their productivity, then there will be no money whatsoever.

Israel went through a painful period in the mid-80s when there was tremendous inflation (400% in one year). I remember presenting balance sheets, and there wasn't enough room in the pre-printed sheets to write the numbers as they had suddenly grown so large. A package deal was put together between the government, the employers and the workers; everybody had to crack down and suffer in order that things would be better for all of us. Two years later, Israel was well on the road to economic recovery.

The Greeks have to do the same.

I am currently reading a book called "The undercover economist" by Tim Harford. This is a non-academic look at various issues in economics and so can be recommended to anybody who has an interest in the subject but comes out in hives when presented with equations. The book itself is very interesting and well written (although the author seems to be at home equally in London and Washington DC, which is slightly off-putting to me), and I take great pleasure in finding the economic principles which I have been taught.

At first, I though that the book would be devoted to micro-economics - why does a cup of coffee cost as much as it does - but there are a few chapters devoted to macro-economics. I am sure that in the syllabus of the Edinburgh Business School/Heriot Watt University there is no mention of corruption and bribery being factors in a country's economy (the example used is Cameroon), and there is also an excellent analysis of China's economy over the past 60 years.  Whilst this material in no way will supplant the material being taught, it is a useful adjunct which casts matters in a slightly different light, and may even be worth a few marks in the exam - which I was reminded today is only a few weeks away.

Thursday, May 06, 2010

White coat syndrome

I've got ten minutes before I have to leave home in order to catch a train, so I thought I'd devote them to this blog. The last few weeks have been very heavy in terms of travelling - this week I've been out of my office four days out of five. While I am getting some work done during these days - meetings and teaching sessions - I can't get on with what I consider to be my primary work - programming - nor can I clear the administrative overhead.

One of the support issues from the past week reminded me of the White Coat Syndrome. A few months ago, when I was being diagnosed with essential hypertension (high blood pressure), my family doctor explained the phenomenon that people's blood pressure would automatically rise when they saw a white lab coat, or when they entered the doctor's surgery or simply saw the machine for measuring blood pressure. This syndrome is why the pressure is measured  three times, discarding the first reading and averaging the last two.

I have noticed a similar syndrome, which might be called the Support Syndrome. Someone tells me about a screen or report that they are trying to operate and that it doesn't work. If it is someone in my vicinity, then I sit next to them whilst they perform the same operation again, whereas if it is someone calling me on the telephone, then I ask them to perform the operation whilst telling me the exact steps that they take. I do exactly as they tell me.

99% of the time, the second operation succeeds! The people asking for support are always astounded, as if I have some kind of mental aura which charms the computer into doing what it is supposed to do. My theory is that my presence causes the person to concentrate more on what they are doing, and that the previous, failed operation happened because they didn't concentrate and/or didn't read something on the screen. One would be surprised at the number of calls I have received about people not being able to log into the production database - because they didn't notice that another user's name appeared in the login screen.....

Last read: It takes teamwork to tango, by Russ King. Described as a 'business novel', it strikes me that there might be a little too much novel and not enough business in it. The book deserves a second reading, but I'm not too sure that it holds any lessons for me.

Must rush: got a train to catch.

Monday, April 19, 2010

Books and films

My last post left me feeling like Will Freeman, a character in Nick Hornby's novel, "About a boy". As Will doesn't work, he has to find things to do, and so divides his day into half hour units (breakfast - one unit; taking a bath - two units, etc). I was going to quote his calculations from the book, but when I looked there, it turns out that there is no such monologue. Instead there is a calculation about how cool Will is. So where did the time units come from? Obviously from the film, starring Hugh Grant. *

The film adaptation of "About a boy" was fairly accurate until about two thirds of the way through the book. The two diverge when (in the book) Marcus takes a train journey to Cambridge in order to see his father; he is accompanied by Ellie. On the way, things take a wrong turn.... None of this is in the film, probably because it hinges upon Kurt Cobain, and maybe the film producers couldn't get clearance to use the late Cobain in the film - or maybe they reckoned that the film's audience wouldn't know who KC was. So instead, film viewers got Marcus rapping in the corridors along with the school concert.

"The time traveler's wife" has been made into a film, and I was able to watch it today, courtesy of the Internet. Whilst this adaptation is more faithful that "About a boy" in that it doesn't introduce new material (except for the final scene), it leaves much more out. That's hardly unavoidable, as a quick glance at the book shows: the book is written in the first person (although alternates between Claire and Henry) and has very rich prose, whereas the film naturally is third person, and the special tone of the writing is absent.

It's not a bad film by any means, but it wasn't particularly special. Some of the photography was very good, making it a visual treasure, but some parts seemed to be very obviously filmed against a blue screen. As always, it would be interesting to hear the thoughts of someone who had seen the film without having read the book.

* Edit from 13/10/16: I reread "About a boy" yesterday and came across the time units in chapter 12. "Reading the paper, having a bath, tidying the flat" are all activities requiring one unit.

Saturday, April 17, 2010

A typical Saturday

I've noticed over the past few months that I have been planning on a hourly basis how to spend my Saturdays, nominally my day of rest. There always seems to be so much to do and so little time in which to do it that one needs to prepare in advance in order to get the maximum utility (a little economics creeping in there).

Normally, the day consists of two episodes, each two hours in duration, of programming; one two hour session reviewing the material taught in the MBA class the day previously; one two-three hour session of cooking and spending time with my father (today we're having chicken ratatouille, with a slight variation of last time's recipe); one two hour session transferring to dvd a film recorded earlier in the week which I didn't have time to watch. There is also the dog who has to be walked.

Today's schedule was upset by devoting what would normally be the morning programming session to creating a new mix cd for my wife. As usual an eclectic mix, moving from the well known (Jackson Browne, Joni Mitchell, CS&N, The Band) to my folk rock roots (R&L Thompson, Sandy Denny, Nick Drake), interspersed with a few left field contributions (Heron, Colin Blunstone, King Crimson, Robin Frederick, Dar Williams). The response hasn't been too positive yet, but I am hoping that the disk will be played frequently in the car and will become more familiar.

Friday, April 16, 2010

Travelling by train/Outliers/Memories of school

Instead of working in my office this week, 5 km from my home, I've been travelling almost every day to different branches of my company. On Monday I was in Tel Aviv, Tuesday Haifa bay, Wednesday Carmiel and Thursday Tel Aviv again. Some of my fellow workers wondered whether I was healthy, as they haven't seen me for several days.

Every day I travelled by train; I've been getting to recognise many of my fellow travellers. Of course, I don't know their names, but I often assign them nicknames, not necessarily complimentary. I wonder if they notice me and whether they have assigned me a nickname too (that sour looking bloke who's started travelling every day instead of once a week).

The reading material for the past week has been the Hebrew translation of "Outliers" by Malcolm Gladwell. Normally I wouldn't read a book in Hebrew which was originally written in English; I was given the book at Pesach by my occupational psychologist and it was too complicated to arrange to swap the book for the original version. Probably I lost some of the wit and inferences present in the original, but I'm fairly sure that I got the gist of the book. It was a bit repetitive, and some of the material is downright wrong (the Beatles could not have racked up 10,000 playing hours before they became famous), but the pros outweigh the cons. The basic thrust of the book is that no one succeeds on their own; everybody needs a bit of luck and opportunity. Sometimes one has to be born in the correct month of the year.

The book starts with an analysis of junior Canadian ice hockey players; Gladwell points out that one stands a much better chance of being picked for a junior hockey team and then be trained if one is born in the first three months of the year (Jan-Mar). When comparing eight year old children, there is a big physical difference between an eight years and eleven months old child as opposed to an eight years and one month old child. 

I was such a child who theoretically suffered from being born in the wrong month. My birthday is in August, and the British school year started (maybe still does) in September, so I was always one of the youngest children in my class. I certainly don't remember any problems about this whilst in junior school (upto age 11), but then we didn't have competitive sports there. The problem was recognised at my grammar school: during the winter and spring terms, when we played rugby, everyone was classified as under-12 (this was the first year). But when the summer term arrived and we played cricket, suddenly most of the children were in the under-13 age group whereas I was still in the under-12s. There wasn't an under-12s cricket team (as there were so few of us), but I did take part in an swimming competition as an under-12 with few competitors. The following year, we were all under-13s, but when the cricket season arrived, again most children were now under-14s whereas I was still under-13 and played with children in their first year. Thus theoretically I was compensated for having been born in August.

Academically, all of the above was irrelevant. As it happened, 40% of the students skipped a year between what would have been their second and fifth years (ie we took our 0-levels after four years whereas 60% of the students took their 0-levels after five years). As a result, when I was in the 6th form, I was with students who were nearly two years older than me; I remember that in my final year, one of the boys in my class used to drive a car to school, whereas I had barely cleared my sixteenth birthday.

I also left school at sixteen, albeit at sixteen and ten or eleven months. The uncertainty arises because it's not clear exactly when I finished school; during the final term we had A-level exams, which meant that we had no lessons and were at home revising. To complicate matters, my parents moved from Bristol to Cardiff before I finished the exams, so once I had to catch the train from Cardiff to Bristol in order to "sit" an exam (if I remember correctly, it was a practical exam in Chemistry, so no one sat). I know that I came to the 'final assembly', which would have been in July 1973, but again I came on the train and I did not come in school uniform.

Sunday, April 11, 2010

Surprised and pleased

I heard some whispering at college on Friday about exam results but thought that it was too early: the results take two months to arrive and only one month has passed. Over the weekend, I completely forgot about this, but managed to remember this afternoon. I logged into the website that lists results and ...

Punch the sky! Bring out the champagne! Not only did I pass my exam in Organisational Behaviour, but I also achieved the reasonable mark of 66%, much better than I had expected. So I am both surprised and pleased!

Driving lessons

I spent one of the afternoons when I ill with the flu watching a rather quirky British film called "Driving Lessons". I thought the film a bit odd when I had an elevated temperature, and watching it a second time when feeling more normal only confirmed my original suspicions. Maybe the best thing about the film is that includes a Richard Thompson song in the soundtrack ("One door opens") and an obligatory (these days) Nick Drake song (part of "Pink Moon"). 

Thinking about the film later, many questions popped into my mind, mainly about the characters' motivations:
  • How could Ben (Rupert Grint) be so gauche at the age of 17?
  • Why was Laura Linney - an American - cast in such a quintessential British film? How could her character - a vicar's wife - have no qualms about committing adultery with the parish's junior priest? And even worse, how could she do it whilst leaving her son in the car outside, whilst ostensibly giving him an eponymous driving lesson?
  • When was Evie (Julie Walters giving a fantastic performance) lying and when was she telling the truth? Was she really a Dame? Was she really suffering from cancer (presumably not, as she denied that one herself)? How did she manage for money? When she and Ben went camping, Ben had to pay for the campsite. The next minute, they have driven from somewhere (presumably near London) to Edinburgh, showing no signs of tiredness. Who paid for the petrol on the way? If presumably they had money, so why did Evie pawn a ring in order to give Ben money "to buy a clean shirt". How did she pay the hotel bill for her drinks and Ben's room?
  • What was Bryony's motivation in seducing Ben? Did she sleep with every boy that she met? The entire Bryony episode seems in retrospect designed solely to give Ben a reason not to accompany Evie to the poetry reading.
  • How could Sarah be so stupid to say what she did to Ben at the end of the film? Every son wants to hear about his mother's infidelity...... I thought that maybe she would empathise with him, but she appeared to be still under his mother's spell.
I find my reaction to this film interesting because I was able to find so many things unexplicable within the film, and yet I enjoyed it. I later watched a film called 'Smother' (with Diane Keaton) which coincidentally has a similar theme, about a son trying to build his own life apart from a domineering mother. No doubt this film had a budget much bigger than that of 'Driving lessons', and in my opinion it was much worse, by about the same factor. But why? Because it's an American film? Because it got on my nerves? 

British films tend to be much more realistic, featuring people who could easily have lived next door to me when I lived in Britain (at this moment, I will note that Dr David Owen, at the time Britain's Foreign Secretary, lived about three houses away from me when I lived in London). American films tend to populate some kind of fantasy world, and one could never imagine Diane Keaton living next door (as much I would like to) or even her son, Noah.

Saturday, April 10, 2010

Speaking the statements

My last blog, from a few days ago, hinted that the next entry (ie this one) would be about programming. Shortly after writing those lines, I went to bed and woke up the next morning feeling extremely weird. It turns out that I had a temperature of 38.5 degrees, which is why my head felt like it was full of cotton wool. Fortunately, it was only a mild case of flu, but it had the effect of taking me out of the loop for a few days. Wonderdog was giving me strange looks all this time, implying that I could take her for a ramble in the fields instead of lying around and doing nothing, but I think I'm back on the case now.

As I have written before, my occupational psychologist's flagship exam consists of 400 statements: each person has to mark whether they agree or not with the statements (eg "I usually feel nervous and ill at ease at a formal dance or party", "I have at one time or another in my life tried my hand at writing poetry"). The theory behind the exam is that each statement belongs to one or more scales, and dis/agreeing with a statement either increases or decreases one's affiliation to that scale. From these scales are built one aspect of a person's psychological profile.

Completing this exam takes about 40 minutes, making it harder than one might expect. The two statements which I quoted above make it fairly easy to decide whether to agree or not, but some are more complicated, generally revolving around moral issues. Some tend to be ambiguous, so it's difficult to decide if one agrees or not. Anyway, the psychologist suggested that people with learning disabilities might have difficulty in reading and understanding the statements, let alone answering them. Thus was born the idea of the exam speaking the statements.

Well, of course, the exam itself, being a computer program, can't talk (although 20 years ago I spent much time with a blind person, a speech synthesizer and text-to-speech software which was years ahead of its time). So in January I recorded over two evenings a well spoken lady reading each of the 400 statements. Since then, I have been editing those recordings into a series of 400 wave files, each file containing one statement being spoken. This is a very tedious process, which is why it took me so long to do. During the Passover holiday, I decided that I would edit one big file (5 minutes, about 35 statements) a day; I actually managed to keep to this schedule and finished creating all the files.

Then came the fun of getting these files into a Delphi program. This is actually a lot easier than it sounds. First, I needed to declare a resource file listing all of the wave files and their statement numbers. This is a text file (rc) which looks like this:
q1 WAVE q1.wav
q10 WAVE q10.wav
q101 WAVE q101.wav
q102 WAVE q102.wav
q103 WAVE q103.wav
q104 WAVE q104.wav
q105 WAVE q105.wav
There are 403 similar lines. This text file is then passed to the resource compiler, which produces a compiled resource file (res). As there are many resources used and they're all large, this file is about 40 megabytes in size (whilst today this may be considered small, I recall that the first hard drive I ever bought for my XT-compatible computer in the late 80s had a 20MB capacity!). Linking this file into the Delphi executable is trivial; accessing each wave file within the resource is also fairly simple, with the use of the following procedure:

Procedure TMivhan.PlaySound (n: integer);
var
 hFind, hRes: THandle;
 song: pchar;
 question: string[6];

begin
 question:= 'q' + inttostr (n) + #0;
 hFind:= FindResource (HInstance, @question[1], 'Wave');
 if hFind <> 0 then
  begin
   hRes:= LoadResource (hInstance, hFind);
   if hRes <> 0 then
    begin
     song:= LockResource (hRes);
     if assigned (song)
      then SndPlaySound (song, sndflags);
     unlockResource (hres)
    end;
   FreeResource (hFind)
  end
end;
The procedure is called with a statement number (eg 1). The first line in the procedure creates a string variable, prefixing the statement number with 'q', so that the string will match the name of the wave file in the resource file (that's the "q1" in the line "q1 WAVE q1.wav"). The trailing zero in the string is because the string has to be passed to an internal Windows function (FindResource), and this needs a zero terminated string.  "@question[1]" is a zero terminated string which is also lacking the length byte at the beginning of the Delphi string - this is a time honoured method of converting Delphi strings to C strings, as needed by Windows. The rest of the procedure deals with extracting the required resource from the executable file and 'playing' it. This is very much black box code and needn't be explained (and in case one asks, I took this code from an excellent article on the subject.

A note about the parameters passed to the Windows procedure SndPlaySound: the first parameter is a pointer to the wave file, and the second parameter controls how the sound should be played. Earlier in the program, the global variable 'sndflags' was set to the value 'snd_Async or snd_Memory': play the sound asynchronously from memory. This is generally the way that one wants the sounds to be played, so why did I use a variable instead of using the constant values each time, as the article does?

The answer has nothing to do with my procedure and everything to do with the program. At the beginning, the instructions how to use the program are read out, via this procedure. I discovered that sounding these instructions asynchronously and then sounding the first statement displayed asynchronously caused the instructions not to be 'sounded' at all. Should the procedure be called whilst a wave file is being played asynchronously, the second wave file will cause the termination of the first wave file. I thus caused the instructions to be 'sounded' synchronously - the user can't do anything with the program during this time - and only afterwards are the statements 'sounded' asynchronously. Instead of putting a conditional statement in the PlaySound procedure to define the flags, I used a global variable which is set to 'snd_Sync or snd_Memory' before reading the instructions, and then permanently to 'snd_Async or snd_Memory'.

Monday, April 05, 2010

Holiday

I've been on holiday for the past week, spending all the time at home. Maybe it looks like I've been doing nothing, but actually I've made good use of my time. I've been reading (and completing) a book a day, I've been doing some good programming (more about that next time) and I've been cooking every day, trying out some new recipes.

Here's a recipe for what has been termed "Chicken ratatouille" (if you want to impress your friends, note that 'ratatouille' contains all five vowels, although not in the correct order. 'Facetious' is a shorter word which contains all five vowels in the correct order). This is a very simple dish to make, especially for those who feel challenged in the kitchen. One dices vegetables, such as onions, red and yellow peppers, courgettes, sweet potato and potato, and spreads the mixed, diced vegetables into an glass oven dish. I put greaseproof paper into the dish first and poured the vegetables onto this, but I doubt that this is essential. One then drizzles olive oil onto the vegetables. On top of the vegetables one puts slices of chicken breast (the bigger the better) and these are also drizzled with olive oil. Into the oven for about 45 minutes at 180 degrees Centigrade. I probably turned over the chicken breasts after about half an hour and maybe even stirred the vegetables a little. 

That's all! The family were very pleased with the dish, although they thought that they were eating fish at first (that's before tasting)! The chicken breasts shriveled somewhat whilst cooking, which is why they should be fairly large prior to cooking. 

Monday, March 29, 2010

Pesach over the years

As tonight is the first night of the Pesach (passover) holiday, I thought that I would try and recall some memories of the festival over the years.
 Don't remember much about my baby days
But I've been told
We used to live on Willow in the Garden district,
down by the Sugar Bowl
(Randy Newman, "New Orleans wins the war". As Newman points out, Willow is not in the Garden district; this was a family joke).
 
I don't remember much about the Pesach service ("Seder") and the following week in the years when I was a child, except for the fact that I loved the special biscuits that my mother would make. I suppose that for me as a child, Pesach was the taste of matza along with coconut and chocolate cakes.

The first distinctive Pesach that I can remember was when I was nearly 13, in 1969. That year in school, we had been given French penfriends (those were the days when people wrote letters) which greatly improved our fumbling French. The letters were half in French and half in English, for of course, our correspondents weren't interested in learning their mother tongue but instead wanted to improve their English. My school was an all boys school, as most of the direct grant schools were at the time, so we were all mildly excited to learn that our penfriends were from a normal, mixed school. I was one of the lucky ones who received a girl penfriend. Not only that: she was also Jewish, which was a remarkable coincidence. Of course, I don't remember now, but I'm fairly sure that there were more Jewish pupils at her school than there were at mine (myself and one other boy with whom I didn't get along with much, despite his being my age).

That same year, along with some of my schoolmates, I took part in an exchange scheme with French schoolchildren; we went to France for three weeks during the Easter holidays and they came to stay with us for three weeks in the summer. As usual, Pesach fell during the holidays, meaning that I would be in France for the Seder. As a good Jewish boy there was no way that I was going to stay with this French family, who went snail hunting every Saturday and church praying every Sunday. So it was arranged that I would stay with my French penfriend for the first few days of Pesach, and of course celebrate the Seder with them.

I am ashamed to say that I remember nothing of the Seder itself, although this is not too surprising, as basically it's the same every year, all over the world. We are commanded to tell our children the story of the Exodus from Egypt, and how every Jew should see himself as one of those who left Egypt. The liturgy is almost part of our DNA and most of us know significant portions by heart, having heard it so often. What I do remember is that I found this family much more congenial than the family of my exchange scheme, and was very unhappy to leave. I have a memory of hiding from everyone, trying to delay the inevitable and so disappointed at having to return. This incident coloured the rest of my stay in France and inevitably cast its shadow when the exchangee came to stay in the summer. I also lost contact with that nice Jewish girl Natalie (see: after over 40 years, I still remember her name, whereas I can't remember his).

Outside of Israel, the Seder is celebrated on two consecutive nights whereas in Israel it is celebrated only once. In my youth, we had the first seder at home and celebrated the second as a communal seder with most of the Jewish community in Cardiff or Bristol. Fast forward a few years, and I receive an invitation from the Habonim group in Birmingham to celebrate a seder with them. Our youth movement had a tradition (of which I was unaware at the time) of holding a third seder, in which they would read from a haggada (the Pesah liturgy) which they had compiled themselves. Like the official haggada, the first part occupied itself with the struggle of Jews: against Pharoah or against Hitler or Stalin, whereas the second part was more fun and contained songs and jokes. I must have travelled on the train from Bristol to Birmingham to get there and returned the same evening. I enjoyed myself very much and repeated the experience the following year (this must have been 1972/3).

Again I don't remember the Seder of 1974, when I was in Israel for a year, but it must have been very significant for me because the Seder became very important; as far as I was concerned, it was the most important of all the festivals.

In 1975, I was in London, and celebrated the first seder with relatives. Presumably some family invited me to their second seder, and we, as Habonim, celebrated the third seder together. That was the year that British Habonim hosted a European Seminar, in which youth from all over Europe (I remember French and Dutch groups, there may have been more) came together for a week. The first few days of the Seminar coincided with the last few days of Pesach, so we had to order kosher food and make sure that all the cooking utensils where "kosher for Pesach". I remember washing most of those cooking utensils.... The food was ordered from an Israeli supplier, but they gave us containers of food along with stickers saying "kosher for Pesach" - after the seminar, we stuck leftover labels on anything we could find, such as the bread basket.

That seminar was held in a college situated in Hatfield; as I had become enamoured of the music of Hatfield and the North a few months earlier, this location was quite special for me. It should be noted that the group actually had nothing to do with Hatfield itself; the joke was that as so many roadsigns from London were labelled "Hatfield and the North", they were getting free publicity. As I say, a joke.

Normally, Pesach coincided with the Easter holidays [this is because the Last Supper was actually the Seder night], so I was normally at home during the festival, and my eating habits were not subject to public scrutiny. This didn't happen in 1976, and I remember eating my matza sandwiches under the questioning eyes of my fellow students. 1976 was also the year when I managed to go to five different Seders: the first two were traditional, and the other three were third sedarim organised by different Habonim groups in London.

During the years 1978-1989, I lived on Kibbutz Mishmar David, and almost every year celebrated the Seder there. Most years I would be one of the musicians (and some years, the only musician) who would accompany the songs throughout the service, so my memories tend to revolve around the music and not the atmosphere. In 1989, we had decided to leave Mishmar David, and the final six months there were very sad. We (my wife and baby daughter) spent the Seder night with my parents who were then living in Rehovot. It was a very quiet and sad Seder, with my wife and I sharing reading the Haggada and singing the songs.

In 1990, we celebrated Pesach for the first time in our new kibbutz, Tzora. The kibbutz held the seder (with maybe 1000 participants) in a huge tent, and I was one of the few musicians who played. Everything about Pesach is tradition, and Tzora had its own traditions about Pesach, mainly regarding the songs, some of which were sung to different tunes than to those that I knew. Each song is sung every year by the same person, which is ok if you're one of those people, and not so ok if you're not. There have been years when I have accompanied all the songs (sometimes the sole musician), but in the past few years I have been relegated to playing only one song, a lovely little number with very strong harmonies and chord changes on almost every beat (most of the other songs are harmonically simple, although some are a bit weird).

I wrote earlier that Pesach had become for me the most important festival of the Jewish calendar. That changed in 2002. My mother had been taken into hospital a few days before Pesach that year; the doctors seemed optimistic about her prognosis, but I wasn't. I visited her on the day before Pesach (the equivalent to today) and spent several hours with her. She was unable to speak (for reasons which were never established), and we communicated by me talking and she writing notes. I still have those notes though have only rarely looked at them since. My father and I came home at about three or four in the afternoon, and I remember sitting down at the computer in order to write a eulogy. I wanted to do it while I was in a balanced mental state and not when I was grieving. We went to the Seder in the evening; I played the one song which I play every year, and tried to keep a happy face even though I was churning inside. When we came home at night, I phoned the hospital to check on my mother's progress. They said that she was sleeping peacefully.

The next morning, my father and I went again to the hospital; there wasn't much traffic on the roads and we probably arrived at around 9 am. We went to my mother's room; she was sleeping and we could hear her breathe. We sat, waiting for her to wake up (I was reading David Lodge's "Paradise News"). Her breathing got slower and slower until there was no breathing. My father looked at me, and I went to summon a doctor who ushered us out of the room while she examined my mother. After a few minutes she called us back in and said that she was sorry, but that my mother was dead.

[two paragraphs excised, not because I wrote about this before but because it's too painful]
Anyway, since then, Pesach has been happiness mingled with sadness. In a few hours, we will go to my mother's grave and say kaddish (the mourning prayer). Then we will change our clothes and go to the tent in order to remember how our ancestors left Egypt. I will play my song. We will come home and eat matza for a week.

Sunday, March 14, 2010

Toyota

Last night there was an item on the news about Toyota. The item was about two seemingly opposite subjects: on the one hand, the state prosecutor for California was issuing a class action against the Japanese car manufacturer because of the gas pedal problems, whereas on the other hand, the company's profits are soaring.

My first reaction was: we have a Toyota car, but my wife took it to the dealer to be checked a few weeks ago, so we should be all right. My second reaction was: Toyota recently closed down their joint venture with General Motors in America; the name of the factory was NUMMI which stands for something that I can't remember. My third thought was that oh my God, we were told time and time again in Organisational Behaviour that NUMMI was thought to be the standard bearer for self directed teams … and there was a question in the exam about SDTs. I should have mentioned NUMMI! How forgetful of me!

Wednesday, March 10, 2010

An end to OB?

A huge sigh of relief came from about 100 throats today in Tel Aviv (and probably hundreds more around the world) when the March 2010 Organisational Behaviour exam came to an end.

I have written this before, but I'll write it again: this course required its students to remember a prodigious amount of material. Almost everyone in the class was complaining about the amount and most people were almost frantic in their revision. 

For the past few days, I have been alternately reading the course book and practicing multiple choice questions. When walking the dog, I would recite all the material that I had learnt, checking to see that I could remember it and noting where there were areas which I wasn't too clear about. Of course, I could only recite what I knew, not what I did not know, and of course what I didn't know is what I needed to learn.

Our practice sessions indicated that modules 4, 8 and 9 in the course book were the most likely to appear in the exam, so of course I devoted extra effort to these - while trying not to neglect the other modules.

The exam was held in the Tel Aviv exhibition grounds, although in a different building to the one where the previous exam was held. The hall was poorly lit and the toilets were in a separate building, maybe 50 yards away. The rules said that only one person could go to the toilet at a time, and then that person was accompanied by one of the supervising staff in order to ensure that no cheating occurred. As I have started taking medicine for my high blood pressure which is also a diuretic, I was concerned in advance that I would need the toilet frequently, so I spoke to the supervisor and received permission to use the toilet as often as necessary. Fortunately I only needed to use them twice during the 3 hour exam.

While we were waiting for the exam to start, I was chatting with the people near me; we were joking about stress (module 2) and how it was affecting us. One of the people said that the model of stress that we were taught was proposed by Cooper, and I said that I could never remember all of the names; hopefully it's not that important.

The exam itself consisted of two parts: 30 multiple choice questions and 3 essays. All the multiple choice questions together carry the same mark as one essay (60 marks), so the total number of marks available is 240, and one needs 120 to pass. Theoretically one should devote 45 minutes to each section; as it's easier to get the first marks in a question than the last marks, good tactics dictate that one leave each question when its time is up. Our lecturer advised us to leave the multiple choice questions to the end, but I decided to start with them in order to warm up.

As I have been revising the multiple choice questions quite heavily, I was pleased to recognise many of the questions. To my surprise, I finished this section in less than 20 minutes, meaning that I had more time for the essays.

The first essay was about turning an organisation into a "responsive organisation". This is a subject which is covered in module 8 so I was prepared. I wrote a little about what differentiates the responsive organisation from a regular one (fortunately this cropped up in the class's final meeting last week), then wrote about organisational design (also module 8) and finally about planned change (module 9). I think that I answered this question well.

The second question, to my surprise, was about stress, and in fact was almost a complete copy of a question that had appeared in an exam a few years ago. So I was prepared to display Cooper's theory of stress (thank you neighbour for reminding me of his name; maybe I'll get an extra mark for this) without difficulty. I rambled on about personal characteristics, extending the material on locus of control to write about Martin Seligman and learned helplessness. I wrote about cortisol, adrenaline and the amygdalae, and basically brought in much extra curricular material which I hope will garner extra marks. I wrote about the different causes of stress and about the different outcomes, and in the end even answered the question about how I would handle the stress of one of my subordinates. I threw in loans, day care centres and counseling, and believe that I answered this question well also.

The third question, however, was about a subject in which I was not well versed: self directed teams. I know a little about this but not very much. I thought for at least five minutes what I could write as an answer and started with the definition of a self-managed team. After that, I wrote down anything that I could think of about teams (how they should be rewarded, goal setting, cost saving, profit sharing, groupthink) and even mentioned that as the managerial load is lower for those responsible for the teams, their span of control should enlarge, meaning that managerial costs will decrease. It should be obvious to the marker that I don't know very much about self managed teams, but as one is not penalised for writing irrelevant material, I hope that my "kitchen sink" approach will work and that some of what I wrote will get marks.

I am hoping that I got 40 out of 60 marks in the multiple choice questions, and similarly 40 out of 60 for the first two essays. As I need 120 marks to pass, I think that I achieved my goal and passed the exam, however few marks I get for the third essay. Unfortunately (as I have written before), I'll only get the results in two months time, in which time I will probably have forgotten most of the material (or maybe not).

The one subject which we had been advised to learn well - Management By Objective (MBO) - didn't come up at all! I mentioned it obliquely in the third question but didn't go into detail as MBO is meant for individuals and not for teams. I had also learnt assiduously Vroom's theory of expectancy, writing it out on the kitchen table at 6:30 this morning, and that too did not appear anywhere.

Monday, March 01, 2010

More MBA

I started a new course for my MBA degree a few weeks ago, economics. I took a course in micro-economics 25 years ago with the Open University, but I'm not getting any credit for it. In fact, I barely remember anything from that OU course, not that it matters. The Heriot Watt courses start from the beginning and assume no prior knowledge of the subject, which sometimes can be a bit unsettling, as they insist that their's is the only true gospel.

Anyway, I am very much enjoying the course so far, which makes me remember one of the primary reasons for spending a lot of money and giving up my free time for three years: intellectual challenge. On Friday, we had a nice exercise about a man who owns a boat designed for catching ocean salmon, how each fisherman contributes a different amount of fish (what is technically known as the marginal amount or contribution), how there is an optimal number of fisherman, how things change when the cost of the fisherman is taken into account, and finally how to calculate how many kilograms of fish should be caught (or how many fishermen to employ) when the price of selling fish is such and such. It seemed that the lecturer was going slow and not explaining things too well, so when he asked that ultimate question, I jumped in with the answer: stop when the marginal cost is equal to the selling price. The lecturer then asked for my name (we are all anonymous in the classes) and used it several more times in the ten minutes before the end of the lecture.

If I were still a schoolboy, I would be alternately pleased and annoyed at this: pleased, because the lecturer now knew who I was (although I should admit that we had a conversation during the break of the previous week's lecture) and annoyed, because the other students will see me as a teacher's pet. But we are not competing against each other, and the lecturers exist only to explain the written texts which we all receive at the beginning of the semester. Even so, I hope that he doesn't continue with this practice.

The text itself is very well written and is enjoyable to read (as opposed to the text on Organisational Behaviour, for example), although this may be my bias stepping in. I barely looked at the text for Accountancy, because the lecturer seemed intent on plowing his own path – and I knew most of the material anyway.

At the moment, I am trying to restrict myself to devoting the minimum amount of time possible to the Economics course: five hours on a Friday morning (three hours lecture and two hours travelling) along with another hour or two maximum reading the text. I have to devote my time to OB. I had more dreams about OB last night, which I take as a good sign as it means that the material is settling into my head. There are more parts of the text which are getting absorbed, which is just as well as the exam is only a week away. Tonight we have a revision meeting with the lecturer, who is also the marker. It will be interesting to hear what he has to say. I don't remember whether I wrote that the author of the OB text visited us and gave three lectures about the course and how to pass the exam; it's a shame that he came at the end of January and not at the beginning of March, as I feel that we would have appreciated his visit much more had it been now instead of then.

I am not expecting miracles in the OB exam; I will try my hardest and be pleased if I pass. Unfortunately, we won't get the results for two months after the exam, by which time I expect to have forgotten all I ever learnt and to be in the middle of revising for the Economics exam. Should I try to take the exam again in the same week as the Economics exam? It may be too late to register (one can sit the exam without having to retake the course). The most annoying aspect is that one can only sit a maximum of two exams in any core subject (of which OB is one); if one fails the exam twice, then one is out of the MBA programme.