#voice-chat-text-0
1 messages ยท Page 104 of 1
Terminal, you're limited to what the terminal application you're using you allows as a setting of that terminal. Otherwise, there are specific characters which, if supported, could be thought of as 'other fonts', but not really.
ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals and terminal emulators. Certain sequences of bytes, most starting with an ASCII escape character and a bracket character, are embedded into text. The terminal interprets these sequences as command...
Oh, there's fonts in ANSI. I hadn't noticed.
where do you want the font changed?
can you send a screenshot, for example?
does this app have settings?
maybe it will allow changing the font
The moon where I am is so pretty โฆ venus right on the outline.
in general, you can't change the font of the terminal output because it's just text
you can partially format it in some terminals
with ANSI escape codes
@empty lantern๐
example of customising terminal formatting:
https://github.com/Textualize/textual
what do you mean by "stenography"?
@spiral shell๐
hello
tkinter
is pyqt better than tkinter ?
PySide/PyQt are bindings to Qt, quite a performant and powerful framework
has anyone used fpdf ?
(officially it's maths specialisation)
now (year after I graduated) they're actually separating IT, physics and maths as subspecialisations
grade 11 was final year
"STEM" is more applicable for the school as a whole not for classes I took
(because biochem classes are separated)
hello
can i ask question?
@somber heath
did there is any library to make gui in python exept tkinter?
thank you
https://stackoverflow.com/questions/75833360/my-discord-bot-is-cannot-leave-voice-channel-in-other-server
can u guys help me with this?
thank you for the information
"leave" command just does nothing visible, right?
@shy wind๐
yeah
for first try it work properly, but when i try in other server it doesn't work
add prints (or more proper logging) to check whether parts of the code are actually reached
@client.command()
async def leave(ctx):
print("received a leave command")
if ctx.voice_client is None:
await ctx.send("I'm not in a voice channel.")
elif ctx.author.voice is None:
await ctx.send("You are not in a voice channel.")
elif ctx.voice_client.channel.guild != ctx.author.voice.channel.guild:
await ctx.send("I'm not in a voice channel in this server.")
else:
print("disconnecting")
await ctx.voice_client.disconnect()
await ctx.send("Left the voice channel.")
(just to make sure)
this is not a music bot, is it?
no, i doest have any fitur yet
just ping and join leave vocie channel
(help with music bots is against !rule 5)
last thing I spent a lot of time on was related to category theory
ohh u work with algorithm right?
mostly staring at these two diagrams
eta and mu
i dont really understand what is that xixixi
๐ญ
@vocal basin did the permission in voice channel affect the bot?
shouldn't
for leaving, at least
@mortal burrow yes
not algebra, category theory
yeah, because C.T. unifies all those things
if join works, leave should too
Hi guys!
If you cross social studies with category theory do you get clique hypothesis?
hello
@mortal burrow
yes, C.T. is a very recent generalisation that brought similar things together
Opal and Yu always in call
hello frendo
names in category theory are total disaster
" this very remotely resembles monoids from algebra, let's call it 'monoid' "
" oh, what's this? something that actually works like a monoid? let's call it 'monoidal category' instead "
linear maps
@whole bear ๐
linear maps are morphisms in the category of linear spaces
Not always. Often, yes.
hi
for topologies and groups it's homomorphisms
hope you guys had a good day
u too
@mortal burrow isomorphism is bijective
bijective homomorphism inverse of which is homomorphic too
in this sense the existence of an isomorphism between two objects shows those two objects are equivalent in structure
depends on what structure you want to preserve, I guess
topologically spheres without the outer layer are isomorphic to the corresponding R^n
tyty!
ohno, my face just got published on a channel with 250K subs
doxxing moment
guy i wanna ask something, what is best IDE for python?
I'm still new so i'd have no idea

i often use vscode, but i dont think its the best
me too
depends
I'm still on IDLE
๐
if you have enough money (or if you can get it for free via school licenses), then probably PyCharm Pro
for developing on a remote server or inside a container, then VS Code
there also exist less popular options for other benefits
ohhh
do you recommend me use vscode instead of IDLE?
IDLE is lightweight
so its more beginner friendly?
not necessarily
also i got the dragon to work yay c:
Hello (:
I'd say the most beginner-oriented, of ones I'm aware of, is Wing 101
๐
hello
hello
I've never heard of it
I don't consider VS Code the most beginner-friendly, at least for now
PyCharm poses some of its own difficulties for beginners (for example, run configurations)
i use google collab for learning tho xixixi๐คฃ
colab/jupyter is fine for studying/demonstration, yes
but knowing how to work without it is quite important
guess i'll stick to IDLE for now and then check out vscode
@vocal basin What are you doing now?
not an exhaustive list but at least something:
https://github.com/vinta/awesome-python#editor-plugins-and-ides
searching for Python IDEs
one things that i like in vscode is this chibi anime girl in the corner ๐คฃ
wait what why am I not on vscode then 
is that something you can add to the vscode background?
yeah, its an extension in vscode
learning (on my own) category theory and microservice design patterns
(not an exhaustive list)
in PyCharm you can do that too
neither
guess i'll start learning vscode 
can't study + can't get employed
most of what I know is from writing programs myself, watching a lot of talks and reading docs
some parts of knowledge are from helping other people
Most of my knowledge is
Plus my curiosity in general. "Huh, never heard of this issue... well now I'm curious."
book or article doen't help me that much ๐ญ , i often learn from youtube tutorial
i wanna learn it from my collage, but my curriculum is kinda broken
so it's like i dont really learn something
Broken how?
Exzyy
wdym broken?
Sorry?
there's whole 50 minutes of that
Eazy ??
Do you guys have any recommendations on how to improve and get better at coding like a boot camp etc for beginners?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
they learn something that is not implemented into the python
so i need to learn it my self form tutorial
idk just feel like I'd love a step by step guide kind of to learn and keep learning codes by having projects
if i'm making any sense at all
ahhhh
so on the actual python website?
okay tyty!
just feel a little lost on how to have a linear progression
ahhh
(for maybe getting better quality of programming)
read the free preview of "Clean Code", the book
if it is interesting to you and if it provides you with valuable perspective on how your code can be improved, buy the book and read the whole
it's mostly Java not Python, but general principles apply across languages
ed. 28.03.2023: find some other book
that's for later
not exactly for beginners
btw u guys speak english very well, i can't even understand if u guys speak too fast ๐ญ
u doing great guys
the problem is on me
thank you Yu! I'll check it out but i'm not big on reading :((
xixixi
I'm doing a computer science degree rn and just first year
hey @vocal basin down for some clash or code or still busy
on recursion being scary
(me, June 2020)
and I have no idea what happens here
sorry what did you say hemlock?
ahhhh I was looking into that
was deciding either Info system or comp
isn't info more business oriented?
I'm doing a info related unit rn and its on ORM and database
confusion
just first year
oooooo
errrr
learning about the Rmap and stuff like that
conceptual schema
should be the type of mapping
"I'm not intelligent enough to use anything more complex than a key-value store" -- @vocal basin
the thing was the second line of printing was showing an error in the java @vocal basin
only python
SQL will be later
Have you learned about entity relationship diagrams?
yeah i have
well learning it
we learning the relational mapping
I think its more general rn
i learn about rdbms
they gave us a glossary of the concepts and terms
i see your making a discord bot, u using slash commands?
@vocal basin proud moment for me
Mr Hemlock's jokes are rock solid. Join me later for more exciting facts on coprolites.
I have developed only two proper projects on top of an RDMBS
they worked good enough
and it was more than a year ago

What is that?
this one is reverse mode
ohhhh
fastest to complete given only tests
I also had this site that seemed pretty cool
@warped raft new link
later
ok
did one of u guy into making an AI in python?
okay, gud night
I once experimented with doing ML using only numpy
dude u insane
it worked better than I expected
1~3 years before that I attended a course which taught how to do that
How old are you again?
a free course promoted by one of the universities
(if I completed it, I'd have bonuses when trying to study there)
<30
18
... based on previous messages somewhere in this chat
Far smarter than me than I was at that age, got it
almost any valid results (software engineering-wise) require making some sort of framework
"uncertainty principle"
computer models are theoretically more capable (because are more accurate/performant) at the same number of elements
but maybe less flexible
idk
uprising 0.1
three rpis? I doubt that
four? sounds more realistic
See you around
iirc, the best brain modelling is currently (or a couple of years ago) of a worm brain
Old Ron. New Ron.
that the only sector where i loose my mind the string things
this one should take <20s in python
i don't know why this is showing error
syntax, compilation or runtime?
p[p.length] is always an error
seems like off-by-one
(||in the i initialisation||)
print(*input().split()[::-1])
I think this will also fail tests because you're writing words on separate lines
nope now it is working but now space is creating an issue
maybe print(" ") after each word if (i != 0)?
@muted widget๐
it wasn't together
we see you later @vocal basin
oracle
ew
not there are many alternatives for java docs from what I can find
e
I don't know. I'd just be looking up the information on the Wordpress website.
Other people may have greater insight.
i want to set up a website use python
wordpress is closer to php than to python
oh ic
logic if uv never used wp .... it's time.
you technically can run API on Python and more front-end-ish part via WP
oh so i must learn some php
no
1 click install
gui management
but if u want to modify
then u need a little php
1000's of plugins
but also be careful you only use well respected and updated ones
also do not torrent themes
as you may inadvertently install a php shell
in today's measurements
No one in our class learned Python, just me
its a good language
yes
but you'll need to learn a few others too
and once u know one well the rest are very similar
one of the main thresholds for small/big nowadays is 8MB (thanks to Discord)
I feel that Python is much simpler than other languages
easier to learn rather than simple, I'd say
but all languages are similar ie. variables / classes / functions etc.
syntax might only be a little different
and operators are usually the same across languages
lmfao
Your input was invalid: query is a required argument that is missing.
Usage:```
.wolfram <query>
?
I have <<JavaGraphics` pinned in one of the servers I have because this is such a hard thing to remember
The Wolfram Language (/หwสlfrษm/ WUUL-frษm) is a proprietary,[7] general high-level multi-paradigm programming language[8] developed by Wolfram Research. It emphasizes symbolic computation, functional programming, and rule-based programming[9] and can employ arbitrary structures and data.[9] It is the programming language of the mathematical symbolic computation program Mathematica.[10]
this enables graphics for wolframscript
.wa Plot[x^2,{x,-5,5}]
first time I used wolfram (not alpha) was in 2013
ohhh,ic
i googled it
college with greatest student count
I forgot the actual query
but that still responds with interesting results
11 o'clock i must to sleep,sorry
!stream 322504171636916226
โ @lucid blade can now stream until <t:1679670662:f>.
imagine how thicc theirr mama is if you didnt like the joke i will delete....
AI moves quickly, this conversation was recorded March 3rd 2023. Microsoft have incorporated a large language model into the Bing search engine. Rob Miles discusses how it's been going.
https://www.facebook.com/computerphile
https://twitter.com/computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the Univer...
@sour willow LOL
๐
*attempts at comparison*
(probably mostly incorrect)
8080 man i saw your yt btw its actually one of the best video editing especially for 11 years ago brilliant work
want to see the terrible vids @vocal basin
their actually very nice especially the transitions
I guess
ive been meaning to do some more
but its a lot of effort and my shop is so small atm
๐ i started with perl / php / html
1st few forums i set up in the 90s were perl scripts in the cgi-bin ๐
rip flash ๐ฆ
same excluding perl
good times ๐
I started with Pascal
("as kids say, :skull:")
although it was time when Pascal was still showing signs of life outside of educational sphere
"yesterday I had the ability to add and multiply numbers. today I don't."
python has to do extra work for closures because of how it handles scopes
our software works in a (shipping) container
retry, ignore, or fail?
retry, retry, and retry
OG stable diffusion.
Noise Floor: Exploring the world of unintentional radio emissions by Melissa Elliott Application security researcher, Veracode
If it's electronic, it makes noise. Not necessarily noise that you and I can hear, of course -- unless you know how to tune in. The air around us is filled with bloops, bleeps, and bzzts of machines going about their bu...
are you sure it's on that line?
headers={"Content-Type":"text"}
you might be missing commas between function arguments
if it's inside the call
What's my HTTP Header? Check your HTTP Request - Response headers here.
@mossy cedar How've you been?
`import random
import string
Number of strings to generate
num_strings = 5
Generate a list of 16-character alphanumeric strings
num_list = []
for i in range(num_strings):
num = ''.join(random.choices(string.ascii_uppercase + string.digits, k=16))
num_list.append(num)
Print the generated numbers
print(num_list)`
where the fuck do I buy this
I forgot the motherboard doesn't have normal power connectors, so it needs cables with smaller ones
This may be my favourite Lenny call ever. I laughed out loud when he said his name was Jerry Jones! Little does "Jerry" know that Lenny is not even running on a Windows server. Lenny's Asterisk server is running on Debian Linux. Toward the call, Jerry loses his patience for our entertainment.
"Sir, I told you to get next to the computer, NOW."
me ? life is too easy
The Website is Down: Sales Guy Vs. Web Dude High Quality
The original video in high resolution.
This video won a Webby award!
Easy in what way?
to failure + disappointment
What's going on that's been so rough
college = -1
tutions = -1
sensei report = -2
relationships = -3
projects = -1
work/job = -3
sleep = -4
social status = -2
things that needs to be done = 1/0
over all life ratting 0/10 do not recommend
@rugged root i had a funny moment today
found out why the bash scripters in our company complain about the time it takes to run their scripts.. they run them on a company linux machine.. its 1 core.. lol lol lol...
linus sux now
@ivory flower Yo
working on something in visual studio code. wtf is " <a certain library/function> is not accessed by pylance "
Hello, I don't have permission for voice chat, just listening to ppl chatting here .
show actual traceback
podcast episode lol
!verify
yes msg cnt
@lucid blade https://youtube.com/@AustinMollno1 I thought this might be up your alley.
<lol i made the nic name hemlock guy a long time ago as a joke> nvm this
typo
trying now
netowrk
there's a remote chance I can find this in my room somewhere
otherwise there might be a need to somehow smuggle it into the country buy it
ebay/amazone/alibaba/wish
my box of stuff
only third one works
i bet they want you to buy 50 of them no single piece
I basically need this but without importing it from another country
https://www.hardkernel.com/shop/sata-data-and-power-cable/
(power cable is the "difficult part")
because of this
I don't even know how to search for it
just buy a few " male to female " wire headers (diy electronic stores have them) and then just soder/tape em together yourself
it works
fr
this is not "typical 4 pin", it's mini version
and not the 2x2 square type mini
chop/melt the heads a bit still the same stuff
connecting 2.5'' SSD to a single-board computer
flat and small
i have lyk atleast "a few" of these in my "box of stuff"
there is no separate power supply
Sata 15 Pin Male To Mini 4 Pin Female Fdd Floppy Adapter Hard Drive Power Cable 18cm Mini 4p To Sata - Buy Mini 4p To Sata,Mini 4p To Sata 15p,4p To Sata Product on Alibaba.com
it's single board
orange pi ?
Odroid H2
guess whether I can order it.
amazon/ali-- oh- u dont want to ship it in
ali is an option
pretty much anything else isn't
i have a orange pi lts 2 as my smart tv lmfao
ali is evil man. they like selling wholesale more
Traceback (most recent call last):
File "vi_speaker_batch.py", line 67, in <module>
speaker_encoder_ap = AudioProcessor(**config.audio)
File "A:\VI-Speaker-main\utils\audio.py", line 313, in __init__
self.mel_basis = self._build_mel_basis()
File "A:\VI-Speaker-main\utils\audio.py", line 336, in _build_mel_basis
self.sample_rate, self.fft_size, n_mels=self.num_mels, fmin=self.mel_fmin, fmax=self.mel_fmax
TypeError: mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were given```
# config
config_dict = read_json(args.config_path)
# model
config = SpeakerEncoderConfig(config_dict)
config.from_dict(config_dict)
speaker_encoder = LSTMSpeakerEncoder(
config.model_params["input_dim"],
config.model_params["proj_dim"],
config.model_params["lstm_dim"],
config.model_params["num_lstm_layers"],
)
speaker_encoder.load_checkpoint(args.model_path, eval=True, use_cuda=args.use_cuda)
# preprocess
speaker_encoder_ap = AudioProcessor(**config.audio)
# normalize the input audio level and trim silences
speaker_encoder_ap.do_sound_norm = True
speaker_encoder_ap.do_trim_silence = True
wav_files = get_spk_wavs(dataset_path, output_path)
# compute speaker embeddings
for idx, wav_file in enumerate(tqdm(wav_files)):
waveform = speaker_encoder_ap.load_wav(
wav_file, sr=speaker_encoder_ap.sample_rate
)
spec = speaker_encoder_ap.melspectrogram(waveform)
spec = torch.from_numpy(spec.T)
if args.use_cuda:
spec = spec.cuda()
spec = spec.unsqueeze(0)
embed = speaker_encoder.compute_embedding(spec).detach().cpu().numpy()
embed = embed.squeeze()
embed_path = wav_file.replace(dataset_path, output_path)
embed_path = embed_path.replace(".wav", ".npy")
np.save(embed_path, embed, allow_pickle=False)```
I don't remember if whatever we ordered in 2018-2019 came with the cables
might be library version issue
search time
utils/audio.py lines 335 to 337
return librosa.filters.mel(
self.sample_rate, self.fft_size, n_mels=self.num_mels, fmin=self.mel_fmin, fmax=self.mel_fmax
)```
@lucid blade can you add me as a friend please?
didn't find the cable yet but found these
fancy
I wonder how many still boot
Divide: an operator of relational algebra that combines rows from two tables. The
divide operator produces a table in which values of a column from one input table are
associated with all the values from a column of the second table.
SELECT StdNo
FROM StdClub
GROUP BY StdNo
HAVING COUNT(*) = ( SELECT COUNT(*) FROM Club )```
SELECT Student1.StdNo, SName
FROM StdClub, Club, Student1
WHERE StdClub.ClubNo = Club.ClubNo
AND Student1.StdNo = StdClub.StdNo
AND CPurpose = 'SOCIAL'
GROUP BY Student1.StdNo, SName
HAVING COUNT(*) =
( SELECT COUNT(*) FROM Club
WHERE CPurpose = 'SOCIAL' )```
Sorry phone call
guess what I just found
another Sony Ericsson
besides it, the sealed box, that it was in, also had rocks inside
In JavaScript is it standard convention to use the dot notation or brackets to access JSON data?
data.name or data['name']
thx
I would say square brackets provides more reliable results
Since if you ever have any keys that are strings with spaces in them, you'll NEED to use square
Also more typical to see in code in general, at least from what I've seen
That's what I figured. And also sometimes you might have an iterator variable that is named similarly to the attribute in the JSON, so using the brackets makes it more clear.
Ffs, I was on standard, not Krisp. I don't think I turned off Krisp.
Exactly
Traceback (most recent call last):
File "vi_speaker_batch.py", line 79, in <module>
spec = speaker_encoder_ap.melspectrogram(waveform)
File "A:\VI-Speaker-main\utils\audio.py", line 564, in melspectrogram
D = self._stft(self.apply_preemphasis(y))
File "A:\VI-Speaker-main\utils\audio.py", line 624, in _stft
center=True,
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\core\spectrum.py", line 202, in stft
util.valid_audio(y, mono=False)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\utils.py", line 294, in valid_audio
raise ParameterError("Audio buffer is not finite everywhere")
librosa.util.exceptions.ParameterError: Audio buffer is not finite everywhere```
I'm training a Python audio source separation model package called DeWave (https://github.com/chaodengusc/DeWave). It's trained on single-channel .wav files. After training the model, I did inferen...
?voteban mustafa
how tough is it to like make some sort of ai . that simply has to choose between apis to use for results on the basis of text provided
#data-science-and-ml would have a better answer than I can offer
oh alr thanks
!e ```py
def string_to_ascii(file_path:str):
result = []
buffer = []
with open(file_path, 'r') as file:
for line in file:
for char in line:
print(char, ord(char))
buffer.append(ord(char))
if len(buffer) == 3:
result.append(buffer)
buffer = []
if len(buffer) < 3:
for i in range(3 - len(buffer)):
buffer.append(0)
result.append(buffer)
print(result)
I did it wrong
!e ```py
def string_to_ascii(file_path:str):
result = []
buffer = []
with open(file_path, 'r') as file:
for line in file:
for char in line:
print(char, ord(char))
buffer.append(ord(char))
if len(buffer) == 3:
result.append(buffer)
buffer = []
if len(buffer) < 3:
for i in range(3 - len(buffer)):
buffer.append(0)
result.append(buffer)
print(result)
@winter plover :warning: Your 3.11 eval job has completed with return code 0.
[No output]
Wtf
didn't call it
Iโm not calling it
def string_to_ascii(file_path:str):
result = []
buffer = []
with open(file_path, 'r') as file:
for line in file:
for char in line:
print(char, ord(char))
buffer.append(ord(char))
if len(buffer) == 3:
result.append(buffer)
buffer = []
if len(buffer) < 3:
for i in range(3 - len(buffer)):
buffer.append(0)
result.append(buffer)
print(result)
H 72
e 101
l 108
l 108
o 111
10
W 87
o 111
r 114
l 108
d 100
! 33
[[72, 101, 108], [108, 111, 10], [87, 111, 114], [108, 100, 33], [0, 0, 0]]
Traceback (most recent call last):
File "vi_speaker_batch.py", line 79, in <module>
spec = speaker_encoder_ap.melspectrogram(waveform)
File "A:\VI-Speaker-main\utils\audio.py", line 564, in melspectrogram
D = self._stft(self.apply_preemphasis(y))
File "A:\VI-Speaker-main\utils\audio.py", line 624, in _stft
center=True,
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\core\spectrum.py", line 202, in stft
util.valid_audio(y, mono=False)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\utils.py", line 294, in valid_audio
raise ParameterError("Audio buffer is not finite everywhere")
librosa.util.exceptions.ParameterError: Audio buffer is not finite everywhere```
For some reason it adds an extra list into it
(in JS terms)
!e py import math print(type(math.nan))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'float'>
!e
Math::BigInt -e "print Math::BigInt->new('foo')"
@willow light :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | Math::BigInt -e "print Math::BigInt->new('foo')"
003 | ^
004 | SyntaxError: invalid syntax
check values of waveform
maybe clip them
(or set to default like 0)
in what contexts?
(1, 2,)?
Python Enhancement Proposals (PEPs)
these are trailing commas
@ionic lake this is response to trailing comma comment
['a']
('a',)
['a', 'b']
('a', 'b')
[
'a',
'b',
]
This is going to be fun.
just after waveform = ... put a line printing the number of values of waveform that aren't finite
horrifying style
but not strictly incorrect
What would I put?
Sorry, I'm a bit confused
np.sum(np.logical_not(np.isfinite(waveform)))
and also this is almost how VS Code sorts imports by default
So... in the context of the lines, what would it look like?
so, use black and configure "sort imports" to use it as profile
I'm sorry, I still have no idea where to put it. I know after waveform = but like...
waveform = ...(
...
)
print(np.sum(np.logical_not(np.isfinite(waveform))))
How's this?
for idx, wav_file in enumerate(tqdm(wav_files)):
waveform = speaker_encoder_ap.load_wav(
wav_file, sr=speaker_encoder_ap.sample_rate
)
print(np.sum(np.logical_not(np.isfinite(waveform)))) # only this changed
?
yes
Now will my issue be fixed?
not yet
that's only a debug print
to see if there are NaNs
and how many there are
!d telnetlib
Source code: Lib/telnetlib.py
Deprecated since version 3.11, will be removed in version 3.13: The telnetlib module is deprecated (see PEP 594 for details and alternatives).
The telnetlib module provides a Telnet class that implements the Telnet protocol. See RFC 854 for details about the protocol. In addition, it provides symbolic constants for the protocol characters (see below), and for the telnet options. The symbolic names of the telnet options follow the definitions in arpa/telnet.h, with the leading TELOPT_ removed. For symbolic names of options which are traditionally not included in arpa/telnet.h, see the module source itself.
"Deprecated" they say, assuming people don't still use it.
Iโm sure someone is
I have seen code in production that's using it.
Then again, the docker image is using Python 3.4.
Itโs probably buried deep in non open source software.
File "vi_speaker_batch.py", line 80
spec = speaker_encoder_ap.melspectrogram(waveform)
^
SyntaxError: invalid syntax```
Clari, you have anything non code to talk about?
missing one )
Save me
if response and conn:
try:
conn.sendall(response.encode())
conn.close()
except OSError as e:
print("Error sending response: %s" % str(e))
conn.close()
this
or
response = web_page()
conn.send('HTTP/1.1 200 OK\n')
conn.send('Content-Type: text/html\n')
conn.send('Connection: close\n\n')
conn.sendall(response)
conn.close()
you have ")))" but you need "))))"
for (long-term) outgoing connections there's aiohttp
def web_page():
html = """<!DOCTYPE html>
<html>
<head>
<title>ESP8266 Control Panel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>ESP8266 Control Panel</h1>
<form method="get">
<input type="submit" name="forward" value="Forward"><br>
<input type="submit" name="backwards" value="Backwards"><br>
<input type="submit" name="left" value="Left">
<input type="submit" name="right" value="Right"><br>
</form>
</body>
</html>"""
return html
Gunicorn
A:\VI-Speaker-main\utils\audio.py:732: RuntimeWarning: invalid value encountered in true_divide
return x / abs(x).max() * 0.95```
Traceback (most recent call last):
File "vi_speaker_batch.py", line 80, in <module>
spec = speaker_encoder_ap.melspectrogram(waveform)
File "A:\VI-Speaker-main\utils\audio.py", line 564, in melspectrogram
D = self._stft(self.apply_preemphasis(y))
File "A:\VI-Speaker-main\utils\audio.py", line 624, in _stft
center=True,
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\core\spectrum.py", line 202, in stft
util.valid_audio(y, mono=False)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f
return f(*args, **kwargs)
File "C:\Users\phill\miniconda3\envs\lorasvc\lib\site-packages\librosa\util\utils.py", line 294, in valid_audio
raise ParameterError("Audio buffer is not finite everywhere")
librosa.util.exceptions.ParameterError: Audio buffer is not finite everywhere```
import time
import socket
import network
from controls_car import *
def web_page():
html = """<!DOCTYPE html>
<html>
<head>
<title>ESP8266 Control Panel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>ESP8266 Control Panel</h1>
<form method="get">
<input type="submit" name="forward" value="Forward"><br>
<input type="submit" name="backwards" value="Backwards"><br>
<input type="submit" name="left" value="Left">
<input type="submit" name="right" value="Right"><br>
</form>
</body>
</html>"""
return html
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('0.0.0.0', 80))
s.listen(5)
# Continuously serve requests until time limit is reached
start_time = time.ticks_ms()
while time.ticks_ms() - start_time < 300000: # Run for 5 minutes
conn, addr = s.accept()
print('Got a connection from %s' % str(addr))
request = conn.recv(1024)
request = str(request)
button_pressed = False
if 'forward' in request:
car_forward()
button_pressed = True
elif 'backwards' in request:
car_backwards()
button_pressed = True
elif 'right' in request:
car_right()
button_pressed = True
elif 'left' in request:
car_left()
button_pressed = True
else:
motor1.set_speed(0)
motor2.set_speed(0)
if button_pressed:
# Pause briefly to allow the motors to start moving
time.sleep(0.1)
# Stop the motors when the button is released
motor1.set_speed(0)
motor2.set_speed(0)
response = web_page()
if response and conn:
try:
conn.sendall(response.encode())
conn.close()
except OSError as e:
print("Error sending response: %s" % str(e))
conn.close()
there should be a single number
what's in your environment.yaml just out of curiosity?
A:\VI-Speaker-main\utils\audio.py:336: FutureWarning: Pass sr=16000, n_fft=1024 as keyword args. From version 0.10 passing these as positional arguments will result in an error
self.sample_rate, self.fft_size, n_mels=self.num_mels, fmin=self.mel_fmin, fmax=self.mel_fmax
0%| | 0/177 [00:00<?, ?it/s]0
1%|โ | 1/177 [00:00<00:17, 9.90it/s]0
0
0
0
3%|โโโ | 5/177 [00:00<00:07, 23.54it/s]0
0
0
0
5%|โโโโโ | 9/177 [00:00<00:06, 27.32it/s]0
0
0
0
7%|โโโโโโ | 13/177 [00:00<00:05, 30.27it/s]0
0
0
0
10%|โโโโโโโโ | 17/177 [00:00<00:05, 29.67it/s]0
0
0
11%|โโโโโโโโโโ | 20/177 [00:00<00:05, 28.45it/s]0
A:\VI-Speaker-main\utils\audio.py:732: RuntimeWarning: invalid value encountered in true_divide
return x / abs(x).max() * 0.95
28800
12%|โโโโโโโโโโ | 21/177 [00:00<00:05, 27.63it/s]```
28800 is the one I'm asking for
so, one of your files is partially "corrupted"
It is?
Is that in the code or do I have to put that line in myself?
just replace the line that currently contains the print
IT WORKED!
Thank you!
ValueError: num_samples should be a positive integer value, but got num_samples=0```
from time import *
start_time = time.ticks_ms()
while time.ticks_ms() - start_time < 10:
print('f')
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hello guys
what are you guysdoing today?
noice!
do you read diary of a wimpykid?
yeah
i love that series!
here its raining for me!
heavily
hmm well near the equator
now guess it!
i am known for wildlife
no no not equitroal guinea!
morroco
nop:(
yup
somewhere there
east to be precise
no what the hell not egypt!
well i am known for widlife(country)
Kenya
there we go
correct i wasnt born here but i live here for the past 6 yrs
lol
now where do you live ovalmist give hints!
haha
no tigers cant live in africa
that accent got me dying
monty what?
monty python
!
a movie production group
oh
monty python and the holy grail
Ekki-Ekki-Ekki-Ptang Zoom-Boing
?
interesting
i thought that haedphone symbol connect to the headphone
but it doesnot lol
i think its used to be afk
no the one in voicechat
discord
like this what i did now
discord desktop!
settings>voice >outputdevice
how are you guys able to talk while i am suppresed i guess?
thanks
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
this headphone symbol really confused me
thanks man
no problem
@fierce ibex ๐
๐
you are still there

hoho im back
I've already submitted this but is my answer correct?
I was stuck between my answer and the one above it

hello
Hey @ancient lily!
It looks like you tried to attach file type(s) that we do not allow (.avif). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
mb
hey @willow lynx
It seems i need to verify my voice first. ๐ฉ
We are doing great
Folks, is there anyone who has experience of custom made computers. So I would like to know if main processor computing power matters for gaming or is it that GPU takes all the load. Lets say, for example, I have a very old pc dell optiplex 745 with dual core processor and 4gb ram. Will it matter if I put in GTX 1650 ?
(If you think I am going off topic here, then kindly refer me to appropriate server)

hello
finished my info related exam today wish me luck xD
good luck for ur exam
xixixi
i got exam too next week ๐
GOOD LUCK!!
tyty!
@midnight agate Whenever I hear someone say 'full stack', it reminds me of 'full send'.
"empty stack developer"
The champion would be mustafa, probably
shashank is mostly doing Java, so I was restricting myself to C# when we were playing
reverse, all languages?
@midnight agate I forgot filter exists
I also considered doing regex
it might have been faster to write
reduce on groups with operator.mul
oh, it doesn't work
because doesn't convert
I had such an obscure solution
it might work in js
wait
modes?
oh
wtf
buggy interface
I hated the preset name being i so much that I almost went back and renamed it
@ripe lantern there might be tests besides ones given, quite likely
you are given around 5 tests as an example of what the program needs to do
but "submit" might include more tests
idk if it does
my solution has sub optimal time asymptotic
it's O(NlogN) worst case instead of O(N)
filter on streamed object?
!d filter
filter(function, iterable)```
Construct an iterator from those elements of *iterable* for which *function* is true. *iterable* may be either a sequence, a container which supports iteration, or an iterator. If *function* is `None`, the identity function is assumed, that is, all elements of *iterable* that are false are removed.
Note that `filter(function, iterable)` is equivalent to the generator expression `(item for item in iterable if function(item))` if function is not `None` and `(item for item in iterable if item)` if function is `None`.
See [`itertools.filterfalse()`](https://docs.python.org/3/library/itertools.html#itertools.filterfalse "itertools.filterfalse") for the complementary function that returns elements of *iterable* for which *function* is false.
this
ah sorry not that big of a python person
man clashofcode sucks
it shows me a white screen with the menus and stuff loaded
it's shorter than comprehension
(x for x in it if f(x))
filter(f,it)
and faster on long sequences a little bit sometimes
because you're not iterating in python
never played clashofcode reverse....
(it shows all modes)
what browser?
the page itself opens for me in firefox
(didn't test actually joining)
idk what could cause the issue
brb
be back in 4~7 minutes
ahhhh
it doesn't work
I'm exhausted now
tk.geometry("640x320")
^^^^^^^^^^^
AttributeError: module 'tkinter' has no attribute 'geometry'```
wtf
who here takes ap computer science
https://medium.com/@martin-thissen/llama-alpaca-chatgpt-on-your-local-computer-tutorial-17adda704c23
@thorn thicket ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@lavish rover did you sleep in the end
Hey
(\x.x x) (\x.x x)
claude monet?
Prolog?
Brian Kernighan seems like a really nice man tbh
thats why he is lawful good
who's lawful evil?
That was frederiks choice, he has something to do with making JavaScript
but who
JS is evil
k
Brendan Eich (; born July 4, 1961) is an American computer programmer and technology executive. He created the JavaScript programming language and co-founded the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation. He served as the Mozilla Corporation's chief technical officer before he was appointed chief executive officer, but...
yeah but JS is just out to get you
!e
print(round(0.5))
print(round(1.5))
@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 2
if a float ends in .5, it will round to the nearest even number
!e
print(round(2.5))
print(round(3.5))
@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 2
002 | 4
it's cursed
but python is no better in that respect
it's much better
JS has a lot more of this
hmmm
just look at JS fuck
You'd get far more information from a 2 minute conversation with the person.
And that yeah; it's self-fulfilling.
@terse needle you might be interested in https://github.com/satwikkansal/wtfpython
I don't think there ever really was anything concrete
It was pretty much just hearsay
there was some stuff that come out that made stallman leave the fsf
Eventually
Compiling rattlescript v0.1.0 (G:\Projects\Rust\rattlescript)
Finished dev [unoptimized + debuginfo] target(s) in 0.51s
Running `target\debug\rattlescript.exe .\examples\rps.rat`
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ .\examples\rps.rat:5:131: Error: Invalid Binary numerical literal '12'
โโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1 โ
โ 2 โ print("Welcome to Rock, Paper, Scissors!"); print("Type 'rock', 'paper' ...
โ 3 โ
โ 4 โ ... ', 'paper', or 'scissors' to play."); print("Type 'quit' to quit."0b12)
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฒ Invalid Binary numerical literal '12'
โ 5 โ
โ 6 โ
โฐโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Error: Lexer(Location { line: 5, column: 131, filename: ".\\examples\\rps.rat" }, "Invalid Binary numerical literal '12'")
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ .\examples\rps.rat:5:131: Error: Invalid Binary numerical literal '12'
โโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1 โ
โ 2 โ print("Welcome to Rock, Paper, Scissors!"); print("Type 'rock', 'paper' ...
โ 3 โ
โ 4 โ ... ', 'paper', or 'scissors' to play."); print("Type 'quit' to quit."0b12)
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฒ
| | Invalid Binary numerical literal '12'
โ 5 โ
โ 6 โ
โฐโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
anyone interested in doing some clash of code @verbal zenith ; monks ; @whole bear
nah i can barely code at all
@verbal zenith are you interested
how do i join
here
@verbal zenith which language do you use the most
@winter plover is @verbal zenith speaking something because i can't hear him
no
can you see it
@vocal basin create
new code
but only reverse
and all angugae
@vocal basin the code of @winter plover is like
hell short
!d str.swapcase
str.swapcase()```
Return a copy of the string with uppercase characters converted to lowercase and vice versa. Note that it is not necessarily true that `s.swapcase().swapcase() == s`.
that was a ting
if it was the fasterst
like you know the lat one
anyways crate a new
(KOI-8 moment)
damn @vocal basin that typing was hell fast
most of the time I was reading and not really understanding what's happening task-wise
(I didn't understand what mode it was)
first input line is kind of useless for most languages
like in java
but they put it there because splitting it in C is pain
!e
```py
print("this?")
```
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
only works with python
!e
int i =2;
System.out.println(2**2);
@warped raft :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | int i =2;
003 | ^
004 | SyntaxError: invalid syntax
there are C# scripts
maybe Java too
I don't have IQ because I didn't take any IQ tests
fun fact:
IQ distribution depends only on the amount of people taking the test
@vocal basin you must have done this type of stuff
because i had studied this last year in my school from integer to binary
but it took time to understand
i need to learn about that
@verbal zenith i made it
also, quite often looking at binary/hex values needing to figure out what they mean
yup
bin(something)[2:]
@winter plover .strip treats its argument like a set
Rabbit was sending some bug related to it earlier
!d str.removeprefix
str.removeprefix(prefix, /)```
If the string starts with the *prefix* string, return `string[len(prefix):]`. Otherwise, return a copy of the original string:
```py
>>> 'TestHook'.removeprefix('Test')
'Hook'
>>> 'BaseTestCase'.removeprefix('Test')
'BaseTestCase'
``` New in version 3.9.
this is the function to do the thing
but
the site might be running the older versions of python
i messed up again
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
(I should have noticed that without the image)
what ever you had to do do it in the for loop @verbal zenith
something isnt computing
from random import choice
_ = input("Rock, Paper, or Scissors: ")
print(choice(["Win", "Loss", "Draw"]))
should i post my code here
@vocal basin
ima do it anyway
import random
opt = ['rock', 'paper', 'scissors']
userScore = 0
pcScore = 0
for i in range(3):
userDec = input('Rock, Paper, or Scissors: ').lower()
pcDec = random.choice(opt)
if userDec == pcDec:
print('Draw')
elif userDec == 'rock':
if pcDec == 'paper':
pcScore + 1
print('Loss')
else:
userScore + 1
print('Win')
elif userDec == 'paper':
if pcDec == 'scissors':
pcScore + 1
print('Loss')
else:
userScore + 1
print('Win')
elif userDec == 'scissors':
if pcDec == 'rock':
pcScore + 1
print('Loss')
else:
userScore + 1
print('Win')
if userScore == pcScore:
print('The game was a tie.')
elif userScore < pcScore:
print('You have lost.')
else:
print('You have won!')
input('Press ENTER to quit')
quit```
list comprehension "wastes" memory
use generator comprehension instead
(x for x in something)
Can you guys hear me on chat
!e
example = "a b c"
print(sum(c.isalpha() for c in example))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
what did i do wrong tho
it's easy to solve using modulus but it's not the only way
if not i % 5:
if i % 5 == 0:
+= not +
response1 = requests.get(api_url1)
response1
if response1.ok:
data1 = response1.json()
result = data1.get('Key Skills')
print(result)
`
oh ok
you have:
pcScore + 1
you need:
pcScore += 1
in every place where you increment
what is requests?
print(requests)
you might be shadowing it
with something
The error is list has no .get attribute
example of what you might be doing wrong:
import requests
requests = [] # wrong
I don't get you
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.
for some reason the variable requests is a list
that shouldn't happen
you need to find the line where you make requests a list
and remove it
or rename the variable
use this to share code
are you using something like jupyter/ipython?
import pandas as pd
import json
import requests
you have requests defined as a variable in some previous cells
to avoid confusion, refrain from naming variables the same as libraries
5 % 5 = 0
(just add import requests)
you need to do it in that same cell
Yes
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
for i in range(n):
if i == 0:
pass
elif i % 5 == 0:
print("Foo")
elif i % 7 == 0 :
print("Bar")
elif i % 7 and i % 5 == 0:
print("FooBar")
else:
print(i)
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
for i in range(1, n + 1):
s = ''
if not i % 5:
s += 'Foo'
if not i % 7:
s += 'Bar'
if not s:
s = str(i)
print(s)
data1 is actually a list
you can only access "Key Skills" on an element of it
[
{
"Key Skills": ...
},
...
]
so, it's
data1[job_index]["Key Skills"]
or
for job in data1:
print(job["Key Skills"])
the fact that I know this paper shows that I have some experience seeing different FizzBuzz solutions
Let me try
I don't have any job yet
why whole income until now is roughly $6
C# has the same way to solve
String.Join("", s.Filter(...))
or something similar
.Where not Filter
the second is the preferred way, I'd assume
if you don't know the index
s = input()
result = ''
for char in s:
if char.isalpha() and char.isupper():
result += char
print(result)
Inserting the index '3' gave me the 4th element in the list, and the value associated with "key skills"
What if I want to know the entire dataset not just the 4th element
String.Join("", s.Where(char.IsUpper))
bye
use the thing with for
or
use pandas to properly collect the data
you'll have to eventually do this
but for now, if you just need to see what the data is, for+print is fine
dedicated channel for it would be #data-science-and-ml
Python -- since September 2017
C# -- since August 2017