CL1P.net – The Internet Clipboard

I really like this tool that was recommended to me by Mark Sibley.

 

  • To use this clipboard, make up a URL similar to this and type it into your browser.
    http://cl1p.net/bishReplace the word ‘bish’ in the above URL with anything that you want.
    Cl1p.net screenshot
  • Type or paste any text (like I did above) into the clipboard and click “save”.
  • Then, from any other PC open a browser up to the same URL to access the “clipboard” from somewhere else.
Whilst this is useful, I wouldn’t recommend using this public facility for sharing secret or commercially sensitive information.
It’s handy for the odd code-snippet or for sharing information with colleagues.

 

BMA response to the government’s new health care proposals

Thanks to my Dad for sending me this.  Laughing

 

The British Medical Association has weighed in on Prime Minister David Cameron’s new health care proposals.

The Allergists voted to scratch it, but the Dermatologists advised not to make any rash moves.

The Gastroenterologists had a sort of a gut feeling about it, but the Neurologists thought the Administration had a lot of nerve.

The Obstetricians felt they were all labouring under a misconception.

Opthalmologists considered the idea short-sighted.

Pathologists yelled, “Over my dead body!” while the Paediatricians said, “Oh, Grow up!”

The Psychiatrists thought the whole idea was madness, while the Radiologists could see right through it.

The Surgeons were fed up with the cuts and decided to wash their hands of the whole thing.

The ENT specialists wouldn’t hear of it.

The Internists thought it was a bitter pill to swallow, and the Plastic Surgeons said, “This puts a whole new face on the matter.”

The Podiatrists thought it was a step forward, but the Urologists were pissed off at the whole idea.

The Anaesthetists thought the whole idea was a gas, whilst the Cardiologists didn’t  have the heart to say no.

In the end, the Proctologists won out, leaving the entire decision up to the arseholes in London.

 

 

Evaluate string content in LoadRunner

This little bit of code was passed to bish.co.uk by Mark Sibley. I thought that I’d reproduce it here because it looked useful. You can use this function to check whether a captured string contains a certain piece of text, this allows you to check for the presence of an error “word” when your captured string may not always use the same boundaries.

This gives similar functionality as web_reg_find but without the overhead of searching HTML as it is returned to the vUser, it allows “post processing” of captured text which tends to have a lower performance hit on the vUser.

 
	// Use this if you want to check whether something you captured contained a piece of text
	// It's handy if the same word appears in more than one type of error or warning message but doesn't // always have the same boundaries.
	if ((char *)strstr(lr_eval_string("{cCapturedString}"), "rejected") != NULL)
	{
		lr_save_string(lr_eval_string("DATA USED:: Rows:[{cRowText}] Param Name:[{sCatParamTitle}] sCatTxt:[{sCatTxt}]"),"sDataUsed");

		lr_fail_trans_with_error("Expected:[%s] %s",Expected,lr_eval_string("Received:[{cCaptured}] User:[{pUserID}] I:[{pIteration}] T:[{sTransaction}] {sDataUsed}")); 
		lr_exit(LR_EXIT_MAIN_ITERATION_AND_CONTINUE,LR_FAIL);
	}
	else
	{
		lr_vuser_status_message(lr_eval_string("User [{pUserID}] completed I:[{pIteration}] T:[{sTransaction}]"));
	}