@vocal basin I am building a media streamer software: https://github.com/Legacy-Engineers/Flexi
Wanna join hands
#voice-chat-text-0
1 messages · Page 511 of 1
What country you in, it must be hella safe
The project is in Django btw
I don't wanna toture myself and write it in rust
So quiet in here...
There are other ones like Plex and Jellyfin
async fn outer() {
inner1().await;
inner2().await;
}
becomes this
#[pin_project]
enum Outer {
Inner1(Inner1),
Inner2(Inner2),
Finished,
}
impl Future for Outer {
type Output = ();
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
loop {
let this = self.as_mut().project();
match this {
Self::Inner1(inner) => {
self.set(Self::Inner2(ready!(inner.poll())));
}
Self::Inner2(inner) => {
let output = ready!(inner.poll());
self.set(Self::Finished);
break Poll::ready(output);
}
Self::Finished => panic!("polling a finished future"),
}
}
}
}
so everything gets turned into a state machine
which, thankfully, you don't have to look at usually
Huhhhhh
Python is similar in that sense https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
Screencast based on a workshop originally presented at PyCon India, Chennai, October 14, 2019.
Code samples at: https://gist.github.com/dabeaz/f86ded8d61206c757c5cd4dbb5109f74
This workshop is about the low-level foundations and abstractions for asynchronous programming in Python. It's a bit unusual in that rather than starting with tradi...
I have never used enums like that
both use coroutine/generator abstraction
variants of Rust's enums, also called tagged unions or algebraic data types, can store extra data
I mean I do understand the code
similar to |d types in Haskell
But it took half my brain cells
I don't know haskell. Me and Functional programming langauges are not friends
or std::variant from C++
Result is one of the main examples in core
enum Result<T, E> {
Ok(T),
Err(E),
}
I love rust pattern matching
It is just better
Hmmm
Please use python for example not C++
probably not, because I'm already quite busy with work
What do you do at work??
You gotta be working for Google or some FANG shit
It's cool. I prop build it for my home server I am currently working on
infrastructure software, mostly
enabling other software to run
You gotta give me an example
same domain as things like systemd, k8s, ansible, terraform (different levels of dealing with infrastructure)
but simpler
also some web stuff
and CLI utilities
Ohhh ok got it
(API and browser-side)
That is so cool
and random things like https://docs.rs/matchjson/
match-like handling of serde_json::Value
I love low level
So cool 🙂
src/lib.rs line 497
if false {```
`src/lib.rs` line 689
```rs
if true {```
if false is a hack to have type fallback
if true is a hack to have #[] on an expression
(both of those have ::core::unreachable!(); in the impossible case)
Bro it's like you built your own language, Macros are crazy!
No it's not
(like, picking tokens apart and whatever)
the difficult part was scopes
since macros do some weird things with variable scoping
I tried building an interpreter with rust. I could only do basic arithmetic 😂
https://github.com/Legacy-Engineers/neSia
GitHub
A programming language build from scratch by Dawda Borje Kujabi - Legacy-Engineers/neSia
Ohhh, I hope ther is not a time where I will have to use macros
procedural macros are the easier option in some cases
since those are just normal Rust code
I do get derived macros but procedural macros are a mess
derive macros are a subset of procedural macros
I trust but I don't trust you
But easier
this one is thoroughly cursed
I have to force Rust to treat certain types as different there
proc macro code, including derive macros, tends to be quite unreadable
I can't tell what is going on
I'm implementing, not trying to implement
Lol, What are you implementing
probably the simpler of the examples would be this
https://docs.rs/object-rainbow/latest/object_rainbow/trait.ToOutput.html
and I think this is its derivation implementation
https://docs.rs/object-rainbow-derive/0.0.0-a.4/src/object_rainbow_derive/lib.rs.html#86-212
this is kind of an uninteresting part
https://docs.rs/object-rainbow-derive/0.0.0-a.4/src/object_rainbow_derive/lib.rs.html#87-104
this makes sure it's only implemented when all fields can be serialised
https://docs.rs/object-rainbow-derive/0.0.0-a.4/src/object_rainbow_derive/lib.rs.html#106-143
this implements serialisation for [fields of ]structs and variants
https://docs.rs/object-rainbow-derive/0.0.0-a.4/src/object_rainbow_derive/lib.rs.html#145-181
and this implements it for structs and enums
https://docs.rs/object-rainbow-derive/0.0.0-a.4/src/object_rainbow_derive/lib.rs.html#183-212
even with structs, use match
Bro you use vim to code also don't you?
ed
what is ed?
?
ed is a text __ed__itor
link??
precursor to vi
I tried neovim, It was cool
I only use neovim on a phone
if you want to experience ed
docker run -it --rm alpine ash -c "apk add ed && ed"
or just type ed and enter
maybe you have it installed
eds aside, I regularly use VSCode and Vim (regular one)
I am using arch so yay got me covered
I've been a pycharm guy for years now but the performance is pretty dire
In what ways?
I have a bad habit of not using many integrations and just doing things on command line
Maybe not a bad habit persay
pycharm sucks
docker host and UI host are on different machines => severe complications
now I just use VSCode's remote thing
This is unusable
M-x ed
?
??
What do you run in docker w/ a UI out of interest?
no, UI is outside docker
inside and near docker it's just the language servers
and terminal
running the UI of the VSCode on Windows
with all the important parts actually happening on Linux
not WSL
ohhh
print("hello")
i thought you meant you were hosting the UI of whatever you had running on docker on a separate machine
not just the vscode ui
i = 1
for i = (hello)
print (i)
That is not normal bro
it just works
You also have your life in docker?
I need to get a good remote dev env set up on my windows machine, using python on windows is painful now that i'm used to unix
why did you reply to that lmao
oops
^
You cannot iterate an integer
two code samples, two reviewers,
one of us only 👍s, the other only 👎s
this is what python looks like in my dreams
maybe I should watch Labyrinth
when i have a fever
it's great. it's one of my faves
(one of us tells the truth, the other only lies)
words = ("hello", "jacob", "kb")
for word in words:
print(words)
Huh??
it's a movie/puzzle reference
That doesn't work bruh
!e
words = ("hello", "jacob", "kb")
for word in words:
print(words)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | ('hello', 'jacob', 'kb')
002 | ('hello', 'jacob', 'kb')
003 | ('hello', 'jacob', 'kb')
It should be print(word)
depends on the what the definition of n't is
[print(num) for num in (x for x in {"1": 1, "2": 2, "3": 3}.values())]
dogs = ("rufus", "jacob", "kb")
for dog in dogs:
print(dog)```
!e
[print(num) for num in (x for x in {"1": 1, "2": 2, "3": 3}.values())]
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
i always forget the eval cmd
imagine if this worked
[value for _: value in dictionary]
Now learn rust
as syntax sugar for .items()
i hate that
@timid quartz noises are coming through the mic
@timid quartz good job
He literally doesn't give a shit 😂
You causing noise
U won't last as a programmer
[dict[key + n] := val**2 for _ in dict.items() for n in range(5)]
A good programmer
walrus operator should allow for setting values on an object you're enumerating
that would be real horror
Haters hate us cuz they ain't us
The ability to solve problems abstractly, idk
Like how do you solve a problem
??
: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 | wife
004 | [1;35mNameError[0m: [35mname 'wife' is not defined[0m
😭
@vocal basin look at this
new syntax for setting values on an iter you're enumerating on
walrus operator is the best
Let's say you are told to take a csv file as an input and then have to create a bulk transaction but at the same time update the client on each row you process
which database?
if MySQL+sqlx, probably just cry in the corner instead
@timid quartz premium card of being gay
postgresql
I don't like mysql
uhhh, how will you update the frontend for each row
the progress is not gonna cut it
"Jose, or whatever their name was, giving us an examples for how to deal with bs question: just ignore them"
Most of the time you use an orm
you can't update on each row with a transaction
transactions are atomic
I get that, but I said how will you update the frontend on the progress for a specific row you doing whether it failed or not
with a transaction, either all fail or all succeed
Maybe we not understanding each other
that's the whole point of a transaction
I also prefer having it as single statement when using PostgreSQL
UNNEST 🤍
usually multiple arrays
yes or no
Ok let me rephrase
Like in python I can track which rows failed,
.
print("yes")
print("yes")
print("yes")
print("yes")
print("yes")
print("yes")
print("yes")
print("yes")
hi
Yes it will roll back if it fails
so you want to see the first row that it fails on?
hi
Ok you know what it is my bad
✅✅💥🟥🟥🟥
showing off my diagramming skills
the word div gives me flashbacks
I basically implemented a bulk data entry using the django orm to create the data while updating the frontend on each row
sounds something Apple would do
It was a csv file
It wasn't a transaction
That was my bad, I shouldn't have said transaction
I basically validated each row
Fuck no perl, python
like if the csv file is referencing a patient id, i need to verify it exits before creating the data
sure
Hmmm interesting
Validate the data before creating it
😂 I am in africa bro
Tf
I was writing??
ok
My desktop knowledge is low. So I would basically trace the mouse position on the screen. Remember the last few position. Then calculate the speed of the cursor from the new position to the previouse one. For better tracking I will draw a trail. I will then make it thicker thicker when it is slow and thinner when fast. Then repeat it as many times as possible.
I don't know bro I mostly work with data not so thats the best I can com up with
Like for me drawing the trail will be hard
Huhhh you don't say huhhh
not chilimango soda this time
I should go through Noctuary once again so I can recall what they drink in Inlixaland
I remember there was tea with salt and that's all I can remember
It's alright I am stuck in health care related software 😂
I hope I'm not being too political by calling it Inlixaland rather than Arboretia
since Inlixaland is named after [spoilers, play the game yourself to find out]
wasn't expecting this to be released today
Cryogenesis still being the favourite song from them; I wonder it that one'll ever get remade
funny Australian vegan band also released something ~2 weeks ago
@somber heath "at least something good happening out there"
such a positive and happy-lyrics band
they're slightly radical about being vegans
(at least in their music)
(DxE)
@dusky obsidian 👋
Hi
"spot an Australian song from early 2020"
vitamin A is in liver
a lot
especially polar bears
retinol and other stuff
(not a single compound)
Steve
Johnson
I couldn't find a more generic surname
John Smith
hello there people
@urban abyss that one is clearly derived from
Steve
hey there
@plain pollen 👋
Russian has some weird convergence with shortening names
For example?
i have a loot of russian freind and they have english names
the following names all share the same short version:
Агнесса, Агния, Александр, Александра, Анастасий, Анастасия, Анна, Арсения, Арсений, Асия, Аскольд, Аста, Астий, Астион, Астра, Василида, Василиса, Геласий, Геласия, Иосаф, Ксения, Михаил, Реас, Таисия, Тарас, Тарасия
by what way Mikhail becomes Alya -- I have no clue
ah, wait, no, last part
it's like Michael -> Ale
i think its the way they pronounce it
and another one
at least this is not as obnoxious
this is kind of a Jo alternative
its all sounds same
@urban abyss John J. Johnson
@vocal basin where is that mexican guy we where chatiing with
Russian has no fixed order
except that patronym must follow the given name
but it's often omitted
"Alisa A. Feistel"
"Feistel Alisa A."
"Feistel, Alisa A." (Wikipedia style)
@urban abyss SHA256(gps)
just a suffix
not ISO?
2025-08-15 is what I use
20250815034950 if you're being extra funny
Eircode is the national postcode system in Ireland.
An Eircode is a unique 7-character code consisting of letters and numbers. Each Eircode consists of a 3-character routing key to identify the area and a 4-character unique identifier for each address. A typical Eircode might read A65 F4E2.
All residential and business addresses have , which in some cases can be the name of an individual, particularly for small businesses or sole traders.
order all points by their position on some sort of Hilbert curve
bifurcate the value space whenever you need more points
I've seen lots of YYYY-MMM-DD recently as in 2025 Jan 12
so you just add a bit to the end if stuff was already taken
MMM??
i never seen the momth goes 3 digit
as in mmm tasty
Mavrodi Mavrodi Melnikova
thats more like it
lmao
https://en.wikipedia.org/wiki/MMM_(Ponzi_scheme_company)
Ponzi scheme company
sounds like serious enterprise
@vocal basin have you ever written a package that use rust biindings?
bindings to Rust or from Rust to something external?
from bring rust to python
powerful graphic design
🗣️ biindings
not like that changes the answer, I've done both
heir of this organisation currently controls DPR
@urban abyss pyx?
%Y %b %-d
@urban abyss so cashout process is finally starting
they can finally make money
for self-hosting package registries I use Forgejo
and if it doesn't support some format, you can just contribute it to there yourself
"RTC Connecting" 😭
rip
everything Git, packaging and CI outside of GitHub
I don't want to use GitLab for now
including because its packaging support is more limited
GitLab is better for access control
but it doesn't support some things which are critical for me
e.g. cargo packages
there we go
I have never used Gitlab
sounds old
I'm thinking of starting to make bots for Forgejo
including for access control
it looks quite automateable
@calm heron tool not library
no
that's the difference
https://docs.astral.sh/uv/ - package / project management
https://docs.astral.sh/ruff/ - linter/formatter
already do some Forgejo-specific automation
Poetry was good tho
but it's mostly in CI/locally
though local stuff is largely compatible with GitHub too
tagit, I think, can do both Forgejo and GitHub; not sure about GitLab
@urban abyss uv can be used along side pip, e.g uv pip install [pacakge]
(difference there is mostly in the tag/compare URL format, if any)
or link it with -e flag
release workflow has been reduced to this for me
tagit changelog # update changelog links and sections
git add ...
git commit ...
git push
tagit tag # update git tags
imports should be aware that there might be multiple versions
old setup tools: pipx pyenv poetry/hatch python-venv
new setup tools: uv
git push?
what last line does:
- extracts version from
Cargo.tomls of the workspace - creates new tags
- retags
majorandmajor.minor - pushes all the tag changes
living with not having to do all that by hand is great
@urban abyss same as GitHub Actions
but with Go support
I write new actions in Go
so, can't be run on GitHub presently
but should work on nektos/act
better dev experience for me, compared to JS
I understand JS being async-only, but it gets in the way too much for CLI apps
@calm heron uv is easier:
uv init # to initialize a project/package
uv add [package_name] # to add a new package
uv sync # to sync the packages or installs them
it automatically creates a virtual environment .venv/
That works too
so when you run uv init it makes the venv?
not yet
But I love doing uv sync
it creates pyproject.toml and .python-version
yes
also also other files needed for the project
first command to interact with packaging will trigger .venv creation
I'm testing out a pyproject/lockfile setup that should allow for dependency upgrades to be simple and without too much manual intervention i.e. pinning/unpinning dependency versions to test functionality. To that end, what I currently have is:
Dependencies in [project].dependencies are all unpinned
Versions are pinned to via uv lock in the normal way
Versions are constrained against in [tools.uv].constraint-dependencies for cases such as "this range of versions is incompatible with our code"This then allows for a uv lock --upgrade to not be limited to version specifiers set in [project].dependencies as they would normally.
I have two questions:
Is this a sensible workflow? In the past, the manual maintenance of versions has been a time sink that we'd like to avoid if possible.
Would it make sense, as a feature request, for the [tools.uv].constraint-dependencies field to also have a CLI endpoint similar to uv add <package-version-spec to support this workflow? This CLI command would imply all of the same background actions (regen'ing the lockfile, re-syncing the environment), so would make to me to have it be interfaced with in this way.
to my understanding, the only way to unpin is to nuke the lockfile
yes
lockfile is where it is pinned
iirc there is no equivalent to cargo update
just installed uv in your system and run:
uv init
uv run
so you make and cd into a directory and run uv init, is that right? It's my understanding that you shouldn't have the venv in the same folder as the git colder with the code
will do
You will see the results
no, you should
you should .gitignore it also
BUT
nowadays that doesn't matter
modern Python will put a .gitignore with * for you
the latter is false, and I recommend learning about .gitignore
I've been writing a script to convert UV lockfiles to Pex lockfiles recently, bleh
Pex??
Pex?????
right, i could, I just try to keep it out of the git folder entirely. I may be doing it wrong but my folder structure looks like this
/Python
../VENV
../project1
../project2
../project1
../project2
I highly recommend one venv per repo
Portable venvs essentially with a more advanced resolver
And a PyInstaller alternative
project1/
.git/
.venv/
project2/
.git/
.venv/
monorepo/
.git/
.venv/
subproject1/
subproject2/
Unless you're using a build system that manages them for you
then just gitignore?
- don't
git add .unless you know exactly what you're adding
this will solve most of problems with accidentally staging something
bye
- when you create a
.venv, it may already self-ignore; don't waste.gitignorespace on it, unless you're planning on collaborating with someone who might accidentally stage their own venv
- https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore, if you don't understand
.gitingorewell enough yet
(or if you just want a quick template)
like so? so if I run a python file without uv run and just run with python .\hello.py does it not run it in the venv?
@vocal basin you use daily.dev??
it sounds similar to something else
You getting it
right, let me try with one of my current projects
dev.to I think
nahh
and maybe some other website
??
lol isn't he the one that created ruby on rails??
Yeah knew it
huhh didn't see that
there was a video where some random bot interviewed him for 6 hours
sorry I meant bot
sorry I meant guy
it works, that was simple
Realy, is it that fred guy??
ikr
Bruh everyone is so excited about this Github Spark AI
I don't know what to do here with the .gitignore
yes, it's just *
(which means it ignores the entirety of .venv, so it doesn't get into git)
so already correct
what of these other files it created in the root directory?
.python-version is for compatibility with some other tools iirc
pyproject.toml contains the project details including dependencies
uv.lock includes all the transitive dependencies and their exact versions
main.py is an example
.python-version is optional, you can delete it (but keeping it is okay too)
main.py is just an example, you can delete it
pyproject.toml and uv.lock you should stage and commit
Hello everyone
hello
@calm heron
@opaque raft you have a home lap??
Bruh I am tryna build one
I can help 🤷♂️
Based on my research alot of people use Proxmox
The only part I can't do is the networking part
Yes, proxmox is amazing.
I have no idea what a switch does or even pfsense does
A switch is basically an ethernet "hub" you input from one (or more) ports and output through a bunch more while sharing bandwidth from the input.
@calm heron
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
Hmmm
I was reading on how to configure proxmox with truenas and more
@opaque raft I suck at networking
Basically I read that if I want to access my services in my home lap from anywhere I will need a vpn
Like do I need truenas to complete my build
Also do I need to buy a server, can I use a work station
@calm heron Hey i gtg sorry ]=
cya
How are you doing today mindful dev?
Good, thanks. How are you?
I'm trying to find a tutorial for an image classifier
My back is almost killing me
How are you doing today opalmist?
!stream 1315159836140240926
✅ @timid quartz can now stream until <t:1755224813:f>.
!e py for letter in 'abc': print(letter)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | a
002 | b
003 | c
is like
!e py letter = 'a' print(letter) letter = 'b' print(letter) letter = 'c' print(letter)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e
for i in range(10):
print(i)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
!e
for letter in "Hello World!":
print(letter)
!d range
class range(stop)``````py
class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int) or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__) special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.
For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.
For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
Similar names: django.range
!e
x = input("Enter a number: ")
y = input("Enter another number: ")
z = x * y
print(z)
:x: Your 3.13 eval job has completed with return code 1.
001 | Enter a number: Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | x = input("Enter a number: ")
004 | [1;35mEOFError[0m: [35mEOF when reading a line[0m
x = int(input("Enter a number: "))
y = int(input("Enter another number: "))
z = x * y
print(z)
wait so this bot dont work same way as the compile bot ._.
how youll gonna pass inputs???
no idea @paper wolf
class int(number=0, /)``````py
class int(string, /, base=10)```
Return an integer object constructed from a number or a string, or return `0` if no arguments are given.
Examples...
input('What is your name?')
'kb'```
int(data) try to convert data into intiger form
int(input('How old are you?'))
int('15')
15```
the explenation of opalmist is quite missleading tho...
age = int(input('How old are you?'))
# you'd get
age = 15```
try to run that code on your system
@umbral iron 👋
hi
Eu nunca consegui falar no canal de voz. Não importe o quanto eu tente ficar em uma conversa pelo tempo informado, nunca habilita pra mim.
I’ve never been able to speak in the voice channel. No matter how long I try to stay in a conversation for the required time, it never gets enabled for me.
uhhh pls try to speak in english
same
its impossible
i was banned from it apparently because i tried to fast track my way into it
!e
x = int(5)
# 5 + 2 = 7
x + 2
# convert 5 to a string "5"
y = str(x)
# this operation will fail because 5 is now a string
y + 2
: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 [35m8[0m, in [35m<module>[0m
003 | [31my [0m[1;31m+[0m[31m 2[0m
004 | [31m~~[0m[1;31m^[0m[31m~~[0m
005 | [1;35mTypeError[0m: [35mcan only concatenate str (not "int") to str[0m
i have so many terrible dad jokes to share in there too 🙁
we read rules, but its impossible to do
its is very posible
i have more than 3 mounths here
!doc int @timid quartz
class int(number=0, /)``````py
class int(string, /, base=10)```
Return an integer object constructed from a number or a string, or return `0` if no arguments are given.
Examples...
pycharm 👀
age = 15
print(f"Answer: {age}")
jetbrains is realy worth using?
no
maybe. i used it for a year then like... regressed to vscode
the test integration is nice
vscode is a pain in the arse for setting up testing
at least in my experience
print(char, end="", flush=True)
nvim is for elite hackers only
yeah flush it
am i elite hacker 👀?
im using neovim for half a year now
clearly
👀
srr for the missing characters....
what are you building?
wdym?
cool can you tell us about your game?
im showing my neovim not my ugly code....
yes i know but i was interested in what you were doing also
cool
to learn a whole lot of stuff
that's the way to do it
like GUI, Game development, general programming and data structuring
i have a working GUI now but im learning this shared_ptr
smart pointers are bit complex
python dont even have pointers...
well because i never even used it....
i just hear about it the lat day when im searching how to solve a specific problem my code needs
how many cats do you own?
@timid quartz
>>> "string" == "String"
Fasle
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | A: 65
002 | a: 97
hlo everyone this is anurag i need help currently leaning python but don't know how to approach lol
!res
Resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@naive otter uhhh you alive?
yay :D
:3
wanna code together
I can't code
why
dono how
well code on your esp32 project
uv pip install torch==2.7.1
the heck electrician doing on ur laptop...
i mean power outage
oh... sob
➜ uv pip install torch==2.7.1
× No solution found when resolving
│ dependencies:
╰─▶ Because torch==2.7.1 has no wheels
with a matching platform tag (e.g.,
`macosx_14_0_x86_64`) and you require
torch==2.7.1, we can conclude that
your requirements are unsatisfiable.
hint: Wheels are available for
`torch` (v2.7.1) on the following
platforms: `manylinux_2_28_aarch64`,
`manylinux_2_28_x86_64`,
`macosx_11_0_arm64`, `win_amd64`
...
uv pip install torch --index-url https://download.pytorch.org/whl/cu121
python -m uv pip install torch==2.7.1
[project]
name = "minimal"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"torch==2.5.1 ; platform_machine != 'x86_64'",
"torch==2.5.1+cu124 ; platform_machine == 'x86_64'",
]
# requirements.txt
torch==2.7.1; platform_system == 'Linux' or platform_system == 'Darwin' and platform_machine == 'arm64'
[tool.uv]
environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'linux'"
]
uv is an extremely fast Python package and project manager, written in Rust.
choice = input("Turtles Or Frogs?: ").lower()
if choice == "turtles":
print ("I Like Turtles Too!")
else:
print ("Frogs Rule!.")
choice = input("Snakes Or Lizards?: ").lower()
if choice == "snakes":
print ("Snakes Are Slithery.")
else:
print ("Lizards Are Cool.")
choice = input("Indoors Or Outdoors?: ").lower()
if choice == "indoors":
print ("You Need To Go Outside Bud.")
else:
print ("Outdoors On Top!")
choice = input("Reading Or Gaming?: ").lower()
if choice == "reading":
print ("You Are Very Smart.")
else:
print ("Go Read A Book.")
age = int(input("How Old Are You?: "))
if age > 20:
print ("Your Old.")
else:
print("Your Still Young.")
choice = input("Whats Your Favorite Food?\nOptions: Burgers, Pizza, Ice Cream?: ").lower()
if choice == "burgers":
print ("Burgers Are Yummy!")
elif choice == ("pizza"):
print ("Pizza Is Yummy!")
elif choice == ("ice cream"):
print ("Ice Cream Is Yummy!")
else:
print("That Wasnt An Option Bud.")
well?
oigan hablan español?
wha?
uv is an extremely fast Python package and project manager, written in Rust.
# requirements.in
torch==2.7.1
➜ uv pip compile requirements.in --python
-version 3.9 --output-file constraints.out
× No solution found when resolving
│ dependencies:
╰─▶ Because torch==2.7.1 has no
wheels with a matching platform
tag (e.g., `macosx_14_0_x86_64`)
and you require torch==2.7.1,
we can conclude that your
requirements are unsatisfiable.
hint: Wheels are available
for `torch` (v2.7.1) on
the following platforms:
`manylinux_2_28_aarch64`,
`manylinux_2_28_x86_64`,
`macosx_11_0_arm64`, `win_amd64`
Succeeds with --universal
➜ uv pip compile requirements.in --python
-version 3.9 --output-file constraints.out --universal
Resolved 27 packages in 2.37s
...
torch==2.7.1
# via -r requirements.in
async def completeOrder(order_id: int, new_note: str) -> bool:
try:
order_data = await orders.get(id=order_id, deleted=False)
if not order_data:
return False
success = await orders.update(
{'id': order_id},
status="completed",
note=new_note,
completed_at=datetime.datetime.now(datetime.timezone.utc),
completed_note="Your order has been completed.",
updated_at=datetime.datetime.now(datetime.timezone.utc)
)
return bool(success)
except Exception as e:
logger.error(f"Error completing order: {e}")
return False```
➜ uv pip install -r requirements.in -c constraints.out
× No solution found when resolving
│ dependencies:
╰─▶ Because torch==2.7.1 has no
wheels with a matching platform
tag (e.g., `macosx_14_0_x86_64`)
and you require torch==2.7.1,
we can conclude that your
requirements are unsatisfiable.
hint: Wheels are available
for `torch` (v2.7.1) on
the following platforms:
`manylinux_2_28_aarch64`,
`manylinux_2_28_x86_64`,
`macosx_11_0_arm64`, `win_amd64`
Actual image of Aaron spreading the NixOS to others. @haughty pier
I was never a distro-hopper - I used Ubuntu for 12 years before switching to NixOS.
I regret not starting with NixOS sooner.
well somewhere on a life of a linux user that they tried other distro
Kali in a VM I suppose.
does most ubuntu programs available on nix?
I did use puppy linux before Ubuntu but that was because it was on an very old e-Machine with barely functioning specs.
NixOS has the most packages available of all of the distros.
?
Nun
did you say naughty things?
I don’t think i did
I never said racial slur
Manage multiple runtime versions with a single CLI tool
see this data from repology
Multiple package repositories analyzer
crazy...
@naive otter u alr have electricity?
@naive otter yo
yes
they changed the cable
@kindred yoke 👋
Hii
@hollow oracle 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
see above
sec
TamasT
Im fanna die my code for 1 discord system is almost 2000 lines long 😭😭😭
Uhmmmm
Whats happening rn
Guys?
ya
Whats going on?
Lol bro just rage quit discord
Yea lol im working on a new system but discord hates ppl that use forms so i gotta make a system for it
Oh well
Uhmm basicly when a user submits a form i need it to send a ephermal message with a new button to open a discord form
So i can have more than 5 fields in a discors form
Discord*
Lol
I whas sitting here and kinda laughing cause he said the same thing 8 times
Ik
I am makeing sectinal forms
So after a user fills out form 1 it makes a button to accses form 2
so like steps
Sorta ig
Its alredy 1500 lines long 😭😭😭
@stoic musk 👋
And im also working on a web dashboard but its under development
For what kind of bot?
My bot is basicly all bots in 1 so it has lots of systems
Atleast its not like v1 of my bot my v1 whas 8000 lines in 1 file
No cogs no organization
1 Class
F
And every time a error happend yk
Use Cogs man
I do now lol
I use lots of cogs now lol
I made a whole server addicted to gambiling lol
Cause of my bot
Hey you should def help me with my bot 😄
should make them addicted to better gambling instead: minesweeper
@clever needle we hear u
Wait @wind raptor invade poland?
My bots dashboard is goingto be the end of me its coded in react and TypeScript 😭😭😭
I also need a ipc server to 😭
import torch
import numpy as np
class Test_model:
pass
REACT ON TOP
Lol
I am slowly migrating my bot from storing data in json to now mysql
@spice copper 👋
OHH YEAA
lol
Sureee
Lmao shaken baby sindrome
Wh
What...
WHAT
no
No
NO
NOOO
Nowadays the link changes
Message id dosent
I use my bot for it and pillow
Well i could just do encode using difrent coulers
Like couler a is == to yk
Lol yea
Lmao
I mean i made a server addicted to gambiling using my bot lol
Hey!
Always fun to gamble lol
It's only a day. Then you're back in business
good ppl dont gamble
choice = input("Fortnite Or Roblox?: ").lower()
if choice == "fortnite":
print("Fortnite Is Goated!")
else:
print(choice+ " Is Alright")```
Nice!
Who said they where good?
🎉
i asks that myself to
Lol
chris
Nu uh
i got question
Lol yea
can i screen share
You should check this out: https://automatetheboringstuff.com
It's an older book, but shows you how to make tons of cool tools that will let you automate tasks on your computer. It's mostly using the stuff you've already learned too.
A Page in : Automate the Boring Stuff with Python
🤖 Download +30 AI Projects for Free (ADK, LangChain, CrewAI, and more)
https://brandonhancock.io/
Don’t forget to Like & Subscribe for more AI tutorials, interviews, and free resources! 🎉
📕 Resources
- Gemini CLI Docs: https://github.com/google-gemini/gemini-cli
📆 Need Help with AI? Join my FREE Skool Community for AI develope...
No
chris
Pythan lol
words = []
while True:
word = input("Enter A Word: ")
if word == "":
break
words.append(word)
for word in words:
print(word)```
how do i make it say enter a word the i put kb then it says any other words?
Bro said pythan lmao
Not until the infraction is lifted.
aw
Huh?
any1 know a little qt?
my opengl drawing goes to black when i resize the window
https://discord.com/channels/267624335836053506/1405907617129168906
CHRIS
words = []
while True:
word = input("Enter A Word: ")
if word == "":
break
words = input("Any Other Words?: ")
if words == "":
break
words.append(word + words)
for word in words:
print(word)```
Yeah, nice. Very similar to what we made yesterday. You should try making an adder. Take in numbers until the user doesn't enter anything, then show the sum of all the numbers they entered.
hmm
cya
# ================================
# Trust Cloudflare IPs for real IP logging
# ================================
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
real_ip_header CF-Connecting-IP;
# ================================
# Website 1: durontoshop.com
# ================================
server {
listen 80;
server_name durontoshop.com www.durontoshop.com;
location / {
proxy_pass http://127.0.0.1:8181;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Security headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "no-referrer-when-downgrade";
add_header X-XSS-Protection "1; mode=block";
}
}
just got a IRC chat server set up 😭
@router.get("/verify-age", response_class=HTMLResponse, dependencies=[Depends(rate_limiter)])
async def verify_age_page(request: Request):
try:
user_data = await fetch_user_data(request)
if not user_data:
return RedirectResponse(url="/login", status_code=303)
data = {
"site": await get_config(),
"user": user_data,
}
response = templates.TemplateResponse(
"/pages/verify/age.html",
{
"request": request,
"data": data
}
)
return response
except Exception as e:
logger.error(f"Error loading verify age page: {traceback.format_exc()}")
raise HTTPException(status_code=500, detail="Internal server error")
How is everyone doing today?
good, got an IRC server up and running today :P
Nice
Anything else?
Not really... Just doing pretty good in general, gonna eat dinner with a friend and her family tomorrow
hi
making transparent windows with opengl and qt
again?
oh i seen that joke and added it in my bio
choice = input("Turtles Or Frogs?: ").lower()
if choice == "turtles":
print("I Like Turtles Too!")
else:
print("Frogs Rule!.")
choice = input("Snakes Or Lizards?: ").lower()
if choice == "snakes":
print("Snakes Are Slithery.")
else:
print("Lizards Are Cool.")
choice = input("Indoors Or Outdoors?: ").lower()
if choice == "indoors":
print("You Need To Go Outside Bud.")
else:
print("Outdoors On Top!")
choice = input("Reading Or Gaming?: ").lower()
if choice == "reading":
print("You Are Very Smart.")
else:
print("Go Read A Book.")
age = int(input("How Old Are You?: "))
if age > 25:
print("Your Old.")
else:
print("Your Still Young.")
choice = input("Whats Your Favorite Food?\nOptions: Burgers, Pizza, Ice Cream?: ").lower()
if choice == "burgers":
print("Burgers Are Yummy!")
elif choice == "pizza":
print("Pizza Is Yummy!")
elif choice == "ice cream":
print("Ice Cream Is Yummy!")
else:
print("That Wasnt An Option Bud.")
@wind raptor Chris can u add me on discord so if i need help u can help me if not it’s okay sorry for pinging you
now try doing the same with a match statement, and see how the code becomes slightly more symmetrical between options
match choice:
case "a":
...
case "b":
...
Can u fill it in so i can understand it easier
choice = input("yes or no?").lower()
match choice:
case "yes" | "ye" | "y" | "yep" | "yas":
flag = True
case "no" | "n" | "nah":
flag = False
case _:
print("what")
sys.exit()
Uh
!e ```py
choice = input("yes or no?").lower()
match choice:
case "yes" | "ye" | "y" | "yep" | "yas":
flag = True
case "no" | "n" | "nah":
flag = False
case _:
print("what")
sys.exit()
Ye i give up
!e
_next_line = iter("""\
yes
""".splitlines()).__next__
input = lambda *args: (print(*args, end=""), (line := _next_line()), print(line))[1].rstrip()
# ^ input hack
import sys
choice = input("yes or no? ").lower()
match choice:
case "yes" | "ye" | "y" | "yep" | "yas":
flag = True
case "no" | "n" | "nah":
flag = False
case _:
print("what")
sys.exit()
print(flag)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | yes or no? yes
002 | True
!e
_next_line = iter("""\
n
""".splitlines()).__next__
input = lambda *args: (print(*args, end=""), (line := _next_line()), print(line))[1].rstrip()
# ^ input hack
import sys
choice = input("yes or no? ").lower()
match choice:
case "yes" | "ye" | "y" | "yep" | "yas":
flag = True
case "no" | "n" | "nah":
flag = False
case _:
print("what")
sys.exit()
print(flag)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | yes or no? n
002 | False
someone just randomly left two scooters in the middle of the forest
I'm too lazy to increase exposure time
its too late im like crying bc of it i jsut forgot i joined the vc
Wow
@little comet hi
@wraith pelican when you come back, curious if you looked at https://www.datawars.io/
they say it's like LC but for data science.
@icy jewel 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hi guys i am new to this server, i am pretty fluent in python and hope to you know get some poeple and build projects and solve problems together
@little comet 👋
hello
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yeah hi, i know
hai opal
im bored and I can't make music very well
idk what they are
I use lmms
it looks like a lot of sheet music for playing a piano or something
I don't think it's really a daw
I use that too but it is more of a sound editing program instead of a daw
I use a vst
@compact trail 👋
Don't forget about the other requirements. 🙂
You're welcome to hang around and chat in the meantime.
Sounds good thank you
@kindred yoke 👋
Heyyy
Where is mileli
Yeap
Ok
What are you doing guys
Me too
Where are you from?
Bro I am not understanding high level English you know😅thats my problem can you speak slowly kind of
Brooo.....
👍
I understand.
Should I have to learn ai/ ml or web development
That's up to you.
AI is in fashion. Businesses like their vanity projects. Yes to both. No to both. AI is many things, many of them bad.
Some of them good.
Broo is that good opportunity for the future or ai is just a hype
Both.
Basically is ai is really good that people actually talking about or just a hype
Because I know that "if everyone knows the answer, opportunity is probably gone" so everyone knows about ai and how to learn so what is gona we do
Is we have to find new opportunity that is very good for next decade and we have to learn that
Yes I am understanding now
Right
Heyy @peak depot
@jade oar 👋
the car is needing
@somber heath guys in your coural you don't live with your parents?
Bro.
@somber heath Heyy 👋
Culture
How you can people live alone without their parents 😔
@somber heath 👋
Ohh
@somber heath by I am going to eat so byyy
@glass hill 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Heyyy there
@unkempt herald 👋
Hello
sqlite is great
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@naive otter uhhh can you show the current code on your esp32?
@hollow forum 👋
once i get gome
🗣️ gome
home* sorry
Listen
??
@whole bear 👋
I am arabic and i can't understand what you say😥
aw thats sad
But i love python
im imagining python code written on arrabic...
@amber portal 👋
everything starts on the right
0,0 is right instead of left
@naive otter ur muslim you should be able to undertsand arabic
nope i didn't understand a single word
