[–] 16 points 5 days ago (7 children)

I can spend all day saying that that US capitalism is the biggest global threat to all forms of democracy but I squint my eyes at Putin once and (some!) people here will call me a star-spangled liberal. Frankly it's frustrating.

I totally see why tankies are pissed off with some of the people who criticize you, because many of those people are indeed absolute idiots, just like most people on the internet. But if you throw everyone you disagree with into the liberal basket, you've taken the easy way out.

  • source
  •  

    I'm currently learning the language, and I was wondering about this design quirk.

    Basically, if we have a variable x which is a pointer, we use x.* to get the value. This is much better than using * as a prefix, since the * might need to be applied to anything in the chain for complex access. I see the usecase.

    For example something like

    (*(*pointer_to_struct).struct_field_ptr).struct_field
    

    is much more clearly written as

    pointer_to_struct.*.struct_field_ptr.*.struct_field
    

    But then it feels really inconsistent that we don't do the same for taking a reference with &. Sure, we only ever take one reference of the entire value, so we don't have the same problem as above, but:

    We still have the issue that the & is not next to the value being dereferenced:

    &some_ptr.*.some_array_struct_field[5].target
    

    this takes the address of the target struct field, which is on the opposite side of the expression.

    It also just feels inconsistent.

    Additionally, I think the type declaration for a pointer should be &u8, not *u8. Since the & character is semantically equivalent to "address of", and * is more like "value at address".

    Thoughts?

     

    cross-posted from: https://discuss.tchncs.de/post/55388559

    I made the mistake of believing some dumb guide online that recommended the Razer BlackShark v2 Pro for Linux. Literally the volume control is broken out of the box lol.

    I just want a wireless headset. For listening to audio. And a mic. Don't care for fancy features. Apparently too much to ask for a linux user.

    What are y'all using and how is it working for you?

     

    I made the mistake of believing some dumb guide online that recommended the Razer BlackShark v2 Pro for Linux. Literally the volume control is broken out of the box lol.

    I just want a wireless headset. For listening to audio. And a mic. Don't care for fancy features. Apparently too much to ask for a linux user.

    What are y'all using and how is it working for you?

    Windows-coded error (discuss.tchncs.de)
     

    Apparently, importing ~/.config/kglobalshortcutsrc is enough for the shortcut to show up in the System Settings, but not enough to load the shortcut. Disabling, applying and re-enabling and applying again also doesn't help, and neither does re-assigning to the same shortcut, which resulted in this lovely error dialog.

    KDE Plasma error window: "Shortcut Meta+L is already assigned to action Lock Session of Session Management.  Reassign it to action Lock Session of Session Management?"
    view more: next ›