#voice-chat-text-0

1 messages · Page 19 of 1

warped raft
#

till when will you be awake

#

in hours

#

ok i will me there in five hours

#

sure

#

the you can help me with your pc

#

@sour steppe

#

no i will b e back after five hors

#

it's currently 2:50

#

no

#

yes

#

how old are you

#

i am 14 years yes

#

yes

#

uncle

#

ok

#

yes

#

king of brunei

#

sultan of brunei

#

ok

#

alladin

#

tropical rainfall

#

amazon is rainforest

#

good

#

anyway see you in five hours

#

bye

#

or

rugged root
#

On in a sec

warped raft
#

hello @somber heath
ARE YOU ON YOUR PC

#

this problem still exist

quasi condor
molten pewter
tidal shard
somber heath
#

Tekken or Taken? You decide!

tidal shard
#

😂

rugged root
#

!stream 674089971170148359

wise cargoBOT
#

✅ @peak parcel can now stream until <t:1664805948:f>.

somber heath
#

@peak parcel PTT, adjustment to your mic threshold or turning on of Krisp would be personally appreciated.

#

Sonic.

#

Mario Bros.

mint mulch
#

hi

somber heath
#

Doom.

#

The Warcraft movie was awful.

uncut meteor
#

how did Pure get a while discord profile?

somber heath
#

Beta thing.

uncut meteor
#

ah

somber heath
#

There should be an indicator in the upper left, I think.

#

Or there was.

somber heath
#

If he dies, would he get a John Cenotaph?

molten pewter
vocal abyss
#

here it is

molten pewter
#

John Cena has a whole album...

somber heath
#

Is there a Salt's ghost?

rugged root
#

Yeah but he's kind of bitter at the whole situation

cunning monolith
#

I want to meet the ghost where I can find one ?

somber heath
#

Have you looked in the machine?

#

Maybe at the beach, somewhere.

cunning monolith
#

Ghost are found at beach ?

somber heath
#

In the shells.

cunning monolith
#

That's demon (Jinni) right ? not a ghost

somber heath
#

Ghost in the Shell.

#

Anime/Manga.

rugged root
#

Niiiice

somber heath
#

Tron.

#

Gear.

#

Hot water.

molten pewter
#

Methaqualone is a sedative and hypnotic medication. It was sold under the brand names Quaalude ( KWAY-lood) and Sopor among others, which contained 300 mg of methaqualone, and sold as a combination drug under the brand name Mandrax, which contained 250 mg methaqualone and 25 mg diphenhydramine within the same tablet, mostly in Europe. Commercia...

#

"The question of whether intelligence, or any of its components, are elevated, compared to controls, among parents, siblings, or higher-order relatives of individuals with autism has yet to be investigated systematically, although this pattern is predicted by the positive genetic correlations of autism risk with measures of IQ."

#

"By contrast, as described above, there is clear evidence for relatively low IQ, on average, among individuals with autism, at least as measured by most standardized tests."

vocal abyss
molten pewter
#

"How can this paradox of low IQ, but positive genetic correlations of autism risk with intelligence, be resolved? None of the papers on genetic correlations of autism with intelligence discuss possible explanations, or ways to investigate the conundrum further. I have proposed here the hypothesis that autism involves high but imbalanced intelligence, such that some or many genetically-based components of intelligence are enhanced, but imbalance across components increases risk and patterns of expression for autistic phenotypes, and for diagnoses. By this hypothesis, higher intelligence may co-occur with higher risk for imbalance and cognitive and affective consequences from it, given that the components of cognitive ability are expected to interact strongly and may do so to a greater degree at the higher end of ability. The “high intelligence imbalance” hypothesis is useful because it makes clear predictions, and thus directs attention toward specific forms of existing data and new, informative future data to collect."

quasi condor
rugged root
#

Nerds

#

Come back

quasi condor
#

no

#

you come here

#

it's not an exclusionary party

rugged root
#

You do realize people will just move down

quasi condor
#

that's fine

rugged root
#

Want me to just drag you, you lazy bastard?

mild quartz
#

that would be a clear abuse of mod powers

#

you wouldn't break protocol in such a flagrant way would you?

molten pewter
#

pleiotropic effects

dusky mortar
#

what's the topic of discussion?

#

mission to mars got it

#

drawsaus anyone?

rugged root
#

Back in a moment

quasi condor
#

you would prefer not to be

tulip plover
#

hi

somber heath
#

!e ```py
from itertools import zip_longest

def func(text):
return [a + b for a, b in zip_longest(text[::2], text[1::2], fillvalue = "_")]

for text in ["", "a", "ab", "abc", "abcd", "abcde"]:
print(func(text))```

wise cargoBOT
#

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

001 | []
002 | ['a_']
003 | ['ab']
004 | ['ab', 'c_']
005 | ['ab', 'cd']
006 | ['ab', 'cd', 'e_']
somber heath
#

@whole bearthis

#

@wintry socket 👋

#

What sort of program are you looking to make?

#

Are you looking to just be working in the terminal, or are you wanting a GUI?

#

!e py import datetime now = datetime.datetime.now() print(now)

wise cargoBOT
#

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

2022-10-04 05:01:31.647485
somber heath
#

!e py import datetime now = datetime.datetime.now() dob = datetime.datetime.strptime("2006-11-15", "%Y-%m-%d") #Depending on how the uder is expected to enter in the date, the righthand string may vary print(now - dob)

wise cargoBOT
#

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

5802 days, 5:09:25.388573
somber heath
#

09 vs 9

#

!d divmod

wise cargoBOT
#

divmod(a, b)```
Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as `(a // b, a % b)`. For floating point numbers the result is `(q, a % b)`, where *q* is usually `math.floor(a / b)` but may be 1 less than that. In any case `q * b + a % b` is very close to *a*, if `a % b` is non-zero it has the same sign as *b*, and `0 <= abs(a % b) < abs(b)`.
somber heath
#

!e py import datetime age = datetime.timedelta(days = 5802) #Rough equivalent object to what we printed above. print(age.days)Here, we see that we can access a numerical component of type int from the object as component to later mathematical operations.

wise cargoBOT
#

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

5802
somber heath
#

The issue with calculating the number of months is that they're not all the same.

#

In days.

#

But let's assume they are.

#

!e py alpha = 5802 years, alpha = divmod(alpha, 365) months, days = divmod(alpha, 31) print(years, months, days)

wise cargoBOT
#

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

15 10 17
somber heath
#

a / b like so

#

a // b

#

a % b

#

// and %

#

!e py print(9 // 4) #Four goes into 9 fully twice print(9 % 4) #How many is left over from the 9?

wise cargoBOT
#

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

001 | 2
002 | 1
somber heath
#

!e py print(divmod(9, 4))

wise cargoBOT
#

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

(2, 1)
somber heath
#

Depends on what you're doing at any given point.

#

It's there. You don't have to use it.

#

!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
somber heath
#

This is called variable unpacking. I was using it.

#

Variation on the assignment operation.

#
a = 1
b = 2
c = 3
print(a)
print(b)
print(c)```
#

Manually?

#

and this is without datetime?

#

str.split

#

and int to cast the strings to numericals

#

!e py text = "2008-09-04" result = text.split("-") print(result)

wise cargoBOT
#

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

['2008', '09', '04']
somber heath
#

!e py date = ['2008', '09', '04'] year, month, day = (int(each) for each in date) print(year) print(month) print(day)

wise cargoBOT
#

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

001 | 2008
002 | 9
003 | 4
somber heath
#

That's a generator expression. They use comprehension syntax.

#

But you could also dopy year = int(date[0]) month = int(date[1]) day = int(date[2])

#

Have you used subscription, before?

#

obj[0] etc?

#

Subscription is the retrieval from a sequence an object, specified by that object's index position within the sequence.

#

!e py text = "abc" print(text[0]) print(text[1]) print(text[2]) print(text[-1]) print(text[-2]) print(text[-3])

wise cargoBOT
#

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

001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
somber heath
#

!e py things = ["apples", "pears", "oranges"] print(things[0]) print(things[1])etc

wise cargoBOT
#

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

001 | apples
002 | pears
somber heath
#

Assignment is also possible where the sequence is a mutable one.

#

!e py things = ["apple", "pear", "orange"] things[1] = "banana" print(things)

wise cargoBOT
#

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

['apple', 'banana', 'orange']
somber heath
#

!e py text = "abc" text[1] = "d"Strings are not mutable. Lists are.

wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: 'str' object does not support item assignment
somber heath
#

Related to subscription is slicing.

#

!d slice

wise cargoBOT
#

class slice(stop)``````py

class slice(start, stop[, step])```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
somber heath
#

!e py text = "abcdefghijk" print(text[3:7])

wise cargoBOT
#

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

defg
somber heath
#

lower case on the dob

#

Also, have at least one space before and after the =

#

You may also wish to give the format you wish the person to enter in their birthday.

#

Otherwise they're left guessing.

#

Have you heard of f-strings, before?

#

Would you like a refresher on how f-strings work, or are you good?

#

Yes.

#

More to avoid concatenation.

#

Definitely to avoid string formatting with %.

#

Concatenation being combining strings with +

#

Which is sometimes appropriate, sometimes not.

#

brb

#

The prompt in the input call.

#

Or have a loop that checks for and rejects bad values given.

#

But presumably would also say what it needs to be.

#

At least somewhere in the overall process.

#

Pendulum is another datetime-like module.

#

But it is third-party.

#

It's supposed to be better.

#

Otherwise, if you're after accuracy, you're going to have to account for the differently-numbered months as well as leap year month stuff.

#

Doable, but a pain.

#

I've not done it, myself.

#

I think it probably expects you to be given it with / not -

#

Oh. Yes. Ew.

#

Consistency.

#

People who formulate these things are fallible.

#

As with people whoever they are in the world.

#

Wherever they are.

#

Whatever task they're set at doing.

#

If any.

#

You could make it account for either, if you wanted to get fancy. But yes. I'd say that'd do.

#

But also, imagine that the user of your program is a monkey.

#

An escapee from the infinite typewriter project.

#

They could enter in anything.

#

Ideally, your program should account for user error.

#

This means checking the data the user given to see if it's valid. If it is not, ask the question again.

#

Exception handling can help in these cases.

#

A while loop would probably be appropriate.

#

Use of try and except would probably be appropriate.

#

!e py try: a, b, c = "abcd" except ValueError: print("Try again!")

wise cargoBOT
#

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

Try again!
somber heath
#

!e ```py
try:
a, b, c = "abc"
except ValueError:
print("Try again!")

print(a, b, c)```

wise cargoBOT
#

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

a b c
somber heath
#

!e py print("1-2/3".split("-"))

wise cargoBOT
#

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

['1', '2/3']
somber heath
#

!e py a, b, c = "abc" print(a) print(b) print(c)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
rotund iris
#

use datetime module

somber heath
#

!e py a, b, c = ["apples", "pears", "oranges"] print(a) print(b) print(c)

wise cargoBOT
#

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

001 | apples
002 | pears
003 | oranges
somber heath
#

"Variable unpacking"

sly gale
whole bear
#
import requests


def send_message(message_, channel_id, authentication_):
    payload = {
        'content': message_
    }
    header = {
        'Authorization': authentication_
    }
    requests.post(
        f'https://discord.com/api/v9/channels/{channel_id}/messages', data=payload, headers=header)

to send message

whole bear
#

@sly gale I mea

#

instead of print u can store it a variable

#

...

can u write all steps u r doing

#

ya

#

how many steps u completed?

#

...
can u send in text what u r on stuck??

sly gale
#

i am stuck on the part where you run pyhon sctipt to run command over linux terminal and get the output

whole bear
somber heath
#

Ideally, you wouldn't need to grab anything from stdout.

sly gale
#

no i do not know how to run terminal command using .py file and get the output

somber heath
#

You'd just tell whatever bot instance you've started up from within your program to send off the message you need when the time is right.

#

Or web request or whatever

#

Oh

#

You mean the temperature data

whole bear
#

@sly gale bhai baat kar

somber heath
#

Right. Subprocess.

#

You need to redirect the pipe in a weird way.

sly gale
#

i will be using the .py file as a systemd service so it not wourk getting it from stdout

somber heath
#

Not the terminal pipe.

whole bear
somber heath
#

There's a pipe thing in subprocess

#

By default it goes to stdout

#

But you can redirect it to an object that's in the subprocess module.

#

and you then poll that object for the result

#

You'll probably want to use subprocess.Popen

#

Then...

sly gale
somber heath
#

Yes.

#

time.sleep, maybe

#

while loop

#

Or

somber heath
#

If you're using an event framework, like asyncio, there should be a repeating scheduling thing

#

I'm off.

whole bear
#

@sly gale bhai kidar se he?

#

spy x family season 2 dekh raha he bhai?

#

sound very low

sly gale
#

i will watch season 2 when there is a dub

whole bear
#

bruh dub is trash

#

no cuteness

#

no sezy

#

sexy

#

no emotions

#

no feelings

sly gale
#

i like them

south wing
#

why so silent

cunning lake
#

hey

somber heath
#

@fair wigeon

fair wigeon
#

Hiii thank you so much for the answer

#

But the channel is close

#

I don think I understand I am very new to python

fair wigeon
somber heath
#

Or you could grab another help channel.

fair wigeon
#

I already took 2 today😂 is it alright?

somber heath
#

It's fine.

#

@ me when you have one.

frosty star
#

I cant hear you

#

i think there's something wrong w my audio setting @fleet tide

#

lemme check some stuff

fleet tide
#
while True:
    #inputs
    x = int(input("first number:"))
    y = input("sign:")
    z = int(input("second number:"))


#functions
# 1. multiplication
    if y == "*":
        print(x*z)
         else:
            print("err: invalid sighn")
            break
    #2. minus
    elif y == "-":
        print(x-z)
         else:
            print("err: invalid sighn")
            break
#3. plus
    elif y == "+":
        print(x+z)
         else:
            print("err: invalid sighn")
            break
#4. divide
    elif y == "/":
        print(x/z)
        else:
            print("err: invalid sighn")
            break
#5. power of
    elif y == "^":
        print(x**z)
         else:
            print("err: invalid sighn")
            break
#repeat answer
    print("continue?")
    repeat = input("y/n:")
    if repeat == "y":
        continue
    else:
        break
frosty star
#

u should run it directly on the terminal hun

#

cd

#

cd directory/

#

ctrl + alt + t

#

will open the terminal

#

yes

#

and go to the directory

#

oh man...

#

this works on ubuntu

#

oh then it should work right

#

oh man ....

#

no no

#

lets google

somber heath
#

cd ~/Desktop

frosty star
#

cd ~/Desktop

#

or cd ~

#

does it work

#

can you pwd

#

pwd

#

to know where you are

#

yes

fleet tide
#

File "/home/cs/Desktop/Calculator 0.01.py", line 12
else:
IndentationError: unexpected indent

#
while True:
    #inputs
    x = int(input("first number:"))
    y = input("sign:")
    z = int(input("second number:"))


#functions
# 1. multiplication
    if y == "*":
        print(x*z)
#2. minus
    elif y == "-":
        print(x-z)
#3. plus
    elif y == "+":
        print(x+z)
#4. divide
    elif y == "/":
        print(x/z)
#5. power of
    elif y == "^":
        print(x**z)
#quare root
    elif y == "//":
        print
#repeat answer
    print("continue?")
    repeat = input("y/n:")
    if repeat == "y":
        continue
    else:
        break
somber heath
#

Each convention to its own language. Tabs can be of variable width, depending on the editor's implementation. Spaces are of fixed width.

#

If other languages want to have a tab convention, that's fine.

#

If Python wants to use four spaces, that's fine.

#

If Microsoft wants to use two spaces for Python, they can go swimming in the glitter pit of shame.

#

If tabs were reliably unwonky, I'd prefer tabs. I was a tab person.

frosty star
somber heath
#

If the PSF released a PEP saying "use tabs", I would. If they said "It's up to you", I'd use spaces.

#

Button pusher child.

#

If you were an accountant for a climate control business, would you have studied airconomics?

#

!d import

wise cargoBOT
#

7.11. The import statement


import_stmt     ::=  "import" module ["as" identifier] ("," module ["as" identifier])*
                     | "from" relative_module "import" identifier ["as" identifier]
                     ("," identifier ["as" identifier])*
                     | "from" relative_module "import" "(" identifier ["as" identifier]
                     ("," identifier ["as" identifier])* [","] ")"
                     | "from" relative_module "import" "*"
module          ::=  (identifier ".")* identifier
relative_module ::=  "."* module | "."+
```...
somber heath
#

!e py import random result = random.randint(1, 100) print(result)

wise cargoBOT
#

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

31
frosty star
#

im actually preparing for class tomorrow so I won't be able to respond for a while

somber heath
#

!d socket

wise cargoBOT
#

Source code: Lib/socket.py

This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windows, MacOS, and probably additional platforms.

Note

Some behavior may be platform dependent, since calls are made to the operating system socket APIs.

somber heath
#

!d asyncio

wise cargoBOT
#

Hello World!

import asyncio

async def main():
    print('Hello ...')
    await asyncio.sleep(1)
    print('... World!')

asyncio.run(main())
```...
frosty star
#

ok guys gtg need to focus brb

somber heath
#

!e py import socket print(dir(socket))

wise cargoBOT
#

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

['AF_ALG', 'AF_APPLETALK', 'AF_ASH', 'AF_ATMPVC', 'AF_ATMSVC', 'AF_AX25', 'AF_BLUETOOTH', 'AF_BRIDGE', 'AF_CAN', 'AF_DECnet', 'AF_ECONET', 'AF_INET', 'AF_INET6', 'AF_IPX', 'AF_IRDA', 'AF_KEY', 'AF_LLC', 'AF_NETBEUI', 'AF_NETLINK', 'AF_NETROM', 'AF_PACKET', 'AF_PPPOX', 'AF_QIPCRTR', 'AF_RDS', 'AF_ROSE', 'AF_ROUTE', 'AF_SECURITY', 'AF_SNA', 'AF_TIPC', 'AF_UNIX', 'AF_UNSPEC', 'AF_VSOCK', 'AF_WANPIPE', 'AF_X25', 'AI_ADDRCONFIG', 'AI_ALL', 'AI_CANONNAME', 'AI_NUMERICHOST', 'AI_NUMERICSERV', 'AI_PASSIVE', 'AI_V4MAPPED', 'ALG_OP_DECRYPT', 'ALG_OP_ENCRYPT', 'ALG_OP_SIGN', 'ALG_OP_VERIFY', 'ALG_SET_AEAD_ASSOCLEN', 'ALG_SET_AEAD_AUTHSIZE', 'ALG_SET_IV', 'ALG_SET_KEY', 'ALG_SET_OP', 'ALG_SET_PUBKEY', 'AddressFamily', 'AddressInfo', 'BDADDR_ANY', 'BDADDR_LOCAL', 'BTPROTO_HCI', 'BTPROTO_L2CAP', 'BTPROTO_RFCOMM', 'BTPROTO_SCO', 'CAN_BCM', 'CAN_BCM_CAN_FD_FRAME', 'CAN_BCM_RX_ANNOUNCE_RESUME', 'CAN_BCM_RX_CHANGED', 'CAN_BCM_RX_CHECK_DLC', 'CAN_BCM_RX_DELETE', 'CAN_BCM_RX_FILTER_ID', 'CAN_BCM_RX_NO_AUT
... (truncated - too long)

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

somber heath
#

Corey Schafer, YouTuber.

rugged root
somber heath
#

#!

rugged root
#
#!/usr/bin/python3
fleet tide
#
#!/usr/bin/python3
while True:
    #inputs
    x = int(input("first number:"))
    y = input("sign:")
    z = int(input("second number:"))


#functions
# 1. multiplication
    if y == "*":
        print(x*z)
#2. minus
    elif y == "-":
        print(x-z)
#3. plus
    elif y == "+":
        print(x+z)
#4. divide
    elif y == "/":
        print(x/z)
#5. power of
    elif y == "^":
        print(x**z)
#quare root
    elif y == "//":
        print
#repeat answer
    print("continue?")
    repeat = input("y/n:")
    if repeat == "y":
        continue
    else:
        break
rugged root
#

#!/usr/bin/env python3

#

@grim trellis

fleet tide
grim trellis
#

@fleet tide are you using VScode?

#

show me the SS

rugged root
#

!stream 915896339672498237

wise cargoBOT
#

✅ @fleet tide can now stream until <t:1664891364:f>.

grim trellis
#

screan shot

rugged root
#

!e

print(5 / 3)
print(5 // 3)
wise cargoBOT
#

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

001 | 1.6666666666666667
002 | 1
grim trellis
#

@fleet tide first close the vscode then just open it by just clicking on vscode then open your file form file then you can open terminal from vscode and write python3 filename

somber heath
#

!e py import math a = 50 ** .5 b = math.sqrt(50) print(a) print(b)

wise cargoBOT
#

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

001 | 7.0710678118654755
002 | 7.0710678118654755
rugged root
#
x = input(int())
y = input()

if y == "//":
  print(x ** 0.5)
  continue

z = ...
grim trellis
#

@rugged root are you using windows for linux?

rugged root
#

Windows

somber heath
#

√radix

rugged root
#

I prefer it

grim trellis
#

what things you work on ?

#

@fleet tide which flavor of Linux you use?

somber heath
#

Banana.

#

Not really.

grim trellis
#

tea is best

#

@neon orbit what was your question?

neon orbit
#

I was asking what field do you guys use Python for

somber heath
grim trellis
#

I use python for Data science and machine learning

#

but I use python for my every project

#

@rugged root can you share your git repo here plzz?

rugged root
peak copper
somber heath
#

Steam does a good job on Linux

grim trellis
#

@somber heath but it's hard for gaming

rugged root
#

@neon orbit

grim trellis
#

once I used Ubuntu for gaming it did not went well so I switched back to windows

somber heath
rugged root
#

@winged shard

neon orbit
#

@winged shard

winged shard
dusky mortar
grim trellis
#

my friend use POPos and it's great for gaming

fleet tide
dusky mortar
#

remove '

fleet tide
#

hmm

rugged root
#

If you're going to use quotes, do it around the whole thing. cd '~/programming projects'

grim trellis
#

@neon orbit for web go for JS

neon orbit
#

Yh am going for JS for now

#

HTML, CSS and JS

grim trellis
#

@neon orbit have you tried mobile app

rugged root
#

Maybe double quotes?

#

Don't know

fleet tide
neon orbit
grim trellis
#

check out Flutter it's great

neon orbit
#

I kinda want programming to be fun again and it was back when I was creating bots and all

neon orbit
#

So would just go back to it

rugged root
#

One of the best resources I've found for JS

neon orbit
# rugged root https://javascript.info

HTML and CSS are essential skills to have for a career in web development.

In this course we will cover both languages from the scratch and by the end of the course you will be creating your own projects.

(0:00) Intro
(2:47) What is HTML
(5:11) Google Chrome and Visual Studio Code
(6:02) Download Google Chrome
(8:11) Download Visual Studio Cod...

▶ Play video
fleet tide
#

bash: cd: ~/programing projects: No such file or directory

neon orbit
#

Am firstly going through this for HTML and CSS

#

Then JS

dusky mortar
#

cd programing projects

grim trellis
#

freeCodeCamp is the best for every programming topic

dusky mortar
#

cd and press tab

grim trellis
#

@neon orbit just so you know flutter now support web too

peak copper
neon orbit
#

Have fell asleep twice now

#

But gotta do it!

grim trellis
#

do any of you guys watch anime?

#

@ripe lantern dub worse man

#

@peak copper Marval is evolving backwards

#

I read book to

#

too

dusky mortar
#

I'll just watch it without understanding

grim trellis
#

@neon orbit data science job is like create model for company that help them how their data is important

dusky mortar
#

earlier when I was learning English watched like 50 + series and movies without understanding them fully

#

it's worth it

grim trellis
#

I have one year experience in data science job

#

just so you know guys GUI mean A*s in language that I speak .

amber raptor
#

LET"S GO I LOVE THE MODS

#

PERMS IM UP

rugged root
#

Oh that's a bad sign

amber raptor
#

no i just had to wait months to get vc

#

🧙 🦜

rugged root
#

Ah gotcha

willow light
rugged root
#

XPath

dusky mortar
#

@amber raptor what's the issue with xpath?

neon orbit
#

:hemshake:

rugged root
#

XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an XML document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not.

amber raptor
#
# Image URL - gives output in right place but no url
result = doc.xpath("//*[@class='card__media mntl-universal-image card__media universal-image__container']/div/img/@src")
# IMGS = [r.text for r in IMGresult]
# print(IMGS)

Using xpath to webscrape https://www.allrecipes.com/recipes/189/holidays-and-events/halloween/
but the image url is contained inside a element attribute, need to get accurate reference

Allrecipes

Allrecipes has over 590 Halloween recipes and food ideas including cookies, cupcakes and cocktails. Find cute or creepy goodies to feed your Halloween fun.

fleet tide
#

socket.SOCK_STREAM

rugged root
#

Wait oh my god

#

I forgot

#

Skeleton time

dusky mortar
amber raptor
#

This works and uses similar syntax to find the recipe URL, for whatever reason similar thinking as here doesn't work for image URL

#Recipe URL
# result = doc.xpath("//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/@href")
# RECS = [r.text for r in REC]
# print(REC)
rugged root
#

What library has that .xpath

amber raptor
#

exactly

fleet tide
#

s.listen(5)

amber raptor
#

Below returns: [<Element img at 0x7f9e2e219890>, <Element img at 0x7f9e2e2198f0>]

result = doc.xpath("//img[contains(@alt,'ghosts and bones')]")
#

@rugged root

dusky mortar
#

does this work

amber raptor
#

trying

neon orbit
#

You guys ain't spooky enough

amber raptor
#
AttributeError                            Traceback (most recent call last)
<ipython-input-8-55827a3113a4> in <module>
     25 # result = doc.xpath("//*[@class='card__media mntl-universal-image card__media universal-image__container']/div/img/@src")
     26 result = doc.xpath("//img[contains(@alt,'ghosts and bones')]")
---> 27 result[0].getAttribute("href")
     28 
     29 # IMGS = [r.text for r in IMGresult]

AttributeError: 'HtmlElement' object has no attribute 'getAttribute'
dusky mortar
#

ok got it wait

rugged root
#

Like pumpkin

neon orbit
#

boo

#

spook

#

spooky

rugged root
#

Doot

neon orbit
#

skeleton

dusky mortar
amber raptor
#

on it

#

same ouput: [<Element img at 0x7f9e2e2176b0>, <Element img at 0x7f9e2e217710>]

dusky mortar
#

can you tell me which pip install you do for doc?

amber raptor
#
url = "https://www.allrecipes.com/recipes/189/holidays-and-events/halloween/"
response = requests.get(url) # get the html of that url
doc = html.fromstring(response.text)
neon orbit
#

doot

dusky mortar
#

it's 1 of 1

fleet tide
#
print(f"something")
#

what is the f for?

amber raptor
#

they legit changed the html overnigth

#

result = doc.xpath("//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/div/div/div/img/@data-src")

dusky mortar
#

html is from some specific lib?

amber raptor
#

this ^^^ works just got it

#

--

frosty star
#

Hiii everyone

amber raptor
#

trying to grab the number of reviews from the same website

#

result = doc.xpath("//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/div/div")

frosty star
amber raptor
#

currently have that and it returns a list of pointers

fleet tide
#
s.connect((socket.gethostname(), 5589009))
amber raptor
fleet tide
#

pyinstaller?

dusky mortar
rugged root
amber raptor
#

['\n808\n', '\n', '\n4,544\n', '\n', '\n791\n', '\n', '\n1,824\n', '\n', '\n211\n',

#

@dusky mortar that works but there are new lines, any ideas

molten pewter
dusky mortar
#

yes you can remove them using regex

amber raptor
#

regex

#

HOW DO I USE REGEX

#

Registeel

rugged root
#

!e

test = '\n808\n'
int(test)
wise cargoBOT
#

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

[No output]
rugged root
#
example = [int(chunk) for chunk in results[0] if chunk != '\n']
#

If you want them as just strings

#
example = [chunk.strip() for chunk in result[0] if chunk != '\n']
molten pewter
#

the Copacabana was not as good as I remember as a child.

amber raptor
molten pewter
amber raptor
#

['808', '4,544', '791', '1,824', '211', '199', '677', '360', '35', '136', '460', '507', '21', '268', '31', '166', '586', '2', '897', '161', '62', '3', '80', '346', '496', '96', '181', '441', '162', '79', '3,106', '5', '689', '6', '27', '22', '454', '1,403', '58', '7', '1,260', '1,181', '11', '18', '850', '259', '1,114', '256', '25', '6', '29', '137', '194', '94', '887', '757', '103']

molten pewter
#

At least "I go to Rio" still holds up

fleet tide
rugged root
rugged root
fleet tide
#

raceback (most recent call last):
File "/home/cs/Desktop/programing projects/socket srver.py", line 4, in <module>
s.bind((socket.gethostname(), 5589))
OSError: [Errno 98] Address already in use

grim tendon
#

hi i cant talk yet @rugged root @scarlet elbow

#

gotta wait

#

for verification

rugged root
#

No worries!

grim tendon
#

do any of yall know how to use beautifulsoup?

rugged root
#

Still can talk here, participate in the convos. And I've messed with it a couple times

#

What's the issue you're having with it?

fleet tide
#

is sublime text begginer friendly?

rugged root
#

Ehhhhhhh..... I mean it's not bad, but it does take some tweaking to get it just how you like it

#

But it's the one I mainly use

fleet tide
#

hm

grim tendon
#

I want this number

fleet tide
#

sublime looks awsome

grim tendon
#

how do i get the number

#

From this website

rugged root
#

You'd grab it using the price class tag

grim tendon
#

i still dont follow

#

i have been trying this forever

rugged root
#

One sec, working on some work stuff

#

I'll look here shortly

grim tendon
#

i luv u

amber raptor
#

interlinked

#

give scrren share

#

please

rugged root
#

So minor hiccup, Tortie. Just went through GraybaR's terms of service, and this looks like it's something we can't/won't assist with

amber raptor
#

@grand basin.....

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.

rugged root
#

(v) using any automatic or manual process to monitor or copy any portion of this Site without Graybar's prior written permission;

amber raptor
#

mr hemlock

#

sir

rugged root
#

Now, they may have an API

#

One sec Cash, going to hit the restroom then I'll be back

amber raptor
#

can i have scren share perms perhaps?

#

ok 🫡

grim tendon
#

lol how you even find this

rugged root
#

I've looked through dozens of ToS

grim tendon
#

this is wild, i have never in my entire life cared to read this part of the website

#

XD

#

or any website

rugged root
#

Understandable

grim tendon
#

didnt even bother to check lol, i'll keep that in mind for the future

#

learned something new

#

i bet nearly every website has that ToS copy and pasted darn

solar fog
#

@molten pewter you could intercept them

#

for a robbery

rugged root
grim tendon
#

okay i found one that doesnt!

rugged root
#

But they also typically have an api

#

That's the preferred way

solar fog
#

@molten pewter all western countries

grim tendon
#

im going to explode

solar fog
#

every western country view their job as their identity

grim tendon
#

now my terminal is freezing

#

i have no idea anymore, why is this so difficult q_weebsmash

solar fog
#

@molten pewter i have that feeling i dont like you 😉

#

i think this is all very judgemental. It shows society has become too sensitive

#

@amber raptor what currency problem you solving?

#

@amber raptor youre trading?

#

got you👍

#

what yours expectations on the dollar , do you see it running through everything again?

#

yea

#

damn good explanation

#

21

#

i just got done with college

#

@amber raptor yea thats wild

#

it sounds like a global recession

#

atleast if the dollar keeps climbing

#

but the dollar isnt just running through those currencies, its running through EVERY currency. Even big currencies like the japanese yen

#

@amber raptor what is their more opportunity in

#

in your opinion, stocks or real estate

#

if youre holding for 5-10 years

#

what about tech stocks?

#

like cloudflare?

#

@amber raptor but currently the market is down, tech has been getting hurt the worse

#

how do we know this isnt the discount? right now?

#

@amber raptor thats what i mean, how can we be in recession when so many people have jobs

#

isnt 2.5% of unemployment crazy good?

#

i thought it needs to be atleast 9 to be in a recession

rugged root
#

Are we saying 2.5% of folks unemployed and looking or just total those of age but without a job

solar fog
#

the second option sounds more right

#

but you know how they try to hide numbers/true or exposing figures to them

rugged root
#

Also tough to get hard numbers

#

Sitting here at 32 making 18.50 an hour

#

Hurts

solar fog
rugged root
#

Still under median

solar fog
#

i think cash crab is right about 1000 in that sector make 250

#

sounds right

solar fog
#

money isnt happiness anyways

#

@rugged root true

rugged root
#

Well not necessarily happiness sure

#

But I'd like to not be going paycheck to paycheck

grim tendon
#

Hey @rugged root

#

dont forget about me :/

rugged root
#

Oh derp right

#

Sorry, I'm scattered all over today

solar fog
#

@amber raptor he didnt man

grim tendon
#

I think this website is okay to use

solar fog
#

the interest rate is just higher now

grim tendon
#

I dont see any issue terms of service

solar fog
#

it might be a good long term investment

solar fog
#

whats upwork?

grim tendon
#

This is what code rreturns

solar fog
#

so does this guy create websites?

grim tendon
#

why wont this workkkkkkkkk

rugged root
#

I'm not sure off the top of my head

grim tendon
#

Youre all i got

solar fog
#

@stiff meteor i wouldnt go to college

#

frontend , backend and cybersec @amber raptor which one of these do you think would be most profitable?

solar fog
#

over say 10 years

solar fog
#

after tax🤣

amber raptor
#

just be a swe @solar fog

#

fintech will be big

amber raptor
#

econ + tech is path to most money

solar fog
amber raptor
#

no

#

no no no

solar fog
#

so being a software engineer is knowing about everything?

amber raptor
#

like fintech for banks

amber raptor
#

python will be v useful tho

#

spec there

solar fog
#

but i guess youre right

amber raptor
#

i mean in college

#

studying econ cs

solar fog
#

not committing to one thing, gives you the most broad way of being successful

amber raptor
#

just go to college to be swer

#

swe at good school

willow light
#

just go to college in general tho, humanities courses are under-appreciated and actually quite important

solar fog
#

@stiff meteor how much is left to pay?

#

on the mortgage?

rugged root
#

Hasn't closed on the house yet

#

I'm just getting more and more depressed listening to this

#

Eat me, I'm working on it

#

Can still feel frustrated about it

molten pewter
amber raptor
#

lie abt your education

#

and experience

molten pewter
solar fog
#

@molten pewter 😂

#

🤣

dusky mortar
#

Game of Survival it is

#

and I play Rust

#

Aren't we just random people to each other?

#

well except @rugged root

dusky mortar
#

fun fact I'm more nice to strangers than to my family

#

xd

#

I don't lie and Fifth Amendment

rugged root
dusky mortar
#

My father bought our house for 7357.16 usd

#

We have 3 mango trees and flower garden

rugged root
#

Ooo, neat

dusky mortar
#

I'll look for Haunted houses to get better deal

rugged root
#

Can you sort by total of people who died there?

#

Probably a good metric to do it

dusky mortar
#

hmmm good problem statement for data analysis

rugged root
dusky mortar
#

more interesting will be how many of them got the insurance

rugged root
#

True

dusky mortar
#

the real question is how much money you can really spend out of what you earn

#

I can't spend what I earn then just enjoy living

rugged root
#

Clinical depression makes stuff like that difficult, even with money.

molten pewter
dusky mortar
#

I see only 2 channels for vc

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.

amber raptor
#

the code

#

does not do what the code is meant to do

#

😦

rugged root
#

What's it doing that it shouldn't or what isn't it doing that it should

amber raptor
#
test_url = 'https://www.allrecipes.com/recipes/189/holidays-and-events/halloween/'
get_recipes_from_page(test_url)

this not output anything, i think dict is being created but no ouput here

#
        entry = {
            'title' : title,
            'image_url' : image_url,
            'recipe_url' : recipe_url,
            'description' : description,
            'rating' : float(rating),
            'num_reviews' : int(num_reviews),
            'author' : author
        }

this is dict def

rugged root
#

There's nothing telling it to print anything or show anything

#

Wait

#

Hmm

amber raptor
#

return result?

#

df = pd.DataFrame(get_recipes_from_page(test_url))
df

#

this should do it with the return result no?

#
Empty DataFrame
Columns: []
Index: []
dusky mortar
#

PLAY GAMES

#

AND RELAX

rugged root
#

@amber raptor Line 45. You're overwriting the result list every time you go through the loop

amber raptor
#

wdy mean

#

like comment that out?

rugged root
#

I mean like

#

The list you define on 14, you're then overwriting on 45. Not sure what you're wanting to do there

amber raptor
#

it seems like im defining result as an empty list as a global then filling it later on and only returning result

#

not entry

#

that was part of the code i was give i think

rugged root
#

!stream 716436228828037120

wise cargoBOT
#

✅ @stiff meteor can now stream until <t:1664906459:f>.

dusky mortar
#

img {
border-radius: 50%;
}

amber raptor
#

monseur hemlock

#

i have to depart

#

i shall return

brittle adder
#
img#step1 {
  height: 10em;
  width: 10em;
}
rugged root
#

!stream 716436228828037120 10M

wise cargoBOT
#

✅ @stiff meteor can now stream until <t:1664907235:f>.

rugged root
#

Couple reasons. First, we had people streaming porn, and given the size of the server and how many young folks we have, I'd rather not have that happen again. Other reason is that it's much easier to give/get help whenever we have the code in front of us where we can highlight it and work on it. Much harder to do it from a stream in most cases

#

(kind of like now)

#

I'm still trying to find a good system

#

I know this current one isn't ideal

sweet lodge
rugged root
#

And considering the number of trolls and raids we've had, I'd rather go on the more strict/cautious side

#

Right right

mint mulch
#

'-'

#

me?

#

sup?

#

ah

#

how are you guys?

peak parcel
#

@tardy lynx check the channel description here

tardy lynx
#

oh hi see

#

great ty bro

#

!voiceverify

#

!voiceverify

amber raptor
#

OPEN THIS LINK NOW!

#

HELP ME SOLVE MY PROBLEM

#

AHHHHHHHH

#

🦜

rugged root
#

!e

ham = ["1", "2", "3", "4"]
print(int(ham))
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
lapis hazel
amber raptor
#

recipes = doc.xpath('//*')

velvet urchin
#

nm -p ....

amber raptor
#

@lapis hazel what have you discovered sir?

#

🦜

velvet urchin
#
00000000004003b0 r __abi_tag
00000000004010a0 t deregister_tm_clones
00000000004010d0 t register_tm_clones
0000000000401110 t __do_global_dtors_aux
0000000000404040 b completed.0
0000000000403dc8 d __do_global_dtors_aux_fini_array_entry
0000000000401140 t frame_dummy
0000000000403dc0 d __frame_dummy_init_array_entry
0000000000402140 r __FRAME_END__
0000000000402088 r __GNU_EH_FRAME_HDR
0000000000403dd0 d _DYNAMIC
0000000000404000 d _GLOBAL_OFFSET_TABLE_
                 U printf@GLIBC_2.2.5
0000000000404040 D _edata
0000000000404030 W data_start
0000000000402000 R _IO_stdin_used
0000000000401146 T main
0000000000404038 D __dso_handle
0000000000401258 T _fini
                 U __libc_start_main@GLIBC_2.34
0000000000401090 T _dl_relocate_static_pie
0000000000401060 T _start
0000000000401000 T _init
0000000000404040 D __TMC_END__
                 U __isoc99_scanf@GLIBC_2.7
0000000000404030 D __data_start
0000000000404048 B _end
0000000000404040 B __bss_start
                 U puts@GLIBC_2.2.5
                 w __gmon_start__
amber raptor
#

brb

#

be back i 10 dijk

#

mr @lapis hazel i am back

#

@lapis hazel please dm me if you come back

final gazelle
#

books

#

also nice

#

@velvet urchin

#

how old u guys are? @whole bear @whole bear @velvet urchin

#

bruh

#

how old?

#

yea it is

#

21

#

wot

#

no

#

cap

final gazelle
#

here we go again

#

this question shouldnt take this long to be answered xD

#

yea those questions xD

#

nice 20

#

u 29 and u do intern?

#

i am ironman

#

xD

#

nice

#

damn

#

basements 💀

#

Y'all capping

#

sperm form?

#

conversation was better before i asked question

#

i was

#

what?

#

nop

#

I am Indian xD

#

no trolling please

#

you brit?

#

wator

#

xD

#

true

#

everybody capping nice

#

xD

#

everything?

#

too late

#

yup

#

Do it

#

!!!

#

I wanna own few harem

#

smash dagg

#

Whats that?

#

Find what??

#

Nop

#

Well I wanna know

#

he just undeafen

#

naah

#

its just not showing up

#

He is purposely doing it

#

The Glitch thing

#

i rather study maths ;-;

#

human with XX chromosome

#

and hope to die

#

damn biro

#

bruh i have very good accent

#

NO

#

i wanna learn

#

brit acc

#

its funny

#

xD

#

well dunno that

#

i m laughing rn

#

xD

#

by learning

#

True

#

bruh

#

yee

#

🕺

#

Lets Go

#

I dont have perms to talk

#

aeyoo

#

Keep pushing forward ✨

#

DO IT!!

#

everything

#

is stressful

#

no

#

xD

#

nop

#

java's icon

velvet urchin
#

The Force is a metaphysical and ubiquitous power in the Star Wars fictional universe. "Force-sensitive" characters use the Force throughout the franchise. Heroes like the Jedi seek to "become one with the Force", matching their personal wills with the will of the Force, while the Sith and other villains exploit the Force and try to bend it towar...

real jacinth
#

no

#

NO!!!!

barren carbon
#

can someone help me

velvet urchin
#
const language = {
  set current(name) {
    this.log.push(name);
  },
  log: []
};

language.current = 'EN';
language.current = 'FA';

console.log(language.log);
#
Object.defineProperty(obj, 'someProp', {
    get: function () {
        return obj._someProp;
    },

    set: function (value) {
        debugger; // sets breakpoint
        obj._someProp = value;
    }
});
wise cargoBOT
#

Hey @amber raptor!

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

amber raptor
#

@whole bear

amber raptor
real jacinth
#

Hay

#

Opal are u a bot omg

#

ARE U IRISH

#

ARE U ALL EUROPEANS

amber raptor
#

rating_node = r.xpath('.//span[@class="review-star-text visually-hidden"]')
if len(rating_node) == 0:
continue
else:
rating = rating_node[0].text_content()

real jacinth
#

ur so right opal

#

opal ur sooo freaking right

#

and dont let anyone dim ur sparkle

#

UR LIKE A LEPRACHAN

#

OMFGGG

#

opal and ur pfp a sunflower.. i just know u the light of everyones life fah sure

#

i bet i can guess wat country each of U r from

#

WAT

#

Oh omg... ok

#

first guy is def swedish

#

anonymous hat man

#

ok so ur swedish

#

great

#

dutch

#

DUTCH?

#

NORWEIGAN ?

#

opal u british irish mix..

#

am i close

#

aint no way

#

U all from europe

amber raptor
#
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-30-3830dd4b7e98> in <module>
      1 test_url = 'https://www.allrecipes.com/recipes/189/holidays-and-events/halloween/'
----> 2 get_recipes_from_page(test_url)

<ipython-input-29-8bada93f8a5c> in get_recipes_from_page(url)
     32         recipe_url = r.xpath("//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/@href")
     33         description = r.xpath("//*/a[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/div/@data-tag")
---> 34         filler = r.xpath("(//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image'])//div[contains(@class,'rating-count-number')]/text()")
     35         num_reviews = [chunk.strip() for chunk in filler if chunk != '\n']
     36         author = r.xpath("//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image']/div/div/@data-byline")

src/lxml/etree.pyx in lxml.etree._Element.xpath()

src/lxml/xpath.pxi in lxml.etree.XPathElementEvaluator.__call__()

src/lxml/xpath.pxi in lxml.etree._XPathEvaluatorBase._handle_result()

src/lxml/extensions.pxi in lxml.etree._unwrapXPathObject()

src/lxml/extensions.pxi in lxml.etree._createNodeSetResult()

src/lxml/extensions.pxi in lxml.etree._unpackNodeSetEntry()

src/lxml/extensions.pxi in lxml.etree._buildElementStringResult()

src/lxml/extensions.pxi in lxml.etree._elementStringResultFactory()

KeyboardInterrupt: 
real jacinth
#

U ALLLL FRAWM EUROPE

#

Ur all from europe

#

AUSTRALIA

#

aint no way one of u guys from the states omg

somber heath
#

@pulsar mountain 👋

pulsar mountain
#

I wonder what's going on in Voice chat

somber heath
#

Conversation.

pulsar mountain
#

lol yeah

somber heath
#

You're hearing what we all are, I presume.

pulsar mountain
#

I can speak Hindi

willow lynx
#

Hey

#

I want to learn oops concepts in python

#

Best sources to learn.

#

?

somber heath
#

You'll want to find one on classes.

#
class MyClass:
    pass

class_instance = MyClass()```
willow lynx
#

Ok.

tulip plover
#

I need help

somber heath
#

Everything in Python that isn't syntax is an object. Every object is of a type/class.

willow lynx
#

I have to give presentation on oops

somber heath
#

A class governs how objects created/instantiated from it behave and what information is stored in them and ways you can interact safely with that data.

somber heath
willow lynx
#

I told my manager I don't know oops concept

tulip plover
somber heath
#

Whole numbers in Python are objects of class int.

#

Strings, text...they're of class str

#

Lists, of class list

willow lynx
#

And how can I do data analysis using oops concept

#

I mean can i write any class

somber heath
#

I wouldn't say there's a direct relationship between object-oriented programming and data analysis. No more than saying "How do you give a speech on mathematics using English?"

#

That it's in English is incidental.

serene glade
#

I'm still trying to find a cheap robot for coding.

somber heath
#

Data analysis, in Python, people will often use Numpy and/or Pandas.

willow lynx
#

How do you analyse text data

somber heath
#

How much text?

willow lynx
#

I am learning pyspark

somber heath
#

What sort of analysis?

willow lynx
#

Just told to do eda

somber heath
#

Eda?

willow lynx
#

Exploratory data analysis

somber heath
#

It depends on the sorts of analysis. For some things, you might not need to go beyond some methods of class str.

#

For others, you might need a full-blown natural language toolkit.

#

NLTK is one.

willow lynx
#

For now I just have to give presentation on oops concept

somber heath
#

A good programmer is a lazy programmer.

#

The less code you can write a program in, the simpler you can write it, the better.

serene glade
#

From what I hear that is right

somber heath
#

One of Python's design axioms is "Don't reinvent the wheel"

serene glade
#

And less code less bugs

somber heath
#

Hopefully!

#

The more tools you have in your toolbox, the fewer tools you need to apply to a given problem, because you can select the right one.

#

Best foot forward.

naive cloak
#

Hey is there any way I can speed up the process of being voice verified

somber heath
#

@whole bear You'd want to talk with a bank about business options in that vein.

#

Maybe.

naive cloak
#

wish i can but I was hopping for some help

somber heath
#

With?

naive cloak
#

socket programming

somber heath
#

You may or may not get help.

#

It depends on the problem, the way you ask your question, and who is around, if they know how to help.

naive cloak
#

Ok thank you.

somber heath
#

A person can only have so much sourdough.

serene glade
#

True

#

But this was just a rustic loaf

velvet urchin
#

.*Sent:

#

[abcd]

whole bear
#

()

velvet urchin
#

([\s\S]*)Sent:

naive cloak
#

Can any1 help make me a basic server/client using python

#

^!

#

socket programing

#

socket interface and client-
server applications

ocean solar
#

Average is alright

#

this is true

#

who does that

#

I'm learning python

#

and also Javascript

#

on upwork

#

I can do that 🙂

#

top talent

#

Lil Scrappy

somber heath
#

If it's all zerobytes, superduper compression is elementary.

#

It's not just about the amount of data, but the format and the content.

#

How entropic the data is.

#

How much redundancy you can take advantage of.

#

!e py import gzip data = bytes(1048576) print(len(data)) data = gzip.compress(data) print(len(data))

wise cargoBOT
#

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

001 | 1048576
002 | 1051
somber heath
#

So that's taken 1 megabyte of data and compressed it down to be just over a kilobyte.

#

!e py import gzip import numpy as np data = bytes(np.random.randint(0, 255, 1048576)) print(len(data)) data = gzip.compress(data) print(len(data))

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job timed out or ran out of memory.

8388608
somber heath
#

Hang on...am I stupid? Probably.

#

Whatever.

safe robin
#

#chose your own adventure
from asyncore import loop
from timeit import repeat

answer = input ("Hi, welcome my name is EVE, are you ready for an adventure (Y/N) ")
if answer.lower().strip() == "N":
answer = input ("Welp this is kinda awquard than, No offence to you but why would you volentarily chose to click this file clearly name Chose your own adventure if you don't want to play, it is clearly named right? (Y/N) ")
if answer.lower().strip == "Y":
print("Bro your kinda slow")
else:
print("oh, did the programer not name it properly, man hes useless")
else:
name = input(" Great! First off lets grab your name: ")
print(" Nice to meet you", name + " Now all we need is a password so we can put you on the leader board")
password = input ("Insert your password here: ")
print("Just cheacking you want your password to be", password +" (Y/N) ")
if answer.lower().strip == "N":
answer = input ("Okay do you want to start over? (Y/N) ")
if answer.lower().strip == "Y":
print("Okay :)")
repeat()
else:
print("Cool lets get started!")
else:
print("Okay lets get started!")

velvet urchin
#

```

crimson girder
#

triple backticks

#

same key as ~

crimson girder
#

also, .strip() is a method, not an attribute

#

so you need to call it, with ()

#

it wont

#

lol

#

@whole bear my guy you can't be comparing .lower() to a capital letter

#

also there's multiple instances where () are left out of .strip

#

and there's a space before the input (

#

which doesn't work

#
from asyncore import loop
from timeit import repeat


answer = input("Hi, welcome my name is EVE, are you ready for an adventure (Y/N) ")
if answer.lower().strip() == "n":
    answer = input ("Welp this is kinda awquard than, No offence to you but why would you volentarily chose to click this file clearly name Chose your own adventure if you don't want to play, it is clearly named right? (Y/N) ")
    if answer.lower().strip() == "y":
        print("Bro your kinda slow")
    else: 
        print("oh, did the programer not name it properly, man hes useless")
else: 
    name = input(" Great! First off lets grab your name: ")
    print(" Nice to meet you", name + " Now all we need is a password so we can put you on the leader board")
    password = input("Insert your password here: ")
    answer = input("Just cheacking you want your password to be", password +" (Y/N) ")
    if answer.lower().strip() == "N":
        answer = input ("Okay do you want to start over? (Y/N) ")
        if answer.lower().strip() == "Y":
            print("Okay :)")
            repeat()
        else:
            print("Cool lets get started!")
    else:
        print("Okay lets get started!")
#

that might be helpful.

#

@snow cedar yep