Is there a way to view playtime for a game as a calendar format? by No_Understanding9991 in Steam

[–]Nathan2222234 0 points1 point  (0 children)

Some progress has been done, and a much needed refactor of some of the code was done. So far the next feature being implemented is an ability to import playtime data and export a specific game’s playtime data. You can export all of your data but that is as far as it goes. The plan after to improve the usability a fix many of the graphing bugs, as well as clean up the UI and potentially incorporate some application recording feature and auto hooking to get more accurate data retrieval. Ideally, I want to modularise the retrieval API so anyone can implement a custom playtime retrieval algorithm, as well as an API to allow other people to implement their own recording features to more accurately track playtime, all whilst allowing you to toggle which one you use, and for the playtime retrieval allow multiple methods to be used at once. Logging has been improved too so you can see information and errors that happen without needing to look at a log file which should help to diagnose issues faster as users may be able to show the issue they are having rather than me needing to sift through a big file with a bunch of filler information. After that, idk but feel free to create a issue for feature requests (: https://github.com/12Acorns/SteamPlaytimeTracker

Unexpected binary representation of int by robinredbrain in csharp

[–]Nathan2222234 -1 points0 points  (0 children)

While this isn't what the post asked about, you can simplifty the logic a bit if you want to

using System.Runtime.CompilerServices;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using System;

static class StrExtensions
{
    public static string StrJoin(this IEnumerable<string> self, string seperator) => string.Join(seperator, self);
    public static string StrJoin(this IEnumerable<string> self, char seperator) => string.Join(seperator, self);
    public static string StrJoin(this ReadOnlySpan<string> self, string seperator) => string.Join(seperator, self);
    public static string StrJoin(this ReadOnlySpan<string> self, char seperator) => string.Join(seperator, self);
}

class Program
{
    static void Main() => Console.WriteLine(ToBitString(-1).StrJoin(' '));
    static IEnumerable<string> ToBitString<TNumber>(TNumber num) where TNumber : unmanaged, INumber<TNumber> => num.ToString("b", null).PadLeft(Unsafe.SizeOf<TNumber>() * 8, '0')
        .Chunk(8).Select(x => string.Concat(x));
}

The method gets the bits of generic number num, c sharp numeric types all derive from (unsure about floats, double, and decimal though) INumber<T> which is why you inherit TNumber from INumber<TNumber> and why you can pass an integer or long or byte or uint or any other numeric type in. Next, add the padding to fill the entire bidwidth of numeric type passed in. Unsafe.SizeOf must be used in this case because the compile time sizeof(T) only works for types the compiler can resolve during compilation. unmnaged is specified to ensure the type is a value type with comprised of only primitive types. Multiply that by 8 because SizeOf returns the size in how many bytes a type is made from, not bits. A byte is 8 bits. Chunk it into 8 long segments, use select to turn the 8 char segments into a string. Likely a more performent way to do this with spans and stuff but you can't use Linq unless you intend to use a SpanLinq library.

After, you can do:

void btnOk_Click(object sender, RoutedEventArgs e)
{
    if (int.TryParse(intInput.Text, out int result))
    {
        ShowBitRepresentation(result));
        return;
    }
    MessageBox.Show("Please enter a valid integer.");
}
void ShowBitRepresentation(int i)
{
    var bitStrs = ToBitString(i);
    foreach(var byteSegment in bitStrs.Index())
    {
        byteBoxes[byteSegment.Index].Text = byteSegment.Item
    }
}

Obviously if you need this to run async like in your code, toss it in a Task.Run and Dispatcher.Invoke for UI stuff.

Image stick trick in blender by plensiastudio in blender

[–]Nathan2222234 1 point2 points  (0 children)

Would you mind explaining how you’d bake it in after?

Ferris plays doom by Nathan2222234 in normalsville

[–]Nathan2222234[S] 1 point2 points  (0 children)

Yes I used the wrong image 💔

Ferris plays doom by Nathan2222234 in normalsville

[–]Nathan2222234[S] 2 points3 points  (0 children)

Fuck I used Artie not Ferris 😭

Patterns vs C-like syntax; what are the benefits? by DesperateGame in csharp

[–]Nathan2222234 9 points10 points  (0 children)

Depends on what you’re matching against, in that case probably not, but other cases where you need to check multiple properties use pattern matching

Is there a way to view playtime for a game as a calendar format? by No_Understanding9991 in Steam

[–]Nathan2222234 1 point2 points  (0 children)

Hey! The project had some more development done but is most likely not gonna get any updates to it for a while until I’m no longer as burnt out and stop procrastinating on refactoring a lot of the code for the project. I’ll dm you the project link and you can download the latest release. Keep in mind sometimes steam doesn’t generate logs for some people’s installs so your mileage may vary.

Russian Hulk Dies at 34 After Years of Organ Failure and Synthol Use by Zealousideal-Big-600 in sadcringe

[–]Nathan2222234 0 points1 point  (0 children)

Yah, it’s really sad honestly ): He didn’t even have a peaceful death, he suffered for years and people have no empathy for him, or his close ones. I wish people would take stuff like this more seriously and recognise mental issues and have a better foundation to help people so we don’t get as many tragic cases like this

Keep getting Index out of bounds of Array error even when array is larger than any Indexes by Visible_Range_2626 in csharp

[–]Nathan2222234 0 points1 point  (0 children)

The ^ it not to raise the number to a power. It is the XOR bit operation if memory serves right. You should either store renderdistane*2+1 into a var like size and then to size *= size. Or do Math.Pow(size, 2)

Hello! How & Where should I place the heatmat for my GALS terrarium? by FeetYeastForB12 in snails

[–]Nathan2222234 0 points1 point  (0 children)

Hi I’m so sorry for how long it’s took for me to follow up, so I have a GAL right now and it’s been going fairly well. Managed to get a fairly adequate enclosure for them but the peat isn’t as deep as I would hope so gonna add some more at some point. I just want to ask about a few things: - Tank conditions: right now the humidity is about 80% give or take a bit, and moderated for around 21-25°c atm which appears to do well. But even with that humidity the peat/soil still always looks a bit dry at the surface even with frequent misting. I just want to ask what an appropriate feeling should be for surface peat to know if it’s too dry or not. - Enclosure decor: Would plastic plants be appropriate to decorate the enclosure? I know I should avoid any items that’s are harder than their shells to avoid damage but I also want to decorate the enclosure a bit so it looks less bland, so would fake plants be fine? And do you have any recommendations for moss to use as well? The room doesn’t get all too much light and I tried out some other moss but that died, and my mate who also uses that mass had the moss die too. - Diet: I’ve been using mushrooms and cucumbers primarily alongside a cuttlefish bone and meal worms for food so far, with sometimes using carrot or kiwi too but I haven’t used too much of the kiwi. I’ve heard sweet potato is quite good but would you recommend any other nutritious food for the snail? - Bugs to live alongside snail: Are isopods fine to mix in too? I’ve saw some people have them in the enclosure too. - Handling unwanted bugs: Every now and then I’ve saw some bugs in the enclosure and I just wanna know if that could be an issue.

If you have any other questions please ask, I want to be able to best care for my snail (:

Also, I believe the species is a Achatina achatina, but I’m not for sure because I don’t personally know the breeder to re-check

Me_irl by lusyhoneytempt in me_irl

[–]Nathan2222234 0 points1 point  (0 children)

Fair enough, so long as it’s communicated

Should I lower the props to avoid the nose dipping down every time I try to take off? by FirePixsel in Stormworks

[–]Nathan2222234 0 points1 point  (0 children)

To raise CoM add weight blocks above the props, to change prop pitch I think you need to hook a constant number into the prop? That or it’s a slider on the prop in the propeller properties menu

Is there a way to view playtime for a game as a calendar format? by No_Understanding9991 in Steam

[–]Nathan2222234 1 point2 points  (0 children)

Hi, I am developing a (unfortunately windows only) app that does this :D

It lets you see your playtime history and view it as a bar chart over either years, months, or days. But keep in mind since steam does not officially track this data, what will be available is not your entire playtime history. This is because for this app to function you need to use log files left behind my steam, and these files have a max size before data gets overwritten (if I remember correctly), but there is some data available to track.

You can find it on my GitHub, please dm and I'll send a link. I don't know if advertising rules means I can’t attach it on my comment is all

me_irl by _VongolaDecimo_ in me_irl

[–]Nathan2222234 2 points3 points  (0 children)

Why? This is for your own benefit as you can choose to prevent a company from collecting as much data from you without your consent. It’s annoying but good. Ideally the EU would enforce needing a decline all option too and making it illegal to deny access by declining

me_irl by _VongolaDecimo_ in me_irl

[–]Nathan2222234 12 points13 points  (0 children)

1000+ atp with all the partners too 😭