#voice-chat-text-1
1 messages · Page 9 of 1
Sir
ah aight sorry
same name, same pfp?
imposter.

Similar pfp, also it was some time ago
i thought it was unique. 
aight mate bye
forget java, i dont even like JS. so. haha
Hi magic!
not much, boutta take the train home
"JS is Lisp not Java"
Isn't lisp a langauge?
one of the oldest languages
How is JS; Lisp?
Scheme reskinned to look like Java
Hi guys, can someone help with the music bot? I don’t understand how to fix the error, it just doesn’t see the commands and doesn’t show what they are
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
it dosen't break the law, etc.... just depends where you stream it from.
I'm back, what'd I miss
break*
Javascript doesn't look like Java? Atall
Music bots by design break ToS and copyright laws in most cases
I'm from Ukraine
So we don't really assist with them on the server
WTF does that even mean?
Means they're from Ukraine
ok but
No, I don't know how it's relevant
how does that explains problem?
There was a question like what is happening with the country I live in, so I answered
Yes
fast man. #flash
depends
These token gestures of support just feel pathetic
But I know it's a complicated situation
It's a huge scale to balance to not make this boil over into something much much worse
Biden is there. hope he makes some dead alive.
hello opal
syntax is closer to Java's or C's than to Lisp's parentheses hell
In the land of the mute the spoken word is king
woah weird talking
😂
Sorry to disturb you guys, I completely forgot that this is consuming laws in the US
Om nom nom?
Java is based on C++, so if anything Javascript should be closer to C++
also javascript has monads
so parentheses hell?
Java is popular => author gets asked to make Lisp look like Java
(what it turned out to look like is kind of less relevant)
Is it?
it is
The history matters but not as much as the current state
Java is an amazing language - And its used alot
... relevant to the "Scheme reskinned to look like Java" thing
everything has monads if you try hard enough
Pouring on the side of the glass is normal
To minimize the head
The foam is extra bitter usually
With the mouth
Like how PBR is best drank by rednecks
history wise its very rich
ex.
Applets => 1995
Javascript => 1995 ( ecma 262 standard in 1997 )
So you could say javascript is from applets (the concept of it)?
If you can (if it's a thing), go to a store that lets you make your own six pack, like a mix and match thing
Just try a variety
I prefer ales, personally
For sure, my comment was more in regards to the syntax comment
it has good syntax, pretty much like C# and standard
I'm more of a cider drinker, personally
Looooooove cider
You do see people sometimes mix energy drinks and alcohol
Although its.... not great to do so
On the body
And thought it was alcohol?
Amazing
The mind is a powerful thing
Placebo effect
We perceive the mind and the body as two separate things
Which just isn't the case
They are one, belief that you will heal or are healing can assist in the process (although not to a major degree). People can die from a broken heart, their body just stops trying to help itself
spinal cord doesnt get as much attention lol
Right?
It's amazing how much processing is done around the body
@bright steeple Sup
Folding pay stubs
What about you, what're you up to
This is interesting. somewhere drinking is normal and cultural thing and somewhere is it considered as sin and those both individuals claim that they are correct and truth. now there are multiple truths.
does that mean there is nothing like truth and lie
DBA
Customer, properties, invoices
"job invented by Oracle"
There were databases before that
aight guys. gotta go. tata👋
Later
Yeah let me know how the course is
I never got to take it either
Nifty
Telling you man
CIS is the way to go
Everybody is about Comp Sci
But Computer Information Systems is just more interesting
Oh for sure
And that's really tough
a lot of companies making them got consumed by Oracle
and putting databases as "something very special", separating it from development and putting a lot of bureaucracy is quite often blamed on Oracle
Because you have to somehow sell to them that these things that'll mainly be beneficial long term are worth the large initial cost
DBAs shouldn't be designing databases. developers should.
@indigo wasp Sup
indices are a developer's concern
not one of an administrator
same for most other things
index
lots of snow
Yeah I'm with Steve
developer is the only one who knows how the database gets queried
It requires a much broader understanding of the needs of what should be tracked
or, at least, knows it best
researching transformers - for chatbot ai thingy
Making it flexible because you may need different reports or data
Yep, he beat me to it
Europe’s Leading Laravel Conference
https://laracon.eu
Now, I'd agree that they should communicate about it during the design
things allowing for faster queries
Sure sure
tables sorted by a different column, if simplified
i prefer that version - the other is .... standby
But there's more to it than speed
Foresight as to what data points might be important, considering clerical and administrative needs for the day to day
You want someone with a more rounded view
same developer should write the query and decide what the index should be
Just so long as they don't go the SAP route
if you think writing queries as something DBA is to do, then ok
I'm more thinking SAP Business Suite specifically
Everything is a table
EVERYTHING is a table - yeah we use QB
Yep
I don't think it should be solely the programmer
For sure
And it's interesting seeing it from my side working with accountants
Yeah true dat
Yep, seeing what happens when you tug a single string
Not could
They absolutely will be different
"Down with big government! They don't know what we need in our county!"
I thought everything was a key-value map?
In SAP? Fuck no
Everything is a table
And those tables have sub tables
And they're all named like AT01
brb querying everything in sap using Oracle
Some allow it some don't
Nothing should allow people to use Oracle tbh
@sinful elm Sup
@wary fable We were saying NoSQL solutions still allowing some SQL queries
I'm alright, you?
what you guys upto?
Stuffing payroll for me to deliver later
always better than ystrdy
At a heavy cost
BRB querying Neo4J using Oracle SQL
Just to clarify, we are meaning columns as indexes, right?
An index, as you would expect, is a data structure that the database uses to find records within a table more quickly. Indexes are built on one or more columns of a table; each index maintains a list of values within that field that are sorted in ascending or descending order.
whats the fastest array that is searchable , numpy... something
That's what I'm seeing
[x] is about as fast as an array can get
Looking
maybe its a database structure ?
because it was turned into speedy C ?
wassup prop
It's like taking a library and making the index cards. You can look through the cabinets and find the card faster than you could just blindly looking through the book shelves
But, cataloging those books initially is taxing
Neat
chat gpt uses transformers - saw a vid on it , its kinda a expanding array that creates a weight on position in sequence , then creates associations for each element , thats my take
they use a huge data set , using english sentences , i dont want something that big - trying to do simpler
ChatGPT is essentially advanced predictive text
A framework for managing access to data that involves three layers or schemas: the external or programming view, the conceptual or data administration view, and the internal or database administration view.
database design includes indices
designing indices requires knowing the query and the performance requirements
writing queries requires knowing the performance requirements and how indices work
as soon as you're starting to dig into those things, you're not a DBA, you're a developer/programmer
Are you typically designing the indices or is that done by the DB Engine (that's a genuine question, I don't know a huge amount)
context of sentence creates a new trajectory of associations , change one word and new association tree is created
there are temporary/auto-generated
but they're less efficient
and less expressive
Fair
speaking of "that's why people designed..."
some people designed ways to improve the waterfall model
i understand the linguistic modelling ideas , deep structure associations , they just give everything new names for old ideas
"it will find the efficient order"
that requires persistent indices in most cases
each index increases the write time
database itself has no idea what to optimise
i look at the nature of what the machine hardware does naturally for speed - i can work backwards to make it human interfacable
you can't just make everything faster
Sure, but what you're describing sounds like it needs a specialist rather than your everyday dev
thats why i ask , what is fastest searchable database / array thingy
depends
fast writes or fast reads?
in-memory or on-disk?
Bear houses
Yeah for sure
It's intriguing
My go to
Oh sure
But you have to start somewhere
You start right away with the heavy concept, you'd never get any tables made
Sometimes quick and practical is the best
I have some experience of writing B-trees (searchable structure commonly used in DBs)
(so that much low-level)
@wheat escarp Sup
it does help understand why the hell the upstack software works the way it does
nothing much just questioning life
indices change when queries change
book for dsa?
Right
you write indices for queries
not the other way around
asking me ??
i wanna
You can link it
would love to*
And yeah I was, Waren
yeh
i have done one course for python
but the prof was boring
and he was using linux i guess
which made it more boring
i was in reddit watched and bunch of faceplam , publicfreakout vids
Oh fun
why buy it?
i have financial
aids
applied
i get it for free
i have certificates too
its very easy to convince them that i am broke
Back in a jiffy
though i can afford it
but i just wanna save my money no matter even if i am a billionair
you can sytart right away
i applied for 5 courses
and appproved
all
lmao
trying to separate database from development too much is, said lightly, a malpractice
"you developers don't get a say in this; we're very important professionals doing a very important job"
things that I was saying about optimising for reads vs optimising for writes are quite general
well, to some point, yes
DBMS Three schema Architecture with DBMS Overview, DBMS vs Files System, DBMS Architecture, Three schema Architecture, DBMS Language, DBMS Keys, DBMS Generalization, DBMS Specialization, Relational Model concept, SQL Introduction, Advantage of SQL, DBMS Normalization, Functional Dependency, DBMS Schedule, Concurrency Control etc.
nvmm its advanced lvl
thing I'm against isn't "some separation of concerns"
I'm talking specifically about the unreasonable separation where people writing queries are too separated from people writing indices
and three-schema approach does help alleviate some of the malpractices coming with that
if people responsible for different parts are able to communicate the requirements (which, obviously, change a lot over time)
im making code for 2 environments , python on a pc and a multicore microcontroller with 128 KB SRAM - so i need structures that can fit in both worlds
there is micropython for embedded
i should look at the language set for micro python if its useful
or no_std Rust
i tend to use the native high language on the uC , i do they heavy lifting for code execution on the pc side
it will be painful to learn native assembler on the uC but so much faster
C should be fine for most tasks usually
(and it allows including raw assembly code in it)
was wondering about Cython and just writing direct in C / C++
can we have a desktop environment without a remote desktop in wsl ?
Cython is just a fancy way to write extensions for CPython
iirc
I return
you'd have to communicate to it in some way
idk if there's anything except for network ports for that
@mild flume trumpets blaring , rose petals thrown
I wonder how slick rose petals are
And if too many of them would end up in a comedy pratfall
Why's that?
No static typing?
I don't understand what any of the python code is doing
I don't know what any of the types of variables are
hello mustafa
Do debuggers help?
@mild flume i thought babnanannas peeels were the standard pratfall
And what functions are actually being called when it calls a method defined on 20 classes
They are, but I want to see a romantic scene turned into slapstick
ahhhh i have learned abt it lmao.....
looks like its not used much in industries
out there
Too much effort to add a breakpoint, compile, run, get into debugger and query something just for a "jump to definition"
It's also possibly just that it's doing some complicated polyhedral compilation bullshit which I don't understand at all
Fair enough
But ugh it just makes me want to not work on the python stuff
Understandable
there's a common convention in C (not Python) to add 2-letter prefix to fields to distinguish easily between structures
but for Python it's kind of not very advised to do
That level of frustration would put anyone off of anything
@bright steeple Later
Is it not advised or just not common
or maybe just common
Our c++ codebase is also so nice I'm trying to figure out how to tell my manager to just keep me away from the python stuff
His words last week: "I don't know how to replace the python stuff, it keeps me up at nights"
does the codebase have no type hints in general or only for variables?
This sounds more like an implementation issue or poor code cleanliness
There are some type hints but it doesn't really always help
well, yeah, they also can just be wrong (kind of common)
Had to upgrade my cloud desktop today because I didn't have enough ram to compile lol
Turns out 384gb not big enough
!e
def f(): ...
print(dir(f.__code__))
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '_co_code_adaptive', '_varname_from_oparg', 'co_argcount', 'co_cellvars', 'co_code', 'co_consts', 'co_exceptiontable', 'co_filename', 'co_firstlineno', 'co_flags', 'co_freevars', 'co_kwonlyargcount', 'co_lines', 'co_linetable', 'co_lnotab', 'co_name', 'co_names', 'co_nlocals', 'co_positions', 'co_posonlyargcount', 'co_qualname', 'co_stacksize', 'co_varnames', 'replace']
128KB is ............................ a flea fart in comparison
384 GB-----------128KB , hmmm
6 orders of magnitude
well i can make a virtual memory , using the PC mem accessable from uC but the serial speed is 1Meg
offloading whatever you can offload to PC is probably the best choice
so that serial speed wouldn't be a bottleneck
was romancing the idea of emulating pieces of uC code in python because i dont feel like building stuff right now
there's also bandwidth vs latency
latency can also be an issue sometimes
i initially ran out of LEDs and switches to talk to the uC , so i used pyserial and tkinter to create a virtual control panel to do stuff on uCF
uC
@delicate wren i use tiny token messages for uC to speed stuff up
also, a guess: those prefixes given their usage in C can help distinguish between C-defined internals and fields defined in python
print ("Hello World")
any one here uses subline text?
you meant sublime ??
yes
well i use more c# than python
also python doesnt require that much
like you just need a terminal and notepad open tbh
you hello pls help #code-help-voice-text
<function faisal.wiring_gals at 0x000001DCB10C5BD0>
?
what is thes
this
!voiceverify
hey if anyone's around could do with some help #code-help-voice-text
or not ig
@misty sinew 👋
@burnt umbra 👋
@outer creek Down here. 🙂
Oh hi
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@lucid ridge👋
Can I get some help with my discord bot code
You might like try asking your question in there. 🙂
Also, #❓|how-to-get-help is another room to look at.
I've fully coded it, it's just it doesn't run for some reason
in #discord-bots?
alr
I only joined yesterday
I love to see that light mode
So what you guys coding
small API in starlite
Wtf so we’re talking about Health now?
When you join a voice chat expecting computer stuff lol 😂
hello, is this a good place to ask for some tech support?
i apparently don't qualify for voice privilages
hello @blazing swift
👋
how are you doing
I’m fine tanks and what about u?
Need to send 50 msgs now
I was here earlier
Hi guys
How are you
I'm good
And you?
Hello
Is anyone here
WHERES EVERYONE IN THE VOICE CHATS?
IM STUCK WITH SOME LOSERS
declares a variable as global, so it can be used outside the function it was written in
honestly i try to avoid it as much as possible, it's caused nothing but headaches for me in the past
my ping is soooooooooooo high
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hi
@tired lava 👋
🙋♀️
@stuck bluff https://climate.nasa.gov/faq/33/which-is-a-bigger-methane-source-cow-belching-or-cow-flatulence/
Vital Signs of the Planet: Global Climate Change and Global Warming. Current news and data streams about global warming and climate change from NASA.
@thorn locust👋
whats printing?
hi 👋
whoes winning
!e ```py
import random
class Card:
def init(self, suit, rank):
self.suit = suit
self.rank = rank
def __str__(self):
return f"{self.rank} of {self.suit}"
class Deck:
def init(self):
self.cards = []
self.build()
def build(self):
suits = ["Hearts", "Diamonds", "Clubs", "Spades"]
ranks = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"]
for suit in suits:
for rank in ranks:
card = Card(suit, rank)
self.cards.append(card)
def shuffle(self):
random.shuffle(self.cards)
def deal(self):
return self.cards.pop()
class Player:
def init(self, name):
self.name = name
self.hand = []
def add_card(self, card):
self.hand.append(card)
def __str__(self):
cards = [str(card) for card in self.hand]
return f"{self.name} has {len(self.hand)} cards: {', '.join(cards)}"
deck = Deck()
deck.shuffle()
player1 = Player("Alice")
player2 = Player("Bob")
for i in range(5):
player1.add_card(deck.deal())
player2.add_card(deck.deal())
print(player1)
print(player2)
@shy knoll :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Alice has 5 cards: 7 of Diamonds, 5 of Spades, Jack of Spades, 5 of Hearts, King of Spades
002 | Bob has 5 cards: 9 of Hearts, 10 of Clubs, 2 of Hearts, Ace of Diamonds, 4 of Diamonds
the amount of gramerly ads i've seen on youtube 😩
how do i hide it bruh
hide what?
i don't know i don't use it
opal uses interesting words and tones
but the accent is hard for me
@raven orbit let me steel ur video role plz
mr hemlock gives those
ik
k bye
what in the world
it's a flying cat
What is that
a tutu
@vocal delta 👋
hi
or totalitarian-ish approach: if you can't fit into the existing groups, you're kicked
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i read that already
Groovy bananas.
Which, for those in voice, is something I've been saying long before today.
I'll be leaving in 1 hour
(rare event of me going to an educational facility)
@hidden stream 👋
filesystem events?
@crystal aurora
the task is "a points to b; as soon as b is deleted, a gets deleted too", right?
can probably borrow terms from task scheduling in OSes
some extracurricular activities at school and it's quite usual/encouraged for people that have studied there before to attend them
mathematics, python, physics
(in that order of priority)
@pearl mulch 👋
@misty sinew👋
@stuck bluff Yoo
goood eveing guys
hlllo
is some 1 available to help me with this issue?
can only concatenate str (not "tuple") to str
you're doing something like "a" + ("b", "c") apparently
@crystal aurora I guess the way errors are displayed might have given you confidence in a certain false assumption
i cant speak in vc so can we make a gc?
false assumption being "the first thing compiles"
yo so i want it to say something but it puts it in brackets like this 3. ('FIREBALL', 'AVADA KADAVARA')
but i want it to just say wahts in the quotes and not everything else
+ ?Sized won't break anything
that for me?
yes
no
bru
('something',)
with a comma
but it has a comma?
!e
print(('a',) + ('b','c'))
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
('a', 'b', 'c')
thing which is just in quotes doesn't, that's why the error
!e
print('a' + ('b','c'))
@delicate wren :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print('a' + ('b','c'))
004 | ~~~~^~~~~~~~~~~
005 | TypeError: can only concatenate str (not "tuple") to str
- """ + str(spelllist) + """\nchoose:
without the str() it breaks saying
can only concatenate str (not "tuple")
it breaks
the exact line where it shows the error
it would make more sense if i share screen
cuz the line where it says the error is not where it is
the error is somewhere else
can you send the full traceback?
Traceback (most recent call last):
File "D:\pycharm\Computer science project\Dnd game(newspellsystem).py", line 230, in <module>
if main():
File "D:\pycharm\Computer science project\Dnd game(newspellsystem).py", line 118, in main
battle(pHP, pATK, pDEF, eHP, eATK, eDEF, spelllist, spells, spell)
File "D:\pycharm\Computer science project\Dnd game(newspellsystem).py", line 148, in battle
choice = input("""choose you attack:
TypeError: can only concatenate str (not "tuple") to str
Process finished with exit code 1
can you show the entirety of the input() call?
choice = input(
...
)
choice = input("""choose you attack:
1. attack
2. special attack
3. """ + str(spelllist) + """\nchoose:
""")
remove str
then it breask
yes, because spelllist is a tuple
ok what do i do?
2d array with 3 lists in it
i want it to pull the variable out of the list and show it in the program
sry pull the list out of the array
!e
spelllist = ([], [], [])
print ("""choose you attack:
1. attack
2. special attack
3. """ + str(spelllist) + """\nchoose:
""")
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | choose you attack:
002 | 1. attack
003 | 2. special attack
004 | 3. ([], [], [])
005 | choose:
so, now it prints something like this, right?
ye
!e
spelllist = ([0, 1, 2], [3, 4, 5], [6, 7, 8])
print ("""choose you attack:
1. attack
2. special attack
3. """ + str(spelllist[0]) + """\nchoose:
""")
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | choose you attack:
002 | 1. attack
003 | 2. special attack
004 | 3. [0, 1, 2]
005 | choose:
this gets one list
what does spelllist roughly look like?
spells = [["CHIVALROUS"], ["FIREBALL","AVADA KADAVARA"], ["CROSSBOW"]]
spellist goes into this list
to configure what?
@crystal aurora
the spells that are used for each character
@crystal aurora I guess, because you have Some after it;
it thinks it's obviously Option
so, you need spelllist[character_index]
where character_index is the number of the character that this list corresponds to
??
@crystal aurora
spellist = spells
right now you have str(spelllist)
to get spells for a specific character, you need str(spelllist(i))
where i is some number
or, oh, wait
is it only valid for i=1?
i is already determined based on the inputs made before
this is str(spelllist[1])
if character = 1 then spelllist = 0
and so on
0 being the first list in the array
yes, so just use it in the str(spelllist[i]), if it's known
"""choose you attack:
1. attack
2. special attack
3. """ + str(spelllist[i]) + """\nchoose:
"""
BUT i dont want the text to show up in brackets and speech marks
then
!e
example = ("FIREBALL","AVADA KADAVARA")
print("""choose you attack:
1. attack
2. special attack
3. """ + " or ".join(example) + """\nchoose:
""")
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | choose you attack:
002 | 1. attack
003 | 2. special attack
004 | 3. FIREBALL or AVADA KADAVARA
005 | choose:
because THEN i would have to make the choice for attacks EVERY single time i add a new characeter
this has no brackets and stuff
so, yes, it was just about explicitly specifying lifetimes
oh thx
Awesome
theres another issue
- C or R or O or S or S or B or O or W
it does this now
yay
@crystal aurora
I didn't try putting more than one lifetime in this exercise yet
it may be viable
but my guess is: it will get reduced anyway
@crystal aurora can you alt-enter to move it there?
bro i JUST want it to say the text with a space between the words WITHOUT fucking up EVERYTHING else
you're passing a value of another type
@crystal aurora breakpoints are not free
we've already found out about that
join expects a string but you're passing it a list
two lifetimes seem sane
sure
how to join this voice chat
?voice
can hear but slow to react
@gray ginkgo are you italian?
si @austere light
pure io
bella
bella bella, peccato che non posso parlare però
hey guys
I don't remember anything specific
I definitely read about it a couple of years ago
from some memories of that information, most things for how to get a battery from a broken state are contrary to what is best in the long run
for my phone, full 93%-0%-poweroff-100%-poweron cycle takes it from "can't reach over 93%" to "can be 100%"
"muscle tissue growth because of failing"
from what I know it's from partial break down (which happens all the time and is fine) not from failure
(the thing it gets triggered by is in some sense damage but not a failure)
"send the solution but develop it yourself with proper things (tests, containers, etc.)"
because these things may be valuable for making it even if they're lateral to "what's the solution" question
so, like
you get:
-- faster and better development process
-- if you get asked for tests, reproducibility, etc., you can just send it
not hard for me right now but I can see how it can be difficult in some circumstances (other person listening, for example)
-- faster and better development process
Not sure this is true, but maybe "more robust"? As in "shit don't break as easily for not-quite-as-easy-to-understand-reasons-why"?
Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CL...
like this?
Recently we observed that the extension cannot login to leetcode.com endpoint anymore. The root cause of this issue is that leetcode.com changed its login mechanism and so far there is no ideal way to fix that issue.
maybe, not using such extensions is a good opportunity to learn different test libraries/frameworks and development tools
without getting fixed on a single site/extension
I'm planning to attempt to write a paper on category theory
(because I'm dissatisfied with the definition of Kleisli category in particular)
^ what Rust does to people
example of an object: type A
example of a morphism: function A->B
this is a quite common situations of morphisms being objects of that same category
@misty sinew👋
for now it's mostly Haskell docs + Wikipedia
(I have had some education on it in school but without any proper written materials)
hello
i am fairly new to python
but i know a little bit about how it works, but only the bare minimmum like, how to declare a variable and use that variable, i made an "are u gae" test (i do that first thing in any language i learn) and it worked
i heard that i can use python for android/ios app development
and started using kivy
i need help
i need a good and free android emulator
in which i can, say, run the "app" i "made"
any good, preferably lower end suggestions
bluestacks seems to have some connectivity with android studio / other debug tools
it lags a lot for me
even if i set it on low
beeware?
ok
but what abt this
afaik, Android Studio is in the IntelliJ family of IDEs, so there should be the Python plugin available
and btw, what is this serbian dancing lady thing
i have ben seeing a lot of videos of a lady in black with a knife dancing in the middle of the stree at midnight
in serbia
i gtg it was nice talking
@runic patio👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@astral shell👋
what library? what python version? what OS?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
activate the venv if it exists

pip3 freeze
python3 --version
lsb_release -a
python3 -m pip install --upgrade discord.py
Provided to YouTube by The Orchard Enterprises
Lotion · Greenskeepers
Pleetch
℗ 2004 James Curd Music ASCAP
Released on: 2006-12-31
Auto-generated by YouTube.
@unreal stag👋
@covert warren 👋
hello??
@regal patio @stark idol heyyy,,,
i am in voice-chat but i can't get unmute in the voiche-chat coz i don't fulfill the criteria for that
but i can still listen you all
and i need a bit help from you
Run Python code in your HTML.
Lua is a lightweight dynamic scripting language often embedded into other programs like World of Warcraft and Roblox. It's minimal syntax makes it easier to learn than Python, while being much more performant than other interpreted languages.
#programming #compsci #100SecondsOfCode
🔗 Resources
Lua Manual https://www.lua.org/manual/5.3/manual...
#include <stdio.h>
#include <stdlib.h>
typedef struct MyStruct1 {
int a, b;
} MyStruct1;
typedef struct MyStruct2 {
int a, b, c, d;
} MyStruct2;
int main() {
MyStruct1 *data = malloc(sizeof(MyStruct1));
MyStruct2 *data2 = (MyStruct2 *) data;
data2->a = 10;
data2->b = 20;
data2->c = 30;
data2->d = 40;
printf("data1 size=%lu a=%d b=%d\n", sizeof(*data), data->a, data->b);
printf("data2 size=%lu a=%d b=%d c=%d d=%d\n", sizeof(*data2), data2->a, data2->b, data2->c, data2->d);
return 0;
}
*(my_arr+1) == my_arr[1]
hi I need help please I've a problem with my code, I'm trying to start with python for math stuffs but I don"t unterstant smth
@bold coral 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
When you're interested in having a normal conversation, I'll be ready.
@grand raptor 👋
Hi
May u help me ?
I need to filtr all information from input like number,letters,symbols
Yeah something like group, so then i could like to count them
!d strings
2.4.1. String and Bytes literals
String literals are described by the following lexical definitions...
i need to group characters and then tell is number r even or not
r letter lower or higher registr
and if it symbol just write that is symbol
Okay i will try to show example
if some one use input: aB3*
i can tell him
u have 2 letters 1 small and 1 big
u have one number 3 and it is even
and one symbol *
Something like it
Is it impossible
what mean covered? im teaching loops for now
Covered. Learned.
Yes?
yes
A for loop is repeated assignment.
Traceback (most recent call last):
File "c:\Users\Aidan\OneDrive\Desktop\CODE\src\shell.py", line 5, in <module>
result, error = fake.run('<stdin>', text)
File "c:\Users\Aidan\OneDrive\Desktop\CODE\src\fake.py", line 430, in run
tokens, error = lexer.make_tokens()
File "c:\Users\Aidan\OneDrive\Desktop\CODE\src\fake.py", line 102, in make_tokens
tokens.append(self.make_number())
File "c:\Users\Aidan\OneDrive\Desktop\CODE\src\fake.py", line 145, in make_number
return Token(TokenKind().integer_literal, int(num_str), pos_start, self.pos)
TypeError: EnumMeta.__call__() missing 1 required positional argument: 'value'
May i add u to friend ? i will send screenshot what i have for now
!e py letter = 'a' print(letter) letter = 'b' print(letter) letter = 'c' print(letter)
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py for letter in 'abc': print(letter)
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py print('a' in 'abc') print('b' in 'abc') print('c' in 'abc') print('d' in 'abc')
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | True
003 | True
004 | False
!e py if True: print('A')``````py if False: print('B')
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
A
So i need to make like a library of letter and numbers to see if someone use them in input
!e py if 'd' in 'abc': print('A')``````py if 'a' in 'abc': print('B')
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
B
!e py import string print(string.punctuation)
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
fck
@plain dune You good?
How to turn on mic ?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stuck bluff
For some reason ur voice coming through my laptop
oh its fixed
switched my output
thanks
@stuck bluff are you fimilar with python?
!d str
class str(object='')``````py
class str(object=b'', encoding='utf-8', errors='strict')```
Return a [string](https://docs.python.org/3/library/stdtypes.html#textseq) version of *object*. If *object* is not provided, returns the empty string. Otherwise, the behavior of `str()` depends on whether *encoding* or *errors* is given, as follows.
If neither *encoding* nor *errors* is given, `str(object)` returns [`type(object).__str__(object)`](https://docs.python.org/3/reference/datamodel.html#object.__str__ "object.__str__"), which is the “informal” or nicely printable string representation of *object*. For string objects, this is the string itself. If *object* does not have a [`__str__()`](https://docs.python.org/3/reference/datamodel.html#object.__str__ "object.__str__") method, then [`str()`](https://docs.python.org/3/library/stdtypes.html#str "str") falls back to returning [`repr(object)`](https://docs.python.org/3/library/functions.html#repr "repr").
!e py print('A'.islower()) print('5'.isnumeric())
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
!d in
6.10.2. Membership test operations
The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).
For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.
!e py v = 0 print(v) v = v + 1 print(v) v += 1 print(v)
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
wtf dude its really so hard ? I mean its like my 3rd homework
and its strange if it so hard
Maybe im didnt get something
I want to get how it work
Becouse second one was easy
its said to make immortal loop with time
it was really easy
but first one
Its unreal shit
Create a program that will expect the user to enter text and output information for each typed character:
this "number" + what it is (even, odd),
this is a "letter" + what is it (uppercase or lowercase),
is a "symbol"
That is how this task sounds like
!e py a = '5' b = int(a) print(type(a)) print(type(b))
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'str'>
002 | <class 'int'>
btw, what's the actual correct grammar to describe assignment?
(I tried to read Wikipedia entry on "assignment statement" an got myself confused)
!e py print(5 % 2) print(6 % 2) print(7 % 2) print(8 % 2)
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 0
003 | 1
004 | 0
I just call it assignment. Thinking process over.
a = int(number)
if a % 2 == 0:
print("even number")
else:
print("not even number")
i use it to understand its even or not
But how to get info about all stuf in input
Using a for loop, print out each character in a string.
i see
i should make like a list ?
That is unnecessary.
No, there's a language barrier. There's a difference.
Write me a for loop.
how im use it ?
for
OKay give me a little bit time
number = 0
for number in range(11):
print("Number is " + str(number))
Like this ?
You wouldn't need number = 0 there.
Write a for loop using a string. Text.
'text' instead of range.
for letters in "abcdefgh":
print("Letter " + str(letters))
@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | d
005 | e
006 | f
007 | g
008 | h
Good.
Now, write a program that...
Initialises a numerical variable
Adds to that variable, updating it.
is that should be the same ?
I dont know how to make "Initialises a numerical variable"
number = 0
for number in range(11):
print(number)
just dont be angry
pls
im already wanna cry of this
!e
for number in range(3):
print(number)
@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
is that a loop ?
No. I'm not asking you to write a loop.
hello
hello
Does anyone suggest the best site to study Machine Learning?
If you have sound background of calculus, you should be able to search a good course on edx. (Just an opinion)
@misty sinew👋
Hello
Have some voice verification issues right now. BTW I was just testing 😋
A regrettable but necessary speedbump.
Lest the screaming begin anew.
Polymer banknotes are banknotes made from a synthetic polymer such as biaxially oriented polypropylene (BOPP). Such notes incorporate many security features not available in paper banknotes, including the use of metameric inks. Polymer banknotes last significantly longer than paper notes, causing a decrease in environmental impact and a reduced ...
@trim prism👋 '
hi @trim prism
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Messages here counting?
Nice! I will try to text more than usually 😄
I just joined
Sit with peoples in discord very help to keep learning and do not drop to study. My Eng bad sorry for that. I even not understand half of your talking))
sorry afk. Have to focus little bit
Yakitate Japan
The Boy and the Beast (Japanese: バケモノの子, Hepburn: Bakemono no Ko, literally "The bakemono's child") is a 2015 Japanese animated action-adventure fantasy film written and directed by Mamoru Hosoda. The film stars the voices of Kōji Yakusho, Aoi Miyazaki, Shōta Sometani, Suzu Hirose, Kazuhiro Yamaji, Mamoru Miyano, Kappei Yamaguchi, Keishi Nagatsu...
Uzumaki
@tired oasis👋
heyy
PIKOTARO - PPAP (Pen Pineapple Apple Pen) Available Now!
http://smarturl.it/PPAPLong
Subscribe to Ultra Music - https://www.youtube.com/subscription_center?add_user=ultrarecords
Follow Us:
https://www.ultramusic.com
https://www.twitter.com/ultrarecords
https://www.facebook.com/ultramusic
https://www.youtube.com/ultratv
https://merch.ultramusi...
Realizing miracle collaboration “DEATH NOTE Light up the NEW world”(デスノート Light up the NEW world) with PIKOTARO(ピコ太郎)!
Ryuk(死神リューク) who appeared in “DEATH NOTE Light up the NEW world” dances "PPAP" a.k.a "Pen Pineapple Apple Pen" rhythmically!
大ヒット公開中の本作と今まさに世界を席巻しているピコ太郎と奇跡のコラボが実現。
ピコ太郎のペンパイナッポーアッポーペン(PPAP)を、映画『デスノート』に登場する人気キャラクターの死神・リュークがリ...
@dire cave👋
@misty sinew 👋
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
guys can I get access to streaming?
hello
im a second year computer scientist
i wanna ask you how can i become the python goat
No secret, just practice
hey @stuck bluff how are you
Hi [Company Name],
I hope this letter finds you well. I wanted to reach out and let you know about our new service that can help your business grow. Our service is designed to help businesses like yours increase their sales and revenue.
We would love to schedule a Zoom call with you to discuss our service in more detail. During the call, we can answer any questions you may have and provide you with more information about how our service can benefit your business.
Please let us know if you are interested in scheduling a call. We look forward to hearing from you soon.
Best regards,
[Your Name]
@stuck bluff still in aus ?
bro the first thing you did is use chatgpt 💀
ik
@wanton flume
Subject: Boost Your Business with Our Advertising Services
Dear [Recipient],
Are you struggling to reach your target audience and increase your sales? We understand that running a business can be challenging, especially when it comes to marketing and advertising. That's why we're here to help you!
We are [Company Name], a leading advertising company that provides comprehensive marketing solutions to businesses of all sizes. Our team of experts has years of experience in the industry and is dedicated to helping you achieve your business goals.
Our services include:
- Social media advertising
- Search engine optimization (SEO)
- Pay-per-click (PPC) advertising
- Email marketing
- Content creation
- Website design and development
- And much more!
We tailor our services to meet the unique needs of your business and help you stand out in a crowded market. Our goal is to help you attract more customers, increase your sales, and grow your business.
Don't let your competitors outshine you. Contact us today to learn more about our advertising services and how we can help you boost your business.
Best regards,
[Your Name]
[Company Name]
@stuck bluff has been here for long and has helped alot of us
so they are services to make it like more human
and then you just like literally change 2 sentences move them and bam done
why are there so many
is 300ms too much for a registration API?
which of the calls?
what? its my own api
successful registration all in one API call, you mean?
Yes, with JWT and Email Sending
(because, like, successful and failed registration have different times)
failed as 30ms
are all services hosted on one machine?
yes but i will put a load balancer later
(or within a small enough cluster that delays between services wouldn't matter)
also the machine as also occupied
6.6G ram and nearly 80% on four cores
also any idea why my first req is 1s and then its 500ms and then 300ms
CPU heavy 300 ms => bad
wait heavy 300 ms => maybe ok
(I maybe found a way to write it without breaking my brain)
ok ok let me bring up a profiler
is there any logic for the first user like "first user becomes the admin"?
also might just be caching/optimisation
ok so first of i check if user email has been taken since thats the only unique thing
then i generate a random verification code
and then i save everything and also generate a user token
then i send the email
then i send the jwt
(might even include local DNS lookups if you use containers and if it for some reason takes too long)
im thinking my email sender should be async
is secret for JWT pre-generated?
given that it's asymmetric, might take some time to create
no its based on the token
the token consist of data from the user like browser, browserid, etc....
no, I mean server-side private key for JWT signatures
still no
HMAC/RSA/ECDSA/etc.
thoughts?
i have a microservice for sending emails
and then i send POST requests to that
via aiohttp?
or requests package?
i mean my code base isnt python*
What up!
this generally should be async if you're making requests from another long-running service
ah okey
also if you had any comment here
script that runs one time and is inherently sequential => sync
service that needs to handle multiple connections simultaneously => async
(other cases are less obvious to choose in)
what do you mean by "first", again?
the initial request being sent after running up the service
so, "first since start" not "first since creation"/"first user"/etc., right?
first since running up the microservice
and sometimes after like 1h of it being idle it takes time
I'd expect that to happen because of caching
strange that it adds 200ms
is there any more specific part that gets slower?
is it in this service or another one?
"this service" being the one conceptually responsible for registration
its happend everytime i've made a api for authentication - login, registration, verification, ... all will like start off at 1s on the first call and make their way down
like my error handler took 3s once (when inactive for a long time ) but now it does 30ms
how many other services do you call during that?
one really
i mean if you want to count services being used in services , 4 then
but they arent mem or cpu intensive
also most are static
is there any further breakdown of that time?
like
200ms database
100ms some other subrequest
100ms time spent in library calls
100ms unknown
(or at least in two parts)
theres two database calling, theres a mail microservice calling, and some for argon2id pass hashing
argon isn't the fastest thing in the world too
including that it requires allocating memory
how much time does each part take?
@misty sinew 👋
let me check
my profiler sucks so i have to do it manually
4 seconds
wtf
i'll figure it out and tell u later af
my brain isnt workin
@stuck bluff hey, sorry i cant chat yet
@fair heron Me.
oh
wrong one
lol
oops
oh it is
you and osyras name threw me off
wait until i can chat
i wont shut up
i promise
bro it was fight night earlier
haha
kanye was here
yes
yea he went wild
toward the end
I just couldnt be on his side anymore
and I like the kid more
he had heart
the more senior dude had to be talked down on a separate chat with another group member
Hello guys
hey hey