#voice-chat-text-0

1 messages Β· Page 1019 of 1

south bone
raven lake
#

In this beginner object oriented programming tutorial I will be covering everything you need to know about classes, objects and OOP in python. This tutorial is designed for beginner python programmers and will give you a strong foundation in object oriented principles.

β—Ύβ—Ύβ—Ύβ—Ύβ—Ύ
πŸ’» Enroll in The Fundamentals of Programming w/ Python
https://tech-wi...

β–Ά Play video
#

@candid fox Could I get screen sharing abilities?

lavish rover
slim jackal
#

@lavish rover

#

hi

#

I can't talk

#

I need 50 messages ok lol

#

ah damn

#

all good

#

can u help me still ?

#

im trying to get this running

#

I think its because im using jupyter lab

#

what do you use to run .py files

lavish rover
#
python file.py
py -3.9 file.py
slim jackal
#

no like

#

what program do you use for terminal

#

like visual studio, cmd or

hasty relic
#

yo

#

lol

#

how goes it

#

word. have a good night lol

somber heath
#

@whole bear πŸ‘‹

whole bear
#

hi

#

i'm not eligible to speak in voice chat

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

whole bear
#

ru asking me?

#

jus to get updates abt python

whole bear
#

tommorrow i'll be able to speak

#

i have also finished my 1st exercise

#

i think so

#

i figured a some things on my own that made me feel like a pro

#

it was about creating a Cafeteria

glacial remnant
#

what are the differences with else and elif statements?

#

ohh

whole bear
#
order = input() #it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == 'Frapuccino':
  price = 13
elif order == 'Indian Chai':
     price = 14
else:
   price = 8
#

like this

glacial remnant
#

oooh

#

oh alright i got it

whole bear
#

have you ever programmed with Julia?

#

no it's a languagee

#

are there any languages that are as easy to comprehend like python?

#

my friend told me that Java is one of the weirdest languages

#

not js

#

Hello

#

do you think i should buy this 100 day course by Angela Yu?

#

or keep on watching yt vids

#

it's like 100$

#

bruh.

#

@somber heath Free pdf or course which one is good

#

@whole bear i know a course i found on reddit

lavish rover
#

Good based on? Price-to-knowledge ratio goes to free pdfs πŸ˜…

whole bear
#

@whole bear didn't even use it but it's this one https://programming-22.mooc.fi

lavish rover
whole bear
#

I don't like the wathc video reading materlyes is better for me

#

@somber heath yes your right book is little bit uselles documentry is better maybe but Δ± don't no

#

damn

#

it's hard part Δ± think learn library and module part because Δ± am tryning to made a basic clock but Δ± have to use datetime and tkinter

#

Δ± now basic things but

#

Δ± don't no

#

:d

#

yea Δ± am traing to input things in the program

#

and it is little come to hard

#

asdfasdf

#

I am think right now made a snake game is a impossable

#

im going to learn how to make a snake game using pygame

lavish rover
whole bear
#

and a Tetris

lavish rover
#

I hear that arcade is the library to use nowadays, though

whole bear
#

bruh idk about libraries

lavish rover
#

If you haven't learnt pygame yet it might be worth it to learn that one instead

whole bear
#

imma have to watch a vid about that

#

this is a good talking πŸ˜„

#
print('Hello, Welcome to 505 Coffee!!!')

name = input('What is your name?\n') #the input function basically takes input from the user. (it always converts the user's answers into strings), you can use print(input to print directly the input received from the user
#you can either put a space inside the quotations or use \n, to make the check-in cleaner and easier to understand.
if name == 'Ben':
  evil_status = input('Are you evil? \n')
  if evil_status == 'yes':
   print('You are not welcome Evil Ben get out!!!')
   exit() #it exits the program
  else:
    print('Oh so you are one of those good Bens. Come on in!\n')

else:
  print('Hello ' + name + ', thanks for coming in today!\n\n\n')
#you can always declare the variable to be the input that it receives, or you can declare a variable to be an individual string ex: (name = 'Omar')

menu = 'Black Coffee, Espresso, Capuccino, Latte,Frapuccino, Indian Chai' #simple menu variable with no concatenation whatsoever
print(name + ' what would you like from our menu today? Here is what we are serving\n' + menu)

order = input() #it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == 'Frapuccino':
  price = 13
elif order == 'Indian Chai':
     price = 16
elif order == 'Espresso':
  price = 5
elif order == 'Black Coffee':
  price = 9
else:
   price = 8
quantity = input('How many coffees would you want to have?\n')

total = price * int(quantity) #if you printed the total without converting the quantity input into an integer it would result in a weird answer. (integer times (x) string = string x times)
print('Thank you. Your total is: ' + str(total) + '$.\n\n')
print('Sounds good ' +name+ ', we will have your ' + quantity + ' ' + order + ' ready for you in a moment. ')
#

my first exercise

#

thanks!

#

what do you mean

somber heath
#

!indent

wise cargoBOT
#

Indentation

Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.

Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.

Example

def foo():
    bar = 'baz'  # indented one level
    if bar == 'baz':
        print('ham')  # indented two levels
    return bar  # indented one level

The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.

Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines

More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation

whole bear
#

do i have to learn how to indent properly?

#

where have i indented wrongfully in the code

#

if i space things up, they start to show up in red

somber heath
#
if condition:
    ...
    if some_other_condition:
        ...```
whole bear
#

i also don't knwo where to comment so my code doesn

#

feel weird

somber heath
#

!e ```py
def func():
"""This is a docstring that documents this function."""

print(help(func))```

wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | NameError: name 'help' is not defined
whole bear
#

the dude that i am watching also has the same indents as me

#

you think so?

#

what he says is right

#

but

#

is this Corey Schafer dude an indentation pro?

#

i'll look it up

inland sable
#

hmm

lavish rover
#

1 space indents ez

#

Tell that to my professor who gave us 1500 lines of C code with 1 space indents

whole bear
#

bruh

lavish rover
#

Because "back in his day" horizontal real estate was limited

molten bay
inland sable
#

have you guys heard about *range?

molten bay
#

I am trying very hard to understand where I am goin wrongπŸ₯²

whole bear
#

i got this message 😦

#

code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more editing help, click the [?] toolbar icon.

somber heath
inland sable
#

specfically faster looping

lavish rover
#

!d range

wise cargoBOT
#

class range(stop)``````py

class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int "int") or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__ "object.__index__") special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.

For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.

For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
inland sable
#

!e

import dis
import timeit

cases = ['list(range(100))', '[*range(100)]', '[i for i in range(100)]']

for i in cases:
    t = timeit.timeit(i)
    print(f"{i} \t\t -  {t}", end="\n")
wise cargoBOT
#

@inland sable :x: Your eval job timed out or ran out of memory.

001 | list(range(100)) 		 -  1.9380743349902332
002 | [*range(100)] 		 -  2.011785943992436
lavish rover
#

ah, so the * here is what's called unpacking

inland sable
#

!e

import dis
import timeit

cases = ['list(range(10))', '[*range(10)]', '[i for i in range(10)]']

for i in cases:
    t = timeit.timeit(i)
    print(f"{i} \t\t -  {t}", end="\n")
wise cargoBOT
#

@inland sable :white_check_mark: Your eval job has completed with return code 0.

001 | list(range(10)) 		 -  0.5965019469149411
002 | [*range(10)] 		 -  0.5114856641739607
003 | [i for i in range(10)] 		 -  1.1279314146377146
molten bay
somber heath
molten bay
#

πŸ˜‚

somber heath
#

I'll take a glance at it.

lavish rover
#
>>> def a(n): return list(range(n))
...
>>> def b(n): return [*range(n)]
...
>>> import dis
>>> dis.dis(a)
  1           0 LOAD_GLOBAL              0 (list)
              2 LOAD_GLOBAL              1 (range)
              4 LOAD_FAST                0 (n)
              6 CALL_FUNCTION            1
              8 CALL_FUNCTION            1
             10 RETURN_VALUE
>>> dis.dis(b)
  1           0 BUILD_LIST               0
              2 LOAD_GLOBAL              0 (range)
              4 LOAD_FAST                0 (n)
              6 CALL_FUNCTION            1
              8 LIST_EXTEND              1
             10 RETURN_VALUE
>>>
whole bear
#

should i use fstrings to make it even cleaner

somber heath
#

@molten bay py children or []Looks odd to me.

lavish rover
#

(not sure of the context, just pointing it out)

molten bay
#

Yes

somber heath
#

Seriously? Ungh. Okay. TIL. That's bizzare, given how that would behave in an if or literally anywhere else.

lavish rover
#
>>> dis.dis(c)
  1           0 LOAD_CONST               1 (<code object <listcomp> at 0x10fae1fd0, file "<stdin>", line 1>)
              2 LOAD_CONST               2 ('c.<locals>.<listcomp>')
              4 MAKE_FUNCTION            0
              6 LOAD_GLOBAL              0 (range)
              8 LOAD_FAST                0 (n)
             10 CALL_FUNCTION            1
             12 GET_ITER
             14 CALL_FUNCTION            1
             16 RETURN_VALUE

Disassembly of <code object <listcomp> at 0x10fae1fd0, file "<stdin>", line 1>:
  1           0 BUILD_LIST               0
              2 LOAD_FAST                0 (.0)
        >>    4 FOR_ITER                 4 (to 14)
              6 STORE_FAST               1 (i)
              8 LOAD_FAST                1 (i)
             10 LIST_APPEND              2
             12 JUMP_ABSOLUTE            2 (to 4)
        >>   14 RETURN_VALUE
molten bay
#

I think its the way I assign my parents and children

#

I am somehow losing the data after each loop

#

I think

lavish rover
#

a or b is more like: if a is truthy, return a, else return b

inland sable
#

@lavish rover does using for _ in range(n): better than for i in range(n): during initializing of of list or tuple?

lavish rover
#

!e

print("hello" or 5)
print(None or [])
wise cargoBOT
#

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

001 | hello
002 | []
somber heath
#

x was really y all along...again.

inland sable
#

@lavish rover see this

woeful salmon
whole bear
#

@lavish rover does this look better?

#
print("Hello, Welcome to 505 Coffee!!!")

name = input(
    "What is your name?\n"
)  # the input function basically takes input from the user. (it always converts the user's answers into strings), you can use print(input to print directly the input received from the user
# you can either put a space inside the quotations or use \n, to make the check-in cleaner and easier to understand.
if name == "Ben":
    evil_status = input("Are you evil? \n")
    if evil_status == "yes":
        print("You are not welcome Evil Ben get out!!!")
        exit()  # it exits the program
    else:
        print("Oh so you are one of those good Bens. Come on in!\n")

else:
    print("Hello " + name + ", thanks for coming in today!\n\n\n")
# you can always declare the variable to be the input that it receives, or you can declare a variable to be an individual string ex: (name = 'Omar')

menu = "Black Coffee, Espresso, Capuccino, Latte,Frapuccino, Indian Chai"  # simple menu variable with no concatenation whatsoever
print(
    name
    + " what would you like from our menu today? Here is what we are serving\n"
    + menu
)

order = (
    input()
)  # it will store the answer that im going to write (within the range of possibilietes that they give you)
if order == "Frapuccino":
    price = 13
elif order == "Indian Chai":
    price = 16
elif order == "Espresso":
    price = 5
elif order == "Black Coffee":
    price = 9
else:
    price = 8
quantity = input("How many coffees would you want to have?\n")

total = price * int(
    quantity
)  # if you printed the total without converting the quantity input into an integer it would result in a weird answer. (integer times (x) string = string x times)
print("Thank you. Your total is: " + str(total) + "$.\n\n")
print(
    "Sounds good "
    + name
    + ", we will have your "
    + quantity
    + " "
    + order
    + " ready for you in a moment. ")
inland sable
#

mhmm

whole bear
#

they told me my indentation was not good so i ran a formatter on it

lavish rover
#

that looks much nicer indentation wise

#

I would recommend using f-strings instead of manually concatenating stuff

#

!f-strings

wise cargoBOT
#

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

lavish rover
#
list(range(1000))          -  12.387489164997532
[*range(1000)]          -  12.356448765000096
[i for i in range(1000)]          -  26.389360463999765
whole bear
#

oh

inland sable
lavish rover
#

ofcourse, python's speed is implementation / device dependent

#
$ pypy3 test.py
list(range(1000))          -  1.6721108530000492
[*range(1000)]          -  1.692876545002946
[i for i in range(1000)]          -  1.625618415997451
#

almost an order of magnitude faster if you use pypy πŸ™‚

whole bear
#

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

glacial remnant
#

guys i need help with pyautogui

#

theres a module error that keeps popping up

whole bear
#

is there a way to make the if nesting cleaner because if i nest a lot of ifs and then unchain with elses it look really weird.

signal sand
#

why...

signal sand
#

oh god... why did they do that....

lavish rover
#

why not? it makes a lot of stuff convenient.

#

remember that or is an overridable operator, so it needs to be able to work with arbitrary types

#

this way you just have to define the truthiness of your object, and you can use or and and by default

#

in boolean expressions it behaves exactly how you want it to, but you can also use it to short circuit expressions like:

def f(a=None):
  a = a if a is not None else []

# to

def f(a=None):
  a = a or []
signal sand
#

sure, I see who it might be useful... or and and , boolean operators have so much importance in formal languages, I wish, they are just boolean operators..

lavish rover
#

why does it make a difference if they are not?

#

boolean expressions are unaffected

#

why remove functionality?

signal sand
#

yeah... i see why it might be useful.. but, I already don't like bool is just a wrapper around 0 and 1...

#

it's just an opinion... i wish they are just bool operators....

lavish rover
#

once again, you don't have to use it that way if you don't want to, I'm just unsure why you'd prefer to not even have the option

#

@molten bay did you ever solve your issue?

signal sand
#

I just want my equality to be mathematically perfect...

#

if bool are not wrapped around (0,1)...

#

2 will be first evaluated to True and True will be compared to True

lavish rover
#

well, if you want your equalities to be consistent perhaps you shouldn't be trying not 2 πŸ˜›

signal sand
#

yeah... Ik... it will never be an issue...

#

just something, I like knowing... "wow, this is consistent"...

lavish rover
#

even theoretically, that seems weird

signal sand
#

what do you mean...

lavish rover
#

car == tree is false, but I wouldn't expect (not car) == tree

#

it might be completely unrelated

#

I would consider consistency as car == tree and car != tree behaving as expected

signal sand
#

talking about bools...

lavish rover
signal sand
#

not 2 is being evaluated to False...

lavish rover
#

yes, sure, but if you want "consistency" then why even consider cases where boolean operations are applied to non-boolean types

#

if you only use boolean operations with boolean types they behave exactly like how you want them to, is my argument.

signal sand
#

2 should be evaluated to True first and then it should be compared with True == True...

instead it is being evaluated to 2 == 1.... which is false...

lavish rover
#

I don't think that makes sense

#

why would you implicitly convert one type to another

signal sand
#

okay... wait...

lavish rover
#

you'd get [] == "" in that case

#

we'd go full javascript

#

because both [] and "" are falsy

signal sand
#

yeah... that is true...

#

both doesn't make sense, I suppose...

#

mine only make sense.. if we explicitly convert it to bool...

molten bay
#

@lavish rover Lol no, still trying get it to workπŸ˜…

lavish rover
#

you seem to be marking a node as visited as soon as you add it to your queue

#

you should only mark it as visited when you pop it from the queue

#

I'm not sure if that's the issue, but it's an issue

signal sand
lavish rover
molten bay
#

@lavish rover Sure, I can change that - but the real problem is that I don't know how to store the "Points" with their parents and children intact to run through the path at the end

signal sand
lavish rover
signal sand
#

Yeah... that's what I'm saying... bool shouldn't be wrapper around (0,1)

lavish rover
#

eh, I don't think this is ever realistically an issue, especially if you're being good about types

signal sand
#

Ik... it will never be an issue...

#

price we pay for duck typing...

lavish rover
#

the thing is that Rust just... well wouldn't allow you to write code like this

#

so if you want python to be like Rust just write better code πŸ˜›

#

you only really should be comparing objects of the same type if you're writing your code "correctly"

signal sand
#

mine doesn't make sense either.... we get that js equality....

lavish rover
#

yeah, the whole point is that statically types languages don't allow equality between different types of objects

#

the fact that you are able to in python is already an extension

signal sand
#

yeah...

#

kinda equal

#

when we say two things are equal..

lavish rover
#

"equal" depends on your definition

signal sand
#

yeah... ik...

#

it should have these properties though...

#

but ig we can't get all of them unless we have a statically typed lang

lavish rover
#

even then, you can override equality checks in many languages πŸ˜›

#

!e

class A:
  def __eq__(self, o): return True
class B:
  def __eq__(self, o): return False
a = A()
b = B()
print(a == b)
print(b == a)
wise cargoBOT
#

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

001 | True
002 | False
signal sand
#

yeah...

#

we are doing a tradeoff between convenience and consistency...

lavish rover
#

I wouldn't say this is inconsistent

#

those rules of consistency are for a definition of mathematical equality

#

that only exists in theory

#

programming languages don't claim to have as such

sturdy panther
#

I think... Big-O notation is asymmetric.

#

So this happens in Maths too.

#

Yea. It is consistent. Not a problem with that.

#

O(x) = O(x^2), but not the other way round.

signal sand
#

O(x) belongs O(x^2)

#

they are sets..

sturdy panther
#

It is abuse of notation. But it is well understood.

signal sand
#

something like

n + 1 = O(n^2)?

#

Big-O notation is order relation....

Big-Theta notation is an equivalence relation...

signal sand
sturdy panther
#

I am okay with whatever being used usually, as long as I can understand it!

signal sand
lavish rover
signal sand
#

it is subset...

#

I don't have subset symbol...

sturdy panther
#

I wouldn't use it myself, but I have seen them. I just make a best effort to understand them.

lavish rover
#

not technically even sets

signal sand
#

they are sets...

lavish rover
#

I can concede to that if you want, there's analogous definitions that define them as a set

signal sand
#

how would you define them...

#

I've only see set defintion..

lavish rover
#

the alternative definition is to define what a function being "in" O(n) means

#

but you can rephrase that to just define O(n) as the set of all functions matching that definition

#

anyway

sturdy panther
#

I read = O(n) as a statement about the bound of the left-hand side. I have never considered whether making a set or collection out of it is well-defined.

lavish rover
#

the problem is when you try to talk about that = as mathematical equality, which is the discussion where we were having

signal sand
lavish rover
#

it's literally just something like:
a function f(x) is in O(g(x)) if there exists some constants n0 and c such that for all n > n0, f(x) <= c * g(x)

signal sand
#

it is also a set...

#

"in = belongs to"

lavish rover
#

ye, that's what I meant, you can just rephrase that to be a set definition

signal sand
#

it is the set defintion...

lavish rover
#

O(g(x)) = {f(x): there exists some constants n0 and c such that for all n > n0, f(x) <= c * g(x)}

#

would be the proper set definition in my books, but oh well

#

maybe that's just a matter of opinion

sturdy panther
#

As long as a = b has a unique boolean value, I am okay with it!

lavish rover
signal sand
#

both are same...

#

we need latex in pydis..

lavish rover
#

im not arguing with you, I'm literally sayiing the definitions are equivalent...

signal sand
#

okay...

#

we abuse this so we can do stuff like this

#

nvm guys.... it took me so long to understand algorithms, because of this abuse of notation and none of my professors told me about it... I'm getting too emotional about this...

lavish rover
# signal sand

isn't this basically what I've been saying all along? πŸ˜›

signal sand
lavish rover
#

I literally said that I concede you are right, and that there's an equivalent definition

#

I don't know how you're disagreeing with that

#

anyway, I'm gonna go for now

#

be back later if you're around

signal sand
#

bye...

whole bear
#

is there a function called and in python?

#

im a newbie and i've programming for 2 days

signal sand
#

you are asking about and ?

signal sand
signal sand
# signal sand

In proper set theory class... mathematicians define sets like 1st definition...

2nd definition is syntactic sugar around 1st one... We had different opinions on what constitutes as set definition...

#

and is not a comparison operator... == is a comparison operator...

sturdy panther
#

Huh. Can't get @ autocomplete for Noodle's name.

signal sand
#

@ ... SReaper

#

do like that..

#

I just type sr to get noodles..

sturdy panther
#

Oh. The actual name.

#

Thanks.

woeful salmon
#

!e

import unicodedata

for char in "【𝑡𝒐𝒐𝒅𝒍𝒆𝑹𝒆𝒂𝒑𝒆𝒓.】":
  print(unicodedata.name(char))
wise cargoBOT
#

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

001 | LEFT BLACK LENTICULAR BRACKET
002 | MATHEMATICAL BOLD ITALIC CAPITAL N
003 | MATHEMATICAL BOLD ITALIC SMALL O
004 | MATHEMATICAL BOLD ITALIC SMALL O
005 | MATHEMATICAL BOLD ITALIC SMALL D
006 | MATHEMATICAL BOLD ITALIC SMALL L
007 | MATHEMATICAL BOLD ITALIC SMALL E
008 | MATHEMATICAL BOLD ITALIC CAPITAL R
009 | MATHEMATICAL BOLD ITALIC SMALL E
010 | MATHEMATICAL BOLD ITALIC SMALL A
011 | MATHEMATICAL BOLD ITALIC SMALL P
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/usolerilab.txt?noredirect

neon lily
#

HI

sturdy panther
#

Hi!

#

yield from

signal sand
#

ctrl L @woeful salmon

#

what is send... I've never seen this before...

sturdy panther
#

When yield from <expr> is used, the supplied expression must be an iterable.

woeful salmon
opal lantern
#

Hello Opalmist. How have you been? Wow. Why have you only been outside that little amount of times since covid?

#

Thats fair i guess. Im in a position where my buisness i work for is in a food delivery to grocery stores. So the chance of them letting me never come into to work with all this going on is not a chance at all. Yes ive caught it aswell.

#

How many times have you been Vaccinated?

#

Im not asking to debate this at all. Cause i also got vaccinated at first because i felt it was something i was doing to keep me safe for my family and if it was something that did slow the spread i was 100% game for it. Just seems there are alot of bad. With the Vaccine.

#

Yes Masks are non existent pretty much around where i live now

#

Again Opalmist. Not trying to stir up anything. I agree with you that i was on board 100%. And I'm in a different enviroment than you.

#

LOL

#

Yea i just wanted to confirm i know it can be a touchy Topic

#

Its not going to be gone. I dont think ever.

#

I've not kept up with it in a while

#

Last 1 i was aware of was the Omnicron variant i think

#

I agree that there should have been a better way to deal with it

languid acorn
#

Guys ! Need help with the his !!

I wanna write script for Linux OS, where we need to get a disk management status and if 1GB data is added or crossed the threshold value I should get a notification !!

opal lantern
#

Well Opalmist. I hope you do stay sane in all this and Glad to know your doing good. And im glad i have you in this discord. Because this coding stuff is about to make me jump off the ledge lol!

somber heath
languid acorn
#

I did df but I don't know to set the threshold value and get the notification

somber heath
#

I suppose it would depend on the Desktop Environment.

#

There'd be a notification API, presumably.

languid acorn
#

Oh okay !

somber heath
#

Not certain how you'd go plugging into that.

opal lantern
#

Nothing impeticular

#

Just learning the basics still

#

Yea, I feel im understanding alot more. with that said i think i try to jump into creating something and then i dont know how to start and then i just go UHHHHH lol

#

And then i go 100 different directions from there.

#

And im trying to keep myself there. Know how to really understand. what all the basics mean

#
print("The second name on the names list is %s" %second_name)

This is something newer for me what does the % do? or called?

#

Yea Mustafa

#

Blows my mind

keen berry
#

hello

opal lantern
#

i remember you telling me about that

woeful salmon
#

@somber heath think the proper word for it is creative coding?

opal lantern
#

His images he created in the ray tracing thing was beautiful

#

it was his lol

woeful salmon
opal lantern
#

I dont do anything like that lol

#

I cant even write code right now. like i can print! lol

keen berry
#

i've developed this hate for anything rendering related

opal lantern
#

I just want to be able to start creating anything. Honestly because i feel like thats the steps you actually feel like your starting to understand what your doing.

keen berry
#

i've been programming for 6+ years now and i haven't made a single proper GUI based app

#

if you count Processing as UI framework, that is the only thing i've used lol

#

though, i basically stopped doing anything that has visuals in it

#

Processing is originally Java

#

i worked on this one project for over a year now and i'm kinda looking for something different

#

i stopped doing java 2 years ago

tame crown
keen berry
#

yeah, i do it similarly

#

the first thing i make is always a massive screw up but in the end, i learn something

#

kinda looking for project ideas πŸ€”

#

what do you people work on?

#

oh so, that's how you pronounce "exe" lol

#

brb

tame crown
keen berry
#

runny nose sucks

#

couldn't really hear that

#

more stuffy than runny πŸ˜†

signal sand
keen berry
#

yeah

#

uh

#

not very sure about that

tame crown
#

id like vs now

#

ik some winui3

keen berry
#

i recently came up with an amazing name for a project

#

i just need to find what project it should be πŸ˜†

#

same, i also do it before deciding what the thing will be

signal sand
#

@somber heath come up with some cool username for me.. πŸ˜€

keen berry
#

i'm waiting for my new pfp πŸ‘€

signal sand
#

fair enough...

tame crown
#

so i wanna installing vs2009 on my WindowsVista vm

signal sand
#

what?

#

spell it..

keen berry
#

lmao

somber heath
#

Daedalus.

keen berry
#

i wouldn't name myself this ngl

signal sand
languid acorn
somber heath
#

Icarus.

signal sand
#

yeah... enternals!

keen berry
#

ohhh, that's why it sounded familiar

signal sand
#

villain name is icarus in eternals...

keen berry
#

it gets colder the higher up you go but 🀫

signal sand
keen berry
#

Marvel just feels like they are trying to create memes instead of a proper plot

signal sand
#

if they keep making movies like this... mcu will endup just like xmen universe with alot of plot holes...

keen berry
#

i got spoiled spiderman the first day so i'm just waiting until i forget it

#

the last one

#

i'm probably not going to enjoy it either way

#

because i've never once enjoyed a marvel movie but i still watch it because visual effects cool

signal sand
keen berry
#

i should really turn off auto spoilers

#

i had it on for another server

#

but there is a third option for having spoilers

#

only if you have perms or smth along those lines

#

this is what i mean

opal lantern
#

So what is this doing exactly?

name = "Opalmist"
print("Hello, %s!" % name)

What is the %s? then the % name? is the % like a call to the name variable?

keen berry
#

that looks like old python

opal lantern
#

its on something im learning

signal sand
#

you should use f strings

opal lantern
#

yea

#

i thought it was a function aswell

#

But its confusing the shit outta me

signal sand
#

you know little bit of C?

opal lantern
#

No

#

lol

#

its on this

signal sand
#

then it's not meant for you... it is for people who got used to C

#

%s is saying it is a string...

keen berry
#

i would still stick to whatever the most modern way is

#

no matter what i'm normally used to

keen berry
opal lantern
#

yea im more used to seeing somthing like print(f"Whatever, {name})

signal sand
opal lantern
#

thank you. This is just when you see it. on something im trying to learn off of its so confusing lol

keen berry
#

what i'm saying is, even those people should use f strings because that's the way in python no?

signal sand
#

they should...

#

% formatting predates f strings...

opal lantern
#

wow. i guess i should not look here then

signal sand
keen berry
#

Opal is the only one speaking lol

opal lantern
#

so i guess its something nice to try to have an idea of what that is

#

Nope

keen berry
#

it was not

opal lantern
#

u just started talking

keen berry
#

i only really speak in VCs with very close friends but it's nice to hear more than one voice

opal lantern
#

i would chat if i was not in the living room with my family lol

keen berry
#

everyone does that

#

no worries

opal lantern
#

oh yea ive done that for sure

shut mulch
#

hello

signal sand
#

I did realize that couple of days ago when furyo is going through automating boring stuff...

keen berry
#

what does "what id" mean?

signal sand
#

ide

keen berry
#

ohhh

shut mulch
#

nano is a text editor.

signal sand
#

@somber heath use it on phone?

opal lantern
#

Ive only tried out Pycharm and Visual studio.

keen berry
#

i don't use any IDEs atm, just VSCode (some people consider it an IDE, some don't)

signal sand
#

ah.. okay with ssh on phone?

#

I'm super confused... does android have builtin terminal?

shut mulch
#

no

#

termux is an app for android to install linux

signal sand
#

oh...

shut mulch
#

there are some other app to install linux but termux is most popular

signal sand
#

how does that work with android sandboxing?

shut mulch
#

but to run python on phone i found replit most user friendly

keen berry
#

you aren't running it on phone if you are on replit :)

shut mulch
#

i haven't used termux that much. can you install specific ditsro in termux?

keen berry
#

1 more day until i have voice perms

#

not like i will use it

shut mulch
#

like ubuntu or debian?

signal sand
#

iOS only has ssh clients

#

i use that alot...

#

it should be opened up...

#

by force... if needed..

keen berry
#

noodle, we can't hear you if you are speaking

signal sand
#

@woeful salmon

keen berry
#

i want to switch over to ubuntu

#

i have to use a mac for reasonsℒ️ now

#

nothing basically

#

was working on this project for over a year and just quit

signal sand
keen berry
#

ARM

keen berry
signal sand
#

people are working on linux on m1... probably will take like a year or so to be stable...

keen berry
#

i need a good GPU

signal sand
keen berry
#

exactly

shut mulch
#

you can use aws instance for now

glad sandal
shut mulch
#

p2 instance are 90 cent per hour

signal sand
#

@glad sandal what are you working on?

glad sandal
#

Minecraft mod :D

keen berry
#

imma do some work, see you people

#

nice talking to you

whole bear
#

true wisdom@woeful salmon

signal sand
#

@woeful salmon what's your pc config

#

neofetch!

#

specs...

woeful salmon
#

3060 , ryzen 7 5000 series, 16 gb ram , etc

opal lantern
#

are you talking about like curseforge the wow addon place?

signal sand
#

desktop or laptop?

woeful salmon
#

this is a laptop

signal sand
#

i thought so...

#

it's so fucking expensive to build a pc in india!!!!!

#

yeah...

#

but buying parts individually is more expensive than buying a laptop with that specs.... in india

#

oh god.. that's messed up

#

@woeful salmon they copy pasted from stack overflow πŸ™ƒ

#

people should read what they are pasting from stackoverflow @glad sandal

#

all parties involved in a war will commit war crimes...

#

just lesser of two evil...

fresh pulsar
#

you need to get enough experience in this channel to qualify

opal lantern
#

Hope everyone has a good day im going to hang out with the Family. If anyone doesn't mind sending me some quick info on some really good discord bot information i would greatly appreciate it. and if not all good. Thanks so much for all the help everyone has supplied me with aswell

glad sandal
#

Deleting a repository

On GitHub.com, navigate to the main page of the repository.
Under your repository name, click Settings.
Under Danger Zone, click Delete this repository.
Read the warnings.
To verify that you're deleting the correct repository, type the name of the repository you want to delete.
somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

glad sandal
#

@woeful salmon

#

'gradle' is not recognized as an internal or external command,
operable program or batch file.

signal sand
#

either it is not installed or you didn't set the path

#

idk, I only used gradle for work.. ide manages that for me...

#

idk

woeful salmon
#

@glad sandalgradlew genEclipseRuns

glad sandal
#

gradlew genEclipseRuns

signal sand
#

hi @south bone

#

nvm... discord bugg...

#

but hi

south bone
keen cedar
willow light
#

!e

import sys

sys.stdout("Hello world")
wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | TypeError: '_io.TextIOWrapper' object is not callable
willow light
#

I thought print was an alias for that, but I guess I don't fully understand how that works.

#

oh, wait...

#

!e

import sys

sys.stdout.write("hewwo world uwu")
wise cargoBOT
#

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

hewwo world uwu
somber heath
#

vs sys.stdout.write which is boring.

#

I've seen instructors insist people use sys.stdout.write instead of print because that's how other languages do it. There are times I feel some level of disappointment in humanity.

willow light
#

I see that with the same feeling as whenever I see

from __future__ import print_function

at the top of a Python3 script

sturdy panther
#

Hey. I still have to write Python2 at work, okay?

willow light
#

We shouldn't, really.

#

Security risk

somber heath
#

All you really need to do to replicate sys.stdout is pretty much use print with end="" and give it one object.

sturdy panther
#

Not my decision to make!

willow light
#

!e

import { create } from "https://deno.land/x/djwt@v2.4/mod.ts";

const key = await crypto.subtle.generateKey(
    {
        name: "HMAC",
        hash: { name: "SHA-512" },
    },
    true,
    ["sign", "verify"],
);

const jwt = await create(
    {
        alg: "HS512",
        typ: "JWT",
    },
    {
        foo: "bar",
    },
    key,
);
wise cargoBOT
#

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

001 |   File "<string>", line 1
002 |     import { create } from "https://deno.land/x/djwt@v2.4/mod.ts";
003 |            ^
004 | SyntaxError: invalid syntax
willow light
#

I clicked "Format document" and it made it this way

somber heath
#

Freestyle c style.

#

I get the sense that people who write code formatters are deliberately shit at what they do.

willow light
#

pip3 install black && black .

somber heath
#

"You want formatted code? Here. Have the worst formatting possible because lol."

willow light
#

unless you're crazy like me:
conda install -c conda-forge black && black .

somber heath
#

@south bone ^

willow light
stuck furnace
#

Er @south bone are you aware your sound is coming through?

south bone
stuck furnace
#

Heyo πŸ‘‹

#

Ah I wasn't listening

#

I'll get you next time lemon_warpaint

#

You and that little dog!

willow light
stuck furnace
#

So er, what is everyone up to?

willow light
#

"The greatest evil ever done on humanity was the polarization of the world into good and evil in the first place"

#

In that case you'd probably enjoy Nietzsche

somber heath
#

Philosophy pastry.

#

@rugged root ^

willow light
#

you know you are italian af when not only do you have a favorite pasta, but you send angry letters to the supermarket because they stopped carrying it

willow light
#

My favorite is strozzapreti, and I'm not very good at making it (yet)

sturdy panther
#

I didn't know pasta making machine is a thing

somber heath
#

You roll it flatish, feed it in the the machine roller at incrementally thinner settings, then feed it through the cutter roller.

willow light
#

cries in wooden rolling pin

#

I've been meaning to get a pasta machine add-on for my stand mixer though

#

for this exact purpose

languid acorn
#

Anyone who is here good at bash scripting ?!

wise cargoBOT
#

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

twilit pendant
#

hiya

willow ruin
whole bear
#

Helo

#

?

wind cairn
#

hi?

#

so

#

like i'm looking for like a code to make a timer

#

for like an A.i to pick some random direction

#

ok

#

wait let me try something

#

ok, thank you for helping

#

it's sort of work

#

thanks bye πŸ™‚

winged shard
#

can i get unmuted

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

winged shard
#

i think i got muted like 2 years ago

#

can i please pass

#

ive been in this server for like 2.5 years

#

can i just voice call you for the meantime if you get bored of this way

#

i posted my question in general but ill copy and paste

somber heath
south bone
#

Exception has occurred: AttributeError
'Intents' object has no attribute 'message_content'
File "D:\Python(VS)\discord.py-master\examples\basic_voice.py", line 130, in <module>
intents.message_content = True

#

PS D:\Python(VS)\Discord Bots> & 'C:\Users\ID144\AppData\Local\Microsoft\WindowsApps\python3.10.exe' 'c:\Users\ID144.vscode\extensions\ms-python.python-2022.6.2\pythonFiles\lib\python\debugpy\launcher' '49252' '--' 'd:\Python(VS)\discord.py-master\examples\basic_voice.py'

#

PS D:\Python(VS)\Discord Bots> python3 basic_voice.py
C:\Users\ID144\AppData\Local\Microsoft\WindowsApps\python3.exe: can't open file 'D:\Python(VS)\Discord Bots\basic_voice.py': [Errno 2] No such file or directory
PS D:\Python(VS)\Discord Bots>

#

PS D:\Python(VS)\Discord Bots> python3 "D:\Python(VS)\discord.py-master\examples\basic_voice.py"
Traceback (most recent call last):
File "D:\Python(VS)\discord.py-master\examples\basic_voice.py", line 130, in <module>
intents.message_content = True
AttributeError: 'Intents' object has no attribute 'message_content'
PS D:\Python(VS)\Discord Bots>

wise cargoBOT
somber heath
#

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

white leaf
#

@classmethod
def mac_terms(cls, terms: typing.Iterable[str], key: bytes):
return sorted([cls.mac_term(i, key) for i in terms])

@classmethod
def mac_term(cls, data: str, key: bytes):
    return hmac_message(data.encode("utf-8"), key)
lavish rover
somber heath
#

ΞΌstafa

somber heath
#

@sand oyster πŸ‘‹

hushed elm
hushed elm
#

Doofus 🀣🀣🀣🀣

#

yeh i get it

whole bear
#

i my dream

#

i use a fuction range to set te range of the habilities

#

on the board

#

like if a have a [2,6] you cant use the spell on yourself

#

bacause you dont have 0 on range

#

and cant use atack on front of you because the range not have 1

hushed elm
whole bear
#

that song is a bit uncomfortable

hushed elm
#

yes

#

the game is even more uncomfortable

#

Caves of Qud

somber heath
#

Matrix Revolutions: Navras.

willow light
#

we already had some good storms this weekend

whole bear
#

here on brazil @willow light the temperature cold get to 43celsius

#

bro 15 here its fell like freezing

willow light
hushed elm
#

Lolll

whole bear
#

kkkkkkkk

hushed elm
#

Damn you'll freeze in that weather

willow light
#

I was standing on the canal

whole bear
#

i have never see snow

#

dam its beautiful

willow light
hushed elm
#

ruins a house

willow light
#

Because that's all you can really do in NH tbh

sweet lodge
#

Docker caching runs my server out of space occasionally

#
[bradleyreynolds@idi1 ~]$ docker system prune -a
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N] y
Deleted Images:
deleted: sha256:d906039df5d27315102fdb728e0196f90c6dbeef6ca0772aebab55705cbab51e
deleted: sha256:cd5db907140115ff1adb65b032821818287bfca34ea83ab5b049a50abd2eed87
deleted: sha256:85dc1fe33f9f3fa0d61f3c797e6e48a7fbb1c13dde9da261e60b533498757c6b
[...]
deleted: sha256:713f656995940804afe86cbe50530c7d9b68d89a2576d899f44626d999aea683
deleted: sha256:f6441b6726f73aeefa5c5bf758944915c09dd342fd713bf4f7d317107ee9a4bc

Total reclaimed space: 7.871GB
#

Sooo many layers

willow light
#

cries in SRE

honest pier
#

sheesh

willow light
#

sheeeeeeeeeeeesh

sweet lodge
#

I wanted to try cloud dev boxes

#

Thought about trying codespaces

#

Then my boss removed some VMs from production to save money

willow light
#

That's why you put the VMs in nonprod

sweet lodge
#

I don't have the budget for anything right now

peak copper
#

Gitpod has 50 hrs a month for free.

sweet lodge
#

That might cover most of it

willow light
sweet lodge
#

It would be plenty to give it a shot with

sweet lodge
willow light
#

I mean, you do log in with github

honest pier
#

yeah

willow light
#

seems like it

carmine edge
#

bo zhu are chinese?

shut hill
#

could someone help me practice reading docstrings and making code?

carmine edge
#

u cant read?

shut hill
#

wait i cant tell

honest pier
#

reading docstrings? what practice do you need for that

shut hill
#

guys

#

i can hear someone

#

But no one in vcc

carmine edge
#

u are in vc

#

why i cant talk here

#

tf

rugged root
#

!voice

wise cargoBOT
#

Voice verification

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

rugged root
#

Check out that channel

#

It'll tell you what you need to know

shut hill
#

oh ok lol good now ty ❀️

shut hill
carmine edge
#

over 50 messages non delete

#

it is ok

carmine edge
shut hill
carmine edge
#

or u will pass only if can run

rugged root
shut hill
#

only if i can make it run

#

I think

#

Just read it and making a code for it.

rugged root
#

Then you'll have to either swap channels or leave and rejoin to get the permissions to kick in

carmine edge
#

im in

#

tks

shut hill
#

And I cant even find tutorials online for reading docstrings and outputing code for practice....

carmine edge
#

why u cant even read them :0 what languages u use

rugged root
#

Wait, what's confusing you about docstrings?

#

Like how to document your stuff with them?

#

Common practices and all that?

shut hill
#

nuuu like so my teacher said the outline is that we will need to read docstrings this friday on a test and then we have to write a code that matches the docstring essentially

#

it that makes sense?

rugged root
#

Yep. It's essentially the same as being given a prompt to write a function and doing that

#

Same thing, just in a docstring

shut hill
#

hmm do u have any practice questions I can do?

#

Cause im still confused on the whole basis of it tried to look online people have different ways

carmine edge
#

if u have logic

shut hill
#

...

carmine edge
#

i said "if"

willow light
#

logic is hard to find these days. especially on facebook groups for local areas lol

carmine edge
#

im using facebook ;-;

willow light
fiery juniper
#

That's why the world is pretty f*cked up if you think about it

carmine edge
#

...

lunar mulch
#

I agree

#

How do I get "video" role?

carmine edge
#

watch rick roll 10 times

lunar mulch
#

ok

#

Still haven't got the role

#

?

#

I'm, a trusty cat

#

I know you

carmine edge
#

u are trusty pussy

#

means cat

lunar mulch
#

I'm in your neighborhood

rugged root
#

Somehow I doubt that

shut hill
#

so... anyone got questions i can practice on? To read docstrings and make a code with it...

lunar mulch
sweet lodge
willow light
#

unless you're masochistic enough to write the docstrings first and then code around them

#

glares at connexion library

rugged root
sweet lodge
frosty star
#

Haay

sweet lodge
#

Any projects would be fine for that

frosty star
#

Yoyo

sweet lodge
#

DO IT

#

You'll have to use a different name if you want to use the test PyPi

shut hill
sweet lodge
#

Can you provide an example of what you're talking about?

shut hill
#

I found this one i think this is what my teacher meant but ill check with her in the afternoon like so it will be like this then we have to make a function that works accordingly to it...

sweet lodge
#

Canadian postal codes

stuck furnace
#

Hello πŸ‘€

whole bear
sweet lodge
# sweet lodge Canadian postal codes

They're the only ones I've ever seen with spaces
Makes me wonder why

And cry every time I have to try to validate and half fail because half the people included the space and half didn't

sweet lodge
stuck furnace
shut hill
#

If i follow youtube yes

#

but then i usually end up forgetting it

#

I am still building a fraction calculator

#

but its like alot from youtube but i dont still get it

willow light
#

I mean, for the code you could always just do "".join(str(i) for i in np.random.randint(0, 10, (1, 5)).tolist()[0])

sweet lodge
willow light
#

What on earth are they putting in the water up there?

lunar mulch
#

some one help me with assembly

rugged root
lunar mulch
#

i have the .o file now how do i turn it into bin or whatever...

#

also, is the format correct?

sweet lodge
#

:getout:

#

No
We don't use PHP here

#

That's not an extension

#

That's just the browser serving a file

#

That's a domain name?

willow light
#

I thought PHP was an illegal drug

rugged root
sweet lodge
#

URI can be whatever you want

lunar mulch
#

200$ amazon card refund

#

@whole bear what software are you using?

#

php code by urself?

sweet lodge
#
@app.route('/rickroll.php')
def rickroll():
  return redirectfor("youtube.com/watch/554775")
#

Done

lunar mulch
#

look:

from http.server import HTTPServer, BaseHTTPRequestHandler


class Serv(BaseHTTPRequestHandler):
    def do_GET(self):
        if self.path == '/':
            self.path = '/index.html'
            try:
                response = open(self.path[1:]).read()
                self.send_response(200)
            except:
                response = "File not found"
                self.send_response(404)
            self.end_headers()
            self.wfile.write(bytes(response, 'utf-8'))
####################
        if self.path == '/image.png':
            self.path = '/index.html'
###################
            try:
                response = open('index.html').read()
                self.send_response(200)
            except:
                response = "File not found"
                self.send_response(404)
            self.end_headers()
            self.wfile.write(bytes(response, 'utf-8'))
        if self.path == '/icon.png':
            with open('icon.png', 'rb') as file_handle:
                self.send_response(200)
                self.send_header("Content-type", "image/png")
                self.send_header("X-Content-Type-Options", "nosniff")
                self.end_headers()
                self.wfile.write(file_handle.read())


httpd = HTTPServer(('192.168.0.101', 8000), Serv)
httpd.serve_forever()
#

look at my python code

willow light
#

oh god you're using the built-in?

lunar mulch
#

@whole bear

sweet lodge
willow light
#

cries in FastAPI

lunar mulch
willow light
#

cries in Express.js as well

#

and Opine for Deno

sweet lodge
lunar mulch
#
if self.path == '/image.png':
  self.path = '/index.html'

you have to do something like this on your PHP code

willow light
#

where's your init method?

sweet lodge
willow light
#

Never heard of that

sweet lodge
#

PHP

willow light
#

that would explain it then

#

I support modern browsers, not Internet explorer 3

#

</sarcasm>

lunar mulch
#

bro you're trying to ipgrab kids

sweet lodge
frosty star
#

Cute

sweet lodge
#

... that requires Internet Explorer 5

#

Read about "Zero trust"

#

Trust no one

willow light
#
<a href="youtube.com/watch?v=dQw4w9WgXcQ">
  <img src="path/to/image">
</a>

There, no need for php

willow light
#

The official video for β€œNever Gonna Give You Up” by Rick Astley
Taken from the album β€˜Whenever You Need Somebody’ – deluxe 2CD and digital deluxe out 6th May 2022 Pre-order here – https://RickAstley.lnk.to/WYNS2022ID

β€œNever Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s nat...

β–Ά Play video
#

There, no need to think

sweet lodge
#

I don't think you can do that

willow light
#

I don't think

sweet lodge
#

You would have to be able to determine when Discord is requesting the link for an embed, vs when someone else is requesting it

#

What's Discord's user agent?

lunar mulch
#

or smth similar

#

it got that in the string

somber heath
#

Ew.

rugged root
#

!paste @whole bear

wise cargoBOT
#

Pasting large amounts of code

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

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

sweet lodge
rugged root
#

@whole bear

sweet lodge
#

jinx

#

Oh? You want more?

#

@whole bear

#

@whole bear

#

@whole bear

lunar mulch
#

i like the idea

#

white magic

frosty star
#

Cant tell

lunar mulch
#

cospiracy

rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

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

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

sweet lodge
#

!paste @whole bear

#

How long is your code?

#

You might find Gist easier?

#

@rugged root

lunar mulch
#

guys what if

sweet lodge
#

We banished PHP?

lunar mulch
#

I did

#

@whole bear you need this:

php url redirect and masking

rugged root
stuck furnace
#

Yo

sweet lodge
#

πŸ‘‹

stuck furnace
#

To keep Eve out.

somber heath
#

Stops her from dropping in.

sweet lodge
#

Mr. President - What are you going to do about Katrina?

We're going to find her
And we're going to bring her to justice

lunar mulch
somber heath
sweet lodge
rugged root
#

We also typically add the roles to ourselves for quick access to the role ID

sweet lodge
#

When do I get permission to do !int?

lunar mulch
#

!int

#

what does this do?

sweet lodge
#

It would make me feel very special

lunar mulch
#

what is it?

somber heath
#

!d int

wise cargoBOT
#
int

class int([x])``````py

class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines `__int__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.
sweet lodge
#

You do want to help me feel special, right @rugged root ?

lunar mulch
#

is still don't get it

sweet lodge
#

!source int

wise cargoBOT
#
Command: internal

Internal commands. Top secret!

Source Code
rugged root
trail mural
#

Hi Mr Hemlok!

somber heath
#

A man was drawing on plants, stamping his feet. He was marking thyme.

sweet lodge
#

"You many opt out here"

#

*Does not include link*

somber heath
rugged root
somber heath
stuck furnace
#

Lo

trail mural
#

Hi Everyone πŸ™‚

whole bear
#

var a = 219;
var b = 732227;
var c = 571;
var d = 49;
var e = 100272;
var f = 790;
var g = 'a';
var h = '412632322e7267672b23251f222d352c2a2d1f22233066212d6725321f6d333120';
var p = '706e686e696f41414141';

#

SXF8S/4b0W9YGvZ1aGTe/4PqGEGIYbKUCwuExgq1olm8XDUIkT3uLeQno8bm6M6nSyWkoon32C1gmzshydVUZWI5oI4Uem46OK67Cnhc0r9S1TNV6nEYiBZVDmEVbc0KJm0U77MMPYWmwKsblrkrCrxq6UoCQ70oBEbt1jFU/FvhkIPTqVprep40ZkHnfipixiUCBRKZ5oaaDLzo7+u/vU3CkrfgogSnGhD6hVqni2sCFSuKqk7lTUonWzxLrj7qeU2ep6S76IqL5mJJLyMXWEDOM5OuBaK0FmnLSIWhEQnjoE9ATVWQyuRiyw8sOQxiw2Ka7ujAhN6rNrGiSq0ob7MDswuB414Yvyg1M9RWycHcmon4esy+TrxIxcbSBNbR/dvk3f3O1dANheoevSInn6rkJJf/ZKxDXQeiYtkHxmFAOD5ENuU6JpORs5u1wtFM1MKe+xeaJ73/NTbWwvs3UO5XGlL2p7FXlsNW8jLW4HkO55ERJq1fWRRs8vk2AaQqnr62qH0Sw3RqSHZax2v/Fp+ytsYETEMevHDktD95cgcak11gA2jVpONMyApJfTktFWZ/GEnPqbQRMvifJExvkmVDZNvSFDsh7CpVLDs4UU8=

old pecan
#

someone trying to do encode? 0_0

lunar mulch
#

Virus

#

dont

rugged root
#

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

old pecan
#

no no

#

i am talking about someone talked in the chat

#

voice*

#

i wanna do a script that does something like this

trail mural
#

^ this is playing with fire :>

rugged root
#

@whole bear What's up?

#

Niiiiice

old pecan
#
              )```
lunar mulch
#

is no one talking or my internet is messed up?

old pecan
#
              )```
rugged root
#

Your internet is borked

lunar mulch
#

ah

old pecan
rugged root
#

Portuguese is one I've been curious about but another instance of me not having an opportunity to use or practice it

#

Same with German

#

!e

vowels = "aeiouy"
input_string = "bacon"
output = []

for letter in input_string:
  print(letter)
wise cargoBOT
#

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

001 | b
002 | a
003 | c
004 | o
005 | n
lunar mulch
#

mom u goggle

trail mural
#

lol

#

e

rugged root
#

!e

vowels = "aeiouy"
input_string = "bacon"
output = []

for letter in input_string:
  if letter in vowels:
    output.append(letter)
  else:
    output.append(f"{letter}o{letter}")

output_string = "-".join(output)
print(output_string)
wise cargoBOT
#

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

bob-a-coc-o-non
trail mural
#

Don't copy the vowels ;-;

old pecan
lunar mulch
#

indentation < curly braces

rugged root
#

To each their own

lunar mulch
old pecan
#
def robber_encode(word):
    
    
      vowels = "aeiouy"

      output = []

      for letter in word:
          if letter in vowels:
            output.append(letter)
          else:
            output.append(f"{letter}o{letter}")

      wordEncode = "-".join(output)
    
      return wordEncode```
lunar mulch
#

@whole bear you have to have that data in your
<meta>
like meta tag, meta description and the image

sweet lodge
lunar mulch
#

ah

#

me stoopid

trail mural
#

no me

lunar mulch
#

hemlock are you baking pie?

rugged root
#

Why do you ask

lunar mulch
#

I smell pie

old pecan
rugged root
lunar mulch
rugged root
#

Are you sure?

lunar mulch
#

lemme check
can you hear me? I'm screaming your name

whole bear
lunar mulch
#

the wok

whole bear
lunar mulch
#

is this meta image?

rugged root
sweet lodge
#

https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png

old pecan
#
letters = wordEncode.split("-")```
rugged root
#

@sweet lodge Think I'm going to tweak a couple things before I publish

#

Need to write the readme and I'm also altering the the argparse and .env options

lunar mulch
#

!e

vowels = "aeiouy"
input_string = "momugoggoglole"
output = []

for letter in input_string:
  if letter not in vowels:
    output.append(letter)
  else:
    output.append(f"{letter}o{letter}")

output_string = "".join(output)
print(output_string)
wise cargoBOT
#

@lunar mulch :white_check_mark: Your eval job has completed with return code 0.

mooomuougoooggooogloooleoe
lunar mulch
#

kek

old pecan
lunar mulch
#

no

old pecan
#

function[0]

rugged root
#

!e

test = "ham"
print(test[0])
wise cargoBOT
#

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

h
lunar mulch
#

you just want the first letter of every item?

trail mural
#

Don't write the code Klaus pls πŸ™‚

lunar mulch
#

me on my way to write the code

trail mural
#

sure write it, it would be very kind of you to wait till Cocinas done before you post it

lunar mulch
old pecan
#
wordEncode = ("mom-u-gog-gog-lol-e")
letters = wordEncode.split("-")
vowels = "aeiouy"


output=[]

for letter in letters:
    if letter in vowels:
        output.append(letter)
    else:
        output.append(letter[0])
        
print(output)```
#

['m', 'u', 'g', 'g', 'l', 'e']

wise cargoBOT
#

@lunar mulch :white_check_mark: Your eval job has completed with return code 0.

muggle
old pecan
#
letters = wordEncode.split("-")
vowels = "aeiouy"


output=[]

for letter in letters:
    if letter in vowels:
        output.append(letter)
    else:
        output.append(letter[0])
        

wordDecode = "".join(output)

print(wordDecode)```
lunar mulch
#

welcome to night city

old pecan
#
    
    letters = wordEncode.split("-")
    vowels = "aeiouy"


    output=[]

    for letter in letters:
        if letter in vowels:
            output.append(letter)
        else:
            output.append(letter[0])
        

    wordDecode = "".join(output)

    return(wordDecode)```
willow ruin
#
Your query should output a table with a single column for the name of each person.
There may be multiple people named Kevin Bacon in the database. Be sure to only select the Kevin Bacon born in 1958.
Kevin Bacon himself should not be included in the resulting list.```
#

this is what i am trying to do

wintry pier
#

person_id ?

willow ruin
wintry pier
#

people_id

willow ruin