Welcome again to everybody! Make yourself@home. In the time-honoured tradition of our group, here is the weekly discussion thread.
● Matrix homeserver and space
● Theory discussion group on Matrix
● Find theory on ProleWiki, marxists.org, Anna’s Archive and libgen; audio versions by Socialism For All
How’s everything going comrades? I’m feeling good for the first time in a while.
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.
I’m feeling physically bad for the first time in a while (but mentally good):
Click here for the gist of it.
Sorry to hear it comrade, hope it gets better.
Today? It has! :D
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 outputalso, post your code as a Markdown code block, not a screenshot
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)
As a code block.
I.e:
```
Your code
goes here
```Your code goes here
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)
You can improve the code by returning
n
and0
respectively, no need to use a loop variable. Thewhile va == 0
is either unnecessary (if it runs once) or can cause an endless loop (since nothing changes between iterations)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
one more piece of advice: try to avoid global variables when possible (in this case, you could pass
number
as an argument instead)
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.
Is it me or are there a lot more liberals here than before?
That’s an opportunity to start patiently persuading people to study Marxism, tbh.
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.
That’s good, in my view.
More people to persuade, more people to become communists, and grow our numbers.
Who’s the person being held at gunpoint in the picture?
the General Discussion thread currently has as its thumbnail a cartoon of a shotgun being leveled at Ayn Rand’s head with “Class Consciousness” written on it
I’m pretty sure this hexbearian is actually talking about Lemmygrads General Discussion, and not something on hexbear
it is indeed Ayn Rand, from this comic
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.
Are you Algerian?
Perhaps
It shows up as DZ on some browsers, why is DZ the shorthand for Algeria?
Locally we call the country “Dzair” from the Zirid dynasty
“It’s [future date], 62nd anniversary of Palestinian liberation. I knew that because there’s flags everywhere today, can’t stop thinking about the fall of Western imperialisme.” - some day in the future
"It’s [future date], 62nd anniversary of the fall of Western imperialisme. I knew that because there’s flags everywhere today, can’t stop thinking about global communism.’ some day in the future future
The far future…
2035 isn’t that far away.
God, you’re right.
“It’s [future date], 62nd anniversary of the establishment of Global communism, I knew that because there’s red flags everywhere today, can’t stop thinking about automated space communism”- some day future future future
Yes!
“Give nuclear weapons to Ukraine. I’m saying that as a leftist.” -Slavoj “The Jester of the Empire” Zizek
Ukraine already gave its nuclear weapons away.
Guess it doesn’t want them anymore!
¯_(ツ)_/¯
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
Oh, fair! No, that’s fine.
If there was a global tension meter like in HoI, i think we would be around 90% rn. Future is looking bleak 😐
deleted by creator
don’t use redis. one of the contributors (not antirez) is an israeli
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.
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.
I love how you have to give them notice several months in advance and will likely end up paying rent for both apartments for a month or two
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.
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?
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.
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?
Khrushchev and Chernenko too. And depending on how you see it, Trotsky too.
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.
When is the next General discussion Thread?
Monday
Thank ye kindly.
I’m reading this by Alexandra Kollontai.
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.
“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 😐
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