• 0 Posts
  • 191 Comments
Joined 2 years ago
cake
Cake day: June 26th, 2023

help-circle
  • My most common use for Google assistant was an extremely simple command. “Ok Google, set a timer for ten minutes.” I used this frequently and flawlessly for a long time.

    Much like in your situation it just stopped working at some point. Either asking for more info it doesn’t need, or reporting success while not actually doing it. I just gave up trying and haven’t used any voice assistant in a couple of years now.


  • vithigar@lemmy.catoMemes@lemmy.mlmmmm tasty carbon
    link
    fedilink
    arrow-up
    16
    ·
    10 days ago

    I’d argue that Li should be red and Hg should be yellow.

    Elemental mercury in liquid form is fairly safe. It needs to get into your blood in order to be a problem, and even if some does stick to your tongue and get swallowed the digestive absorption is extremely low.










  • vithigar@lemmy.catoProgrammer Humor@lemmy.mlWhat the F#
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 months ago

    i is still a value type, that never changes. Which highlights another issue I have with the explanation as provided. Using the word “reference” in a confusing way. Anonymous methods capture their enclosing scope, so i simply remains in-scope for all calls to those functions, and all those functions share the same enclosing scope. It never changes from being a value type.






  • C# .NET using reflection, integer underflow, and a touch of LINQ. Should work for all integer types. (edit: also works with char values)

    // this increments i
    private static T Increment<T>(T i)
    {
        var valType = typeof(T);
        var maxField = valType.GetField("MaxValue");
        var minField = valType.GetField("MinValue");
        if (maxField != null)
        {
            T maxValue = (T)maxField.GetValue(i);
            T minValue = (T)minField.GetValue(i);
    
            var methods = valType.GetTypeInfo().DeclaredMethods;
            var subMethod = methods.Where(m => m.Name.EndsWith("op_Subtraction")).First();
                   
            T interim = (T)subMethod.Invoke(
                null,
                [i, maxValue]);
    
            return (T)subMethod.Invoke(
                null, 
                [interim, minValue]);
        }
        throw new ArgumentException("Not incrementable.");
    }
    

  • I’m the primary developer for a third party tool for Elite Dangerous and this is basically my entire thought process when I want to work on it.

    I could work on Observatory…

    Or I could play some Elite…

    Or I could just stare at my screen ineffectually for several hours.

    Staring at the screen wins frighteningly often.


  • Half Life Alyx, Lone Echo, and Asgard’s Wrath are all incredible experiences that actually feel like “real games” that made meaningful and justifiable use of VR.

    Beat Saber and Robo Recall get honorable mentions from me as well because while neither is groundbreaking, both execute their particular niche more or less perfectly.

    Browsing various VR software storefronts now you find basically nothing like any of the above. Everything seems to be trying to mimic the mobile game “quick distraction” approach and shovel out as much garbage as possible rather than creating anything engaging. For anyone who believes that VR has genuine potential for exciting new experiences, as I do, it’s incredibly disheartening.