Sign up

Websites and blogs of people that attended a Homebrew Website Club Düsseldorf.

A public list by dan.

lennybacon.com Valid

Update all Visual Studio instances equal or above 2017 unattended

I have created a new script to keep Visual Studio ut to date in an unattended manor - For instance by creating a schedulled task. This are the core features: Updates all editions and versions equal or above to Visual Studio 2017. Writes event log entries for each run, failed and succeeded steps. HTH

lennybacon.com Valid

JavaScript, Date and ISO 8601 part4

Her: How does your perfect date look like? Me: Well the only format I can accept is yyyy-MM-ddTHH:mm:ssZ (ISO 8601). Image by Tammy McGary If you were reading past articles you know I had fun with dates and JavaScript in the past (Part 1, Part 2 and Part 3). Today I revisited the issue as I was reviewing code at customer site. I ran my test again and…. All engines in all browser calculate the same date!

lennybacon.com Valid

Totally automated Team Foundation 2017 build agent setup

First of all set the default TLS Version for .net to 1.2: With Chocolatey a lot of things are easy to set up: Visual Studio 2017 Community Windows Installer XML Toolset Visual Studio Code GitVersion NodeJs Python2 Remote Server Administration Tools Now let’s modify visual studio and add some components, so that the node-gyp can compile popular packages. We could have used the windows build tools but they default to VS 2015 and the install location of python cannot be adjusted.

lennybacon.com Valid

Remote Debugging Chrome on Android with Windows

I’m an IPhone user. I like the device. I’m not a fanboy. I’m curious. So I got myself an HUAWEI P smart with Android Oreo (Version 8). Lets set up developer mode by following the android studio guide… Open the Settings app Select System (only on Android 8.0 or higher) Scroll to the bottom and select About phone Scroll to the bottom and tap Build number 7 times – Whaaaaat? Tap?

lennybacon.com Valid

W3C Server Timing Header and API

I used custom headers in the past to send some metrics over to the client–mostly for debugging purposes to quickly differentiate between client and server issues on slow web request and/or web application performance. While that was working out pretty well I like standards and even if I did not tell anybody I always wanted such a thing built into HTTP. A W3C standard is on the way: Server Timing

lennybacon.com Valid

Scheduled task to automatically delete Fiddler HTTPS interception certificates

I really like Fiddler, the web debugger. I like TLS. I develop software. Therefore I find the interception and decryption of secure traffic very useful. On the other hand I’m into security for a few years now and from that perspective it is a man in the middle attack. So you might want to allow this for the shortest period of time. Fiddler installs a Trusted Root Certificate and dynamically issues certificates for the requested targets for the requested host names.

lennybacon.com Valid

Register a file icon in Visual Studio 2017

Add an Icon as resource Add an imagemanifest Add a package definition Add the assets to the visual studio extensibility manifest Compile the extension, Install it, and add a file with the extension to a new project. Done

lennybacon.com Valid

Swallow GIT output in PowerShell run by Team Foundation Server because it’s STDERR which breaks the build

Imagine you want to commit and push a changed file during a build. Grant the user “Project Collection Build Service (DefaultCollection)” the following permissions on the repository: Contribute Read Enable the option Allow scripts to access OAuth token on the build. Set the variable system.prefergit to true on the build. Add a PowerShell-task to the build Run… The issue is that either a) GIT has no idea what STDERR is and writes success messages to the error stream

lennybacon.com Valid

Builds with conditional NuGet publishing in Team Foundation Server

For a nightly build it makes no sense to publish a NuGet package as no code changed and therefore the same GitVersion is calculated. Since version 2017 Update 3 the on premise version of Microsoft’s Team Foundation Server supports “Custom Conditions” on “Build Tasks” – but sadly not on “Task Groups”. Here is what you need to exclude a step from a scheduled build: and( succeeded(), ne( variables['Build.RequestedFor'], 'Microsoft.TeamFoundation.System' ) ) Here a screenshot of the condition in action:

lennybacon.com Valid

Using the Windows Credential Manager from MsBuild

Today I needed to make a web service call with authentication from MsBuild. Of course storing the credentials in plain text is not an option. The Windows Credential Manager User Interface can be opened by running the command: control /name Microsoft.CredentialManager There is also a command line interface: cmdkey.exe As the Windows APIs are not provided as wrapper through the Base Class Library (BCL) a NuGet package comes to help:

lennybacon.com Valid

Get latest MSBuild on x64 with Powershell

Today I wrote this very very easy script to determine the latest MsBuild file path on a x64 machine:

lennybacon.com Valid

Determine if the current TFS build is triggered by a Git Pull Request

Today I saw a nuget package that was build during a build that was validating a pull request being published to the package source in a team foundation on premise instance. So I used the TFS Build Variable Definition in combination with MsBuild Property Functions to figure it out. Here is the code:

lennybacon.com Valid

Interesting read: Keyboard vs. Mouse

Do yourself a favor and open in reader mode: https://danluu.com/keyboard-v-mouse/ Plus an addition for the German readers: http://www1.wdr.de/stichtag/stichtag4798.html

lennybacon.com Valid

Make a WebApplication project automatically publish on build

If you want to publish a Web Application project you can call MsBuild with parameters. Having a publish happen on each and every build - there is work to do. Visual Studio project files are MsBuild files since Version 2005. There is a way to force MsBuild and Visual Studio behave as requested. The project file needs to be edited slightly: <PropertyGroup> <PublishDestination>..\..\..\out\YourPublishDirectory</PublishDestination> </PropertyGroup> <Target Name="PublishToFileSystem" DependsOnTargets="PipelinePreDeployCopyAllFilesToOneFolder" AfterTargets="Build"> <MakeDir Condition="!Exists($(PublishDestination))" Directories="$(PublishDestination)" /> <ItemGroup> <PublishFiles Include="$(_PackageTempDir)\**\*.

lennybacon.com Valid

One time zone to rule them all

I just read an article published by YellerApp called “The Worst Server Setup Mistake You Can Make”. I’m running my boxes in UTC and wrote about issues in the past (here and there).

lennybacon.com Valid

Debugging Arquillian Tests in IntelliJ

Clone the tutorial repository from: https://github.com/arquillian/arquillian-examples In IntelliJ click File | Open and select the sub director named arquillian-tutorial. After the dependencies are resolve the project structure is shown. Now I can set a breakpoint in a test, right click the test file and click Debug ‘GreeterTest’: The stacktrace shows I’m debugging the test using the Arquillian stack. The test was executed in the embedded version of Wildfly as the console window reveals:

Mark Asbach - All Articles
• Mark

Carbon footprint and veganism

A while ago, a friend posted a video from Spiegel Online, in which the author claims that 18% of global greenhouse gas emissions were due to meat production, which would be more than the amount produced by transportation. He literally claims that "someone who eats less meat ...

lennybacon.com Valid

Install Microsoft SQL Server 2016 unattended

Automate all the things… Microsoft SQL Server 2016 Microsoft SQL Server 2016 Management Studio HTH, Daniel

lennybacon.com Valid

My Go Journey

I decided to start learning Go in March 2017. Follow my journey through this new blog.

lennybacon.com Valid

Moving to BlogEngine.NET and Windows Azure

This is my first post on the new blog engine and the new hosting environment. Over the next weeks I’ll try out how I can migrate all my posts since 2003. So far. So good. so what.