Category: All

Hertz Club DK medlem?

Er du udlandsdansker, og på vej til Danmark ved jule- eller nytårstid? Så kig lige her https://hertz.viabiler.dk/udlandsdansker, og hvis du ikke allerede har modtaget en email fra Club DK, så læs nedenfor.

Vi er meget stolte over Club DK og over at have medlemmer fordelt på 149 lande.
Vi synes, at I er spændende og er nysgerrige omkring jeres eventyr ude i verden og jeres glæde ved at komme hjem.

Vi vil som noget nyt introducere Club DK interviews i filmformat.
Har du lyst til at blive interviewet om livet ude på eventyr og det helt særlige ved at komme hjem?

Hvor: Kastrup/Københavnsområdet.
Hvornår: i december/januar
Hvordan: Interview i en bil
Varighed: Ca. 30 minutter
Færdigklippet interview: Ca. 3 minutter

Som tak for deltagelse giver vi en voucher til et weekendlejemål (bilgruppe C) som kan benyttes i løbet af 2019.

Vi kontakter de personer, som er i Danmark de datoer, hvor det er muligt for os at filme.
Har du spørgsmål er du mere end velkommen til at kontakte kathrine.lodberg@hertzdk.dk. Tilmeld dig her
Advertisements

Windows 10 Pro Insider Preview build 18282

I just installed this build and it was definitely the lengthiest setup in a good few months, but it’s now back up and everything seems to work as it should, even if I do have an issue with the tobiie Eyex driver/software 😱

Relaxation/Exercise

I did an early run this morning in Cassiobury Park and along the Grand Union Canal towpath, as I have done a good few times before. This time it was really dark, just before 4:30, but I kind of love that. 🙂 Being on your own, meeting nothing but deers, hares, foxes and all sorts of birds is just a lovely “companion” when out there. I absolutely love these half marathon runs, they complete me to some extent. Just saying… BTW, I could do with a running partner anywhere near Watford…

Doppelgänger

Over the last few years I’ve had various people come up to me, asking me if I was High Dennis. 😱 I’m clearly not, but I’ll take it 🙂 Have you ever had that experience, that someone mistakes or thinks you resemble a celebrity? It’s odd, and I can only apologise to the man himself, he has no need for a doppelgänger. 😎

Windows Insider Programme

I’ve been part of the Windows Insider programme for quite a while now (January 14, 2015), and I have generally been very pleased with my participation. Today I installed the Windows 10 Insider Preview 18272.1000 (rs_prerelease), from my favourite Prét coffee joint in Watford.

It took a while to download, but the actual installation was very quick, and it seems MS has been working on speeding up new OS upgrades over at least the last year. I’ve been using my trusted Lenovo Flex-2 15 for most of the builds. It is nearly 5 years old, and rarely had any issues with drivers etc, so I’m well pleased with the Windows OS, in particularly the Windows Insider builds. I’m now on the Active development of Windows preview build, on the Fast ring. I am running my development tools, Visual Studio 2017, Visual Studio Code etc, on these builds and rarely have any issues. Keep it up MS!

Visual Studio 2017 Editor new line wrapping

We all have our favourite settings when it comes to setting up Visual Studio, and the editor is quite often set up differently for a group of developers working together. I like having the opening brace ({) on the same line as the class, struct or whatever the brace signals the beginning of.

I like this:

class {

as compared to this:

class 
{

I frequently use the key combination Ctrl+K, Ctrl+D to format my document after having typed some code. I dislike it, if the formatting is not to my liking. It should therefore not come as a surprise, if I tell you that while working on a new UWP app, in which I had copied across some code from a Template10 project template, the key combo seemingly didn’t work anymore. After some investigation, including opening an existing Console app, in which the key combo did work, I took a look at this code:

namespace Template10.Views
{
    public sealed partial class SettingsPage : Page
    {
        readonly Template10.Services.SerializationService.ISerializationService _serializationService;
 
        public SettingsPage()
        {
            InitializeComponent();
            NavigationCacheMode = NavigationCacheMode.Required;
            _serializationService = Template10.Services.SerializationService.SerializationService.Json;
        }
 
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var index = int.Parse(_serializationService.Deserialize(e.Parameter?.ToString()).ToString());
            MyPivot.SelectedIndex = index;
        }
    }
}

Because of the Page class, from which the class shown, SettingsPage, is derived has a notification stating “Base type ‘Page’ is already specified in other parts”, the class/type name Page is greyed out. This effectively blocks for the document formatting placing the opening brace { on the same line as the class declaration. If I remove : Page, and press the key combination Ctrl+K, Ctrl+D, this is what I get.

namespace Template10.Views {
    public sealed partial class SettingsPage {
        readonly Template10.Services.SerializationService.ISerializationService _serializationService;
 
        public SettingsPage() {
            InitializeComponent();
            NavigationCacheMode = NavigationCacheMode.Required;
            _serializationService = Template10.Services.SerializationService.SerializationService.Json;
        }
 
        protected override void OnNavigatedTo(NavigationEventArgs e) {
            var index = int.Parse(_serializationService.Deserialize(e.Parameter?.ToString()).ToString());
            MyPivot.SelectedIndex = index;
        }
    }
}

 

MS Band 2 battery dead

I’ve been using MS Band for a few years, initially the original Band and then the MS Band 2. I’ve had the latter replaced twice, but now that device is no longer able to be charged, i.e. the battery is fucked, and of course I’m out of warranty. I love my Band and I wear it all the time, it’s a fantastic little device and I pray to the MS Gods they will bring out a new and even better one sometime soon.

However, what do I do in the meantime, I really need a device for when I go running or walking… Any ideas?

Is a string an Anagram of another string?

How do you check if a word is an Anagram of another word? It’s reasonably simple, although I’m sure this can be simplified.

bool IsAnagram(string s1, string s2) {
    if (s1.Length != s2.Length) return false;
 
    var s1C = s1.ToCharArray();
    var s2C = s2.ToCharArray();
    Array.Sort(s1C);
    Array.Sort(s2C);
 
    return s1C.Equals(s2C);
}

Is a string a Palindrome?

A string is a palindrome if it reads the same, forwards and backwards, but how can you check in C#? There are at least hundreds of possible solutions for how to achieve this, but I think this is an easy one.

var originalString = "jjkjhkjhkj";
var reverseString = new string(s.Reverse().ToArray());
// Check for existing palindrome
if (s == reverseString)
    ...

Is a string a Pangram?

When is a string a pangram? Is actually fairly easy to check and beow you can see one implementation in C#.

var charsFound = new bool[26];
var s = Console.ReadLine().ToUpper();
 
// We need at least 26 characters (English alphabet) in the string...
if (s.Length >= 26) {
    
 
    foreach (var c in s)
        if (c >= 'A' && c <= 'Z') {
            // Uppercase ascii character codes starts at decimal index 65
            var index = c - 65;
            // Already marked, continue loop...
            if (charsFound[index]) continue;
 
            charsFound[index] = true;
        }
}
 
// Did we find all 26 chars?
Console.WriteLine(charsFound.Where(c => c).Count() == 26 ? "pangram" : "not pangram");