Archive for April, 2009
Posted on April 12, 2009 - by Rouslan Grabar
Личный опыт использования операционок Windows под Mac OS
Операционка Windows на интел Маке может присутствовать в двух видах:
- установлена на отдельный раздел при помощи утилиты BootCamp, поставляемой на DVD-диске MacOS X10.5 Leopard
- установлена в виде виртуалки под Parallels Desktop, VMWare Fusion (оба продукта платные) или под бесплатным опенсорсным VirtualBox
В первом случае вы работаете или в Mac OS X или переключаетесь в Bootcamp партицию для работы под Windows. Это реально не удобно, поскольку ребутить комп реально долго, как бы быстро эти ОСы не загружались.
Posted on April 10, 2009 - by Rouslan Grabar
Новое на MSDN: Подборка книг для WSS/MOSS разработчиков
Подборка книг на английском:
Прошу обратить внимание на то что, по указанным адресам нет ссылок на скачивание :) Но там есть ссылки на Амазон, а уже там можно ознакомиться с содержанием книги и по рейтингу определить какие книги действительно стоят усилий, затраченных на их поиск на разного рода книжных развалах.
Posted on April 7, 2009 - by Rouslan Grabar
Entry for Remix’09 IE8 Add-on Contest
My entry to Remix’09 IE8Add-on contest
Media info: Russian language, 16 Megs, 12 minutes
Alternate downloads: WMV 800×600 20 Mb WMV 320×240 8Mb iPod WMV 320×240 17Mb
If you like the feature and would like to support my contest entry, please submit your vote at the remix.ru site. The remix.ru site is a site operated by Microsoft Russia. You will need your Microsoft LiveID to cast your vote. Thank you.
Если вам понравилось мое расширение для узлов SharePoint и вы хотите поддержать мою заявку на конкурсе, пожалуйста проголосуйте на сайте remix.ru. Для голосования вам потребуется Microsoft LiveID. Спасибо!
Posted on April 4, 2009 - by Rouslan Grabar
Expect the unexpected to happen while using SPSecurity.RunWithElevatedPrivileges method
While building small feature that takes advantage of new accelerator feature in Internet Explorer 8, I’ve encountered a weird side effect of using SPSecurity.RunWithElevatedPrivileges method.
I used this method to be able to write IE8 OpenService Accelerator XML file inside LAYOUTS/Feature_Name folder. The code was using user’s current context to determine the Url of SPWeb object for which to create the XML file.
In my code I misplaced the scope at which I obtained the web’s Url and got unexpected results on the production server. Below is the snippet from my actual code:
//here is where I moved offending url variable initialization
string webPreviewUrl = w.Url;
Guid siteId = w.Site.ID;
Guid webId = w.ID;
SPSecurity.RunWithElevatedPrivileges(delegate
{
using (SPSite site = new SPSite(siteId))
{
using (SPWeb web = site.OpenWeb(webId))
{
//this is where I had my webUrl initialy
//string webPreviewUrl = web.Url;
...
}
}
...
});
When the buggy version of code was generating the XML file webPreviewUrl contained not the public address, but internal address of the web front-end. This is because the instance of SPWeb object is not equivalent and its properties differ for different users. When we obtain instance of SPWeb for account with Full Access rights, the instance is being set up like we are sitting in the server room and using the console to access the web server, hence the SPWeb.Url property contains local URL address in it.
PS: Please note the Guids outside the using statements. These Guids are there not by an accident! :)
Posted on April 4, 2009 - by Rouslan Grabar
Новое на MSDN: Developer Best Practices Resource Center for SharePoint Server 2007
Стал доступен центр ресурсов и инструкций для разработчиков на платформе SharePoint. Пока только на английском языке.
Developer Best Practices Resource Center for SharePoint Server 2007


