#voice-chat-text-0

1 messages · Page 609 of 1

vestal halo
#

yo watermelon

#

@whole bear

whole bear
#

sup bsdk

vestal halo
#

i am fluterred

#

FLUTTERed

whole bear
#

bruh

#

sup

#

nothing much man

#

no

vestal halo
#

ya man

#

i did

whole bear
#

i was going to get expelled 2 years ago

#

but then i fucked my teacher so he let me off

#

😉

#

okay i actually was going to get expelled

#

my cousin owns a brothel, beat that 😉

#

@vestal halo mazak kar raha tha lawde 16 saal ka hoon

#

randi

#

madarchod

#

bhosdike

#

chutiya

#

yeh karne ka kya matlab tha

#

bhen ki chut teri

balmy nymph
#

Lol that's great

urban tinsel
#

@vestal halo mazak kar raha tha lawde 16 saal ka hoon
@thedizzyprogrammer#5271 normie :/

whole bear
#

@earnest crag

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-07-29 10:47 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

severe pulsar
#

rip

#

what a rip

#

bruh moment

whole bear
#

@earnest crag

#

@zenith radish

#

@dawn flower

dawn flower
plush tusk
#

can u help me with something guys

#

i need refferals to get internships just click the link guys

#

what is vm ware?

#

please help me guys pleassssssssss

#

fire foox

#

ok

zenith radish
whole bear
plush tusk
#

u have to had

zenith radish
whole bear
#

?av @dawn flower

#

!av @dawn flower

dawn flower
#

!audio video @whole bear

#

!anti-virus @whole bear

plush tusk
#

script :</hello world>

whole bear
#
print ('hello world')
#

script.exe

plush tusk
#

scanf("hello world");

zenith radish
#

(prn "Hello world!")

#

<- this post is written by LISP GANG

plush tusk
#

or is it fscan

#

comon

#

or is it wscan

whole bear
#

fscan

plush tusk
#

yeah

#

readf

#

just write read f

#

comon dude

whole bear
#

no

zenith radish
#

fzf

whole bear
#

u do xxx

plush tusk
#

xxxn

#

mooom i pressed a button

#

iam good

#

wow

#

noob alert

#

now pizza is a pastry

plush tusk
#

pay = no money

#

money = pay/no?

#

trum noob?

#

trump*

whole bear
#

hey

dawn flower
#

...

icy olive
#

piton

vestal halo
#

I know its pretty noob to ask
But does anybody know in which language shell commands are written(.sh)

dawn flower
#

hawaiian

vestal halo
#

Jokes apart

dawn flower
#

hawa iian

whole rover
#

they are written in

#

shell

#

or

#

bash

#

bourne again shell

#

GNU Bash or simply Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. First released in 1989, it has been used as the default login shell for most Linux distributions and all releases of Apple...

#

they will typically say at the start

#
#!/bin/bash
#

that tells you how they will be ran

vestal halo
#

Ok thanks homie

#

@whole rover

whole rover
#

what even is wendys

#

who is wendy

#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.

whole rover
#

docker run my_image python a.py

#
docker run my_image python a.py
docker run my_image python b.py
docker run my_image python c.py
#

docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

#

docker build -t my_image .

whole rover
barren citrus
#

talking about gdpr right?

whole rover
barren citrus
#

👌

unreal oar
#

this one is also fun

still silo
still silo
#

docker run --entrypoint /bin/bash <container>

whole bear
#

@lusty marsh I'm doing well, yourself?

lusty marsh
#

@whole bear ok

#

yes

fickle bear
#

hey @whole bear

whole bear
#

@fickle bear 👋

fickle bear
#

how are you doing bro

whole bear
#

I'm doing well, working on a few things. Yourself?

lusty marsh
#

we all good here

fickle bear
#

i am doing good too

#

just getting bored & feeling bit tired of coding stuff 😆

whole bear
#

I get that

fickle bear
#

see you later

whole bear
#

Have a good one

lusty marsh
#

@somber heath sorry my mic isn't working

#

What was the question?

#

Control flow versus dataflow, and you wanted to combine the two

#

fascinating

#

it's okay. If you feel like you may be a victim of a combinatorical explosion, report to the nearest infirmary.

#

You were using the common trope of all Turing-complete languages being able to compute the same function, which is like saying any set of wire lengths can connect the same circuits.

#

Let's say you have an algorithm which adds two numbers but 1% of the time incurs a division by zero error. Is that better or worse than an algorithm which adds two numbers in twice the time?

#

exactly

somber heath
#

Do I get error catching?

lusty marsh
#

@glass kite we have always built languages on others. You want #discord-bots

#

yes

#

I want to make a Kickstarter for an unpright piano cover which will allow anyone with an upright piano to cover it with tablets, but then I realized I needed a program to convert upright piano dimensions to a plastic cover which can hold various sizes of tablets.

glass kite
#

red part dislocated in the palm

#

green part got broken

graceful grail
#
print "hi"```
whole bear
#

@graceful grail I mean, raw_input() doesn't exist in 3 and input() was essentially the same as eval in 2

graceful grail
#
print("hi")```
whole bear
#

raw_input() was switched to input() in 3

#

@glass kite Did you have a Python question?

#

2FA is two-factor authentication like TOTP, etc

#

I mean, I can talk. Gimme a sec

subtle perch
#

i can give you pointers in C, but not in python 🙂

still silo
#

"pointers" in C eh?

#

Rami Malek

whole bear
subtle perch
whole bear
#

Ess Queue El

still silo
#
SQL

SQL ( (listen) S-Q-L, "sequel"; Structured Query Language) is a domain-specific language used in programming and designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS)....

whole bear
#

PostgreSQL

still silo
#

PostgreSQL evolved from the Ingres project at the University of California, Berkeley. In 1982, the leader of the Ingres team, Michael Stonebraker, left Berkeley to make a proprietary version of Ingres.[14] He returned to Berkeley in 1985, and began a post-Ingres project to address the problems with contemporary database systems that had become increasingly clear during the early 1980s. He won the Turing Award in 2014 for these and other projects,[21] and techniques pioneered in them.

subtle perch
#

:/ mongo jerry made a banger with in the summer time

whole bear
whole bear
#

i have windows

#

dell

#

its good

#

anyone in the general chat with CDN knowledge?

#

¯_(ツ)_/¯

#

(╯°□°)╯︵ ┻━┻

#

I have dell with windows 10 it only even has an i3 cpu but its still fast and good.

#

get an rdp and you got whatever you want.

subtle perch
#

raspberry pi

#

🙂

whole bear
#

?

#

(╯°□°)╯︵ ┻━┻

#

what

#

chair has entered the chat

#

remote desktop protocol w windows server 2019 just get some good specs. Starts at like 10 bucks a month.

#

I never bothered about my pc as I'm only running on those baby's.

#

i need a chair to not get back pain ever in my life

#

.

whole bear
#

I got like 12 Cores 40GB RAM 50GB SSD NVMe Storage oh and a Secret Chair Titan for my backpain

granite field
#
async def socketStream():
    HOST = '192.168.1.5'  # The server's hostname or IP address
    PORT = 1337  # The port used by the server

    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        s.connect((HOST, PORT))
        while True:
            inputs = input()
            inputs = (inputs + "\n").encode()
            s.sendall(inputs)```
#

@jovial meadow @median pewter

#
    @Override
    public void run() {
        try {
            ServerSocket serverSocket = new ServerSocket(1337);
            System.out.println("Socket is listening on port 1337");
            System.out.println("Waiting for connection...");
            Socket socket = serverSocket.accept();
            System.out.println("Client has been connected!! " + socket.getInetAddress().getHostAddress());
            BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
            while(true) {
                writer.write("Please enter a command: ");
                String line = reader.readLine();
                System.out.println("Command issued: " + line);
                try {
                    handler.execute(server, line);
                } catch(InsufficientPermissionsException | CommandNotFoundException e) {
                    System.out.println("Command does not exist");
                }        
            }    
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    ```
#

s.sendall(inputs)

granite field
#
# Singleton/SingletonPattern.py

class OnlyOne:
    class __OnlyOne:
        def __init__(self, arg):
            self.val = arg
        def __str__(self):
            return repr(self) + self.val
    instance = None
    def __init__(self, arg):
        if not OnlyOne.instance:
            OnlyOne.instance = OnlyOne.__OnlyOne(arg)
        else:
            OnlyOne.instance.val = arg
    def __getattr__(self, name):
        return getattr(self.instance, name)

x = OnlyOne('sausage')
print(x)
y = OnlyOne('eggs')
print(y)
z = OnlyOne('spam')
print(z)
print(x)
print(y)
print(`x`)
print(`y`)
print(`z`)```
#
class Singleton:
   __instance = None
   @staticmethod 
   def getInstance():
      """ Static access method. """
      if Singleton.__instance == None:
         Singleton()
      return Singleton.__instance
   def __init__(self):
      """ Virtually private constructor. """
      if Singleton.__instance != None:
         raise Exception("This class is a singleton!")
      else:
         Singleton.__instance = self
s = Singleton()
print s

s = Singleton.getInstance()
print s

s = Singleton.getInstance()
print s```
jovial meadow
#

from singleton_decorator import singleton

#

@singleton
class ImageHandler:

granite field
#

.giveglobalitems (itemid) (quantity)

#
  @commands.command()
    @commands.check(channelsList.trusted_user_check)
    async def giveglobalitem(self, ctx, itemid: int, quantity: int):
        # socketStream(self.socketIP, self.socketPort, 'giveglobalitem', '0', itemid, quantity)
        conn = await DiscordConnection.get_conn()
        sql = "UPDATE giveglobalitem SET itemid = %s , quantity = %s , eventSet = 1"
        val = (itemid, quantity)
        async with conn.cursor() as cur:
            await cur.execute(sql, val)
            await conn.commit()
            print('message sent to database, starting giveitem globally')
        conn.close()```
jovial meadow
granite field
#
    @commands.Cog.listener()
    async def on_ready(self):
        self.change_status.start()
        print('Bot is Ready')```
jovial meadow
#

await

#

"await()"

#

'await'

restive phoenix
#

__

jovial meadow
#

__ await __

restive phoenix
#

__ "await()"

granite field
#

-- await --

#
async def socketStream():
    HOST = '192.168.1.5'  # The server's hostname or IP address
    PORT = 1337  # The port used by the server

    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        return s.connect((HOST, PORT))

#

sy = socketStream()

jovial meadow
#

async_list = list()
with socket:
async_list.append(discord.send())
async.map(async_list)

#

asyncio

granite field
#
async def socketStream(data):
    HOST = '192.168.1.5'  # The server's hostname or IP address
    PORT = 1337  # The port used by the server

    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        s.connect((HOST, PORT))
        s.sendall(data)```
jovial meadow
#

*args

#

**kwargs

granite field
#

async def socketStream(*args):
HOST = '192.168.1.5' # The server's hostname or IP address
PORT = 1337 # The port used by the server

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    s.connect((HOST, PORT))
    s.sendall(data)
jovial meadow
#

for a in args:

granite field
#
async def socketStream(*args):
    HOST = '192.168.1.5'  # The server's hostname or IP address
    PORT = 1337  # The port used by the server

    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        s.connect((HOST, PORT))
        s.sendall(data)```
jovial meadow
#

for a in args:
s.send(a)

waxen finch
#

Write a function that searches a list of names (unsorted) for the name "Bob" and returns the location in the list. If Bob is not in the array, return -1.

#

@whole bear Write a function that searches a list of names (unsorted) for the name "Bob" and returns the location in the list. If Bob is not in the array, return -1.

drowsy haven
#

A function can be divergent independently

jovial meadow
waxen finch
waxen finch
dawn flower
#

AOC 34" LED CU34G2X MONITOR/G

dawn flower
cursive mason
#

Think different.

drowsy haven
#

Think different.
@cursive mason Python should be verbose now

whole bear
#

You run 10 kilometers in 40 minutes 30 seconds. Write program to find out how many
miles you can run in an hour. A mile is 1.61 kilometers.

waxen finch
dawn flower
waxen finch
dawn flower
waxen finch
#

def get_account_info():

api_url = '{0}account'.format(api_url_base)

response = requests.get(api_url, headers=headers)

if response.status_code == 200:
    return json.loads(response.content.decode('utf-8'))
else:
    return None
#

import json
import requests

api_token = 'your_api_token'
api_url_base = 'https://api.digitalocean.com/v2/'
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer {0}'.format(api_token)}

#

if response.status_code >= 500:
print('[!] [{0}] Server Error'.format(response.status_code))
return None
elif response.status_code == 404:
print('[!] [{0}] URL not found: [{1}]'.format(response.status_code,api_url))
return None
elif response.status_code == 401:
print('[!] [{0}] Authentication Failed'.format(response.status_code))
return None
elif response.status_code == 400:
print('[!] [{0}] Bad Request'.format(response.status_code))
return None
elif response.status_code >= 300:
print('[!] [{0}] Unexpected Redirect'.format(response.status_code))
return None
elif response.status_code == 200:
ssh_keys = json.loads(response.content.decode('utf-8'))
return ssh_keys
else:
print('[?] Unexpected Error: [HTTP {0}]: Content: {1}'.format(response.status_code, response.content))
return None

#

ssh_keys = get_ssh_keys()

if ssh_keys is not None:
print('Here are your keys: ')
for key, details in enumerate(ssh_keys['ssh_keys']):
print('Key {}:'.format(key))
for k, v in details.items():
print(' {0}:{1}'.format(k, v))
else:
print('[!] Request Failed')

#

Generating public/private rsa key pair.
Enter file in which to save the key (/home/sammy/.ssh/id_rsa): /home/sammy/.ssh/sammy
Created directory '/home/sammy/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/sammy/.ssh/sammy.
Your public key has been saved in /home/sammy/.ssh/sammy.pub.
...

#

import json
import requests

api_token = 'your_api_token'
api_url_base = 'https://api.digitalocean.com/v2/'
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer {0}'.format(api_token)}

#

def add_ssh_key(name, filename):

api_url = '{0}account/keys'.format(api_url_base)

with open(filename, 'r') as f:
    ssh_key = f.readline()

ssh_key = {'name': name, 'public_key': ssh_key}

response = requests.post(api_url, headers=headers, json=ssh_key)
#

if response.status_code >= 500:
print('[!] [{0}] Server Error'.format(response.status_code))
return None
elif response.status_code == 404:
print('[!] [{0}] URL not found: [{1}]'.format(response.status_code,api_url))
return None
elif response.status_code == 401:
print('[!] [{0}] Authentication Failed'.format(response.status_code))
return None
elif response.status_code >= 400:
print('[!] [{0}] Bad Request'.format(response.status_code))
print(ssh_key )
print(response.content )
return None
elif response.status_code >= 300:
print('[!] [{0}] Unexpected redirect.'.format(response.status_code))
return None
elif response.status_code == 201:
added_key = json.loads(response.content)
return added_key
else:
print('[?] Unexpected Error: [HTTP {0}]: Content: {1}'.format(response.status_code, response.content))
return None

#

Memes.

cursive mason
#

anyone has ever played goblin escape?

waxen finch
#

memes

exotic shale
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

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

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
waxen finch
cursive mason
#
import pygame, sys, math
    
width = 1024
height = 720
radius = 300.0
goblin = 0.0
boatx = 0.1 
boaty = 0.0
bspeed = 1.0
gspeeds = [3.5, 4.0, 4.2, 4.4, 4.6]
gspeed_ix = 0
speed_mult = 3.0
clicking = False

def restart():
    global goblin, boatx, boaty, clicking
    goblin = 0.0
    boatx = 0.1 
    boaty = 0.0
    clicking = False

pygame.init()
window = pygame.display.set_mode((width, height)) 

def clear():
    radius_mult = bspeed / gspeeds[gspeed_ix]

    window.fill((0,80,0))
    pygame.draw.circle(window, (0,0,128), (int(width/2), int(height/2)), int(radius*1.00), 0)
    pygame.draw.circle(window, (200,200,200), (int(width/2), int(height/2)), int(radius*radius_mult), 1)

def redraw(draw_text=False,win=False):
    clear()

    pygame.draw.circle(window, (255,255,255), (int(width/2 + boatx),int(height/2 + boaty)), 6, 2)
    pygame.draw.circle(window, (255,0,0), (int(width/2 + radius*math.cos(goblin)),int(height/2 + radius*math.sin(goblin))), 6, 0)

    if draw_text:
        font = pygame.font.Font(None, 72)
        if win:
            text = font.render("Escaped!", 1, (255, 255, 255))
        else:
            text = font.render("You Were Eaten", 1, (255, 0, 0))
        textpos = text.get_rect()
        textpos.centerx = window.get_rect().centerx
        textpos.centery = height/2
        window.blit(text, textpos)

    font = pygame.font.Font(None, 48)
    text = font.render("Goblin Speed: " + str(gspeeds[gspeed_ix]), 1, (255, 255, 255))
    textpos = text.get_rect()
    textpos.centerx = width/2
    textpos.centery = height - 20
    window.blit(text, textpos)
        
    pygame.display.flip()
waxen finch
cursive mason
#
def updateGoblin():
    global goblin
    gspeed = gspeeds[gspeed_ix]
    newang = math.atan2(boaty, boatx)
    diff = newang - goblin
    if diff < math.pi: diff += math.pi*2.0
    if diff > math.pi: diff -= math.pi*2.0
    if abs(diff)*radius <= gspeed * speed_mult:
        goblin = newang
    else:
        goblin += gspeed * speed_mult / radius if diff > 0.0 else -gspeed * speed_mult / radius
    if goblin < math.pi: goblin += math.pi*2.0
    if goblin > math.pi: goblin -= math.pi*2.0 

def moveBoat(x,y):
    global boatx, boaty
    dx = x - boatx
    dy = y - boaty
    mag = math.sqrt(dx*dx + dy*dy)
    if mag <= bspeed * speed_mult:
        boatx = x
        boaty = y
    else:
        boatx += bspeed * speed_mult * dx/mag
        boaty += bspeed * speed_mult * dy/mag 
    
def detectWin():
    global gspeed_ix
    if boatx*boatx + boaty*boaty > radius*radius:
        diff = math.atan2(boaty, boatx) - goblin
        if diff < math.pi: diff += math.pi*2.0
        if diff > math.pi: diff -= math.pi*2.0
        while True:
            is_win = abs(diff) > 0.000001
            redraw(True, is_win)
            events = [event.type for event in pygame.event.get()]
            if pygame.QUIT in events: 
                sys.exit(0)
            elif pygame.MOUSEBUTTONDOWN in events:
                restart()
                if is_win:
                    gspeed_ix += 1
                break

clock = pygame.time.Clock()
clear()
while True:
    x = None
    for event in pygame.event.get(): 
        if event.type == pygame.QUIT: 
            sys.exit(0)
        clicking = pygame.mouse.get_pressed()[0]
        if pygame.mouse.get_pressed()[2]:
                restart()

    if clicking:
        x,y = pygame.mouse.get_pos()
        moveBoat(x - width/2, y - height/2)
    updateGoblin()
    detectWin()
    redraw()
    clock.tick(60)

waxen finch
exotic shale
#

is this in java

waxen finch
cursive mason
#

try this one

jovial meadow
#

give it a negative number

#

inf loop

cursive mason
drowsy haven
#

give it 3

#

infinte loop

waxen finch
#

Meme'd

drowsy haven
#

It says it works

#

Don't modify it

waxen finch
#
[Meme'd]
cursive mason
#
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\crumblycake>pip install pygame
Fatal error in launcher: Unable to create process using '"c:\program files\python35\python.exe"  "C:\Program Files\Python35\Scripts\pip.exe" install pygame': ??? ??? ?? ? ????.```
#

how can i solve this problem

jovial meadow
#

use venv noob!

drowsy haven
#

pip3 problem?

cursive mason
#

i tried to think different

waxen finch
#

JavaScript works better

cursive mason
#

i have

#

just one

jovial meadow
#

steve, stick with obj-C

exotic shale
#

how do I transport audio via ssh (raspberry pi)

jovial meadow
#

scp

drowsy haven
#

transporting audio costs extra

#

Ship code with amazon

#

20$

exotic shale
#

35$

cursive mason
#

steve, stick with obj-C
@jovial meadow when i use python -m it works

drowsy haven
#

The accent is more funny

exotic shale
#

ebay

jovial meadow
#

just do pip install

cursive mason
#

well... as you see it doesn't work

drowsy haven
#

try pip3 install @cursive mason

jovial meadow
#

means your env paths are not set

cursive mason
#

this one?

exotic shale
#

scp is for files I want it for audio

jovial meadow
#

linux works with files

#

everything linux is files

#

unless u are referring to a stream

#

which is more complex

drowsy haven
#

You get heat sink?

exotic shale
#

I need it for stream

jovial meadow
#

you env path needs to know pip path

cursive mason
#

should i reboot?

#

dose anyone have ever made hackintosh?

#

wow i want to make it

exotic shale
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

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

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
dawn flower
#

```

cursive mason
#
print('Hello world!')
agile glen
#

def main():

1st grade

note1 = int (input("1st grade"))

2nd grade

note2 = int (input("2nd grade"))

3rd grade

note3 = int (input("3rd grade"))

Overell average

result = (note1 + note2 + note3) / 3

afficher le résultat

print("Your overall average is " + str(result))

if name == 'main':
main()

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

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

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
exotic shale
#

you are converting the result in str()

dawn flower
#
def main():
# 1st grade
note1 = int (input("1st grade"))
# 2nd grade
note2 = int (input("2nd grade"))
# 3rd grade
note3 = int (input("3rd grade"))
# Overell average
result = (note1 + note2 + note3) / 3
# afficher le résultat
print("Your overall average is " + str(result))


if name == 'main':
    main()
exotic shale
#

you are converting the result in str()

dawn flower
#

'''python

agile glen
#

line 4
note1 = int (input("1st grade"))
^
IndentationError: expected an indented block

dawn flower
#
def main():
# 1st grade
  note1 = int (input("1st grade"))
# 2nd grade
  note2 = int (input("2nd grade"))
# 3rd grade
  note3 = int (input("3rd grade"))
# Overell average
  result = (note1 + note2 + note3) / 3
# afficher le résultat
  print("Your overall average is " + str(result))


if name == 'main':
    main()
wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

exotic shale
#

!resources

wise cargoBOT
#
Resources

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

agile glen
dawn flower
fickle bear
#

just use ss @dawn flower

dawn flower
#

ss?

exotic shale
#

try this

fickle bear
#

it's working ⬆️

exotic shale
#

use vpn

fickle bear
willow drift
fickle bear
errant helm
#

this article is full of poor formatting and conflation of info

#

a 10 month old language is not giving python a run for its money haha

fickle bear
#

agree with you @errant helm

feral island
jovial meadow
#

Glob

unreal oar
#

Glob
@jovial meadow thanks

willow drift
jovial meadow
#

No, glob

unreal oar
#

I take a look at both thanks

#

always use stackoverflow for easy problems
@willow drift thanks

jovial meadow
#

The latter is not recommended

short ore
#

how can I convert nfiti files to dicom files with python?

feral island
#

what's a nfiti file and dicom file?

crystal fox
feral island
#

Wholemeal bread

#

cottage cheese?

willow drift
#

@short ore
I've never heard of something as obscure as nfiti and dicom files. And a quick search didn't help either but if you really need to write it in python:

attach a 3rd party converter that you can find on the web for this and invoke the command from python using subprocess for example

short ore
#

NFITI files are 3D files taken from Lung CT images. I am working on a project related to Corona Virus. For this, I need to convert NFITI files with (.nii) extension to DICOM files.

feral island
#

You need to get a spec document of how those files are setup and them map the relevant data together.

willow drift
short ore
#

absolutely right! SITK should have come to my mind, thaks a alot

little ridge
#

hi

#

how i can send code in discord

#

need // in first

#

?

#

oh

#

thx

willow drift
#

` <-- this thre times

#

python and
`<-- three times

little ridge
#

no

#

that didnt work

willow drift
little ridge
#

no

#

its didnt work

willow drift
#

it has to man the copy this key ` xD

little ridge
#

hhhhhhhhhhh

dawn flower
little ridge
#

oh

#

that key is left of 1

#

i thinked thats a coteetion

willow drift
#

just google markdown discord typing

fossil pebble
#

here is a question

#

selenium vs beautiful soup

willow drift
#

? completly different things

fossil pebble
#

like ?

willow drift
#

selenium uses a client on your browser it can execute javascript. bs can't

#

you'd use bs for something like getting html website(text based)

u would use selenium to test websites that have js in them

fossil pebble
#

ok thx

willow drift
#

np definitely start with bs if you're begining it's fun for automatic stuff

dawn flower
fickle bear
#

hey @dawn flower
if you recommend any book for python except automate botring stuff?

jovial meadow
#

Python tips and tricks

fickle bear
#

thanks

jovial meadow
#

raymond hettinger

#

Pycon

#

Elements of programing interviews in python

#

Clean code

#

Clean architecture

dawn flower
fickle bear
#

I got pycharm subscription from it

cursive mason
#

hello again drunk programmer and not a bot

#

@dawn flower i want to run system 6 from macintosh on raspberry pi 3

#

what vm that i should use

dawn flower
#

what

#

OpenVMS?

cursive mason
#

yup

#

like mac emulator

potent thicket
#

"tow thing are infinite one universe and pycharm trial"

  • Einstein sometime
green dirge
errant helm
green dirge
#

help me pls,i need to fix configuration

cursive mason
#

i'm using minivmac

#

but it says

#

cannot connect to X server

cursive mason
#

i did it

dawn flower
crystal fox
dawn flower
#

python -m SimpleHTTPServer 8080

crystal fox
#
         comb      neck             body                    feet
          |         |                |                       |
          v         v                V                       V
           ,^/'/,           ,______________________.         ,
         i'  '  /          /                       =========<-
        / <o>   `---------/                        \         `
      .;__.  ,__,--------.                         /         ,
         / ,/ vv          \                        =========<-
        '-'                `-----------------------'         `
         ^     ^                                     ^
         |     |                                     |
        beak  wattles                               legs```
potent thicket
#

are you forgetting twitter

swift valley
#

General voice's quite active today

potent thicket
#

always has been

dawn flower
#

niiiiiiiice

swift valley
#

Pretty sure I've seen it filled as well in the past two days or so

#

Can't remember

potent thicket
#

¯(°_o)/¯

fickle bear
#

It's been active from few days

potent thicket
#

""

#

**

#

why I put backslash hear

#

I cant put I mean

fickle bear
#

It's above tab button

dawn flower
#

```

#

test

#

\`

potent thicket
#

`\

#

\

dawn flower
#

```

fickle bear
#
code 
``` - like this
potent thicket
#

""

dawn flower
#

```

potent thicket
#

`\

fickle bear
dawn flower
#

```python

potent thicket
#

with cheat engine in a video game?

deft cedar
#

no

#

telephone first

#

ctrl alt delete?

#

and press task manager

potent thicket
#

force start?

#

sorry restart

deft cedar
#

ctrl shift exit work?

#

wha

dawn flower
#

lol

#

cd / && cat $(fine * * | grep -s *.log) 2>/dev/null | grep -s ERROR
@errant helm

deft cedar
#

i do not get it how do you make ethernet into usb

willow drift
crystal fox
potent thicket
#

`[T]/

quasi condor
potent thicket
#

`[T]/

#

`\ [T]/

deft cedar
#

lol

quasi condor
dawn flower
quasi condor
potent thicket
#

hearing other people chat like creep is very fun

deft cedar
#

how so

potent thicket
#

you know it you are doing it too

deft cedar
#

well i am trying to figure out how to make this shit work

potent thicket
#

what sh!t

deft cedar
#

linux

potent thicket
#

?

deft cedar
#

sleep 15; sudo pacmd load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink; sudo pactl set-default-source "Virtual_Sink.monitor"; mumble

#

startup

potent thicket
#

I dont get it because I am on windows :[

willow drift
#

what are you trying to achieve @deft cedar ?

#

perhaps install pavucontrol I see that you're setting something with pulse audio

potent thicket
#

what bait are you talking about

deft cedar
#

@willow drift i do havee that what i am tyring to do here is creating dummy output or you can say virtual output

#

but the thing is it doesnt save on restart

#

so i am trying to make it run a script on login

#

but it aint running it

potent thicket
#

some one build a computer minecraft with logic gates

dawn flower
exotic shale
dawn flower
quasi condor
deft cedar
#

lol

quasi condor
#

Göran Bror Benny Andersson (Swedish pronunciation: [ˈbɛ̌nːʏ ˈânːdɛˌʂɔn] (listen); born 16 December 1946) is a Swedish musician, composer, producer, member of the Swedish music group ABBA, and co-composer of the musicals Chess, Kristina från Duvemåla, and Mamma Mia!. For the 20...

granite verge
#

hi

deft cedar
#

lol

granite verge
#

hi

#

oh

#

ya

#

what have y'all program in py

#

damn

#

i literally started today

#

this week*

#

ye im using it

deft cedar
#

not really

#

i made some shitty shit for linux

granite verge
#

damn

dawn flower
deft cedar
#

lol

quasi condor
#
BoardGameGeek

Release! is a light card game about software and the people who make it. The game is simple: manage cooperation and competition with other players across five releases to score the most points. Each round of Release! is played the same way, but the scoring rules change as you...

dawn flower
deft cedar
#

i recorded my sound it think it sound normal?

#

heh

#

do i just sound weird then

#

whaaaat

potent thicket
#

Internet problem

deft cedar
#

i think i am fine now

#

i think i moved the wire or some sort

#

i mena the plug

crystal fox
deft cedar
#

what

crystal fox
#

@olive sentinel

#

active problem in voice

#

@rugged root, @lost cargo, even the i hate to ping the most, @leaden comet

#

they're fundamentally just sit in there with mic on and huge amounts of background noise not contributing and not speaking english

lost cargo
#

hello <@&267629731250176001> can anyone take a look at this situation please

crystal fox
#

i tried to be polite.

whole bear
#

@crystal fox Next time just ping @Moderators like kwzrd did

#

There's also Modmail ¯_(ツ)_/¯

somber heath
whole rover
#

hahahaha

coral plank
#

can i have a peppermint

crystal fox
#

it was a timely matter

#

voice user ruining a chat

whole rover
#

whoops missed meeting start

silk cargo
#

Lol, have fun joe

coral plank
#

how can i be python developer

#

i am a college dropout

leaden comet
#

it was a timely matter
@crystal fox if it's a timely matter, ping moderators, not 3 people.

there are 28 moderators. the 3 you pinged are 3 of them.

#

"I'm in a hurry so I will only ping 8% of the moderators"

whole bear
#

how can i protect my eyes and still program at the same time

#

like by protect meaning not ruin eyesight

silk cargo
#

Light themes.

crystal fox
#

that's a good point lemon

#

taken on board.

silk cargo
#

<pre style="height: 500px; overflow: scroll;"><code>

wise cargoBOT
#
Command: eval

Run Python code and get the results.

Source Code
quasi condor
fossil pond
#
<!DOCTYPE html>
<html>
<body>

<h2>Standard pre</h2>
<pre>This is a standard pre. It will use as much space as it needs.</pre>

<h2>Fixed width pre</h2>
<div style="width:200px;overflow:auto">
<pre>This is a pre with a fixed width. 
It will use as much space as specified.</pre>
</div>

</body>
</html>



crystal fox
#
<!DOCTYPE html>
<html>
<body>

<h2>Standard pre</h2>
<pre>This is a standard pre. It will use as much space as it needs.</pre>

<h2>Fixed width pre</h2>
<div style="width:200px;overflow:1m">
<pre>This is a pre with a fixed width. It will use as much space as specified.</pre>
</div>

</body>
</html>```
whole bear
#

Gimme a min, gonna hop on voice

quasi condor
#

with a mic?

crystal fox
#

noiiiice

quasi condor
#

or just texty scott?

whole bear
#

I mean, I said I was gonna hop on voice

quasi condor
wise cargoBOT
#

Hey @crystal fox!

It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg.

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

quasi condor
crystal fox
whole bear
crystal fox
#
quasi condor
#

this is making ot0 stuff making its way into voice

sly jolt
#

it goes

whole bear
#

KeePass

sly jolt
#

damn, if I only was on windows.

errant helm
#

There are active forks

sly jolt
#

oh sick

#

ty

#

@whole bear Didn't they write up a breach like 2 months after it happened?

whole bear
sly jolt
#

How do you feel about postgresql?

#

@whole bear

#

"ah yes, you want to write more to the database? sure! we totally don't have space" - mongo

#

but why do they want video?

#

lol

willow drift
#

postgres is great, my go to for database

sly jolt
#

same

willow drift
#

recently I needed JSON fields in my database and postrgress supports them

sly jolt
#

Just install a linux distro that they can't find an app for

crystal fox
quasi condor
whole bear
#

Fail2Ban

still silo
whole bear
#

System.out.println("something")

whole bear
#

use this when you work it helps just want to put it out

whole bear
#
class Solution {
    public double findMedianSortedArrays(int[] A, int[] B) {
        int m = A.length;
        int n = B.length;
        if (m > n) { // to ensure m<=n
            int[] temp = A; A = B; B = temp;
            int tmp = m; m = n; n = tmp;
        }
        int iMin = 0, iMax = m, halfLen = (m + n + 1) / 2;
        while (iMin <= iMax) {
            int i = (iMin + iMax) / 2;
            int j = halfLen - i;
            if (i < iMax && B[j-1] > A[i]){
                iMin = i + 1; // i is too small
            }
            else if (i > iMin && A[i-1] > B[j]) {
                iMax = i - 1; // i is too big
            }
            else { // i is perfect
                int maxLeft = 0;
                if (i == 0) { maxLeft = B[j-1]; }
                else if (j == 0) { maxLeft = A[i-1]; }
                else { maxLeft = Math.max(A[i-1], B[j-1]); }
                if ( (m + n) % 2 == 1 ) { return maxLeft; }

                int minRight = 0;
                if (i == m) { minRight = B[j]; }
                else if (j == n) { minRight = A[i]; }
                else { minRight = Math.min(B[j], A[i]); }

                return (maxLeft + minRight) / 2.0;
            }
        }
        return 0.0;
    }
}
whole bear
#
def median(A, B):
    m, n = len(A), len(B)
    if m > n:
        A, B, m, n = B, A, n, m
    if n == 0:
        raise ValueError

    imin, imax, half_len = 0, m, (m + n + 1) / 2
    while imin <= imax:
        i = (imin + imax) / 2
        j = half_len - i
        if i < m and B[j-1] > A[i]:
            # i is too small, must increase it
            imin = i + 1
        elif i > 0 and A[i-1] > B[j]:
            # i is too big, must decrease it
            imax = i - 1
        else:
            # i is perfect

            if i == 0: max_of_left = B[j-1]
            elif j == 0: max_of_left = A[i-1]
            else: max_of_left = max(A[i-1], B[j-1])

            if (m + n) % 2 == 1:
                return max_of_left

            if i == m: min_of_right = B[j]
            elif j == n: min_of_right = A[i]
            else: min_of_right = min(A[i], B[j])

            return (max_of_left + min_of_right) / 2.0
tidal salmon
#

!e

def my_func(some_str):
    """Return the same string where every other letter is lower case"""
    some_str = some_str.lower()
    result = ''
    for i, s in enumerate(some_str):
        result += s.upper() if i % 2 == 0 else s
    return result
wise cargoBOT
#

@tidal salmon :warning: Your eval job has completed with return code 0.

[No output]
tidal salmon
#

!e

def my_func(some_str):
    """Return the same string where every other letter is lower case"""
    some_str = some_str.lower()
    result = ''
    for i, s in enumerate(some_str):
        result += s.upper() if i % 2 == 0 else s
    return result

print(my_func('Hello world!'))
wise cargoBOT
#

@tidal salmon :white_check_mark: Your eval job has completed with return code 0.

HeLlO WoRlD!
whole bear
#

There are two sorted arrays nums1 and nums2 of size m and n respectively.

Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

You may assume nums1 and nums2 cannot be both empty.

#

Example 1:

nums1 = [1, 3]
nums2 = [2]

The median is 2.0
Example 2:

nums1 = [1, 2]
nums2 = [3, 4]

The median is (2 + 3)/2 = 2.5

tidal salmon
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

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

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
whole bear
#
def median(A, B):
    m, n = len(A), len(B)
    if m > n:
        A, B, m, n = B, A, n, m
    if n == 0:
        raise ValueError

    imin, imax, half_len = 0, m, (m + n + 1) / 2
    while imin <= imax:
        i = (imin + imax) / 2
        j = half_len - i
        if i < m and B[j-1] > A[i]:
            # i is too small, must increase it
            imin = i + 1
        elif i > 0 and A[i-1] > B[j]:
            # i is too big, must decrease it
            imax = i - 1
        else:
            # i is perfect

            if i == 0: max_of_left = B[j-1]
            elif j == 0: max_of_left = A[i-1]
            else: max_of_left = max(A[i-1], B[j-1])

            if (m + n) % 2 == 1:
                return max_of_left

            if i == m: min_of_right = B[j]
            elif j == n: min_of_right = A[i]
            else: min_of_right = min(A[i], B[j])

            return (max_of_left + min_of_right) / 2.0

        print(A, B)
#
def median(A, B):
    m, n = len(A), len(B)
    if m > n:
        A, B, m, n = B, A, n, m
    if n == 0:
        raise ValueError

    imin, imax, half_len = 0, m, (m + n + 1) / 2
    while imin <= imax:
        i = (imin + imax) / 2
        j = half_len - i
        if i < m and B[j-1] > A[i]:
            # i is too small, must increase it
            imin = i + 1
        elif i > 0 and A[i-1] > B[j]:
            # i is too big, must decrease it
            imax = i - 1
        else:
            # i is perfect

            if i == 0: max_of_left = B[j-1]
            elif j == 0: max_of_left = A[i-1]
            else: max_of_left = max(A[i-1], B[j-1])

            if (m + n) % 2 == 1:
                print(max_of_left)

            if i == m: min_of_right = B[j]
            elif j == n: min_of_right = A[i]
            else: min_of_right = min(A[i], B[j])

            print(max_of_left + min_of_right / 2.0)
tidal salmon
#

I'll be right back

#

back

#

median([1, 2, 3], [4, 5, 6])

whole bear
#

def median(A, B)

jovial meadow
#

A = [1,2,3]
B = [4,5,6,7]
median(A,B)

tidal salmon
#

from statistics import median
^ Is this what you did?

whole bear
#

yo dude I solved it

#

with way less code than that

#

dude like wow I didnt even know u can solve that problem with little code

quartz lynx
#

send it through

#

Are you down to hop on a call and explain that code to me? Im learning and i read through it and would be stoked to have you explain why you did certain things that you did to my! my name is Andrew by the way 🙂

whole bear
#

wait are you learning this problem also?

jovial meadow
exotic shale
whole bear
#

nvm didnt solve it yet

jovial meadow
jovial meadow
dusty rune
#

py

whole bear
#

print("Second Number Pattern ")
lastNumber = 6
for row in range(1, lastNumber):
for column in range(1, row + 1):
print(column, end=' ')
print("")

serene plover
#

4 am for me

dusty rune
#

11am for me

whole bear
quartz lynx
#

import json

Name = input("Type in you're name to wish Kinidee a happy birthday ")
print('Thank you, ' + Name + ' for wishing Kin Kin a happy birthday!')
message = input('Anything else you would like to say? ')
print('Thank you ' + Name + ' for your kind words')

name_message = {Name: message}
j = json.dumps(name_message)
with open('kin.log', 'w') as f:
f.write(j)
f.close()

dusty rune
#
print('Thank you, ' + Name + ' for wishing Kin Kin a happy birthday!')
message = input('Anything else you would like to say? ')
print('Thank you ' + Name + ' for your kind words')
with open("kin.log", "r") as f:
  name_message = json.load(f)

name_message[Name]= message
j = json.dumps(name_message)
with open('kin.log', 'w') as f:
     f.write(j)
     f.close()```
quartz lynx
#

import json
from flask import Flask, return_tem

app = Flask (name)

@app.route('/')
@app.route('/kin20')
def kin_dialog():
Name = input("Type in you're name to wish Kinidee a happy birthday ")
print('Thank you, ' + Name + 'for wishing Kin Kin a happy birthday!')
message = input('Anything else you would like to say? ')
print('Thank you ' + Name + ' for your kind words')

with open('kin.log', 'a') as log:
print(Name, message)

name_message = {Name: message}
j = json.dumps(name_message)
with open('kin.log', 'w') as f:
    f.write(j)
    f.close()

@app.route(/viewkinlog):
def view_log() -> 'html'
return render_template

def kin_log_request():
with open('kin.log', 'a') as log:
print(Name, message)

name_message = {Name: message}
j = json.dumps(name_message)
with open('kin.log', 'w') as f:
    f.write(j)
    f.close()

@app.route

if name == '__main':
app.run(debug=true)

dusty rune
#

if __name__=="__main__":

feral island
dusty rune
#

@whole bear

#

or from math import *

quartz lynx
feral island
dusty rune
#

app.run()

#

flask run

feral island
#

python -m flask run

dusty rune
#

py -m

#

py -m flask run

#

...

whole bear
feral island
whole bear
quartz lynx
#

what do i have to add to my flask app to display the dialog from in the actual local host website rather than it appearing in the terminal when running the local host? right now the browser is just constantly loading.

#

<html>
<head>
<title>Kinidees birthday is only BLANK days away</title>
</head>
<body>
<h1>Type in your message</h1>
</body>
</html>

dusty rune
#
def index():
  return render_template("template_name.html")
#

`

feral island
#
def hello_world():
    return 'Hello, World!'```
dusty rune
#
<form action="/input" method=post>
<input type=text id = "name" name = "name" placeholder="input your name"></input>
<button type=submit>
</form>
#
@app.route('/input')
def input():
    name = request.form.get("name")```
quartz lynx
#

@app.route('/')
@app.route('/kin20')
def kin_dialog():
Name = input("Type in you're name to wish Kinidee a happy birthday ")
print('Thank you, ' + Name + 'for wishing Kin Kin a happy birthday!')
message = input('Anything else you would like to say? ')
print('Thank you ' + Name + ' for your kind words')

with open('kin.log', 'a') as log:
    return(Name, message)

name_message = {Name: message}
j = json.dumps(name_message)
with open('kin.log', 'a') as f:
    f.write(j)
    f.close()
dusty rune
#
@app.route('/kin20')
def kin_dialog():
  return "hello world"```
whole bear
round nebula
dusty rune
#

try to set it?

#

did you try to google it

round nebula
#

yeah

whole bear
#

steins gate for the winnnn

#

@whole bear

feral island
#

Some sort of null pointer exception.

round nebula
#

what do i do?

feral island
#

Stack Overflow

dusty rune
#

_init_.py

#

from dir_name import something

whole bear
#

@quartz lynx @feral island i found this, but how to i specify what url the post is?

feral island
quartz lynx
dusty rune
#

from kinweb.kin_bweb import func_name

whole bear
#

@feral island and how does that help me to specify what post i want?

feral island
#

Let me look at this shit one sec.

quartz lynx
#

import json
def():
name = input("Type in you're name to wish Kinidee a happy birthday ")
print('Thank you, ' + name + ' for wishing Kin Kin a happy birthday!')
message = input('Anything else you would like to say? ')
print('Thank you ' + name + ' for your kind words')

 name_message = {name: message}
 j = json.dumps(name_message)
 with open('kin.log', 'a') as f:
      f.write(j)
      f.close()
feral island
dusty rune
#

def main()

#

def()

whole bear
#

@feral island can you help me later? i have to go eat now, sry

feral island
#

All good

dusty rune
#
<input type=text id = "name" name = "name" placeholder="input your name"></input>
<button type=submit>
</form>```
```from flask import request
@app.route('/input')
def input():
    name = request.form.get("name")```
#
from flask import request, redirect
@app.route('/input', methods = ["POST"])
def input():
  name = request.form.get("name")
  message = request.form.get("message")
  name_message = {name: message}
  j = json.dumps(name_message)
  with open('kin.log', 'a') as f:
    f.write(j)
    f.close()
  return redirect("/")
drowsy haven
#

Have some conversation people, I would like to listen to some good stuff

fickle bear
#

i am a pro gamer too

drowsy haven
#

you meant pro gamer kek

fickle bear
#

i was just kidding

austere linden
#

Hello Everyone!

#

I am new here...

#

A good friend of mine, whom I knew on Python Tutor, informed me today about this Discord server, and the changes made on Python Tutor Website

#

I am a Software Developer enthusiast!
And I am currently practicing and improving my skills in Python Lang...

#

I will like some advice on how to develop my skills, in truly understanding the language, and becoming more professional in the coding language.

#

And I will also like to ask, if there are tutorials on here, that I could participate in. Maybe Video conferences, where I could join at a particular time (I am from the UK, so my time is GMT), to learn the language from scratch; and develop my skills?

#

Please, do feel free to DM or ping me at @austere linden for advice, or for useful information.

Thank You! 🙂

drowsy haven
#

Hey

#

Good to see you want to learn python.

#

Try posting in general, So that more people can look at this

ashen oar
#
import asyncio
import gphoto2 as gp
import os

import logging


async def handle_client(reader: asyncio.StreamReader, writer: asyncio.StreamWriter):
    callback_obj = gp.check_result(gp.use_python_logging())
    broken = False

    # noiznspection PyArgumentList
    camera = gp.Camera()
    # noinspection PyArgumentList
    camera.init()
    # Start live view
    # noinspection PyArgumentList
    camera.capture_preview()
    while not writer.is_closing() or not broken:
        try:
            # noinspection PyArgumentList
            p = camera.capture_preview()
            data = memoryview(p.get_data_and_size())
            writer.write(data.tobytes())
            await writer.drain()
        except BrokenPipeError:
            broken = True
        except gp.GPhoto2Error:
            broken = True
        except ConnectionResetError:
            broken = True
    # noinspection PyArgumentList
    camera.exit()


async def main():
    try:
        os.unlink('live.soc')
    except OSError:
        pass
    srv = await asyncio.start_unix_server(
        handle_client, 'live.soc')
    await srv.serve_forever()


if __name__ == '__main__':
    # noinspection SpellCheckingInspection
    logging.basicConfig(
        format='%(asctime)s %(levelname)s - %(module)s - %(lineno)d : %(name)s:  %(message)s', level=logging.INFO)

    asyncio.run(main())
oblique ore
#

@austere linden should i do python or javascript first

drowsy haven
#

kek

austere linden
#

@oblique ore Can we do Python and JAVA?
I can start next week Monday 😄

oblique ore
#

no i mean should i learn python or javascript first cause i havent started any of them

austere linden
#

Start with Python

oblique ore
#

k thx for the advice

austere linden
#

Try posting in general, So that more people can look at this
@drowsy haven I did, but no one has responded to me 😦

whole bear
#

ping me

#

nvm

hasty rampart
#

Ping me if you use tiktok and I will tell you 100 reasons why its a threat to cybersecurit\

drowsy haven
#

It's already bad enough without security issues.

hasty rampart
#

Yeah

#

I once fell down that path

#

I have regrets

#

Deep regerts

ashen oar
hasty rampart
#

How old are do you have to be to join this discord

drowsy haven
#

Just ask him a question

#

I have a problem, I have 3 functions these functions are basically import csv from a url and process it a ton with pandas.

#

When i use them serially they do not fail

#

but if i multiprocess them they fail often

dim wagon
#
  • Secrets of the JavaScript Ninja
#

18k$

#

38%

drowsy haven
#

@whole bear This fit your process?

#

@whole bear Add me too

#

Fuckin hell

whole bear
#

direct link?

#

@drowsy haven

drowsy haven
#

This is a war dude

drowsy haven
#

Languages definitely

#

@whole bear Where were you between 17 and 21?

#

yep

#

You are arrogant

#

He wont talk t you

#

lol

#

kek means lol

#

@whole bear Where were you between 17 and 21?

#

Yes

#

I heard all of it

#

If you dont know basic ds you wont be able to answer it

#

What was the question

#

the question?

#

Median of both arrays combined?

#

Type here

#

What are you trying to do

#

I cant understand code

#

I can understand logic kek

whole bear
#

There are two sorted arrays nums1 and nums2 of size m and n respectively.

Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

You may assume nums1 and nums2 cannot be both empty.

Example 1:

nums1 = [1, 3]
nums2 = [2]

The median is 2.0
Example 2:

nums1 = [1, 2]
nums2 = [3, 4]

The median is (2 + 3)/2 = 2.5

drowsy haven
#

kek

#

Do you know about time complexity?

#

while(true){}

#

Its not about time

#

Its about number of steps

quartz lynx
#

hello

drowsy haven
#

hey i am stuck somewhere if you will be able to help, It's related to context

#

yes

#

I have hardtime understanding inner workings of context

whole bear
#

who wants to talk about a serious

#

topic

drowsy haven
#

Bring it on @whole bear

drowsy haven
#

omg i changed my pfp on his recommendation

#

He said people with weird pfp are pedophiles

#

I didn't know he was a preacher

potent thicket
#

"if read it on Internet then it must be true"
ibrahim liken 2077

drowsy haven
#

This vanilla guy is told nutcase

quartz lynx
#

Im JUst TrYINg tO HeLP yoU oUT

drowsy haven
#

kek

quartz lynx
#

YOu ShoULD alwAYS LovE chriSTIanITY

drowsy haven
#

You gotta do your research man

potent thicket
#

@quartz lynx where you live

drowsy haven
#

Meme of the year

You gotta do your research man

#

Treat slaves fairly

potent thicket
#

@quartz lynx I am sorry I thought you were this vanilla guy

drowsy haven
#

@jovial meadow Now it's not so surprising he couldn't understand difference between Compile time and Run time complexity.

quartz lynx
#

SocIALiSm

drowsy haven
#

I think @quartz lynx is high

quartz lynx
#

i think your high

drowsy haven
#

Nah still think you are high

#

Yes

#

And your eyes are red

#

kek

#

Embarrassed for what?

#

I have noise around me

quartz lynx
#

Embarrassed because you is a cutie

drowsy haven
#

Don't want to ruin the conversation

#

Cutie? wait until you see

whole bear
#

Yo anyone know a good 2d engine that uses python for scripting?

#

Guess I'm gonna have to write my own goddamn engine in C#

potent thicket
#

Anyone wants to play ai dungeon

drowsy haven
#

Godot is a 2D and 3D, cross-platform, free and open-source game engine released under the MIT license.

#

@whole bear

balmy nymph
#

But Godot kinda sucks, seeing how poorly their render and physics engine is

drowsy haven
#

Wait he wants a pythonone

#

Does goddot run on python?

balmy nymph
#

Nope

drowsy haven
#

What about pygame

balmy nymph
#

No game engine will ever run on python tbh, python is too slow for that

#

Well, it isn't a 3d game engine

#

It is barely a 2d rendering engine

drowsy haven
#

He said 2D

#

Unity?

balmy nymph
#

I dunno I'm not on voice

drowsy haven
#

There are loads of them

balmy nymph
#

Unity is quite good at 2d yeah

drowsy haven
#

Yo anyone know a good 2d engine that uses python for scripting?

balmy nymph
#

There's also UE4 Paper2d, but it is a bit like killing a bird with a bazooka

drowsy haven
#

Yeah, I haven't used it yet.

#

I made a car in unity

#

Which goes straight, so if there's any bump on the surface it will jump upwards and move straight

#

No falling down

balmy nymph
#

Well, that's still a good start lemon_pleased

drowsy haven
#

It was 3 years ago

#

I left game Dev

fickle bear
drowsy haven
#

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20

PayPal=20
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

balmy nymph
#

Who is this guy haha

still silo
#

this was a microsoft AI bot that went out of control (shut down after a day or so)

balmy nymph
#

Oh yeah, I remember this story

still silo
#

we are talking in General about it (were)

still silo
crystal fox
potent thicket
#

☮️

crystal fox
pseudo tree
#

voice chat?

errant helm
#

indeed

pseudo tree
#

How with texT?

errant helm
#

it's for people that don't have a mic

pseudo tree
#

those little strings

#

but how?

errant helm
#

look at the channels below this one

pseudo tree
#

How do you converty

potent thicket
#

like this

errant helm
#

there's no text to speech on this server, you just read it

pseudo tree
#

Read it?

errant helm
#

yes

#

with your eyeballs or a screen reader

pseudo tree
#

oh

#

then how is it then voice doesn't that make it a regular chat

errant helm
#

it's for people that are on voice

#

but don't have a mic

pseudo tree
#

ohhh

quasi condor
#

also for posting images

pseudo tree
#

ok thanks.

#

I thought you guys right click each other messages then click "speak message" XD

#

I can still speak

errant helm
whole bear
#

What's up friends

quasi condor
#
def snail(A, B, H):
    x = 1
    H = H-A
    while True:
        H = H+B
        H = H-A
        x+=1
        if H<=0:
            return x

the error given by the website is that it is too slow
not sure how to speed it up

def snail(A, B, H):
    ans = (H - A) // (A - B)
    if (H - A) % (A - B) != 0:
        ans += 1
    ans += 1
    return ans

even this is too slow

whole bear
#

snail(A,B,H) would be:
A = It can climb this far in one day
B = Slides down during the night
H = Total height of the pole

snail(2,1,5) will return 4

quasi condor
#
def snail(A, B, H):
    return 1 + ((H - A) // (A - B) + ((H - A) % (A - B)))
#

A pile of arithmetic operations like that should be incredibly fast

jovial meadow
#

h = H-A
n = A-B
Return (h / n) + 1

quasi condor
whole bear
#

It's not aged well at all

crystal fox
quasi condor
quasi condor
#

@whole bear Sylvanus Dodji Jeoffrey?

drowsy haven
#

wtf

crystal fox
#

i gave jimmy wales £10 so he'd shut the fuck up

#

but he wont

drowsy haven
#

Hahaha

#

So what's the answer, i have never watched the show but im curious

#

@crystal fox

crystal fox
#

what show? captain planet?

drowsy haven
#

Yep

crystal fox
#

basically these group of kids each represent a part of nature

#

and when their magic rings combine they summon captain planet

#

the sort of crime he was stopping was like people dumping toxic waste in lakes and shit

#

in the 80/90's US environmental regulations were shiiiiiiiiiiiiiiiiiiiiiit

#

so i think it was very much a moral show for kids like "hey, stop dumping toxic waste in rivers else you'll fuck up all the fish"

drowsy haven
#

Alright?

crystal fox
rain merlin
#

i can't do voice-chat

potent thicket
#

Dark souls 2

somber heath
#

for key in source:
    print(f'class {key}(models.Model):')
    for field in source[key]:
        print(f'    {field} = models.CharField(max_length=30)')```
somber heath
clever copper
#

I can't hear you @somber heath 😢

jovial meadow
drowsy haven
#

Speak now cuz

quartz lynx
drowsy haven
#

Why are you buying the book

#

Just download the pdf

#

Fair enough

#

Or you could enroll in freecodecamp

#

Or the odin project

quartz lynx
#

oooo

#

free

#

i like that word

drowsy haven
#

Yeah that's the same reason i liked it

quartz lynx
#

import json
from flask import Flask

app = Flask (name)

@app.route('/')
def talk():
name_message = {name: message}
j = json.dumps(name_message)
with open('kin.log', 'a') as f:
f.write(j)
f.close()

@app.route('/viewkinlog')
def view_log() -> 'html':
return render_template

def kin_log_request():
with open('kin.log', 'a') as log:
print(Name, message)

name_message = {Name: message}
j = json.dumps(name_message)
with open('kin.log', 'w') as f:
    f.write(j)
    f.close()

if name == 'main':
app.run(debug=true)

drowsy haven
#

True*

fringe river
quartz lynx
#

<!DOCTYPE html>
<html>
<body>

<h1>
<form action="/action_page.php">
<label for="fname">type in your name to wish Kin a happy birthday!:</label>
<input type="text" id="fname" name="fname"><br></br>
<label for="lname">Thank you (name_from_f), write her a cool message so she can read it later!:</label>
<input type="text" id="lname" name="lname"><br></br>
<input type="submit" value="Submit">
</form>

<p>Thank you, your_name, for your kind words.</p>

</h1>
</body>
</html>

fringe river
#

<!doctype html>
<title>{% block title %}{% endblock %} - Flaskr</title>

<section class="content">
{% block header %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}{% endblock %}
</section>

#

<root>
<nest>

</nest>
</root>

whole bear
#

You run 10 kilometers in 40 minutes 30 seconds. Write program to find out how many
miles you can run in an hour. A mile is 1.61 kilometers.

quartz lynx
#

<!docttype html>
<title>{% block title %}{% endblock %} - Flaskr</title>
<section class="content">
<header>
{% block header %}{% endblock %}
</header>
<body>
{% block content %}{% endblock %}
</body>
<footer>
{% block footer %}{% endblock %}
</footer>
</section>

drowsy haven
#

Let's invite a interviewer

#

To this vc

quartz lynx
#

do it

whole bear
#

yuss

quartz lynx
#

how

whole bear
#

all of this is going over my head lmao

quartz lynx
#

i get what they are saying but i dont get why they are arguing over it

whole bear
#

x)

quartz lynx
#

❤️

drowsy haven
#

kek

quartz lynx
#

luffy is my base html code above good?

whole bear
#

new computer who dis

quartz lynx
drowsy haven
#

<!doctype html>
<title>{% block title %}{% endblock %} - Flaskr</title>

<section class="content">
{% block header %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}{% endblock %}
</section>
I think so

#

Does it run?

whole bear
#

a bat and a ball cost $1.10. The bat costs $1 more than the ball. how much does the ball cost?

drowsy haven
#

$1.10

whole bear
#

noope

drowsy haven
#

Kek

quartz lynx
#

10 cents

whole bear
#

that's teh total

#

nope

quartz lynx
#

its ten cents

whole bear
#

nope

#

it's not

#

try again

quartz lynx
#

a bat and a ball add up to 1.10

whole bear
#

yea

quartz lynx
#

if the bat is 1 dollar more

whole bear
#

ya...

quartz lynx
#

then the differnce in the price is a dollar

whole bear
#

yesss

quartz lynx
#

all thats left is ten cents

whole bear
#

noooo

quartz lynx
#

whats the answer smh

#

im boutta wreck myseld

#

myself

drowsy haven
#

We dumb fucks

quartz lynx
#

fr

whole bear
#

the ball is 5 cents... 1.05 is the bat

drowsy haven
#

I am telling you its 1.20

whole bear
#

making the total 1.10

drowsy haven
#

Wtf

quartz lynx
#

but my answeer could also work wtf

drowsy haven
#

We are dumb

whole bear
#

mindfreak!!

#

no it woulnd

#

5 machines take 5 mins to make 5 widgets. how many mins does it take 100 machines to make 100 widgets?