Reference ClickOnce publish version

If you are trying to keep your About window in sync with the published version in ClickOnce, rather than the assembly version, you can reference My.Application.Deployment.CurrentVersion. However, this only works on the installed application, not in Visual Studio.


If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Deployment.CurrentVersion)
Else
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)
End If

How to move ToolStripMenuItems

Pretty basic stuff, but it can drive you crazy if you don’t remember how.

Move menu items

A Time To Love and A Time to Die

Orwellian and insightful. You know it won’t end well but still have to see it through.

Time To Love and A Time to Die

Sudden Mischief

Spenser gets a look at the past.

Sudden Mischief (Spenser)

The Last Dance

Fat Ollie gets it done.

The Last Dance

A Right To Die

A period piece that didn’t hold my interest.

A Right to Die

Pastime

“Spenser, rite of passage.”

Pastime (Spenser)

Into The Rising Sun

Pretty brutal first person accounts of the war in the Pacific.

Into the Rising Sun: In Their Own Words, World War II’s Pacific Veterans Reveal the Heart of Combat

The Killing Moon

Well written and a good read.

The Killing Moon

Crimson Joy

A rose is a rose by any other name.

Crimson Joy

A Torch To The Enemy

Some interesting first person accounts of the fire raids on Tokyo.

Torch to the Enemy: The Fire Raid on Tokyo (The Bantam War Book Series)

Too Many Clients

Not bad in the classic style.

TOO MANY CLIENTS (A Nero Wolfe Mystery)

Small Vices

Even a pro can hit a duck hook every once in a while. Parker takes a provisional.

Small Vices (Spenser)

The Underboss

Dated and dull. Lays the groundwork for their follow-up book about Bulger and the FBI.

The Underboss: The Rise and Fall of a Mafia Family

IE8 and HTTP 403.9 – Access Forbidden: Too many users are connected

I upgraded to IE8 and started getting 403.9 on my local machine during testing on XP with IIS 5.1.

Turns out, you now have to disable HTTP Keep-Alives in the IIS Admin properties for the local site.

Here is more info: Disable Keep-Alive

Sort javascript array by content length

I needed to sort an array by the length of the string values in descending order. JS has a lot of nice features and building your own sort order logic is one of them. To get the list in ascending order, just switch the comparison operator.

function sortByLengthDesc(a, b) {
if (a.length > b.length)
return -1;
if (a.length < b.length) return 1; return 0; } arrTmp = tmpText.split('<br>'); arrTmp.sort(sortByLengthDesc);

Nixonland

Finishing this book felt like passing a kidney stone. Ends abruptly with the 72 election. Some interesting insights.

Nixonland: The Rise of a President and the Fracturing of America

Madman on a Drum

Keeps a decent pace and doesn’t lose focus.

Madman on a Drum: A McKenzie Novel (Twin Cities P.I. Mac McKenzie Novels)

Tin City

Not bad. Dawdles in places but keeps a good clip overall.

Tin City (Mac McKenzie Mysteries)

The Evil That Men Do

Started out with some promise, but author quickly got flummoxed. Don’t waste your time.

The Evil That Men Do: A Jackson Donne Novel

« Previous PageNext Page »