#voice-chat-text-0
1 messages ยท Page 719 of 1
precisely
lol
that was an idiotic question
like jamaican dishes
Canberra
lolol
no one can be reggae
lol
no
oh god
lmfao
HOW CAN A GENRE OF MUSIC BE A TYPE OF PEOPLE
LMFAOOO
hippy
Wah gwaan
party pooper
sounds nice
i wanna listen to wah gwaan one of these days
nah but imagine not being reggae
Wait isn't that a roadman thing?
what?
i mean when u live in the most ghetto part of east london u have to adapt
the doo-doo hit the water and the water hit the booty
I like Chip or whatever his name is
Do you know Unknown P?
lmao
spell it
?
Ok I'm heading out
too late again
-nose breathes-
you underestimate my power
indeed you are @twilit lagoon
tell griff to get me some alcohol too
whatever hes got @twilit lagoon
isnt that nice
fuck sake
banana bread beer
ayt
i mean u only live once
so why not
ok
seems legit @uncut meteor
so like a shape wall @twilit lagoon ?
a membrane around the shape?
also @uncut meteor why is there a help channel for all the elements in the fucking periodic table
l
I didn't get voice verified yet...
yo whatsup
whats the problem
then try
I did something like that
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
accum('asdf')
and dunno what to do next
hey @woeful spear
what's going on
kinda tough doe
the result comes Nonw
None*
ohh
I forgot smth
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider)
accum('asdf')
that's better
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider, end="-")
accum('asdf')
run it, each character in your string will be split but
but we need to form an algo for the 2nd part(like 0-01-012)
@golden compass
wait, how did u do so?
I mean this expression at the frame
where
i just tried visualizing the problem
no no, I mean look at your message and look at mine
your in the frame
which command I have to write to do so
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
! code
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider, end="")
accum('asdf')
!code def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider, end="")
accum('asdf')
'''py
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider, end="")
accum('asdf')
'''
i did the command so the bot can show you
I got it
but I don't understand where exactly should I write !code
!code
!code
print('Hello World!')
print('Hello world!')
yes
well, thx
this kinda tough
yeah
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(divider, end="")
accum('asdf')
def accum(s):
up = s.upper()
for i in up:
print(up, end="-")
accum('asdf')
for now i tried without the divider variable
I think firstly we have to double, triple... letters
and then only divide them by '-'
def accum(s):
up = s.upper()
for i in up:
divider = i.split()
print(*divider, end="-")
accum('asdf')
I tried smth like that but it doesn't seem like we can easily upgrade it
@jaunty lance r u here?
ok
it is goof
good
but now we have to do the rest of the letter
letters
that is a big problem fir me
for me*
@golden compass
.
look, I think we don't have to divide them by '-' now
mb
wait a minute
it will be kidna hard
i've found great flowchart maker
can you see it?
it says i dont have access to it
i have the hand cursor
give then
I can't
why
click reset
what software is this?
oof
yeeah
fine
then I will edit it
and you will see it
and if something will go wrong you will text me
nothing complicated
I've never done it before
write comments
i see it
If only string had a function which could make a word go from asdf to Asdf XD
title()
How tf i forgot
but I don't think it will be useful
1)We have a accum() function
2)To make from 'asdf' -> 'A-Ss-Ddd-Ffff' firstly we have to upper() it
3)Then we have to double, triple... each letter
look
how to do 3-rd clause
I'll left for while
maybe we should try ask this question in one of the available help channels
def accum(s):
main=s.title()
for i in range(0,len(s)+1):
print(main*i,end="-")
accum('asdf')
Well, I cant figure out not to bring the entire word here LMAO
@golden compass
i do a bit, not done html since a year or 2
I learned it before with css and js, but forget for now @fiery hearth
khmmm
idk
ummmm, well this is a python server though
figured out?
nope yet
hey, can you help us figure this thing
What is it
read all old chat and check it out'
from here
U using HTML
python
What u trying to do
figuring out a problem
creating a function that could make a string(for eg- "asdf")converted to the following way="A-As-Asd-Asdf"
any idea?
str.title()
def accum(s):
main=s.title()
for i in range(0,len(s)+1):
print(main*i,end="-")
accum('asdf')
Umm I am not sure. Try asking Reddit or google it but make sure you check the code before u out it in
bye
it was fun trying to solve
i usually dont accept friend requests but i am saving it for now
hello
can u help to solve it
def accum(s):
main=s.title()
for i in range(0,len(s)+1):
print(main*i,end="-")
accum('asdf')
that's the latest version of our thinking
||umm, nope, cuz i'm too lazy sry||
hy @sick cloud
@fiery hearth helo
how are you?
i'm good-ish and hbu ?
def give_string(string):
string = "asdf"
final_string = ""
temp = ""
for letter in string:
temp += letter
# for other_letter in temp:
final_string += temp +'-'
return final_string[:-1].title()
print(give_string('asdf'))
there you go
m good too.....do u have any idea abt css
def give_string(string):
# string = "asdf" why are u redifinig string ?
final_string = ""
temp = ""
for letter in string:
temp += letter
# for other_letter in temp:
final_string += temp +'-'
return final_string[:-1].title()
print(give_string('asdf'))
by mistake lol
nope, i barely know css, html and js x)
I converted that code into a function and forgot to do that
lol okay
but i do wonder what @tidal rapids is for..
@neon sleet @fiery hearth ^^^
any idea of why that bot exists ?
@fiery hearth you wanna display link on the side of the logo?
Don't know either, I think its name got changed from something else to zoot
i want to make a space between them
3 bots in total...
ModMail also
In the blue strip?
omg
you wanna display the link in the blue strip?
no i want it to be on right hand side
on the right side of ?
right half of the screen?
i'm bad rn
wait it doesn't work as well, we had to do smth like 'A-Ss-Ddd-Ffff' rather than 'A-As-Asd-Asdf'
thats even easier
you can multiplay the letter by its index + 1
@versed island and my knuckles were bleeding before, on my right hand
@versed island play: https://lichess.org/fLvndABR
Join the challenge or watch the game here.
hello
helo
helo!
how u doing ?
i'm coding
same
nope
discord bot I see
its obv ig
ok
thx, i'll check
@ebon junco too many diccs flying around that's why
it's cuz there's lots of teenagers around
well they don't care if you're a proper grown-up haha but i think that would be dope
?_?
it's hard to moderate 120k people server
that's why they do it
99%
from 120000 haha
tf im a teenager
same, ig
i was a teen once aswell
then i took an arrow in the knee
picking the best one
hahahahahahahahaha
oooooooooooooooooooooooooooooooooooooooooooooooooooof
it's a skyrim pc game reference
can't believe you haven't encountered it yet
Skyrim is a PC game
that's fine ha ha
i dont play skyrim
it's bad to spend hundreds of hours in videogames
like i get
had*
27
makes me cry
how much programming experience do you have?
im learning python basics
F
im currently learning functions
learnt loops, string, if else statements and all those basic stuff @hushed elm
nice
im very bored
play Roblox
hey guys
quick question
i have a lot of paths of xml files and images, but i wanna make a UI
how can i share my exe file containing those pathes so that the users can also use
Make a setup file that is ran to make sure the files are in the right location
And if not, put them there
ur name sucks 
@uncut meteor @whole bear hello
yo
sure
nopes
what sort or task u wanna run
@hard wyvern
ohh gocha
u wanna bunk
i see
yeah its the same thing
run it and leave it for the day
selenium is good
for automation
yeah
I think it's a web driver
#voice-verification
yeah @near ocean you have to verify yourself first
$TaskName = "NewPsTask"
$TaskDescription = "Running PowerShell script from Task Scheduler"
$TaskCommand = "c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
$TaskScript = "C:\PS\StartupScript.ps1"
$TaskArg = "-WindowStyle Hidden -NonInteractive -Executionpolicy unrestricted -file $TaskScript"
$TaskStartTime = [datetime]::Now.AddMinutes(1)
$service = new-object -ComObject("Schedule.Service")
$service.Connect()
$rootFolder = $service.GetFolder("\")
$TaskDefinition = $service.NewTask(0)
$TaskDefinition.RegistrationInfo.Description = "$TaskDescription"
$TaskDefinition.Settings.Enabled = $true
$TaskDefinition.Settings.AllowDemandStart = $true
$triggers = $TaskDefinition.Triggers
#http://msdn.microsoft.com/en-us/library/windows/desktop/aa383915(v=vs.85).aspx
$trigger = $triggers.Create(8)
Note. In this case, a trigger is created that is activated during the boot (code 8). See the full list of codes below:
TASK_TRIGGER_EVENT 0
TASK_TRIGGER_TIME 1
TASK_TRIGGER_DAILY 2
TASK_TRIGGER_WEEKLY 3
TASK_TRIGGER_MONTHLY 4
TASK_TRIGGER_MONTHLYDOW 5
TASK_TRIGGER_IDLE 6
TASK_TRIGGER_REGISTRATION 7
TASK_TRIGGER_BOOT 8
TASK_TRIGGER_LOGON 9
TASK_TRIGGER_SESSION_STATE_CHANGE 11
In this video we are going to be automating zoom such that it automatically logs into one's meetings / classes on time. Python is used for this project and each step is explained.
Code from the video:
https://github.com/Anish-Malla/Zoom-Automation-Python
Thanks a lot for watching! Please like and subscribe if this video helped you!
Any feedbac...
havent seen this
may be this works
@hard wyvern
its using pyautogui
@fiery hearth
https://jsfiddle.net/#&togetherjs=ajvPOwItsv
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
actually already done the joining part as i told the problem is that I want to run it at specific time
@whole bear
lol
marquee

Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
print("I want to learn Python.")
!e
print("Nice")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
Nice
!e
print("Thanks")
@rich cloud :white_check_mark: Your eval job has completed with return code 0.
Thanks
hi kiko
Hi @normal hinge
why don't u talk
Thanks
where are u from bro
!e
print("Earht")
@rich cloud :white_check_mark: Your eval job has completed with return code 0.
Earht
lol spelled wrong.
|!e print("EARTH")
Who is?
u
so kiko is gpt3
I feel like you're more excited about that than I am
xD
dudebro missed you.
alot
!e
from functools import partial
from types import FunctionType
class AddableFunctions:
def __setattr__(self, key, value):
if type(value) is FunctionType:
assert len(value.__code__.co_varnames) > 0, "method requires at least one parameter to allow for self."
self.__dict__[key] = partial(value, self)
else:
self.__dict__[key] = value
class Test(AddableFunctions):
def __init__(self):
self.val = 20
def my_test(self, var_a):
print(f"Instance val: {self.val}")
print(f"You passed in {var_a}")
a = Test()
a.foo = my_test
a.foo(5)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Instance val: 20
002 | You passed in 5
!e
from types import MethodType
class A:
def __init__(self):
self.val = 20
a = A()
def test(self):
print(self.val)
a.m = MethodType(test, a) #func, instance
a.m()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
20
!e
from functools import partial
from types import FunctionType
class AddableFunctions:
def __setattr__(self, key, value):
if type(value) is FunctionType:
assert len(value.__code__.co_varnames) > 0, "method requires at least one parameter to allow for self."
self.__dict__[key] = partial(value, self)
elif isinstance((prop := getattr(type(self), key, None)), property):
prop.fset(self, value)
else:
self.__dict__[key] = value
class Test(AddableFunctions):
def __init__(self):
self._val = 20
@property
def val(self):
return self._val
@val.setter
def val(self, _val):
assert _val > 0
self._val = _val
def my_test(self, var_a):
print(f"Instance val: {self.val}")
print(f"You passed in {var_a}")
a = Test()
a.val = 17
a.foo = my_test
a.foo(5)
a.val = 5
a.foo(12)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Instance val: 17
002 | You passed in 5
003 | Instance val: 5
004 | You passed in 12
hey guys, anyone knows how git merge works? I have a conceptual thing to ask
hang on
just a sec
can you please explain how this worked
thanks, still not clear, but I think it I should just move on for now ๐
xD
srry it was just above "three way merge" so I shared
!e
def foo(s, x=[]):
x.append(s)
return ' '.join(x)
[foo(_) for _ in ["I", "didn't", "think", "this", "would", "work", "like"]]
print(foo("This."))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
I didn't think this would work like This.
!e
class Test:
def __init__(self):
self.KEK = self.val()
def val(self):
yield "You"
yield "stink"
yield "lol"
def ___(self):
return next(self.KEK)
def foo(lol=Test()):
print(lol.___())
foo()
foo()
foo()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | You
002 | stink
003 | lol
print('hello world')
@inland lance Talk in here
!e
for(i)in range(1,101):print(["FizzBuzz",["Fizz",["Buzz",i][i%3!=0]][i%5!=0]][i%15!=0])
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | Buzz
004 | 4
005 | Fizz
006 | Buzz
007 | 7
008 | 8
009 | Buzz
010 | Fizz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/juzibiqujo.txt
@inland lance Did you need anything or were you just trying to randomly get under my skin?
mighty noisy
@inland lance If you're going to talk to me, talk to me in here
#discord-bots isn't the right channel to talk in if you're trying to communicate with us
Someone has been naughty and needs to go to the principal's office O.o
is the world stilll programming on windows 
Sounds like way to work to make a module to emulate that lul
prob already one on git tbh
the big boy vocabulary in here rn smh
@versed island game of chess?
O.o
send a limk
Join the challenge or watch the game here.
CPython is following SemVer though
Dict operations
And builtin typehints 
3.9 doesn't use the parser
for python 4, I want to see JIT
PyPy is great but PSF making it default would really give it resources it needs
lmao
!note @tidal salmon bulli
:ok_hand: applied note to @tidal salmon.
xD
I kinda wanna try it ngl
!note @gloomy scaffold ๐
dam
not even a no access reply
!user
!loser
!i a 25800 | Tried to bully Akarys into speaking to me with his French accent for my amusement. Treating people's speech as a novelty is very offensive.
user commands takes long
!ping

Created: 5 years, 2 months and 29 days ago
Profile: @rugged root
ID: 98195144192331776
Joined: 2 years, 7 months and 25 days ago
Roles: <@&463658397560995840>, <@&764802720779337729>, <@&352427296948486144>, <@&295488872404484098>, <@&585529568383860737>, <@&267630620367257601>, <@&778378647618453545>, <@&587606783669829632>, <@&267629731250176001>, <@&267628507062992896>
Total: 8
Active: 1
for me as wel
You are not allowed to use that command here. Please use the #bot-commands channel instead.
see
Is gateway broken or bot broken?
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
hey @rugged root, remember u were telling me about "three way merge", and u mentioned rebase, i didn't know rebase at that time, now I read it & got confused, can you please explain it in reference to this image branches
they're rebasing experiment to master
!server
Server information
Created: 3 years, 11 months and 20 days ago
Voice region: europe
Features: VANITY_URL, WELCOME_SCREEN_ENABLED, MEMBER_VERIFICATION_GATE_ENABLED, ANIMATED_ICON, INVITE_SPLASH, RELAY_ENABLED, BANNER, DISCOVERABLE, PREVIEW_ENABLED, COMMUNITY, NEWS, PARTNERED, VIP_REGIONS
Channel counts
Category channels: 26
News channels: 8
Text channels: 151
Voice channels: 11
Staff channels: 67
Member counts
Members: 124,291
Staff members: 86
Roles: 79
Member statuses
33,546
90,745
PyDis is future smh
nah pydis is a short
xd
Rebase is one of two Git utilities that specializes in integrating changes from one branch onto another.
some ISPs will give you new IP when you restart modem
I do assume that now tho
!e
import os
print(os.listdir())
@neon sleet :white_check_mark: Your eval job has completed with return code 0.
['Pipfile.lock', 'Pipfile', 'config', 'snekbox', 'LICENSE', 'tests']
I don't rebase, it screws with History, I highly recommend merging, squash merge if you want
oooo he hacking
whats a snekbox
a box that contains sneks
just learning here, but if you don't remember how to rebase, than its okay I guess
!e
import os
print(os.getlogin())
uh, what
same xD

That's why I gave link, we messed with rebasing at work but we ran into issues, so we stopped doing it
@rugged root if I have two branches 1 and 2, so what do I do to rebase 2 into 1?
checkout to 1 and do git rebase 2? or vice versa? I don't get this part
!e
import os
print(os.getlogin())
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | OSError: [Errno 25] Inappropriate ioctl for device
probably checkout the target branch
!e
import os
print(os.curdir)
@neon sleet :white_check_mark: Your eval job has completed with return code 0.
.
uh
#bot-commands
i guess I'll read the link again, focusing more this time
X-{
LUL
yea, I think if you ever push, rebasing becomes nightmarish, which is why we didn't do it
@rugged root main 
this is the next topic ๐
@uncut meteor If you can throw it into the sun, you will get a virtual medal

@balmy nymph Aren't most of ours still master?
what's snackbox?
A song written for the contributors at pythondiscord.com so that they will remember to lint before they push. All you have to do to set up a precommit is pipenv run precommit.
snekbox is system that runs !e commands
Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
cpt. closet <3
Basically, you only pull LFS when you need them
oh that's nice
I don't think we ever had LFS, do we @rugged root
Like, we never had any file larger than 1Gb
Doesn't work, yeah
.git
Fun fact: when you clone the pydis website, you download the whole CSS toolkit since someone accidentally commited it in the past
Rebasing isn't a replacement for merging
i want to talk, but a lot of children are shouting playing right now in my house right now
and now hemlock will make a joke
what Akarys said, whatever, MERGE EVERYTHING!
It is a tool, helping you to solve issues, but you shouldn't use them on a regular basis
and squash merge if you care about your history
Also that
my mother teaches children, elementary, and she's doing it right now
my mom slaps kids who talk too much
@rugged root isn't that how programming work haha
"it's my best guess!"
We don't squash either
my mom's over it, she has a stick now
or those spanish moms who have a flip flop
We want to keep the attribution of the code to the contributors
chacla or what's it called
Also, that makes the blame a little bit more meaningul
did i hear my name
"Commit 1: add this line"
"Commit 2: add the next line"
"Commit 3: add a dot at the end of the first line"
Stats!
Yeah, that make sense
dev-ops commits? ๐
small changes, everyday commits, youtube taught me
everyone commit method is different
some people are commit often, others prefer larger commits
I prefer small
I always try to commit working code
and if I've changed 4 files for two different reasons, I'll make two commits, one for feature 1, one for feature 2
I try to never have a commit that'd just fail because of a parse error or so
I hate linting on commit, that's not the time to check it
can we delete commits?
git log --oneline
fb2bcc5 (HEAD -> master) Fifth Commit iss53
0fbb14b Revert "Third Commit"
0835452 Useless commit
655ec85 First Commit hotfix
5fb9248 First Commit iss53
b1123fe Fourth Commit second_branch
56c5fa2 Fourth Commit to master
77ad30b Third Commit
6e19cd6 Second Commit
41f2836 (tag: v0.1) First Commit
66569b6 First Commit
wipe out 3-4 commits from top, or maybe bottom?
Sure
check should be on push
yeah, then how?
rewrite history
git reset --hard 655ec85, but history rewrite warning!
but it's just big no no
git reset --hard 655ec85, so everything below it, or above?
Your top commit will be 655ec85
You could force push
Buuuuuuttt
Some people will hate you haha
it won't matter, even if I am the author/creator?
if it's a solo repo, it won't matter
If you are the only one to work on the branch, that's pretty okay
if it's a team repo, it's pretty ugly for coworkers
since they have to pull right away
And your coworkers will not like you
in a work environment, if you want to rewrite history, you have to get Team Lead sign off
nice
no I got the ethical part, but if I created the repo, and then did a hard reset, it would reset for everyone? if they did git fetch origin at some point, everyone will get hard reset?
and you better come with great reason, only reason we do it is secrets get committed and even then, we just roll the secret
time to find out how good your code is at dealing with secrets!
Depends if they already fetched it or not
so I get it, it might create conflicts, ask them to keep the current changes, or accept incoming ones
Also, reseting commits that contain tokens won't work
Where do I start with coding when I have no prior experience
It will still be on the server
What are the coolest things you can do with programming?
Akarys, if you rewrite and push, it should overwrite the history
Why is it so useful?
so you just can't delete commits, if there are remotes?
How do I protect from hackers?
can i post a harry potter + french meme @balmy nymph ?
You can still manually pull the glob from the server
How does the internet work?
It is very tricky, but it is possible
even if you come back later?
What is the difference between computer engineering and computer programming
Yeah, if GitHub hasn't purged them, and afaik they don't
I don't know, security has made us rewrite history
How long does it take on average to learn programming?
engineering is 4 years, programming is as long as you want it to be
๐คท
It depends on you, and the time you invest in it
Okay.
but I really dislike our security team
Do you use a self hosted repo?
Also all of you are developers, what do you develop?
Maybe they purged it after that
security gaurds?
Where do I start with programming when I have no prior experienve
yeah f*** coworkers
Can I bitch on my schoolmates haha
Anyone have any recommendations for someone who is new to this programming world?
try youtube for this question
Alright.
damn.
lol
people get jobs from facebook? ๐คจ
That's how programming in enterprise work, right?
is this before linkedin?
In my industry of civil engr, network is also majorโobviously.
"I don't know how, but I'm gonna do it!"
they do sometimes
eyyy yess
nice, new keyboard, still not used to it
and by security, network security
thanks everyone (Rabbit), I'll go learn rebase now
no, I like our security guard
enjoy accelerator
she is pretty interesting and politically, it's great to hear from someone who makes ton less then rest of us
I'd say thunderbolt since you can charge it at the same time
hmm interesting
Hi ! @eternal bough
i gotta go, see you later
but I've had bad experiences with Thunderbolt port replicators
๐
Later, bud
I'm still rocking old style dock at work because how much Thunderbolt docks suck
ok, what is a detached HEAD?
like, I get why Surface line hasn't converted
git branch
* (HEAD detached at 56c5fa2)
master
second_branch
thirdbranch
It means that you aren't on a branch
this is what I did git checkout 'master@{1 days ago}'
head DETACHED
I am addressing reviews on my PR
hardcore programmers
I rebased my master branch, and I was trying to roll back changes one commit, how do I do it?
2eb91fc (HEAD -> master, thirdbranch) ThirdBranch Commit
fb2bcc5 Fifth Commit iss53
0fbb14b Revert "Third Commit"
0835452 Useless commit
655ec85 First Commit hotfix
5fb9248 First Commit iss53
b1123fe Fourth Commit second_branch
56c5fa2 Fourth Commit to master
77ad30b Third Commit
6e19cd6 Second Commit
41f2836 (tag: v0.1) First Commit
66569b6 First Commit
wanna roll back changes to fb2bcc5 Fifth Commit iss53
Ah yes, of course
git reset --hard fb2bcc5?
xD
hard reset just to roll back changes?
bast?
@uncut meteor Technical details! It is launching a new python process, applies kernel restrictions using cgroups and rlimits and remounting filesystem, and redirect stdout and err to the main snekbox process
ok, git reset hashthingy works
@rugged root fyi the issue we had on snekbox is that two folders were mounted in rw instead of ro
We just forgot to include them in the config
also, since Rabbit's here, and he once said he works with powershell (I remember),
when I run some while loop, it doesn't stop with Ctrl + D/Z/C, any of it. why?
it used to in linux
it will if you give it second
you have to wait for CLR to get control C
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
you might consider learning Kotlin instead of Java
ok, its not stopping? is it because of ThreadPoolExecutor?
programmer โ coder ?
that's not Powershell
@rich cloud Just in my head
And it's more like...
A programmer is a coder, a coder is not necessarily a programmer
also Python threading 
everyone has their own definition
Got it.
Again, this is purely just my definition
I understand :D
im a noob
me too xD

no it is, its powershell in VSCode
How is that Powershell?
@grave osprey Well at least you're modest about it
oh, doesn't matter, Python executes
also, if I run it on external powershell, it won't stop
does it work like you expect in cmd?
so not Powershell
from concurrent.futures import ThreadPoolExecutor
from time import sleep
def foreverHello():
while True:
print("Hello")
sleep(1)
def foreverBye():
while True:
print("Good Bye")
sleep(1)
if __name__ == '__main__':
with ThreadPoolExecutor(max_workers=3) as pool:
pool.submit(foreverHello)
pool.submit(foreverBye)
ppl with a degree and interest > self taught/interest > just a degree
Again, threading:
you guys heard of IIT? google's CEO's from there
although I'm pretty sure he doesn't code, anymore ๐
God damn it
@lime plaza What were you saying?
Hard to get a word in edge wise at times
accelerator sure
I was going to ask if an associates degree from a technical college would be enough and if a 4 year uni is needed.
but if you want to get associates degree before 4 year university, that's not a terrible idea esp if you are American
well i might be able to use my 2 years and switch into a university and complete to get the bachelors
how do you stop powershell execution?
while True:
print("Hello")
how do I stop this? CTRL + what?
CTRL + C
or ALT+F4 (closes the application)
i ran the code in powershell
shutdown -now
accelerator, this isn't a Powershell problem
shutdown -later
Start-Sleep 180;Stop-Computer -Force```
am i supposed to know what your talking about
ok, I'll use this
I mean, to stop Python
hmm, to stop python
Are you able to kill that before it triggers the shutdown?
We expect all members of the community to understand everything that is being discussed. That is rule 0 of this server.
WHAT
get-process | where {$_.ProcessName -like "*python*"} | stop-process -Force```
how many lectures max have you guys attended in a week?
@rugged root That's from this morning haha
That's amazing
eivl turned into elvis
Well, eivl's
so I have to attend 46 lectures per week for a month, should I kill myself? 50 min each
Application process is public on website
If you're wanting to take the classes for the sake of taking them? EDIT: That was to you Cody
Do it
DOOO EEEEEEEEEET
is it true fang's have changed their policy for jobs, to that they don't require a graduation degree anymore?
Yes, No
so not all fangs
Google will hire you, you will be writing Javascript for GMail UI that your team leader told you to do
Google now has enough products they need line workers
will they pay you 250k ?
HA HA HA..... no
Permission to send a star wars gif?
๐ข
Accepted
am I allowed to dm you or someone a link to the tech college i want to go to?
@limber blaze THIS ISN'T HARD: https://admission.stanford.edu/apply/
Undergraduate Admission at Stanford University--one of the world's leading research and teaching institutions. It is located in Palo Alto, California.
You can, yeah
ok well after hes done talking
If you're comfortable with sharing that
I gotta clear Toeffl first to go to american/canadian colleges
RegEx is American
SNAKES ON THE GOD DAMN PLANE
(goddamnit i hate being scrolled up without noticing)
it*
this is getting derailed
xD
i think there's at least one discussion on mental health here everyday
Usually my fault
is it even really a programming server if everyones not off topic?
Mental health is a very interesting topic IMO
japanese has 13
why do you think all japanese middle school anime have boyfriend-girlfriend theme going on
they show that stuff on their national television
Japan, what an interesting place
people are in heat over there
You rang?
i dont get followed, i follow ๐
wow very crowded chat
ok, I'm going to bed, first lecture 9 am, last lecture 5pm, continuous for 1 month ๐จ๐จ๐จ
talk about my mental health
lol sup griff long time no see
23/25 o_o
the squeaker
42 is the answer to life, the universe & everything
does anyone know why "42" is the meaning of life?
Because it is
I hate this program, I hate this program, I HATE this program
A super computer said so. xD
After millions of years of computation.
yeah, but it's not just some random number, someone came up with it
lmaoo
im sure there's a science or whatever behind it.
I've heard that it's a reference to the Japanese god of death. basically the meaning of life is death
if something is 4 items per dollar how much will 200 of it cost?
someone said 50
he can beat thanos right?
I could beat thanos
what program?
Does the program have a face?
Take it easy
@vivid gull Dunning Kruger
I finished my "Email Santa Discord Bot" on the 24th, but I have a problem: it uses 100% CPU all the time. is this normal?
Very no
nope
code
The interpreter will handle that on its own
i was afraid of it running out of ram
people said that forcing gc will make the ram clear faster
also,. use the discord.ext.comamnds extension for commands, not a startswith
oh no, do i have to re-write my entire code now?
is there a better way to do this? i feel like this could be what's taking up 100% cpu because it's constantly checking
# Task to send out finished emails to Santa (this ensures that two emails don't clash with each other)
@tasks.loop()
async def sendFinishedLetters():
global finishedLetters
for user, letter in list(finishedLetters.items()):
await client.get_channel(letter[0]).send(letter[1])
for line in letter[2]:
if len(line.strip()) >= 4:
await client.get_channel(letter[0]).send(line)
await client.get_channel(letter[0]).send(letter[3])
del finishedLetters[user]
@vivid gull The Quality of Life Scale (QOLS) originated from John Flanagan, who was an American psychologist (Burckhardt & Anderson, 2003). The Quality of Life Scale measures things like satisfaction, perceptions of control, involvement, commitment, and work-life balance, in terms of one's personal perception.
most likely yes
just dont check constantly? put a 30 sec delay on it?
the problem with that is that it increases the time that the user will have to wait to see their "finished letter from Santa"
seems like a library design problem in your emailsanta library
there should be a way you can just submit a mail and get the response without polling (checking in a loop)
it is that way already
why do you need to loop then?
but the problem is that if two people use the bot at the same time, it will look weird and like this:
Dear Felix,
Dear Laundmo<
Hi Felix! How are you doing? Such a good boy...
Hi Laundmo! etc.
Felix - good boy
this makes sure that they are sent out in sequence
Laundmo - etc
unfortunately this "fix" uses so much cpu
you should get rid of the loop and the polling, wait for the entire message to be done and send it in a single message
no, you are a good boy too Laundmo
ok thats wierd
it was a joke in response to @hushed elm
anyways
wait for the message to be done in your comamnd code
then send it at the end, as a single message
this will be much clearer once you use the commands extension
the reason i have to break up the letter from santa into multiple messages is because it exceeds the discord 2000 char limit
you can use embeds to send longer messages, also looks nicer. sadly the splitting of the message for embeds is a bit annoying
like one entire embed in total?
yes, but each field has its own limit, so you need to split it across multiple fields
discord isnt meant for really long messages tho, so another alternative would be to send a message with a part of the reply and the rest in pastebin for example
send a message with a part of the reply and the rest in pastebin for example
That sounds a bit ugly ngl
if you have a 2000+ char message...
it's an entire letter from Santa
Maybe send an image?
and i wanted it to be legible without downloading stuff
images can't be copy-pasted
as text
well you have to compromise somewhere
Link them to the page that has their letter?
so host your own?
i don't have the code
or as i said, pastebin
it's an ASP script that runs serverside at emailsanta.com
no i mean, create a page that just stores the reply you get
and creates a permalink for it
like, your page would just get a text and store it, at which point you have created pastebin
lol
alternatively: https://pypi.org/project/pysummarization/
maybe i would try the embed technique then
because i don't think it will exceed 6000 chars





