#voice-chat-text-0
1 messages · Page 959 of 1
This guy marco is too smart to be talking on this discord server
he should be on a night time talk show
ty
Uhm no problem 😅
yeah im here
toutou get closer to your mic
and talk at the same volume
ok i trust @molten pewter
no
i bought ADA at 2.26 and sold it at 1.43 xD
youre really low
the only i profited from are btc and doge
i know i laugh at my self lol
it will in the next cycle
dosent it go up in cycles?
or you mean the very bottom of that cycle?
yea i wrote 8000
not 80
but just because you dont see it going under
dosent give me a reason
thats just speculation
if those people like elon musk and that guy who borrowed like 500 billion to buy it michael something , because the percentage he thought would go up more than the interest. If they bought it at 30-35k, will they ever let it go under this?
dosent that make them look like bad business men?
theyre supposed to be the best in the world?
youre in?
you got money in it? 😆
Im too young to buy crypto
and I think I would just use money
@haughty pier you can take a look at my oneliner im working on
print([a := int(input('Amount of numbers > ')), nums := [__import__("random").randint(1, 9) for _ in range(a)], combo := list(__import__('itertools').product(["/", "*", "+", "-"], repeat=a)), nums := list(__import__('itertools').permutations(nums)), f := [([]) for _ in range(len(combo))], [[(f[i].append([(l,n) for l,n in zip(n, c)])) for n, c in zip(nums, combo)] for i in range(len(combo))], f][-1])```
😆
https://www.khanacademy.org/economics-finance-domain/core-finance/money-and-banking/banking-and-money/v/federal-reserve-balance-sheet @shrewd aurora
a beautiful story from the one and only @haughty pier
marco said he needed a break from you guys explaining simple concepts 🤣
i heard rust is quite difficult though
thanks for your help @haughty pier
yes but it is worth it
well "worth it" is relative zzz
@midnight agate what are you guys talking about?
!e
print("".join([(5, '/'), (8, '/')]))
@ocean abyss :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: sequence item 0: expected str instance, tuple found
felix youre my guy @near niche
i like nixos. it is just hard to do julia stuff there
i played with it for a while last year
Cool, I hope they solve that pain point for you in the future
:incoming_envelope: :ok_hand: applied mute to @ruby rapids until <t:1642583546:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
!unmute 821030125898301480
:incoming_envelope: :ok_hand: pardoned infraction mute for @ruby rapids.
print('test')
ok
nice
🙂
class Solution:
def buddyStrings(self, s: str, goal: str) -> bool:
lst=[]
if len(s) == len(goal) and sorted(s) == sorted(goal):
if s != goal:
for m in range(len(s)):
if s[m] != goal[m]:
lst.append([m, s[m]])
lol=lst[0]
xd=lst[1]
s=list(s)
s[lol[0]] = xd[1]
s[xd[0]] = lol[1]
try:
return ''.join(s) == goal
except:
return False
else:
ab=list(map(s.count,[x for x in s]))
if max(ab) > 1:
return True
return False
else:
return False
Potentially on soonish. Have a lot on my plate right now
There's actually a restaurant chain called Steak'n'Shake
They have steak burgers
Well okay
"steak" burgers.
More smash burgers I guess
dogs wouldnt be a fair compairison.. as dogs are not evolved they are breed.. wolves on the other hand..
we just got in and out burgers here... been so long since ive been in cali, i wanted to try it again.. gone twice in the 3-4months its been open.. but i kid you not, line of cars around a block each time.. so still none for me :(
so many chains.. smash, 5 guys, bad daddys, steaknshake, freadys..
a couple others i dont goto.. like crave and someother.. 15$ burger alacart with 5$ fries and a 5$ soda.. like.. umm no
hmm.. the datacenter we use has an entirefloor of backup batteries and 2 outdoor redundant genies
🎶 Genie says "I power radios"/ Genie says "I power lights!" 🎶
5guys was on the first list, the approved list :)
also the datacenter we use, until recently had tatical guards.. ar-15s with them
gym time bbl
Receiving data from a USB port
Storing data in a storage space
By which language؟ and is it possible with Python؟
Intense intents in tents.
What device?
pc?
USB device.
mic and camera
You probably want regular video stream capturing software.
There may be Python solutions, but...don't.
VLC will do it.
I don't know what professionals use.
ffmpeg might
Oh, well...there might be some opencv things.
Yeah. I don't know.
thanks anyway for your time sir
!e print(0**0)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
1
Before building my case and telling my story that I'd be happy to elaborate on further. I'd like to establish that I'm taking a very pragmatic stance. I'm poking looking to be proven wrong. Trust me, I realize my questions are coming from ignorance This is why this topic is so hard for me to brin...
Objects/longobject.c lines 2618 to 2620
if (size_b == 0) {
PyErr_SetString(PyExc_ZeroDivisionError,
"integer division or modulo by zero");```
`Objects/floatobject.c` lines 611 to 613
```c
if (b == 0.0) {
PyErr_SetString(PyExc_ZeroDivisionError,
"float division by zero");```
`Lib/fractions.py` lines 156 to 157
```py
if denominator == 0:
raise ZeroDivisionError('Fraction(%s, 0)' % numerator)```
Python actually does check for zeros for the various types, and raises ZeroDivisionError(s) for them
interesting
I saw Alec using SourceGraph once, and I couldn't ever think of a use for it
It's actually pretty helpful sometimes
Near the end of the lesson, one of my students asks a question about why the values start turning around 0.4 - I made a couple of videos that explain this phenomenon: https://www.youtube.com/watch?v=cDbnPaeZgQ0 (Part 1) and https://www.youtube.com/watch?v=a0ePXSvQuaQ (Part 2)
Main site: http://www.misterwootube.com
Second channel (for teachers...
GitHub's Code Search beta looks neat too
Though it did put all the documentation results first, and make me scroll to get to the results in the source code
I'm learning
I'm using your curiosity as an excuse to learn something new
Mostly just because I can't think of things to learn on my own
Smart managers are good
I want to learn enough so that they hire me
My manager did vendor negations without me, and signed a contract for an extension to a product we don't have
hey mrhemlock
i have a doubt
so i am making a website
so in html i need to create a page
where
i need to show the mysql database on the webpage
@rugged root
how to print a mysql database on a website
Farmers did lose their way of life to steam engines
Yes
At the benefit of more people being able to eat
Now all the people who would be farmers hundreds of years ago do different work.
absolutely
If not for technology, my lineage would still be farmers.
but
you could make an argument that a lot of that work does not lead to any human flourishing
Yes
We have a thermal printer...not worth the cost, just find someone who has one, use it one day for all the important documents, then you will never use it again.
Also I am against owning a printer
I just go to an office store
Printer companies can't make those computer chips that tell the ink cartridges to stop putting out ink
Because of the chip shortage
I manage all our drop shipping (and other bulk label programs)
I've printed hundreds of thousands of labels
Just from the operational perspective -
Thermal printers are a lot less finicky than other printers
No toner cartridges to run out or not connect, no transfer ribbons to twist and tear...
All the mining of cryptos are creating a demand for computer chips
Absurdity
Increase in at home work, people had to purchase computers? Factories had to shut down due to pandemic.
So supply decreased, and demand increased.
a state or situation in which something needed cannot be obtained in sufficient amounts.
Prices have increased in the short-term
long-term prices are decreasing
For computer chips
There are less computer chips in the marketplace than 2 years ago?
"The consumption of chips has skyrocketed because more and more people are buying computers and various electronic devices as they're stuck at home"
@crystal fox does your work supply printers or have any thoughts on the purchasing there of? Trying to find some good portable printers for our auditors when they go out in the field
They currently have https://www.amazon.com/Wireless-Mobile-Printer-Airprint-Compatible/dp/B00NV9LL9Q/
And they're an absolute bear to get set up
Hate them. Every single one that you have has to be installed and set up per machine. We've got like 4 of these printers, so that's 4 installs per auditor
The business wants to maximize profits for shareholders, not maximize production of chips.
What do you have to do on machine?
Print black and white documents
Um
Thermal isn't sufficient
What makes them so hard to setup?
Oh right
So you have to have the printer and the computer there. You can't just install a driver that works with all 4
@rugged root whats the budget ? i found these ... https://www.epson.co.uk/products/printers/inkjet-printers/for-home/workforce-wf-110w
that u can put 3rd pary inks in pretty easily
meaning super cheap printing
Yeah that's on my list of ones to consider
wicked 😉
I'm starting to lean that way
I just want a raspberry pi and a 1080 or 1090
Also, these connect via wifi
Not bluetooth.
we do not supply small printers like that
So they make an ad-hoc connection
You can ... Do you have AD or AAD?
We do but these have to install and establish it for each of these printers
Trust me, I've tried to make it easier
It's just dumb
in a galaxy far far away, long time ago...
Pretttyyyyyyy
I like shiny things.
https://www.reddit.com/r/Office365/comments/s71hpu/when_will_we_see_our_subscriptions_merge_heres_a/
Also these are really cool: https://www.reddit.com/r/DungeonsAndDragons/comments/s7fk8j/little_dragon_magnets_i_made/
hi
hello ?
hello.
De Raspberry Pi 4 Model B 2GB is het nieuwste lid van de Raspberry Pi familie. De Raspberry Pi 4 biedt een baanbrekende toename in snelheid van de processor, multimedia prestaties, geheugen en connectiviteit in vergelijking met de Raspberry Pi 3 Model B+, met behoud van backwards compatibility en ee
bye
Back in a sec
The ultra light wireless mobile printer for professionals on the go. Enjoy fast, effortless printing wherever business takes you with the WorkForce WF-110 wireless mobile printer. Featuring a sleek, ultra light design, this compact mobile printer can be easily transported in bags and briefcases for worry-free printing on the go.
That makes no sense
Install the drivers once
The perfect fit for virtually any space and budget: this LaserJet Pro is ideal for 1–3 users printing less than 1,000 pages per month. Tackle projects with fast printing from HP’s smallest and most affordable LaserJet Pro. With easy mobile printing and a reliable wireless connection, this wireles...
alright Bisk it's not designed to connect to the internet
I TOLD YOU IT WAS USB
all printers are USB
no they're not
all is hyperbole
but most consumer printers are
they're just wank and expect an internet connection
nah, they're increasingly bluetooth / wifi
guys what libraries should I prioritize learning?
go with the one that gives the end user the best and most economical options ... we need to encourage manufacturers putting the end user 1st.
: (
ours not only is wank but also does wank
it wanks ink
leaves smudges on the paper
starry slippers?
... yes
nothing like a hammer to help you install your computer components.
@zenith radish Hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
PC Computer Screws Kit Motherboard Screws Spacers M.2 SSD Mounting Screws for ASUS Gigabyte MSI Motherboards, 21 Pieces M.2 SSD Mounting Screws Kit for Gigabyte & MSI Motherboards Includes M.2 screw and standoff for M.2 slot on ASUS Gigabyte and MSI motherboards; includes optional plastic washers...
@lucid blade same
🙂
Folding@home Statistics
Last Office Hour of the Year!
Massively Multiplayer Online Science
Citizen Science for Serious Gamers
A new innovative platform connecting scientific research and video games to solve complex problems and to enhance gaming experience while challenging the traditional boundaries between science and game expertise. Contribute to science while enjoying your favourite game. It i...
Okay, that's all
The implementation in Borderlands, the folks who made said implementation, and the project it's working with
Oh huh
volunteer, intern, sponsor these words produce a bad feeling in my throat.
2 of the science game integration thingies are in EVE
wut
the only the i heard is that "Brown people are less than white people" when i joined context plz
okay
👀 i believe you
👀 👀 👀 👀
.topic
Suggest more topics here!
i've brought the ducks species wrath upon myself, so 100 duck sized horses instead.
but remember, 1 horse has 15 horsepower, so are you sure you would kick them?
Not at that size
The Cahokia Mounds State Historic Site (11 MS 2) is the site of a pre-Columbian Native American city (which existed c. 1050–1350 CE) directly across the Mississippi River from modern St. Louis, Missouri. This historic park lies in south-western Illinois between East St. Louis and Collinsville. The park covers 2,200 acres (890 ha), or about 3.5 ...
you're right, like the only physics lesson i learned was in Ant-man, "You're a 200 pound man as small as an inch, so when you hit someone you're a bullet" or something around those lines. Sooo, the horses would decimate you
hmmm
You're also assuming that these are regular size horses that were condensed down to be that small rather than horses that were breed or naturally were that small
Like a dik-dik
The Statutes of Iona, enacted by James VI in 1609, was one piece of legislation that addressed, among other things, the Gaelic language. It compelled the heirs of clan chiefs to be educated in lowland, Protestant, English-speaking schools. James VI took several such measures to impose his rule on the Highland and Island region. In 1616 the Privy Council proclaimed that schools teaching in English should be established. Gaelic was seen, at this time, as one of the causes of the instability of the region. It was also associated with Catholicism.[29]: 110–113
That sort of post flatters nobody.
@quasi condor btw which accent you have?
I like it
Estuary English
@lucid blade Rule 4
Use English to the best of your ability.
Caucus and counsel are Algonquian words, that origionate from the word "cau'cau-asu'" and cawaassough
Barbecue is from the Arawakan work barbakoa
Hammock is from the Taino work hamaka.
Anyone here watch
tommy.__init__
What's wrong with Windows 12?
The lack of existing is the big part
Windows 13 for the win
windows 6969696969
i need new funny numbers to make puns of
Existencia is an implementation detail
Autocorrect always suggests Spanish first
Can't you tell I'm trying to use my English today?
I see this is a voice chat that values good old fashioned formality 🧐
It's slang for isn't it
thanks
HTH
#751591688538947646 superiority
What?
yum, py
import yumpy as yp
Fuck, my teacher just said: "So, what is role-playing? We did a little bit of it last Friday"
We were talking about shakesspeare but i took that the wrong way
did i swear im sorry
i have a potty mouth
@lucid blade it's a rule for good reason
In a way, patents promote openness.
The alternative is generally the keeping of trade-secrets.
I think if you got rid of patents total investment in R&D would significantly decrease.
Not if you remove the incentive surely 🤔
we need some kind of patent reform I think, I don't like patent trolls trying to capture value where they have created none...
I miss drama class and doing theater
the world is a stage
Scientific and technical journal articles refer to the number of scientific and engineering articles published in the following fields: physics, biology, chemistry, mathematics, clinical medicine, biomedical research, engineering and technology, and earth and space sciences. Gap-filled total. Scientific and technical article counts are from jour...
I don't think it's a very easily testable claim.
Thomson Reuters Corporation ( (listen)) is a Canadian-American multinational media conglomerate. The company was founded in Toronto, Ontario, Canada, where it is headquartered at the Bay Adelaide Centre.Thomson Reuters was created by the Thomson Corporation's purchase of the British company Reuters Group in April 2008 and is majority owned by T...
Scientific and technical journal articles from The World Bank: Data
this doesn't provide a comparison to other countries. One thing it does say is
we attribute 37 percent of global citations to scientific articles
published in 2013 to China
if so, that's huge, and the fact their publication rate has been accelerating since 2013 would definitely count in my favour
i agree
also this: "y. From 2000 to 2014, the number of faculties increased nearly 2.5-fold while
the number of researchers quadrupled"
Johann Eduard Hari (born 21 January 1979) is a British-Swiss writer and journalist. He has written for publications including The Independent and The Huffington Post, and has written books on the topics of depression, the war on drugs, and the British monarchy.
In 2011, Hari was suspended from The Independent, and then resigned, after admitting ...
lol.. wheres the chart for govt expendeture retractions
ughh.. my brain wont stop spinning.. i need to store dynamically the created plans my program is making.. and even on my small test case is 1460, and I need to store them individually so I can compare then refine them..
bleh.. i think dictionaries might work.. ill just have nested dicts with 528 nested dicts or more.. :(
Could use something like MondoDB to store them
Or some sort of non-relational database
Back later, have to take care of some stuff
Are these all publications?
Or a specific field of study?
I wonder how many publications are from students who studied abroad, then went home, and published others papers in their own country.
Yeah
However I do think that the Chinese culture is promoting practical degrees more than our culture
They are educating more engineers
Yes
China culture promotes STEM majors
Western culture promotes liberal arts a bit too much IMO
I am suppressed
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
does a dictionary need to have a value alongside it always? or can i make a dictionary with keys but no values
essentially having the user input those values which would in return assign to a key
?
check out the set object
$ python -m IPython
You don't need a CS degree to code. You should benefit from a CS degree for a lot of reasons. Don't let someone like me tell who didn't get a CS degree be a reason for you to not do a CS degree if you want to.
a very legit link
is this your guys job?
Some of us have a job as programmers, yes.
thats cool
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
its dumb to ask but may I ask for an elaboration. Ive taken a look at the set object info but well im braindead about what i am trying to do
does a dictionary need to have a value alongside it always? or can i make a dictionary with keys but no values
[2:04 PM]
essentially having the user input those values which would in return assign to a key
essentially I want to return a dicitonary from an input a use might make from a function
I just im not certain what exactly to do
sets are hashed values without keys ... so-to-speak
Can also think of it as a dict but without values
hm
For an item to be a key in a dict, it must be hashable.
Same for something being in a set.
so I guess ill show an ex
def baseball(A,B,C):
def baseball(A,B,C):
Essentially the user would do baseball(1,2,3) and it would be assigned to ABC resectively and would create a dictionary
so baseball(2,5,6) would return
{"A": 2,
again sorry but thats the idea
Unlike some languages (example: JavaScript)
foo = 'spam'
bar = 'eggs'
print( { foo : bar } )
# Output is {'spam': 'eggs'}
Where those other languages (example: JavaScript; NodeJS)
foo = 'spam'
bar = 'eggs'
console.dir({ foo: bar });
// shows object: { 'foo': 'eggs' }
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
py
that blue "this" in the message is a link
'''py
Ezra, look at the bot message again.
```py
Python code here
```
Okay got it but yes I suffer python poverty Im seriouslky struggling haha
Ezra, you can join VC. You don't need to speak, but it will be helpful to listen. #751591688538947646
def baseball(A,B):
one sec
def baseball(A,B):
mydict = {"A":'',
"B":''}
baseball(2,3)
yes
@midnight agate :white_check_mark: Your eval job has completed with return code 0.
python poverty
baseball(10,4,3, 0.4) would return {"A":10, "H":4, "C":3, "D":0.4)
>>> def foo(*args):
... return list(args)
...
>>> foo(1,2,3)
[1, 2, 3]
>>> foo(5)
[5]
>>> foo()
[]
@hardy karma still here?
>>> def foo(*args):
... return dict(args)
...
>>> foo( ['A', 1], ['J', 10] )
{'A': 1, 'J': 10}
dict( (['A', 1], ['J', 10]) )
```
```
def baseball (AB,H, RBI, AVG):
baseball(10,3,4,0.4) would return {"AB": 10, "H": 3, "RBI": 4, "AVG": 0.4}
def x(a, b, c, d):
return { 'a': a, 'b': b, 'c': c, 'd': d }
Help on built-in function input in module builtins:
input(prompt=None, /)
Read a string from standard input. The trailing newline is stripped.
The prompt string, if given, is printed to standard output without a
trailing newline before reading input.
If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
On *nix systems, readline is used if available.
AB = int(input('AB> '))
print(type( whatever_here ))
int( value )
float( value )
return {
'AB': int(AB),
# ...
'AVG': float(AVG)
}
def foo () -> None:
bar()
def bar () -> None:
pass
Others explained the set object as values, but to put that on its head, you might think of it as a dict of keys without values to point to.
which is nearly exactly what you asked for, I think?
@wind raptor will talk here
yeah lol
I'm working on something that I technically can't talk too much about, but I need help because I don't really know how to do it.
I've used it for a while, but not long enough to know how to do what I'm about to do
Yeah...
I need to convert 7 bit strands of binary into raw numbers
for example, they may look like this: 0100100 0011001 0101101 1000110 1100011 0111100
and those come in a single string, then I need to convert each of those into their actual decimal value
No I didn't know that
!e
binary = '0100100 0011001 0101101 1000110 1100011 0111100'
data = binary.split()
data = [int(x, 2) for x in data]
print(data)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
[36, 25, 45, 70, 99, 60]
Oh sweet
I hate to ask, but could you format it so that it joins the results with spaces inbetween them?
' '.join(data)
Oh fuck I forgot the space that's why it didn't work
TypeError: sequence item 0: expected str instance, int found
It thinks that data is trying to be an integer
Yes, I am
Oh weird
!e
binary = '0100100 0011001 0101101 1000110 1100011 0111100'
data = binary.split()
data = [str(int(x, 2)) for x in data]
print(' '.join(data))
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
36 25 45 70 99 60
I need to work with it, I will keep them as integers now that I think of it
Kk
Each of those numbers needs to be able to pull from a certain point in a list of characters, that list will look like this:
abcdefghij
So if I get binary 5, it will go to the 5th character in that list
So if I get binary 5, I need it to print 'e'
0000001, 0000010, 0000011; these are 1, 2, & 3 in 7 bit binary integers.
What will happen with that is that those will be converted to a, b, and c
import datetime as dt
import csv
#Use these functions to convert any string to appropriate Python data type
#Get just the first name from full name
def fname(any):
try:
nm=any.split(',')
return nm[1]
except IndexError:
return ''
#Get just the last name from full name
def lname(any):
try:
nm=any.split(',')
return nm[0]
except IndexError:
return ''
#Convert string to integer or zero if no value
def integer(any):
return int(any or 0)
#Convert mm/dd/yyyy date or None if no valid date
def date(any):
try:
return dt.datetime.strptime(any, "%m/%d/%Y").date()
except ValueError:
return None
#Convert any string to Boolean, False if no value
def boolean(any):
return bool(any)
#Convert string to float, or to zero if no value
def floatnum(any):
s_balance=(any.replace('$','').replace(',','')).strip()
return float(s_balance or 0)
You would just use string indexing
Yeah
#Create an empty dictionary of people
people={}
#Open CSV file with UTF-8 encoding, don't read in newline characters
with open('people_excel.csv', encoding='utf-8', newline='') as f:
#Set up a csv reader with a counter.
reader=enumerate(csv.reader(f))
#Skip the first row, which is column names
f.readline()
#Loop through remaining rows one at a time, i is counter, row is entire row
for i, row in reader:
#From each data row in the CSV file, create a Person object with unique id and appropriate data types, add to people dictionary
newdict=dict({'first_name':fname(row[0]), 'last_name':lname(row[0]), 'birth_year': integer(row[1]), 'date_joined': date(row[2]), 'is_active': boolean(row[3]), 'balance': floatnum(row[4])})
people[i+1]=newdict
#When above loop is done, show all objects in the people list
for person in people.keys():
id=person
print(id, people[person]['first_name'], people[person]['last_name'], people[person]['birth_year'], people[person]['date_joined'], people[person]['is_active'], people[person]['balance'])
Litterally what I was typing lol
Lol
I'm okay, hbu
am fine
i just started learning about python
and i need a little help
as u can see here
whats your problem ?
It's the same thing I get, where if I add an integer to a print with something already in it, it says that it was expecting a string
it should respond me too right
oh nvm
and when i answer 19 it should answer am older right
{"full name": {"birth year": 1999, "date joined": 1981514, "is active": 1, "balance": 600}}
could you copy paste it in here
copy what
answer ?
birth_year = input("Enter your birth year: ")
age = 2021 - int(birth_year)
if age== 19 :
print('me too')
elif age== 18 :
print('am older')
else:
print("You are" + age)
it's because your input at the beginning is actually a string
ok
so it should look like this: float(input("enter your birth year: ")
how to correct it
Or in this case, int
I see that
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
birth_year = float(input("Enter your birth year: "))
age = 2021 - float(birth_year)
if age == 19:
print('me too')
This works on my end @rocky saffron
!d datetime.datetime.strptime
classmethod datetime.strptime(date_string, format)```
Return a [`datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime "datetime.datetime") corresponding to *date\_string*, parsed according to *format*.
This is equivalent to:
```py
datetime(*(time.strptime(date_string, format)[0:6]))
``` [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised if the date\_string and format can’t be parsed by [`time.strptime()`](https://docs.python.org/3/library/time.html#time.strptime "time.strptime") or if it returns a value which isn’t a time tuple. For a complete list of formatting directives, see [strftime() and strptime() Behavior](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior).
birth_year = float(input("Enter your birth year: "))
age = 2021 - float(birth_year)
if age == 19:
print("me too")
elif age == 18:
print("I'm older")
else:
print("You are" + age))
what if i want it to answer You are (whatever age)
there you go @rocky saffron
oh
@midnight agate Try assembly lol
@midnight agate No programming language is "forgiving"
they tell you exactly what is wrong in the console when you run it
Scratch is kinda like that
I guess
LMAOOO that's what I think too
@wind raptor R u afk?
alright guys thanks for tranna help
!e
from datetime import datetime
date_string = '01/01/2020'
date_object = datetime.strptime(date_string, '%d/%m/%Y')
timestamp = date_object.timestamp()
print(int(timestamp))
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
1577836800
@wind raptor Kinda got stumped and found myself reading about cat's with an extra nipple somehow
How would I go about taking each number that I get from my data variable, and then taking that number and pulling it from the position in a string.
For example, if my string is abcdefghijklmnop, and I get data values 5, 5, 9, 2, I want to be able to pull e, e, i, and b
I'm sorry my internet is dogshit and you just sound like bips and boops right now
I heard number and data and that was it
lmaooooo
I have 600 ping just in the call and it will jump every 5 seconds to 1000
!e
string = 'abcdefg'
for x in [5, 2, 3, 1, 1, 2]:
print(string[x], end='')
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
fcdbbc
@wind raptor
are you guys free to help ?
Yeah u prolly should
i sadly
can not type
i mean talk
yeah
the given input is :
is
my
Hello
name
John
and then the order is
32415
the ouput is supposed to read Hello my name is John.
i thought of a .join' '
and also having each one as a variable to input
thats my problem
idk how to get there
how would i read the input ?
so end=''
its from zybook integerated with my college
here is the given
seperate thr order
or split it?
data = sep.split()
data = [int(x, 2) for x in data]
print(data)
string = ABCDEFGHIJKLMNOP
for x in [1, 2, 3]:
print(string[x], end='')
The top bit is what you said to pull it out of binary, the bottom bit takes the string of letters, and then should take the 1st, 2nd, and 3rd characters out of the string and print them out, but instead of doing that it says: name 'ABCDEFGHIJKLMNOP' is not defined
Oh I'm stupid
what about this
I need quotes around the ABCs
order = str(order)
print(word_list[int(order[0])], end='')
print('', end='')
i have that
if thats what you meant
wait one second
i think i got it
i see
thank you chris
you too jj
cya!
no I'm not leaving lol
just telling them that
lol
I can say what I'm doing, but I can't really say exactly how it works. It's just high level encryption
I'm 10 or 20 steps into it and I'm far beyond my own ability
Yeah I can have a simple message like hello and it will come out incredibly different
No, not ceaser cypher
It's dependent on a lot of things actually
That's why I won't explain it, that and the fact that you'd be able to break it
Nope. Personal project
Later I am going to start work on decoding which will be a pain in the ass
because it has to run on a separate client and receive things & shit
@wind raptor
data = sep.split()
data = [int(x, 2) for x in data]
print(data)
string = str(randkey)
for x in [int(data)]:
print(string[x], end='')
wondering, about line 6, can I just plug data in like that or do I need to do something else?
@echo torrent That happens a lot here, and people get fucked over because of it
@echo torrent It's because they're a niche that not many people use
and it's expensive to produce
@haughty pier Love the link to dontasktoask in your bio man
Could I go in DM for a moment?
So I can actually talk
because idk how to convey it in text
wait nvm will be back
Let me know when you're back
Ok cool
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
def validate_website_input(fred):
# Lets check if the website textbox got all info correct
website_input = website_txtbox.get()
try:
if requests.get(website_input) == 200:
print("success")
return True
except requests.exceptions.InvalidURL as e:
print("HEY I AM HERE")
website_error.config(fg="red",text="Invalid Url")
return False
except requests.exceptions.MissingSchema as e:
if requests.get("https://"+website_input) == 200:
print("Sucess")
return True
else:
return False
except requests.exceptions.InvalidURL as e:
website_error.config(fg="red",text="Invalid Url")
return False
except requests.exceptions as e:
print(e)
why em i getting error ? invalidURL
when i already covered it with except
@haughty pier buddy could check plz?
website_input = ""
requests.exceptions.InvalidURL: Invalid URL 'https://': No host supplied
@wind raptor I need one last thing, basically, if x inside of my data variable is bigger than 16, change the variable by subtracting 16
wait no..
I'm unfamiliar with it
How to integrate it
%
My code is... messy right now...
Ah okay
cus in this case, if I get 25, I want to subtract 16 and get 9, where 9 is then represented as the 9th letter of the alphabet
because it's a 16 letter alphabet
but the binary comes out higher
then when it comes out as the 9th letter, it adds a space afterwards to signify that you should add 16 when decrypting
"B Yo n#R §§" is the word "Hello" encrypted in this
So it's basically if 17 or above?
it would be 16
yeah
indeed
!e
for x in [4, 16, 17, 18, 22, 73, 463]:
print(x % 16)
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 4
002 | 0
003 | 1
004 | 2
005 | 6
006 | 9
007 | 15
Hn oM+a B§ = Chris written in this encryption method @wind raptor
Nice
string = str(ekey)
for x in data:
print(string[x], end='')
So right now, I need to integrate this into this, Would I add x % 16 like this?
string = str(ekey)
for x in data:
print(string[x % 16], end='')
Because I need to be able to add this character after each character that it "overflows": Ó
@ember goblet I am in WELL over my head and I can't even describe how much I've learned
ENCRYPTION NOT FUN
@wind raptor Please don't drag others into encryption, I spent so many hours researching just to learn how to say Hello and cry saying it
(I am joking)
string = "0123456789abcdef"
for x in [2, 7, 7, 19, 22]:
print(string[x % 16], end='')
So this will wrap it back around by subtracting 16 if the number is over 16. But I need a way to add a space after characters where this was performed.
Could I just add something like + " " after [x % 16]?
back
Turns out I cannot
@stable axle English please?
@whole bearI have no idea
Call crashed sorry about that
@wind raptor any ideas?
tried changing End="" to End=" " but that adds a space after every character
AFK
@wind raptor Sorry to bother you. but do you think you could help me?
What's up?
i can explain there
it wont let me speak cuz i dont have 50 messages
im good man how are you
gn @ember goblet
yeah sorry if it looks horrible
im in grade 11 and literally just learned this
i tested the placePiece functions and it works as it should
so i know somethings going wrong in the checkMove
yeah
i tried "if gameBoard[0][0] !+ 'X' and gameBoard[0][0] != 'X'"
nah i havent
the if pos == num statement
or the if statements for the gameboard
oh wow
yeah it doesnt print
thats what i did
playerMove
i tried changing it but it was still the same
def playerMove(gameBoard, playerSign):
error = True
print("Please enter a placement between (1-9) that isnt taken!")
while (error == True):
playerPos = int(input())
if playerPos > 0 and playerPos < 10:
error = False
else:
print("Please enter a valid input (1-9)") # Prints error
checkMove(gameBoard, playerPos, playerSign)
ty
I'm back
What was that? audio cutout
Yeah I couldn't hear you a minute ago
sounded like you said something
yes
I don't know if you saw or responded to my earlier message, which I am responding to, but do you think this is possible?
I kinda tried that
and I ended up getting this:
0 1 2 5 5 8
RIP random internet dude
It should have been like this
012 558
The space after the 2 signifies to add 16 to get the original value
For every character where it subtracts 16
yes
0test
1test
2test
6test
6test
8test
Tried something and got this ^^^
I shouldn't get 100
That would have to be manually inputted
I have something set up to stop from that
I can't just say:
if x % 16*
because x from what?
!e
string = "0123456789abcdef"
for x in [2, 7, 7, 19, 22]:
if x >= 16:
print(string[x % 16], end=" ")
else:
print(string[x % 16], end='')
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
2773 6
ahhhh
I thought you meant converting the print into that
alright thank you
not your fault, I hear just about every other word
Best internet in all of 1998
does anyone here know anything about wavelets
Not I
here
no, i havent even started
i just want to
i've been doing it in c++
for 3 years
and made 0 projects
is reading through docs, in a linear way, a good practice to learn any new programming language
most people recommmend, learn what u encounter
learn what u need
@ember goblet u playing dota
what's your medal
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
I've totally stepped out of my skill level and being able to ask questions poorly and have someone still understand them has been a huge help. Goodnight man.
# Helper function for the validate_email_input function
# this will check if the email is actually real
def check(email):
global ifuser
regex = '^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$'
if (re.search(regex, email)):
isExists = validate_email(email, verify=True)
if isExists == "True":
return True
else:
ifuser = None
return False
ifuser = email
return False
def validate_email_input(fred):
email_or_user_input = email_user_txtbox.get()
if check(email_or_user_input):
email_user_label.config(text="Email:")
email_user_error.config(text="")
return True
elif ifuser:
email_user_label.config(text="User:")
email_user_error.config(text="")
return False
email_user_txtbox.config(text="Email/Username:")
email_user_error.config(text="Email is not in use")
Exception: For check the mx records or check if the email exists you must have installed pyDNS python package
isExists = validate_email(email, verify=True)
PS C:\Users\dope\PycharmProjects\pythonProject> pip3 install --upgrade --force-reinstall py3DNS
Collecting py3DNS
Using cached py3dns-3.2.1-py3-none-any.whl
Installing collected packages: py3DNS
Attempting uninstall: py3DNS
Found existing installation: py3dns 3.2.1
Uninstalling py3dns-3.2.1:
Successfully uninstalled py3dns-3.2.1
Successfully installed py3DNS-3.2.1
pip install pydns
hi
hi
def check(email):
global ifuser
regex = '^[a-z0-9]+[._]?[a-z0-9]+[@]\w+[.]\w{2,3}$'
if (re.search(regex, email)):
isExists = validate_email(email, verify=True)
if isExists == "True":
return True
else:
ifuser = None
return False
ifuser = email
return False
def validate_email_input(fred):
email_or_user_input = email_user_txtbox.get()
if check(email_or_user_input):
email_user_label.config(text="Email:")
email_user_error.config(text="")
return True
elif ifuser:
email_user_label.config(text="User:")
email_user_error.config(text="")
return False
email_user_txtbox.config(text="Email/Username:")
email_user_error.config(text="Email is not in use")
Y'all 🇵?!
👋
Personally, I'm an 🆘
There's a difference between "theoretical science" and "applied science"
What did Fisher do?
3 out of 0
Who uses data anymore?
Real theoretical physicist use theorys
Theories*?
Right
With an X
What's wrong with 2?
We don't have food anymore
It's offensive
#Equality - A short film by Neel Kolhatkar
Starring:
Neel Kolhatkar
Caitlin Burley insta - cait.bonnie
Josh Wade
Written by Neel Kolhatkar
Directed by Neel Kolhatkar
Produced by Conceptional Media
Cinematography by Tim Mann
Edited by Adam Krowitz
Sound Design by Can Okan
Tickets to Shows: http://www.andrewtaylormanagement.com/gig-guide-neel...
Panama?
Might have Suez
Suez
"strong wind"
How much wind does it take to move that much weight?
What's an alien's favourite gaming company? Ack! Ack! Acktivision!
Hi everyone
funny
!pep 328
Yeah - But now it affects me
Soon....
I'm getting my vaccination because my mother just died of COVID
The file does not work
All you have to do is load the file
not all too much
it's high enough that it's practically a giant sail
hey
any django experts here?
i need help with registering the model onto admin site
@woeful salmon
do u know how to
No
no
i saw you
you
just
joined
nah
oof that happens
why do you sound like mr.hemlock?
Implicit namespace packages blaze it doesn't have quite the same ring to it.
!pep 6969
PEP 6969 does not exist.
Yarp
i just heard 4 different things at the same time and i'm confused o-o
pypy, pypi, piepie and pipepipe
!pypi life
It copys the description from PyPi
That package doesn't have a description
UNKNOWN
did you know that if an elephants partner dies, the elephant can die from "broken heart syndrome"
not disnake it isn't
read the api docs
.topi
.topic
Suggest more topics here!
hmm
don't try and take on every single language at once, try and master one language before moving on
QUICK @rugged root IS IN AFK START SHITPOSTING MEMES
bleh.. so I sprinted ahead with some code.. which is okay, it'll be useful later.. but i was so happy to figure something out when I was stuck.. that I forgot to take into account a variable.. so.. another rewrite.. yay
@dense ibex https://python-poetry.org/docs/cli/#version
Commands You’ve already learned how to use the command-line interface to do some things. This chapter documents all the available commands.
To get help from the command-line, simply call poetry to see the complete list of commands, then --help combined with any of those can give you more information.
Global options --verbose (-v|vv|vvv): Increa...
exactly
So I’m ultra bad
@rugged root dw, we got it
that guy's posture....
his shoulders look like they're gonna drop o- o
👋
Nice nice
My brain is too smooth to understand that 
But you're able to hear us right?
Weird
ik love how stable discord is xD
Gum and string
🍞
Annethony.
When i write "flask run --host=0.0.0.0" i can use others devises to connect to the server, but how, which server it use ?
^ dmenu @quasi condor
In the Internet Protocol Version 4, the address 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non-applicable target. This address is assigned specific meanings in a number of contexts, such as on clients or on servers.
thanks
full room i wasnt expecting so many people to be active in this server
its nice
i did something in python and i felt proud of myself
uhm i just followed a code and didnt get completely confused lol
huge lmao
im trying.
yeah
how long have yous been doing this for. dealing with python
In the context of servers, 0.0.0.0 means all IPv4 addresses on the local machine. If a host has two IP addresses, 192.168.1.1 and 10.1.2.1, and a server running on the host listens on 0.0.0.0, it will be reachable at both of those IPs
that's the tldr
Makes sense ^
i've been doing python for 2 years now xD i still don't use it alot
don't have alot of tasks where python would be useful
most i use it for is for small scripts or when dealing with excel / csv (cuz pandas)
I want to learn so I can add it to my technical belt
hopefully this momma will land something decent soon
i'm learning rust rn for the same reason xD
i'm never gonna use it... but its nice to know it 🤷♂️
also i might use it in the future since web dev in rust is getting better :x
just gotta wait for rust community to make an express clone like go did for Fiber
Naadam (Mongolian: Наадам, classical Mongolian: ᠨᠠᠭᠠᠳᠤᠮNaɣadum, [ˈnaːdəm], literally "games") is a traditional festival in Mongolia. The festival is also locally termed "eriin gurvan naadam" (эрийн гурван наадам), "the three games of men". The games are Mongolian wrestling, horse racing, and archery, and are held throughout the country during mi...
🤣
Tahtib (Egyptian Arabic: تحطيب, romanized: taḥṭīb) is the term for a traditional stick-fighting martial art originally named fan a'nazaha wa-tahtib ("the art of being straight and honest through the use of stick"). The original martial version of tahtib later evolved into an Egyptian folk dance with a wooden stick. It is commonly described in En...
If the 1st football championship took place in URUGUAY on July 13th 1930, the first time ever Modern Tahtib (MT) Tournament took place in Paris on May 14th, 2017 hosted by the mayor of Paris (5th) and sports authorities, then in Cairo on July 1st, 2017.
A MT Tournament is of 4 CUPS, The TEAM Cup is given to the higher combined rating of the four...
Is there perhaps a website or channel I should follow if I’m new to python
i was thinking how'd hemlock not make a that's what she said joke there
apparently he's just not here
I miss these
Arnis, also known as Kali or Eskrima/Escrima, is the national martial art of the Philippines. The three are roughly interchangeable umbrella terms for the traditional martial arts of the Philippines ("Filipino Martial Arts", or FMA), which emphasize weapon-based fighting with sticks, knives, bladed weapons, and various improvised weapons, as wel...
😐
there were some guys at my old university's martial arts club that did stick fighting drills. I think it was escrima. They taught me a little bit but I'm not sure I would do very well in a stick fight on the street.
Senator Ted Stevens talking about the Net Neutrality Bill
With a jump to the "Series of Tubes" quote
hmm, so he was using an analogy, because he started off by saying the internet isn't a "truck"
Yeah. I did rewind a bit more than necessary as well.
context is good, I know more about the context, thx.
i love the us border patrol show
@crystal fox can you send a picture of the starry home slippers/uggs again?
😢
Dune World: Directed by Mark Polonia. With Samantha Coolidge, Ryan Dalton, Drew Patrick, Houston Baker. A deep space crew takes a job on a mysterious remote planet. A crash landing strands them on the hostile surface. Soon they find out what creatures live there, and the hidden fate of the crew before them.
https://www.imdb.com/video/vi746636057?playlistId=tt15331462&ref_=tt_ov_vi this has made for TV vibes
@quasi condor Looks like a power rangers intro back in the days xD

