#off-topic-lounge-text

1 messages ยท Page 31 of 1

rough cedar
#

will pay 5$ if it works

rough cedar
#

hello

#

how can I voice chat her e?

#

im just needing a 5minutes help

true hazel
#
$ docker-compose up --build
Pulling pgdb (postgres:)...
Docker Compose is now in the Docker CLI, try `docker compose up`

latest: Pulling from library/postgres
error pulling image configuration: Get https://registry-1.docker.io/v2/library/postgres/blobs/sha256:3d8d979945851f52a66f04e92cfc9d5d08f71bb5166e5292978162764a053b2c: unknown: unable to scan account service account row from query: context deadline exceeded
jagged granite
true hazel
#
version: "3.8"
   
services:
    django:
        build: .
        container_name: django
        command:  python manage.py runserver 0.0.0.0:8000
        volumes:
            - .:/usr/src/app/
        ports:
            - "8000:8000"
        networks:
            - pg_database
        environment:
            - DEBUG=1
            - DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
            - CELERY_BROKER=redis://redis:6379/0
            - CELERY_BACKEND=redis://redis:6379/0
        depends_on:
            - pgdb
            - redis
    celery:
        build: .
        command: celery -A core worker -l INFO
        volumes:
            - .:/usr/src/app
        networks:
            - pg_database
        environment:
            - DEBUG=1
            - DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
            - CELERY_BROKER=redis://redis:6379/0
            - CELERY_BACKEND=redis://redis:6379/0
        depends_on:
            - django
            - redis
    pgdb:
        image: postgres
        container_name: pgdb
        environment:
            - POSTGRES_DB=postgres
            - POSTGRES_USER=postgres
            - POSTGRES_PASSWORD=postgres
        volumes:
            - pgdata:/var/lib/postgresql/data/
        networks:
            - pg_database
    redis:
        image: "redis:alpine"
        networks:
            - pg_database
        
volumes:
    pgdata:

networks:
  pg_database:
    driver: bridge
jagged granite
toxic onyx
#

hello

#

can someone please help

tawdry yew
#

@swift holly

#

need help

#

?

wispy axle
#

I guess, no

ember orbit
#

alright so i coded an app on python, compiled it with pyinstaller i tested it on my pc and it works fine but i tested it in another pc and it doesn't work properly, why?

weak coyote
#

need help? how to make witch game in code.org?

cursive grove
#
def gotoreg(self):
        code = self.regcode.text()
        if len(code) == 0:
            self.error.setText("The field is empty.")
        else:
            conn = sqlite3.connect("mycodes.db")
            cur = conn.cursor()
            query = 'SELECT Codes FROM pass_codes WHERE Codes = \''+code+"\'"
            cur.execute(query)
            result_code = cur.fetchone()[0]
        if code == result_code:
            reg = RegScreen()
            widget.addWidget(reg)
            widget.setCurrentIndex(widget.currentIndex() + 1)
        else:
            print("false")
            self.error.setText("Invalid code.")```
#

i need help. Can anyone give me a hand about this code i can access the "mycodes.db" and verify the variable code is equal to result_code. The problems when the code cant find the string the programs breaks and does not trigger the else statement.

jolly trout
#

result_code will be used before defining in the case len(code)==0

cursive grove
#

can anyone help me?

celest steppe
#

sure

#

in what?

cursive grove
#

i have this 3 codes i want to connect them together

#

ill have to explain later i just gotta take a bathroom break

cursive grove
true wagon
celest steppe
#

yea i think itll be better if you use a help channel

keen sail
#

I hope I can use my voice here

snow axle
#

hello guys, i need help please... does anyone of you know appium? appium is perfectly installed in my machine (raspi) but I still kept getting this error: /bin/sh: 1: appium: not found any help would be so much appreciated. Thank you.

burnt mica
#

NC

keen sail
#

Hii

#

I still cant use

#

my mic

keen sail
#

???

keen sail
#

still

idle sorrel
#

Hi! Can someone help with Django?
I have some issue with database.

sick pagoda
#

I want to do this in regex ...cant figure this out can anyone help me ?

zenith crown
#

hey

primal bison
#

(:

severe monolith
#

Hey guys! Do any of you have the time to help me with a school project?

#

I am working on a neural network

pastel glade
#

how do you import .xlsx file in jupyter notebook for R??

frozen lance
fast heron
#

hi

meager yoke
#

i need help please on a python script, it's urgent

dull flower
#

can i get help with a tensorflow code?

primal bison
#

can u guys hear me

primal bison
#

nooooo

gentle jacinth
#

Does someone know about Selenium

#

?

#

who can help me?

lilac viper
#

Can anyone help me with exceptions ?

#

I need to run through my program printing only the first error that occurs then exiting the program. Currently my program prints all errors.

subtle vessel
#

hi

alpine fractal
#

i

#

hi

hardy spoke
#

Hellooo , anyone here know hoy pass the python to HTML? im so loose

opaque widget
#

can someone give me any link for practicing python questions for beginer level please?

austere void
#

can someone help me with this code in visual studio?

#
from discord.ext.commands import Bot
import random
import pickle
import os

client = Bot(command_prefix=",") 

data_filename = "data.pickle"

class Data:
    def __init__(self, wallet, bank):
        self.wallet = wallet
        self.bank = bank



@client.event
async def on_ready():
    print(f"Logged in as {client.user}")



@client.command()
async def work(message):
    member_data = load_member_data(message.author.id)

    member_data.wallet += 1
    await message.channel.send("You earned 1 coin!")

    save_member_data(message.author.id, member_data)

@client.command()
async def bal(message):
    member_data = load_member_data(message.author.id)

    embed = discord.Embed(title=f"{message.author.display_name}'s Balance")
    embed.add_field(name="Wallet", value=str(member_data.wallet))
    embed.add_field(name="bank", value=str(member_data.bank))

    await message.channel.send(embed=embed)


#Functions
def load_data():
    if os.path.isfile(data_filename):
        with open(data_filename, "rb") as file:
            return pickle.load(file)
    else:
        return dict()

def load_member_data(member_ID):
    data = load_data()

    if member_ID not in data:
        return Data(0, 0)

    return data[member_ID]

def save_member_data(member_ID, member_data):
    data = load_data()

    data[member_ID] = member_data

    with open(data_filename, "wb") as file:
        pickle.dump(data, file)```
#

it says its not working

primal bison
#

!paste

timid fjordBOT
#

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.

devout gyro
#

@austere voidand

#

what does it

#

say

#

why is it not working

#

??

austere void
#

so

#

it just said incorrect

#

and

#

let me see what the console log said

#

alr

#

problem:
cannot run discord

primal bison
#
print("\n")
x = len(Atm)
y = 0
z = 0
go = 0
while z <= x-1:
    go = 20 - len(Atm[z])
    while y <= x-1:
        print(str(y+1) + ". " + Atm[y] + "  -> " + Atm_symbols[y] + "  -> " + Atm_mass[y])
    y += 1
    z += 1
    go = 0```
#

plzzz help

primal bison
#

need help in the voice code/help1

mighty plaza
#

Creating a window screen

wn = turtle.Screen()
wn.title("Snake Game")
wn.bgcolor("blue")

the width and height can be put as user's choice

wn.setup(width=600, height=600)
wn.tracer(0)

head of the snake

head = turtle.Turtle()
head.shape("square")
head.color("white")
head.penup()
head.goto(0, 0)
head.direction = "Stop"

food in the game

food = turtle.Turtle()
colors = random.choice(['red', 'green', 'black'])
shapes = random.choice(['square', 'triangle', 'circle'])
food.speed(0)
food.shape(shapes)
food.color(colors)
food.penup()
food.goto(0, 100)

pen = turtle.Turtle()
pen.speed(0)
pen.shape("square")
pen.color("white")
pen.penup()
pen.hideturtle()
pen.goto(0, 250)
pen.write("Score : 0 High Score : 0", align="center",
font=("candara", 24, "bold"))

#

It dosent create the window

dim palm
#

.

brazen drift
#

explain numpy

timid fjordBOT
#

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

oblique ingot
#

hi

#

def staircase(n):
for i in range(1, n+1):
stars = "#" * i
space = (n-i-1)*' '
print(space, stars)

staircase(6)

#

When i run this code everthing is goind well untill the last line

#

i tried to solve, but as you can understand i couldn't. Anyone with diffrent perspeftive?

oblique ingot
#

def staircase(n):
for i in range(1, n+1):
stars = "#"i
space = " "
(n-1)
n-=1
print(space+stars)

#

i solved thanks folksss

#

๐Ÿ˜„

primal bison
#

@stray oakoi

#

@brisk driftoi

#

you guys alive

brisk drift
#

yes

#

we have no persmission to mic

#

no

primal bison
#

what you mean

#

are you able to talk or does it not allow you

brisk drift
#

it does not allow me

primal bison
#

whhhat

#

that soshdfhasdofh

brisk drift
#

yeah :/

primal bison
#

damn it

#

no worries though

#

btw you free though

brisk drift
#

you guys are doing good gossip

primal bison
#

๐Ÿคฃ

#

shshs

brisk drift
#

most of talks are non tech ๐Ÿ˜„

primal bison
#

True

brisk drift
#

moreover its helping me to free of code stuck

primal bison
#

nice nice

brisk drift
#

ok

primal bison
#

you got experience in pyqt5 btw

brisk drift
#

nope

primal bison
#

or some gui development in general

brisk drift
#

i am django developer

primal bison
#

damn nice

brisk drift
#

who is talking now?

primal bison
#

Oasis and Gi

brisk drift
#

oh

#

Gi is little

primal bison
#

both are

brisk drift
#

okay see you buddies

#

@primal bison do you play

#

PUBG?

#

@primal bison ask her

#

my question

#

๐Ÿ˜„ finger crossed!

primal bison
#

afk give me sec yall

brisk drift
#

okay

#

how can i join VC ?

#

you guys doing good gossip

primal bison
brisk drift
#

I am friendly about this. I know how it feels.

#

@golden kindle thank you

#

@primal bison no. I am not Indian. Guess my country

#

hahah

#

it means Cuty instead of PyQT

#

i can understand the exam in India

#

@primal bison

#

@primal bison

primal bison
#

oi

brisk drift
#

@primal bison Actually, its hard to live in 3rd world country. Students are like a pressure cooker

thorny heath
#

hi

brisk drift
#

hi

fading bluff
#

There seems to be a lot of people saying 'hi' here.

#

I'll step up and also say hi

#

So umm...

#

Anyone else working on anything cool with python?

#

So on this discord is django preferred over flask?

#

Or how about bottle? Bottle is supposed to be tiny.

#

And good for small implementations of microservices.

#

Or personal projects.

primal bison
#

This voice verification is painful

#

So painful

rancid pumice
#

@primal bison here

primal bison
#

im looking at the code

rancid pumice
primal bison
#

nice channel

naive vector
#

Using this function to parse a xml string from a inputbox...
How do I only continue the processing of the input of there are no errors:

def parseString(content):
    try:
        tree = ET.fromstring(content)
    except ET.ParseError as err:
        lineno, column = err.position
        line = next(IT.islice(StringIO(content), lineno))
        caret = '{:=>{}}'.format('^', column)
        err.msg = '{}\n{}\n{}'.format(err, line, caret)
        print(err.msg)
        raise
    return tree

How do I only continue if root is created with no error??

            root = parseString(string_data)
hybrid dirge
#

I need some help for opening a text file on phyton but im not understanding by chat, can someone voice chat me

timid fjordBOT
#

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

summer sentinel
halcyon field
#

can someone help me? i have problem with pyaudio i can't install this

#

and i have error: pipwin : The term 'pipwin' is not recognized as the name of a cmdlet, function

#

when: pipwin install pyaudio

timid fjordBOT
#

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

#

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

quartz cliff
#

@primal bison

#

wh's ur name

timid fjordBOT
#

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

vague monolith
#

hello, is there any one good at html css who can help me, i have a small problem on my code, and i have no idea on how to do it

tough estuary
#

Hey

#

Can I get some help over here?

hushed elm
#

a

#

a

proper cobalt
#

a?

low fossil
sacred patio
#

Are we allow to request help in the voice chats?

#

Also how can we tell if we are voice verified

timid fjordBOT
#

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

hasty spoke
#

hi

#

hi?

sly wren
#

Hi! Just a beginner who wants help setting up a venv

blissful spire
# sly wren Hi! Just a beginner who wants help setting up a venv

Open VS Code in the project folder.

Open terminal.

Type "python -m venv <name of the venv here>"

Activate it by typing ".<name of the venv>\Scripts\Activate.ps1" in the terminal.

Install the packages.

If you get a suggestion to update python, do so.

If you don't update, venv will not work the next time you activate it.

Hope it helps!

mild quarry
#

can someone help me deploy my django project please

sly wren
#

I WAS USING python3 -m venv .venv WHICH IS WHY IT DIDN

#

WORK

burnt bloom
#

why i can not run the program

tender tangle
#

it says why

#

you wrote prin ("HELLO") instead of print("HELLO")

#

see where it says:

#

?

#

@burnt bloom

primal bison
#

Hello everyone, who can help me with a small programming in python/ jupyter

vagrant mango
#

flaskkk

vagrant mango
blissful spire
west sun
#

im new to this and need help

#

grade = input ("grade")
if grade >= 50
print ("pass"):
else print ("fail"))

#

whats wrong with the above code

primal bison
#

@west sun
1st line since its input it shld be int(input("grade"))
2nd semicolon missing at end
3rd line intendation not proper with if same with else

#

Chk these and get back and post your query in the right channel pls...

burnt swan
#

I have an issue

remote edge
#

Hello guys can i get some help?

unique wyvern
#

hi i am new to pythone

chilly summit
#

same

sonic gale
#

this is perfectly done!

#

congrats

edgy raft
#

Can anybody help me with this??

#

I am new to python

#

This is quite confusing because i think this is right?

south juniper
chilly zephyr
#

ok soooo is this right

#

import turtle

tom = turtle.turtles()

tom.left(45)
turtle.done()

primal bison
#

j

modest coral
#

hello can anyone help me

soft heart
#

yes

#

what is the problem ?

#

?

steel pebble
#

I might be able to @modest coral... What do you need help with?

primal bison
#

ike

#

could you help me with my code?

kindred lily
#

mmoooothhherrrr

#

ffffuuuucckkkkkkkeeerrrrr

#

bbbbbeeeeeaaaacccchhhhhh

#

mmmmmmeeeeennnnnn

#

iiiinnnnn

#

yyyyyoooouuuurrrrr

#

eeeeeaaaaaaasssseeellllll

shadow ivy
#

hm

#

^ is there any context for that outburst guys?

primal bison
#

Hello, I am trying to make a toggle for when someone holds left click, it will draw a pattern by following coordinates, I think I've done it, but now when I move my mouse, it draws a pattern by following coordinates, but I want it to draw the pattern when I click not when I move my mouse.

Here is the code:

from pynput.mouse import Listener, Button, Controller
import pyautogui
import mouse 

mouse = Controller()

press = False

def on_move(x, y):
    if press:
        pyautogui.moveTo(960, 540, duration=0, tween=pyautogui.easeInOutQuad)
        pyautogui.moveTo(960, 800, duration=2, tween=pyautogui.easeInOutQuad)
    else:
     return False

def on_click(x, y, button, pressed):
    global press
    press = pressed

while True:
  with Listener(on_move = on_move, on_click=on_click) as listen:
    listen.join()
#

Could someone help me

kindred lily
primal bison
maiden wind
#
mouse.is_pressed()
#
pyautogui.mouseDown(button='left')
primal bison
maiden wind
#
def on_click():
  pyautogui.dragTo(960, 540, button='left')
  pyautogui.dragTo(960, 800, button='left')
primal bison
timid fjordBOT
#

Hey @manic linden!

It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

inner yoke
#

Hello there

#

I need a quick help

#

Just a little thing

#

Ping me if som1 is ready to help me

frank glade
#

why does my mouse keep freezing in my program
i am trying to detect a mouse click
and when it detects a mouse click i want it to search for an image

hidden scroll
#

hi

austere forge
rustic canopy
#

Hey i need some help

velvet sedge
rustic canopy
#

ye found it

#

code was wrong too we swapped it

timid fjordBOT
#

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

gaunt topaz
red nova
#

i need help from homeworks, can somebody help me?

strange copper
zealous moth
#

!voiceverif

timid fjordBOT
#

Voice verification

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

fickle wraith
#

def print_nums(x):
for i in range(x):
print(i)
return

print_nums(10)

#

can somebody explain to me why is the output of this code 0?

bitter haven
#

remove return

quartz bison
#

I want to do pd.concat multiple time through all my dataframes
I did merge 2 dataframes with simple pd.concat, but I don't know how to iterate through all my dataframes
can someone help me in vc?

#

my attempt

rigid bluff
#

!voiceverify

shadow ivy
#

!d pandas.concat

timid fjordBOT
#

pandas.concat(objs, axis=0, join='outer', ignore_index=False, keys=None, levels=None, names=None, verify_integrity=False, sort=False, copy=True)```
Concatenate pandas objects along a particular axis with optional set logic along the other axes.

Can also add a layer of hierarchical indexing on the concatenation axis, which may be useful if the labels are the same (or overlapping) on the passed axis number.
primal bison
#
def wait_for(by, element, timeout):
    if not isinstance(by, By.XPATH):
        raise ValueError("Invalid parameter!")
#

What I'm trying to achieve is my function only allowing the parameter being By.XPATH and looks like I'm getting that traceback on the image

chilly zephyr
#

i need help but it is hard to say

#

and idk no y im mutid in the vc

long rapids
timid fjordBOT
#

Voice verification

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

fickle wraith
#

could you tell me what is wrong with this code?

#

why can't I get the expected output?

gaunt topaz
#

Most of them look like they are one more than they should be.

warm mango
#

len(line.strip()) ?

neat wasp
#

Hey...

#

โœ‹

dusky bridge
#

from playsound import playsound
playsound("A:/Alve/Hottiti/Documents/try.py/Sounds/wi.mp3")

#

whats wrong in this code

#

tell me someone

#

@hallow jasper

dusky bridge
# wet minnow what error are u getting

Traceback (most recent call last):
File "a:\Alve\Hottiti\Documents\First file\test.py", line 2, in <module>
playsound("A://Alve//Hottiti//Documents//try.py//Sounds//Thanos.mp4")
File "C:\Python10\lib\site-packages\playsound.py", line 34, in _playsoundWin
winCommand('open "' + sound + '" alias', alias)
File "C:\Python10\lib\site-packages\playsound.py", line 27, in winCommand
exceptionMessage = ('\n Error ' + str(errorCode) + ' for command:'
TypeError: can only concatenate str (not "bytes") to str

devout lynx
#

i need help

midnight spindle
#

Sum( f, n) which takes as argument a function f and an integer n and
emitted โˆ‘ f(k)

#

any idea ?

#

!!

lavish ravine
#

and add it as a packgae to ur interprreter

#

package*

lavish ravine
half zodiac
#

I was using transformer with tensorflow to generate sentence but the code closes without an output,
from transformers import pipeline
generator = pipeline(task= 'text-generation', model= 'gpt2')
generator("I am now testing..", max_length=300, num_return_sequences=3)

pine marten
#

hi

lament prairie
#

Is anyone available to help me with some homework?

slow jetty
#

!voiceverif

timid fjordBOT
#

Voice verification

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

bleak furnace
#

is this channel available

snow dagger
#

!voiceverif

timid fjordBOT
#

Voice verification

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

dusty solar
#

!voiceverif

timid fjordBOT
#

Voice verification

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

primal bison
#

!voiceverif

timid fjordBOT
#

Voice verification

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

slow jetty
#

!voice

timid fjordBOT
#

Voice verification

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

lone warren
#

!voice

#

!voiceverify

willow pasture
#

!voiceverify

slow jetty
#

!voice

timid fjordBOT
#

Voice verification

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

dusty trellis
#

1

#

2

#

3

#

4

#

5

#

wait

#

nvm

graceful junco
#

!voice

hollow crest
mighty perch
#

myName = input("Hello. What is your name?: ")
print() #easy way to add space between output lines

myQuestion = input("Thank you " + myName + ". "+ "What is your question?: a=() b=()")

#print output
print( "Nice to meet you", myName + ".", "okay so ", myQuestion + " is,")

print( "Good bye.")

maiden birch
#

Could someone help me figure out what's wrong with this code?

nimble scaffold
#

And also on line 15, ".." remove that dots

#

On line 23, there should be '.' between string and format

#

last line should be like this

#

print("The discount in $ {0:.2f}".format(discount))

pearl pivot
#

Help in the corn section plz

valid girder
#

Anyone willing to chat with me about decorators in CodeHelp1?

nocturne mesa
#

hi

#

!voiceverif

wicked breach
#

!voiceverif

inland isle
#

Hello!

pearl silo
#

!voiceverif

timid fjordBOT
#

Voice verification

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

hollow tinsel
#

Hi

#

I have some problems

#

Im trying to import functions from one file to another

#

this is the error

#

this is how i imported the funtions

#

this is how I imported some data from the main file to the funtions file

peak wagon
#

any idea why this error occurs

amber tartan
#

Hey guys,
I am trying to write a recursive function that takes a list of integers as parameter and returns True if sum of 2 numbers from that list is 0 else returns False. So far I've tried:
L = [12,5,10,-5,8]
def inverse_pair(L):
if not L:
return False
else:
if inverse_pair(L[1:])+inverse_pair(L[1:]) == 0:
return True
return False

languid crystal
#

having trouble getting started here

#

i know that i need to use some form of indexes but im honestly lost

#

im pretty sure it requires for and in as well

night lily
#

!e py text = "apples pear grapes" result = text.split(" ") print(result)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['apples', 'pear', 'grapes']
night lily
#

!e py text = "apples pears grapes bananas" result = text.split(" ", maxsplit=1) print(result)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['apples', 'pears grapes bananas']
night lily
#

!e py text = "apples pears grapes bananas oranges" result = text.split(" ", maxsplit=2) print(result)โ€Š

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['apples', 'pears', 'grapes bananas oranges']
night lily
#

!e py url = "http://blahblahblah://byadda" a, b = url.split("://", maxsplit=1) print(a) print(b)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | blahblahblah://byadda
night lily
#

!e py nums = [1,2] a, b = nums #variable unpacking print(a) print(b)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
night lily
#

!e py b = "www.blah.com/blah" c, d = b.split("/", maxsplit=1) print(c)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

www.blah.com
night lily
#

!e b = "www.blah.com/blah" c = b.split("/", maxsplit=1)[0] print(c)โ€Š

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

www.blah.com
night lily
#

!e py b = "www.blah.com/blah" c = b.split("/", maxsplit=1) print(c)โ€Š

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['www.blah.com', 'blah']
night lily
#

!e py my_list = ["apples", "pears", "grapes"] print(my_list[0]) print(my_list[1])

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

001 | apples
002 | pears
languid crystal
#
domain = url.split("w.", maxsplit=1)
print(domain)

#

!e

timid fjordBOT
#
Command Help

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

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

night lily
#

!e py text = "yaddayadda" result = text.split("$") print(result)

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['yaddayadda']
night lily
#

!e py www.discord.com

timid fjordBOT
#

@night lily :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'www' is not defined
languid crystal
#

  if component == 'protocol':
    url = url.split('://', maxsplit = 1)[0]
  elif component == 'domain':
    url = url.split('/', maxsplit = 1)[0]
  else:
    print('Error')

    return url
    
    # Remember: end all of your functions with a return statement, not a print statement!

# Test cases
print(decompose_url('protocol', 'https://stonybrook.edu/')) ```
night lily
#

str.split/cut cake in half on :// The first half of the cake is the protocol.

Cut the second half in half on /, the first quarter is your domain.

#

maxsplit=1 for at least the second split

languid crystal
#
url = 'http://discord.com/'

protocol = url.split('://', maxsplit = 1)
domain = url.split('/', maxsplit = 1)

print(print)
print(domain)

night lily
#
def func(url):
    ...
    return protocol, domain

url = "http://www.blah.com/yadda/yaddaboo"
result = func(url)
print(result)```Write for ... just for now.
languid crystal
#

!e ```
url = 'http://discord.com/'

protocol = url.split('://', maxsplit = 1)
domain = url.split('/', maxsplit = 1)

print(print)
print(domain) ```

timid fjordBOT
#

@languid crystal :white_check_mark: Your eval job has completed with return code 0.

001 | <built-in function print>
002 | ['http:', '/discord.com/']
night lily
#

!e ```py
url = 'http://discord.com/'

protocol = url.split('://', maxsplit = 1)

print(protocol)```

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

['http', 'discord.com/']
night lily
#

!e ```py
url = 'http://discord.com/'

protocol, not_protocol = url.split('://', maxsplit = 1)

print(protocol)
print(not_protocol)```

timid fjordBOT
#

@night lily :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | discord.com/
night lily
#
domain, not_domain = not_protocol.split(...)```
languid crystal
#

!e

timid fjordBOT
#
Command Help

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

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

languid crystal
#
domain, not_domain = not_protocol.split('/', maxsplit = 1)

#

!e ```

url = 'http://youtube.com/'

protocol, domain = url.split("://", maxsplit = 1)

print(protocol)
print(domain)

timid fjordBOT
#

@languid crystal :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | youtube.com/
languid crystal
timid fjordBOT
#

@languid crystal :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | youtube.com/mrbeast
languid crystal
#

!e ```

url = 'http://youtube.com/mrbeast'

protocol, domain = url.split("://")
domain, domain_misc = domain.split("/", maxsplit = 1)

print(protocol)
print(domain)
print(domain_misc)

timid fjordBOT
#

@languid crystal :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | youtube.com
003 | mrbeast
languid crystal
timid fjordBOT
#

@languid crystal :white_check_mark: Your eval job has completed with return code 0.

001 | http
002 | youtube.com
003 | mrbeast/squidgames/video
languid crystal
timid fjordBOT
#

@languid crystal :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | ValueError: too many values to unpack (expected 2)
languid crystal
#

!e ```
url = 'http://youtube.com'

protocol, domain = url.split("://")
domain, domain_misc = domain.split("/", maxsplit = 1)

print(protocol)
print(domain)
print(domain_misc)

timid fjordBOT
#

@languid crystal :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | ValueError: not enough values to unpack (expected 2, got 1)
full bone
#
protocol = url.split('://')[0]
languid crystal
#
def decompose_url(component, url):

  if component == 'protocol':
    url = url.split('://')[0] 
    
  elif component == 'domain':
    url = url.split('/')[0]
    
  else:
    print('Error')

    return url

# Test cases
print(decompose_url('protocol', 'https://stonybrook.edu/'))
print(decompose_url('protocol', 'ftp://amazon.com/'))
print(decompose_url('domain', 'https://stonybrook.edu/sbengaged'))
print(decompose_url('hello', 'https://stonybrook.edu/sbengaged'))
print(decompose_url('domain', 'https://en.wikipedia.org/wiki/Alan_Turing#Awards,_honours,_and_tributes'))
print(decompose_url('protocol', 'smtp://mail.notahacker.org/steal_your_info'))
print(decompose_url('files', 'smtp://mail.notahacker.org/steal_your_info'))```
full bone
#
url = url.split('://')[1].split('/')[0]
#

it looks like this?

def decompose_url(component, url):
    
    if component == 'protocol':
        url = url.split('://')[0] 
    
    elif component == 'domain':
        url = url.split('://')[1].split('/')[0]
    
    else:
        print('Error')

    return url
languid crystal
#

    if component == 'protocol':
        url = url.split('://')[0] 
    
    elif component == 'domain':
        url = url.split('://')[1].split('/')[0]
    
    else:
        print('Error')

    return url ```
night lily
#
def func(url):
    ...
    return protocol, domain

url = "http://www.blah.com/yadda/yaddaboo"
result = func(url)
print(result)```
#

Solve for ...

primal bison
#

@night lily you are tutor?

#

how do i enable microphone

night lily
#

!voice

timid fjordBOT
#

Voice verification

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

night lily
#

@primal bison

primal bison
#

!voice

timid fjordBOT
#

Voice verification

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

coral lily
#

@primal bison, if you want to speak you need get the voice-verified role

buoyant kestrel
#

!e

ham = ""
for i in range(5):
  ham += str(i)
print(ham)
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

01234
buoyant kestrel
#

!e

for i in range(5):
  ham += str(i)
print(ham)
timid fjordBOT
#

@buoyant kestrel :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'ham' is not defined
buoyant kestrel
#
ham += str(i)
# is the same as
ham = ham + str(i)
#

!e

for i in range(5):
  print(i)
print("Done!")
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | Done!
buoyant kestrel
#

0

#

1

#

10

#

11

#

1 1 0

#

(1 * 2^2) + (1 * 2^1) + (0 * 2^0)

#

!e

reverse_binary = ""
integer_value = 6
while integer_value > 0:
  print(f"{integer_value=}")
  reverse_binary += str(integer_value % 2)
  integer_value = integer_value // 2
  print(f"{reverse_binary=}")

timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

001 | integer_value=6
002 | reverse_binary='0'
003 | integer_value=3
004 | reverse_binary='01'
005 | integer_value=1
006 | reverse_binary='011'
buoyant kestrel
#

!e

ham = "Boy, Python is dope"
print(ham[3:9])
print(ham[::2])
print(ham[::-1])
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

001 | , Pyth
002 | By yhni oe
003 | epod si nohtyP ,yoB
buoyant kestrel
#

!e

print(.1 + .2)
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

0.30000000000000004
buoyant kestrel
#

!e

print(6/2)
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

3.0
buoyant kestrel
#

!e

print(3.5 // 1.2)
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

2.0
buoyant kestrel
#

!e

print(3.5 / 1.2)
timid fjordBOT
#

@buoyant kestrel :white_check_mark: Your eval job has completed with return code 0.

2.916666666666667
wheat bronze
#

@buoyant kestrel

#

Any ideas?

buoyant kestrel
#

I can explain here in a sec. Have to feed the cat monster and then I'll type out on the laptop. What part has you stumped

wheat bronze
alpine whale
#

no dark mode?

young cedar
#

!e print("hello")

timid fjordBOT
#

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

hello
lusty mason
#

I can't talk ๐Ÿ˜

eager citrus
#

!e
Answer = "Alright bet"

question = input("Do you like to say alright bet?")

if question == ("no"):
print("good I like you")
else:
print(Answer)

timid fjordBOT
#

@eager citrus :x: Your eval job has completed with return code 1.

001 | Do you like to say alright bet?Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | EOFError: EOF when reading a line
shell ermine
#

!e print(โ€œthis is a cool botโ€)

timid fjordBOT
#

@shell ermine :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print(โ€œthis is a cool botโ€)
003 |           ^
004 | SyntaxError: invalid character 'โ€œ' (U+201C)
shell ermine
#

!e print(โ€œhelloโ€)

timid fjordBOT
#

@shell ermine :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print(โ€œhelloโ€)
003 |           ^
004 | SyntaxError: invalid character 'โ€œ' (U+201C)
shell ermine
#

!e print("hello")

timid fjordBOT
#

@shell ermine :white_check_mark: Your eval job has completed with return code 0.

hello
warm bay
#

hie

#

i need some help in stalling arangodb in mac

#

can anyone help me out of this

tiny socket
#

!e input("test")

timid fjordBOT
#

@tiny socket :x: Your eval job has completed with return code 1.

001 | testTraceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
tiny socket
#

ok

#

!e
a=b**b
b=10
print(b)

timid fjordBOT
#

@tiny socket :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'b' is not defined
wary flame
#

!e print(print)

timid fjordBOT
#

@wary flame :white_check_mark: Your eval job has completed with return code 0.

<built-in function print>
young garnet
#

!e print("hi there!")

timid fjordBOT
#

@young garnet :white_check_mark: Your eval job has completed with return code 0.

hi there!
bold prairie
#

!e print("Hello .Nabil!")

timid fjordBOT
#

@bold prairie :white_check_mark: Your eval job has completed with return code 0.

Hello .Nabil!
primal bison
#

!e channel.send("tet")

#

!e print("Test"$

#

!e print("Test")

timid fjordBOT
#

@primal bison :white_check_mark: Your eval job has completed with return code 0.

Test
timid fjordBOT
#

@merry ocean :warning: Your eval job has completed with return code 0.

[No output]
merry ocean
#

!e

test_list = [9,8,7,6,5,4,3,2,1,0]
print({k:v for k, v in enumerate(test_list)})```
timid fjordBOT
#

@merry ocean :white_check_mark: Your eval job has completed with return code 0.

{0: 9, 1: 8, 2: 7, 3: 6, 4: 5, 5: 4, 6: 3, 7: 2, 8: 1, 9: 0}
primal bison
#

!e
@commands.command(name="embed")
async def embed(ctx):
embed = discord.Embed(title="embed")
return await ctx.send(embed=embed)```

timid fjordBOT
#

@primal bison :warning: Your eval job has completed with return code 0.

[No output]
primal bison
#

!e
@commands.command(name="embed")
async def embed(ctx):
embed = discord.Embed(title="embed")
return await ctx.send(embed=embed)

timid fjordBOT
#

@primal bison :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 3
002 |     embed = discord.Embed(title="embed")
003 |     ^
004 | IndentationError: expected an indented block after function definition on line 2
primal bison
#

!eval embed=discord.Embed(title='All Systems Operational', description=f'online Antinuke Systems\n!online Anti Bots Systems', color=255)
await ctx.send(embed=embed)

merry ocean
#

any chance you guys are talking about maths here, too?

pine otter
#

what you using to build REST api?

agile portal
#

the reason i was recommending emmet <-

obtuse nebula
#

@gloomy lily ```python
from pydantic import BaseModel

router = APIRouter()

class Calc(BaseModel):
op: str
number1: int
number2: int

@router.post("/calc")
def calc(body: Calc):```

honest pasture
#

boo pydantic

#

functionality that should be in he standard library

obtuse nebula
#
import os

from fastapi import APIRouter, FastAPI
from pydantic import main

from .routers import name_main_router

app = FastAPI()

@app.get("/ping")
def ping():
    return 'pong'```
honest pasture
fresh sail
honest pasture
#
    const htmlString = `<div class="media-left">
                                        <figure class="image">
                                            <img src="${therapistProfile.img_uri}"
                                                 alt="${therapistProfile.name}">
                                        </figure>
                                    </div>
                    </div>`
    var wrapper = document.createElement('div');
    wrapper.innerHTML = htmlString;
    return wrapper.firstChild;
gloomy lily
fresh sail
median mantle
#

@oak shard @umbral thunder you can write here

distant patrol
#

1?

oak shard
#

oh ok

#

this talking system is bit weird

umbral thunder
#

Yes

#

Ok

oak shard
#

@median mantle ฤฑ need help for something

distant patrol
#

1 sec

#

my inet lagi

umbral thunder
#

I am here

#

So I have use django and also flask

#

But didn't use FastAPI

distant patrol
#

What is FastAPI

umbral thunder
#

and also new to rest framwork

#

Let's start with fast api

#

yes

distant patrol
#

Dont know Xd

oak shard
#

isnt it like vss

distant patrol
#

Its like asking data?

umbral thunder
#

I have develop some with flask

distant patrol
#

Ok

umbral thunder
#

Ok

distant patrol
#

Kind of

umbral thunder
#

No I am not new

oak shard
#

no

#

ฤฑ am new to

umbral thunder
#

yes

oak shard
#

yes

#

you can continue

umbral thunder
#

I now these basics

#

ok

#

Yes it is simple

honest pasture
#

@fresh sail something came up - I can work on data website in ~4/5 hours

umbral thunder
#

So it is build on top of anyother framwork or it's totally another framwork?

oak shard
#

dont go harder

#

can ฤฑ say something

umbral thunder
#

continue

oak shard
#

ฤฑ wasnt on my pc what is fast apฤฑ

umbral thunder
#

u can

#

uvicorn main:project

#

So we can also run with gunicorn

oak shard
#

some one left

#

ฤฑ tried to learn python from a youtube video witch is around 12 hours

#

ฤฑ am still in the first 2 hours of the video

#

and ฤฑ have a problem with my code

#

can you help me about that a little bit

#

ฤฑ have a question that ฤฑ should ansver with y or n

#

ฤฑ get the part that if ฤฑ answer with y or n

silver solar
#

idk how to get vscode html auto complete working hm

#

it always auto complete a wrong tag

twilit echo
#

@atomic phoenix i left that rust server dude๐Ÿคฃ

#

i did leave

#

why would i lie about that๐Ÿคฃ

#

those moderators are bozos

#

they are weak

#

they stand for nothing

#

they went with the majority

#

because nobody wants to be productive

#

and talk about languages and do nothing for hours...and anything apart from rust

#

That server is dry anyway

#

Python is alot better

#

@atomic phoenix you ready to begin?

#

i just cant stand weak people

#

these people lowered their standards to Fit In

#

I never cared

vernal snow
opal sentinel
#

@atomic phoenix

twilit echo
#

@atomic phoenix are we ever going to begin?

#

@atomic phoenix thats ok man

#

Ill just do something else i guess๐Ÿคฃ

#

thanks for looking out thoughโค๏ธ

#

Dont worry man, ill be fine

#

Have fun

paper tangle
#

what's going on in here

true wagon
#

๐Ÿ‘‹ @vernal snow

chilly crater
obtuse nebula
#

We going to bully jake?

true wagon
#
"*3\r\n:1\r\n:2\r\n:3\r\n"
sturdy geyser
paper tangle
#

ladies

#

what's up

scarlet patio
#

@atomic phoenix plz share screen , i wont to see ๐Ÿฅบ ?

#

@atomic phoenix you have a really nice voice
i really loved

#

I'm going to sleep, have a nice day
and besafe

tawdry quarry
#

Hey where should I ask a coding question?

torpid blaze
topaz wing
#

Hello everyone

timid fjordBOT
#

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

topaz wing
#

is there a way to get all 50 messages sent to the server to be able to enter the voice chat

thorny lotus
#

I guess I'll browse for awhile longer!

torpid blaze
echo bobcat
#

!e

timid fjordBOT
#
Command Help

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

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

echo bobcat
#

!e ```python
def Hello():
return "Hello World!"
print(Hello())

timid fjordBOT
#

@echo bobcat :white_check_mark: Your eval job has completed with return code 0.

Hello World!
pastel quail
#

!e

print("Lets do this!")
timid fjordBOT
#

@pastel quail :white_check_mark: Your eval job has completed with return code 0.

Lets do this!
topaz wing
kind dagger
#

!e

timid fjordBOT
#
Command Help

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

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

kind dagger
#

!eval
os.system("stop")

timid fjordBOT
#

@kind dagger :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'os' is not defined
timid fjordBOT
#

:incoming_envelope: :ok_hand: applied mute to @topaz wing until <t:1646822823:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).

ionic vector
#

pls

#

if only I could speak in live coding

cloud cloak
#

@topaz wing Do not spam messages to reach the minimum required for voice

ionic vector
#

someone could fix my good code

#

I was like here for 3 blocks x 1 hour

#

but since this is my first day

#

I might need like 48 hours before I can continue my code

#

god save me, no one is helping me, they're all helping otherds

fickle wraith
#

i dont know much but send it here maybe i can help

ionic vector
fickle wraith
#

i dont think it counts

#

because i guess you have to send the messages in certain period of time

#

"Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community"

#

it says on the voice verification channel

#

thats sad am i right:(

timid fjordBOT
#

You are not allowed to use that command.

fickle wraith
#

you need to write that command in voice verification channel

#

you made it

#

hahahaha

#

i still needto send

#

need to* send more messages

#

i dunno

#

maybe i didnt send 50 messages so far

#

im not counting

#

:)

#

oh

#

i get this:

#

โ€ข You have sent less than 50 messages.

#

no thanks

#

i think it will be over soon

#

but thanks so much for your offer

#

byee

torpid blaze
fickle wraith
#

i was talking with someone i know that

#

i guess they deleted the messages between mines

#

thanks anyway:)

knotty timber
#

!e

honest pasture
#

@buoyant kestrel can Fury have streaming permissions so we can make some pretty charts?

fresh sail
#

@hollow swan May I have streaming permissions to live stream plot.ly python charts?

agile portal
#

@honest pasture C:\Program Files\Git\usr\bin\grep.exe

twilit echo
#

@fresh sail yea but ive got to go. Ill see you guys later, have fun

icy raven
#

@honest pasture how do we pattern match in python?

#

without match statement

#

@fresh sail

#

That's not pattern matching...

#

Yeah.. if statements are equivalent... but it is just sweeter syntax...

btw, I don't how they implemented in python, I've not used match yet...
But haskell pattern matching is "sweet" ..

honest pasture
#

Pattern matching is much nicer in languages with more advanced type systems than Python - it's great in Scala/Kotlin/probably-every-other-similar-language

icy raven
#

Yeah.. That make sense..

fresh sail
timid fjordBOT
#

Hey @fresh sail!

It looks like you tried to attach file type(s) that we do not allow (.xlsx). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

icy raven
#

Why wouldn't they allow xlsx

#

@honest pasture stream at 5fps.. I can't see text properly

icy raven
#

@fresh sail @honest pasture what are you guys searching for?

#

@honest pasture add spaces @fresh sail

#

make a list of cols and add there

#
yaxis = []
for i in d[field]:
  yaxis.append(i + "    ")
# when you ploting, send yaxis
#

@honest pasture

#

@fresh sail

#

No, it is general

#

Whatever you want to plot... you do it everytime... and we are not changing data

#

x, y are same @honest pasture @fresh sail

#

d[field]

#

What lib are you guys using...

#

๐Ÿ˜… got it

fallen gulch
#

@honest pasture hi sorry donโ€™t want to interrupt also have no mic

#

Maggy

#

I do have a mic

#

No nice privilege

#

Mic

icy raven
#

@honest pasture sometimes not relying on lib features and writing code will be faster...

#

Okay

#

Probably even better... if you write your own plotly....

fallen gulch
#

Is this a class project ?

#

Cool hobby ๐Ÿ’€

#

Rosemary pink

#

Teal

#

Aquamarine

icy raven
#

@fresh sail what's the website...

fresh sail
icy raven
#

No..

icy raven
#

Sure

fallen gulch
#

Pls no

icy raven
#

Treating girls differently

fallen gulch
#

Iโ€™ve been getting boosted in league of legends

icy raven
#

It's negative...

fallen gulch
#

This is my fun discord not my work discord sorry

#

Account

#

No sir

icy raven
#

Pink for girls...

fresh sail
icy raven
#

Pink for girls... find complementary for that.... I was saying...

fallen gulch
#

No lol i like pink

#

Or men pink and girls blue

#

Primary colors

icy raven
#

that color combo is not pretty...

#

better go with a gradient

fallen gulch
#

Is it poc inclusive ?

#

Jk๐Ÿ’€

#

Person of color

#

Getting fancy with it

icy raven
#

@honest pasture @fresh sail

fallen gulch
#

Very informative

#

Lol

icy raven
#

and also add references...

fallen gulch
#

No kids it is ๐Ÿค‘

icy raven
#

is it causation or correlation... "further research is needed"

icy raven
fallen gulch
#

I didnโ€™t know ๐Ÿค

#

I was trapped just listening ๐Ÿ˜ท

#

Jk

icy raven
#

@fresh sail , @honest pasture

fallen gulch
#

Pepe!!!

#

anthropomorphic frog with a humanoid body thatโ€™s a hate symbol now

icy raven
#

contrl L

#

it clears

icy raven
#

"./" ?

#

@fresh sail @honest pasture

#

@fresh sail it is in styles folder not pages

#

@fresh sail See the full error

honest pasture
#

iframe in react isn't the problem, the problem is figuring out how to get Gatsby to dump the html file somewhere that we can find it when it's running on the server

icy raven
#

Okay

honest pasture
#

I think this is how to do it

icy raven
#

/ is root folder

#

root is site i guess

#

move it site/public/static...

#

Static is in root in that doc

#

@honest pasture

#

. is current folder...

#

don't use .

#

@fresh sail

icy raven
#

I'm feeling like it is react... "it is expecting .js"

#

I don't know JS.. is it {}

#

@fresh sail

#

not ..

#

{} @fresh sail

#

public won't work because it doesn't have that file

#

oh..

#

but we don't have static

#

in root now

#

let's try all at once...

static in root
{}

#

@fresh sail

charred depot
honest pasture
#

@buoyant kestrel @fresh sail can I get streaming perms

buoyant kestrel
#

I am ninja

#

I did already

honest pasture
#

ah - yeah - thanks

icy raven
#

@fresh sail making charts?

#

me too...

#

if you really want some serious table,use sql... or use google sheets

#

there is no place for excel..

#

@fresh sail @honest pasture

#

where can I get that excel

#

@fresh sail

icy raven
#

Charlie, can you send that cleaned one...

#

why JS ๐Ÿ™

#

@honest pasture

#

I don't know... It is bad language for manipulating data...

#

You could write python for manipulating data... dump it into json or something...

#

@honest pasture what is the return type of map

#

There is something with that lamda function i think

#

test it out

#

@honest pasture

#

better way would be, write a loop that goes through entire csv( every col, row) and removes ","... @honest pasture

#

@fresh sail does this lib give interactive plots...

honest pasture
icy raven
#

Easier, Even for google @fresh sail

icy raven
thin onyx
#

@agile portal can you please help me to understand this code

import re
import string

separators = string.punctuation+string.digits+string.whitespace
excluded = string.ascii_letters

word = "badword"
formatted_word = f"[{separators}]*".join(list(word))
regex_true = re.compile(fr"{formatted_word}", re.IGNORECASE)
regex_false = re.compile(fr"([{excluded}]+{word})|({word}[{excluded}]+)", re.IGNORECASE)

profane = False
if regex_true.search(message.content) is not None\
    and regex_false.search(message.content) is None:
    profane = True
#

It was a moderation cmd for discord bot

#

I have no error but i am not able to understand code

#

๐Ÿ˜•

#

Ok

#

@agile portal Hindi me bol lo ge kya bhiya๐Ÿคฃ

agile portal
#

!e

import string; print(string.punctuation)
timid fjordBOT
#

@agile portal :white_check_mark: Your eval job has completed with return code 0.

!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
thin onyx
#

Ohh

#

Ohk

#

Ohk i understood till this

#

Aah i didn't get this ascii_letters

#

Ohk ohk thanks

#

And about that I mean how I put this in my previous code i am not able to fix it

icy raven
#

@fresh sail just class

#

Okay react...

#

make sense... it conflicts with js lang class

#

@fresh sail probably better to use just some dummy iframe like wiki and then sytle it there..

#

Use a dummy iframe @fresh sail

#

put some wiki link or something...

#

Or just link the html

#

not iframe...

#

@fresh sail do we have to have it in iframe?

#

then just link it as external url

#

<a herf = " ">

icy raven
#

Then you can just load whole html

#

@agile portal problem with js is, it is not great for data manipulation...

#

when this 1 + "1".. happens... it will annoying...

icy raven
#

yeah that will usually happen...

#

it is easy to forget and add a number and string ...

#

because our data will be in strings...

agile portal
#

๐Ÿ‘€

icy raven
#

We already talked about this...

#

jsfuck and all...

#

that's why it is bad for manipulating data...

#

And we shouldn't

icy raven
#

Sometime, I want to write a graphic library..

#

Sure...

#

Maybe in 2 months... right now I have internship

#

Cool...

#

@agile portal change email in steam

#

@agile portal what you doing...?

agile portal
#

ah i'm trying to reply to every message i get

icy raven
#

haha

agile portal
#

and i'm getting alooot of messages

agile portal
wild vortex
#

i have some issue in vs code for c can anyone help in fixing it

wild vortex
timid viper
#

How to convert cli to gui

#

๐Ÿค”

umbral hazel
#

can someone help me please

twilit echo
#

@fresh sail gotta see what we're doing first

#

no

fresh sail
opal gate
twilit echo
#

@limpid coral i think you're looking for django

plain wasp
#

i learned sql python and excel in 3 months

#

practicing sql for interview

#

@fresh sail whats the pronounciation of ur name

#

i cant speak for now just making quick conversation for the role.

#

furio shonen deren?

#

why cant i stram in the cannel? @fresh sail

#

stream?

fresh sail
#

probably need voice permission first, then you need to ask the Admins politely .

plain wasp
#

ok sir

#

class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for i, num in enumerate(nums):
for j in range(i+1, len(nums)):
if num+nums[j]==target:
return [i,j]

#

i gues

#

you have to paste ur logic inside the class function

#

@fresh sail paste the code and u will understand

#

above code

agile portal
pine otter
#

how to join?

gloomy lily
#

Trying to make a lobby ;c

#

I guess I'll wait until Furyo's done with the leetcode thing

wide aurora
#
class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        for i, element in enumerate(nums):
            try: return i, nums[i::].index(target - element)
            except ValueError:...
gloomy lily
twilit echo
#

@agile portal my money is on you, dont let me down...

opal gate
pine otter
#

f

twilit echo
pine otter
#

shh step bro

twilit echo
#

i got 10k on davinder

silver solar
#

codingame is the most intense game ever

twilit echo
#

i believe in you reaper

honest pasture
#
print(pow(sum(int(input()) for _ in range(input(i))), 2))
agile portal
#
print(sum(int(input())for _ in range(int(input())))**2)
honest pasture
#

!e print(len(r"print(sum(int(input())for _ in range(int(input())))**2)"))

timid fjordBOT
#

@honest pasture :white_check_mark: Your eval job has completed with return code 0.

55
pine otter
twilit echo
#

davinder submitted like 10 minutes ago

#

guys their needs to be a clock

pine otter
#

Griff is winning so far

twilit echo
pine otter
#

this a tourney

twilit echo
#

its not how you start, its how you finish...

pine otter
#

damn bro

twilit echo
#

give davinder a level playing field

#

you guys sneaked that win on him, by having extra minutes

#

now he knows the rules

gloomy lily
pine otter
#

are we missing someone?

twilit echo
#

@opal gate he defeaned. You know its on ๐Ÿ‘ฟ

opal gate
gloomy lily
silver solar
#

intense

twilit echo
#

davinder i put my life savings on you, dont let me down man

silver solar
#

code write time

#

second lemon_hyperpleased

#

lmfao

silver solar
#

is it legal to use other langs other than python

opal gate
twilit echo
#

could you use splicing for this question?

#

i dont know, you talked about it with chris ๐Ÿคฃ

silver solar
#

did you mean slicing?

twilit echo
silver solar
#

hmm

#

possibly

hexed onyx
#

there is also vim mode

silver solar
#

any esoteric way could work

plain wasp
#

if a % 2 == 0:
x += a
else x -= a

silver solar
silver solar
hexed onyx
#

my code:

print(sum(map(lambda n:[1,-1][n%2]*n,map(int,open(0)))))
silver solar
#

fastest not shortest ๐Ÿ˜‰

hexed onyx
#

well i joined 2 minutes late

#

might as well be shortest

silver solar
#

can i spoiler btw

#

๐Ÿฅบ

#

e.e

twilit echo
#

@agile portal come on man, this is my reputation on the line here

plain wasp
#

``import sys
import math

Auto-generated code below aims at helping you parse

the standard input according to the problem statement.

a = int(input())
b = int(input())
c = int(input())
x = 0
for a % 2 == 0:
x += a
else x -= a
for b % 2 == 0:
x += b
else x -= b
for c % 2 == 0:
x += c
else x -= c

Write an answer using print

To debug: print("Debug messages...", file=sys.stderr, flush=True)

print(x)
``

plain wasp
#

``import sys
import math

Auto-generated code below aims at helping you parse

the standard input according to the problem statement.

a = int(input())
b = int(input())
c = int(input())
x = 0
if a % 2 == 0:
x += a
else x = x - a
if b % 2 == 0:
x += b
else x = x - b
if c % 2 == 0:
x += c
else x= x - c

Write an answer using print

To debug: print("Debug messages...", file=sys.stderr, flush=True)

print(x)``

pine otter
#

on ur elses

plain wasp
pine otter
#

:

plain wasp
#

should they be indented

#

oooh f

pine otter
#

else:

plain wasp
#

thanks

#

๐Ÿ˜…

twilit echo
#

@atomic phoenix marco antonio playing mind games with competitors

gloomy lily
silver solar
#

lmfao

#

whoops

#

i forgor to run all test cases

#

๐Ÿฅด

#

input is just stdin

pine otter
#

would a lowercase one word thing be camelCase ?

twilit echo
#

imagine @gloomy lily and @atomic phoenix in the same Agile team as Programmers.

grim flare
#

you

#

yo

#

can I code c++?

silver solar
#

you can select that

pine otter
#

I just want to play games

#

not get depressed.

gloomy lily
silver solar
#

oh i didnt realize that it actually leaks my nationality

#

but ok

twilit echo
#

informal talk

silver solar
#

ok ima just change this

twilit echo
#

Agile is commonly used in the industry man

silver solar
#

oh this one is actually quite ez

lofty vortex
#

hmm no criteria kinda boring

silver solar
#

can't believe end='' actually works

silver solar
twilit echo
#

its a methodology man

#

read about it

lofty vortex
#

its visible on the page i believe

twilit echo
#

Like what charlie says, its a way to organize teams to make software

lofty vortex
#

o

silver solar
#

you have to click that big yellow button

#

"SHARE CODE"

#

:)

twilit echo
#

while not sacrificing on quality