Death to America, death to Israel, their demise is inevitable

Also on Matrix as @nour:genzedong.xyz.

  • 52 Posts
  • 50 Comments
Joined 4 years ago
cake
Cake day: February 8th, 2021

help-circle




  • nour@lemmygrad.mltoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    But why? What’s wrong with the current UI? Asides from the mild annoyance of having to click on “show context” every time I follow a comment link, the UI works well for me. Certainly much better than Reddit’s new design.

    Did you see the option to choose a theme in your settings? Though, the problem is that some of them do not work well, and also it would be good to have more options…

    Does Lemmy not already support inline GIFs? It would be nice to be able to post short GIFs or MP4s instead of a picture when making a post… But I understand the storage space concerns… Maybe a strict size limit on the GIFs and MP4s?

    GIF test



  • nour@lemmygrad.mltoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    Cats. I mostly have abandoned R*ddit, but I still have to go to there for the cat pics… But I’m not sure how viable such a community would be on Lemmy, considering that most Lemmings seem to be very concerned about their privacy (and thus not post pictures of their cat), and taking pictures of other peoples’ cats from the internet seems just wrong…

    Oh, and I’d like !twosentencehorror@lemmy.ml to be more active, but I’m not even nearly creative enough to contribute to that myself.






  • If you want to turn it off, go to about:config and toggle browser.newtabpage.activity-stream.showSponsored and browser.newtabpage.activity-stream.showSponsoredTopSites to false (I’m not sure which one does it, but if you don’t want sponsorships, I assume you don’t want either).

    I’m also unhappy about it being on by default… Unfortunately, this is probably the fault of the state of the internet, how modern browser development requires to implement unreasonably many functions, making it impossible to anyone except a corporation like Mozilla — who wants to profit off it. If there was a better alternative, I would switch in an instant, but all the other browsers that have all the functionality I need are Chromium in disguise.









  • In that case, I think you have to use a different approach, and rather than iterate over all the numbers and filter out the ones that aren’t multiples of 3, you can iterate over the multiples of 3 and append every number you iterate over to the array. (Which is what snek_boi’s answer suggests.)

    Code for a possible solution, I'm hiding it behind a spoiler because I assume you want to try yourself
    multiples_of_3 = []
    for value in range(3,31,3):
        multiples_of_3.append(value)
    
    print(multiples_of_3)
    

  • Your problem is this statement:

    number = value % 3 == 0
    

    It gets evaluated in this order:

    number = (value % 3 == 0)
    

    So, first value % 3 == 0 gets evaluated to True or False, and then that gets assigned to the variable number.

    If you only want to append numbers that are multiples of 3, you would need an if-statement, like this:

    multiples_of_3 = []
    for value in range(3, 31):
        if value % 3 == 0:
            multiples_of_3.append(value)
    
    print(multiples_of_3)
    









  • If they were truly enthusiastic about human rights and democracy, first of all they need to stop violating human rights across the world and overthrowing democratic governments. In their current state, they have no right to lecture or “encourage” anyone about “human rights frameworks”.