#voice-chat-text-0
1 messages · Page 313 of 1
in germany is Beer
@tawdry veldt 👋
In Brazil we have cachaça and a bald dictator
What is cachaça?
a drink made from fermented sugar cane juice
almost gasoline
After fermenting, it is also distilled
basically sugarcane juice rum
Is that a good thing or bad thing?
good
he need my help with whatsapp
random_str() -> return "mrbeast could do a "show your code" challenge"
I think nothing
ok
What's yours
Mushi-Shi
11:29 AM
C++ is hard to write in Windows
How do you mean?
It is hard to install
Like with the MSVC?
yeah
It's not that bad. Just get the Visual Studio installer tool and snag the build tools
I have done it now
You know C++?
3GB tools
Nope, I only needed the build tools since Python compiles some stuff and needed it
Ok I thought you knew
Sadly no. I never learned C/C++
ok
u can user pyinstaller
ever planning to?
Maybe one day
No no, I mean to compile some libraries from pip
numpy for example
to pyc or bin ?
binaries I think. Numpy is written in C, so it needs to compile before you can import it into Python
or(eng) == ou (pt-br)
You typically just don't hnotice it
Huh, didn't know that
do you know c++?
only the basics
ok
u can compile a venv and use as binary i think
I mean... technically
Venvs are just their own little instance of your system's Python
I mean what are you going to say?
hell?
Cheers all 😄
hey buddy @rugged root
How goes it
je parle en peu francais
Qui
nice i think on the voice chat we should discuss about the inovations and tech rather about local problems
oui
The topic comes up. But VC here is more of a general chat. Topics flow around
It is not specific. It is general
no
disagreed
French is the rizzing language
sounds crazy but i think we need potential
Salut tout le monde, comment allez-vous
Which part are you disagreeing with
Potential?
guys you can use duoliongo @still herald
English only, though, please
on lil about developing tech and inovation rather geographical or cheap talk it will waste of time
@still herald i am hearing you sister
yeah
That's me
Ok man i just joined
Anyone know C++ here?
tech in tech open ai annouced about developing agi so can we have better idea than it
New GPT-4o
Why did this server change the server picture animation everyday?
beacouse have a bot to do it
@upbeat bobcat You can forget about asking me for code help ever again.
You gave a thumbs up to that bigoted post is what you did.
Je ne t’abandonnerai jamais
?
So we are done.
It was a misclick
no dude sexulity don't work only chemicals works and its simple easy to understand
Wait was that a Rick Roll?
the fuck?
I'm gonna give you guys short movie homework
This is a call from programmers or HR ?
A movie name "kiss of the rabbit god"
!mute 1043605844576702524 1d I already said to stop with this conversation. We're an open and accepting community. Comments like this are counter to the culture we try to instill here.
:incoming_envelope: :ok_hand: applied timeout to @meager escarp until <t:1715785573:f> (1 day).
@rugged root I understand 50% of what you say but I love you
Am I that hard to understand?
My English is worse than my Indian
Kiss of the Rabbit God 2019 by Andrew Thomas Huang
Ah fair
I'd find that easier to believe had you removed it right away. You did not.
Jesus christ that channel name
Guys… isn’t this a python chat? 🤔
i try explai it for HR
It's a general conversation channel. It's often Python, but not always.
I didnt knew i misclicked you told me
Idk I'm too sensitive to not take anything personally 🎀
@molten pewter The prophecy of the shit day is coming true
isso não é pessoal, é apenas pontos de vistas diferentes
English only, again
Guys what do you know about Iranians/Persians
I've got a couple buddies who are
So I know about them specifically, but not much beyond that
You don't want to know my answer to that question.
@molten pewter This one?
Is Brazilian coffee too expensive there?
Iran?
iran have coffe ?
New GPT-4o (Omni) demo: My new book BRAVE NEW WORDS: HOW AI WILL REVOLUTIONIZE EDUCATION comes out tomorrow. On page 115, in the chapter on "Increasing Points of Connection Between Parents and Their Kids," I talk about how AI can facilitate human-to-human interaction.
Here is a demo with the just announced GPT-4 Omni that my son and I filmed l...
There's a huge coffee culture in Iran
That region in general has a huge history of it
Can I teach how to speak something in Portuguese so women will fall in love?
Yeah dude there’s cafes in every street here and its hella cheap!
The problem is that this long story started 3k years ago and to this day people fight
Today people die because of a pride that doesn't exist, today no one is 'pure blood'
3k years
long time
It’s all because of the shitty government Iran has
people are dying because of doctrines passed down from generation to generation, which must be respected, but not imposed
I understand, I'm Brazilian
famous puppet government
Alright let's start shifting further away from this please
This has been a morning of just constant contention
Here we see Steve Jobs introducing the very first iPod at a low key event in 2001. The rest is history.
@mild quartz Is the singularity here yet?
We're on a boat to the country it's living in.
We have a napkin with the address on it.
The napkin is soggy.
And of course the standard coffee ring
nəˈmänik
@whole bear Sup brah

@whole bear See? People. 😁
Time to whip out my trusty herring and fell a tree
😊
Wish I could play...
I have a running bet with my flatmates that bans all video games, TV, social media etc until the end of exams.
Which is in 3 days 
???
Do you know anything on report on Instagram?
I actively avoid Farcebook.
Python script report instagram?
You're trying to create one to do that?
Why do you want to create a mass reporting script?
My account is old, I want to report it, causing problems
Gentlemen, anyone can tell me, is it possible to pylint test then whole django project, instead of only one application?
Note: I use pylint and mypy through TOML file
@rugged root Do you have
Contact Instagram's support and work with them on it
Automating trying to do a mass reporting is likely a bad idea
👀
Thanks brother
They won’t care.
if you scratched your eye a bit , can act like allergy - use a antibiotic drop , it will go away @somber heath
have you ever used old fashioned ways @somber heath
boric acid is a powder( old days stuff here ) , add a bit to warm water and wash both eyes out , its a cleanser @somber heath
boric acid is not antibiotic @somber heath
I thought boric acid could really fuck you up if you don't properly flush it
its called boric acid , not because it will eat spoons , you can use it on all animals( your an animal ) to wash cuts even for your eyes @somber heath
a tiny box will last forever so , no money will be made
I like the clarificatory insult
no i get his point he has something else
Oh hey @stuck furnace 👋
I went to type but had italian keyboard enabled
Learning italian yeah 😄
You need it for the òèù etc
What's everyone up to?
imagine a chinese keyboard , thats ... complex i guess
Persian keyboard
It's very easy
You type pinyin and get options
whata gal
all the chinese girls i ever met , were math geniuses , was just so simple to them
it's banned in the eu due to toxicity
what can i do with python
feed it rats
That's what I thought
Well played
but that's mostly because people tried eating it which is pretty stupid tbh
You can do all kinds of things. It's general purpose and has tons of libraries out there
haha thats funny😄
people eat bleach so ... no wonder
well yes, and it's not banned
It's good for prototyping, used a lot in machine learning, its pretty good at web backends, although it has a harder time when the things get too large.
anybody poke at , mojo python to see if its better / worse ?
over all claim is its faster at everything , but ya for ML stuff
I keep hearing Rust is good , but i have no idea yet
does Rust have better housekeeping in the hardware environment ?
Since I can't access other forms of procrastination
so python wrapper / bindings can work with Rust ?
Yeah, there's pyO3
most embedded chips use C , so I hate C , but have C++ books ( real books size of phone books )
some of you may have same books
always go to garage sales - some dump their books cheap
Book stores or online usually
picking programming books is difficult - is best to ask people what they use all the time
nice, the store i used to check has expensive books
python interpreter in Rust ? does it run much faster ?
Im so out of date with C / C++ programming environments , so many installs just GUM up the environment , what would you recommend
needs to play nice with python , my primary language
You might check local libraries as well
go talk to clubs with old dudes , many have older books , and want to get rid of them @wise hemlock
alright, thx for the advice.
they aquire stuff from university and feel guilty to throw them out - they are looking for interested people @wise hemlock
lots of old ham radio guys have extra scopes , meters , parts , books - they need a good reason to get rid of it , so they can but NEW stuff
a old radio engineer gave me his entire , tube design course library , maybe good for audio amps one day
SDR airspy is a nice programm to play with radio signals
hey saw , Mystery Science 3000 movie @rugged root
they needed more freedom to say stuff , im sure it could have been more funny
wasnt their a tv series of it ?
thats were i saw that , here and there
hmm to pick a SDR is a big puzzle @dry jasper
so many out there now
software defined radio
theres a bunch of ham , sdr , signal processing stuff in python

Anyone seeing google io?
I did not watch it, anything worthwhile?
I'll probably catch up on Flutter updates when it's all available
@sullen sapphire 👋
why am i suppressed ?
@gilded storm 👋
Hi 👋
Oh damn my account ain’t verified yet
Oh ya im going to wait through the process
Introducing Project Astra. We created a demo in which a tester interacts with a prototype of AI agents supported by our multimodal foundation model, Gemini.
There are two continuous takes: one with the prototype running on a Google Pixel phone and another on a prototype glasses device.
The agent takes in a constant stream of audio and video...
dayum
maybe time for google glass finally
@valid lark👋
im too new haha
i was gonna ask if someone in the call can help me real quick with a question
super simple python just need some advice
sorry missed what u said
post here?
ok so basically it wants me to make like a chatbot that repeats the words you input but in all caps
def bot_shout(payload):
# Implement the body of the bot_shout() function here.
# Use bot_say() instead of print() to display output.
bot_say(payload)
bot_shout(['i', 'love', 'python']) #=> Chatbot: I LOVE PYTHON
bot_shout(['Channel', '2', 'is', 'ABC']) #=> Chatbot: CHANNEL 2 IS ABC
@somber heath
if i could screenshare it would make more sense
its just text
yes single string in all caps
no?
!e py iterable = 'MASH' result = '*'.join(iterable) print(result)
i think they want it all in bot say bot shout commands
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
M*A*S*H
!e py iterable = ['abc', 'def', 'ghi'] result = '!!'.join(iterable) print(result)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
abc!!def!!ghi
would you have like 30 min free to join a call so i can screenshare? it would make more sense
cos i cant talk in this call
!d str.join
str.join(iterable)```
Return a string which is the concatenation of the strings in *iterable*. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if there are any non-string values in *iterable*, including [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes) objects. The separator between elements is the string providing this method.
!e py text = 'MiXeD cAsE sTrInG' result = text.upper() print(result)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
MIXED CASE STRING
!e py text = 'MiXeD cAsE sTrInG' result = text.lower() print(result)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
mixed case string
yes
👋 @manic idol
wait so
for bot shout do i do text = ''
result = text.upper()
print(result)
or is that for bot say
#voice-verification @manic idol
what does it mean by saying # Implement the body of the bot_shout() function here.
no offence but i am not understanding anyhting rn
its all like letters and numbers in my head right now
def func():
... # This is the function body```
could you solve this and show me how you done it so i can get an idea for the other questions?
No.
That was your keyboard @somber heath
im so lost
no clue where to start
just wondering any reason why you dont do private calls/
ok
@hexed garnet👋
im a visual learner, if i see how its done ill understand why it was done that way
Pycharm
and that way i can implement it to other quesitons
Hmm
making no sense to me right now
im a visual learner speech itself isnt going to make sense in my mind
!e ```py
words = ['Apple', 'Pear', 'Orange']
joined = ' glue '.join(words)
lowercased = joined.lower()
print(words)
print(joined)
print(lowercased)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | ['Apple', 'Pear', 'Orange']
002 | Apple glue Pear glue Orange
003 | apple glue pear glue orange
i understand but how am i meant to tie that in with bot shout and bot say
my assignment is 150 marks, this question is only worth 10 marks. can you please just help me solve it so i can understand and i can move onto the other questions
i need the help in context of the work using commands like bot shout and say
not apple pear and glue
not hindering at all, i will understand alot faster and will be able to implement them answers onto other questions
i understand but just listenting to someone trying to explain it instead of showing it doesnt make any sense at all
!e py print('MiXeDcAsE'.lower())
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
mixedcase
def bot_shout(payload):
shout_message = ' '.join(payload).upper()
bot_say(shout_message)
bot_shout(['i', 'love', 'python']) # Chatbot: I LOVE PYTHON
bot_shout(['Channel', '2', 'is', 'ABC']) # Chatbot: CHANNEL 2 IS ABC
str.lower()```
Return a copy of the string with all the cased characters [[4]](https://docs.python.org/3/library/stdtypes.html#id15) converted to lowercase.
The lowercasing algorithm used is [described in section 3.13 ‘Default Case Folding’ of the Unicode Standard](https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf).
!d str.upper
str.upper()```
Return a copy of the string with all the cased characters [[4]](https://docs.python.org/3/library/stdtypes.html#id15) converted to uppercase. Note that `s.upper().isupper()` might be `False` if `s` contains uncased characters or if the Unicode category of the resulting character(s) is not “Lu” (Letter, uppercase), but e.g. “Lt” (Letter, titlecase).
The uppercasing algorithm used is [described in section 3.13 ‘Default Case Folding’ of the Unicode Standard](https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf).
hi
is this code ok
def bot_divide(payload):
numerator = float(payload[0])
denominator = float(payload[1])
result = numerator / denominator
bot_say(f"{payload[0]} / {payload[1]} = {result:.4f}")
bot_divide(['1.5', '5']) # Chatbot: 1.5 / 5 = 0.3000
bot_divide(['10.00', '2']) # Chatbot: 10.00 / 2 = 5.0000
bot_divide(['3', '7.0']) # Chatbot: 3 / 7.0 = 0.4286
is there a simpler way of doing this code
to divide 2 numbers
Hello Guys!!
hi
It looks functional.
Probably.
It could do with a guard against a bad operand.
Unless you're not supposed to worry about that.
are yall familiar with count
bot_count(['10', '3'])
10
11
12
yes
so if bot_count(['20', '3'])
20
21
22
!e py value = 0 value = value + 1 print(value) value = value + 1 print(value)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
!e py value = 0 value += 1 print(value) value += 1 print(value)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
!e py import itertools counter = itertools.count() print(next(counter)) print(next(counter)) print(next(counter))
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
@stable axle Do you know c++?
oh ok
there is a competition next year of C++
I want to learn it
I thought you know
How did you write your division function?
i found this online
def bot_count(payload):
if len(payload) == 1: # If only one number is provided, start counting from 1
start = 1
count = int(payload[0])
else:
start = int(payload[0])
count = int(payload[1])
for i in range(start, start + count):
bot_say(f"{i}")
bot_count(['10', '3']) # Chatbot: 10, Chatbot: 11, Chatbot: 12
bot_count(['2']) # Chatbot: 1, Chatbot: 2
yo
@abstract needle
my mic is disabled
cant need to be in discord for more than 3 days
are you good with python
i need to divide numbers
is this the optimal code
def bot_divide(payload):
numerator = float(payload[0])
denominator = float(payload[1])
result = numerator / denominator
bot_say(f"{payload[0]} / {payload[1]} = {result:.4f}")
bot_divide(['1.5', '5'])
bot_divide(['10.00', '2'])
bot_divide(['3', '7.0'])
bot_divide(['5', '9.0'])
bot_divide(['10', '100'])
Don't worry about optimal. Worry about beautiful.
i want it as short as possible
Brevity is desirable, so long as it's readable.
n, d = map(float, p)
!d map
map(function, iterable, *iterables)```
Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterables* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. For cases where the function inputs are already arranged into argument tuples, see [`itertools.starmap()`](https://docs.python.org/3/library/itertools.html#itertools.starmap).
map is generally thought of as "unpythonic" compared to comprehensions.
i need some help writing a bot count
i finished the division one
already
4
but i already finished it
Unpacking also offers options.
def bot_divide(p):
n, d = map(float, p)
r = n / d
print(f"{p[0]} / {p[1]} = {r:.4f}")
bot_divide(['1.5', '5'])
bot_divide(['10.00', '2'])
bot_divide(['3', '7.0'])
bot_divide(['5', '9.0'])
bot_divide(['10', '100'])
Write your bot_count() function here.
bot_count(['10', '3']) #=> Chatbot: 10, Chatbot: 11, Chatbot: 12
bot_count(['2']) #=> Chatbot: 1, Chatbot: 2
bot_count(['10', '3'])
Chatbot:
10
Chatbot:
11
Chatbot:
12
i meant to make code that counts
like this
def bot_count(payload):
if len(payload) == 1: # If only one number is provided, start counting from 1
start = 1
count = int(payload[0])
else:
start = int(payload[0])
count = int(payload[1])
for i in range(start, start + count):
bot_say(f"{i}")
bot_count(['10', '3']) # Chatbot: 10, Chatbot: 11, Chatbot: 12
bot_count(['2']) # Chatbot: 1, Chatbot: 2
its already counting man.
nothing's wrong
so, you want that, it should count -
4, 5,6,7,8,9,10?
ye
no
Ok
understool=d
@grizzled ruin👋
no
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | c
letter = 'a'
print(letter)
letter = 'b'
print(letter)
letter = 'c'
print(letter)```
brb
We see here that these two scripts behave roughly similarly.
In the for example, the variable, letter, is being assigned first to the 'a' in 'abc', then to the 'b' and finally to the 'c' per iteration.
For this reason, we call strings iterable. They can be plugged into a for loop in this manner.
Lists are also iterable.
def bot_count(payload):
start = int(payload[0])
end = int(payload[1])
if start > end:
for i in range(start, end, -1):
print(i)
else if start < end:
for i in range(start, end, 1):
print(i)
bot_count(['10', '3'])
!e py for fruit in ['apple', 'pear', 'orange']: print(fruit)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | apple
002 | pear
003 | orange
!rule 8
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
fruit = 'apple'
print(fruit)
fruit = 'pear'
print(fruit)
fruit = 'orange'
print(fruit)```
Thus, a for loop is an assignment operation that repeats.
Given a series of things to assign to.
and if you need, you can perform actions per assignment
Which you include in the indent of the for loop.
A for loop used like this creating an indented section.
A for loop used like this is known as a compound statement.
Anything that needs an indent like this is a compound statement.
def, for, while, if, elif, else, etc
@somber heath
I helped him out with the understanding of code and he is understood the values and functions
He is done with the work
cool man
So long as it also achieves understanding.
Yes. he understands the code pretty well
I didn't give the code to him, but one line of new concept, like float string, and told him to implement it
roblox
nahi khail ta
ok
G
ggg
😂
@cobalt sequoia 👋
Hmm
@broken bronze 👋
helo
def bot_count(payload):
start = int(payload[0])
end = int(payload[1])
if start > end:
for i in range(start, end, -1):
print(i)
else if start < end:
for i in range(start, end, 1):
print(i)
bot_count(['10', '3'])
Output
May
Error
What's the error?
Actually wait
!e
def bot_count(payload):
start = int(payload[0])
end = int(payload[1])
if start > end:
for i in range(start, end, -1):
print(i)
else if start < end:
for i in range(start, end, 1):
print(i)
bot_count(['10', '3'])
@rugged root :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 6
002 | print(i)
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 5
!e
print("Hello world")
@cobalt sequoia :white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello world
Oh, you just need to indent the prints
Currently they're on the same margin line as the for loops
Yeah 👍
My understanding is that the second element is a vector from the first.
It's kinda boring code
Write it simple bru
Am I mistaken?
No
In which case you've got a logic error
Hmm I think so
Bru it's may be written in a for loop
A spine-tingler! Check out this Corgi race from Canterbury Park in Minnesota, where Teddy (number 11) shows real speed to claim victory!
Enjoy the best of Sky Sports Racing on the free and award-winning At The Races app:
iPhone: http://apple.co/1I4NxAV
Android: http://bit.ly/1VPIcEz
https://facebook.com/AtTheRaces
http...
@coarse crater If you're wondering why you can't talk, check out the #voice-verification channel
That'll tell you what you need to know about the voice gate
With much easy syntax and understable
Canterbury Park Corgi Races 7-30-2016.... 6 Heats and the Final!
@desert wasp Yo
A montage of some of the best moments from last season's Beagle Racing, hosted by the Caledonian Thistle Pedigree Whippet Racing Club
@coarse crater You can talk in here
@coarse crater It won't let you use this one?
Hemlock
Asking something
ok so basically
im retaking this thing
but the code im using is from like
last year
Thinking
so i just need some clarification
@lone raptor 👋
Hi
X = 13
While x > 0:
Print(x)
X = x - 1
Simplest code I this world
yeah so i have an if statement that checks to see if the color parameter matches the birdColor[i]
i append
to my result list
how are you guys
meats = ["ham", "pork", "beef"]
for i in range(len(meats) - 1):
print(meats[i])
birdNames[i]
::-1
but that if statement is in a for loop]
!e
meats = ["ham", "pork", "beef"]
for i in range(len(meats) - 1):
print(meats[i])
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | ham
002 | pork
for (var i = 0; i < (birdNames.length - 1); i++)
@rugged root can u tell me how to I write this code in this way
@pliant jasper 👋
Like this
...
appendItem(resultList, birdNames[i]);
appendItem(imageResults, birdImages[i]);
Which command
Paul, give me a sec
that stuff
Hm
Trying to remember
is it cuz length
is 1 more than index
cuz index includes 0
ok
alr tysm
yeah i figured cuz i did python a while back
and looks relatively the same so i just figured i could ask yall
cuz this server is more active
than javascript
alg
@hexed garnet So are you just doing a countdown from one to the other?
!e
def bot_count(payload):
start = int(payload[0])
end = int(payload[1])
if start > end:
for i in range(start, end, -1):
print(i)
elif start < end:
for i in range(start, end, 1):
print(i)
bot_count(['10', '3'])
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 9
003 | 8
004 | 7
005 | 6
006 | 5
007 | 4
Oh there's a logic error
bag = pussi, chef = kokki
Yeah
It's simple
Hmm what's difference
It's in the second for loop
Oh nope
Right
Misread
Thought the -1 was in that one as well
Ignore the hem. It's counting down if the start is larger, up if it's smaller
I haven't had caffeine yet, apologies
I think that's the cleanest option
Do you want 10 to 13 or 10 to 3?
Which one
The original one you have, the one I repasted/reran
Hmm my code
There's ways to make it shorter, but it'd make it less clear
Yes
Oh god I just thought of something cursed
Hold on
It needs to go into a def call, not a print call.
The one I'm about to write is NOT recommended
by default a function returns None isn't it?
Correct
If nothing is specified otherwise.
If no return is specified, it will return None
!e
test = ['10', '3']
start, stop = sorted(map(int, test), reverse=True)
for i in range(start, stop, -1):
print(i)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 9
003 | 8
004 | 7
005 | 6
006 | 5
007 | 4
Hmm it more simpler I can write let me
What I have isn't very pythonic
Doesn't really fit the style of what you'd normally do in Python
Typically we want to shy away from map()
Not that it's not useful, but it's...
Trying to think of the word
A data engineer's primary focus is on creating the right environment and infrastructure for data generation, including responsibilities such as building data pipelines, creating data models, and ensuring data quality through wrangling.
On the other hand, a data scientist interprets the generated data, making sense of insights provided by data engineers.
Yeah I can't think of the word. Drinking tea now
Data Engineers are basically software engineers aren't they?
Granted, take what I say with a grain of salt. I code as a hobby
def code(n, n2):
while n > n2:
print(n)
n = n - 1
code(12, 4)
I do IT professionally
@rugged root
@whole bear hey are you doing a bootcamp or something?
See this
I was just asking you bro! @whole bear
That's good so long as the user of the code knows that the bigger number has to be on the left
But in general, since you know how many times something is going to happen, a for loop is better
for loops are for when you know that the loop has to happen a certain number of times, like when you're doing range(). while loops are better for when the number of loops is uncertain
Like making sure user input is valid or there's other conditions that have to be watched
I had one more question...
if there is variable inside for loop
something like...
c=0
for i in range(3):
c= c+ 1
print(c)
so the above code will create c object each loop right ?
how is your health @somber heath ?
Anyone messed with this? https://github.com/fiatrete/OpenDAN-Personal-AI-OS
I'd do this instead for the incrementing:
c += 1
but this would still create new object everytime? will it?
It would, yeah. And that's purely because integers are immutable
unlike strings
Something I'm enjoying about Rust imports or import equivalent:
mod components;
use components::{
dialogmodel::{DialogInput, DialogModel},
headermodel::HeaderModel,
};
use gtk::prelude::{ApplicationExt, GtkWindowExt};
use relm4::*;
I like how easily you can chain and tier out the use
Put imports before module declarations.
https://doc.rust-lang.org/nightly/style-guide/items.html
So like:
use components::{
dialogmodel::{DialogInput, DialogModel},
headermodel::HeaderModel,
};
use gtk::prelude::{ApplicationExt, GtkWindowExt};
use relm4::*;
mod components;
yeah
idk why the style guide says that but that's the way it is
That feels weird, though
New GPT-4o (Omni) demo: My new book BRAVE NEW WORDS: HOW AI WILL REVOLUTIONIZE EDUCATION comes out tomorrow. On page 115, in the chapter on "Increasing Points of Connection Between Parents and Their Kids," I talk about how AI can facilitate human-to-human interaction.
Here is a demo with the just announced GPT-4 Omni that my son and I filmed l...
ig this:
extern crate ...;
use ...;
mod ...;
use is more logical to be near extern crate
and extern crate really should be at the top
use gtk::prelude::{ApplicationExt, GtkWindowExt};
use relm4::*;
use components::{
dialogmodel::{DialogInput, DialogModel},
headermodel::HeaderModel,
};
mod components;
Or do you mean specifically ones with the extern keyword
Gotcha
selfandsupermust come before any other names
use self::components::{
dialogmodel::{DialogInput, DialogModel},
headermodel::HeaderModel,
};
use gtk::prelude::{ApplicationExt, GtkWindowExt};
use relm4::*;
mod components;
brain pain
That's going to take me a bit to get used to
I'm used to Python's:
built-in
pip installed
local
I'm still not sure if I'm going to follow this
for now I just let rust-analyzer auto-import however it likes
rustfmt has many import-related stuff but it's nightly
Do they have when they're going to do the next major stable on the roadmap or something?
Because we're still currently on 2021 edition I think
for me it does
use alloc;
use core;
use std;
use ...;
use crate;
use super;
use self;
2024 is in proposal stage I think
October 17th
So I don't know if this is specifically rust-analyzer or something weird in my Sublime, but I'm using the relm4 library, and when you're doing something like:
#[relm4::component]
impl SimpleComponent for AppModel {}
There's a bunch of expected functions and a macro in there. And the intelli-sense does show those and lets you tab complete them. But then it just eats half the code that's already there.
It's the strangest thing
Like it'll eat up current to 8 lines up
I have no idea why it's doing that
eats half the code?
how does it look like
I'll make a quickie example
Oh of course, now that I'm talking about it, of course it's not doing it
maybe rust-analyzer got updated and you didn't notice
I've seen it do worse:
fn method() \{
\}
on stable rust-analyzer
then I switched to experimental and there it was fixed
I never switched back to stable ever since
I'm always worried it's because I'm using Sublime, but they have official support for it on the rust-analyzer site, so I don't think it's that
Fingers crossed it's just a fluke
whaaaaaaaaat
- prelude:
FutureandIntoFutureare added -> impl Traitcaptures every lifetime in scope- public/private dependencies
- remove implicit features
It happens actually, when the person you are talking to shows interest in the convo, it becomes a discussion rather than just you speaking
Remove implicit features? Hold on can you toss a link?
I've seen interviewers doing something else while taking the interview which ruins it completely
each optional dependency defines a feature
for now
Interesting
I'm not sure
Because you have expressed concerns about your depression, about your ability to focus, about your anxiety. Concerns that you have said you don't think you're able to take care of on your own, that you admit prevent you from doing things that you enjoy or that you need to do
This would be a good reason
That's why I recommend it
Am I not normal?
There is no such thing as normal
The concern here is that you are having issues with things you need to do and want to do. This is something you have said here and have told me directly.
It's like saying someone who needs glasses isn't normal
I blame my country for this, I'm not educated about my mental health
It's just something that they need in order to help them do things
Yeah
And some people do need meds, some don't
There's nothing wrong with either
But getting help in order to help you figure out what works best for you is important
Taking that first step is the biggest thing
can confirm
Are you a bot?
What?
I'd like to be, yeah
Your name and pfp and texts looks like you're a bot
sadly, no
Beep bep
Let me just be weird and dumb for a while @rugged root
Oh
@still herald What were you asking, sorry?
What is the difference between hybrid and remote locations?
I always get confused between two
Hybrid's remote and onsite both
Remote is just work from home
Wait, hold on. @vocal basin So even if a function is marked as unsafe, you still need to wrap the line inside the function with another unsafe?
unsafe fn get_unchecked<T>(x: &[T], i: usize) -> &T {
unsafe { x.get_unchecked(i) }
}
not yet
they want to make it so
to make unsafe fn mean only "this has extra safety preconditions"
not "this function asserts that preconditions for what it calls are met"
because right now it's both requirement for external code and promise to internal code
unsafe fn | unsafe trait
------------------------
unsafe {} | unsafe impl
Interesting
I miss you folks, I have been AFK for a while.
I will be at pycon in Pittsburgh this week. Please say hello if you're there too.
Hope you've been well! Been thinking about you, just keep forgetting to poke you to check in
Thank you, I've been busy resting, reflecting and doing family things. I noticed that I need more social interaction.
Yeah it can make a huge difference
I'll send updates from pycon, cheers.
Have fun!
Oudaen
500 years is the average brick lifespan Research undertaken by Adrian Bown from Leeds Metropolitan University of 860 homes found that brick structures can have a lifespan of 500 years or more.
@rugged root https://en.wikipedia.org/wiki/Muiden_Castle
Muiden Castle (Dutch: Muiderslot, Dutch pronunciation: [ˌmœydərˈslɔt]) is a castle in the Netherlands, located at the mouth of the Vecht river, some 15 kilometers southeast of Amsterdam, in Muiden, where it flows into what used to be the Zuiderzee. It is one of the better known castles in the Netherlands and featured in many television shows set...
needs archers
Guy's what's the difference between data mining and data profiting?
I've never seen a real example of data profiling
walks past coffee machine like its a stranger
Anyone please
there was a ANT on roof , it was fast view , along with the pool of water
Not sure, haven't heard of the latter term before
Ya same
Alarm system
Profiling*
From what I found on google:
Data profiling is the process of examining the data available from an existing information source and collecting statistics or informative summaries about that data.
Data mining would be the actual collection and harvesting of data
nice and fancy - fresh ground coffee
Well ya I know that but i just didn't understand
lots of universities put their course outline , online with PDF books , at least chapters
Really?
Where do we find that stuff?
do you want knowledge or a piece of paper
LENOVO are scattered across many offices far and wide
a laptop is just a interface to click and view info then network it to a tower with real compute power
lack of motivation is a weakness
@still herald Maybe some ideas https://www.nngroup.com/articles/risks-of-quantitative-studies/ 👀
you need a few terabytes of parts inventory to sort - show trends bla bla
gtg
Didn't ordered, will buy 1 out two tomorrow from the showroom
I see
Brazil
Maybe for CS but every scientific study is quantitative basically
So I highkey disagree w this article in general unless you’re talking abt UI
Yeah not necessarily an endorsement 😄 They were looking for things they could write about the pitfalls of data analysis. I actually agree with the article partially though. Statistics is often used poorly where qualitative research would have been fine. This is a nice quote at the end:
Yes, experts get better results than beginners from qualitative studies. But for quantitative studies, only the best experts get any valid results at all, and only then if they're extremely careful.
It brings to mind this Feynman speech which is worth reading if you haven't: https://calteches.library.caltech.edu/51/2/CargoCult.htm
Feynman 😩
Next, we consider the science of psychology. Incidentally, psychoanalysis is not a science: it is at best a medical process, and perhaps even more like witch-doctoring. It has a theory as to what causes disease—lots of different “spirits,” etc. The witch doctor has a theory that a disease like malaria is caused by a spirit which comes into the air; it is not cured by shaking a snake over it, but quinine does help malaria. So, if you are sick, I would advise that you go to the witch doctor because he is the man in the tribe who knows the most about the disease; on the other hand, his knowledge is not science. Psychoanalysis has not been checked carefully by experiment, and there is no way to find a list of the number of cases in which it works, the number of cases in which it does not work, etc.
this quote is hilarious
from him
he is just saying there are way too many unknowns for psyschoanalysis to be considered science atm
We do not know what it means, or what change there is in the nervous system, when a fact is learned. This is a very important problem which has not been solved at all. Assuming, however, that there is some kind of memory thing, the brain is such an enormous mass of interconnecting wires and nerves that it probably cannot be analyzed in a straightforward manner. There is an analog of this to computing machines and computing elements, in that they also have a lot of lines, and they have some kind of element, analogous, perhaps, to the synapse, or connection of one nerve to another. This is a very interesting subject which we have not the time to discuss further—the relationship between thinking and computing machines. It must be appreciated, of course, that this subject will tell us very little about the real complexities of ordinary human behavior. All human beings are so different. It will be a long time before we get there. We must start much further back. If we could even figure out how a dog works, we would have gone pretty far. Dogs are easier to understand, but nobody yet knows how dogs work.
this was during like freudian psychology tho
it was pretty unscientific compared to today lol
its from these tho u prolly have seen them but free 2 year physics course from the QED GOAT himself
@buoyant elk 👋
hi
Hi
I can't talk because I haven't reached the required number of messages.
I need some help.
class stack(object):
__list = []
def __init__(self):
""" """
def push(self, val):
self.__list.append(val)
def pop(self):
del self.__list[-1]
def top(self):
return self.__list[-1]
def count(self, val):
return self.__list.count(val)
class kToPy(stack):
__list = []
def __init__(self, *args, **kwargs):
self.__txt = args[0]
self.parser()
def parser(self):
"""
conver k string to python syntax
"""
try:
lines = self.__txt.strip().split("\n")
for line in lines:
st = "\t" * self.count("{") + line.strip()
if "{" in st:
self.push("{")
st = st.replace("{", ":")
if "}" in st:
self.pop()
st = st.replace("}","")
self.__list.append(st)
self.execute()
except Exception as e:
print(e)
def execute(self):
"""
here will be the execution of your
txt
"""
li = self.__list
st = "\n".join([i for i in li])
return exec(st)
kToPy("""
def func(n){
#global func
if n in [1,2] {
return 1
}
else {
return func(n-1) + func(n-2)
}
}
print(func(4))
""")
this is my parser to convert {} to python ident
but if u run this u will get error
!e
class stack(object):
__list = []
def __init__(self):
""" """
def push(self, val):
self.__list.append(val)
def pop(self):
del self.__list[-1]
def top(self):
return self.__list[-1]
def count(self, val):
return self.__list.count(val)
class kToPy(stack):
__list = []
def __init__(self, *args, **kwargs):
self.__txt = args[0]
self.parser()
def parser(self):
"""
conver k string to python syntax
"""
try:
lines = self.__txt.strip().split("\n")
for line in lines:
st = "\t" * self.count("{") + line.strip()
if "{" in st:
self.push("{")
st = st.replace("{", ":")
if "}" in st:
self.pop()
st = st.replace("}","")
self.__list.append(st)
self.execute()
except Exception as e:
print(e)
def execute(self):
"""
here will be the execution of your
txt
"""
li = self.__list
st = "\n".join([i for i in li])
return exec(st)
kToPy("""
def func(n){
#global func
if n in [1,2] {
return 1
}
else {
return func(n-1) + func(n-2)
}
}
print(func(4))
""")
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
name 'func' is not defined
if u make global
it will run with no error
!e
class stack(object):
__list = []
def __init__(self):
""" """
def push(self, val):
self.__list.append(val)
def pop(self):
del self.__list[-1]
def top(self):
return self.__list[-1]
def count(self, val):
return self.__list.count(val)
class kToPy(stack):
__list = []
def __init__(self, *args, **kwargs):
self.__txt = args[0]
self.parser()
def parser(self):
"""
conver k string to python syntax
"""
try:
lines = self.__txt.strip().split("\n")
for line in lines:
st = "\t" * self.count("{") + line.strip()
if "{" in st:
self.push("{")
st = st.replace("{", ":")
if "}" in st:
self.pop()
st = st.replace("}","")
self.__list.append(st)
self.execute()
except Exception as e:
print(e)
def execute(self):
"""
here will be the execution of your
txt
"""
li = self.__list
st = "\n".join([i for i in li])
return exec(st)
kToPy("""
def func(n){
global func
if n in [1,2] {
return 1
}
else {
return func(n-1) + func(n-2)
}
}
print(func(4))
""")
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
3
why i should use global
look at the same exec.
!e
def func(n):
if n in [1,2] :
return 1
else :
return func(n-1) + func(n-2)
print(func(4))
!e
def func(n):
if n in [1,2] :
return 1
else :
return func(n-1) + func(n-2)
print(func(4))
@whole bear :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | py
004 | ^^
005 | NameError: name 'py' is not defined
!e
def func(n):
if n in [1,2] :
return 1
else :
return func(n-1) + func(n-2)
print(func(4))
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
3
no global here
Am i alone ?🥲
ok
@whole bear I'm wondering if it's to do with the sequence of how things run regarding exec.
Scoping, maybe.
Ah.
It might be to do with the scope.
kToPy.execute's
@graceful minnow 👋
maybe
All I did was merge a bunch of texts into one text.
returning the exec call looks a bit off, too, but I don't think that's the problem.
i tried everything
!e
class stack(object):
__list = []
def __init__(self):
""" """
def push(self, val):
self.__list.append(val)
def pop(self):
del self.__list[-1]
def top(self):
return self.__list[-1]
def count(self, val):
return self.__list.count(val)
class kToPy(stack):
__list = []
def __init__(self, *args, **kwargs):
self.__txt = args[0]
self.parser()
def parser(self):
"""
conver k string to python syntax
"""
try:
lines = self.__txt.strip().split("\n")
for line in lines:
st = "\t" * self.count("{") + line.strip()
if "{" in st:
self.push("{")
st = st.replace("{", ":")
if "}" in st:
self.pop()
st = st.replace("}","")
self.__list.append(st)
self.execute()
except Exception as e:
print(e)
def execute(self):
"""
here will be the execution of your
txt
"""
li = self.__list
st = "\n".join([i for i in li])
exec(st)
kToPy("""
def func(n){
#global func
if n in [1,2] {
return 1
}
else {
return func(n-1) + func(n-2)
}
}
print(func(4))
""")
Though if you wanted the function out of it, you'd want to return the created function.
@whole bear :white_check_mark: Your 3.12 eval job has completed with return code 0.
name 'func' is not defined
!e ```py
def alpha():
exec("""
def f(v = 5):
print(v)
if v:
f(v-1)
""")
return f
f = alpha()
f()```
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 11, in <module>
003 | f = alpha()
004 | ^^^^^^^
005 | File "/home/main.py", line 8, in alpha
006 | return f
007 | ^
008 | NameError: name 'f' is not defined
not verified i tend to text less :sadge
Oh well. 😁
I was just trying to wrap my brain around a corner of Python I don't usually deal with amidst distractions.
!e ```py
def alpha():
exec("""
def f(v = 5):
print(v)
if v:
f(v-1)
""")
alpha()
f()```
@somber heath :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 11, in <module>
003 | f()
004 | ^
005 | NameError: name 'f' is not defined
Just the particulars of how exec thinks.
Because above person has an issue.
Let's have a crack at eval.
local scope issue
hi
Yeah, that's kind of what I was thinking.
yep
!e py def f(v = 5): print(v) if v: f(v-1) f()
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 5
002 | 4
003 | 3
004 | 2
005 | 1
006 | 0
👋🏻
not voice verified as well ig
Mhm.
😔
ig the voice verification didnt used to be there 2 years back
cause i used to join the vc
yepp
the amount of beginners on tech servers is more and they tend to have lack of patience so yeah it makes sense
what is @night sparrow doing?
ok got it
got it
i tired digging into ML but did not get much time. Had a surface level knowledge want to continue but currently focusing on job hunting.
what are you learning @somber heath
xD
ic
+1
understandable
the situation of current job market is cooking my brain
true
whats the temp?
its 42 here lmao
did autralia had rains?
a few years back i saw a news that it did not rain for a couple of years
there
true
bye
complication
local scope issue
ok
we have ACs for years now
the temp keeps rising
yepp
the RCFCs
but people want a quick sol to the heat which is AC
you asking me?
@night sparrow it is from junji ito manga
@night sparrow could u help me with one python code?
this regarding leap year
to check whether the year is leap year or not
#Leap year
year = int(input("Enter the current year:"))
if year % 4 ==0 and year % 100 != 0 and year % 400 != 0:
print(f"{year} is a leap year")
else:
print(f"{year} is not a leap year")
is it valid?
yes in anime
but the anime quality is not so good
doctype?
triple (`)
!e
year = 2000
if year % 4 ==0 and year % 100 != 0 and year % 400 != 0:
print(f"{year} is a leap year")
else:
print(f"{year} is not a leap year")
@night sparrow :white_check_mark: Your 3.12 eval job has completed with return code 0.
2000 is not a leap year
