#voice-chat-text-1

1 messages ยท Page 28 of 1

coarse hearthBOT
#

9. Do not offer or ask for paid work of any kind.

sterile orchid
#

i like the tag masterpiece

#

are you listing to nerrex

#

or whats his name

#

idk how to spell it

#

ty ty

fair heron
sterile orchid
#

i like his stuff ๐Ÿ™‚

#

brb coffee

#

๐Ÿ˜„

#

its giving zero suit samus

sterile orchid
#

@fair heron

#

its giving girly pop zero suit samus

#

thats a vibe

#

giving nier autonoma

#

ooooooooh

#

im not sure if you can import anaimations or

#

true

#

wait so did you code all of this ๐Ÿ˜ฎ

#

holy shrimp

stuck bluff
#

@shrewd citrus๐Ÿ‘‹

sterile orchid
#

alisters voice is amazing

#

1 of my favorite character

#

yes the oc

#

๐Ÿ˜„

#

yes in a robot apocalypses

stuck bluff
#

@fair heron You realise I said the other one, right?

fair heron
#

the dark one ?

stuck bluff
#

Yeah, the current is good.

#

Yes. It is a bit silly, but the neck was bothering me with the other one and the turtleneck is kind of dope.

#

@tropic jungle๐Ÿ‘‹

#

Does this do inpainting?

#

๐Ÿ‘‹ @earnest hare

stuck bluff
#

@quartz niche๐Ÿ‘‹

#

๐Ÿ‘‹ @lofty verge

lofty verge
#

hi

#

I can't speak nor text in chat yet

stuck bluff
lofty verge
#

thank you

stuck bluff
#

"Vintage advertisement for stable diffusion."

#
Vikings Wiki

Siggy is the cunning wife of Earl Haraldson, and the former Lady of Kattegat. Siggy is the wife of Earl Haraldson, and rules by his side in Kattegat. Together they have three children. Their two...

thin lintel
mild flume
#

@lofty verge Yo

lofty verge
#

hi

#

Im trying to get voice verified

#

but i need to send more messeges without spoamming

#

yeha

#

haha no very interesting

#

I just want to learn about python programming

#

youtube

#

haha

#

Coursera

#

tim

mild flume
#

!resources

coarse hearthBOT
#
Resources

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

lofty verge
#

I will have to check that out

#

Maybe I should give that a try

#

hahaha

delicate wren
#

@mild flume I've started trying to use yew
(seems to work so far)

raw wren
#

@delicate wren can you explain a basic python concept to me?

P = TypeVar('P', bound=str)

@dataclass
class PikaPrefixDefinition(Generic[P]):
    prefix: P
    description: str = field(default="")
    secure: bool = field(default=False)
    metadata: Dict[str, Any] = field(default_factory=dict)

    def __repr__(self) -> str:
        return f"<PikaPrefixDefinition prefix={self.prefix} description={self.description} secure={self.secure} metadata={self.metadata}>"

what is the point of declaring a typevar and inheriting from generic?

delicate wren
#

why inherit: otherwise PikaPrefixDefinition[P] would throw an error

#

!e

class Example: ...

Example[int]
coarse hearthBOT
delicate wren
#

so inheriting from Generic[A, B, C] tells that it's generic over A, B, C

#

typevar has to be declared outside (prior to python 3.12) because otherwise it'd be NameError

#

3.12

class PikaPrefixDefinition[P]: ...
delicate wren
raw wren
#

thank you @delicate wren

tame leaf
#

@mild flume do the hedonistic bot

stuck bluff
#

@vernal current ๐Ÿ‘‹

proper ridge
#

@stuck bluff What happens when you throw glass dust into the air?

thin lintel
#

sandstrom?

stuck bluff
#

Lung damage?

proper ridge
#

Why do people dislike stoners?

tame leaf
delicate wren
#

don't ask about the filename

#

I think it can be go a bit higher in terms of pitch but it's hard

mild flume
#

I mean, I kind of HAVE to ask about the file name

delicate wren
#

normally that sound I can only make with way more noise

delicate wren
mild flume
#

Gooootcha

#

It makes me think of Yoko Ono

delicate wren
#

why does it sound so scary

#

maybe phone mic being worse adds to this

mild flume
#

It's like something from Five Nights at Freddy's

delicate wren
#

ren'py uses extended python dialect

#

do we have a command for extension docs?

#

yes

#

PyObject * everywhere

#

!d extending

coarse hearthBOT
#
delicate wren
#

double y

delicate wren
#

just import

#

iirc

#

it generates a compiled thing which you can just import

#

CPython

delicate wren
ocean orbitBOT
#

Here are the top 5 results:

Undefined references when using mingw generated library files
graal_create_isolate fuction return error: GraalVM native-image
Error during SonarQube Scanner execution with SCM provider autodetection failed
Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?
Could not load ArcGis Runtime(RuntimeCoreNet200_3.dll)
delicate wren
#

what

#

.so

#

yes

#

shared object

#

there's .a and .lib for static

#

cffi and some other one that I don't remember the name of

#

cffi, SWIG
and now I don't remember if SWIG is that other one or is that thing a third one

#

pybind is C++

#

ctypes doesn't generate Python modules

#

it's just a way to interact with C

#

>1998

delicate wren
delicate wren
#

it's not broken, it's just a very-hard-to-do vocal stuff

tame leaf
#

"Water; glucose; plant extracts (1.6%): prickly pear, turmeric, goji, ginkgo, artichoke, ginger, rosehip; vitamin C; vitamin E; vitamin B6; vitamin B1; vitamin B2; vitamin B12; niacin; pantothenic acid; folic acid; biotin; potassium citrate; magnesium citrate; sodium chloride; zinc; natural flavouring; carbon dioxide; acidifier: citric acid; colouring plant concentrates: carrot concentrate, pomegranate concentrate."

jagged hawk
#

sup

#

sup hem

#

good mate i was having some issues with kde and that whole stupid printer thing but a reinstall fixed it

#

and now im having wifi issues

#

mint

#

i wanted to try fedora but seems like everyone is hating on it

mild flume
#

I haven't tried that one

jagged hawk
#

tf

mild flume
#

I honestly haven't heard a lot about it

jagged hawk
#

honestly i would just use opensuse anyday but lack of packages

#

blow up ?

mild flume
#

Can I get an English translation?

delicate wren
#

1 amp is a lot for a led

#

so ofc it'd be way less

jagged hawk
#

ah thats persian time

jagged hawk
delicate wren
#

.003 A given that resistance

#

which sounds reasonable

jagged hawk
mild flume
#

I'm guessing 1401 isn't like... 1401 CE, right?

jagged hawk
#

i tried to connect a led to a 9V battery once, wouldnt do that again

#

p=VA

delicate wren
#

watt is power

#

which is energy per time

jagged hawk
#

voltages * amprege

#

its all theoretical not like that in real life

delicate wren
#

> Voltage, also known as (electrical) potential difference, electric pressure, or electric tension
(wikipedia)

jagged hawk
#

electrons dont move

mild flume
#

It's all just gnomes high-fiving each other

jagged hawk
#

its more of a magnetic field thing

delicate wren
#

I'm surprised there is no, like, simpler synonym to voltage in English

mild flume
#

Just like passing the high-five all the way down the line

delicate wren
#

ig "electric tension" (last one from the list) would be 1-to-1 analogue to Russian term

jagged hawk
#

its similar to arabic calender time

mild flume
#

Gooootcha

delicate wren
#

transistors are like a very simple inaccurate multiplication, in my understanding

jagged hawk
#

its like 2021

delicate wren
#

doing the same things as relays

jagged hawk
#

kinda

delicate wren
jagged hawk
#

but you got bjts, fets, and some other stupid names

#

too many names

terse sierra
#

baby bunny in yard - wasnt expecting that @thin lintel

charred shard
#

Hello everyone.

#

I need to help

thin lintel
terse sierra
#

was small brown , didnt move fast - exploring

#

peeked through downstairs window

jagged hawk
#

bro what

terse sierra
#

take pics of entire place , have it notarized by the notary who walks through with you - make it a legal court document @mild flume

#

bunnys love dandelions , happy to oblidge @thin lintel

#

do you also make beer ? @buoyant dagger

#

Man from the land of ice and snow

#

86 Gig for game , how big is your main boot drive ? SSD yes ? @buoyant dagger

#

make sure your wearing your spurs and have your whip , keep them doggies in line @mild flume

#

yes good , you need lots of room to expand and external data drive to archive extras @buoyant dagger

mild flume
#

@rotund bough Sorry, I completely missed what was said. I was looking for something and my brain shut down. Something about front end?

terse sierra
#

is 5 years a good guess for SSD drive lifespan ?

#

what kind monitor ?

#

@buoyant dagger

#

ohhhhhhhh 240 Hz cooool

#

smooooth

#

is VPN good idea for online games ( yezzz )

mild flume
#

I personally say no but things have changed a lot

#

It's a crap shoot whether you'll get a better connection or not

terse sierra
#

vpn is good for IP blocks or bla bla

#

dont know if there is regional stuff

#

mmmm - if you can get fiber all along the way - distance is no issue

tulip grail
#

size of overall

terse sierra
#

you can get major speed difference when switching to different locations - its worth it

#

too much data - most vpn dont care - data traffic has no value

#

no secure OS , W10 or Linux

#

vpns are worth trying

#

but no such deal of %100 secure so archive your data externally

#

accounting bizz is a target for data theft @mild flume

#

i know old news

#

Sweden has red light districts ( legal ) , most countries dont

#

Most bizznezzes want consumers to be piggys and consume

#

Amsterdam is red light and canabuzz cafes

#

most Adult movie companys are owned by women

delicate wren
terse sierra
#

write cycles ?

delicate wren
#

if SSD dies before you run out of declared write resource, it's often a problem with the SSD

mossy blade
#

why am i supressed

delicate wren
#

solid stuff (cpus, ram, ssds) have 10 years or lifetime warranty as far as I've seen

#

(lifetime warranty being until the company goes out of business)

terse sierra
#

bill nye - mech eng , tv dude

delicate wren
coarse hearthBOT
#
Voice verification

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

terse sierra
#

Beakmans World !! member ? @mild flume

delicate wren
#

uninstall bios

mossy blade
#

guys what was the real issue with Therac 25 watched on YouTube did

#

not understand much

terse sierra
#

oohhhhh get a UPS for your system , power can be glitchy and wreck stuff @buoyant dagger

slate dirge
#

could someone help me with my assignment in python?

#

here?

terse sierra
#

ya dat ting - UPS

#

a UPS is worth it , BIG TIME

delicate wren
#

and not as power efficient

#

cpu swap might require bios update

terse sierra
#

solar panels on the roof + new batts would be good @delicate wren

slate dirge
#

here is the question

delicate wren
#

windows 11 might require it

mossy blade
#

TPU vs GPU

slate dirge
#

I dont understand it but is this answer correct? my brother helped me

#
import numpy as np

v=np.genfromtxt('data.txt')

vlen = int(np.size(v)) 

u=np.zeros(vlen,dtype=complex) 

for k in range(vlen): 
  try:
    u[k] = int(v[k])
  except:
    u[k] = -100

print('Den nya vektorn รคr [' + str(u) + ']')
delicate wren
terse sierra
#

Hardware Data Lock

delicate wren
#

!d complex

coarse hearthBOT
#

class complex(number=0, /)``````py

class complex(string, /)``````py

class complex(real=0, imag=0)```
Convert a single string or number to a complex number, or create a complex number from real and imaginary parts.

Examples...
delicate wren
#

quiet train just left(

#

I might have to be on a loud one so won't hear anything

terse sierra
#

wondering if a modern Ubuntu install can recognize all my hardware for BIG machine , rather than W10 fook around

#

does W10 have a optional encrypted drive on install ?

#

Linux has 10 million options

terse sierra
#

if you forget your password - your done

charred shard
#

can anyone help me

#

i have a bug when coding in python

terse sierra
#

does having a encrypted OS drive degrade performance ( maye a bit ) ?

mild flume
slate dirge
terse sierra
#

only stuff to worry about is , banking - everything else is on the net for free anyways

delicate wren
slate dirge
terse sierra
#

you can create a hidden data archive - wireless that sits ( in a hidden area ) , so learn SFTP stuff

charred shard
#

when i leave the loop, the answers of entity_array is the same @mild flume

buoyant dagger
terse sierra
#

have a secure micro server at home - then log in

delicate wren
delicate wren
#

!e

line = []
lines = []
for i in range(3):
    line.append(i)
    lines.append(line)
print(lines)
coarse hearthBOT
delicate wren
#

just like here, all elements of the final array are the same

delicate wren
#

!e

lines = []
for i in range(3):
    line = []
    line.append(i)
    lines.append(line)
print(lines)
coarse hearthBOT
delicate wren
#

whereas here a new element is created each time

#

and if you want to accumulate data instead of starting over entirely each time, you can copy it

#

!e

line = []
lines = []
for i in range(3):
    line = line.copy()
    line.append(i)
    lines.append(line)
print(lines)
coarse hearthBOT
terse sierra
#

a cute and dated movie , "Sneakers" , with robert redford @buoyant dagger @mild flume

#

if they steal your system they want the graphics card for mining , wipe data drive - repurpose it for x , y , z -

slate dirge
#

since I told you that i dont understand the assignment

delicate wren
#

the overall idea of the assignment is to make an array of complex numbers from a list of strings, while replacing incorrect values with a placeholder

terse sierra
#

by the time they decrypt your drive , you will have a vacation bungalow on Mars @buoyant dagger

mossy blade
#

what you think about Quantum computers with cybersecurity

delicate wren
slate dirge
delicate wren
#

thus a concept of error handling is mentioned with try-except

delicate wren
slate dirge
mossy blade
#

how can they have superpositions o and 1 at the same time but when viewed it has 1 position but is freaking faster than the normal computer

delicate wren
mossy blade
#

a Quantum computer

delicate wren
terse sierra
#

what about hospitals who get there patient and research data encrypted via bitlocker remotely , and pay to get a key for it @mild flume

delicate wren
#

!d numpy.genfromtxt

coarse hearthBOT
#
numpy.genfromtxt(fname, dtype=<class 'float'>, comments='#', delimiter=None, skip_header=0, skip_footer=0, converters=None, missing_values=None, filling_values=None, ...)```
Load data from a text file, with missing values handled as specified.

Each line past the first *skip\_header* lines is split at the *delimiter* character, and characters following the *comments* character are discarded.
slate dirge
#

is this a list of numbers?

delicate wren
#

of strings

slate dirge
#

ok, and my professor wants me to do what?

#

I am very confused

delicate wren
delicate wren
mossy blade
#

how can they have superpositions o and 1 at the same time but when viewed it has 1 position but is freaking faster than the normal computer a Quantum computer @mild flume

delicate wren
#

everything, that can be turned into a complex number, gets turned into a complex number

everything else gets replaced by 0-100j

slate dirge
#

oooooh ok

delicate wren
#

keys are often generated from passwords

slate dirge
#

but when I run my code I get this:

delicate wren
#

16 bytes isn't that large

slate dirge
#
[[   3.+0.j -100.+0.j    5.+0.j    2.+0.j -100.+0.j    7.+0.j]]
#

shouldn't this be correct

delicate wren
#

AES 128 is considered good enough

mild flume
delicate wren
slate dirge
#

what do you mean

delicate wren
#

what is the contents of data.txt?

#

if you have access to it

slate dirge
#

I will check

delicate wren
slate dirge
#

3
5
2
7

slate dirge
delicate wren
charred shard
#

help me again pls. If offsets is the same, its not work

proper ridge
# mossy blade how can they have superpositions o and 1 at the same time but when viewed it has...

Qubits are basically the simplest quantum states you can prepare. Quantum states can exist in a superposition of basis states (a linear combination of basis vectors). This is represented as a probability distribution.

Physically speaking, qubits are defined using subatomic particles which possess a wave-particle duality, meaning they can be in a distribution of states (wave form) or only in a specific state (particle form). You've only been shown the particle form in classical mechanics. Quantum mechanics is the natural generalization of that.

As for why it's faster, we are representing multiple states at the same time using the superposition, therefore when you apply a change in form of a matrix it is applied as a whole instead of row by row like classical computers, so it gives you an exponential speedup in the context of tensor contraction (vector matrix multiplication basically).

delicate wren
#

except for placeholders

proper ridge
#

It's not objectively superior. It can become useful when the problem definition reaches a significantly lower computational complexity when defined for the quantum mechanical approach as opposed to the classical one. It's about how you formulate a problem.

slate dirge
proper ridge
#

Just think of it as a tensor contraction backend.

buoyant dagger
mossy blade
#

thanks @proper ridge

slate dirge
#

so I change int to complex?

delicate wren
#

try changing

slate dirge
#

ok I will try

proper ridge
#

Needs some getting used to.

slate dirge
#

just for u[k] right?

mossy blade
#

@proper ridge how computers detect the current state of the qubits

delicate wren
#

yes, only that line

slate dirge
#

ok

#

now it says nan

delicate wren
#

@misty sinew ๐Ÿ‘‹

slate dirge
#
[[ 3.+0.j nan+0.j  5.+0.j  2.+0.j nan+0.j  7.+0.j]]
misty sinew
proper ridge
buoyant dagger
slate dirge
delicate wren
#

!e

print(complex("aaa"))
coarse hearthBOT
# delicate wren !e ```py print(complex("aaa")) ```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(complex("aaa"))
004 |           ^^^^^^^^^^^^^^
005 | ValueError: complex() arg is a malformed string
delicate wren
#

hmm

mossy blade
#

but then have the question if it falls in to 1 state then it is like the normal computers doing 0 1

slate dirge
mossy blade
#

@proper ridge

slate dirge
#

in data.txt

charred shard
delicate wren
#

I don't understand where would nan come from, actually

slate dirge
#

noooooooooo

delicate wren
#

!e

print(complex("nan"))
coarse hearthBOT
proper ridge
delicate wren
#

if its nan+0j or whatever, then you need add a check for nan

slate dirge
#

my assignment should be handed in in 4 hours and it determines whether I pass the course or not

mossy blade
#

ok eneough

delicate wren
#

!d numpy.isnan

coarse hearthBOT
#

numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'isnan'>```
Test element-wise for NaN and return result as a boolean array.
mossy blade
#

@proper ridge thanks for clearing most of my doubts

slate dirge
proper ridge
mossy blade
#

z

#

bye my bed time

slate dirge
charred shard
slate dirge
#

I can only edit this part:

proper ridge
#

!e

import numpy as np

a = 1+2j
b = np.nan
print(np.isnan(a))
print(np.isnan(b))
coarse hearthBOT
slate dirge
#
vlen = int(np.size(v)) 
u=np.zeros(vlen,dtype=complex) 
for k in range(vlen): 
  try:
    u[k] = int(v[k])
  except:
    u[k] = -100

#

I can only edit this

proper ridge
slate dirge
#

not the print part

slate dirge
#

is this good?

#

or do you still want pdf?

proper ridge
slate dirge
#

great

proper ridge
#

Watch the stream, I'll walk you through it.

delicate wren
#

even slight cold damages skin a lot for some people

slate dirge
#

ok I will watch

proper ridge
#

vc1

fair heron
slate dirge
delicate wren
#

mosquitoes are relatively quiet where I live

slate dirge
#

I cant see your screen

proper ridge
slate dirge
#

ok

#

still nothing

proper ridge
#
def str_to_complex(values: list[str]) -> list[complex]:
    new_values = []
    for value in values:
        try:
            new_values.append(complex(value))
        except ValueError:
            new_values.append(complex(0, -100))
    return new_values

v = ['a', '0.1', '3+0.9j', '7', 'True']
new_v = [(0-100j), (0.1+0j), (3+0.9j), (7+0j), (0-100j)]

print(str_to_complex(v)==new_v)
#

I want you to explain this to me.

charred shard
proper ridge
#

@slate dirge

delicate wren
proper ridge
slate dirge
#

I can't explain I don't know python

#

just a little bit

dark pumice
#

!e
import os
r = os.system("dir")
print(r)

delicate wren
#

the goal of learning is in large part to get understanding

coarse hearthBOT
slate dirge
#

just help me to know what to change for me to get the right answer because I feel bad that you eplain too much and I don't understand

dark pumice
#

???

#

dafuc

proper ridge
#

!e

def str_to_complex(values: list[str]) -> list[complex]:
    new_values = []
    for value in values:
        if value == 'nan':
            new_values.append(complex(0, -100))
            continue
        try:
            new_values.append(complex(value))
        except ValueError:
            new_values.append(complex(0, -100))
    return new_values

v = ['nan', '0.1', '3+0.9j', '7', 'True']
new_v = [(0-100j), (0.1+0j), (3+0.9j), (7+0j), (0-100j)]

print(str_to_complex(v)==new_v)
coarse hearthBOT
delicate wren
proper ridge
proper ridge
delicate wren
#

!e

print(complex("-nan"))
coarse hearthBOT
slate dirge
proper ridge
#

!e

def str_to_complex(values: list[str]) -> list[complex]:
    new_values = []
    for value in values:
        if 'nan' in value:
            new_values.append(complex(0, -100))
            continue
        try:
            new_values.append(complex(value))
        except ValueError:
            new_values.append(complex(0, -100))
    return new_values

v = ['-nan', '0.1', '3+0.9j', '7', 'True']
new_v = [(0-100j), (0.1+0j), (3+0.9j), (7+0j), (0-100j)]

print(str_to_complex(v)==new_v)
coarse hearthBOT
delicate wren
#

numpy is already imported, so np.isnan is available

proper ridge
#

Yeah I saw that, but I though maybe she's not allowed to import anything.

#

Ohh I'm blind. It's already imported.

#

I apologize.

delicate wren
#

!e

print(complex('NaN'))
coarse hearthBOT
delicate wren
#

since we're not in js, checking for caseless nan should be enough

#

then you only need to deal with inf

#

which is non-trivial via text

#

e.g. should a big number be inf or placeholder?

proper ridge
#

!e

def str_to_complex(values: list[str]) -> list[complex]:
    new_values = []
    for value in values:
        if 'nan' in value:
            new_values.append(complex(0, -100))
            continue
        elif 'inf' in value:
            new_values.append(complex(0, -100))
            continue
        try:
            new_values.append(complex(value))
        except ValueError:
            new_values.append(complex(0, -100))
    return new_values

v = ['-nan', 'nan', 'inf', 'lalala', '-inf', '0.1', '3+0.9j', '7', 'True', 'False', 'None']
new_v = [(0-100j), (0-100j), (0-100j), (0-100j), (0-100j), (0.1+0j), (3+0.9j), (7+0j), (0-100j), (0-100j), (0-100j)]

print(str_to_complex(v)==new_v)
coarse hearthBOT
proper ridge
slate dirge
#

Im back, sorry I had to do something

proper ridge
#

You see it took me like a minute to write, but I want you to explain how I did it.

#

Go line by line.

slate dirge
#

wait

#

I don't even understand my assignment so how am I supposed to explain what you wrote?

#

I told you that I don't know python

delicate wren
#

!e

print(complex("1e999"))
coarse hearthBOT
proper ridge
#

So your assignment says given a list of strings containing a bunch of stuff, including numbers and bullshit strings, to convert them to complex numbers, and when invalid to hardcode them as (0-100j). That's it.

slate dirge
#

I'm thankful for the help but did I miss something? because I cant see you in the live nor hear you so how am I supposed to know?

proper ridge
delicate wren
#

in JS there is

proper ridge
#

is inf even acceptable?

slate dirge
#

and the list only contains numbers

#

i checked it

proper ridge
slate dirge
#

I think that this is the list: 3
5
2
7

proper ridge
#

I don't care that it's your homework or exam, you have your grade now. But I do care if you understand the code.

slate dirge
#

ok but have you given me the correct code?

proper ridge
#

Ok, I'm done.

slate dirge
#

?

proper ridge
#

Run it. Try it out.

#

You can run it here.

slate dirge
#

ok I will now

#

no I want to use visual studio code

proper ridge
#

!e

print("Hello Meriiam")
coarse hearthBOT
proper ridge
slate dirge
#

it says "true"

#

but I hashtagged what I have written before

#

I just took the code above that you wrote

#

but how is that helpful??

#

@proper ridge

proper ridge
proper ridge
proper ridge
slate dirge
#

I just want the answer for my assignment I have been searching for an answer in 6 hours now and I only have two questions left

#

I am very tired

#

I am not here to learn python

slate dirge
#
import numpy as np

v=np.genfromtxt('data.txt')

vlen = int(np.size(v)) 

u=np.zeros(vlen,dtype=complex) 

for k in range(vlen): 
  try:
    u[k] = complex(v[k])
  except:
    u[k] = -100

print('Den nya vektorn รคr [' + str(u) + ']')
proper ridge
#

Then please read the code. It's barely 17 lines.

slate dirge
#

I read through it but I told you I don't know any python

proper ridge
proper ridge
slate dirge
#

just tell me what I should change in my code above

slate dirge
#

and I succeded in three of them this is the last one and I am on the two last questions

#

The teacher was kind enough to open the assignment again to me today until midnight and it is 4 hours left

#

I kindly ask you to tell me what to change in the code above

proper ridge
#

!e

import numpy as np

v=['a', '0.1', '3+0.9j', '7', 'True']

# This implementation does not check for nan and inf
vlen = int(np.size(v))
u = np.zeros(vlen, dtype=complex)
for k in range(vlen):
    try:
        u[k] = complex(v[k])
    except ValueError:
        u[k] = complex(0, -100)

print(f"The new vector is {u}")
coarse hearthBOT
proper ridge
#

Did you read the rules of the server when you joined?

slate dirge
#

no, I was desperate to get help I just joined

proper ridge
#

Rule 8
Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them

#

The only way I am allowed to help you is to ensure you understand the code.

raven orbit
proper ridge
#

Otherwise I am breaking the rule.

#

You have 3+ hours. It's barely 10 lines. Please try to learn at least what I did.

slate dirge
slate dirge
#

so why waisting both of our times?

proper ridge
#

You are rather rude and entitled for someone who asked others for help. I don't have to help you, but if I am the least you can do is to try and see what I did.

proper ridge
slate dirge
#

then where can I get help?

#

no one helps, everyone follows the "rules" as if they were laws

proper ridge
#

You don't want help, you want others to do your homework for you. You are also by far the rudest person I've seen going about this.

slate dirge
#

how am I rude?

proper ridge
#

I don't have to help you, and when I try to bend the rules for you, the LEAST you can do is try to understand the code. That's helping you.

When you blatantly order me to do your exam and then when I ask you to try and explain the code you basically tell me to shut up I see that as rude and entitled.

slate dirge
#

I have already written the code with the help of my brother, and I ask you what did I do wrong

#

but you send a whole coding that is far above of my understanding

#

and you want me to explain it?

slate dirge
terse sierra
#

python is great because it will tell you your errors all along the way - and if confused copy / paste the error message at , duck duckgo and get 5 answers

#

how bout that ?

sterile orchid
#

fix the print statement

proper ridge
sterile orchid
#

the second varriable is off

slate dirge
#

I am not being rude at all but the way you try to teach me is wrong. How could I explain a long coding if I am beginner level

sterile orchid
#

and the vlen should be used diffrenetly

#

other than that you did great

slate dirge
sterile orchid
#

numpy is easy you got this!

proper ridge
sterile orchid
#

thats me with android studio

sterile orchid
#

i wish i could just have an seo

#

use that as a base

slate dirge
#

thank you, I will look at what you wrote after I reply to ace

sterile orchid
#

then use flutterflow and make finishing touches

#

modus tollens

#

ofc

slate dirge
raven orbit
sterile orchid
#

or truth tables

#

we all have time to get there

#

yup

#

no such thing as a stupid question

#

learn till you get it

#

everyone can get it

#

mhm

#

take your time learn the concept and boom you will have it forever

#

as philosophy says to master yourself and your journey is the end goal

slate dirge
# proper ridge Read this.

I read it and the only part I think I understood was this: py ['a', '0.1', '3+0.9j', '7', 'True'] I think this is called a vector?

proper ridge
sterile orchid
#

yes

slate dirge
#

ok great

sterile orchid
#

what are you trying to get your code to do

slate dirge
#

but the rest I don't get it

sterile orchid
#

what is the end result?

#

explain like im 5 please

#

this will help you dw

slate dirge
#

If I understood it correct they want me to write the numbers in the list as complex number and if it is not possible then they write 0-100j

sterile orchid
#

please explain your code

#

what are you trying to make post

#

what is the future outcome of your code

slate dirge
#

not even I know hahhahah

#

I wish I knew that is what Im trying to figure out

sterile orchid
#

use chat gpt to explain it

#

come back and then we can help further

slate dirge
#

I never use chat gpt

#

I dont wan't ai to help

sterile orchid
#

give it a go

#

people are great but use free sources

#

then comeback if you are stuck

slate dirge
#

I don't want to use ai

sterile orchid
#

okay google

raven orbit
#

I find it very useful

slate dirge
#

how do you support ai? aren't you programmers, you know that if ai develops more programmers will lose their jobs right?

sterile orchid
#

ill say this my mentor once said abuse every shortcut you can get

#

do it

#

because ai is nlp you will learn that with pandas

proper ridge
sterile orchid
#

its vectors but with words

slate dirge
#

I never use chat gpt because I think it is stupid to depend on a robot when God gave us brains to think

sterile orchid
#

everything you are doing will apply to something bigger

#

keep going with your learning

slate dirge
#

can you guys help me or not?

proper ridge
slate dirge
#

reffering me to an ai is crazy

raven orbit
#

instead of asking others to do everything
helping is not the same as answering your question

sterile orchid
#

okay well im going to take my leave

sterile orchid
#

ta ta

#

๐Ÿ‘‹

raven orbit
ornate cobalt
sterile orchid
#

ai was made by humans

lethal wadi
#

ai taking jobs?

slate dirge
#

I never asked you to do everything. I asked you to help me correct what I have done

lethal wadi
#

what's acronym initialism doing?

slate dirge
#

I've come this far:

sterile orchid
#

im helping by refering you to free resources

slate dirge
#
import numpy as np

v=np.genfromtxt('data.txt')

vlen = int(np.size(v)) 

u=np.zeros(vlen,dtype=complex) 

for k in range(vlen): 
  try:
    u[k] = complex(v[k])
  except:
    u[k] = -100

print('Den nya vektorn รคr [' + str(u) + ']')
sterile orchid
#

what is the goal

#

yes

slate dirge
#

I just want help with the mistake that I can't find and yet you say I want you to do all the work

raven orbit
ornate cobalt
sterile orchid
#

^^^^

#

okay i need to learn android studio time for my own questions on questions

#

time to leave the chat

#

๐Ÿ‘‹

#

@slate dirge read clean code

#

it might help you with the philosophy

#

of writing code

#

or more organized code

#

yup thats why i recommended ai

#

to explain if you are stuck

#

just prompt explain me like im 5 on what the code is doing

#

boom helped

slate dirge
#

I asked you for help, not chat gpt. I could go use it but I wouldn't be here then

sterile orchid
#

ill gpt it 1 sec

raven orbit
#

@elder wraith have you considered using ai

ornate cobalt
#

What is the difference between having @proper ridge take your job or AI? You're supporting one or the other by having either solve your problems. ๐Ÿคทโ€โ™‚๏ธ

slate dirge
#

Is it so hard to understand

#

a no is a no

sterile orchid
#

please dont piledrive me

#

lol

raven orbit
slate dirge
#

If you can't solve it then leave it be

raven orbit
#

owo

hearty heath
#

Hello

sterile orchid
#

import numpy as np: This line tells the computer that we want to use a tool called "numpy" and we will call it "np" for short. Numpy helps us work with numbers easily.

v = np.genfromtxt('data.txt'): This line reads a file called 'data.txt' and puts all the numbers it finds in the file into a list called v.

vlen = int(np.size(v)): This line counts how many numbers are in the list v and saves that number in a variable called vlen.

u = np.zeros(vlen, dtype=complex): This line makes a new list called u with the same number of spots as vlen. All the spots start with the number 0, but we say that the numbers can be complex (which means they can have an imaginary part).

for k in range(vlen):: This line starts a loop that will go through each spot in the list u. The variable k will go from 0 to vlen - 1.

try: u[k] = complex(v[k]): This line tries to turn the number in spot k of the list v into a complex number and put it in the same spot k of the list u.

except: u[k] = -100: If the number in spot k of the list v can't be turned into a complex number, this line will put the number -100 in the same spot k of the list u.

print('Den nya vektorn รคr [' + str(u) + ']'): This line prints out a message saying "The new vector is" followed by the list u.

slate dirge
sterile orchid
#

boom id say ai is very reasonable

ornate cobalt
sterile orchid
#

so true lol

slate dirge
#

Y'all are so immature it is sick

sterile orchid
#

wheel

hearty heath
sterile orchid
#

numpy ah yes

#

data at its finest

#

๐Ÿต :

#

Try-except block for file reading: Added a try-except block to handle potential errors when reading 'data.txt'.
Check for empty data: Added a check to ensure that the data is not empty before proceeding.
Error message: If there's an issue reading the file or it's empty, it prints an error message and sets v to an empty array to prevent further errors.
This should help catch and handle errors related to reading the file and processing its content.

#

๐Ÿ˜„

slate dirge
#

So no one here can help without an ai?

hearty heath
#

Yeah we stopped allowing nohello, rtfm, etc. ๐Ÿ˜„

slate dirge
#

then what is the point of this server?

sterile orchid
#

i listed where the issues where

#

i didnt tell you how to solve

slate dirge
sterile orchid
#

nope

#

im telling you to just explain it like im 5

#

boom to help you explain it in your own words

slate dirge
#

and I tell you I don't understand it

sterile orchid
#

instead of boom fix problem

slate dirge
#

If I knew would I be here?

sterile orchid
#

thats where you have to try to understand it

#

i gave you chatgpt to just explain it

#

and it did

edgy chasm
ornate cobalt
#

Meriam what even is your question, because right now all I see are what look like answers being ignored so you can complain about us complaining that you are unreasonably angry at us for "not helping"

sterile orchid
#

most problem have been done before

#

i did it for a long time

delicate wren
elder wraith
#

Consider the fact that most companies are unable to successfully develop and deploy the simplest of CRUD applications on time and under budget. This is a solved problem - with smart people who can collaborate and provide reasonable requirements, a competent team will knock this out of the park every single time, admittedly with some amount of frustration. The clients I work with now are all like this - even if they are totally non-technical, we have a mutual respect for the other party's intelligence, and then we do this crazy thing where we solve problems together. I may not know anything about the nuance of building analytics systems for drug rehabilitation research, but through the power of talking to each other like adults, we somehow solve problems.

sterile orchid
#

i thought i was steve jobs then i did a project without googling it time it takes to finish 1 hour took me 3 days

#

if i googled the answer i would have saved 3 days

edgy chasm
#

Wait what's CRUD

slate dirge
#

I just need someone just one person not everyone, to explain where I did wrong in my code:

elder wraith
ornate cobalt
#

But that was done? And it was even explained to you.

slate dirge
#
import numpy as np 

v=['a', '1.0', '3+0.9j']

vlen = int(np.size(v)) 

u=np.zeros(vlen,dtype=complex) 

for k in range(vlen): 
  try:
    u[k] = complex(v[k])
  except:
    u[k] = complex(0,-100)

print('Den nya vektorn รคr [' + str(u) + ']')
sterile orchid
#

cant you just sort the numbers with an array aswell

slate dirge
#

kan du hjรคlpa mig

raven orbit
#

oh ffs

sterile orchid
#

sorry i cant help it ๐Ÿคท

slate dirge
#

med uppgiften

edgy chasm
#

Nej jag รคr dum i huvudet ๐Ÿ˜ญ

sterile orchid
#

sorry @hearty heath please dont ban me

edgy chasm
#

What

slate dirge
#

skitsamma, alla hรคr รคr bror

raven orbit
#

pratar engelska i hรคr por favor

hearty heath
#

@slate dirge Please move over to #1035199133436354600, as this channel is for discussions relating to voice chat. Make sure to state your question clearly with full context.

rotund bough
#

"por favor"

raven orbit
edgy chasm
#

"por favor"

raven orbit
lethal wadi
#

"por favor"

raven orbit
edgy chasm
#

"it was a joke"

lethal wadi
#

"it was a joke"

elder wraith
#

a joke, it was

raven orbit
sterile orchid
#

if all else fails indian man youtube tutorial for last resort

raven orbit
edgy chasm
#

This shit made me laugh so hard ๐Ÿ˜‚

#

Guys do you like gimmicky text editors

elder wraith
#

Quickest way to find American Soccer/Football Fan: "What's relegation?"

raven orbit
edgy chasm
#

I love making gimmicky text editors

lethal wadi
#

toppings on hotdog
choose

#

dibs on relish + mustard

edgy chasm
#

Ketchup

elder wraith
#

BBQ Sauce, it's a meat

slate dirge
#

ain't no way weird conversations like these are allowed but helping me with a little coding is cheating

edgy chasm
#

But like

#

Google

slate dirge
#

Everyone always talks about how cringe discord is and I understand it sm now

elder wraith
#

Python Voice chat is unhinged place. Most Mods/Admin won't even come in here.

edgy chasm
#

Guys I have so many weird gifs in my favourites

raven orbit
#

I have quite a few I can't post here

#

for...

#

reasons

edgy chasm
sterile orchid
#

haven i need help with android studio

#

how do i move a file into a package

sterile orchid
#

please help @ornate cobalt

edgy chasm
#

Wait what happens if you multiply a string by a negative number

#

Like

sterile orchid
#

dont android studio isnt fun

edgy chasm
#

"a" * -1

edgy chasm
#

That's crazy

#

I thought it would error

proper ridge
#

!e

print("a"*-1)
coarse hearthBOT
edgy chasm
#

Wait

#

WHAT

proper ridge
#

!e

print("ab"*-1)
coarse hearthBOT
sterile orchid
#

wait you can run code in server

#

๐Ÿ˜„

proper ridge
#

!python

elder wraith
#

!e python print(type(print("ab"*-1)))

ornate cobalt
#
>>> "abc"*-1
''
coarse hearthBOT
sterile orchid
#

lol

proper ridge
#

!e

print(None)
coarse hearthBOT
edgy chasm
#

classic python shenanigans

elder wraith
#

!e python print(type("ab"*-1))

coarse hearthBOT
edgy chasm
#

Print type print

elder wraith
#

Mods are asleep, post Javascript

edgy chasm
#

console.log("Bet.");

sterile orchid
#

wait what lol

#

say that 1 more time

#

its the heat

edgy chasm
#

Florida man wakes up with headache, finds out wife shot him in his sleep.

#

Why tf are 4 people muted.

#

Wait do they have roles

sterile orchid
#

because i havent entered the voice gate

#

:c

#

dont leave the server

#

or aids

rotund bough
#

i need some ๐Ÿจ

misty sinew
raven orbit
rotund bough
#

i'll post my hunting knife tomorrow

wary fable
#

American stores be like

rotund bough
wary fable
raven orbit
rotund bough
#

i wanna open a gun store in the US

raven orbit
wary fable
elder wraith
proper ridge
#

Looks persian, but could be turkish too...

wary fable
proper ridge
rotund bough
#

i'm < 64 kg

#

so in lbs....

proper ridge
rotund bough
#

its 2.2 times right?

#

141 lbs

#

damn i'm too heavy

wary fable
#

I'm way overweight, but I am working on it. At the very least I am no longer obese.

rotund bough
#

20 more lbs to lose for me

wary fable
#

Now working on getting below 200 lb.

Who even needs a gym? I have a bicycle, a set of dumbbells, a pull-up bar, hiking boots, sneakers, and my own body weight.

And a nearby river that is finally clean enough to swim in.

rotund bough
#

gained a bit of weight due to eid ๐Ÿ˜ฆ

#

an unavoidable occurrence

proper ridge
wary fable
#

Nevermind not kayaking lol

rotund bough
wary fable
#

Sitting here watching every storm cell friggin explode around me

proper ridge
proper ridge
#

Lotta rice and bread huh.

rotund bough
proper ridge
#

I see.

rotund bough
proper ridge
#

And it's super easy to make.

#

Mango is mostly water, so for ice cream you can try my recipe and if you enjoy it you can use that. Most ice creams sold these days are made of just fat than milk. I honestly stopped buying from outside and make them at home now.

rotund bough
#

i prefer frozen yogurt ... i just eat ice cream once a year for the novelty

proper ridge
#

Frozen yogurt shouldn't make you fat though, right?

rotund bough
#

no.. it is not processed food

proper ridge
#

Yeah. So, 8kg before eid?

#

Do you guys get sour cherries there by the way?

rotund bough
#

approx 7-8kg target before eid
will become 10kg in these coming few weeks

proper ridge
#

Gotcha

rotund bough
#

cherry season is.. before mango season iirc

#

cherries come from the sistan balochistan area

proper ridge
proper ridge
#

We got it throughout summer though.

#

Miss it so much. Haven't had it in years.

sterile orchid
#

well android studio is supprisingly easier than i thought

hollow rapids
#

hi guys

sterile orchid
#

@mortal stone congrats

#

what job is that

#

@stuck bluff ๐Ÿ‘‹

stuck bluff
#

Hi hi.

sterile orchid
#

@stuck bluff well i found out android studio is easier than i remember

#

so true thats exciting

#

๐Ÿ˜„

#

@mortal stone is it a contract

#

when something good happens to me i get skeptical

#

its like a double take

#

like is this really happening

#

yeah when i saw rich people run over turkeys

#

nothing bothers them

#

didnt that one kardashian hit a guy and did no time

#

college is for networking

#

all the geniuses like terriance tao

#

they just picked up a book and read

#

lol

#

i wish that happened in my life you my friend are blessed

hearty heath
#

Hey ๐Ÿ‘‹

#

They're talking about drugs ๐Ÿ˜„

rotund bough
#

time for the lychees

delicate wren
#

I almost never order computer stuff with delivery

#

for me it's easier and cheaper to order and then to go to pick them up from the store

#

the rare expression is when it's things I can only get off aliexpress (since they're not widely available locally)

#

eh

#

haven't enountered that

#

they sometimes get delivered separately anyway

#

last time I had RAM and CPU in the single order; only RAM has arrived so far

#

as wherever the CPU is, I have no idea

#

do not buy SSD on aliexpress, just don't

#

it's something you really should buy normally, not used, not resold thousand times

#

used/sketchy origin HDDs are okay-ish;
but SSDs -- definitely not

#

iirc one of samsung phones was the main phone that got popular for its explosive properties

#

Samsung SSDs are good

stuck bluff
#

It's quite good.

thin lintel
delicate wren
#

@thin lintel catorama

#

it left Novosibirsk 5 days ago (so likely either on train or on a truck somewhere right now)

#

(CPU)

#

Kazakhstan's independence day is unusual, since they de facto declared independence from themselves given they were the last country in the USSR

#

16 of December, 1991

delicate wren
#

and in Russia independence day isn't 12 of December but 12 of June instead

#

(and it got renamed because "independence" it kind of not entirely applicable for this situation)

#

that's on 9th of May

#

the parade

#

it's for the end of east front part of WWII

#

Russia Day is on 12th of June

#

which comes from 1990 when it gained extended autonomy within USSR

#

12 of June is a holiday; 12 of December isn't

#

there are also some holidays in early November which have something to do with independence

#

or national unity, or whatever

#

from back when Poland had some realistic chances at ruling over Moscow

#

does shift+drag select?

deep niche
#

why can't i stream here ?

fair heron
delicate wren
#

there is so much art of Frieren with guns

stuck bluff
# deep niche why can't i stream here ?

Streaming permissions are available upon request of moderator-level-and-above users at their discretion. The best time to ask is when you see them in the voice chat.

#

Voice-regulars are the best to ask.

delicate wren
#

@wraith portal "ask Hemlock" is the usual way to get the role for a longer period

wraith portal
proper ridge
# fair heron

"Steaming jesus Frie, take the bloody shot! We need to recover those missiles!!"

stuck bluff
#

But yes.

deep niche
#

aight.

mild flume
stuck bluff
#

A well-written villain makes you sympathise with them.

delicate wren
#

TIL [,] is a valid syntax in JS

#

!e

[,]
coarse hearthBOT
# delicate wren !e ```py [,] ```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     [,]
003 |      ^
004 | SyntaxError: invalid syntax
delicate wren
#

no

#

there is nothing before ,

#

it has different meaning in JS

#

what it is useful for is for discarding parts of an array pattern in an assignment

#

[, second] = pair

#

_

#

for pattern

#

yeah

#

_ is weak keyword

#

!e

_, _ = 1, 2
print(_)
coarse hearthBOT
rotund bough
#
[_, relevant] = [1, 2]
delicate wren
#

there are rare situations where _ is treated specially

delicate wren
#

it does not accept _variable as unused

#

!e

match 123:
    case _:
        print(_)
coarse hearthBOT
delicate wren
#

^ weak keyword

#

!d keyword

coarse hearthBOT
delicate wren
#

or soft keyword

rotund bough
#

there is a setting in TS config for that

#

eslint config.. ignoreUnderscore or something

delicate wren
#

which is to remove it entirely

#

!e

from keyword import softkwlist
print(softkwlist)
coarse hearthBOT
rotund bough
#
arr = [1, 2]
relevant = arr[1]
mild flume
#

Ah yes, the neutral face soft keyword '_'

sterile orchid
#

i have a question

#

how do you print the print function

stuck bluff
#

!e py print(print)

coarse hearthBOT
sterile orchid
#

oh okay ๐Ÿ˜„

tulip grail
sterile orchid
#

i need to rewatch

#

what a goober

#

mhm

delicate wren
#

I think the brain part of my vision is degrading faster than the eye part

mild flume
#

Right?

delicate wren
#

I have near perfect vision when looking at static objects

#

but if it moves, fail

wicked flicker
#

Hello Hemlock

stuck bluff
wicked flicker
#

@mild flume

raven orbit
#

what about ass crame

#

in parts of the uk you have oice crame

fair heron
#

how do I do a subprocess for a function on a discord bot @zenith wedge

proper ridge
#

What's that Osyra?

fair heron
#

she is replying correctly

#

I think

#

you always break the bot

raven orbit
mild flume
#

!stream 451730408636416000

coarse hearthBOT
#

โœ… @hazy garden can now stream until <t:1718980573:f>.

wicked flicker
#

Hemlock, will you be willing to help me with another coding challenge? Not now, but a little bit later.

#

It's regarding object oriented programming.

mild flume
#

Of course

#

Classes and stuff is actually one of my favorite things to teach

north locust
#

boring

#

I'm genuinely stressing out because I'm procrastinating on too many assessments right now.

#

I might as well start on the maths because it's easy.

#

ahh I hate chem

#

oui

#

and english sucks as well

#

but our teacher is bad

#

That's my history task

#

we need to write a research paper on the black death

#

and then an in-class validation essay

#

since when was frieren playing in the background

#

oh that's me

#

ep 4

#

it was playing for some reason

fresh isle
north locust
#

wait no way yoasobi's song was the frieren op s1

#

... osu?!

#

o

#

ahh but i've got work that's due

#

I know that grades don't (really) matter in my age, but I can't stop caring

sterile orchid
#

when you finally pass the voice gate

#

life is finally changing

#

holy

stuck bluff
#

@dusky fjord ๐Ÿ‘‹

dusky fjord
#

@tame leaf hello