Thursday, October 11, 2012

Chewed Out


"peddling a double standard"

Tony Abbott squirmed in his front-row seat through a thumping of Gillard gall, having his asshole chewed out for him as Julia demonstrated numerous accounts of sexist and misogynistic quotes from the leader of the opposition in a political maneuver that highlighted Abbott's hypocrisy in calling for the resignation of Peter Slipper over an alleged series of lurid text messages he sent to a former staffer.

Perhaps Slipper should be removed from "high office" for such offences.
Perhaps Gillard shouldn't have defended such uncouth behaviour.

Maybe. Maybe not. Not mine to opine.

What I can say, though, is Gillard got her smack on that day and Abbott was left with the definite look of someone put firmly in their place. Ouch.

I haven't enjoyed parliament time as much since the raunchy days of unbridled Keating.

Enjoy the full fifteen minute schooling Gillard gives Abbott in documenting insults and slurs along with the date and place each shameful comment was said and unleashing them in a tirade of witty and ferocious criticisms.

A Little Drop of Prudence

I like my Vim with a little drop of prudence

I frequently create temporary macros or maps for ad hoc edits when I find myself having to do the same job more than a few times over. This is a good thing to spend some time reflecting on in your editing. If you’re in the heat of the moment and don’t want to break concentration or waste time on R&D right now, make a note to come back when you have time to look at your current editing inefficiency. I recommend setting up a practise file (something I mention in learnvim) which you can quickly jump to using a global bookmark.

Setting up a Practise File
  1. :e ~/vim-practise.txt
  2. mP
Note This sets a global mark that can be jumped to from anywhere within vim using the normal mode ' command. (:help 'A)
Jumping to your Practise File
  • 'P

So, there you are editing away on another dreary Tuesday and in a moment of lucidity you realise you’ve just mashed the same key pattern a dozen times over — you’ve just discovered an inefficiency! Awesome.

Quick check: “Do I have time to investigate and optimise this now?”

No: :-( Sucks to be you. Quick! To the Practise File! Make a quick note about this so that you can come back to it on your morning tea break.

Yes: :-) You soldier! Yank a sample snippet of the problem at hand and then… Quick! To the Practise File! Paste in your snippet and start experimenting with ways to optimise the necessary changes. Is there a map or macro you can make to wrap these steps up into a fast and simple solution? Take your macro/map back to the real work you were doing before this R&D diversion and finish the rest of those lame edits with the genuine vim you should be applying to life.

“But couldn’t I have just experimented in my original file?”

Sure… but then you lose the problem. You’re left with just a finished solution. A useless page of sterile, problemless text. That might please your boss and clients, but it’s just no good for your continued development as a vimmer. You’ll grow more by squirreling away interesting little nasties like this that you find in the wild so that you can revisit them during quieter moments as part of your Deliberate Practise regimen.

Thursday, October 4, 2012

Eat Me A Camel!


Eat Me A Camel!

Bah… it never rains; it pours! I failed the other day to secure myself a feed of camel from our new Xin Jiang restaurant in the mall opposite our housing estate because the chef had closed the kitchen after lunch. To avoid a disappointing repeat, I went at the socially approved time today, only to be thwarted once again! This time, a foyer full of waiting brethren, all salivating onto their flat bread conciliation prizes briefly averted their collective gaze from the neon camel sign to eyeball the most recent dromedary devouring devotee to idly dawdle through the double doors. Eager as I was to finally sink my teeth into a prime piece of camel, I took the bold step of calmly walking away from the fray. Another day, humped wildebeest! Those sneaky xinjiangians… it’s probably llama anyway. :-/