Friday, August 18, 2017

亂世.強權

沒有最黑暗,只有更黑暗。有人說女方丈更小器,果然不幸言中,得罪她的小朋友都罪加一等;來一首應景歌曲:
 
這個「官方」上載寫道:
地球人在這個大地上用上種種藉口互相廝殺, 各自的歪理今日愈來愈令人類良心道德撕裂
諷刺的是歌手曾被批評轉軚愛國賺維穏費。

Wednesday, August 16, 2017

Sports highlights: Young guns and underdogs

I enjoyed all 3 NASCAR races this past weekend. Gotta admit I slept through most of the laps but did wake up in time for the exciting endings: both Sam Hornish Jr and Darrell Wallace Jr were able to preserve their lead late in their respective races (Xfinity in Mid-Ohio and truck in Michigan) and fought off the strong challengers from behind. You just don't see Kyle Busch finishing 3rd in a truck race often (NASCAR is limiting the number of lower-level events for top-level drivers so fans would actually see other drivers winning more :P) I guess it's an irony to see an African-American driver winning in a sports rooted in the south on a weekend dominated by news about white supremacists. And it's the first race that Bubba returned to the series this season! For the cup race, Martin Truex Jr was dominating as usual but out-gunned by Kyle Larson at the last restart. Yup. It's a weekend for the young guns and underdogs.  

The same is (almost) true for the opening weekend of the English Premier League, with defending champ Chelsea beaten by the underdog Burnley and Liverpool tied by Watford. And the young guns of Man United shined in their game vs West Ham: the 24 year old Lukaku scored twice in his EPL debut for Man U. So did Martial and Pogba.

And the awful SF Giants actually went 6-4 for the last 10 games, even won 2 on the road! Welcome back, Panda!  

Tuesday, August 15, 2017

Looping through Multiple Databases on a M$ SQL Server

An instance of M$ SQL Server can host several databases. One application suite at work has objects scattered around many databases (because there are conceptually multiple applications that work together) I have a stored procedure that I need to debug but I don't know the name of the database. Fortunately, there is an undocumented SQL Server feature/stored proc called sp_msforeachdb. Check out its usage here.