#voice-chat-text-1

1 messages ยท Page 26 of 1

delicate wren
#

yes

mild flume
#

My second guess was Fart

delicate wren
#

"which of the copilots"

mild flume
#

Neat

delicate wren
#

these emojis in terminal output are confusing me

mild flume
#

Last one maybe todo?

#

The snake feels obvious...

#

Origin for the satellite maybe...

#

Yeah no idea, actually

wary fable
#

Damage survey continues, January was a doozy

umbral rose
#

!stream 239917638656983040

coarse hearthBOT
#

โœ… @wary fable can now stream until <t:1718127628:f>.

umbral rose
#

!stream 958057865032106045

coarse hearthBOT
#

โœ… @ashen willow can now stream until <t:1718127643:f>.

delicate wren
#

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"

proper ridge
#

Where do you usually put workspaces in Ubuntu?

#

Clari's real handome. Damn.

mild flume
#

Back later

thin lintel
#

Felip, love the profile pic

umbral rose
#

!stream 958057865032106045

coarse hearthBOT
#

โœ… @ashen willow can now stream until <t:1718129121:f>.

raven orbit
#

the train

wary fable
#

I should use this area as my garden, lots of good soil

wary fable
#

But thank you

rotund bough
proper ridge
proper ridge
wary fable
#

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

unborn marlin
#

Any game devs in here?

rotund bough
ashen willow
#

['aaaaaaaaaa', 'aaaaaaaa', '########, '######']

thin lintel
misty sinew
thin lintel
rotund bough
#

๐Ÿ‘‹

#

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

stuck bluff
#

@kindred zodiac @crisp gust ๐Ÿ‘‹

crisp gust
stuck bluff
#

@frank fern @copper canyon ๐Ÿ‘‹

#

@sly rivet ๐Ÿ‘‹

copper canyon
#

Hey

stuck bluff
#

@grave pier ๐Ÿ‘‹

copper canyon
#

not too often do i see simulated quantum computer circuits in the channel

#

are you using qiskit?

#

using qiskit is your job?

stuck bluff
#

@floral meteor ๐Ÿ‘‹

floral meteor
stuck bluff
#

The pitch peaks higher than this, but it's about right.

copper canyon
#

what are you programming

#

where do you find these bounties?

#

whats the name of the event

proper ridge
#

UnitaryHack

copper canyon
#

awesome

#

i understand

#

its beneficial though for incentivising creation of software

#

is quantum computing overrated

wicked flicker
#

Hello folks

#

How are you doing today?

copper canyon
#

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 ?

delicate wren
#

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

delicate wren
copper canyon
#

we should start mining bitcoin using qiskit algrithms on the IBM premium plan lol

delicate wren
#

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

copper canyon
#

thank you that was a very informative

delicate wren
#

sequential

copper canyon
#

so the quantum computers computational structure is more effecient because it will do everything at once rather than one at a time

mild flume
#

Bingo

delicate wren
#

similar difference to CPU vs GPU

copper canyon
#

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

delicate wren
#

can't mine Monero on quantum

#

(their mining algorithm is made to be runnable only on CPU)

#

privacy-centred cryptocurrency

copper canyon
#

crypto is a good technology

#

its just crazy rn wild west type of thing

delicate wren
#

I still, when I see "crypto" as a technology, thing of cryptography not cryptocurrency

#

I refuse to change

elder wraith
delicate wren
#

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

delicate wren
#

or react/others+electron
whatever works

mild flume
delicate wren
#

> v1.

mild flume
#

v2 is in beta

#

Although I'm sure the jury is out on how effective that is

copper canyon
#

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.

delicate wren
#

SIDH right now is easier for classical than for quantum to break

#

lattice cryptography is the promised solution

#

SIDH is dead

copper canyon
#

Lattices: These are mathematical structures like grids, but in higher dimensions (imagine a grid extending into space in all directions).

delicate wren
#

ECDH

#

ECDH rn is considered more quantum safe than just DH

#

SIDH is dead even on classical

#

sidh: singular isogeny

#

ecdh: elliptic curve

copper canyon
#

so ECDH is difficult to crack by both computers

delicate wren
#

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

copper canyon
#

Sheeeesh

delicate wren
#

it's non-trivial to traverse docs of

mild flume
#

!source

coarse hearthBOT
delicate wren
#

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

copper canyon
#

pySodium

delicate wren
#

PyNaCl

#

bindings to libsodium

#

of a NaCl library

#

pronounced "salt"

mild flume
#

reqwests

delicate wren
#

ureq

#

no u

mild flume
copper canyon
#

pyNACl is meant for Crptography and not chem?

delicate wren
#

there was a method with a name so cursed scipy had to rename it

#

whereas matlab kept it as is

#

* function

delicate wren
mild flume
delicate wren
#

now it's cumulative_trapezoid

delicate wren
copper canyon
#

anyone here ever created a NN?

#

yes

delicate wren
#

using just numpy? yes
using just python itself? yes

#

why? yes

copper canyon
#

ice cream is super stupid

#

haha

copper canyon
#

where was your source of info to build one

delicate wren
#

MIPT's course

copper canyon
#

what type did you make

#

like a CNN or ANN

delicate wren
#

convolutional news network

copper canyon
#

Convolouted Nueral network good sir

delicate wren
#

I did try making an RNN

#

it somewhat worked

mild flume
delicate wren
#

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

copper canyon
#

what do you guys make in rust?

delicate wren
#

currently trying to decide whether to make asyncio-to-async-rust bindings portable or only for systems with eventfd (no Windows)

copper canyon
delicate wren
#

use Rust's async fns inside Python

#

!d asyncio.loop.add_reader

coarse hearthBOT
#

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.
delicate wren
#

pyo3 has experimental support for it

copper canyon
#

async just means that specific function takes priority and is read first by the computer right

#

?

delicate wren
#

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

copper canyon
#

swag

delicate wren
#

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)

delicate wren
#

typical dtolnay moment

#

there is no real way to add features

copper canyon
#

python is using rust?

delicate wren
#

another

delicate wren
copper canyon
#

oh ok

delicate wren
#

it got into spec

#

dict ordering

copper canyon
#

OCD

delicate wren
#

JS and C# allow overriding how it works, to some level

visual crypt
#

how to make a macro in python

#

what are you coding now?

delicate wren
#

(look at sql`...` specifically)

#

it's sanitised SQL even though it doesn't look like it

copper canyon
#

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];

delicate wren
#

and in C# there is a thing about how format strings providing extra details

copper canyon
#

literally omg like like

delicate wren
#

(but there it's more implicit and might be less stable/guaranteed? idk)

visual crypt
#

what @ do in python?

delicate wren
#

!d decorator

coarse hearthBOT
#

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):
    ...
```...
visual crypt
#

what are you doing now?

delicate wren
#

@mild flume look at what JS can do

mild flume
#

No

#

Nooooo no no no no

#

No

#

Why

copper canyon
#

thats nasty

visual crypt
#

do functions need to return value in python

#

what staticmethod do?

copper canyon
#

!d staticmethod

coarse hearthBOT
#

@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()`)...
delicate wren
#

!e

class Example:
    @staticmethod
    def f():
        print(123)

Example.f()
Example().f()
coarse hearthBOT
visual crypt
delicate wren
#

!e

def return_none():
    return None

def return_nothing():
    return

def no_return():
    pass

print(return_none())
print(return_nothing())
print(no_return())
coarse hearthBOT
visual crypt
#

!d staticmethod

#

what languages do you use beside python

#

return_none()

copper canyon
#

i use rust js html tailwind swift

delicate wren
#

"tailwind is now a language"

copper canyon
unborn marlin
#

@mild flume One of the best books...

mild flume
#

Sure but as a book for the major?

copper canyon
#

NeoVim is the best lang

unborn marlin
#

@rotund bough Do you run a business?

delicate wren
#

Black Friday, the marketing term, is definitely a thing here

copper canyon
#

cybermonday has gotten more popular i think

delicate wren
#

(not US)

#

huh
wikipedia is finally bringing back the wide UI

copper canyon
#

bearish is down

visual crypt
#

what is name ?

delicate wren
#

@mild flume what you talk about probably is shark

#

not bull/bear

visual crypt
#

what is "name"

mild flume
#

__name__

delicate wren
#

!e

print(__name__)
coarse hearthBOT
copper canyon
#

!e ```if name == "main":
print("Hello")

delicate wren
#

for directory-based modules (packages), there is __main__.py thing

#

!e

def main():
    print("stuff")

if __name__ == "__main__":
    main()
coarse hearthBOT
delicate wren
#

sqlite3 module has __main__ since 3.12

copper canyon
delicate wren
#

draw.io is looking great after the update

#

me with my singular "pay all taxes" button

visual crypt
#

"parse" is not defined

delicate wren
#

what are you parsing

visual crypt
#

parse(argv[1])

delicate wren
#

!d argparse

coarse hearthBOT
#

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.

delicate wren
#

hmm

#

not exactly that but similar

copper canyon
#

anyone interested in nuclear fusion

visual crypt
#

argparse" is not defined

#

do i need to import it?

copper canyon
#

microblackholes are the new wave of batteries

delicate wren
#

if you're using modern Python, it will tell you that you need to import it

#

!e

argparse
coarse hearthBOT
# delicate wren !e ```py 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'?
delicate wren
#

Did you forget to import 'argparse'?

copper canyon
#

!user

coarse hearthBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

copper canyon
#

what yall do for work?

#

what field

unborn marlin
#

What are some good tools to get into game design? Should I just start with unity?

proper ridge
#

If you mean 3D development, then try the Blendr discord.

unborn marlin
#

action platform

#

2d

copper canyon
#

true

#

or create it from scratch using c++

#

jp

unborn marlin
#

Thank-you!

copper canyon
#

thats insane

#

i have to take assembly this summer

#

its gonna be fun

unborn marlin
#

is C# okay in Unity for action platform ? I just want to have fun... Not make the most efficient.

copper canyon
#

C++++

unborn marlin
#

How do I spell that?

mild flume
#

Godot

unborn marlin
#

TY

#

@mild flume Be comfotable with the pause.

copper canyon
#

dont forget to have swag

unborn marlin
#

I'm sure there's a plethora of public speaking courses.

copper canyon
#

minecraft is the best game for learning

unborn marlin
#

Do y'all play Rust?

copper canyon
#

with all the right mods you can learn anything

mild flume
#

True

copper canyon
delicate wren
#

minecraft+opencomputers

copper canyon
#

I heard its insanely addicitng

delicate wren
#

I have a better Rust to play with

unborn marlin
delicate wren
#

my next big PC project will end up costing me at least $500

#

but that's for a server

proper ridge
#

Most high end pcs are around 3k.

delicate wren
#

that's for used CPU, used motherboard and used RAM

#

those total to $420

proper ridge
unborn marlin
#

@rotund bough Where are you from?

delicate wren
#

I have the GPU already

#

the best GPU, 1050 ti

#

but it'll be there only for initial setup

copper canyon
delicate wren
#

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

delicate wren
#

hundred dollars single board

#

... not including ssd/ram

#

for $200 they also give a board with four ethernet ports

copper canyon
#

any suggesstions on what i should make in rust

#

what problems need to be solved!!!

delicate wren
#

or no, wait, no, sata not ethernet
or both

I don't remember

#

they all have at least two

copper canyon
#

yeah feels lik everything has been solved idk whats out there anymore

delicate wren
#

my current has two ethernet ports

copper canyon
#

thats so true

delicate wren
#

I've seen enough things that haven't been solved

copper canyon
#

or make it better @mild flume

delicate wren
#

to make ubuntu fail to boot

copper canyon
#

welp ima checkout qiskit

delicate wren
rotund bough
copper canyon
delicate wren
#

@proper ridge echo might be caused by automatic gain

wraith portal
proper ridge
wicked flicker
#

Are Udemy Python courses any good?

mild flume
#

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

wraith portal
wicked flicker
#

Looking for any good courses, which I can use

delicate wren
#

realpython if you really want to pay

wicked flicker
#

Even if I have to pay cash, I'll learn Python

wraith portal
#

read doc

proper ridge
wraith portal
mild flume
#

You don't have to pay

copper canyon
#

python is easy to learn

mild flume
#

Like there's tons of free resources out there, and the community can help clarify any concepts or questions you have

#

!resources

coarse hearthBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

proper ridge
#

He needs to learn the basics first before moving to a project.

#

Projects just flesh out the learnings.

copper canyon
#

okie doke

delicate wren
#

open source open contribution

proper ridge
#

I made a blender mesh as logo for qoin.

#

And no one here starred my repo.

#

I am...heartbroken * princess pose

mild flume
copper canyon
#

hes tryna become irobot

#

@ashen willow use nmap

delicate wren
mild flume
wicked flicker
#

Is it OK, if I run Python 3.11 instead of Python 3.12?

rotund bough
#

yes.. unless some lib has a 3.12 dep

wicked flicker
#

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

hearty heath
#

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.

wicked flicker
#

I just installed 3.12 again

#

It seems to work

hearty heath
#

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.

wicked flicker
#

I bought an Udemy course on Python

#

I know we have free resources, but I still need to be tutored somehow

hearty heath
wicked flicker
#

Gimme a sec

hearty heath
#

Honestly any course is pretty much as good as any other for the basics, as long as it's reasonably good.

wicked flicker
#

I chose it, mainly because they are using VS code

hearty heath
#

Ah ok

wicked flicker
#

But I'll learn the basics here hopefully

#

Is it possible to write a wallpaper switcher app for desktop?

#

In Python of course

hearty heath
wraith portal
visual crypt
#

!d api

coarse hearthBOT
#
api
rotund bough
edgy chasm
#

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

small plaza
edgy chasm
#

no

#

wtf is rollup linux

hearty rover
#

Hello

edgy chasm
#

hi

hearty rover
#

Im trying to learn python and i got stuck on something simple... can you maybe help me really quick?

delicate wren
#

what is the issue?

delicate wren
hearty rover
#

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)

delicate wren
delicate wren
#

!e

name = 'World'
line = ''
for char in name:
    line = line + char
    print(line)
coarse hearthBOT
delicate wren
#

or was it a screenshot from somewhere else

hearty rover
#

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 -

delicate wren
#

do you how to get the length of the string?

hearty rover
#

Not yet

delicate wren
#

!d len

coarse hearthBOT
#
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).
edgy chasm
#

!e

name = "World"
line = ''
for char in name:
  line += char
  print(line)
print("-"*len(name))

coarse hearthBOT
delicate wren
#

as for repeating the same character c n times there is multiplication via *

#

(as shown above)

hearty rover
#

Thank you all!

delicate wren
#

(pep8)

edgy chasm
edgy chasm
#

!e

name = "World"
print(f"{name}\n{"-" * len(name)}")
coarse hearthBOT
edgy chasm
#

cool

delicate wren
#

!e

name = "World"
print(f"{name}\n{'':->{len(name)}}")
coarse hearthBOT
delicate wren
#

lol

#
value:fill_character>length
hearty heath
# wicked flicker What's an API?

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.

buoyant dagger
sly pond
#

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

buoyant dagger
sly pond
#

Depends on the needs

buoyant dagger
#

๐Ÿ˜…

#

You don't need 1050 for that

sly pond
#

For what?

delicate wren
#

(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)

wicked flicker
#

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

proper ridge
#
MIT OpenCourseWare

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...

wicked flicker
#

Well, it was on a discount

proper ridge
#

My pleasure.

#

There's also some really really good books on these.

wicked flicker
#

Thanks for sharing

turbid silo
delicate wren
#

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

wicked flicker
#

I just saw a junior/mid Python programer job, and it's salary is around 999-2783 โ‚ฌ after taxes

turbid silo
#

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

delicate wren
#

(I wasn't hallucinating)

wicked flicker
#

My goal is to learn coding to get a well paid job, so I can get a loan to buy myself a house

delicate wren
#

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)

turbid silo
wicked flicker
#

You mean like a Python CSS course?

#

How do I paste my code into the chat?

coarse hearthBOT
#
System Python

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.
wicked flicker
proper ridge
#

!paste

coarse hearthBOT
#
Pasting large amounts of code

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.

proper ridge
#

!code

coarse hearthBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

delicate wren
#

!code

wicked flicker
#

!e print('Hello, World!')

coarse hearthBOT
stuck bluff
#

@lusty hull ๐Ÿ‘‹

proper ridge
#

Sertraline

#

Zoloft

wicked flicker
#

!code

#

py print('Hello, World!')

delicate wren
#

newline right after py

#

first line must be exactly this for it to work:
```py

delicate wren
#

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()
```

wicked flicker
#
name = 'Dominykas G'
age = 29
is_registered = True
print(name)
print(age)
print(is_registered)
stuck bluff
#

@tame leaf

proper ridge
#

I cried watching this movie man.

fair heron
#

@proper ridge did @\Vanity answer the questiong correctly?

fair heron
#

yes

proper ridge
#

Nooohhh hehehe

fair heron
#

seems legitr

hearty heath
#

Waterthing

stuck bluff
#

@graceful burrow ๐Ÿ‘‹

fair heron
#

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

proper ridge
#

You should use COSTAR prompting structure. Maybe it'll work better?

fair heron
#

demo

hearty heath
#

"Woke" originates from AAVE I think yeah

fair heron
proper ridge
#

Yeah

hearty heath
#

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.

proper ridge
#

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.

fair heron
stuck bluff
#

@jagged raft ๐Ÿ‘‹

hearty heath
#

Give me your money and I will safely dispose of it for you

delicate wren
#

@tame leaf
would non-fungible humans be fungi resistant pithink

#

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

stuck bluff
#

@elfin saffron ๐Ÿ‘‹

delicate wren
#

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

stuck bluff
#

@devout elk ๐Ÿ‘‹

devout elk
#

hi

delicate wren
thin lintel
north locust
odd talon
#

We live in a society.

north locust
#

luxembourg is very rich nation

odd talon
#

Where Iran

north locust
odd talon
north locust
#

by "fifth richest"

odd talon
#

I just heard rich and assumed the usual term for "rich"

buoyant dagger
odd talon
#

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...

Release Date

To be announced

โ–ถ Play video
#

But what about this game

wicked flicker
#

What's up folks?

tame leaf
wicked flicker
#

I've been practicing control flow right now

tame leaf
umbral rose
wicked flicker
#

A little bit ๐Ÿ˜„

#

With all those else, if, elif statements

thin lintel
#

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.

fair heron
buoyant dagger
#

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...

Release Date

To be announced

โ–ถ Play video
mild flume
hearty heath
#

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 jam_cuneiform_this

proper ridge
#

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.

hearty heath
proper ridge
hearty heath
#

@misty sinew you're really quiet

mild flume
#

!stream 327179626306863104

coarse hearthBOT
#

โœ… @tame leaf can now stream until <t:1718289326:f>.

hearty heath
misty sinew
hearty heath
#

Is your rabbit called Hemlock?

#

Majestic! ๐Ÿฐ

stuck bluff
#

@slow cargo ๐Ÿ‘‹

slow cargo
#

is the voice channel also broken for you guys?

stuck bluff
#

!voice

coarse hearthBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

slow cargo
#

no but like discord broken

#

its stuck on RTC connecting

mild flume
#

Might be a location thing

#

Thinking

#

Try refreshing the client

proper ridge
#

@tame leaf

#

@tame leaf

#

Guess what.

hearty heath
#

Ever heard of black pudding?

proper ridge
#

It's blood in the form of pudding?

#

Eww.

mild flume
#

Pudding isn't a dessert in this case

misty sinew
hearty heath
misty sinew
#

ok ive fucked my mic

#

nothng is working

#

its on max volume in there

proper ridge
#

Beer sounds like that Viking in modern era

mild flume
#

!kindlings

coarse hearthBOT
#
Kindling Projects

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.

hearty heath
#

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? pithink

mild flume
hearty heath
#

Sorry, you're going to what? ๐Ÿคจ

ornate knot
#

hello hello

proper ridge
#

You think you can block my shtoyle?

#

You can't take my data haha.

#

zzzhhhh poooww kaaakhhh

ashen willow
#

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")

tame leaf
#
like this 
coarse hearthBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

hearty heath
#

```py
like this
```

ashen willow
#

'''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")'''

hearty heath
#

The ` key is usually above the tab key on your keyboard

ashen willow
#

^^^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")ยฐยฐยฐ

tame leaf
#

```
```

hearty heath
ashen willow
#

```
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")
```

hearty heath
ashen willow
#

```
```

tame leaf
#

\

ashen willow
#
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

mild flume
ashen willow
#

'''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)
hearty heath
#

Idk don't worry about it ๐Ÿ˜„

mild flume
#

!paste

coarse hearthBOT
#
Pasting large amounts of code

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.

ashen willow
delicate wren
#

@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

mild flume
#

Is the listener just polling constantly?

delicate wren
#

accept_async hangs

#

it wakes repeatedly

#

this breaks on async-std but not async-net version 2

#

it's websockets

mild flume
#

Ah right right

delicate wren
#

there is a nuance to how async-tungstenite polls the stream

#

which might be the issue

#

not sure

#

async-net version 1 works too

mild flume
#

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

delicate wren
#

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

mild flume
#

Makes the most sense

hearty heath
#

Same

delicate wren
#

also async-tungstenite targets async-std as its main compatibility thing

mild flume
#

Gotcha

delicate wren
#

(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

hearty heath
#

I feel like ADHD, Tourette's, and OCD are related in some way in the brain ๐Ÿค”

delicate wren
mild flume
#

That sounds likely

delicate wren
#

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.

mild flume
#

Slightly reduced polling rate yeah

delicate wren
#

it seems to rely on something happening between two polls yet still busy-wakes

hearty heath
#

The internet? ๐Ÿ˜„

#

Back later ๐Ÿ‘‹

delicate wren
#

I don't work on UIs apart from Web

mild flume
#

Fair

proper ridge
#

!e

binary = format(5, '05b')
print(binary)
print(reversed(binary))
coarse hearthBOT
terse sierra
#

howdy doody

delicate wren
mild flume
#

You're just that good

delicate wren
#

the thing is only a bit faster than a million messages per second

terse sierra
#

was that Ramstein lyrics ?

thin lintel
delicate wren
#

"optimal" being how much the underlying library's throughput is

mild flume
#

True. What're you creating?

tame leaf
terse sierra
#

little round managable poops

mild flume
#

It is convenient

#

Same with guinea pigs

terse sierra
#

did you tain for litter box

tame leaf
tame leaf
delicate wren
#

depending on representation, either distributing outgoing messages or multicasting

mild flume
#

So it's meant to be stress testing

tame leaf
terse sierra
#

wild bunnys love dandelions

tame leaf
delicate wren
#

one of the implementations behaves somewhat cursed for whatever reason
1 stream: 2s
2 streams: 8s
3 streams: 64s

tame leaf
delicate wren
#

it used to be one of the fastest ones I had, idk what broke

#

exponential would be 32s

thin lintel
tame leaf
terse sierra
#

attack cats

delicate wren
#

oh, okay, so it was that same bug again

#

the thing is fine

wicked flicker
#

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',
        )                       
delicate wren
#

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

ashen willow
#
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',
        )                       
wicked flicker
delicate wren
#

call to the function should be outside the function itself in this case

wicked flicker
#

Thanks Alisa

#

It worked

wispy estuary
#

Hi

tame leaf
solid fiber
#

cute bunny

odd talon
#

!e

funny_nan = {
  int('1') : 'It found me',
  float('nan') : 'It found me',
}

print(funny_nan[int('1')])
print(funny_nan[float('nan')])
coarse hearthBOT
misty sinew
#

hlo

north locust
misty sinew
#

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:(

peak grove
#

@thin lintel @stuck bluff Vc2?

#

or 1

thin lintel
#

not now, sorry, headache

wintry sparrow
#

Stop worrying about what other people have, unless you're going to help them

hearty rover
#

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")

stuck bluff
#

!e py print('0' == 0) print(0 == 0)

coarse hearthBOT
hearty rover
#

Thank you!! ๐Ÿ™‚

stuck bluff
#

I would also investigate the use of random.choice.

hearty rover
#

Oh yeah im sure there is much better alternatives
im just following the course for now

willow girder
#

hello guys

#

I have problem in importing file in python

floral notch
#

Python imports are a breeze for bingchat lol

stuck bluff
#

Howdy howdy.

#

Sorry, no Optal, here.

#

@wind ridge You've got a non-negligible amount of noise coming from your end.

wind ridge
#

sorry, a 3-d printer is running in the background

misty sinew
#

ํ—ฟ

#

ํ—คํ—คใ…”ใ…Žใ…Žใ…Ž

wind ridge
#

english please

misty sinew
#

์ €

#

ํ•œ๊ตญ์ธ์ธ๋ฐ

#

koay

#

okay

#

sorry

stuck bluff
#

@misty sinew๐Ÿ‘‹

wind ridge
#

how is evryone's day

stuck bluff
#

LX.

stuck bluff
#

Which is good.

north locust
#

interesting call from my viewpoint

#

seems everyone is muted

wind ridge
#

there is much noise on the background

stuck bluff
#

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.

stuck bluff
#

I can type.

north locust
#

lol

#

so ig there is no need for me to join the call

wind ridge
#

there is no one talking atm

wicked flicker
#

Let's stay in voice chat, wait for more people to come

wind ridge
#

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?

buoyant dagger
#

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```
wind ridge
#

your loggin messages?

buoyant dagger
#

Most recent message, yes

wind ridge
#

whats forbidden in the terms, if you log all messages not the latest

buoyant dagger
delicate wren
delicate wren
#

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
buoyant dagger
misty sinew
#

korea`

#

is great

#

I am korean

#

oh~!!

delicate wren
misty sinew
#

?

buoyant dagger
delicate wren
#

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

buoyant dagger
delicate wren
#

you need to prevent spam, not repetition

#

those are very different

buoyant dagger
delicate wren
#

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

wind ridge
#

spam protection you mean

delicate wren
#

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

buoyant dagger
delicate wren
#

anything that accesses the same data in a way that's potentially conflicting

proper ridge
#

Greetings Alisa, didn't see you join. Apologies.

delicate wren
#

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

wind ridge
#

how many messages does it remember?

#

like if 2 poeple spam in the channel does it detecxt the spam?

delicate wren
#

"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

wind ridge
#

which of the 2 do you prefer? human resource machine or turning compete

delicate wren
#

Turing Complete is more in-depth

#

and provides more options to build on top of what you've made previously

wind ridge
#

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...

Price

$12.99

Recommendations

6007

Metacritic

73

โ–ถ Play video
#

I'm young and want to learn programming in a good but stil fun way

#

I game to much

delicate wren
wind ridge
#

yeah, so for a proggramer based game you say turning complete

delicate wren
#

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

delicate wren
wind ridge
#

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

delicate wren
#

one of the pages is styled to be a printed version of some 90s website lol

wind ridge
wind ridge
#

I wasn't even back tehn

delicate wren
#

8 a.m. during the winter might now have sun, but it's definitely late enough to be morning

buoyant dagger
# wind ridge like if 2 poeple spam in the channel does it detecxt the spam?

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.

delicate wren
buoyant dagger
delicate wren
#

"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

wind ridge
#

no no late acording to chatgpt

stuck bluff
#

@willow cedar ๐Ÿ‘‹

wind ridge
delicate wren
#

this is all very latitude- and timezone-dependent

sly pond
delicate wren
#

for example, Spain where everything is offset by an hour compared to what it's supposed to be

sly pond
stuck bluff
#

@delicate mango ๐Ÿ‘‹

proper ridge
#

Someone hands a burger to Opal after Elon touched it.
Opal: "Ewww it's musky!"

stuck bluff
#

@lapis crest ๐Ÿ‘‹

sly pond
#

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...

โ–ถ Play video
stuck bluff
#

@exotic lava @sharp thunder @shell haven ๐Ÿ‘‹

stuck bluff
#

@errant turtle ๐Ÿ‘‹

sly pond
mortal stone
buoyant dagger
mortal stone
#

[]

#

'[]'

wicked flicker
#
{}
#
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")
mortal stone
#

products =[ {'name'},
]

proper ridge
#

Yeah. This picture is really nice to have an idea of how quantum computing works in terms of the pipeline.

obtuse valve
#

quantum computer = rich man's GPU?????

proper ridge
#

I'm gonna hop off. Cya guys later.

mortal stone
ashen willow
#
for i in aplhabet: print("i - random.randrange(1,2)")

what is the output

clear fox
#

the is no f-string in the print statement

sage mesa
#
print(f" {str}")
#

and not

#
print(" {str}")
stuck bluff
#

@real mirage @halcyon lark @fiery sage ๐Ÿ‘‹

stuck bluff
#

@rich veldt ๐Ÿ‘‹

fair heron
#

@misty sinew here

misty sinew
fair heron
ivory sparrow
#

!e
print(2 + 3 * 3)
print((2 + 3) * 3)

misty sinew
#

/vouch (user) (reason) (stars 1-5)

fair heron
misty sinew
#

Ill show u

#

Like this @fair heron

stuck bluff
#

@open mantle ๐Ÿ‘‹

open mantle
#

Hello ๐Ÿ˜ƒ

pseudo raven
#

๐Ÿ‘‹

delicate wren
#

it will fail if you have too many messages incoming

#

especially across many channels

stuck bluff
#

@gray swallow ๐Ÿ‘‹

misty sinew
fair heron
misty sinew
fair heron
misty sinew
#

@fair heron

fair heron
misty sinew
#

Yes

fair heron
misty sinew
#

Yea

#

Like that

misty sinew
fair heron
#

programically what should this do?

fair heron
misty sinew
misty sinew
thin lintel