• DankZedong @lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Pretty okay. The weather is getting nicer and sunnier. I had a party this weekend at which I had some long talks with people about money and the general purpose of life and work.

      I’m thinking about working towards a long trip next year. Maybe I’ll sell all my stuff even. I would love to hike to Santiago in Spain from my house which will take several months. It’s a thought that keeps me going.

    • Makan@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      I’m feeling physically bad for the first time in a while (but mentally good):

      Click here for the gist of it.

  • DeHuq2@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    What did I do wrong? I could look up proper solution to this exercise but I would still like to know what exactly is off. I feel like its something super obvious and stupid.

    • general advice: divide your code into multiple functions (e.g. instead of arbitrarily using '0' to end a loop, put the loop in its own function with a descriptive name and return when appropriate) and check if those functions produce the expected output

      also, post your code as a Markdown code block, not a screenshot

      • DeHuq2@lemmygrad.ml
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        num = [] Ms = [] while len(num) <= 5: for f in range(1,1000000): a = 452021 + f mmin = 0 mmax = 0 while mmin == 0: for n in range(2,a-1): if a % n == 0: mmin = n if n == a-1 and a % n != 0: mmin = ‘0’ while mmax == 0: for n in range(a-1,2,-1): if a % n == 0: mmax = n if n == 2 and a % n !=0: mmax = ‘0’ M = int(mmax) + int(mmin) if M % 7 == 3: num.append(a) Ms.append(M) print(Ms) print(num)

        • DeHuq2@lemmygrad.ml
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          I figured it out! I just needed to use break.

          num = []
          Ms = []
          def Fmmin(va):
              while va == 0:
                  for n in range(2, number):
                      if number % n == 0:
                          va = n
                          break
                      if n == number - 1 and number - 1 % n != 0:
                          va = '0'
              return va
          def Fmmax(va):
              while va == 0:
                  for n in range(number-1, 1, -1):
                      if number % n == 0:
                          va = n
                          break
                      if n == 2 and number % n != 0:
                          va = '0'
              return va
          
          for f in range(1,10000000):
              number = 452021 + f
              mmin = 0
              mmax = 0
              mmin = Fmmin(mmin)
              mmax = Fmmax(mmax)
              if int(mmax) > 0 and int(mmin) > 0:
                  M = mmax + mmin
                  if M % 7 == 3:
                      num.append(number)
                      Ms.append(M)
              if len(num) >= 5:
                  break
          print(Ms)
          print(num)
          
            • DeHuq2@lemmygrad.ml
              link
              fedilink
              arrow-up
              0
              ·
              edit-2
              8 months ago

              Fixed it now!

              def Fmmin():
                  for n in range(2, number):
                      if number % n == 0:
                          return n
                      if n == number - 1 and number - 1 % n != 0:
                          return 0
              def Fmmax():
                  for n in range(number-1, 1, -1):
                      if number % n == 0:
                          return n
                      if n == 2 and number % n != 0:
                          return 0
              
  • sinovictorchan@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Note that the “Truth and Reconciliation” lipservice speech by Stephen Harper, who is the leader of the Canadian Conservative Party of Canada, is a fake apology for the fake school Holocaust as it claimed that the “cultural assimilation” project of Indigenous people are only about “cultural genocide” which the European immigrants confessed to since the start of the fake school Holocaust. Stephen Harpers hide the fact that the so-called “Indian Residential Schools” were actually a series of slave camps, unethical human experimentation camps, and death camps that the Nazi German copied for the Nazi Holocaust. Stephen Harper also claimed that some fake school survivors “desire” a return to the fake schools which mislead any audience who do not know about the savage indoctrination in the fake schools into thinking that the Indian Residential fake schools or boarding fake schools are beneficial. The people who know that the European immigrants waste so much taxpayer money on savage indoctrination in the fake schools to the extent that family love are alien to the children and grand children of the fake school survivors will realize that the claim that some “survivors desired a return to the [death camps]” means that some fake school survivors are completely accustomed to a savage authoritarian lifestyle which lead to the rejection of the civilized democratic child-loving culture of their First Nation parents in favor for the savage demon-worshipping life in the Indian Residential fake Schools.

    • Makan@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      That’s an opportunity to start patiently persuading people to study Marxism, tbh.

    • DankZedong @lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      I think you’re bound to attract libs as you keep growing. Being federated with more lib friendly places can cause libs to wonder around as well.

      • Makan@lemmygrad.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        That’s good, in my view.

        More people to persuade, more people to become communists, and grow our numbers.

  • Rania 🇩🇿@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    It’s 9th March, 62nd anniversary of Algerian ceasefire day, I knew that because there’s flags everywhere today, can’t stop thinking of Gaza.

    • Makan@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Ukraine already gave its nuclear weapons away.

      Guess it doesn’t want them anymore!

      ¯_(ツ)_/¯

      • Shrike502@lemmygrad.ml
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        Ukraine never had nuclear weapons. USSR did. USSR was dismantled and soviet nuclear weapons were moved from the now “independent” Ukraine to the state that was named USSR’s successor in terms of international agreements - Russian Federation.

        I understand this may sound like nitpicking, but it is important to keep the distinction in mind when parsing bourgeoisie propaganda

  • 小莱卡@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    If there was a global tension meter like in HoI, i think we would be around 90% rn. Future is looking bleak 😐

  • DankZedong @lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I just got a call that I got a new appartment and I immediately started feeling anxious about cancelling my current one and doing all of the stuff I need to do in the next few weeks.

    The things we are required to do in order to have a roof over your head off which a leech can make a profit are exhausting.

    • DankZedong @lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      I remember a few years ago when I felt like the world was at my feet. Bought my first car, went to lots of parties, toured around the country with musicians, living my best life. I was broke as fuck at one point but I couldn’t care less. I felt like everything was going to be okay and I enjoyed every single day.

      Now I get anxious whenever I buy a bag of chips or a drink at the grocery store to enjoy my weekend night with my gf. Which is weird because by all metrics I’m doing better than years ago, with a job, my own place, a partner and whatnot. I shouldn’t have financial stress and feel anxious but I just do. I’m going to get a nice, new and bigger appartment but my first reaction is to get anxious and thank: what am I doing? How am I going to do this?

      Maybe covid, Ukraine and all other commie shit had a bigger impact on my mental wellbeing than I’d like to admit.

      • DankZedong @lemmygrad.ml
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        I paid a 3 months security when I moved here and if I can get a new renter quickly it should be no problem. But yeah that might be the case. Which makes no sense. It’s not as if I can find appartements on the market that are willing to be empty for three extra months without paying rent. Idiotic system.

  • Anarcho-Bolshevik@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    Oh my motherfucking god, I can’t properly edit one of my threads and now I have somebody whining ‘I DON’T LIKE THIS SOURCE!!!’ at me.

    I mean, we post content from garbage‐ass sources like CNN, the Guardian and the New York Times daily without any complaint, but somebody uses a ‘Trotskyite’ source and suddenly you have to cry that you didn’t get your meal on a silver platter? What is wrong with you people?

    • DankZedong @lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      I guess we need to assess each source and story on a case by case basis. Like you said we post all kinds of ideologically different sources. Barring right wing extremist of course.

  • KrupskayaPraxis@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I hate how Ukrainian nationalists claim that communism was forced on them by the Russians, even though Ukrainians were just as much part of the Soviet Union as the Russians. Ukrainians built up the Soviet Union as well, but to them it’s all Russian imperialism. Seems very insulting to their own countrymen to be honest. Do they forget Brezhnev was from Ukraine?

    • 小莱卡@lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      The ukranian nationalists were the reactionary forces of the region, you can bet they have their origins on aristocracy and the early bourgeoisie, so of course they claim they got wronged.

  • MILFCortana@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    Hey guys, can you share some good quotes on liberal “neutrality?” IE, excuses to not stop the nazis, so the nazis will kill the Soviets for them. Basically quotes that reinforce a ‘negative peace,’ it doesn’t necessarily need to be about the above example.

    • 小莱卡@lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      “If we see that Germany is winning we ought to help Russia and if Russia is winning we ought to help Germany, and that way let them kill as many as possible, although I don’t want to see Hitler victorious under any circumstances.”

      Harry Truman 😐

    • Rania 🇩🇿@lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Pacifism, the preaching of peace in the abstract, is one of the means of duping the working class. Under capitalism, particularly in its imperialist stage, wars are inevitable. On the other hand, however, Social-Democrats cannot over look the positive significance of revolutionary wars, i.e., not imperialist wars, but such as were fought, for instance, between 1789 and 1871, with the aim of doing away with national oppression, and creating national capitalist states out of the feudal decentralised states, or such wars that may be waged to defend the conquests of the proletariat victorious in its struggle against the bourgeoisie.

      At the present time, the propaganda of peace unaccompanied by a call for revolutionary mass action can only sow illusions and demoralise the proletariat, for it makes the proletariat believe that the bourgeoisie is humane, and turns it into a plaything in the hands of the secret diplomacy of the belligerent countries. In particular, the idea of a so-called democratic peace being possible without a series of revolutions is profoundly erroneous.

      https://www.marxists.org/archive/lenin/works/1915/feb/19.htm