#ot2-the-original-pubsta
652 messages ยท Page 121 of 1
I'm accustomed to replacing letters with digits for """comedic""" effect in my conversations with friends (a very watered down version of 1337sp34k), so seeing this sentence was about three times as painful as it would be without that
It's nice to be able to shorten words, but it can get a bit ambiguous when you're trying to explain kerfuffles caused by kilolitres of kiwifruits in your kubernetes cluster
@elfin vine and can you get renominated and do you contribute to such a conversation?
Yes someone can be nominated by multiple people, and if someone's nomination was rejected by the moderators they can be nominated again later on.
i see
I, as a helper, am able to nominate others I think would fit, yes.
ok
after 2 goddamn days of attempt after attempt, finally beaten
F
nurol knots
golfolofoing
goothib
gootlob
Download transcriptions for free at https://georgecolliermusic.com. Check out the Discord!: https://discord.gg/3qxNDA3NCy
For custom transcription requests, visit https://georgecolliermusic.com/custom-transcription-request
Original video: https://www.youtube.com/watch?v=x5pd8QAw28I
Performer: Brendan Kavanagh https://www.youtube.com/channel/UC...
Nah its evil music made by evil mastermind
:)
What the heck is this channel name
"vivek is no average cow"
np
Oh my you had killed non average vivek cow by that evil request
๐ฎ
๐ฅ ๐ฅฉ
๐
@somber belfry is the steak ready btw :)
np ๐
i think we all know
Vivek is the cow
and im the cowboy ๐ณ
๐ค
๐
๐ฎ
wait, why is cowboy cowboy, when it rides horses instead
๐ค
๐
๐ด
No you're the femboy
I'll show yoy guys my poems
Why I wanna stay when they all leave?
Should I smoke your alcohol or drink some weed?
Shit, I'm confused what the fuck am I saying
On your pussy imma go supa saiyan
is this like an AU?
im a cow girl
and i am the terror that flaps in the night
lean duck
sorta
๐
ok thats funny
i was wondering that a few hours ago
probably call them horsemen instead
rusty block chain idk i dont use rust
i cant find the right image for this joke
damn it
!src eval
Run Python code and get the results.
Lmao I understand the reference dw
Lol
What about Solidity and blockchain
@jovial island
sus
am planning to make a software where you choose what data of you to sell to. like selling data with you knowing, and you get money back. is this doable
I hope this isn't too rule 5
I had profitable library data conversion scheme that ran for years....i didnt sell data just reformat and get money mua hahahaha
Not too sure thou sounds a bit evil
๐
๐
zamn
Someday we should do evil scheme brainstorm lmao
make some evil corps >:)
Mua hahaha
You and @jade bolt do a lot of eivl Schemes
Firstly open up Terminal and type in the following command:
LC_ALL=C tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"
Then click enter, to stop the program hold Ctrl+C
Thanks for reading epic gamer```
Even if this is the off-topic channels, we aren't really looking for spam / cross posting messages.
What type of Makefile have I been writing? @rare moat
https://github.com/Preocts/python-template/blob/main/wip/Makefile
lets see
Why write phony code
good man, that be BSD Make compliant
i am proud of you
That was a joke
Because I'm not really using Makefiles to their full power. ;)
oh. yokes.
the shitpostation intensifies
Well yay for that. Do you have an example of a GNU Makefile? Still lacking context as to what is not as portable.
hmm
well, i have no examples of existing Makefiles, but i can write one later
the bot has a remind feature right
!remind 3s
Sorry, you can't do that here!
.remind 3s
but for now, if you see anything like this:
SRCS=$(wildcard *.c)
OBJS=$(pasubst $SRCS, .c, .o)
or
%.o: %c
cc $< -o $@
run
you are writing Python though
.bm
so it will be easier for you to not have to do any of that.
haha yup
Hello, where can I turn for help in the code?
if you do end up needing that stuff, i can give you some alternatives later that BSD Make and GNU Make supports.
One of the best places is a help channel: #โ๏ฝhow-to-get-help
Ok
i really need to start writing that guide to writing portable C code.
pffffffff
hello
oof
cries while attending school
and that time I wasnt even home when you pinged me 
ohh
yello
hi
where's the cat
so anyways, c++ in scratch would be funny
๐ค
lol yes
although very difficult
something like python tbh would be easier
ye
and scratch is very limited
also what about custom version of assembly lul
meanwhile, 3d engines exist on scratch
a brainfuck compiler is maybe possible
and numbers
raycasters yes

well I've seen slightly better
the one thing i've loved were cloud variables
if you think about it, a string is simply a list of numbers
๐ฌ
they're just interpreted as text
yeah and roblox is scamming kids for 1's and 0's
lol
you might be a a very complicated text bot for all i know
if you can make a brainfuck compiler in scratch you should be able to make a c/c++ compiler using brainfuck inside scratch
๐
LOL
imagine Lua in scratch
although it would be slow as hell
not that far off
it might have been done before, lemme check
if we have python in scratch, Lua in scratch should be easy
it seems like brainfuck is possible inside scratch
this seems like the only thing i was able to find on that https://youtu.be/Nz1w7z1o7vU
Ich habe in Scratch einen Interpreter fรผr die esoterische Programmiersprache "Brainfuck" geschrieben. Das Band besteht in dieser Version aus lediglich 5 Elementen und es werden auch keine geschachtelten Schleifen unterstรผtzt.
http://www.bakera.de/dokuwiki/doku.php/schule/prog/brainfuck
and it is just a example of someone using it none of the links are working
turbowarp
it's a bug in the api
o
no ids huh
no i mean the link to where that program is doesn't work
when i was like 12 my mom also did that sometimes and i always just booted my pc backup
lol
anyway, i guess im going to try and make a compiler of some sorts
at some point she literally took the power cord with her
nice
anyone wanna check this out before i leave? - https://turbowarp.org/556858531?hqpen&clones=Infinity&interpolate
oooh
big embed
I can't play on mobile is hard
im pretty sure it works on mobile, it's harder but it does work
Need job. Ugh.
not tryna self-promote or anything. the process of looking is just so much fun. especially when recruiters reach out to me on linked in like "we are so impressed with your experience blah blah blah" & then get on the phone to tell me I need a Bachelor's degree.
that's sadly the bare minimum to be even considered for a phone screen nowadays
completed wine build :D i forgot there was a -j option in make
Defining objects makes the code longer, but also makes it easier to look at and write. How common is that?
very
its really odd. I have three years of dev experience and personal projects to show them, however I am looked at as if I can't finish what I started instead of someone who didn't have the opportunity to not work and go to school.
I taught myself, I wouldn't say that should be something that is counted against me. I'm still working towards my degree because I can't get loans and needed to pay for it using my wages. Its just a rock and a hard place sort of situation. ๐ฆ
uhh, why wouldn't we prefer to have it: All politicians should have PhD in a STEM field
i know i would
because politics should be available to any man or woman regardless of qualifications
good ideas dont exclusively come from phds
zelensky was a comedian and now he's successfully fighting off an invasion
True
Not all thou but moar
!e
from random import randint
n1 = randint(1, 10)
n2 = randint(1, 10)
operator = randint(1, 4)
one = n1 / n2
two = n1 - n2
three = n1 + n2
four = n1 * n2
user = int(input(""))
if operator == 1:
print(n1, " / ", n2, " = " , user)
if user == one:
print("Incorrect")
else:
print("Correct")
if operator == 2:
print(n1, " - ", n2, " = ", user)
if user == two:
print("Incorrect")
else:
print("Correct")
if operator == 3:
print(n1, " + ", n2, " = ", user )
if user == three:
print("Incorrect")
else:
print("Correct")
if operator == 4:
print(n1, " * ", n2, " = ", user )
if user == four:
print("Incorrect")
else:
print("Correct")
!e
from random import randint
n1 = randint(1, 10)
n2 = randint(1, 10)
operator = randint(1, 4)
one = n1 / n2
two = n1 - n2
three = n1 + n2
four = n1 * n2
user = int(input(": "))
if operator == 1:
print(n1, " / ", n2, " = " , user)
if user == one:
print("Incorrect")
else:
print("Correct")
if operator == 2:
print(n1, " - ", n2, " = ", user)
if user == two:
print("Incorrect")
else:
print("Correct")
if operator == 3:
print(n1, " + ", n2, " = ", user )
if user == three:
print("Incorrect")
else:
print("Correct")
if operator == 4:
print(n1, " * ", n2, " = ", user )
if user == four:
print("Incorrect")
else:
print("Correct")
@dusk trail :x: Your eval job has completed with return code 1.
001 | : Traceback (most recent call last):
002 | File "<string>", line 12, in <module>
003 | EOFError: EOF when reading a line
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
sorry my vs code is not working so running ti here
ill delte this later
!e
from random import randint
n1 = randint(1, 10)
n2 = randint(1, 10)
operator = randint(1, 4)
one = n1 / n2
two = n1 - n2
three = n1 + n2
four = n1 * n2
user = str(input(": "))
if operator == 1:
print(n1, " / ", n2, " = " , user)
if user == one:
print("Incorrect")
else:
print("Correct")
if operator == 2:
print(n1, " - ", n2, " = ", user)
if user == two:
print("Incorrect")
else:
print("Correct")
if operator == 3:
print(n1, " + ", n2, " = ", user )
if user == three:
print("Incorrect")
else:
print("Correct")
if operator == 4:
print(n1, " * ", n2, " = ", user )
if user == four:
print("Incorrect")
else:
print("Correct")
@dusk trail :x: Your eval job has completed with return code 1.
001 | : Traceback (most recent call last):
002 | File "<string>", line 12, in <module>
003 | EOFError: EOF when reading a line
k just tring how it work
@light harness :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ModuleNotFoundError: No module named 'PyQt5'
!e
print('hi')
@light harness :white_check_mark: Your eval job has completed with return code 0.
hi
1e
p = int(input())
c = int(input())
b = int(input())
a = int(input())
l = [p,c,a,b]
l.sort()
print(l)
l.sort(reverse=True)
print(l)
!e
p = int(input())
c = int(input())
b = int(input())
a = int(input())
l = [p,c,a,b]
l.sort()
print(l)
l.sort(reverse=True)
print(l)
@light harness :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
wtf does this mean
!e
a = input()
print(a)
btw can i ask you for a favour
@light harness :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
what
can u try to run my code on ur vs code ot smt
k
like for some reason mine just keeps on loading and its annoying
it can't take input
send code
yea i figured
from random import randint
n1 = randint(1, 10)
n2 = randint(1, 10)
operator = randint(1, 4)
one = n1 / n2
two = n1 - n2
three = n1 + n2
four = n1 * n2
user = str(input(": "))
if operator == 1:
print(n1, " / ", n2, " = " , user)
if user == one:
print("Incorrect")
else:
print("Correct")
if operator == 2:
print(n1, " - ", n2, " = ", user)
if user == two:
print("Incorrect")
else:
print("Correct")
if operator == 3:
print(n1, " + ", n2, " = ", user )
if user == three:
print("Incorrect")
else:
print("Correct")
if operator == 4:
print(n1, " * ", n2, " = ", user )
if user == four:
print("Incorrect")
else:
print("Correct")
what should i input
from random import randint
n1 = randint(1, 10)
n2 = randint(1, 10)
operator = randint(1, 4)
one = n1 / n2
two = n1 - n2
three = n1 + n2
four = n1 * n2
user = str(input(": "))
if operator == 1:
print(n1, " / ", n2, " = " , user)
if user == one:
print("Incorrect")
else:
print("Correct")
if operator == 2:
print(n1, " - ", n2, " = ", user)
if user == two:
print("Incorrect")
else:
print("Correct")
if operator == 3:
print(n1, " + ", n2, " = ", user )
if user == three:
print("Incorrect")
else:
print("Correct")
if operator == 4:
print(n1, " * ", n2, " = ", user )
if user == four:
print("Incorrect")
else:
print("Correct")
it works
oh ok bet thanks
oh
ok imam get it then cuz i mostly have to use python for school
k bye
ok bye thanks
vs code is basically de facto text editor
vast majority of languages have a useful VS Code extension
yup, I like to use pycharm for python
but I use vscode more than pycharm ๐
inception
encanto sucks tbh
boring as hell
you could never go wrong with inception tho
watched it like 3 times
Monty Python and the Holy Grail
fuck you, you haven't watched it properly unless you've seen it 50 times
tell me which finger DiCaprio has a ring at 1 hour 23 minutes 32 second mark ๐คฃ
index
easy
he doesn't
fk
if you like thriller movie, I would recommend "The Drop"
create a recommender system
product_sum = (genreTable * userProfile).sum(axis=1)
userprofile_sum = userProfile.sum()
recommendationTable_df = product_sum / userprofile_sum
should i write the entire code here?
using pandas for recommendation lmfao
no lol
I was just pointing out that any such simple recommendation system usualy sucks
hell netflix's recommender is bad
wait a min
you get this
what is netflix?
Lets not share things like that, yeah?
twas funny ๐
and its not even sexual - what is everyone here 6?
you know, now i'm curious on what this is about, but i think i'll just leave it as that
๐
im not going to ask if that was an image or what
@grim seal are you made of graphs?
olddddddddddddd
legend says that if you say "graphs" three times, joe will be summoned
graphs graphs graphs
Someone called? ๐ ๐ ๐
(SLAPS DESK) LETS FUCKING GO
stay up until tomorrow morning and get mcbreakfast
SMART
i used to do that in uni cause if i went to sleep i would definitely not be able to get up before 10am
yeah i wanna eat now and finish my assignment but then ill have no money for breakfast
im torn
GraphQL GraphQL GraphQL
Perhaps, I'm the chosen one
I think it takes a lot of work to make a graph
i made one :)
Very nice
why is joe made of graphs
IS weed marijuana
He is actually a graph database
Do a mcsleep then a mcwakeup before mcbreakfast
uwot
Today is my birthday
Happy birthday
Happy birthday!
Happy birthday
Happy birthday!
Happy day of birth
Happy time of birth
Happy birth day
oh yeah, today is my brothers birthday i forgot
thx
oh nice im canadian
thx
this is pydis of course lmao
no im 13
Oj
code python*
neat
Da
what's that
Its very good server
one sec
who
Mmm
MzM
G
Grisha very bad
You know?
No
Its you friend
Oh you Like Girls or boys
Do you love boys?
No
Like boyfriend
Why?
You must be 13 to use Discord.
He lie
Please keep the chat on topic, and avoid sensitive topics as per our #code-of-conduct .
Ok
Yes
I Like Canada
Oh
I dont see
Anything
Im janitor in my last school
I want to be programmer
I bum
I homeless
Send me 1 kiss
don't be weird.
Smh my head Pythophobia isn't real
Well there is this lmao https://devrant.com/rants/782743/i-love-python-its-the-language-i-never-really-struggled-a-lot-with-yet-also-prog
no braces?
British bad teeth and Monty Python lmao
cant touch dis#
braces in python is the most complex thing i've ever tried to do
i can't
Foiled?
this guy suggested to add braces to python and it turned out to be one of the most complex things i've ever done
The evil lmao
Me or someone else
I guess aph the evil megamind
there were iirc two people who suggested it which can include either or both of you
We could always search anyways
I spent more time configuring my environment than I am writing code
discord search doesn't seem to be working properly for me
It breaks on web app too, countless times i've had to reload the page to get it working again
Happens most commonly if i search and then shuffle through channels and try to search again
I fear python
hmm yes you should for your life ```py
for [[[{(()):{(),[]==(),((((),({(),},))),)}}[()]][-~([]==[])]][~-({}=={})]][-~(()!=())] in {**dict([(({},),[]==[]),([]==[],()!={})]),{[]!=():([[]],)}[()==()]:([],)}:
[[a,[([b,[f],d],c)],(*[(),e],)]] = 1,[(2,[3],4),5],(),7
!e
for [[[{(()):{(),[]==(),((((),({(),},))),)}}[()]][-~([]==[])]][~-({}=={})]][-~(()!=())] in {**dict([(({},),[]==[]),([]==[],()!={})]),{[]!=():([[]],)}[()==()]:([],)}:
[[a,[([b,[f],d],c)],(*[(),e],)]] = 1,[(2,[3],4),5],(),7
@remote widget :warning: Your eval job has completed with return code 0.
[No output]
@versed wigeon huh?
you didn't print anything
what to print
just do print(f"{a}, {b}, ..., {c+d}, {e+f}")
!e
for [[[{(()):{(),[]==(),((((),({(),},))),)}}[()]][-~([]==[])]][~-({}=={})]][-~(()!=())] in {**dict([(({},),[]==[]),([]==[],()!={})]),{[]!=():([[]],)}[()==()]:([],)}:
[[a,[([b,[f],d],c)],(*[(),e],)]] = 1,[(2,[3],4),5],(),7โ
print(f"{a}, {b}, ..., {c+d}, {e+f}")
@remote widget :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | [*[a,[*([b,[f],d],c)],*(*[(),e],)]] = 1,[(2,[3],4),5],(),7โ
003 | ^
004 | SyntaxError: invalid decimal literal
Well
what?
!e ```py
for [[[{(()):{(),[]==(),((((),({(),},))),)}}[()]][-~([]==[])]][~-({}=={})]][-~(()!=())] in {**dict([(({},),[]==[]),([]==[],()!={})]),{[]!=():([[]],)}[()==()]:([],)}:
[[a,[([b,[f],d],c)],(*[(),e],)]] = 1,[(2,[3],4),5],(),7
print(f"{a}, {b}, ..., {c+d}, {e+f}")
@versed wigeon :white_check_mark: Your eval job has completed with return code 0.
1, 2, ..., 9, 10
Have y'all heard of obfuscated code it's one of the weirdest things used to make antiviruses not detect them
how the heck did you get \u200a in there
Prolly cz I'm on a mobile
Yea, I have done that too
It's cool isn't it
Jumbling strings making things freaky
Better is to use nuitka or smth @vestal mist
It literally converts yr python code to dll
I should lookinto what dlls actually do
Even tho i program in c#
I don't know dlls really do
They seem like modules in python
But compiled
Guess I got lucky
why don't you print deez
deez python code yeaaaa
!e print('deez')
@remote widget :white_check_mark: Your eval job has completed with return code 0.
deez
!e print("nuts"
@vestal mist :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print("nuts"
003 | ^
004 | SyntaxError: '(' was never closed
fuck how did i mess it up
Finally, Github Actions is working correctly
!e print("nuts")
@vestal mist :white_check_mark: Your eval job has completed with return code 0.
nuts
yesqa was introducing unintended bugs, removed it.
@lofty loom accept my FR, i want to DM you haha
i think this is kinda stupid but quick question
is it possible to fully use unity with ironpython?
and sorry if i interrupted any of you
I don't think unity supports Python, so prolly nope
BTW look into Godot if u wanna create games with a proper game engine, or arcade, ursina and pygame for Python (u can use nuitka to package these and distribute as exe)
!e print("deez")
@obtuse raptor :white_check_mark: Your eval job has completed with return code 0.
deez
There are 3rd party bindings to use Python with Godot, but GDScript's still more performant while looking kind of like Python
i was just about to uninstall it before i realized i'd have to reinstall my 69, 420 packages
When have I ever said that I'm human?
Robots don't go out
@knotty anvil optimize this or you cant?
print((lambda n:"".join(__import__("random").sample("abcdefghijklmnopqrstuvwxyz",n)))(10))

!e ```py
import random; print(''.join(random.sample(list(map(chr, range(97,123))),10)))
@knotty anvil :white_check_mark: Your eval job has completed with return code 0.
xaonyfmdst
Probably not that optimised
bro how is that optimized ๐
and the heck is chr
I'll think for a bit if I can find a better way or something
Idk I'm kind of lazy
I wasn't trying to optimise
ah it returns unicode thats cool
&pep 9001
!pep 8
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
โข PEP 8 document
โข Our PEP 8 song! :notes:
import numpy as pd
someone woke up and thought there wasnt enough chaotic energy in the world, huh?
anyway, dunno if anyone can answer this but has anyone tried Google's summer of code? if so, how was your experience 
numpy.DataFrame
Chaotic Energy summoned...i dont know much about GSoC and it was suggested to me too...bump up question.....(art made with Python and my 100% Python BMP lib)

i spent 5 mins typing this
def get_your_priorites_straight(data):
wins = []
losses = []
for i in range(0, len(data)):
if data['gettin women'][i] > data['gettin money'][i]
wins.append(np.nan)
losses.append(data['L'])
elif data data['gettin money'][i] < data['gettin women'][i]
wins.append(data['W'])
losses.append(np.nan)
return (wins, losses)
nah this is funny
not appropriate for here. read our #rules and #code-of-conduct
ah yes the sigma grindset
This makes zero sense
@pine plinth we can continue here if youโd like
sure
so Iโm still really debating on the stack
i'm using rocket + sqlx postgres for my project and plain old vanilla html css and js
Iโm pretty sure about using Postgres, redis, and WASM (wasm_bindgen)
rocket is great
Iโll only be doing backend also for the time being
There is also SeaORM
yea diesel has some good integrations with rocket i think
Diesel isnโt async though, but I donโt think that will be the biggest of issues
oh seaorm seems neat
Yeah, Rocket has something for that
yea it uses sqlx under the hood iirc
so far, I have actually liked Actix development over rocket tbh
but there are other ones like Gotham, warp, tide. I might just be majorly over thinking this lol
https://rocket.rs/v0.5-rc/guide/state/#managed-state this seems to explain it
Rocket is a web framework for the Rust
programming language that makes it simple to write fast web applications
without sacrificing flexibility or type safety.
for running diesel in async
i was going to use actix for my project too then a few google searches later i found some discussions about actix and decided to just use rocket instead
I like the rocket docs a lot more than actix
yeah I have also heard some things about actix going down, if thatโs what you mean
what i heard was mostly just the maintainer being kinda rude and stuff about using a lot of unsafe code.
hmm
I also want to make my stack the best it can be for production
so maybe if thatโs the case, actix isnโt a good option
also idk if actix has these but rocket has these cool request guards that you can mention as request handlers parameters: https://rocket.rs/v0.5-rc/guide/requests/#request-guards
Rocket is a web framework for the Rust
programming language that makes it simple to write fast web applications
without sacrificing flexibility or type safety.
people seem to like actix tho and its used in production by some companies so i dont think its that big an issue. I just found rocket more appealing to what im used to in a web framework.
Thatโs pretty useful actually
So these guards basically prevent unwanted or extra info from getting into the request
yea and you can do things like specify a user parameter with the type as your user model struct, and then implement rocket's FromRequest trait to automatically fetch the user whenever a request is made to that route
basically like django's login required decorator but more general use
ah ok
Also I should be able to use Rocket with raw wasm_bindgen bindings and stuff @pine plinth
i dont have any idea about that sorry
oh ok
i think wasm is client side code that runs in browser so i dont think rocket would support anything related to wasm since it's a web server.
Iโm pretty sure it can be used on server side. But I might be incorrect. I believe that they eventually intend to get it to server side if it isnโt already
ah alright.
well, i found this reddit post relating to rocket and wasm_bindgen i hope it can help you https://www.reddit.com/r/rust/comments/9d7u2n/using_wasmbindgen_with_rocket/
Thanks
the warp framework seems really cool but it's docs are very minimal, last I checked
wdym? wasm is a browser thing. (unless you're talking wasmtime with wasi-core or smth like that)
it seems like all rust docs are like that. (Besides the crates that actually put time into making a website)
maybe I havenโt seen a lot of them. Iโm relatively new to the scene
personally, i find the examples folder on the crates' github more useful than docs
I like the examples folder, but it's not really all that helpful until you actually know the basics of what's going on
most libraries i've seen their examples for the stuff in docs is very very minimal
but like some pypi and Python lib docs are super minimal
I really wish the docs on docs.python.org showed type annotations
can't really have that in a dynamic typed language 
which ones? I've seen quite a few good ones.
of course, the ones with separate websites are a little skimpy
but that's understandable
libs like rocket and serenity
Python has static type checkers and the typing module
oh yea im forgetting their websites
serenity's is a little lacking, agreed
yea that was supposed to be a joke lol
rocket has a nice website so I guess it's okay
thought so ๐
rocket's website shows a great deal on how to use all the features
How do I check for a submission from this code and check if the username and password are equal to yes
<div class="login-form">
<form>
<h1>Login</h1>
<div class="content">
<div class="input-field">
<input type="text" placeholder="username" autocomplete="nope" id="username">
</div>
<div class="input-field">
<input type="password" placeholder="Password" autocomplete="new-password">
</div>
</div>
<div class="action">
<button>Sign in</button>
</div>
</form>
</div>
tried doing this
function test() {
var mainContainer = document.getElementById("username");
alert(mainContainer)
}
let form = document.querySelecter('form');
form.addEventListener('submit', (e) => {
test();
});```
test without parentheses
k
the last line
so test;
not first
Client-side validation is a nice thing, but server-side validation is a security requirement.
nothing happened
heres the full page html
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Simple Login Form Example</title>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Rubik:400,700'><link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="login-form">
<form>
<h1>Login</h1>
<div class="content">
<div class="input-field">
<input type="text" placeholder="username" autocomplete="nope" id="username">
</div>
<div class="input-field">
<input type="password" placeholder="Password" autocomplete="new-password">
</div>
</div>
<div class="action">
<button>Sign in</button>
</div>
</form>
</div>
<!-- partial -->
<script>
function test() {
var mainContainer = document.getElementById("username");
alert(mainContainer)
}
let form = document.querySelecter('form');
form.addEventListener('submit', (e) => {
test;
});
</script>
</body>
</html>
<button type="submit">โฆ</button>
without that for a <button>, it is the same as type="button"
ok
is it because im running it on a php webserver
no thats not the reason
That is the web browser / an extension doing that. I forgot what you must do to not get that,a nd I'm not at my laptop atm to look it up
oh i just have to remove type=password
but no alert popup
there is another way โฆ
just click "Not Now"
why would you not want that popup
it's the regular old "save password," which is a good thing
idk
@distant kelp Some people like to have their webbrowser remember their logins โฆ especially those who don't share their computers, or hate typing it each time.
wasmtime is kinda like Node.JS but for WASM?
huh i got it to work with other code
weird
sort of. it's a wasm runtime that runs locally using wasi, the wasm system interface
i think my understanding of WASM was a bit flawed. I saw a few things about WASM on the backend, but it seems like I misunderstood
yeah ik about WASI
WASM on the backend isn't very common right now, I don't think
The browser is what prompted.
If it guesses it is a login form, it will offer to save the password for you, @distant kelp
There was two links just above ...
well that's probably what people said about JS way before Node.JS and look where we are now
But for the idea ... it would make it easier to have similar code on the frontend and backend (like JavaScript and NodeJS)
no its a compilation target
IG the question really is why use wasm over just x64 assembly on the backend
you can write the wasm text format, but most people don't
[JavaScript] is a normal language though
it was designed for the web, yes
that is true
Works this way too
wasm's main strength is probably that there's only one version of it
but at the same time, the machines themselves aren't standardized, so you still need an interface layer between wasm and assembly, which is what wasmtime (or another runtime) and wasi are, so it's really not that much better
But why use assembly when you would eventually need to support 64-bit AMD / Intel, and now 64-bit ARM ?
(Then throw in the towel when you hear about Termux on Android)
just compile again though
and I remember reading that wasm already has some differences between impls
"just compile again though" ... when not all platforms support everything.
if it can run it in a wasm interpreter, it can run it natively too
... or they reside in different spots on the filesystem. (re: Termux)
I mean, I don't think there is anything incorrect about using wasm on the backend, it just seems like pointless complexity to me
I agree
I kind of had a feeling I was over complicating something
wasm on the frontend is kind of a pain just because you need the JS glue
WASM and JavaScript ... if you think about it ... it's like compiled C libraries and Python
yeah, I haven't seen anything seriously using wasm outside of llvm
I was thinking about writing a compiler that just spat out their weird lisp thing, but had other things to do
I really wish the web community was smart enough to not have made the lowest level option a high level language like JS whenever it came out
true
yeah, wasm is kind of silly. No goto for example
I am very annoyed that cranelift is used in a wasm runtime but there is no wasm target (afaik)
Importing numpy as pd has gotta be the most subtle yet awful thing u can do
~ $ python3 -c '[0 for i in ("PREFIX","HOME")if print("printf \"%s=%q\\n\" \"{0}\" \"${0}\"".format(i))];print("which sh;which bash;which ls")' | source /dev/stdin
PREFIX=/data/data/com.termux/files/usr
HOME=/data/data/com.termux/files/home
/data/data/com.termux/files/usr/bin/sh
/data/data/com.termux/files/usr/bin/bash
/data/data/com.termux/files/usr/bin/ls
~ $
TIL: Feeding arbitrary input to source
We can always ask Cloudflare who have been prominent users of WebAssembly on backend
followup on Nightmare Filesystem
ls: $ofsrdr$.$ovrix: No such file or directory
ls: note.ofslogfl: No such file or directory
ls: tstsdcan.buck001: No such file or directory
-r-xr-xr-x 1 root kmem 1975 Sep 1 1992 filemark.xedit*
-r-xr-xr-x 1 root daemon 19782960 May 20 2021 hslinux.31kern*
-r-xr-xr-x 1 root daemon 37600 Jan 24 1979 ipl.ddrbse*
-r-xr-xr-x 1 root daemon 17840 Jan 15 1979 ipl.dirbse*
-r-xr-xr-x 1 root daemon 30400 Jan 15 1979 ipl.fmtbse*
-r-xr-xr-x 1 root daemon 76000 Jan 13 1979 ipl.intdkbse*
@honest steeple can i dm the code?
sure
and tysm
Somebody must post this here lmao so I will https://youtu.be/H4_9kDO3q0w
Sketch from Monty Python's "The Holy Grail
coke where
CC = Coca Cola
Woah
Cocanut coke
hi
get me a cc
coke in deez
Neh
yeh
nothing can replace cm^3
choke on deez coke
CC = caption
LOL
1 mil = 1 cm^3
CC = Carbon Copy
good theory
File "stoopid.py", line 1
CC = Coca Cola
^
SyntaxError: invalid syntax```
lmaooo
CC = """Coca Cola"""
CC = "Coca Cola"
!e
CC = Cocanut
@deft trail :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'Cocanut' is not defined
nope
!e CC = """Coca Cola"""
@pallid violet :warning: Your eval job has completed with return code 0.
[No output]
nice
!e
CC = 'cm^3'
if CC:
return True
@deft trail :x: Your eval job has completed with return code 1.
001 | File "<string>", line 3
002 | SyntaxError: 'return' outside function
what-
Can Coca Cola migrate
why download?
dopy "" = "" cc = coca cola
ye, just move the can/bottle/glass by 1 cm
!e fix: py CC = 'cm^3' if CC: print(True)
@nimble ivy :white_check_mark: Your eval job has completed with return code 0.
True
Ah ok
thats the thing, it won't
!e ```py
CC = 'cm^3'
print(True if CC else '')
@pallid violet :white_check_mark: Your eval job has completed with return code 0.
True
But coconut can surely migrate
oh lol
depending on the cost, it can
Eh what
"" = False
print(cocacola)```
How
migration fee ;)
wtf-
hevatevipa sound's like sm1's name ngl
lol
Coconut falls off the coconut tree and floats for miles past the ocean
link fixed: https://paste.pythondiscord.com/hevatevipa.py
@fallen current look: https://paste.pythondiscord.com/hevatevipa.txt
btw, syntax error
nvm
no?
oh
cant do: foriinrange(4)
remember the days when syntax error was the most common error we used to have
"OH NO i forgot to put a COLON here"
It prints your name
yedot dot dot
nvppewsvm
now its like
ur rocket launching mathematical analysis needs an algorithm to compete the scientific research of joe mama to succeed in being a quantam mechanical hardware engineer
error 485
and ur like
wot
lol
@pallid violet
hold on
please don't hate me
wow
lol
it worked
Man how do you have so much dedication to make this useless code
Man google crashed while loading this
nice
k
wait what
23 MB no joke
No wait
luckily, mine didn't
I am not on my laptop right now
import urllib.request;exec(open(urllib.request.urlretrieve('https://raw.githubusercontent.com/AFK-debug-9/test/main/test2.py')[0],'r').read())``` (downloads and runs)
requirments: pickle
insnt that a builtin lib?
rip
only for py 3.8 and above
rip
._.
It loads if I copy the link and paste it to google
But it says "Aw snap" if I open it with discord
chrome://hang don't run that
No that looks sus
guess what it does
No one can guess
i dunno
run it and find out (if you want)
just prints random bytes
idk what it means
all \x00 for some reason
indeed
it won- nvm
... thats you still pasting it
tff
no-
i pasted the stuff on a file
and did: python3 fileName.py
do it on repl
How do you trust people's code
wait it won't work
because i never run it on my machine
windows GUI only, shit
So VM
Yea, online vm
Oh ok
im sorry my friend, it only works on windows GUI
Lol no
exactly
If i had python installed
then i'd prob run it
cuz i use the web version of discord, not the app
You don't?
why
For other languages?
@pallid violet which lang do you have installed?
Ye, i've been using TypeScript a lot lately
Ohk
ill try make a JS rickroll
TS --> JS --> output
good luck, might wanna use electron to make .exe
(later)
how exactly?
they gonna be adding TypeScript features to js
joe mama
Lol
If JS will have all features of TS then what will be the use of TS
its like js is builtin with html
They haven't implement it yet
TS would be ded ig ยฏ_(ใ)_/ยฏ
JS can be used without HTML
It's almost like python
wait a sec, wdym
Nah, TS is def not "almost" like python
specially when strict mode is enabled
Oh, maybe
Could JavaScript have its own native type system like TypeScript in the future? The team behind TS has submitted an ECMAScript TC39 proposal that seeks to add "Types as Comments" to JS.
#js #webdev #TheCodeReport
๐ Resources
JS Types Blog Post https://devblogs.microsoft.com/typescript/a-proposal-for-type-syntax-in-javascript/
TC39 Proposal h...
function YourMom(){
console.log("Never Gonna Give You Up")
}
setTimout(YourMom,3000)```
```py
import time
def YourMom():
print("Never Gonna Give You Up")
time.sleep(3)
YourMom()```
"JS almost like python"
the biggest difference is that fact that js does things asynchronously
python does everything in sync usually
we all saw it btw
So similar to JS
What I didn't saw
nvm ig
function YourMom(){console.log("Never Gonna Give You Up")};setTimout(YourMom,3000)```
```py
import time;YourMom=lambda: print("Never Gonna Give You Up");time.sleep(3);YourMom()```
(one-liners in both lang)
Wow so similar
YourMom=lambda: print("Never Gonna Give You Up");__import__("time").sleep(3);YourMom()
```:))
Never gonna give you all up
wow
oky
*on 1 thread
yes ._.
@fallen current: Gives us all up
everyone: "HE LIED :(((("
while True:
guess=' '.join([''.join(random.sample(x,len(x))) for x in random.sample(['onnGa', 'veNer', 'eviG', 'Up', 'uYo'],5)])
(True, print(guess)) if __import__('hashlib').md5(guess.encode()).hexdigest()=='8f94826adab8ffebbeadb4f9e161b2dc' else (False, guess)```
there's a probability question here somewhere
(pow(1/5,5)**2)*(pow(1/4,4))*(pow(1/3,3))*(pow(1/2,2))*(pow(1/5,5))
0.0003200000000000001*0.00390625*0.03703703703703703*pow(1/2,2)*0.0003200000000000001*0.0003200000000000001
pow(10,-15)*1.1851851851851856
0.0000000000000011851851851851856
0.00000000000011851851851851856%
Do you get the same feeling from this with static methods
@nimble ivy setTimeout runs stuff when there is no active code to run in the event loop at that time, so 3000ms may possibly be much later if something else hogs it.
Aside, 0ms for setTimeout means to run at the first available moment (when nothing else is running anymore)
i didn't (ask) need an explanation
who did?
Anyways, here should be two videos about the event loop (I hope):
https://www.youtube.com/watch?v=cCOL7MC4Pl0
https://www.youtube.com/watch?v=8aGhZQkoFbQ
Have you ever had a bug where things were happening in the wrong order, or particular style changes were being ignored? Ever fixed that bug by wrapping a section of code in a setTimeout? Ever found that fix to be unreliable, and played around with the timeout number until it kinda almost always worked?
This talk looks at the browser's event loo...
JavaScript programmers like to use words like, โevent-loopโ, โnon-blockingโ, โcallbackโ, โasynchronousโ, โsingle-threadedโ and โconcurrencyโ.
We say things like โdonโt block the event loopโ, โmake sure your code runs at 60 frames-per-secondโ, โwell of course, it wonโt work, that function is an asynchronous callback!โ
If youโre anything like me...
the difference is that planes are actually a feasible idea to begin with, imo hyperloop is just a bad idea to begin with
@fervent storm we can't tell if an idea is bad just by looking at present. Even the airplanes were a bad idea at the time.
https://www.heise.de/news/Fracht-statt-Menschen-Virgin-Hyperloop-entlaesst-halbe-Belegschaft-aendert-Fokus-6516955.html - virgin hyperloop also exists and they've shifted their attention away from transporting people
they want to use the loop for high-speed transportation of goods
The first customer was the former mayor of St. Petersburg, Abram Pheil, who paid $400 at auction for the ticket. He wore a raincoat.
Price of the first commercial flight ticket
And $400 at the time was like 8000 dollars
i think using the hyperloop for transporting goods is much more feasible and quite reasonable
Technology becomes cheaper when we work on improving it
compared to freight trains or whatever?
only if it is worth spending a few hundred millions for each km
and maintaining a vacuum chamber is insanely hard and how larger it gets how harder it gets and the entire hyperloop would be one
freight has one great difference to transporting people, freight doesn't care that it comes to the destination slowly
which helps a ton
Making an object as heavy as a plane fly is also very hard. But there are some genius minds that can do the impossible
no that is very simple compared to a large vacuum chamber
and a hyperloop also has pretty terrible passthough of people
like, people transported per time
and would cost millions each year of just electricity
It looks simple now cuz you're used to it.
i don't think it's that hard. you only need self-sealing materials like in tires and some kind of flapts to seal off parts for maintenance
It was as hard as it is now to maintain vacuums
vacuum chambers are pretty old and maintaining the vacuum is something they have always worked on and it is always hard
it's not hard at all if you don't care for quality
but that is for keeping air in not air out
yes, vacuum is very hard to work with
same principle holds
they have worked on it for decades
But that doesn't mean we should stop trying
maybe a few % and it would cost a lot more energy with vacuum
We humans were always the most curious animals in the animal kingdom. We did things that looked impossible. We wouldn't be here if we just thought we shouldn't try something because it's hard.
but it would already help a lot if half of the atmospheric pressure is removed
with freight you can transport stuff slow enough that losses are not huge, so we are basically only targetting people transport, right?
but in a hyperloop they want to remove 99.9% of the air
@dire sedge
Even if it fails
Why to stop
those things had benefits this wouldn't have any
Why would we work on a thing that's not useful
the hyperloop would be a good idea if there was inf budged and only perfectly straight lines
if it means diverting money away from systems that we know would work to systems that aren't even that promising in theory, then yes I think it means we shouldn't try
You could have applied same logic when we were trying to send rockets to space
It was totally useless
Wasn't it?
What do you see now?
That wasn't my claim. What other viable known-to-work alternative do we have to go to space? None
But it was still useless
I wonder if the Hyperloop is just one wacky transportation experiment with Elon Musk's thing with Mars
Do you not agree
Was space travel justified at the time?
not at all
Useless in a very different way
Not now
military benefits have always been evident for rockets..
would you better spend $1000 on a computer that you know will work or $100000 on a computer that might work in very rare conditions like only at 0.2 degreed kelvin and costs $1000 every year of electricity and only works for some tasks but is a few % better at those tasks than the other computer
We have good solutions for transport on the ground already
Does that mean we shouldn't try to improve
we are improving just with ways that are possible
Come one guys I am being open minded here. There's a very good chance that Hyperloop will become a failed technology.
What things have hyperloop even achieved that would be better than existing tech?
Even cars are better than the hyperloop
Cars meh
they are also cheaper
Trains are better
That's the point though, even cars are better
no but we are looking at the theoretical max performance
You get big wins from transporting a lot at once, e.g. the main wind resistance for a train is likely to be at the front (and for stuff like trailing air vortexes, end of the train)
We may get bigger pods in future. Who knows
if you want better transportation ways start with bike paths in the city's or good public transport from city to city dont start at the most expensive solution that will only work in some cases and will cost a lot of maintenance
but then they would need to rebuild the entire tube
We have seen that happening in the case of trains too
We built high speed train tracks
and what happens if something hits the tube like a car or asteroid or a bullet
What if there was a scenario passengers get trapped in the hyperloop
Car can't much to the tube
the tube would pressurise at the speed of sound so a shockwave would hit the pods and that would be equal to a explosion
Building a larger tunnel isn't much harder, building a larger vacuum chamber is significantly harder
you don't need larger pods, the main benefit would be that you can have pods fully automated all head-to-tail
That's what they will think
working like internet packets
You mean a train?
Maybe pods arranged like in trains
no they mean like a car but a lot faster
you can't insert or remove single cars from a train on the fly without slowing down
also you can't have the train move at 800 km/h or so without excessive power needs
And to overcome friction and air resistance
what's the current max speed for actual hyperloop installations again?
well a hyper loop would need a lot more power than that just to maintain a vacuum
200 kmph something
it would need like 1 vacuum pump every 100m and they need a lot of electricity
i don't think you need a lot of energy to maintain the vacuum once you got there
and it would require that 24/7
but how can passengers get out of the vacuum and there will always be leaks
I mean, accidents can happen
who the fuck cares about passengers
we're talking about freight
Accidents can happen with everything.
replace it with objects
objects don't care about vacuum
No no functions
functions don't care about vacuum
freight can be done at slow speeds, what's the wins in energy with a hyperloop?
but there is still a 99.9% vacuum in the tube but in the atmosphere there is 0% vacuum relative to the atmosphere
freight could be done at slow speeds, but think bigger, in terms of throughput
People want everything fast
Super fast
Light speed
speed doesn't matter for throughput
But cheaper is more appealing
of course it does
more distribution centres would solve that
no, throughput is things per time passing through a single place, like current in electricity
the speed doesn't factor in
exactly. now
you can keep the stream of things constant by increasing the area and slowing things down or reducing the area and speeding things up
hi
how does area factor in here?
so if you want get rid of streets (large area) you need to replace it with a smaller area but you need to speed things up
i made this a week ago https://github.com/AFK-debug-9/test
My country is actually investing on this virgin Hyperloop. I was sceptical about it. I am still somewhat sceptical.
they are being ripped off
they can better invest in better infrastructure like rail or bike paths
hmm.. need to have a look at fluid mechanics


what shouldi watch

