#off-topic-lounge-text
1 messages · Page 11 of 1
This is the basics but
I recommend watching YouTube videos
Such as code bro
Maybe like
No
5$ a month
Websites suck
why
Do not pay for any shit
im learning really well
alright
This tutorial is 10 hours long
It takes a lot of time
You think you have the passion for it?
im trying to get into files etc, like cyber security, managing files etc
Yeah
absolutely bro
alright
alright
Python tutorial for beginners full course
#python #tutorial #beginners
⭐️Time Stamps⭐️
#1 (00:00:00) Python tutorial for beginners 🐍
#2 (00:05:57) variables ✘
#3 (00;17;38) multiple assignment 🔠
#4 (00:20:27) string methods 〰️
#5 (00:25:13) type cast 💱
#6 (00:30:14) user input ⌨️
#7 (00:36:50) math functions 🧮
#8 (00:40:58...
If you watch through this video
You will be able to somewhat understand even advanced lines of code
It’s pretty cool
I watched this a while back
I learned a lot
so how many parts of it do i watch a day?
Well
alright
For 2-3 hours
I recommend you watching it
For 30 minutes including paying
Pausing
And while you’re doing it
alright
If you have any like ideas that use the topic
Try to make it
If you fail to do so
Use chat got
Gpt
And then try to understand why it works
Ask questions
i only use chat gpt to help me with something i dont understand or how i can fix my answers. i dont make it solve it
Stay curious and you will win
Well
Sometimes you need to make it solve it
In order to understand
Not always tho
so let it solve it and then try to understand or make it explain it?
Well
only if im stuck on a script for a while?
alright
thank you bro
No problem
If you want to learn the basics of file usage
It should be at around hour 7
But I believe at hour 4 it covers the re import
This includes deleting files
Permission work
Error managers
It’s pretty cool
Enjoy
Also
If you want
There’s a thing called messenger box
It’s an included Python package
Just do import message box
Work around with that
Anyways see ya man
hey
print("hi")
x = NANI?
print (f"Omae Wa Mou Shindeiru": {x})
What
gg permissions.
text
whats the website she is using to learn how to code
its free right
<@&267628507062992896>
Hi, please don't ping the Admins unless the server is borked
hi
I commonly recommend Corey Schafer's YouTube playlists.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@night lily thx!
Why can't I stream in Live-Coding?
also why I can't speak on voicecall?
You need to spent a certain amount of time to get premision it is a rule to avoid trolls.
If you hang out for 2 days in the chat you will gain voice premmision
Jesus said no one is good but God:
Luke 18:19 So Jesus said to him, "Why do you call Me good? No one is good but One, that is, God.
absurd
What you guys are doing in Voice Chat??
bro
trying to solve a question
marhaben ya haji
ok
To find a woman you need time and money therefore:
Woman = time x money
-
time is money so:
Time = money -
therefore
Women = Money x money
Woman = (money squared) -
(Money sqaured) is the root of all problems
Money = problems
- Woman =problems (squared)
Woman =problems
Your math is wrong
Bro copied a TikTok and still somehow got it wrong
When money squared (m) is the root of all problems
It means m == sqrt(p)
Where p is problems
Meaning that w = p directly
Also the flaw in this reasoning
Needing food and water does not mean needing food * water
They r different units time and money
@neon portal what are you working on?
Just a tensor computation package.
bad fo you i guess
Whats this about?
And this
hello, my grid wont stretch the entire length of the screen and im not sure why
import tkinter as tk
from tkinter import ttk
window = tk.Tk()
window.geometry('2000x2000')
window.title('diet tracker')
breakfast_label = tk.Label(window, text="breakfast")
breakfast_label.pack()
breakfast_menu = tk.Button(window, text="add breakfast item")
breakfast_menu.pack(fill='x')
my_frame = tk.Frame(window, width=2000, height=400)
my_frame.pack_propagate(False)
my_frame.pack()
my_frame.columnconfigure((0,1,2,3,4), weight=1)
my_frame.rowconfigure((0,1), weight=1)
protein_label = tk.Label(my_frame, text="protein")
calories_label = tk.Label(my_frame, text="calories")
fat_label = tk.Label(my_frame, text="fat")
carbohydrates_label = tk.Label(my_frame, text="carbohydrates")
sodium_label = tk.Label(my_frame, text="sodium")
protein_label1 = tk.Label(my_frame, text="protein")
calories_label1 = tk.Label(my_frame, text="calories")
fat_label1 = tk.Label(my_frame, text="fat")
carbohydrates_label1 = tk.Label(my_frame, text="carbohydrates")
sodium_label1 = tk.Label(my_frame, text="sodium")
protein_label.grid(row=0, column=0, sticky="nsew", pady=10)
calories_label.grid(row=0, column=1, sticky="nsew", pady=10)
fat_label.grid(row=0, column=2, sticky="nsew", pady=10)
carbohydrates_label.grid(row=0, column=3, sticky="nsew", pady=10)
sodium_label.grid(row=0, column=4, sticky="nsew", pady=10)
protein_label1.grid(row=1, column=0, sticky="nsew", pady=10)
calories_label1.grid(row=1, column=1, sticky="nsew", pady=10)
fat_label1.grid(row=1, column=2, sticky="nsew", pady=10)
carbohydrates_label1.grid(row=1, column=3, sticky="nsew", pady=10)
sodium_label1.grid(row=1, column=4, sticky="nsew", pady=10)
window.mainloop()
can anyone shed and light on what im doing wrong? 🙏
I'd reccomend putting this in a pastebin or using Discord's code formatting feature, it's quite hard to read. Thought it might help you find someone who can help, I'm not familiar with this.
hey, anyone available to help me
with what?
i am making a chess application using tkinter and python. I have made a chess board with pieces which are able to move, but for some reason the box's for the chess board are different sizes to the other buttons. Only the box's with a image of the piece on the board initially are the wrong size. But once a piece from that box is moved, the box becomes the normal size (width=10,height = 5)
not very experienced with tkinter, but can try
Can I have a look at your code?
how can i give u the code?
i am trying to send a txt file but its not sending for some reason
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
paste it here
and share the link
trying
k ty
I mean there's no difference in the way you are initializing the rows with the pieces and the rows without them
Plus, after initialization, the method that you are using to update the image for each of the buttons, that same method is working fine when any piece is moved from its initial position
Things are symmetric, if something was wrong, it should'nt have occurred just for these specifc rows 🥲
can you join VC and share your screen once?
that's fine, up to you, no issues
Btw, ideally create_buttons() shouldn't be concerned with updating the button image, from the design perspective
@wicked nova remove line 57
instead, add the nested loop pair at line 44 and call update_button_image() there
This might resolve the issue as well
because this is the one of the differences, when you are putting image in row 7, row 8 buttons haven't been created yet
try it once @wicked nova
On my way home, sorry I just turned my laptop off
It's fine buddy 😅
just tag me once you try that out
can someone help me with a quick coding please
hope i would be able to pull this of)
whats the problem?
anybody know how to fix this?
hello everyone
i have a simple idea about eye protection
check it out this post for further information
https://www.linkedin.com/posts/ahmedhassan731_eyecareassistant-ℹ-python-activity-7191503377678135297-1CqZ?utm_source=share&utm_medium=member_desktop
Hi
hello
Exception : List indices must be integers or slices, not str
I've been creating plotly dash apps its a python interactive visualisation tool, backend data for the dash app comes from aws, so this dash app has two tabs and two views/ queries are to be retrieved. To begin with when do this error occur and I'm unable to find where the error is occuring, based on port number the views are extracted from aws, after extracting its populated and loaded into a dataframe (filtered_df), need help I will explain more about the dash app and its structure but have to clear this exception and load data first.
Chease is cheese
:incoming_envelope: :ok_hand: applied timeout to @late delta until <t:1715684388:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
:incoming_envelope: :ok_hand: applied timeout to @late delta until <t:1715685240:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
Yo wassup everybody
Hello Armin !
:incoming_envelope: :ok_hand: applied timeout to @reef dock until <t:1715859667:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
can I have some help with my python code?
u can put it in #1035199133436354600 and ask
python help
Hii 👋
hey I need little help with my deep learning project anyone would like to join vc i can explain it .Explaining it on text is quite difficult for me
hey, anyone familiar with an easy way to make a timer in python/pygame?
i just want a simple timer that counts seconds
what😂
Hi I have some questions about a github repository, where can I find people to help me
multithreading
what is your doubt
Umm, can anyone cooperate with me to make a pygame project?
Dude you have a mic?
You guys have a mic?
existing project?
yeah
yess
hello
Are folks here interested in learning to contribute to Python Core?
I spent last week at the pycon sprints and did mostly triage of docs pull requests.
I'm happy to do live coding to show what the process is like.
i = input("how long? ")
while True:
f = int(i -= 1)
print(f)
go into vscode and click terminal>new terminal and put the pip command in there
I can help what do you need
@night lily im supresseed :(((
👍
Most of it is this kind of stuff:
https://github.com/python/cpython/pull/119445
I'm not at the point where I can do:
https://github.com/encukou/cpython/commit/1b5662ebcc3f44770add7ff8f579f3c6703d7d3f
but probably @dull anvil is.
Hello am new here
@humble robin me too,
hello
hey
how to fix this anyone help me please
guys who can help me in my kivy program
I havent been learning kivy but I was learning PyQt6
whats the problem
I can try to help you
Can someone help me with problem wich occurs while opening python file converted into exe
I'll be waiting
I use PyQt6
Hello peoples!
Hello everyone
They are telling you to install Microsoft Visual C++ 14.0 or greater
how to get it
They have given the website in the error message you can go there and follow an instruction guide on YouTube if you cannot figure it out
raise ImageNotFoundException # Raise PyAutoGUI's ImageNotFoundException.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyautogui.ImageNotFoundException
any1 knows why i get this error altho my code and images are perfectly fine ?
i never got that before
always been working just fine
command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2
how to resolve this
https://stackoverflow.com/questions/76764042/error-command-c-program-files-x86-microsoft-visual-studio-2022-buildtools-v
Look at the solutions here might help you
does anyone here use idle or is good with it?
I use it occasionally
how can I get a permission to turn on my mic
is there some that can help me with my class work?
I finish coding but i have 6 warrning errors
I cant figure out
Print("LOL")
Hai
hello, is there anyone knows how to make discord bot on line? my python terminal reads: raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [信号灯超时时间已到]
lmao
I majorly use only IDLE. Not sure if I'm good with it, but what's up?
!e
print("Hello, world!")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, world!
any free apis(without limitations for the number of input) to check whether the input ip addresses is using vpn,proxy,etc or not??
hi @primal bison
New way to stream 💀
@astral badger what you mean
I mean with camera
it removes live announce
Nice
Hy
!e
x = requests.get('https://w3schools.com/python/demopage.htm')
print(x.text)
Damn!
Can i consider this as an api?
Isn't requests module just a module for requesting web info or am I wrong at python for thinking this way(I 100% think this way)
can anyone help how to fix this issue
which version of aiohttp are you installing?
Describe the bug We're using aiohttp in https://github.com/python/blurb_it and are testing against 3.12-dev on GitHub Actions to help find problems early so they can be fixed before the full re...
I don't know anything I just got a code from one of my friends he told me how to make it work and it's throwing an error
kek
simplest option I see right now is to just use python 3.11
allegedly this issue has been fixed on aiohttp's side but I don't know if new version with the fix is even released
is there a requirements.txt file?
https://github.com/zayys-services/bookmarks
How do I make the scrollbar go closer without the other window making it dissappear? Whenever I have resize enabled and I make it smaller it goes under the box where the bookmarks are
yes
what version of aiohttp is specified there?
Anyone can help how to do math formula for python?
print('hey')
print("cool")
which formula?
Any formula, there is a way to build formulas to use in exercises for python, I know the order of precedence
hate it when "wheels" are gone
@primal bison let me show you something
#user input
age2 = input("what is your age?")
print("your age is: " + age2)
age3 = input("what is your age?")
print("my age is: " + age3)```
how to fix
idk
Yeah i was wrong
what is functionallity of your bot can i get the code u are working on
@fiery basin let me show you something
#user input
age_2 = int(input("what is your age?"))
print(f"your age is: {age_2}")
age_3 = int(input("what is your age?"))
print(f"my age is: {age_3}")```
hello everybody nice to meet you all.
I'm doing a small restaurant app but i"m getting trouble in the backend side and that's the error: ```
db = DBase()
NameError: name
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/unknown-10/Desktop/restaurant/gui.py", line 13, in <module>
db = DBase()
10/Desktop/restaurant/.venv/lib/python3.10/site-packages/mysql/connector/connection_cext.py", line 705, in cmd_query
raise get_mysql_exception(
mysql.connector.errors.DatabaseError: 1205 (HY000): Lock wait timeout exceeded; try restarting transaction ```
I tried killing it in database and deleted all data can i know how to fix it please.
hi
any one here to help me for one little problem in python ?
please
hello
help me please
Can someone help me with my python Project? I pay 25€/h
If interested pn me 🙂 tell me the hours you need and i send you cash after finished work.
Can I do a pip3 install command or is it forbidden?
just send the code i see what can i do
hello
just send the code
hi why is django-admin not working in my terminal even though i have installed django
try adding the file django-admin.py to your python path
hi guys
you should definitely get a new code editor
or at least ctrl+n to make an actual file
and you should learn the syntax
cause what you wrote is like 5 programming languages combined
InvalidValue
google.auth.exceptions.InvalidValue: Token used too early, 1719438629 < 1719438630. Check that your computer's clock is set correctly.
how do i fix this guys
!paste
Bro is this in Python or what because this is kind of mixing pseudocodes with Python syntaxes
idle is goated
hi
hello
would you like to test a game i made
on python
tell me any improvementes i can make on it too
hi all
hi what is happening in voice today
hello
It's better to use a vscode, it highlights the particular error
I have to learn it for my school cause thats what they make us use in our exams
can I have permission to speak on the voice chat?
please
I need to speak to @fallen topaz
I see you have it.
Nevermind. My bad. 😁
this is hilarious haha
hi everyone
i have a python script when i run the code in vscode it's working fine but when i convert to exe it gives me errors
How you're covering it and what errors are you facing
that"s sounds strange
this is my code
Online Python - IDE, Editor, Compiler, Interpreter
import random
party = open("party.txt").readlines()
murderer = random.choice(party)
guesses = 3
print("Welcome to the Caveat Mansion!")
def mansion():
while guesses > 0:
print("You are all enjoying dinner.")
print("The lights go out.")
killing
print (party, " are still alive")
print ("Who do you think is the murderer? (case sensitive")
choice = input()
if choice == murderer:
combat
if choice != murder and choice in party:
guesses = guesses - 1
print("Wrong person. You have", guesses, "guesses left.")
mansion
else:
print ("ERROR WITH INPUT, PLEASE ONLY TYPE A VALID MEMBER OF THE PARTY. BACK TO MANSION SEQUENCE.")
mansion
def combat():
chance = randint(1, 20)
print (murderer, "REVEALS A PISTOL. ")
print ("QUICK. YOU DRAW YOUR CONCEALED CARRY")
print ("IF THIS NUMBER IS ABOVE 10 YOU HIT THE SHOT")
print (chance)
if chance > 10:
winner
if chance < 11:
failure
def killing():
dead = random.choice(party)
print ("When the lights come on, ", dead, "is dead." )
party.remove(dead)
mansion
failure
mansion
def failure():
print ("YOU LOSE. PLEASE RESTART PROGRAM TO PLAY AGAIN")
def winner():
print ("YOU WIN. PLEASE RESTART PROGRAM TO PLAY AGAIN")
It wont run def mansion
@primal bison
ill pay u 5 bucks to help guide me
it seems youre missing () after your function calls? also "if choice != murderer* and choice in party:" did you mean murderer instead of murder?
Hello to those who join, it seems i dont yet have permission to speak, i think ineed to send a few more messages.
I'm going to be writing some code to get back into python, this time using tkinter, ttkbootstrap and integrating my old hangman game into something more visual
I can't share
ah, im still 20 messages away from being able to talk. Oops!
Oh so you cant share at all! Wow that kind of sucks
@still flicker george carlin
HELLO 👋🏽
hi
can you understand this?
code
@inner terrace
'''py
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@maiden maple thanks
Np
how do u know?

hi sorry maria my mic is blocked on this server idk why
tough life out here
coding Live(actually learning)
h,,
hello everyone
holle
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@woeful surge ?
hey
Hello
Heu
What are y'all workin on?
.
I want to build a very simple and small web with python without using any frameworks at all
just vanilla python and the web core technologies
what do you advice me?
Is this all based on python
naw it says visual basic, and even i dont hate myself enough to wanna do that
Lol
Im new to python
So how should I start learning it
@static coral
Bro. How would ik how you learn, idk I did it by doing it. I just read code and figured it out.
Ah okay
i need help can someone help me in dm
There's always #1035199133436354600
Hi
hi
Hey
Sup
!pip metpy
def encode_state(state: NDArray[np.complex128],
num_layers: int,
max_error: float,
bond_dimension=1024) -> tuple[Circuit, float]:
mps = MPS(statevector=state, bond_dimension=bond_dimension)
circuit = sequential_encoder.prepare_mps(mps, num_layers=num_layers)
statevector = circuit.get_statevector()
fidelity = abs(np.dot(state.conj(), statevector))
while fidelity < 1 - max_error:
print(f"Fidelity for {num_layers} layers, {bond_dimension} bond dimension, with {max_error} max error is : {fidelity}")
encode_state(state, num_layers*2, max_error)
return circuit, fidelity
sequential_encoder = Sequential(QiskitCircuit)
def generate_random_state(num_qubits: int) -> NDArray[np.complex128]:
data = np.random.rand(2**num_qubits) + 1j * np.random.rand(2**num_qubits)
data /= np.linalg.norm(data)
return data
def encode_state(state: NDArray[np.complex128],
num_layers: int,
max_error: float,
bond_dimension=1024) -> tuple[Circuit, float]:
mps = MPS(statevector=state, bond_dimension=bond_dimension)
circuit = sequential_encoder.prepare_mps(mps, num_layers=num_layers)
statevector = circuit.get_statevector()
fidelity = abs(np.dot(state.conj(), statevector))
while fidelity < 1 - max_error:
print(f"Fidelity for {num_layers} layers, {bond_dimension} bond dimension, with {max_error} max error is : {fidelity}")
encode_state(state, num_layers*2, max_error)
return circuit, fidelity
def generate_plot(max_num_qubits: int,
max_error: float) -> tuple[list[float], list[int]]:
num_qubits = range(1, max_num_qubits + 1)
fidelities = []
depths = []
for qubits in tqdm(num_qubits):
state = generate_random_state(qubits)
circuit, fidelity = encode_state(state, num_layers=8, max_error=max_error)
fidelities.append(fidelity)
depths.append(circuit.get_depth())
return fidelities, depths
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
i think i compiled it wrong or something
num_paths = [2**i for i in range(5, 10)]
paths = []
amps = []
for path in tqdm(num_paths, desc="Running..."):
qpi = QPI(initial=np.array([0, 0]), final=np.array([0.1, 0.1]), bisection_level=4, number_paths=path, n_filtrations=0)
probability_amplitude, path_list = qpi.calculate_fpi()
paths.append((path_list[0], qpi.time_steps))
amps.append(probability_amplitude)
what's the project about ?
@night lily hi
@primal bison Hi';
hello
hello
@buoyant kestrel I give permission
facts
@leaden adder Muted without proof love it
That's wild asf
Make an appeal
I'd rather donate 1,000,000$ to millan
LOL
follow the website instructions: https://docs.docker.com/desktop/install/windows-install/
#voice-chat-text-1 message what's wrong in this?
never blindly trust anyone on the internet.. check the official website and follow the instructions from there
if the official website does not name that package in their instructions, do not install it
it is just safe practice
docker.io is named as an unofficial package on their website.. so it should be safe
although it might be for ubuntu and not wsl as it is listed for ubuntu installation
sometimes wsl acts weird and packages can't be accessed from win to wsl
Ok Thanks @fossil juniper
If anyone is bored and got literally nothing to do and would want to do something feel free to create a countdown bot for me that is talking in vc like this: 3 minutes til countdown
2 minutes till countdown
1 minute til countdown
30 seconds til cluntdoen
10
9
8
7
6
5
4
3
2
1
Go
30 sec wait time till repeat
Pls help me with this bot i need it for my server. It will pop off ong
Dont rpely if u js gon say no one gon do it pls
I need this person who can do it so pls help me when ur bored
Have any one worked in upwork before?
no
guys what do you think of it I just want to implement the fuction that the user can play again, but I just tsarted to learn python and programming and this is my first own project I build without any help, just full knowledge of mine
!pip django
Ask this in #python-discussion they will surely help you
@dense thunder
you should try to explore the conditions which keep your game loop open. as in, while the user wants to play the game, it runs etc..
right now, you have it so that as soon as you hit a condition on that hand, the while closes and your game is done.
you could modify it to consider other states, ie the desire for the user to play again
this could potentially exist as another while loop, or multiple conditions on an existing loop. I'm not sure what the cleanest, most efficient or "pythonic" way is, but it gives you a start to explore options.
Hello guys
Am trying to create a calculator app but am findings it difficult in bringing an index or statement that if you type a letter instead of a number it should give you an error when doing calculation .
this is the code
import Calculator
name = input('Enter your name: ')
while True:
op = input('Enter sigh (+,-,*,/,%,): ')
if op in ('+','-','*','/','%','^'):
num1 = float(input('Enter first number : '))
num2 = float(input('Enter second number : '))
if op == '+':
result = Calculator.add(num1,num2)
if op == '-':
result = Calculator.sub(num1,num2)
if op == '*':
result = Calculator.mul(num1,num2)
if op == '/':
result = Calculator.div(num1,num2)
if op == '%':
result = Calculator.mod(num1,num2)
print('Result =', result)
else:
print('invalid option!')
continue
next_calculation = input('Would you like to continue. (yes/no): ')
if next_calculation != 'yes':
print('Thanks you ',name, 'for your calculations!')
break
Calculator
#Add
def add(n1, n2):
return n1 + n2
#Subtract
def subtract(n1, n2):
return n1 - n2
#Multiply
def multiply(n1, n2):
return n1 * n2
#Divide
def divide(n1, n2):
return n1 / n2
operations = {
"+": add,
"-": subtract,
"*": multiply,
"/": divide,
}
def calculator():
num1 = float(input("Whats the first number?:"))
for key in operations:
print(key)
on = True
while on:
operation_symbol = input("Pick an operation")
num2 = float(input("Whats the next number:? "))
#Meine Lösung
##match operation_symbol:
# case "+":
# solution = add(num1, num2)
# case "-":
# solution = subtract(num1, num2)
# case "*":
# solution = multiply(num1, num2)
# case "/":
# solution = divide(num1, num2)
#Lösung von Doezentin
calculation_function = operations[operation_symbol]
solution = calculation_function(num1, num2)
print(f"{num1} {operation_symbol} {num2} = {solution} ")
if input(f"Type 'y' to continue calculating with {solution}: , or 'n' to restart") == "y":
num1 = solution
else:
on = False
calculator()
calculator()
maybe helps you
this was my first calculator
...
you could use the type() function,
like:
if x.type() != float:
print("This is not a number) or smth like thatz
I hope it helps you I am still a beginner
fr
also you can use isinstance function. isinstance(object, type) example: isinstance(5, int)
but there is no attribute type, there is function type(object) that return object type
Hellurr
hello people
Hi people
bitchinn
lol
‘
sup
thanks alot
let me try and see
that a good idea
Does anyone know how connecting a pptp gateway to a vpn server or proxy works? Perhaps there are some libraries for switching via a json file
anyone interested in bug bounty hunting and I need a companion while I'm learning this
i use but it gave me an error
0_O
Why cant I share screen on LiveCoding
Screen sharing permissions are available on request of voice-regular moderator-level-and-above users at their discretion. Ask when you see them already present in the voice chats.
The reason for this restriction is previous abuses rendered open access to streaming in the server untenable.
-_-
How do I get access to speak in voice?
I've been in this server for years!
But I guess I haven't messaged much
At all.
How do I see how many messages I got?
@void talon
@primal bison
main.py type args
click
python main.py arg1 arg2 arg3
main.py arg1,arg2,arg3
import click
@click.command()
@click.option('--count', default=1, help='Number of greetings.')
@click.option('--name', prompt='Your name',
help='The person to greet.')
def hello(count, name):
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
click.echo(f"Hello {name}!")
if __name__ == '__main__':
hello()
def foo(func):
def wrapper(*args, **kwargs):
print('hello from wrapper')
return func(args, kwargs)
return wrapper
@foo
def hi(*args, **kwargs):
print("hello froom function")
``import sys
def main(args):
if len(args) < 3:
print("Usage: python main.py arg1 arg2 arg3")
sys.exit(1)
print(f"Argument 1: {args[0]}")
print(f"Argument 2: {args[1]}")
print(f"Argument 3: {args[2]}")
if name == "main":
main(sys.argv[1:])
``
are you guys saying anything ?
yes'
why can't i hear then
Check your sound settings
done bro, my settings were off, now i can hear
!ban 1057973172529528872 Racism is not tolerated
:incoming_envelope: :ok_hand: applied ban to @lime basin permanently.
We hear you @warped escarp
WslRegisterDistribution failed with error: 0x8004032d
Error: 0x8004032d (null)
Press any key to continue...
@night lily i havent talked to you in ages how are you
wratesyrftigulhi;jo'kp
!screenshare
I think you just did, though if you mean the @ everyone thing, it won't ping everyone and you'll get told off by the bot, which I think pings the mods.
But you don't hear me buddy,
I was making a complex program u didn't listen to me.
bruh
encrypted = Ac5QACw1ZfR9H7buiBzEoaiVkejr3IKqAV9I2U8SWMsqc6omHGYKkmku+KMNjl/+vZ3cenX7W5OWH3RUkIgaLvUr7kX1bvJakBtHMt7ZFa63scTeDpASxSL16xF+k8NMeLbpH8HBM9sKlg==
pub key = bf068f6671aba421870d94d144c37161fd382ef36112f2c6079f4831979c056b
how to decrypt that aes_gcm please
But why
?
anyone got proxy scraper tool? or where can i get free proxies/buy
interstellar, on github
how to join people who are in room
hii guyss
hello i cant talk xP
go to #voice-verification
Hey anyone kind enough to provide me some resources on how to learn data structures with python?
Hi
Hey
little known website called youtube idk if you heard of it
its kind of niche
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Here's the standard information we give to people asking about learning Python. Now, as for data structures and algorithms, let me have a look to see if that's at all pertinent.
Hm, yes. There is a data structures and algorithms component.
Good.
While reading documentation and information is a skill to be recommended and learned, there are kindly ways of recommending it and there are less kindly ways.
🙂
Tact is an exercise in social lubrication.
Hello everyone! I just joined. Looking forward to contributing to the community.
and learn.
bro
:incoming_envelope: :ok_hand: applied timeout to @terse wharf until <t:1725457619:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
@hollow blade 👋
@neon portal I have more funny CSS:
.something {
--two: 1 + 1;
--three: var(--two) * 2;
--four: (var(--two)) * 2;
}
Teehe
x = float (input ('Βαλε θεση'))
how can I make it if they say 1 to print a text?
x = float (input ('Βαλε θεση'))
if x = 1:
print ('Περασες')
is that right?
I think it will be this:
x = float (input ('Βαλε θεση (1): '))
if x = 1:
print ('Περασες')
you have to add 1 in the initial input
also add double equal marks
@delicate vector here this works:
:incoming_envelope: :ok_hand: applied timeout to @hallow thunder until <t:1725584059:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
Do you use py charm also
yep
Preofessinal or community
Same
and you?
lol its nice honestly
when I have enough cash I'll buy professional
to support the developers
Hi. I.need some one for help . Statistic and econometrics with python
lol me aswell
same issues
brb
no permission
Hey, can anyone here help live with a script im triyng to run?
My terminal is struggling to find tesseract
How can I make an explorable map in pygame?
like one where as soon as you start going off screen, the map expands
or the map follows the sprite
?
рп
hello, i need help with a counter strafe script, can i enter voice ?
don't need to ask to enter voice
It is public vc
i don't have permission to talk, it seems ...
hello 🙂
if you push the power button, do the cooler start to rotate?
i mean the interior ventilator
if not, that means the power supply is not working
@gusty heart tell your problem here
@fallen topaz buy it
I think by the first time I opened Turing Complete, I didn't know about Godot yet
Good saturday morning my coders from another bug 😄 ❤️
I haven't used pygame but I would imagine you would make the camera object have a boundary condition (boundary condition is when the sprite goes out of the screen, for OG games they used to loop back from the other side of the scree) to move further to one direction.
this might be a stupid question but im just asking for a simple answear. if i want to take part in the AI revolution. let's say i want too further develope on AI within chatbot. and i use a pre trained model like gpt2 from transformers/pytorch or whatever. is it possible for me too add deep learning functions into my gp2 model too customise it better then lets just say gpt4 (im not saying i can do that, far from) but could anyone participate like that if they (did have the experience)
I'm not following, do you want to fine-tune a gpt model you mean?
If so, yeah sure, but it takes hundreds of hours of GPU times, which gets really expensive for an individual.
fine-tuning an existing model may give you better results than more advanced general ones, yes
Oh
afaik fine-tuning and some other adjustments can be done relatively cheaply
tbf "hundreds of hours" is relatively cheaply compared to training from 0
Yes, but relatively cheap for a company, not a single person.
Yea i want too fine tune it too become good at one specific area that's right. im doing that. kinda testing for fun. and im very new too python and AI so jumping right too my question is wrong iknow but i just want too know if i (hyptecnically had the experience) could i just add deep learning code, or invent some code into my gp2 model and its possible too make it better then a gpt 4. like or is it some sort of base code i can't access and i will never create anything better then a gpt4 model using gpt 2
by now you should probably be using something like ollama, not gpt2
okay thanks so i can take part of the ai revolution by being creative with a gpt 2 model and not being part of a big firm even tho that would have better odds
thanks
Deep learning code sounds a bit too vague, have a look at fine-tuning llms to see how it's done at a Layman level. You can definitely fine-tune open-source LLMs and GPTs, but as I said you have to consider the hardware cost as well.
okay thank you A.C
This as well, ollama seems like a better choice for importing and using these models.
bro do anyone know how can i get api of any anime website
afaik there are models that are smaller and better than GPT2
here is a tutorial https://www.youtube.com/watch?v=kCc8FmEb1nY&list=PLAqhIrjkxbuWI23v9cThsA9GvCAUhRvKZ&index=8
We build a Generatively Pretrained Transformer (GPT), following the paper "Attention is All You Need" and OpenAI's GPT-2 / GPT-3. We talk about connections to ChatGPT, which has taken the world by storm. We watch GitHub Copilot, itself a GPT, help us write a GPT (meta :D!) . I recommend people watch the earlier makemore videos to get comfortable...
read that website's API documentation
to the point where Google are trying to embed AI into Chrome
that one isn't necessarily better than GPT2 but still good enough to run on-CPU in-browser
Definitely. Have a look at HuggingFace, check for 1.5B parameter models, and look at the benchmark results. They show a good measure of how useful a given model is for a given task.
and good enough at that as to not be a total embarrassment to the company
@fallen topaz many of them depend on blockchain machinery
normally you'd test them on a temporary local chain, or on some even more limited environment if possible
note that most cryptobro projects pick Rust because they see it as hype not for actual characteristics
Hmm you must prefer Solidity?
@dull anvil 
Seems like we both have same side projects 😉
I'm radically opposed to ever working on a cryptocurrency projects that don't use an unbounded (by width) semi-lattice for state history
until the industry recognises that "chain" is fundamentally the wrong approach, I'm not going there
serialised transaction history works well enough only in centralised setting
Ethereum are experimenting with non-serial history for block rewards
I think there was a project prior also that did semi-lattice
2 nice crypto projects i believe in. pulsechain and kaspa, i was in the first week of kaspa, no im not rich i FK up. anyways that's another story. people are so fixed on crypto chains, people don't realise that the new created projects that are real and not a scam with a background check is the once that is capable of doing well. BTC is just alot of aura and just popular cause its well known? or is btc still the best code, i dont beleive that?
BTC is due to security in relations to preventing a attack through PoW vs other consensus concepts developed
i see
note that BTC's slowness isn't because of security but because of corporate influence on the protocol voting process
Yea because experience create better stuff and after btc people have learned alot of experience, so that's why i think investing in newly created good developing project is the best
but it would be unlocig too think otherwise cause of it evolving so mutch. its like having an iphone 5 and iphone 13, both doo the samething but old and new tec
BTC and Ethereum both have mechanism for protocol upgrades
almost anything that survived for a considerable time does
Ehh when it comes to the storage of money what they want is something that is sound and secure like BTC, BTC can be upgraded yes but it won't do so without exceptional testing, you can cross-chain you have SOL as well after FireDancer your going to see SOL touching on different areas quicker honestly
So I see @dull anvil is team ETH while I am team SOL 😉
well im team kaspa and pulsechain. man im exited about AI's future, we either enxtinct our self or we travel too the future of 1000 years.
I would never touch Ethereum, the whole premise of decentralisation and reliability has long been broken
alisa read on pulsechain the difference from eth
I'd rather wait another 10~20 years than go back to doing anything with cryptocurrencies
the only one I might ever need in near future is Monero
how tf did I misclick that
😄
(I was trying to click on an empty space but someone left VC so that empty space got replaced with AFK channel)
hmm life be like that sometimes
i thought soo too, it was known for not being trackable
under right circumstances, all cryptocurrencies are trackable
Monero is just more open about what threats they do and don't mitigate
if users are careless enough, the whole chain is under risk
@dull anvil
While the semi-lattice model could, in theory, scale better than chain-based systems, it introduces many points where security could be compromised, either through the introduction of bugs or through malicious actors exploiting the structure's inherent complexity. Blockchain security relies heavily on simplicity, determinism, and cryptographic verification, and introducing a non-linear structure undermines some of those security guarantees.```
What do you say on this statement?
> blockchain
> determinism
the only actual real concern is double-spending on merge of diverging forks
There's a project that was working on merkle tress as concensus wasn't there a long time ago
What happened to that project can't recall the name rn
Started with like H or something
@dull anvil but my point is around 51% attack Semi-Lattuce walks away from that isn't it introducting the same problem as sharding in a sense?
In a semi-lattice, the system sacrifices this unity of validation for efficiency through parallel processing, but at the cost of splitting the validation effort across multiple paths.
If a path is only being validated by 10% of the total network, an attacker might need to control only 6% of the overall validators (rather than 51%) to compromise that path.```
second paragraph is not true
you don't need to opt out of full verification in a non-linear history
nor are you required to validate everything in a chain by design
shallow verifiability is another part
assuming all previous nodes (akin to parent commits in Git) are valid, it must be very cheap to validate a new node
full history must not be required for the process
thus you only need to store hashes of nodes you verified
and their contents you fetch from untrusted sources
(each blob is hash-addressed and you validate it by recomputing the hash and comparing upon fetch)
is this AI or quoting from somewhere?
AI with my own words and knowledge, but now going back to full validation which is the first thing I look for in a blockchain what about this point
In theory, the parallel processing capability of a semi-lattice model suggests faster transaction throughput, but in practice, it can lead to delays when merging the parallel transaction paths back into a unified state. If we take into account that all validators (or even subsets of validators) still need to reach agreement, this merging process could offset the potential speed gains from parallelism, leading to a result that may not be significantly quicker than a traditional linear model.```
speed and parallelism is completely irrelevant, you can do that with a chain too
I mean if not speed and security why go the route of Semi-Lattice?
allowing for graceful forking and merging
If all validators must participate in the validation process, whether in a semi-lattice or a linear model, both systems still require full consensus at key points. This means that the ultimate speed is governed by the slowest step in reaching consensus—whether it’s processing blocks sequentially (in a linear model) or merging states (in a semi-lattice model).
The core issue is that if all validators must reach agreement on the final state, the time it takes to gather and verify the data from different paths (in the semi-lattice model) could end up taking as long, if not longer, than sequentially validating blocks in a linear model.
Ah ok for graceful forking and merging
But it doesn't seem like a huge importance really rn with core issues but yeah
Over-Engineering for Rare Problems: While the semi-lattice model’s ability to handle multiple paths, forks, and merges might sound like an advantage, you’re right that this is a rare use case in blockchain. Most blockchains don’t need to support multiple paths at once because their primary goal is to maintain a single source of truth. Forks are typically seen as anomalies to be avoided, not features to be encouraged.
Added Complexity Without Clear Benefits: The merging process, parallel transaction paths, and the need for validators to resolve divergent states add unnecessary complexity to what is otherwise a straightforward system. If blockchains are built around the idea of a single chain of trust, why introduce a system where multiple chains can exist temporarily, only to be merged later? The overhead of managing this complexity could, in practice, negate any potential scalability benefits.```
Why the Linear Approach Works
Finality and Clarity: A linear model ensures that once a block is added to the chain, it’s final, and all participants in the network can agree on the state of the ledger. There’s no ambiguity about which chain is “true.”
Simplicity = Security: By keeping transaction history linear and sequential, the security model is simpler and more robust. Each block builds on the previous one, and validators focus on one unified history, reducing the chances of bugs or attacks.
Forks Are Solved Efficiently: Even in the event of a fork (which can happen, especially in systems like Proof of Work), most blockchains have mechanisms to resolve them quickly by discarding the shorter or incorrect chain. This approach is simpler and more efficient than maintaining multiple paths that need to be merged later.
Honestly glad ETH is working on Semi-Lattice seems like they are wasting time again and fell into a trap
one of the ways to achieve that is to store the index (in DB sense) as part of the structure
> There’s no ambiguity about which chain is “true.”
this is called naïvety lmao
also known as not understanding the fundamentals of distributed systems
I've seen humans make the same claim
(as in not only AI can produce this level of faith in magic)
In the end you decide which chain is true and which isn't
You choose which path to follow
Based on others who have obtained the same results as you
yes, ambiguity exists and needs to be resolved dynamically
network partitions can and will happen; forks can and will grow arbitrarily diverged
Honestly ETH has a lot more other stuff to figure out thought then to play with Semi-Lattice it doesn't seem that important right now your talking about like the last thing someone would want to look at in blockchain tech?
ETH starts playing with semi-lattice lol they ain't going to recover from it especially with shards and etc etc
It's just going to be all bad
just burn it all down already
cryptocurrencies were always mistake
(only half-joke)
if it makes ETH die, then even better
it won't work for them also because contracts assume linearity
CAP-Theorem-Violation-as-an-Industry
I want a drink to go with coding today qq
I would put an "unless I get paid a lot of money for it" there but unfortunately I know that not paying employees is the norm in that space
right now busy doing absolutely nothing
I would continue developing the project adjacent to this all if I didn't find many better uses for the tooling and underlying libraries I made along the way
though these are more about not working even after you leave the job
I am not alloweed to work for my competitors 2 years after I quit my job
ah, it's not a member of EU
so there seems like non-competes are slightly more legal
(EU restricts them)
i have given up on my rights
in the end we are slave to money and our bosses
I have seen that you can tell your bosses your rights and then he will start emotionally isolate you
In Norway they use crazy amount of emotional weapons
the weapons they are using is to elusive that you cannot directly pinpoint
legal communication should be through a lawyer if you can afford one;
talking to the company's lawyer if you're sure they're infringing on your rights is a suboptimal strategy
this is more about freelance than direct employment, but still useful:
https://youtu.be/jVkLVRt6c1U
One of the most popular CreativeMornings talks of all time, Mike Monteiro gives us some valuable advice on how to get paid for the work that you do.
Mike Monteiro at CreativeMornings/San Francisco, March 2011. Free events like this one are hosted every month in dozens of cities. Discover hundreds of talks from the world's creative community at ...
HR and company lawyers are there to protect the company
(and that's why you'll have to hire a lawyer when things come to legal disputes, to protect you)
I feel like it is easier to walk away
why fight, just go away and find something better
yeah, only fight back if they are the ones starting obnoxious actions (refusing to pay, claiming non-compete infringement, etc.)
((and if that lawyer tells you the company is in the right, find a more capable one))
@slate axle what tech stack have you chosen for that project so far? (if any commitments on that have been made already/what are you considering using)
@vagrant quarry I have stuff to test the AI on but I have no access to the AI
idk what robustness requirements are for your program, but what you described didn't sound like a good fit for Python if you have high correctness requirements
I wonder if AI brought that up too
for testing AI it's fine, yeah
(just this is the question)
@hallow jasper can you provide stream access to @vagrant quarry really quick over here with @dull anvil wanting to see live coding help in #off-topic-lounge-text
I suggest not pinging mods/admins
Ah ok thank you
did the voice server die
i dont think so
or was is just me
might be you
benchmarking everything on these
https://parrrate.github.io/exercises/
waiting for AI to be able to solve at least ~5 of them without much guidance
so far the record is around 2
these four I've seen AI pass
This is a quick example to show the services talking to each other. In this example I have 4 processes; a time service, a signal generation service, a time controller app, and a plotting app.
I'm testing on this https://exercises.parrrate.ru/exercises/bool_stream.html
I wonder where it got 1.68 from
I'm quite sure it's 1.58 lol
@vagrant quarry you can turn all the state transition into a function of this form:
def transition(
world: World,
previous_time: datetime,
next_time: datetime,
) -> World: ...
(this might sound memory inefficient but that's a concern for future optimisations, and might just be good enough forever)
that's almost how I made it for the PvP minesweeper
the key thing is to have all the access to time extracted, so simulation is just a (somewhat complex) state machine
yes
I don't remember who it was but there's quite a good video about how using radar/sonar for detection relates to Fourier transforms and uncertainty stuff
just like in quantum you can only know well enough one of position or speed
(tradeoff-ish)
depends onthe signal you use
yeah
iirc
short signal -> position
long signal -> speed
and also both measurements are outdated regardless of signal travel
I've learned some amount of quantum mechanics in school, and this is somewhat related
Imagine this:
Here, the red ring indicates the position of the signal (width = 5 seconds of travel time), and the blue rings indicate the position of the reflections off the targets (width = 5 seconds of travel time)
I want the position of the targets to be unknown to the "ship" (i.e. the transmitter / receiver pairs).
But when the reflection is received, the time it took and the direction the reflections are coming from is available
In this app, everything is pre-determined; I load in a scenario and can traverse through time
I want to create an app that does this in real (or sped up) time.
This is why I'm repurposing a distributed application framework I previously wrote like 2 years ago; I am creating a time controller that posts the current time (like what Alisa Feistel suggested), and then I need a simulation engine to create the acoustic data that the receiver would pick up.
I want to be able to distribute the simulation load, while also distributing the signal processing required to turn the acoustic data into usable information, like "Oh I found a reflection coming from the south that took 3 seconds to travel to me. Target must be located at position X"
impl Game {
pub fn handle(
// Mutate in-place because we don't have interdependent state:
&mut self,
player: Active, // Which player,
action: Action, // does what action,
instant: Instant, // at what time.
// Callback for events:
events: impl FnMut(Event),
) {
/* ... */
}
}
yes
Python has useful libraries like numpy
over WebSockets, I've seen this process around 100K messages per second (with JSON processing for actions and events)
you can also embed Rust into Python for compute-heavy things
there's a relatively easy way to generate Python bindings to Rust
which is also GIL-aware
(as in it knows when it can and cannot do something with GIL released)
py.allow_threads(|| {
/* here GIL isn't held */
});
Python::with_gil(|py| {
/* here GIL is held */
});
I only know that Docker on Mac does indeed have some installation/operation nuances
as for how to resolve those -- idk
what's hdiutil
S in SSH stands for
go to Sleep
htop is lagging so hard
who is htop
I might be doing something wrong about my deployment practices
htop is the htop 1 program that shows up when you run htop
CSS is fun until the browser is outdated
waiting for php to show up there
php-fmp: pool on its way to starve the system out of resources
okay it's not as bad anymore now that I'm sending data three times less frequently
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
x = v*t
me in my happy world where databases are not my concern
JS is just doing its mediocrest to make type coercion work
more consistent than it seems
me in a not so happy world working with SQLite, PostgreSQL and javascript (React native with tailwindcss)
empty object not set
`${}` is just f"{}"
btw
` behaviour is customiseable
which is how you get
async function insertUser({ name, age }) {
const users = await sql`
insert into users
(name, age)
values
(${ name }, ${ age })
returning name, age
`
return users
}
without SQL injection issues
in Python, afaik, this is impossible
in C# it's possible but impractical
you can put any function before `
and then all the fragments and values get passed in as arguments
so you get
console.log(['1', '3', '5'], 2, 4)
tailwind integrates into the build process
which is the difficult part, mostly solved by [not you] (bundlers and npm themselves)
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
"probably whether the code exists at all should be included in measuring if it's good"
most secure
you run this flash app and it installs Kaspersky Antivirus on your system without you even clicking anything
# prints hello world
print("Hello world!")
Oracle version
print("Hello World!") # Display the string.
class SneakyOutput:
def __init__(self, message):
self.message = message
def __repr__(self):
return self.message
exec("SneakyOutput('Hello World')")```
thanks, AI, for repeating the same thing
_=(lambda x:x);code=type(_.__code__);_.__code__=code(0,0,0,0,0,0,b'\x97\x00d\x00d\x01l\x00Z\x00d\x00d\x01l\x01Z\x01d\x00d\x02l\x02m\x03Z\x03\x01\x00G\x00d\x03d\x04\x84\x00d\x04\x83\x03Z\x04e\x03e\x04_\x05d\x05d\x06\x84\x00Z\x06e\x07e\x06\x83\x01\x01\x00e\x08d\x07\x83\x01D\x00]\x0bZ\te\ne\x0bd\x08\x83\x01\x83\x01\x01\x00q(e\x00\xa0\x0c\xa1\x00\x01\x00d\x01S\x00',(),(),(),(),'','',(),())
eval(compile(_.__code__, "<string>", "exec"))
the fast dumb model
I'm not logged in
wait is it auto-inferred from the browser
I'm viewing that through Tor
okay back to Rust exercises
import base64
(lambda __, ___, ____, _____, ______, _______, ________:
getattr(
__import__(True.__class__.__name__[_] + [].__class__.__name__[__]),
().__class__.__eq__.__class__.__name__[:__] +
().__iter__().__class__.__name__[_____:________]
)(
______(base64.b64decode(((lambda _, __, ___: _(_, __, ___))(
lambda _, __, ___:
bytes([___ % __]) + _(_, __, ___ // __) if ___ else
(lambda: _).func_code.co_lnotab,
_ << ________,
(((_____ << ______) + _) << ((___ << _____) - ___)) + (((((___ << __)
- _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ <<
__) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______
<< ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) <<
((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) <<
__) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______
<< (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) +
_) << ((((___ << __) + _) << _))) + (((_______ << __) - _) <<
(((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ <<
_))) + (_____ << ______) + (_ << ___)
))))
)
)(
*(lambda _, __, ___: _(_, __, ___))(
(lambda _, __, ___:
[__(___[(lambda: _).func_code.co_nlocals])] +
_(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else []
),
lambda _: _.func_code.co_argcount,
(
lambda _: _,
lambda _, __: _,
lambda _, __, ___: _,
lambda _, __, ___, ____: _,
lambda _, __, ___, ____, _____: _,
lambda _, __, ___, ____, _____, ______: _,
lambda _, __, ___, ____, _____, ______, _______: _ lambda _, __, ___, ____, _____, ______, _______, ________: _)))
hmm
which do I do next
okay it's competent enough to make RcChars
without unsafe
this time
@primal bison wouldn't three hours to respond be suboptimal given timezones?
huh
the AI doesn't know about Vec::append
it has a somewhat unusual signature
append(&mut self, other: &mut Self)
alleged by AI
and apparently true
whereas extend takes arbitrary iterable
so this ig counts as a pass
bad solution but okay
okay this is a complete regression
it does not understand Fn vs FnOnce
what a loser model wtf
where's the FnOnce
XD
okay this literally feels like trying to explain to a junior that can't learn
it took me literally writing out code so it could understand where to put extra lifetime
is that GPT 4o or o1?
the dumber but faster one (4o mini)
so it doesn't really outshine GPT 3 (not even 3.5) in terms of knowledge overall
unsurprising, given the reduced size, if I understand correctly that mini stands for, well, mini
Can you try this with O1 preview? It’s the new model that just came out if you have gpt plus you already have it. I don’t know how much better it is but I would like to see how it does.
I'm not paying for any of ClosedAI
Well I don’t know how much better it is with problems like this one. Looking at the benchmarks it’s super good. But this is just a preview not the full o1 model they will release later
Oh
Can you give me what you asked gpt
Earlier
exercise that phind.com aced first-try without hints and compiler output
https://parrrate.github.io/exercises/exercises/bind.html