Posts Tagged ‘Dash’

Cucumber

March 2nd, 2009

It’s well known that I am not a fan of Cucumber – tends to make me come out in hives.  However, I’ve come across a very cool Cucumber of the non-vegetable (and hence not edible) variety that has some awesome possibilities.

So what Cucumber?  It’s a behaviour driven development and testing tool that uses plain English language to describe testing scenarios (a la RSpec) and do the resulting “story running”.

But the goodness isn’t limited to those rascally developers.  It’s an excellent tool for sys-admins to do systems testing.  And to prove it along comes cucumber-nagios.  Developed by Lindsay Holmwood (who an open source guy in Australia and a Puppet person) it designed to allow Cucumber to output using the Nagios plug-in API.

First, Lindsay has some cool stuff in this blog post but here’s another example I cooked up.  Hypothetically, we might have a web page created on our site and we need to ensure users can click through to a link on it.  We also want to be sure that linked page contains a section with some information we want to share with our customers:

Feature:
  It should be up
  And I should be able to reach the interest rates page
  And it should contain a "Daily Rates" section

  Scenario: Reaching the rates page
    When I visit "www.interbanking.com.au"
    And I click on "Rates"
    Then I should visit "www.interbanking.com.au/rates.html"
    And then I should see a section called "Daily Rates"

This would then be run:

$ cucumber- features/interbanking.com.au/rates.feature
Critical: 0, Warning: 0, 4 okay | value=4.000000;;;;

You can see it would return an appropriate plug-in output.

And voila! Cheap and easy website script testing which plugs into our enterprise monitoring system.

Multiply this with all of the other things Cucumber can script and story board and you have a powerful engine to monitor complex elements of your environment.

P.S. Related to this that I stumbled across recently Cucumber and Dash integration.  a mechanism for creating and measuring custom metrics and  Bradley (@ RailsMachine) has a couple of posts that show how to integrate Sensor, Cucumber, and cucumber-!


			

Singing True Blue with a Polish taxi driver – interlude with cabbage roll

September 20th, 2006

I was sick this morning so I called a cab to go across to my place to pick up some things (minding the old’s house for a few weeks *sigh*).

The cab arrived and the driver waves at me from across the street. I walk across and open the door. Instantly the strong smell of cabbage wafts out at me.

“Hello! I am Vlad – good morning to you!”

The driver, a huge bearded fellow, with a thick Eastern European accent extends his hand to me. I shake it as I am clamber into the taxi.

“Where do you go this morning?” he booms at me.

“Um … Smith St, Collingwood,” I reply, a little subdued at his vigour this early in the morning.

“Excellent – we go!” he booms again.

I notice on the between us a plastic bag with a large tupperware container in it. The container seems to hold long cigar-like objects, only coloured a greeny-white. Vlad notices me looking.

“You like cabbage? My wife make best cabbage roll in Australia!” He laughs like this an excellent joke – we Australians are obviously not noted for our cabbage rolls. I suspect he right.

“You have one!” he gestures at the container.

“Umm… Okay. As long as you don’t mind. I am not stealing your breakfast am I?” I ask.

“No! No! Take one – take two. Wife will be pleased if I tell her passenger like her cabbage rolls,” he half-shouts at me, a huge smile on his face. He yanks open the container whilst performing a deft one-handed U-turn and nearly clipping my father’s car. I wince. I also suspect I better like the rolls.

I carefully pull a roll from the box and take a bite. It’s good. Rice, beef and little pieces of onion.

“Wait, wait,” he says me to, “I have sauce. Tomato. Like for BBQ but better!” He pushes the plastic bag further open and hauls out a smaller, rounder container filled with a reddish liquid. At no time do his eyes actually drift toward the road and I pray we don’t collect something or worse someone. I open the container as it passed to me and dip the un-bitten end of the roll into it. It tastes even better with the sauce. And it considerably nicer than the tomato sauce we slather on sausages and steak at BBQs.

“You like?”

“Yeah, it’s great,” I reply munching quickly.

I ask the inevitable question, “So, where are you from?”

He grins at me, “Poland.”

I speak without thinking, “I didn’t think Vlad was a Polish name … more Russian?” Shit, shit, shit. I don’t know how the Poles feel about the Russians but I am assuming like much of the former Iron Curtain states it won’t be good.

He seems unfazed. “Yes – Russian name with V – Polish name with W. I am Wlodzislaw. But no one except Polish people can say, so I am Vlad to everyone.”

I try the full name out a couple of times. He corrects me once.

“Yes, you have right – perfect.”

We drive on, him talking non-stop about Australia and Poland.

“Many Polish people here, too bloody cold in Poland. My wife much prefer weather here.” The ‘bloody’ comes out sharply emphasized in that way much Australian slang does when used by people who speak English as a second language.

Both our eyes follow the walk of an attractive woman in a skirt with the side split crossing Spencer St. “I prefer weather here too,” he looks and me and laughs when he sees we have being admiring the same woman.

“You like music?” he asks.

“Yes.” That seems a safe answer.

“Well I love Australian music. I listen to all the time. You mind?”

“No, not at all.”

He leans over and pushes a CD into the player. After a few seconds out blares, John Williamson’s “True Blue”. I wince.

Hey True Blue, don’t say you’re gone.
Say you’ve knocked off for a smoko
and you’ll be back later on.
Hey True Blue Hey True Blue.

“You like?”

“Um, yes I guess. I don’t like much country music.”

“They play this at Steve Irwin’s funeral so I put in car this morning. I play for all passengers this morning.” And then he started singing along. After a couple of lines he looked at me, “Come on, you sing too!”

So I did and we rolled up Victoria Parade loudly singing True Blue – his booming voice and my scratchy throated rasp.

He dropped me outside my house. I paid him and thanked him for the cabbage roll.

“No worries mate!” he boomed back and drove away.

Only in .

Letters and comments

February 23rd, 2005

Some entertaining material. Firstly, a letter in yesterday’s SMH about Tony Abbott being re-united with his son.

“Dear Daniel, It could have been worse. It could have been Tony Abbott telling you that your mother was Amanda Vandstone.”

And secondly a comment from Crikey about the recent expulsion of an Israeli diplomat from Australia:

There have been some extraordinarily tough and dashing Israelis. Miscellany’s favorite has always been Moshe Dayan.

But just how tough, brave and dashing must that expelled Israeli diplomat have been – he was going to spend Christmas with Phillip Ruddock!”

The Big Red Rock Part 1 – Friday on my mind

January 24th, 2004

So crawled out of bed to catch our flight to Uluru this morning. Was very dazed and confused but managed to get on the flight in spite of Qantas throwing the normal obstacles in our way – , grumpy staff and their usual haphazard approach to scheduling flights. Near time seems to be as close to on time as Qantas ever seems to get and eventually we taxied and took off.

So away we went. I was wedged next to a huge annoying Englishman who insisted that both his armrest and my armrest belonged to him. We did the silent armrest fight before I gave up. He was just too monstrously fat for me to stop the overall sprawl of his bulk over both our seats without me straining a muscle trying to hold him back. So I did the professional glare thing for the rest of the trip. He did not appear overly fussed and in fact snored the last two hours of the trip away.

Okay. So the Northern Territory. It’s HOT. Real HOT. 40 degrees and 0% humidity when we arrived. A scorching hot dry heat. But admittedly more pleasant than Far Northern Queensland which has the same heat plus 90% humidity. I am coping much better in these conditions than I do in the far north. Lu just thinks its hot and started drinking copious amounts of water to ward off heat stroke. Me – well it’s actually starting to grow on me. Not 100% comfortable but it’s not a bad feeling either.

We arrived at our hotel – the very oddly named Lost Camel – which very new and very trendy looking. The rooms having that hip Darlinghurst design touch to them and the building finished in very funky post-Meditarrian colours. Staff seem pretty pleasant and to Lu’s great delight they have a large and very blue pool. We changed and grabbed lunch – priced exorbitantly. $11.50 for a glass of Rosemount Chardonnay – the same price as the goddamn whole bottle at a bottle shop. Ridiculous even for tourist markup prices. But we survived and have now found a place that sells cheap sandwiches which will assist with lunch on the remaining days of our trip.

The earlier discovery of a pool meant Lu dashed off after lunch and got into her bathers and proceeded to break in the pool. I sat beside the pool and read the New Yorker and then New Scientist. I like holidays – so much time to catch up on topical reading. Also scenery. Lovely scenery. *cough*

After this piece of de-stressing we did the first of our site seeing activities. An Uluru Base and Sunset Tour. Well what can I say first? You must see Uluru to believe it. Literally. It awe inspiring. Photographs and film simply do not do it justice. I could babble on about it’s magnificence for several more paragraphs but will save you from that and just say – go and see it. Now. Really. I mean it. It’s awesome and I am not normally one stunned by the beauty of nature (being the man who dislikes leaving the city without a piece of concrete in my luggage to prevent homesickness for urban sprawl). Amazing.

Now the tour left some things to be desired. The tour guide was dreadful – boring, factually limited and somewhat of a racist – hidden well but you could sense he’d prefer it if the National Park management board had no Aboriginal members. This way the total exploitation of the park could be conducted without those finicy traditional owners objecting to them leasing the space on top of the rock to McDonalds for advertising. So that wasn’t much fun. But some nice people on the tour – including a lovely French couple and two funny Welsh girls.

We saw some lovely artwork. Refrained from spending our next mortgage payment on an original Martha Spilszer only just though – I had to drag Lu from the gallery. Also the Cultural Center there really quite good. Very informative and quite easy to take in. Very impressed and no wonder they have won a mountain of tourism awards. Also if you get there check out the collection of letters from people returning sand and rocks that they took from Uluru. Some returning items whose theft dated back 50 years. Restores my faith in some humans. Finally the sunset portion not so good. Cloud cover descended and blocked sun from shining directly on the rock – very disappointing. I hope the sunrise version works better.

Then back off to hotel for some sandwiches and a cocktail for Lu and good ‘ol bourbon for me. All in all a most pleasant day. Looking forward to visiting Kata Tjuta (aka The Olgas) tomorrow after a nice sleep in and some quality time.

Wireless routers and kitten mayhem

October 10th, 2003

Lu has gone to Queensland to spend some quality time with her grandmother leaving me alone for a week in the house. Then she gets back and I off to the US for two weeks. So not going to see much of each other at all.

And our bastard new kitten chewed the antenna off my wireless router. Thus rendering router kaput as a wireless access point. Brat. But she’s so cute I can’t stay mad at her.

I haven’t mentioned her here yet so this as good a time as any. Her name Boojum – which a Lewis Carroll reference to the “The Hunting of the Snark”. She’s a six month old – mostly black with white bits – skinny kitten. She eats like a horse and totally hyperactive. We got her last weekend from the wonderful people at the Cat Protection Society. Kudos and happy smiles to them for their great work – especially the delightful Jessie whose enthusiasm made for a fun visit.

Boojum’s only been in the house a week and she already has me totally wrapped around her paw as it were. Just need her and the other two cats to get along now. Romeo coping alright – only occasional hissing at Boojum but Mitsu not a happy little camper – much hissing and complaining and hiding in corners and looking resentfully at me.

A subtle situation

August 28th, 2003

Mefcon, KD and I hit the town last night – my darling Lu even made an appearance before excusing herself to get her hair cut. Drinkies at the Townie (our usual Wednesday abode where we studiously ignore the most irritating trivia man). Mefcon dashed off early to star gaze – Mars real close you know – which means conspiracy freaks and UFO weirdos probably alternatively having fits of joy and paranoia. KD and I got wasted and did the deep and meaningful thing. She’s a lot of fun but sneaky. She asks these subtle (well subtle after about twenty beers and a few bourbons) questions and then you spend the next twenty minutes trying to work out exactly what she meant. Of course the length of my cognition could have been related to my alcohol consumption too. Or she might not be all that subtle after all. Damn why didn’t I realise that last night? Oh yeah. The booze. But hell it was fun.

Mefcon heading to Shanghai on the weekend for a rendevous with his un-girlfriend (like un-birthday in an ‘Alice in Wonderland’ kind of way). A decision of which I am entirely jealous of. But the ‘unemployed and living off a massive redundency’ can just drop everything and fly to China. Lucky sod. Very jealous.

Red Bean Dip

May 20th, 2003

Simple, tasty, spicy…

Ingredients:

1 x 400 gram tin of kidney beans
1 x small/med onion diced thin
2 x cloves of crushed garlic
1 x fresh chilli – sliced thin (leave seeds in for extra chilli kick)
5 x tablespoons of mayonnaise
1 x tablespoon of white horseradish
1 x of Tabasco sauce
1 x of Worcestershire sauce
Pepper to taste

Instructions:

Drain beans. Combine with onions. Mix well together. Add all remaining ingredients and mix or blend. Chill for 1 hour and serve with corn chips.

Long, long weekends and bad restaurant experiences

June 11th, 2002

Back at work after three days off. Every now and again the whole long weekend thing works for me. Most of the time I just feel odd about it and tense – probably my sub-conscious thinking of something left undone by taking the extra day off. Sad bastard stuff really. But this weekend it felt right and I wasn’t stressed by the concept.

Am now calm enough to talk about our Saturday night restaurant experience. For about a year now we’ve been meaning to go to Emma’s on Liberty in Enmore. It’s a sort of modern Lebanese place but it’s always packed and has a good food rep that has meant we’ve never gone. Too hard to co-ordinate people when you need to considerably in advance. But on Saturday I thought I’d call and on the off-chance, it being Lu’s birthday, and see if we could get fitted in. And lo and behold they had a two person table available. The guy did warn me it was near the door but otherwise everything seemed fine.

So we get to the restaurant and things start to go dramatically downhill. First we stand in the doorway and wait to be seated. I think after about fives minutes I started asking staff for help as they dashed from table to table. I either got cold shouldered or told that they would be with me ‘in just a minute’. This went on for a further five minutes before I went up to the counter at the back of the restaurant and specially asked for our table. After taking several goes to attract the attention of the staff behind the counter I finally got told I was seating in Table Five. I stood there and waited for them to tell me where table five was but to no avail. Conversation over. So I looked around near the door and found table five. Now when the waiter described the table as near the door on the phone he should have said ‘in the doorway’, ‘subject to freezing cold wind every time the door opens’ and ‘you need to move every time someone comes in and out of the door’. It would have to be the worst table I’ve ever sat at in a restaurant and it should never have been placed where it was. So I am already thinking this bad when we finally sit down but I am prepared to give it a go. Then we wait for someone to come and offer us a menu, drinks or open our wine. And wait and wait. For ten minutes we waited for someone to come and speak to us. But no matter how hard I tried to attract attention from the staff we were basically ignored. So after that ten minutes I said ‘Fuck it – we’re leaving.’ and got up and left. Even then nobody bothered to ask why we were leaving or to find out if there was a problem.

It would have to be the worst service I have ever received in any restaurant. I was so angry when I left that it took half an hour and a gin and tonic to calm down. So my recommendation even if the food wonderful (not that we ever got to find out) the service sodding shocking and don’t go.

Thankfully as previously mentioned we went to Kok Shirk after that and as usual their food, wine and service were impeccable.

Reading: SMH

Listening to: Maren Ord