#voice-chat-text-0
1 messages · Page 496 of 1
@woeful blaze is there any way you can explain a class for me ive watched countless tutorials but i still dont know what ```python
self.
init
args
kwargs
i really cannot get them
ive tried it all lmao
you can too opal
i just need help
You have been on the server for less than 3 days.
i got this
sorry i have to go
bye!
@chilly wolf it´s cutting out
hello
Amazon.com: air conditioned jacket
soon
Hi
How many messages do i need to be able to txt here
I mean have voice
Can i text here?
And get points?
it's not about "points", it's about having meaningful conversations
also I think when you wrote that you already had >50 messages
so just #voice-verification
@verbal token 👋
hey wsp
joined cuz i wanted to learn how to code
looking for anyone that could help me
i got alot of stuff in mind
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath how long have u been coding for?
holy
are u rich yet?
u could get so many good jobs
oh
my fault
@somber heath so your fluent in python?
@sudden coral 👋
why do they make it like this
are u a mod?
so your here everyday?
you are then i will be here too
wow
huh?
wow man
it was great meeting you
your a good man
how old are you? @somber heath
can i guess?
54
close?
cmon just gimmie a hint
55
i bet its correct
also can u teach me how to code
please
python
when can u?
oh
back in the days people had to read books to learn how to code right
?
Also github code also ,if it's open source
@cosmic breach 👋
https://github.com/python/cpython
i meant ,the original source code of python itself
Python is built is C language mostly,right
@somber heath
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@faint raven do you appreciate how nonsensical the last answer to you in #off-topic-lounge-text is?
they're almost matching the absurdity of the question itself
when are we getting GPGPT
@halcyon rock
general purpose GPT
@wind raptor iPhone 17 every year?
iPhone 17 1 iPhone 17 2 iPhone 17 3
@wind raptor again?
it was given out free before
so they do repeat
@wind raptor Good evening! 👋
good
hbu
crying
lol
my repo has 0 stars!
and no views
not really
use it your other projects
I think people are more likely to use something you made if you use it yourself
daily dive?
@wind raptor Daily 
ohh yeah I saw this
also im working on setting up on fiverr
"I've suffered enough"
thats funny
is that selection for experience or professional experience?
experience
I can claim 16 years of experience if we stretch the definition of experience hard enough
or 18
i can claim 5 years of experience if I count non professional expo
I actually don't remember
but im 14 so I cant have pro expo
I am
smth like that
well its nearly correct
still works tho
I can ask my parents for their permission to create a fiverr acount
and stuff
brb
are you ready to compensate the client monetarily if you end up doing such a bad job that they can legally make you do so?
true
I need that 60 second average response time
can I see your page?
I honestly dont remember
can I not see the page
ohh alright
mb
official tutorial is still one of the best resources
Guys is it normal for Engineers to present in front of CEOs?
Like CEOs of 100 year old companies
@sharp summit Where are you getting your traing data corpuses from?
torch_geometric
Presenting what?
damm
i did a upwork project thing up
like an advanced code support
The requests I would get!
cause some guy said he wanted to learn how to make a bank account managment software
make sure to implement those shady projects on debian without most of the default packages
and he wanted to add some features to make it basically steal bank data
@wind raptor
what the hell
Hey I wanna make this school project, it basicly just takes your discord and bank session tokens and sends it to a telegram channel
yeah its not illegal and its for school
It's either that or "do my homework for me"
(I edited the missing part in which was VC context so the joke works)
@wind raptor "Mr. Beauddhist"
@jagged grotto English please
@minor snow speculative evolution
Speculative evolution, also known as speculative biology or speculative zoology, is a genre of science fiction and an artistic movement that explores hypothetical scenarios in the evolution of life, both on Earth and in other possible worlds. It involves creating fictional creatures and ecosystems based on the principles of evolutionary biology, often exploring alternative evolutionary pathways and outcomes.
i.e. attempting to apply principles of evolution to hypothetical scenarios
I wouldn't call C++ good compared to Python
it's a mess
some dialects of C++ are okay
but the language is a whole is not just bad, it's wrong
@jagged grotto Python is based on C not C++
not really
hand-written C is faster than hand-written Assembly, in general
counter-intuitive but true
C compilers outperform humans most of the time
Fortran, back in 1950s was faster than hand-written machine code
that was the whole point
Fortran was already an optimising compiler
IronPython
.NET
Jython
JVM
I heard that C++ back then was nicer than now
@jagged grotto IronPython is C#-related iirc
in a sense
it had missing pieces
some of them were added
but also a bunch of junk was added
also that US government wanted developers and software engineers to not use it a lot
since it lots of memory vulnarabilities if used incorrectly
C++ is becoming gradually becoming just Rust but worse
even AI is not that good at C++
had a friend that tried to use it on a school assignment and did horribly
I've known enough C++ to understand most of the code for quite a long time
but in the last couple years I re-learned it from standards and guidelines
instead of courses
@jagged grotto turtle is almost like CRT
I can't hear anyone for some reason
the way old monitors used to render stuff
There are people talking
Old CRT monitors render images using a stream of electrons fired at a phosphor-coated screen. This process creates vibrant colors, but the technology also has limitations like low resolution, curved screens, and potential issues with text clarity. Modern LCDs offer higher resolutions and flatter screens, making them preferable for most modern computing tasks.
Quote from gemini
yeah that is why I'm wondering.. I can't hear anything at all.
can you use HDR on a CRT?
Check your settings
sound explosion
oh nice catch! since I am using a different headphones, I forgot to switch
when are we making a startup to build HDR CRTs
anyone here expert on using git bisect in python??
what are you using as a predicate to check if the code works?
are you using any dependencies?
are they declared in full?
if the project was born with uv in it, at least the problem of setting up the environment goes away
since you can just uv run ... and it will auto-sync the venv
Thanks for jumping in! For the predicate, I’ve been using a custom Python test script that returns 0 on success and non-zero on failure. The script basically tries to run a few key functions and checks expected output. As for dependencies, yes—this project uses cryptography and PyNaCl, mostly for the Curve25519 and xsalsa20/poly1305 parts. Let me know if you think there's a better way to structure the bisect check or if something sounds off.
import sys
import nacl.secret
import nacl.utils
from cryptography.hazmat.primitives.asymmetric import x25519
def test_curve25519_key_exchange():
try:
private_key1 = x25519.X25519PrivateKey.generate()
private_key2 = x25519.X25519PrivateKey.generate()
shared_key1 = private_key1.exchange(private_key2.public_key())
shared_key2 = private_key2.exchange(private_key1.public_key())
return shared_key1 == shared_key2
except Exception as e:
print(f"Curve25519 key exchange failed: {e}")
return False
def test_xsalsa20_encryption():
try:
key = nacl.utils.random(nacl.secret.SecretBox.KEY_SIZE)
box = nacl.secret.SecretBox(key)
message = b"test message"
encrypted = box.encrypt(message)
decrypted = box.decrypt(encrypted)
return decrypted == message
except Exception as e:
print(f"XSalsa20 encryption failed: {e}")
return False
def main():
tests = [
test_curve25519_key_exchange,
test_xsalsa20_encryption
]
all_passed = True
for test in tests:
if not test():
all_passed = False
sys.exit(0 if all_passed else 1)
if name == "main":
main()
git bisect start
git bisect bad HEAD
git bisect good <known-good-commit>
git bisect run python test_predicate.py
got an email from the same friend that used the AI in C++
gave me his code and needed help in it. ran those commands
!source
it's not mine'
something is off 
if it was real code,
I would complain that there PyNaCl combined with non-PyNaCl code
*scold, not just complain
forgot that word
my friend's code. The same guy who used AI in his C++ assignment 🤣
either trolling or funny coincidence
the entirety of my username comes from libsodium
which PyNaCl exposes
i.e.
if you see anything else used alongside PyNaCl which mentions those things, you're doing something wrong
What the code does:
It checks if some important parts of your project are working right—like making secret keys and encrypting messages.
It uses two tools (Python libraries) called cryptography and PyNaCl.
If everything works, the code says “okay” by exiting with a 0. If something breaks, it exits with a 1.
should I just paste the full email?
that's way too BS for me to engage with
so I'd rather continue the uv rant
libsodium actually has somewhat weird distribution
I think the Rust bindings are dead by now
JS one was somewhat useable
and I think even official
@wind raptor it's pronounced salt
Totally fair point.
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
no
@wind raptor
????????????????????????????????????????????????????
????????????????????????????????????????????????????
Google has failed me
????????????????????????????????????????????????????
use > when quoting AI
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.>
To quote AI-generated text in a Discord message, you can use Markdown formatting. For single-line quotes, use a single ">" symbol followed by a space before the text. For multi-line quotes, use ">>>" followed by a space before the first line.
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.
the last line there is a lie, btw
thank Google
just put > then space then paste the text
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.
He was mixing in cryptography out of habit since it handles key exchange nicely, but yeah—if we’re fully bought into the Libsodium model via PyNaCl, it makes sense to stay consistent. Appreciate the correction.
that
oh I got it now
thanks
ok
Ah, got it. Their message is basically saying: “If you’re already using PyNaCl—which exposes the Libsodium API—then bringing in other crypto libraries (like cryptography) to work with the same primitives (Curve25519, XSalsa20, Poly1305) is unnecessary or incorrect.”
It’s kind of a purist take: stick to Libsodium via PyNaCl and don’t mix ecosystems.
in my experience, the only times I had to debug git history was when the environment was so broken there was no way to save it in-place
so, usually, that means uv wasn't used
You could say I was a bit too agnostic with the tooling. Mixing cryptography and PyNaCl isn’t inherently wrong in a general Python project—but in a context where everything’s intentionally Libsodium-based (like your collaborator’s setup), it can definitely raise eyebrows. So yeah, recommending a hybrid approach might not have matched the design philosophy or expectations there.
I think ai is not very "helpful" when realizing its mistakes until someone points it out.
but thanks at least I know he used ai to make it.
neither do I
I'm talking about how everyone should use uv
speaking of, where's Zeptofine
uv+ruff+that set of lints
ugh another Rust one
maybe
I am going to look up everything you said on google because I am completely confused and ai is not helping me understand.
I'm fine with default VSCode Python
peace out
my projects aren't yet exploding with complexity
burn them down
I don't actually run any CI on Python code I write yet
only Rust
ugh
wait a sec
wait I'll find
@wind raptor unfucktoring
one function
and it does one thing
it's very flat
it's, like
12 cases
it goes through ~1/12th of a function each time
it's a very simple function
just big
mostly because of inline SQL
I'd rather not
it will be worse
actually unmaintainable
caused by limitations of SQLite's query planner
@wind raptor I need each statement in code
proc macro
I will eventually make codegen for it
eh
no
you should rewrite it continuously
not wait until it rots
Rust with sqlx
statically checked SQL
even has type inference
I've written several hundred thousand lines by now I think
(including rewritten/discarded code)
I need to write a document for work
advocating for use of ULID over UUID
@wind raptor have you used ULID?
monotonically generated
byte-compatible
can be compared as strings
prefix is timestamp
suffix is cryptographic random
yeah, often that is better than pure randomness
@wind raptor that's a standard thing not a library thing
!d uuid.uuid1
uuid.uuid1(node=None, clock_seq=None)```
Generate a UUID from a host ID, sequence number, and the current time. If *node* is not given, [`getnode()`](https://docs.python.org/3/library/uuid.html#uuid.getnode) is used to obtain the hardware address. If *clock\_seq* is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.
!d uuid.uuid4
uuid.uuid4()```
Generate a random UUID.
UUID4 has some invalid values
so it's not all 128 bit random
ULIDs are lexicographically sortable
which is where L in ULID comes from
ULIDs aren't designed for distribution
or rather not entirely
they do depend on local state
monotonicity is ensured within a single serialised context
meanwhile non-collision is ensured across such contexts
locally it's even simpler than random
locally it's guaranteed not only not to collide, but also to increase monotonically
@wind raptor shorter in text form, same in byte form
if you happen to generate 2**80 ULIDs in one millisecond, it will raise an error
just read the spec
it's small
base32
10+22
from creator of JSON
(the encoding)
((the variant))
did you know that JSON used to have comments?
did you know that it also used to support no-quotes keys like JS itself?
{please: "don't"}
another reason for nuking those was ease of parsing
SIMD
I wonder if serde_json does any sort of excessive optimisation stuff
@wind raptor seems like i/L/o are accepted for decoding too
so it parses rather than rejecting
okay I'm now interested in what would be the most obscene word without those four letters
TOML doesn't like nesting
it's so weird
actually
this is invalid
key = {
nested = "value"
}
I think
whereas this is okay
key = { nested = "value" }
and
this is okay
key = { nested = [
"value"
] }
iirc
array inside objects for some reason allow newlines and objects themselves don't
or something like that
TOML disallows many things
ideologically opposed to YAML in a sense
@midnight agate look at this
@vocal basin
i just end learning basics i wan guaid
idk There are many fields, I don't know what to choose
@amber raptor yes, Rust stuff, if built right, can run on FROM scratch
or what to do
musl all the way..
ok sorry
I have no idea
you can just screenshot what I wrote, send them and see if they care
i have been debugging a dumb program for the past 3h.
i am embarrassed..
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
from direct.actor.Actor import Actor
class MyGame_test(ShowBase):
def init(self):
self.scene = self.loader.loadModel("models/enviorment") #self.scene
#self.loader.loadModel("models/enviorment")
self.scene.reparentTo(self.render)
self.player_model = Actor("models/panda")
self.player_model.reparentTo(self.render)
game = MyGame_test()
game.run()
but the program says anything? segfault or some type of exit code
try different things, pick what you want more
What is the error?
not found, possibly
ok thanks
Seriously I have no clue but I couldn’t figure out why and could not care
favourite error of misrunning code
"Linux, maybe say WHAT not found"
is YAML Ruby-related?
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
from direct.actor.Actor import Actor
class MyGame_test(ShowBase):
def __init__(self):
self.scene = self.loader.loadModel("models/enviorment")
self.scene.reparentTo(self.render)
self.player_model = Actor("models/panda")
self.player_model.reparentTo(self.render)
"""File "c:\Users\casti\Desktop\3d games\pana3dtestingenviorments.py", line 7, in __init__
self.scene = self.loader.loadModel("models/enviorment")
^^^^^^^^^^^
AttributeError: 'MyGame_test' object has no attribute 'loader"""
game = MyGame_test()
game.run()
I think my first time running into YAML was Rails
YAML is actually quite old
or quite new too
2001
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
YAML actually doesn't entirely align with Ruby
because it's an unintuitive mess sometimes
but
it tries to avoid stuff like that
at least
in DHH terms, TOML is more like Python, "pedantic"
AttributeError: type object 'ShowBase' has no attribute 'init'
(in reference to the only Lex Friedman video I'd ever recommend watching)
regardless of whatever DHH believes in, it is quite important content
OSError: Could not load model file(s): ['models/enviorment']
David Heinemeier Hansson (aka DHH) is a legendary programmer, creator of Ruby on Rails, co-owner & CTO of 37signals that created Basecamp, HEY, & ONCE, and is a NYT-best-selling author (with Jason Fried) of 4 books: REWORK, REMOTE, Getting Real, and It Doesn't Have To Be Crazy At Work. He is also a race car driver, including a class-winning perf...
that
@woeful blaze you want two scripts to run at the same time?
environment
is unsupervised learning that thing which Sam Altman wanted to replace college with in his tweet
good
""thought leaders
this talk criticises that tweet
https://youtu.be/VzdVSMRu16g
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.
@wind raptor actually, since you're a parent, I highly recommend watching this
collapsed into zero dimensions
(unsupervised)
but you can learn to walk before learning to crawl
imagine if food was real
I join back and all I hear is "The pickles will be ready"
without context its pretty funny
aww awsome
I love pickles
!d pickle
Source code: Lib/pickle.py
The pickle module implements binary protocols for serializing and de-serializing a Python object structure. “Pickling” is the process whereby a Python object hierarchy is converted into a byte stream, and “unpickling” is the inverse operation, whereby a byte stream (from a binary file or bytes-like object) is converted back into an object hierarchy. Pickling (and unpickling) is alternatively known as “serialization”, “marshalling,” [1] or “flattening”; however, to avoid confusion, the terms used here are “pickling” and “unpickling”.
too bad .jar extension was already taken
ohno I found https://pldb.io/
I should go through all of this at some point
only 5130 listed
not that much
a db for APL?
APL stands for
its a db for apl
A Programming Language
ik
@wind raptor maybe like distrowatch?
This is probably excellent marketing
I contributed over 1000 lines to FFMPEG
I contributed 1 line to rust-lang/futures
(FFMPEG is a module I made that is 1000 lines just to say "I contributed over 1000 lines to FFMPEG")
hehe
I recently discovered just how questionable a verb (gerund/continuous) derived from ffmpeg sounds
lol
!remind 12h tell about that to Finnish people
Sorry, you can only do that in #bot-commands!
its a cool lib tho
libsodium
LMAO
someone needs to fill the pun void left by Hemlock
where is hemlock btw
(and chilli pepper)
I think I've gotten too used to (regular red) chili pepper and black pepper
not strong enough anymore
you need some ghost peppers
jalapeño is kind of the "normal" spicy level for me
I have a few hours in R6S
Is this.. accurate?
@versed heath I think I got up to something like Gold back when I played
but I kind of only have shooting and movement skills and no care for tactics
@versed heath 2 IQ? how did pick the same character twice?
some of those Oreilly books are hard to get @wise loom
I was Ash/Kali maining in ATK, for context
ironsights gaming on Ash
and ironsights Ela in DEF
kind of just Ash equivalent
@wind raptor civ: beyond the desync
eh
I view this games more like for-fun games
like, if you're playing PvE especially
do you guys have github?
aaaaaaaaaaaa
brb
back
not back
still broken
allegedly alive
ugh
I switched to a second VPN
not sure if it's better
hi all
haven't coded seriously since highschool
working on a script to spit out a random chess opening for white and black that I need to play
in order to make me practice openings
I should make a logo at some point
also GitLab
and Codeberg
I'll probably mainly list systems for black so I don't get stuck w an opening that white makes me unable to play
just spitting out a random opening name to specify
it's a small script so I can force myself to remember basic functions
I might end up using this if I end up turning the script into something more generally useful
Mango Tango @whole bear
but I'm making it spit out openings I know at least 3-4 moves for
so like 5-6 openings for white and black
src/lib.rs line 497
if false {```
`src/lib.rs` line 689
```rs
if true {```
it's less for the chess itself mind you, more to remember basic python coding.
btw, yes, this is already running in production software
did the sound die again
I'm going back to Estonian VPN then
I'm trying to work on reinforcement learning even though I'm still new to AI I am pulling a tutorial and it's not exactly working
And what I mean by that is it doesn't show it on the screen
I'm not sure what to do with AI
then don't
What a relief , all I have to do is DONT ..... I feel much better
is it okay if I ask for help with my code here?
If its about AI coding , the AI tech_heads , pop in from time to time
it's not AI coding
@wind raptor would be fun to try playing Endless Space 2 multiplayer at some point
not sure if it has teams though
time to check
and also it's not really a game that can be rush-learned like I'm doing with civ
I'll join codehelp
#1035199133436354600 is probably the easiest option
I think it doesn't
however
there are alliances
which kind of need to be justified and whatever
but they exist
fair enough, I'll chill in vc for a sec tho
ugh how do I check current difficult of the game
@wind raptor context for why I was playing on default difficulty rather than slightly easier:
useful excuse if something goes wrong
ES2 with max difficulty isn't actually that hard, like, "you're just instantly dying if not trying too hard" hard
it's more of AI being smart
and having slight numbers edge against you
Whats this called ?
ghost of tsushima
cool - but not free
no sir on sale tho
I like old japanese movies , like , Zaoitchi @urban summit
the who
The Blind Samurai
C:\Users\casti\AppData\Local\Programs\Python\Python313\Lib\site-packages\pygame\pkgdata.py:25: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import resource_stream, resource_exists
pygame 2.6.1 (SDL 2.28.4, Python 3.13.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
PS C:\Users\casti\Desktop\renforcemnt learning>
I haven't actually played that much of the base game itself I think
half an hour later the code has not worked
this is a warning
so only breaks 4 months from now
something else is broken
@urban summit cryptography? or corporatocratic currency?
crypto used to mean cryptography
still does, in more sane places
the whole ideology of digital currencies ended up failing
except for a few rare cases
e.g. Monero
it was all anti-banks anti-government control
what might that be?
and ended up being even worse than fiat
@urban summit yeah, you're forgetting the original vision
specifically, decentralisation failed
gone
done
no more
no it's not
controlled by corporations who force its will onto it
same with Ethereum
don't call me brother
mining is irrelevant, it's about control
Eth was centralised before the switch to PoS
the history literally got rewritten because the authors wanted to
and Bitcoin got block size increase veto'd thanks to BlockStream's influence
just go sidechain -- BlockStream
people who forced TPS limit onto Bitcoin
they have direct financial interest in it
"totally not Adam Back"
oof
@wise loom I didn't catch the context, did you try asking him a coding question?
asked who?
Rabbit
he'd be the 11th richest person in the world
why else would he escape instantly
oh, I just wanted to ask him if he shares this feeling of spending 1 day on a stupid bug
1 day , is that all ?
I mean.. I've spent much more (weeks, months) on stupid bugs but.. at least it was for paid work
yes I know.. not very impressive..
weeks , months - sounds mind warping @wise loom
read something about him saying bitcoin wont work. then in 2013 he started buying in
is there a documentary on HBO?
I have code with fatal bugs saved in GitHub's Arctic Vault 🚀
I mean.. I knew how to solve the problem in the first ~15min, but then spent the entire day on a stupid bug.
If I didn't have that bug I would've finshed in like 20min.
good luck fixing that, future civilisations
Bitcoin's creator satoshi Nakamoto has remained a mystery, until today.
Music Used
White Bat Audio - Dark Synthwave - Eternal Night
(No Copyright) Cinematic and Documentary Background Music For Films & Serials - by AShamaluevMusic
Heroes - co.ag
The fascinating world - co.ag
Carmen Habanera (Georges Bizet Cover) - Myuu
12 Rooms 12 Vacancies - C...
lmao
fuck it mask off.... percocet.... molly percocet
he's the perfect candidate
^^ like 20 times throughout the documentary
It's you bro, stop denying it
I only later realised just how much of this channel's videos were actually ongoing stuff not just history
I think there is some potential, especially to bring proper decentralisation back, in exploring more of fork-and-merge approaches
there might be a way to mitigate double-spending even in such context
spend once - only
congratulations, you're a programmer
since your greatest enemy is timezones
I must be in vc because my life depends on it
as long as your alive - the device will not be activated @wise loom
otherwise its toast for all of us
Oh wait i forgot that im not american and im not in america time zone
if by america you mean US, it has 9 time zones.
with clocks I'm normally using:
16:31
19:31
22:31
01:31
so two of those are, like, within not-yet-night time
in my timezone (Europe GMT something lol) now is 00:32
default for me is UTC or GMT+3, so I just calc compared to that
I don't like dealing with TZs so I have UTC on servers
ah, Actions not Git Flow type workflow
@rapid iron is the repo public?
you saying that you're "running" it suggests something is fundamentally wrong
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout source code
uses: actions/checkout@v3
- name: 🧪 List project files for debugging
run: ls -la
- name: 🚀 Copy source files to EC2 instance
uses: appleboy/scp-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
source: "."
target: "~/go-ci/myapp-temp"
strip_components: 0
debug: true
- name: 🛠️ SSH into EC2 and deploy app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
echo "🧹 Removing old app directory..."
rm -rf ~/go-ci/myapp
echo "🚚 Renaming temp folder to app..."
mv ~/go-ci/myapp-temp ~/go-ci/myapp
cd ~/go-ci/myapp
echo "📦 Running go mod tidy..."
go mod tidy
echo "🏗️ Building the application..."
go build -o app main.go
echo "🛑 Stopping old process (if running)..."
pkill -f "./app" > /dev/null 2>&1 || true
sleep 2
echo "▶️ Starting app in background..."
nohup ./app > nohup.out 2> nohup.err < /dev/null &
sleep 1
echo "🔍 Checking if app is running..."
pgrep -f "./app" && echo "✅ App is running." || echo "❌ App failed to start."
echo "✅ Deployment complete. SSH session ending cleanly."
can you please remove all emojis and echos?
why are you running the app?
what is the point?
where is even SSH happening?
oh wait
it's a remote script
hmm
yeah, I saw
it's just a confusing action
yeah, appleboy/ssh-action does it
reminder: the last step is huge, should be broken down into smaller steps so you can see which fails.
possibly, pkill -f "./app" kills itself and the outer context
or just the outer context
somehow
it's not working, but why?
it's working, but why?
the most frequent questions in software engineering?
I'd really rather just use Ansible rather than mess with raw SSH and file movement
a more declarative way to manage servers
more of "what you want done" than how to do it
@wise loom you need keys either way
it's just SSH at lower level anyway
it was already semi-obvious from previous logs that pkill fails
please just use systemd or docker
stop &ing your apps
or openrc
or literally anything else that has any sort of sanity
it should've probably been a single-file container
given it's Go
allegedly
yes but he would need to write service files and install them and daemon-reload. many incantations..
docker compose restart
if his app was dockerized, yes
you can just use alpine for running by mount the app dir into it
@rapid iron RAM is irrelevant
Docker only causes Disk usage problems
(and even then, the effect is negligible if you do it right)
no Dockerfile necessary
and don't use Docker Desktop
I also have RAM
podman/docker -- both are fine
Docker overhead is near 0
mere kilobytes
(per container)
Docker is not a VM thing
it's just cgroups and namespaces
same mechanisms that systemd uses
dockerd itself might use a bit of memory, but not much too
I work - therefore I am @wise loom \
amen
or use podman which is daemonless
poke to many wire in a computer - it may stop working
Docker alternative
yes
generally compatible
podman compose restart or docker compose restart, most of the time
if you're just doing this
just quicker to download
self-host Forgejo
it has same CI/CD format
but also supports Go-based actions
Forgejo takes less resources
Forgejo is a fork of Gitea
also look into https://github.com/nektos/act
@wise loom opentofu
terraform got IBMd iirc
or whoever vored them
yes opentofu is the OSS version now
@rapid iron https://calculator.aws/#/ ; https://www.aws-geek.com/
Estimate Serverless pricing
AWS Pricing Calculator lets you explore AWS services, and create an estimate for the cost of your use cases on AWS.
I got my AI working it's calming soothing everything
@hot dragon 👋
hi @wise loom
hi
hi
@midnight goblet 👋
Hi
I can not speak in voice chat for some reason. It says I am suppresed
I really can not remember why probabbly just music from my phone?
When I click voice verify it says I can not because it is active
Yes but that was not like now. That was long time ago.
So idk what even is the timeline
@toxic trench 👋
VISIT WEBSITE HERE ⤵️
https://arioledieujuste.com
JOIN EMAIL NEWSLETTER HERE ⤵️
https://arioledieujuste.com
JOIN PATREON HERE ⤵️
https://www.patreon.com/ArioleDieujuste
WISHLIST HERE:⤵️
https://www.amazon.com/hz/wishlist/ls/3LJXXAQ6MD2ZU?ref_=wl_share
Disclosure: The items in the video were purchased by me. No one paid me to...
watching x1.75 this guy talks slow
20% of the time he's like "hope i'm making sense, oh this car made so much noise"
so basically IT Support is telling SWE that their jobs will be replaced, but he's never worked as SWE.. uhm
I saw this coming
Belief has its own gravity.
If enough of the people who make decisions believe it can be done with AI, they'll fire their devs.
Skeleton dev crew plus AI.
Ta-da, AI took your job.
It didn't matter that AI shouldn't be relied on for this. It kind of works with a bit of supervision, so that's near enough. Got to cut the fat even if it's to the bone.
When I say this, I mean anything.
I believe the bone is being cut off too.
The outcome might be relabeling SWE as something else, just to show everyone that the big boys have indeed done what they sought out to do, and it has been done as they said it would be done.
hey friends
Network up and running
Second training session currently 66 not as the first one 70 but still it pretty good
@whole bear 👋
Hi
R u a bot bro
I feel like you are a bot?
OMG?
Dam ok I lowk thought u were a bot but ok bro
Guys. I’ve never been in such a highly educative conversation like this
Like- y’all are lowk smarter than me what the heck? I feel dumb? I speak English and it’s not transcribing in my head
I wouldn't stress about it.
Well, you shouldn't have to.
I'll stress for the both of us.
!guilds
The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.
@atomic otter👋
Gy
Hy
i cant talk right now :/
Can u type?
yea
haha
i can
Bagutte
but depends
what is it about
All u gotta do is have python that's it
Welp everyone is gonna be unfamiliar with this one coz no one has ever heard of this
look as this masterpiece
If ur interested I'll send u the code and send u the functions
___: int = 1--+------+-++-++----+---++-+--+--1-+--1
_: str =1--+------++1+-+-+--+-+-++-++--++---1-+1
____: float = 1-----+-++++---+---1---++--+---+1
__:int=1--+------+-++-++--1---+---++-+--+--1-+--1
# ita 1+2+3
result = ___+-+++--__+--++--__++--+-+-+-__-++-+__+_+-++__+--+--+__+--++--+-+-+--++-+__+____
print(result)
Wait wait
@echo bison u know dictionaries in python?
sure ill check it out
i know xd
Shall we talk in dms?
!e ```py
___: int = 1--+------+-++-++----+---++-+--+--1-+--1
_: str =1--+------++1+-+-+--+-+-++-++--++---1-+1
____: float = 1-----+-++++---+---1---++--+---+1
__:int=1--+------+-++-++--1---+---++-+--+--1-+--1
ita 1+2+3
result = +-+++--+--++--++--+-+-+--++-++_+-+++--+--++--++--+-+-+--++-+_+____
print(result)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
6
@echo bison I'll dm u rn
if you want to
alright
@sterile wadi 👋
hi
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@urban ledge 👋
@subtle kelp 👋
hi
!e
print(int("৪୨")) # answer to everything
:white_check_mark: Your 3.13 eval job has completed with return code 0.
42
Wtf
💥
: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;31m{1:0<{1:0<10}}[0m"
004 | [1;31m^^^^^^^^^^^^^^[0m
005 | [1;35mMemoryError[0m
I don't think Discord Markdown understands how to highlight this properly
exits the } too early
he
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hi
@foggy field 👋
I forgot which city had a concert on its ruins, apparently not Aleppo
(it was Palmyra)
Russia being weird
depends on definition of working
I thought I had those but those got cancelled
non-work-related
my younger brother is working a language interpreter in py
i can make a github project/pastebin thingy if yall want to see it
his thingy is only one file so i can probably just pastebin it right
as in that also helps with actually keeping track of changes
Git being the important part rather than wherever it's hosted
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
alr
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@eternal ether 👋
Still saying less than 50 messages
@tawdry moth 👋
How's it going.
@somber heath where in uk? if i may assume as much.
AHHH fuck.
sorry
@umbral carbon 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@worthy flame 👋
Hii
Bonjour Opal
actually I'm looking for an solution, I'm working on Gen AI app (python package)... I need to protect the code like the prompt, grammar etc from client
Corey Schafer.
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
i found it thanks
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
thank you
Does this look right?
import random
# Define random list values
list_length = 30
min_value = 1
max_value = 100
# Randomly generate lists
random1 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random1))
random2 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random2))
# Define function for removing duplicates with a set
def remove_duplicates_set(v):
set1 = set(v)
v = list(set1)
v.sort()
return(v)
# Define function for removing duplicates with a loop
def remove_duplicates_loop(v):
list1 = []
for i in v:
if i in list1:
pass
else:
list1.append(i)
list1.sort()
return(v)
# Call functions and print results to screen
print(remove_duplicates_set(random1))
print(remove_duplicates_loop(random2))
these comments are scaring me
list, then .sort is just sorted
which is already used above
!e
test = [1, 2, 1]
print(sorted(set(test)))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[1, 2]
if i not in list1:
list1.append(i)
I highly recommend purging all comments except for the second one
@primal shadow starting with 2 items, list is slower
@languid marlin 👋
There's a big difference between actual computation speed and perceived computation speed
actual can be several factors off
wassup
but perceived can be identical
🙂
perceived in what sense?
the user
the thing that matters
the person that's paying you to write the software
set spends less compute time on in than list
if in with list has to check 2 or more items
I wonder what dict uses for insertion order
probably doubly linked list?
!e py print({'a': 1, 'b': 2, 'a': 3})
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{'a': 3, 'b': 2}
iirc it became insertion-sorted in CPython in somewhere around 3.3 or 3.4, and then that got standardised
maybe earlier
maybe even in Python 2
!e
import random
list_length = 30
min_value = 1
max_value = 100
# Randomly generate lists
random1 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random1))
random2 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random2))
def remove_duplicates_set(values):
set1 = set(values)
values = list(set1)
values.sort()
return(values)
def remove_duplicates_loop(values):
list1 = []
for i in values:
if i not in list1:
list1.append(i)
list1.sort()
return(values)
# Call functions and print results to screen
print(remove_duplicates_set(random1))
print(remove_duplicates_loop(random2))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | [1, 4, 7, 10, 11, 11, 14, 18, 20, 22, 26, 27, 34, 35, 42, 46, 48, 51, 51, 55, 58, 63, 73, 74, 74, 81, 88, 91, 96, 98]
002 | [4, 8, 10, 11, 15, 16, 17, 17, 21, 47, 49, 49, 49, 50, 57, 57, 63, 65, 67, 73, 75, 80, 85, 89, 91, 91, 95, 95, 95, 97]
003 | [1, 4, 7, 10, 11, 14, 18, 20, 22, 26, 27, 34, 35, 42, 46, 48, 51, 55, 58, 63, 73, 74, 81, 88, 91, 96, 98]
004 | [15, 97, 91, 8, 75, 47, 65, 50, 73, 57, 10, 57, 95, 21, 49, 89, 17, 63, 67, 17, 95, 95, 85, 49, 4, 80, 16, 11, 49, 91]
yes, 3.6
and standardised in 3.7
in 3.6 it's implementation specifics
happens to work on CPython
why () after return?
!e
import random
list_length = 30
min_value = 1
max_value = 100
# Randomly generate lists
random1 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random1))
random2 = [random.randint(min_value, max_value) for _ in range(list_length)]
print(sorted(random2))
def remove_duplicates_set(values):
set1 = set(values)
values = list(set1)
values.sort()
return values
def remove_duplicates_loop(values):
list1 = []
for i in values:
if i not in list1:
list1.append(i)
list1.sort()
return list1
# Call functions and print results to screen
print(remove_duplicates_set(random1))
print(remove_duplicates_loop(random2))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | [1, 2, 12, 14, 14, 22, 30, 34, 35, 36, 41, 46, 47, 55, 57, 58, 59, 59, 65, 69, 78, 80, 82, 85, 86, 86, 88, 92, 92, 99]
002 | [1, 2, 7, 8, 13, 15, 17, 29, 29, 32, 33, 37, 38, 40, 41, 44, 47, 51, 54, 54, 56, 65, 68, 69, 69, 75, 80, 80, 87, 95]
003 | [1, 2, 12, 14, 22, 30, 34, 35, 36, 41, 46, 47, 55, 57, 58, 59, 65, 69, 78, 80, 82, 85, 86, 88, 92, 99]
004 | [1, 2, 7, 8, 13, 15, 17, 29, 32, 33, 37, 38, 40, 41, 44, 47, 51, 54, 56, 65, 68, 69, 75, 80, 87, 95]
in Rust you can do (return value) and pretend you're writing Lisp
!e py print('a' == ('a'))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
True
what a horrible emergent construct
fn main() {
(return ())
}
Omg 😲, my messages are not getting send!!
!e py import random def dedupe(values): return list({value: None for value in values}) my_list = [1, 5, 2, 1, 5, 7, 2] print(my_list) result = dedupe(my_list) print(result)
From my pc it's showing red text
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | [1, 5, 2, 1, 5, 7, 2]
002 | [1, 5, 2, 7]
[ ]
For remove_dulicates_set () how about using sorted(set(values))
this is equivalent to previous solution
and I did point out this as an equivalent option
but not equivalent to second function
I have to maintain an insertion-ordered module myself because the original kind of got abandoned
https://docs.rs/ruchei/0.0.95/src/ruchei/collections/linked_hash_set.rs.html
or at least it was abandoned last time I had to deal with it
seemingly there was an update
after 5 years
let's check if it's compatible
def dedupe(values):
result = list()
seen = set()
for value in values:
if value not in seen:
result.append(value)
seen.add(value)
return result```
okay the updated one seems to compile fine
time to nuke my implementation
hi
@summer roost 👋
Wow we got lot of people here...Hai alll
how not to lose something: just not have it to begin with
!voice @summer roost
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@raw flicker 👋
hey