#voice-chat-text-0
1 messages · Page 497 of 1
hi
"why is make telling me to stop"
what are y'all doin
I'm waiting for CI to fail again
ci?
oh
Exporing MCP
Ya we build an poc on legacy code document generator with chat feature
👋hello
Now I'm trying to give it to vscode copilot
am I literally the only audience for this joke here
Model context protocol
too bad the acronym is already taken
64 years ago
it's like MinIO using mc for their control CLI
at least Google shows the correct one first
@midnight agate did the 90s mc already become ancient history
Hai @midnight agate
big project is trying to take over the short CLI acronym
anything adjacent to AI seems to do that now
MC, MCP
Like Gemini cli ?
tbf MinIO is just exploiting the AI trend they aren't really AI
not really in this case
because it's gemini
not g or whatever
ohno I forgot I can't publish with a git dep
okay then I need to publish that crate first
Hello 👋
first degree murderarketing
new list of banned software just dropped
RKN giving free advertisement to Threema
never knew about it before
@wind raptor Somalia?
I have heard about some very low wages before
I don't remember where exactly it was
like official wages for full-time
@wind raptor that actually kind of sounds low
though ig okay given the fiverr's cut
in Russia $25/h is relatively reasonable for tutoring, so I'd expect Canada to have higher
@wind raptor many planned incomplete features
technically not sabotage
@wind raptor no intellisense?
that is what I think of as auto-complete
AI isn't really auto-complete it's auto-speculate
Large Lame Mess
@wind raptor "explain it with a LoopFactory"
loops are actually a mess
generally
so not surprising
"become a consultant, now you get to teach adults"
@primal shadow I got the first contract exactly for that
2 months, self-employed
working on the critical piece of infrastructure
"if this doesn't get built/fixed, we don't have a company" type of thing
and in Russia you just invest in tutors/whoever so that you get free education later
Banned where?
Russia
Discord banned twice
law magic
waiting for the third time
weird that WeChat is there
well, only from a public point of view
FSB actually is now very concerned with Chinese influence
@wind raptor I normally have it covered
most of the time
@wind raptor probably don't put mice in your pockets alongside the phone
@wind raptor You know what I hate abt cmake? LNK1168 errors
👋
Hey!
wasn't regex Cloudflare not Crowdstrike?
Crowdstrike just shipped an empty binary file iirc
Cloudflare DoSed themselves with a regex
I have TPM disabled but W10 thinks the system is W11-compatible
there actually exist tutorials for W11 without TPM
so seems like it's not a strict requirement
termux+neovim
on a phone
@wind raptor in my school we get ipads with keyboards that we NEED to buy for 700$. but its worth it for homework, schoolwork and notes
stenotype
I'm surprised you have to buy them. Our schools just loan them to the students for free if they need them.
@wind raptor I am going to assume the answer is going to be a instant no buy you miss 100% of the shorts you don't take. So here, may I temporarily receive streaming permissions to stream VSC to show my programming language?
!stream 1348021169399271484
✅ @stray pewter can now stream until <t:1752945617:f>.
some NPUs don't work without a GPU
thanks AMD
@amber raptor free version also auto-nukes itself when not actively used
no background processes allowed
@amber raptor Google needs to make money too, it can't just offer everything for free..
plus the administration needs money too on taxes
infinite growth
acquihire
apparently a real word according to whatever dictionary the browser uses
@odd dove no AI
I really like the claude code cli, and the model is fine enough
Copilot lets you pick from different models
its effectively a frontend for different models
or well theres also the inline completions model
everyone asks how is copilot but no one asks how is copilot
I just view those as toys
I feel like copilot, if I were to use it, would just make me work as if I had ADHD
like a total focus destroyer
I'd just end up toying with it
The Odin Project empowers aspiring web developers to learn together for free
Use it for documentation purely, and supervise it.
why would I use it to lie to me
It's good because it learns your style of documentation, which saves time. It's also moderately well-informed.
AI for docs is pure value decrease
Not sure what you mean by lie, but do what you feel is comfortable.
I'd disagree, but then again what do I know.
I already have humans to supervise
at least humans learn
People document your code for you?
Must be nice.
not for docs
If it writes sth that I see is correct and close to what I would have written, I call that a good save of time.
It saves me alot of time.
I think it's okay-ish to run AI on code you already have, ask it for examples of usage, check if they compile and pass tests, and then burn them down and write examples manually
if textual docs (proper statements) can be easily inferred from code, those docs generally don't add value and don't deserve to exist
write why you made it, write how you use it
and details/nuances
I'd rather have this be algorithmic
not guessed
code -> markdown does not involve AI
first is for comments, second is for docs
I dont use much AI in code, because it doesnt write good code
@primal shadow maybe just don't make your docs fucking mindless?
I am actively writting docs
stop boilerplate, don't automate it
for
fucks
sake
and if you do automate it, do it properly
Y E S.
people keep saying AIs make boilerplate easier to write.
But thats not a good thing
I dont want to need AI to edit my code
depends on who will run my code
thats what type hints are for
@primal shadow just the fact you call docs mindless shows you have no fucking clue what docs are for
THATS WHAT IM SAYING
@primal shadow we all understand you like to say things pretentiously as if you understand something,
but just, fucking stop and think at least once
I feel like they are search brained and if it’s not 10x-20x profit, into graveyard it goes.
its called type hints, function hints. Docs are proper long detailed docs, not in the code, its outside of the code
I don't remember whose quote exactly it was (I think Joe Armstrong):
what is the name for a very long comment? that's called a book
Hello
huh
My computer decided it wanted to do a restart
(I think the power went out for a split second?)
I thought you were referring to EPIPE on screen for a second
@upper basin does it happen often for you?
this is first time I see that
Windows 🚀
Probably due to my limited RAM.
Started happening iirc from when I downgraded my RAM.
are you mounting anything into WSL or is it using its own volumes only?
though that would only matter under very unfortunate circumstances
as alleged by DHH, Ruby is good for that
(coding without automation, including intellisense)
this reminded me of how pair implementation on C++ takes several hundred lines
waiting for C++29 to add LLMs into the language
C++26 is already getting linalg iirc
everything is getting llms these days
"providing an unsafe prompt is undefined behaviour,
however some compilers might restrict this to leaving the model in a valid but unspecified state"
with obligatory C++ standard classics like "LLM is created when a large language model is created"
https://www.cppnow.org
A Deep Dive Into C++ Object Lifetimes - Jonathan Müller - C++Now 2024
A C++ program manipulate objects, but it is undefined behavior if you attempt to manipulate them while they are not alive.
So let's do a deep dive into object lifetime.
When are objects created and when are they destroyed?
How does temporary ...
@alpine crater what are you using for book generation?
mdbook
so just with several plugins ig
Create book from markdown files. Like Gitbook but implemented in Rust
yeah, I do know about that
just unusual to see spellcheck
and I didn't remember if notes/warnings landed there yet
yhe I use https://crates.io/crates/mdbook-callouts
@wind raptor
aaaaaaaaaa
I guess that implies rustdoc doesn't support those yet
(since base mdbook and rustdoc are mostly aligned)
well they do have some version of it, but I didnt like how they looked
also it uses html stuff, which I kinda find ugly
ah
<div class="warning">
This is a bad thing that you should pay attention to.
Warning blocks should be used sparingly in documentation, to avoid "warning
fatigue," where people are trained to ignore them because they usually don't
matter for what they're doing.
</div>
@wind raptor Would you consider this pricing is fair? Also before I do anything is it ok to steal the 10 word gig description from u? If not then I will change it
I have some mdbook plugin I made laying around somewhere, I already forgot where
for attr
iirc
wait no
abbr
cannot spell
because I don't want to HTML it
and markdownlint complains at HTML in MD
this plugin is also really nice, uses rust-analyzer to generate links to documentation: https://tonywu6.github.io/mdbookkit/rustdoc-link/index.html
at some point I tried finding how to properly link with docs hosted outside crates.io
turns out it's not yet working
specifically multiple versions are impossible to do
brb
you missed quantum computing
welcome back
Go ahead
just kidding
Pricing seems very low
@upper basin quantum mechanics in C++ compilers already
why does A.C.E07's screen have a gazillion tabs open?
my computer would have crashed if I tried to do that
it can always be worse
or at least google would have crashed
omg
those are windows
your computer must me very strong
64GiB of RAM, 130GiB of RAM+swap
mine used intel i3 core processor
= quantum coputer
with 4 gigabytes of RAM
VSCode not including server side
wth
hello!!
I'm well thanks and yourself?
how is that even possible
nice!
ricing my arch hyprland installation
there is no way that is real
How would I get people to order cause, I have no orders, no reviews, how would anyone see me?
@wind raptor considered a slightly racist term in certain circles but generally acceptable
I think it's back to being viewed as okay
I wouldn't offer a 10-hour package for that low
upppsie didnt knew that
the history is a bit questionable
That's a big commitment for not a lot of cash
but, like, I haven't heard anyone complain about it for a long time
the fact that it says it is 3:00 AM on his screen lol
yeah ig
I wouldn't do tiered until you get some reviews
ah, I know why we haven't heard about it as much
furyo isn't in the VC as often
ahh wow ok yeah I can totally see that being offensive lol.
and back
always difficult when frequently used casual lingo happens to have a history like.. that
Still how would I get people to order cause, I have no orders, no reviews, how would anyone see me? 10 hours or no 10 hours
I almost remember the exact conversation
You don't have to do the 3-tier system. I'd just do 1 hour for cheap
we were discussing a potential catch phrase for NixOS
Less commitment with equal exposure and you can up it once you get a couple of reviews
with {you obviously know who}
without being locked into 10 hour "contracts"
I don't mind the commitment, I did private non official tutoring and its not that
@unique wyvern next step: jupyter in batgrl
its more about how the hell would I get even one single bit of exposure
like one drop
You do you. I was just trying to help out.
@wind raptor
Without getting a friend to order and review, I had to wait a couple of months for my first one
hmm
okie thanks!
that's dope, Salt
I will prob do less than 10 hours
damn looks fire
the reactivity on prop changes is insane
sometimes I forget that is actually something that should be expected of programs
(in good way)
Also, these need to be fixed:
@unique wyvern are you doing the transparency by actually not doing a image at that spot and just modifying the cell colors to match? (hence you just hide the chars on color boundries?)
yeah play doom on it xD
what is the snel badge?
it looks like it picks what's more detailed? I think
either image or text
like why it hides text sometimes
This is your time to deliver the gig... They likely will not be taking a lesson every day and with time zones, it can take a bit to find a day/time that works.
AH
@unique wyvern and removes text when there is a border, right?
or something like that
thats such a smart way to do it
like here
no text
yeah, that's what I thought
ideally you want both, but you have to choose
great that many of these things stop looking like magic if you look at it for some time
kind of easy to infer what happens with how it's implemented
hello there
how are you doing today
sevenel
*I am gonna use every brain cell to choose between Djago Or FastAPi but bcas my though process i cant select either and i guess my brain cells are dying int the process *
I am just concerned about security implementation , for eg django gives me a messy structure (where they call "view" is gonna handle a "httlp request" but you get batteries included ORM and Auth and etc. Thats why i have not yet ran with fastapi
the DI-based auth is so great
what FastAPI does
you just put, for example, user: Depends(example_admin) or something like that on a route
I love FastAPI
and, like, your function gets a user which is required to be an admin as an argument
like you can safely make auth there yourself
same for axum in Rust
hmm , lemme check 👍
Between i do love how fastAPI is wrt development experience , I think django have a very messy way to write the stuff
I'm thinking of trying to make an RoR app today/tomorrow
speedrunning
initially was going to make something completely different
but that got boring
not, like, boring boring, just that I did enough to put it away for later
and I actually shouldn't be rushing it
@radiant iron 👋
@upper basin if you need documentation, possibly it's time to rethink the code style (more experimentation with general architecture of the system, conventions, etc.)
No I mean like I forget why I made sth, notes help.
If I don't write any comments/docstrings, I'll still be able to understand, but I'd have to spend that time each time to re-understand.
Docs/comments skips that.
I am aiming for 100% code provenance documentation at some point
all sources
all links
all searches
but
I forget to do that
because I don't rely on it
this effort got hindered by the fact that my memory stopped deteriorating and I just remember so many things and recall them quickly
@vocal basin I am sadly back to increasing thinking time , i guess this what coders like me do to procrastinate :p
if I finish the RoR app before you even start, then you've spent way too much time
ugh
that, too, is VSCode largely
specifically rust-analyzer used by it
oaky I'm having to run setup for a second time
because I'd rather not run into some funny edge case of renaming the project
I'm sorry, how many files?
@upper basin
thanks Quora
I thought that was real for a second lol
the screenshot is real
that is not AI hallucination
that is human-written
by a real human
Peak.
??? quora feeling okay?
never has been
They have my undying respect now.
Quora is like a child of stackoverflow, 4chan and facebook
I have always kinda seen it as the search result on Google that's like "oh jeez, do I really have no better options?"
that's awesome that you code even with visual impairment Salt, you ever struggle with any strain/dryness?
palette stealing website
https://coolors.co/
minesweeper mentioned
these are genuinely so cool Salt
@unique wyvern maximise distance
but always keep it solvable
same dimensions
same size
like because you're projecting onto a plane
not a point
no perspective
when do we get to speak
@upper basin lagosaur
50 message I believe
I also need that lol
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I really wanna talk about Salt's stuff
Don't we all...
ahh interesting thanks
I took the freedom of unverifying myself
the one w the keyboard, i think salt-die
hmm
ppl use numpad a lot for macros and stuff
i play dota and i can't live without a numpad
my comprehensive abilities aren't functioning anymore
i still love wolfram bc i don't know about this story
narcissistic?
@unique wyvern very expected note?
my guess would be consistent short-term writing/editing with clear bias
by a single author
with few sources
probably
now that was purely my guess
and here is the discussion https://en.wikipedia.org/wiki/Talk:Stephen_Wolfram#Undisclosed_paid_editing
a clever guess
- Emphasis on "inaugural Fellow" might be puffery
- Spammy and trivial, only primary and self-published sources
- much new text, very spammy, advertorial in tone
- puffing up "influences" list in infobox (what are those even good for anyway?)
- upgrading his grandmother from "speaker" to "expert"
- adding empty marketing language
- hyping the "Wolfram Axiom", blatantly ignoring everyone else's contributions
- moved some text, hyped his SoundCloud
I'm sorry what, SoundCloud?- unsourced BLP information about his son, early life and education material rearranged
- the dreaded "In popular culture" heading
- addition of self-published source
so salt die what do u do for work, u seem very knowledgeable @unique wyvern
im not sure such questions are allowed in this server, lmk if so
damn these cloud rappers these days
@unique wyvern it's already in the tutorial
is that just match case?
yea i've seen its wild uses.. feels like something else would be more readable
C++++
C# is design-fork of Java
kind of just Microsoft Java
which then evolved further
what's it used for rn
Microsoft now does Rust
okay the tutorial only accidentally mentions ...
I tried copying the URL and somehow copied just l
@unique wyvern rustlings are fun to go through if there is a goal of learning the language
Python+Rust stuff
hmm
@unique wyvern or make them write only
alright see you all next time
this just writes everything into /dev/null
sharding gone wrong
"AUTO SHARTING ALGORITHM" lol
I need to somehow compensate for lack of Hemlock in the VC
@unique wyvern when all you have is a hammer, everything looks like a screw/thumb
I don't remember if it was shown or not, maybe I missed it
when definition of structure is very loose
but that one isn't physics
there was one which cut through pieces
and had physics
@unique wyvern
> in 4K
> you mean resolution?
> no, 4KB
@hexed trout tbf C has more capabilities to make something really CPU-unfriendly
mmap at a specific address
type of bs you can't just do directly in Python
@calm heron factor it out into a function
contain the mess
she
import os
import random
def clear_console():
os.system('cls' if os.name == 'nt' else 'clear')
def check_input(answer):
if answer in yes_or_no:
return True
else:
return False
yes_or_no = ["y", "n"]
while True:
while True:
uppercase = input("Should the password include uppercase letters?: ").strip().lower()
lowercase = input("Should the password include lowercase letters?: ").strip().lower()
numbers = input("Should the password include numbers?: ").strip().lower()
special = input("Should the password include special characters?: ").strip().lower()
def prompt_bool(prompt: str) -> bool:
... # mess here
def prompt_bool(prompt: str) -> bool:
while True:
... # one step of a mess here
!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.
uppercase = prompt_bool("Should the password include uppercase letters")
lowercase = prompt_bool(...)
...
def check_input(answer):
return answer in yes_or_n
this makes it so that it doesn't restart the process each time
check one by one
this is probably meant to be interactive
True if yes
False if no
no other option for return
yeah, validate in a loop
no return until valid input is provided
also, yes that final step should be a function itself
def generate_password(uppercase, lowercase, ...)
oh I have such an amazing way to overengineer it (not for beginners, obviously)
with DI
but that's going to be way too much, I assume
DI?
okay, because I'm already not rushing through RoR fast enough, I will implement it just for show
def get_player_input(player):
while True:
answer = str(input(f"{player}, Rock, Paper or Scissors? \n")).lower()
if check_input(answer):
break
clear_console()
True is (True == that == True) is True
is True actually makes more sense than == True
but you rarely ever need that
if a == apple or orange:
!e
print(1 is True)
print(True is True)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | /home/main.py:1: SyntaxWarning: "is" with 'int' literal. Did you mean "=="?
002 | print(1 is True)
003 | False
004 | True
None, True, False, ..., ints from -5 to 255
!or-gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
# Incorrect...
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
def prompt_bool(prompt: str) -> bool:
while True:
if prompt is True:
uppercase = prompt_bool("Should the password include uppercase letters?: ")
lowercase = prompt_bool("Should the password include lowercase letters?: ")
numbers = prompt_bool("Should the password include numbers?: ")
special = prompt_bool("Should the password include special characters?: ")
def prompt_bool(prompt: str) -> bool:
while True:
user_input = input(prompt)
if user_input.lower().startswith("y"):
return True
if user_input.lower().startswith("n"):
return False
print(user_input, "is not a valid response")
def prompt_bool(prompt: str) -> bool:
while True:
user_input = input(prompt)
if user_input.lower().startswith("y"):
return True
break
if user_input.lower().startswith("n"):
return False
break
uppercase = prompt_bool("Should the password include uppercase letters?: ")
lowercase = prompt_bool("Should the password include lowercase letters?: ")
numbers = prompt_bool("Should the password include numbers?: ")
special = prompt_bool("Should the password include special characters?: ")
dispatch = {
"y": func_1,
"n": prompt_bool,
}
dispatch[user_response]()
not sure if this is readable, but it at least somewhat works
!e
my_foo = object()
print(my_foo.__dict__)
: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 [35m2[0m, in [35m<module>[0m
003 | print([1;31mmy_foo.__dict__[0m)
004 | [1;31m^^^^^^^^^^^^^^^[0m
005 | [1;35mAttributeError[0m: [35m'object' object has no attribute '__dict__'. Did you mean: '__dir__'?[0m
@ECHO OFF
@Setlocal EnableDelayedExpansion
Rem | Configuration
Rem | Address - The Address You Wish To PING
Rem | PingAmount - The Amount Of Times To Ping Each Cycle
set "Address=google.com"
set "PingAmount=10"
:LOOP
Set "SUM1=0"
Set "SUM2=0"
Set "WHOLE=0"
Set "MEAN=0"
Set "RUN=0"
set "MAX=0"
Set "TOTAL=0"
Echo Waiting For Ping Data...
Rem | Change The Ping Command To Strings
FOR /F "tokens=1-4,5,*" %%A in ('Ping -n %PingAmount% "%Address%" ^| Find /I "Reply"') DO (
Rem | This is optional; Will Display Whole "Ping"
Echo %%A %%B %%C %%D [%%E] %%F
Rem | Grab Only "Time="
FOR /F "tokens=1,* delims==" %%G in ('echo %%E') DO (
Rem | Edit "Time=" String To Extract Only The Time
Set "String=%%H"
Set String=!String:ms=!%
Rem | Do Math
IF "!WHOLE!"=="2" (
Rem | Compare Strings & Sort
If "!SUM1!"=="!String!" (
Set "MAX=!Sum1!"
Set "MIN=!String!"
) ELSE (
Rem | Find Largest
for %%A in (!SUM1!, !String!) do (
set n=%%A
if !n! GTR !MAX! set MAX=!n!
)
Rem | Find Smallest
for %%A in (!SUM1!, !String!) do (
set n=%%A
if !n! LSS !MAX! set MIN=!n!
)
Rem | Subtract 1st string from new
Set /a "SUM2=!MAX!-!MIN!"
)
Rem | Add Each Differences
Set /a "TOTAL=TOTAL+!SUM2!"
Rem | Save Last Response
Set "SUM1=!String!"
) ELSE (
Rem | First Cycle, Set First String
Set "SUM1=!String!"
Rem | Disable This Check
Set "WHOLE=2"
)
)
)
Rem | Do Math
Set /a "TRESULTS=!PingAmount!-1"
set /a "MEAN=!TOTAL!/!TRESULTS!"
Rem | Display Jitter
Echo The Jitter For The Above Arry Is: Jitter=!MEAN!ms
Echo(
goto LOOP
@unique wyvern because __slots__
!e
class Foo: pass
my_foo = Foo()
print(my_foo.__dict__)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{}
Provided to YouTube by TuneCore
Story from North America · Garrett M Davis
Story from North America
℗ 2021 Garrett M Davis
Released on: 2021-08-30
Auto-generated by YouTube.
YES = ["y", "ye", "yes", "yep", "yas"]
NO = ["n", "no", "not"]
def prompt(s):
def inner(t):
if t is bool:
while True:
i = input(s).strip().lower()
if i in YES:
return True
if i in NO:
return False
print("idk")
raise TypeError
return inner
def auto(f):
def inner():
return f(**{k: v.__metadata__[0](v.__origin__) for k, v in f.__annotations__.items()})
return inner
my_string.lower()
what are you guys talking about?
this is such a hack
def is_bool_type[T](t: type[T]) -> TypeGuard[Callable[[bool], T]]:
return t is bool
def prompt[T](s: str) -> Callable[[type[T]], T]:
@wraps(prompt)
def inner(t: type[T]) -> T:
if is_bool_type(t):
while True:
i = input(s).strip().lower()
if i in YES:
return t(True)
if i in NO:
return t(False)
print("idk")
raise TypeError
return inner
🇺🇸 pepperoni 🇮🇹
one of unsafe operations
lowercase = "abc"
uppercase = "ABC"
numbers = "123"
symbols = "!@#"
random_letter_upper = chr(random.randint(ord('A'), ord('Z')))
random_letter_lower = chr(random.randint(ord('a'), ord('z')))
random_integer = random.randint(1, 10)
special_characters = string.punctuation
random_special = random.choice(special_characters)
chars_to_pick_from = ""
if user wants lowercase:
chars_to_pick_from += lowercase
!e
from random import choices
print(choices(range(10), k=5))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[0, 1, 5, 9, 8]
!e
from random import choices
print(choices("abc123!@#ABC", k=25))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['!', 'B', '1', 'b', 'B', '2', 'A', '2', 'b', 'b', '2', '!', 'A', '2', '#', '#', '#', 'b', 'c', 'C', 'c', '#', '3', 'A', 'b']
!e
from secrets import choices
print(choices("123abc", k=5))
yeah, was about to say
you can actually provide a different source of randomness for random
what you deal with by default is a global singleton with whatever fast-ish randomness
timing attacks likely
or whatever
!d random.SystemRandom
class random.SystemRandom([seed])```
Class that uses the [`os.urandom()`](https://docs.python.org/3/library/os.html#os.urandom) function for generating random numbers from sources provided by the operating system. Not available on all systems. Does not rely on software state, and sequences are not reproducible. Accordingly, the [`seed()`](https://docs.python.org/3/library/random.html#random.seed) method has no effect and is ignored. The [`getstate()`](https://docs.python.org/3/library/random.html#random.getstate) and [`setstate()`](https://docs.python.org/3/library/random.html#random.setstate) methods raise [`NotImplementedError`](https://docs.python.org/3/library/exceptions.html#NotImplementedError) if called.
@calm heron it's not always meaningful, actually; sometimes that just only annoys users
@unique wyvern urandom
!e
from random import SystemRandom
print(SystemRandom().choices([1, 2, 3], k=10))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[2, 3, 2, 3, 2, 2, 3, 1, 3, 1]
this is secure-ish
SystemRandom is not default
because 1) it's an external resource 2) slow
!d random.Random
class random.Random([seed])```
Class that implements the default pseudo-random number generator used by the [`random`](https://docs.python.org/3/library/random.html#module-random) module.
Changed in version 3.11: Formerly the *seed* could be any hashable object. Now it is limited to: `None`, [`int`](https://docs.python.org/3/library/functions.html#int), [`float`](https://docs.python.org/3/library/functions.html#float), [`str`](https://docs.python.org/3/library/stdtypes.html#str), [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes), or [`bytearray`](https://docs.python.org/3/library/stdtypes.html#bytearray).
Subclasses of `Random` should override the following methods if they wish to make use of a different basic generator:
yeah
secrets sources from urandom
PyNaCl in its utils uses urandom for random bytes
just re-exports from os
@unique wyvern
,
meanwhile Ruby on Rails tries to auto-import everything
Ruby is extensible
RoR is kind of its own language
RoR is web+mvc+orm+whatever else
kind of like django but not ugly
(DHH, author of RoR, considers Python as a whole ugly)
language designed to be ugly
C++?
[](){}
PyPA
@unique wyvern PyPA (org) is technically not Python directly, but it is under PSF
Python Packaging Authority
the word “authority” in the name was meant to be a joke
import random
import string
def prompt_bool(prompt: str) -> bool:
while True:
user_input = input(prompt)
if user_input.lower().startswith("y"):
return True
if user_input.lower().startswith("n"):
return False
uppercase = prompt_bool("Should the password include uppercase letters?: ")
lowercase = prompt_bool("Should the password include lowercase letters?: ")
numbers = prompt_bool("Should the password include numbers?: ")
special = prompt_bool("Should the password include special characters?: ")
length = int(input("How long should the password be?: "))
random_letter_upper = string.ascii_uppercase
random_letter_lower = string.ascii_lowercase
random_integer = list(str(range(10)))
special_characters = string.punctuation
char_list = []
if uppercase is True:
char_list += random_letter_upper
if lowercase is True:
char_list += random_letter_lower
if numbers is True:
char_list += random_integer
if special is True:
char_list += special_characters
print(''.join(random.SystemRandom().choices(char_list, k=length)))
!d string.digits
string.digits```
The string `'0123456789'`.
!e
print(list(str(range(10))))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['r', 'a', 'n', 'g', 'e', '(', '0', ',', ' ', '1', '0', ')']
I don't think you meant that
!e
print(list(map(str, range(10))))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
opal most isn't here wierd .....
!e
random_integer = list(map(str, range(10)))
:warning: Your 3.13 eval job has completed with return code 0.
[No output]
!e
print(list(map(str, range(10))))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
I've never written a single line of SmallTalk but so far this is the language Ruby reminds me the most of
having stuff like private be a method rather than a keyword
-ish
I can do this (unformatted)
or this
it also doesn't require () when calling
what I think it means is that you're calling something like a method on the concept of a class itself
@unique wyvern in_out_quart very much train motion vibes
acceleration/deceleration
7-hour timescale, yes
circ is coordinate<->coordinate, not angle<->coordinate, right?
(why it goes up to inf speed)
yeah, that
coord to coord
it's actually probably guessable from motion itself even without the name
because not many curves have inf speed
I've just realised, it's kind of possible to do some sort of parallaxy stuff with those random walks drawings OpalMist was making
maybe slightly more doable with a more pure randomised variant (how I'm doing)
like introducing depth to this https://parrrate.github.io/quack/
I actually installed (did I? already forgot) Rust specifically to do graphics on the main PC
because it's currently the only one with a real GPU and okay CPU
@unique wyvern not really
initially it prefers empty space
then it starts some metamorphoses with its structure
its fundamental properties change over time
towards its heat death, it turns into waves
first it starts these small rotations
some stuff slowly turns into vortices
stuff in the bottom left looks too space-like
random gas clouds
third coordinate based on time of when it was painted/updated
so that it draws in front of it, layer by layer, rather than overwriting in-place
huh
I haven't seen this happen before
it, like, spawned as two straight-ish lines
eventually dissolved
but it was a very rapidly growing structure
two structures
at the same time
I should start saving seeds for replayability
it's starting to crash against itself, so soon is expected to turn into waves
although waves might've been happening on different settings
(definitely different settings, older recording)
it moves at such a slow pace there
30 minutes, it rotated colours a bunch but didn't restructure much
I used to have photosensitive something but hasn't been showing symptoms recently
minesweeper mine should explode the whole terminal
no chording?
in minesweeper
or middle click
ah
middle click
original binding
yes
okay, so, another nuance: mine count drops to 0 after completion
because I don't flag mines often
there's an existing metric for efficiency
3BV/click
3BV is trivial (compared to ZiNi) to calculate because no flags
ZiNi is the estimated minimum including flags
yeah, otherwise flags are useless
this is what fast minesweeping looks like:
https://minesweeper.online/game/3753839970
(there is replay)
it's left-click there
not middle
regular
and this is what 124% efficiency looks like
https://minesweeper.online/game/3253718315
215 3BV in 173 clicks
I think top players do around 150% eff
I did sub-60, and that's the record so far
sub-90 is normal for me
above 100 is excessively slow
if I end up with >100, that means something went wrong
(when aiming for anything other than efficiency)
even big maps are played mostly using speed techniques rather than calculation
https://minesweeper.online/game/3266180505
2183
1.36% winrate when played perfectly
(which is approx. six 50-50 per game)
determining if a field is solvable is probably NP-hard or even NP-complete
within certain number of clicks
the mode where scrolling speed is part of what affects the strategy
as soon as possible
otherwise wastes time, a lot
it's all or nothing, there is no half-solved
only gets rewarded with extra exp
rewarded compensated
long-term it just becomes a statistics game
if you aren't aiming for 2 wins in 100 consecutive tries, sacrificing win rate per game for win rate per time also makes sense
taking unproved risks early to improve times
1 2 3 4
1 1
if the rendering is separate enough from logic, it should be possible to integrate it with the PvP API
(just a WebSocket stream of events)
((very undocumented stream))
there is a plain text single source file JavaScript front-end working with the API
(collected from several places in code)
// premove acknowledgement
const { x, y, open } = data.Pre;
// opened cell
const { x, y, number } = data.Open;
// someone became an active player
const { you, time_yours, time_theirs } = data.Active;
// someone lost
const { win, time_yours, time_theirs } = data.End;
// connection established
const { session, hash } = data.Session;
// opponent arrived
const { rating, hash, score_own, score_opponent, game_id } = data.Opponent;
there is 4D minesweeper
I haven't heard of any with more complex adjacency rules
I think the only thing on the game field itself which isn't part of regular minesweeper here is premoves
because chess clock
whoever runs out of time, loses
no other normal loss conditions
in this variant, yes
by premoving you ensure that the opponent's time keeps ticking down
because it never becomes your turn if you have premoves
chess.com actually takes 0.1 from you
and lichess doesn't allow more than one premove
each mine halves the remaining time
invent your own solitaire
like Zachtronics did
several times
minesweeper solitaire
their variants also had some sort of special meaning behind the mechanics
in one of them you'd be separating non-numbers (aristocrats) and numbers (proletariat)
yes
The Zachtronics Solitaire Collection is here! Inside you will find seven totally unique solitaire games originally designed as minigames for our 2016–2022 releases, updated with new 4K graphics, plus one brand new solitaire variant found only in this collection.
- Shenzhen Solitaire: A FreeCell-inspired solitaire variant with a three-color de…
$9.99
707
it's quite confusing initially, but possible to get used to
some cards are very similar to each other
(when compared in full rather than just the top side, that one is different enough)
I think the front-end still supports live-reload and other unusual-for-games things
done in one of the dumbest ways possible
literally just replacing the whole page, not some granular piece of it
(because why bother optimising if it works fine as is)
I'm trying to see how this actually works mathematically
there is a semi-invariant seemingly
I do understand how it works I think
you can move start or end from start to end of another
(a, b) (b, c) -> (a, c) (b, c)
graph flows down itself
there is some intuitive understanding of why it should end
but not sure how to formalise it
probably simpler to think of it given it's always a tree
(always connected, always N-1 edges => tree)
((very dumb proof why tree-ness is an invariant))
would edges collapse or stay duplicated?
it should stay directed acyclic somehow
if it starts directed acyclic, I think it's kind of easy to show why it stays such
there is always a point, towards which no arrows go
that is probably important
so, we ignore that point for a while,
eventually we have to remove one outgoing arrow, because the rest of the graph ends up immutable by induction
(or we just remove one arrow before that)
that that point eventually loses all its arrows but one
"the rest of the graph" being one or more subgraphs if we were to drop this point
all operations not involving that point keep all arrows within those individual subgraphs
because an edge cannot leap across connectivity components
@unique wyvern yes, this seems to be the main thing
those two points, initial and final, are critical to demonstrating why it works
(well, mostly only initial, unless you want to invert time)
ah, i found my notes, shortest game on 8 nodes
longest game
shortest game on n nodes is (2n - 4)
longest game on n nodes is (n - 1)(n - 2)
I might've seen this or very similar proof before
I think we had to prove something almost same at school
ah, it wasn't really that
but
Tail move: b←a→c⇝a→b→c
One can imagine the tail of the edge (a, c) following the edge (a, b), such that the edge (a, c) is replaced by the edge (b, c). (Or by symmetry we could make the other tail move replacing (a,b) with (c, b))
Head move: a→b→c⇝b→c←a
One can imagine the head of the edge (a,b) following the edge (b,c), such that the edge (a, b) is replaced by the edge (a,c).
the question was:
given N nodes where each is connected to each with one-way edge, prove that
- there exists a node, from which you can reach any other in no more than 2 edges
- given N>=3, you can flip at most one edge to ensure each node can be reached from all others
both were probably solved using induction
(I don't remember)
i remember i had to prove the 5-color theorem
(obviously not proving 4-color theorem as an undergrad)
graph theory proofs were fun for me back then
we might've done that in school but not as part of the main curriculum
some professor from MIPT likes graphs quite a lot and sometimes gave lectures about them
especially colouring-related stuff
i can't remember if i touched graphs in any other classes
probably i did a bit in some lin alg classes
I just saw some game-related question
which I can't instantly answer
probably because the game is infinite
two players pick ranges of real numbers,
each next range must be a subset of the previous one,
if the intersection is a single rational number, first player wins,
otherwise second player wins
the question is who wins when playing optimally
(after infinite turns)
intuitively, second player should win
this feels like nim but more evil
infinim
just by ensuring non-repetition of digits in response to whatever happens
important correction: strict subset
otherwise first player wins on turn 1
just picking range from 0 to 0
hm, maybe force start and end of range to be diifferent
yeah, that might be better, since it's a weaker requirement than strict subsetness+non-sabotage-rule
i can't think of a way for player 1 to win though
(ignoring all the digits before the . point; representing numbers in binary)
player 2 strat:
find any prefix such that all numbers with such prefix fit into the range picked by player 1,
double the prefix in length with only 0s or 1s (whichever occurs less in the found prefix)
double the prefix in length with only 0s or 1s (alternating across p2's moves)
rational numbers need infinitely repeating chunks of digits
and this doesn't allow that
wait, no, there is easier to prove option
fixed
ensures there are arbitrarily long sequences of 0s and arbitrarily long sequences of 1s
maybe don't even take into account whatever p1 did
(almost)
((only picking the prefix that is valid, but ignoring the length of it))
with good enough randomness, that will work, yes
in 100% of cases
probably time for me to go
(already morning)
hi
Click here to see this code in our pastebin.
!code
Sorry, I am a beginner and I don't know how to use the API key.
sorry my english is bad because I am from indonesian
Your English isn't as bad as you may imagine.
thank you:)
@somber heath
@last ingot 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hey dude
great resource here, never knew python had a server
😄
print("hello world")
!e
print("Hello World!")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
Hello World!
:white_check_mark: Your 3.13 eval job has completed with return code 0.
hello
bakwan
Gulai Otak
hi
hello
@hybrid latch
hi,Opal
hi
Hey,Millen you once said you worked in hospital at casualty , i am right or i am hallucinating @peak depot
I use to
@white torrent 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:white_check_mark: Your 3.13 eval job has completed with return code 0.
hello world
i want to scrap job sites with python
anyone know if there are sites that store them in a database of some sort already ?
indeed api
now a days theres alot of bloat jobs
and just looking for attention for their company
its so hard to deal with
😄
networking is a big thing, also its the aesethetic part people want nowadays
something
oh my keyboard was messed up
but yeeh i want to be involved with microsot some day
im not a programmer
more of ssolutions and tech
"Troubeshoot the cloud"
with python - is something i want to learn
thus why im here
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
guys i know this make me embrassed but python is good for software enginner? because i am beginner of programming and python is very easy for me
or troubelshooting error codes that a ssystem cant handle or is confused about
31 msgs and 20 more to go!!
less gooo
It's one answer to a question that can be answered in many different ways.
how?
nothing is embarasing with questions, python is a good language, programming from how i understand is bbuilding stuff for a use case
Is it good? Yes. Just remember: For each problem, the tool best suited to solving it.
if you have a use case and python does it, how well does it do it ?
doess aanother lanugage do it? aree there dependencies supporting it ? or do you need another language ?
i hope im explaiining it well
i agree with you
you ask me?
im in vc sorry
i cant talk so i have to text
whats not special ?
This is the accompanying text channel to the voice chat. You're welcome to join the voice channel with us.
@bleak sleet 👋
thanks but my english is little bit broken if i talk to you guys is that ok for you? 😅
i ask alot of questions in vc
lol
my mechanical keyboard issues
some keys aree doouble typing
its annoying so ive let it be
i have to be here for 3 days now
50 msgs compleeted ✅ , 3 days in server 😒
@bleak sleet #media-processing message
hello
good
how are u guys
just exam are going on
yes i am
probably
what kind of project?
@somber heath u are in software dev right ?
what are black and white box testing
these question came in previous years
do u @bleak sleet ? know ?
just a little bit
i am googling now
guys my fellow frd working on this website can u give me a quick review
https://vlop.fun/
its for a movie but ads free
i dont really understand, and u probaly dont watch movie @somber heath
that was guesss lmao
yeah there are just lot of ads everywhere
so just clean ui with no ads
that was the idea
yeah that will keep in mind
like watch history
my friend
yeah its still processing
the devlopment is still improving
like the hd quality source are still adding
idk probably no money
thats why he turn off add
and its probably going to open source
soon probably
i guess thats 1 idea
no I am sorry
yeah he really is inspiring for me also
see ya
see ya! @somber heath
@native lantern 👋
hello sir @somber heath
@keen widget 👋
principle of computational equivalence
@atomic tinsel 👋
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@chilly parcel 👋
even some books are free
in pdf form, usually
(not necessarily the best format for reading)
calibre can reinterpret pdf as epub, but that ends up kind of ugly
(for that to work, it needs to be properly laid out semantically, not just geometrically)
there are some great books on kindle for free if you have the kindle subscription as well. i've snagged some cool Pythong w/ Langgraph books on there
so not technically free but cheaper then parma w/ chips
nod to @somber heath
hey