#voice-chat-text-0
1 messages Β· Page 106 of 1
hello
hi
Physically, what would the steps be?
erase the 'i' and write U
Are you reading the text on the page at all?
how is everyone π
good , how are you ?
no I won't read everything
thats gooood
So, aside from the U, are you writing anything else?
just trying to get part B of my code to work for this assessment
@azure vaporπ
alex i think i have another question . what should you know to be hired in amazon ?
@reef crescentπ
they just asked me DSA and computer science basics
just this ??
data structures and algorithms
(translating the code)
read lines and write each one on a separate pieces of paper
take the first piece
cut it in three parts
glue it with a new small piece of paper containing "U" (throw away the middle part)
go to the original sheet of paper
glue pieces of paper back on the original
cut off whatever is left on the original
(why would there be anything left if we just "overwrote" it? yes)
hey I have issues in my project so is there anyone who have worked using tkinter library and can help me in my project
i should ask this on another chat i think. related chat
.truncate() is actually needed because of two things:
you read \n\r but you wrote \n (or \r)
new character is smaller than the old one
@spiral sierra How would you write this with only f.write and f.seek calls in your with block?
at that point you might just re-open the file
yeah but i just gave the question as for eg of DSA i was not sure it you asking acc to amazon only xD
nvm
... given there's already buffering with .readlines()
completed
@whole bear can you suggest me the channel coz i m quite beginner and i thought everyone here are solving some issues
can you tell me alex that what are your skills to be hired in the amazon. forexamole TOEFL Python MONGODB and etc ...?
with open('insight.txt', 'r+') as f:
f.seek(2)
f.write('U')
thanks @somber heath
Try it with a file full of the relevant text.
i not sure about the exact name , but you can scrawl up and see the channels.
with multiple lines?
Just the one line.
This is a beautiful world.```
guys can i get some advice. can i put all the dragon function call out i have into a list so that i can get a similar result to the one in the picture? my code: https://paste.pythondiscord.com/edamivifaw
if you can answer to this question i will be so thankful.
Do you enjoy how much simpler this technique is vs ChatGPT's implementation?
try with "ThΡs is a beautiful world" (copy-paste this exact line)
Okay, assuming we don't have to worry about codec bullshit. lol
ThΡs is a beautiful world
ThUβs is a beautiful world
oh nice.
yeah
alex can you tell me how old are you ? lol if you want to
@golden prismπ
22
@tired oarπ
Excellent.
wbu
17
you should have high iq level don't you?
I wouldn't do that
hi there
hi
i just think that some experiences you just earned require high iq , am i right ?
@digital valveπ
No anyone can do it, you don't need very high iq
hello
is it caching anything?
I had problems with long compilation in some contexts because caching was non-existent
ook thanks.
for example, in containers
where it's like
> download all the indices
> compile everything
> verify the results
> if something goes wrong, burn everything down and start over
@somber heath OpalMist what is your opinion about having high iq ?
IQ results are very good at predicting IQ results
idk it works on my computer
maybe it's wrong
check the result file with a proper text editor
notepad?
this is Cyrillic letter not "i"
(not a text editor)
"IQ test" is just a way to assign scores to the results of a test
(IQ distribution depends only on the number of people taking the test)
the only measure of it being "good" is whether it gives stable results
Unless it's coupled with the ability to persuade and force of implementation, IQ goes ignored or exploited to no purpose of common good.
you can be good at iq tests if you keep doing em
... distribution being normal by definition
what is the em?
bonjours j'ai le droit de poser une quesrtion si sa aucun rapport avec le live ? je suis franΓ§ais je ne comprend pas l'anglais je le translate
them
Which is not to say it oughtn't be cultivated. Indeed, it is perhaps all the more important in circumstances where it goes undervalued.
Alex i have another thing to ask you (sorry i just asked you many questions). what was your routine plan to reach in this place (each skill you have now)?
@midnight agateSorry I'm French I don't understand English..I have a small question but I'm going to be off topic..
just solve questions
hi
what do you mean by this ?
@midnight agate I would like to add permissions on a ".clear" command on my bot discord, should I do that?
leet code questions
@midnight agate
for being good developer or iq test ?
!stream 1063370239196278856
β @scenic quiver can now stream until <t:1679924978:f>.
oh i got it .
there is specific command (iirc, it's channel.prune)
you just need to learn to google search to become a dev
exactly
@vocal basin channel.prune ?
but where should I put it? it doesn't fit like I did?
thank you for your help .
goodbye
Become a dev? Probably. Become a GOOD dev? Not the entire skill
good luck
@vocal basinyou didn't understand, I just want the basic user not to have access to my command, I would like to put a permission on this command for example
@languid cragπ
@lusty lotusπ
@feral oyster@reef crescentπ
Kite club. For people who want to fly kites.
"DO NOT TALK ABOUT KITE CLUB!"
!stream 1063370239196278856
β @scenic quiver can now stream until <t:1679925415:f>.
has_permissions sounds fine
https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.has_permissions
the permission part seems fine
@scenic quiver memory/speed there is quite random
don't rely on it
don't take it seriously in general
if you want proper memory/speed measurement, do it where you control it
!d collections.Counter
class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.
Elements are counted from an *iterable* or initialized from another *mapping* (or counter):
```py
>>> c = Counter() # a new, empty counter
>>> c = Counter('gallahad') # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2}) # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8) # a new counter from keyword args
or sorting
power went out for a moment
I will be back soon
!stream 317279909112446976 30s
β @somber heath can now stream until <t:1679925892:f>.
See you then
!stream 264054779888533515 30s
β @vocal basin can now stream until <t:1679926004:f>.
@valid siloπ
but it might have been just normal discord streaming behaviour
@mint inletπ
I experienced cursor lags both when streaming and when watching streams
ig that just happens
@vocal basin down for some clash of code
Hii
last time I was able to mute soundboard, I was in a VC of another server
now it just doesn't work
and it was laggy
1~2 s delay
and same for typical mute
now mute is fast
@vocal basin .
Slight mistake in the video, this version is not sung by the Smokey Mountain band, but performed by the San Miguel Master Chorale of 2004. Of course, written non other by the legendary Mr. Ryan Cayabyab!
Enjoy the video and thanks for watching!
Image courtesy of Google search
THE EARWORM MUG!
Get yours here - https://teespring.com/the-earw...
@warped raft
i am there
start s new one
wait what
this is hwerre
ctrl+p
or right+click -> command palette
I didn't find (re)format there
rtf, I guess
a spider is looking at me
it ran away
I don't really understand what it's trying to do
I hope it's not too disturbed my me taking a photo of it from 2~3cm away
my network is thrash
it's sitting still but when I move my head it appears to me as if the spider was moving
*distracting*
see up it 's going to coming landing on you
@placid talonπ
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
you sent me the same link
I moved the cable away from it
so now the "movement" is less apparent
i wanna spea guysπ
is there anyway to speak without passing 3 days
oh ok so just 50 messages is all i need to speak
:incoming_envelope: :ok_hand: applied timeout to @placid talon until <t:1679928562:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).
The <@&831776746206265384> have been alerted for review.
C# has that too
!tvmute 846649498092175360 "2 weeks" Spamming messages to up your message count is not the way to get voice verified. You can still join voice channels without being verified; you just have to get some legitimate server activity in order to get verified.
:incoming_envelope: :ok_hand: applied voice mute to @placid talon until <t:1681137678:f> (14 days).
lol sorry i waited a bit but figured you were typing smth else
Hiπ! You look like a powerful person in this server. Nice to see you
hello!
!stream 163839418623459330
β @obsidian dragon can now stream until <t:1679929388:f>.
~13 second load
hi
Yo
Those are some long branches
User keeps resurrecting the branch

@twin zinc We can hear you, I do know about RaspberryPi's
Can I dual boot
WIN11 + Raspberry Pi + Ubuntu or Arch Linux
If I got a 2tb hdd + a 500gb hdd
Is the Raspberry Pi something you got from school?
Or is it for class?
Because they might tell you what you need to have on your Raspberry Pi
I would say choose an OS based on your end goal, what is your goal?
Well I need to buy it, myself + They are saying that python and java both are good but they will teach java robotics and we have learn raspberry PI on our own
Making a robot to automate day to day tasks and also to get train schedules and ChatGPT info
Well I have gone for several coding competitions based on python from my school so if I fail then I will be embarrassed
This what I would recommend.
I got 2.5tb Hard Disk
π₯π’π’π¦π
chill
I refuse.
@rugged root Will you guide me on raspberry Pi
Like help me in problems
Yes
I am 13
ddidnt expect this from you π
We were talking about WinAmp
I've done other pictographic phrases, before.
wazzup hem
Rust is a systems programming language focused on safety, speed, and concurrency.
Sup
chad opal πΏ
I am just watching a video on raspberry pi car robot
Like a fuse of a bulb?
Coz It saves the M.Board by taking in the voltage?
@pseudo bluff π
Thx and just asking are Grounds and 3v3 powers used in the coding part?
Not in the coding directly, just in powering the device you'll be sending the code to
If you fuck up the wiring, coding will be the least of your problems.
Not terrible. You?
I'm gud, just strugling with my exam π
Which one?
oh kk
@reef seal Yo
I'm writing a couple-thousand-characters-long code review
Oh noooo
~1950 characters of it was already sent
That's.... that's dedication
@lavish rover
groupby
* Return an iterator that groups elements from the iterable into a sequence of tuples.
* The first element of each tuple is the key to the group.
* The second element of each tuple is the iterator of the group.
*
* @param {Iterable} - The iterable to group.
* @param {function} - The function to group by.
* @returns {Generator} - A generator that yields the grouped elements.
hello sir
https://riichi.wiki/List_of_yaku Back to trying to figure out how to check for these
A yaku γε½Ήγ is a certain pattern in a mahjong hand, or a special condition under which a win is declared. Many yaku are pattern-based yaku comparable to "poker hands". Unlike poker, yaku types do not supercede each other. Instead, they are the main factor to determine hand values. Players must finish hands before others do; and each yaku has ...
@midnight agate what target did you specify if you tried RUN --mount type=cache?
@robust ether Yo
hello!
most of my Rust experience so far was with cargo watch -cx test
which can't exactly be inside the build phase
CARGO_HOME=/usr/local/cargo/, right?
@hybrid igloo Yo
i.e. are you sure you're caching the right location?
yo
can you "assert" it in the Dockerfile?
(I tested, it should be that, yes)
What I'm making is going to be awful....
Trying to figure out a not shit way to make all 136 tiles
both mounts work for me
on FROM rust:latest
although
eh
I'm not sure about the second one
eh
seems like it doesn't
nvm it's fine
it's just slow
and I'm testing it basically on helloworld
buildkit logic adds 0.6s overhead
I wasn't paying much attention this time
(because I'm, like, doing 3-4 other things also)
It's a banana not intended as a reference to anything else.
The phrase "banana for scale" was said and I happened to have the image at hand. That's all. π
x = random.uniform(0, len(grid[0])-1)
y = random.uniform(0, len(grid)-1)
@somber heath
Here is source of code my implementation
!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 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.
Could you please post a syntactically viable version of the code?
One that, ideally, I can run and see what the problem is, for myself.
@blissful chasmπ
@tranquil eagleπ
hi
https://i.imgur.com/Tfn7qnu.jpeg Spotted Pardalote
MetaTrader 4? No.
Then I'm afraid that makes two of us. Let's see what can be dug up.
https://www.mql5.com/en/docs/python_metatrader5 This seems relevant.
I know it's 5 vs 4, but...
should be the same
@whole bear π
Pantone 448 C is a colour in the Pantone colour system. Described as a drab dark brown and informally dubbed the "ugliest colour in the world", it was selected in 2012 as the colour for plain tobacco and cigarette packaging in Australia, after market researchers determined that it was the least attractive colour.
The Australian Department of He...
@untold mapleπ
How get voice ability?
What are you doing guys
&
?
heehe
understand
hehe
porn of code
i think he want stream porn
I want stream my project
I have a problem with my project
I use Recbole for recomendation PySpark and so on
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@strong lanceπ
@somber heath i dont have permission to talk
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i had some doubts in python
why is it like in some classes when calling a function we need to use the word self? and in some not for eg in the function SameTree we're not using self to call it but in maxDepth function we have to use self to call it
!e ```py
class MyClass:
def method(self, value):
print(value)
instance = MyClass()
instance.method('Hello, world.')```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, world.
yeah i am
is vs ==
yeah i have
do you mind calling me? it's hard to tell what i am thinking while texts?
Okay finee no worries
!e ```py
class MyClass:
def is_self(self, value):
print(self is value)
alpha = MyClass()
beta = MyClass()
alpha.is_self(alpha)
alpha.is_self(beta)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
@whole bearπ
so when do i use self when calling a function?
could you tell this example with the picture i sent? i am trying to understand it and it's kinda confusing for me
!e
class Student:
def __init__(self, name, age):
self.name = name
self.age = age
def introduce(self):
print(f"My name is {self.name} and I'm {self.age} years old.")
sally = Student("Sally", 8)
billy = Student("Billy", 7)
sally.introduce()
Can you solve this real interview question? Maximum Depth of Binary Tree - Given the root of a binary tree, return its maximum depth.
A binary tree's maximum depthΒ is the number of nodes along the longest path from the root node down to the farthest leaf node.
Example 1:
[https://assets.leetcode.com/uploads/2020/11/26/tmp-tree.jpg]
Input...
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
My name is Sally and I'm 8 years old.
it's this question the maxdepth one
Student.introduce(sally)
for maxdepth when i don't use self the ouput is coming wrong
# say I do sally.introduce()
def introduce(sally):
print(f"My name is {sally.name} and I'm {sally.age} years old.")
hello
so self isn't always necessary when calling the same function?
i think i'll just choose to ignore it cauuse it's confusing me so much
yeah that's what even with recursion it's kinda confusing for me to understand
bro i wanna talk i can't type so much ong
i won't
i don't even know how to use discord
i won't do that
thankyou so much
i will do htat
!stream 474651788172197906
β @strong lance can now stream until <t:1680013737:f>.
!e ```py
class MyClass:
def function_or_method(self):
pass
def function():
pass
instance = MyClass()
a = type(function)
b = type(instance.function_or_method)
c = type(MyClass.function_or_method)
print(a)
print(b)
print(c)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'method'>
003 | <class 'function'>
Don't worry about c.
It's just showing you that a def in a class is a function but a def in an instance is a method.
But this is what we mean we we talk about functions and methods.
Functions being defs by themselves, methods being defs in classes. (bar c)
We customarily refer to defs in classes as methods, even though that's wrong.
!e
def printing_dec(func):
def wrapper():
print("I'm happening before the function")
func()
print("I'm happening after the function")
return wrapper
def ham():
print("Big fan of ham over here")
decorated_ham = printing_dec(ham)
ham()
print()
decorated_ham()
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Big fan of ham over here
002 |
003 | I'm happening before the function
004 | Big fan of ham over here
005 | I'm happening after the function
!e
def printing_dec(func):
def wrapper():
print("I'm happening before the function")
func()
print("I'm happening after the function")
return wrapper
@printing_dec
def ham():
print("Big fan of ham over here")
ham()
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | I'm happening before the function
002 | Big fan of ham over here
003 | I'm happening after the function
commonly used for timing your functions
def printing_dec(ham):
ham_func = ham
def new_ham():
print("I'm happening before the function")
ham_func()
print("I'm happening after the function")
return new_ham
i had a thought tho.. would it be possible to handle func errors in a wrapper
yea, but my concern is if the func returns or not.. I guess i would have to use 2 different ones maybe.. 1 for returns one for not...
as i dont know how i would check if return
class Solution:
def isSymmetric(self, root: Optional[TreeNode]) -> bool:
def mirror(left,right):
if not left and not right: return True
if not left or not right: return False
return left.val == right.val and mirror(left.left,right.right) and mirror(left.right,right.left)
return mirror(root.left,root.right)
!code
class Solution:
def isSymmetric(self, root: Optional[TreeNode]) -> bool:
def mirror(left,right):
if not left and not right: return True
if not left or not right: return False
return left.val == right.val and mirror(left.left,right.right) and mirror(left.right,right.left)
return mirror(root.left,root.right)
def isSameTree(self, p: Optional[TreeNode], q: Optional[TreeNode]) -> bool:
if q is None and p is None:
return True
if (q==None and p != None) or (p==None and q != None):
return False
if p.val != q.val:
return False
return self.isSameTree(p.left,q.left) and self.isSameTree(p.right,q.right) ```py
code here
class Solution:
def isSameTree(self, p: Optional[TreeNode], q: Optional[TreeNode]) -> bool:
if q is None and p is None:
return True
if (q==None and p != None) or (p==None and q != None):
return False
if p.val != q.val:
return False
return self.isSameTree(p.left,q.left) and self.isSameTree(p.right,q.right)
class Solution:
def maxDepth(self, root: Optional[TreeNode]) -> int:
if not root:
return 0
else:
return (1 + self.max(maxDepth(root.left),self.maxDepth(root.right)))
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isSymmetric(self, root: Optional[TreeNode]) -> bool:
def mirror(left,right):
if not left and not right: return True
if not left or not right: return False
return left.val == right.val and mirror(left.left,right.right) and mirror(left.right,right.left)
return mirror(root.left,root.right)
root = TreeNode(3, 4, 5)
!e
class Combatant:
def __init__(self, damage, health):
self.damage = damage
self.health = health
def attack(self, opponent):
opponent.health -= self.damage
hero = Combatant(5, 30)
goblin = Combatant(2, 15)
print(goblin.health)
hero.attack(goblin)
print(goblin.health)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 15
002 | 10
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Thankyou much @rugged root
What's the question
I'm working on a simple website for visualizing grade distribution data. The data is about 10mb in size which is to big to ship to the client but I don't won't to run a server constantly.
Would there be a better way to have that data available?
Hmm
I guess it depends, how is 10 mb too large?
10 mb is like... a few seconds of download on a reasonable internet
Some people were telling me that was a lot to load before having the website begin to work.
it's not ideal
perhaps you could show a status bar of the loading data
otherwise the client might think the website has crashed
Or trickle it in as it's being loaded?
for instance
Like.... lazy loading it or something
I can't really trickle load it as it depends what information they are pulling in.
no
MagicalGirl
Matt
Mr. Focus
Mr. Hemlock.
I don't know why I found that interesting.
10 megabytes @ 8 kilobytes/s, 21 minutes and change.
lol π
Unless I fucked up.
still painful π
ayo
The world's first thermal imaging 5G rugged phone with Dimensity 800 5G SoC coupled with 8GB RAM and 256GB storage, adopting latest Android 11 OS, 48MP triple camera plus FLIR thermal imaging camera, meeting IP68/69K rating ruggedness test.
The U.S. Dept Of Defense Vulnerability Disclosure Program enlists the help of the hacker community at HackerOne to make U.S. Dept Of Defense more secure. HackerOne is the #1 hacker-powered security platform, helping organizations find and fix critical vulnerabilities before they can be criminally exploited.
Web site created using create-react-app
I've just read this
(didn't learn much new because most things were quite obvious even when I was reading the book mentioned myself)
https://qntm.org/clean
I never read "Clean Code" in full because it's unreadable past first several chapters
it already takes some experience to separate good advice from the rest of the book
(not quite beginner friendly)
is there any order i should follow
"Clean Architecture" was somewhat easier to read because it's more of history and "what can be done" instead of "what should you do"
i mean should i read the book first and then move on ?
gittutorial before gittutorial-2
gittutorial-2 before gitcore-tutorial
also this if you need more in-depth manual on everything:
https://git-scm.com/docs/user-manual
and quick overview of commands:
https://git-scm.com/docs/user-manual#git-quick-start
if you want a detailed explanation of how and why, read the book
if you want a tutorial, start with https://git-scm.com/docs/gittutorial
ohh thank that helps me alot
second link here is a "cheatsheet" in some sense too
(but without pretty formatting and maybe ordered less correctly)
i can deal with it thank you once again
The world's first thermal imaging 5G rugged phone with Dimensity 800 5G SoC coupled with 8GB RAM and 256GB storage, adopting latest Android 11 OS, 48MP triple camera plus FLIR thermal imaging camera, meeting IP68/69K rating ruggedness test.
isn't it more of a compiler/interpreter flag rather than a library?
and it's mostly for "maybe we'll add this later" things like annotations
@obtuse wagon If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
where \_?
i know this is a server for python but does anyone know unity and cΒ£
i have a uni projext and the script for shooting works and shows me in console that it works but for reloading for some reason it doesnt show it in console that its reloading i followed a yt video but he doesnt end up having that problem but its literally word for word
that reminds me of the talk by Mark Rendle, "The Worst Programming Language Ever"
replied to wrong thing
the pound thing
i had a python project a clouple weeks ago and i found much eaiser than cΒ£
where variables were like in PHP but with β¬ instead of $
@naive abyss If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
$
"reloading" in what sense?
oh
really easy tbf
not the code sense
just shift and 3
do you want me to screenshare and show you what i mean?
I thought you meant code reload
like, compiling and changing the running code
C# allows that
is somewhere with ~ on the right
~ is replaced with another thing which in some context means "not"
@rugged root Hi!
How's it going
pretty good
actually, i was suffering from an existential crisis some moments ago
i cant decide on what to do with my life long-term
if chatgpt wasn't there
Oh god
maybe I couldve focused on becoming a top tier programmer
so yeah
im just thinking about what to do
long term
I don't know if ChatGPT is the best life coach
@rugged root Umm, yeah. Arent human coders going to go extinct in the near future? So, theres little point in trying to become a great coder, right?
I mean this is the buzz right now, so this discussion seems redundant and boring at this point
More or less
compilers and computers used to be job names
I'm very unsure if that can happen for "programmer" because it doesn't actually have concrete, limited domain of what the job encompasses
Guys, chatgpt is still a baby. You're right: Chatgpt is not that intimidating, but chatgpt will not remain a baby forever
Maybe, we will see
yeah
Remember, Self Driving Car is coming any day now
my guess would be either/and:
no reference to external non-const data
can be used to produce const values (maybe compile-time computation?)
second thing
const something: Something = { f(...) }
there is {} syntax for evaluating things in const contexts, iirc
(saw that when looked up const generics)
there's so much ways to make constants unlike some other languages
Result::and seems to be unstable still
https://github.com/rust-lang/rust/issues/92384
Hello!
@slender sierra π
oh, wow, looks like GitLab maybe unbanned Russia
this looks like as if it was made by Oracle
GitLab isn't actually fully open source, iirc
Community Edition may be
well, at least CI/CD part is open-source
wait what
Gitea has CI/CD
allegedly
oh, because it's extremely modular
howdy
interesting how "not supported" is a link to the related issue
https://docs.gitea.io/en-us/comparison/
so you solved fusion in a coke can already ...
... no one wants telemetry
(no related feature request link)
according to that comparison, only Gitea currently attempts doing federated cloud stuff
its very quiet .... you all huntin wabbits '
anyone do any RFID experiments ... extending ranges
"continuous thing-doer"
https://github.com/concourse/concourse
py.noob i have a question about your project , what is going on there in a simple word . what are you working on ?
something like map or something else ?
@eternal fractal π
these two links go to the same page
exploring opensource CI/CD
Drone
26.7K stars
"An opinionated fork"
roll the deck
shuffle the dice
how much can you actually bias coin odds?
depends a lot on the shape
The Cubli is a 15 Γ 15 Γ 15 cm cube that can jump up and balance on its corner. Reaction wheels mounted on three faces of the cube rotate at high angular velocities and then brake suddenly, causing the Cubli to jump up. Once the Cubli has almost reached the corner stand up position, controlled motor torques are applied to make it balance on its ...
I use thumb for z~c, that's how ArmA influenced me
win+tab
I only accidentally press it sometimes
I went into software engineering specifically to avoid multimonitor setups. Fuck AWIPS for that specifically
(this is the National Weather Service office just 40 minutes from me)
!pep 701
sorry missed this.. but i am trying to find sites that are connectes to eachother in a miserable db... which is so bad not even the site links themselves meet any kind of standard for matching purposes.. so i am using cords to find any site within 100miles and starting ever aggressives regx pattwrn matches to find any sort of correlation point in the name of the links.
CVE-2023-24329 : An issue in the urllib.parse component of Python before v3.11 allows attackers to bypass blocklisting methods by supplying a URL that starts with blank characters.
Person A: We need more ADHD resources.
Person B: There's plenty on TikTok
Person A: Right, you're saying that short form video dopamine hits is the best way to look for ADHD support.
you don't
can someone have a chat with me so i can use voice chat
man thats such a stupid verification
okay fair then but i actually wanna talk python
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
voice verification and screen verication the same right?
can we talk in any of the chats
Text chats are open too
yeah
guys I miss understand about screen verication
voice verification and screen verication the same right?
Separate
oh ok thanks
whats the reason for blocking screen share
!rule 10
what man is joining python group and streaming porn
understand
they're from the Java discord
im in both
if I check this code on myself I still can not and how you check this?)
do you guys have any careers in computing
it's pretty easy to tell whether the code is shitty due to human error vs because it is computer-generated
SO had AI-generated answers banned too
(has)
It's definitely a useful tool, but you need to be aware of its limitations.
it can
a little bit
but you need to tell it to
you need to tell it what errors arise
you need to put in the effort yourself anyways
For answering questions in our help forum, it's particularly likely to mislead and waste time.
but this code can work because we have large github and stackoverflow base
and what
it is block of code
ChatGPT is extremely good at replicating common bugs/errors
I think it is normal if you understand what you do
there are also, for example, reasons why you cannot ask ChatGPT to write docs for you
what diffence between this?
if you can figure out (not guess) docs (in-code ones) from the code, those docs are basically useless
except for maybe template simplest stuff which you can already do without AI
2021
march 2021
train it on texts before Windows existed
... but it can give you hints of what can be written
I feel like it's prone to making the same kinds of "system 1" errors that people make. I.e. errors that you make when you rely on your intuition and experience to tell you what "looks right", rather than applying sequential step-by-step reasoning.
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Right yeah that too.
!voice
You mean joining the voice chat itself?
!voice
They already did that
!voice again for luck
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hey. Just read what it says in the #voice-verification channel.
congrats
so smart and nice.
use Time::HiRes 'time';
$StartTime = time();
"abababdedfg" =~ m/^(a|b|c|d|e|f|g)+$/;
$EndTime = time();
printf("Alternation takes $.3f seconds.\n", $EndTime - $StartTime);
Ah yes, I forgot why I prefer Python...
I strongly suggest starting with Linear Algebra
i don't know how can i start
"experience without reasoning" is basically the only thing GPT-like models have in most cases
I think you just start from pandas may be
https://www.youtube.com/watch?v=J7DzL2_Na80 is where I started my ML journey
MIT 18.06 Linear Algebra, Spring 2005
Instructor: Gilbert Strang
View the complete course: http://ocw.mit.edu/18-06S05
YouTube Playlist: https://www.youtube.com/playlist?list=PLE7DDD91010BC51F8
- The Geometry of Linear Equations
License: Creative Commons BY-NC-SA
More information at https://ocw.mit.edu/terms
More courses at https://ocw.mit.edu
analyzing data is only a small part. pandas is only really useful for tabular data, and higher level data structures break it pretty fierce
yep but he ask how start
You don't start with tabular data, you start with an understanding of the underlying principles.
If you understand how it works, figuring out how to use it is much easier.
okk okk thanks a lots my dear friends for helping me to start my journey..........
no problem
excel is terrible. Start with Linear Algebra. It'll improve your problem solving skills regardless.
university name pls?
I think you can find videos in youtube
or I can send you course from my university
if you want
can anyone have any roadmap of ML?
sure thanks can you send me the course of your unicersity
Literally nothing lol
ML is quite a diverse field
each roadmap is specific for a particular subfield/goal
π Laund
eh
404 error dude
idk if they properly translate courses into English
can anyone help me with some code im slightly stuck
may be, I am not native speaker
for me it was pretty good
but Russian courses will more full it is true
Sure what's up
I took MIPT's course for half a year, it was mostly Russian (but it's almost surely not translated to other languages)
from the csv file
that was with automated testing of code and all that
i was wanting to make a count occurrence algorithm that counts the times equal to or greater than 54.0 seconds from a csv file. Most of the program is finshed just got a small issue i dont quite know how to fix
Is it erroring or what's happening
how many rows?
for low count of rows, built-in python libraries should be fine
error
what's the traceback?
would you like to see the code
Can you toss the error and traceback in here first?
!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 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.
Also that for the code
!e
from __future__ import braces
@willow light :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | from __future__ import braces
003 | ^
004 | SyntaxError: not a chance
darn
Maybe next version
Opening an issue on GitHub
python 5
#voice-chat-text-0 message
If Python 3 is so good, why don't they make Python 4? Get a franchise going!
HA, forgot about that
oh wait i just fixed it my bad ahahah
All good!
While we're at it, let's make a Half-Life 3 as well.
python 3: episode one
gen z aint that bad
Gtg π
laund reading off of wikipedia π¬
add more gun
out of all technical books I currently have, I've probably read less than two
and the one I read in full isn't a particularly good one
"Clean Architecture"
it's a mess that's fun to read rather than something you can learn from
I have that book
It's in my shelf next to Clean Python
and on the other side is Automate the Boring Stuff
@midnight agate alt-enter, then something about highlighting
when inside the string
I see CORS somewhere there
(not exactly a simple topic)
btw
localhost may have different CORS policies compared to proper domains/IPs
!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 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.
from pynput import keyboard
def on_press(key):
try:
print('alphanumeric key {0} pressed'.format(
key.char))
except AttributeError:
print('special key {0} pressed'.format(
key))
def on_release(key):
print('{0} released'.format(
key))
if key == keyboard.Key.esc:
# Stop listener
return False
# Collect events until released
with keyboard.Listener(
on_press=on_press,
on_release=on_release) as listener:
listener.join()
# ...or, in a non-blocking fashion:
listener = keyboard.Listener(
on_press=on_press,
on_release=on_release)
listener.start()
@whole bear https://docs.python.org/3/library/tkinter.html
thats the python interface that would allow you to build a gui
thx
text = "".join(str(key) for key in keys_pressed).strip()`
print("You typed ", text)
have to take a call, brb
!e
char = '\\r'
if '\\r' in char:
print('yes')
else:
print('no')
@pallid hazel :white_check_mark: Your 3.11 eval job has completed with return code 0.
yes
@lunar haven you're my hero π
@whole bearπ
@somber heath hi again
i have just a quick question, i want to send some code line in discord ( like u do) but couldn't do it
!code
You have the freedom to join voice chats. What I'm asking you to not do is follow me from room to room to room, especially when I've explicitly said that I'm changing rooms to avoid you. Back off. Do not talk to me.
so i need first to have python bot on my discord
No, this is something you can do with the standard Discord client.
Or are you telling me that you want to do this with your Discord bot?
Because I'm not too sure about that. You'd need to talk to #discord-bots if that's the case.
oh okay thanks
No worries. π
def func():
global a
a += 1
a = 0
func()``` ```py
class MyClass:
def __init__(self):
self.a = 0
def method(self):
self.a += 1
instance = MyClass()
instance.method()```
!e ```py
class MyClass:
def init(self, *args):
print(f'I am init. {args}')
def __enter__(self, *args):
print(f'I am __enter__. {args}')
def __exit__(self, *args):
print(f'I am __exit__. {args}.')
print('Hello.')
with MyClass() as instance:
pass
print('Goodbye.')```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | I am __init__. ()
003 | I am __enter__. ()
004 | I am __exit__. (None, None, None).
005 | Goodbye.
!e ```py
def func(*args, **kwargs):
print(args)
print(kwargs)
func('apple', 'pear', 'orange', beef = 'cow', lamb = 'sheep')```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ('apple', 'pear', 'orange')
002 | {'beef': 'cow', 'lamb': 'sheep'}
!e ```py
def func(a, b, c, *args):
print(a)
print(b)
print(c)
print(args)
func(1, 2, 3, 4, 5, 6)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | (4, 5, 6)
my debugging buddy arrived last night woo
!d collections.OrderedDict
class collections.OrderedDict([items])```
Return an instance of a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass that has methods specialized for rearranging dictionary order.
New in version 3.1.
!x-y
The XY problem can be summarised as asking about your attempted solution, rather than your actual problem.
Often programmers will get distracted with a potential solution they've come up with, and will try asking for help getting it to work. However, it's possible this solution either wouldn't work as they expect, or there's a much better solution instead.
For more information and examples, see http://xyproblem.info/.
whereas this is just preserving the order of things inserted
you can start a million async tasks and be fine
rewrite everything in async
use thread pools
it's like
just asyncio.to_thread
unless you block with GIL locked
"rewrite everything in Haskell"
"you won't even know when you use async and when you use threads"
Haskell's sleep (I don't remember the exact name) is less optimised than python's asyncio.sleep
@midnight agate
||Lock is equivalent to a Semaphore of size 1||
is that understanding correct?
Talking stick.
blocking specific tasks has nothing to do with Semaphore vs Lock
it's more relevant to preemptive vs cooperative
"Semaphore of size 0 is the perfect semaphore"
@random krakenπ
"A mutex is a public toilet."
Unless it's a club. You did mention.
@cobalt robinπ
"write a 20 page document"
> "no, no, no, don't fix it. we give you two weeks to write a twenty page document telling us how to fix it"
a little bit of gravel sound
@cobalt robinπ
teens that go rawr xd I'm so random
Oh!
Dall-E?
lol if you want to work on the order you may
@clever treeπ
@pearl sable π
π€
@tawdry dove π
what do you mean by "functional depedency"?
fd in dbms
relationship between two attributes
!stream 350322185891610624
β @neon herald can now stream until <t:1680100042:f>.
@gritty hatch π
@copper thorn π
Oof suggested that it'll be the inner part pressing against the ear.
Headphones.
Yo.
@whole bear @pastel vault π
Ta ta Fury
It's fine. I don't mind if I'm left alone.
technically im alone most of the day
re-watching the "Programmingβs Greatest Mistakes" talk
@whole bear π
How are you guy's?
earlier I was analysing some cryptographic system
Fat and sassy.
being able to create a proof-of-concept attack on it
that was to warn someone who was going to use it
(so no illegitimate activities)
although legitimacy of using (A)RC4 in the code is questionable
because it's a leaked cipher
it wasn't officially published
I'm still surprised someone who doesn't know that ^= exists was able to implement a cipher in C
that just shows how simple that cipher is
like, a valid, quite secure cipher
or one that was before around 2015
@white oxide π
version 0
https://youtu.be/qC_ioJQpv4E
version 1
https://youtu.be/U2McB8oo0Io
Hi, I just checked in so see what you guys were doing, just joined a couple of weeks ago so still have to check all the rules and stuffs
Reminds me of a Python cheat sheet I saw, once.
!e
from collections import Counter
print(Counter(a=2) <= Counter(a=1, b=2, c=3))
print(Counter(b=1, c=3) <= Counter(a=1, b=2, c=3))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
and just have the left part ready in a list
for all possible ones
oh, that also means that theme would be available for Sphinx in general
there are some community-maintained
python docs use Sphinx 4.5.0
two major versions behind
I forgot
!d itertools.starmap
itertools.starmap(function, iterable)```
Make an iterator that computes the function using arguments obtained from the iterable. Used instead of [`map()`](https://docs.python.org/3/library/functions.html#map "map") when argument parameters are already grouped in tuples from a single iterable (when the data has been βpre-zippedβ).
The difference between [`map()`](https://docs.python.org/3/library/functions.html#map "map") and [`starmap()`](https://docs.python.org/3/library/itertools.html#itertools.starmap "itertools.starmap") parallels the distinction between `function(a,b)` and `function(*c)`. Roughly equivalent to:
```py
def starmap(function, iterable):
# starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000
for args in iterable:
yield function(*args)
this has no proper dark theme
https://sphinx-themes.org/
closest thing is:
https://sphinx-themes.org/sample-sites/groundwork-sphinx-theme/
"very readable"
built-in ones are all light
one of which is py2 theme
I was helping to use it once
I forgot most of what I did
there is an alternative library, which I'd classify as !rule 5 because it exploits Google Translate API
@pure prairie π
it almost literally says in the docs that it uses undocumented APIs
i should be doing things but , Hemlocks on the air
it's kind of grey area
they may be not fine with it because you lose them money that they'd otherwise make through selling you TTS cloud solutions
I'm tempted to start learning erlang/elixir
there is a way to properly use Google TTS with tokens and stuff:
pay for Google Cloud
remote procedure call
?
Yep
I still remember the acronym since around 2019 (I guess) when I was implementing something similar myself
reminds me of star trek episode 'spocks brain' he is now in alien computer ,, so have the text to speak , use Leonard Nimoys voice , possible ?
generally: don't do that, write HTTP API or use something else like gRPC, don't write your own thing unless it's a giant project that could benefit from it
@rugged root
Set your authentication environment variable.
(from the same page)
@rugged root can you please give me video role? I wanna stream
Give me a sec
make a animatronic head of Nimoy in a jar like on Futurama , then have text to speech --- hmmmmm ?
What're you wanting to stream?
coding
