Work
WCF & WebAPI JSON Dictionary
0Imagine you want to serialize a Dictionary<string, string> for wcf json output.
The JSON output would look like this:
[
{
Key: "key1",
Value: "value1"
},
{
Key: "key2",
Value: "value2"
}
]
But you want a correct JSON dictionary format:
{
"key1": "value1",
"key2": "value2"
}
(more…) Automated Web Deployment with MSBuild and MSDeploy
4If you are looking for an automated web deployment process you will inevitably come to MSBuild.
There are many tutorials out there how to set up a command line call for MSBuild but you wont find a documentation how to publish a generated package with MSDeploy.
But this is especially needed is you want to use “-setParam” for a tokenized (transformed) web.config file and wont / can’t change the SetParameter.xml!
(The names of the parameters for -setParam can be found in the SetParameter.xml file in the same directory as the Package.zip. They are also act as default values if not set in the command line call. )
So I wrote this quick tutorial how to get command line call for MSDeploy.
(Please consider that the paths you will later use are absolute / relative to the working directory.)
Step 1: Get the publish ready with MSBuild
Before we will get some further results please get your deployment call working.
msbuild.exe
SomeWebProject.csproj
/P:Configuration=Release
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://TargetServer/MsDeploy.axd
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=WMSvc
/P:CreatePackageOnPublish=True
/P:UserName=Username
/P:Password=Password
/P:DeployIisAppPath=TargetWebSite/TargetWebApp
Configuration: This is the configuration you will use eg. Debug, Release or a custom one
AllowUntrustedCertificate: You will need this if you do not have a valid certificate on the server
DeployIisAppPath: The name of the target website eg. “Default Web Site/MyWebApp”
TargetWebSite/TargetWebApp: Please consider the different usages below!
Step 2: Get the command line for MSDeploy
Append the parameter “/P:UseMsdeployExe=True” to the msbuild.exe call. If you do so, you will see the call in the console like this:
MSDeployPublish:
Start Web Deploy Publish the Application/package to https:/TargetServer/MsDeploy.axd?site=TargetWebSite …
Running msdeploy.exe.
msdeploy.exe -source:package=’C:\SomeWebProject\obj\Release\Package\SomeWebProject.zip‘ -dest:auto,ComputerName=’https://TargetServer:8172/MsDeploy.axd?site=TargetWebSite‘,UserName=’Username‘,Password=’Password‘,IncludeAcls=’False’,AuthType=’Basic’ -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -retryAttempts=2
Gotcha! This is the important MSDeploy command line call.
Step 3: Get the two things together
now we can split the automatic deployment of MSBuild into 1. create only the package with MSBuild and 2. only deploy with MSDeploy.
msbuild.exe
SomeWebProject.csproj
/P:Configuration=Release
/P:DeployOnBuild=True
/P:CreatePackageOnPublish=True
msdeploy.exe
-source:package=’C:\SomeWebProject\obj\Release\Package\SomeWebProject.zip‘
-dest:auto,ComputerName=’https://TargetServer:8172/MsDeploy.axd?site=TargetWebSite‘,UserName=’Username‘,Password=’Password‘,IncludeAcls=’False’,AuthType=’Basic’
-verb:sync
-disableLink:AppPoolExtension
-disableLink:ContentExtension
-disableLink:CertificateExtension
-allowUntrusted
-retryAttempts=2
-setParam:’IIS Web Application Name’=’TargetWebSite/TargetWebApp‘
Have a nice day.
Sunrise Mood Logo
0As i saw the advertisement from Pro7 for the “Comedy Dienstag” i want to reproduce this effect:
This is my interpretation:
The colors and the strong reflection is my personal taste.
The .blend file can be downloaded HERE.
Sculpt-Brush Tips
2With Blender 2.59 we got a very new and stable version to play with.
While exploring the new features i found two new functions!
2D Tracking with RotoBezier
0This was entirely done with Blender 3D.
Addons:
.) 2D Tracking (Tomato Branch)
.) RotoBezier
The free Footage comes from hollywoodcamerawork.us
The whole process lasts ~4 hours:
(30 min 2d tracking, 15 min compositing, the remaining time: first time ever roto scoping^^)
for the first time i think i was realy fast
i can provide the .blend file if someone want it.
360° Camera
2I was looking for a 360 camera attachment and found one, but it is very expensive to ship outside from the US, so i decide to create my own… in blender
The .blend file can be downloaded here.
Hanging Objects Effect
0
Do you want to archive an effect like this? You found the solution.
You can follow the full guide or skip the optional steps.
360° Panorama Rendering
16I was searching for a way to create a panorama shot but just found some wired information’s about PartX properties.
Then i came to a post where it was described how it works with blender 2.5.
Update: Thanks to Artorp to helping me to understand my mistake – it is NOT a 360° render because blender cannot do this.
But now i have more accurate settings for a better render this way.
The setup is now fairly easy:
- place the camera with horizontal alignment between the objects
- set the focal length to 5.050mm
- enable the panorama option
Next we have to setup the render options:
- In the performance tab extend the Tiles X and Y to 360 and 180.
(This will increase the render time but reduces the count of artifacts)
With these settings, you get a result like this:
Happy blending
A dull Car Tire
0I’ve done a new render, a car tire.
I know, this is dull but i have to
please critique it, i have to know the truth







