#voice-chat-text-0
1 messages · Page 30 of 1
🎶 Make a little birdhouse in your soul 🎶
The only person with three eyes according to Vedas is Lord Shiva!
Many believe, that eye isn't open. https://en.wikipedia.org/wiki/Third_eye
The third eye (also called the mind's eye or inner eye) is a mystical invisible eye, usually depicted as located on the forehead, which provides perception beyond ordinary sight.In Indian spiritual traditions, the third eye refers to the ajna (or brow) chakra.The third eye refers to the gate that leads to the inner realms and spaces of higher co...
@cloud linden You can ask in here, brother
ops, mb
All good, all good
that is thicc
the meat looks like a slice of bread
need a banana for reference
how do you make meatloaf?
brb
me, lightly touching miette with the side of my foot: miette move out of the way please so I don’t trip on you
miette, her eyes enormous: you KICK miette? you kick her body like the football? oh! oh! jail for mother! jail for mother for One Thousand Years!!!!
Cristiano Ronaldo Celebration, also known as Siii / Siuu, refers to a clip of professional football player Cristiano Ronaldo yelling "Siiiii" (sometimes misheard as "Siuuu") after he scores a goal or wins an award. The "Siii" has been added to numerous videos as a sound effect since originating in 2014.
am I going insane, or is this broken and Im not slipping slowly into the realm of Sithis: http://dpaste.com//4KU96GPEM
Hey can you ping that website link which you were showing few minutes ago
from what I understand, even with nginx set, the flask web service still needs a port configured for nginx to forward to correct? im not crazy?
Ohk got it
brb
yes
I am trying to build an app to monitor malicious activities in smart contracts
any web3 expert here?
bye
http://KEXP.ORG presents King Gizzard & The Lizard Wizard performing "Nuclear Fusion" live in the KEXP studio. Recorded April 10, 2017.
Host: Cheryl Waters
Audio Engineer: Kevin Suggs
Audio Mixer: Stu Mackenzie
Cameras: Jim Beckmann, Scott Holpainen, Luke Knecht & Kendall Rock
Editor: Jim Beckmann
for you @tidal shard
Provided to YouTube by DistroKid
Anchors · Tom's Story
Tom's Story
℗ A Spur of the Moment Project
Released on: 2016-01-28
Auto-generated by YouTube.
for you @whole bear
STS9 - Moon Socket
From the album: Interplanetary Escape Vehicle
Get the album here: https://sts9.bandcamp.com/album/interplanetary-escape-vehicle
Track available here: https://sts9.bandcamp.com/track/moon-socket-36
Website: https://sts9.com
Subscription: https://sts9.bandcamp.com
Faceb...
@tidal shard https://github.com/python-discord
byeeee, imma try reading something and sleeping
bye Sam, have a great weekend!
You know where to find us if you can't sleep
Thaanks
A guide to contributing to our open source projects.
@tidal shard We're getting a lot of background noise from your mic
!stream 575108662457139201
✅ @rich moss can now stream until <t:1668189908:f>.
Django, API, REST, Testing
print(((A:=lambda x:any(a==d and b==c and a!=b for a,b,c,d in zip(x,x[1:],x[2:],x[3:]))),sum(A(sn) and not(A(hn))for sn, hn in [(' '.join(p[::2]),' '.join(p[1::2]))for p in [__import__("re").split(r'\[([^\]]+)\]', line)for line in open(__import__("sys").argv[1]).read().split('\n')]]))[-1])
part 1 and 2 together:
print(*((A:=lambda x:any(a==d and b==c and a!=b for a,b,c,d in zip(x,x[1:],x[2:],x[3:]))),(P:=[(' '.join(p[::2]),' '.join(p[1::2]))for p in [__import__("re").split(r'\[([^\]]+)\]',line)for line in open(__import__("sys").argv[1]).read().split('\n')]]),sum(A(sn)and not(A(hn))for sn,hn in P),sum(any(a==c and a!=b and b+a+b in hn for a,b,c in zip(sn,sn[1:],sn[2:]))for sn,hn in P))[-2:])
@rugged root
>>> A = re.compile(r"(.)(?!\1)(.)")
>>> A.match("ab")
<re.Match object; span=(0, 2), match='ab'>
>>> A.match("aa")
two different characters --- can just reverse the two groups for palindrom
>>> A = re.compile(r"(.)(?!\1)(.)\2\1")
>>> A.match("abba")
<re.Match object; span=(0, 4), match='abba'>
>>> A.match("aaaa")
>>> A.match("abab")
Huh
there might be something simpler dunno, regex is never readable
we have different definitions of readable then
I feel like I'm so close to having what I want
hello guys
@haughty dome 👋
File "preprocessing/binarize.py", line 20, in <module>
binarize()
File "preprocessing/binarize.py", line 15, in binarize
binarizer_cls().process()
File "/content/diff-svc/preprocessing/SVCpre.py", line 29, in __init__
super().__init__(item_attributes)
File "/content/diff-svc/preprocessing/base_binarizer.py", line 55, in __init__
if self.binarization_args['shuffle']:
TypeError: 'NoneType' object is not subscriptable
/content/diff-svc/data
WARNING: No more files
binary
Scan WARNINGS for files and folders:
binary : No more files
----------------
Scan WARNINGS: 1```
# Refactored code (Vocab Creation)
import math
def bow(sentence_1,sentence_2):
a=sentence_1.split()
b=sentence_2.split()
vocab=list(set(a+b))
vector_1=[]
vector_2=[]
for names in vocab:
vector_1.append(a.count(names))
vector_2.append(b.count(names))
return vector_1,vector_2
print(bow("Enter an example text","Enter an sample text"))```
@sacred elm :white_check_mark: Your 3.11 eval job has completed with return code 0.
([1, 0, 1, 1, 1], [1, 1, 1, 0, 1])
import numpy as np
a = [1, 0, 1, 1, 1]
b = [1, 1, 1, 0, 1]
print(np.dot(a,b))
@sacred elm keep trying to solve it. I hope, you can do it.
See you
how do i stream in vc?
@zenith radish I think fingerprint is like an identifier that doesn't change
@lavish rover Can you remind me of that job search website you recommended me? I seem to have lost it.
thanks!
👀
sleep time
@ionic lake
File "D:\DiffSVC\diff-svc-main\preprocessing\binarize.py", line 20, in <module>
binarize()
File "D:\DiffSVC\diff-svc-main\preprocessing\binarize.py", line 15, in binarize
binarizer_cls().process()
File "D:\DiffSVC\diff-svc-main\preprocessing\base_binarizer.py", line 137, in process
self.process_data_split('train')
File "D:\DiffSVC\diff-svc-main\preprocessing\base_binarizer.py", line 175, in process_data_split
spec_max=np.max(spec_max,0)
File "<__array_function__ internals>", line 180, in amax
File "C:\Users\phill\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 2793, in amax
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
File "C:\Users\phill\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity```
!e py import numpy as np np.max([])
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | File "<__array_function__ internals>", line 180, in amax
004 | File "/snekbox/user_base/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 2793, in amax
005 | return _wrapreduction(a, np.maximum, 'max', axis, None, out,
006 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
007 | File "/snekbox/user_base/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
008 | return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
009 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
010 | ValueError: zero-size array to reduction operation maximum which has no identity
@charred sleet 👋
@somber heath
hi there
thank god
i need a little help
regarding a python project
can you please help me though
this is for my school prohect
project*
ok
how can i share my screen
!code if it fits
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.
!paste if it does not
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.
here is the screen shot
now here
i want to extract the account number of the reg user
as i mentioned up there
like if krrish is the user
and he ask for account number
the python should print his account number that is saved in reg_id_info
sorry, i din;t hear that
@somber heath
Please post your code as a Discord codeblock or in a pastebin.
Instructions have been posted above.
alright! thankyou
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.
!paste reg_id = ['krrish' , 'leera' , 'vaidehi' , 'Dk sir']
reg_id_info = {'krrish' : '651234' , 'leera' : '798734' , 'vaidehi' : '234788'}
def anime():
print('.')
#need to do some work here
def intro():
print("Hello there this is your virtual assistent 'LMAO'")
sleep(1)
ask_name = input("please enter your registered name here: ")
if ask_name in reg_id:
print('hello' , ask_name)
inp1 = input("how can I help you today: ")
if 'account number' in inp1:
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.
The !code and !paste bring up instructions from the bot to be followed.
@azure stirrup 👋
this server is not letting me talk or chat. i don't know why
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You can chat, but not talk sultan
Basically, because people are arseholes, and a voice gating system was the lesser of evils.
I just joined. so, I have to meet all my requirements before I can access voice channel.
The logistic map connects fluid convection, neuron firing, the Mandelbrot set and so much more. Fasthosts Techie Test competition is now closed! Learn more about Fasthosts here: https://www.fasthosts.co.uk/veritasium Code for interactives is available below...
Animations, coding, interactives in this video by Jonny Hyman 🙌
Try the code yourself...
hi
I need help to create a discord bot every time I type a message it sends out its message
it's not supposed to it doesn't check the trigger word
Yea
can you show me how to do that
import discord
You said upgrade to what
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Bot is now online')
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content == '!hello':
await message.channel.send('Welcome to foxus server')
await message.channel.send('Hello there Welcome to our discord server 👋')
client.run(')
ok
I’m so confused rn
print("Mosh likes blue")
name = input('what is your name? ')
favorite_color = input('what is your favorite color? ')
state_name = input('what state do you reside in? ')
print(name + 'likes' + favorite_color +state_name)
the end result of this when i answer the question it smushes all the answers together how can i correct that
I just want to talk instead of typing
import discord
intent = discord.Intents.default()
intent.messages = True
client = discord.Client(intents=intent)
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!hello'):
await message.channel.send('Hello!')
await message.channel.send('Hello!')
client.run('token')
print(name + ' likes ' + favorite_color + " " + state_name)
print(name, 'likes', favorite_color, state_name)
print(f'{name} likes {favorite_color} {state_name}')
I have a question can you put a discord bot on Raspberry Pi
can you link me to the tutorial
can you run in Docker
so are f strings just for making lists?
can you help me do that
like
print(f '{time} likes {money_lended} {debt_received} ' )
is that a good example
okay this stuff is complicated
is anyone going to help me
!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.
when i upload it in to python like the last way it says invalid syntax
f string invalid syntax
print(f'{name} likes {favorite color} {state_name}')
im sorry im asking so many questions i just started 2 days ago
I came here for help
!e
print("Mosh likes blue")
name = "Chris"
favorite_color = "Blue"
state_name = "CA"
print(f'{name} likes {favorite_color} {state_name}')
@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Mosh likes blue
002 | Chris likes Blue CA
damn this looks way cleaner than what i wrote
dude thank you i was tryna make that work for like an hour
data = data[data["long"] != 0]
was the name=input way just a more primitive way of what you did?
data = data[(data["long"] != 0) | (data["short"] != 0)]
!resources @pulsar root
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
whats the difference between print and input
!e ```py
def func():
return 5
print(func())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
you did a better job explaining that than my teacher
The func() in the print being the call
The 5 in the function replacing the call.
As if I had instead writtenpy print(5)
ohhhhhh
!e py a = print("Hello.") print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | None
!e ```py
def func():
pass
print(func())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
None
so with the function you use numbers right?
gotcha
who me?
i just started 2 days ago 😭
!e ```py
def func(parameter):
print(parameter)
argument = "Hello, world."
func(argument)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
so like
def func(money_spent):
print(money_spent)
you made that really understandable
are you a professor
i wanna get proficient
but idk what tutorials
i found it
Corey Schafer, YouTuber. Playlists.
i gotcha
how long did it take you to get a grasp of python?
this is going to be a long journey
I picked to do this cause im tired of being broke
im happy i found this discord though
im prob gonna end upvtrying to learn java after this
my uncle just told me to learn python to start with

ye all i can do is think about how to solve the question than apply it to the syntax
im a business major
tru
birth_year = input('birth year: ')
age = 2019 - int(birth_year)
print(age)
is this correct?
i didnt know how to do current
true
okay
!e py import random result = random.randint(1, 20) print(f"You rolled a {result}.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
You rolled a 9.
!e py import datetime now = datetime.datetime.now() year = now.year print(year)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
2022
woah you did that so fast
so you could do this for picking a random person out of a group?
!e py import random people = "Julia", "Peter", "Alex", "Bjorn", "Sarah" my_choice = random.choice(people) print(my_choice)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Peter
i gotta head to work in a second
i sent you a friend request opal thank you
😦
okay
!e py things = "Apple", "Pear", "Orange" print(things) print(type(things))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ('Apple', 'Pear', 'Orange')
002 | <class 'tuple'>
!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)
func("a", ("b1", "b2", "b3"), "c")```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | ('b1', 'b2', 'b3')
003 | c
thanks for this @somber heath i gtg too
this is correct
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@hollow topaz chat here
oh
i thought this was a live coding session
no all good i was hoping to watch some coders code
mb
good day
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
assburgers
aspergers
Aspergers
Guys, I'm working a on a script that fetches text from images and stores the data from the images into a dataframe.
I'm currently using Tesseract to detect txt from images. Any other alternatives? Tesseract doesnt seem to detect small text from images
@nova prawn where are u frm in India
hes from deli
the oldest language in India is debatable
we were taught it was Tamil
in north india its taught that Sanskrit is the oldest
हि
cool
Asian?
Russian?
Australian?
Turkish?
Iranian?
agnostic?
here in India divorce is uncommon, so we find it too sensitive to talk about.
W mentality
exactly
lmaooo
what grade did that happen?
lol
opal how old are u if u dont mind me asking
h e w o n t a n s w e r
what does that have to do with capitalism
The CIA collects information only regarding foreign countries and their citizens. Unlike the FBI, it is prohibited from collecting information regarding “U.S. Persons,” a term that includes U.S. citizens, resident aliens, legal immigrants, and U.S. corporations, regardless of where they are located.
from their website
yea i get watchumean
india
we're everywhere
lmaoo
bye cyber
even in india we have 2 divisions
CBI and CID
yea so whats the other branch do
right
nvm i thought i heard 2 departments for canada
Csis
got it
canadian security intelligence sevice
It's going to be a few moments until I'm back. One of the computers may or may not be possessed
k
Email I got from my co-worker:
Subject: Is it possible....
That [former laptop owner's name here]'s possessed laptop can be “infecting” the function of my computer? I really do mean this. I have nothing but problems most the time when I try to connect to my computer with it. (I couldn’t again over the weekend.) When I come back from successfully using it or unsuccessfully but trying, I seem to have problems with my desktop.
Like
Like just
I'm pretty sure it's just her that's cursed
She's one of the folks that I ALWAYS have computer issues with, for no reason at all. She's not even doing anything wrong
Uff
Shes not doing anything wrong but she always has computer issues...sounds like a curse to me
Amazing
!voice 🙂
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Personal web page for Gennady Pekhimenko, Assistant Professor, Computer Science Department, University of Toronto
hi mr hemlock
missing you 💔
f
💀
pineapple ornament
aged atleast 4 months
keep it near onions
this system works a lot of the time
is some one here really into watches
Vimes
someone main python here and i can send a dm
just ask your question
Or look at #❓|how-to-get-help
its a bit more complex but how to get file path in python
!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.
py generate_srt(access_key, '001.mp3' , srt_folder) in ctl ```py
def generate_srt(
access_key,
audio_path,
subtitle_path
):
anime = ProgressAnimation('Initializing Leopard with AccessKey %s' % access_key)
anime.start()
try:
leopard = pvleopard.create(access_key=access_key, model_path=None)
except pvleopard.LeopardError as e:
print("Failed to initialize Leopard with %s" % e)
exit(1)
finally:
anime.stop()
if audio_path is not None:
if not os.path.exists(audio_path):
print("`%s` does not exist" % audio_path)
exit(1)
anime = ProgressAnimation('Transcribing `%s`' % audio_path)
anime.start()
try:
# noinspection PyUnboundLocalVariable
transcript, words = leopard.process_file(audio_path)
except pvleopard.LeopardError as e:
print("Failed to transcribe audio with `%s`" % e)
exit(1)
finally:
anime.stop()
with open(subtitle_path, 'w') as f:
# noinspection PyUnboundLocalVariable
f.write(to_srt(words))
f.write('\n')
print('Saved transcription into `%s`' % subtitle_path)
global SP
SP = subtitle_path
download_folder = 'C:/Users/thema/Desktop'
srt_folder = 'C:/Users/thema/Desktop/CCA Beta/00_CCA_Beta'```
@stray niche We are here and therefore have pingeded you
I pinged her earlier as well but no
0:0:10
0:0:10
Download complete for: GET AFTER IT - Motivational Speech
C:\Users\thema\Desktop\CCA Beta\00_CCA_Beta\GET AFTER IT - Motivational Speech.mp4
Transcribing `001.mp3` . Failed to transcribe audio with ``
PS C:\Users\thema\Desktop\CCA Beta\00_CCA_Beta>
raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]()
pvleopard.leopard.LeopardInvalidArgumentError
nice thema
thanks 🙂
i can cook cleann and defend my teammates
ooooooo i just remembered something
wanna see my highschoiol lab ? :3
Sure?
That's a lab and not a bedroom?
That's the only decor. And pages of reports n shit
"decor"
Yesz.
A katana
Bcz why not
100000000000$ for a band aid
Typical amurica
yes pls
aah!
pls figh fight my face
fist*
Back in a bit
Huh, hadn't seen this one before
Really? This one's pretty common no?
@whole bear Of course you join as I have to go fix a computer
I've apparently had my head in the sand.
i just woke up pls spare me
I shall wait for you!
= 50
!e
import random
random.seed(10)
for i in range(3):
print(random.randint(0, 100))
random.seed(10)
for i in range(3):
print(random.randint(0, 100))
@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 73
002 | 4
003 | 54
004 | 73
005 | 4
006 | 54
gtg, be back later
brb
\starts cricket manic snake dance
@stray niche
@stray niche
ok
@stray niche
@wintry pier
not things just hi
ok
how can I get started in learning python is youtube enough?
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@tacit raft
thanks a lot @stray niche ❤️
@gentle flint byeeeee
'''
Question 7
Write code to calculate Fibonacci numbers. Create list containing
first 20 Fibonacci numbers, (Fib numbers made by sum of preceeding
two. Series starts 0 1 1 2 3 5 8 13 ....)
'''
Number of fib numbers required
n = 20
Set a and b to the first two numbers in the sequence
a = 0
b = 1
List in which to store numbers
fib_nums = []
Use a for loop to create the sequence, repeat n times
for i in range(n):
fib_nums.append(a)
a,b = b,a+b
print(f'The first {n} Fibonacci numbers are, {fib_nums}')
can someone help me visualize a,b = b,a+b? I know it's a multiassingment statement and evaluates the right side first and then updates the variables on the left.
and what should be my thought process be like to come up with this solution?
!e
print([] is [])
print(id([]) == id([]))
@lavish rover :white_check_mark: Your 3.10 eval job has completed with return code 0.
001 | False
002 | True
my cousin
Been to a few of those. Cousin weddings.
I have a lot of cousins.
Yes, well, beyond a point it gets a bit muddled.
As soon as you start having to use the word "removed".
Or "th/nd/rd cousin"
My problem is not one of time but of inspiration and spoons.
Also brain rot.
Howdy.
I miss having functioning technology.
Yes. That things wear out is a design flaw.
Are they camelCasers?
Phone.
Yes.
...worse?
ew.
Just print out a copy of PEP8, highlight the section of naming conventions and sneak it somewhere obvious for them to find.
Oh, nice.
"But if enough people join my server that means it's successful as a community!"
Self governance works on a small scale.
Macro...eh...
People probably just look through the helpers list on the right.
hi @wind raptor
Supp guys
Sorry I am a noobie here and cannot speak, need to hit 50 messages and wait for 3 days sad 😦
No worries! You'll get there!
Chess?
Sweeney Todd.
People singing in a musical? Perish the thought.
There's different presentation formats.
People can get used to that.
If they don't, that's fine.
If they do, cool.
People have preferences...shocker.
Failed Cluster Start: Failed to add one or more helper nodes: Node k3d-portainer-serverlb failed to get ready: error waiting for log line start worker processes from node 'k3d-portainer-serverlb': stopped returning log lines: bufio.Scanner: token too long: node k3d-portainer-serverlb is running=true in status=running
i'mma leave the vc for now cya guys later
The UK had a bridge thing a while back.
hi
you use pygame @ashen wave
🐍💻Python Developer Roadmap💻🐍, 👀, https://youtu.be/d5BzuLlII_Y, FULLSIZE-FULL_LOGO-NoSubTitle
ebpf
print(dna_seq)
dna_seq_length = len(dna_seq)
adenines_in_seq = dna_seq.count("A")
base_counts = {"A": adenines_in_seq,
"C": dna_seq.count("C"),
"G": dna_seq.count("G"),
"T": dna_seq.count("T")
}
print(base_counts)
percent_gc = (base_counts["G"] + base_counts["C"]) / dna_seq_length
print(dna_seq_length)
print(base_counts["G"] + base_counts["C"])
print(f"The DNA sequence GC content is ~ {round(percent_gc * 100, 1)}%.")
rna_seq = dna_seq.replace("T", "U")
print(rna_seq)
dna_fragments = dna_seq.split("GAT")
print(f"Digesting the DNA sequence with the mentioned restriction enzyme would result in the following: {dna_fragments}")
print(f"The DNA sequence was cut in {len(dna_fragments)} fragments. The last fragment is {len(dna_fragments[-1])} base pairs long.")
dna_fragments.append("TACGGCATT")
middle_dna_fragments = dna_fragments[1:5]
rebuilt_dna_plus = "GAT".join(dna_fragments) # The 'GAT' motif had been digested and needs to be added back!
print(rebuilt_dna_plus)
primers = ("AGCTGATG", "TTATTCGT", "TAGTGTCG", "ATGCGTAT") # My order may not be the same as yours but it should no take any difference to solve the exercise
print(primers)
print(primers[::-1])
indeces = [dna_seq.find(primers[0]), dna_seq.find(primers[1]), dna_seq.find(primers[2]), dna_seq.find(primers[3])]
five_primer_index = indeces.index(min(indeces))
three_primer_index = indeces.index(max(indeces))
print(f"The best primer pair would be {primers[five_primer_index]} and {primers[three_primer_index]}, since they produce the longest sequence.")
@wary meadow Append to file, overwrite file, pipe to program as stdin?
It's also pronounced lin-uhx
not line-uhx
@wary meadow What Calc level are you taking?
@whole bear Nice I also use ArchLinux!!
TinyWM is a tiny window manager that I created as an exercise in minimalism. It is also maybe helpful in learning some of the very basics of creating a window manager. It is only around 50 lines of C. There is also a Python version using python-xlib.
uname -a
yakitate japan
hey
👋
My game is to hard i only made it to 44$
Im going to learn to code that
i love that video
what?
is something wrong?
no
how?
it isnt possible
you cant make a discord mp4 crasher
Hiya, Barbie
Hi, Ken
You want to go for a ride?
Sure, Ken
Jump in
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
Come on, Barbie, let's go party
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
I'm a blond bimbo girl in a fantasy world
Dress me up, make it tight, I'm your dolly
You're my doll, rock'n'roll, feel the glamour in pink
Kiss me here, touch me there, hanky panky
You can touch
You can play
If you say, "I'm always yours" (ooh, oh)
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Make me walk, make me talk, do whatever you please
I can act like a star, I can beg on my knees
Come jump in, bimbo friend, let us do it again
Hit the town, fool around, let's go party
You can touch
You can play
If you say, "I'm always yours"
You can touch
You can play
If you say, "I'm always yours"
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
nono
Hey, can someone help me on an simple flask task that I need to finish, its very simple but im kinda rusty, im currently on 'code/help' voice chat
Hello, can someone please help with this - #help-dumpling message
@somber heath HAI OPAL
Yahoy.
Be back in a sec, just calling a co-worker
bahamas lol
and a partridge in a pear tree
It's the kind of thing I would hope there's licensing for.
Bread as a service.
You pay for a monthly subscription for bread.
Silican't valley.
what about the funds.
Screenshot for actual Python backend
(extern printf Void Str ...)
(extern exit Void Int)
(extern deref Int &Int)
(extern element Int &Int Int)
(extern add Int Int Int)
(fn f [x: Int y: Int] Int
(add x y))
(fn main [] Void
(define x #(1 123 2))
(printf "%d %d %d\n" (f (element x 0) (element x 1)) (element x 1) (element x 2))
(exit 0))
125 123 2
Do humans like to play the computer games?
Then I, too, will enjoy the playing of computer games.
What headgear?
Like those bus tip tests.
"Hey! Nerd!" BOOSH!
As a scientist in the field of climate physics and dynamics you will contribute to the physical understanding of climate change based on mathematical modelling of physical processes and in particular on the physical understanding of abrupt changes in the physical system associated with threshold behavior of its subsystems that can act as tipping elements when certain thresholds are exceeded and subsystems possessing multiple equilibria given a certain forcing/climate background state can be pushed to a new equilibrium.
@zenith radish
How do you code complicated thing here?
Oh, easy, I just do this this this this and this.
How do you send e-mail?
...I put my pants on!
Do you suppose ents have lumbering gaits?
@fierce summit How've you been?
I'm good. I'm trying to find a solution for a problem. I hate javascript but I want to create a game a dueling game, that has some graphical elements, and I want to make it so that it has a leaderboeard too. And I don't know how to make that in javascript (I mean the leaderboard part), so I'm looking into python + javascript, and pyscript
I thought about making the game in scratch, then use a website to turn it into html, I just don't know if the leaderboard (which would be a list) would stay and work like it should, or it would reset every time the page is loaded or reloaded
There's just a lot in JavaScript. So what engine is this using? I'm confused on that part
Like what frameworks, libraries, etc
I'm not using any engine. I just wanted to make a simple game
That can make life way easier compared to just vanilla
Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.
That's a good one for example
@whole bear
Yooooooooo
@rugged root yooooooo long timeee! How have you been buddy?
Been alright, was on vacay for a week. Feel slightly refreshed but not super
Better than nothing.
'bout you?
Man I hope it gets easier for you, you've got thiss
Mainly just stress working about Joi. She still has the tachycardia issues
Although she's better than she was
Still anxious about it
I was just about to ask about her
I bet she's refusing to rest as well
Doesn't have a lot of choice, honestly. Standing up and heading to the bathroom spikes her heart rate up to like ~120 bpm
Thats crazy, praying that she recovers soon
I guess that works
Doesn't feel like a ternary though
Too wordy
Fair
Yeah, fair
Python is the weird one right? true_return if condition else false_return? Or am I misremembering... Haven't been able to code much lately
Can't remember how JS does it
Oh right right
I don't know why but you feel really familiar
True
Just feels less explicit
Like we should care whether something is true or false before we care about what we're getting from it
Both have their own merits I suppose
Just boils down to personal preference
Fair
More functional style
you'd need a PC for starters
should you use type hints in python?
one has a larger penis
examples?
language barrier?
thanks
type hinting has me running into a lot of issues with circular imports
apprenticeships
Infact circular imports in general are miserable to work with
Fachinformatiker Anwendungsentwicklung
i cant believe he just said it
haha
JSON
Union[Dict[str, Any], List[Any], int, str, float, bool, Type[None]]
That's not playing nice
paid well?
hi
astaghz
unlucky dude. hope youre OK
LIES!
looool
@mossy cedar what are your plans for the immediate future re: employment?
ugh idk. schollership
scholarship
python conversations somehow made more sense
Yeah that sounds creepy
sounds like a dream
nah your fine i'm just weird lol
more what?
jamming
@whole bear its not underground
no, i was there tho
msi ds502 - surprisingly good
4
WRONG CHOICE
Can someone please help with this - https://www.reddit.com/r/learnpython/comments/z1ifv6/comment/ixb693e/?context=3
1 vote and 1 comment so far on Reddit
So for something like....
ham bacon pork
eggs steak spam
You need to find out if say "eggs" is in column index 1?
!stream 603965701988024361
✅ @kind wharf can now stream until <t:1669145506:f>.
!d collections.defaultdict
class collections.defaultdict(default_factory=None, /[, ...])```
Return a new dictionary-like object. [`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict "collections.defaultdict") is a subclass of the built-in [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") class. It overrides one method and adds one writable instance variable. The remaining functionality is the same as for the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") class and is not documented here.
The first argument provides the initial value for the [`default_factory`](https://docs.python.org/3/library/collections.html#collections.defaultdict.default_factory "collections.defaultdict.default_factory") attribute; it defaults to `None`. All remaining arguments are treated the same as if they were passed to the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") constructor, including keyword arguments.
[`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict "collections.defaultdict") objects support the following method in addition to the standard [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") operations:
{1: ["Tim", "Tom"], 2: ["Nathan", "Tim"]}
I mean
@rugged root i was responding to the guy saying he read 400 books and theyre all BS
My bad
me? lol
bs b5?
!e
x = "3"
y = int(x)
x = "3" + "3"
print(int(x))```
x = "3" # this is a string
print(x+x) # this will print 33
y = 3 # this is an int
print(y+y) # this will print 6
str(3) will return "3"
int("3") will return 3
Do I have to install/generate/download new certificate inside my system or is it possible for me somehow to disable certificates inside the python? (ubuntu 18, python 3.7, discord.py latest)
[INFO...
import discord
class MyClient(discord.Client):
async def on_ready(self):
print(f'Logged on as {self.user}!')
async def on_message(self, message):
print(f'Message from {message.author}: {message.content}')
intents = discord.Intents.default()
intents.message_content = True
client = MyClient(intents=intents)
client.run('')```
pip3 list
spam = (
"Ham is cool\n"
"Just sayin'.\n"
)
!d textwrap.dedent
textwrap.dedent(text)```
Remove any common leading whitespace from every line in *text*.
This can be used to make triple-quoted strings line up with the left edge of the display, while still presenting them in the source code in indented form.
Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines `" hello"` and `"thello"` are considered to have no common leading whitespace.
Lines containing only whitespace are ignored in the input and normalized to a single newline character in the output.
For example:
It's so good
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
3\x
!e python import uuid print(int(uuid.uuid4()))
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
1417635219753266151025334773965329772
Hi there!
Howdy howdy.
I'm just experimenting with some hacky audio stuff.
We're living on the edge!
I'm Australian. I've been fooled by a NZ accent, before.
UK is distinct enough for my ears.
The thing with NZ accents is that, if it's not very thick, unless certain sounds are present, they do sound very similar.
Bogong moth?
Mm. Those organs aren't unique to Australia.
The branching organ.
I think it's a scent emitter or something.
Something to do with scent.
The bloodworms?
Are they parasites?
I don't think they are.
They're just kind of...vomiting their stomach out to eat.
Or something.
Oh, those things.
Yeah, they're pretty brutal.
The assert keyword is used pretty much exclusively in unit tests.
Given something falsy, assert will raise an exception.
Given something truthy, assert will not raise an error.
asserts can be disabled at runtime, so it's unwise to rely on them for program logic
d0 = Duree(0,0,0)
d1 = Duree(10,20,59)
d2 = Duree( 8,41,25)
# FONCTION POUT TESTER LA METHODE __str__ DE LA CLASSE Duree
def test_Duree_str() :
assert d1.__str__() == "10:20:59", "Test 1 Duree __str__"
assert d2.__str__() == "08:41:25", "Test 2 Duree __str__"
0 is falsy
nonzero is truthy
Meaning if your return is 0, assert will raise an exception
If it is nonzero, assert will not raise an exception
Specify the circumstance.
You're instantiating with 0, 0, 0 and 10, 20, 59, etc...
That's setting up those objects to behave in a certain way when you call __str__
Also, self?
Is delta a function or a method?
class Duree :
def __init__(self, h : int = 0, m : int = 0, s : int = 0):
self.heures = h
self.minutes = m
self.secondes = s
self.to_secondes()
self.heures = (self.sec_total // 3600) % 24
self.minutes = (self.sec_total // 60) % 60
self.secondes = (self.sec_total) % 60
def to_secondes(self):
self.sec_total = self.heures * 3600 + self.minutes * 60 + self.secondes
return self.sec_total
def delta(self, d):
return self.sec_total - d.sec_total
def apres(self, d):
if self.sec_total > d.sec_total:
return True
else:
return False
def ajouter(self, d):
self.sec_total += d.sec_total
def __str__(self):
return f'{self.heures:02}:{self.minutes:02}:{self.secondes:02}'
``py
If you knew what the outcome of self.sec_total - d.sec_total was supposed to be...
Then you'd check for that
That's your job as the programmer.
To know what your code ought to be doing.
Excuse me, I'm sneezing my face off.
brb
bless you
hssss!
a = Duree(s=10)
b = Duree(s=5)
assert a.delta(b) == 5
Hemlock: Okay, brb, I just got to the office.
60 minutes later...
Hemlock: So, this printer opened up a portal to hell and the walls started bleeding, so I had to clean that up.
hai
I can see that being a thing in the event of a swarm.
Like where they're all bunched up on a branch or something.
We can drink the tapwater here just fine, but the taste does vary from suburb to suburb.
Bear or bare?
Both?
The company might try to penalise the worker for not doing work, arguing they're still on a business trip.
G'evening
Yoooooooooooooooooooooooooooooooooo
Currently playing through Persona 5 Royal
Such a good game
I gotta get used to the camera though
Also reading the text is like 40% of gameplay 
True
It could be just that I've really only played RPGs on the GBA
Not on any modern system
Even then, the exposition dumps on those games are pretty long
Is there any good tutorial on implementing xgboost
Fair
Lightweight Container Runtime for Kubernetes
I've a lot to look forward to in terms of games this 2023
That's magical
💀
.
Fair
Amend isn't that bad, honestly
Done it quite a few times. Granted the only time I've been comfortable doing it was when I was using Sublime Merge
Made it easy to do
They can send it to NASA
That'd be cool
Take my data and just fuckin'..... shoot it into space
Let any aliens who intercept it use it as they please
Eh, orgy makes sense in this context
True
But I don't think it's the case for this one
brb
Just going to leave this here
<#python-discussion message>
That's amazing
Right
Sup
import discord
class MyClient(discord.Client):
async def on_ready(self):
print(f'Logged on as {self.user}!')
async def on_message(self, message):
print(f'Message from {message.author}: {message.content}')
intents = discord.Intents.default()
intents.message_content = True
import discord
from discord import app_commands
# the @app_commands.guilds and @app_commands.default_permissions decorators (also including checks) can be used above the class.
# these will apply to ALL subcommands, subcommands cannot have invidual perms!
@app_commands.guild_only()
class Group(app_commands.Group):
# subcommand of Group
@app_commands.command()
async def my_subcommand(self, interaction: discord.Interaction) -> None:
await interaction.response.send_message("hello from the subcommand!")
# nested group command
group2 = app_commands.Group(name="group2", description="This a nested group!")
# subcommand of group2
@group2.command()
async def my_second_group_command(self, interaction: discord.Interaction) -> None:
await interaction.response.send_message("hello from the second subcommand!")
# unlike commands.GroupCog, you need to add this class to your tree yourself.
tree.add_command(Group())
client = MyClient(intents=intents)
client.run('token here')``` What do I have to fill in?? because tree.add isn't defined and this is from github.
The slash command
code
Im not sure how to fix it
why have you imported discord twice
I'm not sure, actually. I haven't messed with slash command stuff. #discord-bots would be able to help better than I
Did you copy two separate bot codes and just paste them one after the other?
I asked someone where to put the code for slash commands and they told me to put it under the MyClient class
Basically
if you're using slash commands, why are you still watching on_message?
Wdym
it's not defined, actually
that is precisely the problem
on_message is usually used so that the user can call the bot by sending a messqage
if you're using slash commands, why are you still watching all messages
Wait where does it say that
class MyClient(discord.Client):
async def on_ready(self):
print(f'Logged on as {self.user}!')
async def on_message(self, message):
print(f'Message from {message.author}: {message.content}')
Oh
why are you watching on_message
I dont know what that even is Im just copy and pasting code Idk what any of that means
compensate in equity
I'll take ways to fry your PS5 for 500, Alex: https://www.amazon.com/PlayVital-Console-Scratch-Waterproof-Playstation/dp/B091236LM2/
Well, step one is to find out what it does.
Not that advanced in python
because you have multiple mistakes in there
Fuck!
you never defined your tree, but then you try to add commands to it while it doesn't exist yet
So what does tree equal?
quick question first
the github doesn't show
have you ever followed a python course?
Yea
which course did you follow?
and did you understand all the code you wrote?
Programming with mosh python 6 hours only got to like 1 hour 30
my god i wish i could buy twitter stock
Alright, that explains a lot
Find a python course, finish it
discord bots are not a good place to start sadly
Oh mayyyan I was looking forward to making a bot 😦
they're quite complicated in some respects
yes but as you can see it just doesn't work that way
Someone told me it's a good learning experience if I learn how to make discord bots
you need to at least know somewhat what you're doing
yes, if you learn
you aren't learning
you're blindly copying and pasting unrelated pieces of code, without knowing what it does, and being surprised when it doesn't work
that is not the way to learn
Alright
sorry if it sounds a bit rude, but this isn't helping you either
well
you need to know what you are copying
because otherwise you get precisely the mistakes above
with duplicate definitions, missing variables
etc
Ima just find a new course for python
programming with mosh kinda dookey and I dont want to restart it
there's a whole list in the resources
ima just find 1 made like a month or 2 ago
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
My friend told me it's better if I read python books or a website called w3 schools
From our resources page, I typically recommend A Byte of Python and Automate the Boring Stuff
Both are pretty solid
I dont understand what the resources are. Is it just projects??
Nah, things like books and guides and videos, etc
things to learn python with
Ohhh ok
I like this one
https://automatetheboringstuff.com/2e/chapter1/
and this one
https://python.swaroopch.com/
which hemlock also recommended above
I found automate the boring stuff do I click book?
Nah, if you scroll down on the page
Like 2/3 of the way, you'll see the table of contents
Both of these are free on their respective sites
I see this
click it
Ok
then scroll down
OHHH I KNOW THIS BOOK MY FRIEND GAVE IT TO ME
good
sure
And if you have questions or need clarification on these kinds of things, feel free to ask
Alrighty
We're always happy to guide people
if you don't yet have python installed and working you should start with the intro first
cuz it goes through that
They've got 3.9 on mac
Oh I have VS code and pycharm but I dont use VS code cause IDk how it works
but I have 3.10 on Linux
3.10 is a thing?
3.11 is out
Ima read this book after school
But it's a bit... finicky on mac I think
History boring 🥱
Like you have to make sure that you don't overwrite or mess with your Mac's Python instance. Mac uses Python to run all kinds of stuff in the background, so messing with that can cause issues. I'm not 100% sure how to properly mess with new Python installs on Mac
I'm mainly a Windows guy
Let me find a good guide on it
No worries, we'll likely be around
les goooo
Speaking of vasectomies
Double checking, though
Oh huh
whats that
https://www.python.org/downloads/release/python-3110/ They also just have a macOS universal installer on python.org
Probably better to just do that
Oh yeahhh I forgot about their installer website
I'm a Microsoft consultant
I'm an insultant
Am probably too opionionated
Well that too
But I've been told I'm not supposed to brag about that
Rust!
So I had a quick question. yesterday someone (outside from the discord) threatend me with "spreading redflags onto my hardware" Does anyone know what that means?
Which is surprising with all the videos we've seen where they're literally dragging people onto the buses
Did they say like specific examples?
I can send ss if you want
If you're comfortable with that sure
Ik what hes saying is not true but im just wondering what red flags are
Whats that
Not entirely sure. I'm pretty - HA, well done AF - sure he's just full of shit and doesn't even know what he's saying
Again, I don't even know if that's a thing
I searched up what red flags are yesterday im not sure if it's what it means but im guessing it has something to do with making you download a fake software and having it popup with fake "you got 3 virus press SCAN to remove them" type of things
I'd just block him and ignore him
Yea
That's just a regular ol' phishing or virus scam
The term red flag on your hardware (as far as I know and as far as I can find) mean nothing
Oh ok
Eh
I suppose
Also, I fucking love minesweeper
Like
A lot
I don't know why
Oh like the hidden emoji thing?
Nah
That's..... actually a thing?
That's amazing
Eh, these seem to be specifically about speed
I'm just for enjoying it in general
You're exposing me to a whole new world of minesweeper I didn't even know could be
