Archive

Archive for August, 2008

from the ‘cyclemonkey’ dept:

August 27th, 2008
Comments Off

So I said to myself this summer, “Self, you will ride your bicycle to class as often as you can this semester.” And my self replied, “Sure, sounds great — especially since we have that commuting bike …” And tonight I did, I rode in. It’s about 12 -14 miles each way, depending on which bridge I use.

Only thing is, on my inaugural school commute, I crashed. Nasty spill, too.

I was coming down a hill on 3rd Ave, headed North to Hunter, and about to cross 41st St. The light was green, there was no traffic … but a rise in the road was hiding a nasty pothole. The front end went up, bounced off the bottom, the bars crossed up, and the front tire came down perpendicular-like. And just like that, I was flying!

Flying is a wondrous sensation, and I actually remember flying through a quarter of the intersection. Unfortunately, I remember hitting the ground as well, with my chest, stomach, and all four joints. And I remember sliding about 5 or 6 feet as well. Owie. I also lost a shoe somewhere in the bouncing process. That part’s always hilarious. Why do we always lose shoes?!?!

Must’ve been going about 25 when I hit (I came down a hill, remember). 25mph to zero, deceleration due to friction, asphalt on flesh. Mmm. Good news though, a samaritan rushed up and asked if I was okay, and helped me out of the intersection. Cars wanted to go through me to get to their destination, and all. :) Once I caught my breath he helped me up, walked my bike to the side of the road, and even asked if I wanted an ambulance. I had to chuckle at that, being an EMT and all, and healthcare professionals make horrible patients.

I checked myself over, and I was able to walk. Both knees had a little rash, and the left one was throbbing. That one was going to be trouble. The left elbow had minor scraping, but the right … ooh, I lost a lot of skin on that one. My iPod nano was toast, I landed on it when I bounced (well, it still plays music, but the screen is dead and cracked). The bike, as it turns out, was unharmed. Not a scratch. Both wheels true, bars straight … weird. I saw it tumbling on the ground next to me.

So I hopped back on and pedaled the 30 or so blocks left to Hunter, enjoying my adrenaline high. All the MTB crashing must’ve prepared me well. When I was in class, the adrenaline started to fade — my arms were shaking a bit as I was taking notes. But I had lots of sympathetic attention from the lovely ladies in my class, and I have a great story, so it’s all worth it. :)

I’m icing down the left knee now … hopefully I can get the egg downsized before tomorrow!

Author: matthew Categories: cycle ops Tags:

from the ‘geeks of the world, unite’ dept:

August 20th, 2008
Comments Off

Arrgh. I’ve spent the last two days wrasslin’ with the idiosyncrasies of Sharepoint / MOSS 2007, trying to deploy the Microsoft Enterprise Library / Logging Application Block. I’d chosen the tool to “save time” (ha!) in developing a reusable logging tool, that can log to the EventLog, a flat file, a DB, etc etc … and it works great. But good luck trying to get it to work in a SmartPart or web part or user control in SharePoint.

Or, read on.

Basically you have to get SharePoint to see the assemblies. I’m using the Enterprise Library 3.1 (May 2007). So I installed the download on the SharePoint server (you may be able to just copy the assemblies you need, but what the heck). Then I copied the DLLs that the web controls reference from the Enterprise Library’s /bin folder into the GAC (you should know how to do this), making note of the PublicKeyToken, version numbers, etc.

The hairy part was figuring out what exactly needed to go into the SharePoint site’s web.config file (located in %wwwroot%/wss/VirtualDirectories/80). Here’s what I had to add, and where:

<configuration> <configSections>  <section name="loggingConfiguration"   type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings,   Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a" /> </configSections> <SharePoint>    <SafeControls>   <SafeControl Assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0,    Culture=neutral,    PublicKeyToken=b03f5f7f11d50a3a"    Namespace="Microsoft.Practices.EnterpriseLibrary.Common" TypeName="*"    Safe="True" AllowRemoteDesigner="True" />   <SafeControl Assembly="Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0,    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"    Namespace="Microsoft.Practices.EnterpriseLibrary.Logging" TypeName="*"    Safe="True" AllowRemoteDesigner="True" />   <SafeControl Assembly="Microsoft.Practices.ObjectBuilder, Version=3.1.0.0, Culture=neutral,    PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Practices.ObjectBuilder" TypeName="*"    Safe="True" AllowRemoteDesigner="True" /> </SafeControls>  </SharePoint>  <system.web>    <securityPolicy>      <trustLevel name="WSS_Medium"    policyFile="C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12configwss_mediumtrust.config" />      <trustLevel name="WSS_Minimal"    policyFile="C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12configwss_minimaltrust.config" />    </securityPolicy>    <compilation batch="false" debug="false">      <assemblies>  <add assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a" />  <add assembly="Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a" />  <add assembly="Microsoft.Practices.ObjectBuilder, Version=1.0.51206.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a" />      </assemblies> </compilation>    <trust level="WSS_Minimal" originUrl="" />  </system.web> <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory=""  logWarningsWhenNoCategoriesMatch="true"> {copy this from your VS.NET web.config} </loggingConfiguration></configuration>

Hope this helps you … please not that this is not a complete web.config, it’s just the new bits that need to be added.

After that, an iisreset, and things were kickin’. YMMV.

Author: matthew Categories: geeks of the world, unite Tags:

from the ‘funniest thing i’ve seen today’ dept:

August 19th, 2008
Comments Off

I haven’t been blogging much these days, ’tis true. But rather than blame the MCATs, I give you …


I have been doing this very thing all summer. God bless you, xkcd, God bless you.

Author: matthew Categories: funniest thing i've seen today Tags: