Home Tags Privacy About
Peter Daugaard Rasmussen's Picture

Peter Daugaard Rasmussen

Programmer, Developer, Consultant.

Randers - Denmark https://peterdaugaardrasmussen.com 404 posts
← Newer Posts Page 22 of 41 Older Posts →

Javascript - how to get a child element with a specific class, attribute or any other selector

In order to get a child element or several child elements you can use the querySelectorAll or QuerySelector functions. Yes these can be both at document »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 05 October 2020

How to check if IP anonymization/masking is enabled for Google analytics

I previously made a post on how to disable cookies for Google analytics. In the same post I mentioned that I had used Google analytics IP »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on SEO 03 October 2020

How to stop Google analytics from setting cookies on your website

You are likely on this page due to GDPR or the cookie consent policy. I am in no way an expert on law, GDPR or the »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Blogging 26 September 2020

C# - How to put or post XML using the HttpClient - updated for 2023

It is quite easy to send XML using the HttpClient. In order to do this you need to use the StringContent object, provide it with an »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 23 September 2020

Ghost blog - Getting rid of the <br> tag and space added between text and image when inserting images from Unsplash

I recently tried the feature "Add image from Unsplash" on my Ghost blog. However I found out that there is a lot of extra »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Ghostblog, HTML and CSS 19 September 2020

C# - When to use value tuples and when to use classes - updated 2022

Value tuples were introduced with C# 7. The original tuples have been around since 2010 when they were released with .Net Framework 4.0. Even though »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 16 September 2020

How to make prism.js word-wrap (line-wrap) code snippets

I recently made a post where I needed to show some code that would look better without word wrap as it was basically one or two »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, HTML and CSS 12 September 2020

Visual Studio - How to diff/compare two different files in your solution

Given how long Visual Studio has been out there I sometimes wonder why there is no built in function to compare two files. Using for example »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Visual Studio 10 September 2020

xUnit - How to assert that a method throws an exception - 2022

A year ago I made a post on the absence of the DoesNotThrow assertion in xUnit. In this post I show how you can assert if »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Testing, C# 09 September 2020

C# - How to avoid having Tuple members named item1, item2 itemX etc. in methods, lists and variables

Earlier this year I made a post on how to make a list of named value tuples. I decided to make a new post with some »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 08 September 2020
← Newer Posts Page 22 of 41 Older Posts →
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2025 Privacy policy