Ronnie in 2014

Written on 8 December 2014, 12:14pm

Tagged with: ,

Ronnie is finishing 2014 winning the UK Championship in an impressive way. After injuring his ankle right before the start of the tournament, after complaints about the quality of the snooker tables, he managed to do three amazing things that will remain in the snooker history for a while:
1. he compiled his 13th maximum break in the last frame of the quarter final against Matthew Selt after a near miss in the previous frame (he missed a ball after potting 12/15 reds)
The maxi made Stephen Hendry to remark in commentary that snooker “does not get much better than this”:
httpv://www.youtube.com/watch?v=DPt9OTHyFjY
2. he had an amazing comeback against Stuart Bingham in the semifinals, after trailing 1-4 he leveled at 5-5 and won the match in the deciding frame by risking everything on this ball. The deciding frame video:
httpv://www.youtube.com/watch?v=GRXxoEMJ8KE&start=500
3. he won the final against Judd Trump at a moment when no one thought he can really do it any more. After leading 5-1 and then 9-4 he needed one more frame to win. But Trump managed to win 5 frames in a row, moving the match in the decider.
There Ronnie had the first chance by potting this ball, but then he left Judd among the balls after this shot. Things were not over for Ronnie as he came back to the table and soon after he got the upper hand following a great safety shot. “That’s big trouble for Trump” said the commentary, and indeed, Trump response left Ronnie among the reds. Judd knew it was over, even though Ronnie was one millimeter away from an awkward position. But he made it, and the next 2 reds were enough to see him relieved.

“That is the hardest match I have ever played,” O’Sullivan told BBC Sport. “I was going through the motions and accepted I was going to get beaten.”

ronnie1

ronnie2

The deciding frame video (grab it while it’s hot, probably it will be taken down at some point):
httpv://www.youtube.com/watch?v=K2EaFy1p_Go

To put that in a context, here is the Ronnie breakdown of 2014 – counting the 4 major tournaments in chronological order:
Masters – won – beating Mark Selby 10-4 in the final. He won 5/10 finals
Welsh Open – won – beating Ding Junghui 9-3 in the final with a maximum break (12th of his career). He won 3/4 finals
World Championship – lost the final against Mark Selby 14-18 after a 10-5 lead. It was his first ever defeat in a WC final (5/6 finals won).
UK Championship – won the final against Judd Trump 10-9. 5/5 finals won.

Update, 25 February 2016: There is an excellent article written by Sam Knight in The New Yorker: Follow the White Ball: The torments of Ronnie O’Sullivan, snooker’s greatest player. It describes the life and career of Ronnie focusing on this tournament.

The players came out for the final frame. They shook hands. A spectator near the front wore a T-shirt that said, “Keep Calm and Play Snooker.” Trump broke. O’Sullivan potted an early red. Suddenly, it seemed dangerous to go first. With sixteen points on the board, O’Sullivan missed and gave up the table. But Trump couldn’t take advantage. The men exchanged safety shots: long flicks of the white ball, down the table, to catch the edge of a red, hit a cushion, and then retreat up behind a barrier of colored balls. They did this until Trump snagged a red and brought it back up the table as well. “All the fancy fucking footwork, the control that he has had for maybe twenty, thirty shots,” O’Sullivan told me once about the art of safety. “Bang, I’m going to pounce on him.” He blocked the white ball behind the green. Trump missed his shot, and O’Sullivan had the freedom of the table. He opened his mouth slightly and padded faster in his sneakers. The match clock showed four hours, fifty-three minutes, and six seconds.

There was a moment, only a moment, after that when O’Sullivan was in trouble. He got too close to the blue and had to sneak around it. But for the rest of the match the balls were where he wanted them to be. Red followed by pink, red followed by yellow. The white stayed with him. He got to the end. Later, after the confetti and the prize, I found him backstage. Workmen were dismantling snooker tables, to transport them to the next tournament. “It came back,” O’Sullivan said. He looked relieved and haunted at the same time. “Sometimes you know it will.”

The website is down

Written on 6 December 2014, 12:02pm

Tagged with: , , ,

From a business perspective:

– 1. Think Ahead and Anticipate
– 2. Say Something
– 3. Know the Law
– 4. Remember, You’re Not Alone
What to Do When Your Website Gets Hacked

From a technical perspective:

1. Check That It Has Actually Gone Down
2. Figure Out What Has Gone Down
3. How Bad Is It?
4. Check Your Web Server Software
5. Logging Into Your Server
6. Has It Run Out Of Space?
7. Has It Run Out Of Memory?
8. Has Something Crashed?
What To Do When Your Website Goes Down

And remember, don’t just stand there, reboot something 🙂

From a fun perspective:
httpv://www.youtube.com/watch?v=W8_Kfjo3VjU

Bonus: What Flickr did when their website went down:

AARRON WALTER: Designing for emotion
In July 2006, a storage failure struck Flickr, the popular photo sharing service. Though photos were safe and no data was lost, thousands of enthusiastic users were inconvenienced as
their favorite photo site took a temporary nap (roughly three hours). Tensions ran high as engineers worked to bring the site back online. Inquiries from concerned users poured in.
During the crisis, the Flickr team had a stroke of genius.
[..] They posted a message that explained the outage, asked users to print a page, and do something creative with it to win a free, one-year Flickr Pro account:

flickr 404

ColdFusion performance: compare to 0 in cfloop

Written on 6 December 2014, 11:31am

Tagged with: ,

The piece of code below proves that in ColdFusion comparing to 0 and using a negative step is more efficient than the traditional way of looping.

<cfset LOOPS1 = 5>
<cfset LOOPS2 = 100*1000>

<cfset STEPS = 10>

<cfloop index="k" to="0" from="#STEPS#" step="-1">
	<cfset start = GetTickCount()>
	<cfloop index='i' from='0' to='#LOOPS1#' step='1'>
		<cfloop index='j' from='0' to='#LOOPS2#' step='1'>
		</cfloop>
	</cfloop>
	<cfset exectime1 = GetTickCount() - start>



	<cfset start = GetTickCount()>
	<cfloop index='i' from='#LOOPS1#' to='0' step='-1'>
		<cfloop index='j' from='#LOOPS2#' to='0' step='-1'>
		</cfloop>
	</cfloop>
	<cfset exectime2 = GetTickCount() - start>

	<cfset diff = exectime1 - exectime2>
	<cfoutput>#diff#</cfoutput><br><cfflush>
</cfloop>

Ran on Railo 4.2 produced the following output:

123
20
33
37
17
19
9
12
22
47
11