Category: Programming
-
Using cURL, BASH and Google oAuth to access Google Analytics
In this previous post, I used cURL (the command line version) to interact with Google Analytics. I wanted to do the same thing but using oAuth. I took a lot from this page, but there were a few things that I couldn’t get working, and a few things I didn’t know. Follow Steps 1-6 on…
-
Knockout alternate formattting
I was using KnockoutJS to loop through and display some data. I wanted to apply some alternate formatting on every other row. I used this syntax containing the MOD operation to achieve the formatting I wanted. The other thing I learned was that $index() is observable, so I can +1 it? I believe that is…
-
How to find the pid of your SharePoint site in Windows server 2008 (for Visual Studio attaching to w3wp.exe)
C:\Windows\system32\inetsrv\appcmd.exe list wp
-
How I am using a Delegate control, code in a Document library, and jQuery to customize SharePoint 2010
In this post, I showed how to put a delegate control at the top over every page, and in the control add the links to the jQuery libraries. This is nothing new, there are many articles that show how to do this. I took this a step further and I included code to do the…
-
Using cURL to pull Google Reader starred items – Part 1 xpath
A while ago, I wrote a post about using ruby to parse the xml feed of shared starred items in Google Reader. One thing that I did not like about this solution was that I could not get the URL AND mark the item as un-starred. Since I had been playing with REST in these two…
-
How to add custom CSS code to all SharePoint 2010 pages (CustomAction)
It occurred to me that you can add a CSS link to the top of each page using the same method that I showed in this post. The only thing you change is the code in “CustomAction”. The code would be”
-
How to add custom JavaScript code to all SharePoint 2010 pages (CustomAction)
There are plenty or articles on how to do this. This is more of a note for myself, as I have to “re-learn” this every time I need to customize SharePoint. There are 2 ways (that I know of) that you can add code to every page in SharePoint 2010, 1 by the AdditionalPageHead delegate…
-
Start Visual Studio form PowerShell
I am moving on to a new project – our migration from SharePoint 2007 to 2010. First thing I wanted to do was to upgrade my Solutions/Features from 2007 to 2010. I installed Visual Studio and started looking at how to recreate my Delegate JQuery Control (more on that later). The first thing I found annoying…
-
Deploy Visual Studio 2010 vai SCCM (silently)
I wanted to have Visual Studio 2010 on my machine. My motto is that if I have to install it, I should package it up in SCCM, so when I re-image, I can just press a button. Here were my steps. Nothing ground breaking in this post, but I wanted to document it for my…
-
Error: Request for the permission of type System.Web.AspNetHostingPermission failed
Every so often I have to go into some historical code to try and see what is happening. And every time I make the same mistake, I try to debug the code off my mapped user drive (I do everything in my user drive which is on a network share. And every time, I get…
