#voice-chat-text-0
1 messages ยท Page 687 of 1
!e ```a, b = 0, 1
while a < 10:
print('fuck u')
a, b = b, a+b
@whole bear :x: Your eval job timed out or ran out of memory.
001 | fuck u
002 | fuck u
003 | fuck u
004 | fuck u
005 | fuck u
006 | fuck u
007 | fuck u
008 | fuck u
009 | fuck u
010 | fuck u
011 | fuck u
... (truncated - too many lines)
Full output: too long to upload
why ?
Opal got a nice voice, for voice acting, like voice acting for a documentary or something
Indeed
xD
Opal's voice is god-like
bruh
does every autralian sound like that ?
@somber heath nicee, one of the rare
ok ok
@wise glade hell yeah
let's stop simping for opal
๐
morgan rules the documentary voice acting department
i think david attenborough is better than morgan
why laughing so much dude ?
gonna grab some dinner, be right back ๐ฝ๏ธ
i really dont gets the idea of raspberrry pi
wait for some month and phones will be faster than it
rasbian is the os name
for raspbeeri pi
10/10 names tbh
my friend had one but beleive me it stinks and is slow for
yess, vim stuff
coding
hey Hemlock o/
Just finished the aoc challenge for today
And I got a new headset, finally I can listen to music and code
its quite slow according to the price but size wise its cool
lol your name is too funny for me @whole bear
Someone learning Linux?
@whole bear Yeah lets not have immature spamming of "fuck u" via our bot. Or at all
sorry sir!!!!
]\
Yeah, I'm gonna get a raspberry pi 400 for Christmas
Ah nice.
@rugged root will you get discarded if you can't solve the problem of today in the advent of code?
You could participate in this: https://linuxupskillchallenge.com
It runs every month. I was going to do it last month but didn't have the time. ๐
hey Bura
I feel you
A fast, compliant alternative implementation of Python
Download PyPy
What is PyPy ?
Documentation (external link)
On average, PyPy is 4.2 times faster than CPython
PyPy (with JIT) bench
rly
Looks like he's in his 20s.
blue eyes....
So if you want to stay young forever, just become the lead singer of an 80s pop band.
finally my $help command is working
nah. it was gving me errors
which says that there can't be more than 1024 words in an embed
yes?
for?
sure...
I might not be the best to ask, lol
maybe mark
this is what I do:
- go through code (without testing).
- test
- go through code (with testing).
- look for places to improve efficiency
- make the code look clearner
I wonder why python standard gitignore does not include IDE files, like .idea, .vscode, etc
hi
i have a following simple method to execute tasks
def execute_async_tasks(tasks: list)->list:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
results = asyncio.gather(*tasks.copy())
loop.run_until_complete(results)
loop.close()
return results.result()
lets say i define them one single time:
tasks = [some_class_with_async_methods.do_some_method()]
how do i prevent coros in tasks list from awaiting so i could re-launch
execute_async_tasks(tasks)
and dont get
RuntimeError: cannot reuse already awaited coroutine
tx
a moment of silence
is
not
Oh yea, other languages, time to do the same in javascript now
.aoc subscribe @frigid panther
yep just read the #announcements ๐
Yeah, I had to ask Joe ๐
I decided to open an aoc202 repo on my github
too much work from private > public > private ... .
Alright, I will do that from tomorrow
Just don't look at it.
Just looking at the bot repository... J. Christ is a contributor? ๐
output does not matter, as long as you understand which is the first and second result
output is only for you
everyone gets different inputs
damn, you're quite old
well i am mute now
I don't even remember, lol
who plays zelda games here?
nah im not that old
isnt breath of the wild the newest one?
not really @rugged root, in hyrule warr, they win against ganon
oops, spoiler
its a new timeline btw
nop
its the best zelda game so far tho
just get the master sword, hemlock
i used to play a lot, but well i have to study
I remember fighting a lynel and then going back to the save before fighting the lynel cuz I broke too many weapons while fighting him
and lynel weapons are not very good
it still a zelda game, it just opens a new timeline in the story
2021 is 35th anniversary of zelda
botw 2 is coming in 2021
i seriously love python. I created a multiprocessing program, which monitor changes in multiple files at the same time, and take action acc to those changes also concurrently. ๐ never made something like this before
cool
I remember doing something similar, when I had to rename a bunch of minecraft uuid files to their minecraft usernames
ur going to the wedding aren't you dragon ๐
not true multiprocessing in python
yep
Just realised I was sitting in the dark.
Was too engrossed in what I was doing to notice the sun going down ๐
must be a beautiful sight
is it possible for my scripts to automatically include an import statement in themselves?
Not sure what you mean @wise glade
the very first import statement, I didn't write it when I wrote this script, but now it appears evrytime when I run the entire program which runs this script at a certain point
i mean, if I wanted to import that first line, I would've written from InternalWorkingScripts import createcomponent_txt, not that subfolder version
I have put appropriate imports in __init__.py of those modules
not that it is crashing my program or anything, just something I noticed
maybe its VSCode doing something
Yeah, sounds like the something the IDE would do.
hey Opal, why do you come to this Off-Topic voice channel? ( not that its a bad thing, please come tommorrow as well, your explanation are easy to understand )
you could become a good anime/cartoon voice actor, lol @rugged root
maybe you can do it as a hobby
@rugged root I have a question, regarding a Python issue i'm having. Where can I ask that question? In the chemical Help channels?
Yeah you'd want to check out the #- that
What he said
That'll help you get started using the help system
Neat. Thanks guys ๐
anyone of u ever try using your old laptop's lcd screen as a second monitor with your current pc?
it don't connect it to my pc but I do run youtube on it while I am gaming/coding on my pc
oh, srry, I forgot to mention, the old laptop's dead, motherboard fried
Yes, I did.
You're having an issue with connecting it?
with controller & everything?
Well, I bought the VGA controller from eBay and just connected it to the screen.
no I have an old laptop, motherboard cooked, but lcd still works, so I thought i'll use a controller for that lcd
contoller comes around 24-30$ on ebay
Ah, that's easy.
what's the cost of a new monitor?
Yea, basically you need to buy the controller (since the motherboard, that in your case is cooked) and just hook it up.
15.6, full HD would be nearly 100-200$.
yeah, super long tablet
Tablet? The touchscreen 15.6inch screens are pretty expensive.
Sorry he's reacting to me in voice
yeah, mine isn't touch
yeah, u not hearing him?
I just realized I'm probably confusing things
I am not in the channel. I'm listening to a podcast ๐
Ooo which one
The only one i know: https://realpython.com/podcasts/rpp/
A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.
The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics.
Join us every Friday morning to hear what's new in the world of Pyth...
my new headset has 3.5mm jack for both input and output, I need a splitter if I want to use it with my pc, waiting on that
then I can talk
nosuchthingasafish.com | A weekly podcast about interesting facts from the makers of QI.
This
I love them so much
Is that a comedy one?
Comedic AND informative!
I have free time, i'll check them out after the one i'm listening now. Thanks man ๐
No problem! If you're familiar with and like the British show QI, you'll love it
is it functional_programming, if one of my function's working depend on weather some other function before it has already executed or not. For eg. if I made a func2() , but its proper execution depends on weather func1() has already executed or not? Otherwise these two func's follow all the rules of functional_programming
awe i cant talk
ah, ok got it
Yes, this would not be an example of a pure function.
Due to dependence on state outside the arguments.
See in #voice-verification for verification instructions.
I got ya. I joined bc I was wondering if someone could help me with understanding classes in python
I vaguely remember some urban legend about licking envelopes ๐
thats ok!
https://discordapp.com/channels/267624335836053506/303906556754395136/646781135346466844
this is hemlock explaining classes, I read it loooong back
I had it in the dm
can i inv you to a dm call later?
https://discordapp.com/channels/267624335836053506/267624335836053506/653963039359631381
this is recent I guess This covers properties
fair enough. in the mean time ill be working on my linked in course haha
can someone tell me about most useful dunders? I know __enter__(), exit(), iter(), next(), that's it
im trying to learn as much as i can for an interview i may or may not get O_o
__str__, __repr__
@wise glade __enter__ and __exit__ are cool.
enter and exit for custom context managers
what are dunders?
yeah, these, I have text for these, I can read, thanks for reminding
Oh, you said that 
Here's the full list: https://docs.python.org/3/reference/datamodel.html#special-method-names
so enter(), exit(), next(), iter(), str(), repr(), anything else?
Jinx ๐
I was a bit slower, you win lxnn
HI folks
do you guys recommend any courses on linked in to learn oop or python in general

!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
corey ms video
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I will be back after dinner
dozo( japanese) => please go ahead
jag's back
__eq__
__lt__
__add__
__sub__
__len__
__getitem__
__conditions__
ah maic
__init__
magic*
I think they would know about init if they know about the ones such as __enter__ __exit__,
that's why didn't mention it
dunder = double underscores
A guide to all the Magic Methods in Python
whats the point about having this:
getitem is the one that i find the most cool
__getattr__ is cool. It's called if an attribute isn't found the usual way.
Rust is lit
LSP?
if __name__== '__main__' is the main script section, which runs the whole program right? if there are many scripts in the program, we should have on main.py or something script, which contains this, and runs the entire thing.
( I think ?)
go ahead please
so if __name__ == '__main__' only runs if this script runs the very first time?
@main galleon You'll likely have to do py -m pip install <module here>
@wise glade When you import a module, its __name__ is its filename without the .py, but when you do python myscript.py the __name__ is '__main__'
@rugged root try Yoga, its quite big in my country for depressions etc.
What OS are you on?
so what does the self thing mean and when do i pass it
Then something isn't installed quite right
You pass self when you are defining a function inside a class @polar remnant
You'll want to get a fresh installer from https://python.org
thank you
class Student:
def __init__(self, name, favorite_subject, grade):
self.name = name
self.favorite_subject = favorite_subject
self.grade = grade
def study(self):
print(f"I love studying {self.favorite_subject}.")
def eat_lunch(self):
print("Yuck! Meatloaf again!")
def introduce(self):
print(f"My name is {self.name} and I am in {self.grade} grade.")
billy = Student("Billy", "Math", "6th")
sally = Student("Sally", "Science", "5th")
billy.introduce()
Student.introduce(billy)
i am here
you know c++?
yea
def study(self):
print(f"I love studying {self.favorite_subject}.")
# when I do
billy.study()
def study(billy):
print(f"I love studying {billy.favorite_subject}.")
but not much on the oop side
self is this pointer when an object access some class function
trying to learn oop and python at the same time
but still kinda same no?
I mean, this is a pointer to the object, and so is self it represent the calling object
srry, don't know JS
yes
i think so
got ya
well cya later mate
thanks for all the help
haha fair enough
people should pay yall
i am compluhcated
don't give em any wierd ideas ๐, I'm broke
@vestal badge No. ๐
time is important!
they're not bots ๐
thats lit
interesting. it can definitely happen!
thats an amazing thought
but opal is next level human
no way
@somber heath you were telling me about why multiprocessing programs always need to be run inside if __name__=='__main__()' earlier, right? please tell me one more time. I don't know why it is so
he shits too>
what r we talking about ?
well anyway, im going to back to watching linked vids on python. ill prob be nack later with questions
u're talkin about Elon Musk right? ๐
@wise glade You open a module and run it. Its __name__ is '__main__'. When multiprocessing spawns processes, which are of the same module again, their __name__ is not '__main__'. You don't want your child processes running the code which spawns child processes.
Can we bring realpython mods here ?
@stuck furnace so if my script has ```py
if name == 'main()':
pass
this exactly. So it won't run if imported, but will run if `python3 script.py` done on it?
Ah, not quite.
When you run or import a python script, it is executed line-by-line.
so instead of pass, i need to put the functions inside i don't want imported running done to?
But the code inside if __name__ == '__main__()': will only be run if you run the script directly (rather than import it).
but can I just put pass inside this section, to make it work
The code you posted wont do anything.
like ```py
lot of functions
#now in the end
if name == 'main':
pass
now wil these functions( lot of functions) run if imported from this script?
Say you have a script called myscript.py: ```python
print('hello')
if main == 'name':
print('world')
All i read is this
If you do python myscript.py it will print hello and world
But if you do import myscript from another module, it will print just hello.
in the end it says, if the module is imported the code is not run?
oh, ok got it, so whatever's inside, that just won't run,everything else is not affected
Ah, there's still sites like MIT OCW @whole bear
Although that's a shame. I was planning to have a look at that site.
i seriously didn't understand this at all. When multiprocessing spawns processes, which are of the same module again, their __name__ is not '__main__', why? is their name the process-id pid, when multiprocessing spawns process?
(I mean nt the "pid" but the integer number process-id )
so the answer is the first option. i understand that you have 2 arguments but why does rates have a * in front of it?
import multiprocessing
def square(v):
return v**2
def main():
#This function won't end up being called when child processes are spawned, though it will still get defined.
nums = [i for i in range(20)]
with multiprocessing.Pool() as pool:
data = pool.map(square, nums)
print(data)
if __name__ == '__main__':
main()```
Chillin can be a great way to lose money
by child process, you mean square()? @somber heath
oh, you mean, this function main() won't be called if some other script imports from this script
Correct.
brb
so its a bad thing, it won't get called, because?
You don't want it to be called on import.
You can call it if you want.
But it won't call it automatically like if I just had main() in the root indentation.
why not on import? is it a bad thing, if a multiprocssing.pool() having method gets called in imports?
I get it why won't it be called, since it is inside the if __name__ section
It's probably not something you want to have happen, correct.
so it won't be called again and again on every import
spawing multiple process pools?
cause threads & cores are limited
All if name in main, etc, is for is when you don't want something to run when it's being imported or being spawned as a child process.
opal baby
Not your baby. ๐
im sorry
ok, so multiprocessing pools containing methods can be imported by 1000 scripts, and executed, which isn't something good i can imagine, since we have limited cores/threads
so we just make it un-importable
opal you were the first person i ever talked to in this discord, ily
I'm not sure it actually does exponentially spawn threads, but it does kind of...break.
yeah, I mean, race conditions, dead-lock, stuff might happen
It's what you do to make it work.
does anyone know a good place to learn rust?
Race conditions aren't so much an issue in multiprocessing as they are in threading
so its like a law, that should be obeyed for proper functioning
Yah.
why not? can't multiple processes access a same file and modify it at the same time, without checking weather some other process modified it first?
is it blocked, that multiple process can't acess the same file
I have'nt tried it yet
Because processes don't share memory except where you pass special objects to them.
i remember, u were saying yesterday, that windows doesn't allow this to happen
so if 2 process open the same file, they create a copy of that file for themselves to work on it?
In threading, referring to a variable from one thread uses the same object in memory as another thread referring to the same variable name.
I guess I'll read those 3 concurrent programming books one more time, for a more comprehensive understanding
maybe not the third one (asyncio), haven't found any use of it at all
In multiprocessing, it's entirely different instances of the Python interpreter that are running.
So the memory, and what variables refer to what objects in memory, isn't shared
Working with files is different.
but, they can still acess the same file, to work on?
file contents
abc
process 1 does -> ```
abcdef
process 2 does ->```
abcghi
it overwrites the process1 work, but should've waited for process 1 to finish
Files...yeah, that's kind of another discussion.
in threads, we use locks to avoid this, but process don't have that
Yeah. They should.
if its a long discussion, then please don't explain, I'll learn along the way of my learning
does any of you guys have experience with pubnub?
thank you opal, I've made u type enough for a long time srry
Yeah. multiprocessing.Lock. You can pass an instance of it via the initargs parameter in at least Pool.
Files + Multiprocessing is a nice knowledge to have, but seems like I won't be using it practically for now
yeah, I gotta read those books one more time, for solid grasp, of these concepts
Quan Nguyen - Mastering Concurrency in Python-Packt (2018) and
Elliot Forbes - Learning Concurrency in Python_ Build highly efficient, robust, and concurrent applications-Packt Publishing (2017)
@wise glade It's technically a separate object in memory in each process, I think, but you can think of it as shared.
second one had a lot of examples
yeah, they used multiprocessing.Queue() a lot for intreprocess communications
not so much focus on the pipes
maybe its getting depreciated or something with time
Less fiddlefarting around with parsing the info out.
There would still be a good use for Pipe.
Streaming data, maybe.
thank you, as always easy explanations, gonna go finish some work then to bed, good night
@wise glade In the interests of being honest...I just ran a test and all of my child objects called themselves '__main__', so I don't really know what the deal is, there.
I always have more to learn.
where did everyone go
:x: According to my records, this user already has a mute infraction. See infraction #22372.
a
:incoming_envelope: :ok_hand: applied mute to @dreamy copper until 2020-12-01 18:08 (9 minutes and 58 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
hello @sick cloud
really good, how about you @sick cloud
i'm great, tmr is my last exam
KNOTS
Mathematician John Conway once boasted that one of his predecessors took six years to enumerate all 54 knots of a certain type, but that his own powerful notation "made this just one afternoon's work."
How did Conway accomplish this feat? and what tradeoffs did he have to make? and what good is knot theory, anyway?
In this talk, I will enumera...
gl @sick cloud
goood luck
thx
Hi
Django is confusing af to me
Then donโt use it, itโs old style of web development anyways
@stuck furnace WE LOVE YOU
is that jupyter notebook ?
Erm, okay
Erm
Alright ๐
u cool
Aight
hemlock, which reddit command do you like more? @viscid lagoon or @wise cargo
better is being a noob and acting as a pro among people like @somber heath
Uhhhh I'd have to look
I kind of like the latter more
I will implement pagination regardless of the style tho
How are you guys doing?
okay
@rugged root how long has it been with python?
try the reddit command in #sir-lancebot-playground
for a subreddit which can have images/videos
this is super inspiring @native nebula
me being @16 dont know any hell and waste my time in this server
Me too!
do u want me to die or something
?
i'm saying it could have been worse, being 40 and thinking you're wasting time
it's also not waste of time, you get to talk to interesting people on the server
What's got you stuck?
ur not stupid, docs are hard to read if you don't know much
im a super procastinator
Nobody looks at documentation the first time (or even second, third, fourth, etc.) and knows what's going on
Everyone is
and it's destroying my life lol
and i skip it and come to this server to hangout
I have been procrastinating a lot after I got my new PC, lol
Indeed, it's gonna destroy my university career
I like docs
ewww wtf
I consider django and dpy docs one of the best
hemlock, did you test the reddit commands
I did
i guess from tomoorow i wont come to server unless i dont complete docs
you dont have to complete docs
or else ill endup being idiot
The @viscid lagoon doesn't quite get the proper "hot" list
programmer
thats the API problem ๐
docs are like my tutorials
it randomly selects out of 25 fetched posts
Then yeah, after seeing that the Lance one shows/indicates content, I'm happier with that
Ah, weird
@hollow haven
Sometimes, I feel that my life would have been better if I had gone into fields other than programming/involving programming
sports, or any cultural activities
i am more into hacking but good hackers know good languages
for all those gamers out there, steam sale ends today
and also i have got some projects in my mind for college apps
college apps?
I legit thought he said "MLP" instead of "NLP" and I was trying to figure out what ponies had to do with it
as part of ecs
haaah
๐
I've literally just glazed over during all this
btw, just wondering, how would multiple off-topic voice channels do?
I mean it's interesting
I just don't understand any of it
Also we rarely have need for a second one, @stuck furnace
Wait
Ice
I meant Ice
Alright
I think they can move to code/help?
What's the use case?
autokeras @native nebula ?
I feel like I'm missing something
Also, this is a pretty good introduction to text classification: http://www.nltk.org/book/ch06.html
@hushed elm
oh, ty @stuck furnace
bye guys ill make sure next time i message here or talk i have gained a hold on python!
Sounds good!
@rugged root some time, it doesn't feel right
What Is the Difference Between condescending and patronizing?
Very few words in English have exactly the same meaning; even words which appear to be entirely synonymous often will be found to have small differences in certain contexts. The words condescending and patronizing present a fine example of this. At first glance these words appear to be defined somewhat circularly: condescending often has the word "patronizing" in its definition, and patronize is defined, in part, as โto adopt an air of condescension toward.โ
But both of these words have specialized senses that lend a shade of meaning to their synonymous senses. Patronizing can mean "giving support to" or "being a customer of," suggesting that the "condescending" sense implies superiority gained through a donor-dependent relationship.
The verb condescend used to be free of any hint of the offensive superiority it usually suggests today. It could mean literally "to go or come down" or, figuratively, "to willingly lower oneself to anotherโs level," senses that are still occasionally encountered in writings on the Bible. The idea of self-consciously lowering oneself is implied in the "patronizing" sense of condescending.
It lets you do a binary search on the commit history
Never used it ๐
But it seems cool.
Erm, not really. I did a NLP course at university.
But... I didn't graduate ๐
Oh yes. That's what I linked to earlier.
Pretty much the same @rugged root ๐
so you didn't like it
I actually liked it, but it took a long time to settle in
and by that point I'd fallen way behind with everything.
aah
Then I had a year where I was sick for the whole first semester.
And then I was like, I quit.
I went kayaking with the flu and got pneumonia ๐
Not a smart move ๐
nope
I also nearly drowned because... I don't know how to kayak.
uffff
arrr
pirates around here
mods!
@stuck furnace im glad you're not dead lol
hope you don't have permanent lung damage
Hey @tranquil barn!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.
Feel free to ask in #community-meta if you think this is a mistake.
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
Has anyone read the python Cookbook?
I think I have
Nice to meet y'all once again @rugged root @stuck furnace @gilded rivet
Why pay for the book, when I can download it for free eh...
Was up @rugged root
Not much, 'bout you?
Learning Data Science and Java...
Not a good combination. I am a complete mess right now
Free book: http://composingprograms.com
I'm such a slow reader 
Yeah, writing a textbook is a real undertaking.
Literally hundreds of hours of work.
Got to go...
๐
Peace Dude!!
Got to go work tomorrow se u guys
morning @somber heath
@hushed elm yoy
yoyoyo
hemlock, #help-apple is ghosted
Cheers
what r we talking about ?
Idek
lol
Im hiring people for my agency, anyone interested?
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.
lmfao
There we go
I can speak fucking english
I know, which is why I said "wrong one"
But yeah, we don't allow trying to recruit people for work
is there any chat I can use for recruiting people?
There is not, no Xav
lol @tiny seal
Yeah let's not be rude
It was ment as with some sarcastic / joke value
Still rude
ok I'm sorry
hi
hi
hi
hi
hows life?

๐คก
To speak in voice that one of the conditions are that i need to send 50 messages
yikes
good luck
Thanks mate
oh waity
are most people in this server students or people in work?
@somber heath nice answers ๐
False.
noice
["yes", "no", "Maybe"]```
lol
funny
[5]
If i spam this chat to get my 50 messages will i get booted/banned?
Voice banned yes
spam yes
lol
who else forgets to drink water while programming
me
...
I forget to eat too!!!
Talk to people, ask for help or give help in a help channel, check out the topical channels and see if there's one interesting to you, or even talk in the off-topic channels
answers = ["yes","no","maybe"]
for answer in answers:
print(answer)
It's easy to organically hit the limit by just interacting with people
I forget to sleep 
that too
answers = ["yes","no","maybe"]
for answer in asnwers:
await ctx.send(answer)
@rugged root ty for the advice
I guess I will head to bed now, gn all
good night @frigid panther
@frigid panther
Work in finance in what way?
financial reporting/analysis
Ah, I don't fit then. I'm Administrative Support at an accounting firm. I don't do any analysis for us
fair enough, thanks anyway
Provided to YouTube by Universal Music Group
I'm Coming Out ยท Diana Ross
Diana
โ 1980 UMG Recordings, Inc.
Released on: 1980-01-01
Producer, Associated Performer, Recording Arranger, Bass Guitar: Bernard Edwards
Producer, Associated Performer, Recording Arranger, Guitar: Nile Rodgers
Associated Performer, Keyboards: Raymond Jones
Asso...
its just that i am looking for a way to automate alot of the reports that are generated
I mean we can still likely help
excel is currently used (very basic i know)
Doesn't necessarily need to be someone who works in that sector
@cedar kettle congrats on being a new helper ๐
import discord
from discord.ext import commands
client = commands.Bot(command_prefix="$")
answers = ["yes","no","maybe"]
@client.event
async def on_ready():
print("Bot Ready")
@client.command(aliases=["answer","answers","programmer-answers"])
async def _answer(ctx):
ctx.send(". ".join(answers))
@whole bear What kind of data are you working with? Are you just wanting to process it or store it or what
||the house on the left is my home||, jk
aight you win for now cuz I have math homework to do. But i'll do you one better later
bring it on
lol @sick cloud
All you have to do is spam the captcha with the phrase... "I am for sure a robot."
lmao
It's definitely not a film made for modern attention spans ๐
The bot will be placed on my site and you will have to answer a question that only the admins will know or staff
that work there know*
and ofc a normal captcha phrase
@rugged root ill get back to you on that one, i assume storage, in that case would a data warehouse or something be required? As far as I know the type of data is typical financial accounting data e.g. PLs, income statements
Database, yeah
its better with an ORM
ye
i've been using sql-alchemy recently for graphql support
wish more ORMs could do that
nutt
I thought that said pornhub
Dont really think this is relevant to this channel but is anyone familiar with PowerBI the visualisation tool?
paradoxically
I just know alot of companies want to adopt powerBI as their tool for reporting
I'll have to look into that, I'd never heard of it before
Hemlock, itโs Office365 feature
Oh nifty
Minimalistic and elegant.
i wish it was my photo lol
its so satisfying
how can i fix my keyreccording/keylogger not saving in the destinated file
Hi guys
it's me plus the programmer
Now i'm learning about tkinter
which is a python gui module
easy convenient module
everyone should try it
Don't fall sleep
tata
byee
so I'm learning about dbms so do i need to know them in generl like the data model or i just learn sql
I'm new to database so i don't know much
but i'm doing research
but it would be nice if someone help me out
if you don't know , it's absolutely fine. I have no problems
Everyone is buying everyone right now it seems ๐
don't think i've used any salesforce product, but it would suck having to pay for slack
but there's always discord
Erm, I was doing that earlier...
But now I can't remember how I did it 
@rugged root could you do timeit("exec(open('myfile.py').read())")? ๐
Thanks
Oh yeah.
Erm, open and read it into a string first?
Also in bash you can just do time python myscript.py
Although it will only be run once.
Ah right
I just think Salesforce makes no sense
yes same
Yep
Although, you can do something like this:
first, second, *rest = myset
Yeah ๐
But realised it didn't make sense
Check out my PFP
Had to download GIMP 
Does powershell have hash-tables? ๐
what's advent of code?
@scarlet drift check out #782989161552543785
It's an event that runs each year. You get a new problem to solve each day in December.
oh nice
Just started today but today's problem doesn't count towards your final score.
yeah I was checking that out
Itโs rejecting valid solution
I can join the event anytime right?
instead of joining on the first day I mean
Yeah show the code
Put it in a paste bin then put the link in a spoiler tag ๐
you can run powershell scripts on macos?
I'm trying to run it on some online powershell interpreteer LOL
Oh right. Yeah I'm not fancy enough to own an M1 mac yet.
I'm waiting for developer tools to smooth out
my mac says command not found when I enter powershell in the terminal LOL
ah
life safer huh
I think instead of an exit flag you can do something like this:
does django have something like flask dash?
for dashboards?
actually never mind, discard that
for cond1:
for cond2:
if thing:
break
else:
continue
break
Yeah
Yeah true ๐
That's the n^3
It's like 3:47 AM here at my side lol
I should probably sleep as well but here I am making dashboards lol
Yeah, it's nice.
It does things like combinations, permutations, cycles, etc.
The recipes at the end of the itertools docs are also pretty handy.
Reading the wikipedia article, apparently there's a solution to the second problem that uses ||the FFT|| ๐
aight guys I'm hitting the sack, see you ๐
I should go to bed too.
night man ๐
See ya @scarlet drift @amber raptor
you too man
import multiprocessing
def f(v):
return __name__
if __name__ == '__main__':
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)```
so opal what were you expecting as the output? [f, f, f, ....]?
should it be __main__ 10 times?
I still have'nt my head wrapped around this whole if __name__ == '__main__' thing. Gotta read some material
The __name__ from each process a few times. (If I had 8 cores or something I might have increased the range.)
!e
import multiprocessing
def f(v):
return __name__
if __name__ == '__main__':
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)
@neon sleet :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 7, in <module>
003 | File "/usr/local/lib/python3.9/multiprocessing/context.py", line 119, in Pool
004 | return Pool(processes, initializer, initargs, maxtasksperchild,
005 | File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 191, in __init__
006 | self._setup_queues()
007 | File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 343, in _setup_queues
008 | self._inqueue = self._ctx.SimpleQueue()
009 | File "/usr/local/lib/python3.9/multiprocessing/context.py", line 113, in SimpleQueue
010 | return SimpleQueue(ctx=self.get_context())
011 | File "/usr/local/lib/python3.9/multiprocessing/queues.py", line 342, in __init__
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ziguxisare.txt
yes
why is it giving ['__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__']
what that mp there
? not for me, it just give's __main__, 10 times
and if __name__ is __mp_main__, why is it if __name__ == '__main__' even executing?
import multiprocessing
def f(v):
return __name__
if __name__ == '__main__':
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)
result ['__main__', '__main__', '__main__', '__main__', '__main__', '__main__', '__main__', '__main__', '__main__', '__main__']
s
i don't really get it, what should be the output? 10 times f?
its giving me __mp_main__, why are you guys getting __main__
import multiprocessing
def f(v):
return __name__
print(__name__)
if __name__ == '__main__':
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)
__main__
__mp_main__
__mp_main__
['__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__', '__mp_main__']
@neon sleet is it an OS thing? you on windows?
import multiprocessing
a = __name__
def f(v):
return globals()["a"]
if __name__ == '__main__':
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)
Linux
@wise glade what os are you using?
Linux
I need to read more on if __name__ == '__main__() + multiprocessing, I can't follow up the conversation that much
would be a silly question, but why aren't you expecting f(v) to return __main__?
In computing, particularly in the context of the Unix operating system and its workalikes, fork is an operation whereby a process creates a copy of itself. It is an interface which is required for compliance with the POSIX and Single UNIX Specification standards. It is usually implemented as a C Standard Library (libc) wrapper to the fork, clone...
omg this really works ```py
import multiprocessing
def f(v):
print(multiprocessing.Process().name)
return name
with multiprocessing.Pool() as pool:
data = pool.map(f, [*range(10)])
print(data)
I thought i would need if __name__ == '__main__' always, not on linux, as laundmo said
yip
hmm..... like I mean if if __name__ == '__main__' executes, it means __name__ is __main__ ?
yeah, I rely on intellisense a lot, so can't really get it correct without it most of the time
hmm... I think I should start getting into multiprocessing
these parallel things always get me, these asyncio etc stuff
pickle..dump()
๐ฑ
laundmo, can you recommend any material to learn more bout multiprocessing?
in python
don't say the docs please
what is meaning of distributed systems?
A distributed system is a system whose components are located on different networked computers, which communicate and coordinate their actions by passing messages to one another.
so like Cloud Computing?
yea
idk,
just less clutter, OCD maybe
yeah, ๐
so I guess I'll go for this for now Python Parallel Programming Cookbook: Over 70 Recipes to Solve Challenges in Multithreading and Distributed System with Python 3, 2nd Edition
gonna go grab lunch for now, by ๐
It is 2020 and you can have a coin sized web server with WiFi for less than $4. Very cool. I couldn't resist to build something with it. As a proof-of-concept I created this page.
pls tell how python can make daily life easier?
does it depends upon what i wanna do with it?
do u play any mobile game?
๐
do u play among us?
oh nvm
among us is a game of partnership and betrayal
Opal is a good citizen, he was in quarantine whole year
Nope.
Lol yeah
mhm
My country is on lockdown n.n
Turkey
Haven't I told this before?
No I'm not!
Oh, yeah
Yes yes
Well kinda
dont u have music bots here?
Oh?
I mean, mods have their own reasons probably
Like why we can't share screen
Mhm ik
certainly
@somber heath describe your productive day
It sounds like N word