#voice-chat-text-0
1 messages ยท Page 64 of 1
yes, that is one of this channel (#voice-chat-text-0) purposes
okay
so i am 31 years old and i live in syria
and i achive nothing in my life
i have a law degree
but i make nothing from it
this one?
@midnight agate
steve jobs was syrian BTW
yes u can google it if u like
Syrian father
true
no siri is a differnt company it Bought by apple
so guys can i ask a few questions !
Sure.
For beginners what are the first steps to learn a programming language
I mean for people who have 0 previous experience
@rugged root -- find your voice yet?
Online courses are not free and the problem is that in Syria according to the US sanctions on Syria we cannot buy anything online and the free courses are not good
any site recommendations
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
make sure to check the free checkbox
lmao
try checking "book", "course", "tutorial" and "video" at the left
what i can do to be able to use VC
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
How long does it take to learn python by course before I could answer the easiest leetcode
How long do you think I need to learn
if you would actually show the whole error it might help
oh, C#
I don't know anything about C#
Is writing correctly and quickly necessary?
Could the json be malformed?
maybe you could ask in a C# server?
i paly alot of CS and VALORANT
Not necessarily. It helps to be exposed to different ways of solving problems.
hacker lmao
It's about how well and diversely you think about problems that brings you speed, not how fast you type.
so should start learing with python or should i go with somthing more simple
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
You're a very nice group, and I can't wait to be a part of this community.
I'm very bad at math,so will that be tough to learn programming as well?
thank you โค๏ธ
!e ```py
class MyClass:
def init(self, value):
self.value = value
@property
def value(self):
return self._value
@value.setter
def value(self, value):
self._value = value
instance = MyClass(5)
result = instance.value
print(result)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
this is python right?
REPL. Read Evaluate Print Loop. >>>
Typically, you will be writing modules. .py files.
is it like CMD
The REPL is, kind of. py files are like bat files.
๐ฆ
I've already learned some C# and C at school probably I know the grammar, but it is so hard for me to try something myself(bad at thinking๏ผ. How could I solve this problem
?
like right program not to command a prograrm
oh
write*
yes
"write"
write?
my english typing is not that good
i can speak EN very good thow
i think i should foucs in typing Correctly as a first step
u guys all development yes!
yes
reading is bttr!
gpt?
chatgpt doesnt help?
not learning
it can help you perhaps to find your error
in your code
thats what i do
and what do you do when it's wrong
not learning
is what i meant
errors is what i meant
i agree!! @whole bear
worked for me as well
I did some digging for my own education and I found the source for the term "eubacteria"
I don't know what you know about Syria, but the situation here is very bad. We don't have electricity, the internet is very bad, and I want to get out of this country and start a new life and a good job... I've spent my life behind a computer screen and I think I have the ground to learn new things.
if you don't have electricity how do you run your computer
I was somewhat surprised at how recent it is
that's a good idea
panels are expensive though aren't they?
brb
its is yes
ChatGPT is only good at finding common errors
questionably good still but eh
the major taxonomy model with that term existed in 1998-2015
which, imo, sound like quite a short lifetime
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
โข PEP 8 document
โข Our PEP 8 song! :notes:
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
imo, Rust docs are a step further
but that's more of "Python should get better" not "switch to Rust"
should != must
you know about the new python style guide, right
the one which overrides pep8
Python Enhancement Proposals (PEPs)
It's not April.
there was a language by Mark Rendle called "BS"
from that same presentation
(not BS, but a reference to Python)
i'll do that
this
thank u so much guys for helping me
oh, I didn't notice earlier how much bad the unless syntax is
I appreciate this very much
input_string = input("Insert your string:\n")
letter_list = []
start_program = ""
end_program_list = []
for i in input_string:
if i not in letter_list:
letter_list.append(i)
start_program += f"{(letter_list.index(i) + 1) * '_'} = '{i}'\n"
end_program_list.append(f"{(letter_list.index(i) + 1) * '_'}")
end_program = f"print({' + '.join(end_program_list)})"
print(start_program)
print(end_program)
there was a talk by, I guess, Dylan Beattie about (jokingly) the hypothetical future language
which by default does the "Hello, World!" if the code's empty
@final grove ๐
!e
input_string = "Hello, Opalmist."
letter_list = []
start_program = ""
end_program_list = []
for i in input_string:
if i not in letter_list:
letter_list.append(i)
start_program += f"{(letter_list.index(i) + 1) * '_'} = '{i}'\n"
end_program_list.append(f"{(letter_list.index(i) + 1) * '_'}")
end_program = f"print({' + '.join(end_program_list)})"
print(start_program)
print(end_program)
@gentle flint :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | _ = 'H'
002 | __ = 'e'
003 | ___ = 'l'
004 | ____ = 'o'
005 | _____ = ','
006 | ______ = ' '
007 | _______ = 'O'
008 | ________ = 'p'
009 | _________ = 'a'
010 | __________ = 'm'
011 | ___________ = 'i'
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/zusemesafu.txt?noredirect
this is exactly the satire on "well, you want to print hello world"
so, after I spoiled everything, everyone can watch this
https://youtu.be/vcFBwt1nu2U
There's something good you can say about every programming language. But that's no fun. Instead, let's take the worst features of all the languages we know, and put them together to create an abomination with the worst syntax, the worst semantics, the worst foot-guns and the worst runtime behaviour in recorded history. Let's make a language so b...
hack:
tail.next = right or left
ListNode is not self-referential here
it's singly-linked
recursive
unlike doubly-linked
I did reverse order to preserve the logic
Rust's version of hell for beginners
Learning Rust With Entirely Too Many Linked Lists
yes
doubly linked
singly linked are fine
Node T = None | Some T (Box (Node T))
I miscombined Rust and Haskell, yes
okay guys I'll leave now but I'll come later with more questions (thank U ) โค๏ธ
to construct, either Node<T>::None() or Node<T>::Some(t, box)
and in HS to construct it would be None or Some t box
I can't write Rust without IDE still (don't remember the syntax well enough)
struct Node<T> (Option<(T, Box<Node<T>>)>);
second T denotes value
so, None() or Some(T, Box<Node<t>>)
I'm not sure whether I have Rust installed anywhere
last time I used CLion
and the license is no more
what's the code, again?
I'd expect is None to be faster
idk whether that works with left or right line
you can paste the code
A browser interface to the Rust compiler to experiment with the language
yes, kind of that
30c here
Node T = Maybe (T (Box (Node T)))
Node T = Option (T (Box (Node T)))
(haskell-ish and rust-ish)
for linked lists, use lisp, I guess
enum Node<T> {
None(),
Some(T, Box<Node<T>>),
}
fn main() {
let _n: Node<_> = Node::Some(5, Box::new(Node::None()));
}
@sudden barn So you know how in dog racing how they have the fake rabbit that they zoom around the track on a line to get the dogs to chase it?
That, but it's programmers and programming problems.
:D
Hi opal!
How are you?
enum Answer {
Yes(),
}
Answer::Yes()
Fair
Well did
You lead an exciting life, my friend
Most of them involve angry racoons
Oh actually
We did see a deer using the sidewalk at some point
๐
That was cool
context (from VC):
and the answer for this can be* "yes."
* sounded like there will be a list of possible answers but no other answer was provided
(replied to wrong message but anyway)
You're lucky you're handsome, Opal
Wow, I am truly a nerd. "Wait, how can I be sure I put the same email address in correctly? QUICKLY, TO THE REPL!!!"
feral deer
Just imagining deer with tusks now for some reason
That was actually the running joke in our D&D group
Anytime the druid shapeshifted into the dire form of anything, it meant it got tusks
Didn't matter what kind
Ooo
Saber tooth squirrel
That'd be adorable
Although bad for the squirrel
Can't imagine trying to crack into an acorn with those chompers
I'm trying to imagine who that is now
Gimme a hint
Hmm
Yeah, fair
I keep hovering over Laund's stream and it looks like I'm opening a window into a grape
I remember I ever got scratch by squirrel.. ๐
The red ones look more crazed
@somber heath That's racist
OH, do you remember Foamy the Squirrel?
Back in the glory days of flash cartoons
@sweet lodge Yo

Wait, you got scratched by it or you got to give one scritches?
Scratched by it ๐
@somber heath It was the weird dissonance between quick animation but also weird jerky animation
Well that was rude of it
Yeah, ๐
log4j has entered the chat
Log4j?
You're here to write text to a file, how vulnerable does that have to be?
It's a logging library for Java
Used (or at least was used) a lot in applications all over
I see I see
If memory serves, NewGrounds has a Flash wrapper to safely run them
Which is wise of them, because otherwise there goes like
ALL their content
Are they migrating that content to a still-supported platform?
They're just wrapping the flash files with the new interpreter
So it's all still there, just different with how it's executed
I think
Honestly haven't been on there in like.... jesus, over a decade
Man that was a long time ago
I remember spending a lot of time on it back in the mid-00's
Holy crap that site is that old now
Weird
Capybaras always look so done with everything around them
Oh yeah, Alien Hominid was a classic
๐ค .
One of the games put out by the NewGrounds crew proper, if memory serves
Actually had a console release, although it was a bit different
@whole bear That's a very..... interesting status you have
!voiceverify
You already have the role
OMG
You just have to unmute your mic
discord is being weird again
As is its way
Bruh
If Discord stopped being weird I think I'd start worrying about it
Go into your settings and see if it's looking at the right device
There is nothing
LMAO
Oh was it blocking your input?
Guess no mic for me then
Could try the desktop client
NO!
@somber heath There was also ArmorGames as well
Plenty of platforms like that at the time
I guess that was about the same time as Albino Black Sheep and eBaum's World
@somber heath Phrasing
What was the issue with it?
Ah yeah
Gotta love that
"Science API"?
Eh
I'll sacrifice privacy for convenience
Yarp
Wait, your router runs Python? @whole bear
I just use uBlock Origin and Privacy Badger
And smart internet browsing practices
They have to make their money some how
Fair
Yep, love that one
/s?
Smart message to have, honestly
No
I genuinely think it's a wise thing for them to add
Covers their ass
Ah, gotcha
That makes sense
Very cool
@molten pewter Squats are as well
Good exercise
8 years? How old are you if I may ask?
Back in a bit
||12||
Just use Rust BTW
Rust BTW soooo much better
C has a
because it's completely terrible with memory
You have to remember all kinds of crap because C is a completely terrible language
All hail Rust BTW!
synonym
[2023-01-26 16:39:32.009123][MTAxNjg0Njk0NzY3Mz]
time_id
It's a log line? With a timestamp and a node ID?
It's just a record_id, event_id
log_record_id maybe
Speaking of languages, it's time to halt starting any new projects in C/C++ and use Rust for those scenarios where a non-GC language is required. For the sake of security and reliability. the industry should declare those languages as deprecated.
7786
1597
def _get_guild_channel(self, data, guild_id=None):
channel_id = int(data['channel_id'])
try:
guild_id = guild_id or int(data['guild_id'])
guild = self._guilds[guild_id]
channel = guild.channels[channel_id]
# guild = self._get_guild(guild_id)
except KeyError:
# Absolute cringe!
try:
channel = self._channels[channel_id]
except KeyError:
channel = None
channel = channel
guild = None
return channel, guild
Is what possible?
"subscribing to channels"
I thought not
You can subscribe to channels and guilds with the right intents to get all the updates regarding status updates, voice updates and all that
You do this by sending a request to the gateway.
The guild channels and DM channels etc are parsed on_ready()
@amber raptor Do you like the idea of Carbon, or do you think we should jump straight to Rust BTW [or whatever]?
Please link to documentation that shows Gateway Intent for subscribing to messages to channel
I'm doing this myself
I'm not using discord.py
Please link to documentation that shows Gateway Intent for subscribing to messages to channel
def parse_ready(self, data):
self.user = ClientUser(state=self, data=data['user'])
# add all the users
for user in data['users']:
self.store_user(user)
for guild_data in data['guilds']:
self.store_guild(guild_data)
for private_channel in data['private_channels']:
channel_id = int(private_channel['id'])
self._channels[channel_id] = PrivateChannel(
me=self.user, state=self, data=private_channel)
self.dispatch('ready')
def parse_message_create(self, data):
channel, _ = self._get_guild_channel(data)
if channel is None:
return None
message = Message(state=self, data=data, channel=channel)
user_id = message.author.id
if user_id not in self._users.keys():
_log.debug('[{}] new user: {}, {}'.format(
self.id, message.author.id, message.author))
# Append user to the user store because we can't fetch the (easily)
user = self.store_user(data['author'])
self.dispatch('new_user', user)
self.store_message(message)
self.dispatch('message', message)
``` @amber raptor
there's a thing to auto-repost from one channel to another (without any local code; the discord handle it on their own)
it may be called "subscribe" or may not
but that sounds like something different
also, the first channel needs to be of a specific type (news/announcements/whatever)
No, Please link to Discord Documentation showing Message Intent by channel
Ok.
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
that's ready event
doesn't sound like intent
nvm, it's a response to sending intents; so that's why the link itself doesn't mention intents
In addition to the gateway restrictions described here, Discord's REST API is also affected by Privileged Intents. For example, to use the List Guild Members endpoint, you must have the GUILD_MEMBERS intent enabled for your application. This behavior is independent of whether the intent is set during IDENTIFY.
oh
@amber raptor I have....
Business request is to create a database table(s) to be a "master record" of some information, that can be referenced by people.
I have a managed PG instance in Azure.
Now I need to give the business people access.
Is there anything inherently "bad" about just like putting the Metabase Docker container in an App Service?
Lets them play build your own reporting, which keeps me from having to do it
Big thing for me is security, Google told me not to expose it over the internet
I'd firewall it, but that'd screw over our remote workers
Write an interface
PowerBI?
Powerbi :/
Actually....
There's an idea
I always forget that one
They didn't take my hosted PG IIRC
But that would probably be perfect
Oh no it's been support since Nov '19
Badass
!e python a = 1 b = '1' print(a+b)
@amber raptor :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | TypeError: unsupported operand type(s) for +: 'int' and 'str'
!e python a = 1 a = '1' print(a)
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
1
Busy busy morning
hi hem
It's necessary?
Yo oof
@whole bear How would you deal with errors otherwise?
No?
beat them in the face
Sounds like a https://github.com/vcokltfre/angryexception
Linter is for styling
# pylint: disable-next= my beloved
Fair
Oh sure, fair fair
I think my mental definition was too low
@limpid sparrow The hell did you do?
You have 26GB?
except (websockets.exceptions.ConnectionClosedError, websockets.exceptions.ConnectionClosedOK) as e```
You can do that, yeah
so you know how I have to fill in a health check form before doing an exam or anything like this
filled it in, got no answer
Most languages that have any error handling will
You can make it more consise
except (
websockets.exceptions.ConnectionClosedError,
websockets.exceptions.ConnectionClosedOK)
as e:
turns out their email system was down on the day they sent me the response and they never actually sent it
but of course they didn't bother telling me
another month gone to waste
from websockets.exceptions import ConnectionClosedError, ConnectionClosedOK
...
except (ConnectionClosedError, ConnectionClosedOK) as e:
except (
websockets.exceptions.ConnectionClosedError,
websockets.exceptions.ConnectionClosedOK
) as e:
try:
r = requests.get(url, params={'s': thing})
except requests.exceptions.Timeout:
# Maybe set up for a retry, or continue in a retry loop
except requests.exceptions.TooManyRedirects:
# Tell the user their URL was bad and try a different one
except requests.exceptions.RequestException as e:
# catastrophic error. bail.
raise SystemExit(e)
@gentle flint I would argue that this is a place where the US is better
Not really
Handing out driver licenses like guns is bad but it would also require us to fix way we build cities
Oh sure sure
You get away from my guns
@whole bear I guess I'm still confused why you would think error handling is bad. I can't tell if you're memeing or not
There's just norway that's true
Like, how else would you handle an unexpected issue? Just let it crash out?
You don't?
@velvet tartan The Rust Book that's on their site is pretty good
Ooo, I hadn't seen this before
There's also Rust by Example on their site as well
Thanks Hemlock ๐
Happy to help!
Another convert?
The community one is, @amber raptor
@stuck furnace ๐
And it's robust as hell now
@limpid sparrow Faster how?
Faster to compile to JS?
Yeah toss a link
I'm curious
More or less
@molten pewter You're like
Welcome to the Church of Rust BTW!
I see you've already been given a complimentary Bible
Come, come, we'll introduce you to the welcome team and get you a study group and an accountability partner.
We really hope to see you again next Sunday!
So quiet
I can hear a small whisper of a voice
He's shrinking!
There should be modes that do it on the fly, right?
Or only recompile certain sections
Unless I'm misremembering
Link it
@limpid sparrow
That's the rabbit I know and love
The "is used by" should be taken with a grain of salt
That can mean that one or two people on a small team in the company use it
Not that it's fully adopted across the whole company
@terse needle Sup brah
It's specifically comparing it to Babel, which yeah, makes a bit of sense
But I thought Babel wasn't the gold standard like it once was anyway
xd
Is anyone speaking? ๐
Ah ๐
I was wondering because my client just crashed.
I stay away of node, they are worst for just strapping rocket engines to cars.
Hey ๐ Just saw this sorry.
Like... Typescript itself handles the compatibility for different versions
All good
It really did
I can hear him now!
It seems better, so why isnโt everyone using it? Is there features missing or it requires code changes?
@molten pewter Or you're head is hollow and allows for some sick acoustics
Iโm always wondering when people are like X is clear upgrade. So why isnโt everyone using it?
What is the dog doin here
Various reasons I guess
Usually cost
And then it comes out, well A B C usage case isnโt supported.
@sweet lodge
Time
Me personally I wouldn't just take that
Labour
Tech debt

My guess
TypeScript to JavaScript doesn't need to rewrite every single thing
Why is it slow
Unless you're doing it all in one file, ja?
Same advise we give people when people saying "python slow, how to make faster"
like, partial recompilation, I guess?
is that what you're talking about?
Turbopack
Yeah
The new Next thing?
Next 13 uses SWC yeah
I'm not sure what exactly you find to be slow
I've never had speed issues with the typescript compiler
swc seems to mainly just be a competitor to Babel, not TSC
As DevOps, I just donโt care. Compile time is generally not a huge deal when going to prod. 2 vs 7 minutes, whatever, our cost per build minute is fractions of penny.
I'm just wondering how much time the compilation takes that it would make a noticeable difference. I'm not for or against, just curious
(esbuild from its "from scratch, no cache" sounds like not doing it)
To be completely honest, I don't really know what either of those are
Then what do you do as DevOps?
Infrastructure
Babel is a transpiler. You take JS code that may not be compatible with older browsers (like say your code uses ES6 things where the browser you're targeting only support ES5) and pipe it through. It will then make approximations or tweaks to make those new features work
Bicep, some compiler tooling
Previously, Babel was mainly or only for JavaScript, not TypeScript
And the TypeScript Complier already handles these version targeting things
sup
Later rab

!voice โฌ
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Our devs are notorious for passing off anything they can.
not enough messages yet
See you Crystal
You do have a very German accent. ||/s||
I try not to make exceptions to the verification.
You've almost hit the message count, just hang out here and talk and you'll hit it naturally in no time
Don't spam please.
i ain't spaming
That is
Did you read #voice-verification ?
And if you DO spam, I add 2 weeks to how long it takes
Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.
As I said, hit it naturally through conversation
It really doesn't take very long if you participate in the text channels of the server.
A lot of people
Copy, alt tab, paste?
That not an option?
Or am I misunderstanding
vim users always seem so entitled
"My way is the best. How dare you imply we have to use a mouse, you peasant."
It's a matter of preference
I just don't think in a way that I benefit from not moving my hands from the keyboard
Helix is a good alternative, if you want something like Vim but with less configuration. Although it's still a fairly new piece of software so it has some issues/missing features.
"Ugh! Why isn't every operating system just keyboard based"
Oh the emacs people are here?
You rang?
I don't feel like I'm suddenly crippled by having to move my mouse or take a second to think
how do i know how many message
Like
You don't
Run !user in #bot-commands
Why do you have a keybord??
Why are you not configuring with code??
Don't you IaC bro??
I use Ansible to maintain my NixOS bro
Nvm
thanks
i have 45
messages
after i complete
to 50 i will be able to voice chat
right?
Last warning
You're doing the short messages on purpose solely to get the role
Stop it
no man
I don't remember whether I told this here before, but
when I was at school, our IT teacher explained how to use keyboard in libreoffice calc because "mouse is for housewives"
but one time we were taught to use mouse is the drag-to-extrapolate thingy because "numbers go wheeeee"
Read what's in the #voice-verification channel
The instructions and details are there
CTRL + R for the video role
Can you grant me a cookie?
Share to do what
@limpid sparrow @whole bear @formal ember Stop being tools
@lost valve They're trolling you
@rugged root man gotta share my cam or screen
You're not getting it then
(reason?)
I grant it for code streaming or help. It's not just for having it to chill
Plenty of servers for that
for help with code, there's !paste and !code also
LoL
You are having a conversation right now
this button exists for a reason
i don't think anyone uses that
I can imagine the quality of debate that takes place there ๐
political debate discord
Least political discord server
God damn it Shen
Probably full of nice people
Maybe we can find more Texans
Hey, they asked
Damnit let me join !!!
@lost valve Wait, you said who was there?
Rust
looks ascii-ish
disgusting, I'd guess?
yep
mistyping self is even more disgusting
Slef
@lost valve Can you turn on push-to-talk please. You have a lot of background noise.
๐
!mute 554417200123871326 1d Sexual and inappropriate jokes, even in ASCII or Base64, are not appropriate or acceptable here. Please review our #code-of-conduct before returning
:incoming_envelope: :ok_hand: applied mute to @lost valve until <t:1674840121:f> (1 day).
Lots of attempts at starting debates?
That's Lord Hemlock to you
Sir Hemlock should be our next bot
Lots of immature people being a pain in the ass
We already got Anubis and Lark and.... How many bots you trying to make?
~assholes~ as opal may say
Ctrl+F, "in:#voice-chat-text-0 from:hypnos"
that happened
Not as many as you
I may have made a few bots...
I never realized how many pies you had your grubby little paws in

My paws are cleaner than yours!!
i see a github
repo
nothing more?
Already removed the aforementioned message
๐ฆ
attempts to circumvent the message count threshold
Pretty sure birds don't have paws
Fine
nvmm
My paws are cleaner than your claws
i shdnt have stopped to pet my dog:{
Claw patrol
maybe
Interesting how quiet it got once I muted that guy
It's your fault
In mean in VC itself
Get your voice back already
peace and harmony and rare random background noises
If only it were that easy
hemlock also lost his voice?
We're all typing to be accommodating to you, mr novoicelock
@molten pewter Whatcha doin'
i like those background noises
Didn't Mina also lose her voice
it helps me focus
@formal ember What's the question?
Except for @unreal hazel
They're just crazy
I'm the most accommodating person on the planet
says you
Considering I accommodate you 
I need no accommodating
Where code?
#databases might know
If you want help, where code?
Never really messed with SQLAlchemy
Been meaning to
Ah fair
What are you trying to do overall?
Oh right right
Neat
I think I'm just too used to doing raw SQL
ORMs confuse me
Like ideas about implementation?
hey how do i get personalized help?
I made one project on SQLAlchemy and, sadly, Flask
(also, that's the (almost) same project that I used Angular for the front-end; the only my web project that looked good and was actually usable)
So the current thing you're trying to tackle is how you should handle sending and receiving stuff from FastAPI to the database?
wdym "personalised"?
I'll have to think for a sec, juggling here and work
One on one?
Sorry
idk if i go here from a problem or legacy python help system
Slacking at work are we?
Not slacking, just finally got the email I needed to fix something
legacy help system was replaced by #1035199133436354600
@sweet lodge you slacking too? 
No
Doing database exports
Those take time don't they
These do
Huh... I guess it is the legacy help system now
I just remember back to when we had like 3 static help channels
Back in the before times
thank you
@unreal hazel wasn't even born then you 
Were you ๐คจ
how many different naming conventions did it go through?
(I only remember food and elements or whatever it was)
No
Hey @pallid hazel :)
Fancy seeing you here @pallid hazel
Appreciate the advice you gave me yesterday
I'm doing it so it becomes manageable
@formal ember I know how we do it on PyDis with our database and site, but I don't know what a good setup would be for a more minimal system
SQLA
Use 2.0
Keep it small
Nice bot
It uses sqla?
SQLA can be dead simple if you let it
Yeah
I've never used anything else
Other than like raw SQL
Heck that sheet
๐
I hate all financial software
And even Thomson Reuters damn client portal bs
Like
I don't have the words to express how annoying it is
Dealing with it is like getting kicked in the nuts over and over again
And yet somehow less enjoyable
Man I really need to get more familiar with all the web stuff
Just wish I had time
automate the boring stuff so you can be a slave to the machine
Tamakeri
Always good to learn new words
Good to know ๐
yeah
That's pretty nuts, though
that was educational
Minus the enjoyment
That also sounds like a euphemism. "Kicked him right in the Reuters"
Nuts indeed
Might say I'm a baller
Ballin
Bye
A
B
C
@molten pewter #databases
Databases, probably
uwu
is there a simple database version for a beginner
Well then, guess i'm going to die, just ate a bit of raw chicken :/
Salmonella here i come!
` from flask_sqlalchemy import SQLAlchemy
db=SQLAlchemy()
from datetime import datetime
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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
db.create_all()
Traceback (most recent call last):
File "C:\Users\RYZEN\Desktop\Seva\shulker\main.py", line 18, in <module>
from mcstatus import MinecraftServer
ImportError: cannot import name 'MinecraftServer' from 'mcstatus' (C:\Users\RYZEN\AppData\Local\Programs\Python\Python311\Lib\site-packages\mcstatus_init_.py)
hello
hi
@jolly terrace ๐
@somber heath i couldn't talk
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i don't have the requirements
hahah
in three days i could talk
and i have to send 50 messages
what brings me where?
i'm interested in data science
and i know python
i was looking for discord channels
where people are active
yeah it's active
but nobody is in the voice chat
all is in text
ohhh
my country have very similar hour to usa
and you why are you here
mmmm that's the same with all the people who know programming
not very social
hahhahaha
the same for me
i send you a friend request @somber heath
well i want to go in a server where i could talk
so you are in another server?
oh ok
have fun
bye
thee.js
three,js
who can help
Communities
The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.
hello
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
obj[...] #__getitem__
obj[...] = ...#__setitem__```Subscription.
!e py print('abc'[0]) print('abc'[1]) print('abc'[2]) print('abc'[-1]) print('abc'[-2]) print('abc'[-3])Subscription by index.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
!e py print('abc'[3]) #3, fourth index position.
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | IndexError: string index out of range
[cat, dog, bird]
dawg
@rich mason ๐
hi
US nuclear weapons are stored across Europe but their presence is neither confirmed nor denied, so Foeke Postma from Bellingcat went looking for them.
Along with Editor Maxim Edwards, they discovered that US soldiers had been leaking highly confidential locations of these nuclear weapons via flashcard apps, for years and years as well as hundr...
Hello
waves
what time is it then?
9
9 what
32+1+4
oh i presume it shows 21 aswell
galaxy watch?
i presume xiaomi ones have the most customizability , and apple has the least as usual
YEAH
samsung there in the middle
@rain hawk ๐
there are better smart watches available these days
ulephone app armour
andriod 13 i think
who drops routers
I can't talk in chat. I don't meet the requirements.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
New here. I'll be able to speak in a few days
compiz
Window Dancing ;-)
3D Desktop ubuntu "Karmic Koala", KDE4, Compiz Fusion, CairoDock
XSCREENSAVERS
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@orchid bone ๐
@plain lichen ๐
@somber heath hello
i just have a quick question. Do either of you know how to compile a script with pyinstaller and make it a onefile exe with images that dont require them to be in the same directory as the exe. I mean onefile exe says it all. I cannot get this to work for me and its really getting to me.
Im making a small program for Tmobile. Long story short im making a program that can easily monitor data usage. i got the go ahead from tmobile and after im done i submit it to their dev team and if they think its good enough theyll take it and publish it
but i cant get it to just onefile compile into an exe
Ive already got most of it working its just when i compile it into an exe for some reason the png files dont compile with it.
but yeah im adding --add-data and then the location to the file but for some reason the script doesnt know where it went
auto-py-to-exe
Why Python and not C/C++?
im using auto-py-to-exe
becauseeeeee i dont know much of c/c++ lol
besides im right there almost at the finish line everything works when its being ran off vscode just when it goes into an exe it breaks
So its monitoring the users data usage on their account in a very simple way. because to me im lazy and i dont want to sign into my account and scroll through this and click on that and blah blah blah and see all the other txt on the screen. So ive made this app so you log into your account and itll take you to the next screen where it shows you how much data you have used vs how much you have in total. Its mainly for those who have data limits. Like myself because i cant afford unlimited internet where i live so i have to be data caped because they dont have unlimited where im at. And i want to make something which im almost there. So i can just sign in and boom i see what i want
No its using the api. Account automation is prohibited it would moreless be web scraping
ive already dove through their terms of service with webscraping as its not illegal its not allowed. it would be wayyyy easier if i could just web scrape
webscraping is not illegal but for tmobile its not allowed in their terms of service
its not illegal for public information
sorry
sorry my phrasing is off i havent slept in 19 hrs lol
--add-data doesnt work. I have the file and pngs in the same folder i use pyinstaller and the commands needed then when i get the exe i open and i have it open with the console so i can see any traceback errors but i always get "name.png" not found. I am using --add-data "file path" --onefile
it works without it but as soon as i do --onefile and compile all of it into well 1 file it breaks and cant find the png files anymore
wait.. im being dumb.. I can compile the directory into 1 file correct. So remove --onefile let it build the directory that way then compile the directory into 1 file right ? would that work
that should work
well yeah you understood lol thats all i wanted XD
soo i need to work node.js in that environment
i did
no like if a put node -v in cmd i will get the version
but not in the conda environment and nor in the venv1 environment
yes i need to make the node.js in the conda
in orther to debug the javascript in the dgango part
C:\Users\danie\OneDrive\Documents\Scripts\Finca\venv1\Scripts;C:\Users\danie\anaconda3;C:\Users\danie\anaconda3\Library\mingw-w
64\bin;C:\Users\danie\anaconda3\Library\usr\bin;C:\Users\danie\anaconda3\Library\bin;C:\Users\danie\anaconda3\Scripts;C:\Users\
danie\anaconda3\bin;C:\Users\danie\anaconda3\condabin;C:\Users\danie\anaconda3;C:\Users\danie\anaconda3\Library\mingw-w64\bin;C
:\Users\danie\anaconda3\Library\usr\bin;C:\Users\danie\anaconda3\Library\bin;C:\Users\danie\anaconda3\Scripts;C:\Program Files
(x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowe
rShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\danie\AppData\Local\Microsoft\WindowsApps;C:\Users\da
nie\AppData\Local\GitHubDesktop\bin;C:\Users\danie\AppData\Local\Programs\Microsoft VS Code\bin```
cmd
and that is in visual studio code
yes
yes empty
can you send the log of doing the following (replace <activate the environment> as required):
node -v
<activate the environment>
node -v
but in VS code or in cmd?
only in cmd
give you the version
no
conda activate --stack myenv
conda activate --stack base
?
yes the cmd in vs code? yes but is inside the enviroment
ok
so i am in a new cmd workspace
nop
yes
they auto executed
cause i can open vs conde in conda or outside conda
VS code in conda or outside conda
The grass is browning...
๐
def get_aiohttp_client_timeout(self):
return aiohttp.ClientTimeout(
total=None,
connect=None,
sock_read=None,
sock_connect=self.ESTABLISHED_CONNECTION_TIMEOUT
)
def get_aiohttp_connector(self):
return aiohttp.TCPConnector(
loop=self.loop,
ttl_dns_cache=self.DNS_CACHE_TTL,
force_close=True,
limit=self.MAX_SIZE_POOL
)
def get_aiohttp_session(self):
return aiohttp.ClientSession(
loop=self.loop,
connector=self.get_aiohttp_connector()
timeout=self.get_aiohttp_client_timeout()
)
``` This is kinda cringe, all this to get a valid working aiohttp session for my specific application needs :/
