#voice-chat-text-0

1 messages ยท Page 1030 of 1

rocky gust
#

Yeah

#

And the rest

candid panther
#

Are you talking about dunders?

rocky gust
#

And how to use them

#

Dunders ?

#

All i know is that they are built in py

somber heath
#

!e ```py
class MyClass:
def add(self, v):
return "Hello!"

mc = MyClass()
print(mc + 1)```

wise cargoBOT
#

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

Hello!
rocky gust
#

Wow

somber heath
#

The 1 is given to v as an argument.

rocky gust
#

Magick

#

Magic

candid panther
somber heath
#

!e py print(9 > 6)

wise cargoBOT
#

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

True
candid panther
#

ls | xargs -I{} git -C {} pull origin main

somber heath
whole bear
#

Hi Brazilian guy

#

Hi opal

wary haven
#

@whole bear hello

#

no, I don't speak spanish

whole bear
#

Yes

wary haven
#

@rugged tundra what

whole bear
#

I am Brazilian to

#

Yes

wary haven
#

Lol

whole bear
#

On rio the janeiro

wary haven
#

in everywhere often

whole bear
#

Most of the people are catolic

#

2

#

I am from brazil two

rugged tundra
#

2 on discord 1 irl

wary haven
#

is that true? you guys really dont know geography?

wary haven
rugged tundra
whole bear
#

Rio ?

wary haven
whole bear
#

Minas gerais

wary haven
#

Clever boy

amber raptor
wary haven
amber raptor
#

Class Dismissed

wary haven
#

In our classes teachers talk more about mesopotamia

somber heath
#

Missy, the Messy Hippopotamus from Mesopotamia.

wary haven
#

the client is always right

#

lol

whole bear
#

I have to go tchau tchau

wary haven
#

flw

rocky gust
#

Hey guys

#

Does any of you guys is in hacking stuff ?

somber heath
#

Define hacking.

rocky gust
#

Well , that would be hard for me

#

Does any of you have a good understanding of the os and tools for electronic devices

#

I want to find a way to access the console or os of an android phone

#

Dude

#

That guy sounds like mr robot

somber heath
#

The Android debug bridge shell is one way. There's also a number of terminal emulator apps. I use termux.

rocky gust
#

Elliot is that you

#

Do i need to run the abd with an external device

#

Like computer

somber heath
#

You might also like to check out the xda-developers forum.

rocky gust
#

I want to access it from the very phone

#

I can get the debug.log

#

Yet i have no computer at hand now

#

I dont know how to open it from the phone

#

Dude , he sounds like Elliot from Mr.Robot

wary haven
rocky gust
#

I want to open the log file

#

And see all procedures

somber heath
#

xda-developers

rocky gust
#

App ?

somber heath
#

Website forum.

vast fog
wary haven
#

He sounds like he didn't sleep for days

rocky gust
#

Hahaha

wary haven
#

we all need

#

11pm

rocky gust
#

Can you clone android 11?

wary haven
#

context? clone like a repo?

rocky gust
#

And modify it , installing and arbitrary version of it , passing it as authentic ?

#

Os i mean

#

Clone the os

wary haven
#

But why

somber heath
#

!rule 5

wise cargoBOT
#

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

wary haven
#

I dont think thats possible

#

I mean, is possible, but an user will never download another firmware

rocky gust
#

Hm , yeah , it kinda tricky

wary haven
#

this nurses_2 repo is very cool

#

maybe I should try, but not now

rocky gust
#

Opal , how many langs do you know so far ?

wary haven
#

programming langs?

rocky gust
#

Yeah

wary haven
#

3 by domain

rocky gust
#

3 ?

wary haven
#

yeah, I dont count that ones I use just for write another hello world

somber heath
rocky gust
#

How can i create a program that creates and sort folders in a computer

#

And assing x type of file to x folder class ?

wary haven
rocky gust
#

I want to get a job as a programmer

#

Any suggestions ?

#

Other than learning of course

wary haven
rocky gust
#

By the way , whats the limit of what we can do with the !e

wary haven
rocky gust
#

!e
while true:
print("hello")

wise cargoBOT
#

@rocky gust :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print("hello")
003 |     ^
004 | IndentationError: expected an indented block after 'while' statement on line 1
wary haven
#

write about what you did

rocky gust
#

!e
while True:
print("hello")

wise cargoBOT
#

@rocky gust :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print("hello")
003 |     ^
004 | IndentationError: expected an indented block after 'while' statement on line 1
somber heath
#

It will show a few lines, then tell you it timed out and that there's no log because it was too long.

wary haven
#

let me try

#

!e
for (; ;): print('x')

#

python doesn't have for (; ;)

somber heath
#

!e py while True: print("Hello.")

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 143 (SIGTERM).

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

Full output: too long to upload

rocky gust
#

Oh

wary haven
#

ah, you can write in ' ` '

rocky gust
#

Indentation

wary haven
#

!e
print('{}'.format(print('x')))

wise cargoBOT
#

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

001 | x
002 | None
rocky gust
#

Thats py ?

#

C?

wary haven
#

py

rocky gust
#

Oh

#

Py

wary haven
#

I gonna sleep

rocky gust
#

!e
print('{}'.format(print(1+2))

wise cargoBOT
#

@rocky gust :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print('{}'.format(print(1+2))
003 |          ^
004 | SyntaxError: '(' was never closed
lavish rover
#

hellooo

#

can't speak for now, other people in the room

#

my start date has been pushed back due to immigration issues so I don't have to pick a username for a while

#

@somber heath

#

Hello Kirti, how are you doing?

#

I'm alright!

#

Yep, but I live in Canada

#

Yep, I originally came here for my undergrad in 2016

#

now I'm sticking around to work

#

wby, where are you from in India (if from there)?

#

ah cool I see, I was brought up in Kolkata, but born in chennai

#

but to add more fun to the confusion, my family is from Gujarat

#

yep, I guess I'm closest to Gujarati, that's what i speak at home

#

I should know a little, but I do not ๐Ÿ˜…

#

No I have never lived in Chennai, my mom's family was there

#

they speak tamil, I do not

#

technically my grandparents from both sides are from gujarat, they just ended up moving to west bengal / tamil nadu for work stuff

#

aam ras is a classic

#

technically, but it's like thicker and we have it like a gravy with roti

#

oh true, gujarati people have great snacks and sweets haha

lavish rover
#

Why would I get kicked out

ebon sandal
#

dont use logic bruh, its just some stupid message xD

lavish rover
#

Uhm

#

Okay I guess

cunning monolith
#

!e
print("HI")

wise cargoBOT
#

@cunning monolith :white_check_mark: Your eval job has completed with return code 0.

HI
cunning monolith
#

!e
while True:

wise cargoBOT
#

@cunning monolith :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     while True:
003 |                ^
004 | IndentationError: expected an indented block after 'while' statement on line 1
cunning monolith
#

!e
while True:
print(Hello)

wise cargoBOT
#

@cunning monolith :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 'Hello' is not defined
cunning monolith
#

!e
while True:
print('Hello')

wise cargoBOT
#

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

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

Full output: too long to upload

cunning monolith
#

!e

wise cargoBOT
#
Missing required argument

code

#
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!*

cunning monolith
#

!e
pip

wise cargoBOT
#

@cunning monolith :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 'pip' is not defined. Did you mean: 'zip'?
cunning monolith
#

!e
import pandas

wise cargoBOT
#

@cunning monolith :warning: Your eval job has completed with return code 0.

[No output]
whole bear
#

Hello!

somber heath
#

Fan death is the alleged death of humans as a result of running an electric fan in a closed room with unopened or no windows. While the supposed mechanics of fan death are impossible given how electric fans operate, belief in fan death persisted to the mid-2000s in South Korea, and also to a lesser extent in Japan.

whole bear
merry lichen
#

.

whole bear
# willow light No

Yup, so far all ive found are "alleged" deaths due to proposed increased CO2 levels, but nothing authentic

willow light
#

This is precisely the same mentality behind my parents still thinking that the microwave oven makes food radioactive

whole bear
whole bear
somber heath
#

Cooking orange juice does reduce vit c viability or something.

#

So I believe.

willow light
#

Who cooks orange juice? Other than as a lamb marinade?

whole bear
willow light
#

Yeah, we're decreasing now, but Father's day is going to be a super spreader event because the forecast is for good weather

gentle flint
willow light
#

This is how we measure our butter in America

gentle flint
#

sorry, had to go

#

possibly back later

slim anvil
#

@willow light leftists can be gun owners, but their bones are weak from drinking soylent 24/7

#

so it wont help much during the civil war

#

Opal is coping so hard

#

straw man much

#

yeah, not wanting 30 million illegal immigrants is the same thing as wanting gay people dead and wanting slaves?

willow light
#

racism is absolutely the same thing as racism

slim anvil
#

and Opal is speaking from such a privilage position

#

his country has near 0 illegal migrants

willow light
#

.topic

viscid lagoonBOT
#
**What is the best gift you've been given?**

Suggest more topics here!

slim anvil
#

the right to bear arms is constitutionally protected. you will never take our guns.
if leftists tried to take our guns civil war would ensue and let me remind you that 70% of military members are republican.

willow light
#

!rule7

#

!rule 7

wise cargoBOT
#

7. Keep discussions relevant to the channel topic. Each channel's description tells you the topic.

slim anvil
#

you are not a jurist and neither am i

#

law is a complicated matter

#

you cant just read words and assume thats what they mean

#

children die in australia/nz too

willow light
#

I mean, that's precisely what the Supreme Court does

slim anvil
#

swimming pools kill 700 children year and 200 children are killed by mass shottings

whole bear
slim anvil
#

lets ban pools then

#

world would have been a better place without Karl Marx, Bernie Sanders, AOC, and Ilhan Omar

slim anvil
#

i have studied history. i know Joseph Stalin killed 100 million people, so did Mao, and Pol Pot killed millions too.

willow light
#

Just wait until you find out about Adolf Hitler then

willow light
#

Or does it only count when left-wingers do it?

slim anvil
slim anvil
#

funny how you dont treat stalin and mao with the same level of outrage as you do hitler

willow light
#

All I'm saying is, if you're going to mention genocides, don't just list the ones that benefit your narrative

#

You also didn't mention the ones done by Churchill, Jackson, and Xi

slim anvil
#

Xi who?

#

Jingping?

willow light
#

My point exactly

slim anvil
#

Churchill never did genocides

#

he is the reason why hitler didnt win

willow light
#

1943 Indian Famine was directly because of Churchill.

slim anvil
#

bengal famine is the problem of the people in the bengal region

#

why on earth is that the responsibility of a small island nation thousands of miles away

whole bear
willow light
#

And you say you studied history

slim anvil
#

everything is blame the white man no matter how ridiulous the jump

#

you only study far left history

#

not objective history

whole bear
slim anvil
#

no it didnt

#

its because the people in the bengal region were incompetent

whole bear
willow light
whole bear
slim anvil
#

youre mad someone else has a different political view than you so you cry to the mods

#

typical leftist tbh

willow light
#

No, I'm mad that you're ignoring server rules. I tolerated it until you started making racist remarks.

#

I'll tolerate politics until it gets hateful

#

So either you can agree to be civil, or you can keep your thoughts to yourself.

whole bear
#

Whats the deal with people hating python?

willow light
#

It is the same as people hating JavaScript or Java or C# or Rust or Go or Ruby: Every language except the one I like is terrible.

#

A good way to tell someone is new to programming is when they dislike a specific language. When you're experienced, you learn to hate them all.

whole bear
willow light
#

I like to say that a beginner says "If it works, it works."
An intermediate says "Use this language with that framework, because it's new and exciting"
An expert says "If it works, it works."

slim anvil
#

how is it not filled with divs?

#

if you do inspect element on practically any website, its filled with divs

willow light
slim anvil
#

and also people who deal with data have more expierence with python than JS

#

@woeful salmon pyscript is converted to bytecode and that bytecode runs directly on the browser

whole bear
#

Are we allowed to ask questions on voice chat or is help exclusive to the help channels?

slim anvil
#

@whole bear mind posting your code in chat and writing your question?

somber heath
#

!e py text = """Apples Pears Grapes""".splitlines() for i, line in enumerate(text): print(i, line)

wise cargoBOT
#

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

001 | 0 Apples
002 | 1 Pears
003 | 2 Grapes
whole bear
#
r"D:\Users\11fileclstr\11(+)protein_clusters_95.text"

from pathlib import Path
filepath = Path('11(+)protein_clusters_95.txt')

#with open("11(+)protein_clusters_95.txt", "r") as file:
#    for line in file.readlines():
#        targets.add(line.split("|")[1])

targets = set()

with open("11(+)protein_clusters_95.txt", "r") as file:
    for line in file.readlines():
        try:
            targets.add(line.split("|")[1])
        except IndexError:
            pass

import os
#line = 'your line'
checker = {}
for i in os.listdir('11_proteomes'):
   with open(f'11_proteomes/{i}') as f:
        read = f.readlines()
   checker[i] = read

for k, v in checker.items():
    if line in v:
        print(f'line present in file {k}')
#

Cluster 55

0 1241aa, >gi|1321426930|gb|AU... *

1 1232aa, >gi|1125856936|gb|AP... at 99.35%

2 70aa, >gi|747120688|gb|AJE... at 91.43%

3 1185aa, >gi|747122515|gb|AJE... at 99.41%

4 1232aa, >gi|1885702788|gb|QM... at 99.35%

5 1241aa, >gi|1979354792|gb|QR... at 100.00%

6 1232aa, >gi|226841129|gb|ACO... at 99.35%

7 1232aa, >gi|1321415750|gb|AU... at 99.35%

8 1236aa, >gi|1370560257|gb|AV... at 99.19%

9 1232aa, >gi|1781365155|gb|QG... at 99.27%

10 1232aa, >gi|1970397862|gb|QR... at 99.27%

Cluster 320

0 765aa, >gi|1321424864|gb|AU... *

1 765aa, >gi|1125859011|gb|AP... at 97.91%

2 765aa, >gi|747119368|gb|AJE... at 100.00%

3 765aa, >gi|1885704214|gb|QM... at 97.65%

4 765aa, >gi|1979356200|gb|QR... at 99.61%

5 765aa, >gi|226844329|gb|ACO... at 97.65%

6 765aa, >gi|1321413721|gb|AU... at 97.65%

7 765aa, >gi|1370558147|gb|AV... at 95.03%

8 199aa, >gi|1781363752|gb|QG... at 97.99%

9 557aa, >gi|1781363753|gb|QG... at 95.87%

10 765aa, >gi|1970399178|gb|QR... at 97.78%

Cluster 468

0 686aa, >gi|1321426236|gb|AU... *

1 686aa, >gi|1125859412|gb|AP... at 98.54%

2 65aa, >gi|747120533|gb|AJE... at 100.00%

3 612aa, >gi|747123135|gb|AJE... at 99.67%

4 686aa, >gi|1885702110|gb|QM... at 98.54%

5 686aa, >gi|1979354081|gb|QR... at 98.40%

6 686aa, >gi|226843118|gb|ACO... at 98.83%

7 686aa, >gi|1321415034|gb|AU... at 98.10%

8 686aa, >gi|1370559578|gb|AV... at 94.31%

9 686aa, >gi|1781365815|gb|QG... at 97.96%

10 686aa, >gi|1970397152|gb|QR... at 97.81%

somber heath
#

@whole bear Very robotic

#

Intermittent.

whole bear
#

So the clusters each have lines 0-10

#

and we have 11 files that these lines have been extracted from

#

We need to find a way to see which line has been extracted from which of the 11 files

#

all of them can be from the same file, 2 can be from the same one or all 11 can be from separate files

somber heath
#

Sounds like a job for in

willow light
#

yeah, in is your friend

whole bear
#

So our output would mention the cluster and each line in the cluster and from which file that line has been extracted from

willow light
#

if protein_a in cluster_1

whole bear
#

yup only a few kbs

#

and they dont chnage

#

The most clusters i have in a file are 166 and the least is 28 `

#

efficiency is not key here, I just need my output file ๐Ÿ˜‚

woeful salmon
#

rf"(?<gi\|){<target>}(?=\|gb)"

whole bear
woeful salmon
#

(?<=gi\|)

whole bear
#

I did use regex to extract these lines in the first place ๐Ÿ˜„

woeful salmon
#

(?=\|gb)

somber heath
#

!epy texts = ["abc", "def", "ghi"] candidate = "f" for it, t in enumerate(texts): for li, letter in enumerate(t): if candidate == letter: print(f"Candidate {candidate} found at texts index {it}, index {li}.")

wise cargoBOT
#

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

Candidate f found at texts index 1, index 2.
whole bear
#

Im using python 3

#

Ill try it out thank you!

#

Ill have to google most of what youve said but ive written it down so ๐Ÿ˜…

whole bear
willow light
#

probably re.match()

whole bear
#

an example of the desired output is as follows:

#

where cb.....fasta are the 11 original files

whole bear
woeful salmon
#
import os
import re
from pathlib import Path

filepath = Path('11(+)protein_clusters_95.txt')

targets = set()

with open("11(+)protein_clusters_95.txt", "r") as file:
    for line in file:
        try:
            targets.add(line.split("|")[1])
        except IndexError:
            pass


#line = 'your line'
checker = {}
for i in os.listdir('11_proteomes'):
   with open(f'11_proteomes/{i}') as f:
        read = f.readlines()
   checker[i] = read

for k, v in checker.items():
    for line_num, line in enumerate(v):
        for target in targets:
            if re.search(rf"(?<=gi\|){target}(?=\|gb)", line):
                print(f"found {target} in {k} in line {line_num}")
whole bear
#

Thank you so much Mr. Reaper

#

I mean its something atleast ๐Ÿ˜‚

#

Okay thank you

#

so theres an error

#

it says:

print(f"found {target} in {k)")
                              ^

SyntaxError: f-string: unmatched ')'

#

oh okay okay

#

Ill change that

woeful salmon
whole bear
#

theres another error message but thats something wrong on my end I think

#

If you could just guide me a little

somber heath
#
import pathlib
candidate = "line to find"
data = dict()
path = pathlib.Path("./sources/").glob("*.source")
for file in path:
    data[file.stem] = file.read_text().splitlines()

for file_name, lines in data.items():
    for i, line in enumerate(lines):
        if candidate == line:
            print(f"Candidate {candidate} found in {file_name} at line index {i}.")```
whole bear
#

Traceback (most recent call last):
File "D:\Users\11fileclstr\11fileclstr.py", line 54, in <module>
if re.search(rf"(?<=gi|){target}(?=|gb)", v):
File "C:\Users\Noodles\AppData\Local\Programs\Python\Python39\lib\re.py", line 201, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object

#

Sounds like they forgot to make your order

#

yess

#

Oki dokes

somber heath
slim anvil
#

@woeful salmon what country are you in?

whole bear
#

the end goal is, when I see a cluster that has all 11 proteins from all 11 different files I will separate it from the rest

Because what I need are only the clusters that have 11 proteins from 11 different files of the directory

#

I bring good news friends

#

It works, it needs some sorting but ill do that in excel be cause I do NOT know how to do that in python

somber heath
#

Sorting is pretty easy in Python.

whole bear
#

key function, Noted.

somber heath
#

!d sorted

wise cargoBOT
#

sorted(iterable, /, *, key=None, reverse=False)```
Return a new sorted list from the items in *iterable*.

Has two optional arguments which must be specified as keyword arguments.

*key* specifies a function of one argument that is used to extract a comparison key from each element in *iterable* (for example, `key=str.lower`). The default value is `None` (compare the elements directly).

*reverse* is a boolean value. If set to `True`, then the list elements are sorted as if each comparison were reversed.

Use [`functools.cmp_to_key()`](https://docs.python.org/3/library/functools.html#functools.cmp_to_key "functools.cmp_to_key") to convert an old-style *cmp* function to a *key* function.
somber heath
#

^ key parameter

willow light
#

sorting in python is very good

from asyncio import run, sleep, wait
from sys import argv
 
async def f(n):
    await sleep(n)
    print(n)
 
if __name__ == '__main__': 
    run(wait(map(f, map(int, argv[1:]))))
whole bear
#

So what im getting is the following:

found 1970399187 in cb.X58540.fasta in line 19318
found 1970399297 in cb.X58540.fasta in line 20084
found 1970399303 in cb.X58540.fasta in line 20115
found 1970399310 in cb.X58540.fasta in line 20145
found 1970399461 in cb.X58540.fasta in line 21187
found 1970399506 in cb.X58540.fasta in line 21546
found 1970399762 in cb.X58540.fasta in line 23230
found 1970399763 in cb.X58540.fasta in line 23233

and then:

found 1781363780 in cb.NCTC13319.fasta in line 7067
found 1781364492 in cb.NCTC13319.fasta in line 11658
found 1781364493 in cb.NCTC13319.fasta in line 11668
found 1781364700 in cb.NCTC13319.fasta in line 13150
found 1781365147 in cb.NCTC13319.fasta in line 16208
found 1781365161 in cb.NCTC13319.fasta in line 16312
found 1781365187 in cb.NCTC13319.fasta in line 16437

it has sorted it based on the files. I need to sort it cluster-wise

#

am I making sense?

somber heath
#

A sorted / list.sort's key parameter takes a function. Every element of the sort is given to a separate call of the key function. The returns of the function govern the elements' positions in the sort.

whole bear
#

so for e.g. it would say:

cluster 16437
0 1781365187 present in cb...fasta
1 1765429978 present in cb...fasta

and so on

somber heath
#

!e ```py
vs = [(1, 3), (2, 2), (3, 1)]

def sort_a(v):
return v[0]

def sort_b(v):
return v[1]

vs.sort(key=sort_a)
print(vs)
vs.sort(key=sort_b)
print(vs)```

wise cargoBOT
#

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

001 | [(1, 3), (2, 2), (3, 1)]
002 | [(3, 1), (2, 2), (1, 3)]
gentle flint
#

@woeful salmon wanna play bomb party?

whole bear
#

@woeful salmon @somber heath @willow light Thanks for all the help guys! Really appreciate it!

gentle flint
#

anyone else joining?

somber heath
#

Not I.

#

But thank you.

gentle flint
#

k

whole bear
#

Ive never played

#

Sounds fun

#

Im in!

slim anvil
#

this is racism

woeful salmon
#

@frosty star ๐Ÿ˜„ hello, come join us

slim anvil
#

@gentle flint just shushed a POC (NoodleReaper)

frosty star
#

In a bit

#

Yaโ€™ll maybe just start first

#

Iโ€™ll join next round

broken harbor
frosty star
#

My favorite color

#

Yup

#

Interesting

broken harbor
#

UwU

willow light
#

Unless you're german, and then it becomes UvU

frosty star
#

pfft

somber heath
#

Queen. "Mumma! UwU..." ๐ŸŽต

broken harbor
#

UWUWUUUWWUWU

frosty star
#

woah.... you guys sound so weird from my side

#

like robots

#

whats up with my internet connection

#

I only hear beep boop can't really pick up details so sorry if I'm not responsive

#

CONGRATS

#

HAPPEN

rugged root
woeful salmon
#

humhumukunukunukuapuaas

sour willow
#

@wind raptor yo arent you in the arduino server?

willow light
#

antidisestablishmentarianism

woeful salmon
#

demisemihemidemisemiquaver

willow light
#

i know of demihemidemisemiquaver through a very good music theory video

peak copper
rugged root
#

Neat

sour willow
#

im now voice verified

#

but i will refuse to talk - still :)

rugged root
#

HA

#

Nothing wrong with that

#

We've got plenty of folks who do that

formal palm
#

Hello

sour willow
#

sup

formal palm
#

gud gud

#

but i have a little problem

#

and im searching for help.D

#

:D

#

Uhm my venv folder in Python is red

#

and I cant use some things

#

like def__init__(self)

#

stuff like that

#

__

#

i wish i could stream but

#

okay wait#

#

hahahah

sweet lodge
#

@rugged root - What's the difference between .NET Framework and .NET Standard?
Is "Standard" the same as "Core"?

formal palm
sour willow
#

shouldnt there be a space

formal palm
#

im a idiot

#

lmao

sour willow
#

lol

#

you arent

formal palm
#

went to sleep crying yesterday

#

hahaha

rugged root
rugged root
sour willow
#

i have had the same issue with semi colons

formal palm
#

Got it

#

thanks guys

sour willow
#

also

#

dont put a space

#

in the name

#

the file name

rugged root
#

Mainly an issue if you want to import the files

wise cargoBOT
#

src/TestActionsDarbia.Codeunit.al line 23

local procedure CreateWarehouseShipments(SalesHeader: Record "Sales Header");```
`src/TestActionsDarbia.Codeunit.al` line 43
```al
local procedure ReleaseWarehouseShipments(SalesHeader: Record "Sales Header";```
formal palm
#

Its the python course of freecodecamp

#

Im almost done with it can you guys recommend anything else afterwards?

#

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

โญ๏ธ Contents โญ
โŒจ๏ธ (0:00) Introduction
โŒจ๏ธ (1:45) Installing Python & PyCharm
โŒจ๏ธ (6:40) Setup & Hello Wor...

โ–ถ Play video
#

8/10

#

i would say

#

need more practice with classes now

#

but Imma get there

#

hmm

#

Okey got it imma think about what I wanna do

#

thanks

amber raptor
#

Everyone still calls it core though.

honest pier
#

my code has been compiling for like the last 30 minutes

sour willow
#

then sleep :|

rugged tundra
#

"foolproof"

rugged root
#

Huh, I always thought that was hyphenated

honest pier
#

i deleted 2 chars, compile time: 199.3s

sweet lodge
honest pier
#

the rust experience```
=> [base 6/10] RUN cargo build --release 449.2s

#

๐Ÿ˜ฉ

rugged root
#

That's any compiled language that does that right?

honest pier
#

it finally finished at 1042.9s

#

so, i would hope not

rugged root
#

That's the release build, though

#

Debug is usually quicker

honest pier
#

well yeah

#

but surely it's not that bad

rugged root
#

The XKCD comic about it exists for a reason

honest pier
#

that's like what, 17 minutes lol

rugged root
#

The cost of release building, from what I've read

somber heath
#

Erpen Serce.

#

I'd name a jit "Coffee".

#

Jitters.

rugged root
somber heath
#

Worth it once it's up and going for chunky stuff.

rugged root
#

Chonk

honest pier
#

is my mic broken ๐Ÿ˜”

#

oof

#

@amber raptor , no, it compiles everything then runs

#

python's execution is basically the same as java, except without jitting

#

because class definitions can have side effects

rugged root
#

Ooooooo

#

Alternative to PyYAML

amber raptor
mild quartz
#

Guidos slides

rugged root
#

Interesting

peak copper
willow light
rugged root
#

@peak copper Dude, please use push to talk or something while you're sick. The sniffling and coughing is rough

willow light
#

OMG the redwoodjs docs start with a tutorial video that begins with "oh hi, i didn't see you there"

#

my sides....

#

BTW I'm in a cafe so I can't talk

#

WASM is like awesome, but with a w. Despite it feeling like an L all the time.

#

The only people using wasm are startups, hipsters, and corporations who think that because FAANG uses it they have to as well.

#

See also YAML

#

Electron: excellent idea, not so excellent execution

honest pier
#

i love when CLion wants to index every file that exists and eats my cpu

willow light
#

Electron is like Communism. Sure it seems like a good idea to some from the outside, but when you actually start using it you realize that it falls apart as soon as people get involved

rugged root
willow light
#

For cross-platform I suggest Java, because it runs on 3 billion devices

#

Exactly

honest pier
willow light
#

That's why you never update rust if your dev environment isn't a docker container

#

Just use XML Hemlock

willow light
#

Why not TOML

#

I know someone who used CSV for their config file

amber raptor
willow light
#

That someone was me in 2013.

rugged root
willow light
#

Did someone say mechanical keyboard? I want to make one as clacky as possible.

#

With the vim cheatsheet as the keycaps

honest pier
#

ughhh now for another 17 minute compile time wait

willow light
#

I'm waiting on a build. It usually takes 2 hours, but that's because I put a whole bunch of sleep commands in the jenkinsfile.

#

gives me time to work on my summer reading

#

Don't worry, the prod build doesn't have the built-in waiting

rugged root
#

@honest pier Can you show me what it'd look like with just like.... the categories: logs section?

#

I hate to bother you with it

honest pier
#

yeah one sec

rugged root
#

I really appreciate it

willow light
#

For speed I recommend Perl. Don't use comments because no amount of documentation will ever make any perl code make sense

#
</sarcasm>
rugged root
honest pier
#
[categories.logs]
all-logs = "text"
big-brother-logs = "text"
duck-pond = "text"
rugged root
#

Bah, that was weak, sorry

#

Hm... I don't hate that

honest pier
#

i wonder if you even need an outer categories thing

#

ah, yeah you would

rugged root
#

With how it's layered I would

#

Also doesn't help that I'm having to tweak it a bit more now

#

So like (I don't know TOML so forgive me):

[categories.logs]
all-logs = {type: "text", websocket: true}

And that'd only be for ones that do need a websocket

willow light
#

At least you'd get the ant

rugged root
willow light
#

It's a swiss army nuke

rugged root
#

The spider - mankindโ€™s most ancient and deadly nemesis. As a licensed Kill It With Fire exterminator, itโ€™s time to fight back! Assemble your arsenal of increasingly excessive weapons, track spiders across suburbia, and burn everything in your path!To defeat spiders you must exploit their one weakness: FIRE. Or bullets. Or explosions, throwing st...

Price

$14.99

Recommendations

1776

Metacritic

68

โ–ถ Play video
willow light
#

Also, how masochistic can a person get?

honest pier
#

debian:buster-slim doesn't have the version of GLIBC that rust 1.61 needs bruh

willow light
honest pier
willow light
honest pier
#

i build on that, then transfer to debian to make a smaller image

willow light
#

At least it's under 20

rugged root
honest pier
#

bruh

willow light
#

there is an alpine version if you really think size matters

#

even though we all know it's more how you use it. it's the motion of the ocean

honest pier
#

alpine is annoying since you need musl for rust, and buster slim was good enough

willow light
#

the official rust image is available in buster slim

#

rust:slim-buster

honest pier
#

that still has the compiler and other stuff on it, no?

willow light
#

Did someone mention the Patron Saint of Incels?

willow light
rugged root
willow light
#

I use them for fanfiction

#

I have a workflow setup so anything in pocket unread that was added in the past week is automatically sent to my kindle.

#

No, I use the chrome bookmarks bar for fanfiction and weather data

#

Pocket I use as a Read It Later type of thing

#

Oh, and you can log in with your Mozilla account, it works very well with Firefox

#

Firefox comes with Pocket built-in

#

My entire kindle home screen is articles from pocket right now

honest pier
#

perhaps we use bullseye instead of buster ๐Ÿ˜”

sweet lodge
#

People actually use Pocket?

wary haven
#

guys using ripcord even properly can I get a ban?

sweet lodge
#

Yes

#

Discord will ban people they catch using modified clients

wary haven
#

non exclusive for spam or abuse?

sweet lodge
#

Using a modified client is abuse, according to Discord's ToS

wary haven
#

how can I use discord on this, awesome pc

#

with ripcord is so smooth

opal lantern
#

Hey guys quick question. Can i pass the function into the fraction() python?

numerate = input("Numerator: ")
denomin = input("Denominator: ")
print(Fraction(f"{numerate}, {denomin}"))
honest pier
#

you probably need separate strings

#

and you probably don't need an fstring

opal lantern
#

Im sure its something with make 2 seperate fstrings?

#

I just wanted to take the inputs so you know what you were typing.

honest pier
#

why do you need fstrings

opal lantern
#

just thought it was easier to take the inputs that way. lol

#

was just trying to pass the inputs into the Fraction(5, 7) So i could just type in the new number everytime and not delete the old numbers in the print(Fraction( , ))

honest pier
#

yeah, but you could just not have fstrings. input already gives you a string

opal lantern
#

I see what your saying now i just didnt know how to make it read the input and put it in the Fraction output

honest pier
#

should just be something like print(Fraction(numerate, denomin))

opal lantern
#

ok i thought i guess for some reason it needed to read it the other way

honest pier
#

your issue was you were passing 1 string, instead of 2

rocky gust
#

Hey guys , i was trying something

#

I dont know why. It gets this

willow light
#

!e

number = 5
assert isinstance(number, int or float)
wise cargoBOT
#

@willow light :warning: Your eval job has completed with return code 0.

[No output]
willow light
#

!e

number = 5.5
assert isinstance(number, int or float)
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | AssertionError
willow light
#

!e

number = 5.5
assert isinstance(number, float) or isinstance(number, int)
wise cargoBOT
#

@willow light :warning: Your eval job has completed with return code 0.

[No output]
willow light
#

Surely there's a better way to do that.

woeful salmon
#
number = 5.5
assert isinstance(number, (int, float))
woeful salmon
plucky mural
formal lintel
#

I fought in the Bengali-British war

undone idol
#

๐Ÿ‘‹

#

Can you type?

#

Your voice seems a bit cracky

ebon sandal
#

eh?

#

really?

undone idol
#

yep

ebon sandal
#

let me test it

undone idol
#

idk, is it with me or you?

ebon sandal
#

its not my problem

#

just tested

#

its all clear

undone idol
#

Ohk, what were you saying?

ebon sandal
#

just asking why u dont speak

undone idol
#

I am shy uwu

ebon sandal
#

๐Ÿ˜ณ

#

y

undone idol
#

๐Ÿ‘‹

ebon sandal
#

come on bruh

#

talk

#

xD

#

its better than typiong

#

its faster

#

๐Ÿ™‚

undone idol
#

Ikr, but I have a fear of speaking in front of strangers.

ebon sandal
#

its not like they are gonna make fun of you

#

dont worry about that

undone idol
#

ik lmao

ebon sandal
#

we are grownups xD

undone idol
#

I don't open mic in pydis, I do it in other servers ๐Ÿ‘€

undone idol
#

the mathematics serverig

ebon sandal
#

i am not gonna type naymore as i got work, i will speak ๐Ÿ™‚

undone idol
#

Sure, np!

#

Bye!

ebon sandal
#

bye??????????????

#

i am still in the voice chat

#

0_0

#

bruh?

undone idol
#

yeh, I have to go.

ebon sandal
#

bye

undone idol
#

Sure, will see you next time

#

opal ciao

sour willow
#

hi

#

its perfectly fine

tame crown
#

๐Ÿ˜„

thin drift
#

hi um a need help whit my game for Roblox its not still finished a need to make and a need someone ho is good coding roblox game when a finish the look a will tell someone ho wants to help to start codding , and also how can a speak voiceverify dont let me too speak

sour willow
#

hi @mint canyon

#

@mint canyon

#

i cant talk right now

#

i can chat though

#

Hello

#

what you workin on?

#

what lang?

#

nice nice

#

Im working my backend with Java lemon_sweat

#

its like a photo uploading application

#

currently a web app

#

im getting into java a bit, i was working with golang

#

nope, im not doing anything fancy

#

14

#

ergh

#

?

rugged root
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 95
Member status: status_online 55,511 status_offline 294,659

Members: 350,171

Helpers: 143
Moderation Team: 37
Admins: 15
Owners: 3
Contributors: 41
Leads: 10

Channels: 265

Category: 31
Forum: 1
News: 8
Staff: 72
Stage_Voice: 2
Text: 141
Voice: 10

quaint oyster
#

infernus did you see that guys picture lol

peak copper
broken harbor
#

!user

wise cargoBOT
#

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

somber heath
#

Was the train a Vulcan?

rugged root
#

Processing

sweet lodge
frosty star
#

I just wanna get married n be a stay at home mom

somber heath
frosty star
#

But so far im on track for career woman

rugged root
#

Ohhhhh right

rugged root
#

Can always work from home

frosty star
sweet lodge
# sweet lodge

@rugged root - help meeee
After logging in, user gets a back screen with just a cursor
I can control alt delete into task manager. I tried restarting explorer, but nothing happened

sweet lodge
frosty star
#

Im so glad i am alive now than any other era

sweet lodge
rugged root
#

Yep

#

You'll find that a lot of IT things can be solved by taking a little bit to respond

#

It's not uncommon for the issue to be impatience on the part of the user

sweet lodge
#

The impatience is mine

#

It was stuck for almost 15 minutes

quasi condor
sweet lodge
#

It's a ten year old laptop, but it "still works", so I can't get anything new

frosty star
rugged root
#

Fuuuuuuuuuuuuuuck

#

You have to love it when we have client emails that keep bouncing off of us. And we NEED those emails

#

They're payroll things and this payroll needs done today

cunning monolith
#

Hemlock do you know how I can import multiple events at once from a website in wordpress ?

rugged root
#

Not off the top of my head.

#

I haven't really messed with WordPress much if at all

quasi condor
#

12 youtube videos, actively browsing email - 2.7gb of memory

rugged root
#

Alright fine, forget I mentioned the topic, Charlie

#

It's just a personal beef that I think applies more towards games

quasi condor
#

this isn't targeted at you

rugged root
#

I know

cunning monolith
quasi condor
#

the conversation about memory is still kinda going

rugged root
#

Ah fair

cunning monolith
#

try brave or microsoft edge

rugged root
#

Apologies, this is emergency level shit

#

Otherwise I'd be listening

rugged tundra
#

MIT 6.172 Performance Engineering of Software Systems, Fall 2018
Instructor: Charles Leiserson
View the complete course: https://ocw.mit.edu/6-172F18
YouTube Playlist: https://www.youtube.com/playlist?list=PLUl4u3cNGP63VIBQVWguXxZZi0566y7Wf

Professor Leiserson introduces 6.172 Performance Engineering of Software Systems. The class examines an e...

โ–ถ Play video
#

12:40 is where

woeful salmon
#

๐Ÿคฃ

whole bear
woeful salmon
#

he's constantly getting negative votes lmao

#

i love it

frosty star
#

Watsgoinon

#

Oh

woeful salmon
#

i was just looking at stack overflow

#

cuz bored

quasi condor
frosty star
#

Gotcha

#

Haha

rugged root
#

That'll tell you what you need to know

#

@quasi tendon What's the problem you're having?

#

Better to talk in here rather than DM

#

The more eyes you have on a problem the more likely you'll get it solved

somber heath
#

Yes! Yes! Advance the monoculture!

rugged root
#

@quasi tendon If you're going to ask a question, please ask it in here

quasi tendon
#

a=195
b=65
i wanna make like x=a+b
and x will be 19565
[19:40]
sorry i from india
[19:40]
sorry for my english

frosty star
#

A mac is so pretty tho

#

So pretty

#

SO PRETTY ๐Ÿ˜ซ

somber heath
woeful salmon
#

https://docs.expo.dev/workflow/expo-cli/ @cunning monolith if you do use react native check expo out ๐Ÿ™‚ they will build the app for you for both android and ios and they also have an app you can install the built app right on your mobile for testing without actually needing to connect your mobile to pc via usb or anything

here's a video that shows how to set up a project with expo https://www.youtube.com/watch?v=0-S5a0eXPoc (he also shows how to set up emulators if needed)

quasi tendon
#

ty

cunning monolith
#

I just wanna ask one thing

#

Android Studio Sucks in my pc showing some warning and lags a bit but still my processor is not full used and ram also

quasi condor
cunning monolith
woeful salmon
#

also it is a heavy peace of software

#

specially the emulator

cunning monolith
cunning monolith
cunning monolith
woeful salmon
#

ah its telling you to update adb

#

you sure the version you updated is the one in that location?

cunning monolith
woeful salmon
#

how did you update?

frosty star
somber heath
#

Aggression for him started at 0. Some achievement reduced aggression by an amount. So it flipped around to super super high.

cunning monolith
frosty star
#

I once asked a professor who she was she seems kinda offended by that

#

But she never taught me

#

I never read her research

#

I owe her nothing

low laurel
#

sorry for going in to the voice chat

somber heath
#

!e py import numpy as np v = np.array([0], dtype = np.uint32) v -= 1 print(v)

wise cargoBOT
#

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

[4294967295]
rugged root
woeful salmon
cunning monolith
quasi tendon
#

i don't know because sometimes my english is like elephant shit

#

but i know russia

cunning monolith
quasi tendon
#

ะะต ะทะฝะฐัŽ

#

ัั‚ะพ ะธะฝั‚ะตั€ะตัะฝะพ

#

ะœะฝะต ะฝั€ะฐะฒะธั‚ัั ั€ัƒััะบะธะน ัะทั‹ะบ, ะพะฝ ัะปะพะถะฝั‹ะน ะบะฐะบ ะธ ะผะพั ะถะธะทะฝัŒ

#

๐Ÿฅฐ

cunning monolith
#

ะตัะปะธ ะฒั‹ ะผะพะถะตั‚ะต ะฒั‹ัƒั‡ะธั‚ัŒ ั€ัƒััะบะธะน ะฐะฝะณะปะธะนัะบะธะน ะฝะฐะผะฝะพะณะพ ะฟั€ะพั‰ะต, ั‡ะตะผ ัั‚ะพ

somber heath
#

!rule 4 ๐Ÿ™‚

wise cargoBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

quasi tendon
#

ั ั‚ะพะปัŒะบะพ ะฝะฐั‡ะฐะป ัƒั‡ะธั‚ัŒ ะฐะฝะณะปะธะนัะบะธะน

cunning monolith
#

ะ—ะฐะผะตั‡ะฐั‚ะตะปัŒะฝะพ

quasi tendon
#

i omly started learn english

cunning monolith
#

only*

quasi tendon
#

i intersting in europe dog sounds like 'vav' 'vav' 'vav' ?

#

or nya nya ?

somber heath
#

@willow light I say this with all due affection: You twit.

sweet lodge
#

Toeing the line a bit Clari

#

no

cunning monolith
#

@woeful salmon Do you have any idea how can I import multiple events at one or all events from one website in wordpress ?

verbal ibex
#

Nice avatar, Opal

somber heath
woeful salmon
#

threw up and left

cunning monolith
#

Should I also do so ?

woeful salmon
#

not really if it works for you then gr8

willow light
#

Dike is this thing

woeful salmon
#

for me i can just do a much better job actually making the site myself

quasi condor
#

A levee (), dike (American English), dyke (Commonwealth English), embankment, floodbank, or stop bank is a structure that is usually earthen and that often runs parallel to the course of a river in its floodplain or along low-lying coastlines. The purpose of a levee is to keep the course of rivers from changing and to protect against flooding of...

cunning monolith
woeful salmon
#

that's just changing the limits to what the plugins allow you to do

#

when i write the site myself (cuz that's my literal job) i have control over everything

willow light
#

we also have this dike ten minutes away from my apartment

cunning monolith
somber heath
woeful salmon
cunning monolith
#

ohk

clear shadow
#

Hey!

willow light
sweet lodge
#

๐Ÿ‘‹

#

NO

#

Well... fine

#

$600/hour

willow light
wise cargoBOT
#

python/gfs_geostrophic.py line 1

#```
`python/gfs_geostrophic.py` line 15
```py
#```
rugged root
#

!e

import sys
print(sys.maxsize)
wise cargoBOT
#

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

9223372036854775807
cunning monolith
#

while True:
print("Hello World")

willow light
#

!e

import sys
print(f"what are you doing step-{sys}ter")
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

what are you doing step-<module 'sys' (built-in)>ter
cunning monolith
#

!e
while True:
print("Hello World")

wise cargoBOT
#

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

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

Full output: too long to upload

woeful salmon
#

!e

for i in range(5):
โ€‹print(i)
wise cargoBOT
#

@woeful salmon :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     โ€‹print(i)
003 |     ^
004 | SyntaxError: invalid non-printable character U+200B
cunning monolith
#

!e
a=input("Whats your name ")

wise cargoBOT
#

@cunning monolith :x: Your eval job has completed with return code 1.

001 | Whats your name Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
sweet lodge
#

!eval

while True:
โ€‹print("Hello World")
wise cargoBOT
#

@sweet lodge :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     โ€‹print("Hello World")
003 |     ^
004 | SyntaxError: invalid non-printable character U+200B
willow light
#

!e

print(โ€‹"Hello World")
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print(โ€‹"Hello World")
003 |           ^
004 | SyntaxError: invalid non-printable character U+200B
cunning monolith
#

!e
while True:
print("1+1=3")

wise cargoBOT
#

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

001 | 1+1=3
002 | 1+1=3
003 | 1+1=3
004 | 1+1=3
005 | 1+1=3
006 | 1+1=3
007 | 1+1=3
008 | 1+1=3
009 | 1+1=3
010 | 1+1=3
011 | 1+1=3
... (truncated - too many lines)

Full output: too long to upload

willow light
#

!e

#!/bin/python2
โ€‹from numpy import *
โ€‹from scipy import *
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     โ€‹from numpy import *
003 |     ^
004 | SyntaxError: invalid non-printable character U+200B
cunning monolith
#

!e
import pandas

wise cargoBOT
#

@cunning monolith :warning: Your eval job has completed with return code 0.

[No output]
sweet lodge
#

@rugged root - Then let's use the other one

woeful salmon
#

โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹

willow light
#

โ€‹

cunning monolith
#

!e
import flask

wise cargoBOT
#

@cunning monolith :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'flask'
willow light
#

!e
import metpy

wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'metpy'
sweet lodge
#

alright

willow light
#

!e
import jwt

wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'jwt'
willow light
#

No JWT?

sweet lodge
#

nope

somber heath
#
import *```\*deep rumbling slowly intensifies\*
willow light
#

BOOOOOOOO

sweet lodge
#

!eval import *

wise cargoBOT
#

@sweet lodge :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     import *
003 |            ^
004 | SyntaxError: invalid syntax
willow light
#

!e

from * import *
quasi condor
#

!e

import subprocess
print(subprocess.check_output(['python -m pip', 'freeze']))
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     from * import *
003 |          ^
004 | SyntaxError: invalid syntax
cunning monolith
#

import os

#

!e
import os

wise cargoBOT
#

@cunning monolith :warning: Your eval job has completed with return code 0.

[No output]
sweet lodge
#

@willow light - Use AuthLib

rugged root
cunning monolith
#

!e

wise cargoBOT
#
Missing required argument

code

#
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!*

rugged root
#

This one just feels cleaner

cunning monolith
#

!e
async def sample_command(ctx):
# may actually take a while for this command to respond if we happen to be
# in the middle of a heavier site scrape
await ctx.channel.send("Random message, something indicating bot has responded")

async def main_loop():
sem = asyncio.Semaphore(60)
connector = aiohttp.TCPConnector(limit=60)

async with aiohttp.ClientSession(connector=connector, headers=headers) as session:
    while True:
        # main guts of loop here ... 

        scrapers = [scraper_1(session, sem), scraper_2(session, sem), ...]
        data = list(chain(*await asyncio.gather(*scrapers)))
wise cargoBOT
#

@cunning monolith :warning: Your eval job has completed with return code 0.

[No output]
sweet lodge
quasi condor
#

!e

import subprocess
subprocess.run(['python3', '-m', 'pip', 'freeze'], capture_output=True, text=True).stdout
wise cargoBOT
#

@quasi condor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
004 |     with Popen(*popenargs, **kwargs) as process:
005 |   File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
006 |     self._execute_child(args, executable, preexec_fn, close_fds,
007 |   File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
008 |     raise child_exception_type(errno_num, err_msg, err_filename)
009 | FileNotFoundError: [Errno 2] No such file or directory: 'python3'
cunning monolith
#

!e
from discord.ext import tasks

@bot.event()
async def on_ready():
main_loop.start()

@bot.command()
async def sample_command(ctx):
await ctx.channel.send("Random message, something indicating bot has responded")

@tasks.loop(seconds=60)
async def main_loop():
do_something()

wise cargoBOT
#

@cunning monolith :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'discord'
woeful salmon
#

@quasi condorhttps://github.com/python-discord/snekbox

quasi condor
#

!e
import subprocess
subprocess.run(['ls'], capture_output=True, text=True).stdout

wise cargoBOT
#

@quasi condor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
004 |     with Popen(*popenargs, **kwargs) as process:
005 |   File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
006 |     self._execute_child(args, executable, preexec_fn, close_fds,
007 |   File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
008 |     raise child_exception_type(errno_num, err_msg, err_filename)
009 | FileNotFoundError: [Errno 2] No such file or directory: 'ls'
cunning monolith
#

!e
pip

wise cargoBOT
#

@cunning monolith :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 'pip' is not defined. Did you mean: 'zip'?
willow light
#

!e

import subprocess
subprocess.run(["rm", "-rf", "/"])
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
004 |     with Popen(*popenargs, **kwargs) as process:
005 |   File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
006 |     self._execute_child(args, executable, preexec_fn, close_fds,
007 |   File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
008 |     raise child_exception_type(errno_num, err_msg, err_filename)
009 | FileNotFoundError: [Errno 2] No such file or directory: 'rm'
cunning monolith
#

!e
import zip

wise cargoBOT
#

@cunning monolith :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'zip'
sweet lodge
#

#bot-commands message

sweet lodge
willow light
#

Some people just want to see the world burn

cunning monolith
#

How you get this box for typing ?

sweet lodge
sweet lodge
willow light
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

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

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

sweet lodge
#

jinx

willow light
sweet lodge
#

Laughs in TOML

willow light
#

I just realized a way to work with JWT on here.

#

!e

import base64
wise cargoBOT
#

@willow light :warning: Your eval job has completed with return code 0.

[No output]
somber heath
#

Where book?

willow light
#

and now....time to visit r/ProgrammingHorror for ideas

somber heath
#

Deep end in sea.

willow light
#

!e

import os

try:
  os.mkdir("./con")
  os.rmdir("./con")
except:
  platform = "windows"
else:
  platform = "unix"
finally:
  print(platform)
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

windows
rugged root
somber heath
#

Bare except?

#

Ew.

rugged root
#

Bear exceptions

sweet lodge
#

!eval

try:
  import os
  os.mkdir("./con")
  os.rmdir("./con")
except Exception as exception:
  print(exception)
wise cargoBOT
#

@sweet lodge :white_check_mark: Your eval job has completed with return code 0.

[Errno 30] Read-only file system: './con'
willow light
#

!e

my_list = [1]
for i in range(len(my_list)):
  print(my_list[i])
  my_list.append(my_list[i] + 1)
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

1
lavish rover
#

!e

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

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

s='s={};print(s.format(repr(s)))';print(s.format(repr(s)))
willow light
#

!e

import math

my_list = [1]
for item in my_list:
  print(item)
  my_list.append(item + 1)
  math.sum(my_list)
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 143 (SIGTERM).

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

Full output: too long to upload

willow light
#

!e

my_list = [1]
for item in my_list:
  print(item)
  my_list.append(item + 1)
  sum(my_list)
wise cargoBOT
#

@willow light :x: Your eval job timed out or ran out of memory.

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

Full output: too long to upload

willow light
#

!e

import numpy as np

my_list = np.array([1])
for item in my_list:
  print(item)
  my_list.append(item + 1)
  print(np.sum(my_list))
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 | 1
002 | Traceback (most recent call last):
003 |   File "<string>", line 6, in <module>
004 | AttributeError: 'numpy.ndarray' object has no attribute 'append'
woeful salmon
#

!e

my_list = [1]
my_list_iter = iter(my_list)
while True:
  try:
    i = next(my_list_iter)
  except StopIteration:
    break
  print(i)
  my_list.append(i + 1)
somber heath
#

Accelerashun.

wise cargoBOT
#

@woeful salmon :x: Your eval job has completed with return code 143 (SIGTERM).

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

Full output: too long to upload

willow light
#

!e

for i:=0;i<100;i++:
  print(i)
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     for i:=0;i<100;i++:
003 |          ^^
004 | SyntaxError: invalid syntax
willow light
#

!e

for i in range(0, 100, 1):
  print(i)
wise cargoBOT
willow light
#
class For:
    def __init__(self, **loop_vars):
        self.loop_vars = loop_vars
    def __call__(self, arg):
        if not hasattr(self, 'condition'):
            self.condition = arg
            return self
        if not hasattr(self, 'update'):
            self.update = arg
            return self
        while eval(self.condition, self.loop_vars, self.loop_vars):
            exec arg in self.loop_vars
            exec self.update in self.loop_vars
For(i=1, j=1)("i * j < 50")("i += 1; j += 1")("print i,j")
#

no clue if that'll work in Python 3 lol

nimble epoch
#

Hemlock

rugged root
#

Sup

nimble epoch
#

It's been a while

rugged root
#

For sure. How've you been

nimble epoch
#

Great

#

How about you

rugged root
#

Doing alright. Just getting work done

#

Or attempting to

sour willow
#

hello

peak ice
#
#import random
#chance=random.choice(1,2)
s='s'
tuple1=((11,10),(22,21),(33,32))
print(tuple1[0])
print(tuple1[1])
print(tuple1[2])
list1=list(tuple1)
print(list1[0][0])
list1.insert([0][0],s)
print(list1[0][0])
print(list1[1])
print(list1[2])
sour willow
#

you cant hear me

peak ice
#

how do i input value of "s" value in specific location

sour willow
#

do you mean

#

the index of "s"

peak ice
sour willow
#

im sure python has a one line way to do this

#

but you can use loops lol

woeful salmon
#

@peak ice

sour willow
#

can you guys hear me btw? @rugged root

#

there shouldn't be any sound

peak ice
woeful salmon
#

what os are you on?

willow light
#

!e

def isEven(n):
  L = [m-n//2 for m in range(n)]
  return not bool(1 + L[0] + L[-1])

print(isEven(5))
print(isEven(4))
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

001 | False
002 | True
peak ice
woeful salmon
#

then it should be right next to the disconnect button like shown in that screenshot

#

on the bottom left

willow light
#
def isOdd(n):
  L = [m-n//2 for m in range(n)]
  return not not bool(1 + L[0] + L[-1])
rugged root
#

Desktop application or browser

peak ice
#

but using discord in browser

rugged root
#

That might be it

woeful salmon
#

ah that's probably why

rugged root
#

Then yeah, probably just best to mute between saying stuff

gentle flint
#

^

sour willow
#

im trying to get into spring (java web development) without knowing java lemon_sweat

#

goLang was way easier than java

lavish rover
#

!e

import math
def isEven(n):
    x = math.e ** (n * math.pi * 1j)
    return x.real > 0

print(isEven(4))
print(isEven(5))
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

001 | True
002 | False
willow light
#

!e

def isEven(n):
  L = [m-n//2 for m in range(n)]
  return not bool(1 + L[0] + L[-1])

def isOdd(n):
  L = [m-n//2 for m in range(n)]
  return not not bool(1 + L[0] + L[-1])

n = [1, 2, 3, 4, 5, 6.5, "i"]
for i in n:
  match i:
    case isOdd(i) is False:
      print(f"{i} is Even")
    case isEven(i) is False:
      print(f"{i} is Odd")
    case _:
      print(f"{i} is a mistake and should be ashamed of itself")
willow light
lavish rover
willow light
#

!e

def isEven(n):
  L = [m-n//2 for m in range(n)]
  return not bool(1 + L[0] + L[-1])

def isOdd(n):
  L = [m-n//2 for m in range(n)]
  return not not bool(1 + L[0] + L[-1])

n = [1, 2, 3, 4, 5, 6.5, "i"]
for i in n:
  match i:
    case isOdd(i) is False:
      print(f"{i} is Even")
    case isEven(i) is False:
      print(f"{i} is Odd")
    case _:
      print(f"{i} is a mistake and should be ashamed of itself")
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 12
002 |     case isOdd(i) is False:
003 |                   ^^
004 | SyntaxError: expected ':'
rugged root
#

.... where?

willow light
#

I know, right?

sour willow
#

!e


def isEven(x):
    if x % 2 == 0:
       return True
    else:
       return False

print(isEven(4))
wise cargoBOT
#

@sour willow :white_check_mark: Your eval job has completed with return code 0.

True
sour willow
#

shouldn't this work?

rugged root
#

It does

broken harbor
sour willow
#

oh its a joke :| i failed to realize

willow light
broken harbor
#

the goal was to do it with hard thing

rugged root
sour willow
#

i was here thinking wtf

rugged root
#

I don't think the match case would work in that situation, though

#

It's specifically for comparing value or structure

sour willow
#

you have a 100 match cases ๐Ÿ˜‚

#

im bad at python

woeful salmon
#

humhumukunukunukuapuaas

sour willow
#

!e


number = 5
match number:
      case 2:
           print("True")
      case 3:
           print("False")
      case 4:
           print("True")
      case 5:
           print("False")
      case 6:
           print("True") 
      case 7:
           print("False")
      case 8:
           print("True")
      case 9:
           print("False")
      case 10:
           print("True")
      case 11:
           print("False")
      case 12:
           print("True")
      case 13:
           print("False")
wise cargoBOT
#

@sour willow :white_check_mark: Your eval job has completed with return code 0.

False
sour willow
#

works

gentle flint
#

humuhumunukunukuฤpuaสปa

lavish rover
sour willow
gentle flint
lavish rover
#

!e

import math
def isEven(n):
    return bool((math.e ** (n * math.pi * 1j) + 1). real // 2)

print(isEven(4))
print(isEven(5))โ€Š
willow light
#
def isOdd(n):
  L = [m-n//2 for m in range(n)]
  return not not bool(1 + L[0] + L[-1])

def isEven(n):
  from math import *
  x = e ** (n * pi * 1j)
  return x.real > 0

i = [1, 2, 3, 4, 5, 6.66]
for j in range(len(i)):
  match i[j]:
    case isOdd(i[j]):
      print(f"{i[j]} is not Even")
    case isEven(i[j]):
      print(f"{i[j]} is not not Even")
    case _:
      print(f"{i[j]} is a mistake.")
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

001 | True
002 | False
sour willow
#

lol

sweet lodge
sweet lodge
wise cargoBOT
#

@sweet lodge :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
lavish rover
sweet lodge
sour willow
#

bro ๐Ÿ˜‚

lavish rover
sweet lodge
lavish rover
#

We're trying to write the most ridiculous code

#

Have you seen his isEven function

#

It's very much the point

sour willow
#

hes as clueless as i am

sweet lodge
#

Oh we're doing that now?
Okay, but that still doesn't excuse his earlier transgressions