Zum PortalStatistikMeine LinksMein PhotostreamMein Xing ProfilMein FaceBookMeine Galerie
 
AboutEquipmentWeblogSit Back & Joy » 2007 » February
Weblog
 

Version Control at it’s best

Subversion LogoSince few days I’ve been using the open source version control system Subversion. This tool is handeled as the successor of the most common Concurrent Versions System (CVS). Subversion has several advantages compared to CVS such as versioning of folders, custom properties on every object and the new Eclipse powered client Subversive which is also freely available.

weiterlesen…

Recursive file search

CodesnippetFind all files of a given pattern, loop through the results and print out the name of each file:

dir *.doc -recurse | foreach-object -process { echo $_.Name; }

Loop through argument list of a script

CodesnippetAccess to command line arguments of Powershell scripts is very easy. Thanks to the new foreach statement looping through arguments is very easy too. Create a script with the following code:

myscript.ps1:
foreach ($argument in $args) {
echo $argument
}

Invoke the script with some random arguments:

PS >> c:\scripts\myscript.ps1 hello world this is a test

The output looks like:

hello
world
this
is
a
test

Simple if-statement

CodesnippetIf-statements are just like in many languages (like C#). Note that the comparison operators are different:

if ($args[0] -eq "foo") {
echo "Argument 0 is foo..."
} else {
echo "Argument 0 is not foo..."
}

Your first script in Powershell

Assumed you have successfully installed Windows Powershell on your computer you can start creating your first script. Here are the steps:

  1. Open Powershell
  2. Create a script (hello.ps1)
  3. Set Execution Policy
  4. Invoke the script

weiterlesen…

Want to have some Mac feeling on your PC?

RocketDock in action…RocketDock by Punk Software creates an application starting dock on your Windows Desktop similar to Mac OS X. It’s highly customizable and integrates smoothly with Windows. Since I’ve got this tool installed I kicked away my shortcuts panel from my windows taskbar.

How many VMs can be cascaded with VMWare?

The question is: how many VMs can be installed inside each other. How deep is the tree of VMs? Hmm… anyone should check this out :)

Syntax Highlight Test

This is a test for the new SyntHihol Plugin for source code highlighting written by Jay Tuley.

using System;
using System.Drawing.Imaging;namespace De.Speedesign.Graphics.Exif
{
public class ExifHelper
 {
 	public static PropertyItem FindPropertyItemById(int exifFieldId, PropertyItem[] propertyItems)
 	{
 		foreach (PropertyItem pItem in propertyItems)
 		{
 			if (pItem.Id == exifFieldId)
 			{
 				return pItem;
 			}
 		}
 		throw new Exception("Item not found in given PropertyItem Array!");
 	}
 }
}

Well I think it’s fairly nice but the text formatting is not what makes me satisfied. Perhaps I will give the good old pre-Tag a new chance :-)

using System;
using System.Drawing.Imaging;namespace De.Speedesign.Graphics.Exif
{
public class ExifHelper
 {
 	public static PropertyItem FindPropertyItemById(int exifFieldId, PropertyItem[] propertyItems)
 	{
 		foreach (PropertyItem pItem in propertyItems)
 		{
 			if (pItem.Id == exifFieldId)
 			{
 				return pItem;
 			}
 		}
 		throw new Exception("Item not found in given PropertyItem Array!");
 	}
 }
}

First Steps in Windows Powershell

Powershell IconMicrosoft proudly introduced the new Windows Powershell. This new command line interface to Windows should make Unix-Admins stop laughing about the automation capabilities of Windows systems.

Yesterday I started playing around a bit with this new “Supertool”. But after only a few minutes I realized the new shell is a very good idea but lightyears away from comparable Unix Tools. I just wanted to craft a little script that executes some tools and after that pipes some new configuration into an existing file. But i began to stutter when I saw the existing “getting started” documents about Powershell.

Well, the first contact with Powershell was not so amazing. Maybe we have to wait for some new good starting tutorials. Since I find the concept and ideas behind Powershell very interesting I will stay tuned for this topic…

Links:
Scripting with Windows Powershell
Windows Batch Scripting Tutorial :-)

A first look at Windows Vista

Screenshot of Windows VistaSince about two weeks I have installed the final version of Microsoft Windows Vista on my PC. My first impression was very good. The most amazing features are the search functions and of course the new Aero Desktop.

One word about hardware consumption of Windows Vista: my PC runs a P4 with 3.2 Ghz and Hyperthreading. It has 1GB of RAM and a 128 MB ATI X700 Graphics Adapter… and Vista runs very fine on it! After a fresh start it consumes about 450 MB of RAM (including some services started like Skype and my local Apache Webserver).

Click here to view the Screenshot Gallery

 

Suche im Blog

Letzte Kommentare

Achim (Strobist-Studio: Blitzsystem)
Hi. Also bei einem Cactus-System ist das ja egal. Da hast Du den Funksender auf der Kamera und für jeden Blitz einen Empfänger. Da kannst Du dann auch Typen mischen, weil die Blitze ja nicht mit ...
Claudia (Strobist-Studio: Blitzsystem)
Wie sieht das denn aus, wenn ich einen Nikon SB-900 hab. Kann ich den als Master für so alte Blitze wie SB-20 verwenden? Lg, Claudia
Rene (Mein Low-Budget Strobist Studio)
Also ich denke die Größe kommt immer auf den Einsatzzweck an. Ich selber habe noch ein kleineres Studio eingerichtet, da ich allerdings hauptsächlich Produkt- und Portraitaufbahmen mache, ist di...
Achim (Strobist-Studio: Blitzsystem)
Hallo Torsten, genau so ist es. Entscheidender Unterschied: die Blitze sind komplett manuell zu steuern (also i.d.R. Reflektoreinstellung und Blitzleistung). Über die Funkauslöser wird nur das A...
Torsten (Strobist-Studio: Blitzsystem)
Hallo, sehe ich das jetzt richtig, das der Funkauslöser Cactus Wireless Trigger V2s an stelle eines Blitzes auf die Kamera gesteckt wird und somit jede Kamera mit Blitzaufsatz nun mehrer Blitze tr...

Archiv

Jahr 2011 (4)
Jahr 2010 (13)
Jahr 2009 (29)
Jahr 2008 (70)
Jahr 2007 (42)
 
 
 
© 1999-2010 by speedesign.de - Alle Rechte vorbehalten
powered by Wordpress und dem SitBackAndJoy-Theme v1.5
Theme Icons (Diagona Iconset) by pinvoke.com

Entwickelt mit Eclipse auf einem Mac
Danke an Nicole für die ehrliche und schonungslose Kritik.