#voice-chat-text-0
1 messages Β· Page 527 of 1
Pine trees typically live for 100 to 1,000 years, but this varies significantly by species, with some, like the Great Basin bristlecone pine, living for nearly 5,000 years. The Scots pine, common in the UK, generally lives for 250 to 300 years or more.
ai does suck
its the new google search thing
I was thinking as he was talking about terry davis, I was thinking maybe just maybe he might be the next terry in line
he might be very smart but still
his explanation was quite pattern matching with that of someone who is high
If AI sucks, why do we even talk about it?
because its so relevant now a'days
Yeah it is!
So is the Internet, etc
I mean talking about it won't change the person who has already made up his mind!
Howdy
π
How is everyone?
Good, how about yourself?
Sorry, an off-topic (I couldn't find a 'general' channel to ask that).
I'm thinking to restore running an online syncs for UX and coding (group voice calls), 1-2 times a week. Is there a proper place on this server to announce such sessions?
Some communities/servers categorize that as something bad: a highly likely spam, or an encouragement to leave a server, etc.
I don't want to annoy anyone.
The PE ratio of these AI companies speak otherwise.
Humans should fear humans, the possibility of humans replacing humans is higher
I'm having a hard time with a python file and it's killing me could not be resolved
@wind raptor btw what kind of code is it
i saw few weeks ago you were streaming
custom command prefixes per server
is it somekind of 3d project ?
Fear your human competitors not AI.
Local law of the first world country priorities domicile and citizens, if this law wasn't in order, most of them would be replaced.
Did you remember an AI company which was all Indian coders behind the curtain pretending to be AI?
my discord bot is so big it takes minutes to launch the bot
lol
also its python so its slower and not really optimized
Exactly π―
@wind raptor employees generate profit, don't they?:)
AI is limited to product
Nvidia developers are probably the highest paid
PE of open ai is insane
415
I mean they ain't even making money
It should be illegal to have PE above 70
Oracle PE is insane as well
what if Oracle deal was halt
It has not generated revenue
So why should it have more PE
Yeah but this trend would be followed all across the world except china
High PE, no returns or revenue to justify it
@tacit blaze π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
My bad
As I mentioned earlier "I am new here" so...
it happens
It's alr
It probably says "nine 10-min blocks", not just 9 minutes.
So
Oh got it
There is a Flower with in my heart
nice
@stray pewter #voice-verification
Daisy Daisy
well I have a small question
lol
ive been in this server for around 4/5 years now
fastapi
not static
Django?
idk I am new to python world
Or maybe a better channel to post this question itself? ...like an "admin-support" or anything similar.
I'll try this
And this today
@trail stump π
Ptanted one day by a glanceing dart
OpalMist do you have GitHub?
is cpython a jit these days?
Oh yea my GitHub shows some error
like I am not able to push and do stuffs in it
And others are not able to see my any repo
Ah
I think I am rate limited or smth?
Planted by daisy bell
I'm sorry, you banned the co founder?
I am in hostel and some of my friends use it and someone did smth from my GitHub
I may misheard the sentence
How can I recover my github account
Damn
@somber heath tnx a lot for the hint, I found off-topic finally! The channel category names don't appear in cmd+k search, and are not easy to see in the list.
I hope the anger will be eventually dissolved or at least diluted a bit:)
I'll be back in a few minutes
Not iron?
Chatgpt?
BRO IM GOING TO GET THAT BOOK SOON. I REQUESTED THE LIBRARY ORDER IT
uh
are people talking??
Alo everyone. What is the discussion at hand?
Spread of age verification and other identity-revealing practice requirements/policies.
About child protection law on the internet from Australia
Interesting
Opal is against the law
we love a good anarchist
because he finds it an excuse to access and target people based on data
They added age verification for adult sites here in my state of residence
Compromise of π
Nah it ain't about adults site
It is about the internet itself
Oh then what for?
In general
Ahhhhhh I see.
To make it happen they will verify each and every user with government ID
Compromise of privacy and anonymity
@somber heath what if a child uses their parents account?
It will evade the ban
#application window
import tkinter as tk
from tkinter import ttk
#file_system
import os
#data
import mysql.connector
from c import *
class Pet_Registration_aplication:
def __init__ (self,root):
self.root = root
self.root.geometry()
root = tk.Tk()
application = Pet_Registration_aplication(root)
root.mainloop()
Or brother or siblings
@rancid raptor the question to ask if what will be considered ok by certain time:)
In China data protection is a myth yet they have not enforced such a measure to protect children all they have is periodic access to social media and game
For minor
im having a problem with from
Like the game would disconnect the user if it user is active for more than 1 hours
Instead of making a ban, focus on service which minor would use and vulnerable to
Not for everyone β love it!:) 100%
This would be better and it will not be detrimental to privacy
I'd say, at a certain level we can't really stop caring about things. Still, it may be useful to be trying ways to channel/transform/apply that energy (cognitive/emotional/behavioral) in a meaningful/purposeful manner. Otherwise it seems like subscribing for experiencing dead-end aggravation, no?
@eager mist you do a lot of statistics?
#application window
import tkinter as tk
from tkinter import ttk
#file_system
import os
#data
import mysql.connector
from c import * # why wont this work
class Pet_Registration_aplication:
def __init__ (self,root):
self.root = root
self.root.geometry(main_geometry)
root = tk.Tk()
application = Pet_Registration_aplication(root)
root.mainloop()
Don't be sorry about it!
!e py my_list = [] result = my_list.append(123) print(my_list) print(result)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | [123]
002 | None
!e py result = [value for value in range(5)] print(result)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[0, 1, 2, 3, 4]
hi
oneliners..
what are you guys working on?
print([value ** 3 for value in lst if isinstance(value, int)])```
print([value ** 3 for value in lst if type(value) is int])```
print([value * value * value for value in lst if type(value) == int])```
!e py foo = [] bar = [] baz = foo print(foo == bar) print(foo is bar) print(foo is baz)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | True
002 | False
003 | True
love my test question
you read this inside out, from the most nested level outwards (towards the least nested level)
!e
class mystr(str):
class splitter:
def __init__(self, s): self.s = s
def __getitem__(self, x): return self.s[x]
def __str__(self): return self
@property
def split(self): return mystr.splitter(self)
s = mystr("I Like Coding In Python")
print(str(s.split[::-1]))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
nohtyP nI gnidoC ekiL I
enbale
Thank you, side character for telling me who am I? I'm the protagonist!!
ππ
there are cases where oneliners or chained functions like that are legitimate:
Schwartzian transform
your course may not have the most relevant examples.
Hehe π π
@trail mural are you slaying?
not sure what this has to do with one liners, this is just using a key function for sorting
Hello π
In bed π
was making a comment about utility of such oneliners
you can also use normal functions though
Hi @somber heath :))
you can use normal functions in any cases where you can pass around a lambda, so i don't see why bringing up this specific example is necessarily meaningful
@willow nebula you cried? me too when i chop onions πͺ π§
@willow nebula i will be having tests of my own, one is even today, it's a verbal interview with a commission that will ask me questions about my bachelors thesis
yes southeast asian
Born West?
β€οΈ
@stiff crown π
Hi
C ya later people's :))
was reading this
Reminds me of how I tried PostmarketOS on a 2012 x86 tablet and many things werenβt working and to get it to work i wouldβve had to do a lot of volunteer work figuring out which drivers were missing and the wifi would break often and quite a few things that were making it almost unusable
.
@vocal basin
can you tell me what does this means
"data is duplicated but ownership is preserved in virtual world means"
Hi
where is this a quote from?
ah
maybe it means the cqrs thingy right?
there is a single place responsible for the most recent state of the data
single authority
every other place where data gets duplicated to is just feeding off that
is that means replicas?
similar principle, but in this case those aren't replicas
more so derived data
(replica usually means storing data as is, and in its entirety)
you mean the branch of mcdonalds can change the data
the main example that Jimmy gave was about search
search service needs to duplicate data
but also it does a lot of restructuring
and some of the data gets dropped entirely/not duplicated in the first place (for example, images)
!e
from collections import defaultdict
from dataclasses import dataclass, field
from decimal import Decimal
@dataclass
class Product:
name: str
price: Decimal
tags: list[str]
@dataclass
class Catalogue:
products: list[Product] = field(default_factory=list)
def add(self, name: str, price: str, *tags: str):
self.products.append(Product(name, Decimal(price), tags))
def __iter__(self):
yield from self.products
@dataclass
class Search:
catalogue: Catalogue
by_tag: defaultdict[str, set[str]] = field(default_factory=lambda: defaultdict(set))
def update(self):
self.by_tag.clear()
for product in self.catalogue:
for tag in product.tags:
self.by_tag[tag].add(product.name)
def main():
catalogue = Catalogue()
catalogue.add("apple", "0.99", "fruit")
search = Search(catalogue)
print(search)
search.update()
catalogue.add("banana", "0.79", "fruit")
print(search)
search.update()
print(search)
main()
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Search(catalogue=Catalogue(products=[Product(name='apple', price=Decimal('0.99'), tags=('fruit',))]), by_tag=defaultdict(<class 'set'>, {}))
002 | Search(catalogue=Catalogue(products=[Product(name='apple', price=Decimal('0.99'), tags=('fruit',)), Product(name='banana', price=Decimal('0.79'), tags=('fruit',))]), by_tag=defaultdict(<class 'set'>, {'fruit': {'apple'}}))
003 | Search(catalogue=Catalogue(products=[Product(name='apple', price=Decimal('0.99'), tags=('fruit',)), Product(name='banana', price=Decimal('0.79'), tags=('fruit',))]), by_tag=defaultdict(<class 'set'>, {'fruit': {'banana', 'apple'}}))
you can see how it both duplicates the data, and also gets the typical problem of data duplication: stale (out of sync) data
yeah but what is it related to the ownership
he will update data or what gonna happen
in the example I sent Catalogue owns data
it's the only one which is considered the authority on what the data is
Search can't mutate its contents
only derive its local projections based on it
in output fruit now has banana and apple right
eventually, yes, Search catches up to what the state of Catalogue is
!e
from collections import defaultdict
from collections.abc import Callable
from dataclasses import dataclass, field
from decimal import Decimal
@dataclass
class Product:
name: str
price: Decimal
tags: list[str]
@dataclass
class Catalogue:
products: list[Product] = field(default_factory=list)
triggers: list[Callable[[], None]] = field(default_factory=list)
def add(self, name: str, price: str, *tags: str):
self.products.append(Product(name, Decimal(price), tags))
for trigger in self.triggers:
trigger()
def __iter__(self):
yield from self.products
def add_trigger(self, trigger: Callable[[], None]):
self.triggers.append(trigger)
@dataclass
class Search:
catalogue: Catalogue
by_tag: defaultdict[str, set[str]] = field(default_factory=lambda: defaultdict(set))
def update(self):
self.by_tag.clear()
for product in self.catalogue:
for tag in product.tags:
self.by_tag[tag].add(product.name)
def main():
catalogue = Catalogue()
catalogue.add("apple", "0.99", "fruit")
search = Search(catalogue)
catalogue.add_trigger(search.update)
print(search)
catalogue.add("banana", "0.79", "fruit")
print(search)
main()
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Search(catalogue=Catalogue(products=[Product(name='apple', price=Decimal('0.99'), tags=('fruit',))], triggers=[<bound method Search.update of ...>]), by_tag=defaultdict(<class 'set'>, {}))
002 | Search(catalogue=Catalogue(products=[Product(name='apple', price=Decimal('0.99'), tags=('fruit',)), Product(name='banana', price=Decimal('0.79'), tags=('fruit',))], triggers=[<bound method Search.update of ...>]), by_tag=defaultdict(<class 'set'>, {'fruit': {'apple', 'banana'}}))
iirc Jimmy also mentioned they added DB triggers
so this would be kind of an analogy for that
yeah tq
just tell me is this some kind of git commit?
which what where
(this I was just writing as an example, not copied from anywhere)
@hardy wind π
Can anyone tell me the flow as to which way I should start learning Python? And creating
@spice osprey hii bro, this is my small program after 1 month of learning not accurate one month maybe earlier
How can I show my code to you ???
!cpban 964169579762954370
:incoming_envelope: :ok_hand: applied ban to @thin spoke until <t:1758388445:f> (4 days).
@wise loom I can't speak
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ik how are you doing today?
me? hi, i exist, i'm trying my best
import pygame
import math
# settings
from settings import running
# __init__
pygame.init()
while running:
print("hello")
running = True
# colors
vibe taxonomy
wish i had something better
you can only ask it for lists
it cannot group stuff together if there isn't a clear grouping already
will just hallucinate all the way through
@primal shadow more fans of comma-first have been found
I don't remember where exactly but I recently saw
column1
,
column2
,
column3
the Third option
paid-per-line style
Psh
-- This
-- Selects
-- The
-- Data
SELECT
-- This
-- Gets
-- The
-- Data
-- From
-- column1
column1
-- This
-- Makes
-- It
-- Easy
-- To
-- Comment
,
-- This
-- Gets
-- The
-- Data
-- From
-- column2
column2
yeah, I thought of adding comments too
the wonders that can be done to HTML when done this way
<tag
attribute
=
"value"
>
</
tag
>
seems like no space after < allowed
presumably because stuff < stuff is so much more likely to have been intended as a comparison
!clban 1417416742002491443
:incoming_envelope: :ok_hand: applied ban to @lyric dragon permanently.
@tall breach π
wsp
π
Whyfor cry?
Some taken.
@zinc crater π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
bye bro
it was streamlit
Good morning
Anyone tell me how to send code here
π₯
@chilly wolf brain going to >24h cycle because that's where it goes when external reasons for keeping the cycle go away?
Yes, if you isolate with no time sense your body will default to a much longer sleep cycle
Mine was 24 hr awake and 12 hr asleep
So my days were 36 hours
@abstract anvil only if you "create" something that already exists
it's just unethical low quality high cost code stealing
@chilly wolf it really can't
it's incapable
that technology is designed to replicate what it's been trained on
I earn money from work
@wind raptor <month of work?
or >month
@chilly wolf for accessibility makes sense, but for general usage probably still worse than mechanical input
thoughts/text mismatch somewhat exists
(if the goal is to save it as text)
Indeed, my thought was that it would help a lot of people
hello
((there might be better storage options))
so i was having problems with slash commands registeration on discord.py
(((like a model that more directly translates associations)))
Good answer, but surely something basic could be made to generate income
is it a common issue?
do you sync them?
you need to sync
yes
hmm
i reduced my code to 1 command only , will you check
i don't need cog listener
@bot.event
async def on_ready():
ensure_dirs()
bot.db = await aiosqlite.connect(DB_PATH)
await ensure_db(bot.db)
# register sync
if GUILD_ID:
try:
await bot.tree.sync(guild=discord.Object(id=GUILD_ID))
print(f"Synced commands to guild {GUILD_ID}")
except Exception as e:
print("Guild sync failed:", e)
await bot.tree.sync() # fallback to global
else:
await bot.tree.sync()
print("Synced global commands")
print(f"Logged in as {bot.user} (ID: {bot.user.id})")
guild server i am working on
you're not using any cogs, right?
i am not but i thought that was the reason why my code is not working
it does sometimes show up
slash commands
but not always
this might partially just Discord being bad
do you reload the page after syncing the commands?
yes my client
ctrl r
i dont need to since bot.tree got me covered right? safe to make new classes?
have you ever had such issues?
yes
how do you tackle it?
prefix? hybrid?
hybrid commands
oh, and that doesn't require any cog listeners or setup hook either right
I do use cogs, but I think at least some parts are outside them and work well enough as is
however I don't know if it syncs instantly
I'm sorry I left all of the sudden
probably doesn't
Hope you had fun having conversation with me
@abstract anvil
https://hermesoptimus.vercel.app/
A neural network implementation for the TI-84 Plus Silver Edition calculator capable of autocorrecting words.
@peak depot VibeOps
MLOps
only the generative part
the part of AI that reinforces discrimination is probably described by a different word
applies to all models
its personality vibe
it's all vibe now
Just wondering, why is my microphone muted.
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I know the basic fundamentals of python, functions OOP and all the datatypes. I still can't create a project of my own.
Is there a cure for this, "phase"?
Hmm.
I don't know much about the fullest capabilities of python.
I hear it is good for AI.
I got an idea.
Python is just a C framework
A chess engine.
Is the interpreter built in C?
I never knew that.
Python directly integrates with C
Python is C with some fancy dressing
Souns cool.
the whole point of why Python came to existence was that ABC, its predecessor, was too abstract
No idea what the integration part means.
so Python added mechanism to do actual work
this is doable, and Python is actually somewhat okay to use for it
But c doesn't have pure OOP, does it?
in C you need to make your own object model
Yeah, calculations would have to in something else.
most OS kernels written in C are object-oriented
Linux is.
I use it personally.
Running Ubuntu.
I had used the python IDLE but I know it has its limits.
I was wondering.
Is virtual studio code good for python?
Visual Studio
its give money in Like Bump Up
is code
mostly
Gotta go now.
See you guys later.
I'll installl visual studio code and see how it goes.
def join_sorted[A: Ord, B, C](
left_: Iterable[tuple[A, B]],
right: Iterable[tuple[A, C]],
) -> Iterable[tuple[A, B, C]]: ...
# turns [(1, 2), (4, 5)], [(1, 3), (4, 6)] into [(1, 2, 3), (4, 5, 6)]
def join_sorted[A: Ord, B, C](
left_: Iterable[tuple[A, B]],
right: Iterable[tuple[A, C]],
) -> Iterable[tuple[A, tuple[B, C]]]: ...
# turns [(1, 2), (4, 5)], [(1, 3), (4, 6)] into [(1, (2, 3)), (4, (5, 6))]
def join_sorted[A: Ord, B, C](
left_: Iterable[tuple[A, B]],
right: Iterable[tuple[A, C]],
) -> Iterable[tuple[tuple[A, B], tuple[A, C]]]: ...
# turns [(1, 2), (4, 5)], [(1, 3), (4, 6)] into [((1, 2), (1, 3)), ((4, 5), (4, 6))]
@wind raptor which of the two looks less sad as a signature?
(SQL INNER JOIN kind of)
actually, there is one more option I forgot to include
(second is new)
I might go with option 2
@static herald π
hello
@old lotus π
can anyone tell me how to fix this
@static herald
i try more than 2hr voice chat
(those are text activity blocks)
ill done the text msg
@wind raptor that's why I said earlier that "text" should be added
thank you everyone i got it!!
True
I just saw how slow this appears on hover
at least it's not always slow
@somber heath yes, indeed, it was a deer that plugged it off power
and, yes, it was called "O deer", it always switched the PSU switch to O state instead of I
apple = {"heals":10, "edible":True, "size":pyg.rect(10,10,10,10),"weight":0.33,"color":(217, 63, 61)}
!e
apple = {"heals":10, "edible":True, "size":"filler","weight":0.33,"color":(217, 63, 61)}
print(apple)
def inventory(self):
keys2 = pyg.key.get_pressed()
if keys2[pyg.K_e]:
print("inventory:",self.inventory)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{'heals': 10, 'edible': True, 'size': 'filler', 'weight': 0.33, 'color': (217, 63, 61)}
class Player:
def __init__(self):
self.player_pos = pyg.Vector2(300, 300)
self.inventory = {}
def Player_Movement(self, delta_time):
keys0 = pyg.key.get_pressed()
speed = 200 # pixels per second
if keys0[pyg.K_w]:
self.player_pos.y -= speed * delta_time
if keys0[pyg.K_s]:
self.player_pos.y += speed * delta_time
if keys0[pyg.K_a]:
self.player_pos.x -= speed * delta_time
if keys0[pyg.K_d]:
self.player_pos.x += speed * delta_time
return self.player_pos
def draw(self, surface, color, rect_dimentions):
pyg.draw.rect(surface, color, pyg.Rect(self.player_pos.x, self.player_pos.y, *rect_dimentions))
def inventory(self):
keys2 = pyg.key.get_pressed()
if keys2[pyg.K_e]:
print("inventory:",self.inventory)
How do you write code in discord that looks like this?
It doesn't look like plain ol
!code
good text
!stream 1318626588560199692
β @woeful blaze can now stream until <t:1758119510:f>.
it needs to be on separate lines
and the first line must be exactly this:
```py
(no extra spaces in between or after)
value = my_dict["name"]
print(value) # Output: Alice```
items_useble.draw(screen, apple.keys,)
live reload is so great for game dev stuff
you really should look into it
C# in Visual Studio has that
I was developing a mod for a Steam game before where I launched the game from VSCode and could patch my mod's code on the fly
there's, like, a π₯ button
but redder
having instant feedback is extremely useful
@chilly wolf it shouldn't work but it does
!e
apple = {
"heals": 10,
"edible": True,
"item_size": (10, 10, 10, 10),
"weight": 0.33,
"item_color": (217, 63, 61)
class Item_Spawner:
def __init__(self, size, item):
self.size = size
self.item = item
def draw(self, surface):
pyg.draw.rect(surface, self.item["item_color"], self.size)```
That too! ahahah
surprisingly, rust-analyzer is even able to deduce types of whatever I just made
@chilly wolf of pairs
items_useble = Item_Spawner()
TypeError: Item_Spawner.__init__() missing 1 required positional argument: 'item'
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
- PEP 8 document
- Our PEP 8 song! :notes:
eyesight gambling
lol
I'd assume Pydantic is only for parsing
instead of, like, type-level sorting
which you can do in TypeScript or whatever
(it allows you to generate a JSON Schema which models can be forced to adhere to)
@woeful blaze idk if i can ask any question but is there any way you could explain practical use cases of for and while loops in your programming? i'm a somewhat new developer and could use some insight
speaking of somewhat sorted things:
https://github.com/parrrate/ruchei/blob/21d818ebef9c712ec9236f9a26a0d979039c69d0/src/merge/zip_sorted.rs
the opposite side of the spectrum compared to vibe coding, involves monads
i want to remove a damn folder that i added by accident
nice, will take a look, thx!
I'm assembling the code into a different file so I can at least see it better because turned into a club of unknown code to me
From forces unseen, billionaire Elon Musk is transformed into XELON MUSK.
Patreon: https://www.patreon.com/aamonhawk
Twitch: https://www.twitch.tv/aamonhawk
Twitter: https://twitter.com/AamonHawk
TikTok: https://www.tiktok.com/@aamonhawk
Special thanks to: Pudgyycat!
π FOLLOW Pudgyycat on twitch: https://www.twitch.tv/pudgyycat
No AI was ...
@whole bear π
so far I made three implementations of the thing I was describing there
(with slightly different behaviour)
!pep 695
third is the only one which yields both keys
first requires non-pair tuples
for typing simplicity, I went with the equivalent of the second one
because it's of the form
(K, V) + (K, V) -> (K, V)
I got a PoE switch and it has a separate grounding thing
should ask plome for advice on doing that with 0 extra precautions
@somber heath it's even more anxiety-inducing: I did the wiring for cables myself instead of using premade ones
my "wiring guide" is a singular wire colour image
I have the tool for doing the connector stuff (which makes gold thingies punch through insulation)
so I just do whatever-fits approach there
and then testing that
(not testing with PoE directly, with a special testing thing)
my previous power supply got burned by my current GPU
I should finish up upgrading the server now that I got new SSDs
(same as the one that's there, just two more)
((so it's going to be 12TB))
somewhat too flashy
@somber heath KGB blocked Discord in the wrong country accidentally
its seem fine for me in the us
check the dev tools
see if there are any console errors
devtools
they may be called browser toolls on firefox
Console or Network
in case of stuff:
docker run --dns=8.8.8.8 -d -p 1080:1080 --name byedpi tazihad/byedpi --debug 1 -Ku -a1 -An -d1 -s0+s -d3+s -s6+s -d9+s -s12+s -d15+s -s20+s -d25+s -s30+s -d35+s -At,r,s -s1 -q1 -At,r,s -s5 -o25000+s -At,r,s -o1 -d1 -r1+s -t10 -b1500 -s0+s -d3+s -At,r,s -f-1 -r1+s -At,r,s -s1 -o1+s -s-1
I should probably lock that down to a specific hash of the image
discord may be blocking your location
(this only deals with DPI)
app being mobile or desktop?
Discord prints that to try to stop people from injecting code. The app isn't running properly then
@whole bear @normal solar π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
either of you use rss still?
A couple of news sites still have them
but I don't use RSS as a client myself
I'm kind of not really a fan of aggregating anything anywhere for myself to read
RSS isn't as good as a live feed, but I want to create a compiled news feed for myself
lol
I kind of gotten back into news via google and bing.
But... I don't really like the news it gives me much
You probably need a dedicated app for it
the only place where I have any sort of stuff aggregated in one place is YouTube notifications
I use to use feedly iirc
I don't know. Never used the web browser for rss directly
only two concrete things remaining to do until big Saturday release
https://github.com/parrrate/ruchei/milestone/1
I might even do that on time
@somber heath not really
conversion is more correct
"casting" is a wrong term w3schools uses
the only casting in Python is typing.cast which is type-unsafe
casting is C -ish
in C/C++ world that has two meanings
C-style cast and C-style cast
(and those two same things are somehow different)
(type) value in C does two different things depending on the context:
- reinterprets it
- converts it
in C# you only get the construction
casting is generally expected to be an infallible potentially type-unsafe operation
@somber heath if anyone knows what that code does at all
(as in some weirder specifics which can't be automated)
if it has that in there => probably no one knows how to deal with it
@stray lava π
web scraped a Disney server => now they can kill your relatives without repercussion because ToS said so
reminder: this happened (except it wasn't web scraping)
=> pirate
@grand dagger π
Whats up @grand dagger
covers trial access too
iirc
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@clear dune π
this is possibly translatable into Python
New in the server? What made you join?
i'm somewhat new, I joined to learn more about python
Dope. I am completely clueless about programming.
Py is my first language and just started the class 1 month ago.
i havent hit 9 10 minute blocks yet
also that's pretty cool, what are you learning currently?
seems like I've been programming for ~13 hours (with some breaks) again (third day in a row)
I am taking java but making a game with javascript, i took python last semester
User Input and Converting those to Floats
I am running my game using nodejs for fun and its a browser game im pumping out diff functions on for fun but i only rly know basics of python lol
you ever messed with any other language?
programming
lmao fair
u should screenshare show me what u know hector
if it allows u?!
what language do u use, python?
(Rust, HTML and self-made DSLs)
(and that one was just Rust+HTML)
that's pretty cool hector
i was working on something for ig but idk if i can talk about it in here. imports with python are pretty cool
I have, like, at least 3 separate DSLs that I've historically developed for text games
and I'll end up writing another one this time
do u know any javascript
my project is getting a bit out of hand
its mostly nodejs and client/server side questions
@somber heath `a' hints at pluralness indirectly in that sentence
given a string do stuff to the string
!e py print(123 == +123)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
True
`a string' brings `string' "in scope", then refers to it as `the string'
!d operator.pos
operator.pos(obj)``````py
operator.__pos__(obj)```
Return *obj* positive (`+obj`).
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | +object()
004 | [1;35mTypeError[0m: [35mbad operand type for unary +: 'object'[0m
!e
help(float.__pos__)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Help on wrapper_descriptor:
002 |
003 | __pos__(self, /) unbound builtins.float method
004 | +self
!e
help(1.0 .__pos__)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Help on method-wrapper:
002 |
003 | __pos__() unbound builtins.float method
004 | +self
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Help on built-in function pos in module _operator:
002 |
003 | pos(a, /)
004 | Same as +a.
great description
!e ```py
class MyClass:
def str(self):
return 'A'
def pos(self):
return 'B'
obj = MyClass()
print(obj)
print(+obj)```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | A
002 | B
What language could be complete without some horrible abuse? If you can't do terrible, evil things with it, how could you ever create works of great art?
Of course, anyone can write plain bad code. The trick for really evil code is to make it attractive; to make it seduce you with it utility, brevity and general glamour. Pierce that attractive e...
!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.
here unary + switches how unary - operates on an iterable
for the purposes of most confusion within reason
formatted string
!e
print(f"{1 + 2 = }")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
1 + 2 = 3
formatted strings allows u to put variable outside of your string
so {} and then outside the " youd have ",varname
is only thing i used for
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | f"{1:0<[1;31m{1:0<{1:0<10}}[0m}"
004 | [1;31m^^^^^^^^^^^^^^[0m
005 | [1;35mMemoryError[0m
.format?
!e py age = 17 name = "Peter" print("Hello, " + name + ". You are " + str(age) + " years old.") print(f"Hello, {name}. You are {age} years old.")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Hello, Peter. You are 17 years old.
002 | Hello, Peter. You are 17 years old.
!e
print(t"{1 + 2 = }")
:white_check_mark: Your 3.14 pre-release eval job has completed with return code 0.
Template(strings=('1 + 2 = ', ''), interpolations=(Interpolation(3, '1 + 2', 'r', ''),))
(I never actually saw what this looks like before)
!e
def side_effect():
print("boom")
return "explode"
print(t"{side_effect() = }")
:white_check_mark: Your 3.14 pre-release eval job has completed with return code 0.
001 | boom
002 | Template(strings=('side_effect() = ', ''), interpolations=(Interpolation('explode', 'side_effect()', 'r', ''),))
!e
def side_effect():
print("boom")
return "explode"
_ = t"{side_effect() = }"
:white_check_mark: Your 3.14 pre-release eval job has completed with return code 0.
boom
:white_check_mark: Your 3.14 pre-release eval job has completed with return code 0.
boom
Python has very direct interface to C
@somber heath iirc numpy itself isn't heavily Fortran dependent but they do maintain the Fortran glue for other projects
cursed?
@somber heath I went and checked, it's only docs and tests
f2py is part of numpy but, as far as I can see, numpy itself isn't using it
scipy is Fortran
numpy does mention Fortran but it's mostly about data layout
C/Pascal/Fortran have different approaches to storing and calling stuff
goodnight sir gl
See ya guys. Nice talking to ya as always π
very normal time to be awake at
https://news.ycombinator.com/item?id=22121681
apparently numpy can optionally use fortran for optimisations if f2py is available, according to a random person on hackernews
Numpy actually explicitly doesn't need fortran. It will use some fortran lapack libraries for optimizations if they're present, but it doesn't depend on fortran at all.Scipy is a different story.The need for a fortran compiler was a big part of the original rationale for the divide of numpy and scipy when they replaced numeric. Numpy was meant t...
and of course numpy also has things like f2py which iirc do require fortran
but that's not core numpy
Do people use visual studio code or Visual studio when they code everyday?
VS only when you write C#/C++. There are definitely some Windows-specific things that require VS.
WPF is one of them, where you build GUI layouts, VS has that, vscode doesn't
senpai, I need your help with markdown
after hemlock leaves, private call?
okay
@midnight birch insertion does more swaps
since you need to shift it around
whereas with selection you just find which things needs to go and it's directly moved in place
insertion sort is useful if you use a structure other than a list/array
also
insertion sort works well with linked lists
where you don't need to shift
@karmic citrus hikvision mentioned
woohoo
familiar stuff
@midnight birch I feel we've spoken before.
Cunchhh
Yeah
Was on the tip of me tongue
How you doing bud?
public speaking expert explains the meaning of βlooseβ π₯
!stream 249616904254128148
β @viscid scaffold can now stream until <t:1758206464:f>.
Gng please increase the quality of stream
you think i decide that stuff?
Stream can be improved if the server have nitro
Ig
Which environment ide youre on ?
i3
usually i use Hyprland but i kinda wanted something simpler
i don't even have a compositor on this WM
in voice chat 0 i didnt get the permissions?
the cat move along with the cursor right thats also an api?
Cat-as-a-Service
maybe ill have to get some role right?
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
or some levels assingned
that should help you :P
slightly modified version of https://github.com/adryd325/oneko.js
@frosty garnet
@whole bear yo
I was creating one of my first programs, I am not done at all, but I have set the "base":
I was wondering could any of you judge it?
It is very small so I could write it here.
It is supposed to be a simple encrypter/decrypter
@frosty garnet 13
latest
it came out, like, a month ago
zfs send | zfs receive it
incrementally
daily
there is one workflow
@frosty garnet
too lazy
that's why I have ittagit tag
I just run one command
- already exists
- you should do it on each commit that meaningfully changes anything
whenever you add something,
under Unreleased in the CHANGELOG.md also add a note about what happened
and I'll never let AI do that (because low quality)
if you need an AI summary, that can probably be generated on demand
(each entry in the changelog provides the big diff thing)
I've just realised the screenshot doesn't show what I'm hovering over
(the format that I use)
https://keepachangelog.com/en/1.1.0/
unlike semantic commits, this one is actually good
0.0.0-a.0
what happened
LOL
GitLab product documentation.
damn :(
I prefer Forgejo's implementation of GitHub Actions
open-source fork of Gitea
I maintain several Gitea/Forgejo installations
Git has hooks for receiving pushes
you can, for example, force signed pushes
banarchy
@flint hill it already got shutdown 5 minutes ago
I'm definitely just new
@wind raptor this is even funnier with this context
didn't, like, Java 25 get released
@wind raptor
void main() {
IO.println("Hello, World!");
}
finally sane-ish code
(Fifth Preview)
lol
count how many times Java 25 announcement mentions AI
If I get a t-shirt with "AI" will I be cool..
(no)
will read this one https://openjdk.org/jeps/505
seems to be the only one worth attention
I was thinking one of these
https://www.dudeme.in/cdn/shop/products/Artificial-intelligence-programming-full-sleeve-t-shirt-Navy.jpg?v=1612981232&width=720
https://m.media-amazon.com/images/I/B1pppR4gVKL._CLa|2140%2C2000|81OH%2BpSLlYL.png|0%2C0%2C2140%2C2000%2B0.0%2C0.0%2C2140.0%2C2000.0_UY1000_.png
https://i5.walmartimages.com/asr/d3235f1f-cf9d-41a5-912c-f08a323604b9.1565d459eae514990ce33483eafb5b30.jpeg
https://img-va.myshopline.com/image/store/1745549535569/92a178db754b4beeb425bd2589dd7fc7.jpg?w=800&h=800&q=80
https://fa39b050a6c0ea56c688-b90b21215638dcffb03711514161b8c2.ssl.cf2.rackcdn.com/0/amz_260891_st_black.jpg
AI NS
Ye
@tranquil barn hey
stuck with code
need help bit
i dont have off mic and screen
access
i have send u link
yo can someone explain me how git pull or merge works i need to start contributing and increase my knowledge
git pull --rebase only
teach me how to contribute, I want to be like you
@whole palm #voice-chat-text-0 message
yeah mine is broken on even days too.
today it's the 18th soo.. yeah
did u got job?
you have a job for me? where is it?
send me an e-mail with it
@wise loom @whole palm @vocal basin what time it is in ur country ?
@whole palm #voice-chat-text-0 message
"dark but not too dark" o clock
pull doesn't always download
fetch does
is not it "git pull file_name"?
you specify a remote, not files in case of pull/push
did not get it.
@wise loom clearly, contributing to the downfall of modern industrial society
you can't pull a specific file
pull moves HEAD from one ref to another
cherry-pick is likely most useful out of deeper git stuff
mercurial
jj is an extension of Git
@whole palm #voice-chat-text-0 message
Graphite and other stack buzzword diffs tools are another example of Git extensions
learning needs to be slow, unfortunately, but, yeah, descriptions are fast to do
Rails is dropping Redis default support in favour of SQLite
π
@whole palm where did u learned embedded system? like some yt channels
deletion rarely ever does anything other than algorithm learning what you do
and, incidentally, also turns a boolean "deleted" true
so it is IoT.
IoT is a special case of embedded
did u briked some esps?
Good
cursed reality of working at a startup: having to deal with both embedded and CSS as a single programmer
(we have, like, two people in such situation)
Therac-25
did u used simulators for esp
hey guys i have a script in python that collects info from diffirient websies cuz i want to make a ai trading bot
how do i put the scrypt in cloud
so it can run 24/7 collecting data
delegating work is very difficult
and when people aren't willing kind of only works when it's a long project
i agree with @heavy zenith .its true for me.
since some point ~5 years ago (when I was teamed up with better competitive programmers) I've never been in a team of coders (any sort of collaboration other than open source contribution) in any context where I wasn't eventually ending up having to lead others, that's a very unfun experience, where you can't learn anything from peers and constantly having to teach
it's anoying to be a leader when that's not what you want to do
Someone's gotta do it
And if you really don't want to, then don't
and be on a team with no direction
yo
agreed i am not verified yet lol
tis quite unfair
Name = input("What is your Name? ")
if Name == "Narmie":
print("authorization accepted!")
time.sleep(1)
print(".")
time.sleep(1)
print("..")
time.sleep(1)
print("...")
time.sleep(1)
print("accses granted!")
time.sleep(1)
print("view logs?")
time.sleep(1)
answer = input("Yes or No? ")
if answer == "Yes":
print("Loading")
print(".")
time.sleep(1)
print("..")
time.sleep(1)
print("...")
time.sleep(1)
print("No Logs available!")
time.sleep(15)
else:
print("Have a wonderful day!")
time.sleep(5)
else:
print("authorization rejected!")
time.sleep(5)
this is my fav code for now
i havent rlly done anything
what's it for
w
I haven't worked with python in a min but im lookin for help with a complex concept
im not rlly the person youre looking for
im just making a game rn in javascript
i am sill just a newbie
bc im bored
inensely cool
lol it's like agario kinda
but jujst custom
it's so laggy whe ni did this
it is from ground up
i connected nodes with js and friends can play n stuff but
does the ball grow when it eats more balls
peak
peaks
and i prob should not render the onscreen pellets
like
every time i move
i update every 1ms too
my 7900xtx is hurting even lmao
well, cant you maybe not let the little balls be summoned outside of the border
or it might be running on my integrated graphics
im trying to find a way to optimize it
they aren't.
``
function drawDots(){
for (let dot of dots) {
ctx.beginPath();
ctx.arc(dot.x - camera.x, dot.y - camera.y, dot.radius, 0, Math.PI * 2);
ctx.fillStyle = dot.color;
ctx.fill();
ctx.closePath();
}
}
oiops
function drawDots(){
for (let dot of dots) {
ctx.beginPath();
ctx.arc(dot.x - camera.x, dot.y - camera.y, dot.radius, 0, Math.PI * 2);
ctx.fillStyle = dot.color;
ctx.fill();
ctx.closePath();
}
}
i dont rlly understand this
and you may pose the question that yes
sooooo
well
here's one thing you can understand
that's in my game file
so ppl can just call and edit the function i thjink
im bad with server side development i just wanted a runnable game
no worries
:)
yeah lol
hello
closed captions please
@wind raptor not Node
PWAs are web pages + services workers
there do exists streams of some sort streams in the browser too
https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
the only good thing to come out of Roblox is luau
@wind raptor no one is
they don't sound like they are interested either
I started playing The Alters
great game
wanted to try that one
100% recommended~~, but do be aware of non-zero requirements for GPU~~
(I have it running at something like 40fps on medium settings)
i dont get wth is happening on vc
which gpu?
i got a 4070 ti
but already had issues with stalker 2
that game is so badly optimized
RX 590, way weaker than 4070 Ti
(something like 3x weaker judging by videocardbenchmark)
i want to speak but i am intimidated by @dense pike extrovert antics
cute
wanted
it barely fits in
next one to try will be Expedition 33
those two are sold together
I also have several other games I still need to finish
are they from the same company?
seems like different; not even the same publisher
some weird bundles do happen from games ending up with the same publisher somehow
im eating this thing right now
@wind raptor The Alters
meringue with dulce de leche and puff pastry