#voice-chat-text-0
1 messages · Page 19 of 1
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
On in a sec
Information about the effectiveness of the polio vaccine and how long it provides immunity against poliovirus.
Tekken or Taken? You decide!
The world's best fighters are invited to DOA, an invitational martial arts contest. There, four female rival fighters will have to work together to uncover the secret that the organizer of the tournament is trying to hide.
Director: Corey Yuen
Writers: J.F. Lawton, Adam Gross, Seth Gross
Stars: Jaime Pressly, Devon Aoki, Sarah Carter
#MoviePre...
😂
!stream 674089971170148359
✅ @peak parcel can now stream until <t:1664805948:f>.
@peak parcel PTT, adjustment to your mic threshold or turning on of Krisp would be personally appreciated.
Sonic.
Mario Bros.
hi
how did Pure get a while discord profile?
Beta thing.
ah
If he dies, would he get a John Cenotaph?
apparently john cena can also spit rhymes: https://www.youtube.com/watch?v=Htn9nmFO4cY
John Cena makes his Royal Rumble Match debut while rapping to the ring.
WWE Network | Subscribe now: http://wwe.yt/wwenetwork
Follow WWE on YouTube for more exciting action!
Subscribe to WWE on YouTube: ...
You Can't See Me is the debut studio album by WWE's wrestler John Cena and his cousin, Tha Trademarc. It was released on May 10, 2005, by WWE Music Group and Columbia Records. The album features guest appearances from Esoteric and Bumpy Knuckles, who are featured on several songs throughout the album. The album production was handled by James Mc...
here it is
John Cena has a whole album...
Is there a Salt's ghost?
Yeah but he's kind of bitter at the whole situation
I want to meet the ghost where I can find one ?
Ghost are found at beach ?
In the shells.
That's demon (Jinni) right ? not a ghost
Niiiice
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."
"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."
Subscription and open access journals from SAGE Publishing, the world's leading independent academic publisher.
You do realize people will just move down
that's fine
Want me to just drag you, you lazy bastard?
that would be a clear abuse of mod powers
you wouldn't break protocol in such a flagrant way would you?
pleiotropic effects
Back in a moment
hi
!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))```
@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_']
@whole bear
@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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
2022-10-04 05:01:31.647485
!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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5802 days, 5:09:25.388573
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)`.
!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.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5802
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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
15 10 17
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?
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 2
002 | 1
!e py print(divmod(9, 4))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
(2, 1)
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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['2008', '09', '04']
!e py date = ['2008', '09', '04'] year, month, day = (int(each) for each in date) print(year) print(month) print(day)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 2008
002 | 9
003 | 4
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])
@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
!e py things = ["apples", "pears", "oranges"] print(things[0]) print(things[1])etc
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | apples
002 | pears
Assignment is also possible where the sequence is a mutable one.
!e py things = ["apple", "pear", "orange"] things[1] = "banana" print(things)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['apple', 'banana', 'orange']
!e py text = "abc" text[1] = "d"Strings are not mutable. Lists are.
@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
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.
!e py text = "abcdefghijk" print(text[3:7])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
defg
lower case on the dob
Python Enhancement Proposals (PEPs)
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!")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Try again!
!e ```py
try:
a, b, c = "abc"
except ValueError:
print("Try again!")
print(a, b, c)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
a b c
!e py print("1-2/3".split("-"))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['1', '2/3']
!e py a, b, c = "abc" print(a) print(b) print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
use datetime module
!e py a, b, c = ["apples", "pears", "oranges"] print(a) print(b) print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | apples
002 | pears
003 | oranges
"Variable unpacking"
I am on a mission to declutter my email. Once you get past the unsubscribe/filter stage, the next thing is to get the important information in a different way. Once I started down this path, however, I discovered this approach allows me to have fewer tabs open, and even concentrate more. What is this magic? …
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
use this to copy
@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??
i am stuck on the part where you run pyhon sctipt to run command over linux terminal and get the output
u mean how to run .py in linux?
Ideally, you wouldn't need to grab anything from stdout.
no i do not know how to run terminal command using .py file and get the output
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
@sly gale bhai baat kar
i will be using the .py file as a systemd service so it not wourk getting it from stdout
Not the terminal pipe.
is all the steps u said in single script?
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...
If you're using an event framework, like asyncio, there should be a repeating scheduling thing
I'm off.
@sly gale bhai kidar se he?
spy x family season 2 dekh raha he bhai?
sound very low
i will watch season 2 when there is a dub
i like them
hey
Hiii thank you so much for the answer
But the channel is close
I don think I understand I am very new to python
Do u mind I ask it here?
Or you could grab another help channel.
I already took 2 today😂 is it alright?
I cant hear you
i think there's something wrong w my audio setting @fleet tide
lemme check some stuff
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
u should run it directly on the terminal hun
cd
python calculator.py
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
cd ~/Desktop
cd ~/Desktop
or cd ~
does it work
can you pwd
pwd
to know where you are
yes
python cal.py
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
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.
@whole bear https://www.youtube.com/watch?v=MCgt6If5VF4
"The Tower Country : —Freelance—"
Kino No Tabi Episode 0 English Sub HD
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
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 | "."+
```...
!e py import random result = random.randint(1, 100) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
31
im actually preparing for class tomorrow so I won't be able to respond for a while
!d socket
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.
!d asyncio
Hello World!
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
asyncio.run(main())
```...
ok guys gtg need to focus brb
!e py import socket print(dir(socket))
@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
Corey Schafer, YouTuber.
@rugged root
#!
#!/usr/bin/python3
#!/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
.
!stream 915896339672498237
✅ @fleet tide can now stream until <t:1664891364:f>.
screan shot
!e
print(5 / 3)
print(5 // 3)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1.6666666666666667
002 | 1
@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
!e py import math a = 50 ** .5 b = math.sqrt(50) print(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 7.0710678118654755
002 | 7.0710678118654755
x = input(int())
y = input()
if y == "//":
print(x ** 0.5)
continue
z = ...
@rugged root are you using windows for linux?
Windows
√radix
I prefer it
I was asking what field do you guys use Python for
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?
Steam does a good job on Linux
@somber heath but it's hard for gaming
@neon orbit
once I used Ubuntu for gaming it did not went well so I switched back to windows
Because people target Windows to the exclusion of other things. That's not Linux's fault.
@winged shard
@winged shard
search for Linus Torvalds Nvidia
my friend use POPos and it's great for gaming
remove '
hmm
If you're going to use quotes, do it around the whole thing. cd '~/programming projects'
@neon orbit for web go for JS
still not working
@neon orbit have you tried mobile app
ill try
Thinking about all that
check out Flutter it's great
I kinda want programming to be fun again and it was back when I was creating bots and all
So would just go back to it
One of the best resources I've found for JS
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...
bash: cd: ~/programing projects: No such file or directory
cd programing projects
freeCodeCamp is the best for every programming topic
cd and press tab
@neon orbit just so you know flutter now support web too
do any of you guys watch anime?
@ripe lantern dub worse man
@peak copper Marval is evolving backwards
I read book to
too
I'll just watch it without understanding
@neon orbit data science job is like create model for company that help them how their data is important
earlier when I was learning English watched like 50 + series and movies without understanding them fully
it's worth it
I have one year experience in data science job
just so you know guys GUI mean A*s in language that I speak .
Oh that's a bad sign
Ah gotcha

XPath
@amber raptor what's the issue with xpath?
:hemshake:
# 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
socket.SOCK_STREAM
try //img[contains(@alt,'ghosts and bones')]
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)
What library has that .xpath
so you want the image url ?
exactly
s.listen(5)
Below returns: [<Element img at 0x7f9e2e219890>, <Element img at 0x7f9e2e2198f0>]
result = doc.xpath("//img[contains(@alt,'ghosts and bones')]")
@rugged root
result[0].getAttribute("href")
does this work
trying
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'
ok got it wait
Like pumpkin
Doot
skeleton
try this xpath //div[contains(@class,'primary-image')]//img[contains(@alt,'ghosts and bones')] it should return only 1 object
on it
same ouput: [<Element img at 0x7f9e2e2176b0>, <Element img at 0x7f9e2e217710>]
can you tell me which pip install you do for doc?
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)
doot
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")
html is from some specific lib?
Hiii everyone
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")
Why is ur name cashcrab
currently have that and it returns a list of pointers
s.connect((socket.gethostname(), 5589009))
because i love indonesia
pyinstaller?
result = doc.xpath("(//*[@class='comp mntl-card-list-items mntl-document-card mntl-card card card--no-image'])[1]//div[contains(@class,'rating-count-number')]/text()")
print(result[0])
['\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
Muppet Songs
Want to see more Muppet Songs?
Check out the Playlist! https://www.youtube.com/playlist?list=PLnfTpIrAsxxWspjh9oN2oM1Hu4VcysZXz
Thanks for viewing. Please Subscribe.
yes you can remove them using regex
!e
test = '\n808\n'
int(test)
@rugged root :warning: Your 3.11 eval job has completed with return code 0.
[No output]
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']
the Copacabana was not as good as I remember as a child.
Muppet Songs
Want to see more Muppet Songs?
Check out the Playlist! https://www.youtube.com/playlist?list=PLnfTpIrAsxxWspjh9oN2oM1Hu4VcysZXz
Thanks for viewing. Please Subscribe.
['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']
At least "I go to Rio" still holds up
Welcome to a tutorial on sockets with Python 3. We have a lot to cover, so let's just jump right in. The socket library is a part of the standard library, so you already have it.
Source code and text-based tutorial: https://pythonprogramming.net/sockets-tutorial-python-3/
Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w4...
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
No worries!
do any of yall know how to use beautifulsoup?
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?
is sublime text begginer friendly?
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
hm
sublime looks awsome
how do i get the number
Shop NF Panelboard Interior, Main Lug, 600A, 480Y/277V, 3-Phase, 42-Circuit, Enclosure Size 20 W X 56 H X 5-3/4 In. D By Square D (Schneider Electric) (NF442L6C) At Graybar, Your Trusted Resource For Panelboard Interiors And Other Square D (Schneider Electric) Products.
From this website
You'd grab it using the price class tag
i luv u
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
@grand basin.....
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
https://www.graybar.com/website-terms-of-use Section 5 for Additional use limitations:
(v) using any automatic or manual process to monitor or copy any portion of this Site without Graybar's prior written permission;
what
lol how you even find this
I've looked through dozens of ToS
this is wild, i have never in my entire life cared to read this part of the website
XD
or any website
Understandable
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
Most online storefronts do
@molten pewter all western countries
im going to explode
every western country view their job as their identity
@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
Are we saying 2.5% of folks unemployed and looking or just total those of age but without a job
i think total..im not sure, and the number could of been 2.75, but its in that area
the second option sounds more right
but you know how they try to hide numbers/true or exposing figures to them
think about how little billionaires there are in the world
Still under median
keep the faith 🙏
money isnt happiness anyways
@rugged root true
Well not necessarily happiness sure
But I'd like to not be going paycheck to paycheck
@amber raptor he didnt man
I think this website is okay to use
the interest rate is just higher now
I dont see any issue terms of service
it might be a good long term investment
from bs4 import BeautifulSoup
import requests
page = requests.get(URL)
soup = BeautifulSoup(page.content, "html.parser")
price = soup.find_all("p", class_="product-details__price")
print(price)
Thats the code I use
whats upwork?
so does this guy create websites?
why wont this workkkkkkkkk
I'm not sure off the top of my head
@stiff meteor i wouldnt go to college
frontend , backend and cybersec @amber raptor which one of these do you think would be most profitable?
👀
over say 10 years
econ + tech is path to most money
so like blockchain all that stuff?
so being a software engineer is knowing about everything?
like fintech for banks
yes
python will be v useful tho
spec there
its hard to manage your time doing it this way though 🤣
but i guess youre right
not committing to one thing, gives you the most broad way of being successful
just go to college in general tho, humanities courses are under-appreciated and actually quite important
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
Browse detailed statistics & rent trends, compare apartment sizes and rent prices by neighborhood.
Game of Survival it is
and I play Rust
Aren't we just random people to each other?
well except @rugged root
fun fact I'm more nice to strangers than to my family
xd
I don't lie and Fifth Amendment
Wait how am I not also a random stranger?
most of us know you
My father bought our house for 7357.16 usd
We have 3 mango trees and flower garden
Ooo, neat
I'll look for Haunted houses to get better deal
hmmm good problem statement for data analysis
more interesting will be how many of them got the insurance
True
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
Clinical depression makes stuff like that difficult, even with money.
http://www.itunes.com/thelonelyisland
The new single from The Lonely Island's debut album
"INCREDIBAD"
In stores now!
The Lonely Island is Andy Samberg, Akiva Schaffer & Jorma Taccone.
(C) Universal Republic
I see only 2 channels for vc
!paste
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.
What's it doing that it shouldn't or what isn't it doing that it should
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
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: []
@amber raptor Line 45. You're overwriting the result list every time you go through the loop
I mean like
The list you define on 14, you're then overwriting on 45. Not sure what you're wanting to do there
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
!stream 716436228828037120
✅ @stiff meteor can now stream until <t:1664906459:f>.
img {
border-radius: 50%;
}
img#step1 {
height: 10em;
width: 10em;
}
!stream 716436228828037120 10M
✅ @stiff meteor can now stream until <t:1664907235:f>.
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
I don't think it's too bad
And considering the number of trolls and raids we've had, I'd rather go on the more strict/cautious side
Right right
@tardy lynx check the channel description here
!e
ham = ["1", "2", "3", "4"]
print(int(ham))
@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'
nm -p ....
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__
brb
be back i 10 dijk
mr @lapis hazel i am back
@lapis hazel please dm me if you come back
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
my age is your_age * 4
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
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...
can someone help me
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;
}
});
Hey @amber raptor!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
rating_node = r.xpath('.//span[@class="review-star-text visually-hidden"]')
if len(rating_node) == 0:
continue
else:
rating = rating_node[0].text_content()
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
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:
U ALLLL FRAWM EUROPE
Ur all from europe
AUSTRALIA
aint no way one of u guys from the states omg
@pulsar mountain 👋
hi brudda
I wonder what's going on in Voice chat
Conversation.
lol yeah
You're hearing what we all are, I presume.
I can speak Hindi
I will generally direct people to Corey Schafer's YouTube videos.
You'll want to find one on classes.
class MyClass:
pass
class_instance = MyClass()```
Ok.
I need help
Everything in Python that isn't syntax is an object. Every object is of a type/class.
I have to give presentation on oops
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.
What's up?
I told my manager I don't know oops concept
can you explain Mixing Boolean and Comparison Operators
Order of operations issues?
Whole numbers in Python are objects of class int.
Strings, text...they're of class str
Lists, of class list
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.
I'm still trying to find a cheap robot for coding.
Data analysis, in Python, people will often use Numpy and/or Pandas.
How do you analyse text data
How much text?
I am learning pyspark
What sort of analysis?
Just told to do eda
Eda?
Exploratory data analysis
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.
You could ask in #data-science-and-ml. Check the pins, too.
For now I just have to give presentation on oops concept
A good programmer is a lazy programmer.
The less code you can write a program in, the simpler you can write it, the better.
From what I hear that is right
One of Python's design axioms is "Don't reinvent the wheel"
And less code less bugs
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.
Hey is there any way I can speed up the process of being voice verified
@whole bear You'd want to talk with a bank about business options in that vein.
Maybe.
Alas, no.
wish i can but I was hopping for some help
With?
socket programming
#❓|how-to-get-help is one option.
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.
Ok thank you.
A person can only have so much sourdough.
()
([\s\S]*)Sent:
Can any1 help make me a basic server/client using python
^!
socket programing
socket interface and client-
server applications
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
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))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1048576
002 | 1051
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))
@somber heath :x: Your 3.11 eval job timed out or ran out of memory.
8388608
#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!")
```
first mistake i see is comparing something after .lower() to a capital letter
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


