random thoughts to oil the mind

Author: Fips Page 3 of 67

The only current author of this personal blog.

Commenting memoQ Light Resources

Editing memoQ’s light resources can be a painful experience, with somewhat clunky interfaces, intimidating lists, small default window sizes, and the inability to add comments to rules written with regular expressions. Anyone who’s tried to pin down an error in a list of dozens of autotranslatable rules will know the maddening experience of trying to wade through to reams of similar-looking rules to find the culprit, especially as any edited rules are automatically re-added to the bottom of the list, so any initial effort at structuring rules according to their purpose gradually falls apart over time.

As Kevin Lossner recently pointed out, one clever strategy is to export copies of the rulesets and, adding comments to these XML files, essentially manage these rules outside of memoQ. This makes the rules themselves easier to navigate, and indeed edit, with changes being implemented with a simple reimport of the file.

However, there can be a couple of disadvantages to this solution, depending your workflow. Firstly, the comments only work in one direction, as they’re lost on import. If you make any alterations to resources from within memoQ, exporting the updated ruleset would mean having to combine the files or otherwise restore all the comments. Secondly, memoQ prevents you from overwriting resources on import, so while you can always add a new version and delete the previous one, it can prove to be a royal pain if you also need to update a large number of templates and/or ongoing projects which are using the resource.

Fortunately there is one more cheeky option available to us to make our rules easier to read, however, and that is to abuse named capturing groups and use them as comments. For example, take a rule from a cascading filter for tagging the asterisks in a Markdown list:

^\s*\*\s+

We can simply give this group a name and make it easy to identify:

(?<unordered_list>^\s*\*\s+)

Once all rules have been commented, we immediately have a much cleaner overview of the ruleset, especially useful when you need to go back in and tweak or add something later.

Example cascading filter for Markdown

Note that one potential side-effect of this strategy is that mixing named and numbered capturing groups may upset the numbering, so particularly for autotranslatable rules it may be easiest simply to use named capturing groups consistently throughout.

[Photo by Daiga Ellaby on Unsplash]

Brexit in Germany

You almost have to feel sorry for Greg Hands, sitting as a guest on Anne Will’s show, trying to defend Tory policy. Invited to a five-to-one Brexit bashing, it’s a debate of the ilk where the quacks aren’t invited in the name of ‘balance’. From the off, and as if to distance himself from the madness he’s supporting, Hands immediately claims to have been anti-Brexit, to have been anti-Boris during the leadership change. But not one to let principles get in the way, he’s supporting both of them because ‘democracy’. What follows is a virtuoso display of logical acrobatics skills as he attempts to defend his position: the shittiness of Britain’s democracy (being old is apparently a compliment?); that the referendum somehow showed clarity of purpose; that Boris threatening to ignore the law to push through a no-deal Brexit is democracy in action; that proroguing parliament is standard procedure and clearly shouldn’t be reconsidered at such a crucial juncture; that an election could show what the people want, but a second referendum would be undemocratic. If he weren’t sitting there looking like a naughty schoolboy called to the headmaster’s office, his mind-bending mental tricks might have earned some applause.

Unfortunately for him, the loudest applause comes when Rolf-Dieter Krause said that the only time Boris Johnson doesn’t lie is when he says his name. You kinda want to give Hands the benefit of the doubt, acknowledge that he’s standing with his back to the wall, maybe find the language barrier in his favour. But then the contents of his words would sound hollow in any tongue. ‘I didn’t vote for Brexit,’ he protests on more than one occasion, trying to distance himself from the shitshow he’s fighting for. Because ‘democracy’. Already proud to show his lack of a spine or conscience, Greg shows he’s also packing a crate of gullibility, when arguing that Johnson is trying to renegotiate, that negotiations are taking place, that there is a solution to the backstop.

He almost looks like he’s break down in tears when discussion turns to the little bone Frau Merkel threw Boris, the notion picked up in British newspapers that the German chancellor was keen on finding a solution within 30 days. The irony of the situation is completely lost on him: the true of the backstop is that it only comes into effect if Britain fucks up in resolving the Irish border, and it is entirely unpalatable to the British parliament because they know they will fuck up.

This is where Hands proudly gets his homework out: a special report he’s been preparing that will finally solve the Gordian knot. I couldn’t help laughing at the top-rate accidental trolling which followed from host Anne Will. Asking the rhetorical question, whether the EU needs to take Britain seriously when they say the ball is in Britain’s court, ‘well here’s Greg Hands, and he not only has a ball, he’s brought a brochure too.’ Sorry Greg, everyone else knows that someone asked you to write that report so they could throw it in the bin. Hope you didn’t put much effort into it.

Whether it’s stupidity, gullibility, or simply brazen loyalty to his football club party, Greg is dancing to the nationalist tune like a good little boy, genuinely espousing the lies and subterfuge of the hardliners or, more likely, swallowing them whole himself. As he seems to keep reminding us, he didn’t want this, he didn’t vote for this, but he’s happy to play his part as a useful idiot. Sitting as a guest on the show, isolated and alone, trying to defend someone else’s corner across an ever widening gulf whilst simultaneously protesting his own innocence, Greg perfectly embodies a microcosm of the shitshow playing out on the European fringe.

[Full programme]

Daily Links

Who Wants to Live Forever? – Married happy-go-lucky outdoors-loving sex-mad hippy party-girls in senior management with cats. Apparently.

What If the EU Had 28 Member States With Equal Populations? – Rearrange the borders and build a new Europe!

Paul Ryan’s Long Con – An interesting article from Vox on this failed poster boy for an almost sane GOP.

See How Your Take Home Pay Compares to Workers Around the World – An unwieldy title for an interesting infographic.

[Photo by Fabian Blank on Unsplash]

Jimmy Aldaoud

As Thomas Hobbes once fathered the phrase, life before the central state was solitary, poor, nasty, brutish, and short. In Jimmy Aldaoud’s eyes, life with the United States wasn’t much better. Aldaoud was victim to the kind of cretinous bureaucracy touched by a sprinkling of laughable xenophobia. Not that there’s anything funny about the result. A man died as a direct consequence of the kind of senseless and callous rule-making that surely the gobbiest semi-democracy in the world ought to be a little ashamed of.

What’s particularly interesting is the reactions on both sides of the spectrum. Those more moved by their hearts wonder how this differs from murder, somehow an interesting hyperbole given the fact that the American state does in fact take lives on a regular basis, whether through using excessive force in policing, enjoying a bit of Goliath vs. David on the international stage, or occasionally executing its citizens.

Meanwhile, the heartless end of the spectrum wonder what all the fuss is about. On paper, everything was legitimate: the man was an illegal immigrant, he committed some petty criminal acts, and he was duly deported to his home country. Never mind the fact that he had never been to the country he was being deported to, that he was clearly unwell and in need of medical treatment, that he was a member of a minority who had fled religious persecution, and that his death was an entirely predictable outcome from his deportation.

The case is clear as mud for anyone with a couple of braincells, though it would be going too far to assume that the persons processing his case would be in possession of such aptitude. But that’s why it’s mind-boggling that safeguards are not in place to prevent this. Clearly for a person who missed out on being a citizen by 6 months, who had never known another country, who had been invested in by the state for the formative years of their life, who were to all intents and purposes already citizens of the nation, surely the first response should be to give him a few forms to fill out and a helpful nudge that ‘we consider this important’? For a nation built on the expropriation of land from other people, it’s insane how the United States are so blindingly obsessed to birthrights being tied to the soil.

But who gives a shit, right? He was only an Iraqi.

[Photo by Joshua Hoehne on Unsplash]

6 Ways of Breaking the Brexit Deadlock

If at first you don’t succeed, you fail.

GLaDOS, Portal

Ardent Remexiteer Theresa May managed to spend the latter half of her illustrious spell as prime minister trying to ram her deal through the Commons like a skipping needle on a strong and stable turntable. Now she’s abandoning ship, the sycophants and navel-gazers are lining up around the block to be the next hero to try to pull the sword from the stone. Unfortunately, with yon parliament rejecting the deal, and selfsame parliament rejecting no deal, the likelihood of the next helmsman managing to successfully navigate this particular brown waterway looks slim. And with the public still split down the middle, even a new referendum would probably only turn back the clock as far as 23rd June 2016.

Meanwhile the EU looks on in amazement as the revolution eats its children. They can wait; it’s Britain that so desperately wants to leave… ish. If only the Conservative Party were thinking with Portals… instead they’re all obsessed with having/eating the cake. (Spoiler alert!)

Since Article 50 is turning into a euphemism for perpetuity, here are seven bloody ways to break the bloody deadlock.

1. Bosworth Field

It’s been far too long since the Glorious Revolution saw that conclusive and permanent defeat of the traitorous papist Tory party [wait, what?]. No doubt some of the current crop remember it well. In the spirit of fair play, it would only seem appropriate to give them another crack at the whip. Rather than assaulting one another with American cowjuice, maybe the hardest of Brexitards and Remoaniacs can meet on the field of battle for a glorious victor-takes-it-all decider. I’ve no doubt traditionalists like Jacobus Moose-Rogg have only been chomping at the bit to saddle up and fly the standard.

2. Partition Party

Cyprus, Israel, Ireland, India – Britain has its fair share of examples around the world for peaceable coexistence between loving neighbours. In fact, British meddling consultancy work was often instrumental in setting up those amicable arrangements in the first place. The next government could have the whole thing unravelled in two shakes of an ear of wheat, and Britain can both have its cake and allow someone else to eat it. We’ve already got a map. Maybe that nice fellow Trump can do us a deal on a wall pretty garden fence in part-exchange for some bits of the NHS in his free trade agreement.

3. Nigel Mandela

Gandhi marched to the sea, Mao slogged it around China, and the Crusaders of Jarrow trudged down to London. If only Farage had listened to The Proclaimers, he might not have flaked on his own little galumph to the capital.

But while marching is one way of showing your staying power, some long walks don’t need you to move anywhere. Instead of drowning the airwaves with their gobshitery flawless political debate, maybe our most impassioned politicians could give their mouths a rest and let their arses do the talking. All we need to do is lock up the loudest Remoaners and Brexiteers for as long as necessary; they can leave at any time, and whoever gives up last, gets to decide the outcome. Maybe while they’re in there the rest of parliament might be able to get some actual work done, and the rest of us can enjoy some semblance of normalcy. Well, at least for one morning… given his track record, Farage would be out by noon!

4. Toss a Coin

When things get too close to call, sometimes there’s no better way to prevent a logjam than call on the wisdom of chance. The London Eye would only need a quick lick of paint to make a wonderful symbol, dismounted and rolled into Trafalgar Square to decide the nation’s fate. The mother of parliaments can vomit its members onto the square to form the biggest assembly of tossers the planet has ever seen, while the nation watches the televisualised event as their alderpeople reinvent the time-honoured tradition of casting lots.

After all, more important things have been decided on the flip of a coin before now.

5. Neverendum

It’s been over four hundred years since Britain added something worthwhile to the national calendar, and what better way to commemorate buffoonery and intolerance than through an annual celebration. Every 23rd June should henceforth be rejoiced as Referendum Day, when the polity goes down to the ballot box to check if the political barometer has discernibly changed, before sitting around a burning effigy of David Cameron and celebrating the almighty fuck-up their greatest democratic achievement as a nation.

6. National Lottery Brexit Special

Lottery tickets have been changing people’s lives for a quarter of a century, ever since King Arthur granted his house a royal commission [is this right?]. Why not furnish one winning ticket the right to change everyone else’s lives? The Brexit EuroPhilians Lottery would give the lucky crackpot winner the right to decide exactly how the Brexit debate should be settled.((This would also make a great way of choosing the UK’s Eurovision participant. Surely they couldn’t do much worse than average.)) (Guaranteed no winning tickets to ensure the decision just keeps rolling over and over and over.)

[Photo by Alexander Andrews on Unsplash]

Page 3 of 67

Powered by WordPress & Theme by Anders Norén