#voice-chat-text-0
1 messages ยท Page 84 of 1
Read. Think. Use. Sleep.
It's unpacking the points
How do I unpack the values using the point?
In one list comp...
why , 1?
Maybe this is the time for a for loop lol
---------\ / This is whether to return the values or coordinates of points true meaning to return coordinates
[2, 2, 1, True]
\ / ^ this is the range of neighbors
these are the coordinates of the point
grid[x, y, :, True]
hold on
{point:value for point in grid[x, y, :, True] for value in grid[*point] if value.sum()}
No worries just letting you know
I'm not a robot . I wanna learn this language in youtube channel or in a website that's way i 'm here for helps me (give me somme website or something)
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
dictionary comprehension
i cant find this in my settings
{key:value for ...}
all values
From the start to the end.
another :
not what im talking about ustafa lol
I'm dumb
in , :,
ignore
[x, y, :, True]
^
yes like this
That's cool though, either way it's my own function
I've overridden the get_item function to allow getting neighbors
It's not you.
def __getitem__(self, key: int | tuple[int, int] | tuple[int, int, int] | tuple[int, int, int, bool]) -> Any:
if isinstance(key, int) | isinstance(key, slice):
return self.grid[key]
match len(key):
case x if x > 4:
raise ValueError("Not valid index.")
case 2:
return self.grid[key[1]][key[0]]
case 3:
return self.get_neighbor_values(key[0], key[1], key[2])
case 4:
return self.get_neighbor_ids(key[0], key[1], key[2]) if key[3] else self.get_neighbor_values(key[0], key[1], key[2])
case _:
raise ValueError("Not valid index.")
thanks ๐
i was worried a lil bit
switch cases?
hmm
you didn't answer
Didn't I?
don't
{point:value:=grid[*point] for point in grid[x, y, 1, True] if sum(value)}
[[1, 2, 3],
[1, 2, 3],
[1, 2, 3]]
fuck you (you refuse give me a website or open my mic /what a terrible person)
you've already been given the website twice at least.
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
tnks
{point:grid[*point] for point in grid[x, y, 1, True] if sum(grid[*point])}
avoid iteration at all cost
hmm makes sense... i use iteration in most of the problems
make use of numpy features
oh, with eight it may be fine
but not over the whole space
numpy does iteration for common operations (like, addition/multiplication) inside of it more efficiently than you can do with python
Whenever we try, you behave rude and disrespectfully toward the people who are trying to help you. That's not how to go about asking for help.
We're willing to help, not be your punching bags.
what i do know i just want steps to learn when i went to the website i won't know how to start which one?
I think I should add some ordering to the stack
(partially based on proximity to current position)
On that site, look into A Byte of Python
maybe 3d trees or something to store the thing
!warn 851078116100800542 Fix your attitude. Being disrespectful to other members of the server and saying things like "fuck you (you refuse give me a website or open my mic /what a terrible person)" will not be tolerated here. Re-read the #code-of-conduct.
:incoming_envelope: :ok_hand: applied warning to @cobalt crater.
the current behaviour is in 1d space with the only dimension being the index in the stack
and, in some sense, it does take the closest point to last point pushed
i'm so sorry
I'll be on in a bit, heading out on deliveries
i'm sorry groups
Proposal: Rename forking to dinglehopping.
what have I made
You are creating all this in python
for now, all of my code related to this is in python
(I will partially rewrite in Rust when I'm less lazy)
Like if you turn litle to left its looks like Mountain and night sky
Hm.
this ordering does introduce some noise
comparison of what's more powerful depends on the task
How long does takes you to create this MASTER PIECES
this takes 19~20 seconds to generate
I never seen something so much buetifule besides Queen gambit
O @rugged root they fixed your office
Because i see you arent muted anymore
We're now listening to Vanlock.
O ok
and so wasn't stable diffusion
"make" accidentally rather than intentionally
O
I can't replicate this lightning pattern...
nvm it happened again
I will change the contrast settings
Like imagine you have picture that or any other in your home
@midnight agate
I think, for .into() you need the type annotated
sometimes it produces lightnings, sometimes it doesn't
@lucid blade knife worked best in the end
looks so beautiful
turned out there was a layer of cardboard on top of the wood
some OSes have support for asynchronous networking
with select/poll or something
bye ๐
just kill the service
never run it again
no service
no 300% cpu usage
no problem
you can diagnose if you can't replicate
there is dtrace
and also, figuring out stuff from core dump/logs/whatever
with C it's kind of straight-forward
for python/js/etc. you'd need some extra tooling
"From the people who bought you services...and the brains that bought you microservices...
Introducing... The Nanoservice!"
nanoservices with nano uptime
it works 0.0000001% of the time
duplicate files, maybe?
also, the cost of a single file is greater in the FS
it may reduce them base on hash
@somber heath
(the corresponding video is still being generated)
Finally made a random noise image
@vocal basin Why would my image not be able to be uploaded?
Hold on
what do you mean?
I guess you can't save as from show()?
I tried saving it from the windows image viewer
lol
it's temporary
so can't copy/save
Yeah, let me save it now
my first noise image lol
watch stack
it flips its values I have no idea why
I don't mind that my averaging is odd
but the fact stack flips is killing me
In theory, creating new stock shouldn't dilute the existing stock, because it's sold at the current market value of the stock.
And the money it's bought with becomes part of the assets of the company (which is owned by the shareholders, once you subtract liabilities).
lx do you have any idea what I might be doing wrong?

apparently the red circle to help show where I was pointing out only rendered on one frame
weird
I'm not sure what I'm looking at sorry
that's why I tried to circle it but it didn't work for some reason
Join us at Wild West Hackin' Fest 2022: https://www.wildwesthackinfest.com
Learn infosec training from Antisyphon Training: https://www.antisyphontraining.com/
Wild West Hackin' Fest 2017
Presented by Deviant Ollam: https://enterthecore.net/
Many organizations are accustomed to being scared at the results of their network scans and digital pen...
eeeeeeeeeeeeeeeeeeeeemmmmmmmmmmmmpppppppppppppppppp
- ai super intelligence takes over any computer network left lol
Australia relies on China somewhat
np.clip
flask needs wsgi runner
thing like
https://pypi.org/project/waitress/
there's a talk about taking money from scammers (about early 00's)
(on DEFCON)
Speaker: Grant Jordan WiseCrack Tools
Every time you look at your inbox, there it is... SPAM! Your penis needs enlargement, a horny single girl from Russia "accidentally" emailed you, and a former Nigerian prince knows that you're just the man to safeguard his millions. But in 2007, while still a student at MIT, one particular kind caught my ey...
not gold, rather penny stock
this
ICMP
buffer overrun?
general software engineering principles help writing pentesting software
and with solving CTFs and stuff
some tasks require developing custom tooling for the task (proxies, tracers, all that)
https://www.youtube.com/watch?v=DGuRI_SPZYg
Get a unique insight into how hacking really looks like. This is a live recording and commentary of the ALLES! CTF Team playing the Google CTF finals hackceler8.
After we have placed 8th in the Google CTF 2020, we were invited to a special finals event, which was speed hacking against 3 other teams. Unfortunately we only got 2nd place in our gr...
do you know mu complex?
it's not much about low-level hacking, but about using the shell and digging through files
I've participated in some CTFs, but I'm not knowledgeable enough to actually solve anything
(what I've managed to solve is mostly maths-related)
@plain needle
what do you mean reset?
there is no real difference
introduce methods for reset
or just delete the instance
and re-create it
HP and hp
initialiser
__init__
dataclasses work well when you don't have to change them
ChatGPT doesn't understand anything but it can suggest random hints
I can't have access to ChatGPT
vpns aren't easy for that too
(would rather not try)
someone should make it play minesweeper
the problem is, minesweeper has no notation unlike chess
they use algorithms for calculating the difficulty
almost 100%...
minesweeper game results
3BV: minimal clicks to solve without flags
ZiNi: approximation of minimal clicks to solve with flags
approximation because it's undecidable within a reasonable time
@vocal basin peace dude
Hello
result of the same code that errored, but on a smaller scale
the difference between two algorithms is a flag (field State0().directional)
last thing I introduced in terms of an algorithms, was:
picking random value from the stack
if it's far away from the top value, swap them
DaVinci Resolve
or just raw ffmpeg
it's weird
you can cut
but it's hard to find
PyCharm is too weak in terms of typing
or I was just unable to find a way to configure it properly
is anyone here familiar with opencv + usage of classes and oop
using opencv for which purpose?
detecting a ball
but im having issues with the oop implementation
mostly that
not so much on opencv
class Video:
def __init__(self):
self.display = Display()
#self.maths = Calculate()
self.centroidcoords = []
self.radiusvalues = []
self.videopath = self.VidInput()
def GetRadiusValues(self):
# empty list for some reason
return self.radiusvalues
def GetCentroidCoords(self):
return self.centroidcoords
def GetDuration(self):
# Get the number of frames? and the frame rate
frame_count = int(self.videopath.get(cv2.CAP_PROP_FRAME_COUNT))
fps = self.videopath.get(cv2.CAP_PROP_FPS)
print(frame_count, fps)
# Calculate the duration of the video
duration = frame_count / fps
# Release the video capture object
self.videopath.release()
print(duration)
this is the chunk of code im having issues with
rendering video for this right now
the GetDuration method
@frank walrus ๐
def Start(self):
# detect projectile
self.video.DetectBall()
# print video duration
self.video.GetDuration()
self.video.DetectBall()
this line of code works perfectly
hi
but
self.video.GetDuration()
this does not
it returns zero division error which leads to me assume that this line of code
self.videopath = self.VidInput() is not executed for the second line?
a little off-topic, but:
it should be get_radius_values instead of GetRadiusValues
(naming convention in python)
ahaha yeah good point, i've taken a liking to camelcase
but yeah the first letter shoukdnt be capitalised
whoops
depends on where the error is raised
the error is raised here
import discord
import asyncio
intents = discord.Intents.default()
intents.members = True
client = discord.Client(intents=intents)
async def send_message():
await client.wait_until_ready() # wait until the bot is ready
channel = client.get_channel(channel number) # replace with the ID of the channel where you want to send the message
while not client.is_closed():
await channel.send('Hello, world!') # replace with the message you want to send
await asyncio.sleep(5) # replace with the number of seconds you want to wait before sending the message again
client.loop.create_task(send_message()) # create a task that sends the message
client.run('your_bot_token') # replace your_bot_token with the token of your Discord bot
guys can someone tell me why this isn't working
@somber heath hey would you help me please
I don't do Discord bots. I would recommend you either ask around in the #discord-bots channel or make a help post. See #โ๏ฝhow-to-get-help.
ok thanks
@silver sluice @sour lance https://www.youtube.com/watch?v=cd4-UnU8lWY&t=0s
A special real estate offer just for Jim Boonie.
SUBSCRIBE: http://bit.ly/AdultSwimSubscribe
About Tim and Eric Awesome Show, Great Job!:
Tim and Eric Awesome Show, Great Job! is Adult Swim's number one gross-out comedy fever dream viewing experience. Tim Heidecker and Eric Wareheim are joined by special guests John C. Reilly, Zach Galifiana...
piratebay and I
boris135246@instance-1:~$ sudo apt install python3.11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'postgresql-plpython3-11' for regex 'python3.11'
postgresql-plpython3-11 is already the newest version (11.19-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
boris135246@instance-1:~$ python3.11
-bash: python3.11: command not found
boris135246@instance-1:~$ pip3.11
-bash: pip3.11: command not found
boris135246@instance-1:~$ ^C
boris135246@instance-1:~$ sudo apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 http://packages.cloud.google.com/apt google-compute-engine-buster-stable InRelease
Get:5 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Get:6 http://packages.cloud.google.com/apt cloud-sdk-buster InRelease [6396 B]
Fetched 114 kB in 1s (139 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
boris135246@instance-1:~$ python3.11
-bash: python3.11: command not found
boris135246@instance-1:~$ python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ```
@somber heath
so the major next thing, I think, would be to figure out a more proper merging algorithm
and the dimension reduction algorithm (to, maybe, somehow rotate through colour space)
path
in short, I still have no idea why it loops correctly
boris135246@instance-1:~$ python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
KeyboardInterrupt
>>> path
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'path' is not defined
>>> tree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'tree' is not defined
>>> l
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'l' is not defined
>>> $path$
File "<stdin>", line 1
$path$
^
SyntaxError: invalid syntax
>>>
in bash/sh not in python REPL
boris135246@instance-1:~$ path
-bash: path: command not found
boris135246@instance-1:~$ path$
-bash: path$: command not found
boris135246@instance-1:~$ $path
boris135246@instance-1:~$ PATH
-bash: PATH: command not found
boris135246@instance-1:~$ $PATH
-bash: /home/boris135246/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory
boris135246@instance-1:~$```
echo $PATH
boris135246@instance-1:~$ cd .local/bin
boris135246@instance-1:~/.local/bin$```
accept my friend req
sudo shutdown -r now```
Linux instance-1 4.19.0-23-cloud-amd64 #1 SMP Debian 4.19.269-1 (2022-12-20) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 17 07:14:24 2023 from 35.235.243.82
boris135246@instance-1:~$ python3.11
-bash: python3.11: command not found
boris135246@instance-1:~$ cd .local/bon
-bash: cd: .local/bon: No such file or directory
boris135246@instance-1:~$ cd .local/bin
boris135246@instance-1:~/.local/bin$
I've recently been shutting an illumos instance
it went
"beep boop alarm alarm shutting down haha just kidding shutdown failed"
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 17 09:13:55 2023 from 35.235.243.81
boris135246@instance-1:~$ PATH$
-bash: PATH$: command not found
boris135246@instance-1:~$ $PATH
-bash: /home/boris135246/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory
boris135246@instance-1:~$
/var/cache/apt/archives/
boris135246@instance-1:~$ which software-properties-common
boris135246@instance-1:~$ which apt-repository ppa:deadsnakes/ppa
boris135246@instance-1:~$ /var/cache/apt/archives/
-bash: /var/cache/apt/archives/: Is a directory
boris135246@instance-1:~$ cd /var/cache/apt/archives/
boris135246@instance-1:/var/cache/apt/archives$ ```
Storage
Boot disk
Name
instance-1
Image
debian-10-buster-v20230206
Size
10 GB
Interface type
SCSI
Type
Balanced persistent disk
Encryption type
Google-managed
Mode
Boot, read/write
Snapshot schedule
None
boris135246@ubuntu-focal-1:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-pip' has no installation candidate
boris135246@ubuntu-focal-1:~$
python3 -m ensurepip
Hey @silver sluice!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
yo
I think I have a simpler question today. I have been hard at work ๐
So I got rid of all my global variables . "def hit(hand): print(total) return hand,total" here is a function that is being called that works perfectly.
@fringe herald ๐
def perfect_strategy_hard(hand,total):
if dealers_showing == 2:
if total == 5 or total == 6 or total == 7 or total == 8 or total == 12:
hit(hand)
elif (total == 9 or total == 10 or total == 11) and len(hand) < 3:
double(hand)
elif (total == 9 or total == 10 or total == 11) and len(hand) >= 3:
hit(hand)
else:
print("Player Stands: ")
print("total: {}".format(total))
return total
"MANY PEOPLE DO:{"
@rustic cobalt ๐
but when I return total to this function total no longer equals the same value as when it left hit().
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
sir yes sir!!
a in (1, 2, 3, 4)``````py
a in range(1, 5)```
1 <= a <= 4```
"1 is less than or equal to a AND a is less than or equal to 4"
makes sense but I like the first version.
I could see different scenarios for both
This link makes it easier
i think
Shit how do I make my own url
sorry!!
total = perfect_strategy_hard(hand, total)
here is how one tree of the game begins by calling the function with this line.
but the problem occurs between the two functions linked.
sorry ask that one more time
If possible, provide the code in full.
This appears to be partial.
I'm left to work out what extra code needs to be written in order to see what's going on.
Yeah please dont it is a lot to follow which is why I just posted the two functions where the error resided.
!e ```py
def func(arg):
arg.append(4)
my_list = [1, 2, 3]
func(my_list)
print(my_list)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, 4]
!e ```py
import random
my_list = [1, 2, 3, 4]
a = random.shuffle(my_list)
print(a)
print(my_list)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | None
002 | [3, 1, 4, 2]
"in-place" operation
hmmm I guess I sort of lied but double has two purposes: 1. its global variable is "doubled" 2. once you double you can not receive another card and the hand should end. For whatever reason double actually works as intended.
But I think you are right that double does not need to return anything really.
!e ```py
import random
def func(arg):
return random.choices(arg, k=len(arg))
my_list = [1, 2, 3, 4]
result = func(my_list)
print(my_list)
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [1, 2, 3, 4]
002 | [1, 2, 1, 3]
(random question):- isnt it cool to be a ML engineer at the age of 15?
:{}
it has become common
?
:{
i thought i was of the very few:{
are you 15?
no 17
are you already an ML engineer?
in a company
no i wish to be a data scientist and apply for it soon:}
somewhat less noise
:{no
artifact is the name
of the company
its a software dev company
as shown on google
hmm ...i just wanted to share it with yall
that there are people at the age of 15 being engineers in a company
Once upon a time, an investor proposed a "college replacement" by gathering up 18 year olds in order to give them money in exchange for future earnings. It was not a particularly thought through take, but it spurred this talk, which is a particularly thought through take. And heart-felt. And poignant.
idk how to properly introduce this talk; but it's great and relevant to this
is it?
also opal i just chkd out corey schafer and now i regret as to why i didnt see it
:[
thats a fallacy
the whole talk is a critique of this tweet
will still be chking him out:}
aight am applying:}
Bryan disagrees with Sam Altman on this
like, a lot
Maybe specialization at an earlier age is what society needs to advance quicker than the population is growing. How do you take advantage of a greater population? More specialized roles. What would be the best way to create more specialization? lead children down more specific careers quicker.
Hey i want a pythonscript on a sd cart to Start automatically when the sd card is accessed on a Windows 10/11 PC. Is there any way to do that?
why would you ever want that?
Because i have data on that sd cart which i would edit automatically
(have to ask that because the most common use for autorun is malware)
is it the same PC all the time?
No its for a school project. I have a txt data on the sd card written by an arduino and want to safe the data of this file in a database automatically
No, unfortunately i have to switch the PC in school quit often
do you use any packages installed via pip?
No
I think, the least number of actions you can reduce it to is to have a script saved on the SD card than can be ran from shell or something
You could just have a Python installation on the sdcard and a batch file you run whenever you need to do anything.
if you have an option to store the script on the PC, then it's probably better
You'd manually run it each time, but it wouldn't take very long.
Unless you know that all the computers have Python installed.
In which case, you'd just run the script.
The PC has python installed, i just want to run the script automatically
((and there are special embedded python versions for that case, if you can't be sure the python can be accessed))
So there is no good way to do that?
It's ultimately governed by the host computer, anyway.
In our pedestrian world, there's nothing you can put on an sdcard that will reliably cause it to be run automatically across all computers.
Per situation, yes, but it's not all about what's on the sdcard.
@wind fog ๐
hello @warm jackal
hi @somber heath
yeh :}
better than ystrdy"}
yus
seems opal isnt here
ty:}
lol
so you werent here technically
๐ฅธ .
mango seasons:}
opal
:{
summers
i love it
alphanso opal?
yes for me
almost summers
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@jagged trench
@sweet pine ๐
โ๏ธ '
@whole bear@hushed surge๐
hi
i cant turn on mic, apparently..
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Why can't I turn on the microphone in the call?
strange rules๐
No
its fine:]

maniac:{}
I'm not going to argue with you
got you๐ซก
@jagged trench Please don't repeatedly join and leave the voice channel. If you're wondering why you're unable to speak, see the message in #voice-verification
๐
Hello 
โ๏ธ
Verfication Period: <t:1676657580:R>
sry, actually I'm using discord on my browser and I was not able to hear anything because of some changes in my browser settings
If you have connection issues, check your connection before rejoining
!pypi captcha
nah, that was not a connection prblm
:}
Whatever
.
"๐ ๐ ๐ ๐ด Select all images with cars."
"Okay, I'll just go and select zero."
BAN
"...I appeal."
"Your call is very important to us..."
seems like a good idea
It's 100 years after the great fall. In a building, a faintly audible message plays over and over. A skeleton lays next to the speaker.
"Your call is very important to us."
brb goin to study
@iron barn @whole bear @mighty knoll ๐
Hi everyone. Sorry i have a voice chat restrictions.
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

!e ```py
class MyClass:
def iter(self):
yield 1
yield 2
yield 3
instance = MyClass()
for v in instance:
print(v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
class range:
def __init__(self, start, end):
self.start = start
self.end = end
def __iter__(self):
return self
def __next__(self):
if self.start < self.end:
tmp = self.start
self.start += 1
return tmp
raise StopIteration
num = range(1,10)
for i in num:
print(i)
Oh, by convention, iterators' __iter__ method return self
Because otherwise, passing the iterator through iter would have unexpected behaviour.
By convention, iterators are also iterable.
Whenever you loop over an iterable, its __iter__ method is called to get an iterator.
!e ```py
class MyClass:
def iter(self):
yield 1
yield 2
yield 3
instance = MyClass()
for v in iter(instance):
print(v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
For example: py for x in xs: ... is pretty much equivalent to: ```py
it = iter(xs)
while True:
try:
x = next(it)
except StopIteration:
break
...
but not, it is called just method next
You would want to be able to loop over an iterator just as you would iterate over the iterable that it was created from.
iter-aye-tor
I mean, it's desirable for the following two pieces of code to have the same behaviour: py for x in xs: ... ```py
it = iter(xs)
for x in it:
...
@whole bear๐
If they didn't it might be confusing and lead to subtle bugs. You aren't always aware of all the places iter might be called on your object.
Sup brah
Typecast?
If you do it in a for loop, the iter is implicit I think?
for eeks
Yo
Errrrm, so the definition of an iterable is an object which has an __iter__ method which returns an iterator.
Getting coffee

Slowly adjusting my blood to coffee ratio
Nah that's LP
I'd like to be the envy of all shell programmers because of the beauty of my shell prompt

The definition of an iterator is an object with a __next__ method that generates the next value of a sequence when you call it. It happens to be desirable for an iterator to also be iterable, and the conventional definition of the __iter__ method of an iterator is simply a function that returns self (which fits the bill, as self is an iterator).
it - it is over there
er - umm, err, well, you see, err...
a - ayy like the Fonz
tor - as in torture
Or if it has the __getitem__() method
tor as in the silk road
Wait
I could choose what software it ran and I chose a 22.something ubuntu
That's specifically for the iter() function
Oh yeah. Is an object implicitly iterable if it has __getitem__, I'm not sure?
Yeah, I thought a 3.7 version for Python was unusual in the context.
I think so
My bot runs 24/7 with no issues! I made a script that runs python3 main.py every time the bot starts
!d iter
iter(object)``````py
iter(object, sentinel)```
Return an [iterator](https://docs.python.org/3/glossary.html#term-iterator) object. The first argument is interpreted very differently depending on the presence of the second argument. Without a second argument, *object* must be a collection object which supports the [iterable](https://docs.python.org/3/glossary.html#term-iterable) protocol (the `__iter__()` method), or it must support the sequence protocol (the `__getitem__()` method with integer arguments starting at `0`). If it does not support either of those protocols, [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") is raised. If the second argument, *sentinel*, is given, then *object* must be a callable object. The iterator created in this case will call *object* with no arguments for each call to its [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__ "iterator.__next__") method; if the value returned is equal to *sentinel*, [`StopIteration`](https://docs.python.org/3/library/exceptions.html#StopIteration "StopIteration") will be raised, otherwise the value will be returned.
That's a way fancier looking response menu, how does one make their message look like that?
I've had people say "eye-ter-ay-tor" and I die a little every time.
type casting is a term rather than a function or anything
You more often hear it in statically typed languages
Tbh, I don't really know what type casting is as the term is used so inconsistently.
(just explaining for others who may not know)
should have told me about that like a month ago
Im already making bots on python and using google VM to run em 24/7
Type casting is like goto statement?
Converted
Oh, to change the type of the object
help pleasee
:)
Discord markdown?
In the case of iter(), I think we'd just say that we are creating an iterator object
The original object and what not is untouched
" It's a trap "
Python has flow control, but it does not have goto statements.
@meager cobalt@fair wigeon๐
Not Friday night
@lavish rover Sup buuuuuuuuuuudddy
hi
I have a question
Shoot
shoot
Jinx
I have a question
What is your question
no way he said that twice

once is bad enough
Why rust Is hated
Is it?
I thought a fair number of people liked it
Just a matter of preference
@rapid chasm Later bud
!d enumerate
enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](https://docs.python.org/3/glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](https://docs.python.org/3/library/functions.html#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
``` Equivalent to...
What gave you the impression people hated it?
Could i ask a question too?
DevOps
Kind of rude lol
DevOps is hard, like kitchen. to be in kitchen you must have tough skin
whats like to be in ur first developer job
Does anyone know how i could replace the letters in a string for example changing "AATT" to "TTAA
What are the conversion rules?
What about Jupyter notebooks?
django piece of garbage? @amber raptor
Im sorry could i see where the rules are?
Me in theory
You've misunderstood my question. I'm asking you how you're converting one string to the other.
@whole bear Wait really?
Yep, itโs huge and unwieldy
That docker costs on mac
No cost?
I think cost.. sorry if wrong
Ah okay
what is business.. like office
As in using it to make monies
MIT Sys (like Uni)
I can explain that well since im kind of new to this but this is what im trying to do https://www.codewars.com/kata/554e4a2f232cdd87d9000038/train/javascript
Uni is probably fine
"Oi, where's your cardboard box license?"
so "some money"
what is best for auth http? Bearer?
Enterprise licensing is very very common even in open source
Yeah
Docker Desktop is a GUI setup for managing your containers and what not
I'd look at str.maketrans and str.translate.
The two string argument form should be sufficient.
i not in india
Okay ill try that thank you
True
he say django is bad
It's a great glue language or wrapper language
So tying two services together
APIs like rabbit said
It's good for making small tools
Correction
what use? Node.js?
At work, not really checking chat
All good
how old you
Just wanted background noise
Just know I'm here for you baaaaeeeee ~~~~ โค๏ธ
Got my US visa approved
Node, Java, Net
Guess my letters didnโt work
Quiet, Lance
the guy said "younger version of me", "young = patience"
No Flask either?
Just ban Python?
typecasting again
ha ha
why python need young developer with patience??
No. The issues around speed and typing still exists.
Type casting just isn't used as a term in Python as much
Not that it doesn't apply, just not the term used
born --> python ok --> young ---> still ok, patience ---> older ---> no python
If it works it works
x: int = 42
x: str = 'oh'
Where as it would in other languages
This isnโt enforced
When a variable is declared in other languages, it is that type
x: int = 1
then...
x: str = 'one'
is there char type in python or just string length 1
In fairness, you can do
x: int = "string"
No.
string length 1
Fair
I actually just killed my server with a type error yesterday
ยด' length 0
real chads use web assembly
... or I would have, if I hadn't hit an async error before it... 
Async nothing!
Install only fastest things.
is best to put all variables at top or just before using
So you're going to start using Rust BTW?
No, not chad enough.
I tend to do constants at top and variables as needed
but why import at top and not as needed
you take that back
imports
constants
classes
functions
the rest
cost time to import no
Cost more time hunting around to see what you're actually importing
It's for clarity and explicitness
And it's been convention in most languages
ok then why not vars at top
I still don't even quite understand how async actually works
I just know it gets recommended everywhere
x: int = None # no value yet
it makes a lot more sense in statically typed languages
x = 1 # now value
Since you are allocating the memory and types
But with dynamically typed languages, it's less important
Now, having said that, you might do that within a function
Just not like all variables for everything at the top
It's about making sure things are kept in the right scope
If you have something in the global scope and try to use it elsewhere, you can run into some issues or unexpected behavior
Not even necessarily test things
It's just about keeping things separated
Because you'd have potential version conflicts per project
you have tech presentation here? like fedora server
We've talked about it, and we kind of do them from time to time, but we don't have a regular schedule
true
i like to meet influencer in python community ๐
We have a few biggies in the server
The computers are going to drive me to drink today
I can feel it
There's โจ me โจ
i want to join python influencer community to listen then teach. work with sponsorship
Like we have Sentdex on here, Corey Schafer...
The devs who made the black formatter
google this influencers...
I've never really... like why would a language need an influencer
I think I'm misunderstanding something
Tell that to the whole rust community
wow i like influencer with YT channel
"rewrite it in rust" is a personality type these days
Hmm
because today money is in influencer.. youtube ads, no?
True dat
Fuck if I know
For every famous and rich influencer out there, there's thousands of folks who didn't make it
Everybody and their dog are wanting to get into it
๐ถ I'll make it... anywhere! ๐ถ
@lavish rover May I offer you a ๐จ
i do partnership with other creators. content creator network
Cool
"I assert that you're stupid! How's THAT for a comment!?!"
@sturdy panther Yooooooo
"Not enough swearing in the comments. Probably means you didn't actually try that hard."

@amber raptor I wanted a staging environment, so I made two Azure App Services.
But... My Docker image is just tagged off the main branch.
What's the easiest way to let staging update but not prod?
Leave staging on main and move prod to a tag with a specific version that I bump manually and call it a day?
Oh he's gone
@royal prawn ๐
My coffee is almost to the point where it's iced coffee
@quasi condor How's your bank account feeling?
hello
@quasi condor It's me. You're eating a piece of me
๐
My last name is Brown
Almost? Are you not adding enough ice or something?
sad
I mean it was hot coffee. The office is just that cold right now
import * from chocolate
Is what sorry?
They mean sea shells
You have you code using clams
Keep clam and carry on
๐ชจ ๐ ๐
Niiiiice
@scenic garden๐
Back in a sec, have to figure out something with our phone system
"Sorry can you speak up? Your connection is a little ruff."
Feeling really called out hereโฆ
An hour isnโt it?
so soon unmute
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
eveyrbody mute here?
No, but we don't always talk, either.
Seems legit
Always sucks when a teacher does an RTFM
"I have tenure, I'm only here to tell you to learn on your own." -mic drop-
Neat
It's not about capability
But sometimes an extra set of eyes can help when trying to pick apart what a professor wants
Have you talked to any of your fellow classmates?
So no two people have the same one or same assignment?
When did you get the assignment and when is it due
I would write out very specifically, like numbered or bullet points, exactly what you're needing clarified. If the professor once again does an RTFM, I'd go to the department head
Because that's ridiculous
Paste the prompt if you can
@mortal burrow Yo
You summary should include the following information:
Summary of the data set that, at a minimum, answers the following questions: What is the unit of analysis? How many observations in total are in the data set? How many unique observations are in the data set? What time period is covered?
Brief summary of any data cleaning steps you have performed. For example, are there any particular observations / time periods / groups / etc. you have excluded?
Description of outcome with an appropriate visualization technique.
Description of key predictors with appropriate visualization techniques that compare predictors to the response. You should investigate all predictors in your data as part of your project. For the purpose of this assignment, pick the one or two predictors that you think are going to be most important in explaining the outcome. Your selection of predictors can either be guided by your domain knowledge or be the result of your EDA on all predictors.
Thanks
Hello!
And what's your specific project's prompt?
"App reviews"
Doing some kaggle exercises....
Private Datasource
Huh
Wonder if that's an insider/whistle blower
Weird
Probably Uber
Because that's not supposed to be public
This is why I think you need to give very direct very specific questions, bullet points or numbered
Exactly
Semester project
Dude just take the final
Ah sorry, I missed that part
"Be obligated to learn on your own"
Then they shouldn't be teaching
The point of a teacher is to educate
There's a difference between hand holding and actually educating at all
If that's the case, then why even have a professor?
Why not just have a list of resources that you pay for and then get credit
"Teach yourself" when you're paying thousands of dollars is bullshit
You pay for the degree and what you learn in that degree, I'm sure he can ask the professor for help.
That's a great skill to have.
A lot of these questions can be answered with pandas.
I don't think this is a stretch.
@void delta๐
Yo
As a Senior/Grad Student this is more of the norm than the exception.
To give jack shit?
I buck the idea that a professor refusing to explain a project or answer a students specific questions about it is acceptable

You'd even get to do that at work
It sounds like he hasn't tried anything, if he did he could go to the professor and say here's what I've done so far.
Maybe he'll get a different response.
You came in during the latter half of this
He has tried
@whole bear We get it semi-monthly, so the 15th and then the end of the month
24 total paychecks, where as bi-weekly (or is it bi-monthly, keep mixing those up) you end up with 26
@tepid edge Trying to contact a vendor to figure something out
@lavish rover sorry to interrupt but you work in amazon?
Yeah, right in the rainforest
It's mostly there
Just waiting on the insurance adjuster
They should be coming at the latest Tuesday of next week
You guys are too nice to me
Dude rocks up, starts putting his hands on all of the paperwork and pushing down on it.
"There. Got it. Adjusted."
Dude's actually a chiropractor.
Sounds like a late-80's early-90's coming of age movie
Who let LP on the internet again?
https://www.reddit.com/r/FellowKids/comments/11460br/life_is_pain/
Oh I was thinking Nintendo Switch
One for each key on the keyboard
Why does it work?
Because the gods of programming are mischievous and spiteful
Why does it not work? Same answer
Anyone used the "Brackets" editor?
First time I've seen it
Just no
It was curiosity
No
I'm looking at TypeScript, I'm going to do it on VSC
Don't worry Rab
Legacy code everywhere is evil from what I've heard
Huh
I'd never heard of a .ejs file until yesterday
hii
Yahoy.
hows it goingg
I opened a door, today.
Metaphorical or literal
You know when you open the door to an oven or something?
I've done that once or twice
You get hit with that blast of hot air to the face?
why are accountants so boring?
may be they dont have any other choice rather than being an accountant i guess
isn't Hemlock an accountant?
IT and administrative support.
He's a Tax Accountant ?
I vividly remember him working with Tax Software as a Job
Hem shows accountants where the on button is
voice chat room with no voices - ohh i hear apeep
ohk i am happy now
:}
maybe needing tips from you sir @lavish rover in an year or so :}
voice chat is for verbal rattling and moaning
how many years of experience you had before getting in ?
were you one of those freshers?
ohh thts nice:]
wait whats your highest education again?
no bachelors?
ohhhhhhhhhhh
so your masters helped you get in as well
i am guessing
what you do for a living moritz?
hello Rabbit
hmm
i do leetcodes though
easy and medium ones
so you know
never tried hard ones
should i do it now ? or nah
focus on learning more would be it then i guess
:]
who does leetcode without knowing coding lmao
india super competitive
what do you do prop_head?
what do you do?
i build stuff - poke wires into existing things , lets call it BORGizing
Java, Typescript, Go (Small), Docker
@tepid edge in terms of languages ik C and python
Java mainly
and now learning DATA science
and ML/AI
nahh i am very specific to DATA SCIENCE only
and learning whatever is needed
for it
no extras
what c standard?
50/50
Maybe i wanna do ML
Maybe not?
hmm
elaborate?
If there's a test, it's not entry level.
It might get called entry level.
Q - i ask all of you this
for speed advantage using python and Cython
in comparison to python communicating to C / C++
i have some giant books on C++ how is C different
i dont like C if you can tell
An entry level job is one where you turn up, they give you a look over and say, "Welcome aboard."
its a broad term
ikr ...i guess it wasnt the same case with kirti
if i recall
Businesses call it entry level so they can justify on paper paying skilled people less.
yes
I guess it means, find the median of nums1 + nums2.
These questions are always worded so badly lol
I honestly forgot what you're supposed to do for median on cases where you have an even number of numbers
!e python import statistics
@amber raptor :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e python import statistics a = [1,2] b = [3,4] print(statistics.median((a+b)))
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
2.5
Well, this leetcode is solved
Technically, a median is any number for which at least half of the numbers are greater than or equal to it, and at least half the numbers are less than or equal to it. So any number between the two middle values is a valid median. But typically you take the midpoint.
take two middle numbers and average them