lennybacon.com
Recent content on lennybacon.com
Latest posts
Some Git
Configuration Rewrite history (rebase -i) with VSCode A rebase with VSCode does not work, as the editor window is immediately closed and the command is ended. Unless you add this to your config. [sequence] editor = code --wait --reuse-window Aliases Here are some aliases that I want to remember. Squash-commits I have two commits and thing they should be one. The message of the last commit is used…
Lexica Ultralegible
I stumbled over Atkinson Hyperlegible and ended up at Lexica Ultralegible in the search for a good readable font (barrier free for dyslexia).
Duesseldorf
Well, I moved to Düsseldorf (Germany). The capital of North Rhine-Westphalia and home of the Chaosdorf hackspace.
Feeding AI bots
I have been blocking AI from scrapping this blog since a while using the robots.txt. You can get a list of user agents at darkvisitors.com. Inspired by Melanie Kat, I added a rewrite rule to feed them bots. <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name='Give the AI bots some food' enabled='true' stopProcessing='true'> <match url='(.*)' /> <conditions…
AI
Environmental Impact -Bloomberg: Microsoft’s AI Push Imperils Climate Goal as Carbon Emissions Jump 30% - The company’s goal to be carbon negative by 2030 required to reduce emissions but they raised by 30% False positives BBC: I was misidentified as shoplifter by facial recognition tech - “One in 40 alerts so far this year has been a false positive.” National Library of Medicine: Can…
ES2022, Modules, ImportMaps and Content Security Policy
I really like that the days of AMD and CommonJS are over. Native modules can be used in the browser. Have a class and export it: class Library{ static sayHello(){ alert('Hello'); } } export default Library; Import it elsewhere: import Library from './lib.js' Library.sayHello(); Reference only the entry point file: <script type='module' src='./js/script.js' async></script> That’s it. Nice.…
European Court of Human Rights prohibits weakening of secure end-to-end encryption
On the 13th this month the European Court of Human Rights bans general weakening of secure end-to-end encryption with its verdict. Lastly, as regards the requirement to submit to the security services information necessary to decrypt electronic communications if they are encrypted, the Court observes that international bodies have argued that encryption provides strong technical safeguards against…
Trust and the Issues with context
Trust is important! It provides mechanisms in public key infrastructure (PKI) that keep our (digital) world turning. Windows and Linux follow different approaches. Both have their issues… The Windows world of trust Microsoft Windows has the Windows Certificate Store. One for the Machine (certlm.msc), providing the baseline, and another one for the User context (certmgr.msc). There are…
XML to markdown with XSLT
I’m currently reworking the process of how software documentation is produced. At the moment of writing we have many manual steps involved updating Microsoft Word document and finally exporting it to the portable document format (PDF). One of the steps is to copy a list of events including their identifiers, category, level and message, from an XML source to a Table in the word document. The…
View Transitions API
Last friday evening a had a show and tell with my long time friend and frontend guy Markus. He is currently building on astro and told me about the experimental View Transitions API. Today my RSS Feed contained a post by Geoff Graham which titles How to add the simplest View Transition to my site and does exactly that. TL;DR Put this snippet into your head, when you have a site that has pages.
Isolation's two sides of the same coin
If you look at the trending topics in information technology there is a tendency to spot: Isolation! What is the problem we are trying to solve? While camping this year, I rebuilt the process of how the documentation for a particular software can be written. Instead of the bulky non-comparable proprietary binary file, I wanted to write in markdown and manage changes with git along with the source…
ASN.1 Comparison
My daily work involves episodes of the men who stare at goats bytes. Often its not one bunch of bytes, it’s two. And I need to compare them. That means in two levels. First in structure, second in content. A normal byte comparewon’t do in such cases. I’ve written a lot of tooling for my every day life ever since. Also an ASN.1 viewer and editor. I thought about extending one of…
Datenschutz - Der zahnlose Tiger
Internationale Datentransfers Angemessenheitsbeschluss der EU-Kommission zu Datentransfers in die USA vom 10. Juli 2023. Der BfDi positioniert sich nicht gegen das . Die Stiftung Datenschutz positioniert sich nicht. Hendrik vom Lehn gibt am 10. August 2023 ein Webinar zum Them “Datenschutz im Ehrenamt”. Er geht auf Schrems ein und hat sogar einen Tweet von Snowden miteingepackt. Der…
Why are smart devices so dumb?
I would send a notification on the phone, when the scheduled job has not been fulfilled. Smart device on the market: A vacuum robot stuck, ran out of power, and its owner stumbles upon this condition by accident after two weeks of no vacuuming. They did not even put a power button on it so that you cannot „turn it off and on again“…
CSS Ellipsis
There are a few thing I’m constantly (whenever I need it in intervals of a few month) required to look up. CSS Ellipsis for text overflow is one of them. So this is kind of a not to myself - whenever I write something down it tend to remember it better. .trimmed-text{ text-overflow: ellipsis; width: 180px; overflow: hidden; white-space: nowrap; } The rules are: The element’s width must…
Running PowerShell as Scheduled Task without window popping up
Running tasks automatically and in the background is really helpful. When you are also actively working on the same machine windows popping up and stealing the curser focus is somewhere between annoying and “I want to throw things out of the window”. Because staying calm is important here are the arguments for powershell.exe to be placed in a scheduled task that dows not open a window.…
Using the Windows Credential Manager from PowerShell
I was automating some Azure DevOps tasks using a scheduled task and PowerShell and needed the ability to authenticate. As the credentials should not be in clear text in the script I wanted to use the Windows Credential Manager. [void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime] $vault = New-Object Windows.Security.Credentials.PasswordVault…
Beautiful CSS only Charts with Charts.css
Charts.css is a really nice CSS data visualization framework. It comes with a 71,719 byte size CSS file and allows to dynamically convert tabular data to beautiful charts by just adding a few attributes (like class and scope) Bar Example #20 Year Progress 2016 2017 2018 2019 2020 Here are the codes: #bar-example { height: 200px; max-width: 300px; margin: 0 auto; } <link rel='stylesheet'…
archive
Blockchain
Dan Olson: The line goes up - The problem with NFTs tante: The Third Web web3isgoinggreat.com The register: Blockchain study finds 0.00% success rate and vendors don’t call back when asked for evidence Time Magazin: The Man Behind Ethereum Is Worried About Crypto’s Future Crickey: Australian Dogecoin creator Jackson Palmer has denounced cryptocurrency as an “inherently right-wing,…
Responsive Disclosure Policy
Under the principle of Coordinated Vulnerability Disclosure, researchers disclose newly discovered vulnerabilities in hardware, software, and services directly to the vendors of the affected product. The researcher allows the vendor the opportunity to diagnose and offer fully tested updates, workarounds, or other corrective measures before any party discloses detailed vulnerability or exploit…
Richtlinie für Verantwortungsvolle Offenlegung
Nach dem Prinzip der koordinierten Offenlegung von Sicherheitslücken (Coordinated Vulnerability Disclosure) melden Forscher*innen neu entdeckte Sicherheitslücken in Hardware, Software und Diensten direkt an die Hersteller der betroffenen Produkte. Die Forscher*innen geben dem/der Anbieter*in die Möglichkeit, eine Diagnose zu stellen und vollständig getestete Updates, Umgehungslösungen oder andere…
Anthroposophie
Frauenbild Das wird es sehr, sehr schwurbelig und reichlich mysogyn, soviel vielleicht als Warnung: https://twitter.com/veelana/status/1512373141942767618
Katholische Kirche
Rattenlinien Rattenlinien war die von US-amerikanischen Geheimdienst- und Militärkreisen geprägte Bezeichnung für Fluchtrouten führender Vertreter des NS-Regimes, Angehöriger der SS und der Ustascha nach dem Ende des Zweiten Weltkrieges. Aufgrund einer aktiven Beteiligung hochrangiger Vertreter der katholischen Kirche an den Fluchtrouten trugen sie bis zur Beteiligung des US-amerikanischen…
Liberales
Tickle Down https://de.wikipedia.org/wiki/Trickle-down-Theorie#Kritik The last 50 years has seen a dramatic decline in taxes on the rich across the advanced democracies. There is still fervent debate in both political and academic circles, however, about the economic consequences of this sweeping change in tax policy. This article contributes to this debate by utilizing a newly constructed…
Nachhaltigkeit
Newsletter You shall not use S/MIME, PGP/GPG or any other encryption for publicly available an broadcasted information.
Rechte
Anti-Feminismus, Gender und Trans Lobby https://www.epfweb.org/sites/default/files/2022-02/EPF_EN_TOTI_9SEP%20DEF_%20DEU_FINAL.pdf Cicero (Zeitschrift) Als radikale Kraft in der Cicero-Redaktion identifizierte die taz-Redakteurin Anne Fromm den damaligen Leiter des Kulturressorts Alexander Kissler: Er schreibe „oft an der Grenze zum Rechtspopulismus“, verteidige Sarrazin und Akif Pirinçci." taz In…
Wuppertal
Fakten über meine Stadt. Hashing wurde hier erfunden Der 1896 in Barmen geborene Hans Peter Luhn war wohl der Erste, welcher mittels Hashfunktionen Information zur verarbeitung umverteilte. https://de.wikipedia.org/wiki/Hans_Peter_Luhn 42 Die 42 hat in Wuppertal Tradition. Sowohl die alte Postleitzahl (4200 Wuppertal 1), als auch die Neue, nach der Umstellung auf 5 Stellen, Beginnt mit 42.…
Asciinema
The console was always my friend and will always be. I really like the ideas behind asciinema.org: Animated copy/paste-able So I decided to give it a try to integrate it into my blog. I just needed to integrate the css as well as the js file as described here and start a recording. I use ibigbug/PowerSession to record on windows as it is not planned to support Windows. So here is the result:
Screen Handling
I believe in the theory that more monitores make you more productive. I use a few tools that I’d like to share. Sizer Sizer is a utility to resize windows to exact dimensions. It is used by web designers, technical authors, developers and minecraft players, to exert control over where and how big application windows should be. Every window gets a context menu on the edge of the lower right…
IANA and Windows time zone conversion
There is a standard for time zones which is the IANA time zones. Sadly the browsers or better said EcmaScript (a.k.a JavaScript™) for long time had no idea of time zones at all. Even more said is that windows knows about time zones but does not care at all about the IANA ones. Client To compensate the lack of the client side engine there is a nice library that I use for some yeas now: jstz
Datenschutz
Gegenstand dieser Datenschutzhinweise ist die Information darüber, welche Daten bei Ihrem Besuch unseres Internet-Auftritts und der Nutzung unserer dortigen Angebote erhoben und wie diese von uns verarbeitet und genutzt werden. Allgemeines Daniel Fisher (nachfolgend "wir") betreibt die z.B. unter der Domain lennybacon.com erreichbare Webseite. Wir nehmen den Schutz Ihrer personenbezogenen Daten…
Impressum
Verantwortlich für den Inhalt Daniel Fisher c/o Hopfgarten Rechtsanwälte PartGmbB, Ohligsmühle 11, 42103 Wuppertal, Deutschland Telefon: +49 (176) 6159 8612 E-Mail: info@lennybacon.com Ust.ID: DE263092262 Haftungsausschluss Haftung für Inhalte Als Diensteanbieter*in sind wir für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Wir sind jedoch nicht verpflichtet,…
Imprint
Responsible for the content Daniel Fisher c/o Hopfgarten RechtsanwärtGmbB, Ohligsmühle 11, 42103 Wuppertal, Germany Telephone: +49 (176) 6159 8612 E-mail: info@lennybacon.com Vat.ID: DE263092262 Disclaimer Liability for content As a service provider, we are responsible for our own content on these pages in accordance with general laws. We are not obliged to monitor transmitted or stored…
Privacy Policy
The subject of this data protection notice is the information about what data is collected when you visit our website and the use of our offers there and how it is processed and used by us. General Daniel Fisher (hereinafter "we") operates e.g. Website accessible under the domain lennybacon.com. We take the protection of your personal data very seriously. Personal data is all information that…
Automatic Visual Studio Update Reboot If Necessary
The patches for CVE-2020-0601, CVE-2020-0605 and CVE-2020-0606 caused a pending reboot on my build servers after updating visual studio. So my hope that the unattended visual studio updater script would be finished has not come true So I added a pending reboot detection: Additionally I wanted some more details in the event log regarding the version being updated and the version after the update. I…
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…
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…
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
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…
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
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…
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…
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?
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
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…
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
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…
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…