#voice-chat-text-0
1 messages · Page 912 of 1
Shark Tank i assume
Banks want their money back, investors want to triple or more their initial investment with profits
or to control the company
@primal yacht Talking about the difference between business loans and investors
ah
It gets a bit more complicated with start ups and different funding rounds
That's a 1.6 M evaluation... better be able to back that up
Opal you should write cartoon jokes
http://www.allhandsfire.com/Fire-Extinguishers "Eat, Fry, Love" is presented by William Shatner and State Farm. It is a turkey fryer cautionary tale with excellent video of the dangers associated with using turkey fryers. It shows how fire can rapidly intensify, spread, destroy and cause serious injury. Enjoy this video, learn from it and st...
NOTE: I DO NOT OWN THIS VIDEO! This was originally uploaded on the State Farm YouTube channel but was, for whatever reason, taken down. Such a tragedy is unacceptable. Therefore I have recovered the video and reuploaded it here for your viewing and listening pleasure. Enjoy, have a good Thanksgiving, and remember: only you can prevent turkey fry...
MELODYSHEEP is John D. Boswell, a Washington State based musician and filmmaker.
See more at melodysheep.com
MP3: http://www.symphonyofscience.com
My own musical tribute to two great men of science. Carl Sagan and his cosmologist companion Stephen Hawking present: A Glorious Dawn - Cosmos remixed. Almost all samples and footage taken from Carl Sagan's Cosmos and Stephen Hawking's Universe series.
RIP Dr. Sagan, you will be missed!!
This song is ...
I made a fake cheese name generator. It spat these out. Dunbery Stronnes Sardalet Cenalan Wens Hushirene Royalp Tau Yarre a l'Aubbe Dieur deddanchees Dieuilla Feuille Striege Druffe Bano Neuffalotte Gex Estraliano Richk Anne La Valleno Yarra l'Autu Fermignollette Raclet Ber j Yarre-V Style Ageddano Austeriche Kadc Coldt Fouries Meyeng Che Buch Aveynierit Gueratyrintalette Serreg Adoberda L'Ec
Cheeses.
Like some ML thing?
Not quite. More statistically weighted random choice of groups of letters.
I have no idea what is going on
I am going to cry right now
I'm very confused as to what you were asking, that's all
Let me explain you
I shifted home recently
My room is like far away from my mom’s room
And her hand is not well
https://github.com/lucidrains/DALLE-pytorch @zenith radish
For every extant grouping of two letters, count the groupings of three letters that appear after them. That's the weighting. Start with a random length two seed, choose random length three, weighted, from its availables. Add to seed.
She can’t get the Ac remote
So on until end of word.
Ok
My mom hands aren’t really good recently, If she wanna Turn off the Ac or Lights or Fan it is hard
She is in bed right now
Would Smart Home Can be applied for thsi situation
@fossil forge
No worries
can anyone help me
The conversation hops around
Bring up the idea of contacting your local disability services provider and/or electrician for suggestions. Large switches can be one thing that can be installed in some situations.
i don't have a single clue
@sinful igloo
Okay but what's your actual question, Faro? Like are you having an error in your code, are you having trouble figuring out where to start something, etc.
It's much better to ask here so that more people can see your question and help
Error in my code
psychedelic rock i love it too..
can i post the whole code
!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.
!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.
can you mark me there to the channel
Traceback (most recent call last):
File "C:\Users\farsc\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\farsc\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\farsc\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/farsc/AppData/Local/Programs/Python/Python310/AI.py", line 5, in <module>
driver = webdriver.Edge()
File "C:\Users\farsc\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\edge\webdriver.py", line 56, in init
self.edge_service.start()
File "C:\Users\farsc\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'MicrosoftWebDriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687
Yes
I have downloaded it
Thoughts from Ryan Hoffman, an experienced team leader, software architect and developer.
webdriver
i can not explain i can better explain it with talk
writing to much time
it takes to much time to write
bro why is everyone muted if joining new into the server makes no sense
Then they can wait for 3 days with more accounts
It's a speed bump to filter out the badly behaved...
So can you take it away from me?
I have no power here, no I cannot.
Watch out for AAron on Stackoverflow, there he is like a Valinor
superuser perms don't necessarily follow your accounts from servers to servers, go figure
Hence why I'm not an Operator on all Minecraft (Bedrock) servers and have FTP access to them all
And they provide no credit?
I'll be back in a sec, going on a delivery run.
can someone help me
@haughty pier What for questions when the answer is no longer valid for modern systems?
I have postet in code help voice 0
but this is for the normal VC0, not the help VC0
Remember the "parse HTML with regex" question @haughty pier ?
Not all accepted answers are even close to good
brb
Hey
again the same bug . someone is talking but I can't see the green light turning on anywhere xDD
is someone else having this bug as well? lol
Sometimes I hear people talking but they’re not in the vc
I really hope this is also a bug
well. I actually guess they are but I'm just not seeing the light turning on
it happened with another mate that is here on the channel
and I was so annoyed I've installed discord ptb
xD
ahahah. now I've installed the normal discord program and I've fixed the problem
xDDDDDDD
Ah the classic turning it on and off again :’)
classic nice programs that end up being bought by tech titans to ruin the future patches
Well anyhow gtg guys thanks for the conversations as always
@vocal raven
Thanks
Hi Guys, I am participating in the django workshop. Got to wait til I get 50 messages so I am going to have to chat here
You asking me?
I am not sure. I dont have a smart home
@rugged root do u know how to uplaod sublime packages on package control
You probably should look at google home, Alexa, etc
My friends dad uses alexa and can turn lights on by asking alexa
Hey guys, whats the best choice for a SQL database hosted on my local machine
Not off the top of my head, no
oh ,
@vocal raven https://www.city-data.com/crime/crime-Springfield-Missouri.html The crime stats I was talking about
How is this 2019 stats?
… Anyways, still bad, if not worse, for these days.
https://www.city-data.com/crime/crime-Portland-Oregon.html
@sinful igloo . Can you write your question here?
Ok
What type of Hardware do I need for Smart Home
For now we can do for light and fan
Ig
Light and Fan is the bases of a bedroom
So if I do light and fan first It would be much better
@twilit stone are u making an Dictionary?
these past few months have been magical 🥺
watch part 2? https://bit.ly/3m4EEmR
new merch! https://linktr.ee/feedingsteven
follow arryn? https://bit.ly/2VlFoJn
follow my doggo? https://bit.ly/3iu6WF7
stevens insta https://bit.ly/3tho1G8
arryns insta https://bit....
Muffin Time: the asdfmovie card game! Out now! http://MuffinTimeGame.com
asdfmovie merch (http://sharkrobot.com/asdfmovie)
More asdfmovie (including the songs)! https://www.youtube.com/playlist?list=PL3A5849BDE0581B19
asdfmovie1 animated by James 'GlassCake' Cunningham (http://youtube.com/glasscake)
asdfmovie2 / asdfmovie2: deleted scenes / asd...
patreon: http://patreon.com/billwurtz
spotify: https://play.spotify.com/artist/78cT0dM5Ivm722EP2sgfDh
itunes: http://itunes.apple.com/us/artist/bill-wurtz/id1019208137
twitter: http://twitter.com/billwurtz
instagram: http://instagram.com/notbillwurtz
donate: http://paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_but...
yes I am going the dictionary way (TickerStore) and then on each key I am adding a TickerData (3 deques) one for each type of row
class TickerData:
__slots__ = "ticker", "quotes", "bbos"
def __init__(self, ticker: str):
self.ticker = ticker
self.trades = deque()
self.quotes = deque()
self.bbos = deque()
class TickerStore:
def __init__(self):
self._tick_store: Dict[str, TickerData] = {}
def get_tickers(self):
return self._tick_store.keys()
def ticker(self, ticker_name):
return self._tick_store[ticker_name]
def add_trade(self, ticker: str, row):
try:
td = self._tick_store[ticker]
except KeyError:
print(f"ticker not in tick store, creating ticker data {ticker} ")
self._tick_store[ticker] = TickerData(ticker=ticker)
td = self._tick_store[ticker]
td.trades.append(row)
def add_quote(self, ticker, row):
try:
td = self._tick_store[ticker]
except KeyError:
print(f"ticker not in tick store, creating ticker data {ticker} ")
self._tick_store[ticker] = TickerData(ticker=ticker)
td = self._tick_store[ticker]
td.quotes.append(row)
def add_bbo(self, ticker, row):
try:
td = self._tick_store[ticker]
except KeyError:
print(f"ticker not in tick store, creating ticker data {ticker} ")
self._tick_store[ticker] = TickerData(ticker=ticker)
td = self._tick_store[ticker]
td.bbos.append(row)
OH MY GOD
Ive just learned that python 3.10 is now supporting switch case statements
@amber raptor what about XMR? or the new one thats coming out called Pi thats trying to solve Bitcoins problems
Example:
match status:
case 400:
return "Bad request"
case 404:
return "Not found"
case 418:
return "I'm a teapot"
case _:
return "Something's wrong with the internet"```
I really wouldn't buy bitcoin because there is only a finite amount of bitcoin
XMR has a theoretical infinite amount of coins
ALSO ALSO, NFTs are a scam
Hi
Well basically
I am a diabetic
and blood sugar is hard to predict
so i want to take all of my sensor data
and then predict my future blood sugar
In order to prevent low blood sugar
Oh I see, Heath profile that makes helpful predictions/recommendations using ML
Yes
I have a sensor that measures my current blood sugar every 5 minutes
I have a sensor that measures my heart rate every 1 minute (smart watch)
I can also enter what I eat into an app and it will take what I eat and convert it into protein, fat, carbs, etc
That’s awesome
My gf’s dad has diabetes and that would be super helpful
and then do machine learning
How far are you into learning ML?
Not super far yet.
I hear advanced maths is involved
I am learning on codecademy
Crypto is shit. Period
My first step was obtaining the data sources. Thats done.
Now I need to store the data
Excellent
Once I get my data automatically storing
ok fair enough.
then I can try to do machine learning on the data
Well you can buy laptops with BTC now
I can talk in voice now.
nice
@vale meteor Awesome
Thx for the help @kind pike
Im thinking about using django. Any opinions on that vs flask?
@amber raptor when you say "un-corruptable" .. : )
Crypto isn’t backed by a governing body either
hey hows it going
(well still plenty of people care about decentralised systems because theres still decentralised systems)
figuring out how to get python 3.10 working because ive fallen in love with its:
case y:
return "x = y"
case ...
case _: # acts as default
return```
@vale meteor I don’t have too strong of an opinion. I have created simple CRUD apps on both frameworks, I find flask minimalistic, easy to get started in and learn networking fundamentals. Django is more robust and is industry standard. I love both
do you know @lucid pine ?
no ig
Nothing like verifying user input (in this case a swaggerfile) and discovering, for some reason, they are using ^M as their return character, which completely screws over yaml.SafeLoader()
i used to spend time in the vc
hey mr hemlock
Yo
how is your day?
Good so far
and did you know about match?
Yeppers. Pretty stoked
It's strange to me, since Python doesn't have types and those kinds of match statements kind of need them in order to make the most of it
@rugged root hey hemlock
yeah
the amount of times ive used switch in C and wanted to use it in python... and now i can (its sort of similar)!
been kinda not so active here cus of studies
hello
do anyone know what this does
socket.htons(proto)
nonono please move on to another topic
tf
is that
xd
hmmmmm
I LOVE ITTTT
have you ever hated having a long thing like this?:
dosomething()
elif x==2:
dosomethingelse()
elif ....```
yeeeee
now you can do this!!!!!!:
case 1:
dosomething()
case 2:
dosomethingelse()
case _:
return```
?
probably a pety reason like we want money's worth for your windows professional
match mind: case "blown": return "blown"
@amber raptor truee
Sorry i havent been here in a while, university
And can't join because mic is broken :-( Anyways see ya!
Have a good one
Oh hey its you! Thanks and you too
wht program?
which programm
I cannot figure out how to filter out the payroll direct deposit
good luck :)
Yarp
also i HATE google cloud and microsoft azure... it was just a nightmare all the time
!e print(id(float(1)) == id(float(2)))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
True
Wait what?
oh it does work (srry saw this on a youtube vid thumbnail)
!e print(id(float(1)), id(float(2)))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
139622427638352 139622427638352
apparently the object's lifespan ends before the comparison happens so the 2nd item assigned can grab the same memory
thats interesting
!e
foo = tuple([1, 2])
print(id(foo))
del foo
bar = tuple([2, 20])
print(id(bar))
i'm just having fun with python looking at different object's life spans
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 140481293689216
002 | 140481293689216
and how next ones are assigned
meanwhile rust:
okay... we have 8 bit signed integer.... i8
now we have 8 bit unsigned integer... u8
now we have a string literal &str
now we have a growable mutable string object.. String
👀 i don't like rust types at all even if i don't hate em
lol
lol welshi
hey @twilit stone butterfly just farted somewhere watch your bits.
oh of all of the demented children...
have anyone of you streamed recently?
how are you @whole bear
doing electronics?
whos speaking? i dont see any green circles...
is one of them searching for a ble python library?
I finally got my 6x5mm WSON8 adapter and dumped the SnapCam firmware! This is v1.0.00.039, iirc. I may also dump v1.0.00.037 later.
My website hasn't been resurrected yet, so here's a direct link of the 8MiB raw dump courtesy of Discord's CDN:
https://t.co/7Rv8Q9PneG
#hardware
Yeah, although it's more like the service behind the API that you're paying to use.
Challenge? Did someone say challenge? 😱
this is weird
There is much you can do on your Android without rooting.
xda developers
Make sure you know you need to root before you do.
It's A. potentially punching holes in your security and B. If you screw it up, you can screw up your phone.
It's best to use a phone that's not your primary phone.
Rooting and anything else you've screwed up along the way can be a thing that persists beyond a "full" reset of your phone.
Streaming permissions are given out on a discretionary and often temporary basis.
@hallow warren rate my colors
Do you have a big screen, or just good eyesight? 😄
28" UHD. I'm slightly nearsighted, but have good enough vision to read this monitor without my glasses
Hey @viral compass!
It looks like you tried to attach file type(s) that we do not allow (.yml). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
!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.
Law of triviality is C. Northcote Parkinson's 1957 argument that people within an organization commonly or typically give disproportionate weight to trivial issues. Parkinson provides the example of a fictional committee whose job was to approve the plans for a nuclear power plant spending the majority of its time on discussions about relatively...
my i3 bar
# we reuse colors for various terminals, but keep it consistent here:
# OKHSL, https://bottosson.github.io/misc/colorpicker
black = "000000"; #"161616" # saturation to 0, luminousity to 0
# L40 for OKHSL
red = "b10b00"; # H30
green = "007232"; # H150
yellow = "745b00"; # H90
blue = "3123ff"; # H270
magenta = "9b0097"; # H330
cyan = "006a78"; # H210
# luminosity 50, saturation 0, so actually gray
white = "777777";
brightblack = "2e2e2e"; # (Gray) S0 L20
# bump luminosity to 60 where chroma maxes
brightred = "ff3d2b";
brightgreen = "00ae50";
brightyellow = "b18c00";
brightblue = "6786ff";
brightmagenta = "eb00e4";
brightcyan = "00a3b7";
# luminosity 70
brightwhite = "ababab";
nice
oh i see u have compined the ultimate combo. PIZZA and Programming..
You fool! It's op!
ur gonna end up breaking the rules of gravity!
yay WSJ bros
Converting to "int" failed for parameter "pep_number".
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
!p
pep_number
!pep <pep_number>
Can also use: get_pep, p
Fetches information about a PEP and sends it to the channel.
!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.
!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.
if choice == 1:
pass
You need a colon at the end.
Also, you have to have something inside your if statement. If you don't know what you want to do yet, you can use pass to do nothing
This code has tons of error to fix
Thank you so much
if condition:
code inside the if statement
else:
code inside else
👀 i'm learning rust smart pointers
!e
x = 10
if x == 10:
print("x is equal to 10")
@terse needle :white_check_mark: Your eval job has completed with return code 0.
x is equal to 10
!e
x = 10
if x == 10:
print("x is equal to 10")
@terse needle :x: Your eval job has completed with return code 1.
001 | File "<string>", line 4
002 | print("x is equal to 10")
003 | ^
004 | IndentationError: expected an indented block
👀 its not important really to use 4 spaces unless you're working in a team or open source in which case you wanna make sure your code is formatted similar to others
@terse needle were you the one asking me yesterday why i don't use gruvbox?
dont think so
ah ok nvm then
you split the last one in 2 lines
Pearl Milling Company (historically known as Aunt Jemima) is a brand of pancake mix, syrup, and other breakfast foods. The pancake mix was developed in 1888–1889 by the Pearl Milling Company and advertised as the first ready-mix. The Aunt Jemima character, developed by Chris L. Rutt and Charles G. Underwood for their ready-made pancake flour mix...
^ @molten pewter
quick fun python question
print(id(str(1)) == id(str(2)))
>>> print(id(str(1)) == id(str(2)))
True
>>> a=[str(1),str(2)]
>>> id(a[0]),id(a[1])
(2286374716976, 2286374957104)
>>> print(id(str(1)) == id(str(2)))
True
!e
foo = str(1)
print(id(foo))
del foo
bar = str(2)
print(id(bar))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 140455221068528
002 | 140455221068528
!e
print(id(tuple([1, 13])) == id(tuple([2, 20])))
print(id(set([1, 13])) == id(set([2, 20])))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
Go home, Python. You're drunk.
!e ```py
print(id(str({})) == id(str("Wynaut")))
xequals negativeb
plus or minus the square root
ofb-squared, minus4,a-c
all over2a
Windspire Vertical Axis Wind Turbines are available in 750w, 2 kW, 3kW and 5kW wind turbine systems. All of our wind turbines are available with options
You are not allowed to use that command here. Please use the #bot-commands channel instead.
wassup
https://imgs.xkcd.com/comics/exploits_of_a_mom.png
Explained: https://explainxkcd.com/wiki/index.php/327:_Exploits_of_a_Mom
[...] In fact, one could say that her exploit is to exploit an exploit (her achievement is to make use of a vulnerability). [...]
eh, im just learning some rust
:0
!e
import __phello__.spam
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | Hello world!
002 | Hello world!
ROBOTBOYS is a wold famous Danish poppin dance duo, WINNER of Denmarks' Got Talent 2008, touring around the world ever since! Also WINNER of Copenhagen Choreographer's Competion 2012! Dedicated to making unique artistic and humorous videos, creating both music and choreography. SUBSCRIBE to Robotboys channel and be the first to see new videos! ...
@primal yacht its just connection spiking
i'm on a wired connection but ping spiking from 200 to 5000
whatup hemlock
👀 you learning by yourself too or do you have a teacher for rust?
just curious
rust book mostly
and yt vids
you??
btw ping me when replying 🙂
oh 👀 i started with brainstorming through docs
O.o
now practicing with a library
awesome!
cool! i'll check it out!
its to make terminal ui and is inspired by blessed if you've ever used that 🙂
okay... how?
i mean, he single handedly laid a base for the linux kernel and made git
thats mindblowing for me
not really single handedly since he made git to not have to do it alone
but yeah he is still amazing
git gud
xDDD
are you still in vc?
nope, i'll join back in a bit
ah okay
🙂
Metroid Dread is an action-adventure game developed by MercurySteam and Nintendo EPD, released on October 8, 2021, for the Nintendo Switch. Set after Metroid Fusion (2002), players control bounty hunter Samus Aran as she faces a robotic enemy on the planet ZDR. It retains the side-scrolling gameplay of previous 2D Metroid games and adds stealth ...
10/10
Review Written by PJ O'Reilly: https://www.nintendolife.com/reviews/nintendo-switch/metroid-dread
Check out our full site: http://www.nintendolife.com
Like us on Facebook: https://www.facebook.com/nintendolife
Follow us on Twitter: https://www.twitter.com/nintendolife
#NintendoSwitch #MetroidDread #Metroid
Runner introduction starts at 00:42
Run starts at 02:31
TAS created by Malleo, Luke, tasPlasma, Monster, Rocky, Thomas, Sware, Jellopuff, RS, Michi, Estaloy, Delta, LuigiM, Zak, Cf, Akari, Blaze, Doofenshmirtz, Marth and Snoop
Couch commentary is provided by Malleo, TasPlasma, Luke, and SwordofSeals
Raelcun is host.
This speedrun was recorded l...
A surprise sequel after nearly 20 years, Metroid Dread brings back the legendary exploration and progression and merges it with excellent modern combat and some of the best boss fights ever.
"Blow on the cartridge" >w<
https://www.youtube.com/watch?v=mSFHKAvTGNk
This is a speedrun of TASBot plays Brain Age by micro500, xy2_ from Awesome Games Done Quick 2016. The run starts at 15:22.
AGDQ2016 raised over $1,200,000 for Prevent Cancer Foundation, and is just one of the many charity marathons from Games Done Quick.
To download high quality MP4s of every run at the event, visit our Archive.org page ...
how can i un mute in this channel?
dang it's so rigid
trust me it's great lol
i just joined this server lmao
chill spend a few days and you'll be good
gotcha
are you a native korean speaker??
yup
impressed;;
idk
i just watched so many eng vids
mind if i ask your country?
cool
that's why u can read my nickname
yeah
1am
rly
R u in U.S?
yes
I gotta go... have a nice one fellows
x^y
can you try 5 squared in your calculator
You can’t wokr that much time with light timw
I am learning
How
@sinful igloo since you're going to need your cal function definitions anyway you should move them to the top
then put your put your lines 18 - 26 into your if choice == '1': statement
ok
12-16 moved to top starting at line 1
and then move ur calculator print statements to line 10 where the if choice== '1': conditional statement is
No it doesn't, dark mode causes more strain on your eyes because the white text leaks out
Thats the most textbook thing ever
Oof
Oh Krunker
import random
names = ( 'apples', 'oranges', 'bananas' )
chances = ( 2, 5, 13 )
for i in range(5):
print(random.choices(names, chances))
print()
for i in range(5):
print(random.choices(names, chances, k=2))
print()
for i in range(5):
print(random.choices(names, chances, k=3))
*opens Termux to test*
Success … (example output below)
['bananas']
['oranges']
['apples']
['bananas']
['oranges']
['oranges', 'bananas']
['bananas', 'bananas']
['bananas', 'oranges']
['bananas', 'bananas']
['bananas', 'bananas']
['bananas', 'oranges', 'bananas']
['bananas', 'oranges', 'bananas']
['bananas', 'bananas', 'bananas']
['bananas', 'oranges', 'oranges']
['oranges', 'oranges', 'bananas']
2 + 5 + 13 == 20 so …
- 2/20 (1/10) chance for: apples
- 5/20 (1/4) chance for: oranges
- 13/20 (leftover) chance for: bananas
other way is this which takes up more RAM:
names = ('apples',) * 2 + ('oranges',) * 5 + ('bananas',) * 13
The docs say it converts relative weights into the equivalent for cum_weights, which for the code block I provded would possibly be like so:
import random
names = ( 'apples', 'oranges', 'bananas' )
accumulated_weights = (2, 5, 20)
for i in range(5):
# MUST be passed in as a keyword argument
random.choices(names,cum_weight=accumulated_weights)
# --snip--
If the input data will not change between numerous calls, it is a good idea to set up for cum_weight to be used so Python does not need to calculate it each time.
Apparently, the other one calledrandom.choice() can prevents some "round-off" errors by only using integers (meaning tne results using the same "random seed" from the start can possibly provide different results)
my hair is still drying after showering … sorry I'm not in VC
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@boreal shell ^
hmmm
I should shower too
what a good idea
also hi LP
C:\Users\onere\AppData\Local\Microsoft\WindowsApps\pip.exe
C:\Python27\Scripts\pip.exe C:\Users\onere\AppData\Local\Programs\Python\Python39\Scripts\pip.exe C:\Users\onere\AppData\Local\Microsoft\WindowsApps\pip.exe
you can use
py -3.8 -m pip for python 3.8
py -3.8 -m pip ARGUMENTS_TO_PIP_HERE
can i check if u can hear me for some reason this one group chat cant hear me
Verify you have the proper microphone selected in Discord and that it is not muted on the mic itself & also in the OS
If you checked that those are not the reasons, a program may have grabbed it (and I know how to disable that possibility in the future)
jmalloc
MAKE_OPTS="-j8" CONFIGURE_OPTS="--enable-optimizations --enable-framework --with-computed-gotos" CFLAGS="-march=native -O2 -pipe" pyenv install -v 3.8.11
what's this for?
OPEN SOURCE hardware.
... what was that which I'm thinking of .... TIC-80 ?
haven't heard of it
PICO-8 (or ピコ-8 in Japanese) is a virtual machine and game engine created by Lexaloffle Games. It is designed to mimic a "fantasy video game console," by emulating the harsh hardware limitations of the video game consoles around the early 80's. The goal of this is to spur one's creativity and ingenuity in producing games, and avoid being overwhe...
MAKE_OPTS=-j8: The term 'MAKE_OPTS=-j8' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
i have the default?
pypy3
A fast, compliant alternative implementation of Python
Download PyPy
What is PyPy ?
Documentation (external link)
On average, PyPy is 4.2 times faster than CPython
PyPy (with JIT) benc
With Git
Powershell or Git Bash: git clone https://github.com/pyenv-win/pyenv-win.git "$HOME/.pyenv"
cmd.exe: git clone https://github.com/pyenv-win/pyenv-win.git "%USERPROFILE%.pyenv"
@twilit stone
pip install pyenv-win --target $HOME\.pyenv
[System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + ".pyenv\pyenv-win","User")
[System.Environment]::SetEnvironmentVariable('PYENV_ROOT',$env:USERPROFILE + ".pyenv\pyenv-win","User")
[System.Environment]::SetEnvironmentVariable('PYENV_HOME',$env:USERPROFILE + ".pyenv\pyenv-win","User")
@dire folio Hello could I ask for permission to stream on voice channel ?
Just listened to this but it is now lunch time so … I'm eating right now.
https://youtu.be/_SeY_Gss2CY
The Legend of Zelda: Ocarina of Time must have the most beloved soundtrack in video game music history. This time around I break down some of the limitations composer Koji Kondo faced writing melodies for the game's titular instrument and how those limitations spawned some of the greatest themes of the medium.
Interview: https://www.glitterberr...
I do but I intentionally refuse to use it because of calls interrupting what I'm doing
@tacit falcon you where the one asking about Django?
meet me in voice help 0 in 1 min
okay
source /Users/myaccountname/anaconda
@strong arch
@gentle flint https://github.com/siduck76/NvChad
@amber raptor @zenith radish https://bellard.org/jslinux/
https://www.nerdfonts.com/font-downloads
which should i choose
@amber raptor https://github.com/copy/v86
alias vim="nvim"
lol
I live in Texas 😦
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!user

Created: <t:1461172594:R>
Profile: @dire folio
ID: 172395097705414656
Joined: <t:1517581604:R>
Roles: <@&267628507062992896>, <@&267629731250176001>, <@&831776746206265384>, <@&587606783669829632>, <@&267630620367257601>, <@&743400204367036520>, <@&295488872404484098>, <@&585529568383860737>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 12
Active: 1
python needs async lambdas
for user in match_data.team_metadata.get(team):
team_metadata = {'coom': ['GDcheerios'], '1': ['Birdpigeon']}
!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.
@flint kettle
@sinful igloo you took up more space with those messages than @flint kettle did with 2 lines of code.
Does anyone in here use NixOS? @flint kettle @languid furnace @sweet lodge @haughty pier @ruby fjord ?
nice
whats your problem with that?
why you even want to use it?
normal people use mine stack
no really
why what?
why you even want to use it?
I heard it changes peoples lives.
@haughty pier can we get a nixos demo?
maybe some other time - sleepy time for me
Hi
[]
[ ] #Here is an empty list. It will be forgotten as soon as this line finishes.
my_list = [ ] #Here is an empty list that now has the variable, a, pointing to it for later reference.
[1,2,3] #Here is a list with three integers in it
[[1,2,3], [4,5,6,], [7,8,9]] #Here is a list of lists of integers. By some definitions, a 2D array.```
There also exists an n-dimensional array structure in a library called numpy.
When referring to arrays, some people mean numpy arrays, some mean lists, some mean lists of lists of things.
What is this a gaming @terse needle server now?
only on the weekends
sup all 👋
.quack
DaaS
:incoming_envelope: :ok_hand: applied mute to @woeful salmon until <t:1633876260:f> (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 23 emojis in 10s).
!unmute 128363483828977664
:incoming_envelope: :ok_hand: pardoned infraction mute for @woeful salmon.
!unmute 128363483828977664 Please dont spam emojis
:x: There's no active mute infraction for user @woeful salmon.
dang it chris lol

touche 😛

probably in bot commands? i forgot which bot has the prompt for it
nah it was only there for a few days i think
when everyone changed their profile pic to ducks
!mute @uncut meteor test
:incoming_envelope: :ok_hand: applied mute to @uncut meteor until <t:1633879522:f> (59 minutes and 59 seconds).
!mute @cobalt fractal
:x: According to my records, this user already has a mute infraction. See infraction #48911.


!unmute @uncut meteor
:incoming_envelope: :ok_hand: pardoned infraction mute for @uncut meteor.

ah i just got a project idea
i'mma re-create tom scott's old emoji messenger app but with go and react native
wasn't it an emoji keyboard?
he made both
he made emoji... keyboards
and a messenger
where you can only send emoji
even your username was only emoji
<script type="text/javascript">
function copyToClipboard() {
navigator.clipboard.writeText('{{ token }}');
let elem = document.getElementById("api-token");
elem.focus();
elem.select();
elem.setSelectionRange(0, 99999); /* For mobile devices */
}
</script>
you're blurple
lol
import typing as t
import tomlkit
from fastapi.templating import Jinja2Templates
from pydantic import BaseSettings
class _Config(BaseSettings):
"""General configuration settings for the service."""
def _get_project_version() -> str:
with open("pyproject.toml") as pyproject:
file_contents = pyproject.read()
return tomlkit.parse(file_contents)["tool"]["poetry"]["version"]
version: str = _get_project_version()
debug: bool = False
dev_guild_id: t.Optional[int] = None
pydis_guild_id = 267624335836053506
guild_id: int = dev_guild_id or pydis_guild_id
class _OAuthDetails(BaseSettings):
"""Discord OAuth details, loaded from env vars."""
client_id: str
client_secret: str
redirect_uri: str
scopes: tuple[str, ...] = ("identify", "guilds")
CONFIG: _Config = _Config()
OAUTHDETAILS: _OAuthDetails = _OAuthDetails()
TEMPLATES: Jinja2Templates = Jinja2Templates(directory="patsy/templates")
_Config.debug
Be consistent in return statements. Either all return statements in a function should return an expression, or none of them should. If any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable):
thats just dumb tbh
im all for making things verbose where it helps with readability, but everyone knows a bare return returns None, there's no doubt there
same @uncut meteor
Yea, even when you return some_var this pep means that you shouldn't do a naked return in the same func
it should be return None
i think 3.10 stream mentioned something a bout not needing to return None explicitly
for my py specifically i mean
ah
mypy*
I will never return None it looks silly, waste of 5 bytes
you know what's a waste of more than 5bytes?
me
pyeethon
is it savage?
he misspelled it once
then corrected it
to another wrong value
if I work in retail I'll end up jumping off a cliff in a day
im not joking
46,055 votes and 667 comments so far on Reddit
Implement 👏 good 👏 out 👏 of 👏 band 👏 systems
Today at 1651 UTC, we opened an internal incident entitled "Facebook DNS lookup returning SERVFAIL" because we were worried that something was wrong with our DNS resolver 1.1.1.1. But as we were about to post on our public status page we realized something else more serious was going on.
why didn't they just break the door to get in anyway
good luck breaking down a datacenter door
like i drank too much
hey matthew was buying who was i to say no
👀 anyways they should have some kind of a backup way to get in
like a master card or anything
lol that wouldnt really work
there should be backups but facebook has DCs all over the place
josh if you say mackies
ill throw you in cardiff bay
lol
quite sunny here too
actually, I should go buy burgers
although I prefer the rain
👀 sem supposed to be winter rn and its 30 C
Laters
fuck timezones
timezones can die
theyre evil
stupid and annoying to program
stupid and annoying to convert
A web app that works out how many seconds ago something happened. How hard can coding that be? Tom Scott explains how time twists and turns like a twisty-turny thing. It's not to be trifled with!
A Universe of Triangles: http://www.youtube.com/watch?v=KdyvizaygyY
LZ Compression in Text: http://www.youtube.com/watch?v=goOa3DGezUA
Characters, Sym...
theyre eivl
all in all i give timezones a 0 out of 10
you can just say its dark
local sunrise and local sunset time.
"it's late"
amount of time past sunset.
I'd totally hack that to play gas gas gas
jake exploiting loopholes in his parents
the advantage of smart kids: theyre smart
the disadvantage: theyre smart
@molten pewter what if your router has practically unauthenticated ssh with root
and if you say they wont
you'd be surprised
👀 my isp gave me their own router which was also logging my traffic and sending it to them and i changed it a tiny bit to send em... nsfw websites
spam em with it lul
so basically you fixed them tracking you with making yourself look worse than you already did
nice
yeah xD i don't care
they can think what they want atleast my real traffic doesn't go xD
quack like a sheep
@dense ibex like to meow like a donkey
I couldn't agree more
more like a howl.
why bing?
out of all gr8 choices out there
but bing is the default, searching for "cats barking" will probably be good in any search engine
netflix can't do 4k in Chrome because of the way it handles licensing.
no i meant
can't you change default search engine
in edge
bing instead google is just like still tracking you but worse results and ui
You can
Learn about watching Netflix in Ultra HD on compatible 4K devices.
4k only works in Edge, the windows 10 app, or Safari on Mac.
like look at this weird ass design
so much space wasted, things aren't centered and my ocd is killing me
the text isn't even readable
yes, you can, but I don't bother because I have most of the browsers, and I like having the option to quickly access each search engine.
i'd expect more from microsoft.... i've seen ppl who just learnt basic html, css do better
yeah, Firefox and Chrome do a better job.
ya
i agree,
in our country everyone has whatsapp
ya , communication means whatsapp in india
Discord Ends Deal Talks With Microsoft
Chat startup to stay independent as it resumes interest in a potential initial public offering
is it possible to get the type of os.path.dirname() what this is returning used at a perticular line in my python file with mypy
can we find the type of a perticular line of a file in mypy
💩
V
ya but how do i make such a thing which returns the type of result for other as well
!e print(u"\U0001F4A9")
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
💩
VARJO xr3
Join the challenge or watch the game here.
👀 srry but i didn't understand what you mean by that
hey eivl 👋
ty for letting me know!
is he in the wrong vc btw
maybe xD he's just doing a recap of yesterday's workshop
every friday saturday
ah cool
not a fixed thing he just does it in his free time and there's no event setup yet to notify people so you just gotta come here around 1 hour before current time on Friday / Saturday to see if he's doing it
👀 he has the repo on his github you can use to follow along and he said you can dm him whenever to ask about something you don't understand in it
fn function_name(parameter type) -> type {
}
Implement the famous Snake game in this beginner tutorial! Learn also how to use the curses module to build terminal applications. This tutorial is aimed at beginners. You will learn about different data structures (e.g. lists and tuples) and how to implement the game logic with different control flows (e.g. while loop / if-statements).
Hello
hello
How is vim?
👀 its harder to use then most normal editors but can make it so you can do everything from keyboard and be very efficient.
although its really preference and for some people keyboard only doesn't work out
def clear_screen_linux():
print(end='\033[3J\033[H\033[m\033[2J', flush=True)
ye it is
the clear command is equivalent to printf '\033[H\033[2J\033[3J'
why 3J at the end .. and where is the formatting resetting?
I didn't write it so idk, but you can clear | xxd to see for yourself
isn't it a shell built-in?
yeah, that's what I'm referring to
also, wouldn't it act differently when it detects stdout is not a tty?
!e
import textwrap
foo = ("Hello, world! Python online editor, IDE, compiler, interpreter, and REPL "
"Code, collaborate, compile, run, share, and deploy Python and more online from your browser")
for line in textwrap.wrap(foo, 20):
print(f"{line:<20}|")
Current state of my output:
!e
!e python import textwrap foo = ("Hello, world! Python online editor, IDE, compiler, interpreter, and REPL " "Code, collaborate, compile, run, share, and deploy Python and more online from your browser") for line in textwrap.wrap(foo, 20): print(f"{line:<20}|")
clear is provided by ncurses and it uses tputs with terminfo, for xterm-basic "clear" is \E[H\E[2J, "E3" is \E[3J, and clear without -x does both if supported, doesn't really matter if it's a TTY AFAIK but $TERM does
!e python import textwrap foo = ("Hello, world! Python online editor, IDE, compiler, interpreter, and REPL " "Code, collaborate, compile, run, share, and deploy Python and more online from your browser") for line in textwrap.wrap(foo, 20): print(f"{line:<20}|")
@half silo :white_check_mark: Your eval job has completed with return code 0.
001 | Hello, world! Python|
002 | online editor, IDE, |
003 | compiler, |
004 | interpreter, and |
005 | REPL Code, |
006 | collaborate, |
007 | compile, run, share,|
008 | and deploy Python |
009 | and more online from|
010 | your browser |
... just ... never mind
i didn't really care that much either but you asked so i checked, lol
I don't know why you continued the conversation in the first place when I was just providing a Linux "clear screen" for them
Also ...
There is no formatting reset provided.```
$ mii-no-pipe clear -x | python3 -c 'import sys;sys.stdin.reconfigure(encoding="latin-1");print(repr(sys.stdin.read()))'
'\x1b[H\x1b[2J'
$ mii-no-pipe clear | python3 -c 'import sys;sys.stdin.reconfigure(encoding="latin-1");print(repr(sys.stdin.read()))'
'\x1b[H\x1b[2J\x1b[3J'
mii-no-pipe is a script I made to help use something I found online
(makes whatever program think isatty is always going to be truthy)
literally breaks vim >w<
py -3.8 -m pip
Traceback (most recent call last): File "C:\Users\onere\Desktop\random py projects\intern\IPHACKINGTOOL(HACKINGDARKNET!.!)\main.py", line 10, in <module> from rich.console import Console ModuleNotFoundError: No module named 'rich' PS C:\Users\onere\Desktop\random py projects\intern\IPHACKINGTOOL(HACKINGDARKNET!.!)> pip install rich DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. ERROR: Could not find a version that satisfies the requirement rich (from versions: none) ERROR: No matching distribution found for rich PS C:\Users\onere\Desktop\random py projects\intern\IPHACKINGTOOL(HACKINGDARKNET!.!)> pip3 install rich Requirement already satisfied: rich in c:\users\onere\appdata\local\programs\python\python39\lib\site-packages (10.12.0)Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\users\onere\appdata\local\programs\python\python39\lib\site-packages (from rich) (0.9.1) Requirement already satisfied: pygments<3.0.0,>=2.6.0 in c:\users\onere\appdata\local\programs\python\python39\lib\site-packages (from rich) (2.10.0) Requirement already satisfied: colorama<0.5.0,>=0.4.0 in c:\users\onere\appdata\local\programs\python\python39\lib\site-packages (from rich) (0.4.4) PS C:\Users\onere\Desktop\random py projects\intern\IPHACKINGTOOL(HACKINGDARKNET!.!)>
python3 -m pip --version
pip 21.2.3 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip (python 3.9)
python3 -m pip list
C:\Users\onere>python3 -m pip list Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
Excuse me, why can't I import Discord?
The expect package provides "unbuffer" which has a similar effect, it's good for getting colored output into a pipe
??
Excuse me, why can't I import Discord?
Is that as simple as a short single line of C code to compile and a simple script to run to make it work?
it's simpler for me to use because I already have expect installed and don't have to write any code, I'm not saying it's necessarily better
کیرم دهنتون جواب بدید خب
!rule 4
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
Nobody answers me
'cuz we don't speak arabic lol
One, I am not Arab and I spoke English above
؟؟
what you were writing looked like either Arabic or Farsi
perhaps you could provide more details
what have you tried
what error did you get
It was Persian
yes
just googled it
The Modern Persian script is directly derived and developed from the Arabic script.
which could explain the confusion
I do not know how, but it turned out strangely = |@gentle flint
what did?
How do you know Persian language?
i dont have any idea
Hence I asked for more details.
like here
and here
@gentle flint
Well, until I went to the VS code and opened a file and came to import the discord, I saw that the discord turned green, but before it was gray.
well maybe it was busy installing and then it finished
I don't use vscode much
so I wouldn't know
why its good app
I do not like Python IDLE at all
it's a bit basic
like what?
yep
well, there's sublime text, pycharm, thonny, vim/neovim, emacs, etc, etc, etc
I worked with VS code from the beginning
k
if you're so sorry then why did you do it
don't tell me you accidentally typed in Persian
because that's just ridiculous
@molten pewter
this tune will not go out of my head
Provided to YouTube by Believe SAS
Gordon's · Gnoss · Aidan Moodie · Craig Baxter · Connor Sinclair · Graham Rorie · Aidan Moodie · Craig Baxter · Connor Sinclair · Graham Rorie
The Light of the Moon
℗ Blackfly Records
Released on: 2021-05-07
Auto-generated by YouTube.
I am cursed
Hello chaps
I am!
I love me some dead space
Agreed
@molten pewter what do you think of last of us?
It’s the perfect game for divorced couples! @woeful salmon
Is brings back lost love through an emotionally charged narrative and team based challenges... @woeful salmon
👀 how do you get em to play to begin with tho
and you need to consider their feelings
and circumstances
Very true
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@umbral sundial Then leave 🙂
noone's talking to u u prick
i'm a girl u trashead
!ban 750826517956788315 Troll
:incoming_envelope: :ok_hand: applied ban to @umbral sundial permanently.
Sorry about that
thanks for fixing it
Nice bot
Anyone play Metroid dread yet and if so what are your thoughts on it, particularity boss fights?
Is a 160x80 cm table top “too big”
Depends on the person using it..
REAPERS -> Reaper's Emoji And Peer Emoticon Reply System
Well I do know i need space but I’m not sure if that’s too much space
Love it
http://tomscott.com - http://twitter.com/tomscott - Here's the behind-the-scenes "how I made the emoji keyboard" video! If you haven't seen the original: http://youtu.be/3AtBE9BOvvk But the thing is, the truth is basically just "I bodged some stuff together". Which gives me the opportunity to tell some stories...
AUTOHOTKEY: http://ahkscript.or...
I -> 👁️ -> 我
I Love New York -> 👁️ ❤️ 🏛️ ->->我愛紐約
@woeful salmon https://unicode.org/emoji/charts/full-emoji-list.html
I am in the midst of pre-desk anxiety honestly 😂
Will it be adjustable? Standing desks are great 👍
Yes it will. For the legs im going for the idasen sit/stand from ikea
➡️🐢
For the top some custom solid wood from a local shop
Very nice @frosty star
ikr im pretty proud of myself
I think MS teams emojis are nice
🏹 ▶️ OR👉
Gtg breakfast cya around guys ~
Pie char. Mmm.
@dense ibex https://github.com/neovide/neovide and https://github.com/NvChad/NvChad
No Nonsense Neovim Client in Rust. Contribute to neovide/neovide development by creating an account on GitHub.
