cloud.net

Monday, April 27, 2009

Fraud on Wall St. and every other financial st.

BILL MOYERS JOURNAL | William K. Black | PBS

Thursday, April 23, 2009

Redirect groups to a specific site or url

I created 2 web parts for aiding the redirection of users to specific area I would like to share with y'all.

  1. Group Page Redirector; this has a group property, a URL and redirect once property. If you belong to the selected group it will redirect you to the specified URL. This can be handy if you want to show specific content to a group; like an announcement or terms and conditions. Just add more web parts for other groups.
  2. SubSite Redirector; this doesn't any properties... it just checks which Sub Sites you have access to, and if you only have access to one it will redirect you to it.
They're both simple Web Parts with the source/project code and wsp. Also you can set them to Minimized and no Chrome, so that they're not visible.

Keywords: Sharepoint Redirect Redirector Web Part once Usage policy ToolPart[]

Tuesday, April 21, 2009

Item level permission checking web part

So you want to know what a specific user can and can't see in your SharePoint site?... well for that you'll need to perform an eye examination.

OK really you want to know what items/list/sites for which a specific user has access?
Well believe it or not you can't with the standard SharePoint tools, but it's a fairly simple exercise to create a web part that does, and to save time here's one I made before.


It's fairly simple... get the SPUser > Check what groups he/she belongs to > loop through all the lists > items then the sub sites...
I show an icon for SPBasePermissions instead of the usual Full Control, Contribute, ect. The tree goes down to items, but won't fetch them until you click on the list expand icon to aid performance.
Since I'm using SPUser it also works for forms authentication.
If you don't have permission to check permissions on an object you can set a web part property to show this or not.

In any event the whole project source is included, so feel free to play and recommend changes.

Keywords: Check User Permission Inherited Unique Access RenderPreText RenderPostText TreeNode PeopleEditor SPUser TreeView SPGroup HasUniqueRoleAssignments TreeNodePopulate


Thursday, April 2, 2009

Moving your Windows Installer Directory

I mostly work with Virtual Machines and I like to pre-allocating the disk size. When I created my VM I figured 10GB would be enough for C:\ with Win2003 Server and a couple of SDK's and if I needed more I could always add another drive. I was wrong.

After 2 years my faithful Win2003 dev VM is out of space on C: and I can't shuffle any more files around.

My C:\windows\installer directory is >2GB so this is my prime candidate to move. Luckily there are always solutions to problems... no I'm not going to delete the directory, or change my registry to point to a new location.
I'm going to add a symbolic link from C:\windows\installer to F:\installer.
  1. Download Junction from http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
  2. Copy OR move C:\windows\installer to F:\installer
  3. Delete all the files in C:\windows\installer
  4. Close all your Explorer windows
  5. Run > cmd> C:\junction C:\WINDOWS\Installer F:\installer
That should do it. I wrote a batch (run.bat) script to do the whole procedure.
@set src=C:\WINDOWS\Installer
@set trg=F:\Installer
::copy %src%\* %trg%
::detele %src%\*
move /y %src%\* %trg%
junction %src% %trg%
pause
This should work for most directories. The batch file should be in the same directory as junction.exe.

Tuesday, January 27, 2009

Unable to connect publishing blob caching.

01/27/2009 16:23:40.23
w3wp.exe (0x0114)
0x00E8
CMS
Publishing Cache
6p4o
Warning
Unable to connect publishing blob caching. Web.Config is not set up correctly. Cache is not valid. WebId is '1303494830', Url is 'http://vmmossdev:8088/_themes/myTheme/viewheadergrad_mt.gif'.

You may see the above warning in your event log, if the "BlobCache" configsection is declared without been defined... well I did, and I google and could find a single valid explanation.


The Fix: Just add a node in the node like...
<BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false" />

Thursday, January 22, 2009

Visual Studio 2008 extensions for SharePoint 1.3 Jan 2009 CTP

So here I was checking to see if there was a new VS Extentions for WSS, and Google revealed a link to: VSeWSS 1.3 and now with x64 support... woohoo.

Yeah what ever, my life is sad... but it helps us all along the way to an x86 free world.

Monday, December 8, 2008

Save the net, in Australia

Did you know the Government is proposing an internet censorship scheme that goes further than any other democracy in the world?

I've just signed a petition to prevent the scheme that will make the internet up to 87% slower, more expensive, accidentally block up to one in 12 legitimate sites, will miss the vast majority of inappropriate content and is very easily sidestepped. The government of the day may add any 'unwanted' site to a secret blacklist under the scheme.

Our Government should be doing all in its power to take Australia into the 21st century economy, and to protect our children. This proposed internet censorship does neither. Can you join me and take action on the net today to save the net?

http://www.getup.org.au/campaign/SaveTheNet/442
Thanks!