Main menu:

Site search

Archives

Categories

Archive for 'Programmieren'

Google Maps Route Planning integrated in your website

It took me some searching to find out how to integrate route planning with a google map into a customers website.

Here is a good tutorial on how to integrate route planning in your website: http://dreamdealer.nl/tutorials/getting_directions_with_google_maps.html

More information on how the programming interface for Google Maps looks at Google. Obviously, much more is possible!

Where to start an Incremental Crawl in SharePoint

In a SharePoint environment, the content is crawled automatically from time to time according to a set schedule. But sometimes, e.g. when you are developing a SharePoint solution, you want a crawl to happen right now. These are the steps you have to take:
  1. Go to the central administration of your SharePoint Server
  2. On the left side under ‘Shared Services Administration’, click on ‘SharedServices1′ or an equivalent of it
  3. In the area ‘Search’, click ‘Search Settings’
  4. There, click ‘Content sources and crawl schedules’
  5. Finally, find the arrow on the right end of the name of ‘Local Office SharePoint Server sites’, click it and start the crawling. Attention: If you start a Full Crawl, it may be that you have to wait a really long time.

SharedServices1

Search Settings

Search Settings

Content sources and crawl schedules

Content sources and crawl schedules

Start Incremental Crawl

Start Incremental Crawl

SharePoint: Adding top bar link

If you want to add a Site/Link to the top link bar, you follow SiteSettings/ Look and Feel/ Navigation and then it is the Global Navigation we are looking for. Mark it, click “Add Heading” and go.

Global Navigation in SharePoint

Global Navigation in SharePoint (top link bar)

Global Navigation

Further advice can be found e.g. at the Microsoft Homepage.

Restoring Right Click/New/Text Document

Not knowing why, one day the right click/New/Text Document was gone.

I tried solving it with adding the ‘ShellNew’-Key to HKEY_CLASSES_ROOT/.txt as described in many places, but the problem was not resolved.

On http://www.dougknox.com/xp/file_assoc.htm they have registry fixes, the one called “TXT File ASsocation Fix” solved my problem.

Where is msbuild on Windows?

Running msbuild on a normal developer pc can be a bit confusing. The shell does not recognise the command and if you do a search you don’t find it. But if you do the search including all non-indexed locations you will it in C:\Windows\Microsoft.NET\Framework. So msbuild is not a program in the programs folder, it is a utility in the .NET folder.

If you want to use it, there is a simpler way, Microsoft Visual Studio 2008 comes with a customized console that you can find here:

Location of the Visual Studio command line tool

Location of the Visual Studio command line tool

And in that console, msbuild is recognised as a command.

Eine XML-Datei mit einer XSLT-Datei verbinden

Ganz oben im XML die folgende zweite Zeile einfügen:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="docu.xsl"?>

Powershell: First thing to do

If you get errors like:

YourScript.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.

or just if Powershell was installed on a new machine you normally have to set to Execution Policy to a reasonable grade.

For home users, just type
Set-ExecutionPolicy Unrestricted
That’s it.
Further information can be found at many places, e.g. here.


And by the way, the path to the Powershell is the following: C:\WINDOWS\system32\windowspowershell\v1.0\

True and False in the Powershell

How to assign a boolean value to a variable? Easier than you think!

$true und $false are built-in variables. (They are read-only, by the way). So you can write:$yourTrue = $true

Powershell comment

#

Immediate Window (Visual Studio)

A good introduction into the immediate window can be found at the msdn.