Skip Navigation
‘He’s realizing that he could lose’: the Trump campaign is panicking
  • If you struggle to visualise, just focus on your breathing. When you notice you are distracted bring it back to your breathing. Acknowledge where your mind drifted but try not to dwell on it as you focus back.

    There are also apps available to help with breathing exercises. I had one that showed a balloon inflating and deflating. I found it easier to focus on that at first.

    Counting while you box breath can also make it easier. The count can be whatever you're comfortable with. 5 5 5 5 works well for me.

  • Another question about how lemmy works
  • This used to happen when new subs opened. Most of my feed was just them.

    My assumption was that as the sub grew the posts kept getting voted higher than any other on the sub and therefore pushed as top material relative to the subs normal amount of up votes.

  • 25 Reasons Why Financial Enterprise Companies Use Java
  • Most of the time yeah. But it depends as you can write c# with very little GC use if you avoid allocations.

    Ahead of time compiling also gets things much closer. But then you lose runtime optimization.

  • 25 Reasons Why Financial Enterprise Companies Use Java
  • Actually jit languages can outperform compiled languages by using runtime analysis to perform tiered compilation and profile guided optimisations.

    C# has made some great strides in this regard.

    All the normal optimisations are applied when it is compiled to byte code. Like loop unrolling etc.

    Then once it detects the hot paths during execution it can apply even more based on how it is called. It can also do optimisations that aren't possible at initial compile time.

    Dynamic PGO it's called. It's a really interesting topic.

  • (PDF neutering) Not all PDFs are documents; some are apps! Insurance company sent me a form to sign as a PDF with ~~JavaScript~~ Java. Is it a tracker?
  • It's literally just the format of the file here. If you skip the java serialisation header it's a normal pdf file. I said nothing about the pdf file itself.

    I did explain what it is. I just don't know why certain programs encode it this way. It's supported by multiple pdf readers so it must be semi common but I can't find a reason for it to be encoded this way.

    I'm trying to help you out there's no need to be a dick.

  • What to do??
  • Go talk to your doctor mate. If you can talk to your wife. If not any friends/family who you trust and who don't use it.

    Cocaine isn't physically addictive so it's much easier to get off than something like heroin. But don't get me wrong it's still difficult.

    You may also be suffering depression or similar. I use drugs to deal with the symptoms of mine when they get too much. It's worth having a think about. Did you have other issues with happiness or functioning before the coke.

    This is a big first step. Best of luck mate.

  • Confused about logical operators (i.e. "comparison operators", or "boolean operators") in Python
  • How would you check two variables have equal values without changing the value of one otherwise?

    Assignment you are assigning a value to the left side. Equality you are checking if the left and right are equal.

    It's "set equal to" Vs "is equal to" one is an operation the other is a condition.

  • I think I've finally figured out nullability for required EF navigation properties

    This may be common knowledge but I've never seen it online.

    [MaybeNull] public Entity Entity { get; set; }

    You now get a warning when accessing without a check and when setting to null.

    Sadly you still need to ! in quries

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)GE
    GetOffMyLan @programming.dev
    Posts 1
    Comments 310