#voice-chat-text-0

1 messages · Page 6 of 1

cunning monolith
#

when I connect it my pc gives a connecting sound

somber marlin
#

Sure, the project is to automate terrascan on my terraform code project so it detects any vulnerabilities within the code.
I have written a simple code that executes and takes input of the environment and project folder. No errors currently but I need to add some validations and as well as defining which terraform project to use and how to use it ect

cunning monolith
#

😭

somber marlin
#

Is my first time using and learning python so needed some guidance on that

whole bear
somber heath
cunning monolith
#

can you have look at 10 second at video 2:20 - 2:30
https://www.youtube.com/watch?v=XIUn03p8fkY
and let me know if I should try this ?

DISCLAIMER: Please consult a technician if you have a hard drive with delicate data.

▶ Play video
somber marlin
#

Doesn't need someone to BE familiar with terraform

somber heath
#

Well, if you're dealing with files and folders, pathlib is usually the go.

#

But given I'm not familiar with the design patterns surrounding terraform, that might be the wrong thing to suggest here.

round cedar
cunning monolith
#

actually it slow crashed by oscilating it just touched it and it happened not even droped or fallen with high velocity

round cedar
#

Also I wouldn't recommend opening a hardrive

somber marlin
#

I basically have the logic but can't figure out how to relay that into the python code

cunning monolith
somber heath
#

tkinter has some file/folder selection interface stuff.

round cedar
#

Cuz the arm holding the read and write header over the disc only hover overs by few micrometers

cunning monolith
#

what should I do

round cedar
#

Any human interaction with the arm and u have chance of somehow scratching the surface of the disc

round cedar
#

:v u do need to pay them to recover data for u hehe

somber marlin
#

I guess would be worth sharing with an expert or better than me ?

round cedar
#

Or u could try connect the HDD to a computer with a separate operating system already running on a different drive

cunning monolith
#

actually that hard drive is not mine its of my elder brother and if he need it tomorow i will be gone

cunning monolith
somber marlin
#

probably in the live-coding channel

round cedar
#

It doesn't solve it. Its one of the ways of retrieving data

somber heath
cunning monolith
#

which operating system ?

round cedar
#

R u using that HDD as boot drive

cunning monolith
somber marlin
round cedar
cunning monolith
round cedar
cunning monolith
round cedar
#

:v well u r kind of doomed then

#

: )

#

I got a 9 year HDD idk how it's still working xD

#

Must have been good quality

cunning monolith
round cedar
gentle flint
#

hard drives typically give some warning they're going to fail
SSDs, however, die all at once

cunning monolith
#

I am thinking to perform a operation after 3-4 hours any one wanna join ?

round cedar
#

Nah I wouldn't recommend opening up ur HDD. It's really delicate inside

cunning monolith
round cedar
cunning monolith
#

they are waste I destroyed them with hammer

round cedar
#

O-o bro u r trying to fix it not sledge it with hammer

#

It's not about if u can open it. It's about if u close it back up without messing things up and damaging components like the read/write header

cunning monolith
#

actually I dont need to deal with those

round cedar
#

Wat r u gonna do then?

cunning monolith
round cedar
#

U r gonna move the disc inside the HDD. Ok

cunning monolith
#

it seems ok ?

gentle flint
#

@cunning monolith do not open your hard drive unless you are never going to use it again

#

the dust from the air will probably already damage it

cunning monolith
gentle flint
#

lemme scroll up and read the issue

#

ah

cunning monolith
#

ok

gentle flint
#

is there any important data on the drive?

cunning monolith
#

yup little bit

gentle flint
#

how much are you willing to pay for it

#

to a company

cunning monolith
#

30-40$

gentle flint
#

not sure if they'll do it for that
which city are you in?

cunning monolith
#

india delhi

gentle flint
#

lemme check

round cedar
#

It's should be cheaper in India

cunning monolith
#

yup

whole bear
#

hahahah the car caught fire near here and they called the truck that clean the gutter instead of the fireman, they got sewage in the car to put out the fire

round cedar
#

Bro wot

#

Lmao

#

🤣

whole bear
#

kkkkkkkkkkkk

gentle flint
#

can't find any companies which do it for that price

#

and anyway all the companies I found looked like scams

cunning monolith
cunning monolith
gentle flint
#

is it actually clicking?

#

or just beeping

cunning monolith
cunning monolith
gentle flint
#

is this an external usb drive?

cunning monolith
gentle flint
#

ohhhhh

somber heath
#

🦜

gentle flint
#

I thought it was an internal sata drive

#

do you have the model number

cunning monolith
#

it m2 2tb

#

maxtor m2 2tb

gentle flint
#

also I assume you tried it in a different usb port

cunning monolith
#

yup

gentle flint
cunning monolith
#

ya its m3

gentle flint
#

do you have a laptop or a desktop

cunning monolith
gentle flint
#

do you have a spare sata port

cunning monolith
gentle flint
#

with a bit of luck it might work if you take the hard drive out of the usb enclosure and plug it directly in the sata port

#

making sure to leave the hard drive itself closed so no dust gets in

cunning monolith
gentle flint
#

lemme first check if it even has a sata port

cunning monolith
#

ok

gentle flint
#

More info about this fix You can find on my webstie: https://frostytech.eu/en/complete-disassembly-and-fix-maxtor-m3/

Screwdriver: Five-pointed star 1.2 and Torx T6.
My disk fell on the floor and then did not want to run.
When I tried to start the disk, I only heard the beeping noise.
It's probably the motor is trying to start the platters and...

▶ Play video
#

if you follow this up to 1:15

#

but no further!

#

you can then connect it to a sata port

#

it's worth a try

#

mount it read-only

cunning monolith
#

ok

#

and if it don't ?

gentle flint
#

if it doesn't work you mean?

cunning monolith
#

ya

gentle flint
#

toss it

cunning monolith
#

operation ?

gentle flint
#

you're not getting it fixed for 60

cunning monolith
#

how much will I get it fixed for ?

gentle flint
#

probably the read write head will need replacing
which needs a cleanroom and special tools
which is expensive

gentle flint
#

and even with the head replaced it still might not work

#

all forms of storage die eventually
it's just a fact of life
only solution is to have multiple backups of everything

cunning monolith
#

I think operation is last option

gentle flint
#

operation?

cunning monolith
#

DISCLAIMER: Please consult a technician if you have a hard drive with delicate data.

▶ Play video
gentle flint
#

what do you mean with that

cunning monolith
#

2:20-22:30

gentle flint
#

oh

cunning monolith
#

2:20-2:30

gentle flint
#

well, if it doesn't work with direct sata mounting you may as well try that

#

since it'll be as good as dead anyway

cunning monolith
gentle flint
#

for the reasons I listed earlier

cunning monolith
gentle flint
#

you're not gonna have a company fix it for an affordable price

cunning monolith
gentle flint
#

so take off the usb enclosure like in the video I sent you up to 1:15 only
then try mounting it via sata, read-only
(you might have to restart for that)
and if that doesn't work do what you want

gentle flint
cunning monolith
gentle flint
#

doubt it

#

try sata mounting first

cunning monolith
gentle flint
#

afterwards it'll just be a standard sata hard drive so you can take it to them like that

cunning monolith
gentle flint
#

you don't need a clean room for taking off the usb enclosure

gentle flint
cunning monolith
gentle flint
#

no

cunning monolith
#

ok

gentle flint
#

you can't do it without a custom-built room
I mean, you're also full of dust
your chair is full of dust
your vacuum sends out lots of dust

#

etc

cunning monolith
#

yes you are right

cunning monolith
gentle flint
#

professional data recovery services will have a cleanroom
I don't know how professional these people are

cunning monolith
#

Thanks for the solution I will try it

gentle flint
#

good luck!

#

I had 3 hard drives fail about 9 months ago

#

it was no fun

#

so I do feel your pain

bronze quest
#

hello 🙂

jolly isle
#

why cant i talk

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.

jolly isle
#

i like dnd

#

too

flint bison
#

dnd?

jolly isle
#

dngeons and dragons

bronze quest
#

sorry did not get you

#

okay I was away to get water

#

yes

cunning monolith
cunning monolith
gentle flint
#

they were clicking

#

and beyond all hope

rugged root
#

@hollow osprey

#

I'm saying toss your code here

hollow osprey
#

aight

#

wait a bit

#

so

#

i upload ^^'

rugged root
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

hollow osprey
#

ah

#

!code

#

code

#

how ? x)

rugged root
hollow osprey
#
def calculate_quarters():
        quarters = 0
        n_cents = quarters
        n_cents = get_cents()
        for i in range(n_cents):
            n_cents = n_cents / 0.25
            if quarters >= 0:
                print("Owed: ", float(n_cents), "coins")
                return quarters
            if n_cents != quarters:
                return calculate_dimes

def calculate_dimes():
        dimes = 0
        n_cents = dimes
        n_cents = get_cents()
        for i in range(n_cents):
            n_cents = n_cents / 0.1
            print("Owed: ", float(n_cents), "coins")
            if dimes >= 0:
                return dimes
            if n_cents != dimes:
                return calculate_dimes

def calculate_nickels():
        nickels = 0
        n_cents = nickels
        n_cents = get_cents()
        for i in range(n_cents):
            n_cents = n_cents / 0.05
            print("Owed: ", float(n_cents), "coins")
            if nickels >= 0:
                return nickels
            if n_cents != nickels:
                return calculate_pennies

def calculate_pennies():
        pennies = 0
        n_cents = pennies
        n_cents = get_cents()
        for i in range(n_cents):
            n_cents = n_cents / 0.01
            print("Owed: ", float(n_cents), "coins")
            if nickels >= 0:
                return pennies
            if n_cents != pennies:
                return calculate_pennies



def get_cents():
    while True:
        try:
            n = int(input("Cents owed: "))
            if n < 0:
                return calculate_quarters
            if n == 0:
                print ("you don't need coins.")
                break
            elif n > 0:
                break
        except ValueError: print("must be a int")
    return n




calculate_quarters()
```py
glad sandal
#

I want join vc

hollow osprey
#

c'mon 🙂

glad sandal
#

But at hotel restaurant

hollow osprey
#

sad

rugged root
#

I mean you can still listen in

glad sandal
#

Ye

#

Ima do that

hollow osprey
#

but what should i do to fix ?

#

float

glad sandal
#

Had to leave

hollow osprey
#

i want to put as user input

#

0.2

#

or smth like this

glad sandal
#

Can’t hear u guys speaking

#

I’ll join when I’m back home! :)

rugged root
#

Sounds good

hollow osprey
#

?

glad sandal
#

I have some stuff I have saved to talk about!

hollow osprey
#

i sucks sry

glad sandal
#

Cya

#

Won’t disturb

hollow osprey
#

so i use this ?

#
user_input = input()
user_float = float(user_input)
#

but before

#

?

rugged root
#

!e

print(1 + 2.0)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

3.0
whole bear
#

😂 ahahah

hollow osprey
#

it won't work

summer ocean
hollow osprey
#

it's not working

hollow osprey
cunning monolith
#

!eval
while True:
print("Hemlock Loves Butterfly")

wise cargoBOT
#

@cunning monolith :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).

001 | Hemlock Loves Butterfly
002 | Hemlock Loves Butterfly
003 | Hemlock Loves Butterfly
004 | Hemlock Loves Butterfly
005 | Hemlock Loves Butterfly
006 | Hemlock Loves Butterfly
007 | Hemlock Loves Butterfly
008 | Hemlock Loves Butterfly
009 | Hemlock Loves Butterfly
010 | Hemlock Loves Butterfly
011 | Hemlock Loves Butterfly
... (truncated - too many lines)

Full output: too long to upload

summer ocean
#

you can find the link on their website

hollow osprey
#

no cause shit of honesty

#

scary as f

#

:/

summer ocean
hollow osprey
#

question bro

summer ocean
hollow osprey
#

the error is that i can't use float number as int

#

for the calculation

#

no cause shit of honesty

wide fractal
#

Hi >3

#

am programmer

cunning monolith
wide fractal
#

شرفو چونن

#

دگزره

buoyant topaz
#

Supp ppl

cunning monolith
#

float is like 10.00 something that's different data type but integer is another datatype which deals with integers like -1,1,2 etc

wide fractal
#

help😅

buoyant topaz
#

Help in ?

wide fractal
#

Learning programming
Programming areas

#

کاک امیر چاکیییی

glad sandal
#

Hello

buoyant topaz
#

Which language?

wide fractal
rugged root
#

The parrot is back from the dead bringing countless new insults for your disposal, Sir! Remember that silly game that parted lovers, destroyed families and turned friends into enemies? Here’s its successor that does even more, certainly with more style and more variety. And I have proof! This time you can spread affront to everyone in the world ...

Price

$1.99

Recommendations

2974

Metacritic

64

▶ Play video
#

Left4Dead is pretty relaxing, at least to me

ebon junco
#

Why cant i import a module from a root folder in my tests ?

rugged root
#

!source

wise cargoBOT
vast fog
rugged root
#

@ebon junco #unit-testing will end up knowing more than I can offer in a reasonable amount of time

ebon junco
#

@rugged root - I will check in that channel

rugged root
lavish rover
cunning monolith
#

@gentle flint that sata mounting didn't worked 😭

hearty thistle
#

tfw you don't know how to find all substrings from a string

#

Hello @whoever said that

#
      substrings = []
      for i in range(len(s)):
          for j in range(len(s)):
              substrings.append(s[i:j])
      return substrings
#

tfw this doesn't work

hearty thistle
#

gtg, interesting talk.

somber heath
#

@round cedar Your audio is severely fragmenting.

#

Like you have a poor wifi or something.

round cedar
#

:V sadge

#

i am reading the chat i was gonna say

#

xd

somber heath
#

Hm.

#

It might be my connection.

#

It is raining here.

#

Rain can sometimes screw with the internet.

round cedar
#

:u oh

somber heath
#

@robust quiver I didn't hear any of that, but I think it's possibly me.

#

I can hear fine, now.

#

ctrl-r

round cedar
somber heath
#

@vast needle Or you know, just this.

#

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

robust quiver
#

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

ebon sandal
#

FALSE
&&
(
TRUE
||
TRUE
)
|
TRUE
&&
TRUE

somber heath
#

I'm confused.

ebon sandal
#

FALSE and ( TRUE or TRUE ) or TRUE and TRUE

somber heath
#

!e py print(False and (True or True) or True and True)

wise cargoBOT
#

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

True
somber heath
#

I've seen a trick with "banana"

#

nan Not a number

#

The stringification of the returns

#

Well you just said you were dealing with strings.

#

In computer science, an operator precedence parser is a bottom-up parser that interprets an operator-precedence grammar. For example, most calculators use operator precedence parsers to convert from the human-readable infix notation relying on order of operations to a format that is optimized for evaluation such as Reverse Polish notation (RPN)....

robust quiver
#

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

round cedar
#

@dull oasis here

robust quiver
#

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

robust quiver
warped raft
#

hello @somber heath

fickle crater
#

Hello @cunning monolith

cunning monolith
#

Hi

fickle crater
#

whta rae you working on?

cunning monolith
#

currently nothing just installing arch linux

fickle crater
#

oh ok, i was working on a hangman project

cunning monolith
#

That's great

#

By the what this project is about ?

robust quiver
#

😂

#

see what i did there

fickle crater
#

jk

robust quiver
#

Xd

sly hedge
#

for sure

#

i am newbie here

#

ohh i need to chat at least 50 message and more roles

#

KK thanks dude

#

have a good day, yeah thanks dude 🙂

fiery bone
#

i wanna ask you guys a tip

ionic lake
#

I need help.

#

Can you help me? I wanna be able to speak.

#

@zenith radish @somber heath

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.

ionic lake
#

That's for three days

#

I need help now.

#

I only just joined.

#

Gimme a sec

#

ValueError: File format b'\x93NUM' not understood. Only 'RIFF' and 'RIFX' supported.

#

It's Google Colab

#

The code wouldn't work otherwise without the wavs being converted to npy

#

I didn't make the code.

#

I only am trying to run it.

#

Yes, it's google colab.

#

Both the wavs and npy are in a set folder, the gta spectrograms are being made based on a checkpoint.pt file

#

I think.

#

How would I be able to make it in the correct format? It said something about only RIFF and RIFX being supported.

warm vapor
#

blue keycaps LP?

#

LMAO

somber heath
#

Divide and conquer.

ebon sandal
#

@formal lintel how desperate you gotta be to get banned from TINDER?

#

🤣

terse needle
#

!e [print(i) for i in range(1, 12)]

wise cargoBOT
#

@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | 6
007 | 7
008 | 8
009 | 9
010 | 10
011 | 11
terse needle
#

cursed uses of list comps

ebon sandal
#

!e [print(i) for i in range(1, 112)]

wise cargoBOT
ebon sandal
#

damn

#

it would be posted there

terse needle
#

!e print("```")

wise cargoBOT
#

@terse needle :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     \
003 |      ^
004 | SyntaxError: unexpected EOF while parsing
ebon sandal
#

!e [print(i) for i in range(1, 12000000)]

wise cargoBOT
#

@ebon sandal :x: Your 3.10 eval job has completed with return code 143 (SIGTERM).

001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | 6
007 | 7
008 | 8
009 | 9
010 | 10
011 | 11
... (truncated - too many lines)

Full output: too long to upload

terse needle
#

!e print(chr(96)*3)

wise cargoBOT
vast fog
lavish rover
#
first_non_repeating_letter=lambda string:([s for s in string if string.lower().count(s.lower())==1]+[""])[0]
lime shard
#

was that a bot?

#

holy shit

vast fog
#
def first_non_repeating_letter(string):
    if not string:
        return ''
    for c in string:
        if string.count(c) == 1:
            return c
    return ''
ebon sandal
#

u talking about me?

lime shard
#

Yeah lmao

ebon sandal
#

🥲

lime shard
#

Can u do that again?

ebon sandal
#

🥲

lime shard
#

pls

ebon sandal
#

😕

lime shard
#

That was cool

ebon sandal
#

i was just giving you information

#

😦

lime shard
#

Yeah

#

But the tone

#

Was like robot

#

Sounded awesome

ebon sandal
terse needle
#
def first_non_repeating_letter(string):
    s = string.lower()
    
    for i in range(len(s)):
        if s.count(s[i]) == 1:
            return string[i]
        
    return ""
ebon sandal
#

i am human

#

dont worry

stark crow
#

@ebon sandal yeah

vast fog
#
def first_non_repeating_letter(string):
    r = [c for c in string if string.lower().count(c.lower()) == 1]
    return (r[0] if len(r) != 0 else '') if string else ''
terse needle
#
def first_non_repeating_letter(string):
    s = string.lower()

    for (a, b) in zip(string, s):
        if s.count(b) == 1:
            return a

    return ""
whole bear
#
firstNonRepeatingLetter = s => (s.match(/(.)(?<!\1.+)(?!.*\1)/gi) || [''])[0]

idk if js/regex qualifies for this but still

#

check channel desc

#

you are in the wrong channel lad

#

i m not certain if you can see it cause like i dont have it visible on my end

#

the channel is hidden to people who already have voice-verified

#

[#voice-verification](/guild/267624335836053506/channel/764802555427029012/)

#

try typing this ^

#

yeah

terse needle
cunning monolith
#

This is for windows application right ?

terse needle
#

no

gentle flint
lavish rover
somber heath
#

I think it should work. I did a bit of editing in transfer and bullshit on my phone.

#

Okay, small error apparently, but easy fix.

viral compass
#

sorry about making noise earlier

#

was trying to get my bluetooth working on my PC

somber heath
#

@viral compass There was no noise.

ebon mist
#

yo

#

hay can you help me ?

#

im trying to install a .vsix in my ide
and i don't know how
my ide is vscode

#

is for in game scrips

ebon mist
#

thank you

#

ctrl what??

lavish rover
bronze quest
#

hello OpalMist

#

yes

lavish rover
#

line 116:

        self.data-"position_delta"][target_b] *= np.random.normal(0, 5, kb)

to

        self.data["position_delta"][target_b] *= np.random.normal(0, 5, kb)
                 ^
bronze quest
#

it is awesome

#

okay

#

🙂

bronze quest
#

wow

lavish rover
#

@whole bear

tepid edge
#

    def do_dfs(self):
        self.current_node.visit()
        self.visit_stack.append(self.current_node)
        # we don't need to check if there's a connection to end if we're moving
        # from a revisitable node
        if not self.visit_stack[-1].revisitable and not self.path_exists_to_end():
            return
        for neighbor in self.current_node.visitable_neighbors():
            # don't want to keep counting after we have visited end node
            # because it's not revisitable
            if neighbor == self['end']:
                self.count += 1
                if self.log_paths:
                    self.add_path()
                continue
            self.current_node = neighbor
            self.do_dfs()
        if self.current_node == self['start']:
            return
        self.current_node.unvisit()
        self.current_node = self.visit_stack.pop()

#
class CaveNode():
    def __init__(self, name: str, revisitable: bool, connected_nodes: Set[bool]=None) -> None:
        self.name = name
        self.revisitable = revisitable
        self.connected_nodes = connected_nodes if connected_nodes else set()
        self.was_visited = False

    def __hash__(self):
        return self.name.__hash__()
    
    def __eq__(self, other: CaveNode):
        return self.name == other.name

    def is_connected_to(self, other:CaveNode):
        return other in self.connected_nodes

    def connect(self, other: CaveNode):
        self.connected_nodes.add(other)
        other.connected_nodes.add(self)

    def can_be_visited(self):
        return self.revisitable or not self.was_visited
    
    def __str__(self) -> str:
        return self.name

    def __repr__(self) -> str:
        return self.name

    def visit(self):
        if not self.can_be_visited():
            raise Exception(f"Attempted to visit non visitable node {self}")
        
        self.was_visited = True

    def unvisit(self):
        self.was_visited = False

    def visitable_neighbors(self):
        for node in self.connected_nodes:
            if node.can_be_visited():
                yield node
lavish rover
vast fog
#
def digital_root(n):
    r = sum([int(i) for i in str(n)])
    while len(str(r)) > 1:
        r = sum([int(i) for i in str(r)])
    return r
#
def accum(s):
    return "-".join(x.capitalize() for x in "".join([c*(i+1)+'-' for i,c in enumerate(s)])[:-1].split("-"))
vast fog
#
def odd_or_even(arr):
    return ['odd','even'][sum(arr)%2==0]
vast fog
#
def find_uniq(arr):
    for i,n in enumerate(arr):
        if i == 0:
            if n != arr[i+1]:
                if n != arr[i+2]:
                    return n
                return arr[i+1]
        if n != arr[i+1]:
            return arr[i+1]
lavish rover
#

!e

odd_or_even=lambda x:'eovdedn'[sum(x)%2::2]
print(odd_or_even(range(9)))
#

@vast fog cursed solution

teal turtle
#

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

round cedar
#

!voiceverify

#

!verifyvoice

whole bear
#

Overhere

#

Sorry didnt know

#

Im still confused

#

Im.new

#

At coding

#

I started watching a course gotta finish it

#

I dont get what it means tho

#

(" ")

#

I know

#

I just dont get booleon

#

The true or false

#

Oh ok

#

Print ("Hello, World")

#

A=B true

#

True

#

Ohhh

#

Wdym ur bad at explanation

#

Thanks u helped

#

So 1>0 = False

round cedar
#

no

#

1 is always greater than 0

whole bear
#

Its an examole

#

Ohhhh

round cedar
#

so that expression is true

whole bear
#

Si it has to be true

#

Okay

#

So 100 <500 =True

#

Okay

#

So its like saying facts

#

In code

#

So why do u need to say that

round cedar
whole bear
#

Good explaining this

#

He said it

#

@somber heath i didnt rlly get u there i was distracted and wssnt understanding but thanks for ur time

#

@round cedar Thanks dude

#

Haha (forget i laughed) i forced that laugh but it was funny

round cedar
whole bear
#

@round cedar u watch too much flinstones

#

Martial artists

#

Karate

round cedar
#

lmao

whole bear
#

So ehat codes do yall do

whole bear
#

Is puthon better thsn jaava

#

Java

somber heath
#

!e ```py
if True:
print("A")

if False:
print("B")```

wise cargoBOT
#

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

A
whole bear
#

!e

wise cargoBOT
#
Missing required argument

code

whole bear
#

!e true

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'true' is not defined. Did you mean: 'True'?
somber heath
#

!e ```py
if 0:
print("A")

if 1:
print("B")```

wise cargoBOT
#

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

B
whole bear
#

!e if True:
print ("Opal Mist")

if False:
print ("Bikgamer")

#

Hig

#

Huh

somber heath
#

!e py print(1 == 1)

wise cargoBOT
#

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

True
#

@whole bear :white_check_mark: Your 3.10 eval job has completed with return code 0.

Opal Mist
somber heath
#

!e py print(5 + 5 * (1 + 2))

wise cargoBOT
#

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

20
whole bear
#

!e print ("hello world")

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

hello world
austere onyx
#

why cant i speak?

round cedar
#

u need voice verify

whole bear
#

Ohh u can do math with code?

#

Or no @somber heath

austere onyx
#

how do i get voice verified?

somber heath
#

5 + 5 * (1 + 2)
5 + 5 * 3
5 + 15
20

whole bear
#

Did u place the answer

austere onyx
#

yeah computers are based off maths so obviously you can

whole bear
#

Ohh

#

!e
If print 20= True

If Print 21= False

5 + 5 * (1 + 2)
5 + 5 * 3
5 + 15
21

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 4
002 |     =20
003 |     ^
004 | SyntaxError: invalid syntax
austere onyx
#

btw, when you see
7/2+8

you should look at the / sign as the * sign

round cedar
whole bear
#

!e If print 20= True
If Print 21= False

5 + 5 * (1 + 2)
5 + 5 * 3
5 + 15
21

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     If print 20= True 
003 |        ^^^^^^^^
004 | SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
whole bear
#

How would i do this

#

!e If print 20= True
If Print 21= False

5 + 5 * (1 + 2)
5 + 5 * 3
5 + 15
21

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     If print 20= True 
003 |        ^^^^^^^^
004 | SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
austere onyx
#

aghh i've been on this server for a few weeks but i left it and i started with python again and decided to join right now

round cedar
#

u r missing proper syntax

#

print()

whole bear
#

Ohh

#

But they are numbers

round cedar
#

u need to put them inside brackets and use single line

somber heath
#

1 == 1 and 5 == 5 + 5
True and 5 == 5 + 5
True and 5 == 10
True and False
False

round cedar
#

!e
print(5 + 5 * (1 + 2))
print(5 + 5 * 3)
print(5+15)

wise cargoBOT
#

@round cedar :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 20
002 | 20
003 | 20
whole bear
#

!e If print ("20= True") If Print "21= False"5 + 5 * (1 + 2)5 + 5 * 35 + 15 21

#

Ohh

#

!e if True = 20
print(5 + 5 * (1 + 2))
print(5 + 5 * 3)
print(5+15)

round cedar
#

also use proper indentation

austere onyx
#

can anyone help me with this code?

#

why does it not recognize usr

#

i do that with int

#

xd

#

okay so lets say in line 13 why does it not recognize usr?

#

OHHH

#

what's the difference between + and , ?

#

in the print function

whole bear
#

!verify voice

somber heath
#

!e py a = "Aaa" b = "Bbb" c = a + b print(c)

wise cargoBOT
#

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

AaaBbb
somber heath
#

String concatenation.

#

!e py print("A", 1, 5, "beta", True)

wise cargoBOT
#

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

A 1 5 beta True
somber heath
#

!e ```py
def func(*args):
print(args)

func("A", "1", 5)```

wise cargoBOT
#

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

('A', '1', 5)
austere onyx
#

!e
Print('Hello')

#
print('hello','there','person')
somber heath
#

!e py age = 15 name = "Grorge" text = "My name is " + name + " and I am " + str(age) + " years old." print(text)

wise cargoBOT
#

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

My name is Grorge and I am 15 years old.
somber heath
#

!e py age = 15 name = "Porger" text = f"My name is {name} and I am {age} years old." print(text)

wise cargoBOT
#

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

My name is Porger and I am 15 years old.
austere onyx
#

I didn't understand exactly what f"text" does

somber heath
#

!e py age = 15 name = "Porger" text = "My name is {name} and I am {age} years old." print(text)

wise cargoBOT
#

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

My name is {name} and I am {age} years old.
austere onyx
#

does the f stands for something?

#

so let's say i got an integer and a string inside, would it just print them as strings?

somber heath
#

!e "" + 5

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | TypeError: can only concatenate str (not "int") to str
austere onyx
#

!e

age = float(18)
name = 'numi'
txt1 = f"Hello, I'm {name}, and I am {age}."
print(txt1)
wise cargoBOT
#

@austere onyx :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, I'm numi, and I am 18.0.
austere onyx
#

ohhhh

#

wow

#

okay, this is very cool

dark mural
#

!e

print(f'{3+4+5=}')
wise cargoBOT
#

@dark mural :white_check_mark: Your 3.11 eval job has completed with return code 0.

3+4+5=12
austere onyx
#

!e

age_year = input('Age in years: ')
age_months = input('Months passed since your birthday: ')
name = input('name: ')
txt1 = f"Hello, I'm {name}, and I am {age_year} years and {age_months} months old."
print(txt1)
wise cargoBOT
#

@austere onyx :x: Your 3.10 eval job has completed with return code 1.

001 | Age in years: Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
somber heath
#

!e py print(f"{1 + 1}")

wise cargoBOT
#

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

2
whole bear
#

!e
print(f"{1 + 1}")

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
dark mural
#

my code is so bad i only follow rule of 🖕

somber heath
#

!e py a = 5 print(f"This is how it works: {a = }. Pretty cool!")

wise cargoBOT
#

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

This is how it works: a = 5. Pretty cool!
austere onyx
#
age_year = input('Age in years: ')
age_months = input('Months passed since your birthday: ')
name = input('name: ')
txt1 = f"Hello, I'm {name}, and I am {age_year} years and {age_months} months old."
print(txt1)

i think this is a nice way of using this

#

%"asdasdasd"

#

?

round cedar
#

!e
a = "apples"
print("%s", a)

wise cargoBOT
#

@round cedar :white_check_mark: Your 3.11 eval job has completed with return code 0.

%s apples
round cedar
#

!e
a = "apples"
print("%", a)

wise cargoBOT
#

@round cedar :white_check_mark: Your 3.11 eval job has completed with return code 0.

% apples
dark mural
#

!e

def stuff(fmt):
  print(fmt.format(4, 5, 6))

stuff("{}-{}-{}")
stuff("{} @ {} @ {}")
stuff("{}{}{}")
wise cargoBOT
#

@dark mural :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 4-5-6
002 | 4 @ 5 @ 6
003 | 456
somber heath
#

!e py text = "Apples: {}, pears: {}".format(5, 6) print(text)

wise cargoBOT
#

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

Apples: 5, pears: 6
dark mural
#

!e

f='f={};print(f.format(repr(f)))';print(f.format(repr(f)))
wise cargoBOT
#

@dark mural :white_check_mark: Your 3.11 eval job has completed with return code 0.

f='f={};print(f.format(repr(f)))';print(f.format(repr(f)))
austere onyx
#

how do i round down a float?

#

lets say 4.6 to 4

#

no negative numbers

#

just for age

somber heath
#

!e py a = 5.5 b = int(a) print(b)

wise cargoBOT
#

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

5
austere onyx
#

how do i check if lets say

#

a text contains certain letters?

#

how do you write it?

somber heath
#

!e py print("a" in "abc")

wise cargoBOT
#

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

True
austere onyx
#

lets say i want to see if there's the alphabet in a string

#

yeah

#

this is what im doing, the idea is to filter the alphabets in the years section

#

probably not

somber heath
#

!e py s = set("abbabbbab") print(s)

wise cargoBOT
#

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

{'a', 'b'}
somber heath
#

!e py a = {1, 2} b = {3, 2, 1} print(a.issubset(b))

wise cargoBOT
#

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

True
austere onyx
#

yup, ive realised that

#

A != a

somber heath
#

!e py text = "AppLe" print(text.lower())

wise cargoBOT
#

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

apple
somber heath
#

!e py print({1, 3, 2} == {1, 2, 3})

wise cargoBOT
#

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

True
somber heath
#

!e py result = all([True, True, True]) print(result)

wise cargoBOT
#

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

True
somber heath
#

!e py result = all([True, False, True]) print(result)

wise cargoBOT
#

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

False
austere onyx
#

i dont get how i can filter out the ABC no matter what the order is

#

ohh wait

#

I wrote

#

set["asdeasd"] whatever

#

i thought there was no difference between [ and (

#

yeah

#

the code is not working

#

i dont really know what the heck this is

#

xd

#

what is the time right now for you?

#

well you've helped me a lot

#

okay, have a nice day

#

thank you bik and opal o/

ruby kayak
#

!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 code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*

lavish rover
frozen owl
#

my screen time 2 days ago i have to touch grass + didn't see the sun for 69 years

glad sandal
glad sandal
#

bruh

lethal thunder
frozen owl
#

13.5 seconds to generate 5 pictures

somber heath
frozen owl
shy parrot
sweet lodge
#

@rugged root
What are the sfc and DISM commands again?

whole bear
# shy parrot

are you trying to make a new file and it doesn't let you?

sweet lodge
#

Oh hi sir DogWave

rugged root
#
sfc /scannow; dism /online /cleanup-image /restorehealth; sfc /scannow
sweet lodge
#

Me too, well, by @viscid lagoon s heart, at least

whole bear
sweet lodge
#

You guys are awake?

rugged root
#

@whole bear Noooooooooooooo thou hast abandoned me

frozen owl
#

what does point 4 mean

frozen owl
whole bear
woeful salmon
#

👋

rugged root
#

How goes it

frozen owl
frozen owl
sweet lodge
#

"blue green red"

woeful salmon
#

stressful as alot of work and i wanna get it done fast + fireworks in background for independence day making brain hurt

frozen owl
frozen owl
frozen owl
whole bear
rugged root
#

You doing well?

whole bear
# rugged root You doing well?

yesss finally tested negative for covid on sunday.....also have my first final exam tomorrow ....mixed emotions
How have you been?

rugged root
#

Alive, although sleep has been rather garbage as of late

whole bear
rugged root
#

Already take 5mg along with my Trazadone. It's an issue of quality of sleep, not quantity

whole bear
rugged root
#

Weather is my trigger, mainly

#

Pressure fronts coming in and out

frozen owl
#

Purchasing power parity (PPP) is the measurement of prices in different countries that uses the prices of specific goods to compare the absolute purchasing power of the countries' currencies, and, to some extent, their people's living standards. In many cases, PPP produces an inflation rate equal to the price of the basket of goods at one locati...

stray flax
#

Hi
Any indians here? Dm me about this
I will be doing Msc and BE Computer Science
Should I also enroll in Btech By IIT Madras?

#

@cyan stirrup
Wrong

#

The reason is pressure

#

For high pressure you need more structural integrity

#

Which is hard to have in bikes etc

#

Without making the engine heavier

somber heath
#

Data aggravation specialist.

sweet lodge
#

Embrace Git CLI!

#

You have to stage your files first

#

git add -A

#

git commit -sm "<message>"

#

git push

#

done

#

Message is not optional

#
PS C:\Users\BradleyReynolds\dev\shenanigansd\scratchpad> git commit -smh "<message>"
error: pathspec '<message>' did not match any file(s) known to git
rugged root
#

@somber heath opal opal

#

Opal

rugged root
#

My hero's current chest armor

#

"Theme Parka"

rugged root
sweet lodge
#

echo black . >> .pre-commit-hooks.yml

#

Done

amber raptor
cyan stirrup
#

Hemlock is a hunk

sweet lodge
#

Make sure your entire source stays formatted

amber raptor
#

Get the hell out

#

Commit hooks are awful

#

I might want to commit to save something before changing it

sweet lodge
#

--no-verify

#

Fair enough

amber raptor
#

Do it on PR build

#

Then squash it if 20 commits bothers you.

sweet lodge
#

PyDis runs the pre-commit checks inside the CI, when I was working on @viscid lagoon, I just didn't install them and let the CI do it. It was kind of nice

#

Why are you on a HTTP site?

#

HTTPS or go home

rugged root
#

I swapped it to HTTPS

sweet lodge
#

NO

#

Windows pods are worse than pre-commit

amber raptor
sweet lodge
#

BTW @amber raptor - How long does it take you to setup a new devcontainer?

rugged root
sweet lodge
#

hashicorp

rugged root
peak copper
#
sweet lodge
#

Since when do I have a beard?

#

@rugged root What're you trying to say?

cyan stirrup
#

all cocks have beards

rugged root
#

They have better beards than me

peak copper
vast fog
#
    def get_pixel_brightness(rgb):
        """
        Get brightness of pixel color

        Parameters
        ----------
        rgb : tuple (int(r), int(g), int(b))
            RGB tuple representing pixel color

        Returns
        -------
        int
            Brightness of pixel from 0-255
        """
        r_px, g_px, b_px = rgb
        return int(sum([r_px, g_px, b_px]) / 3)
honest pier
#

sum(rgb)

vast fog
#

LOL

#

🤦‍♂️

peak copper
trail mural
#

hi mr hemlock

whole bear
#

Mr.Hemlock can you teach me code

#

html,css or javascript

#

i wanna start web developing

rugged root
whole bear
#

thx

#

i cant

#

im new

gentle flint
#

pew pew pew

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
#

?

#

thx for helping buye

#

bye

round cedar
#

Or try that Mr. Hemlock recommend

round cedar
rugged root
#

Sure

terse needle
#
odd:
        push    rbp
        mov     rbp, rsp
        mov     DWORD PTR [rbp-4], edi
        mov     edx, DWORD PTR [rbp-4]
        mov     eax, edx
        sar     eax, 31
        shr     eax, 31
        add     edx, eax
        and     edx, 1
        sub     edx, eax
        mov     eax, edx
        pop     rbp
        ret
odd:
        push    rbp
        mov     rbp, rsp
        mov     DWORD PTR [rbp-4], edi
        mov     eax, DWORD PTR [rbp-4]
        and     eax, 1
        pop     rbp
        ret
round cedar
#
sour willow
#

wassup guys

#

@rugged root can i share screen?

#

coding

#

what?

#

ye ok

#

so can i share screen?

rugged root
#

!stream 953699867841159268

wise cargoBOT
#

✅ @sour willow can now stream until <t:1660585536:f>.

sour willow
#

i closed intelijj

#

once second i should open it

rugged root
#

!pep 582

wise cargoBOT
#
**PEP 582 - Python local packages directory**
Status

Draft

Python-Version

3.12

Created

16-May-2018

Type

Standards Track

rugged root
#

!pep 517 621

wise cargoBOT
#
**PEP 517 - A build-system independent format for source trees**
Status

Final

Created

30-Sep-2015

Type

Standards Track

rugged root
#

!pep 621

wise cargoBOT
#
**PEP 621 - Storing project metadata in pyproject.toml**
Status

Final

Created

22-Jun-2020

Type

Standards Track

rugged root
sweet lodge
#

Dart is not Java

#

Made by Google

rugged root
#

Handy

sweet lodge
rugged root
#

I was just mentioning stuff that PDM did

sweet lodge
#

Kind of defeats the whole reason for it existing

rugged root
#

Likely people bitching

#

Annoying

sweet lodge
#

What would they bitch about?

#

They're the ones that decided to go out of their way to use the niche system

#

Yeah, you can even do that in blocks, so the block will return the value

rugged root
sweet lodge
#

Lexxer!

#

AST!

rugged root
sweet lodge
#

You're interrupting

#

And we do Python here

rugged root
lavish rover
#

@rugged root ❤️

rugged root
#

I'm not 100% wrong. I can justify it

lavish rover
#

Oh no I get why you would think that, but there's some important subtle difference with regards to semantics on taking references

sweet lodge
#

"[...] You're using a booored value [...]"

#

Even your values are bored of you

rugged root
lavish rover
#

fair enough

rugged root
gentle flint
sweet lodge
#

Nice and small

#

Sure
Blame the eyes

#

This is still a Python server

#

We still do Python here

rugged root
#

God damn it

#

I'm looking through Rust again...

#

I can't stop language hopping

wise cargoBOT
#

Objects/longobject.c line 21

class int "PyObject *" "&PyLong_Type"```
wise cargoBOT
#

Objects/longobject.c line 1

/* Long (arbitrary precision) integer object implementation */```
sweet lodge
#

It does agree it's arbitrary

hexed stratus
#

longs would be used for large byte data

sweet lodge
hexed stratus
#

Does anyone know how to bypass the cv2.imshow() error on gcollab?

sweet lodge
#

Thinking is overrated

muted salmon
#

👋

rugged root
#

How goes it

#

@faint ermine same color?

faint ermine
#

nope

rugged root
#

It's actually not terrible

faint ermine
#

thats not the mouse i have

rugged root
#

Oh no sorry

#

Didn't mean to reply with that

muted salmon
#

Lol

rugged root
#

Was wondering how you were, then laund threw me off

muted salmon
#

I'm good thanks 🙂

rugged root
#
not (A or B) = (not A) and (not B)
not (A and B) = (not A) or (not B)
glad sandal
#

Swedish verboof

gentle flint
#

mhm

faint ermine
#

w h a t

lavish rover
#

what, you put in a line for inline

#

how else would you do it

faint ermine
#

no but like

#

the fact it can liteally inline functions for me

muted salmon
#

Any way I can get voice verified sooner :PP

faint ermine
#

not really, having a text convo is the best way

muted salmon
#

Damn

rugged root
#

!stream 457362690323644466

wise cargoBOT
#

✅ @toxic hare can now stream until <t:1660595775:f>.

rugged root
#

@glad sandal What were you asking?

#

I thought you said car bomb

muted salmon
#

@glad sandal what do you do with python?

austere linden
#
"""
Write a Python Programming Language program to compute the greatest common divisor (GCD) of two positive integers.

The greatest common divisor (GCD) of two nonzero "Integers: a and b", is the greatest positive "Integer: d" such that 
the "Integer: d" is a divisor of both "Integers: a and b"; that is, there are "Integers: e and f" such that "Integer: a 
= de" and "Integer: b = df", and "Integer: d" is the largest such integer. The GCD of the "Integers: a and b" is 
generally denoted as "gcd(a, b)".
"""


def gcd(num_x, num_y):
    num_value = 1

    if num_x % num_y == 0:
        return num_y

    for values in range(int(num_y / 2), 0, -1):
        if (num_x % values == 0) and (num_y % values == 0):
            num_value = values
            break

    return num_value


result1 = gcd(12, 17)
result2 = gcd(4, 6)
result3 = gcd(336, 360)

print("\n" + "The GCD of 12 & 17 is   :", result1)
print("The GCD of 4 & 6 is     :", result2)
print("The GCD of 336 & 360 is :", result3)
rugged root
#

@lavish rover I'm upset that abs() just gets rid of the sign on a number instead of just giving me great abs

#

I feel cheated

lavish rover
#

what do you think of this syntax:

if a != null and b == null { ... }
// to
if a? and not b? { ... }
rugged root
#

Oh for nullables?

lavish rover
#

for pointers yeah

rugged root
#

That's the most common style, right?

lavish rover
#

is it? I don't know if I've seen it anywhere

rugged root
#

One sec

terse needle
#

I believe kotlin does this too

lavish rover
#

cool, so it's a thing people already do, nice

rugged root
#

Yeah

#

Does Rust?

lavish rover
#

pointers? rust?

terse needle
#

rust uses ? for error propagation

lavish rover
#

no you match on the Option type in rust

#

OHH right

toxic hare
#
# number scraper
bargraphdata = []
for counter in range(0,225):
  y = soup.find_all('td', class_="numeric")[counter]
  counter = counter + 1
  numberstrings = y.string

  if (counter == 8) or ((counter - 8) % 9 == 0):
    numberstrings = numberstrings.replace("%","")

  numbers = float(numberstrings)




  print(numbers)
rugged root
#

Gotcha.

whole bear
#

BTW @rugged root uk the topic that we were talking about why i prefer java syntax
is that because it's the language is very restricted the syntax is kinda restricted

#

so

#

and the keywords are more english than python that's why

#

i think it makes more sense

rugged root
#

More English than Python's?

whole bear
#

Yeah I think so

muted salmon
#

Anyone have any cool ML things they're working on?

whole bear
#

for exmaple have you used the awt library? @rugged root

rugged root
#

Is that a Python or Java one

whole bear
#

it's java it was the first graphic library for java

lavish rover
#

@terse needle I also want to have ternaries, but I don't know if I like the cond ? a : b syntax from C

#

any suggestions on a better one?

terse needle
#

hmm

lavish rover
#

or you too, hemlock, any ideas?

#

could do x if cond else b but eh I don't like that the condition goes in the middle

whole bear
rugged root
#

I hate suggesting it but if x then y else z

terse needle
whole bear
#

and the chaining thing makes it obvious the thing that you are talking about where does it come from

rugged root
#

Java just has so much extra clutter, though

whole bear
#

yeah I'm not a fan of that as well but I think that's why the syntax makes more sense to me

#

like seriously when i wrote my first oop in python was like holy shit this bs what the hell is this

but java is so beautiful when making oops

rugged root
#

Fair enough

#

It ends up being preference in the end

#

@toxic hare Would you mind hopping off stream? I'm going to have to head out and for folks with temporary stream perms, I prefer if I'm around the first few times

toxic hare
#

got it

rugged root
#

Cheers

toxic hare
#

no problem mate 👍

terse needle
#
let x = if y > 5 {
    "foo"
} else {
    "bar"
} 
char* x;
if y > 5 {
    x = "foo";
} else {
    x = "bar";
}
lavish rover
#

if y > 5 {
foo();
} else {
bar();
}

terse needle
#

.wa s 99F to C

viscid lagoonBOT
terse needle
#

.wa s 20C to F

viscid lagoonBOT
terse needle
#

!e assert "" is None

wise cargoBOT
#

@terse needle :x: Your 3.11 eval job has completed with return code 1.

001 | <string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
002 | Traceback (most recent call last):
003 |   File "<string>", line 1, in <module>
004 | AssertionError
terse needle
#

!e print(id(None))

wise cargoBOT
#

@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.

139634492842944
toxic hare
#
# number scraper
dictionary = {}

# set names for dictionary
for namecounter in range (0,25): 
  names = soup.select("th a")[namecounter]
  namecounter += namecounter

  if (counter % 9 == 0):
    y = soup.find_all('td', class_="numeric")[counter]
    counter = counter + 1
    numberstrings = y.string

    if (counter == 8) or ((counter - 8) % 9 == 0):
      numberstrings = numberstrings.replace("%","")
    
    numbers=float(numberstrings)

    dictionary.update({names:numbers})
#
IndexError: list index out of range
whole bear
#

guys can anybody help this with problem?

#

@lavish rover can you please help me?

lavish rover
whole bear
#

bruh so

#

nobody wanna help

toxic hare
#
{None: 5.0, 'Nadia Bandy': 5.0, 'Henry Boone': 5.0, 'Sofia Bordenick': 5.0, 'Tess Breen': 5.0, 'Jack Evans': 5.0, 'Isaac Gilchrist': 5.0, 'Hayden H.': 5.0, 'Hugh Hagen': 5.0, 'Rohan Haugen': 5.0, 'Marc Lemery': 5.0, 'Ella Meyer': 5.0, 'Owen Meyer': 5.0, 'Ian Palansky': 5.0, 'Francis Paloma': 5.0, 'Ian Polansky': 5.0, 'Shawn Pourifarsi': 5.0, 'Adrian Quiroz-Nugent': 5.0, 'Leo Renzulli': 5.0, 'Vasa S.': 5.0, 'Nico Schultz': 5.0, 'Aiyla Sheikh': 5.0, 'Oguz Tanatar': 5.0, 'Liam Wagner': 5.0, 'Cedric Wu': 5.0}
whole bear
#

@toxic hare why don't you use a list as an value?

toxic hare
#
name: data data data data
name2: data ....
#
counter = 0
for counter in range (225):
  y = soup.find_all('td', class_="numeric")[counter]
  counter = counter + 1
  numberstrings = y.string

  # removes percentage
  if (counter == 8) or ((counter - 8) % 9 == 0):
    numberstrings = numberstrings.replace("%","")
  # end of removing percentage 
    
  numbers=float(numberstrings)
  print(numbers)
#
# number scraper
dictionary = {}
counter = 0

# set names for dictionary
for namecounter in range (0,25): 
  names = soup.select("th a")[namecounter]
  namecounter += namecounter
  names = names.string


  if (counter % 9 == 0) :
    y = soup.find_all('td', class_="numeric")[counter]
    counter = counter + 1
    numberstrings = y.string
    # removes percentage
    if (counter == 8) or ((counter - 8) % 9 == 0):
      numberstrings = numberstrings.replace("%","")
    # end of removing percentage 
    numbers=float(numberstrings)
    print(numbers)
    
  dictionary.update({names:numbers})
print(dictionary)
terse needle
#
# number scraper
dictionary = {}

# set names for dictionary
for namecounter in range(0, 25): 
  dictionary[soup.select("th a")[namecounter].string] = soup.find_all('td', class_="numeric")

print(dictionary)
toxic hare
terse needle
#
dictionary = {}

for namecounter in range(0, 25): 
  dictionary[soup.select("th a")[namecounter].string] = [float(x.string.replace("%", "")) for x in soup.find_all('td', class_="numeric")]

print(dictionary)

I hope the list comprehension doesn't blow your brain too much @toxic hare

vast fog
#
This challenge is called Hint of Color
--------------------------------------

In this challenge, you will write a function called hint_of_color that takes an array as input.
This array is a 2d array of tuples, each containing 3 values.
The 2d shape of the grid represent the position of the colors in a given "image".
The three integers in the tuple represent the RGB color values (0-255) of the pixel in that position.
The tuple is formatted as (R,G,B).
The hint_of_color function should return the 2d array of "image" data in the same order, but with all of the RGB tuple values replaced with a string indicating the most dominant shade of RGB color present. (0,0,0) the only shade of black, (255,255,255) is the only shade of white. The dominant shade for any color in between black and white is the highest value in the RGB tuple. If there are two matching values in the tuple, the order of precedence is R > G > B.

Example RGB tuple conversions:

(0,0,0) => black
(255,255,255) => white
(0,1,0) => green
(30,75,180) => blue
(225,50,0) => red

Example test case:

Input:
    [[(25, 70, 180), (221, 0, 50), (10,199,0)], [(0, 0, 0), (255,255,255), (0,50,0)], [(70,81,0), (177,40,90), (0,0,0)]]
Output:
    [["blue", "red", "green"], ["black", "white", "green"], ["green", "red", "black"]]

Here's the tests:

def hint_of_color(data):
    # your code here
    return None

test_data = [
    [[(25, 70, 180), (221, 0, 50), (10,199,0)], [(0, 0, 0), (255,255,255), (0,50,0)], [(70,81,0), (177,40,90), (0,0,0)]],
    [[(221, 0, 50), (221, 0, 50), (255,255,255)], [(10,199,0), (255,255,255), (0,50,0)], [(255,255,255), (177,40,90), (0,0,0)], [(177,40,90), (177,40,90), (0,50,0)]]
]
answers = [
    [["blue", "red", "green"], ["black", "white", "green"], ["green", "red", "black"]],
    [["red", "red", "white"], ["green", "white", "green"], ["white", "red", "black"], ["red", "red", "green"]]
]

for q,a in zip(test_data, answers):
    print(hint_of_color(q) == a)
#

obviously (0,2,0) is also black, but I just threw this together an hour or two ago
so I'm going to refine it a bit once I get some feedback

#

and maybe change the end goal so not discover the most dominant shade, but another calculation.

#

this is what I have so far

lavish rover
#
def get_col_name(col):
  r, g, b = col
  if r == g == b:
    return "black" if r == 0 else "white"
  return ("red", "green", "blue")[col.index(max(col))]

def hint_of_color(data):
  return [[get_col_name(col) for col in row] for row in data]
#
ind = max(range(3), key=lambda x: col[x])
vast fog
#
def hint_of_color(data):
    # your code here
    return None

test_data = [
    [[(25, 70, 180), (221, 0, 50), (10,199,0)], [(0, 0, 0), (255,255,255), (0,50,0)], [(70,81,0), (177,40,90), (0,0,0)]],
    [[(221, 0, 50), (221, 0, 50), (255,255,255)], [(10,199,0), (255,255,255), (0,50,0)], [(255,255,255), (177,40,90), (0,0,0)], [(177,40,90), (177,40,90), (0,50,0)]],
    [[(25, 70, 180), (221, 0, 50), (10,199,0)], [(0, 0, 0), (255,255,255), (0,50,0)], [(70,81,0), (150,178,178), (0,0,0)]]
]
answers = [
    [["blue", "red", "green"], ["black", "white", "green"], ["green", "red", "black"]],
    [["red", "red", "white"], ["green", "white", "green"], ["white", "red", "black"], ["red", "red", "green"]],
    [["blue", "red", "green"], ["black", "white", "green"], ["green", "green", "black"]],
]

for q,a in zip(test_data, answers):
    print(hint_of_color(q) == a)
#

should eval to:

True
True
True
whole bear
#

@south bone

#

yo

#

bro

#

wassup

south bone
#

sup dude

whole bear
#

like judges contacted me and said hey there's a part of your code that is producing an error

whole bear
#

and they said if you want

#

we can give you one more day

#

and i said sure very nice of you

#

and I'm currently trying to fix that part

south bone
#

right on

whole bear
#

but I just can't figure out this is not working

south bone
#

want a second perspective?

whole bear
#

I mean why not

#

I feel like sh*t i've been working on this issue for 6 hours or something and I haven't still fixed it

#

i'm dying rn so tired

south bone
#

kk send a screenshot or stream

whole bear
#

can't do it here though i'm not allowed to stream

#

i have to call u

#

I changed the algo a little bit

little pelican
#

@south bone if you feel good after you finish with him, I would like to ask a question too if that's okay ✌

austere onyx
#

​​!voiceverify

pale vale
#

future me looking for the pyinstaller cmd its "py -m pip install pyinstaller"

whole bear
rugged root