#voice-chat-text-0
1 messages ยท Page 975 of 1
Thesis Pieces. Because there's no wrong way to write a thesis
its about how blockchain technology can be used for charitable donations
but i didnt want to say the word in here ๐
@rugged root - is there a tag for virtual enviorments?
interesting, will be excited to read it, when it's done.
It still installs it in the coding pack directory
oui oui baguette
Faire lโandouille
It doesn't have the same terroir ๐ง ๐ท
Europe is all same right
that sounds like everyone is lazy(dont do anything), or dont manage their time well
Hmm
What if you open a new command prompt, outside of VS Code, and install it there? Command prompt should be able to use the global installation.
You should be able to configure VS Code to use your Coding Pack extension, but I've never used it, so I don't know how
Brb, moving to Taiwan.
welp, still goes for coding pack lol... the pic is win 11 terminal not IDE's
im from europe but its britain so im not sure if im included in the european stereotype
Good discussion guys
its all the same ellie
i can confirm that france and the uk are very different; i have been to both
After you said the first thing they ask you is "have you eaten".
Sound like my kind of place.
ive never been to france, i would like to go
I think if you are looking for the differences, you will find differences in anything
im just saying, its really all the same. If you Think about it
brb sorry
the sights are lovely but often the people are slightly hostile to those who aren't fluent in french ๐คฃ
I'm from sweden, it's not same over here
i would love to go to sweden
when i'm older i'd like to travel the world
Oh. The Coding Pack actually installs Python for you. I thought it was just a VS Code extension
See if you can change your interpreter to the Coding Pack
Follow the "set default interpreter" instructions here: https://code.visualstudio.com/docs/python/coding-pack-python#_settings-and-configuration
I click on the recommended but it doesnt seem to do anything
Furyo used to work at Bell Labs
Really?
yes
not actually
pip is installing tweepy into the "PythonCodingPack" interpreter, which is the "Global" option
I just wrote a paper on the transistor
๐
Okay nvm
Unix
10 things in your room, 9 are from bell labs
Nokia Bell Labs, originally named Bell Telephone Laboratories (1925โ1984),
then AT&T Bell Laboratories (1984โ1996)
and Bell Labs Innovations (1996โ2007),
is an American industrial research and scientific development company owned by Finnish company Nokia. With headquarters located in Murray Hill, New Jersey, the company operates several laborato...
๐ซ๐ฎ
this guy sounds like the unibomber
@rugged tundra can you give us some personal information about him
something personable
that we can relate to?
get an idea of this guy, some personality?
like a first name
ok why do you think he ended up like this?
I honestly cant find how to change that to Python folder instead of coding pack
im so confused
i should probably uninstall the pack and install extensions manually
Could sopmeone check why my code isnt outputting properly?
height = float (input("What is the height of the cylinder: "))
radius = float(input("What is the radius of the cylinder: "))
surface_area = 2 * math.pi * radius ** 2 + 2 * math.pi * radius * height
volume = math.pi * radius ** height
print("The surface area of the cylinder is {surface_area:.1f} and The volume of the cylinder is: {volume:.1f} ")```
;-;
what do electrical engineers do?
i know i meesed up somewhere
Electrical engineering is an engineering discipline concerned with the study, design, and application of equipment, devices, and systems which use electricity, electronics, and electromagnetism. It emerged as an identifiable occupation in the latter half of the 19th century after commercialization of the electric telegraph, the telephone, and el...
height = float (input("What is the height of the cylinder: "))
radius = float(input("What is the radius of the cylinder: "))
surface_area = 2 * math.pi * radius ** 2 + 2 * math.pi * radius * height
volume = math.pi * radius * height
print("The surface area of the cylinder is {surface_area:.1f} and The volume of the cylinder is: {volume:.1f} ")```
Can someone check why my code isnt out puitting the surface are or volume? I know there is amistake some where last 3 lines but i dont get whats wrong
why do you think people are super against computers?
deep work wednesday
radiation? the way it screws our brains up? distracts us?
im talking about the super smart people
i dont think my mic works
maybe this? theres 2 asterisks
thats for squaring
instead of ^ you can do **
@rugged cloak ๐ค
owwhh
@noble copper have you made any investments yet?
do u have a test case for this, can u give me
give me the numbers to enter and the output u r expecting
idc just make it work
brb guys
this should work
import math
height = float(input("What is the height of the cylinder: "))
radius = float(input("What is the radius of the cylinder: "))
surface_area = 2 * math.pi * radius ** 2 + 2 * math.pi * radius * height
volume = math.pi * radius * height
print("The surface area of the cylinder is {surface_area:.1f} and The volume of the cylinder is: {volume:.1f}".format(surface_area=surface_area, volume=volume))
hello
also before the symbol was bad the symbol actually meant peace
It didnt work...
Try runnig it urself
bruh
yes
@half portal its working ty but what does format do
its similar but not all the way the same
I also support K+K+K and this actually means to me in a language I created also means peace
you're disrespecting a religion
.format(surface_area=surface_area, volume=volume))
wdym I am just showing I support peace
stop trolling
you're not even indian
uuuuuuuuuuuuuuuuh
!ban 943092347586109481 hate speech, racism, what not bye
:incoming_envelope: :ok_hand: applied ban to @rugged cloak permanently.
im actually not sure, i think its needed when having placeholders or formatting, I just learned it recently. I can send u my file which is kind of notes
Let's not give into this type of racist trolling. This will be your one and only warning
can i send my .py file here @olive hedge ?
SEND ME ALL UR NOTES FOR FILE AND STUFF FOR PYTHONG PLKEASEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
lord email them to m
lmao
The hand of justice only gives a single warning.
I accept the warning
๐คฃ
15th of May is pun day.
caught in the United States flag, 'merica
praise be to our savior Linus.
!video
!stream 189200135278952450
โ @graceful grail can now stream until <t:1645037777:f>.
.isnumeric()
Yeah, either that or .isdigit()
Nice is_integer Mr h4x0r
Wait, is there a way to spoiler code blocks?
||
testing
||
Not that way
Hmm
I've got a solution that uses try/except for this
Just didn't want to drop it in here until he's got his solution working
At least I think this would work
Now I'm doubting myself
grouped = words.split()
if len(grouped) < 3:
return False
for i, word in enumerate(grouped):
if i > 2:
break
try:
checked = int(word)
return False
except ValueError:
continue
return True
Eh, fuck it
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Might need a refresh
Oh yes, same problem
I think mine might work
Just kind of threw it together haphazardly
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
-shudders- One liners
!e
def f(words):
words = words.split()
return False if len(words) <3 else any(all(not x.isdigit() for x in words[i-3:i]) for i in range(3, len(words)))
print(f("words words words words 1 2 3"))
print(f("words words 1 2 3"))
print(f("words 1 1 1 1 "))
print(f("words"))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | False
004 | False
are we sharing our solutions? or just wait for linuxh4xor to finish ?
"wasted computing"
Why did the conversation of wasted computing come up?
@graceful grail Do you mean this one?
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | False False
002 | True True
003 | True True
004 | False False
005 | False False
006 | False False
<3 else
@rugged root - How goes that data recovery?
@graceful grail Using the str.strip() could help
Well actually hold on
That'd only do white space
Ignore me
Sounds like a job for regex
It's still trying to repair. I'm going to leave it over night
I might try that in a bit when I finish my time sheets
Looks like it is possible to access BitLocker from Linux, if you're willing to mess with it
I don't think the repair is going to make any progress
Ship it to me
Can't
I'll fix it for you
Client info
Fair
Rather not have to write up an NDA
Sounds like less work than trying to save Windows
When Windows decides it doesn't want to work anymore, it's arguably worse than printers
I mean it's not even a problem with windows
It's a copied dying drive
Who knows if I I can salvage any of it
True, it did try and did see that
You cursed me
Oh?
I had a hard drive fail yesterday afternoon
def firstword(s):
start = None
started: bool = False
for i, val in enumerate(s):
print(i)
if started:
if val == " ":
return s[start: i]
else:
if val.isalpha():
start = i
started = True
s = "first word "
print(firstword(s))
A users computer
@graceful grail
@signal sand ?
Yeah
I have OneDrive setup for everyone, so I just gave them a new computer and they logged in and it grabbed all their stuff
Sick
Do you not?
mamorazation?
memoization
do you do the dew
memrise
memoization
In computing, memoization or memoisation is an optimization technique used primarily to speed up computer programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again. Memoization has also been used in other contexts (and for purposes other than speed gains), such as in simple mutu...
No, not currently. Most of the time, if we need something guaranteed to be backed up, we tell our folks to put things on the server
And they're good about it. The only reason I'm trying to recover this particular drive is so that this guy doesn't lose a day's worth of audit
Everything else is fine
So it's more a matter of pride to see if I can get it
Rust
you dont want to know my backup structure.. but lets say it involves 2 clouds, 1 nas, and independent local drives
I know the feeling
whats wrong with the drive?
That's the way my company used to do things
But now I'm here to preach about the wonders of the glorious cloud, and we use OneDrive, and life is good
On a more serious note -
Wouldn't have saved this one, I don't think
But I'm not sure
Sometimes they aren't connected to the net when they're at a client's
Count the # of days from the date 00-00-0000... substract... convert back @graceful grail
Millennial International is a sponsor based program designed to help Millennials live the lives they portray on Instagram.
Visit http://www.johncristcomedy.com for more videos, bio and live tour dates.
Whine
>>> " ".split()
[]
>>> " ".split(' ')
['', '', '', '']
>>> "Hello World ".split(' ')
['Hello', '', 'World', '']
!docs str.split
str.split(sep=None, maxsplit=- 1)```
Return a list of the words in the string, using *sep* as the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are done (thus, the list will have at most `maxsplit+1` elements). If *maxsplit* is not specified or `-1`, then there is no limit on the number of splits (all possible splits are made).
If *sep* is given, consecutive delimiters are not grouped together and are deemed to delimit empty strings (for example, `'1,,2'.split(',')` returns `['1', '', '2']`). The *sep* argument may consist of multiple characters (for example, `'1<>2<>3'.split('<>')` returns `['1', '2', '3']`). Splitting an empty string with a specified separator returns `['']`.
For example:
!eval print(" ".split(' '))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
['', '', '', '']
!e print("Word second test".split(" "))
@velvet urchin :white_check_mark: Your eval job has completed with return code 0.
['Word', 'second', 'test']
Huh, interesting, I thought " " was the default seperator
It is, isn't it?
!e
spam = "abcd".split()
ham = "a b c d".split()
print(spam)
print(ham)
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | ['abcd']
002 | ['a', 'b', 'c', 'd']
@dire folio Can you temporarily Kick @rugged root For data security
@rugged root you're not muted
true
Sorry sorry sorry
Aha
Sorry
Shows how swamped I am that I didn't even think about it
My solutions earlier were O(NK). I shouldn't have focused on the fact that k was fixed to 3 in the question itself.
[ a , b, c, d, nothing, nothing, nothing ]
[ a , b, d, , nothing, nothing, nothing ]
[ a , b, d, nothing, , nothing, nothing ]
[ a , b, d, nothing, nothing, , nothing ]
[ a , b, d, nothing, nothing, nothing, nothing ]
int[]
Man I'm legit really embarrassed
In this situation a= who is equal to?
I thought a=nothing ๐
Happens to everyone
Ok
I gave y'all my work phone and email just a couple weeks ago
I understand
you recruited me @rugged tundra so yes...
How can i do an application which to store my mail account for example?
!vote-stream 189200135278952450 forever
lol
!user @graceful grail
You are not allowed to use that command here. Please use the #bot-commands channel instead.
๐
has crypto a use beyond representing value?
@velvet urchin whats the federation system?
can you link what you're referring too?
@velvet urchin i would love to see this web page
That's some serious scrolling.
Massive organizations are monitoring your online activities. Privacy Guides is your central privacy and security resource to protect yourself online.
monero is private
We only recommend messengers that support strong end-to-end encryption (E2EE) and have been been independently audited to ensure their cryptography works as intended. The selection listed here is [free and open-s...
Is it an Apple laptop?
What is a processor?
Only one core? ๐ค
Is related to modem
what is a laptop?
What is life?
thanks for this
Unlimited ๐
Just take every day off ๐
@velvet urchin background noise
Is that a cow bell? ๐ค
Are you in the Swiss alps?
Yeah I am milking a cow rn ๐
Ah right fair enough ๐คทโโ๏ธ
straight to the coffee ๐
"milking"
How flexible are employers with respect to unpaid time off?
Depends on if they do gymnastics
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Thanks @midnight agate
Yo
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
hola
you have a typo.
@terse needle
yeah get out of here
:C
your not welcome around these parts /s
The Vietnam war was between the United States and America???
Are you sure you're not referring to more modern conflicts?
anyone wanna help me with java?
im not good with that sorry
"Children are starving in Africa, therefore, any argument against anything else is invalid."
Not my implication.
it doesn't affect ur daily life therefore u shouldnt care
SAME
i agree with him but disagree
@molten pewter ^^
"Oh, you have trauma? You're just being irrational."
fr lmao @somber heath
I realise I'm minimising emotions here. I'm trying to grasp at something which might be non-existant of sensible worries vs non-sensible worries
maybe there is no distinction and I'm just projecting my world view outwards
Based on what I saw, it looked alright, though you could do away with creating the function and the call of it in favour of just having the slice notation.
Fewer characters, at the least.
:(
!e
def reversed_string(a_string):
return a_string[::-1]
print(reversed_string('aibohphobiaโ'))
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
โaibohphobia
@devout heath I think your question would be better framed as "Can I integrate Python into this particular job?"
Sales associate in Dollar General? I mean, I'm not an expert, but I'm going to make a rough guess and say probably not.
Sales associate as like a cashier in store?
i dunno, there's probably a scheduler algo the manager would appreciate
Even if you could, it wouldn't be in your job description.
yes lowest of lowly jobs
fuck job descriptions, I'm doing this for my tiny little town
I mean to imply that you should be getting paid for the job you're doing.
If you're doing work above and beyond what you're actually employed for, you're devaluing yourself.
entirely true, but I don't want to jump through shitty hoops to prove to a bad hiring manager that I'm a competent programmer
was massively undervalued at SWE job, couldn't shake the guilt of not getting things done when I got home at night
More the point, if you can do a thing, you should be getting paid a sensible amount for doing that thing.
I've lost faith in our economy's ability to value me
I'd say databasing would make the most sense for a store. Stock management and so on.
that's already well in place
Yeah.
I think the human management side of things is mostly open
There is also the issue of over-automation.
delineate?
The introduction of computers into a problem that doesn't really require them can cause more problems than they solve.
I can't talk in vc yet ๐ฆ
we're reading though
I'm afraid it doesn't ring a bell.
If you point up, you're pointing to the void.
GO was invented in China more than 2,500 years ago, according to Wikipedia.
Yes yes, I know.
I'm just having fun.
Use of the right framework for the right conversion.
I've heard good things said about Pendulum for horological stuff in Python.
Then call it a module.
import antigravity
Watches.
Time.
Clocks.
It's standard library.
import this
I've seen posts about that.
i saw the memes
๐คฃ
I hate the keyword stuff, people use javascript once and now you are an expert at 3+ frameworks for the last 5 years
here is one from my linkedin
This is a Software Developer role at Amazon Pharmacy.Amazon Pharmacy is a full service online pharmacy that sorts medication by the dose and provides convenient multi-dose packets, vials, and bulk medications to a patient's door. We believe in the best possible pharmacy experience for our customers. Our custom software powers our many clinical a...
we'll test in production ๐คฃ
its matplotlib not what you had
I'm on Linux. Proper installation patterns differ.
Also, I'm pretty sure the way I install things is frowned upon.
Hm. Okay.
I think there might be some colour conversions in a module in the standard library.
Let's see.
color* ๐
@bot.command(name="say2",description="Make me say whatever you want, but cooler ๐ .")
async def repeat_message(ctx,colortochose,*,entire_msg):
if colortochose == "green":
colortochose = 0x00ff00
elif colortochose == "cyan":
colortochose = 0x00ffff
elif colortochose == "red":
colortochose = 0xff0000
elif colortochose == "blue":
colortochose = 0x0000ff
elif colortochose.startswith("0x"):
colortochose = int(colortochose, 16)
else: colortochose = int(colortochose,16)
await ctx.message.delete()
userList = str(ctx.author).rpartition("#")
username = userList[0]
embedinglol = discord.Embed(title=f"By {username}",description=entire_msg,color=colortochose)
embedinglol.set_footer(text="Requested by" +str(ctx.message.author))
await ctx.send(embed = embedinglol)
@bot.command(name="say2",description="Make me say whatever you want, but cooler :sunglasses: .")
async def repeat_message(ctx,colortochose,*,entire_msg):
if colortochose == "green":
colortochose = 0x00ff00
elif colortochose == "cyan":
colortochose = 0x00ffff
elif colortochose == "red":
colortochose = 0xff0000
elif colortochose == "blue":
colortochose = 0x0000ff
elif colortochose.startswith("0x"):
colortochose = int(colortochose, 16)
else: colortochose = int(colortochose,16)
await ctx.message.delete()
userList = str(ctx.author).rpartition("#")
username = userList[0]
embedinglol = discord.Embed(title=f"By {username}",description=entire_msg,color=colortochose)
embedinglol.set_footer(text="Requested by" +str(ctx.message.author))
await ctx.send(embed = embedinglol)
see, no u (:
Yeah. That's the module name. It would be incorrect with the u.
everything is incorrect with the u
@glass plinthOkay, so, forgetting about all your code for a moment.
Oh. Okay.
Australian English is hardly the Queen's English.
What's an accent but the way someone else talks?
We all have accents.
hey wanna join my server
im testing my bot
@somber heath
yoo
how to quit the program
Pass. ๐
Are you looking to exit the execution of your Python script through use of code?
sys.exit()
using cmd it dint work
for 2 mins
now it works
k
anythx
and @somber heath
do you know discord.py
Not really.
i have on command
but
on i should acess it
is it possible
shutdown
is the name
Could you please rephrase your question?
umm
shutdown
is a command which makes the bot down
soo if anyone access it
its a problem
but the owner
that is me
should be able to access
it
At present, I'm choosing to avoid talking.
I believe there is an argument you can give to a decorator of your shutdown command.
@bot.command()
@commands.has_permission
async def shutdown(ctx):
await ctx.send("bye")
sys.exit()
I only have a vague recollection of what I'm talking about however.
I suggest you pose your question to one of the help channels. #โ๏ฝhow-to-get-help
@glass plinth :white_check_mark: Your eval job has completed with return code 0.
Hello
!e py from __future__ import braces @devout heath
@somber heath :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
bruh, i spent one month last year selling printers on facebook, ebay, and offerup ๐คฃ
finally
Streaming on Python Discord: Streaming permissions are granted on a temporary and discretionary basis by moderators and above. When requesting permissions, bear in mind you are asking them to stick around to monitor the stream. Avoid asking through ModMail. It is often advantageous to wait for someone who can grant you the privileges to be already present in voice chat before asking. Streaming of games and the like may take place over the weekend, as opposed to weekdays, where more technical subjects are preferred. Bear in mind that DMs are a viable alternative to public streaming.
color name to hex
then to rgb
now i have one problem
embedinglol = discord.Embed(title=f"By {username}",description=entire_msg,color=discord.Color.from_rgb(colorRGB))
embedinglol.set_footer(text="Requested by" +str(ctx.message.author))
discord.Color.from_rgb(000,000,000)
wait
@somber heath
yo small help
!e
colors = matplotlib.colors.cnames["blue"]
color = colors[1:]
colorRGB = ImageColor.getcolor(colors, "RGB")
@glass plinth :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'matplotlib' is not defined
!e
pip install matplotlib
@glass plinth :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | pip install matplotlib
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
i need help
Whatever else you're doing, the core of the conversion can be taken care of just using Python's builtins.
discord.Color.from_rgb
i need rgb
@somber heath
simple
question
i have a varibale
color = (255,255,255)
i need a array
colors = [255,255,255]
how
Cast it to list.
list(x)
k
!e py color = 255, 255, 255 colors = list(color) print(colors)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[255, 255, 255]
@glass plinth :white_check_mark: Your eval job has completed with return code 0.
[255, 255, 255]
No. ๐
I'm still a little uncertain as to what, precisely, you're intending. You've discussed about colour conversions, but I've had difficulty understanding the specifics.
You did say something about hex to rgb, and rgb to hex.
nonsense, your a programmer, IQ at least 100 by default
Are you only using matplotlib for the colour names?
it just adds to the last on discord
they are still seperate messages
just formated to look neater
class Deleted_Message(commands.Cog):
def init(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_message_delete(self, message):
print(f"{message.author} deleted {message.content}")
self.message = message
userList = str(message.author).rpartition("#")
self.username = userList[0]
@commands.command()
async def lastmsg(self, ctx):
embed = discord.Embed(title=f"By {self.username}", description = self.message.content)
await ctx.send(embed = embed)
def Deleted_Message_Setup(bot):
bot.add_cog(Deleted_Message(bot))
Deleted_Message_Setup(bot)
@bot.event
async def on_ready():
print("Bot is ready")
@bot.command()
async def kick(ctx,member: discord.Member,reason = "No Reason Given"):
await member.kick(reason = reason)
await member.send(f"You have been kicked from {str(ctx.guild.name)}. Because: {reason}")
@bot.command()
@commands.has_permissions(manage_messages = True)
async def clear(ctx , amount=10):
await ctx.channel.purge(limit = amount)
await ctx.send(f"{amount} messages cleared")
@bot.event
async def clear_error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.send("**You are missing the required permissions to run this command!**")
@bot.command(name="say2",description="Make me say whatever you want, but cooler :sunglasses: .")
async def say(ctx,colortochose,*,entire_msg):
colors = matplotlib.colors.cnames[colortochose]
color = colors[1:]
colorRGB = ImageColor.getcolor(colors, "RGB")
colorsRGB = list(colorRGB)
print(colorsRGB)
await ctx.message.delete()
userList = str(ctx.author).rpartition("#")
username = userList[0]
embedinglol = discord.Embed(title=f"By {username}",description=entire_msg,color=discord.Color.from_rgb(colorsRGB[0],colorsRGB[1],colorsRGB[2]))
embedinglol.set_footer(text="Requested by" +str(ctx.message.author))
does this look neat
dont worry about that right now
up to you
dms can only be sent to people in the guild(i.e. server)
ohh
i think
dont quote me on that
i kicked them
and then sent the dm
@past elk
last help
@bot.event
async def clear_error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.send("You are missing the required permissions to run this command!")
it dosent print
@bot.event
async def clear_error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.send("**You are missing the required permissions to run this command!**")
it dosent tell
if someone tries
clear
it should send this
but it wont
but the messages wont clear
so permission works
only error dosent
if the permission works, why would the error need to print?
permission
see
my friend
cannot manage messages
he tried >clear
it wont
work
because he cant
for me the owener it works
but when my friend tries
oh, did you add a role requirement for it or something?
ah yes the requests library haven't heard of that in a while
Hello guys what are you doing
Hello everyone.. Can somebody help me with writing a txt file in Python?
Based on the file correlations.xlsx, create and share a Python script where we can extract the contents of columns B and F and write it to a txt file
The .txt file must have unique entries avoiding duplicate lines.
Wrong:
cdn2.fyre19.xyz, content
cdn2.fyre19.xyz, content
cdn2.fyre19.xyz, update
...
Correct:
cdn2.fyre19.xyz, content
cdn2.fyre19.xyz, update
...
Hey @fresh smelt!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
i found a nice tongue twister
she sells bash shells on the C xor
are the jobs your looking at have excess in pay, or meet your requirements?
new here
Morning! Trying to relearn C++ today.
(Can't talk right now.)
@strong arch https://krausest.github.io/js-framework-benchmark/2020/table_chrome_84.0.4147.89.html yes svelte beats react , vue and angular
for performance
lemme open chrome then
@strong arch the reason i was talking about svelte was because you suggested him to just get a web dev job and then he talked about react followed by the performance talk xD
i didn't realize we went back to mobiles
templates, db = django?
yea thats fine, i get it, dw
Suffering through the mess that is C++.
ah i feel your pain there :x been working with both c , cpp and even rust this month and C is definitely the simplest and understandable followed by rust which is safer but feels a little overcomplicated followed by cpp which is both really overcomplicated and unsafe compared to rust
@client.command()
async def rob(ctx, member: discord.Member):
await open_account(ctx.author)
user = ctx.author
users = await get_bank_data()
steal = random.randrange[users[str(user.id)]["Wallet"] , user[str(member.id)]]["Wallet"]
if users[str(user.id)]["Wallet"] > 500:
await ctx.send("Dude! You need atleat 500 to steal from someone!")
elif steal == 0:
await ctx.send("Better Luck Next Time")
elif steal > 0:
await ctx.send("Sucess")
else:
await ctx.send("Fail")
plzzzz helo me
voice
@woeful salmon
hello?
anyone there
shouldn't
if users[str(user.id)]["Wallet"] > 500:
await ctx.send("Dude! You need atleat 500 to steal from someone!")
be
if users[str(user.id)]["Wallet"] < 500:
await ctx.send("Dude! You need atleat 500 to steal from someone!")
?
I have not even gotten to those yet. I am still trying to get dependencies working.
(ASCII NUL, \0)
I've accomplished...existence?
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
should be starting at 9:20
they are currently tuning up
fair question, I will drive if Charlie sticks around.
don't do it on my account - it was only a suggestion
if you feel you learn better listening to Marco, that's fair enough and you should carry on doing that
um
print( "thank you for your time", myCompanyName + ".", "you will need", Patients/20 + ".")
what did i do wrong here?
myCompanyName = input("Hello. What is your the of your company name?: ")
Patients = input("Thank you " + myCompanyName+ ". "+ ":How many patients have you been getting. ")
print( "thank you for your time", myCompanyName + ".", "you will need", Patients/20 + ".")
print( "Goodbye.")
how do i this
?
oh
thanks youuuu sooo muchhhhh
hi i cannot chat in voice channel i just joined and upon sending my message in #voice-verification my message was removed (abuse)
Did you send the verify command that's in that channel?
@rugged root ๐ i'm only in vc earlier in the day these days so haven't seen you in a bit xD
You should have gotten a DM detailing the requirements you still haven't met
@woeful salmon Yeah! It's great to see you!
i didn't get any private messages
same ๐ ppl who come early in the day are way too serious i miss the puns and jokes
HA
except for opal actually :x
????
also, do you guys know what's with discord asking me to do chapcha each time i join a server?
TkDocs features tutorials and other material for modern Tk GUI development, using Python/Tkinter, Tcl, Ruby, and Perl/Tkx.
"Local UI is dead. Long live web UI"?
@whole bear Send the command !voiceverify in #voice-verification
Yes and also donโt use Python
i'm still confused as to why i am asked to complete chapcha each time i join any server...
Discord decision
Yeah that's not an us thing
weird as heck tho?
No
@gentle flint calculate their age in dog years? xD for example
weird thing is, this issue only occurs on this accounts and not on any of the other ones i have
could it be discord has flagged my account? i also had to verify phone right after i did email verification
No idea
from dataclasses import dataclass
plane_1 = {
"lat" : 0.567,
"lng" : 42.434,
"bearing" : 45,
}
@dataclass
class Plane:
lat: float
lng float
bearing: float
the issue comes both of app and web
i was about to type you missed class xD
Weird
yeah, i know
from dataclasses import dataclass
even on old discord versions it occurs
This is account level decision non of us here made
also enums are handy when you wanna give another programmer using your module a limited amount of things they can choose from (they happen to require you to make a class inheriting enum.Enum in python)
from enum import Enum, auto
class Jobs(Enum):
DOCTOR = auto()
NURSE = auto()
class Employee:
def __init__(self, job: Jobs) -> None:
self.job = job
doctor = Employee(job=Jobs.Doctor)
@bleak relic
from PIL import Image
image = Image.open("file.jpg")
image.save("file.png")``` Done.
Pretty sure open and save takes pathlib Paths, too.
I could be wrong.
Rabbit is lying. He is personally responsible for giving you every single Captcha.
Dude if he had that kind of power.....
I'm pretty sure even I would have captchas for days
Lies
My solution is simple
Keynes later commented to Strachey that beauty and intelligence were rarely found in the same person, and that only in Duncan Grant had he found the combination.[169] The union was happy, with biographer Peter Clarke writing that the marriage gave Keynes "a new focus, a new emotional stability and a sheer delight of which he never wearied".[29][170] The couple hoped to have children but this did not happen.[29]
The Therac-25 was a computer-controlled radiation therapy machine produced by Atomic Energy of Canada Limited (AECL) in 1982 after the Therac-6 and Therac-20 units (the earlier units had been produced in partnership with Compagnie Gรฉnรฉrale Radiographique (CGR) of France).
It was involved in at least six accidents between 1985 and 1987, in which ...
I miss you guys
We really miss you, too
without support it would be this:
@proven fox What's the question?
can u read this?
6J-27-C-4826?
Not sure about the first and the last
I admit to a vague curiosity as to what this is.
license plate recognition
adding data labels
I think y0nliud was doing something similar a while ago
he was in the chat about half an hour ago I think
Kind of looks like Hebrew
@gentle flint It's looking more and more like a doily
Still really pretty
I see what you mean lol
๐
Compile c, decompile. Innocent coincidence or suspicious conspiracy? You decide!
Are you making a hub cap? 
shower drain
Oh
lol
Macro? ๐
Yeah he was here quite a lot when you were Charlie.
"Rot" and "dam". Two words whose shared company bears ill portent.
Also "terd"
I wouldn't have picked you as a beer person.
Colourful drinks with paper umbrellas, yes.
I guess there are variances introduced by the mechanical parts? 
A Bulgarian MEP could be sanctioned after making what appears to be the Nazi salute in the European Parliament.
Angel Dzhambazki, of the Eurosceptic ECR group, made the gesture after a debate following yesterday's ECJ conditionality mechanism ruling.
MEPs from across the political spectrum have condemned the move.
European Parliament Presiden...
@proven fox i mean, you're saying that things that can be reinstalled is more important than data that is specific and cannot just be installed from the internet
It seems everyone's favorite US president still hasn't mastered the art of optics. Bumbling around during a photo op in Missouri, Biden appeared to ask his blind companion 'Where am I?', before standing there muttering to himself. Not a great look for someone who's supposed to be in charge of a country.
OK, we know the 'Where am I' part was ol...
that like takingn this video out of context and saying his acting like a child
but hes asking where is am i, to understand where he needs to stand for the cam..... as u can see there no x mark on the floor or anything
ur taking a video to bend into another reality to hurt someone image to support ur belief
that causes ALOT!! of misinformation. but that the new media of today taking things out of context
anyways yall are lowkey closed minded no need to type anymore lol laters
@gentle flint heyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy don't wanna be a bummer but can you end your stream? discord doesn't let me hide it and it's always blocking part of my view
@vivid palm you can disable it by right clicking on oof and clicking disable video, then dcing and rcing will get rid of the box
here @vivid palm
oo
Oh, it's smaller than I thought.
Anyone else getting intermittent robot voices? ๐
Not I
๐ฅ
Don't think Mina had joined the server by that point ๐ค
September 2020 I think?
Welcome to the first Python Core Developers Q&A! During the Q&A, several core developers will answer questions sent in by you, the broader Python community. This Q&A is part of the yearly Python Core Dev Sprint, organized virtually this year on Python Discord.
The Q&A will touch upon a lot of topics, including the balance between features and p...

unctuous
baie
Unctuous
- excessively flattering or ingratiating; oily.
- (chiefly of minerals) having a greasy or soapy feel.
lol
halfway through my 4th day of writing API docs by hand 
Garlic butter instead of blood.
@quasi condor how about oleaginous
use sphinx
better than unctuous
not to be confused with onctuous

accurate description of this chat rn
accurate description of my brain rn
Accurate description of my life 
lmao guys
never
someone said that
apparently to run docker w/o admin perms
you have to be on windows professional?
anyone know?
The addition of my user account to group docker-users solved my problem. However, since I'm not running Win10 Pro, the GUI access to account control is not available. Instead I ran PowerShell as admin and added my user account to group docker-users there.
oh nice
@abstract cosmos would this work for you?
Looks like you can use PowerShell if you don't have Pro
Is... that a statement or a question?
This is a statement
Righto
time to lex functions in my programming language ๐ญ
It's just like how most (all?) GPOs set registry keys.
The "Group Policy Editor" is only included in Pro, (and above) but "Registry Editor" is always included, and you can use it to set the registry keys manually
You don't have to have WSL
You can run Docker on Windows
probably
I ended up buying Pro tho
.bm
.bm docker user group admin windows pro thing
oh lol
The guide for using NVIDIA CUDA on Windows Subsystem for Linux.
mean of an array in my programming language
mean <- (#n sum) (#n len) div
1 3 5 3 6 mean OUTPUT
3.6
unhappy white female wtf lmao
the random capitals really annoy me
Different audiences
I love config files
Can't CTRL+F to find a specific setting in a GUI
It also keeps everything consistent
Everything from local settings to server settings to Kubernetes manifests are all just config files
Add it to your .bash_profile?
I need to enable scroll lock so I can toggle lights on my keyboard.
This works on Arch.Funny thing it doesn't work on Ubuntu.
http://linuxtechie.wordpress.com/2008/04/07/getting-scroll-lock-to-wor...
@rugged root - By the way - how goes the drive recovery?
You install Docker, and you can run any container you want
Can also use KDE in Arch BTW
It's not that hard to change DEs
Most login managers have a dropdown to select a DE on the login screen
If there's not a container for what you want, create one
pandas.read_json
@sweet lodge Managed to get it using my Manjaro stick
!d pandas.read_json
pandas.read_json(path_or_buf=None, orient=None, typ='frame', dtype=None, convert_axes=None, convert_dates=True, keep_default_dates=True, numpy=False, precise_float=False, ...)```
Convert a JSON string to pandas object.
Nice
Welcome to the club
I'm curious, how much effort was getting through the BitLocker?
Nice
Where did you end up copying the data to?
Thumb drive and then to the network drive for him
Nice nice
There are actually special separator characters in ASCII, but no one uses them.
escape
Keep that USB around - They're really useful
I keep an Arch live USB around, and I've used to run everything from data recovery to memory tests to a temporary server
Only weird thing is you have no persistent storage because you're just booting to a live environment
Who uses Word to store data?
Real programmers use PhotoShop
cc @Alec_
I'm still sad that it exists
import pandas as pd
df1 = pd.read_json("abhi_labels.json")
df2 = pd.read_excel("full labels.xlsx")
mergeddf = df1.set_index("filename").combine_first(df2.set_index("filename"))
mergeddf.to_excel("corrected merged.xlsx")
And we can't mention package drama without paying homage to left-pad: https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code/
@placid jackal Although in fairness, if you have a hammer with a handle that is literally rotten through...
XD
But I guess the craftsman can still be blamed for not maintaining his tools
then it was stored badly... probably in a box you made with said hammer
Yeah fair
!d pandas.DataFrame.merge
DataFrame.merge(right, how='inner', on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, suffixes=('_x', '_y'), copy=True, indicator=False, validate=None)```
Merge DataFrame or named Series objects with a database-style join.
A named Series object is treated as a DataFrame with a single named column.
The join is done on columns or indexes. If joining columns on columns, the DataFrame indexes *will be ignored*. Otherwise if joining indexes on indexes or indexes on a column or columns, the index will be passed on. When performing a cross merge, no column specifications to merge on are allowed.
Warning
If both key columns contain rows where the key is a null value, those rows will be matched against each other. This is different from usual SQL join behaviour and can lead to unexpected results.
@rugged root - Embrace the Kubernetes - no operating systems required
Dude, I don't even know how to write a docker compose or set up a pipeline
discord.py sending multiple file names from a list of strings that are filepaths
None of the ways i have tried have workd
1 sec
I can write a docker compose if I copy something Griff has written
... Discord emojis are case sensitive?
Yep
r1 = requests.request('GET', DATA['CardsURL'], json=payload)
print(r1.content)
data = json.loads(r1.content)
print(type(data['cards']))
cards = str(r1.content).split('[')[1].split(']')[0].replace('"Cards/','').replace('"','.png').split(',')
files = []
x =1
for card in data['cards']:
files.append({'filename':f'{sys.path[0]}/{card[5:]}', 'content':f'{x}'})
x+=1
#files.append('filename':f'{sys.path[0]}/{f[5:]}')
#files.append(str(f"{sys.path[0]}/{card[5:]}"))
#files.append(discord.File[filename:f'{sys.path[0]}/{card[5:]}'])
print(files)
#for file in files:
#print(f'#######################{sys.path[0]}')
#print(os.path.join(sys.path[0], f"{file}"))
#await ctx.send(file=discord.File(os.path.join(sys.path[0], f"{file}")))
#await ctx.send(files=files)
await asyncio.wait([ctx.send(f[f'filename'] for f in data['cards'])])```
commented things all failed
You might need to break out those card splits and print in between to make sure you're getting the results you think you should
Also wait
the cards list is now unused, found out json was like... a thing
Why do we only want the filenames?
Loading the images to use
!d pandas.DataFrame.combine_first
DataFrame.combine_first(other)```
Update null elements with value in the same location in other.
Combine two DataFrame objects by filling null values in one DataFrame with non-null values from other DataFrame. The row and column indexes of the resulting DataFrame will be the union of the two.
send them via discord.py
grabbing them from a list of file locations that changes daily via r1
mergeddf = df1.set_index("filename").combine_first(df2.set_index("filename"))
Oh dude that's dope looking
No
I was just asking how it worked
My brother got this Monday off
He also gets next Monday and Tuesday off
I took the bus in high school
Only if you use Excel online
Oh - Google? I'd have to check
You have to do that with everything
the world is so boring
The normal volume of the stomach fluid is 20 to 100 mL and the pH is acidic (1.5 to 3.5).