Next Stop Wonderland

This 1998 movie from Director Brad Anderson was a surprise. It is a fresh, Woody-Allenesque drama (but set in Boston) that had me laughing and interested the entire 104 minutes.  In fact, my wife and I enjoyed it so much we watched it twice this week. And we’ve talked about buying a copy for our collection.

It’s about a young nurse (Hope Davis) who is dumped by a radical activist (played by a young Philip Seymour Hoffman). Her mother (the very funny Holland Taylor) places an ad in the Personals for her and hilarity ensues while she keeps just missing a young plumber-turned-Marine-Biologist (Alan Gelfant).

A very enjoyable flick for the whole family.

Take Shelter

Jeff Nichols 2011 movie Take Shelter is different. Not what I was expecting at all and yet it kept drawing me back while my wife watched it. I kept trying to go back to my writing but I ended up watching the whole thing. There are the obvious themes of coping with mental illness and the responsibility of supporting and protecting a young family but I saw more here. Nichols deftly investigates the lines between prophecy and madness. What is the distinction? In this case they ride on whether the apocalypse happens or not.

And there is some great acting here. Especially from Michael ShannonJessica Chastain and Shea Whigham. Even the child actress, Tova Stewart, was believable.

A subtle but interesting film that will leave you thinking. If that’s your cup of tea then I recommend it highly.

Beadboard in a Cemetery

So how is it that you find yourself walking through a cemetery on a dark night with two 4 by 4 panels of beadboard?

It started up innocently enough actually. My wife and I went to Home Depot to pick up some home improvement (that’s a very hopeful word when you’re not the best wood worker) supplies last night. So we take our paint, brushes and a 8 by 4 foot beadboard and there we stand a little confused as we look at our new Chevy Cruze in the parking lot and then back at the beadboard. Hmmmmm.

So we head back in and have the helpful guy with the orange apron cut the panel in two — we need two panels anyway. When we get our noisy trolley back to the car we still can’t fit them in. After sending my wife to the next stop in hommage to our money pit I returned to the store for the third time. I purchased some work gloves, as it was a cold night, and then embarked on my way home.

It was only a few kilometres to get home anyway. In fact, a leg of the trans-Canada trail happens to pass right by the Home Depot in Guelph starting beside a railway line. I’ve biked this path many times. And only a few metres from the road the trail dekes into the Woodlawn Cemetery along one of the narrow roads through it that parallels the railroad.

So there you go. That probably explains a lot actually. I could say I didn’t know about the van a friend of mine told me I could rent there to bring stuff home. Or I could probably have had it delivered. Or called a friend. But not me. I chose a different path, through a dark cemetery on a cloudy night.

Anathem

AnathemAnathem by Neal Stephenson
My rating: 5 of 5 stars

It’s hard to encapsulate a book that is so large in scope and so enjoyable to read. Your intellect revolts at trying to peg it down by mere description and emotionally… well… I just didn’t want the thing to end. When I found, on his site, someone had actually been inspired enough to create music (http://nealstephenson.com/anathem/music….) for Anathem I was amazed but, now that I’m done, I understand.

What can I say that you can’t read elsewhere. I might warn you that Stephenson is a master world builder and so it takes effort to get out of this world and into his. But, by God, it’s worth the effort!

View all my reviews

SQL Server database file size

Keeping track of database size and growth is a critical part of a DBA’s job which I wrote about in an earlier blog post. But now I have improved my scripts that reveal the status of all my db files (I say ‘files’ as each SQL Server database is made up of at least two files).
Many of my db’s are set to autogrow but I also have maximum sizes that I allow these to grow. This is important to me because I want to know about out of control database growth and not just let them fill up my storage. So I need to know, periodically, where my db’s are at. The 25% is arbitrary, you can pick any number that works for you. Also, if you have HUGE db’s you may need to adjust the decimal precision for the output.

Here’s my script:

--all dbs over 25% full with sizes too
select db.name as [db_name], mf.name,
'dbSizeinMB' =
cast (cast (mf.size*1.0/128 as decimal(9,2)) as nvarchar(30)),
'MaxSizeinMB' =
case mf.max_size
when 0 then 'no growth is allowed.'
when -1 then 'autogrowth is on.'
when 268435456
then 'log file will grow to a maximum size of 2 tb.'
else cast (cast (mf.max_size*1.0/128 as decimal(9,2)) as nvarchar(30))
end,
'PercentageSize' =
case mf.max_size
when 0 then 'no growth is allowed.'
when -1 then 'autogrowth is on.'
else cast (cast(((mf.size*1.0)/(mf.max_size*1.0))*100 as decimal(9,2)) as nvarchar(30))
end
from sys.master_files mf, sys.databases db
where mf.database_id = db.database_id and ((mf.size*1.0)/(mf.max_size*1.0)*100) > 25.0
order by db.name

Of course you don’t always have time to run a script to check up this so I have a maintenance plan set up with this content that e-mails be the report every day at 6AM:

--all db files over 25% full with sizes too
DECLARE @tableHTML NVARCHAR(MAX) ;

SET @tableHTML =
N'<H1>db file Percentage Size Check</H1>' +
N'<table border="1">' +
N'<tr><th>db_name</th><th>name</th>' +
N'<th>dbSizeinMB</th><th>MaxSizeinMB</th><th>PercentageSize</th></tr>' +
CAST ( ( SELECT td = db.name, '',
td = mf.name, '',
td = cast (cast (mf.size*1.0/128 as decimal(9,2)) as nvarchar(30)), '',
td = case mf.max_size
when 0 then 'no growth is allowed.'
when -1 then 'autogrowth is on.'
when 268435456
then 'log file will grow to a maximum size of 2 tb.'
else cast (cast (mf.max_size*1.0/128 as decimal(9,2)) as nvarchar(30))
end, '',
td = case mf.max_size
when 0 then 'no growth is allowed.'
when -1 then 'autogrowth is on.'
else cast (cast(((mf.size*1.0)/(mf.max_size*1.0))*100 as decimal(9,2)) as nvarchar(30))
end
FROM sys.master_files mf, sys.databases db
where mf.database_id = db.database_id and ((mf.size*1.0)/(mf.max_size*1.0)*100) > 25.0
order by db.name
FOR XML PATH('tr'), TYPE
) AS NVARCHAR(MAX) ) +
N'</table>' ;

EXEC msdb.dbo.sp_send_dbmail
@profile_name ='My Profile',
@recipients=N'me@provider.com;you@provider.com',
@subject = 'MyServer db files over 25% max size',
@body = @tableHTML,
@body_format = 'HTML' ;

This applies to SQL Server 2005 and newer.

Cryptum

Cryptum (Halo: The Forerunner Saga, #1)Cryptum by Greg Bear

I admit I am a Halo fan but since his novel Eon I’ve been a Greg Bear follower. I was surprised but sceptical to see these two put together but I was willing to give it a chance.

The first few chapters didn’t make sense at first since it implied space-faring humans were involved with Forerunners 100,000 years ago. But eventually that was explained and the idea grew on me.

It’s no Eon, but that may not be fair as it isn’t a pure Bear invention. I certainly enjoyed it enough to want to read the next in the trilogy. I liked the revelation at the end.

Even so, I’d say this is only for diehard Halo fans.

View all my good reads reviews