#voice-chat-text-1

1 messages Β· Page 25 of 1

craggy sierra
#

yep acctully i'm stuck at my project

ornate knot
#

400+lbs in what exercise?

proper ridge
#

Kindly explain your problem briefly, and send any code that's relevant.

#

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

craggy sierra
proper ridge
craggy sierra
#

need something to do with google cloud

proper ridge
#

Can you kindly explain it in detail?

craggy sierra
#

of course but i would rather to speak about it

#

so np

proper ridge
#

Get voice verified first then.

proper ridge
# craggy sierra

You'll need to discuss stuff with people to meet the message quota.

craggy sierra
#

i'm working on MIT APP Inventor
i need a google api map key
so as im living in iran i'm restriced

mortal stone
#

Question for the chat :

Do you think this is natural or not?

craggy sierra
proper ridge
craggy sierra
#

im trying to lot to not spam

proper ridge
#

So, what is the issue you're having with the API?

#

You can't access it from Iran?

craggy sierra
proper ridge
craggy sierra
#

i think for the 25 apis you don't need to pay something

#

only thing i need is a google api key and it looks its free

proper ridge
#

Iran if I recall correctly is usually region locked for most APIs. You'll have to search to be sure (I'll do that in a bit once I finish a task).

craggy sierra
#

but the only thing is im from iran in registeration i need to put address and ...
i try fakes but at the end i need to fill payment
( i don't need to pay anything but it need )

#

hoof

#

i'm gonna die 😐
35 messages

#

@proper ridge can you talk to me for a while?

proper ridge
#

Don't spam, you're close.

#

I am.

craggy sierra
#

i just need to ..

#

ok lets about ourselvs

#

about myself i'm 19 years

#

@proper ridge can you ask him give me permission ? he is modrator

#

😐

ornate knot
#

@craggy sierra The rules are for somethin Amir

craggy sierra
#

yep i'm following them

ornate knot
craggy sierra
#

btw what you working heiwa

ornate knot
#

Not killing myself jaksjakjs

ember stream
#

Iran API access is rough

#

not sure we could do much to help with that

craggy sierra
#

and need for a favor from a friend take me a api key a

#

and i'll work with that just for MIT APP inventor

#

so it will pass my work 😦

ember stream
#

I hear you, regional blocks suck

craggy sierra
#

and imagine

ember stream
#

I don't think most people would be willing to share API keys with their own names attached to them with someone they barely know, it would make me pretty uncomfortable.

craggy sierra
#

i need to give my project tommorow

#

its my presntation and i didn't do anything and stuck at api :\

ember stream
#

do you just need to put a map or what

craggy sierra
#

yep i can explain my project its so much user friendly actully its free like linux

ember stream
#

well, there are FOSS projects that you may be able to use without regional restrictions

#

they'd do more or less the same thing

#

if all you need is a map widget, it would probably solve your problem

ornate knot
#

See you guys!

stuck bluff
#

@craggy sierra What have we learned?

#

I mean to say, if you're going to do a project with a deadline, make sure you have all your prerequisites in order beforehand.

delicate dust
#

@craggy sierra i'm moroccan wby ??

#

@craggy sierra

#

@craggy sierra r u moroccan i have some question for u about computer engineering

delicate dust
delicate wren
proper ridge
#

❀️

wintry sparrow
#

It's terrible on Linux, not on my windows i dont know why

#

So...

#

Anyone know about networking?

shy rapids
#

wrong server

wintry sparrow
#

Why i cant connect to my Linux through SSH

delicate wren
#

they have no-key API I think

craggy sierra
#

i'll find a way

delicate wren
wintry sparrow
#

So, when i log into the other device, which is indentical, not addresses, but same OS & Network, it just says last login, i'm not actually in to be able to prompt

#

Username don't change

#

Pretty sure i can from my windows

delicate wren
wintry sparrow
#

Yes i login, but im not inside the shell at all, to prompt around in the device

stuck bluff
#

Have we all heard about the latest Adobe bullshit?

delicate wren
#

keypresses are just not getting registered, right? (no text shows up)

wintry sparrow
#

It does not change username

delicate wren
#

why should it?

#

you're providing the username when specifying address to the ssh

stuck bluff
#

Louis Rossmann was...less than happy.

#

Re: the Windows AI/Copilot/Whatever... Spyware is the new normal.

delicate wren
#

> screenshots everything
not sure about security, but that just sounds like a suboptimal CPU usage

stuck bluff
#

People need to stop using Windows.

terse sierra
#

whats a good version of linux

stuck bluff
#

Otherwise this shit is going to keep getting worse.

delicate wren
terse sierra
#

ya

stuck bluff
#

Ubuntu-based distros tend to be fairly good, in my experience.

#

But opinions vary.

#

Boy howdy.

delicate wren
#

ubuntu server is a bit cursed

wintry sparrow
#

Windows is fine, i should probably clarify if windows connect work or not

terse sierra
#

i use that on my raspi and on data stick - ubuntu

delicate wren
#

problem isn't microsoft knowing everything
problem is windows being a security hole at every point

stuck bluff
#

Both.

delicate wren
#

@mild flume
every team at Microsoft now wants its own copilot

thick quiver
#

Nobody owns Linux

proper ridge
#

If the goal is to fine-tune it to me for my experience, there is no need for it to go anywhere beyond my pc.

stuck bluff
#

Your code isn't their property...they're just using it to make stuff that is.

terse sierra
#

can have multiple computer platforms - on net / off net

proper ridge
terse sierra
#

running VPN and such , uses extra cycle meant for something better

mild flume
delicate wren
#

iirc copyright is retained, not re-assigned

stuck bluff
#

Updating, restarting, sneezing in proximity...

#

On!

#

That the latest solar storms didn't wipe out all computing technology and stored information was a major disappointment. @wary fable

delicate wren
#

"if more people start using Windows than stop because of this feature, the humanity is doomed, there is no more point trying to change it for the better"

wintry sparrow
#

You cant believe

terse sierra
#

morning meow-meow @thin lintel

wintry sparrow
#

Im logging into a shut off device now

delicate wren
#

check the IP again

#

make sure you're not just hitting loopback

true valley
#

Hanlon's razor is an adage or rule of thumb that states:

Never attribute to malice that which is adequately explained by stupidity.
It is a philosophical razor that suggests a way of eliminating unlikely explanations for human behavior. It is probably named after Robert J. Hanlon, who submitted the statement to Murphy's Law Book Two (1980). Sim...

stuck bluff
#

The Pied Barber of Hanlon.

wintry sparrow
#

I'm in on my windows but i cant login from my Linux Device

misty sinew
terse sierra
#

oy yoy yoy ! AI spies

wintry sparrow
#

So the problem, is clearly something related to the Linux device, connecting to a linux device

#
  1. Same username, at-least first part

  2. Indentical devices

  3. Something third...

mild flume
stuck bluff
#

If you had an Japanese romance AI, would that be AI ai?

wintry sparrow
#

Regarding security issues with windows, you can't log into my F linux from a linux!!!

Hehe

Maybe you can on parrot...

mild flume
#

Fair

terse sierra
#

The Little Red Hen - did you read it ?

wintry sparrow
#

Have you ever read a config file? πŸ˜„

Not pointed at anybody, but i got to remember that one...

#

Arent got experience till you written sudo mv /path 6000 times

elfin breach
#

if someone wants to see something cursed.

mild flume
wintry sparrow
misty sinew
#

πŸ’°Special Offer!πŸ’° Use our link https://joinnautilus.com/SABINE to get 15% off your membership!

Dyson Spheres are hypothetical megastructures built by highly advanced civilizations around their stars to harness energy. A group of astrophysicists says they have identified several possible candidates… and I think it's not remotely as crazy as it so...

β–Ά Play video
mild flume
wintry sparrow
#

Config file for what? πŸ˜„

mild flume
#

Well messing with registry for one. Config file for one of our tax programs which is an absolute shitshow

wintry sparrow
#

I don't think that's a config file πŸ˜„

.conf

stuck bluff
#

Muscle spasms in your ear?

#

I saw a thing about how tinnitus was actually an externally audible phenomenon. It was bullshit, of course, but it was written so as to have an air of plausibility.

terse sierra
#

swimming in a ocean of RF , maybe its tickling your inner ear ?

mild flume
#

Possible

#

Or bees

fading merlin
#

waoo so many people on the voice chat

wintry sparrow
#

I want to make a game./..

stuck bluff
#

Handle emotions? Like a normal?

true valley
#

If you thought your tinnitus was a problem with your ears, think again--literally. A new discovery about which parts of the brain connect to the auditory centres is shining light on fresh pathways to future treatments.

Dr Kristin Barry is a research fellow at the Ear Science Institute Australia and adjunct at the University of Western Australi...

β–Ά Play video
stuck bluff
#

They're moving April Fools to May. ||They're calling it May Tricks.||

proper ridge
wintry sparrow
#

MMORPG

A Family Game..

thin lintel
mild flume
#

Rust is my current fascination. I'm a hobbyist, though I don't get to program stuff for work unless I force a way to do so

true valley
#

This suggests that tinnitus is the most common type of schizophrenia.

wintry sparrow
#

Ah rust, heard that before, i believe i have to do it in C#

It's more related to business & potential partners

#

Like a "Who you going work for?"

#

Sometimes it's a with

I mean, i like it always to be a with, isn't it

#

I'll take a job now, but so many fake now i'd imagine i cant even convince them i have skills without paper

And when i can, i'm already selling for myself

#

How market is now, how many at your work has zero experience, or education?

#

I have tons of experience, as i develop...

& i've read

#

Maybe not sales experience, but experience in practical

#

Not specific product, then you make it a who do you want to work for?

#

Certificates...

#

Looking for developers for my game, over time..

I want HEART in it...

#

Good Games, comes from the heart

true valley
terse sierra
#

2nd corn flakes joke - its new

raven orbit
#

hi

#

@pseudo raven b-gull went to the doghouse

wintry sparrow
#

How many realms should a MMORPG have?

delicate wren
#

and a half

wintry sparrow
#

How about Six Realms...

raven orbit
thin lintel
terse sierra
#

mmm colonoscopy anesthesia is a amnesic drug - your awake , you cant remember being awake .... oooooooh

thin lintel
terse sierra
#

oinky ?

mild flume
#

How is that ping a green rating

delicate wren
#

it displays packet loss not ping, afaik

terse sierra
#

friday is BBQ day

mild flume
#

Was about to say I think it's a combo but I checked and as soon as it went yellow I had lost 15 packets

#

So you win this round

delicate wren
#

thanks, pricing page, very detailed

mild flume
#

Love it

delicate wren
#

from my understanding, hosted version of their open-source product

#

Pydantic are sponsoring maturin.rs, maybe will use that to speed up stuff

thin lintel
delicate wren
#

is DSL Dutch Sign Language then

#

Pydantic rn seems to be Python-only

#

and so is logfire

mild flume
#

I figured it would be

thin lintel
#

While the more commonly used term is International Sign, it is sometimes referred to as Gestuno,[34] International Sign Pidgin[33] or International Gesture (IG).[35] International Sign is a term used by the World Federation of the Deaf and other international organisations.

delicate wren
#

both Type and type

#
>>> type[type]
type[type]
>>> Type[type]
typing.Type[type]
#

!d typing.Type

coarse hearthBOT
#

class typing.Type(Generic[CT_co])```
Deprecated alias to [`type`](https://docs.python.org/3/library/functions.html#type).

See [The type of class objects](https://docs.python.org/3/library/typing.html#type-of-class-objects) for details on using [`type`](https://docs.python.org/3/library/functions.html#type) or `typing.Type` in type annotations.

Added in version 3.5.2.

Deprecated since version 3.9: [`builtins.type`](https://docs.python.org/3/library/functions.html#type) now supports subscripting (`[]`). See [**PEP 585**](https://peps.python.org/pep-0585/) and [Generic Alias Type](https://docs.python.org/3/library/stdtypes.html#types-genericalias).
delicate wren
#

switch to lowercase

wintry sparrow
#

You die and go to hell..

Have to play there for certain amount of quest or time

Fucking Hell Players...

delicate wren
#

@mild flume directly unparses to Python Objects, according to docs

#

GIL split means interpreter split

#

and many libraries might assume there's only one interpeter

#

it still is about many Pythons to avoid GIL
just using groups of threads instead of processes this time

#

communication cost is still a thing

#

most impact is for something very deep in the stack

#

i.e. library offloading computation as an implementation detail

#

iirc some already use some C-level APIs to that thing

wintry sparrow
#

What is it with the game, you just have to be part of making it or not...

delicate wren
#

I guess this

wintry sparrow
#

I dont know..

It be a fun game

delicate wren
#

(separate)

#

cygwin and mingw both try to provide posix interfaces

umbral solstice
#

could someone help me

#

pls

#

i need the help

mild flume
#

What's up?

umbral solstice
#

imagne having five int values

mild flume
#

Okay hold on. -closes eyes- Alright, carry on

umbral solstice
#

called:
pole1

#

pole2

#

pole3

#

pole4

#

pole5

umbral solstice
#

i want to check if 1 is smaller then 2,3,4 and 5

#

an

#

d

delicate wren
umbral solstice
#

i want 2 to be bigger then 1 and smaller then 3,4 and 5

#

do you get where i going

#

?

mild flume
#

So sorting?

umbral solstice
#

no

#

i want to check if 1 is the smallest and 5 is the biggest

proper ridge
delicate wren
#

check for is_sorted?

umbral solstice
#

any idea how to do that

#

?

mild flume
#

!e

ham = [1, 2, 3, 4, 5]
pork = [2, 4, 1, 3, 5]

print(ham.is_sorted())
print(pork.is_sorted())
coarse hearthBOT
mild flume
#

Wait, I derp

delicate wren
#

!e

from itertools import pairwise, starmap
from operator import le

def is_sorted(values):
    return all(starmap(le, pairwise(values)))

print(is_sorted("abcde"))
print(is_sorted("adcbe"))
coarse hearthBOT
mild flume
#

Ah, right

mild flume
#

For some reason I thought it was a method

mild flume
#

Nice use of operator

umbral solstice
delicate wren
#

searching by site:cppreference.com is the easiest way to find C++ stuff it it's built-in

proper ridge
#

Is he running again?

delicate wren
#

I find it funny just how much of what sazk calls out as American is also highly applicable to Russia lmao

#

job hopping here is just as normal
... but with less money anyway

terse sierra
#

for W98 , just say how many times you installed it after a major crash

umbral solstice
#

i found the solution in c++ how would i do this in python

    int num1, num2, num3, num4, num5;

    while (not (num1 < num2 < num3 < num4 < num5)) {
        std::cout << "banana\n";
    }
delicate wren
#

where are you getting values of variables from?

#

stdin?

umbral solstice
#

not yet but im only pointing at the while loop its if statment

wary fable
#

A little hint for the ESLs: don't worry about pronunciation, native speakers certainly don't.

umbral solstice
#

but i cant speak the t with my bri'ish accent

terse sierra
#

Brits make good cheese

umbral solstice
#

im not bri'ish tho

wary fable
#

I wouldn't be surprised if this applied to all dialects of all languages. "rear view mirror" for me is "review mra"

wary fable
#

I never pronounce the first T in hot potato. I feel called out by this comic

umbral solstice
#

br'ish be like ho' pa'a'o

terse sierra
#

I gaa da gooo , ova dere ?

umbral solstice
wary fable
#

wuoarder is how long island new yorkers pronounce it

terse sierra
#

listen to Billy Connely , with original heavy scottish accent

#

im gonna use that , drunker dialect

#

almost Italiano inflection @thin lintel

#

sing song

thin lintel
terse sierra
#

theres a word in korean like shoes - sounds same as sex , but only koreans can hear it

wary fable
#

so many people watched code geass for the aesthetic alone lol

terse sierra
#

slight inflection on end of word that is different

#

most korean kids learning english want to know swear words

thin lintel
wary fable
#

the thing about english is that anything can be a swear if you use it just right

tulip grail
#

β€œHAMTARO, Little Hamsters, Big Adventures” revolves around a hamster named Hamtaro. Curious by nature, he ventures out each day to make friends and go on adventures. Watch HAMTARO, Little Hamsters, Big Adventures on the ejunior app : onelink.to/social-media

Ψͺدور فكرة Ψ¨Ψ±Ω†Ψ§Ω…Ψ¬ "Ω‡Ω…Ψͺارو، Ω‡Ψ§Ω…Ψ³ΨͺΨ± ءغير، Ω…ΨΊΨ§Ω…Ψ±Ψ§Ψͺ ΩƒΨ¨ΩŠΨ±Ψ©" Ψ­ΩˆΩ„ Ω‡Ψ§Ω…Ψ³ΨͺΨ± ΩŠΩΨ―ΨΉΩ‰ "Ω‡Ω…Ψͺارو". Ψ§Ω†Ψ·Ω„...

β–Ά Play video
thin lintel
silver obsidian
#

hey

mild flume
#

Hey how goes it

wary fable
#

working on this today

winged tinsel
#

Hey bois

pseudo raven
winged tinsel
#

on 8080s tv

#

then die

pseudo raven
#

πŸ˜„

winged tinsel
#

due to explosion

thin lintel
wary fable
#

currently working on learning both go and git by reimplementing git in go, and I'm going to use bubbletea to try to make my own implementation of lazygit on top of it

thin lintel
#

A sequel, Barefoot Gen 2, was released on June 14, 1986

mortal stone
#

Can anyone help?

#

WARNING: The script whisper is installed in '/home/cyberdevil/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

winged tinsel
#

dimond

mortal stone
#

?

terse sierra
#

captured ?

winged tinsel
#

none

delicate wren
#

I fell off

misty sinew
#
The White House

By Chair Cecilia Rouse, Jeffery Zhang, and Ernie Tedeschi Introduction Supply chain disruptions are having a substantial impact on current economic conditions. Economy-wide and retail-sector inventory-to-sales ratios have hit record lows; homebuilders are reporting shortages of key materials; and automakers do not have enough semiconductors. Ele...

winged tinsel
#

Do not focus on history, recall what thanos said.

mild flume
#

"Those who do not learn from history are doomed to repeat it."

wary fable
#

Those who do learn from history are doomed to watch helplessly as everyone else repeats it.

terse sierra
#

Churchill was a master art forger and boozer

winged tinsel
thin lintel
#

I asked my dad once did grampa talk about the war, he said no. He said there where some who did talk and some who did not

terse sierra
#

many dont want to talk because they saw their friends killed in front of them

mild flume
#

I think that's the main reason grandpa didn't want to

mortal stone
#

WARNING: The script whisper is installed in '/home/cyberdevil/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

pseudo raven
#

brb

mild flume
#

They say gedit but you can use nano or vi or vim or whatever

#

Just need to open it in a text editor of some kind

fervent notch
thin lintel
#

eng subtitles

fervent notch
#

cool where can I find it

#

netflix?

thin lintel
#

maybe

fervent notch
#

there's one yeah πŸ‘€

mortal stone
fervent notch
#

has anyone watched punisher before

mortal stone
#

It's cool

fervent notch
#

indeed

steady finch
#

brb

wary fable
mild flume
#

Weren't there 2 or 3 movies?

wary fable
#

sitting here trying to get hyprland working with my, unfortunately, nvidia graphics. may have to revert to i3

#

Anything to avoid leaving the terminal, while also anything to avoid using the docker cli

rotund bough
#

Docker compose

#

I like my pain raw

wary fable
#

fair enough

#

but then why not just jump straight to manually writing k8s yamls?

#

@mortal stone your mic is leaking

rotund bough
#

yaml is the enemy

wary fable
#

i will always take yaml over csv when doing container orchestration. and yes, i have seen someone use a csv for that.

#
service_name,image,ports,volumes,environment
web,nginx:latest,"80:80,443:443","./html:/usr/share/nginx/html","NGINX_HOST=localhost,NGINX_PORT=80"
db,postgres:alpine,"5432:5432","./data:/var/lib/postgresql/data","POSTGRES_USER=example,POSTGRES_PASSWORD=example"
#

docker-compose.csv is entirely possible lol

#

I may end up writing a go program to wrap docker compose to accept csv files, exclusively for april fools' pranks at work.

#

And also to improve my own ability to use go, of course.

midnight dagger
#

guys i really need to learn EDA for data analysis

#

does anyone here understand EDA even a lil bit?

#

becuz i am not able to understand how to start learning it

mild flume
#

@shrewd sonnet We can hear what you're listening to, we're getting some bleed through

shrewd sonnet
mild flume
#

All good!

rotund bough
mild flume
#

!stream 1127458312938598460

coarse hearthBOT
#

βœ… @midnight dagger can now stream until <t:1717781513:f>.

wintry sparrow
mild flume
#

HA

delicate wren
#

@proper ridge
you can pip install from Git tag

#

git+https://<url>@<tag> I think

proper ridge
delicate wren
#

<tag> being tag, commit hash, branch or some other things

#

if you can git checkout it, you can pip install it

mild flume
#

I do like that feature

#

Tis handy

delicate wren
#
example_pkg[optional_dependency] @ git+https://git.example.com/example_org/example_pkg.git@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#

I think, this works for both pyproject/setup.py and requirements.txt

#

@mild flume
"worked on my jaw"

#

admin created three users for themselves, now all the users are confused

pale pivot
#

cursed csv I saw at work, simplified:

type,name,data,flags
foo,bar,{
"x":"a",
"y":"['hello', 'there']",
"z":{ ... } # nested like, 10 levels deep...
},"['--internal-options=\"--foo --bar\"', '--baz']"
delicate wren
#

oh wait it's not just json

#

tf is going on

pale pivot
#

No clue

#

string with a python list inside it inside json inside a csv

#

Every day we stray a little closer to the dark

delicate wren
#

@proper ridge git+https://github.com/Qiskit/qiskit.git@1.1

#

so there is just no 1.1

#

1.1.0

proper ridge
delicate wren
#

or

#
# tag
git+https://github.com/Qiskit/qiskit.git@1.1.0
# branch
git+https://github.com/Qiskit/qiskit.git@stable/1.1
#

@mild flume it's useful when there is no package to associate requirements with

mild flume
#

Fair

delicate wren
#

so it's just, as always, a replacement for list of many separate pip installs

#

@proper ridge it also ensures compatibility across versions

#

it's more atomic

#

I never source requirements.txt from pip freeze

#

I'd rather have a proper lockfile instead

#

poetry has a lockfile

mild flume
#

As does pdm

delicate wren
#

and pipenv

mild flume
#

@chilly otter Over here you fool

delicate wren
#

pipenv is the closest to being the official pip way, if I understand correctly

rotund bough
#

haven't tried pdm.. poetry was good

#

i used poetry when it hadn't even hit v1 πŸ’€

#

hopefully it has changed by now

delicate wren
#

"doesn't work on termux, not worth it"

#

termux has its own target triple for Rust which poetry (and many other projects) don't understand

#

rye isn't on that page yet

delicate wren
woven lion
#

hey guys im new to coding can u tell me wat repo is this?

#

whats the application?

#

interesting

delicate wren
#

@proper ridge yeah, you need Rust

#

@proper ridge it's building from source so it needs a compiler

#

it's wrapping Rust code somewhere inside of it

#

you installed it outside WSL

#
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#

try pip install again

#

if your CPU started to heat up so much that it feels like it's about to explode, then that means the package successfully found Rust

woven lion
#

@hazy garden u gave me a heartattack mate

#

hahaha

hazy garden
woven lion
#

thanks for waking me up btw
hahaha

hazy garden
#

I'm just surprised to see so few people in the chat πŸ˜„

woven lion
#

seems all sleepy in desk

#

haha

hazy garden
#

I guess so..

woven lion
#

whats uo

#

up

#

u working

hazy garden
#

nothing much, just figuring out how to make the front-end of my Django app using tailwind

woven lion
#

ahh cool

hazy garden
#

what about you??

woven lion
#

training Lora

#

Generative AI

hazy garden
#

uff... thats a time consuming thing

woven lion
#

i mean the datasets are done

#

need to test

hazy garden
#

well good luck with that

#

I'm back to watching some tutorials

woven lion
#

thanks mate
u tooo

hazy garden
#

brb

sly pond
#

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

lilac mural
#

!code

sly pond
lilac mural
stuck bluff
#

```py
print('Your code')
print('goes here.')
```

knotty fog
delicate wren
#

@sly pond there are some very real algorithm that rely on storing plain-text passwords;
yes, suboptimal, but still used and enforced by them being standardised

#

encrypted is not principally better than plain text

#

hashed is

stuck bluff
#

@rugged bluff πŸ‘‹

rugged bluff
#

Hi

rugged bluff
delicate wren
#

!d open

coarse hearthBOT
#

open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)```
Open *file* and return a corresponding [file object](https://docs.python.org/3/glossary.html#term-file-object). If the file cannot be opened, an [`OSError`](https://docs.python.org/3/library/exceptions.html#OSError) is raised. See [Reading and Writing Files](https://docs.python.org/3/tutorial/inputoutput.html#tut-files) for more examples of how to use this function.

*file* is a [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object) giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to `False`.)
knotty fog
delicate wren
#

isn't there something like "rw+" that auto-creates or whatever

#

generally for JSON it's less troublesome (and mostly just as performant) to always open-write-close each time

#

easy naΓ―ve route that is good enough until the system crashes

stuck bluff
sly pond
#

It'

stuck bluff
#

The consensus here is that it's crap.

sly pond
#

s a great quick reference, doesn't explain a damn thing, but good for syntax

stuck bluff
distant void
#

What's the problem

lilac mural
knotty fog
#
import os

with open("test.txt", "a") as file:
    file.write("hello world\n")
    file.close()
delicate wren
#

(that's append-only)

#

file.close() in unnecessary, yes

sly pond
#
    if not os.path.isfile("file.json"):
        with open('file.json', 'a'):
            pass```
stuck bluff
delicate wren
#

!d pathlib

coarse hearthBOT
#

Added in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If you’ve never used this module before or just aren’t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:

delicate wren
#

(os.path is a bit suboptimal)

#

the "real" way to atomically write JSON is actually quite non-trivial and non-portable (I don't remember if Windows allows it)

distant void
#
import os

with open("test.txt","destination","a") as file:
    file.write("hello world\n")
    file.close()
delicate wren
#

open with O_TMPFILE then linkat

#

any file

#

for JSON it's critical because if you write it partially it's always a failure

#

!d tempfile

coarse hearthBOT
delicate wren
#

this uses O_TMPFILE but idk if Python provides an interface to linkat

#

the idea of O_TMPFILE is that the result of open does not have a name in the filesystem and is automatically removed from it on exit/exec

#

so just a more proper temporary file

#

and linkat re-links the file to a different place

#

which is used for atomic file writes so that no process can observe the file in a partially-written state

stuck bluff
#

@long basin πŸ‘‹

delicate wren
#

locally it works as a but across network it behaves as if it's just w with seek+write without truncation on open

midnight dagger
#

Am i muted?

buoyant dagger
#

Why would people use del instead of pop to avoid keyerrors? πŸ€”

#

Oh right, to handle if the keys don't exist

stuck bluff
#

Use del if you don't need the element. Use list.pop if you want the element.

#

@dense bolt πŸ‘‹

vivid crane
#

yo

native prism
#

@rugged bluff

#

@vivid crane

rugged bluff
#

@native prism hi

misty sinew
#

hi @fair heron can u help me

#

@fair heron

fair heron
misty sinew
#

can u do call on dm?

#

i cant do streaming

#

@fair heron

fair heron
#

discribe your issue

misty sinew
#

i have this problems

fair heron
#

did you imort discord

misty sinew
#

and when i write on terminal

#

dont do anything

#

dont activate the bot

#

@fair heron why dont work

#

@fair heron can i give u anydesk

#

and u fix it plls

#

@fair heron

#

pls help me

#

@proper ridge can u help me pls

proper ridge
misty sinew
#

can u do call on dm

#

bcs i cant speak and stream

#

@proper ridge

proper ridge
#

Uhh, it's best if you ask here.

#

In case I don't know the answer, others can help.

misty sinew
#

okk

#

how can i fix?

proper ridge
#

You need to install the packages you want to use.

knotty palm
#

if i try install

proper ridge
#

Oh you don't have pip installed either?

misty sinew
#

and when i do py main.py for activate the bot doesnt work

knotty palm
proper ridge
#

Is this the first time you're using python?

knotty palm
proper ridge
#

Ohh ok. So, you need to set up your IDE first. Then, install python3, pip, and the other needed commands in your terminal.

knotty palm
#

how i set it?

misty sinew
proper ridge
proper ridge
misty sinew
#

what packages i have to install

knotty palm
#

i have this yeah

proper ridge
misty sinew
#

i do it

proper ridge
#

run this in your terminal

misty sinew
#

but dont work

knotty palm
proper ridge
misty sinew
#

on terminal in vs code?

knotty palm
proper ridge
knotty palm
#

how i can install pip

proper ridge
#

py -m ensurepip --upgrade

proper ridge
misty sinew
#

can i give u anydesk? @proper ridge

proper ridge
#

I don't know what that is.

misty sinew
#

oh

#

pls can u come on dm

#

i do u stream

proper ridge
#

ok

knotty palm
proper ridge
#

Don't add space at the beginning.

misty sinew
proper ridge
# knotty palm

I really suggest also watching a video to set up your environment properly. It'll go step-by-step.

proper ridge
#

You need to first install python (which you have already done, you have 3.12), then install pip, and the other commands and then open VS Code.

wintry sparrow
#

Anyone interested in learning coding websites?

low jetty
#

i am doing that currently

wintry sparrow
low jetty
#

cause i genuis

stuck bluff
#

@misty sinewπŸ‘‹

proper ridge
#

Greetings Beer

thin lintel
buoyant dagger
misty sinew
#

hii

proper ridge
lean coyote
thin lintel
proper ridge
#

Way down we go

Home

Take me back to the night we met

Daylight

I can't save us

Beautiful Beautiful boy

Another love

Fairy tale

Summertime sadness

Soon I'll be 60 years old

Experience

Dog days

We only said goodbye with words

In the middle of the night

Is this the place we used to love

Love made me crazy

What is love

Sweater Weather

If I could paint the sky

Paint it black

I'm in the trees

fair heron
#

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

fair heron
thin lintel
#

mahjong

stuck bluff
#

Yes, Osyra, dear?

#

Hello.

#

Hoy hi.

#

I'm doing.

#

Remember to not confuse doing with not doing, else you may get a fine.

#

Kingstone Wall?

#

The name doesn't ring a bell.

#

I'll look it up.

#

Kingston, as in Alex.

thin lintel
proper ridge
#

Osyra lmk when you're back, I think I found a good prompting framework.

stuck bluff
#

Is there a particular one I might recognise?

#

Nope. Sorry. I must be uncultured.

north locust
#

Then I shall be uncultured with you.

stuck bluff
#

I'd have to get inventive. I've nothing at hand, nor the inclination.

north locust
#

It's okay, we're Australians. This band is... Finnish?.

stuck bluff
#

They feel British.

north locust
#

Barium...?

stuck bluff
#

Maybe you're allergic to success.

#

That'll be Facebook's algorithm. Boosting of good news that everyone gets enjoyment from the circle congratulating.

#

Hoy hi.

#

We're a family?

sly pond
#

hello

stuck bluff
#

That's worrisome.

#

Dysfunctional family.

north locust
#

I AM VERY SELF CONSCIOUS OF MY VOICE TYVM (and i got in trouble last time for "speaking with strangers" on discord)

stuck bluff
#

I mean, in general, it's a good idea to be circumspect.

north locust
#

but like

#

I trust all of you

stuck bluff
#

You shouldn't.

sly pond
#

I trust none of you

north locust
#

well to the extent that we can have a normal conversation over a voice call

stuck bluff
#

Mm.

sly pond
#

normal conversation? in this server? hahahaha sure they happen, but to expect it?

stuck bluff
#

It has been my experience that this location is, as locations on the internet go, pretty good.

#

Not without its occasional turns, but...

#

Generally okay.

north locust
#

Well it's Opal the legend.

#

What could go wrong?

proper ridge
north locust
#

famous last words

#

cyaa

stuck bluff
north locust
#

tldr

#

...

#

Okay fine.

stuck bluff
#

Thank you. πŸ˜„

north locust
#

oh jeez it really is long

#

nvm

#

i get the gist

stuck bluff
#

Yes, but it's emotional intelligence shit, which is always good.

north locust
#

lol

#

ermmm

#

idk how to deal with that

proper ridge
#

I'll brb. My laptop is having a hard time running stuff.

misty sinew
misty sinew
#

@proper ridge im still thinking why u use edge lol

proper ridge
#

No specific reason.

misty sinew
#

gotcha

#

@midnight dagger hello, yes, this guy works 24/7 especially at nightt

proper ridge
#

What's up Winter?

#

I am not the person to ask those questions from.

misty sinew
#

Same here, Im just another programmer.

#

We code/program whenever we want

#

@midnight dagger Not that we dont want to answer your questions, but we are not professional enough to completely answer them unlike what we are already doing here. Youre not annoying, youre actually nice. However, keep things relevant as much as possible.

wide nexus
#

@proper ridge do you kwon where can i start from programming

wintry sparrow
#

Anyone know a site to make free logos?

hearty heath
#

Hey @proper ridge πŸ‘‹

#

Not bad, you?

#

Yeah, but I've got ptt on lemon_sweat

wintry sparrow
#

Hello everyone, i wanted to say i made a online code editor, to edit your website, make your website

https://www.youtube.com/watch?v=_T4-v2AffHg&t=3s

It's a good way of learning to code, i really started to learn web-development when i had my own torrent on my moms server

You can web-development in Python as well, i'm trying to make it take inputs in a virtual enviorement (Forum) In Python

You let me know if i can help you..

I can open one for you..

Mvh JackJaconelli...

#

Take it as you will friends....

#

Just made it, big step πŸ˜„

#

Don't say it's just a web hotel...

#

Please... πŸ˜‰

#

I wont write Python i read it some

I have a discord bot, but i mean i'm self learned through books, practical & chatgpt/google/youtube....

#

It does not mean people who write it dont know something

It's not just a web hotel

#

It's always good to learn a language πŸ˜„

proper ridge
#

!e

class Aloha:
  @property
  def name(self):
      return str(self)

aloha = Aloha()
aloha.name
wintry sparrow
#

I write HTML, fluent HTML...

How to make ladies...

coarse hearthBOT
thin lintel
#

@mild flume can I get video perm so I can show kitties to ace?

mild flume
#

!stream 425552190283972608

coarse hearthBOT
#

βœ… @thin lintel can now stream until <t:1718036894:f>.

wintry sparrow
#

Somebody streamed porn ? πŸ˜„

mild flume
#

Yep

wary fable
misty sinew
#

how i program keyboard and which the language i use?

edgy chasm
#

text editor :) (no hidden message)

misty sinew
tender sand
#

i hate linux my screensharing is BROKEN!

edgy chasm
#

screenshare works there

#

GUYS

#

do you remember minecraft EARTH

hearty heath
edgy chasm
#

but guysssss minecraft earth

raven orbit
thin lintel
hearty heath
#

Like, brothel creepers? (this is a kind of shoe)

#

Platform shoes?

raven orbit
hearty heath
thin lintel
obtuse valve
#

doc martens????

raven orbit
obtuse valve
#

i saw

hearty heath
hearty heath
#

Hi Clari πŸ‘‹

#

I didn't hear you sorry

#

Lot's of websites do

wary fable
#

Yes I can boots too

obtuse valve
wary fable
#

My driving shoes

hearty heath
#

What're you going to @obtuse valve?

obtuse valve
#

prom lol

hearty heath
#

I'd just wear a regular suit Β―_(ツ)_/Β―

#

M&S is a good option

#

Just make sure it fits well!

wary fable
#

The couple in the car parked next to mine looks like Sarah Palin and Andrew Tate...but they have a Bernie Sanders sticker...

hearty heath
#

Cya @wary fable

obtuse valve
grim crown
obtuse valve
hearty heath
#

Be right back

obtuse valve
#

that's the one i have lol

wraith portal
#

dont post your dirty laundries here XD

obtuse valve
thin lintel
wraith portal
obtuse valve
#

idk reminds me of this

elder wraith
visual crypt
#

this is beautiful

wraith portal
visual crypt
#

thank you for this turtle shaped city

thin lintel
elder wraith
#

I remember seeing Yacht designer come out with a submarine

#

obviously it's extremely unlikely to happen

wraith portal
thin lintel
#

The slurry wall, made from a mixture of bentonite clay and water that was later replaced with concrete, was designed to prevent water from the surrounding Hudson River from flooding the site, extending up to 80 feet (24 meters) underground and providing foundational support for the skyscrapers.

hearty heath
#

Rabbit's just talking about how he experienced it

thin lintel
sly pond
#

the grilled cheesus

elder wraith
#

20% makes me happy, we have hit peak lifestyle to discuss these things

dull plover
#

#data-science-and-ml ; any help on this one?I am using pyarrow to covert dataframe as parquet format.. however this module goes beyond the 250mb limitation in AWS Lambda..I need to know what can be the alternative approach for pyarrow.. I tried fastparquet library, but stll the size is not matching also, it is throwing an excetion to

stuck bluff
#

@wicked flicker πŸ‘‹

wicked flicker
#

Hello

mild flume
#

Yo

wicked flicker
#

Can't wait to use voice chat πŸ™‚

wicked flicker
#

What are you up to?

mild flume
#

Messing around with Rust

#

Really enjoying it

wicked flicker
#

Rust as in the game or what?

mild flume
#

!stream 514088128315785216

coarse hearthBOT
#

βœ… @wraith portal can now stream until <t:1718114167:f>.

mild flume
delicate wren
#

if you've mounted the virtual drive correctly, just let ubuntu do whatever it suggests as default

#

last time I was installing ubuntu, it was very tempting to choose ZFS

#

but, since it's work PC, I chose not to

#

can Windows boot off ZFS yet?

mild flume
#

We can only dream

delicate wren
#

LVM is fine

#

but just default is okay too

wicked flicker
#

!res

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.

delicate wren
#

it showed the dialogue

#

when did it go

#

there was a dialogue window for user, password, etc.

mild flume
#

!stream 514088128315785216 30M

coarse hearthBOT
#

βœ… @wraith portal can now stream until <t:1718116079:f>.

delicate wren
#

either maturin or just pyo3

mild flume
#

maturin seems to make the most sense

delicate wren
#

I need async which makes it harder

mild flume
#

Ah yeah

#

Oh huh

#

I forgot that maturin is actually by the PyO3 folks

delicate wren
#

I can do Python+Rust async with just raw Linux primitives and a C API so that's not a principal problem

#

implementation in Rust

#

Python needs a C API to bind to

wicked flicker
#

Can you program robots with Python?

delicate wren
#

micropython

mild flume
#

You can indeed. Depends on the robot, though

wicked flicker
#

Let's say a simple vacuum robot

delicate wren
#

if you need it in embedded setting

#

okay so now for the challenge
how do I !d abstracteventloop methods

#

!d asyncio.loop.add_reader

wicked flicker
#

Does Python use something for visuals? Like CSS for HTML?

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
#

!e

from asyncio import loop
coarse hearthBOT
# delicate wren !e ```py from asyncio import loop ```

: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 |     from asyncio import loop
004 | ImportError: cannot import name 'loop' from 'asyncio' (/lang/python/default/lib/python3.12/asyncio/__init__.py)
delicate wren
#

cursed

delicate wren
#

with eventfd

wicked flicker
#

Oh

#

So, if I want to make a calculator and colour it, I need to have a library

delicate wren
#

I'd expect tkinter to provide colouring

stuck bluff
#

@deep niche πŸ‘‹

delicate wren
#

something really broke there

stuck bluff
#

@wide nexus πŸ‘‹

#

@covert urchin πŸ‘‹

wicked flicker
#

Any newbies in voice chat?

stuck bluff
#

These are the associated text channels.

wicked flicker
#

Hi

delicate wren
mild flume
#

Kind of defeats the purpose of the gate

delicate wren
mild flume
delicate wren
#

and topical channels

mild flume
#

Shoot

wicked flicker
delicate wren
#

openSUSE uses zypper on top of rpm

stuck bluff
#

@hollow lark πŸ‘‹

delicate wren
#

use OpenIndiana fully -- that doesn't support anything but nvidia

proper ridge
#

I google stuff, and watch movies. I have a rather niche use-case.

stuck bluff
#

G'nome. *Tips fedora*

wicked flicker
delicate wren
#

drivers for Linux are often either unofficial or bundled with distro itself

#

graphic tablet drives I had bundled with distro

#

it worked better than official drivers on Windows

#

somehow

mild flume
#

!stream 1159603930087575623

coarse hearthBOT
#

βœ… @ocean tinsel can now stream until <t:1718115575:f>.

delicate wren
#

as for touchpad numpad, I had to rewrite that myself

wicked flicker
#

How do you make your program code into a desktop application, which you can launch? Not meaning to launch in the interpreter, but as a normal app.

delicate wren
#

open-source driver was in Python which is kind of, like, not a language for drivers

#

well, "driver"

#

I rewrote it in Rust

wicked flicker
#

My coding knowledge is Rusty, no pun intended

delicate wren
#

@mild flume
::<_>

#

that also, like, allows for ::<Type>::

mild flume
#

Wait what how

#

Why

delicate wren
#

Vec::<i32>::new()

#

most of the time I don't have the laptop plugged in
(I bought it specifically for its battery)

delicate wren
#

so low batter consumption is another reason to rewrite the thing in Rust

#

meanwhile me ordering core i9, which used to be high-end at the time of release, for Linux specifically

buoyant dagger
delicate wren
#

was it majaro or gentoo that had good driver support
or am I confusing that with some another one

mild flume
#

It's for better text readability

#

The higher the frames the more likely it'll start buffering and get all muddy looking

delicate wren
#

@mild flume VSC is doing it by default

mild flume
#

!stream 1159603930087575623 30M

coarse hearthBOT
#

βœ… @ocean tinsel can now stream until <t:1718118252:f>.

mild flume
#
buoyant dagger
sick storm
#

"i like fishing i just don't like the outside part" - @mild flume kek

#

that's what bug spray is for though Hem kek

mild flume
#

But then I have to deal with the spray I mean like

#

Eh

sick storm
#

🀣 what's wrong with the spray

mild flume
#

The smell

sick storm
#

i..... ok fair point.

mild flume
#

Springfield, MO is where the first Bass Pro is

#

Really cool looking building

delicate wren
#

shush
shell u shell

buoyant dagger
delicate wren
#

"defuse that bomb, don't just bring it closer to mic so we all can hear it"

#

@chilly otter where have you been in the past couple years if you still think Rust is overrated

ornate knot
#

well gotta go guys, take care!

misty urchin
#

people rave about python a bunch

mild flume
#

Troof

delicate wren
#

> I never said I hate Rust
as for other languages in that list...

mild flume
delicate wren
#

hate for Go is understandable, it has parts fundamentally broken so much it's hard to imagine it even working

#

but still, a very productive language

#

send to closed channel causes a panic

#
  • A send to a nil channel blocks forever
  • A receive from a nil channel blocks forever
  • A send to a closed channel panics
  • A receive from a closed channel returns the zero value immediately
#

first two I can understand

#

"you didn't check for nil, you're wrong"

#

fourth is okay-ish

#

third, not given the context of close being on sender-side only, is extremely cursed

#

at least sender-only close kind of makes it work-ish

delicate wren
mild flume
#

Truth

delicate wren
#

with extra context:

  • A send to a nil channel blocks forever your problem
  • A receive from a nil channel blocks forever your problem
  • A send to a closed channel panics (you're a sender and you closed it, your problem)
  • A receive from a closed channel returns the zero value immediately, you can check if it's closed using a second return value
#

if adapter+cable is cheaper, adapter+cable

#

which HDMI? which DisplayPort?

misty urchin
#

HDMI has more letters than DP, therefore, more resolution

mild flume
#

It has HD in the name

#

Problem solved

misty urchin
#

VGA?

#

or DVI

midnight dagger
#

Hi guys

#

I came here to distract myself from something

misty urchin
#

but they're backwards compatible

misty urchin
#

right?

delicate wren
#

plug hdmi into dp and see white noise

#

not recommended

midnight dagger
#

I saw someone and suddenly felt heavy in my chest

#

So idk

misty urchin
#

get m-f hdmi cable

#

plug it into itself

delicate wren
misty urchin
#

unlimited thoughput

buoyant dagger
#

Displayport supports many higher refresh rates compare to HDMI

delicate wren
#

I might benefit from higher res, but definitely not higher refresh rate

mild flume
#

I will say, even navigating the desktop with a higher frame rate is an experience

delicate wren
#

my eyes are good at vision but brain isn't

mild flume
#

It's so silky smooth

midnight dagger
#

God

misty urchin
#

what's the current refresh rate?

delicate wren
delicate wren
misty urchin
#

I think I'd notice the difference between 60 and 120

midnight dagger
#

Wtf

mild flume
midnight dagger
#

Nothing

delicate wren
#

I'm not good at visually processing movement even IRL

midnight dagger
#

I should go i don't feel good

misty urchin
#

also I'm going to bed, have a good day/night everyone

delicate wren
#

!d pathlib

coarse hearthBOT
#

Added in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If you’ve never used this module before or just aren’t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:

delicate wren
#

as for Go's equivalent of this -- idk

delicate wren
#

explorer.exe sometimes opens many cmd.exes on start

#

for whatever reason

#

so that might as well be Windows bug

buoyant dagger
delicate wren
#

surprise mechanics

true valley
delicate wren
#

"if you're not doing your own e2ee, your messages are being spied on; and if you are doing your own e2ee, you're probably doing it wrong"

#

Signal seem to be kind of trying to keep e2ee properly supported

#

but I haven't checked, can't be sure

mild flume
delicate wren
#

one small amendment to my venv hack:
you need to open at least a single Python file to make it work

#

remember that thing about deleting activates?

#

to trigger it to recognise taht you want a venv, you need to open a python file

#

because otherwise the extension is lazy

mild flume
mild flume
delicate wren
#

> triangle
Vercel mentioned?

delicate wren
#

I somehow didn't know what this is a logo of

#

"just cut the wire already"

mild flume
#

Supposed to be mountains, right?

delicate wren
#

four-letter-named framework

#

for Vue (can be guessed from colours)

mild flume
#

Nuxt?