Feeds:
Posts
Comments

Archive for the ‘Tools’ Category

The Sharepoint team released a handy tool that helps you detect incorrectly (read: not) disposed objects.  It provides assistance in correctly disposing of certain SharePoint objects to help you follow the published best practice.

Best practice is to dispose you objects that inherit from the IDisposable interface.  There is more info  about disposing objects in SharePoint on the msdn site. Knowing when to dispose ( or when not to dispose)  can be tricky sometimes.

So when to Dispose? Shahil has 3 great rules to live by

1) Do not dispose objects you didn’t create. In other words, in a feature receiver, if “Parent” is SPWeb or SPSite – don’t be callin’ dispose on that. You didn’t create that object, and after your feature receiver is done, parts of the SharePoint framework may still need that object. This rule applies to general .NET.

2) Dispose is like a pretty girl, if you see it, call it… but don’t break rule #1. i.e. don’t call a pretty girl that isn’t confirmed unattached, .. if her large mammalian boyfriend finds out, he may knock your teeth out. This rule applies to general .NET as well.

3) If you call SPSite.Dispose, it will automatically call Dispose on all the contained SPWebs, thus unless you have an extremely borderline crazy logic that creates 200 SPWebs that you must dispose manually out of band, you should simply call SPSite.Dispose. This wasn’t the case in WSS 2 mind you!

On a side note: I recommend using “using” statements to dispose of objects (it is the easiest), but try catch blocks work also.

You can download the SPDisposeCheck tool here : http://code.msdn.microsoft.com/SPDisposeCheck

Read Full Post »

Haven’t we heard it before. You installed SharePoint just to play arround with it. And suddenly , before your realise it, your small SharePoint installation based on SQL Express starts living it’s own life. For some reason managers tend to be brilliant in inventing quick and dirty SharePoint websites.

After a while the SQL Express database limit kicks in and an SQL upgrade is inevitable.

Luckly the developers at microsoft also have encountered that special breed of managers and they have provided us a simple setup parameter to upgrade your SQL Express to your new SQL SKU (Standard or Enterprise).

Take your offical MS SQL Server CD. Open a command window. And start the setup with the upgrade parameter.

D:\setup.exe -SKUUPGRADE=1

Ofcourse this can be used for every SQL Express setup. You don’t need to have SharePoint installed to make use of this parameter.

That’s all there is to it.

Read Full Post »

update 11 May 2011: Unfortunately Reflector is no longer free since March 2011. Luckily JetBrains created a new decompiler that is free. You can find more information here:
http://lawo.wordpress.com/2011/05/11/tools-the-free-decompiler/ or on the JetBrains website.

-end update-


One of the most useful and indispensable pieces of software in my entire .NET toolkit. During SharePoint programming I use it mostly for lookup the full assembly names of dll’s. It’s also handy when you want to  disassemble .NET code.

Most people know this tool as the Lutz Roeder .NET Reflector. Nowadays the development is in the hands of the company Red Gate.  Lutz has reached an agreement with Red Gate so they continue the development and Lutz can focus on other pet projects. :)

MSDN magazine named it “one of the 10 must-have tools every developer should download now.

Visit Red Gate site here

Read Full Post »

Tool : U2U CAML Builder

When you need to program a CAML query to a query for items in SharePoint you will quickly run into the complex wonders of CAML. 

Luckly for us Karine from the Belgian firm U2U has created an easy to use GUI for creating CAML queries by just clicking and selecting the needed lists, filters, sorts etc…

Download it here.

Read Full Post »

Lately I had some questions from a friend that also bought a Macbook pro but (accidently) bought the 64bit version of Vista.

Vista 64bit is not supported by Apple’s bootcamp. Vista will install properly but the drivers provided by Apple are not 64bit ‘capable’. The good news is. If you have some technical (Windows) background you can download the needed drivers from the hardware manufacture website.

Main problems occur with WIFI, bluetooth and the key mapper (eject button etc..) drivers.

I found a nice list at http://forum.notebookreview.com/showthread.php?t=149395 and decided to recompile the list with my own experiences and put it here for future reference ;-)

Apple bootcamp drivers overview for Vista 64bit (x64).Video
Video is currently supported. You can download the lastest 64 bit drivers from the nvidia site.

 

Audio
Audio is currently supported. Download the latest RealTek drivers from the realTek driver download site

Keyboard
You can support a variety of Keyboard functions by installing Input Remapper. Make certain you install this after connecting to the network and downloading windows updates, or it will break while attempting to uninstall nonexistant drivers. Also, be certain to disable Driver Signing beforehand.

Bluetooth
Is not supported. But this post on the apple forum tells you how enable bluetooth support in Vista x64 on your Macbook. Apple Forum. I did not test this. Looks more like a hack to me. So you might run into aother problems.

TrackPad
Though the trackpad works, it has none of the useful functionality that OS/X provides (such as double tap right click)

iSight
Not supported. Some claim that using the default Vista USB cam driver does the trick.

ExpressCard
Untested.

Fans
Supported with Input Remapper

Suspend and Hibernate
Not currently supported.

Wireless
Use default Vista drivers.
Or Mac has the Atheros AR5008 Wireless Network Adapter. The Atheros v7.3.1.127 Vista x86/x64 should work. Install the driver through the Device Manager.
If that doesn’t work try replacing the INF with the Atheros x64 modded INF. Or try some of the other Atheros drivers. Please provide feedback.

Read Full Post »

« Newer Posts

Follow

Get every new post delivered to your Inbox.