#voice-chat-text-1
1 messages ยท Page 26 of 1
My second guess was Fart
"which of the copilots"
Human languages ranked by their number of native speakers are as follows. All such rankings should be used with caution, because it is not possible to devise a coherent set of linguistic criteria for distinguishing languages in a dialect continuum. For example, a language is often defined as a set of mutually intelligible varieties, but independ...
Neat
these emojis in terminal output are confusing me
Last one maybe todo?
The snake feels obvious...
Origin for the satellite maybe...
Yeah no idea, actually
!stream 239917638656983040
โ @wary fable can now stream until <t:1718127628:f>.
!stream 958057865032106045
โ @ashen willow can now stream until <t:1718127643:f>.
okay so the test project seems to work
@wary fable
single player Diplomacy would truly be an experience
0 player is the best option for CNA
Valefisk is trying
"refund policy: can't claim it's a bad experience until you've completed the game"
Back later
Felip, love the profile pic
!stream 958057865032106045
โ @ashen willow can now stream until <t:1718129121:f>.
the train
I should use this area as my garden, lots of good soil
relax. "handome" isn't even a word
I meant handsome, my apologies.
You are most welcome sir.
Men panicking upon receiving a compliment, what else is new?
I wonder how crazy it would be if I screenshared my phone while operating my drone...
DJI Mini 2 uses your phone as the screen for the RC
Any game devs in here?
more like you didn't get the slapstick humor in "handome is not a word"
An important aspect of custom elements is encapsulation, because a custom element, by definition, is a piece of reusable functionality: it might be dropped into any web page and be expected to work. So it's important that code running in the page should not be able to accidentally break a custom element by modifying its internal implementation. ...
['aaaaaaaaaa', 'aaaaaaaa', '########, '######']
๐
fine
how old r u
๐ป
relax n hav a beer
๐ฌ
sorry had to get the door
pardon?
do u code
implicit conversions are evil
it can produce bugs
conversions not conversations
narrowing conversions are especially evil
@kindred zodiac @crisp gust ๐
hello how can i help?
Hey
@grave pier ๐
not too often do i see simulated quantum computer circuits in the channel
are you using qiskit?
using qiskit is your job?
@floral meteor ๐
hello
Watch WITH SOUND!!! Faith was CALLING for a LOVER last night under the full moon. โค๏ธ I am excited to have been able to capture on film the beginning of a new chapter in this beautiful vixenโs life. During the first two years of her life she was a helper to another vixen and had no cubs of her own. This is the first time she is on heat and she wi...
The pitch peaks higher than this, but it's about right.
what are you programming
where do you find these bounties?
whats the name of the event
UnitaryHack
awesome
i understand
its beneficial though for incentivising creation of software
is quantum computing overrated
so it does the same exact thing as classical computers, but the fact that it uses superposition rather than 0 and 1 makes it rapidly faster than classical super computers ?
the idea is to have less separation between development and operations
e.g. by having that done by the same person/team/org
1though often that ends up being just operations
in simplified view, it's closer to what GPUs do: parallel processing of things that don't require conditionality/branching/etc.
we should start mining bitcoin using qiskit algrithms on the IBM premium plan lol
getting it to work in classical computer way is too hard
linear computations are faster, non-linear computations are excessively harder (for quantum)
yeah, the big equation is for continuous field stuff, and for computation it's usually more discrete stuff that matters
discrete as in finite number of dimensions that describe the system
thank you that was a very informative
sequential
so the quantum computers computational structure is more effecient because it will do everything at once rather than one at a time
Bingo
similar difference to CPU vs GPU
so like a maze instead of trying each path once , a quantum computer will try all paths at the same time
so what im thinking is every classical computer will direct to a quantum computer in the future
can't mine Monero on quantum
(their mining algorithm is made to be runnable only on CPU)
privacy-centred cryptocurrency
I still, when I see "crypto" as a technology, thing of cryptography not cryptocurrency
I refuse to change
Just like physics spherical cow they claim that is out there.
cryptocurrency here and now solves one and only one problem okay-ish-ly:
an alternative money transfer mechanism (for cases where regular money transfer is impossible)
like, that's all
it's not a good place to save up money, it's not a system to build whatever even remotely good enough logic/protocols on top (like what ethereum tries to do)
@mild flume
the this
or react/others+electron
whatever works
> v1.
v2 is in beta
Neat thing is that they have a auto migration tool to take you from v1 to v2 https://v2.tauri.app/start/migrate/from-tauri-1/#automated-migration
Although I'm sure the jury is out on how effective that is
Complex Simulations:
Chemical Reactions: Simulating molecules and chemical processes, helping scientists discover new medicines.
Material Science: Understanding the properties of new materials for better technology.
Optimization Problems:
Route Planning: Finding the shortest or most efficient paths, like optimizing delivery routes or scheduling.
Resource Allocation: Distributing resources (like energy or products) in the most effective way.
Cryptography:
Breaking Codes: Solving complex encryption problems, which could make or break secure communication.
Secure Communication: Developing new ways to keep information safe using quantum encryption.
Machine Learning:
Training AI: Helping in faster and more efficient training of artificial intelligence models.
SIDH right now is easier for classical than for quantum to break
lattice cryptography is the promised solution
SIDH is dead
Lattices: These are mathematical structures like grids, but in higher dimensions (imagine a grid extending into space in all directions).
ECDH
ECDH rn is considered more quantum safe than just DH
SIDH is dead even on classical
sidh: singular isogeny
ecdh: elliptic curve
so ECDH is difficult to crack by both computers
ECDH is not considered fully quantum resistant
it's just that there is no clear alrogithm for reversing it yet
ECs directly nowadays aren't that widely used
Edwards curves are the isomorphic equivalent to them which is preferred
rrrrrrr
I don't remember
it's more complex geometrically but numerically it's trivial
where is it
no
wait why is PyNaCl not in !d
rrr
Sheeeesh
!source
on the whole nacl.signing page there is no mention of conversion methods
being unable to get signingkey from verifykey is just an interface nuance, if I understand correctly
pySodium
reqwests


pyNACl is meant for Crptography and not chem?
there was a method with a name so cursed scipy had to rename it
whereas matlab kept it as is
* function
@mild flume have you seen that one?
now it's cumulative_trapezoid
ยฏ_(ใ)_/ยฏ
i want to make one
where was your source of info to build one
MIPT's course
convolutional news network
Convolouted Nueral network good sir
wasm wasm
I can't remember what was the name of that Rust framework that Primeagen uses
I always forget it
something starting with L, that's all I can remember
yes
what do you guys make in rust?
currently trying to decide whether to make asyncio-to-async-rust bindings portable or only for systems with eventfd (no Windows)
log rocket?
loop.add_reader(fd, callback, *args)```
Start monitoring the *fd* file descriptor for read availability and invoke *callback* with the specified arguments once *fd* is available for reading.
async just means that specific function takes priority and is read first by the computer right
?
they aren't yet sure they're stable enough
pyo3 right now are transitioning to new API
so obviously not stable enough to be 1.0
yet
swag
serde had >80 versions before 1.0
... and 204 bersions since 1.0
it's at 1.0.203 currently
(so 204 including 1.0.0)
backwards- and future-compatible because all updates are patch-only
typical dtolnay moment
there is no real way to add features
python is using rust?
another
many packages and build tools nowadays do
oh ok
OCD
JS and C# allow overriding how it works, to some level
(look at sql`...` specifically)
it's sanitised SQL even though it doesn't look like it
let mut my_vector: Vec<i32> = Vec::new();
my_vector.push(1);
my_vector.push(2);
my_vector.push(3);
========================= let my_vector = vec![1, 2, 3];
and in C# there is a thing about how format strings providing extra details
literally omg like like
(but there it's more implicit and might be less stable/guaranteed? idk)
what @ do in python?
!d decorator
A function returning another function, usually applied as a function transformation using the @wrapper syntax. Common examples for decorators are classmethod() and staticmethod().
The decorator syntax is merely syntactic sugar, the following two function definitions are semantically equivalent:
def f(arg):
...
f = staticmethod(f)
@staticmethod
def f(arg):
...
```...
what are you doing now?
@mild flume look at what JS can do
thats nasty
for stuff like this
!d staticmethod
@staticmethod```
Transform a method into a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
```py
class C:
@staticmethod
def f(arg1, arg2, argN): ...
``` The `@staticmethod` form is a function [decorator](https://docs.python.org/3/glossary.html#term-decorator) โ see [Function definitions](https://docs.python.org/3/reference/compound_stmts.html#function) for details.
A static method can be called either on the class (such as `C.f()`) or on an instance (such as `C().f()`). Moreover, the static method [descriptor](https://docs.python.org/3/glossary.html#term-descriptor) is also callable, so it can be used in the class definition (such as `f()`)...
!e
class Example:
@staticmethod
def f():
print(123)
Example.f()
Example().f()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 123
002 | 123
d' is not recognized as an internal or external command,
!e
def return_none():
return None
def return_nothing():
return
def no_return():
pass
print(return_none())
print(return_nothing())
print(no_return())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | None
002 | None
003 | None
i use rust js html tailwind swift
"tailwind is now a language"
lol no
@mild flume One of the best books...
Sure but as a book for the major?
NeoVim is the best lang
@rotund bough Do you run a business?
Black Friday, the marketing term, is definitely a thing here
cybermonday has gotten more popular i think
bearish is down
what is name ?
what is "name"
__name__
!e
print(__name__)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
__main__
!e ```if name == "main":
print("Hello")
for directory-based modules (packages), there is __main__.py thing
!e
def main():
print("stuff")
if __name__ == "__main__":
main()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
stuff
sqlite3 module has __main__ since 3.12

draw.io is looking great after the update
me with my singular "pay all taxes" button
"parse" is not defined
what are you parsing
parse(argv[1])
!d argparse
Added in version 3.2.
Source code: Lib/argparse.py
Tutorial
This page contains the API reference information. For a more gentle introduction to Python command-line parsing, have a look at the argparse tutorial.
The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The argparse module also automatically generates help and usage messages. The module will also issue errors when users give the program invalid arguments.
anyone interested in nuclear fusion
microblackholes are the new wave of batteries
if you're using modern Python, it will tell you that you need to import it
!e
argparse
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | argparse
004 | NameError: name 'argparse' is not defined. Did you forget to import 'argparse'?
Did you forget to import 'argparse'?
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
What are some good tools to get into game design? Should I just start with unity?
Best to ask in a game dev server.
If you mean 3D development, then try the Blendr discord.
or unreal
true
or create it from scratch using c++
jp
Thank-you!
is C# okay in Unity for action platform ? I just want to have fun... Not make the most efficient.
C++++
How do I spell that?
Godot
dont forget to have swag
I'm sure there's a plethora of public speaking courses.
minecraft is the best game for learning
Do y'all play Rust?
with all the right mods you can learn anything
True
no but i want to
minecraft+opencomputers
I heard its insanely addicitng
I have a better Rust to play with
It is!
my next big PC project will end up costing me at least $500
but that's for a server
500 isn't that much yeah
Most high end pcs are around 3k.
Gotcha. Yeah, the GPU is half the price.
@rotund bough Where are you from?
I have the GPU already
the best GPU, 1050 ti
but it'll be there only for initial setup
follow your dreams
I might keep GPU there because it's technically CUDA-compatible
@mild flume or odroid h3/h4 which are cheap enough while being not arm
raspberry pi isn't enough for some stuff
x86-64
hundred dollars single board
... not including ssd/ram
for $200 they also give a board with four ethernet ports
or no, wait, no, sata not ethernet
or both
I don't remember
they all have at least two
yeah feels lik everything has been solved idk whats out there anymore
my current has two ethernet ports
thats so true
I've seen enough things that haven't been solved
example please
or make it better @mild flume
to make ubuntu fail to boot
welp ima checkout qiskit
ffi support for tracing crate for Rust
Whos asking
ill try it out
@proper ridge echo might be caused by automatic gain
i think he is asking
I enabled krisp, hopefully it'll help. If not, I'll mute.
Are Udemy Python courses any good?
Depends on the person
I personally don't do well with courses, but I know others that love them
The Udemy ones aren't too bad
naw
Looking for any good courses, which I can use
realpython if you really want to pay
Even if I have to pay cash, I'll learn Python
learn python.org
read doc
MIT OCW 6.0001 and 6.0002
You don't have to pay
i reccomend tackling a elemntary project and watch youtube videos
python is easy to learn
Like there's tons of free resources out there, and the community can help clarify any concepts or questions you have
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
No no, then he's gonna be the guy who says what is this error
module numpy not found.
He needs to learn the basics first before moving to a project.
Projects just flesh out the learnings.
okie doke
open source open contribution
I made a blender mesh as logo for qoin.
And no one here starred my repo.
I am...heartbroken * princess pose
... and this is how you docker on android
Is it OK, if I run Python 3.11 instead of Python 3.12?
yes.. unless some lib has a 3.12 dep
I installed Python through Microsoft store, I installed 3.11 first
How do I set it to 3.12?
I have VS code
As my IDE
You can install both at the same time, just download the installer from python.org
I recommend not using the version from the Microsoft store
On Windows, Python comes with a small utility called py, which you can use to select a python interpreter or see which python versions you have installed on the command line.
Oh ok. Sometimes you may find around October-ish some libraries don't work with the newest version of Python because they haven't been updated yet.
But 3.12 has been around for a while now so most actively maintained libraries should work with it.
I bought an Udemy course on Python
I know we have free resources, but I still need to be tutored somehow
Oh cool, which course?
Gimme a sec
I've not seen that one but it seems well reviewed
Honestly any course is pretty much as good as any other for the basics, as long as it's reasonably good.
I chose it, mainly because they are using VS code
Ah ok
But I'll learn the basics here hopefully
Is it possible to write a wallpaper switcher app for desktop?
In Python of course
You should be able to. It would involve interacting with the windows API using python, which is not something I've done personally
What's an API?
dance electronic song. Listen and make your own with Suno.
!d api
it's an interface that allows one program to be called by another program
decided to make a vampire survivors clone
idk why
saw someone make one in 10 lines
but that was godot
this is some really bad code..
trying to fit the entire game in 50 lines
or less
BRO
WE HEAR U
sure
@small plaza here
๐ญ
yea
oh no
cant help with react
dockerize?
never used docker before
Hello
hi
Im trying to learn python and i got stuck on something simple... can you maybe help me really quick?
what is the issue?
rollup is a bundler and -linux-x64-musl is a build target
Im trying to make this program and i cant figure out how to, i have this
code:
name = 'World'
line = ''
for char in name:
line = line + char
print(line)
Using the website futurecoder.io if you know it
musl being there is one of potential issues
so it prints only the last thing?
!e
name = 'World'
line = ''
for char in name:
line = line + char
print(line)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | W
002 | Wo
003 | Wor
004 | Worl
005 | World
or was it a screenshot from somewhere else
i meant i need to add "-" as the number of characters at the bottom
lets say it says World so its 5, i need 5 times -
do you how to get the length of the string?
Not yet
!d len
len(s)```
Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).
**CPython implementation detail:** `len` raises [`OverflowError`](https://docs.python.org/3/library/exceptions.html#OverflowError) on lengths larger than [`sys.maxsize`](https://docs.python.org/3/library/sys.html#sys.maxsize), such as [`range(2 ** 100)`](https://docs.python.org/3/library/stdtypes.html#range).
!e
name = "World"
line = ''
for char in name:
line += char
print(line)
print("-"*len(name))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | W
002 | Wo
003 | Wor
004 | Worl
005 | World
006 | -----
as for repeating the same character c n times there is multiplication via *
(as shown above)
space around *
Thank you all!
(pep8)
its not world ending
!e
name = "World"
print(f"{name}\n{"-" * len(name)}")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | World
002 | -----
cool
!e
name = "World"
print(f"{name}\n{'':->{len(name)}}")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | World
002 | -----
wait hwat
It's like how two different computer programs talk to each other. In this case, you want your program to talk to windows to tell it to change the desktop background.
1050 for initial setup only, why?
I imagine because they will upgrade later, but getting it up and running is more important than having it running as fast as it ever will
the 1050 ti is a bit dated
Old for a simple setup? You kidding?
Depends on the needs
For what?
there is no integrated GPU
(and I don't really need a GPU for that thing; so, if after everything is set up it can boot without it, then why not take it out)
Hello there
I can't wait to speak with you guys on VC
I'm not yet allowed though
I bought a Python course on Udemy
Watching it through
I know
But I need tutoring
6.0001 Introduction to Computer Science and Programming in Python is intended for students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems and to help students, regardless of their major, feel justifiably confident of their ability to write small p...
6.0002 is the continuation of 6.0001 Introduction to Computer Science and Programming in Python and is intended for students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in sol...
Well, it was on a discount
hey thanks for sharing
Thanks for sharing
does anyone as has any opinion on this ?
https://www.reddit.com/r/LocalLLaMA/comments/1dejvr0/mixture_of_agents_can_beat_gpt4o/
there was SICP somewhere on the stream lol
I should finish reading that at some point
> at a lower cost
seems like that is the main point there
@proper ridge yes, one of the courses
Structure and Interpretation of Computer Programs
I just saw a junior/mid Python programer job, and it's salary is around 999-2783 โฌ after taxes
hey the other day
I setup a master llm on my laptop and slave ai agent on my frnds laptop
and then I let them talk to each other over the internet
it was watching then solve sorting algorithms...
@proper ridge
(I wasn't hallucinating)
My goal is to learn coding to get a well paid job, so I can get a loan to buy myself a house
I don't remember if they've re-made it for some other language
as in not Scheme
(tbf Scheme is kind of central to that, so would be unlikely)
does anyone has done anything similar to this?
Why Avoid System Python for Development on Unix-like Systems:
- Critical Operating System Dependencies: Altering the system Python installation may harm internal operating system dependencies.
- Stability and Security Concerns: System interpreters lag behind current releases, lacking the latest features and security patches.
- Limited Package Control: External package management restricts control over versions, leading to compatibility issues with outdated packages.
Recommended Approach:
- Install Independent Interpreter: Install Python from source or utilize a virtual environment for flexibility and control.
- Utilize Pyenv or Similar Tools: Manage multiple Python versions and create isolated development environments for smoother workflows.
Like this example
!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.
!code
!code
!e print('Hello, World!')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, World!
@lusty hull ๐
still missing newline right after py
that was because of extra space
discord wants exactly ```py<newline>
idk why
this works:
```py
print()
```
this doesn't work:
```py print()
```
this doesn't work:
```py
print()
```
name = 'Dominykas G'
age = 29
is_registered = True
print(name)
print(age)
print(is_registered)
God those are soo cute.
I cried watching this movie man.
@proper ridge did @\Vanity answer the questiong correctly?
The MPO one?
yes
Nooohhh hehehe
seems legitr
Waterthing
What happens when a horror movie composer and a guitar maker join forces? They create the worldโs most disturbing musical instrument. Affectionately known as "The Apprehension Engine," this one-of-a-kind instrument was commissioned by movie composer Mark Korven. Korven wanted to create spooky noises in a more acoustic and original wayโbut the ri...
Yaaas.
@graceful burrow ๐
is thi sstill required as llama3 for Lexi?
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are an AI assistant designed to assist mortgage brokers by answering their questions and providing essential information efficiently and securely. Your responses should be informative, non-biased, and maintain a positive tone. Where necessary, ask for clarifications to ensure accurate assistance.
<|eot_id|>
<|start_header_id|>user<|end_header_id|>
Using the context below, answer the question in <QSTN></QSTN> tag.
Context:
... (long context with chunks retreived via rag)
<QSTN>Does ING support foreign income?</QSTN>
<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>
@proper ridge
You should use COSTAR prompting structure. Maybe it'll work better?
demo
"Woke" originates from AAVE I think yeah
Yeah
The phrase stay woke has been present in AAVE since the 1930s. In some contexts, it referred to an awareness of social and political issues affecting African Americans.
It's an interesting framework. Although, the issue seems to be it repeating its prompt, I'll have to look at your code again to see why it's happening.
@jagged raft ๐
Give me your money and I will safely dispose of it for you
@tame leaf
would non-fungible humans be fungi resistant 
most uses of NFTs I've seen claimed are themselves worse than not using NFTs for the same thing
NFTs as replacement for tickets, for example
that serves only a singular purpose: move money from users to speculators
@elfin saffron ๐
plural
archaic feminine plural
it actually has somewhat ambiguous semantics, region-dependent
how about Chapayev game but with chess pieces
another good version of chess
@devout elk ๐
hi
basically it initially emerged as synonym to just plural, but then ended up drifting into random directions away from regular meaning
Fair enough
yum yum
We live in a society.
luxembourg is very rich nation
It was this
Even for a state as heavily militarized and intractable as the Islamic Republic of Iran, the breadth and depth of the economic maladies it is facing are crushing. Although the authorities, because of a self-defeating hubris, do not admit that they are finding economic pressures to be overwhelming, it is public knowledge that they have long lost ...
I see resource rich and not economical GDP rich
which is what he meant
by "fifth richest"
I just heard rich and assumed the usual term for "rich"
Go back in time over 2,000 years and follow the same path as Jesus Christ, from his baptism to the resurrection. Inspired by the New Testament stories, โI Am Jesus Christโ is a simulation like no other.Are you prepared to fight with Satan in the desert, cure the sick and help the needy? Perform over 30 iconic miracles from the feeding of the 5,0...
To be announced
But what about this game
What's up folks?
I've been practicing control flow right now
Nice! Are you feeling loopy yet?
Antioxidants like beta carotene help reduce or prevent oxidative stress in the body. Plenty of research shows that diets rich in antioxidants can boost health. By reducing oxidative stress in the body, antioxidants may help protect against conditions such as: certain cancers.
Dreamjob: Programmer is a super easy and fun way to get you started with programming. With hundreds of missions, each one carefully adjusted to your level of expertise with coding, you will get into the shoes of a real programmer! Soon you will know how to create and monetize enough assets to buy a home, an exclusive yacht, or even a private isl...
To be announced
Ah I think there's a name for this
The hedonic treadmill, also known as hedonic adaptation, is the observed tendency of humans to quickly return to a relatively stable level of happiness despite major positive or negative events or life changes.
According to this theory, as a person makes more money, expectations and desires rise in tandem, which results in no permanent gain in h...
@buoyant dagger 
Nature will always take the path of least action...
Being happy or sad is an excited state, being ok is the ground state. It's only natural we go towards our groundstate slowly after every excitement.
I think it differs from person to person
Different systems, different environments, but they will all go to the ground state eventually.
@misty sinew you're really quiet
!stream 327179626306863104
โ @tame leaf can now stream until <t:1718289326:f>.

yea my mic has health issues
@slow cargo ๐
hi
is the voice channel also broken for you guys?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ever heard of black pudding?
That sounds disgusting all of a sudden.
It's blood in the form of pudding?
Eww.
Pudding isn't a dessert in this case
It's a sausage made from pigs blood (I think). It's actually quite nice though ๐ I think there's a similar thing in south-east asia.
Beer sounds like that Viking in modern era
!kindlings
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
In the UK they have like pictures of smokers' lungs on the package
I got IDed today at the shop ๐
How'd you get ransomware on your phone? 
Makes you feel like an adult
Sorry, you're going to what? ๐คจ
hello hello
You think you can block my shtoyle?
You can't take my data haha.
zzzhhhh poooww kaaakhhh
from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
Flask constructor takes the name of
current module (name) as argument.
app = Flask(name)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
main driver function
if name == 'main':
app.run(host="0.0.0.0",port="5000")
like this
```py
like this
```
'''from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
Flask constructor takes the name of
current module (name) as argument.
app = Flask(name)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
main driver function
if name == 'main':
app.run(host="0.0.0.0",port="5000")'''
The ` key is usually above the tab key on your keyboard
^^^from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
Flask constructor takes the name of
current module (name) as argument.
app = Flask(name)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
main driver function
if name == 'main':
app.run(host="0.0.0.0",port="5000")^^^
ยฐยฐยฐfrom flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
Flask constructor takes the name of
current module (name) as argument.
app = Flask(name)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
main driver function
if name == 'main':
app.run(host="0.0.0.0",port="5000")ยฐยฐยฐ
```
```
```
from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
Flask constructor takes the name of
current module (name) as argument.
app = Flask(name)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
main driver function
if name == 'main':
app.run(host="0.0.0.0",port="5000")
```

```
```
\
from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
# Flask constructor takes the name of
# current module (__name__) as argument.
app = Flask(__name__)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
# main driver function
if __name__ == '__main__':
app.run(host="0.0.0.0",port="5000")
''' py
'''py
from flask import Flask, request
def combine(x: int, y: int) -> str:
a = str(f"{x:0>4}{y:0>4}")
return str(a)
def split(c):
try:
b = int(c[0:4]), int(c[4:8])
k = b[0]
j = b[1]
except:
k = 0
j = 0
return k, j
# Flask constructor takes the name of
# current module (__name__) as argument.
app = Flask(__name__)
players = []
playerindex = -1
info = []
@app.route("/connect" , methods=["Post"])
def connect():
data = request.get_json()
message = data.get("post")
global players
global playerindex
global info
info.append([])
playerindex += 1
players.append(message)
print(playerindex)
print(players)
return str(playerindex)
@app.route("/update" , methods=["Post"])
def update():
# [[to update],[index]]
global p2
data = request.get_json()
message = data.get("post")
global info
info[message[1]] = message[0]
return info
@app.route("/leaveing" , methods=["Post"])
def leaveing():
data = request.get_json()
message = data.get("post")
global players
global playerindex
players.pop(int(message))
playerindex -= 1
# main driver function
if __name__ == '__main__':
app.run(host="0.0.0.0",port="5000")
import requests
from socket import getaddrinfo, gethostname
adresess = [i[4][0] for i in getaddrinfo(gethostname(), None)]
length = len(adresess)
print(length/2)
for i in range(0, int(length/2)):
adresess[i] = 0
for i in adresess:
adresess.remove(0)
realip = ""
name = input('What is your name: ')
#ip_address = input("Please write the local ip from host: ")
# find open ip
for ip_address in adresess:
try:
url = f"http://{ip_address}:5000"
print(url)
headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
latestResponseFromServer = 0
latestResponseFromServerAsString = ""
SendData = {"post": f"{name}"}
latestResponseFromServer = requests.post(url + "/connect", json=SendData, headers=headers)
latestResponseFromServerAsString = latestResponseFromServer.text
index = int(latestResponseFromServerAsString)
if index > -1:
realip = ip_address
break
except Exception as E:
print("no")
url = f"http://{realip}:5000"
headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
count = 0
#start game
while True:
latestResponseFromServer = 0
latestResponseFromServerAsString = ""
count += 1
SendData = {"post": [[],index, count]}
latestResponseFromServer = requests.post(url + "/update", json=SendData, headers=headers)
latestResponseFromServerAsString = latestResponseFromServer.text
print(latestResponseFromServerAsString)
Idk don't worry about it ๐
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.
@mild flume "do you ever expect this to consume 100% of a CPU core constantly?"
#[async_std::main]
async fn main() -> async_tungstenite::tungstenite::Result<()> {
let listener = async_std::net::TcpListener::bind("127.0.0.1:8080").await?;
let (stream, _) = listener.accept().await?;
async_tungstenite::accept_async(stream).await?;
Ok(())
}
someone somewhere broke something
Is the listener just polling constantly?
accept_async hangs
it wakes repeatedly
this breaks on async-std but not async-net version 2
it's websockets
Ah right right
there is a nuance to how async-tungstenite polls the stream
which might be the issue
not sure
async-net version 1 works too
Right which is what I was wondering. Whether it was because what you had there was using async_std vs async_net
Like does the std just not handle websockets well
I've opened an issue on async-tungstenite's repo 1) so that they know this happens 2) because I can't yet replicate it for async-std in isolation
Makes the most sense
Same
also async-tungstenite targets async-std as its main compatibility thing
Gotcha
(and whatever example there is to prove this happens will likely be simpler in that setting)
oh, and also all that happens only in --release
I feel like ADHD, Tourette's, and OCD are related in some way in the brain ๐ค
which, I think, means it's some race condition
That sounds likely
because another thing that makes it fail this way is:
async_std::task::spawn(futures_util::future::pending::<()>());
and "fix" sometimes is to slow down, add extra overhead, etc.
Slightly reduced polling rate yeah
it seems to rely on something happening between two polls yet still busy-wakes
I don't work on UIs apart from Web
Fair
!e
binary = format(5, '05b')
print(binary)
print(reversed(binary))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 00101
002 | <reversed object at 0x7f93ceeeb580>
howdy doody
so, I guess, that means whatever I made is fast enough that it causes this bug to surface
You're just that good
the thing is only a bit faster than a million messages per second
was that Ramstein lyrics ?
yes
3M is optimal (on my current hardware)
"optimal" being how much the underlying library's throughput is
True. What're you creating?
little round managable poops
did you tain for litter box
yes
thing to represent many websocket streams as one
depending on representation, either distributing outgoing messages or multicasting
So it's meant to be stress testing
wild bunnys love dandelions
one of the implementations behaves somewhat cursed for whatever reason
1 stream: 2s
2 streams: 8s
3 streams: 64s
sounds worse than exponential
it used to be one of the fastest ones I had, idk what broke
exponential would be 32s
attack cats
def output_welcome_text(first_name,
last_name,
age,
location,
returning_user=True):
'''Output welcome text with users details'''
if returning_user:
msg_start = f'Welcome back {first_name} {last_name}!'
else:
msg_start = f'Welcome {first_name} {last_name}!'
msg = f'{msg_start} You are {age} and from {location}.'
print(msg)
output_welcome_text(
'Mark',
'W',
age=31,
location='London',
)
indentation
last line seems too much inside
was this the intention?
def output_welcome_text(first_name,
last_name,
age,
location,
returning_user=True):
'''Output welcome text with users details'''
if returning_user:
msg_start = f'Welcome back {first_name} {last_name}!'
else:
msg_start = f'Welcome {first_name} {last_name}!'
msg = f'{msg_start} You are {age} and from {location}.'
print(msg)
output_welcome_text(
'Mark',
'W',
age=31,
location='London',
)
otherwise it'd call itself repeatedly
def output_welcome_text(first_name,
last_name,
age,
location,
returning_user=True):
'''Output welcome text with users details'''
if returning_user:
msg_start = f'Welcome back {first_name} {last_name}!'
else:
msg_start = f'Welcome {first_name} {last_name}!'
msg = f'{msg_start} You are {age} and from {location}.'
print(msg)
output_welcome_text(
'Mark',
'W',
age=31,
location='London',
)
select lines 15~20
shift+tab
call to the function should be outside the function itself in this case
Hi
โHeโs fullโ ๐คฃ๐คฃ๐คฃ
๐ 2.47K ๐ 491
cute bunny
!e
funny_nan = {
int('1') : 'It found me',
float('nan') : 'It found me',
}
print(funny_nan[int('1')])
print(funny_nan[float('nan')])
:x: Your 3.12 eval job has completed with return code 1.
001 | It found me
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 7, in <module>
004 | print(funny_nan[float('nan')])
005 | ~~~~~~~~~^^^^^^^^^^^^^^
006 | KeyError: nan
hlo

is there anyone can help me to setup my java in vsc.
i watch so many video as well i tried many time but it could not be solve:(
not now, sorry, headache
Stop worrying about what other people have, unless you're going to help them
Hey guys how are you?
where is my mistake here? keep getting heads
import random
heads_or_tails = random.randint(0, 1)
if heads_or_tails == "0":
print("Tails")
else:
print("Heads")
Strings are never equal to integers.
!e py print('0' == 0) print(0 == 0)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | False
002 | True
Thank you!! ๐
I would also investigate the use of random.choice.
Oh yeah im sure there is much better alternatives
im just following the course for now
Python imports are a breeze for bingchat lol
Howdy howdy.
Sorry, no Optal, here.
@wind ridge You've got a non-negligible amount of noise coming from your end.
sorry, a 3-d printer is running in the background
english please
@misty sinew๐
how is evryone's day
LX.
there is much noise on the background
Well, that's what happens when the Desktop app stops working and I have to use the web.
Which sounds crap, usually.
So I don't bother.
thats not so good
I can type.
there is no one talking atm
Let's stay in voice chat, wait for more people to come
there is to much noise in the background so it's better for you to stay muted
in the settings?
notification?
is it only youtube or is it also insta, X (twitter) or facebook?
does it pup up in firefox or as a notification on hte pc even if firefox is not open?
I self don't use firefox
the pop out this video pop up?
I'm working on a new function for my Discord bot. Any thoughts?
# Fetch the last message from the channel history if not already stored
last_msg = last_user_message.get(message.channel.id)
if not last_msg:
try:
async for msg in message.channel.history(limit=1, before=message):
last_msg = msg
last_user_message[message.channel.id] = msg
print(f"Fetched LFG message for #{message.channel.name} (ID: {message.channel.id})")
break # Break out of the loop after fetching one message
except discord.Forbidden:
print(f"Error: Missing permissions to fetch message history in #{message.channel.name} (ID: {message.channel.id})")
except discord.HTTPException as e:
print(f"HTTP error while fetching message history: {e}")
# If there is a stored message and it's from the same user, delete it
if last_msg and last_msg.author.id == message.author.id and last_msg.id != message.id:
try:
await last_msg.delete()
except discord.NotFound:
pass # If the message is already deleted or not found
# Update the most recent message for this channel
last_user_message[message.channel.id] = message```
your loggin messages?
Most recent message, yes
whats forbidden in the terms, if you log all messages not the latest
It won't allow same user send two messages after each other
do you have a lock that prevents concurrency issues
No
possible situation
msg 1 received, task 1 spawned
msg 2 received, task 2 spawned
task 1 sees no message stored
task 2 sees no message stored
task 2 stores the last message
task 1 stores the last message
True. You mean with like asyncio.Lock()?
also that is a very terrible idea, don't do this
?
It's for a LFG channel were I want to keep things clean. What's your solution?
user 1: asks a question
user 2: answers "yes"
user 1: asks a different question
user 2: answers "yes" again, and gets their message removed
So you mean based on message content
user 1: i'm looking for a support
user 1: i'm looking adc <- user 1 is no longer looking for a support, delete previous message
there's at least three different classes of stuff you need to deal with:
burst spam of similar messages
burst spam of different messages
long-term spam of big same messages, possibly across multiple users
spam protection you mean
that is better implementable through dedicated commands
there's going to be some level of formalisation anyway if you're drying to dedup messages in any logical and not "just guessing" manner
Should I use the same lock for both on_message and on_message_delete? OR two different locks?
anything that accesses the same data in a way that's potentially conflicting
Greetings Alisa, didn't see you join. Apologies.
Makes sense
also for some actions, since it's asyncio and there is no need to keep real thread-safety, you can skip the lock
lock for consistency, no lock for availability
though in case for processing a sequence of messages, it probably makes more sense to just have a task per user-channel pair that pulls messages from a queue
(which is started on-demand)
or just have a singular task that handles all the messages and is the only task with access to the state
how many messages does it remember?
like if 2 poeple spam in the channel does it detecxt the spam?
rn trying to optimise some solutions to the game that was posted in #voice-chat-text-0
"Human Resource Machine"
for now levels are mostly just ASM-like stuff
5,74 in my case
Turing Complete is cheaper but is teaching a more low-level stuff
also waiting for any updates on the PR to futures-rs's will_wake test branch
there is a fix that might work currently (at least it works locally for me)
or in the case of futures-task specifically
almost everything that uses futures::task::{waker,waker_ref} is somewhat broken
since late February
and their CI has been broken since just after Rust 1.78 got released
which of the 2 do you prefer? human resource machine or turning compete
Turing Complete is more in-depth
and provides more options to build on top of what you've made previously
more proggramer side, and while true(?
no?
why
np
https://store.steampowered.com/app/1724140/Craftomation_101_Programming__Craft/while True: learn() is a puzzle/simulation game about even more puzzling stuff: machine learning, neural networks, big data and AI. But most importantly, itโs about understanding your cat.In this game, you play as a coder who accidentally found out that their cat is e...
$12.99
6007
73
I'm young and want to learn programming in a good but stil fun way
I game to much
I haven't tried that one yet, but from what I see it's somewhat too high level, abstracting many details away
yeah, so for a proggramer based game you say turning complete
this dev has many good programming-related games too
https://store.steampowered.com/developer/zachtronics
I've only played TIS-100 for long enough so far
I can't type
it's near r
and dictionary doesn't catch the error because it's a valid word
SHENZHEN I/O is good too
I don't know any of the games, my parents are so bad, they don't let me buy one of the games mentioned earlier
a game that comes with a 47 page manual
one of the pages is styled to be a printed version of some 90s website lol
I see it but the only problem is that my parents say that I can't spend money on games
that's old
I wasn't even back tehn
8 a.m. during the winter might now have sun, but it's definitely late enough to be morning
It should only prevent the same user from sending consecutive messages. So it will always keep the last message for the specific channel. If the new message is from the same author, it should delete the previous message to leave only the most recent message. If two different users post messages one after another, that is fine, as long as the same user does not send two consecutive messages.
huh
This is why we only need to store the most recent message per channel
"forenoon" replaced it as "after sunrise before noon"
@crystal aurora I've only read the docs for Zig so far, haven't written any code myself
@willow cedar ๐
this is all very latitude- and timezone-dependent
for example, Spain where everything is offset by an hour compared to what it's supposed to be
@delicate mango ๐
Someone hands a burger to Opal after Elon touched it.
Opal: "Ewww it's musky!"
@lapis crest ๐
lyrics
You're no good, can't you see, Brother Louie, Louie, Louie
I'm in love, set her free, oh, she's only looking to me
Only love breaks her heart, Brother Louie, Louie, Louie
Only love's paradise, oh, she's only looking to me
Brother Louie, Louie, Louie, oh, she's only looking to me
Oh, let it, Louie, she is undercover
Brother Louie, Louie...
@exotic lava @sharp thunder @shell haven ๐
@errant turtle ๐
Released April 23, 1996
Genre Hip hop
Length 3:44
Label Ruthless
Songwriter(s)
BoneTim MiddletonTony-C
Producer(s) Tim Middleton
Apoya el Rendimiento del Canal con una Simple donaciรณn :D
https://paypal.me/elcoronelGOD
Bone Thugs-N-Harmony - Tha Crossroads producido por DJ U-Neek & Bone Thugs-N-Harmony.
Should this vi...
**Trey Pangborn played lead guitar with DJ Product on turntables during the set.
Thumbnail pic: Matthew Sands
April 29, 1992 - 0:00
STP - 4:20
Greatest Hits - 8:19
Wrong Way - 11:43
What I Got - 14:40
Burritos - 18:30
Santeria - 23:23
Encore - 27:25
Same in the End - 28:25
{}
num1 = float(input("Enter first number: "))
op = input("Enter operator: ")
num2 = float(input("Enter second number: "))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "/":
print(num1 / num2)
elif op == "*":
print(num1 * num2)
else:
print("Invalid operator")
products =[ {'name'},
]
Yeah. This picture is really nice to have an idea of how quantum computing works in terms of the pipeline.
quantum computer = rich man's GPU?????
I'm gonna hop off. Cya guys later.
for i in aplhabet: print("i - random.randrange(1,2)")
what is the output
the is no f-string in the print statement
NameError
agree it should be with f
print(f" {str}")
and not
print(" {str}")
@real mirage @halcyon lark @fiery sage ๐
@rich veldt ๐
@misty sinew here
Do you code discord bots?
yes
!e
print(2 + 3 * 3)
print((2 + 3) * 3)
I don't understand, you want a command that takes 3 arguments, guild.member, string, and int?
A command that vouch a user
Ill show u
Like this @fair heron
@open mantle ๐
Hello ๐
๐
What do you think of this idea?
not granular enough but fine for a prototype
it will fail if you have too many messages incoming
especially across many channels
@gray swallow ๐
@fair heron
hi
Hi
hey
this?
Yes
.
Can you code that
your response is not an answer to the related question
please reply to this
Can you code a vouch bot
With these commands
Where did you go?
