#voice-chat-text-0
1 messages Β· Page 60 of 1
Corey Schafer's playlists for Python.

!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
hey opal have u ever seen chatgpt?
ok im not gonna use it but im just saying its cool
im 100% gonna use it
its pretty cool tho
@river raft π
Hello π
I wanted to ask if there is anyone interested in developing visual python programming library
Which can show the flow of code in graph manner like nodered but for python.
I've seen software that has you write out a flowchart which then produces code.
You're wanting something that does the inverse?
Opal you know my code right? Can i just loop the entire thing through while true?
or would there be a problem
i was counting on my sys.exit to stop the code
lol
eh ill figure it out eventually
just will take some time
Why I'm not allowed to talk in this channel?
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
lol
So they were extremist... ban everyone to never have the issue again lol
So we are here like radio mode
I enter to a voice channel to listen to Python lol
Hi
hi
hi
hi hi
fifty messages π
Does anyone have some JavaScript knowledge over here?
Damn it, I hate this programming language
Js
I'm a backend developer, but I have to fix an issue with JS
@somber heath hello
how are you doing
And the problem is so stupid, I'm feeling dumb! well maybe I'm lol
@lone geyser π
Maroloccio you look someone who knows Js π
Hi guys
Mornin'
@quasi condor My ears perked up when I heard F#
Petty away
What's the example
@zenith radish This is also true
We're all petty in our own way
Oh no, I'm petty in plenty of ways
here I was thinking "Hemlock?? on a Saturday???"
only to realize that it is in fact Friday.
Yarp
Yeah it's more passive aggressive
Wouldn't say petty
Petty to me feels like taking multiple extra steps
Like
I wouldn't call that petty, though
I mean
We can just say I'm a douche for calling people petty. I'm fine with that
@quasi condor So mad
Beat me to it
Bastard
HA
"I'm actually taking both of his names"
"And his social"
@quasi condor So wait, why was F# mentioned
ChatGPT is our future π
Can't be much help at the moment, looking around for a website accessibility checker
Seeing how complain my work's website is
from genie.libs.sdk import apis, genie_yamls, libs, powercycler, triggers, verifications```Is this more or less what you're currently doing?
ios_api = genielibs/pkgs/sdk-pkg/src/genie/libs/sdk/apis/ios/
from ios_api import blah
this electricity system gets worse every time I look at it
the whole top floor is running on a single wire from the bathroom using some obscure construction
and all the connection points are upstairs and hidden away behind cemented tiles
@somber heath help
this is making me very depressed
Did you try this solution on stackoverflow?
https://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path
@gentle flint This is again why I was spooked about you wiring up stuff in that hacky way
I'd honestly contact a licensed electrician
I know
HA
That'd wake them up
Circuit breaker box?
Huh, hadn't thought about doing it some of those ways
@zenith radish How're you today
find where the studs are
Right here, baby πͺ

Ah, back in the days of Do You Even Python
Making something that works is probably the most gratifying. Helping people is so I can feel like I'm not a complete drain on society.
But also I like not living in an uneducated world.
...shit.
Too late, now! lol
@peak copper Sup
Yo, homey
Niiiiice
What kind
So like
Kung fu?
Lame
Yeah yeah
Just had to say it
Ooooooo
Yeah that'd be dope
Not yet, is it actually NSFW because I am actually at W after all
Oh fair game then
One sec
404'd on me
Ye
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Nox, gotta do that in #voice-verification
,.... he says now seeing you have the role
Sorry, I'm very tired
@warm jackal Loved the meme, btw
Just didn't have a chance to comment on it
Been thumbing through accessibility compliance stuff
sup
It's Tax season
and I'm complaining and moaning loudly about it, but thoughtfully putting myself on mute so that you don't have to hear my scr4eams of agony.
Clojure is a language, but he's talking about closures
@peak copper
Closures aren't really called that in Python
wassup guys
"Closures in python: When you have a function defined inside another function - where the inner one is not directly invokable outside of the scope of the parent function"... My understanding...
schools closed , thankfully dont need to wake up at 6:00
He's busy with work
Yep
They just aren't called that in Python
Decorators or wrappers
Yeah
Yep, same concept
Just using a lambda
i.e. Ram.
Yes, but its father would be a lamb da.
In certain ways
@rugged root where voice?
Within me
well let it out then
@molten pewter Accountant
Acccoooouuuuuuuuntant
@molten pewter They do for THEIR stuff, but you still have additional assets that you have to tell them about
ML (Meta Language) is a general-purpose functional programming language. It is known for its use of the polymorphic HindleyβMilner type system, which automatically assigns the types of most expressions without requiring explicit type annotations, and ensures type safety β there is a formal proof that a well-typed ML program does not cause runtim...
@midnight agate Does this happen on the web client
Or is it just the desktop one
Might be worth seeing if the web one crashes too
Alonzo Church (if I remember the name correctly) called and wanted his title back =P
It's still going to be a while until I'm both moved back to the annex and I have my cubicle walls again
So I'm going to still be a mime for a bit
I'm sure that had some.... unattended consequences
Sudden silence π
Yes, but only one in ten did.
Hey LX
How goes it
@peak copper Still disappointed it's not kung fu
Because it's fancy
That's why
@rugged tundra Never ever deploy in Friday
Ever
Ever ever ever
Thursdays
But never ever ever ever Friday
Your business is idiotic
Still, if you do, you want to make sure that you're working on Saturday in case things explode
What Fury said
dawg sup
Yo again
hem i saw this ad for this trash tax software
man i wish i wouldve saved the website
I would have loved to see it
I always need little reassurances that "it could always be worse" regarding software like that
It's always about stocks with you, Focus
But it's so hot there
Is the reason we have bull markets the same reason we have beef stock?
Very well played, that's really good
Very very strong
I was always thinking bull fighting and bear baiting
too risky
all it takes is the bull to be like
not a good day for me, so you arent going to have a good one either
and next thing you know is you brake your bones
I like audi
Question: How will they have the money to continue to develop these vehicles if no one is buying the new ones?
Like... they still need to make money to get there, right?
What counts as unnatural gas?
Fair
Cthulhu sea bubbles?
Oooo I like that
benz is imo best
"Rivian" is the name?
i dont like it
Leadership.
re: Lanes.
Normalising of the idea that EVs exist and will be given preferential treatment.
@rugged tundra Same reason you have carpool lanes
To incentivize more fuel efficient options
I thought you mean a solar roof on the car
Tiny little pinwheel for some small wind power
@rugged tundra If it's a tax benefit, odds are good that only the well off (and probably just the really well off) can afford to do it
Or would benefit from it
How people should be with solar panels.
They should just BE solar panels
"Oh I don't need a heater in the winter because I'm already flaming!~~~ β€οΈ"
Toyotas are just hard to kill
Word
Yea
Wait
So it varies
Ooo, it's Latin for "by heads"
"Please wait: Car buffering"
hem you know the whole samsung truck things?
I do not
they have a display on their back
its the stupidest thing
its not stupid its just free marketing to say "Hey! we respect your thoughts"
its no way executable
benz every day >
@stuck furnace how was your coffee?
When was your coffee?
Why was your coffee?
Who was your coffee?
Where was your coffee?
The Chad song?
Chad song what?
sigma gets very complicated
it has a crap ton of songs its self
Would the blackhat version of Leet Code be Loot Code?
@verbal zenith Could you pull your code up into the stream so we can watch?
kk
No worries.
hello Opalmist
@final crane Hold your horses
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
alright
ive tried to learn python many times but ehh
what would you advice starting with when learning?
@zinc minnow π
i don't have permission to speak?
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

yeah
I KNow a little of programming in general,
i would say
scripting
i know a lil lua
but getting back to vairables is complex
yeah
Do you know any well paying jobs.
alright
like in python how much do you think you know?
got you
i will be right back
alright im back
what was the worst part of coding for you
yea
do people code games in this server?
this is a random question
is it bad to alter app codes/
In and of itself there's nothing bad about altering code other people have written, but, depending on the licensing or other terms of service or legal considerations, it may be inappropriate.
alright
good evening guys
!e
import ast
x = ast.literal_eval("[1,2,3,[4,[5,6]]]")
print(x)
@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, [4, [5, 6]]]
class collections.deque([iterable[, maxlen]])```
Returns a new deque object initialized left-to-right (using [`append()`](https://docs.python.org/3/library/collections.html#collections.deque.append "collections.deque.append")) with data from *iterable*. If *iterable* is not specified, the new deque is empty.
Deques are a generalization of stacks and queues (the name is pronounced βdeckβ and is short for βdouble-ended queueβ). Deques support thread-safe, memory efficient appends and pops from either side of the deque with approximately the same O(1) performance in either direction.
Though [`list`](https://docs.python.org/3/library/stdtypes.html#list "list") objects support similar operations, they are optimized for fast fixed-length operations and incur O(n) memory movement costs for `pop(0)` and `insert(0, v)` operations which change both the size and position of the underlying data representation.
@prime plaza π
hello
for x in "banana":
print("banana")
People join the Voice cannels
Needs to listen to some Python talk to keep me motivated
for _ in 'banana':
...```Variables we need for syntax purposes but don't use thereafter are conventionally written as a single _ to indicate such.
@jade ridge π
@velvet tartan π
@somber heath Hey, just realized I still canβt speak yet π
@slender siren π
I don't have permission to speak sadly
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ok so I need 50 messages
how do I view how many I already have?
Ok thats logical ty
51 results
Lets see
!voiceverify
Alright
import random
while True:
user_input=int(input())
bot_input=random.randint(1,3)
options={
1:"Rock",
2:"Paper",
3:"Sicssors"
}
possible_wins={
1:"Sicssors",
2:"Rock",
3:"Paper",
}
print(f"User:{options[user_input]}\nBot:{options[bot_input]}")
if options[user_input]==options[bot_input]:
print("Draw!")
elif options[user_input ]in possible_wins[bot_input]:
print("Bot wins!")
else:
print("User wins!")
import random
input('Rock, paper or scissors? >')
result = random.choice(['won', 'tied', 'lost'])
print(f'You {result}!')```
import random
wins = {
"Rock":"Scissors",
"Paper": "Rock",
"Scissors": "Paper"
}
user_input=int(input("Enter a number 1-3, 1 for Rock, 2 for Paper, 3 for Scissors:\n>>> "))
if not (0<user_input<4):
raise Exception("You must pass an int!")
else:
user_input = list(wins.keys())[user_input-1]
bot_choice = random.choice(list(wins.keys()))
print("User chose: " + user_input)
print("Bot chose: " + bot_choice)
if bot_choice == wins[user_input]:
print("User wins!")
elif wins[bot_choice] == user_input:
print("Bot wins!")
elif bot_choice == user_input:
print("It was a tie")
from random import choice;from replit import clear;global flag;flag='[R]ock, [P]aper, or [S]cissors. (Not case sensative.)';global w;w=0;global l;l=0;global n;n='\n';global t;t='\t';a=(lambda x:(exec(f"global flag; flag='[R]ock, [P]aper, or [S]cissors. (Not case sensative.) You win!' if (x==1) else '[R]ock, [P]aper, or [S]cissors. (Not case sensative.) You lose!'{n}if (x==0):{n+t}global l;{n+t}l+=1;{n}else:{n+t}global w;{n+t}w+=1;")));b=(lambda:(1 if (choice(['rock','paper','scissors'])==({'rock':'scissors','paper':'rock','scissors':'paper'}[{'r':'rock','s':'scissors','p':'paper','rock':'rock','paper':'paper','scissors':'scissors'}[(str(input(f'You: {w}{n}Computer: {l}{n}>>> ')).lower())]])) else 0));exec(f"while True:{n+t}clear();{n+t}global flag;{n+t}print(flag);{n+t}try:{n+t+t}a(b());{n+t}except:{n+t+t}flag='[R]ock, [P]aper, or [S]cissors. (Not case sensative.) You have entered an incorrect value! Try again.'")
@verbal zenith
*> setup the identification division
IDENTIFICATION DIVISION.
*> setup the program id
PROGRAM-ID. HELLO.
*> setup the procedure division (like 'main' function)
PROCEDURE DIVISION.
*> print a string
DISPLAY 'WILLKOMMEN'.
*> end our program
STOP RUN.
#the dictionary that we are going to store in a txt file.
main_input=input("Would you like to Add or Find: ").lower()
if main_input=="add":
the_key=input("The name of the server: ")
the_value=input("The Server ip: ")
info={the_key : the_value,}
with open("ServerIP.txt","a") as Server_data:
Server_data.write(f"{info}\n")
else:
find=input("Name of the server you would like to find: ")
with open("ServerIP.txt","r") as Server_data:
found=Server_data.readlines()
for lines in found:
result=eval(lines)
if find in result:
print(result[find])
else:
print("Server not found")
filetype: pdf
google ext:pdf "anything"
filetype ext:pdf hat
ext:pdf "test"
ext:pdf,doc,csv,xlsx
filetype: (ext:doc text pdf)
zero = '###\n# #\n# #\n# #\n###\n\n'
one = '#\n#\n#\n#\n#\n\n'
two = '###\n #\n###\n# \n###\n\n'
three = '###\n #\n###\n #\n###\n\n'
four = '# #\n# #\n###\n #\n #\n\n'
five = '###\n# \n###\n #\n###\n\n'
six = '###\n# \n###\n# #\n###\n\n'
seven = '###\n #\n #\n #\n #\n\n'
eight = '###\n# #\n###\n# #\n###\n\n'
nine = '###\n# #\n###\n #\n###\n\n'
for i in number:
if i == "0":
print(zero)
elif i == "1":
print(one)
elif i == "2":
print(two)
elif i == "3":
print(three)
elif i == "4":
print(four)
elif i == "5":
print(five)
elif i == "6":
print(six)
elif i == "7":
print(seven)
elif i == "8":
print(eight)
elif i == "9":
print(nine)```
!d collections.deque
class collections.deque([iterable[, maxlen]])```
Returns a new deque object initialized left-to-right (using [`append()`](https://docs.python.org/3/library/collections.html#collections.deque.append "collections.deque.append")) with data from *iterable*. If *iterable* is not specified, the new deque is empty.
Deques are a generalization of stacks and queues (the name is pronounced βdeckβ and is short for βdouble-ended queueβ). Deques support thread-safe, memory efficient appends and pops from either side of the deque with approximately the same O(1) performance in either direction.
Though [`list`](https://docs.python.org/3/library/stdtypes.html#list "list") objects support similar operations, they are optimized for fast fixed-length operations and incur O(n) memory movement costs for `pop(0)` and `insert(0, v)` operations which change both the size and position of the underlying data representation.
ok thanks
Any of you guys wanting to get involved in side projects?
Maybe we could start one of this server
@verbal zenith sorry I've only been paying half-attention while I attend to some mod stuff.
Dude do you want me to do a code review? π
Yeah @vapid flint You need a certain amount of activity before you can talk. See #voice-verification for details.
Although don't spam to reach the message requirement.
Nah if you hang around in the text channels for a couple of days you'll meet the requirements pretty quickly. We had to introduce the voice gate a while back because of trolling.
ok
Yeah sure π
What do you need help with?
so this is my code
Alright π€
and this is my problem
Are you sure your call to ImageFont.FreeTypeFont is correct? I'm not sure what library this is sorry.
@vapid flint 
Hello @fast umbra
(if that was you, I didn't see)
Ah what book?
(I don't have a microphone sorry)
Python Object-Oriented Programming_ Build robust and maintainable object-oriented Python applications and libraries by Steven F. Lott and Dusty Phillips
I am at the beginning of the book, haven't done coding in a loooong time because of my. I am rediscovering the basics of OOP through that into, and I haven't been introduced to the basics like this book before, lot of things make sense now!
Sorry brb
i think so
that what i saw on internet
@verbal zenith Hard to code with people watching 
Is anyone here? π
me π
true LOL
@lavish rover wya
<@&831776746206265384> Can I have streaming perms?
we only allow streaming permissions if there's a mod currently in vc
if not, we're not able to give them due to moderation concerns
if it means anything I'm gonna be around? π€·ββοΈ he's streamed before I can vouch
just doing some pair programming
How does one get permanent streaming perms?
Or is that a thing, I saw a couple people who have the role and never seem to lose it
i don't think we allow that, sorry
fair enough
i think that's largely up to our voice lead, hemlock.
All good, I get it. I wouldn't want someone streaming some screwed up stuff
!stream @verbal zenith
β @verbal zenith can now stream until <t:1674327820:f>.
def make_dict(lst):
if lst == []: return {}
a, b = lst[0].split()
return {a:b} | make_dict(lst[1:])
List.ofSeq(File.ReadLines filename) |> List.map (fun v -> v.Split ":") |> List.map (fun e -> e[0], e[1]) |> Map<string, string>
res = "hello:world".split(":")
x, y = (lambda f: f[0], f[1])(res)
x, y = "hello:world".split(":")
|> List.map (fun e -> e[0], e[1])
fold(
file.readlines(),
lambda acc, line: {k:v for k,v in line.split()} | acc,
{}
)
Rabbit, you have any experience with cisco genie?
ive pretty much figured it out cept how i can run and control the learn functions from within my own scripts.. without just running it from subprocess..
What is Cisco Genie?
But no, networking is for those who donβt want to be employed in 10 years. Hot take.
heh, thought you might have used it before.. basically a routerswitch parser.. but wrks upon pyats
I donβt do networking
ah.. my bad..
how do you get a function to save something into a global variable ?
are/were partnered with Discord, iirc
I kind of avoid video tutorials
can't really say exactly why
I watch more lecture/talks related to languages and programming in general
(that's where most of my Rust knowledge comes from, for example)
they're often outdated or bad in my experience
I know a very good Rust tutorial series
I just don't watch it
@somber heath hello
also, old package tutorials are way more dangerous due to packages changing more fast than the language itself
@somber heath didn't mean to be rude earlier, can't use mic atm! >.<
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
to C not C++
Why C instead of C++? Due to how the languages treat objects?
Rust is closer to being C + Haskell than to being C++
I've just started learning code this week, and i'm currently learning nested loops. do you gentlemen know a good website to practice said concept?
Rust isn't object-oriented in its foundation
language; C
Rust's notion of object is very low-level and similar to that of C-based systems
can't type "object"
!e py for letter in "abc": print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py for letter in "abc": for number in "123": print(letter + number)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a1
002 | a2
003 | a3
004 | b1
005 | b2
006 | b3
007 | c1
008 | c2
009 | c3
thank you
and the whole "trait" thing is like Haskell's classes
!e py import itertools for letter, number in itertools.product("abc", "123"): print(letter + number)If you want to get fancy and flatter.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a1
002 | a2
003 | a3
004 | b1
005 | b2
006 | b3
007 | c1
008 | c2
009 | c3
before i dive into this website, i wanted to ask about this code (if i even write it properly):
int main(void)
{
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < i; j++)
{
printf("#");
}
}
}```
is there a way how to read this in a concise sentence?
imo, Rust lacks some very important Haskell-esque functionality
like generics over generics and stuff
but I also understand how non-trivial it would be to add that
missing ;
!e py import itertools for each in itertools.product("ab", repeat = 3): print("".join(each))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | aaa
002 | aab
003 | aba
004 | abb
005 | baa
006 | bab
007 | bba
008 | bbb
also should it be j <= i ?
!e
import itertools
haxk = itertools.permutations('ABCD', 2)
print([x for x in haxk])
@exotic moss :white_check_mark: Your 3.11 eval job has completed with return code 0.
[('A', 'B'), ('A', 'C'), ('A', 'D'), ('B', 'A'), ('B', 'C'), ('B', 'D'), ('C', 'A'), ('C', 'B'), ('C', 'D'), ('D', 'A'), ('D', 'B'), ('D', 'C')]
!e py import itertools iterables = ["abc", "123"] for letter, number in itertools.product(*iterables): print(letter + number)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a1
002 | a2
003 | a3
004 | b1
005 | b2
006 | b3
007 | c1
008 | c2
009 | c3
"working on" getting to next minesweeper.online rank
i currently have
{
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < i; j++)
{
printf("#");
}
printf("\n");
}
}```
but why does my output have a space before printing the #?
```
j < i part is the key to the answer to that question
thank you
what's like a simple way to read this?
either start with int i = 1 or compare using j <= i
my brain is getting stuck at
"for every loop of i, loop j i times"
yes it does exactly that
repeat j i times?
the first i is 0
mmm
so it writes # zero times
mmmmm
but when it's j < i
when i = 0
j = 0
0 < 0
therefore false
so it doesn't loop
and therefore
doesn't print # inside the j loop
and exits,
leading to printf("\n")
it was Visual Basic and maybe something else
import io
import requests
from PIL import Image
url = '...'
a = requests.get(url)
b = a.content
c = io.BytesIO(b)
image = Image.open(c)```
btw, why is English Wikipedia starting to look like French Wikipedia?
from PIL import Image
from urllib.request import urlopen
url = "https://python-pillow.org/images/pillow-logo.png"
img = Image.open(urlopen(url))
example from the pillow docs
!d urllib.request.urlopen
urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None)```
Open the URL *url*, which can be either a string or a [`Request`](https://docs.python.org/3/library/urllib.request.html#urllib.request.Request "urllib.request.Request") object.
*data* must be an object specifying additional data to be sent to the server, or `None` if no such data is needed. See [`Request`](https://docs.python.org/3/library/urllib.request.html#urllib.request.Request "urllib.request.Request") for details.
urllib.request module uses HTTP/1.1 and includes `Connection:close` header in its HTTP requests.
The optional *timeout* parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting will be used). This actually only works for HTTP, HTTPS and FTP connections.
If *context* is specified, it must be a [`ssl.SSLContext`](https://docs.python.org/3/library/ssl.html#ssl.SSLContext "ssl.SSLContext") instance describing the various SSL options. See [`HTTPSConnection`](https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection "http.client.HTTPSConnection") for more details.
Traceback (most recent call last):
File "C:\Users\16149\PycharmProjects\pythonProject\random practice\prime stuff\1v1 game.py", line 4, in <module>
img = Image.open(urlopen(url))
^^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\16149\Documents\Lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
maybe headers?
greetings
@ancient lily π
The video of a young Australian boy being attacked by a magpie has gone viral. Subscribe to 7NEWS for the latest video Β» https://7news.link/YTSubscribe
The video of 10-year-old Max Sherwood was filmed by his father near their home in Lake Illawarra, going viral after it was posted online on Tuesday. Speaking exclusively with 7NEWS, 10-year-old ...
Danielle had just moved into her new home when all of a sudden, a wild magpie landed at her feet. He would follow her around and sit on her knee. Then, he brought his son over. Before long, 25 teenage magpies were playing in her yard!
Keep up with The Magpie Whisperer on Instagram: thedo.do/magpies.
Introducing Dodo swag! https://shop.thedo...
Danielle β βThe Magpie Whispererβ, strives on raising awareness surrounding the misunderstood Australian Magpie. She has been intimately observing the behaviour of these wild birds up close and personal for 11-years, whilst being lucky enough to form extraordinary bonds (https://www.youtube.com/watch?v=mpNwLJTeB9s) with many.
Over the years, t...
Nuclear Gandhi is an Internet meme and urban legend relating to the 1991 video game Civilization, in which there was reportedly a bug that would eventually force the pacifist leader Mahatma Gandhi to become extremely aggressive and make heavy use of nuclear weapons.
The bug was first noted in 2012, two years after the release of Civilization V. ...
!e py import numpy as np arr = np.array([3], np.uint8) print(arr) for _ in range(6): arr[0] -= 1 print(arr)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [3]
002 | [2]
003 | [1]
004 | [0]
005 | [255]
006 | [254]
007 | [253]
!e py import numpy as np arr = np.array([3], np.int8) print(arr) for _ in range(6): arr[0] -= 1 print(arr)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [3]
002 | [2]
003 | [1]
004 | [0]
005 | [-1]
006 | [-2]
007 | [-3]
@onyx wave π
I will typically refer people to Corey Schafer's YouTube playlist page for Python stuff.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
But if you have questions during that process, by all means.
The downloadable documentation on that page is very good, too. The PDF collection has a file named library.pdf.
It is the Python bible.
billions of years rather
@storm magnet π
though a lot of atoms may be less than a day old because radioactive decay
well, life is estimated to have been around for quite a while even in a universal scale
(intelligent life -- not so much)
wait are guys talking about flat earthers?
π
@somber heath are you a believer of Earth being flat?
@somber heath, in certain countries the thing you're talking about is not "just a conspiracy theory", it's a reality
"crazy" does get leveraged so "state's crazy" gets less noticed
we can nvr go in there
a person has a higher rate by 93% or so to get cancer in there
we will never be ale to go on mars
there are still places on Earth left uncolonised and less hostile
it was very similar to Earth but its magnetic field went away at some point
(as far as most models of Solar System history go)
it was never suitable
one smoll thing
which is the reality
that we will never be able to expand life on any other planet
we live here
we die here
it had atmosphere and magnetic field (so radiation problem was not a problem)
it had liquid water
thats all...earths gonna burst up...and its END
IBM
and also recently some company named "Xanadu"
I didn't expect it to be Canadian
I'm still wandering what "earths gonna burst up" could mean
I don't do much of data science but I know some numpy
Don't Look Up.
stackexchange (the extension of SO) may have some questions/answers related to Data Science
"retention model"
that sounds quite proprietary
this sound like something that requires actual work, not a copy-paste solution
what the hell did I find
@full raptor π
that sure varies a lot company-to-company, business-to-business
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Oh, I need to be longer on this server haha
Just had a question but only if you guys have time?
What's up?
this just provides some strange terminology
Do you guys know how to work with DataFrames? It is a pretty easy question but i cant figure it out. How can I add a single row out of a other Dataframe (With the same columns) to a new dataframe?
I want to select the row with a number. example: Row 1 in DataFrame1 should be addet to DataFram2
#data-science-and-ml
some pandas discussion happen there, afaik
Oh thank you
I'm not sure about how to work with Pandas, vs Numpy, but I expect it would be like Numpy's numpy.vstack or maybe Numpy's "advanced indexing", depending on how you're constructing the new DataFrame.
I've learned to not stick my nose in too far into modules I don't work with.
Pandas does use Numpy, though.
Hmmm, i think there is a simpler way but i will ask the chat over at data-science-and-ai, sorry to bother
Thank you for your help
I'd expect the base of a retention model to be the retention metrics themselves if that data exists
question to maybe help understand what to do: why are retention models important for business?
i.e. what does business want to achieve with them
to reduce the churn rate, I'd guess
to do that they'd like to know what affects it
i.e. how churn rate correlates with other stuff
the "other stuff" being the features
the classification would probably be somewhat non-linear I'd expect
though a simplified (linear) model may be fine
in that case the point of making the model would be mostly to compare (numerically) effects of different features (not that much to actually make a predictor)
@tawdry ibex π
hello
@manic ore π
i have a question to ask.....are you guys discussing something important?
Nope.
may i ask?
Ask.
ty:)
new_message = ""
shift_value = int(input("Enter a range from 1-25 for shift value: "))
for i in message:
if i.isalpha():
code = ord(i) + shift_value
if i.isupper():
if code > ord("Z"):
code = code - 26
new_message = new_message + chr(code)
else:
if code > ord("z"):
code = code - 26
new_message = new_message + chr(code)
else:
new_message = new_message + i
print(new_message) ```
what can i do to limit the user from entering
the range till max 25
if statements
the updated code will be then?
if you dont mind
cuz m confused
where to insert the if statement for limiting the user
@fossil furnace π
you cant have fun in jail
hi
this can not be the solution
to my question
but thanks for yall time:)
what can i do to limit the user from entering
the range till max 25
it does that
Use a while loop.
should at max be 25
this limits the message range
and not the shift value range
thank you will do
what can i do to limit the user from entering
the range till max 25
you literally asked this π
burning apartment sounds fun
my question should be :- the user should enter the value of shift_value >= 25
but i understood it
no
thats for terminals
you hold the back with something conductive (your hand which should be connected to something conductive because neurons are conductive)
cant you just repartition it like Home Automation ?
@elfin wigeon π
@flat sentinel just reflash it
you can just get the packages installed form apt
to a file
dpkg --list 'x*'
60
wemon β
women β
lol
lemon π
what can I say
he just really likes tea
@flat sentinel pillow
women β
women β
HOW TO FIX - PIP IS NOT RECOGNIZED AS INTERNAL OR EXTERNAL COMMAND ERROR IN PYTHON || PIP ERROR
REASON : IMPROPER SETTING OF PATH IN ENVIRONMENTAL VARIABLES
SOLUTION : PROPER SETTING OF PATH IN ENVIRONMENTAL VARIABLES
PYTHON TUTORIALS FOR...
verboof knows how to roast π
:ok_hand: applied mute to @flat sentinel until <t:1674396053:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).
The <@&831776746206265384> have been alerted for review.
LOL
saw that one coming
i used to play in 2019
@flat sentinel You nong. π
ye way better
the black shark ai really helped with it
but i heard the interior is much better in xplane i mean you can play with those buttons
why would this exist
yep, MSFS doesn't have that much of a realistic feel when it comes to interior
yeah. The Zibo 737 mod is very good, and it is free as well
if you want good planes, you usualy have to pay for them
like the PMDG's for Prepar3D or MSFS2020/FSX
why are you saying dates
give us model names
hwinfo would do it, but i mean ye this works aswell
its decent
Saved Part Lists
only thing is the cooler is actually the mugen 4 instead of the mugen 5
i would honestly go for a 1060, but 1070 has way better fps
but the mugen 4 isn't in pcpartpicker
1070 is gonna be a bit hotter, louder, more hungry , but 1060 is cheaper - yet again you can easily get ~10-20 more fps
fps in what application?
(also, at which preferences?)
in games
at 1080 a 1070 will be way better than a 1060
i dont remember what benchmarks specifically
but i recall a very major difference
well, ArmA 3 is a game; good luck increasing FPS in it by buying a better GPU
its actually very good pc , it would pretty much run warzone very smoothly maybe even at 60-70 fps
fps: 20
gpu usage percentage: also 20
(on high settings on things comparable to 1060/1070)
never played ArmA in my life
you should
the scenario editor ist the best
@strong flame @open oar π
π
given ArmA's optimisation, everything is a potato unless you overclock CPU to 10GHz or whatever
so they put a device in your car to track that?
very common
seems like a feature
may be an attempt at pre-rendering
Its not a bug its a feature last hackathon theme
instead of just covering non-rendered parts with background colour
ightg guys nice meeting yall seem like cool ppl
gonna go study stupid language :pain:
just install Solaris on your laptop and become the third person to ever get their Solaris laptop stolen
@lost valve π
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
that seems like a long process
oh, it's hidden by default
why don't you just verify the person in a vc
c'mon man just give me the role
i ain't got no time for the process man
i'm not entering USA border, it's just a discord server lol
Β―_(γ)_/Β―
nobody's forcing you to get it
aight dawg goth ya
no cap is not a slang
@tawny trellis π
hey
whats the issue?
F# as a derivative of OCaml, maybe a little
doesn't F# have analogues to Haskell's classes?
there seems to exist a community-made extension of F# called F#+
I'm not sure what to make of this. #βο½how-to-get-help maybe.
which introduces Monads and stuff
so what re you guys working on?
Invoice generator microservice
what does that mean?
some weeks/months since discovery: Pylance still doesn't fully understand tuples' covariance
i gtg bye nice you meet you all
INterested to know how many of you actually write tests
also, the voice channels needs some activity
Eclipse ERP is a real-time transaction processing accounting software used for order fulfillment, inventory control, accounting, purchasing, and sales. It was created for wholesale distributors in the Electrical, HVAC, Plumbing, and PVF industries, but is used by a wide range of market sectors. At one point this software was called Intuit Eclip...
Eclipse ERP is a real-time transaction processing accounting software used for order fulfillment, inventory control, accounting, purchasing, and sales. It was created for wholesale distributors in the Electrical, HVAC, Plumbing, and PVF industries, but is used by a wide range of market sectors. At one point this software was called Intuit Eclip...
Hey @vestal mason!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@azure rivet π
Hi
Joined muted cuz loud background
How are you?
Mom is cooking and watching kdrama lol
Yeah
What time is it?
Wow. It's 8:56pm here
Lmao. It's not surprising. Just interesting to think of someone else's POV if you know what I mean
Yeah lol
It would be something indeed
Yeah that would actually be hard to implement in modern day society. Not to mention relativity in physics. Objects moving at different speeds would have different time dialations
Probably spelt that wrong
Dilations*
Fr it's just a tiny spec lol
Also true
Did you say infinite height? My brain ran out of memory trying to calculate :'v
Oh yeah makes sense
Physics was my favorite subject in school. Don't ask me about it now tho π
Do you code often?
I see I see
Yeah I know what you mean lol
And it's crazy because sometimes you don't even know what you've forgotten until you have to use it and you're like, "wait I knew how to do this before" then proceed to google
Sometimes you just gotta refreshγ for me anyways
Actually this could happen even while you're actively studying. Because the more stuff you learn the less frequent you use uncommon concepts and it's easily forgetable
Have you played Minecraft before? :v
Hrm.
Whatcha talking 'bout
:v
I'm curious as to how he figured that out lol
Do you have any outdoors hobby? (I've none)
a project he was going to work on
About what
@civic prairie π
With what
Sounds fun
way too little solutions for my fried brain
its pandas
it wont work
ive used it in the past too but i cant remember
I've never used pandas. Fun fact, I can't even install it on my system (I code on phone :'v)
probably is
Yeah maybe it's just a general python thing
am i allowed to send pics?
that the code
its ez
the error is bigger than the code π
idek these are instructions i just copy pasted
its supposed to work
but it wont
@formal owl π
its spanish cause im from mexico
but the instructions are quite literally just copy paste that
that is my excel
it does have the things and its named the same
Why didn't it go into the try exception tho? π€
hello
if its that ill shoot myself
been here before
i know how to help my helpers
im trying to fix it
ill redoo
didnt seem to work
im dumb
it worked
but since im using stupid google colab i had to upload the excel again for it to update
visual studio on top
thx you are awesome
i wont fail now π
actually made my week
thx for everything have a good rest of the day
that theacher a bih
i def wouldve failed
agreed ive had great teachers before
@limpid comet π
π no permissions to speak
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
F
Anti voice-troll measure on account of not enjoying people screaming in my ear every five minutes.
Not hyperbole.
Totally understandable, cause this would of been me lmfao. Wanted to ask a really simple question that I forgotten how to do
What's up?
I am trying to print a receipt, when I print print(food_quantity, food_item, '@', f'{food_price:.2f}', '=', '$', f'{total_cost:.2f}') there is whitespace in between the $ and total_cost.
Isnt there a print with some kind of 'end=' so it places the next char without spaces
!f-string
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
f'{food_quantity} {food_item} @ {food_price:.2f} = ${total_cost:.2f}'```
This looks nice.... now*to rewrite the entire program :p
also one more problem with my script
without changed print -> f strings first
My inputs aren't coming out as 2 decimal floats
print(food_item)
food_price = float(input('Enter item price: '))
print(food_price)
food_quantity = int(input('Enter item quantity: '))
print(food_quantity, '\n')
total_cost = float((food_quantity * food_price))
print('RECEIPT')
print(food_quantity, food_item, '@', f'{food_price:.2f}', '=', '$', f'{total_cost:.2f}')
print('Total cost: $', f'{total_cost:.2f}')
if it makes it easier
receipt is accurate but inputs are incorrect
confused why the 2.0 is not 2.00
How would I force a 2 decimal
f'x' = print('x) ?
i tried with format but it was broken for me :p
in this context
I understand, thanks for the f string information. I was unaware of this method of printing strings
This like this are so good to learn... but also kinda like a bomb.. because now I have to rewrite everything i've done to utilize f string.
Good practice
Thanks for the help, literally .01 seconds after i've joined this discord with useful information and positive polite attitude.
π¦ output still generates whitespace
same as one posted above
exception* with the f string you listed
I cry now, tomorrows problem. Been working for like 6 hours
Thank you for your help though
@grand vortex π
plz help me
i can' t install opencv2 in pycharm
Usage:
C:\Program Files\Python310\python.exe -m pip install [options] <requirement specifier> [package-index-options] ...
C:\Program Files\Python310\python.exe -m pip install [options] -r <requirements file> [package-index-options] ...
C:\Program Files\Python310\python.exe -m pip install [options] [-e] <vcs project url> ...
C:\Program Files\Python310\python.exe -m pip install [options] [-e] <local project path> ...
C:\Program Files\Python310\python.exe -m pip install [options] <archive url/path> ...
no such option: --build-dir
this error show
what i can do
solve this problem
i use pycharm2020
@grand vortex I don't use PyCharm so I'm unclear as to what the best course of action is. Check out #βο½how-to-get-help and you'll probably connect with someone who knows the specifics of what you need to be doing.
Lol it seems like you shouldn't be passing --build-dir huh
!e py a = '123456' #a = input() b = ','.join(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
1,2,3,4,5,6
@whole bear π
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@warm jackal I do not have any question. I am okay with programming
didn't participate and am somewhat aware of malpractices
iirc, it's OK if it doesn't cause harm but beyond that there's no difference where exactly they poke with needles
first time seeing this note in Wiktionary
I thought such notes were usually after the definition
I'm looking at the Russian Wiktionary and equivalent of that (orange thingy) is after the definition
oh, there's even more formatting differences
English Wiktionary does the "quotations βΌ" expandable list whereas Russian Wiktionary just lists sentences coloured in green after "β" separator
German one has a separate "Examples" ("Beispiele") section
why are they so different
I'd guess they're formatted similarly to how local paper/web dictionaries are/were
Had to go, doctor stopped by
French has a bullet list below the definition
My attention will be split and I'll be up and down a lot
Hey oof
Kinky
Kinky as in cool, awesome
Most wouldn't
Nah
So you did the grounding yourself for the house?
How do
Fair enough
Don't know why I thought that would be more complicated
One sec
Sounds about right
Security pins being the rounded tips?
Tee hee
Mushroom tipped...
You said it
I just enjoyed it
Eh
Could just be an unflattering nickname
Hey whats going on?
One of my co-workers may have clicked on a phishing/virus email
Oh this is going to be a fun morning
Fingers crossed it's one of the fake phishing ones
We use KnowBe4 to do security training
Well
Shit
No, clicked the unsubscribe button
But the issue is that the email is just gone now
Like he didn't delete it
So hunting a little bit
We use Outlook
I'll have to double check
Yeah good point
Not a lot, how've you been?
Hadn't thought about using a built in unsubscribe thing
I don't believe so
True
Yeah same
Can't find it anywhere... gonna have to ask our MSP to check for it
are there logs or something in Outlook?
Not that I can touch
Our MSP can, though
So I'll have to sass them for it
Thankfully I have one of them on sass speed-dial as it were
I chat with her on Discord
@tidal shard Sup brah
Managed Service Provider
So like outside IT folks
Network admin, backups, security
Server handling
Not a matter of cheaper
It's typically more secure, consistent
Eh
One sec, calling the co-worker
Hmmm
something tries to log on to my mail server
it fails; a lot
it doesn't give up; it just spam-logins once every several seconds
different logins and same password; like it hopes there's an account with no auth or something
requests coming from Iran
or, less likely, Lithuania
(according to some info about the ip)
Lithuania
@zenith radish Are you trying to do the l33t hax0ring again?
@somber heath I was already writing the message as you said that outloud
Great minds and all that
Happens
Potential phishing issues
@sudden barn


