[–] 1 point 1 week ago (1 child)

Why do you not use AGPL? This is not a criticism, it's a real question. I technically have open source code, but it's more like half baked (even that's generous) hobby projects I slapped a license on. My philosophy is to use MIT if something is small and trivial (e.g., smaller than the size of other licenses lol), which most of my code falls into lol. Other stuff I use AGPL or LGPL for.

  • source
  • parent
  • context
  • [–] 13 points 1 week ago

    Public education disparity in America is crazy. I had a good upbringing, I was an only child and both my parents had full time jobs. The only time I can really remember feeling jealous about seeing something someone else had an opportunity as when they were a kid was when I went to a performance at Milton High School. It's a public highschool in Georgia and genuinely looked nicer than the college I went to. While I was in highschool, we had more trailers* outside than classrooms inside.

    And I know that with a global perspective I still did have a very privileged education, but like the OP says, when we're talking about what "the richest country on earth" is doing, it just doesn't add up. It's not like I wasn't aware my highschool was shitty, even while I was there I knew it was, because we'd go to other ones for various events. But even the nicest ones I saw, that one still felt an order of magnitude nicer. A lot of it had to do with the performance. The school had some sort of partnership with Cirque de Solel (no idea how to spell it, and also I may have misunderstood and it wasn't actually a partnership and just a play that they originally made). Seeing a fully packed, massive auditorium for a highschool performance that also involved acrobatics was just crazy. The arts are always underfunded, so I can only imagine how nice everything else was at this school. It's basically in the wealthiest area of my state.

    *: People outside the US or certain parts of the US might not know what this refers to. It's like a mobile classroom (compared to a permanent structure, lol, same way a "mobile home" is "mobile"). These were used because the population growth in the area outpaced school constitution. So instead of building a new school which takes long, just throw trailers at the problem. But my highschool genuinely did have more trailers outside than rooms inside.

    And just to reiterate, this was a public highschool. We should be investing more in our future by investing in education, both college and k12.

  • source
  • [–] 6 points 1 week ago

    You can just straight up say you don't want to be called a slut. Dirty talk doesn't need to be degrading. And even if you're into being degraded, it's okay to have specific words you don't like being called.

    first see if he says it again before speaking up?

    Definitely don't do that, because it happened and you disliked it. The sooner the better.

    I'm only specifically commenting on that, as it's really the only part I feel confident commenting on.

  • source
  • [–] 1 point 1 week ago (2 children)

    It seems like you think you think GPL makes it harder to maintain because the changes are "contributed back." That's not the case. The changes just have to be made available and licensed under GPL. In that sense they are "contributed back", yes, but it's not that they must be submitted as patches/pull requests.

  • source
  • parent
  • context
  • [–] 1 point 1 week ago (1 child)

    There have been cases (see Nexuiz) that the copyright holder of a GPL project has accepted money from a company to allow them to use it.

    Isn't this Qt's model as well? Many projects take this approach. GPL for everyone or pay to use it without copylefting your code base.

  • source
  • parent
  • context
  • [–] 1 point 1 week ago (3 children)

    I think some people think to themselves that there is value in something being easy to understand and/or something being as permissive as possible. Personally, I don't see why anyone wouldn't use at least LGPL for new projects.

  • source
  • parent
  • context
  •  

    Link to a (frustratingly) deleted question on Stack Overflow. Text and image copied below incase you don't have the ability to see it. (Not sure why the image shows multiple times.)


    Is there any way to more granularly control IntelliJ IDEA's inspections' "Nullability and data flow problems" option "Treat non-annotated members and parameters as @Nullable"? Preferably for unboxing specifically?

    I am aware I can use a variety of @Nullable annotations in a variety of places in the code to make the warnings appear. That's not always an option as the place the boxed primitives are coming from may be other libraries you don't have control over. (Imagine if the Holder record below was from a different project.) I included other examples below to illustrate my point.

    public class Sample {
    
        private final Boolean value;
    
        public Sample(Boolean value) {
            this.value = value;
        }
    
        private boolean isValue() {
            return value; // I would like a warning here
        }
    
        private static Boolean boxedTrue() {
            return true;
        }
    
        private static boolean unboxedTrue() {
            return boxedTrue(); // No warning here, but that's understandable since never null
        }
    
        private static Boolean boxedNull() {
            return null;
        }
        
        private static boolean unboxedNull() {
            return boxedNull(); // Only warning in the file (by default)
            // "Unboxing of 'boxedNull()' may produce 'NullPointerException'
        }
    
        public record Holder(Boolean value) {}
    
        public boolean openHolder(Holder holder) {
            return holder.value(); // I would like a warning here
        }
    }
    

    When "Treat non-annotated members and parameters as @Nullable" is enabled, the following gives warnings. While that makes sense given the name of the option, there is code like this literally everywhere. It adds hundreds of warnings to my project. I'm trying to find more granular choices.

        public static ZonedDateTime timeStuff(LocalDateTime localDateTime, ZoneId zoneId) {
            return localDateTime.atZone(zoneId); // I do not want warnings for this
        }
    

    I see that the Java Class Library has JetBrains annotations despite not actually being annotated. Is there perhaps some way to add these automatically to libraries if there is no better way to control the inspection?

    Showing @NotNull and @Contract annotations on LocalDateTime.atZone(ZoneId)

    Barbie (programming.dev)
     

    If you'd told me five years ago that there would be a Barbie movie that somehow was not only just not a cash grab or nostalgia bait but also a genuinely amazing piece of cinema with an amazing message to boot I'd never believe you.

     

    Opening your router to the Internet is risky. Are there any guides for the basics to keep things secure? Things like setting up fail2ban? My concern is that I'll forget something obvious.

    Edit: I haven't had much of a chance to read through everything yet, but I really appreciate all these long, detailed responses. ❤️ Thanks folks!

     

    This part of this blog post has always made me happy and I come back it from time to time. This is regarding the scene in Tron Legacy when one of the characters stops another from hacking. If you'd like to see the scene for context here it is. The time code is when the particular portion is. https://youtu.be/Qeh3E67brBs&t=231

    In addition to visual effects, I was asked to record myself using a unix terminal doing technologically feasible things. I took extra care in babysitting the elements through to final composite to ensure that the content would not be artistically altered beyond that feasibility. I take representing digital culture in film very seriously in lieu of having grown up in a world of very badly researched user interface greeble. I cringed during the part in Hackers (1995) when a screen saver with extruded "equations" is used to signify that the hacker has reached some sort of neural flow or ambiguous destination. I cringed for Swordfish and Jurassic Park as well. I cheered when Trinity in The Matrix used nmap and ssh (and so did you). Then I cringed again when I saw that inevitably, Hollywood had decided that nmap was the thing to use for all its hacker scenes (see Bourne Ultimatum, Die Hard 4, Girl with Dragon Tattoo, The Listening, 13: Game of Death, Battle Royale, Broken Saints, and on and on). In Tron, the hacker was not supposed to be snooping around on a network; he was supposed to kill a process. So we went with posix kill and also had him pipe ps into grep. I also ended up using emacs eshell to make the terminal more l33t. The team was delighted to see my emacs performance -- splitting the editor into nested panes and running different modes. I was tickled that I got emacs into a block buster movie. I actually do use emacs irl, and although I do not subscribe to alt.religion.emacs, I think that's all incredibly relevant to the world of Tron.

    submitted 2 years ago* (last edited 2 years ago) by to c/programmer_humor@programming.dev
     

    Literally. I open up my terminal and try to cd Desktop only to be told that no such file exists. I thought for sure everyone this was happening to was just not reading something correctly and were foolish. Nope! It literally began deleting my files.

    Edit 2: Even once it's done and you have them locally and not "on demand", the Desktop is in ~/OneDrive/Desktop instead of ~/Desktop. See this helpful comment.

    It looks like there might be a way to sort of disable Files on Demand but it looks like it won't let me do it until it's done uploading? I'll post updates.

    Not to be dramatic, but I'm really going through it. My mouse logitech mouse is suddenly chattering really bad and double clicking everything. Also while Steam refuses to let me disable auto updates for all games in any sort of easy way. And DDG seems intent on only showing me results related to launching games without updating (as opposed to merely disabling auto updates until I launch). The chatter fixer I found for my mouse does not work and the other requires some logitech program to even try to use. (The repo doesn't mention the name.) This is awful. When it rains it pours, I guess. Literally can't even high light this text to wrap it in a spoiler. This is fucking stupid.

    Context: My parents have a family plan for Microsoft 365 they added me too and it has 1 TB of storage I can use. I wouldn't have turned it on otherwise.


    Edit: My desktop background has literally vanished and turned solid black.

    DO NOT ENABLE ONE DRIVE.

     

    I have no idea how to title this post. Oh well.

    A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that "needed" admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.

    Sun Clock (sunclock.net)
     

    (I did not make this project.)

    I love this website. It helps me visualize time with regards to the sun very well. If I could get my FitBit to display this as a clock face I definitely would. It's such a beautifully simple site.

    I'm sharing it in honor of the solstice today. It's (roughly) solar noon on the east coast. I think I found this site on Reddit prior to the Lemmy Exodus, so I'd like to share it here for everyone to enjoy. Happy solstice. Happy summer (or winter for our friends in the southern hemisphere).

    Also, based on the community info panel I believe this is on topic here, but if there is a better community for "cool site I found" let me know. ❤️☀️

    view more: ‹ prev next ›