Friday, 9 March 2012

I just wrote to my MP asking him to block the Health and Social Care Bill

Like the title says, I just wrote to my MP asking him to block the Health and Social Care Bill. I don't expect much. He is a Tory golden boy lawyer who spent years as a wonk in Dominic Grieve's office. But he's my MP now (since 2010) and he's all I've got. My MP is Dominic Raab for Esher and Walton. So here's what I said to him:

Dear Mr Raab,

I have just read this report today in the BMJ and I have grave concerns: http://www.allysonpollock.co.uk/administrator/components/com_article/attach/2012-03-08/BMJ_2012_Pollock_HealthSocialCareBill.pdf. It outlines very clearly how proposed reforms could be used to create a health care system comparable to that of the United States. Mr Raab, I come from the United States. I've seen how that system works. It is a mess. In 2007 it is estimated that some 61% of all US bankruptcies were of a medical nature. http://www.pnhp.org/new_bankruptcy_study/Bankruptcy-2009.pdf. This was at a time when health care spending accounted for 16% of the country's GDP. This is not a good system. It is costly and fails to deliver care to those who need it most. This is because insurer underwritten health plans account for their service spending as medical costs. The costs are to be kept as low as possible; therefore, the insurers will use any means to avoid paying for medical treatments. People who believe themselves to be adequately insured suddenly find that their medically necessary treatment is not covered for one reason or another. People have incurred costs in the tens of thousands of dollars and lost their homes through mortgage defaults. This is bad for the economy.

The proposed reforms to the NHS are supposed to save the government money, but in the long run they will probably not achieve their stated objectives and will end up costing us all a lot more. A single payer system such as what we currently have is less costly to manage because it does not have the overhead of insurance underwriting. I ask that you please do whatever you can to block this bill. Hardly anyone wants it. It seems to be ideologically motivated, and there is absolutely no mandate for it. The NHS is a national treasure. It is probably the single greatest British achievement since the second world war. Please do the right thing. Thank you.

Best regards,
Matt Flaherty
(et cetera)

I'll let you know what sort of response I get.

Friday, 10 February 2012

Is it really "Un-American" to require an employer to provide contraceptive health coverage?

After reading this piece by Heresiarch on the Obama/Catholic problem of the day, I forced myself to ingest one of the sources, namely this Telegraph article by Dr Tim Stanley, titled "Obama's war on the Catholic Church isn't just insensitive – it's un-American". Ignoring the momentary shiver I always feel when I hear someone use that McCarthy era standard, I plowed on. I'm afraid I stopped on this paragraph (six?) as it told me everything I need to know:
The answer is that Obama’s diktat violates the American principle of freedom of conscience. It’s one thing to ask Catholic organisations to provide contraception coverage. It’s another thing to order them to do it. Imagine that you’ve been happily wearing a neck tie since the age of thirteen (imagine you are Mitt Romney). Then, one day, a government bureaucrat knocks on the door to tell you that it’s now the law of the land that you have to wear a neck tie, 24/7. The first reaction of any freedom loving, self-governing individual would be to tear the neck tie off (and maybe use it to throttle the bureaucrat). It’s a basic rule of human nature that people resent being told to do something, even if they intended to do it anyway. The Americans and British are brothers-in-arms when it comes to this kind of obstinacy.
The question that paragraph is attempting to answer is "Why is the Church so agitated, the liberal press asks?". And if that's the answer then I feel the issue of freedom of conscience is back to front. The analogy is poor. Actually, it is woefully bad. A better analogy would be this. Every day a person wears a neck tie but he provides his own. As silly as this may sound, let's say he only wears them at home or otherwise outside working hours. This is how he feels he should dress. Perhaps the employer has an irrational hatred of neck ties or something. Then one day, a government bureaucrat knocks on the door of the employer and says any apparel benefits plan that you provide for your employees must include a provision for neck ties. How horrible.

Here's how you exercise your freedom of conscience. If you are unhappy with this state of affairs, don't provide employee health benefits. Businesses with fewer than 50 employees don't have to anyway. For larger businesses, there is a $2000 tax penalty per employee for failing to provide health insurance to full time workers.

Get real, people. You've got it backwards. Why can't you see that? I think actually these pundits can. I think probably even John Boehner and Mitt Romney can. They're just hoping to hoodwink ordinary people in an election year. I hope the White House is better prepared for this row than it was for the Nazi-Socialist death panel slurs in 2008.

Monday, 6 February 2012

Arsehole Justice: The #TwitterJokeTrial: Why it matters to me - why it should matter to you.

Back in November, just a couple days before Paul Chambers' High Court appeal was originally scheduled to be heard, I gave a brief introductory speech to the specially convened Westminster Skeptics meeting. It is now two days before the appeal will finally be heard (8th February 2012). I have reproduced the notes for my speech here (the actual speech was a bit different). This is the Twitter Joke Trial in a nutshell from my point of view:

I first became aware of this case back in January 2010 when I read a write up in the Independent about a week after Paul was arrested. He had not yet been charged and the incident was still being treated as a bomb threat or hoax. It struck me as problematic because I felt I understood the context well enough to deduce that no harm was intended. I expected there would be no charge, but I remained curious...

Friday, 27 January 2012

Twitter selective tweet blocking. What exactly does that mean?

There's a bit of a twitstorm brewing over an announcment made yesterday on Twitter's blog outlining a new capability the company has built into its platform. This capability will allow Twitter to selectively block content to particular countries in order to comply with local laws. Here's the bit that has some commenters worried:

Starting today, we give ourselves the ability to reactively withhold content from users in a specific country —   while keeping it available in the rest of the world. We have also built in a way to communicate transparently to users when content is withheld, and why.

Mark Gibbs has written this piece on forbes.com which suggests that Twitter will implement this blocking scheme through the use of realtime filtering, saying "given that over the course of 2011 the number of tweets per second (tps) ranged from a high of almost 9,000 tps down to just under 4,000 tps, any filtering has got to be computer-driven." However, if you read the full Twitter blog post you will see that this is not at all what the company has in mind. In particular:

We haven't yet used this ability, but if and when we are required to withhold a Tweet in a specific country, we will attempt to let the user know, and we will clearly mark when the content has been withheld.

One wonders whether Mr Gibbs bothered to read beyond the first three paragraphs, because if a system of filtering was being employed "starting today", then it would in fact be in constant use. What Twitter has done is to build some flexibility into their platform which would probably not have sparked such controversy had it simply been there from the very beginning. If it is sensible to do so, they may now selectively block tweets to certain countries on demand. Previously they would have had to block a tweet globally due to technical limitations, so if anything this is a positive step. Twitter might not ever use this new capability, but now they can and we will expect them to weigh the pros and cons and to exercise their best judgement. Some have suggested that the announcement of this new capability will place the company under greater pressure from governments to block tweets. I find that hard to believe. I have no doubt that Twitter is already under enormous pressure from some oppressive regimes. In the past they would have simply ignored the pressure at the risk of a nationwide block of the service. Whereas previously Twitter would have shrugged and cited technical limitations, now they can shrug and state moral objections. I think the company has made a minor communication error. They should have said "retroactively" instead of "reactively". The latter suggests that it is the platform which is reactive. There are however plenty of other clues in that blog post that point towards retroactive human intervention. That is, if you choose to read that far.

UPDATE: The Twitter blog post links to some other materials, including this very helpful (um) help page: https://support.twitter.com/articles/20169222. Here we clearly see that it is only upon receipt of a valid request for a takedown that any content will be withheld. As you were.

Tuesday, 13 September 2011

SharePoint 2010 UI: custom action to launch "Move To" for a list item

Mood = :proud:

I've worked out how to create a custom menu action in a SharePoint 2010 list view that allows a user to move a single file (with meta-data intact) to another location similar to the functionality available in Site Content and Structure. In fact, I have made use of the Site Content and Structure page directly within a modal dialog. You can use SharePoint Designer to create a custom list item menu action. I won't go into detail here on how to do that as there is plenty of information available on the web. In the "Create Custom Action" dialog, tick the radio button next to "Navigate to URL:" and paste in the following javascript URL all on a single line (you will need to change the webId value to your own):

javascript:var listId='{ListId}'.toLowerCase().replace(/[{}]/g, ""); var webId='4836a39d-e154-4822-8826-8bcd5029cad2'; var dlg=SP.UI.ModalDialog.showModalDialog({ url: "{SiteUrl}/_Layouts/sitemanager.aspx?FilterOnly=1&SmtContext=SPList:" + listId + "?SPWeb:" + webId + ":&SmtContextExpanded=True&Filter=1&pgsz=100&vrmode=False", dialogReturnValueCallback: function(res, val) {location.reload(true);}}); var idString="SPListItem:{ItemId}?SPList:" + listId + "?SPWeb:" + webId; var item; var func; var doc; var win; setTimeout(func = function() {for (var i=0; i < window.top.frames.length; i++) {if (window.top.frames[i].location.href.indexOf("sitemanager.aspx") != -1) {win = window.top.frames[i]; doc = win.document;}}; if (doc == null || doc.forms.length == 0) {return setTimeout(func, 5000);}; for (var i=0; i < doc.forms[0].elements.length; i++) {var elem=doc.forms[0].elements[i]; if (elem.type == 'checkbox' && elem.id == idString) {item = elem; break;}}; if (item == null) {return setTimeout(func, 500);}; win.SmtSingleObjectMove(idString+":", false); item.checked=true; win.SmtGridSelectItem(item);}, 100); return false;


I had to use some setTimeout calls in order to ensure that the objects I was referring to were present. There is a particularly long timeout of 5 seconds that allows the dialog to hopefully complete rendering before it attempts to launch the popup with the tree view that actually selects the destination. All efforts to encapsulate this in the dialog's onload function met with failure. Perhaps one day I'll work that one out. Closing the dialog will refresh the view. This should work for any list or library in your SharePoint web application. Unfortunately there is no URL token corresponsing to the guid of the web application, so this will need to be provided as a hard-code value as I have done. I hope this is helpful to someone, as it took quite a lot of trial and error.

Wednesday, 7 September 2011

SharePoint 2010 - weirdness with custom list item edit form

I don't like SharePoint very much, but I'm forced to work with it in my software development role. A lot of what you might think of as simple functionality that could be expected out-of-the-box in a commercial content management system actually requires custom coded solution. Okay, I can do that. The trouble is though that the IT department at my company are quite strict about the provisioning of custom software. Given how buggy SharePoint Services is, I can't say I'm terribly surprised. The upshot is that any custom coded solution is discouraged in favour of some third party alternative if available. And either way, it needs to be justified. I tend not to bother with custom solutions. I often encounter weird problems with the out-of-the-box functionality though. Here's one.

I have a requirement to allow designated people to move a document from a staging document library to a permanent location once the document has been approved. After lots of mucking around I've found that the simplest way to do this is to create a custom edit form that allows input of only one item property. I've decided to use the Source URL property, since this is not actually useful in the context of the library. The plan is that there will be a workflow that kicks off whenever the document properties are changed and if there is a value for Source URL, the workflow will move the document to within that path (if legal) and then terminate. As an aside, I really wish the standard list views gave access to the file move functionality. You can't move a file from with a library, you can only send it to another location as a copy. But that's only one from an ever growing list of gripes, and not a very important one.

So anyway, I've found that this can work. However, when I (or the user) submits the custom edit form (which by the way cannot open as a dialog like the built in forms do), the result is that the document is output by the browser as an attachment. This causes a download dialog to open. I really don't want that to happen. It is confusing, to say the least. If I put the IsDialog=1 query string variable on the URL, this does not happen; however, I can't control that from actions and it shouldn't open as a dialog anyway. Also, the form does not close itself and redirect to the list as I'd expect it to. This seems to be a problem only with the custom edit forms. The default EditForm.aspx does not exhibit this strange behaviour, whether or not it is in dialog mode. I can't find anything about it on teh interwebs, so I thought I'd be the first to report it. If anything comes back, I'll be very surprised though.

Thursday, 1 September 2011

Twitter Joke Trial articles and related matters to move to new blog Arsehole Justice

I have decided to move all the Twitter Joke Trial and related blog posts over to my new collaborative blog, Arsehole Justice. It makes sense to have them there. I haven't yet begun to do this, but will begin soon. I will then reserve this blog for personal use. I'll try to keep the same links in place and use simple redirects. You might want to go and become a follower of that blog if you follow this one.

Flayman on LiveJournal (old)