FeedCity logo

FeedCity

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

A public list by dan.

Daniel Pietzsch Verified Updates instantly via WebSub Supports Webmention Valid

It’s the time of year where I generally push my films to ISO 1600. And that means I now need to slightly readjust my brain again for guessing exposure.

And in April it’s all back to ISO 400 again.

Daniel Pietzsch Verified Updates instantly via WebSub Supports Webmention Valid

📄 Fuck you, Instagram!

I made a little bookmarklet to disable and hide Instagram’s login prompt and re-enable scrolling, so I can keep browsing Instagram web pages when I am logged out. I call it “Fuck you, Instagram!” or “FUI” for short.

lennybacon.com Valid

Machine Key Section validation and decryption key rotation on build

Rotating keys, making their lifetime shorter, decreases the attack window size and that is a good thing. For instance when using ASP.NET forms authentication the cookie can be encrypted when the protection-attribute is set to all – see here. I thought it would be handy to automate the rotation of keys during the publish phase of a web project. So here is a target file to be included into a web project.

Daniel Pietzsch Verified Updates instantly via WebSub Supports Webmention Valid

Went to see Machine Head yesterday. It was the “Burn my Eyes” 25th anniversary tour and so they played that album in its entirety, in the almost original lineup: Logan Mader on guitar, Chris Kontos on drums, and of course Robb Flynn. Would have loved to see Adam Duce, too, but I guess one can’t have everything. Anyhow: I had a great time, even joining a few circle pits.

Here’s the full show on Youtube.

Daniel Pietzsch Verified Updates instantly via WebSub Supports Webmention Valid

📄 New website

I have a new site! It’s truly indie now. No more reliance on Tumblr. And I’m pretty happy about that! So, danielpietzsch.com is going to be my virtual home for the foreseeable future.

lennybacon.com Valid

Updating Visual Studio Installer unattended, last episode, hopefully

I have written about keeping build agents up to date in the past and had issues with the vs_installer updating itself. Now again the latest updates were not deployed. After playing around with procmon and friend I found a way to remove its state, so that the installer thinks is starts from the beginning of time - so there is no update. To do so I delete a few folders before starting the installation.

lennybacon.com Valid

Generating AES256 Keys with PowerShell

PowerShell is a daily used utility in my tool belt. I like the accessibility, due to its command line interface, as well as it’s power, due to access to the underlying .NET Framework. Today I needed a AES 256 key with some entropy and therefore made use of the RandomNumberGenerator class. HTH Daniel

lennybacon.com Valid

Create a link to an UWP app to run as administrator

I’m a console enthusiast. I used to work with cmder over the last years. In general I was pretty happy. But the announcement of the Windows Terminal really caught my attention. One thing that annoyed me is the disabled checkbox, when creating a link, that does not allow to have it automatically prompt for elevation. So here is my work around. Open windows explorer and enter shell:AppsFolder into the address bar to open the apps folder:

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: