#off-topic-lounge-text

1 messages · Page 11 of 1

near wren
#

Just do more coding

#

This is the basics but

#

I recommend watching YouTube videos

#

Such as code bro

#

Maybe like

summer karma
#

im using solo learn

#

website

near wren
#

No

summer karma
#

5$ a month

near wren
#

Websites suck

summer karma
#

why

near wren
#

Do not pay for any shit

summer karma
#

im learning really well

near wren
#

Nothing will help you

#

Well

#

I don’t recommend it

summer karma
#

alright

near wren
#

Here

#

You want a really good

#

Tutorial?

summer karma
#

yes

#

absolutely

near wren
#

This tutorial is 10 hours long

#

It takes a lot of time

#

You think you have the passion for it?

summer karma
#

im trying to get into files etc, like cyber security, managing files etc

near wren
#

Yeah

summer karma
near wren
#

There’s the basics of files in here

#

Here’s the video

summer karma
#

alright

near wren
#

Let me get it

#

There’s some file working at hour 7

#

Here let me get it

summer karma
#

alright

near wren
#

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

▶ Play video
#

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

summer karma
#

so how many parts of it do i watch a day?

near wren
#

Well

summer karma
#

i code for 2-3 hours a day

#

sooo 2-3 hours?

near wren
#

This is what I recommend

#

No

#

Don’t watch it

summer karma
#

alright

near wren
#

For 2-3 hours

#

I recommend you watching it

#

For 30 minutes including paying

#

Pausing

#

And while you’re doing it

summer karma
#

alright

near wren
#

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

summer karma
#

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

near wren
#

Stay curious and you will win

#

Well

#

Sometimes you need to make it solve it

#

In order to understand

#

Not always tho

summer karma
#

so let it solve it and then try to understand or make it explain it?

near wren
#

Well

summer karma
#

only if im stuck on a script for a while?

near wren
#

If you feel like you won’t be able to solve of yourself

#

It

summer karma
#

alright

near wren
#

Then I recommend making it solve if for you

#

It

summer karma
#

thank you bro

near wren
#

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

summer karma
#

it includes os, file pathing, etc?

#

see ya bro, thx

opaque acorn
#

hey

open isle
#

print("hi")

south pendant
#

x = NANI?
print (f"Omae Wa Mou Shindeiru": {x})

near wren
#

What

primal bison
#

gg permissions.

primal bison
#

text

true grove
#

whats the website she is using to learn how to code

#

its free right

#

<@&267628507062992896>

frigid sable
#

Hi, please don't ping the Admins unless the server is borked

grand current
#

hi

trim cypress
#

can someone help me learn me the basics of python

#

on mac

night lily
#

!resources

timid fjordBOT
#
Resources

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

trim cypress
#

@night lily thx!

opaque grove
#

Why can't I stream in Live-Coding?

weak socket
#

also why I can't speak on voicecall?

violet kiln
violet kiln
dense holly
#

What you guys are doing in Voice Chat??

past jay
#

bro

eternal schooner
wheat patio
long wyvern
#

marhaben ya haji

mint quail
ripe meadow
#

someone here ?

#

i just want to complete my 50 messages to use the voice chat

primal bison
#

ok

primal bison
#

To find a woman you need time and money therefore:
Woman = time x money

  1. time is money so:
    Time = money

  2. therefore
    Women = Money x money
    Woman = (money squared)

  3. (Money sqaured) is the root of all problems

Money = problems

  1. Woman =problems (squared)
    Woman =problems
maiden mesa
#

Your math is wrong

runic girder
#

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

shadow sequoia
#

Also the flaw in this reasoning

#

Needing food and water does not mean needing food * water

#

They r different units time and money

slow wind
#

@neon portal what are you working on?

neon portal
primal bison
#

hello

#

i need to send 50 texts

obtuse void
#

bad fo you i guess

visual path
visual path
bronze stratus
#

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

bronze stratus
#

can anyone shed and light on what im doing wrong? 🙏

primal bison
cloud drift
#

Don't you need like a sticky NEWS or something

#

idk Im a newb

wicked nova
#

hey, anyone available to help me

undone shell
wicked nova
# undone shell 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)

undone shell
#

not very experienced with tkinter, but can try
Can I have a look at your code?

wicked nova
#

how can i give u the code?

#

i am trying to send a txt file but its not sending for some reason

undone shell
#

paste it here

#

and share the link

wicked nova
#

ty

#

@undone shell you found the logic error?

undone shell
#

trying

wicked nova
#

k ty

undone shell
#

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 🥲

wicked nova
#

yh idk why thats happening either

#

imma continue trying tho, ty for ur help

undone shell
#

can you join VC and share your screen once?

wicked nova
#

is it ok if i do it in 1 hour

#

as i am in skl rn

#

and i have to leave

undone shell
#

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

wicked nova
#

On my way home, sorry I just turned my laptop off

undone shell
#

It's fine buddy 😅
just tag me once you try that out

wary sinew
#

can someone help me with a quick coding please

daring yoke
weak snow
#

anybody know how to fix this?

urban sky
#

hello everyone
i have a simple idea about eye protection

meager hound
#

Hi

urban sky
prime oriole
#

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.

bitter latch
#

Chease is cheese

late delta
#

boom

#

bam

#

bap

#

badaba boom

#

paw

#

ee

timid fjordBOT
#

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

grave grove
#

Yo wassup everybody

earnest stirrup
#

Hello Armin !

timid fjordBOT
#

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

last geode
#

can I have some help with my python code?

primal bison
#

how do i install pip on mac

#

i cant run code

tawny trail
wintry sundial
#

python help

jolly jewel
vernal zealot
#

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

late delta
#

hey, anyone familiar with an easy way to make a timer in python/pygame?

#

i just want a simple timer that counts seconds

sacred stone
#

@cedar wyvern

lean pine
#

what😂

floral jetty
#

Hi I have some questions about a github repository, where can I find people to help me

dense current
#

Umm, can anyone cooperate with me to make a pygame project?

#

Dude you have a mic?

#

You guys have a mic?

dull anvil
dense current
smoky flame
#

yess

modern dirge
#

hello

native root
#

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.

vital parrot
vital parrot
frank quail
#

@night lily im supresseed :(((

native root
humble robin
#

Hello am new here

maiden maple
#

@humble robin hi

#

@violet kiln hi

grave nova
#

@humble robin me too,

hello

primal bison
#

hey

lunar kite
#

how to fix this anyone help me please

stable adder
#

guys who can help me in my kivy program

quiet sparrow
#

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

lament aspen
#

Hello peoples!

forest copper
#

Hello everyone

hidden blade
hidden blade
# lunar kite 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

bold wing
#

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

lunar kite
#

how to resolve this

hidden blade
# lunar kite command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\...
lament aspen
#

@buoyant kestrel

#

@fallen topaz

queen temple
#

does anyone here use idle or is good with it?

dull anvil
#

I use it occasionally

flat sable
#

how can I get a permission to turn on my mic

half flower
#

is there some that can help me with my class work?

#

I finish coding but i have 6 warrning errors

half flower
#

I cant figure out

fiery umbra
#

Print("LOL")

fiery umbra
#

Hai

lilac halo
#

Sup

#

!code

timid fjordBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

broken wasp
#

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 [信号灯超时时间已到]

stone basin
#

lmao

civic glade
minor cradle
#

!compile

#

How can I compile the code here?

tardy narwhal
timid fjordBOT
radiant seal
#

any free apis(without limitations for the number of input) to check whether the input ip addresses is using vpn,proxy,etc or not??

arctic crypt
#

hi @primal bison

#
HTML5 UP

Responsive HTML5 and CSS3 site templates designed by @ajlkn and released under the Creative Commons license.

astral badger
#

New way to stream 💀

arctic crypt
#

@astral badger what you mean

astral badger
arctic crypt
#

it removes live announce

astral badger
#

Nice

faint tartan
#

Hy

final pewter
#

hey guys

#

can someone tell me what is docstring in py

unreal shoal
#

!e


x = requests.get('https://w3schools.com/python/demopage.htm')

print(x.text)
#

Damn!

primal sinew
#

print("hello world")

#

!e

ocean cloud
dense current
#

???

#

huh

dense current
left coral
#

hi guys

#

I have some queries in dictionary in python

earnest spade
#

how may i help

lunar kite
#

can anyone help how to fix this issue

dull anvil
lunar kite
solar gyro
#

kek

dull anvil
#

allegedly this issue has been fixed on aiohttp's side but I don't know if new version with the fix is even released

dull anvil
shy hare
#

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

lunar kite
dull anvil
#

what version of aiohttp is specified there?

worthy scarab
#

Anyone can help how to do math formula for python?

pseudo flax
#

print('hey')

indigo scaffold
#

print("cool")

umbral sapphire
worthy scarab
#

Any formula, there is a way to build formulas to use in exercises for python, I know the order of precedence

primal bison
fiery basin
fiery basin
#
#user input
age2 = input("what is your age?")
print("your age is: " + age2)

age3 = input("what is your age?")
print("my age is: " + age3)```
lunar kite
fiery basin
lunar kite
#

Not one knows how to fix this issue

fiery basin
#

uh

#

reset your pc

#

reinstall python

#

uhm

#

fixed?

dense current
#

Thks for letting me know

#

And wasn't that an aold post?

glad fulcrum
#

we love python les go

#

!

bleak trellis
viscid yarrow
#

Hi @night lily i am voided

#

I just changed my name

queen temple
#

@buoyant kestrel hey bro r u here?

#

is there anyone here who can help me

swift moon
stray quartz
#

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.

sand jolt
#

hi

spring horizon
#

any one here to help me for one little problem in python ?

#

please

#

hello

#

help me please

glossy laurel
#

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.

minor cradle
#

Can I do a pip3 install command or is it forbidden?

steady gazelle
steady gazelle
steady gazelle
sand jolt
#

hi why is django-admin not working in my terminal even though i have installed django

steady gazelle
left coral
#

hi guys

midnight silo
#

could someone help me find the problems with my code

fiery basin
#

Where is bro programming 💀

#

Notepad--

calm flower
#

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

astral stag
#

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

brittle grail
#

!paste

primal bison
# midnight silo

Bro is this in Python or what because this is kind of mixing pseudocodes with Python syntaxes

primal bison
candid raven
#

hi

hidden surge
#

Hi

#

Hi

#

Hi

primal bison
#

hello

#

would you like to test a game i made

#

on python

#

tell me any improvementes i can make on it too

sour star
#

hi all

halcyon fjord
#

hi

#

hello

rigid prawn
#

hi what is happening in voice today

fathom flame
#

hello

vernal field
#

Oh wow, my laptop is still chugging while streaming..

#

ugh, this is stupid

warped siren
midnight silo
#

I have to learn it for my school cause thats what they make us use in our exams

shrewd trellis
#

can I have permission to speak on the voice chat?

#

please

#

I need to speak to @fallen topaz

night lily
#

I see you have it.

#

Nevermind. My bad. 😁

magic hazel
#

This scammers don't stop even if u hack their network

#

They destroyed so many lives

short forge
#

guys can you help me

#

for installing chatterbot

primal bison
hidden osprey
#

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

primal bison
primal bison
#

that"s sounds strange

loud moon
#

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

green cargo
# loud moon It wont run def mansion

it seems youre missing () after your function calls? also "if choice != murderer* and choice in party:" did you mean murderer instead of murder?

green cargo
#

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!

green cargo
#

Oh so you cant share at all! Wow that kind of sucks

past harness
#

@still flicker george carlin

primal bison
#

@waxen ember

#

come here

waxen ember
#

HELLO 👋🏽

primal bison
#

hi

primal bison
#

code

waxen ember
#

wait

#

bunedi gijd

maiden maple
#

@inner terrace

inner terrace
#

'''py

maiden maple
#

!paste

timid fjordBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

maiden maple
#

@inner terrace

inner terrace
#

@maiden maple thanks

maiden maple
#

Np

patent shuttle
#

how do u know?

empty night
#

this is epic

#

@fossil juniper

#

i might be making a game in c++ rn

patent shuttle
stark crown
#

hi sorry maria my mic is blocked on this server idk why

pure minnow
plucky temple
#

coding Live(actually learning)

patent shuttle
#

h,,

low prism
#

hello everyone

tropic copper
#

holle

spiral nest
#

Hello everyone

#

!voice

timid fjordBOT
#
Voice verification

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

maiden maple
#

@woeful surge ?

patent shuttle
#

hey

spiral nest
#

Hey

#

Guy's

spiral nest
#

Hello

patent shuttle
#

hey

#

guys

#

hello

uncut quail
#

Heuducky_sphere

void talon
#

What are y'all workin on?

fathom flame
#

.

shrewd trellis
#

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?

coarse kettle
#

Who can help me with this
And is all about coding

sullen vector
static coral
sullen vector
#

@static coral

static coral
mystic breach
#

i need help can someone help me in dm

cosmic holly
torpid granite
#

Hi

hidden spindle
#

hi

tranquil plank
#

Hey

tame compass
#

Sup

sharp slate
#

hi all,
Can someone tell me what am I doing wrong?

#

What does this error mean?

upbeat mirage
empty night
#

hi

#

im coding

#

me!

#

:)

#

👍

upbeat mirage
#

!pip metpy

timid fjordBOT
#

Collection of tools for reading, visualizing and performing calculations with weather data.

Released on <t:1712075998:D>.

neon portal
#
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

timid fjordBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

neon portal
empty night
#

i think i compiled it wrong or something

neon portal
#
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)
left helm
#

what's the project about ?

night lily
#

@primal bison 👋

#

@north beacon 👋

primal bison
#

@night lily hi

maiden maple
#

@primal bison Hi';

iron grotto
#

it's not discord

it's my tool

#

under developing

tropic copper
#

hello

maiden maple
#

@fossil juniper Hello

#

@wheat crane

#

This is what I think this code do

tropic copper
#

hello

devout stag
#

@buoyant kestrel I give permission

#

facts

#

@leaden adder Muted without proof love it

leaden adder
#

Make an appeal

devout stag
leaden adder
#

LOL

maiden maple
#

@fossil juniper I need to install docker in wsl?

#

Can you help me?

fossil juniper
fossil juniper
#

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

maiden maple
#

Ok Thanks @fossil juniper

dense thunder
#

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

ocean cloud
#

Have any one worked in upwork before?

empty moat
torpid cradle
#

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

sage dune
#

!pip django

timid fjordBOT
#

A high-level Python web framework that encourages rapid development and clean, pragmatic design.

Released on <t:1720534028:D>.

timid fjordBOT
sullen vector
#

@dense thunder

primal bison
# torpid cradle guys what do you think of it I just want to implement the fuction that the user ...

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.

astral wren
#

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
torpid cradle
#

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

torpid cradle
torpid cradle
#

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

crude crescent
#

fr

obsidian cape
obsidian cape
nimble belfry
#

hello people

silver granite
#

Hi people

ebon dragon
#

bitchinn

fickle frost
#

lol

gentle kite
#

primal bison
#

sup

astral wren
odd crown
#

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

primal bison
#

anyone interested in bug bounty hunting and I need a companion while I'm learning this

median tiger
#

hello

#

Why can't I talk in the voice chat 0 channel?

astral wren
primal bison
#

0_O

muted eagle
#

Why cant I share screen on LiveCoding

night lily
# muted eagle 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.

vale sage
fast sentinel
#

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

primal bison
void talon
fast sentinel
#

I don't have 50 messages

#

Okay so I have 43?

#

Oh, sorry. Wrong channel.

warped escarp
#

main.py type args

vapid saffron
#

click

finite linden
#

python main.py arg1 arg2 arg3

warped escarp
#

main.py arg1,arg2,arg3

vapid saffron
#
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")

finite linden
# warped escarp ```main.py type args```

``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:])
``

warped escarp
untold moss
#

are you guys saying anything ?

vapid saffron
untold moss
unborn sorrel
untold moss
#

done bro, my settings were off, now i can hear

vapid saffron
unborn sorrel
#

!ban 1057973172529528872 Racism is not tolerated

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied ban to @lime basin permanently.

unborn sorrel
#

We hear you @warped escarp

vapid saffron
#

first check discord's output, then windows.

#

i can hear you

warped escarp
#
WslRegisterDistribution failed with error: 0x8004032d
Error: 0x8004032d (null)
Press any key to continue...
cursive meteor
#

@night lily i havent talked to you in ages how are you

weak bloom
#

wratesyrftigulhi;jo'kp

verbal saddle
ocean zealot
#

!screenshare

warm umbra
#

can I say everyone

#

?

night lily
# warm umbra can I say everyone

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.

hollow mesa
still peak
tight ridge
#

encrypted = Ac5QACw1ZfR9H7buiBzEoaiVkejr3IKqAV9I2U8SWMsqc6omHGYKkmku+KMNjl/+vZ3cenX7W5OWH3RUkIgaLvUr7kX1bvJakBtHMt7ZFa63scTeDpASxSL16xF+k8NMeLbpH8HBM9sKlg==

#

pub key = bf068f6671aba421870d94d144c37161fd382ef36112f2c6079f4831979c056b

#

how to decrypt that aes_gcm please

vale crag
still peak
#

?

patent sable
#

Hello

#

Whos online

full bone
#

not me

little sequoia
#

anyone got proxy scraper tool? or where can i get free proxies/buy

hushed delta
#

interstellar, on github

remote wadi
#

how to join people who are in room

queen temple
#

hii guyss

spiral prairie
#

hello i cant talk xP

verbal saddle
oblique sand
#

Hey anyone kind enough to provide me some resources on how to learn data structures with python?

toxic grove
#

Hi

obtuse nacelle
#

Hey

primal bison
#

its kind of niche

timid fjordBOT
#
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
#

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.

night lily
#

Tact is an exercise in social lubrication.

gentle slate
#

Hello everyone! I just joined. Looking forward to contributing to the community.

#

and learn.

terse wharf
#

bro

timid fjordBOT
#

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

toxic grove
#

is any one share his/him code ?

#

or is there any time like event ?

night lily
#

@hollow blade 👋

dull anvil
#

@neon portal I have more funny CSS:

.something {
    --two: 1 + 1;
    --three: var(--two) * 2;
    --four: (var(--two)) * 2;
}
delicate vector
#

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?

shell schooner
#

you have to add 1 in the initial input

#

also add double equal marks

#

@delicate vector here this works:

timid fjordBOT
#

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

echo eagle
shell schooner
echo eagle
#

Preofessinal or community

shell schooner
#

community

#

I'm broke 😅

echo eagle
#

Same

shell schooner
#

and you?

#

lol its nice honestly

#

when I have enough cash I'll buy professional

#

to support the developers

whole portal
#

Hi. I.need some one for help . Statistic and econometrics with python

ember saddle
ember saddle
woven marten
#

brb

empty gale
#

no permission

stuck nacelle
#

Hey, can anyone here help live with a script im triyng to run?

#

My terminal is struggling to find tesseract

jaunty mist
#

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

#

?

faint cloud
#

рп

gloomy tartan
#

hello, i need help with a counter strafe script, can i enter voice ?

maiden maple
#

It is public vc

gloomy tartan
#

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

maiden maple
#

@gusty heart tell your problem here

dull anvil
#

@fallen topaz buy it

#

I think by the first time I opened Turing Complete, I didn't know about Godot yet

unkempt escarp
#

Good saturday morning my coders from another bug 😄 ❤️

neon portal
unkempt escarp
#

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)

neon portal
#

If so, yeah sure, but it takes hundreds of hours of GPU times, which gets really expensive for an individual.

dull anvil
#

fine-tuning an existing model may give you better results than more advanced general ones, yes

grizzled plaza
#

Oh

dull anvil
#

tbf "hundreds of hours" is relatively cheaply compared to training from 0

neon portal
unkempt escarp
#

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

dull anvil
#

by now you should probably be using something like ollama, not gpt2

unkempt escarp
#

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

neon portal
unkempt escarp
#

okay thank you A.C

neon portal
last zenith
#

bro do anyone know how can i get api of any anime website

dull anvil
#

afaik there are models that are smaller and better than GPT2

misty current
# unkempt escarp Yea i want too fine tune it too become good at one specific area that's right. ...

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

▶ Play video
dull anvil
unkempt escarp
#

thanks!

#

for answears

dull anvil
#

that one isn't necessarily better than GPT2 but still good enough to run on-CPU in-browser

neon portal
dull anvil
#

@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

hushed cloud
#

Hmm you must prefer Solidity?

#

@dull anvil pithink

#

Seems like we both have same side projects 😉

dull anvil
#

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

hushed cloud
#

I think there was a project prior also that did semi-lattice

unkempt escarp
#

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?

hushed cloud
#

BTC is due to security in relations to preventing a attack through PoW vs other consensus concepts developed

unkempt escarp
#

i see

hushed cloud
#

BTC is there cause its slow but secure

#

while other projects are testing around

dull anvil
#

note that BTC's slowness isn't because of security but because of corporate influence on the protocol voting process

unkempt escarp
#

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

dull anvil
#

BTC and Ethereum both have mechanism for protocol upgrades

#

almost anything that survived for a considerable time does

hushed cloud
#

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 😉

unkempt escarp
#

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.

dull anvil
#

I would never touch Ethereum, the whole premise of decentralisation and reliability has long been broken

unkempt escarp
#

alisa read on pulsechain the difference from eth

dull anvil
#

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

unkempt escarp
#

😄

dull anvil
unkempt escarp
#

hmm life be like that sometimes

hushed cloud
#

Hmm Monero lol

#

Privacy Reasons?

#

Thought it was trackable

unkempt escarp
#

i thought soo too, it was known for not being trackable

dull anvil
#

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

hushed cloud
#

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

dull anvil
#

> blockchain
> determinism

#

the only actual real concern is double-spending on merge of diverging forks

hushed cloud
#

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.```
dull anvil
#

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

dull anvil
#

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)

dull anvil
hushed cloud
#

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.```
dull anvil
#

speed and parallelism is completely irrelevant, you can do that with a chain too

hushed cloud
#

I mean if not speed and security why go the route of Semi-Lattice?

dull anvil
#

allowing for graceful forking and merging

hushed cloud
#
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

dull anvil
dull anvil
#

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)

hushed cloud
#

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

dull anvil
#

yes, ambiguity exists and needs to be resolved dynamically

#

network partitions can and will happen; forks can and will grow arbitrarily diverged

hushed cloud
#

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

dull anvil
#

just burn it all down already

#

cryptocurrencies were always mistake

#

(only half-joke)

hushed cloud
#

This would be ETH working on Semi-Lattice rn 😅

dull anvil
#

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

hushed cloud
#

I want a drink to go with coding today qq

dull anvil
#

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

dull anvil
#

@violet wing non-compete agreement?

#

aren't those banned in Europe?

violet wing
#

I dont know

#

it is stated that I cannot do other kind of work

dull anvil
violet wing
#

I am not alloweed to work for my competitors 2 years after I quit my job

dull anvil
#

so there seems like non-competes are slightly more legal

#

(EU restricts them)

violet wing
#

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

dull anvil
#

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

▶ Play video
violet wing
#

HR and company lawyers are there to protect the company

dull anvil
#

(and that's why you'll have to hire a lawyer when things come to legal disputes, to protect you)

violet wing
#

I feel like it is easier to walk away

#

why fight, just go away and find something better

dull anvil
#

yeah, only fight back if they are the ones starting obnoxious actions (refusing to pay, claiming non-compete infringement, etc.)

dull anvil
#

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

hushed cloud
#

Got it 😁

dull anvil
#

@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

dull anvil
hushed cloud
#

@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

dull anvil
#

I suggest not pinging mods/admins

hallow jasper
#

i cannot lol

#

i am not a moderator

#

bot won't even let me

hushed cloud
#

Ah ok thank you

dull anvil
#

did the voice server die

vagrant quarry
#

i dont think so

dull anvil
#

or was is just me

vagrant quarry
#

might be you

dull anvil
dull anvil
#

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

vagrant quarry
dull anvil
#

hmm
this is something new

#

wow that was fast

#

but wrong

vagrant quarry
# vagrant quarry

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.

dull anvil
#

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)

dull anvil
#

the key thing is to have all the access to time extracted, so simulation is just a (somewhat complex) state machine

vagrant quarry
#

yes

dull anvil
#

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)

vagrant quarry
#

depends onthe signal you use

dull anvil
#

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

vagrant quarry
#

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"

dull anvil
# dull anvil that's almost how I made it for the PvP minesweeper
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

dull anvil
#

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

primal bison
dull anvil
#

S in SSH stands for
go to Sleep

primal bison
dull anvil
#

htop is lagging so hard

primal bison
#

who is htop

dull anvil
#

I might be doing something wrong about my deployment practices

dull anvil
#

CSS is fun until the browser is outdated

dull anvil
#

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

timid fjordBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

vagrant quarry
#

x = v*t

dull anvil
#

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

dull anvil
primal bison
#

me in a not so happy world working with SQLite, PostgreSQL and javascript (React native with tailwindcss)

dull anvil
#

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)

primal bison
dull anvil
#

lmao

#

what a funny graph

primal bison
#

!kinling

#

!kindling

timid fjordBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

dull anvil
#

2001

#

hmm

dull anvil
#

"probably whether the code exists at all should be included in measuring if it's good"

primal bison
#

This is part of our private discord announcement

#

@full bone

dull anvil
#

most secure

primal bison
#

@full bone

dull anvil
# dull anvil most secure

you run this flash app and it installs Kaspersky Antivirus on your system without you even clicking anything

dull anvil
primal bison
#
# prints hello world
print("Hello world!")
dull anvil
#

Oracle version

print("Hello World!")  # Display the string.
primal bison
#
class SneakyOutput:
    def __init__(self, message):
        self.message = message
    
    def __repr__(self):
        return self.message

exec("SneakyOutput('Hello World')")```
dull anvil
#

thanks, AI, for repeating the same thing

primal bison
#
_=(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"))
dull anvil
#

I'm not logged in

#

wait is it auto-inferred from the browser

#

I'm viewing that through Tor

#

okay back to Rust exercises

primal bison
#
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 _, __, ___, ____, _____, ______, _______, ________: _)))
dull anvil
#

hmm
which do I do next

#

okay it's competent enough to make RcChars

#

without unsafe

#

this time

dull anvil
#

I can't login to claude website

#

and for self-hosted I don't have CUDA-able GPU

primal bison
dull anvil
#

@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

meager oak
#

XD

dull anvil
#

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

hollow wyvern
dull anvil
#

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

hollow wyvern
dull anvil
#

I'm not paying for any of ClosedAI

hollow wyvern
#

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

hollow wyvern
hollow wyvern
hollow wyvern
dull anvil