#voice-chat-text-0

1 messages Β· Page 92 of 1

rugged root
#

ChatGPT is a natural language thing, not programming

dreamy stump
#

google => dumb

rugged root
#

@mild quartz Unless I'm misremembering

lavish rover
#

!e

import math 
print(f'{math.pi:.44f}'[-1])
rugged root
#

ChatGPT would have to be specifically trained on Code rather than NLP in order for it to be more specific

wise cargoBOT
#

@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.

7
mild quartz
#

thats right its based on a language model

rugged root
#

Yay I remembered a thing

#

@amber raptor "rABBITIsc00l6969!"

#

That's what I assume your password is

#

It's pricey isn't it?

#

Yeah

#

Well now I'm curious

amber raptor
rugged root
#

Is there a way to make glass magnetic

#

Ah okay

molten pewter
rugged root
#

Not even with enough iron mixed into it?

#

32oz

#

Yeah

#

That's not a lot

#

Oh der

#

You can just add magnetic primer

#

Because that's a thing

#

Never knew it was a thing

#

TIL

#

You'd have to have a lot

#

Iron filings

#

That's what they're called still

#

That's different than what you were describing

#

It's possibly treated somehow?

#

Oh actually... what is the flash point of powdered iron

#

Yeah yeah

#

Yeah

#

Per

#

Link it

#

LINK IT YOU FOOL

molten pewter
rugged root
#

Yeah

#

For ceramic

#

Or that

#

"Cosmetic grade"

#

Hmm

#

Oh no no no

#

This is for makeup

#

Interesting

#

So it's likely having to go through additional safety things

pallid hazel
#

ohh.. so im being pimped out to 2 teams now.. have meetings scheduled next week with their managers.. maybe i can have them fight who gets me.. with $$$ of course.

vocal basin
#

imo, thinking that ChatGPT can write programs not "programs" is a fundamental misunderstanding of what the word means (of who the programs are written for and of what's their main purpose)
almost always, programs are written firstly to express intent and are written for humans to read
and only secondly to be executed by the computer
the language may "evolve" into the state where it's auto-generated and "never" read by humans but those languages almost always have a more high-level language they're generated from
making programs "just to make it work" doesn't go far well

rugged root
molten pewter
#
rugged root
pallid hazel
#

well im not doing any of their projects until somekind of agreement is come too..

vocal basin
rugged root
#

Tabnine

#

There's plenty of tools that assist you

#

I thought ChatGPT was still effectively predictive text

#

In very broad terms

rugged root
#

Been meaning to look into Perl

#

No idea why

pallid hazel
#

i want to see AI start showing up in scanning software, so it can be done easily on your phone and what not.. be a big boost for 3d printing and just manufactoring in general.

dreamy stump
#

laravel πŸ‘

rugged root
#

Nah

#

I mean I'd look into these

#

I'd never use them

#

I don't have a strong enough use case

pallid hazel
#

see that hemlock.. i just threw another million dollah idea out into the universe

rugged root
#

So what do you mean, it'd scan a thing and pre-model it for you?

#

I'm fairly certain that's already a thing

hoary olive
#

ye i wasnt joking though....

rugged root
#

Oh fair fair

stuck furnace
#

Perhaps

rugged root
#

@stuck furnace Sup

hoary olive
#

Hello Rabbit, LX, Py.noob

rugged root
#

Way back in the olden days

pallid hazel
#

not all parts come with a model, you can get some here and there.. but to be able to recreate anything by scanning it.. well.. awesome.. i mean anything, broken handle on something.. for the 3d printer crowd.. to scanning a part at a machine shop to replace some old ass equipment that doest have prts etc.

rugged root
#

I do think that's already a thing. May just not be easily affordable

#

And if it isn't a thing, I'd be hella surprised

pallid hazel
#

it kind is.. pricey for sure.. accurate.. not really.

rugged root
#

Any solution is going to need some tweaking for the final product

#

!remind 30M Actually get started on migrating stuff to the annex, you dingus

wise cargoBOT
#
Yeah okay.

Your reminder will arrive on <t:1677256503:F>!

somber heath
#

"Hm. Almost perfect. It just needs a few twerks here and there."
"Um, sir, tweaks?"
"No, Jimmy. Get shaking."

rugged root
#

"BRING ME THE DANCING INTERN"

somber heath
#

"Go. To. Work."

rugged root
#

"If I don't see gyrations within the next 10 seconds, so help me god...."

#

Sure

#

I mean

#

Well, we were on a budget

#

So...

#

Sloth

#

Unless you mean the other kind of bear

#

Ah yeah

#

Bear

#

Big hairy guys ye

#

Perfect for hugging

#

rawr

somber heath
#

Endomorphic and hairy, yes.

#

"Fat"

rugged root
#

having a heavy rounded body build often with a marked tendency to become fat.

#

Yeah

#

No

#

It's part of it

somber heath
#

Mesomorphs are the football jocks

#

Ectomorphs are skinny

rugged root
#

Animorphs are that book series from the 90's

#

Oh god

#

That...

#

Hmm

#

Hmmm

#

Man that series would have been WAY weirder if furries got the powers.

#

Although in fairness, they would intentionally make themselves stuck in the various forms

#

Animorphs were kids who could turn into any animal they have previously touched

#

It was after your time

#

Yep

#

Way before

#

Yeah ya do

#

I mean what?

dreamy stump
rugged root
#

Oh right the show

#

If they were assholes, would they be Scummy Bears?

molten pewter
#

The theme song to Disney’s Adventures of the Gummi Bears is absolutely LEGEN-BEARY. #DisneyPlusThrowbacks #DisneyPlus

For more updates, subscribe to Disney, Pixar, Marvel, Star Wars, and National Geographic.

Disney+ is the ultimate streaming destination for entertainment from Disney, Pixar, Marvel, Star Wars, and National Geographic.

Follow...

β–Ά Play video
rugged root
#

I missed what this was for

vocal basin
#

database is expected to be responsible for durability and stuff

rugged root
#

Durability and longevity

#

It depends, does it need to persist between sessions?

vocal basin
#

given it's temporary, you can just store in memory

rugged root
#

Yep

vocal basin
#

daytimebase?

rugged root
#

God damn it

#

You're lucky you're cute, opal

hoary olive
#

memory is volatile

somber heath
#

uwu

rugged root
vocal basin
rugged root
#

Love that one

#

It sticks with you

#

Just wonderfully silly

hoary olive
#

imagine the uwu command played "uwu" in vc

#

na too many ripped pants πŸ˜‰

rugged root
#

More out of rage than enjoyment, I think

somber heath
hoary olive
#

you could make new sound effects for it though ....

#

even if you wanted to use a database you could use an in memory database

#

so still it gets deleted, also isnt hard at all to get setup

vocal basin
#

depends on specific requirements
if you want to separate data storage from the code, there's Redis and stuff

hoary olive
#

"Hibernate"

#

no need for redis

vocal basin
hoary olive
#

even better

#

simplicity

vocal basin
rugged root
#

Hmm

somber heath
#

@lethal island πŸ‘‹

vocal basin
rugged root
#

So all these projects that tell you to use a repo as a template for a project, like how do you then mark it as a separate git repo so that you're not trying to send it back up to that one

#

If that makes sense

hoary olive
#

H2 would also work

#

not sure if i understand but i think what you want is to initlize a new git repo

#

git init should override

vocal basin
hoary olive
#

Github most likely since its a github feature marking as templates

vocal basin
#

I only know about Gitea which, when you create a repository, allows to chose another one as a template

hoary olive
#

@dreamy stump thats like SQL databases trying to be spread

#

its called sharding

#

TLDR; verticle scalling version of relational databases

dreamy stump
#

!d discord.ext.commands.AutoShardedBot

wise cargoBOT
#

class discord.ext.commands.AutoShardedBot(command_prefix, *, help_command=<default-help-command>, tree_cls=<class 'discord.app_commands.tree.CommandTree'>, description=None, intents, **options)```
This is similar to [`Bot`](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.ext.commands.Bot "discord.ext.commands.Bot") except that it is inherited from [`discord.AutoShardedClient`](https://discordpy.readthedocs.io/en/latest/api.html#discord.AutoShardedClient "discord.AutoShardedClient") instead.

async with x Asynchronously initialises the bot and automatically cleans.

New in version 2.0.
vocal basin
#

It is recommended to use this client only if you have surpassed at least 1000 guilds.

wise cargoBOT
hoary olive
#

~ah forgot to remote the repo name~ dont mind that

vocal basin
hoary olive
#

no im implying its a github feature

vocal basin
#

seemed like the issue was that a naive way to use as a template is to fork the repo

#

which would link back to the original, not use it as template

hoary olive
#

you can do like git init --template=mystupidbackend

#

ah so its not a github feature. ok im an idiot

golden sonnet
#

πŸ‘‹

vocal basin
# dreamy stump !d discord.ext.commands.AutoShardedBot

with this, you will have to move the data into a separate process and somehow communicate with it
because you're already running multiple processes for the bot itself and have near-zero control over the dataflow between them

hoary olive
#

wassup amirreza

golden sonnet
#

how you doin?

dreamy stump
#

I have no problem using autoshardedbot

vocal basin
#

AutoShardedClient uses multiple python processes to handle the interactions

hoary olive
#

Hello mustafa

golden sonnet
#

what's a fun lib to learn?

hoary olive
dreamy stump
golden sonnet
#

how about a lib that works for app dev? πŸ™‚

#

i feel like that would be more useful in learning

hoary olive
#

Kivy, BeeWare are your only options i would presume

golden sonnet
#

mmm

hoary olive
#

imma head out bye

vocal basin
dreamy stump
#

and if I do it solves it for me?

vocal basin
#

why did you pick autosharded in the first place?

dreamy stump
dreamy stump
vocal basin
# dreamy stump

that sentence implies "infrastructure to perform sharding"
so why do you need sharding?

dreamy stump
#

what

#

idk then probably

#

idk if idk

#

so like, I'll have problems with IPC you say?

vocal basin
# wise cargo

reading further into this, I think, you won't have too much problems with autosharding
but if you don't have to do sharding, you probably shouldn't

dreamy stump
#

if I continue using autoshard

vocal basin
#

you can leave it as is

dreamy stump
#

ok then

#

cus I've written the whole bot in it, and still haven't faced any issues cause of that

#

and idk what will change if I change it to just bot

#

maybe I'll have to rewrite something

rugged root
vocal basin
# dreamy stump if I continue using autoshard

it won't gain or lose anything for now
but when you try to gain performance (in the >1000 guilds case), you'll have to do IPC regardless of whether you use this type of sharding or not

vocal basin
#

it all depends on how complex and how frequently used the bot's going to be

dreamy stump
#

idk what IPC is

#

I mean I know the definition

#

but idk how it affects my way of coding

vocal basin
#

interprocess communication (in any form)

#

examples:
connecting to the database or any other service over the socket
pipes
System V IPC (or whatever it's called)
signals

dreamy stump
#

hm

#

ok

#

well I guess by the time I reach 1000 guilds I will know what to do with IPC

vocal basin
#

how do you deploy the bot?

dreamy stump
#

like launch?

vocal basin
#

yes, kind of

#

things like Docker

dreamy stump
#

oh what

#

Docker

#

I don't use Docker

#

at least I believe I don't

#

or you mean like where I host it?

vocal basin
#

do you launch it on the cloud or locally/self-host?

dreamy stump
vocal basin
#

if you don't depend much on the debugger in your development process, you'll probably benefit from using Docker (especially if you work with DBs)
although it does take some time to get used to

vocal basin
dreamy stump
#

the current version that is hosted there is a complete mess, it even uses the old 1.7.3 discord.py

vocal basin
#

1.7.3 is near being dead because of intents or something

dreamy stump
#

ye

#

that's why I'm rewriting the bot

#

and almost finished

#

it works, but I still think of implementing some commands into it

#

I haven't rewritten all of them

#

I am not sure of reaction-role thing, I think of making it, but I used database for it, and now I want to use discord's buttons, and idk if they need db

#

I think they don't

#

And like I need to make it to last longer than bot lifetime

stray swan
#

hey guys im writing a dmenu clone that is for windows and uses the win32 api.

it will be part of my wwm.ahk(windows window manager) autohotkey script, currently it has the functionallity to switch desktops,add them, and delete them.

im trying to make a mix of autohotkey/python.

stray swan
#

there is an existing implementation that is written in c++

dreamy stump
stray swan
#

am i allowed to post github links?

dreamy stump
stray swan
dreamy stump
#

embed isn't necessary tho

stray swan
#

there you go this is a dmenu implementation that is for windows and its written c++

thin breach
vocal basin
dreamy stump
vocal basin
# dreamy stump

buttons themselves can't store all this data; so you'd probably need the same table but with reaction column replaced with button column or something

#

you can attempt to infer most of it though

dreamy stump
#

I guess I gotta try it and see

vocal basin
#

you can infer all the data perfectly from the button press except for what role to give

rugged root
#

VoIP phones might be my new nemesis

vocal basin
rugged root
dreamy stump
#

how do you get the video role?

rugged root
#

@ionic lake They'll be able to help way more than us

rugged root
dreamy stump
#

oh, ok

rugged root
#

James is staff so that's a bit different

#

Wait

#

Nevermind, formerly is

#

But has my trust. I'll grant a probationary then permanent role as I get to know someone and they've shown to be responsible

sharp urchin
#

AI fascinates me the most though

#

!!

#

also hello sir hemlock

rugged root
#

(not to say y'all aren't trust worthy, just that I don't know you much, you know what I mean)

#

Yo

sharp urchin
#

how are you...whatsup

rugged root
#

@formal ember it's demons right? That's how I assumed it worked

sharp urchin
#

Jarvis!! from iron man

#

!lovely

#

planning to make one

#

have heard it takes time ~7months arnd

stray swan
#

this is a preview of my creation (i forked the code from another guy it only did a few things) .

this program doesnt need to be compiled. just edit the source,reload the ahk, and enjoy the new functionality.

well seems like nobody doesnt care. πŸ˜”

stuck furnace
#

@terse needle What're you working on?

#

Ooh, in C?

#

lol

terse needle
#

I can't just write everything in rust 😦

stuck furnace
terse needle
#

temped to use Zig

formal ember
stuck furnace
#

I haven't got around to learning Rust.

terse needle
stuck furnace
#

So are you working on the parsing right now?

terse needle
#

converting expressions to De Bruijn index

#

In mathematical logic, the De Bruijn index is a tool invented by the Dutch mathematician Nicolaas Govert de Bruijn for representing terms of lambda calculus without naming the bound variables. Terms written using these indices are invariant with respect to Ξ±-conversion, so the check for Ξ±-equivalence is the same as that for syntactic equality. E...

#

This means I can eliminate alpha reductions

#

and just focus on beta, eta and delta reductions

stuck furnace
#

Ah got to go get dinner ready, back later πŸ‘‹

stray swan
#

@rugged root can you please give the streaming privelege? i wanna stream some coding, (what i actually want to stream is 'programming' dmenu for windows that is written in python)

hoary olive
#

also could use powertoys

#

but this is also nice

rugged root
#

Why was the programming in quotes there?

#

Howdy yall

#

I've heard people have been liking it

#

@lavish rover I believe you will find that YOU are the hot wort

rugged root
hoary olive
#

isnt wort a liquid?

rugged root
#

I mean hog

#

And wart

#

And for me to be smart for once

hoary olive
#

ah mustafa you play the hogwart game?

#

FOCC "Fear of Camel Case" / seems like a nice term

pallid hazel
#

but thats one thing ive been loving about this propeitary software.. camlesnakecamletoe.. snakecamelsnake-eggs

hoary olive
#

whats camle?

rugged root
#

Back later

stray swan
#

lets gooo

but i can switch between them.hmm ..

stuck furnace
#

Yo

stuck furnace
#

He's doing a phd in reciting Newton's laws now

thin breach
pallid hazel
#

sir Hemmy.. how are your requests library skills?

thin breach
#

who needs requests when you make functions instead?

pallid hazel
#

im trying to save time fixing snmp passwords by logging into a devices webgui..as id have to try all the old stored passwords for each division which is like 50 each.. thats gonna be a lot of code.

#

so far i can login fine, but the endpoint i need to goto is some generated mumbo jumbo and looking up now how to get all the info require to create it dynamically togo that url.. why cant things just be easy

#

eh.. the docs might make easy.. silly me.

ionic lake
thin breach
#

too much popcorn

molten bronze
velvet urchin
placid token
#

CCCCC

placid token
#

Ψ±

#

Ψ±

#

Ψ±

ionic lake
velvet urchin
#

kernel_size=3

#

c = utils.get_hubert_content(hmodel, wav_16k_tensor=wav16k, kernel_size=3)

glad crow
#
curl -X POST "http://10.0.204.11/asset-loaded" -d '{"AssetsLoaded": 1, "PlaceId": 1}' -H "Content-Type: application/json"
<!doctype html>
<html lang=en>
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>The browser (or proxy) sent a request that this server could not understand.</p>
curl: (6) Could not resolve host: 1,
curl: (3) URL using bad/illegal format or missing URL
curl: (3) unmatched close brace/bracket in URL position 2:
1}'
 ^
somber heath
#

@valid grail πŸ‘‹

#

@rain relic πŸ‘‹

#

@whole bear πŸ‘‹

whole bear
#

cant speak

wise cargoBOT
#

Voice verification

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

somber heath
#

@low rain πŸ‘‹

low rain
#

Hii

thin breach
dense nebula
glad crow
dense nebula
glad crow
dense nebula
dense nebula
glad crow
#

my gd internet

whole bear
somber heath
#

@gleaming cloakπŸ‘‹

#

@sonic parrotπŸ‘‹

grim trellis
#

does anyone knows about einops

#

library in python

#

@somber heath have you heard about einops library in python

somber heath
#

I've not.

#

Though I do know it reads sponie when read back-to-front.

#

I'm slightly disappointed the library in question isn't called Ynoops.

grim trellis
#

lol πŸ˜‚πŸ˜‚

somber heath
#

@gleaming daggerπŸ‘‹

icy sinew
#

100 days of code?

somber heath
#

@trim patioπŸ‘‹

trim patio
#

Hi

#

How are you doing?

somber heath
#

They say that time will tell.

#

What I would like to know is what it's telling and to whom.

trim patio
#

I don't have permission for mic πŸ™‚

grim trellis
#

time is relative

wise cargoBOT
#

Voice verification

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

somber heath
#

Time is a relative? Huh. A vague surprise. It's always those closest to you that hurt you the most.

#

Except when it isn't.

trim patio
#

Just green tea πŸ™‚

proud gull
#

Hello my guys!

somber heath
#

@proud gullπŸ‘‹

proud gull
#

whats good this weekend huh?

willow gate
proud gull
#

I am eating a chocolate and working with flask once again

#

yes

#

and you?

#

nice. I am not so advanced, learning it right now.

#

@glad crow can I ask you something about my code? Is pretty short, I dont know why there's an error.

#

Thank you!

#

Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

I have no idea why this occurs until a second ago it worked. This is the code:


# importing libraries
from flask import Flask, render_template, request
from flask_mail import Mail, Message
  
app = Flask(__name__)
mail = Mail(app) # instantiate the mail class
  
# configuration of mail
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USERNAME'] = 'email@gmail.com'
app.config['MAIL_PASSWORD'] = 'blabla'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
mail = Mail(app)
  
# message object mapped to a particular URL β€˜/’
@app.route("/contact")
def index():
   return render_template('contact.html')

@app.route('/send_message', methods=['GET', "POST"])
def send_message():
   if request.method == "POST":
      email =  request.form['email']
      nume=request.form['nume']
      subiect =  request.form['subiect']
      mesaj =  request.form['mesaj']

      message = Message(subiect, sender='email@gmail.com', recipients=[email])
      message.body = 'Email: ' + email + "<br>" + "Nume: " + nume + "<br>"+"<br>"+mesaj

      mail.send(message)
      success = "Feedback trimis!"

      return render_template("result.html", success=success)

if __name__ == '__main__':
   app.run(debug = True)

hoary olive
#

Hello shaken, Opal, AF

#

Ima be honest with you this code sucks
Whats the point of a sync email sending

proud gull
#

It doesnt say. It is saying that the url wasnt found when I run my app.py

vocal basin
vocal basin
proud gull
#

It is a tutorial from 8 months ago

hoary olive
proud gull
#

then should i try something else? like elasticemail?

hoary olive
#

the port from TLS is 587

#

ssl is 465

#

but this completely wrong thought you were reading mail for a sec

#

Gmail SMTP server address: smtp.gmail.com
Gmail SMTP name: Your full name
Gmail SMTP username: Your full Gmail address (e.g. you@gmail.com)
Gmail SMTP password: The password that you use to log in to Gmail
Gmail SMTP port (TLS): 587
Gmail SMTP port (SSL): 465

#

also one thing

#

i hope you arent using your google password

#

because that doesnt work

proud gull
#

haha sorry I just dont care about them that much

hoary olive
#

you have to generate a password from google

vocal basin
#

why tf are SSL and TLS referred as different things

vocal basin
hoary olive
#

@proud gull are you using your google password?

proud gull
#

yea

hoary olive
#

no you cant use that

vocal basin
#

TLS is the modern name for SSL.

hoary olive
#

no no

#

no

#

you have to go into settings>security>generate password

proud gull
hoary olive
#

and then you put the application name

#

and then it gives you a one time password

#

you can never access it again, but thats the only way to log into google from their API

#

they removed that like a few months ago

vocal basin
hoary olive
#

it has like four octets of four charecters each if i remember correctly

#

so a 16L password from google or maybe 12

hoary olive
vocal basin
hoary olive
#

isnt it a successor to SSL? so then its built on top of it? ye then based on

vocal basin
#

TCP isn't a better UDP.

#

TCP is undeniably worse as underlying transport protocol to build VPNs on top of.

#

some applications require less checks

vocal basin
proud gull
hoary olive
#

ah not logged into google on my laptop

#

i'll have to find it only

proud gull
#

Also can it be a business google account too?

hoary olive
proud gull
#

to a bussiness account

hoary olive
hoary olive
#

Wassup bazinga

vocal basin
vocal basin
hoary olive
#

but i mean just use TLS 1.2

#

its more secure - although i heard TLS 2 also is comming or something?

proud gull
#

Oh thats the reason why. it says that the setting I am looking for it's not available for my account

vocal basin
hoary olive
#
  • its TLS 1.3 that comes with HTTP/3
vocal basin
#

SMTPS ("SMTP over SSL") now probably uses TLS 1.2/1.3 anyway
the protocol is was deprecated for reasons other than SSL/TLS security

hoary olive
#

i have barely seen anyone use HTTP/3

#

HTTP/1.x 6.7%
HTTP/2 65.4%
HTTP/3 27.9%
Honestly didn't expect this at all

#

Ex. Discord uses H2 not H3

somber heath
#

@edgy cargoπŸ‘‹

edgy cargo
#

Hi

cunning lake
#

Hi

#

How are you

somber heath
#

@tulip mango πŸ‘‹

edgy cargo
#

how's it going

tulip mango
#

Hey

cunning lake
#

Fine

somber heath
#

@alpine moonπŸ‘‹

cunning lake
#

ok....

proud gull
#

no..it seems I cant manage to get a one time password

vocal basin
#

it's an API key rather than a password, iirc
one setting to allow it and another one to get it

proud gull
#

So should I enable the gmail api?

vocal basin
#

the only time I ever sent something from python via gmail, was with the API key

somber heath
#

I'll be back a bit later.

edgy cargo
#

Hello

#

I have an exercise at school and I can't do that

#

Can u help me

#

Given a positive integer N. Calculate the sum of all proper divisors of N (the proper divisors of N are the divisors that are smaller than N).

#

Please

#

I really need that πŸ₯Ί

somber heath
#

You may wish to investigate the behaviour of the modulo operator, % as it applies to things numerical.

#

It allows you to determine the remainder of a division operation.

lucid blade
#

man it looks quiet in there lol

#

should i join ?

#

asmr silence πŸ˜„

cunning lake
#

is very quiet πŸ˜…

vocal basin
#

playing minesweeper
(losing)

proud gull
#

Nah I am done i am trying to create a contact form for my site and it is really hard.

#

It seems that sending the data from an html form to my email is very hard to do

vocal basin
proud gull
#

till now I was using just html then i used flask

proud gull
somber heath
proud gull
#

basically to send emails

thin drift
#

hi @somber heath

proud gull
#

automating the emails is hard. thats the part where i am stuck

#

I dont know how to do it or in which way

vocal basin
#

iseven has valid reasons to exist

#

"valid"

#

modulus doesn't do necessary all checks
because it's float

#

is inf even? is NaN even?

#

those checks

proud gull
#

the problem is that if i want to send the email using php I need a domain, I am pretty sure

vocal basin
#

same for number exceeding int limits for JS

#

for some reason, my understanding of "contact form" is that the user sends some info to the website and isn't expected to receive anything automatically
"thanks for feedback" email may be just replaced by "thanks for feedback" page

#

reverse DNS thingy

#

IP to domain

vocal basin
vocal basin
#

when did you send it?

#

that's a lot of time ago

#

they only recently added

#

less than two years ago

#

The IP address sending this message does not
have a 550-5.7.25 PTR record setup, or the corresponding forward DNS entry
does not 550-5.7.25 point to the sending IP. As a policy, Gmail does not
accept messages 550-5.7.25 from IPs with missing PTR records.

#

(sorry for broken formatting)

somber heath
#

I'm imagining a scenario where you've got this computer sitting in some basement of some office building plugged into the internet by someone set to just send out these spam emails, but then the person who sets it up dies and it just keeps going sending out all these spam e-mails to addresses it finds.

#

S7, yes.

#

and the people keep sending money to this account that just gradually gets bigger and bigger

#

50 years down the track, the feds eventually find the computer and the account and are like...

#

"Hm...Why is this computer sending out scam emails? It's not even sending the money anywhere..."

proud gull
#

any free hosting website?

vocal basin
#

paid services may provide free plans/trials
although they kind of want you to pay them

#

oh hell I remembered some awful thing

#

smtp.js

vocal basin
proud gull
vocal basin
#

I'd never recommend that thing

#

iframes still happen

vocal basin
vocal basin
#

<frame> is

#

<keygen>

#

This mechanism is designed for use with Web-based certificate management systems. It is expected that the <keygen> element will be used in an HTML form along with other information needed to construct a certificate request, and that the result of the process will be a signed certificate.

#

so to generate .csr or something

#

.

lucid blade
somber heath
#

I think I've since seen the video in question. The "extra head" is a foreleg.

proud gull
#
<?php
            // Retrieve form data
            $name = $_POST['nume'];
            $email = $_POST['email'];
            $subject = $_POST['subiect']
            $message = $_POST['mesaj'];

            // Create email message
            $to = 'andreilioantudor@gmail.com';
            
            $body = "Name: $name\nEmail: $email\nMessage: $message";
            $headers = "From: $email";

            // Send email
            if (mail($to, $subject, $body, $headers)) {
                echo 'Thank you for your message!';
            } else {
                echo 'Sorry, there was an error sending your message.';
            }
            ?>
              

this is my php code and this is the error I get:
Parse error: syntax error, unexpected '$message' (T_VARIABLE) in /storage/ssd4/409/20361409/public_html/index.php on line 468

sour willow
#

dont use mail()

warped raft
#

hey I am downloading a project from Vaadin but it is not having the main class
what should I do
This is Java if anyone has knowledge

proud gull
#

I found the errors

#

I was missing 2 semicoloumns

warped raft
vocal basin
#

what project are you downloading?

sour willow
#

also you leaked yoyr email? @proud gull

warped raft
#

it's like a web app

proud gull
#

Does the html have to be before the php?

sour willow
#

but code will still not worj

vocal basin
sour willow
#

$msg $subj dont have an assigned valur

#

its null as the valur

warped raft
#

i have to download the main framework then work on it

vocal basin
#

which of these two?

proud gull
#

@sour willow they get it from my html form

vocal basin
proud gull
#

Or doesnt it?

warped raft
sour willow
#

ahhh i hate typing on mobile

vocal basin
warped raft
#

can u send me the link of the current page

proud gull
# sour willow but when you open the website thr form hasnt submitted anything

so what should I do? right now I just tried it once again and it says Notice: Undefined index: nume in /storage/ssd4/409/20361409/public_html/index.php on line 465

Notice: Undefined index: email in /storage/ssd4/409/20361409/public_html/index.php on line 466

Notice: Undefined index: subiect in /storage/ssd4/409/20361409/public_html/index.php on line 467

Notice: Undefined index: mesaj in /storage/ssd4/409/20361409/public_html/index.php on line 468
Thank you for your message!

vocal basin
proud gull
#

But i think it is because I didnt get to type anything in my form so the variables didnt get assigned any strings

lucid blade
vocal basin
warped raft
#

i was here

vocal basin
hoary olive
#

also for gods sake dont use mail()

#

it sucks - use phpmailer or a better alternitive

warped raft
#

how it should work is that like Spring Boot but better

hoary olive
#

ye i know but , im saying the mail() sucks

#

using php mailer is just adding phpmailer to compositor

vocal basin
hoary olive
#

and changing some variables

warped raft
proud gull
#

So @lucid blade I should still use post right?

hoary olive
#
Many PHP developers need to send email from their code. The only PHP function that supports this directly is mail(). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments.

Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the mail() function directly is just plain wrong, if not unsafe!

The PHP mail() function usually sends via a local mail server, typically fronted by a sendmail binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the mail() function should be avoided when possible; it's both faster and safer to use SMTP to localhost.

Please don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that you should look at before rolling your own. Try SwiftMailer , Laminas/Mail, ZetaComponents, etc.
hoary olive
#

if you use GET its very easy to change the data

lucid blade
#

; reboot;

vocal basin
#

if you send an email to whatever user asks to send to, then ehhh

#

some checks needed

proud gull
#

$name = isset($_POST['nume']) ? $_POST['nume'] : '';
$email = isset($_POST['email']) ? $_POST['email'] : '';
$subject = isset($_POST['subiect']) ? $_POST['subiect'] : '';
$message = isset($_POST['mesaj']) ? $_POST['mesaj'] : '';
is this better?

hoary olive
#

no no

#

do a

lucid blade
#

NO

#

do what these are telling you ^

#

phpmailer

hoary olive
#

let me just give you my own code

lucid blade
#

lol πŸ˜„

hoary olive
#

so you get a feel of how to do it properly

#
if (isset($_POST['first-name']) && !empty($_POST['first-name'])) {
  $upFirst = $_POST['first-name'];
  $upLast = $_POST['last-name'];
  ....
}
proud gull
#

oh i am so stupid. Thank you @hoary olive and I am sure I am going to understand sometime

vocal basin
lucid blade
#

also so people dont exploit your mailer and you become used as part of a botnet / spam campaign

hoary olive
#

if you can do more issets, and !empty() then do it, to fully be sure the data has been provided

#

also preferable wrap the code in this sanatize()

#

this just removes some nasty inputs that you might not need

#

updated code:

    public function sanatize(string $var): string
    {
        $var = htmlspecialchars($var);
        $var = trim($var);
        $var = filter_var($var, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        $var = str_replace(' ', '', $var);
        $var = addslashes($var);
        $var = stripslashes($var);
        return $var;
    }
#

^^ this works way better use this one

vocal basin
#

for contact form I'd suggest just putting input users give you in some data storage instead of mailing it anywhere
and for "thanks for contacting us" message, just redirect to a page saying it instead of replying with an email

#

or is "using email" in the requirements?

hoary olive
#

so then how i would do it is

lucid blade
#

^

hoary olive
#
        $first_name = $loadFromUser->sanatize($upFirst);
        $last_name = $loadFromUser->sanatize($upLast);
        $email_mobile = $loadFromUser->sanatize($upEmailMobile);
        $password = $loadFromUser->sanatize($upPassword);
``` sanatize is just in a class so you have to define $loadFromUser your self ,
lucid blade
#

add to db build mailing list

cunning lake
proud gull
#

// Retrieve form data
if (isset($_POST['nume']) && !empty($_POST['nume'])
&& isset($_POST['email']) && !empty($_POST['email'])
&& isset($_POST['subiect']) && !empty($_POST['subiect'])
&& isset($_POST['mesaj']) && !empty($_POST['mesaj'])) {
$name = $_POST['nume'];
$email = $_POST['email'];
$subject = $_POST['subiect'];
$message = $_POST['mesaj'];

          }

is this okay?

vocal basin
cunning lake
#

Good to know I think

vocal basin
#

"yeild" wtf

hoary olive
vocal basin
# cunning lake

!e

import keyword
print(keyword.kwlist)
print(keyword.softkwlist)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
002 | ['_', 'case', 'match']
hoary olive
#

also pro tip for your emails have your inputs like this

                        <input type="text" name="email-mobile" id="up-email" autocomplete="email"value="<?= (isset($_POST['email-mobile'])) ? $_POST['email-mobile'] : ''; ?>"> 
#

8080 i used to do php years ago, i left it though this is very old code

vocal basin
#

!e

print(len(__import__('keyword').kwlist))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

35
hoary olive
cunning lake
vocal basin
hoary olive
#

i learned php as my first language, and i will never regret that, i feel like its just an awesome language. its that hard, and i got to learn coding fundementals from it. But now i do java(spring boot). I never used Python for webdevelopment so can't say anything there

proud gull
#

you already got me stuck

#

after my last message I read all you sent and I didnt understand almost anything

vocal basin
#

no try-raise-except-finally

somber heath
#

@verbal laurelπŸ‘‹

hoary olive
verbal laurel
vocal basin
#

and extra added: false, true, yeild

proud gull
cunning lake
#

ok

vocal basin
somber heath
#

@lunar geodeπŸ‘‹

lunar geode
cunning lake
#

I need to learn the fundamentals I think

proud gull
#

@hoary olive i really appreciate the fact that you are helping me, even though i think I am a lost case

vocal basin
#

I use for APIs not for templates

somber heath
lunar geode
hoary olive
#
<?php
function sanatize(string $var): string
{
    $var = htmlspecialchars($var);
    $var = trim($var);
    $var = filter_var($var, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    $var = str_replace(' ', '', $var);
    $var = addslashes($var);
    $var = stripslashes($var);
    return $var;
}

if (
  $_SERVER['REQUEST_METHOD'] === 'POST'
  && isset($_POST['nume']) && !empty($_POST['nume'])
  && isset($_POST['email']) && !empty($_POST['email'])
  && isset($_POST['subiect']) && !empty($_POST['subiect'])
  && isset($_POST['mesaj']) && !empty($_POST['mesaj'])) 
{
  
  // Retrieve form data
  $name = sanatize($_POST['nume']);
  $email = sanatize($_POST['email']);
  $subject = sanatize($_POST['subiect']);
  $message = sanatize($_POST['mesaj']);

  // Create email message
  $to = 'andreilioantudor@gmail.com';

  $body = "Name: $name\nEmail: $email\nMessage: $message";
  $headers = "From: $email";

            // Send email
  if (mail($to, $subject, $body, $headers)) {
    echo 'Thank you for your message!';
  } else {
    echo 'Sorry, there was an error sending your message.';
  }
}
?>
#

still you should use PHPMailer

lucid blade
#

tidy

proud gull
vocal basin
cunning lake
#

This is what I try to learn

lucid blade
#

removes shitty input

#

coursera has good python courses

cunning lake
#

you heard about this course ?

lucid blade
#

they're free too πŸ˜‰

#

no

#

anything paid id avoid

vocal basin
proud gull
#

@hoary olive wow really appreciate it should I try it? Omg I am so excited. I'll try it and I will let u know. So now it should really send the email, shouldn't it?

cunning lake
hoary olive
# proud gull Wow perfect I understood everything except the sanatize function what does it?

Ok the sanatize function
=>
htmlspecialchars => imagine i have a <h1> in my code, if you send this email to a user, the HTML will have this paresed <h1> within it meaning the text will get bigger so we use htmlspecialchars to remove this a render <h1> as <h1>
trim => removes white spaces :
filter_var => this is a PHP function which basically just fully sanatizes it you also can have other params, its white compliced
str_replace => doing what trim() was doing so you can remove it
addslashesh => if you have it's it will make itit\'s because it can escape a string
stripslashesh => does the exact opposite of addlashesh()

lucid blade
#

just b/c u cant tell the quality of the course

hoary olive
#

so because i was doing something weird back then i would basically repeat some functions and do the exact opposite of some functions (dont ask why)
so then you can remove some of these

lucid blade
#

coursera has a multitude of free open university level courses

#

from some of the best universities

hoary olive
#

$_SERVER['REQUEST_METHOD'] === 'POST' => checks if its a post request so the user cant make a request to that
isset($_POST['nume']) && !empty($_POST['nume']) checks if a value exists
sanatize() just removes this useless clutter from the string that can latter on create issues

lucid blade
#

all the notes videos and materials

#

stops being a coursera shill

hoary olive
#

https://github.com/PHPMailer/PHPMailer
^^ PHPMailer is amazing at explaning what it does and how it works, just check that out, and put the password that i taught you how to generate instead of the password field

proud gull
#

I did not get the email using mail

hoary olive
#

i saw this course on bitcoin on coursera and it was basically this woman reading plain boring text
tldr; i learnt nothing lol

lucid blade
#

check spambox?

hoary olive
#

also mail doesnt work on a local env , thats why i say dont use it

lucid blade
#

the engineering ones are usually quite good

hoary olive
#
The PHP mail() function usually sends via a local mail server, typically fronted by a sendmail binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the mail() function should be avoided when possible; it's both faster and safer to use SMTP to localhost.
proud gull
#

I got it in promotions but something happened: it removed all of the spaces from the message

#

so it is likeamessagewithoutspaces

hoary olive
#

ye because i sanatized it remove trim() and str_replace() should fix it

#

i used to have a social network, so i did this lol

#

You used Adobe CF or programmed in CF?

somber heath
#

If it was typed, wouldn't they just be washing their hands?

proud gull
#

How can I do so instead of printing message sent successsfully I render a thank you page?

hoary olive
#
Validates email addresses automatically
Protects against header injection attacks
Error messages in over 50 languages!
DKIM and S/MIME signing support
Compatible with PHP 5.5 and later, including PHP 8.2
Namespaced to prevent name clashes
```cool phpmailer feature
hoary olive
#

werid why out of any language you picked php to send emails but OK

proud gull
vocal basin
#

(I might have missed the answer, but I still don't understand why use mail at all)

hoary olive
#

oh if your hosting

#

you have to tell the hosting provider to enable mail()

proud gull
# hoary olive ```header("Location: profile.php/");```

what if it is an html page? i have this error: Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd4/409/20361409/public_html/index.php:1) in /storage/ssd4/409/20361409/public_html/index.php on line 495

hoary olive
#

whats on line 495? (post 10 lines atleast)

proud gull
#

// Create email message
$to = 'andreilioantudor@gmail.com';

      $body = "Name: $name\nEmail: $email\nMessage: $message";
      $headers = "From: $email";
    
                // Send email
      if (mail($to, $subject, $body, $headers)) {
        header("Location: result.html/");
      } else {
        echo 'Sorry, there was an error sending your message.';
      }
    }
    ?>
#

its what you have sent

hoary olive
proud gull
#

what would be the difference?

hoary olive
#

this exists, you can also use die, same exact thing

proud gull
#

okay got it

proud gull
hoary olive
#

php docs were awesome , because you could see other peoples codes aswell, such a cool unique feature

proud gull
#

it says that i cant modify the headers at all I think it is due to my hosting

vocal basin
#

Nextcloud

hoary olive
somber heath
#

@sand coralπŸ‘‹

sand coral
#

hello

proud gull
#

$URL="http://yourwebsite.com/";
echo "<script type='text/javascript'>document.location.href='{$URL}';</script>";
echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">';

#

I think i can do it like this

vocal basin
#

I programmed in go once
I rewrote a python script and got around 100~1000x speed increase

noble solstice
#

Hello Guys!

lucid blade
#

yeh thatll work

#

its a bit jank lol

noble solstice
proud gull
#

why do you sound like Hamza? @lucid blade

cunning lake
#

!e functions

wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'functions' is not defined
hoary olive
#

you can change output_buffering @proud gull not sure if it work but you can try

vocal basin
wise cargoBOT
#

A series of statements which returns some value to a caller. It can also be passed zero or more arguments which may be used in the execution of the body. See also parameter, method, and the Function definitions section.

hoary olive
vocal basin
proud gull
hoary olive
#

go is nice, but i dont think it has the best language design IMO

vocal basin
hoary olive
proud gull
#

I think I managed to do it

vocal basin
#

Malbolge, the best one: neither readable nor writeable

hoary olive
#

Man Go's concurrency is on another level

vocal basin
#

BF is easy to write but not to read

proud gull
#

@lucid blade are you Hamza?

vocal basin
#

from what I've heard, Malbolge has no known way of implementing anything in it other than brute force

proud gull
#

Do you know you sound very much like him?

hoary olive
#

But then their package system is like a namespace, its not really a package. dont get the point of it tbf
also i feel like Testing => Global. testing => private is stupid

#

you used applets before?

noble solstice
#

what is ur job @lucid blade ? in which tech u work?

proud gull
#

@hoary olive thank you so much for everything I got to go for now ! I appreciate you too @lucid blade Have a good day guys!

hoary olive
#

what isn't lol

vocal basin
hoary olive
#

im interested to see what algo you wanna come up with

vocal basin
#

certified

vocal basin
hoary olive
#

especially because you arent willing to see other peoples math

vocal basin
#

there have apparently been some breakthroughs in the minesweeper algorithms recently

hoary olive
#

it has algo behind it, Harvard and some other uni's have papers on how it works

#

35% on advanced win rate i think from minesweeper.online or smth?

vocal basin
hoary olive
#

ye but its not that good

#

how usual aimbots work is they use network requests to get player location

#

so wall bang them

#

but you will prob get banned from it

#

having a level 1 account on a random game, having 99% accurecy is not normal lol

#

thats impressive

#

Hello MagicalGirl

vernal geode
#

how i can speak in this chanel

vocal basin
#

!voice

wise cargoBOT
#

Voice verification

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

hoary olive
#

i would presume R6 or maybe Fortnite could ban

#

because they have decent anti cheat

vernal geode
#

!voice

hoary olive
#

Fortnite for some reason doesn't never bans across ip addreses - so like on an alt if you use cheats theres no issue (or atleast wasnt)

vernal geode
#

yes

vocal basin
#

I've only been approached once for help on a project of that sort
although only for the more legitimate part which is something like DRM (implementing not circumventing)

vocal basin
vernal geode
#

"You can run DOOM on ChatGPT."

vocal basin
#

"for research purposes"

vernal geode
#

is so interesing

molten pewter
somber heath
vernal geode
#

idk

somber heath
#

@cold spindle πŸ‘‹

#

@grand plover πŸ‘‹

vocal basin
#

yay top 1000 on minesweeper.online

#

finally, purple

somber heath
#

@grim steppe πŸ‘‹

vocal basin
#

Belarus still has death penalty

#

(iirc)

#

some evidence points in the other direction (I won't search for source now):
people commit worse crimes if threatened by death penalty
(more to gain by getting rid of witnesses, for example)

#

@somber heath
meanwhile <where I live, the country>: promotes domestic crimes on the state level

hoary olive
#

i recall a prison that still does lethal injection, and death penalty

#

Vietnam is one of the countries, which still apply the death penalty. The death penalty is applied to many types of crimes and in practice every year, a lot of death sentences are declared and executed.

vocal basin
vocal basin
hoary olive
#

Phu Quoc Prison: HELL on the island paradise of Vietnam

vocal basin
#

there are many different algebras

hoary olive
#

initially it was meant to clone hem though....

sharp urchin
#

hello:]

#

AF is back yeh...

vocal basin
#

time to rename

sharp urchin
#

yoo!!!!nice

vocal basin
#

this notice didn't go away yet

hoary olive
#

@molten pewter theres this cool ass vanillaos "Vanilla OS 22.10: An Arch and Fedora-compatible Ubuntu"

#

so you get soo many packages with this very cool

sharp urchin
#

honestly for me nitro aint worth it

#

until unless you wanna stream most of the time

hoary olive
#

Drivers are hella expensive seen from ~200-1500$ ones

lucid blade
somber heath
#

@whole bear πŸ‘‹

whole bear
#

hi

molten pewter
#

Michel Xhaard

hoary olive
#

nothing

glad crow
#
Archive:  help.zip
warning [help.zip]:  12 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [help.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
#

any ideas?

#
            os.system(f"unzip {package}.zip {package}/")
            os.system(f"cd {package} && chmod +x setup.sh && ./setup.sh")```
vocal basin
#

where did you get zip file from?

#

@somber heath
os.system is expected to redirect all of stdout, stderr and stdin, iirc

hoary olive
#

does it work before sending it to the web server?

vocal basin
#

!d zipfile

wise cargoBOT
#

Source code: Lib/zipfile.py

The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will require an understanding of the format, as defined in PKZIP Application Note.

This module does not currently handle multi-disk ZIP files. It can handle ZIP files that use the ZIP64 extensions (that is ZIP files that are more than 4 GiB in size). It supports decryption of encrypted files in ZIP archives, but it currently cannot create an encrypted file. Decryption is extremely slow as it is implemented in native Python rather than C.

The module defines the following items:

vocal basin
#

isn't unzip by itself already a vulnerability?

vocal basin
cunning lake
#

!e lists

wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'lists' is not defined. Did you mean: 'list'?
vocal basin
wise cargoBOT
#

class list([iterable])```
Lists may be constructed in several ways:

β€’ Using a pair of square brackets to denote the empty list: `[]`

β€’ Using square brackets, separating items with commas: `[a]`, `[a, b, c]`

β€’ Using a list comprehension: `[x for x in iterable]`

β€’ Using the type constructor: `list()` or `list(iterable)`...
vocal basin
#

this?

cunning lake
#

maybe

#

πŸ˜…

novel hound
#

!d help

wise cargoBOT
#

help()``````py

help(request)```
Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.

Note that if a slash(/) appears in the parameter list of a function when invoking [`help()`](https://docs.python.org/3/library/functions.html#help "help"), it means that the parameters prior to the slash are positional-only. For more info, see [the FAQ entry on positional-only parameters](https://docs.python.org/3/faq/programming.html#faq-positional-only-arguments).

This function is added to the built-in namespace by the [`site`](https://docs.python.org/3/library/site.html#module-site "site: Module responsible for site-specific configuration.") module.
cunning lake
#

!e print ("Hello World")

wise cargoBOT
#

@cunning lake :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World
hoary olive
#
I think the issue is that a streaming zip will default to Zip64 format but that unzip 6 or later is needed to read Zip64. The manual says -fz- can be used if the input is known to be smaller than 4 GB to prevent the use of Zip64, but that isn't clearly documented anywhere else in that manual.

Forcing the <4GB zip binary format, as in the zip manual and hinted at in the "(please check that you..." part of the warning from unzip [see below], basically works with the extra output of the zip step:
#

So checked some stackoverlfows posts, all of them talk about a <4G issue. i Honestly have no clue why that should be an error, but thought i mention it

vocal basin
vocal basin
vocal basin
wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     list {'chocolate', 'Hemlock', 'Bazinga', 'Sheldon'}
003 |          ^
004 | SyntaxError: invalid syntax
hoary olive
#

!e

l = ["chocolate", "Hemlock", "Bazinga", "Sheldon"]
print(list(map(lambda v: v, l)))
wise cargoBOT
#

@hoary olive :warning: Your 3.11 eval job has completed with return code 0.

[No output]
covert hedge
#

I have to gooo

lucid blade
#

bk

vocal basin
#

I totally support deprecating os.system

#

and most of os module in general

cunning lake
#

!e list The_Big_Bang_Theory = ["Sheldon", "Peny", "Leonard", "award", "Rajes", "brenedet"] print ("The_Big_Bang_Theory")

wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     list The_Big_Bang_Theory = ["Sheldon", "Peny", "Leonard", "award", "Rajes", "brenedet"] print ("The_Big_Bang_Theory")
003 |          ^^^^^^^^^^^^^^^^^^^
004 | SyntaxError: invalid syntax
vocal basin
hoary olive
#

this will print the mem address of the list

#

a list is a primitive

#

its an object

cunning lake
#

ho

hoary olive
#

its in memory, so it will print the mem address not the actual value

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Sheldon', 'Peny', 'Leonard', 'award', 'Rajes', 'brenedet']
cunning lake
#

hoooooo ok

vocal basin
#

SyntaxError: invalid syntax

#

list before name

#

also, everything on one line

#

?

#

this is type hint

#

this is not type conversion/cast

glad crow
wise cargoBOT
#

@glad crow :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Sheldon', 'Peny', 'Leonard', 'award', 'Rajes', 'brenedet']
hoary olive
#

why does python print non-primitives

#

wtf?

vocal basin
hoary olive
#
  string the_bbc[4] = {"Sheldon", "Peny", "Leonard", "Award"};
  std::cout << the_bbc << std::endl;

0x___

vocal basin
#

!e

class C: ...
print(C())
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

<__main__.C object at 0x7f05624f0050>
vocal basin
#

the address: 0x7f05624f0050

vocal basin
hoary olive
#

!e

the_big_bang_theory = ["Sheldon", "Peny", "Leonard", "award", "Rajes", "brenedet"]
print(the_big_bang_theory)
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Sheldon', 'Peny', 'Leonard', 'award', 'Rajes', 'brenedet']
hoary olive
#

Java does the same, it prints a mem address

vocal basin
#

idk how well C# converts the arrays

hoary olive
#

C# should be like Java tbf

#
        int[] nums = { 1,2,3,4,5 };
        Console.WriteLine(nums.ToString());
vocal basin
#

System.Int32[]

hoary olive
#

so i presume by default its gonna be a memory addr aswell

vocal basin
hoary olive
#

even in .NET 7

wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print(the_big_bang_theory)                                                                                  print(a < B)
003 |                                                                                                                 ^^^^^
004 | SyntaxError: invalid syntax
vocal basin
#

and this outputs Program+C

using System;                
public class Program
{
    class C {
    }
    public static void Main()
    {
        Console.WriteLine((new C()).ToString());
    }
}
wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'a' is not defined
hoary olive
#

But C# syntax is awesome

#

love the language

vocal basin
#

@cunning lake
to not clutter this channel too much, you can use #bot-commands

hoary olive
#

Imma head out and procrastinate πŸ˜… see you guys later πŸ‘‹

vocal basin
vocal basin
#

@molten pewter
autoplay thing -- same for music services
and choice of music is paywalled

#

also, putting the brave browser thing to the site may be seen as an endorsement
and that may influence website's reputation

lucid blade
#

theres a deeper scam going on, on spotify rn

somber heath
#

@fallow dagger πŸ‘‹

fallow dagger
#

πŸ‘‹πŸ‘‹

somber heath
#

@warped relic πŸ‘‹

warped relic
#

hello

somber heath
#

@rugged falcon πŸ‘‹

rugged falcon
#

yoo

#

hello

#

what are we doing?

lucid blade
#

bbl going to youtube for a bit

winter plover
#

@coarse turret yellow

coarse turret
winter plover
#

yee

coarse turret
#

do you have a mic good sir/madaam

winter plover
#

you dont havbe to talk and them type lol

#

yeah but new account so i cant use the mic

#

huh

#

a bit im not an expert

#

you have to type in the chat for awhile to then talk

#

its a bit wonky

#

thats pretty much what it is here

#

web scrapping ?

#

and you where inspecting while logging in

#

whats this video you where watching

nimble basin
#

I've been waiting 10min for the "Download" Button to appear Please help....

coarse turret
nimble basin
#

I have no idea

#

im trying to download python

#

to learn it

#

but

#

i cant even download it

winter plover
#

dont download it from microsoft store

nimble basin
#

ive tried via web

#

but

#

when i tryna open a shell in cmd

#

it redirects me to the microsoft store page

#

since i didnt got it from here

#

i know but i can create a shell without making a shell in cmd

#

I think i downloaded it from the Python page

#

not from microsoft store

#

i've terminated, updated and resetted the Microsoft store

#

Its a bugg in Microsoft store issue

#

i know

#

but

#

the whole store isnt working

#

look

#

okay

#

lemme RE-download from websitre

#

I just downloaded this one

winter plover
#

i tried inspecting while logging into spotify and theres nothing lol

nimble basin
#

righttt?????????

#

Thanks ❀️

#

done

winter plover
#

is there a way to filter

#

like lookup your password

dreamy stump
#

you can check their safety

winter plover
#

joined at the end of the convo with no context lol

dreamy stump
#

ye why not

tepid tinsel
#

hell

#

jfjdsjf

#

How are you guys

winter plover
#

Hello there @somber heath

#

currently messing around learning FreeCd

#

freecad

#

would be cool to get into 3d printing but im just scared like to have it in my room making toxic plastic fumes

#

unless they have made a "Safe" one

#

but nothing is truly safe

#

it seems that ABS is bad but PLA seems fine

#

yeah

somber heath
#

@whole bear πŸ‘‹

whole bear
#

can't speak

wise cargoBOT
#

Voice verification

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

winter plover
#

i need to send only 50 messages lol

somber heath
#

@sleek widget πŸ‘‹

sleek widget
#

hi

#

i need help with a problem

#

im moving over directories using a for loop, but for some reason the first instance of the inner loop causes only that specific directory to break