#voice-chat-text-1

1 messages · Page 118 of 1

thick gate
#

;((

#

um using mac btw

stuck bluff
#
#importable.py
class MyClass:
    ...```
```py
#main.py
from importable import MyClass

mc = MyClass()```
rose solar
#

i'm using arch btw

thick gate
#

like the audio is missing

pale pivot
stuck bluff
#
#main.py
import importable

mc = importable.MyClass()```
languid oracle
#

hm I found an issue that was completely different, I was missing a file so that mightve been it. But I still would like to know how that functions

stuck bluff
#

Well, if you think of a module as like a tree, importing takes a module and attaches it at the importing point. So it's this branching structure.

#

Importing a module runs it.

#

You can use this to pick if something runs or not when it's imported.

#

!if-name-main

coarse hearthBOT
#

if __name__ == '__main__'

This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.

Example

# foo.py

print('spam')

if __name__ == '__main__':
    print('eggs')

If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:

# bar.py

import foo

If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.

Why would I do this?

• Your module is a library, but also has a special case where it can be run directly
• Your module is a library and you want to safeguard it against people running it directly (like what pip does)
• Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test

stuck bluff
#

Try running the turtle module directly from its file.

pale pivot
languid oracle
#

turtle module?

stuck bluff
#

Then note the difference between that and importing it.

#

You'll have it somewhere.

thick gate
#

ig i'll go now

stuck bluff
#

It's a standard library module.

thick gate
#

was fun hearing you guys

#

have a good day ahead

kindred oyster
#

looks nice

stuck bluff
#

I'm falling asleep.

#

Ta ta.

coarse hearthBOT
#

Hey @languid oracle!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

pale pivot
#

!paste

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

languid oracle
#
import circle
import ClockTower
import pygame
class Picture:

    def __init__(self, window_width, window_height):
        self.example1 = circle.Circle(100, 150, 50, (222, 13, 13))

        x2 = window_width*.5
        y2 = window_height*.75
        r2 = window_width*.05
        self.example2 = circle.Circle(x2, y2, r2, (255, 255, 255))

    def draw(self, surface):
        self.example1.draw(surface)
        self.example2.draw(surface)
#
import pygame

class ClockTower:
    
    surface = pygame.display.set_mode((700,600))


    blue = (31,133,222)
    white = (206, 216, 225)
    green = (12, 144, 85)
    deepwhite = (255, 255, 255)
    black = (23, 18, 38)
    red = (189, 70, 70)
    yellow = (205, 214, 33)
    brown = (91, 57, 32)
    gray = (165, 165, 165)
    darkblue = (56, 79, 113)
    
    rectangle2 = pygame.Rect(60, 95, 100, 305)

    
    
    
    
    pygame.draw.rect(surface, gray, rectangle2)
    pygame.draw.circle(surface, deepwhite, (109, 145), 40)
    pygame.draw.line(surface, black, (128, 111), (110, 145), 4)
    pygame.draw.line(surface, black, (145, 145), (111, 145), 4)
    pygame.draw.polygon(surface, darkblue,[(55,97), (110,20), (165,97)])
cold trellis
languid oracle
#
import circle
import ClockTower
import pygame
class Picture:

    def __init__(self, window_width, window_height):
        self.example1 = circle.Circle(100, 150, 50, (222, 13, 13))

        x2 = window_width*.5
        y2 = window_height*.75
        r2 = window_width*.05
        self.example2 = circle.Circle(x2, y2, r2, (255, 255, 255))

    def draw(self, surface):
        self.example1.draw(surface)
        self.example2.draw(surface)


 
    # Initializing Pygame
    pygame.init()
     
    

    ellipse1 = pygame.Rect(442, 238, 125, 65)
    ellipse2 = pygame.Rect(208, 238, 125, 65)
    rectangle1 = pygame.Rect(485, 301, 40, 105)
    rectangle2 = pygame.Rect(60, 95, 100, 305)
    rectangle3 = pygame.Rect(250, 301, 40, 105)
    rectangle4 = pygame.Rect(310, 400, 105, 40)

    pygame.display.flip()

```\
pale pivot
#

In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started.

Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM
Python...

▶ Play video
#

@ivory ice you can post your code here

#

!code

coarse hearthBOT
#

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.

pale pivot
#

!paste

coarse hearthBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

#

Hey @ivory ice!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

pale pivot
ivory ice
pale pivot
#

@obsidian hazel what's up?

#

don't want to talk over them

ivory ice
cold trellis
#

yep i joined alreayd

#

already*

cold trellis
#

or make that console.log() be () => console.log("ok")

ivory ice
#

Done we will see

cold trellis
#

try running it

ivory ice
#

nothing

#

only 1 ok on start

cold trellis
#

oh 😮 so its not running the function at all

#

oh

#

it does 1 at start?

ivory ice
#

it is but not when clicking

#

yes

cold trellis
#

without clicking anything?

#

let me call you i need to see this o-O it shouldn't be running an onsubmit function on the page loading

ivory ice
#

Ok ok

#

accept my invite

#

and call when u have time

raven orbit
#

before clean

#

after clean

halcyon notch
cold trellis
slow condor
#

Where are the autocompletes coming from? Copilot?

pale pivot
tired wyvern
#

anyone want to take a break and play some chess?

tulip geyser
onyx patio
#

mustafa

sudden badge
#

Hello

random minnow
#

.wa is water wet

ocean orbitBOT
random minnow
charred creek
#

.wa is kj wrong

ocean orbitBOT
random minnow
#

.wa is griff wrong

ocean orbitBOT
autumn raft
charred creek
autumn raft
charred creek
autumn raft
charred creek
charred creek
#

!stream @hardy trail

coarse hearthBOT
#

✅ @hardy trail can now stream until <t:1649621543:f>.

raven orbit
#

which is an actual tld, albeit only via opennic

wintry sparrow
#

Hello New World!

charred creek
autumn raft
wintry sparrow
raven orbit
tight glacier
random minnow
#

!rule 5

coarse hearthBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

random minnow
#

this sounds really against instagrams terms of service

wintry sparrow
#

This voice chat is too loud

raven orbit
pale pivot
#
function Base.+(...)

end
cold trellis
#

@mossy isle

#

!voice

coarse hearthBOT
#

Voice verification

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

mossy isle
#

!voice

pale pivot
#

import Base:+,-,

pale pivot
#
open("myfile.txt", "w") do io
   write(io, "Hello world!")
end;
lapis river
#

committing to linux means not showering for the rest of your life
ive been going strong for 3 years
oh no bro saying youre a linux users and talking about photographing kids is not a good idea

stuck bluff
#

If you're losing windows, maybe tell your architect to calm down with the experimental designs.

#

Non-euclidean geometry is for TARDISes.

pale pivot
#

hammerspoon

stuck bluff
#

You mean a spatula?

#

If you've a surfing channel on youtube, does that mean it's youtubular?

cold trellis
#

@pale pivot this is your fault >->

#

this is on my history now

pale pivot
#

just delete it

cold trellis
stuck bluff
#

How to solve the problems of humanity?

pale pivot
cold trellis
pale pivot
#

✨magic✨

cold trellis
#

deleted the closed issue?

#

xD

pale pivot
#

yes

#

pr much

stuck bluff
#

Step 1: Kill all humans. (Except Mom.)
Step 2: Bend all girders.
Step 3: Love Mom.

pale pivot
#

Step 1: Kill all humans. (Except Opal's Mom.)
Step 2: Bend all girders.
Step 3: Love Opal's Mom.

stuck bluff
#

30% literacy???

#

Big yikes.

#

What's the end goal? Standard of living. Yes?

cold trellis
#

@solid gyro but don't you all? on christmas

pale pivot
solid gyro
stuck bluff
#

What about the whole freeways around houses thing, though?

#

Like UP.

fringe swallow
#

What's going on here?

mild flume
#

@stuck bluff I WILL ABUSE MY POWER AND BRING YOU BACK HERE

#

@true valley You finished your taxes?

true valley
#

nope

mild flume
#

You filed for an extension?

dense trench
#

we shouldnt be measuring countries.

#

in the first place

#

Russia has a small republics within the countries

#

they are sort of autonomous regions

#

Provinces of large countries can be used to compare small countries

#

Yeah japan is huge

#

it does not look like it due to scaling in map

#

Mongolia has the least population density

#

Bhutan is said to be happiest country

#

but is one of the smallest countries

#

Most of our airs comes from oceans

tired wyvern
#

I thought it's from trees

dense trench
#

by phtoplanktons

#

*phytoplanktons

tired wyvern
#

microorganisms yeah?\

#

we're destroying the rain forest

dense trench
#

and Amazons are not the largest forests either i think it is siberian forests

tired wyvern
#

Isn't it the amazon rainforest the largest

#

which they are deforesting as we speak

#

consume co2 i think

dense trench
#

yeah sorry amazons are the largest

tired wyvern
#

no worries man

dense trench
#

what ??

#

what respires ?

tired wyvern
#

have you heard the song from pochahontas?

#

can you paint with the colors of the wind

solid gyro
dense trench
#

at night

#

for a minute i forgot this is a python server

#

lol

tired wyvern
#

the plant perception (backster effect) is fascinating

dense trench
#

cynobacterias

#

are responsible for oxygenation of earth atmosphere

#

there is a limit to height for most trees

solid gyro
dense trench
#

yes

#

it is generating oxygen

tired wyvern
#

small amount of oxygen

dense trench
#

but it does not generate net oxygen

tired wyvern
#

negligible

dense trench
#

might*

#

there will be more plants in its place

#

if one dies

#

others will take its place

tired wyvern
#

just like hydra

dense trench
#

yeah it is responsible reducing indoor pollution

tired wyvern
#

cut off one head, 2 more will take its place

dense trench
#

lol

tired wyvern
#

lol

dense trench
#

no plants photosynthesis at night

#

it requires certain amount of light for electron displacement

true valley
solid gyro
#

Q: Does the Amazon produce 20% of the world’s oxygen? A: No. Scientists estimate the percentage is closer to 6 to 9%, and the Amazon ultimately consumes nearly all of that oxygen itself.  FULL QUESTION Does the Amazon Rainforest truly produce 20% of the Earth’s oxygen? Where does the remaining 80% come from? FULL ANSWER On Aug. 20, Brazil’s spac...

tired wyvern
#

so mostly it's from micro organism in the ocean?

dense trench
#

so if forests let say carbon neutral then does it mean that we are gradually running out of oxygen

#

and all the other animals

#

not just humans

tired wyvern
#

most likely

#

?

dense trench
#

then we better get to mars and terraform it then

tired wyvern
#

nature will find a way to balance things out

#

eventually

dense trench
#

man getting voice verified in this server is hard

tired wyvern
#

tell elon to work more than 100 hours

solid gyro
#

But, Saleska said, the exact percentage doesn’t really matter because the Amazon, just like any other ecosystem, ends up consuming nearly all of the oxygen it makes. Perhaps surprisingly, plants suck up about half or more of the oxygen they produce as they, like humans, respire, using oxygen to break down carbohydrates to grow and survive in the inverse reaction to photosynthesis. People associate respiration with animals, but plants do it too — it’s just not usually detectable to scientists until nighttime, when plants have stopped pumping out oxygen, NCAR’s Bonan said.

The remaining half or so of the Amazon’s oxygen is consumed by other creatures, mostly microorganisms, which help decompose fallen leaf litter, dead wood and other rainforest debris. In this way, Malhi explains in his blog post, the net contribution of the Amazonian ecosystem to the world’s oxygen level is “effectively zero.”

tired wyvern
#

*more than 100 per week

#

@dense trench u took python in college?

dense trench
#

no in school

tired wyvern
#

I couldn't understand what was happening for a while

dense trench
#

so we should cut down all forest and mine all the resources on the land then lol

true valley
#

"Shanan Peters, a University of Wisconsin-Madison geologist, told the Atlantic that even if every living thing on Earth other than humans burned up, oxygen levels would fall from 20.9% to 20.4%. And according to Denning, it would take millions of years to meaningfully deplete the globe’s oxygen supply."

tired wyvern
#

it would take too long

dense trench
#

anyways

#

bye

#

liked listening to this conversation.

true valley
#

“If the forest were to burn down, or die off and be replaced with pastures,” said Denning, “then a huge amount of CO2 would be released to the atmosphere.” He estimates it would be enough to raise the concentration of the gas by approximately 100 parts per million — a nearly 25% increase over current levels.

solid gyro
solid gyro
brazen flower
#

@misty sinew #voiceverify i think

#

#voice-verify

#

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

brazen flower
#

@misty sinew

fringe swallow
#

Hi everyone!

#

What do you recommend for knowledge of oop

brazen flower
halcyon notch
abstract sorrel
#

Hi

halcyon notch
#
for a in b:
  a ++
  print(a)
c = b*a
print(c)
mild flume
#
a = list(in_process_sm)```
#
a, b, c, d, e = list_o_stuff
[a, b, c, d, e] = list_o_stuff
#

No no, just for assignment

misty wolf
wide tartan
#

Ah shit

#

I gotaa send 50 messages

drowsy juniper
#

cant hear

#

internet problemm may be

cold trellis
#

@zinc forgehttps://developer.mozilla.org/en-US/docs/Web/Manifest/scope

drowsy juniper
solid compass
#

!voiceverify

mint flicker
#

newlat = 40.1
newlon = 22.1
c = ds.sel(lat=newlat, lon=newlon, method="nearest")

#

this is working with xarray but that gives me only one value

#

how can i find more nearest points?

#

is there a place where i can find some answers?

lucid mural
#

@olive echo

olive echo
#

yeah?

lucid mural
olive echo
#

sorry im doing something w friends

lucid mural
#

@olive echo ok np

open scarab
#

can anyone help me with django/htmx/css issue I'm having??

stuck bluff
#

xubuntu, lubuntu, maybe debian, look at LXLE.

#

LXLE is the nicest, xubuntu is very decent, lubuntu is kind of meh, debian...bleh.

#

But Debian certainly for the lightest.

random minnow
supple lantern
#

my bad

#

i don't think we heard you properly

#

sooo.. @stuck bluff
i'm new here nd to python language

#

where should i begin ?

#

guide me senpai

#

koi who

stuck bluff
#

Corey Schafer. Youtuber. Playlists. Python for Beginners.

#

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

supple lantern
#

@umbral rose kinda

#

yes

gusty shoal
#

hey

#

how are you guys doing

supple lantern
#

xD oh no

gusty shoal
#

doing great

supple lantern
supple lantern
gusty shoal
#

how long have you guys been coding?

supple lantern
#

ehm those people ?
ig 10 yeas lmao

#

@umbral rose
how old r u?

gusty shoal
#

is there like any advice you'd give to a beginner?

supple lantern
#

nice

#

sir

gusty shoal
supple lantern
#

xD

gusty shoal
#

ah yes that's smart

#

i see

supple lantern
gusty shoal
#

really tons of resources

#

did you get a job after 2 years? @umbral rose

#

is there any cool project you mind sharing ?

#

or just talk about

supple lantern
#

cool i like webscraping/parsing

#

that's the main reason i'm learning python xD

#

damn

gusty shoal
#

that's big haha

#

nice!

#

i didn't get the second one

supple lantern
#

well cya guys i will be back once i'm voice verified

#

you too : )

gusty shoal
#

have a good one!

supple lantern
#

thanks

gusty shoal
#

i want to make a small game

#

yeah

#

like pong for starters

slow condor
#

Working at the moment

stuck bluff
#

I wonder if anyone has made pong, but it's farts.

#

Like instead of paddles, it's bums, and they're just blasting this cloud back and forth.

gusty shoal
stuck bluff
#

Well, it would certainly appeal to a certain age group.

gusty shoal
#

what's turtle @umbral rose

#

like a library?

umbral rose
#
_______________
|3 #          |
|            Ɛ|
|             |
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

@stuck bluff

stuck bluff
#

Yaas

umbral rose
#

Lol

stuck bluff
#

Or, oh, no...

#

~

gusty shoal
#

i see nice

slow condor
#

DLC item: "Milk: increases your fps."

stuck bluff
gusty shoal
#

i'll try it

#

once i get comfortable with the basics

#

i found this site called exercism

#

in the resource section

#

this thing is filled with stuff

#

i might do it this way:

#

learn a notion then do some exercises on it

#

after that build something small with it

#

do you meditate @umbral rose

#

if you don't mind sharing

#

what are the benefits you experienced long term

#

i see

#

thanks

#

i'll look into it

#

yeah the information gets overwhelming sometimes

#

but it also seems so cool

#

like the possibilities are limitless

#

yeah i did this in js

#

a bit

#

fun

#

although it's hard to keep track sometimes with js

#

no like only in js

#

when you play around with objects

drowsy juniper
#

sadh guru

gusty shoal
#

lot's of bears @umbral rose lol

#

yeah

#

you can just scream

#

i'm gonna go now, thanks for the info @umbral rose have a good one!

umbral rose
#

No problem! Have a great one @gusty shoal

open scarab
#

Partials/all_messages.html

                <div id='chat-div' style="position:absolute;left:20px;top:15px;margin:auto;width:870px;height:460px;overflow-y:auto;margin-top:10px;">
                    {% for body in messages %}
                        {% if body.message_type == "InstantMessage" %}
                            <p style="margin-left:5px;bottom:10px;text-align:left;border-left-style:solid;border-left-color:#48b8fa;padding:6px">{{ body.message }}</p>
                        {% elif body.message_type == "Reply" %}
                            <p id='test' style="margin-right:20px;bottom:10px;text-align:right;border-right-style:solid;border-right-color:#ff9900;padding:6px">{{ body.message }}</p>
                        {% endif %}
                    {% endfor %}
                </div>
#

chat.html

    <html>
        <body>
                <div id="messages-container" hx-post="/chat" hx-trigger="every 5s" hx-vals='{"client_name": "{{ client_name }}", "unique_num": "{{ unique_num }}", "messages": "{{ messages }}"}' style="position:relative;background-color:#f5f5f5;width:900px;height:500px;border:2px solid black;margin:auto;margin-top:5%;border-bottom-style:none;" hx-swap="innerHTML">
                    <div>
                        {% include 'partials/all_messages.html' %}
                    </div>
                </div>
            <div style="position:relative;width:900px;height:90px;margin:auto;margin-top:0px;right:2px;bottom:1px;">
                <textarea placeholder="Type your message to {{ client_name }} here.." style="background-color:#f5f5f5;position:absolute;width:900px;height:90px;border-bottom-left-radius:15px;border-bottom-right-radius:15px;border:2px solid black;right:-2px;bottom:-1px;padding:20px;padding-right:80px"></textarea>
                <button style="position:absolute;width:80px;height:90px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-1px;"><b>Send</b></button>
            </div>
        </body>
    </html>
stuck bluff
#

self

stuck bluff
#

20 gauge...like there's just all these steam dials on it, everywhere.

stuck bluff
#

Rekorderlig cider.

supple lantern
#

ey @stuck bluff
how u doin

stuck bluff
#

Scrumpy sounds like a Python module for managing agile development.

supple lantern
#

bruh

#

don't fight guys it's okayyy
it's just scrumpyyy

mild flume
#

Okay, good good

#

Increased it from 8 gigs to 16

#

So that should help with that craptacular old machine

#

And does mean that it was the mobo that died on the zombie

slow condor
#

Do that for me too please! Someone is eating up 40GB RAM on shared dev machine.

#

I can't get any work done..

stuck bluff
#

To be or not to be continued.

supple lantern
#

what the hell

#

is that

#

is that a potato

#

is that how potatoes r made

mild flume
#

That just looks like a cyst

slow condor
#

No idea what they are doing. They are on holiday. Can't even tell them to kill it.

supple lantern
mild flume
#

Are there not like.... resource caps per account or something?

slow condor
#

No. Dev machine is free for all.... devs.

supple lantern
#

huh

mild flume
#

Lame

supple lantern
#

what's "dev machine"

slow condor
#

Swap just hit 0 free. Hopefully they will get cleaned up.

supple lantern
#

@misty sinew i can hear the whole universe through ur mic

slow condor
#

Yep..

supple lantern
slow condor
#

100 GB RAM. 10 GB swap.

#

Dev machines are for software devs to test things without restrictins.

supple lantern
#

alr imma disappear cya guys

slow condor
#

Security issue, yea.

#

If only I can do that.

#

Actually there is an alternative machine I can use, but..

#

It has like Bash 4.2. GCC with C90 as default.

mild flume
#

Yeesh

slow condor
#

Python 2.7 and... 3.5 I think.

mild flume
#

Double yeesh

solid gyro
slow condor
#

Meh. I give up. Even if I can do things, they might get killed randomly from OS RAM cleanup.

#

Oh. Preorders only?

solid gyro
slow condor
#

Does it have a GPU?

solid gyro
mild flume
drowsy juniper
#

Buddha

little carbon
#

who is bee talking to

drowsy juniper
#

Ctrl + R

little carbon
#

oh nice

wet quest
#

cool

#

yea

mild flume
#

!stream 670580567955472384

coarse hearthBOT
#

✅ @rain lance can now stream until <t:1650046636:f>.

mild flume
solid gyro
wary fable
#

Did he type sudo vi instead of nvim?

#

You don't even need vi on an image, sed is sufficient

#

Yes I've had to use that, and I am very upset that I had to.

solid gyro
random minnow
#

cat and sed is my favourite combo

mild flume
#

Oh, Charlie. Did Joe ever get back to you?

hearty heath
#

Heyo 👋

#

Yea, gin

wary fable
#

Meanwhile, where I am:

#

This is why I still have snow tires on my car.

hearty heath
#

Oh yeah 😄

wary fable
#

merry, marry, mary

inland marlin
mild flume
#

Fuuuuuuuu

#

I forgot I had a meeting today

wary fable
mild flume
wet quest
#

hi

jolly ravine
pseudo bronze
#

What happens in staff meetings?

pseudo arch
#

@jolly ravine You worked at standford?

#

how @jolly ravine ?

#

no undergraduate?

limpid junco
#

hey

#

hey wassuuuuuuuuuuup

#

i have nanorobots on my brain

#

can u help disable or open

#

a place where i can control them

#

plz they wanna steal my balls

#

and pop my eyes

#

u can take the robots when ur done

#

they worth more than 113 M

#

have u heard about Neuralink !

#

yo linuxgamer

#

hire someone from deepweb

#

adress is 55 RUE MEHDI MNIAI HAY TARIK 1 FES MOROCCO

hybrid crescent
#

what?

#

so you want to control the robots they are inside you brain?

glass tendon
bitter cedar
#

why can't i stream ?:(

maiden stump
#

why can't i turn on my mic?

#

brhhh

misty sinew
#

ehi man

#

@true valley could I ask you an advice?

#

look at help lemon if you have 30 secs

#

i dont want to bother you

#

wait I ll tag you

#

it is like to find

lethal ridge
#

@true valley sorry for disturbing you. Whom are you talking to?

#

Okay 🤔

#

You've a commendable voice:)

#

You sound very manly...

true valley
#

variable =["string1", "string2"]

#

variable[0]

#

variable[1]

misty sinew
#

im ok with these concepts

#

the main problem is that I hadnt written this code

#

my teacher gave me this and I have to edit by adding the calculus of the battery capacitance

#

it'll be easier by speaking 😦

lethal ridge
#

Oh shit, you're indexing.

misty sinew
#

I used to code in C so Im having some issues in python lol

#

please how could you sum every element of an array and keep it between 0 and another value > 0?

lethal ridge
#

So the first one would be printed?

#

1'

lethal ridge
#

Oh, okay 🙂

#

And, if I want to print string 1 and sting2 together, then what should I do?

misty sinew
#

man im ok with these concepts ahaha, I studied C so im okay with array

lethal ridge
#

Oh, okay I get it... It should be -
print(variable[0:2])

#

That's a new trick as well, thanks 🙂

#

Thanks 😎

zenith wedge
#

!voice

coarse hearthBOT
#

Voice verification

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

misty sinew
#

If you have an array with the energy supplied and produced, values < 0 mean supplied and > 0 means generated. How to create an array that contain only the energy when the previous array has values > 0 and do the algebric sum of all of these values. I also have to keep them between 0 and 20 because the battery has a specific capacitance. Thanks

lethal ridge
#

Nice 🙂

#

@zenith wedge That's a problem because some patients over-dose on medicines without the prior consent of the doctors. For example - Opium Addiction.

misty sinew
#

@true valley could i call you private so i can speak and it ll be easier for me to explain you my iessues? thank you man

lethal ridge
#

Okay, I should leave, not fit for debating in this field.

fervent notch
#

@true valley Are you really magical?, show some magic!

fervent notch
#

do some abrcadabra

misty sinew
#

Anyone know how to sum every element of diff and store it into en_battery? The sum of every element of diff need to be clipped between 0 and cap value. Any ideas?

#

do anyone can help me? 😦

true valley
lethal ridge
#

Taiwan is just the opposite of China but it's a bit behind in terms of GDP when you see the statistics.

#

@true valley Did you learn any programing language before Python?

#

SQL? Haven't heard of it, there mustn't be many sources to put your skill into, right?

#

(No offense).

stuck bluff
#

Linux rules, MacOS/Windows drools.

lethal ridge
stuck bluff
#

Numba's njit decorator.

stuck bluff
#

!e ```py
import numpy as np

def magnitude(p, q, axis = None):
a = q - p
a = a ** 2
a = np.sum(a, axis)
a = np.sqrt(a)
return a

p = np.array([0, 0])
q = np.array([1, 1])
result = magnitude(p, q, 0)
print(result)```

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

1.4142135623730951
stuck bluff
#
import numpy as np
from numba import njit

@njit
def magnitude(p, q, axis = None):
    a = q - p
    a = a ** 2
    a = np.sum(a, axis)
    a = np.sqrt(a)
    return a

p = np.array([0, 0])
q = np.array([1, 1])
result = magnitude(p, q, 0)
print(result) ```
golden marsh
#

hello everyone

#

apparently caught something, and now my throat is sore as fuc

#

so i wont really talk

quasi widget
#

thats not good

#

hope you feel better soon!

golden marsh
#

eh, it'll pass. my sibling had it before and for them it passed after 2-3 days.

#

wat

#

i think i missed how this chat suddenly got political?

#

@zenith wedge it should, even win 95 apps still work sometimes. might have to enable compatibility mode

#

@zenith wedge one of the big advantages of windows is its backwards compatibility. they really try not to break shit even if it means that some things are REALLY wierd.

cold trellis
lethal ridge
#

@true valley Can you help me with some question?

#

Wait.

#

Yeah, it's a video.

#

It's not registering or something...

#

It's on GitHub.

#

Wait.

long juniper
#
import datetime
import json

# Print welcome message
print("Welcome")

# Begin main loop
while True:


    # Ask the user for the file path
  f = open(file_path, "r")
   print(f.read())
  dictData = {[]}
  list = []
  key = []
  value = []
  data = []

for dictData in data:
        print(dictData["key1"])
        print(dictData["key2"])
        
dataData.append({key:value, key,value})
       
log = []
log.append(time_stamp + file_path + sha256_hash)
log.append(dataData)
print('\n'"SHA infor to date:"'\n')
print(json.dumps(log, sort_keys=False, indent=0))
print('\n')
    # Check for exit press
    if file_path.lower() == "e":
        print("Bye!")
        break

    # Try to calculate the SHA256 value of the file
    try:
        
        # Try to open the file in read(bytes) mode
        file_to_check = open(file_path,"rb")

        # Try to calculate hash
        sha256_hash = hashlib.sha256(file_to_check.read()).hexdigest()
        time_stamp = str(datetime.datetime.now())
        data.append({"time_stamp:",time_stamp,"file:",file_path,"hash:",sha256_hash})
        log = []

        # Print hash
        print("time_stamp:",time_stamp,"file:",file_path,"hash:",sha256_hash)

        open(file_path,"a+")
        json.dump(data,file_path, indent=1) # Dump data into the file
        file_path.close() # Close file to ensure data is saved
        

    except Exception as error_msg:
        print(error_msg)```
#

<-- Task -->

    # Write some code that will complete this lab, here is the psuedocode to help you with that :
    # 1. Load the log file containing previous hash checks in read mode
    # 2. Read the contents of that file using JSON and store it into a list called logs[]
    # 3. Close the file
    # 4. Add the new time_stamp, file and hash to the list as a dictionary
    # 5. Loop through the list and print any hash and time stamp for that same file

    # 6. Append the new hash, time stamp and file name to the existing list
    # 7. Open the log file in write mode
    # 8. Dump the list of the old hash and the new hash to the log file using JSON
    # 9. Close the file
lethal ridge
#

What's the Boolean output of the question below? -

#

1_one = [1,2,[3,4]]
1_two = [1,2,{'k1',4}]

1_one >= 1_two

#

There it is.

#

It's on GitHub and I'm not making an entire account.

#

I wanted to knwo the explanation.

#

False is the answer.

random minnow
#

!e
one = [1,2,[3,4]]
two = [1,2,{'k1',4}]

print(one >= two)

coarse hearthBOT
#

@random minnow :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | TypeError: '>=' not supported between instances of 'list' and 'set'
lethal ridge
#

I think it should be false.

#

1_one = [1,2,[3,4]]
1_two = [1,2,{'k1':4}]

1_one [2][0] >= 1_two[2]['k1']

#

Much better.

#

@long juniper

#

@true valley

#

@cold trellis

solid gyro
lethal ridge
#

Edited it.

#

Okay, I'll do it.

solid gyro
#

!e

1_one = 'anything'
coarse hearthBOT
#

@solid gyro :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     1_one = 'anything'
003 |      ^
004 | SyntaxError: invalid decimal literal
slow condor
#

It is (usually) there in English.

lethal ridge
slow condor
#

It stains your teeth much faster!

#

Cold tea then?

#

Oh. I usually don't drink hot things with a straw.

lethal ridge
#

Channel claimed.

random minnow
#
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use wcore::{evaluator::WEval, models::*};

fn factorial(n: f64) -> f64 {
    let code = format!("
factorial <-|
  $0 2 < -> 1
  $0 $0 1 sub factorial mul

{} factorial
", n);
    let mut state = State::new();
    match state.apply(&code)[0][0] {
        Token::Value(x) => x,
        _ => panic!("Invalid response!"),
    }
}

fn criterion_benchmark(c: &mut Criterion) {
    c.bench_function("factorial", |b| b.iter(|| factorial(black_box(20.))));
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);
lethal ridge
#

Wish me luck guys, right now I'm doing logic and then I'd be doing methods and functions.

#

First is of 1 hours and 15 minutes and the next is of 2 hours and 54 minutes

#

Two of the the biggest in the course.

solid gyro
#
Audible.co.uk

Check out this great listen on Audible.com. Newly adapted for audiobook listeners. Today, software engineers need to know not only how to program effectively but also how to develop proper engineering practices to make their codebase sustainable and healthy. This book emphasizes this difference be...

twilit leaf
#

@cold trellis Join when maroloccio reads a book! 🙃

lethal ridge
#

@solid gyro @cold trellis @true valley @charred creek , thank you for helping me!

charred creek
#

np

lethal ridge
#

👌

charred creek
#

I heard tax, my natural instinct is to flee

#

cya WaveBoy

slow condor
#

They stopped!

true valley
lethal ridge
#

@true valley I scored an international rank in Mathematics Olympiad and then won a scrabble competition with a trophy....

#

No bragging eh

mystic badge
#

can someone help me

cold trellis
#

@true valley @solid gyro i'mma hop off for today as friends are screaming at me to join em

#

cya guys tommorow 🙂

solid gyro
#

cya

misty sinew
#

na rotisw poio python prepei na katevaso gia na kanw custob bot

gentle cove
#

guys what is your self care routine?

twilit leaf
#

Ouy performing doesn't mean efficient! @true valley

random minnow
#

@misty sinew

steep fiber
quartz yacht
wintry sinew
#

[1, 2 3, 4]

random minnow
#

{1 2 3 4}

#

{1 2 3 4} release => 1 2 3 4

wintry sinew
#
import Server from "http";

def main() void {
    server = Server(
        port=8080,
        host="127.0.0.1",
    );

    server.handle("GET", "/", (req Request, res Response) -> {
        res.headers.set("Content-Type", "text/plain");
        res.send("Hello, world!");
    });

    server.serve();
}
random minnow
pale pivot
#

@wintry sinew do you have a repo for your language? just curious

wintry sinew
#

too much stuff to do before i can actually work on making it work at all

pale pivot
#

fair enough

wintry sparrow
#

Jajajaja

#

Hello guys 😄

spring bloom
#

yes i am

#

ann

#

how do you make social app

stuck bluff
# spring bloom how do you make social app

Learn the component technologies. So the underlying language(s) you plan on using, databases and their workings, best security patterns/practices, networking, hosting, ui/ux design, cross-platform considerations, marketing...Hm.

#

A lot of moving parts.

#

Washing machine learning.

#

If time is money, does it follow that money is time? Given the state of the United States' medical system, such as it might be called, there is a supporting argument.

fast socket
#

May be In the sense that money can save you time

stuck bluff
#

Sorry sorry sorry...no sexism in IT?

spring bloom
#

i hate front end too 😭

#

front end feel so tedious

stuck bluff
#

You pick a few colours and stick to them.

#

Unless you're Rainbows'R'Us.

fast socket
#

Where are your jokes Opal?

stuck bluff
#

Sorry?

#

I wasn't paying close enough attention.

fast socket
#

Just those jokes, remember the neural net and (Woolves)
🧠 🥅

#

👟 🧠 🥅

#

=> neural net

stuck bluff
#

Oh, right.

#

lol

#

yes.

#

You don't need to tell me.

spring bloom
#

@unreal root watch anime in the english dubbed

#

@unreal root that will teach you great english quickly

spring bloom
#

anime in english dubbed

#

english dubbed anime not english subbed

#

yeah

#

you sound pretty good too me, its just your accent

#

if you move to us your accent will change

#

what?

#

im from chicago

#

watch alot of movies

#

i cant talk at night my build has strict policy

#

building

#

i added you back dont worry, but to speak english good you just gotta catch yourself

#

when you speak it bad

#

always correct yourself when you speak english

#

its a thing even us native speakers struggle with

#

lol movies are exaggerating english

#

its so forced

#

dont pay attention to that

#

if i were you, i would explore different phrases in english

#

and save the ones you like

#

then use them when you think you found the perfect way to describe something

#

but you have the basics down for english

#

focus on using english instead not trying to sound to sound like an american

#

then your english will get better and make you sound more american

#

my first language wasnt even english though

#

my parents are immigrants

#

i spoke their language and understand it before i understood english

#

its a tswana i think

#

i dont speak their language i just understand it

#

south africa

#

but dont focus on trying to sound their america

#

american*

#

it will happen naturally

#

just explore all the different kinds of english

#

the problem is you are trying to force big words

#

you are using very proper english and even native speakers have trouble understanding

#

thats the problem with learning languages is they tend to teach you it in the most proper form

#

but people do not speak that proper usually unless they are very well educated

#

so stick with the basics and learn some slang,

#

no it is, you said the word "literally" thats a proper word

#

even i struggle to say that word and im a native

#

yup

#

i dont even know lol

#

if a word is too complicated, just dont use it, find a simpler word

unreal root
spring bloom
#

yes it is hard word

#

yea if a word is too hard dont use it

#

find alternative words

#

exactly

#

yea see

#

learn the different slangs around america, that will be more helpful to learning english then reading an encyclopedia

#

i say anything that engages your 5 sense more is a good way

#

thats why i recommended english dubbed anime because you get the audio and visual

#

reading just gives you the visual

#

what?

#

that tv series is very forced english

#

they literally rehearse the english

#

thats because you are trying to sound american like i said

#

see your english is getting better already

#

every americans grammar is broken lol

#

i can bring a native english speaker on here who has lived in america their whole life, and even phd english wouldnt be able to understand him

#

because we all use different slang in america

#

i would have trouble understanding a southern american

#

and southern american would have trouble understanding me

#

no because not everyone uses proper english

#

thats my point

#

they only advantage to proper english is its supposed to be universal, but the problem is, only the more educated individuals go out there way to study it

#

chicago, because to the rest of america it sounds like we are speaking a different language

#

🤣

#

what accent?

#

ahh i see

spring bloom
#

hes not speaking english wtf..

spring bloom
#

i wanna learn his accent now

#

i can barely understand them too

#

oh ok

#

see your english is getting better

#

cya

violet venture
#

Jake go to school

gentle cove
gentle cove
misty wolf
#

https://paste.pythondiscord.com/luhoyasewu can you help me with some different code i want to work out average pixel whiteness of image. my code i wrote i think the library doesnt support transparency, i have transparency in my image

raw wren
coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied mute to @thorn tiger until <t:1650325495:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

pale pivot
#

@abstract plinth pls mute

stuck bluff
pale pivot
#

p5js

hearty heath
#

I think your ones are very tasteful Opal.

#
# Copyright © 2022 LX
# 
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# “Software”), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# 
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
# THE USE OR OTHER DEALINGS IN THE SOFTWARE.

PI = 4
stuck bluff
hearty heath
#

Overflow?

hearty heath
#

Looks like an interference pattern 👀

stuck bluff
#

!e py import numpy as np tau = np.pi * 2 line = np.linspace(-tau, tau, 10, endpoint=False) arr = np.sin(line) + np.sin(line * 3) + np.sin(line * 6) print(arr)

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your eval job has completed with return code 0.

001 | [ 2.44929360e-15  1.31432778e+00  2.12662702e+00 -2.12662702e+00
002 |  -1.31432778e+00  0.00000000e+00  1.31432778e+00  2.12662702e+00
003 |  -2.12662702e+00 -1.31432778e+00]
stuck bluff
#

Moire

pale pivot
stuck bluff
#

Tagalog (, tə-GAH-log; locally [tɐˈɡaːloɡ]; Baybayin: ᜆᜄᜎᜓᜄ᜔) is an Austronesian language spoken as a first language by the ethnic Tagalog people, who make up a quarter of the population of the Philippines, and as a second language by the majority. Its standardized form, officially named Filipino, is the national language of the Philippines, and...

pale pivot
stuck bluff
misty sinew
#

is there resons besides "fun" to engage with discord bots?

#

;ike free nitro or nfts?

#

so like all the card game bots are just games? like the pepe dank memer bot? or the the anime soul card game?\

#

gotcha, are there any bots you guys have seen in servers that are games but also kind of pay you? {sorry last question}

#

also i like the cool graphics u guys are showing

stuck bluff
stuck bluff
stuck bluff
stuck bluff
#

Diffusion limited aggregation.

pale pivot
stuck bluff
gloomy tapir
#

good

drowsy juniper
#

You can join from here

upper vortex
#

Yes, I understood the rule of 50 messages, etc. Alright, I will try to complete the whole process to become eligible to get the permission to speak in voice chat. This discord app is new for me. Experiencing first time.

soft stream
#

Hey I just got here, and I understand that this server adds economic incentive for worthless comments?

peak frigate
#

just spend a few days on the server, participate in our plethora of channels, and you'll be able to voice verify soon enough

#

try to circumvent that and you'll likely be barred from verifying

#

it's a necessary measure we have due to our size and the amount of trolling we get

soft stream
#

I apologize. I do tend to focus on my nascent notions of economic incentive. I don't have an economics degree, but I have an interest in epistemology and logic, and I'm doing the best that I can to factually articulate my understandings.

#

I appreciate being a part of the server, here, and I look forward to being able to learn concurrently with others, factually.

hollow echo
#

@pale pivot sorry cant talk yet, just joined

pale pivot
#

ah, I see. I'm looking at vc-0, btw, let's chat there

elder wraith
#

!e ```python

Import string and random module

import random

Randomly generate a ascii value

from 'a' to 'z' and 'A' to 'Z'

randomLowerLetter = chr(random.randint(ord('a'), ord('z')))
randomUpperLetter = chr(random.randint(ord('A'), ord('Z')))
print(randomLowerLetter, randomUpperLetter)```

coarse hearthBOT
#

@elder wraith :white_check_mark: Your eval job has completed with return code 0.

l P
elder wraith
#

!e python import random name = 'Rabbit' name = '-'.join(name[random.randint(1,4) print(name)

coarse hearthBOT
#

@elder wraith :white_check_mark: Your eval job has completed with return code 0.

b
elder wraith
#

!e python import random name = 'Rabbit' name = '-'.join(name[random.randint(1,4)],name) print(name)

coarse hearthBOT
#

@elder wraith :white_check_mark: Your eval job has completed with return code 0.

b
dry birch
#

I joined just in time

#

taling about pansexual flying squirrels

#

Great conversation

misty sinew
#

portuguese

#

spanish

#

kingdom

#

elon

#

musk

#

bought

#

twitter

#

for

#

44

#

bn

#

dollars

#

he

#

has

#

so

#

many

#

plans

#

for

#

future

#

strategy

#

of

#

the

#

company

#

and

#

also

#

health

#

insurance

#

in

#

usa

#

is

#

very

#

expensive

misty sinew
#

Hi

dry birch
solid gyro
#

@pale pivot @elder wraith just finished the first Bobiverse book, top notch recommendation, my thanks to you both

narrow raptor
#

!e

def del_el(arr: list, index: int) -> list:
    try:
        new_arr = arr
        new_arr.pop(index)
        return new_arr
    except Exception as ex:
        print(repr(ex))
    finally:
        pass


my_arr = list(map(int, ['1', '2', '3', '4']))
print(my_arr, end="- input array\n")
print(del_el(my_arr, 3 - 1))
coarse hearthBOT
#

@narrow raptor :white_check_mark: Your eval job has completed with return code 0.

001 | [1, 2, 3, 4]- input array
002 | [1, 2, 4]
narrow raptor
livid spruce
#

hello!

#

I am muted because I have not got voice verification yet due to the little amount of messages in text chats

#

@signal orchid

#

I will get a cup of tea and be back

signal orchid
#

I forgot that voice verification was a thing mb

livid spruce
#

yeah

signal orchid
#

Just tell me when you’re back

livid spruce
#

I'll be back in a minute

#

here

#

not sure when i joined

#

yeah, at least 50 messages

#

I joined VC before

#

I am not very active though

#

are you a programmer?

#

cool

#

I can classify myself as python-0 😂

#

i learn on my own, but i forget later

#

ohhh, I can't answer any question

#

I totally forgot

#

i remember print

#

conceptually, yes, but in python...

#

numerical, string

#

yeah

#

float and int

#

are you in collge?

#

*college?

#

wowww

#

it's awesome you know it at a young age

#

I'm in graduate schol

#

*school

#

yeah, it makes sense totally

#

i read a lot of articles in terms of computer science education

signal orchid
#

This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev/

⭐️ Contents ⭐
⌨️ (0:00) Introduction
⌨️ (1:45) Installing Python & PyCharm
⌨️ (6:40) Setup & Hello Wor...

▶ Play video
livid spruce
#

data an algorithms ---

livid spruce
#

sounds great

#

:)) but does it teach everything really?

#

okay :)

crimson siren
#

do you guys know how to export enviroment variables?

livid spruce
#

did you use scratch ever?

livid spruce
#

No, i am a kind of educator-- looking at the tools

crimson siren
#

I'm trying to export the PATH for my chromedriver to into a scraper but I cant get it to register the PATH.

#

yeah

#

yeah I am

livid spruce
#

Hi @tight stratus are you muted automatically?

#

I am muted automatically-- that's why I am asking

tight stratus
#

hi

crimson siren
#

I'm trying to get this to work, but I can't get past the export command for bash to work in the python file for chrome driver.

tight stratus
#

yh im muted automatically

crimson siren
#

First, you must set your chromedriver location by

export CHROMEDRIVER=~/chromedriver

#

this specific step is where I'm stuck.

tight stratus
#

hey salty mind helping me after please

crimson siren
#

Windows

#

using vs code

#

oop

#

lol

#

thanks for your help though 🙂

tight stratus
#

any reason i cant talk btw?

crimson siren
#

u need to voice verify unofffical

crimson siren
#

also u need to have 50 messages as well

#

its 3 days

tight stratus
#

ah yh

livid spruce
#

oh, i have got my verification

random minnow
#

!voice

coarse hearthBOT
#

Voice verification

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

tight stratus
#

oh well ill message for now

livid spruce
#

soo, i need to reconnect

tight stratus
#

so I am making my own package manager as a project for tomorrow

#

this is my code so far

#

although i dont see nothing wrong since it is pretty simple maybe you can spot the error

#
import requests
from pystyle import Colors, Colorate, Write
import os
import getpass 
import playsound
banner = '''
 ____  ____  ____  ____  ____
||h ||||y ||||p ||||e ||||r ||
||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\|

By unofficialdxnny (Danial Ahmed)
'''
os.system('title Hyper - unofficialdxnny')
username = getpass.getuser()
os.system('cls')
print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))
## commands = ['hyper install betterdiscord']
playsound.playsound('song.mp3', False)

while True:
    apps = ['betterdiscord', 'jetbrains']
    print('')
    print('')
    maininput = Write.Input(f'hyper@{username}> ', Colors.yellow_to_red, interval=0.05).lower()
    words = maininput.split()
    if maininput == 'cls':
        os.system('cls')
        print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))
    elif maininput == '':
        os.system('cls')
        print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))

    elif words[0] == 'hyper':
        if words[1] == 'install':
            if words[2] == apps[0]:
                Write.Print(f'Installing BetterDiscord Installer', Colors.yellow_to_red, interval=0.05)
                url = f'https://golden-boba-d5c466.netlify.app/BetterDiscord-Windows.exe'
                r = requests.get(url, allow_redirects=True)
                open('BetterDiscord.exe', 'wb').write(r.content)
                os.startfile('BetterDiscord.exe')
            else:
                Write.Print(f'Application doesnt exist in the current version', Colors.yellow_to_red, interval=0.05)
#

    elif words[0] == 'hyper':
        if words[1] == 'install':
            if words[2] == apps[1]:
                 Write.Print(f'Installing BetterDiscord Installer', Colors.yellow_to_red, interval=0.05)
                 url = f'https://golden-boba-d5c466.netlify.app/jetbrains-toolbox-1.23.11849.exe'
                 r = requests.get(url, allow_redirects=True)
                 open('Jerbrains - toolbox.exe', 'wb').write(r.content)
                 os.startfile('BetterDiscord.exe')
            else:
                Write.Print(f'Application doesnt exist in the current version', Colors.yellow_to_red, interval=0.05)
#

when i do hyper install betterdiscord it installs the installer perfectly fine

#

but when i run the second command hyper install jetbrains it throws the custom error Application doesnt exist in the current version

#

oof wait let me fix

random minnow
#

!rule 5

coarse hearthBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

tight stratus
#
import requests
from pystyle import Colors, Colorate, Write
import os
import getpass 
import playsound
banner = '''
 ____  ____  ____  ____  ____
||h ||||y ||||p ||||e ||||r ||
||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\|

By unofficialdxnny (Danial Ahmed)
'''
os.system('title Hyper - unofficialdxnny')
username = getpass.getuser()
os.system('cls')
print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))
## commands = ['hyper install betterdiscord']
playsound.playsound('song.mp3', False)

while True:
    apps = ['app1', 'jetbrains']
    print('')
    print('')
    maininput = Write.Input(f'hyper@{username}> ', Colors.yellow_to_red, interval=0.05).lower()
    words = maininput.split()
    if maininput == 'cls':
        os.system('cls')
        print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))
    elif maininput == '':
        os.system('cls')
        print(Colorate.Horizontal(Colors.yellow_to_red, f'{banner}', 1))

    elif words[0] == 'hyper':
        if words[1] == 'install':
            if words[2] == apps[0]:
                Write.Print(f'Installing app 1 Installer', Colors.yellow_to_red, interval=0.05)
                url = f'https://golden-boba-d5c466.netlify.app/app1-Windows.exe'
                r = requests.get(url, allow_redirects=True)
                open('app 1.exe', 'wb').write(r.content)
                os.startfile('app 1.exe')
            else:
                Write.Print(f'Application doesnt exist in the current version', Colors.yellow_to_red, interval=0.05)

#
    elif words[0] == 'hyper':
        if words[1] == 'install':
            if words[2] == apps[1]:
                 Write.Print(f'Installing Jetbrains Toolbox Installer', Colors.yellow_to_red, interval=0.05)
                 url = f'https://golden-boba-d5c466.netlify.app/jetbrains-toolbox-1.23.11849.exe'
                 r = requests.get(url, allow_redirects=True)
                 open('Jetbrains - toolbox.exe', 'wb').write(r.content)
                 os.startfile('Jetbrains - Toolbox.exe')
            else:
                Write.Print(f'Application doesnt exist in the current version', Colors.yellow_to_red, interval=0.05)
#

ill catch u guys another time ty

#

🙂

random minnow
tight stratus
#

Ty

#

Any idea for the error?

#

I kinda have to give it in today

narrow raptor
#

the only thing makes it less good(at least for me) is none underline in maininput

#

just main_input mb

tight stratus
#

Oh yh

#

Alr ill change it in the morning

narrow raptor
#

Did you use any other methods from requests except status_code & get?

tight stratus
#

No this is the only one I know

#

Well I did only follow a geeksforgeeks tutorial like 5 months ago

narrow raptor
#

So, change it as well for a better view

from request import get, status_code
#

Anyway, gl with this project

#

I have an upcoming deadline for 1 huge project as well. I have to bring it in few days

#

Has someone got any ides of how to pass through a anti-bot system on CoinMarketCap
I mean, i thought of seleniumwire, selenium or requests with parameters
If anyone faced similar task please help

tight stratus
#

Ty and gl with your project

misty sinew
#

@raw glade

#

hello

#

u there?

misty sinew
#

@ruby solar u there

ruby solar
#

yes

#

broken microphone

#

whats the question

misty sinew
#

__somename__

#

hashlib.__dict__

ruby solar
#

well i havent tried to work with hashlib before i may not know how to help

#

thanks

narrow raptor
tight stratus
#

🙂

violet vault
#

Hi

cold trellis
#

@pale pivot

cold trellis
abstract vine
#

why i can't talk in this server

hearty heath
#

Cool, is it just one question?

#

Seems like a bit of a tedious problem tbh.

#

Or maybe pithink

#

👋

#

Ah yeah it seems so.

#

Not stated in the question though lemon_angrysad

#

I reckon I can do this with one line yeah 😄

#

Well one generator expression.

#

Alright, I'm using regular expressions 😄

hearty heath
#

Erm, @grave forge, perhaps turn on PTT.

grave forge
#

my bad

hearty heath
#

Oh right ok

misty sinew
#

how do i import ascii

hearty heath
#

I should probably get some work done today

marble sonnet
#

def swapIntegers(A, index1, index2):
A[index1],A[index2] = A[index2],A[index1]
return A

if index1 > len(A) - 1 or index2 > len(A) - 1:
    return -1
pass

if name == 'main':
# you can use this to test your code
print(swapIntegers([1, 2, 3, 4], 2, 3)) (edited)

@thorny lodge
because they sais i must learn it

kind stirrup
#

if __name__ == "__main__":

marble sonnet
#

def swapIntegers(A, index1, index2):
if index1 > len(A) - 1 or index2 > len(A) - 1:
return -1

A[index1],A[index2] = A[index2],A[index1]
    return A

pass

if name == 'main':
# you can use this to test your code
print(swapIntegers([1, 2, 3, 4], 2, 3))

twilit relic
#

select particular column in the dataframe@raven orbit

#

or row which you want as list

raven orbit
#

?

twilit relic
twilit relic
#

@rain lancethis is you university project??

rain lance
#

gonna have lunch

marble sonnet
#

import pandas as pd

def cols_means(l):
# Create Column Names, literally like ['col1', 'col2', ...] depending on how many columns l has.
# Hint: need to iterate to populate a list similar to this ['col1', 'col2', ...]

# Create a dataframe using the given list (l) and the generated column names above

# return their (column-wise) means 
return None # Change None

if name == 'main':
x = [[1,2,3],[4,5,6],[6,7,8],[8,9,10]]
print(cols_means(x))

raven orbit
trail prism
#

there is a extension named python indent for automatic indent

solid gyro
proud quest
#

He was aware there were numerous wonders of this world including the unexplained creations of humankind that showed the wonder of our ingenuity. There are huge heads on Easter Island. There are the Egyptian pyramids. There’s Stonehenge. But he now stood in front of a newly discovered monument that simply didn't make any sense and he wondered how he was ever going to be able to explain it.

#

There was a leak in the boat. Nobody had yet noticed it, and nobody would for the next couple of hours. This was a problem since the boat was heading out to sea and while the leak was quite small at the moment, it would be much larger when it was ultimately discovered. John had planned it exactly this way.
"Can I get you anything else?" David asked. It was a question he asked a hundred times a day and he always received the same answer. It had become such an ingrained part of his daily routine that he had to step back and actively think when he heard the little girl's reply. Nobody had before answered the question the way that she did, and David didn't know how he should respond.
She glanced up into the sky to watch the clouds taking shape. First, she saw a dog. Next, it was an elephant. Finally, she saw a giant umbrella and at that moment the rain began to pour.

#

The song came from the bathroom belting over the sound of the shower's running water. It was the same way each day began since he could remember. It listened intently and concluded that the singing today was as terrible as it had ever been.

raven orbit
hearty heath
#

👋