Posts

c# script to delete very large second stage recycle bin items in sharepoint 2007

In SharePoint 2007, when item versioning is set to no limit for a document library, you could easily have a spiraling content database size.  When you try delete a ginormous item, it'll eventually get stuck in the second stage recycle bin, and you'll never be able to reclaim that database space or file space - a forced purging of the recycle bins through a UI operation will time out eventually, rolling back a huge transaction, probably freezing the site for your users - cue fire and brimstone. The solution is to run the following script off-hours.  Off hours helps minimize any potential blocks SQL server may issue against database pages as it goes around deleting the row content from alldocversions - from what I can tell, many I/O Page Latch locks are issued when SQL is deleting blobs, so to be nice to this script and run it off hours.  Compile it into a c# console application referencing the sharepoint dll. There isn't much for progress reporting included in the script...

sharepoint trick to edit "new item form" by adding to url

Image
Hide columns on NewForm, DispForm, EditForm in SharePoint list To remove columns from appearing on a display, edit item, and new item form in SharePoint lists, e.g.: The goal is to add some JavaScript into a Content Editor Web Part (CEWP) on the above page. To add web parts to any page within Sharepoint : On the URL of the form page you are, add to the end of it: &toolpaneview=2 (i.e. Or remove all the stuff (querystring) stuff at the end of URL and change it to DispForm.aspx?toolpaneview=2 . The page will then change to Edit Mode: From here, add a CEWP, content editor web part, to the page UNDER the form already on the page. This is very important, if will not work if the CEWP is not under the form. Modify the CEWP, open the source editor, and paste in: <script type="text/javascript"> var containers = document.getElementsByTagName("*"); for (var i=0;i<containers.length;i++) { if (containers[i].innerText == ...

Win 7 & SharePoint fix: webdav Explorer (windows explorer view's) slow performances issue

Since upgrading any client to Windows 7, SharePoint's Windows Explorer view got really really slow. Guess what, it has to do with IE 8's (maybe IE7 too) automatic proxy detection, not SharePoint.  You might experience this slowness connecting to any webdav server, including my iPhone's. Here is the fix: In Internet Explorer, open the Tools menu, then click Internet Options. Select the Connections tab. Click the LAN Settings button. Uncheck the “Automatically detect settings” box. Click OK and thank daniel cd  http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/600a9825-0ba1-4c15-93f6-fc99c64b4930 or chief oddball  http://oddballupdate.com/2009/12/18/fix-slow-webdav-performance-in-windows-7/

Grilled Thick Lamb Chops with Stout-Citrus Glaze

Grilled Thick Lamb Chops with Stout-Citrus Glaze Time:  45 minutes 1 cup stout of your choice 1/4 cup balsamic vinegar 1 tablespoon grated lemon zest 2 tablespoons fresh lemon juice Salt 8 thick (about 1 1/2 inches) lamb rib or loin chops 2 tablespoons olive oil Black pepper. 1 . Combine stout, vinegar, lemon zest, lemon juice and salt in a small, heavy-bottomed saucepan. Bring to a boil over high heat, then reduce heat to medium and simmer vigorously until reduced to about 1/4 cup syrup, 20 to 25 minutes. 2.  Meanwhile, build a fire on one side of a grill. When fire has died down, and coals are medium-hot (you can hold your hand 5 inches above grill grate for about 2 seconds), move enough coals to other side of grill to form a single layer, leaving most coals on hot side. 3.  Rub lamb with oil, sprinkle generously with salt and pepper, place directly over hot part of grill and sear well, about 2 minutes a side. Move chops ...

Semiya Vada from the South Indies

Ingredients : Channa Dal (coarsely ground) Chopped Onion Green chillies chopped Garlic chopped Ginger chopped Curry leaves Vermicelli (roasted) Cumin Fennel Salt Oil Method : Mix channa dal, salt, chopped onion, chopped green chillies, chopped ginger, chopped garlic and chopped curry leaves. Roll into balls Coat with roasted vermicelli and flatten into cakes Deep fry in hot oil Serve with a chutney dip

San Francisco Trivia for Drupalers

A friend of mine was in town for the DrupalConSF and asked me about some San Francisco history. Thus it seems appropriate to publish some of the lesser known historical tidbits about SF that I've been meaning to resend out for awhile. Hope you enjoy & learn about SF, or use this in a drinking game/trivia night, etc. Credits to Stacey Irvine - an amazing and curious person - from Parody , of the Dive Bar Club fame. san francisco trivia The Questions Answers Why was Lawrence Ferlinghetti arrested in 1956 on obscenity charges? He published Alan Ginsburg's Howl Why was Abe Warner famous for his Cobweb Palace at Meig's Wharf? He refused to do anything to hurt a spider, including sweeping away cobwebs Why is San Francisco Sourdough unique, and can't be made elsewhere? The yeast that gives it that unique San Francisco flavor won't grow anywhere else Why is it said that Colma has more dead people than live ones? That's where all the cemet...

Project management for Drupal consultants

Project Management for Freelancers by Crystal Williams .