Archive for March, 2009

Cleopatra – Last Queen Of Egypt

About half the book is about lineage and Egyptian mythology. Some interesting chapters.

Cleopatra: Last Queen of Egypt

Smoke

Author enjoyed writing this one. Drags in places.

Smoke

The Last 100 Days

Packed with detail. A bit dated, but not bad overall.

The Last 100 Days (Final Days of WWII in Europe)

Ayn Rand

“When money ceases to become the means by which men deal with one another, then men become the tools of other men. Blood, whips and guns or dollars. Take your choice – there is no other.”

SSMS 2008 stops showing 2005 dbs

I started getting this error out of the blue when trying to access a hosted 2005 db through SSMS 2008.

The server principal “db1” is not able to access the database “db2” under the current security context. (Microsoft SQL Server, Error: 916)

No databases would display under the databases tab and every refresh would result in the same error. I could see the dbs in SSMS 2005.

The fix is pretty weird. Click on the Databases folder, then View / Object Explorer Details. Then right click in the column headings and un-select Collation. Refresh the folder and the dbs should be there.

force __doPostBack generation

Sometimes you want the __doPostBack function to be forced on a aspx page.

Add this line in your Page_Load event:

Page.ClientScript.GetPostBackClientHyperlink(New Control(), String.Empty)

onMouseOut for nested DIV

This was making me crazy for a bit. The onMouseOut event fires for the parent DIV when moving over the child DIV elements.

I had several custom menus nested in divs and I only wanted to hide the entire parent DIV block when the mouse left the parent.

Came across the handy script below which works like a charm.

js for mouse out

What’s So Funny?

The Dortmunder series is pretty good.

What’s So Funny?

Fixed header for repeater control

Here is a simple solution to get an excel like fixed header at the top of a repeater control.

Fixed headers

Southern Storm

A lot of details, but not much new. Good read overall.

Southern Storm: Sherman’s March to the Sea

e.item.DataItem causes invalid cast exception

I kept getting an exception when attempting to cast e.Item.DataItem to DataRowView in a repeater control ItemDataBound event.

Issue was I was binding a DataReader, which requires DBDataRecord in System.Data.Common. Dataset uses DataRowView.

Microsoft KB

If the data source is a DataReader object, you must cast e.Item.DataItem as type DBDataRecord (from System.Data.Common) in the event handler. If the data source is a DataTable, you must cast e.Item.DataItem as type DataRowView.

Bleeders

Not bad. Doesn’t stuff it with fluff.

Bleeders: A “Nameless Detective” Novel

John Keats

Don’t be discouraged by a failure. It can be a positive experience. Failure is, in a sense, the highway to success, inasmuch as every discovery of what is false leads us to seek earnestly after what is true, and every fresh experience points out some form of error which we shall afterwards carefully avoid.

The Burgler Who Studied Spinoza

Moves along. Nothing heavy.

The Burgler Who Studied Spinoza

The Honor Farm

Interesting premise. Decent ending with a lot of muddle in between.

The Honor Farm

Money For Nothing

Not much going on in this book.

Money for Nothing