#voice-chat-text-0
1 messages Β· Page 282 of 1
belgorod
you teleported
!vc @safe ginkgo @whole bear
need 50 messages
Trying out a microwaveable rice cooker.
Oh 
That makes sense. What's the benefit over a normal rice cooker?
huh what is that???
Alex
May I get perms
Eivl
May I get perms again?
Actually, never mind I thought about my previous infraction
uses fewer electrical outlets
I see
in gpt4all how do i add a negative prompt
There is no way you add a negative prompt
help pls
remove the two spaces at the start of line 130 in your screenshot
1 fucking am
doing fucking english work
thatβs due tomorrow
that i fucking forgot about
AND I STILL GOT LIKE A FUCK TON MORE TO DO
i wanna die
im not available

I vouch that strax is very trustworthy and deserving of screenshare
@upper nimbus https://fontforge.org/en-US/
@lament cloud https://github.com/sjvasquez/handwriting-synthesis
I'm probably going to be leaving in a minute sorry.
Sorry, not today. Maybe if another mod joins.
@dire folioMay I get perms?
!stream 717749310518722691
β @whole bear can now stream until <t:1711305319:f>.
@keen idol #pedagogy message
@whole bearπ
yo guys, here i tried to create a function that gives (x-y:name) as its output. now the problem is that x-y values are repeated for every element in the list, I thought that if substituted it with a variable it would work. but now its giving me IndexError: list index out of range
does anyone have an idea about how to fix this error, and make the code work?
you at a whole another level @lavish rover
@safe pewter
@lavish rover You are insane
My bro
@wind raptor This guy is crazy at deving
one of the best devs Ive seen
what are you making?
Could you explain a more what you want to do?
All players form a single team. In the first round (level 1) each player receives 1 card,
in the second round (level 2) they receive 2 cards, and so on. At each level the team
members must put down all their cards in increasing order in the centre of the table
on an open stack, one after the other. For example (4 players, level 1): 18-34-41-73.
The players do not take turns in any particular order. Whoever wants to put down a
card, simply does so
If I'm not mistaken, is this what you want to do?
@wind raptor
!stream 1218705542814634045
β @golden delta can now stream until <t:1711314536:f>.
Yeah you don't appear to have started the bot.
Add a print('hello') somewhere to at least see if the function is running.
!stream 1218705542814634045
β @golden delta can now stream until <t:1711315038:f>.
!stream 1218705542814634045
β @golden delta can now stream until <t:1711316199:f>.
@golden delta Did you try this 
thanks
Somewhere inside the function
@wind raptor https://www.youtube.com/watch?v=Ue_ouzlEhmo
video on making a welcome message and auto role.
Stuff i use
IDE: https://code.visualstudio.com/
Theme: Default Dark Mode
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.
sure
cool
import discord
from discord.ext import commands
import datetime
welcome_channel = 1221421626202001470
class MyClient(discord.Client):
async def on_ready(self):
print("On and Running!")
print("---------------")
intents = discord.Intents.default()
intents.message_content = True
client = MyClient(intents=intents)
@client.event
async def on_member_join(member):
channel = client.get_channel(welcome_channel)
embed = discord.Embed(
description=f'Welcome to the official GAM3 discord server **{member.mention}**!',
color=0x000000,
timestamp=datetime.datetime.now(),
)
channel.send(embed=embed)
Hang in there, there's got to be a simple solution to this π
i used this tutorial
fixed a bug or 2 and removed the auto roll
This is discord.py right? (not one of the forks)
ye
import discord
from discord.ext import commands
import datetime
welcome_channel = 1221421626202001470
intents = discord.Intents.default()
intents.message_content = True
client = commands.bot("~", intents=intents)
@client.event
async def on_connect():
print("connected")
@client.event
async def on_member_join(member):
channel = client.get_channel(welcome_channel)
embed = discord.Embed(
description=f'Welcome to the official GAM3 discord server **{member.mention}**!',
color=0x000000,
timestamp=datetime.datetime.now(),
)
channel.send(embed=embed)
β @whole bear can now stream until <t:1711316593:f>.
Is this the right way to use intents? I thought they were immutable bit-flags π€ ```py
intents = discord.Intents.default()
intents.message_content = True
Oh right it's a property.
You need the members intent as well don't you?
I would have thought
If you want receive notifications about members joining.
^
Traceback (most recent call last):
File "c:\Users\c0d3\Desktop\gam3-discord_bot\main.py", line 10, in <module>
client = commands.bot("~", intents=intents)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'module' object is not callable
PS C:\Users\c0d3\Desktop\gam3-discord_bot>
intents.members = True? π
@golden delta try this ^
The docs say it's required for the on_member_join event: https://discordpy.readthedocs.io/en/stable/api.html#discord.Intents.members
Nope, keep the other one. You need both.
Hey Mad π
ALEX
Ah not awaited?
channel.send(embed=embed)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
ALEX
!stream 961672806444204094
β @upper nimbus can now stream until <t:1711317653:f>.
If it's causing lag, lowering the frame rate to 15 fps might help.
They're also more discoverable for users
yeah i did that and it worked ty
This looks like it's going to be a pain to run on Windows: https://github.com/thaines/helit/tree/master/handwriting
really?
It's quite involved! Firstly, you don't install it, as it just runs directly out of the directory. Secondly, it's probably best to forget Windows - whilst I assume it can be done I've never tried, and expect it's a lot of work, even for me. I develop on Linux, so that's the only platform I can be sure of, but I know my code has been successfully run on Mac, often with only slight code changes. The below was written assuming Linux.
i have an ipad
Errm, Linux VM?
I've only just come back to Windows after using Mac/Linux for a while, so I'm not sure what the best way to do that is.
I think it's about both
Wait, I'm not sure I would recommend using WSL for this.
I'm recommending running a full virtual machine.
I would use the default installation directory
@merry totemπ
@upper nimbus There's move the window, there's something behind it
!stream 717749310518722691
β @whole bear can now stream until <t:1711318922:f>.
@ivory stumpDUDE
@whole bear You don't have to ping everyone π
thanks for waving
less than 50 messages
which is crazy
I mean, member since feb i guess that makes sense. Trying to be more active in here as well since our small server kinda went dead
what are u guys trying to do with ubuntu or just install ?
Maybe https://www.lxde.org/
Desktop environment for all
The image is like, 1.5 GB
He wants to run this: https://github.com/thaines/helit/tree/master/handwriting
@golden delta Thank the voice verification system π
u nice
i should be dumping windows too soon
im tired of it
lol
thanks you voice verification system 
Yeah, not really appropriate
mb
working with ML and amd gpu in windows sucks
!stream 961672806444204094
β @upper nimbus can now stream until <t:1711319580:f>.
Oh it's still downloading π
Even if you don't get the handwriting software to run, learning to run a VM might be a worthwhile skill, maybe
odd flex lol
@golden delta Use ethernet 
not bad, u?
the free versions of vms dont have gpu passthrough or no ?
Also cmon the rook is hanging
Err
@stuck furnace π
u sure u not connected to any proxy or vpn
Guys, I'm having some problems with SQLModel and NamedTuples or Enum's.
Can anyone help me with this?
I was trying to do something like this:
class Coordinates(NamedTuple):
latitude: float
longitude: float
altitude: float
class Address(SQLModel, table=True):
__table_args__ = (UniqueConstraint('zipcode'),)
id: UUID | None = Field(default=None, primary_key=True)
zipcode: PositiveInt
coordinates: Coordinates | None = None
It returns this:
Traceback (most recent call last):
File "/home/krisque/Personal_Projects/jacobson/database/models/brazil.py", line 78, in <module>
class Address(SQLModel, table=True):
File "/home/krisque/.pyenv/versions/3.12.2/lib/python3.12/site-packages/sqlmodel/main.py", line 474, in __new__
col = get_column_from_field(v)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krisque/.pyenv/versions/3.12.2/lib/python3.12/site-packages/sqlmodel/main.py", line 618, in get_column_from_field
sa_type = get_sqlalchemy_type(field)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/krisque/.pyenv/versions/3.12.2/lib/python3.12/site-packages/sqlmodel/main.py", line 607, in get_sqlalchemy_type
raise ValueError(f"{type_} has no matching SQLAlchemy type")
ValueError: <class '__main__.Coordinates'> has no matching SQLAlchemy type
Er @upper nimbus you don't want to open the iso. Continue following the instructions.
Yeah just use ethernet when my laptop doesn't even have the port
Amazon.com: usb to ethernet adapter
Already have it
@whole bear how did the game go
Horrible
π’
@upper nimbus π
does python not export models?
Just don't want to interrupt conversations
oh wait.. no need for export in python
export models? wdym
welp time to go π
my guess is you didn't import the types from sqlalchemy package
@upper nimbus Yeah although I'm not sure why next is greyed out
brb sorry
@upper nimbus go back, you may need to deselect the "pre-allocate full size" option.
π
3 stars now
yeah hopefully we can get it done π
Yeah it's a distribution of Linux

You mean like telemetry?
Errr, I don't think it's supposed to do that
@hallow warren Do you have a good reason to tell them to do this?
Oh ok, so this is another way to make Ubuntu VMs on Windows?
This might be better than Virtualbox yeah
@upper nimbus Any
Does multipass give you a graphical DE?
@upper nimbus π¬
@hallow warren He's low on disk space
@hallow warren The context is he wants to run this: https://github.com/thaines/helit/tree/master/handwriting
You might be better off in the long run dual booting, if this is a long term project.
Back in a bit π
bit flip
@hallow warren https://avm.de/produkte/fritzbox/
FΓΌr jeden Bedarf gibt es die passende FRITZ!Box - mit beeindruckender Leistung, beachtlicher Vielfalt und vollem Komfort an jedem Anschluss.
!stream 1218705542814634045
β @golden delta can now stream until <t:1711323386:f>.
What bandwidth are you supposed to be getting from your ISP?
I'd get on their case about it
Er, did Zay have to go?
Cya, have fun @golden delta π
i wont have fun but still thanks π
!stream 961672806444204094
!stream 961672806444204094
β @upper nimbus can now stream until <t:1711323708:f>.
β @upper nimbus can now stream until <t:1711323708:f>.
@upper nimbus @hallow warren They can use this to download just the subdirectory as a zip: ...
This repo's got a lot of other stuff in it I think.
I might spend some time seeing if I can get it working on Windows, and maybe package it up if possible.
You probably need to install a C compiler too.
That's alright jims. It looked promising Β―_(γ)_/Β―
Sorry, you do need the full repository it turns out.
I feel like trying to get this working is going to be a lot of hassle
Got to go, back in a bit π
@Zay please accept my friend request
i sent it to you
Hey
So the utils.prog_bar is a local import IMO
yup
so in the gh page, ig you should see a folder named utils
ik, it should ideally
brb
How's it all going?
sorry. any updates?
Oh
Yea
Oh right I'll take a look at that
Nice they've got a web demo https://www.calligrapher.ai/
Sorry you cut out just now
can you hear me
r is wrong
it should be like Ρ to keep with the spirit of calligraphy being unreadable
You need to clone it, set up a python venv, and install the requirements.
Virtual environment
I recommend downloading the code (as a zip file) and extract it somewhere.
Yep π
Just a folder within your documents, or wherever
Sure
Yeah, although you need to extract it.
π
Alright, one sec...
Yes pip install -r requirements.txt, but they need to get a venv set up first.
Could you right click in the folder and open a terminal there?
Is there not an "open in terminal" option?
Oh is that a windows 11 thing?
Copy the directory path from the file browser.
@upper nimbus ^
Can you really not right click and open a folder in the terminal in windows 10?
Yeah
@upper nimbus Yep
@upper nimbus close the old window
@upper nimbus π
@upper nimbus Can you enter the following command please
py --list-paths
This is just to see what python interpreters you have installed
@upper nimbus Ok, so 3.11 is the default interpreter
@upper nimbus Sorry I'm pinging you so it shows up as a notification
@upper nimbus Right ok. You need to create a venv. Enter the command py -m venv .venv
@upper nimbus It takes a little while on Windows
@upper nimbus Now you can activate the venv with .venv\Scripts\activate
@upper nimbus tab completion is your friend
You need to change a certain windows security setting sorry
I've done this a few times, but never remember the exact command
One sec sorry
Open a new powershell but as administrator
Yep
@upper nimbus Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
You copied a bit more than intended
Right yep
You need to re-open the other powershell window probably
@upper nimbus Yep
@upper nimbus Nice, notice the (.venv)
pip install -r requirements.txt
This will install the packages listed in the file requirements.txt
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@upper nimbus ^
That was me π
Fair enough
Could be
No space left on device π
You need to make some room
Maybe delete that Ubuntu iso
@upper nimbus π
Can you copy-paste that here? I can't read it
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11
ERROR: Could not find a version that satisfies the requirement tensorflow==1.6.0 (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==1.6.0
Thanks
Ah <3.10
Right, we're going to have to do this all again lol
Sorry
It could
The opposite actually
I would just download python 3.10
Oh yeah 3.9
How would you go about doing that @stark river ?
You don't need to make it a default
You just need to specify it when you create the venv
After that and activating the venv you just refer to it as python, as activating the venv modifies your path
I don't mind which approach you take, but for me installing python 3.9 would be a bit easier.
Yeah
Just download the latest one that has a windows installer
3.9.12
Sorry, 3.9.13
Windows 64-bit
π
Just use the defaults ideally
Hopefully you don't run out of space lol
@upper nimbus wait
oh lol
You should have clicked disable path length limit
Erm, I'll see if there's another way to do that.
You can run this command in powershell as admin to disable the path length limit: ```
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
It's worthwhile doing
Run as admin
Btw:
You can copy a code block by clicking that
Alright π
Back to the other thing
So first of all we need to deactivate and delete the old venv.
Run deactivate
Then rm .venv
needs a space
Yep
Oh, close the powershell window and just delete it in the file browser instead
And delete the .venv folder
Other window
Yeah close that
Nono, delete .venv folder
That contains the old venv
Yeeap
Because we want to create a new venv
Alright open powershell
Just to check python 3.9 is available py --list
Cool, ok, so create the venv with py -m venv .venv
Wait
sorry
Wrong command 
py -3.9 -m venv .venv
@upper nimbus 
With a space
They're separate arguments
Ok, so activate it now
.venv\scripts\activate
It's created, not activated yet
Alright π
pip install -r requirements.txt
It's hard to read sometimes
Nah, I think it's just the video compression messing with the text π€·ββοΈ
:C
Don't worry about it. Could you paste the error messge here?
ERROR: Could not find a version that satisfies the requirement tensorflow==1.6.0 (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==1.6.0
π€
@stark river Have you installed tensorflow before?
Β―_(γ)_/Β―
pip install tensorflow
The major version jump might be an issue. I'm not sure how backwards compatible it is.
@ivory stump Are you free or do you have work?
Neither, playing a game with a friend
Is v1 on pypi? I didn't see it?
Alex May I get perms?
I'm a bit busy helping someone right now sorry
An Open Source Machine Learning Framework for Everyone - tensorflow/tensorflow
I just got home from school, Iβm fasting so gonna pray and take a longggg nap to forget abt hunger π Iβll be on later
@high token Can you mute please
@upper nimbus I guess try running python demo.py ?
Oh
svgwrite π€
Wait, check first
@upper nimbus
Don't install packages from pypi without first checking whether they're safe
The package name doesn't necessarily match the import name
and then use the prompt as done in README
aight lol
Satya?
Don't worry about upgrading pip, this is a bit of a tangent
He'll need to activate the venv
@hallow warren
Wow bit harsh sazk π
Β―_(γ)_/Β―
ehh i can be harsher... wait until i roast him for this being his first time using a computer
Wait, wasn't matplotlib installed from requirements.txt π€
try not to roast me to bad
I guess if one requirement isn't able to be satisfied none of them install?
no i don't think that happens
You know what, let's just: ```
pip install matplotlib pandas scikit-learn scipy svgwrite tensorflow
@upper nimbus ^
This is essentially what sazk was suggesting earlier.
@hallow warren Do you do anything related to AI?
Oh interesting
We are also running very low on disk space π
friends = select(
case(
(Friends.sender != current_user.username, Friends.sender),
(Friends.receiver != current_user.username, Friends.receiver)
).label("username")
).select_from(Users).options(joinedload(Users.friends)).join(Users.friends).filter(Users.username == current_user.username).subquery()
friends_information = await db.execute(select(Users.profile,Users.username,Dms.id)
.join(friends,friends.c.username == Users.username)
.outerjoin(Dms,or_(and_(Dms.sender == current_user.username,Dms.receiver == Users.username),
and_(Dms.receiver == current_user.username,Dms.sender == Users.username))))```
If it works, it should create an svg file in img/
friends = await db.execute(select(Users.profile, Users.username,Dms.id).join(Friends, or_(and_(
Friends.receiver == current_user.username, Friends.sender == Users.username), and_(
Friends.sender == current_user.username, Friends.receiver == Users.username)))
.outerjoin(Dms,or_(and_(Dms.sender == current_user.username,Dms.receiver == Users.username),
and_(Dms.receiver == current_user.username,Dms.sender == Users.username))))```
Which query do ya'll prefer?
π€·ββοΈ
I'm just trying with different version of Python
Python 3.6 works up until the point that a dependency of tensorflow requires python >=3.7
3.7 says tensorflow 1.6 isn't available
conda-forge
Conda is an alternative to the standard python distribution
I'm trying this now: https://github.com/swechhasingh/Handwriting-synthesis
Implementation of "Generating Sequences With Recurrent Neural Networks" https://arxiv.org/abs/1308.0850 - swechhasingh/Handwriting-synthesis
Well not quite
I believe one of tensorflow's dependencies required python >= 3.7
i'm seeing the deps right here: https://conda-metadata-app.streamlit.app/?q=conda-forge%2Flinux-64%2Ftensorflow-1.6.0-py36_0.tar.bz2
I got this working with python 3.7 (with only a couple of fixes needed).
I think it might be reasonable at this point to call it a day.
Sorry we weren't able to get that working @upper nimbus
This is the kind of thing I end up spending 80% of my time doing when programming, when I'd rather be writing code π
idk if it does the same thing
this is why i said how badly do you want this
really bad though
it's a lot of work around
The problem is a lot of these code bases were written for an academic project, and then abandoned. And were never really packaged well for usage.
mm i see
but the one you got working how well does it work?
the same as the other ones or both
no*
It has a web interface. You type in text and it generates handwriting.
You can also give an example of your own handwriting and supposedly it imitates it, but it didn't seem to be working terribly well, from what I could tell.
but were you able to get it working locally?
Yeah
alsong as its able to connect to https://a.co/d/1hoZMwW then ill be fine
and in my handwriting
Essentially:
- install python 3.7
- clone the repository
- make a python 3.7 venv
- pip install requirements, but first modify the requirements by removing the version number from
flask, because this seemed to have issues - there also seemed to be a missing file at
results/synthesis/best_model_synthesis.pt, so I just copied one of the adjacent files in that folder and named it such, then hoped for the best python main.py
Errr, I don't know about that sorry. It produces SVG files π€·ββοΈ
Wait, does it
flask?
Actually they're png files π€
i don't see flask in the req.txt
β @upper nimbus can now stream until <t:1711336779:f>.
These are instructions for this btw https://github.com/swechhasingh/Handwriting-synthesis
Geez it's 3am here
Were you here previously?
Yeah, although we're predicted a really hot summer this year I think π
Fair enough
What part of the UK? π
Oh right. That's not far from me actually
u r in birmingham iirc?
London
which part?
yeah i used to drop down to london pretty often
π it's a great place up there but i liked cambridge more
because it's not as hilly
i could ride my bike easier
So Iβm making a blackjack simulator to play the most efficient blackjack Iβve written a program to simulate blackjack but now I need to implement basic blackjack strategy which is essentially a large table that compares the dealers hand vs the player. What is the best way to implement that list and access the elementβs of the list when the table is based on a x and y axis?
At line:4 char:49
- git clone https://github.com/aimagelab/VATr.git && cd VATr
-
~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine\
Styled Handwritten Text Generation (HTG) has received significant attention in recent years, propelled by the success of learning-based solutions employing GANs, Transformers, and, preliminarily, Diffusion Models. Despite this surge in interest, there remains a critical yet understudied aspect - the impact of the input, both visual and textual, ...
im now in bed but ill try
the error says you didnt close the left parenthesis
@upper nimbus let's go to voice chat 1
@signal zealot you wrote line 111 wrong
how so?
replace line 111 with this:
screen.blit(black_images[index], (...
why did you write "(blit black_images..."
im new and stupid
unexperienced, apologises
you think i knew this before i knew anything about python
sure but thats fine
let me correct the whole line or ill try to give me a second
actually do this change and show me what is says
@signal zealot i also see you got your idententation wrong on line 98
how about this
can we get on a call somewhere tomorrow?
screen.blit(black_images[index],(
ill teach you the basics of coding so you can avoid these easy mistakes in the future?
!code
is this a new screenshot?
nope
because i see you didn't change it
"``` "
@signal zealot somewhere tomorrow good?
ill then fix your code too and explaining it as well why certain things are wrong
!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.
Line 111
# main game loop
run = "true"
while run:
timer.tick(fps)
screen.fill('dark grey')
draw_board()
draw_pieces()
#draw pieces onto board
def def_pieces():
for i in range(len(white_pieces)):
index = piece_list.index(white_pieces[i])
if white_pieces["i"] == 'pawn':
screen.blit(white_pawn(white_locations["i"][0] * 100 + 22, white_locations["i"][1] * 100 + 30))
else:
screen.blit(white_images["index"], (white_locations["i"][0] * 100 + 10, white_locations["i"][1] * 100 + 10))
for i in range(len(black_pieces)):
index = piece_list.index(black_pieces["i"])
if black_pieces["i"] == 'pawn':
screen.blit(black_pawn(black_locations["i"][0] * 100 + 22, black_locations[i][1] * 100 + 30))
else:
screen.blit(black_images[index], (black_locations[i][0] screen* 100 + 10, black_locations[i][1] * 100 + 10))
timer = pygame.time.clock()
yes now it looks good,l
thank you!
C:\Users\MONKS\Desktop\Coding\Python\Chess
D:\coding project
D:
PS D:>
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 3/25/2024 12:43 AM 6442 chess.py
-a---- 3/25/2024 12:44 AM 31 game.py
if row % 2 == 0:
pygame.draw.rect(screen, 'light gray', 600 - (column * 200), row * 100, 100, 100)
else:
pygame.draw.rect(screen, 'light gray', 700 - (column * 200), row * 100, 100, 100)
pygame.draw.rect(screen, 'gray', 0, 800, WIDTH, 100)
pygame.draw.rect(screen, 'red', 0, 800, WIDTH, 100, 5)
pygame.draw.rect(screen, 'blue', 800, 0, 200, HEIGHT, 5)
'''from analysis.inception import InceptionV3 isnt working in my python script:
PS C:\users\zayga\VATr-pp-main> python .\generate.py text --text hello
Traceback (most recent call last):
File "C:\users\zayga\VATr-pp-main\generate.py", line 2, in <module>
from generate import generate_text, generate_authors, generate_fid, generate_page, generate_ocr, generate_ocr_msgpack
File "C:\users\zayga\VATr-pp-main\generate_init_.py", line 1, in <module>
from generate.text import generate_text
File "C:\users\zayga\VATr-pp-main\generate\text.py", line 5, in <module>
from generate.writer import Writer
File "C:\users\zayga\VATr-pp-main\generate\writer.py", line 15, in <module>
from models.model import VATr
File "C:\users\zayga\VATr-pp-main\models\model.py", line 7, in <module>
from analysis.inception import InceptionV3
ModuleNotFoundError: No module named 'analysis.inception'''
hi
Unnamed classes are not supported at language level '8'
package cloud.hostlabs.superdev;
import org.bukkit.command.CommandExecutor;
import org.bukkit.plugin.java.JavaPlugin;
final String NAME = "SuperDev";
public final class SuperDev extends JavaPlugin {
@Override
public void onEnable() {
getLogger().info("Loaded SuperDev version 1.0.0 with Exit code 0");
}
@Override
public void onDisable() {
getLogger().info("Disabled SuperDev version 1.0.0 with Exit code 0");
}
}
what distro?
interesting
pip install git+https://github.com/tangentlabs/django-oscar-paypal.git
ace, cat samble | head ?
cat samble?
sample
!stream 425552190283972608
β @peak depot can now stream until <t:1711375582:f>.
hi
How goes it
today i did this https://github.com/DisnakeDev/disnake/pull/1176
-ewe
Oo, lookin' good
What's New
Groundwork for "removedIn" field of models3.json based on unused "deprecated" field (#2063)
Implement warning dialog for old Mistral OpenOrca (#2034)
Make deleti...
You've downloaded and installed the installer?
gotta go bye

Read data to pandas dataframe named google_big by using pd.read_csv().
!stream 425552190283972608 30M
β @peak depot can now stream until <t:1711378580:f>.
Can you type a cartoony quantum coin?
I'll be back in a sec
it looks like a mediæval torture device
!stream 752961471612452874
β @earnest crow can now stream until <t:1711382106:f>.
Logo is an educational programming language, designed in 1967 by Wally Feurzeig, Seymour Papert, and Cynthia Solomon. Logo is not an acronym: the name was coined by Feurzeig while he was at Bolt, Beranek and Newman, and derives from the Greek logos, meaning word or thought.
A general-purpose language, Logo is widely known for its use of turtle g...
!stream 752961471612452874 30M
β @earnest crow can now stream until <t:1711384102:f>.
wow, turn down your sound
sheesh, that just ripped my ears
there're multi-modal models but no luck with gpt 3.5
@earnest crow buddy could you please hold your mic a little farther?
@client.event
async def on_message(message):
if message.author == client.user:
return
print(f"Received message from {message.author.name} in channel {message.channel.name}: {message.content}")
await client.process_commands(message)
I gotta use textnow
nah, it's alright
Nah, somebody started ocupying my room so i cant talk
@whole bear sup?
Sup brother
Havoc? If you neeed anything realating discord bots just tell me we can figure it out :--)
when u gonna stop dodging the adoption matches π
@ivory stump Hey man what are you doing?
Nevermind ill go do some chess
sorry can't talk, I'm in a library.
@edgy canyonπ
hallo

@pine depot are you alright?
cows canβt use computers
who said we cant teach them
Me
they will prob be an alcoholic but no problem
Just put elon's brain's chip
my code dose not work:(
Make it work
A crackhead doesnβt go out and say iβm not gonna smoke crack today. They go out there and hustle, you need to take that mindset. And push ur self more, do better.
i have to finis the code in 3 days π¦
and ive been coding for like 3 h
and havend done shi*
THE CRACK HEAD HUSTLES FOR THE CRACK
YOU NEED TO HUSTLE
AND
GET
UR
CODE
TO WORK
!!!!
do i need to wip it?
i'mma get out now @whole bear cya
i donβt know shit about python
Then why are you in the server?
then u try coding for 5h and for it to not even work
well il go back to the cotton fiel(coding) bye
@ionic creekπ
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Was playing some terraria
Vc needs moderation
I mean, I can talk if required
@ivory stumpWhen is your birthday?
looks like resistors and stuff from electronics class.
I don't usually tell people that
Also Do I need to chill down on pinging you?
passively cooled
scammers are getting smarter lmao
code...
PLC, FPGA, ASIC
class Valve():
def __init__(self):
self.open = 0
self.close = 0
self.value = 0
valve1 = Valve
valve1.open = 1
device_network[0][1].4
germans would pronounce it as "ess koo ell"
@amber raptor https://github.com/sustainable-computing-io/kepler/
Kepler (Kubernetes-based Efficient Power Level Exporter) uses eBPF to probe performance counters and other system stats, use ML models to estimate workload energy consumption based on these stats, and exports them as Prometheus metrics
your thoughts on this?
found it while I was looking for something able to measure power consumption per process or per container..
@vocal basin
Have not seen you for a while
Ehh, I canβt imagine most people care.
ML models probably suck more power then apps
Does anyone know any other cloud provider that offers free tiers other than render that is good?
oracle and ibm offered some nice free tiers, not sure if they still do
yes
Bless my bro
class CityBase(SQLModel):
ibge: PositiveInt
name: str
ddd: int | None = None
class City(CityBase, table=True):
id: UUID | None = Field(default=None, primary_key=True)
addresses: list['Address'] = Relationship(back_populates='city')
class Coordinates(NamedTuple):
"""A coordinate consists latitude, longitude and altitude."""
latitude: float
longitude: float
altitude: float
class AddressBase(SQLModel):
zipcode: PositiveInt
neighborhood: str
complement: str | None = None
# city: CityBase
# state: StateBase
# coordinates: Coordinates | None = None
class Address(AddressBase, table=True):
__table_args__ = (UniqueConstraint('zipcode'),)
id: UUID | None = Field(default=None, primary_key=True)
state_id: PositiveInt = Field(foreign_key='state.id')
state: State = Relationship(back_populates='addresses')
city_id: PositiveInt = Field(foreign_key='city.id')
city: City = Relationship(back_populates='addresses')
!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.
The error message you're encountering, ValueError: <class '__main__.CityBase'> has no matching SQLAlchemy type, suggests that SQLModel is unable to map the CityBase class to a corresponding SQLAlchemy type. This typically happens when you're trying to use a custom class (in this case, CityBase) as a field type in another SQLModel class without properly defining how it should be represented in the database.
In SQLModel, when you define a relationship between two models, you need to specify the type of the relationship. For example, if you have a foreign key relationship, you should use ForeignKey from SQLAlchemy to specify the type of the foreign key. However, in your case, it seems like you're trying to use CityBase directly as a field type in AddressBase, which is not directly supported by SQLModel.
from strawberry import auto, type
from strawberry.experimental.pydantic import type as pydantic_type
from database.models.brazil import Address, City, State
@pydantic_type(name='State', model=State)
class StateType:
name: auto
acronym: auto
@pydantic_type(name='City', model=City)
class CityType:
ibge: auto
name: auto
ddd: auto
@type(name='Coordinates')
class CoordinatesType:
"""A coordinate consists latitude, longitude and altitude."""
latitude: float
longitude: float
altitude: float
@pydantic_type(name='Address', model=Address)
class AddressType:
zipcode: auto
city: auto
state: auto
neighborhood: auto
complement: auto
coordinates: CoordinatesType | None = None
reminds me of https://plantuml.com/timing-diagram
This seems interesting... it's often hard to get access to hardware metrics like this in K8s.
Yes although direct numbers at that level of granularity are unavailable and they use some ML to estimate them
In Linux, powercap via Intel RAPL provides per-device power usage. But drilling down from there requires clever tricks like the ones in kepler
bro thats from dinosaur age, what brand is that?
Allen Bradley plcβs, theyβre still around!
i know
Idk about the photo specifically tho
I got a few 1756βs, slicks, etc. at work
Woop woop controls/automation engineers get
Ftw*
What industry
amazon
I do food
Likewise lol
though i been playing around with pylogix thats why i joined
have you tried?
its a library
No I havenβt! Unfortunately I have 0 time for fun because work ships me out to commission projects and I still do college lol
Any way to use conventional programming instead of ladder logic is met with open arms though
TOXI
I mainly use pylogix for transer plc data into virtual hmi and graphs
we use factorytalk or learn whatever the customer wants over the course of a project lol
how does it feel to be a mechanical, electrical, and controls engineer all at once?
i feel like we have to be jacks of all trades
^true
.8ball is @ivory stump the best mod?
Concentrate and ask again
.8ball is @Cheeki the best mod?
It is decidedly so
@whole bear π
hello
am uprssed
suppresed so l cant talk
yah l have to send 50 messages
π
good @bold oracle and you?
@ivory stump We need you
whether I order chiptole or jimmy johns
jimmy johns is probably healthier
Chipotle
Have you tried it? I have a k8s cluster at home, I could run it there.
I havenβt run k8s ever. I was asking Rabbit yesterday what a k8s setup should look like. He told me I should use ArgoCD. Maybe we can talk and you can tell me how to run k8s, I would try out Kepler yeah.
@amber raptor @tall ridge these arrived today. iβm a noob at cable mgmt. maybe will learn how to do it properly. you like the colors?
@upper basin mb ! so basically learn about k clusters and how it relates songs to each other
thank you
https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/ might take this
@coarse spindle ask in the chat. Your mic is echoing
It's polynomial regression.
i cant talk
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Brb
yo @upper basin choud u help me ?
Hello
!stream 1218705542814634045
β @golden delta can now stream until <t:1711462020:f>.
β @golden delta can now stream until <t:1711462020:f>.
@lucid blade Sup
yoyo
@rugged root https://physics.stackexchange.com/questions/598569/what-makes-a-quantum-computer-faster-for-solving-specific-problems
yo chould anyone help me whit my problem?
What's the problem?
i am trying to make a web site using flask
and when i run it it sais app.register_blueprint(views, url_prefix='/views') error
and ive been trying for like 4h to solve it
dose anyone know how to solve it?
ok
6 more days until i can afford a can of pringles.. wondering which flavor i should get
bbl i got dentist π¦
my dentist wanted to pull out a tooth.. i was like nopes i'm out
!tvmute 956167389010075678 2d Being disruptive and playing music into voice chat is unacceptable. If you continue to be disruptive after the mute expires, you will have your permissions removed permanently.
:incoming_envelope: :ok_hand: applied voice mute to @edgy edge until <t:1711635778:f> (2 days).
chould anyone help me whit my problem? when u can
Can you give the full error and traceback of the flask thing?
i can take a photo i have it on py laptop
That'll work
Looking at the issue. It'll be a moment, I have to make a call to a vendor at work
Sorry, busy busy morning
line 1 is blank
Roger
Okay I think I have it, one sec
from flask import Flask
from views import views
app = Flask(__name__)
blueprint = Flask(__name__, url_prefix='/views')
app.register_blueprint(blueprint)
...
Everything under the ... is the same as the rest of the code
Not sure if that's it or not, mind you
ok roger il try it
Okay, now making a quick vendor call
I just realized I did it slightly wrong
I think?
Now I'm second guessing myself
Might as well try this and see what/if we get any errors
Different errors at least?
Oh I'm not done
who wanna see my game? {WIP}
My curiosity is piqued now
im working on the ui it looks horrible idk how to fix it bein bad
I'm not really that good at making GUI stuff look good (well I'm passable with web front end stuff). What framework is this?
wdym what framework
i use tkinter ye
u might remember be annoying orange i just changed my name and pfp to match w my gf
With tkinter, it's going to be tough to make it look good or more modern
It's more meant for quick and dirty things, and it's tough to doll it up
what is better to use then?
Honestly, for incremental games I'd recommend making it web based. Might be good to continue fleshing out the mechanics in Python, but you're going to limit yourself on who will get to play it.
Now
Having said that
There's plenty of pretty looking Python libraries that also translate to web relatively well
... he says trying to remember which they are
Crap, actually one moment
@rugged root when u find the error can u ping me?
Yep. I'll keep hunting
ty
You might use the help system as well if you haven't already. See #βο½how-to-get-help for more details on that. I have a feeling it's going to be a busy as sin day
ok ty
Oh also
They'd likely know more about the specific Flask issue there
@edgy canyon just incase you missed the message, wasn't sure if you already scooted to look at the other channels
ok ty
Oh that is much more pleasant
@golden delta Just wait
Listen to the guy who does IT for a living
Breathe
Fresh Start in Windows 10 lets you perform a clean reinstallation and update of Windows while keeping your personal data and most Windows settings intact.
But actually before that
Right, and that thing I linked will tell you how to do a full reinstall of Windows
@whole bear I'd just put it into a trust
Like a conditional one or something
Yarp
@golden delta Yes, and there's an option that lets you do that
Conch
We talked about this
Shock collars
You shouldn't put it on a dog anyway
Kids on the other hand..
This is why I'm not a dad
I can barely take care of myself, there's no way in hell I could take care of a kid
I'm fine with just having a cat and wife
I'd be a good uncle
We need to get you $$
$$ == Good Dad
Money would be nice. I'm actually looking at signing up for foodstamps at the moment
@whole bear One of the B vitamins, right?
Ah nice
hemlock this is pain
I'm helping someone make their resume and find remote jobs for 120-180k today
Yeeeaaaahhhhh GUIs tend to be a pain in the ass
yep
I am also helping someone with 0 college education who is working in a call center with no python programming skills to get a job for 70-90k
@upper basin I'm back to being Mr. Typelock
gui in luau (roblox) is so much easier lol
True, but it has easy tooling for it in Robolox
I'm just scared and anxious about job swapping. Career swapping
Vivite. Rideat. Amare.
Live. Laugh. Love
@upper basin "A society grows great when old men plant trees in whose shade they know they shall never sit"
That's what I would aim for
To me, a legacy should be for the benefit of the people to come after
I think it's both
It's not black and white
You can have both
They do what they love, they have the passion for it. It isn't always a sacrifice to them, but a purpose
For them, it was
Why
Again, I don't see why you're saying it's either extreme misery or a lavish life style
People can be perfectly happy and content with less
Sure, but why not try to make a difference. It doesn't mean you have to sacrifice everything
There are ways to help build to a better future without massive self sacrifice
No that's a good example
"Fuck saving that guy, I don't want to drown"
Quantity
Oh that's gooooooold
I just don't see why it has to go instantly to the extremes. That's what's confusing me here. Taking time to donate or volunteer at a food shelter or dumb little stuff like I do where I help folks with coding those don't take a huge amount of self sacrifice
@sudden lance Sup
It doesn't have to be a huge or significant amount of time either
What's the phrase...
Many hands make light work?
It's not about a legacy of being known
It's knowing that you made a difference, even in a small way
That's what it means to me
That's how it should be
Considering the angles, considering other view points, trying to see what others see
@fast sparrow Sup
Co-worker is back here, so just being Mr. Typelock
Oh no, I know that most people aren't going to be altruistic
But that doesn't mean you can't try
Like what I was saying
Even small things, holding a door open for someone
Little acts of kindness can go a long way