Sunday, July 17, 2011

Independent nonsense: banks should be lending to house buyers

So, house prices are way down but the silly banks aren't lending. As usual the Independent leaves out half the story.

The monthly cost of a mortgage (and so the ability to repay it) is determined by the price times the interest rate. Interest rates for Irish borrowers are about twice what they were.

Our interest rates used to be a little above the ECB but now they're massively above it. There's a double reason for this. Irish banks have to pay lots more for their credit now, they can't get it at ECB rates anymore. So they have to charge people what the bank is paying plus a margin for profit.

Secondly, the banks sold a load of tracker mortgages which means that for all those customers, not only are they not getting to add a profit margin, they are actually charging those customers less than what it costs the bank. The result is that they have to add an even bigger profit margin on their non-tracker loans. Yes, if you don't have a tracker not only are you not as well off as those who got a tracker, you are actually being charged extra because of them!

The only mention of "interest" in that whole article is for the buyers who are "interested" in the properties.

So should the banks be lending? I had no idea before I read that article I have no better idea afterwards.

Wednesday, June 08, 2011

Independent nonsense: balance of payments

Am I missing something or is this article contradicting itself in the space of a single paragraph?

Our export-led growth has given us a positive balance of payments position on current account. Depressed consumer demand has helped keep our spending down on imports. So we don't owe as much as we might. The real problem impeding a fuller economic recovery is that consumer confidence and domestic demand have not bounced back. The positive balance of payments will be short-lived if domestic demand does not improve.

So on the one hand depressed consumer demand has kept our imports low and so our balance of payments is positive. Yet somehow, our balance of payments will become negative unless consumer demand increases.

While I agree with some of what he says, the whole article has the feel of a random collection of assertions and opinions about the crisis cogged from others.

Monday, May 23, 2011

Adventures in Dublin

I got to see Hanna this evening which was good fun. Just before it started, Midori phoned to say she couldn't get to the house because the road was taped off by the police (actually not our road but the one we usually come in by) and Midori has photos of an army truck with "Explosive Ordinance Disposal" on the side. Presumably a pipe bomb (or suspected pipe bomb). Robots were involved. I passed a similarly taped road on the way home a few days back. Meanwhile town is all taped off for that other bomber, Obama and I had to cycle the long way to get home.

When I came out of the cinema, some scumbag was rattling my bike. I shouted and I was told to "fuck off" and his girlfriend explained they were "only looking". So it seems it was all just an innocent misunderstanding or something.

Half-way home, crossing Sally's bridge over the canal, a guy exited a taxi, drunkenly stumbled backwards down the bridge, grabbed a railing, spun round and fell on his arse into the grass. I stopped and went over, he was lying with eyes closed, seemingly at peace, listening to his ipod. I didn't think the top of the canal embankment was the best place for him (an unstable equilibrium) so I offered him a hand up. He seemed a bit embarrassed but happy for the help. He told me I was "very sweet". Yes... well... indeed. He made his way a bit more steadily (sobered up by embarrassment I think) over the bridge to his house.

And speaking of the Queen, Sean decided to stage a dirty protest during her visit. He's been very independent toiletwise for a few months now but this time something went horribly wrong. I'm talking #1 and #2, wall, floor (multiple places), trousers (inside and out), socks, toilet seat, bath mat and his plastic step. I am absolutely at a loss as to what actually happened. It must have been a bit like JFK's magic bullet. I should really have outlined everything in chalk and taken photos.

Finally, Riona's on a roll. After watching Madagascar 2 yesterday, she later said that certain parts of her mothers anatomy were "heavy... they look like a hippo's bum". This morning while sword fighting with Sean, she told him, "I'm going to kick your nuts off!". Sean thought it was hilarious, I couldn't help but laugh, so now this phrase is the best thing ever. Apparently she heard it on TV (seems unlikely, given what she gets to see but who knows).

Over all, this week has been above average colourful.

Monday, May 02, 2011

Forget π (pi), τ (tau) is where it's at

Below is Vi Hart's video explaining why τ (= 2π) is the more natural "circle constant". Everything just works out more neatly with τ and thinking about a full turn rather than a half turn just makes sense. And yes,

eiτ = 1
is how it should be. The Tau Manifesto has more details but suffice to say, while Mar 14th never did much for me, on Jun 28th I might just make an effort this year.

No this is not entirely a waste of time, using τ with beginners would actually eliminate quite a bit of confusion.

Monday, February 21, 2011

Bit of a maths puzzle.


Ugh! This comes out nicely on my blog but looks like crap in Google reader, presumably because the javascript can't run.
Define a function:
\[ f(x) = \frac{2x}{1 - x^2} \] In case that maths layout thing isn't working, that's f(x) = 2x/(1-x^2)
Now, \[ f(0) = 0 \] so that repeats. Also \[ f(\sqrt 3) = -\sqrt 3 \] and \[ f(\sqrt -3) = \sqrt 3 \] so that repeats too.
The question is, what values repeat if you keep applying f to the result? I thought I knew the answer but now I think maybe it's more tricky.

Sunday, February 20, 2011

The medical miracle of checklists.

From this New Yorker article

Michigan’s infection rates fell so low that its average I.C.U. outperformed ninety per cent of I.C.U.s nationwide. In the Keystone Initiative’s first eighteen months, the hospitals saved an estimated hundred and seventy-five million dollars in costs and more than fifteen hundred lives. The successes have been sustained for almost four years—all because of a stupid little checklist.
Pronovost and his colleagues monitored what happened for a year afterward. The results were so dramatic that they weren’t sure whether to believe them: the ten-day line-infection rate went from eleven per cent to zero. So they followed patients for fifteen more months. Only two line infections occurred during the entire period. They calculated that, in this one hospital, the checklist had prevented forty-three infections and eight deaths, and saved two million dollars in costs.

I work as part of a team that helps keep several giant websites up and running. An error by any of us can result in millions of users seeing error pages. That's not to say that every error is that dangerous, there are plenty of backups, fail-safes and checks but there are still opportunities for massive accidental destruction. Checklists and documentation are essential for us, although we prefer to produce software that removes the need for manual following of steps where possible. We aim to leave humans dealing with the big picture. We also want to free up our brains to make the best decisions we can during a crisis. When the site is melting, the last thing we want to be doing is to try to follow a procedure we haven't thought about for six months. With more to think about, we are more likely to make poor decisions and more likely to get the procedure wrong.

Most medical care is a long way from being automatable and in lots of cases human judgement is critical but it seems also that lots of common procedures are well understood and have well known procedures for minimsing risk. Errors in these are more far more common than you'd hope and can result in pain, disability and even death. For those interested in the bottom line (which is everyone in Ireland these days), all of the above lead to increased expense, usually for the tax payer. In the case of a 5 step procedure for inserting a sterile line the article says that "In more than a third of patients, they skipped at least one [step]." and when they introduced mandatory checklists the infection rate went from 11% to 0%, saving lives, huge amounts of money and freeing up staff and beds to look after new patients. Before the checklist, these staff would instead have been treating those who became even sicker because of an infection.

It's also important to note that when freed from thinking about the minor procedures, staff can apply better judgement about the big picture. They can also attempt more complex procedures knowing that all their effort won't be wasted just because 1 of the 10 sub-procedures is going to be fluffed and end up doing more harm than good. When you discuss a procedure with a doctor they explain it all and tell you the odds of success, failure, injury and death and you give informed consent or decide that it's not worth the risk. Those odds are based on previous cases and they are not just the odds that the specific cut or splice that the surgeon wants to make will work. They include complications that arose from all the other procedures involved, anaesthetics, blood transfusions, keeping you sterile, not leaving equipment inside you, stitching you back together etc. If you could guarantee that all of those other procedures would go perfectly, that could change the overall odds quite a bit. Enough that procedures that were previously high risk, high reward would now be much lower risk and well worth opting for.

Every now and then, someone in work quips, "it's only a website" but really we take it very seriously and do everything we can to improve the outcome, learn from previous mistakes and remove any element of chance. Most people would be horrified to hear a doctor say "it's only a patient". With checklists we have a simple technique that is uncontroversial in my line of work, that has a big impact on success or failure and that has now been proven to have the same impact in medicine. I'm horrified to find out that it has been adopted widely and that its introduction can meet significant resistance.

I guess I shouldn't be too surprised though, anaesthesiology has had a lot of engineering know-how applied to it as well as standardised user interfaces on their machinery with huge improvement in outcomes but that was also met with great resistance (I don't have a link for that, I read about it in a book once, so it must be true.)

The original article is from 2007, here's another from 2010 on the spread of this checklist since then. Here's another report on a similar checklist for general surgery.

I would love to know if checklists are being adopted in Ireland. It seems like a no-brainer. I will ask the next medical professional I meet.

Thursday, January 27, 2011

"fixing" a hard disk with hdrecover

Mostly so I don't forget. I fixed Midori's windows laptop a while back. After finding 0 viruses and others nasties, I couldn't explain why it was so jumpy and crappy. During the virus scan I'd noticed some disk errors and after fruitless messing with SMART I ran into hdrecovers which reads every sector of the disk and tries to provoke the disk into declaring a bad sector as irreparable. The disk then marks it as such and replaces it with one from its stash of spare sectors.

Surprisingly, after "fixing" about 10 sectors, video stopping stopping and audio stopped being randomly distorted. For whatever reason, these sectors were upsetting windows but they clearly weren't actually important because when they are fixed, their data is lost forever.

I'm about to give it a spin over another disk that had been causing problems.

Thursday, January 06, 2011

Disney more evil than I thought!

http://xkcd.com/843/ brought me to this page where I find in the section on how lemmings wrongfully got a reputation for suicide (last sentence is the punch-line):

"The misconception is due largely to the Disney film White Wilderness, which shot many of the migration scenes (also staged by using multiple shots of different groups of lemmings) on a large, snow-covered turntable in a studio. Photographers later pushed the lemmings off a cliff."

I guess somewhere in the credits was "fewer than 1000 animals were harmed in the making of this film".

in reference to:

"The misconception is due largely to the Disney film White Wilderness, which shot many of the migration scenes (also staged by using multiple shots of different groups of lemmings) on a large, snow-covered turntable in a studio. Photographers later pushed the lemmings off a cliff."
- http://en.wikipedia.org/wiki/List_of_common_misconceptions# (view on Google Sidewiki)

Sunday, October 03, 2010

Testing out MathJax

Just seeing if I can get this MathJax maths display thing to work

\[ \frac{-b\pm\sqrt{b^2-4ac}}{2a} \]

Cool, works for me. Now I just need to find a good place to install it, rather than spongeing off someone else's installation.

Monday, September 20, 2010

Independent nonsense: It's not an anomaly, it's the law!

Summary: developers who rent an apartment won't get the 0% stamp duty when they go on to sell it. Well duh! It's not a newly built apartment if someone has been living in it.

A perfect case of wanting to eat their cake and still have it.

"The anomaly stems from the fact the stamp duty exemption for new homes is legally only triggered if they're sold immediately after erection, and not if they're sold for the first time."

It's not an anomaly, it's exactly what was intended.

At the end of the article we have

"Many homeowners who will have to move on from properties they can no longer afford have been comforted by the fact that there is a significant build-up of new homes on the market, meaning stamp duty can most likely be avoided.

"That comfort will vanish if the unsold stock is rented first and loses its stamp duty exemption."

What comfort? The price will be exactly the same, the only difference will be that instead of all of it going to the developer, some of it will go to the govt.

If there are 2 apts side by side, one that was rented and one that wasn't, the developer is going to set the prices so that with stamp duty included, both apts cost the same to the buyer (in fact he's probably going to charge a premium for the new one because it's new and shiny).

in reference to:

"The anomaly stems from the fact the stamp duty exemption for new homes is legally only triggered if they're sold immediately after erection, and not if they're sold for the first time."
- http://www.independent.ie/business/irish/developers-renting-new-homes-lose-exemption-2344405.html (view on Google Sidewiki)

Knock knock...

Who's there?

Santa... elbow.

Santa elbow who?

Santa elbow... face. HA HA HA HA HA

This is what happens, over and over, when your 4-year-old discovers knock-knock jokes. I'm not sure at what age they actually start to understand them but right now, they are the most hilarious thing in the world and 20 minutes of non-stop, similarly point-missing jokes is apparently a great way to pass the time. Funnily enough, he first one was "Justin", I was expecting "Justin Time" but no, it was "Justin... emm, emm... Leg. HA HA HA HA HA" and it went downhill from there.

Sunday, August 29, 2010

Willie O'Dea's bullshit.

Why does he get any space in the paper to make himself look good?

Fianna Fail have been running this country for over 10 years. So if bankers aren't banged to rights by now there is clearly only one group to blame. Whether it's because the laws are not there or because the willpower is not there, it all comes back to FF and Willie O'Dea was a minister in that government. Screw you Willie, it's entirely your fault!

At the same time, I'm sick of hearing how Bernie Madoff is already locked up in the USA and nothing has happened here. Bernie Madoff was a slam-dunk, he took other people's money and spent it on boats, holidays and solid gold crappers.

Seanie Fitz and friends encouraged other to engage in baroque financial schemes, apparently with the blessing of the financial regulator, working around laws that obviously aren't strict and clear enough. Again, the fault of the FF government who thought the regulator was a great fella and who did nothing to clear up these laws.

So while Sean Fitz should be banged up, the comparison with Bernie Madoff is just lazy, populist crap and continuing to make it just lowers the quality of argument on the topic.

in reference to: http://www.independent.ie/national-news/odea-its-taking-too-damn-long-to-bring-the-bankers-to-justice-2316097.html (view on Google Sidewiki)

Thursday, August 26, 2010

Random Turkey Burgers

I'm minding the kids for a few days. So not only am I cooking, I have to cook things they will eat too. I bought some turkey mince with the intention to cook turkey burgers. Looking around the net for recipes, I found that about the most important thing about turkey burgers is all the other stuff you put in since turkey itself has very little flavour. So here's what I put in my turkey burgers today. They were tasty enough and the kids ate all of theirs which is fairly remarkable. I picked a few things that I figured would give them some flavour - salami, olives, garlic, white pudding and some random other stuff. I just squished it all up together in a bowl with my hands, shaped it into burgers and then grilled them. The amounts below are what I used today and in no way represent an ideal amount. It would almost certainly be better with more of some and less of another but I have no idea which.

  • 450g turkey mince.
  • Half a onion, chopped.
  • 1 slice of brown bread, turned into crumbs.
  • 1 egg white, beaten a little.
  • 2 slices (12g?) of Aldi Salami Di Milano, ripped into small bits.
  • 1 clove of garlic, chopped.
  • Half an inch of white pudding (20g?).
  • 8 olives in brine, chopped.
  • Various herbs and stuff, I think it was celery salt, cumin, basil, thyme, salt, black pepper, Lidl Puszsta spice mix.
  • Cheddar cheese, grated - I didn't use it but I saw it suggested and I'm putting it here to remind me.

I used half of that to get burgers for 1 adult and 2 kids and I cooked these really easy potato wedges which the kids ate too, despite being a bit burned.

Oh, there's also this which looks pretty good and I might try it at some stage.

Saturday, July 17, 2010

What are Amazon doing?

I just bought a book. It cost be £9.49 from Book Depository. Shipping is included in their price. Before buying it, I checked Amazon's site. They wanted £8.43 but they also wanted £4.98 to ship it to Ireland! The book was eligible for "super saver shipping", so if I was buying more than £25 worth of books, the shipping would be free but I wasn't so that's beside the point.

If Book Depository can do the whole thing for £9.49, there's no way on earth it is actually costing Amazon anything close to £4.98 to ship 1 book to Ireland. So I really wonder what's going on. Are they trying to discourage single-item purchases? Are they ripping off the Irish (why leave that to the Irish?) Does it really cost them that much to ship a book? Is Book Depository losing money on this?

I'd love to know what's really going on. I sent them a mail. I already bought the book from Book Depository but I figure there's no harm in encouraging some competition.

Monday, July 12, 2010

Letter to the editor: Why people protest against Israel and not Iran.

I'm a sucker for punishment, I'm sure they won't publish it but I wrote this because I haven't seen this point being made anywhere and I think it gives a pretty good answer to a commonly thrown accusation and even if they don't print it, I've been meaning to write about this for some time now.

Sir,

Eddie Naughton asks where are all the do-gooders protesting the death
sentence for Sakine Mohammedie Ashtiani in Iran (letters,
Jul 12th). The Irish branch of Amnesty International has a section
of their website devoted to Iran and are covering this case amongst
others, so the do-gooders are on the case.

As for why Iran and other states like it do not draw the same kind of
protests that Israel does, I would guess that it's because Iran does
not attempt to present itself as a modern, moderate, Western-style
democracy. Iran is not in the process of joining the OECD, it does not
seek approval from the West nor does it claim to have similar values
and morals to Western countries. So protesting outside its embassy or
criticising it in public is mostly a waste of time. Nobody expects any
better from them.

Israel on the other hand does all of these things. It wants to be part
of our club and that makes it vulnerable to bad press and peer
pressure. The Israeli government knows this and puts huge resources
into media and internet campaigns to defend its image - far more than
other states abusing human rights. Unlike in Iran, Israeli government
policy can and has been changed by public opinion, within the country
and without. They are listening. The USA, their main sponsor, is also
sensitive to such publicity.

In summary, people protest loudly and publicly against Israel because
it might actually work. People don't do the same with Iran and others
because it seems completely futile. Nobody has time to fight them all,
they're just fighting the battles they think they can win,

Iran is run by the religious and even if the last elections weren't actually rigged, the choice of candidates is controlled by the religious too. Holding a placard outside their embassy is pointless. Iran's problem seems most likely to be solved by an uprising of its citizens, at which point it will hopefully be a much more just and democratic place (it had a real democratic government in the past which was overthrown in 1953 by that beacon of democracy, the US).

Israel is controllable by its citizens and only able to do what it does because the USA currently approves and pays for it. All it would take is a moderate stance by enough of its citizens or an awakening of the US electorate to their massive subsidising of Israel or just to the reality of its actions. This all seems much more achievable and public action is a viable method.

It does not require a hatred of Israel or a hypocritical bias to explain why people focus on it. If anything, Israel is sick and in need of help (as was/is Northern Ireland). A peaceful, just Israel would be a great thing for Israelis, Palestinians, the region and the world. It would upset the plans of the radical Zionists and the fundamentalists who believe the land is theirs because it says so in their book. I'm not sure they can ever win that fight anyway so in reality, they'd probably be better off too. It would upset the plans of Muslim fundamentalists too.

So the reward could be huge and the goal appears achievable. I think that's why people choose to fight this fight and not the others.