Posts

Anamika's Chilly Paneer

Image
This is an awesome recipe from my friend Anamika , who runs the delicious Kasa restaurant. Back in 2004, I took her Indian cooking classes to shore up that need, but now that she's a famous chef and restaurateur, her schedule is tight. Every now and again, she offers a class, which I highly recommend. Ingredients  Paneer – 1 packet – sliced Red Bell Pepper – 1 – sliced Green Chillis, finely chopped – 4 Soy Sauce – 2 tbsp Vinegar – 1 tbsp Plain flour – 2 tbsps Cornstarch – 3 tbsps Black Pepper, freshly ground – 1 teaspoon Green Onions, finely chopped – 2 bunches Garlic, finely chopped – 2 tbsp Ginger, finely chopped – 2 tbsp Sugar – pinch Oil to fry Salt to taste Instructions 1. Mix the paneer with the plain flour, 2 tbsp cornstarch, black pepper, ginger and soy sauce. 2. Fry the paneer pieces in hot oil and drain. 3. For the sauce, heat a little oil in a pan, add most of the spring onions, bell pepper and garlic pieces and fry until light brown. Make a ...

Reading List for Survivalists

Image
R ecently I came across a blog post that had a list of (physical) books that would be important to have on hand just-in-case.  It reminded me of the beautiful work by Jerry Pournelle and Larry Niven , Lucifer's Hammer , in which a comet slams into the earth and the ensuing struggle of survival is documented in gorgeous detail.   The tone of life after "Hammerfall" is one where those who do not have valuable professions for a world without power or civilization are relegated to being manual laborers, regardless of their socioeconomic status or profession before the Fall. One of the interesting things woven throughout the book is a subtle dropping of a list of books. I'll include that list in a follow-up post here, so watch this space.  For now, here is the aforementioned blog post, from codenameinsight : The Survivalist's Bookshelf When it comes to preparing for disaster, almost everything you need to do/know/learn can be found online.  There may be a ...

Shutdown Services Script for Sharepoint

Based on the blog post by Rafelo " Stopping and Restarting WSS 3.0 and Microsoft Office SharePoint 2007 (MOSS) " I wrote a quick cmd script to automate the hunt-and-peck task of shutting each of these SharePoint services down one by one. net stop w3svc net stop iisadmin net stop ssosrv net stop DCLauncher net stop DCLoadBalancer net stop OSearch net stop SPAdmin net stop SPSearch net stop SPTimerV3 net stop SPTrace net stop SPWriter iisreset /stop Why ever would we do this? In my case, I'm refreshing the content in the pre-production environment with the production content - and using a database restore of the related content databases to do this. SQL Server requires exclusive access to the database in order to overwrite it from a backup, so this is a pretty good way to drop all connections from the SharePoint IIS webserver. And here is the script to bring it all back up (in the opposite order) iisreset /start net start SPWriter net start...

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 ...