#voice-chat-text-0

1 messages ยท Page 104 of 1

somber heath
#

Are we talking terminal or gui framework or something else?

#

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.

vocal basin
#

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...

obsidian dragon
#

still printing from yesterday

somber heath
#

Oh, there's fonts in ANSI. I hadn't noticed.

vocal basin
#

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

frosty star
#

The moon where I am is so pretty โ€ฆ venus right on the outline.

vocal basin
#

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

somber heath
#

@empty lantern๐Ÿ‘‹

vocal basin
#

what do you mean by "stenography"?

somber heath
#

@spiral shell๐Ÿ‘‹

spiral shell
#

sorry i still reading the term hehe

ancient lily
#

hello

somber heath
#

tkinter

ancient lily
#

is pyqt better than tkinter ?

vocal basin
ancient lily
#

has anyone used fpdf ?

vocal basin
#

I was taught PySide2 at school

#

high school, grade 11

vocal basin
vocal basin
#

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)

somber heath
#

@whole bear Say again? Your audio was inconsistent.

#

Aha.

#

๐Ÿฆ˜

spiral shell
#

hello

#

can i ask question?

#

@somber heath

#

did there is any library to make gui in python exept tkinter?

vocal basin
spiral shell
#

thank you

somber heath
spiral shell
#

thank you for the information

vocal basin
somber heath
#

@shy wind๐Ÿ‘‹

spiral shell
#

for first try it work properly, but when i try in other server it doesn't work

vocal basin
#

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.")
vocal basin
spiral shell
#

just ping and join leave vocie channel

vocal basin
spiral shell
#

ok, thanks for the help

#

btw, what u guys in to?

#

machine learning?, data science?

vocal basin
#

last thing I spent a lot of time on was related to category theory

spiral shell
#

ohh u work with algorithm right?

vocal basin
#

eta and mu

spiral shell
#

๐Ÿ˜ญ

#

@vocal basin did the permission in voice channel affect the bot?

vocal basin
#

shouldn't

#

for leaving, at least

#

@mortal burrow yes

#

not algebra, category theory

#

yeah, because C.T. unifies all those things

vocal basin
slow venture
#

Hi guys!

somber heath
#

If you cross social studies with category theory do you get clique hypothesis?

spiral shell
vocal basin
#

@mortal burrow
yes, C.T. is a very recent generalisation that brought similar things together

slow venture
#

Opal and Yu always in call

slow venture
vocal basin
# vocal basin mostly staring at these two diagrams

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

somber heath
#

@whole bear ๐Ÿ‘‹

vocal basin
#

linear maps are morphisms in the category of linear spaces

somber heath
whole bear
#

hi

vocal basin
slow venture
spiral shell
vocal basin
#

@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

slow venture
vocal basin
#

ohno, my face just got published on a channel with 250K subs
doxxing moment

spiral shell
#

guy i wanna ask something, what is best IDE for python?

slow venture
spiral shell
#

i often use vscode, but i dont think its the best

spiral shell
slow venture
#

I'm still on IDLE

spiral shell
#

๐Ÿ˜€

vocal basin
# vocal basin depends

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

slow venture
#

do you recommend me use vscode instead of IDLE?

vocal basin
#

IDLE is lightweight

slow venture
#

so its more beginner friendly?

vocal basin
#

not necessarily

slow venture
#

also i got the dragon to work yay c:

compact adder
#

Hello (:

vocal basin
#

I'd say the most beginner-oriented, of ones I'm aware of, is Wing 101

twilit reef
#

๐Ÿ‘‹

spiral shell
slow venture
slow venture
vocal basin
#

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)

spiral shell
#

i use google collab for learning tho xixixi๐Ÿคฃ

vocal basin
#

colab/jupyter is fine for studying/demonstration, yes

#

but knowing how to work without it is quite important

slow venture
#

guess i'll stick to IDLE for now and then check out vscode

mortal burrow
#

@vocal basin What are you doing now?

vocal basin
vocal basin
spiral shell
slow venture
#

is that something you can add to the vscode background?

spiral shell
vocal basin
vocal basin
#

neither

slow venture
slow venture
#

only IDLE lacking ๐Ÿ˜ฆ

vocal basin
#

most of what I know is from writing programs myself, watching a lot of talks and reading docs

slow venture
#

Yu hella smart

#

helped me out with my dragon drawing in turtle

vocal basin
rugged root
#

Plus my curiosity in general. "Huh, never heard of this issue... well now I'm curious."

spiral shell
#

book or article doen't help me that much ๐Ÿ˜ญ , i often learn from youtube tutorial

slow venture
#

I'm with Xceess

#

I'm not a big reader

spiral shell
#

i wanna learn it from my collage, but my curriculum is kinda broken

#

so it's like i dont really learn something

rugged root
#

Broken how?

vocal basin
amber plank
#

Exzyy

rugged root
vocal basin
amber plank
slow venture
#

Do you guys have any recommendations on how to improve and get better at coding like a boot camp etc for beginners?

rugged root
#

Easy?

#

I'm too old it seems

amber plank
#

Yuh

rugged root
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

spiral shell
#

they learn something that is not implemented into the python

#

so i need to learn it my self form tutorial

slow venture
#

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

vocal basin
vocal basin
#

not exactly for beginners

spiral shell
#

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

slow venture
spiral shell
#

xixixi

slow venture
#

I'm doing a computer science degree rn and just first year

warped raft
#

hey @vocal basin down for some clash or code or still busy

vocal basin
#

on recursion being scary
(me, June 2020)
and I have no idea what happens here

slow venture
#

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

#

CE_confused confusion

#

just first year

#

oooooo

#

errrr

#

learning about the Rmap and stuff like that

#

conceptual schema

#

should be the type of mapping

vocal basin
#

"I'm not intelligent enough to use anything more complex than a key-value store" -- @vocal basin

warped raft
#

the thing was the second line of printing was showing an error in the java @vocal basin

slow venture
#

Yu very smart

#

HAHAHA you too hemlock

#

python

#

IDLE

spiral shell
#

only python

slow venture
#

SQL will be later

mortal burrow
#

Have you learned about entity relationship diagrams?

slow venture
#

well learning it

#

we learning the relational mapping

#

I think its more general rn

spiral shell
#

i learn about rdbms

slow venture
#

they gave us a glossary of the concepts and terms

twilit reef
spiral shell
#

no, i learn data science

#

but i use database too

slow venture
#

@vocal basin proud moment for me

somber heath
#

Mr Hemlock's jokes are rock solid. Join me later for more exciting facts on coprolites.

slow venture
vocal basin
somber heath
vocal basin
#

this one is reverse mode

slow venture
#

ohhhh

vocal basin
#

fastest to complete given only tests

slow venture
#

I also had this site that seemed pretty cool

vocal basin
#

@warped raft new link

warped raft
#

later

vocal basin
#

ok

spiral shell
#

did one of u guy into making an AI in python?

slow venture
#

I'm gonna head to bed guys!

#

gngn!

spiral shell
#

okay, gud night

vocal basin
#

I once experimented with doing ML using only numpy

spiral shell
vocal basin
#

it worked better than I expected

vocal basin
rugged root
#

How old are you again?

vocal basin
#

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

rugged root
#

Far smarter than me than I was at that age, got it

vocal basin
#

"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

spiral shell
#

guys i need to go, thanks for the knowlege and for helping me

#

tysm

vocal basin
#

three rpis? I doubt that
four? sounds more realistic

rugged root
#

See you around

vocal basin
#

iirc, the best brain modelling is currently (or a couple of years ago) of a worm brain

somber heath
#

Old Ron. New Ron.

rugged root
warped raft
#

@vocal basin

#

free now

#

not knowing how to do it XD

vocal basin
#

seems to be just string substitution

warped raft
#

that the only sector where i loose my mind the string things

vocal basin
#

this one should take <20s in python

sour willow
#

wassup hem, af , steve, opal , steve

#

and shashank

warped raft
#

i don't know why this is showing error

vocal basin
#

syntax, compilation or runtime?

warped raft
#

exception

vocal basin
#

seems like off-by-one

#

(||in the i initialisation||)

vocal basin
vocal basin
# warped raft

I think this will also fail tests because you're writing words on separate lines

warped raft
#

nope now it is working but now space is creating an issue

warped raft
#

how to add the space here

#

fast

#

only 54 sec

vocal basin
#

maybe print(" ") after each word if (i != 0)?

somber heath
#

@muted widget๐Ÿ‘‹

warped raft
#

we see you later @vocal basin

muted widget
#

how to use wordpress

vocal basin
muted widget
#

e

somber heath
#

Other people may have greater insight.

muted widget
#

i want to set up a website use python

vocal basin
#

wordpress is closer to php than to python

muted widget
lucid blade
#

logic if uv never used wp .... it's time.

vocal basin
muted widget
#

oh so i must learn some php

lucid blade
#

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

vocal basin
#

... that's tiny

#

(WP)

lucid blade
#

i remember when wp was <10mb lol

#

infact i think wp at one point was a 3mb download

vocal basin
muted widget
#

No one in our class learned Python, just me

lucid blade
#

its a good language

muted widget
lucid blade
#

but you'll need to learn a few others too

#

and once u know one well the rest are very similar

vocal basin
lucid blade
#

yeah

#

no one optimises these days

#

would save 1000000's mb in bandwidth

muted widget
lucid blade
#

its the same really

#

the way it teaches you is easier

vocal basin
lucid blade
#

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

muted widget
lucid blade
#

lmfao

muted widget
#
import antigravity
#
import this
vocal basin
#

wolframscript

#

wolfram alpha answers questions

#

.wa

viscid lagoonBOT
#
That was a mistake.

Your input was invalid: query is a required argument that is missing.

Usage:```
.wolfram <query>

muted widget
lucid blade
#

were talking about it in voice

#

its another language

#

based on mathematics

vocal basin
#

I have <<JavaGraphics` pinned in one of the servers I have because this is such a hard thing to remember

lucid blade
#

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]

vocal basin
#

.wa Plot[x^2,{x,-5,5}]

viscid lagoonBOT
vocal basin
#

first time I used wolfram (not alpha) was in 2013

muted widget
#

ohhh,ic

lucid blade
#

@muted widget check that ^

muted widget
#

i googled it

vocal basin
#

college with greatest student count

vocal basin
#

but that still responds with interesting results

lucid blade
muted widget
#

11 o'clock i must to sleep,sorry

rugged root
#

!stream 322504171636916226

wise cargoBOT
#

โœ… @lucid blade can now stream until <t:1679670662:f>.

sour willow
# lucid blade

imagine how thicc theirr mama is if you didnt like the joke i will delete....

lucid blade
#

@sour willow LOL

#

๐Ÿ˜„

vocal basin
sour willow
#

8080 man i saw your yt btw its actually one of the best video editing especially for 11 years ago brilliant work

lucid blade
#

lols my vids are terrible lol ๐Ÿ˜„

#

thanks though hehe ๐Ÿ™‚

vocal basin
#

wasn't it quite a long time ago? (sms story)

#

now you can pay for a weaker 2FA

lucid blade
#

want to see the terrible vids @vocal basin

sour willow
#

their actually very nice especially the transitions

lucid blade
#

ive been meaning to do some more

#

but its a lot of effort and my shop is so small atm

sour willow
#

i recall seeing thr wireshark vid and noticed u used to use php

#

php ftw

lucid blade
#

๐Ÿ˜„ i started with perl / php / html

#

1st few forums i set up in the 90s were perl scripts in the cgi-bin ๐Ÿ˜

#

rip flash ๐Ÿ˜ฆ

sour willow
lucid blade
#

good times ๐Ÿ™‚

vocal basin
#

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."

lavish rover
vocal basin
#

python has to do extra work for closures because of how it handles scopes

lucid blade
vocal basin
#

our software works in a (shipping) container

#

retry, ignore, or fail?
retry, retry, and retry

lucid blade
somber heath
lucid blade
#

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...

โ–ถ Play video
hoary plaza
#
headers = { 'Accept' : '*/*' }
#

SyntaxError: invalid syntax

vocal basin
lucid blade
#

headers={"Content-Type":"text"}

vocal basin
#

if it's inside the call

lucid blade
rugged root
#

@mossy cedar How've you been?

lucid blade
#

`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)`

vocal basin
#

where the fuck do I buy this
I forgot the motherboard doesn't have normal power connectors, so it needs cables with smaller ones

lucid blade
mossy cedar
lucid blade
rugged root
mossy cedar
rugged root
#

What's going on that's been so rough

mossy cedar
lucid blade
pallid hazel
#

@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...

mossy cedar
#

linus sux now

lucid blade
rugged root
#

@ivory flower Yo

mossy cedar
#

working on something in visual studio code. wtf is " <a certain library/function> is not accessed by pylance "

ivory flower
pallid hazel
#

show actual traceback

ivory flower
#

podcast episode lol

hoary plaza
#

!verify

ivory flower
#

yes msg cnt

somber heath
mossy cedar
#

sam 1 halp this child

#

(me)

vocal basin
#

ctrl+shift+p
select interpreter

#

may help

mossy cedar
#

<lol i made the nic name hemlock guy a long time ago as a joke> nvm this

vocal basin
mossy cedar
vocal basin
#

netowrk

mossy cedar
#

anyways thanks

#

โค๏ธ

vocal basin
#

otherwise there might be a need to somehow smuggle it into the country buy it

mossy cedar
#

my box of stuff

vocal basin
mossy cedar
vocal basin
#

(power cable is the "difficult part")

#

because of this

#

I don't even know how to search for it

mossy cedar
#

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

vocal basin
#

and not the 2x2 square type mini

mossy cedar
#

chop/melt the heads a bit still the same stuff

vocal basin
#

connecting 2.5'' SSD to a single-board computer

vocal basin
mossy cedar
vocal basin
#

there is no separate power supply

rugged root
vocal basin
#

it's single board

mossy cedar
vocal basin
#

Odroid H2

mossy cedar
#

the sata power supply part

vocal basin
mossy cedar
vocal basin
#

ali is an option
pretty much anything else isn't

mossy cedar
#

i have a orange pi lts 2 as my smart tv lmfao

mossy cedar
ionic lake
#
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```
vocal basin
#

did you define mel?

#

what is mel?

ionic lake
#
 # 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)```
vocal basin
ionic lake
vocal basin
#

might be library version issue

wise cargoBOT
#

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
)```
trim night
#

@lucid blade can you add me as a friend please?

vocal basin
#

didn't find the cable yet but found these

mossy cedar
#

fancy

vocal basin
#

I wonder how many still boot

mossy cedar
#

all of them they are immune

#

trus me bro

mortal burrow
#

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' )```
rugged root
#

Sorry phone call

vocal basin
rugged root
#

I misread that

#

@somber heath Your sighing is coming through for some reason

vocal basin
ivory schooner
#

In JavaScript is it standard convention to use the dot notation or brackets to access JSON data?

rugged root
#

Good question.

#

Taking a look

ivory schooner
#

thx

rugged root
#

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

ivory schooner
#

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.

somber heath
#

Ffs, I was on standard, not Krisp. I don't think I turned off Krisp.

ionic lake
#
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```
rugged root
amber raptor
#

?voteban mustafa

inland gorge
#

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

rugged root
winter plover
#

!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)
wise cargoBOT
#

@winter plover :warning: Your 3.11 eval job has completed with return code 0.

[No output]
winter plover
#

Wtf

vocal basin
#

didn't call it

winter plover
#

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]]

ionic lake
#
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```
winter plover
#

For some reason it adds an extra list into it

ionic lake
vocal basin
#

(in JS terms)

somber heath
#

!e py import math print(type(math.nan))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'float'>
willow light
#

!e

Math::BigInt -e "print Math::BigInt->new('foo')"
wise cargoBOT
#

@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
willow light
#

oh right python not perl

#

In excel NaN can be 1.#SNAN, 1.#QNAN, or -1.#IND

vocal basin
#

maybe clip them

#

(or set to default like 0)

#

in what contexts?

#

(1, 2,)?

#

these are trailing commas

vocal basin
#
['a']
('a',)
['a', 'b']
('a', 'b')
[
  'a',
  'b',
]
willow light
#

This is going to be fun.

vocal basin
#

horrifying style

#

but not strictly incorrect

ionic lake
#

Sorry, I'm a bit confused

vocal basin
#

np.sum(np.logical_not(np.isfinite(waveform)))

vocal basin
ionic lake
vocal basin
ionic lake
#

I'm sorry, I still have no idea where to put it. I know after waveform = but like...

vocal basin
#
waveform = ...(
    ...
)
print(np.sum(np.logical_not(np.isfinite(waveform))))
vocal basin
#

indent correctly

#

also, you need to paste exactly one line

ionic lake
#

?

vocal basin
#
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
vocal basin
#

one space less before print

#

to match indentation

vocal basin
#

yes

ionic lake
#

Now will my issue be fixed?

vocal basin
#

not yet

#

that's only a debug print

#

to see if there are NaNs

#

and how many there are

willow light
#

!d telnetlib

wise cargoBOT
#

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.

willow light
#

"Deprecated" they say, assuming people don't still use it.

amber raptor
#

Iโ€™m sure someone is

willow light
#

I have seen code in production that's using it.

#

Then again, the docker image is using Python 3.4.

amber raptor
#

Itโ€™s probably buried deep in non open source software.

ionic lake
amber raptor
#

Clari, you have anything non code to talk about?

vocal basin
amber raptor
#

Save me

mossy cedar
#
    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()
vocal basin
vocal basin
mossy cedar
#
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
amber raptor
#

Gunicorn

ionic lake
#
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```
vocal basin
#

what did print give?

#

not the traceback

mossy cedar
#
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()
vocal basin
willow light
#

what's in your environment.yaml just out of curiosity?

ionic lake
# vocal basin there should be a single number
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]```
vocal basin
vocal basin
#
waveform[np.logical_not(np.isfinite(waveform))] = 0
#

to set NaNs to 0

ionic lake
vocal basin
#

just replace the line that currently contains the print

ionic lake
#

Thank you!

#
ValueError: num_samples should be a positive integer value, but got num_samples=0```
mossy cedar
#
from time import *
start_time = time.ticks_ms()
while time.ticks_ms() - start_time < 10:
  print('f')
hoary plaza
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

errant bolt
#

um

#

hi

#

can someone teach me how to code in python?

ancient lily
#

oh mb had my volume turned down

#

hello

whole bear
#

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!

ancient lily
#

morroco

whole bear
#

yup

#

somewhere there

#

east to be precise

#

no what the hell not egypt!

#

well i am known for widlife(country)

ancient lily
#

Kenya

whole bear
#

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!

ancient lily
#

haha

whole bear
#

no tigers cant live in africa

ancient lily
#

that accent got me dying

whole bear
#

monty what?

winter plover
#

monty python

whole bear
winter plover
#

a movie production group

whole bear
#

oh

winter plover
#

monty python and the holy grail

whole bear
#

comedy grp hmm i only know two of them steven he

#

and charles the french

winter plover
#

Ekki-Ekki-Ekki-Ptang Zoom-Boing

whole bear
ancient lily
#

interesting

whole bear
#

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

winter plover
#

are you on a phone

#

or computer

whole bear
#

discord desktop!

ancient lily
#

settings>voice >outputdevice

whole bear
#

how are you guys able to talk while i am suppresed i guess?

whole bear
ancient lily
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

whole bear
#

this headphone symbol really confused me

whole bear
ancient lily
#

no problem

whole bear
#

@winter plover @somber heath thats my discord servers

#

lol

somber heath
#

@fierce ibex ๐Ÿ‘‹

fierce ibex
#

๐Ÿ‘‹

whole bear
spark prairie
muted widget
#

hoho im back

slow venture
#

I've already submitted this but is my answer correct?

#

I was stuck between my answer and the one above it

ancient lily
#

hello

wise cargoBOT
#

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.

ancient lily
#

mb

sharp urchin
#

hey @willow lynx

whole bear
#

It seems i need to verify my voice first. ๐Ÿ˜ฉ

spiral shell
#

hello guys

#

how r u today

#

xixixi

whole bear
#

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)

slow venture
spiral shell
slow venture
spiral shell
#

xixixi

#

i got exam too next week ๐Ÿ˜€

slow venture
#

GOOD LUCK!!

slow venture
somber heath
vocal basin
#

@somber heath sound cut out

#

can hear now

knotty nacelle
somber heath
#

@midnight agate Whenever I hear someone say 'full stack', it reminds me of 'full send'.

vocal basin
#

"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?

vocal basin
#

@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

hollow vigil
vocal basin
#

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)

sour willow
vocal basin
#

!d filter

wise cargoBOT
#

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.
vocal basin
#

this

sour willow
#

ah sorry not that big of a python person

#

man clashofcode sucks

#

it shows me a white screen with the menus and stuff loaded

vocal basin
# wise cargo

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

hollow vigil
sour willow
#

never played clashofcode reverse....

sour willow
#

still doesnt load....

#

man their website sucks

vocal basin
#

what browser?

sour willow
#

firefox

#

well forget it....

vocal basin
#

the page itself opens for me in firefox

#

(didn't test actually joining)

#

idk what could cause the issue

#

brb

hollow vigil
vocal basin
thin nest
#

ahhhh

#

it doesn't work

#

I'm exhausted now

#
    tk.geometry("640x320")
    ^^^^^^^^^^^
AttributeError: module 'tkinter' has no attribute 'geometry'```
#

wtf

cobalt hawk
#

who here takes ap computer science

sleek tiger
hollow vigil
somber heath
#

@thorn thicket ๐Ÿ‘‹

thorn thicket
#

HI

#

i can't talk kk

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

thorn thicket
#

I need write more 50

#

this is Rust?

somber heath
#

@frank oar ๐Ÿ‘‹

#

@quaint basalt ๐Ÿ‘‹

terse needle
#

@lavish rover did you sleep in the end

hollow vigil
hollow vigil
stuck furnace
#

Hey

terse needle
#

(\x.x x) (\x.x x)

pallid hazel
#

claude monet?

stuck furnace
#

Prolog?

stuck furnace
#

Brian Kernighan seems like a really nice man tbh

terse needle
gentle flint
#

who's lawful evil?

terse needle
gentle flint
#

but who

terse needle
#

JS is evil

gentle flint
#

k

stuck furnace
# gentle flint but who

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...

gentle flint
#

so is python in some ways though @terse needle

#

such as the round function

terse needle
#

yeah but JS is just out to get you

gentle flint
#

!e

print(round(0.5))
print(round(1.5))
wise cargoBOT
#

@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | 2
gentle flint
#

if a float ends in .5, it will round to the nearest even number

#

!e

print(round(2.5))
print(round(3.5))
wise cargoBOT
#

@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2
002 | 4
gentle flint
#

it's cursed

terse needle
#

that is cursed

#

and this is also what makes JS cursed

#

it's implicit behaviour

gentle flint
#

but python is no better in that respect

terse needle
#

it's much better

gentle flint
#

it's not

#

see above

terse needle
#

JS has a lot more of this

gentle flint
#

hmmm

terse needle
#

just look at JS fuck

stuck furnace
#

You'd get far more information from a 2 minute conversation with the person.

#

And that yeah; it's self-fulfilling.

gentle flint
stuck furnace
#

I don't think there ever really was anything concrete

#

It was pretty much just hearsay

terse needle
#

there was some stuff that come out that made stallman leave the fsf

lavish rover
#

Eventually

warped raft
#

hello @verbal zenith

#

how are you doing

verbal zenith
#
   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 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
warped raft
#

anyone interested in doing some clash of code @verbal zenith ; monks ; @whole bear

warped raft
#

@verbal zenith are you interested

winter plover
#

how do i join

warped raft
#

here

#

@verbal zenith which language do you use the most

#

@winter plover is @verbal zenith speaking something because i can't hear him

winter plover
#

no

warped raft
#

ok

#

@winter plover want to try again

winter plover
#

there

warped raft
#

@winter plover share your code

#

i can't you have to press

#

her we go

winter plover
#

can you see it

warped raft
#

@vocal basin create

#

new code

#

but only reverse

#

and all angugae

#

@vocal basin the code of @winter plover is like

#

hell short

vocal basin
#

!d str.swapcase

wise cargoBOT
#

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`.
vocal basin
#

I though it could exist

#

but looking it up would take time

warped raft
#

that was a ting

#

if it was the fasterst

#

like you know the lat one

#

anyways crate a new

vocal basin
winter plover
warped raft
#

damn @vocal basin that typing was hell fast

vocal basin
#

most of the time I was reading and not really understanding what's happening task-wise

#

(I didn't understand what mode it was)

warped raft
#

nope

#

just do the reverse

vocal basin
#

first input line is kind of useless for most languages

warped raft
#

like in java

vocal basin
#

but they put it there because splitting it in C is pain

warped raft
#

it is the java

#

@vocal basin how to run the code in this server

vocal basin
#

!e
```py
print("this?")
```

warped raft
#
int i =2;
System.out.println(2**2);
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!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!

vocal basin
winter plover
warped raft
#

!e

int i =2;
System.out.println(2**2);
wise cargoBOT
#

@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
warped raft
#

that what i wanted to test

vocal basin
#

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

warped raft
#

@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

vocal basin
#

I use f-string formatting in my programs quite often

#

@winter plover just remove it

warped raft
whole bear
#

@verbal zenith i made it

vocal basin
warped raft
#

yup

vocal basin
#

@winter plover .strip treats its argument like a set

#

Rabbit was sending some bug related to it earlier

#

!d str.removeprefix

wise cargoBOT
#

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.
vocal basin
#

but

#

the site might be running the older versions of python

verbal zenith
whole bear
#

i messed up again

vocal basin
#

wrong i

#

you're doing in range

#

these are 0,1,2,3,4,5

whole bear
wise cargoBOT
vocal basin
warped raft
#

what ever you had to do do it in the for loop @verbal zenith

whole bear
winter plover
vocal basin
# whole bear
from random import choice
_ = input("Rock, Paper, or Scissors: ")
print(choice(["Win", "Loss", "Draw"]))
whole bear
#

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```
vocal basin
#

list comprehension "wastes" memory

#

use generator comprehension instead

#
(x for x in something)
open lily
#

Can you guys hear me on chat

warped raft
#

@verbal zenith same here

#

i just quit

vocal basin
#

!e

example = "a b c"
print(sum(c.isalpha() for c in example))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

3
vocal basin
#

"I'm so sorry that I didn't solve FizzBuzz using the correct way"

#

the correct way:

vocal basin
#

it's easy to solve using modulus but it's not the only way

#

if not i % 5:
if i % 5 == 0:

open lily
whole bear
vocal basin
#

in every place where you increment

whole bear
#

ty

#

works now

vocal basin
#

print(requests)

#

you might be shadowing it

#

with something

open lily
#

The error is list has no .get attribute

vocal basin
#

example of what you might be doing wrong:

import requests

requests = []  # wrong
open lily
#

I don't get you

vocal basin
#

can you send the full code?

#

!paste

wise cargoBOT
#
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.

vocal basin
#

that shouldn't happen

#

you need to find the line where you make requests a list

#

and remove it

#

or rename the variable

open lily
#

How do I share you the code?

#

OH wait

vocal basin
open lily
vocal basin
open lily
#

Yes

#

That's my homework lab

#

I'm still learning

vocal basin
#
import pandas as pd
import json
import requests
vocal basin
# open lily Yes

you have requests defined as a variable in some previous cells
to avoid confusion, refrain from naming variables the same as libraries

winter plover
#

5 % 5 = 0

vocal basin
open lily
#

Ya I imported request

#

Ran the code above again, same error

vocal basin
open lily
#

Same cell yes

vocal basin
open lily
#

Yes

vocal basin
#

oh

#

you're getting the error on data1

winter plover
#
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)
vocal basin
# open lily

data1 is actually a list
you can only access "Key Skills" on an element of it

#
[
  {
    "Key Skills": ...
  },
  ...
]
open lily
#

Correct I realised that the dictionary is nested in a list

#

How do I overcome this?

winter plover
vocal basin
#

so, it's

data1[job_index]["Key Skills"]

or

for job in data1:
    print(job["Key Skills"])
vocal basin
open lily
#

Let me try

vocal basin
#

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

vocal basin
#

if you don't know the index

winter plover
#
s = input()

result = ''
for char in s:
    if char.isalpha() and char.isupper():
        result += char

print(result)
open lily
#

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

vocal basin
#
String.Join("", s.Where(char.IsUpper))
warped raft
#

i 'll see you all later

#

bye

whole bear
#

bye

vocal basin
#

or

#

use pandas to properly collect the data

open lily
#

Oh use loop...

#

I'll try loops

vocal basin
#

but for now, if you just need to see what the data is, for+print is fine

whole bear
#

yu

#

how long have you been coding

vocal basin
vocal basin
winter plover