Posts

Nostalgia for SNL's Il Returno De Hercules

Image
Source: http://snltranscripts.jt.org/86/86nhercules.phtml Now that SNL has an official YouTube channel, I had hoped SNL would add the "Il Returno de Hercules" skit to the channel.  The skit was from from SNL Season 12 Episode 14. I was able to find the script for the skit at snltranscripts.jt.org.  And here it is for your viewing pleasure.  If SNL doesn't put this on YouTube, maybe someone can remake it and put it up. Il Returno de Hercules King Laetes.....Dana Carvey/Tom Davis (voice) Helena.....Nora Dunn/Jan Hooks (voice) Hercules.....Bill Murray Guard.....A Whitney Brown Announcer : [ over SCROLL ] "In the time known as the Heroic Age, many centuries before the birth of Christ, Greece was still a savage and uncivilized land. In these dark times, one man alone defended the helpless - the Mighty Hercules. For many years the mighty Hercules fought for the common people, until at length his rich diet and increasingly sedentary lifesty...

How to solve a Rubik's Cube

These instructions are based off of Dan Brown's YouTube Video.  I just put his video tips into writing.  I didn't spend time on explaining how to solve a single layer, because I can usually do that without using any algorithms.  It's always layer 2 and 3 that I could never seem to figure out. Part 1 Solving a single side: Ensure that the center pieces match up to the middle edge pieces of the side you are solving: https://www.youtube.com/watch?v=HsQIoPyfQzM Algorithms for side 1:         Fi U Li Ui         Ri Di R D Part 2: Solving layer 2 and layer 3. https://www.youtube.com/watch?v=IW_BBp3FPMQ How to solve the Rubik’s Cube 2)       Solve the 2 nd layer of the cube. a.        Flip solved side down. b.       Look in top layer for a middle edge piece that does not have the top center co...

Issues with OnWorkflowItemChanged

Image
I've recently had a few issues with using OnWorkflowItemChanged. 1) I found that adding OnWorkflowItemChanged seems to cause lock ups and delays in my workflow. I decided to use an alternative to OnWorkflowItemChanged or get rid of it from my workflow and utilize SharePoint event receivers. Workflow locks because of OnWorkflowItemChanged: http://blogs.msdn.com/b/yvan_duhamel/archive/2009/11/25/workflow-locks-because-of-onworkflowitemchanged-event-handler.aspx?CommentPosted=true#commentmessage Alternative to OnWorkflowItemChanged: https://www.thorprojects.com/blog/archive/2010/02/22/onworkflowitemchanged-and-workflow-event-delivery-problems.aspx I wasn't able to get the linked alternative to OnWorkflowItemChanged to work in a custom activity, so I wound up creating an event receiver for my list. Here's the code excerpts: Step 1: Create an Event Receiver A basic list event receiver before adding any code looks like below: using System; using System...

MOSS 2010: Run JavaScript OnSharePointReady

I was working a MOSS 2010 and a Business Connectivity Services (BCS) external list.  One of the columns was meant to be a link rather than just displayed as a string. So, I wanted to write a script to modify the Urls and change them to links via JQuery that I could add to the page via a Content Editor Web Part. The tricky part is that SharePoint dynamically loads the BCS external list, so you have to wait until SharePoint is done loading the list and generates the list on the page before making modifications to the DOM. After some searching, I found a link which referenced using the REST model. http://zimmergren.net/technical/sharepoint-2013-business-connectivity-services-talking-to-your-external-lists-using-rest http://msdn.microsoft.com/en-us/library/fp142380(v=office.15).aspx To add a function to run when the DOM is fully loaded: _spBodyOnLoadFunctionNames.push("YourOnLoadFunctionName");   Then in the function, you run the following to tell the cod...

Running an Active Directory Query Tool From Windows 7

Image
You can launch a Active Directory Query Window that let's you look up users in your domain by running the following command from the command prompt: %systemroot%\system32\rundll32.exe dsquery,OpenQueryWindow     You may be able to use this to update your AD e-mail information.  AD allows you to update your personal information, though you may not be able to change other user's information unless you have additional privileges.  

Opening the current SPWeb

Image
I used to open the current SPWeb like so:   using (SPSite site = new SPSite(SPContext.Current.Web.Url))         {             using (SPWeb web = site.OpenWeb())             {             }         } However, if you access a SharePoint site with a URL that isn't in the alternate access mappings of the server, then the above code will create an error. File Not Found.   at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)    at Microsoft.SharePoint.SPSite..ctor(String requestUrl)    at wdCalendar_Services_GenerateSampleData.Page_Load(Object sender, EventArgs e)    at System.Web.Util.CalliHelper.EventArgFunctionCal...

General steps and resources for setting up SSL Certificates and PKI infrastructure

Project: Set up a development web server environment which requires SSL and accepts client certificates.  The client certificates may come from a CA that is not immediately contactable, because the development environment is firewalled out of the CA network. Using IIS7.5 on a Windows 7 Ultimate workstation. General steps: 1) Install an SSL certificate for your web server to enable SSL.     a. I had a Certificate Authority server set up in my development environment.            Certificate Authority services come with Windows Server 2003 and above. You just need to enable the feature.      b. I requested a domain certificate from IIS7.5 Server Certificates feature which is located at the web server level of the IIS Managment Console.     c. Then I enabled SSL on IIS 7.5 at the web site level. http://www.iis.net/learn/manage/configuring-sec...