#voice-chat-text-0
1 messages ยท Page 154 of 1
im deaf now
xd
its boosted to 100 dB
AudioSegment
no its from the pydub libray
sound = AudioSegment.from_wav(input_file)
earrape_sound = sound + gain
earrape_sound.export(output_file, format='wav')```
python always
atleast i woke myself up
this would be good to play to scammers
get them to put there volume to 100 then blast this
nah i just watch alot of scammer payback
them fighting scammers
if you want i can send you my code
for this
lemme
change smth rq
from pydub import AudioSegment
def convert_to_wav(input_file, output_file):
sound = AudioSegment.from_file(input_file)
sound.export(output_file, format='wav')
def increase_volume(input_file, output_file, gain):
sound = AudioSegment.from_wav(input_file)
earrape_sound = sound + gain
earrape_sound.export(output_file, format='wav')
def apply_effects(input_file, output_file):
sound = AudioSegment.from_wav(input_file)
reverb_sound = sound.fade_in(1000).fade_out(1000).apply_gain(10)
delay_duration = 2000
delay_sound = AudioSegment.silent(duration=delay_duration)
earrape_sound = reverb_sound + delay_sound
earrape_sound.export(output_file, format='wav')
input_file = input(r"Path To The Audio File: ") #'C:/Users/strik/Coding/Python/audiothing/Aslan_Akhmetov_-_The_Keeper_Ultima_Black_Mesa__Blue_Shift_OST.mp3'
output_file = input(r"Output name for the file Avaiable extensions .mp3 .mp4 .wav You can use any text before these extensions Example Output.wav: ")
convert_to_wav(input_file, output_file)
increase_volume(output_file, output_file, 100)
apply_effects(output_file, output_file)
free earrape generator use these on the scammers Uses pydub libray. pip install pydub
ayyyy
flower
like my house
i need a complex shape to draw
like this one?
im gonna go make a python script that zips files
zipfile i think its called
3 1/2 Smyth St.
Ph?
@whole bear
Hi
just a chat?
@lunar haven where r u from?
Where are you located at
Hiro
colombia
greetings from LATAM
??
no idea
you bet
brb
damn, why i'm surpressed?
how about video chat?
burning here
glad raining now
aircon is dream
what d u think about the future of AI?
@topaz jackal Please chat here
@wind raptor ye not that active
No worries, you'll get there
Awe yeah!
@torn kayak bro voice deep
im bored
hi```
test```
hmmm
test
didnt change color
weird
lol
(define (merge-helper s1 s2)
(cond
((null? s2) s1)
((null? s1) s2)
(else
(let ((r1 (car s1))
(r2 (car s2)))
(cond
((sub-range? r1 r2) (merge-helper (cdr s1) s2))
((sub-range? r2 r1) (merge-helper s1 (cdr s2)))
((or (overlap? r1 r2) (= (car r1) (add1 (cdr r2))))
(merge-helper (cons (cons (car r2) (cdr r1)) (cdr s1)) (cdr s2)))
((or (overlap? r2 r1) (= (car r2) (add1 (cdr r1))))
(merge-helper (cdr s1) (cons (cons (car r1) (cdr r2)) (cdr s2))))
((< (car r1) (car r2))
(cons r1 (merge-helper (cdr s1) s2)))
(else
(cons r2 (merge-helper s1 (cdr s2)))))))))
nooo im suppressed D:
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
oh nice
yeah i joined about an hour ago
shooot i just started learning it
welp ill get back to it. ima dip
i have a general query
have anyone done python for everyone from coursera if yes does it also provide assignment/practice question
i wanted to join it if they provide practice question
if it's just a personal project that no one else depends on, do whatever is easier for you
@midnight agate
daily
https://leetcode.com/problems/find-k-pairs-with-smallest-sums/
Yes
Maybe less test cases were used back then
Haha
it will show the new tiime
I'm on phone
but it will keep the last, I think
it doesn't have a button to re-submit the old solution?
yeah, seems like new tests
and they also removed old solutions from rankings
or didn't
I can't maths
Haha
there can at most be something like 11 of 100% solutions given 221K accepted
I don't care much about run time. As long as I solve with the expected time complexity
yeah, in reality that's mostly what matters
- leetcode runtime is extremely random
it runs tests once, I think
(so it's obviously not a benchmark)
Yess
Yeah
@whole bear
does this qualify as rule 6?
technically, not, I think
no
A quantum computer in the next decade could crack the encryption our society relies on using Shor's Algorithm. Head to https://brilliant.org/veritasium to start your free 30-day trial, and the first 200 people get 20% off an annual premium subscription.
โโโ
A huge thank you to those who helped us understand this complex field and ensure we told...
"Tiger brand coffee. They won't even know it's not really gazelle"
Why are Indians good at realising things?
||Because of the Maharajah.||
What sort of spider?
They're next to harmless.
Huntsmen spiders can bite
They'll make you ill and give you a rash, but they're generally more averse to people.
and are generally good to have around in any case
Just not in my room, thank you
Ha.
that's racist
You're just upset I beat you to it.
Beating me just because I'm Indian is racist opal
Dude I'm cry laughing
I'm a terrible person. I know.
@whole bear @white oxide Yo
yo
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how can i verify my voice?
The details about it are in #voice-verification
i've already wrote 50+ msgs
You have to do !voiceverify in the #voice-verification channel
ohhh less than 50
they say
so i will try
here
50+ msgs
ok?
did u guys hear me?
@rugged root
I didn't, no
Double check your devices in the settings
It might be trying to listen to a different one than you think
oh my
It makes all the images of blobfish that we see sad.
I'm going with no
looks like test is goin' om Live-Coding
It was such a flash in the pan.
i think between 3 and 5
First time out?
after 1 year of shooting i am can unlock the big caliber stuff but for it i have to redo some training with my shooting instructor
Friesland moment
sv Drachten he
staat op de doos
links met elektra
I will end you both
probeer het maar
i did not know that it was from that city
Hey hey ๐
"You have reached your final destination."
I've not seen it.
Any of them.
I am very confused.
I could while away the hours...
๐ถ I could drink away the hours with a glass of whiskey sours if I only had a grain ๐ถ

Could you gravity siphon it? @gentle flint
Drill pump?
Electril drill-driven pump.
Two hoses, attach both to the pump, insert drill, wheeldlewheeldlewhee.
Do you suppose there are girlers?
Shit wifi, plome.
When we changed our hot water service, the sercviceman drained it before taking it away.
Brownest shit, ever.
@lucid blade Why the disparity?
๐
Fun maybe. Some things you laugh about afterwards, some times there is no after. @lucid blade
Initial idea, filmed and edited by William Miall
Starring:
Robot: Tom Foster
Adam: Will Miall
Backup singers: Ant Abbey & Matt Smyth
Passer by: Jess Larkin
Neighbour: Trevor Foster
Huge thank you to everyone who helped make this video possible, thank you to Multi Media Systems, Mid-Kent College, all the actors and anyone else that I'v...
lol
KYM claims the origin is unclear.
Sounds right
Keeping between 80% and 20% is the ideal
v good
On this September 18th, 1989 episode of The Krypton Factor with Gordon Burns, it's the third and final heat of Group A as Andy, Annemarie, Albert and Jane attempt to prove their physical and mental worths to advance to next week's Group A final with Mike Berry, Den Hewitt, and the highest-scoring runner-up in the Group, and the score at present ...
g'evening
I can hear the fans spinning 
true
Speaking of, Macbook Airs
M2 is pretty great
piezo electric fans, right?
Get hooked up with the latest and greatest audio gear at https://lmg.gg/Sweetwater.
Get 69% off any of XSplitโs video tools. Use code LINUS at https://lmg.gg/XSplit
It ain't much to look at but Frore System's Airjet cooling inventions could revolutionize PC cooling in the next few years. Here at Computex 2023, they're showing of a new version ...
pacman -Syu
This one
It's amazing
Oh as in rpi's are still hard to come by
Especially here, where there's zero distributors
I thought you meant there wasn't one compat- holy shit that's gorgeous
So good
@topaz jackal You have so much background noise
cooking food
its prob my keyboard srry
i have loud keys
I love deluge
@rugged root
there's something else happening now, iirc
their policy is:
do not make it look like Rust Foundation endorses what you're doing
That's right
yes but the rust foundation should then be separate from the language
@whole bear there is no clear line and there can never be one.
something like redis-rs is widely recognised as non-violation
rust-lang-official/redis -- "likely" not
That's amazing
You folks remember when memes were just cats speaking weirdly?
@rugged root maybe the "meme" thing because of Rust Community discord?
I guess?
for bootstrapping without existing Rust compiler
I think
friendship ended with ed
now qed is my new best friend
https://en.wikipedia.org/wiki/QED_(text_editor)
1,213 votes and 154 comments so far on Reddit
gcc + python -> somewhat rust -> rust
CSV is good if used correctly
but some systems ser them without escaping
like
\n in a middle of a field
Yep, gotta love those
as in not escaped
so it ends up being two row
s
we were learning CSV in school
and by "learning CSV" I mean learning how broken CSV files can be
Yarp
also we weren't given files themselves, iirc, but rather where to look for them and the (approximatre) name of the file
with downloading the file from the government website as part of the exercise
we were expected to manually download
but the teacher downloaded it using a webscraper
I have no clue
I had to install Jupyter too much
use docker
well, okay, then just install in venv using pip
py -m pip install jupyterlab Just to make sure you're installing to the most recent version
venv
if you have one already
conda?
conda is ew
but maybe excusable
there is miniconda
lightweight
you have nothing pre-built
I think Python containers said something about "alpine not best to use here"
not sure
Python is an interpreted, interactive, object-oriented, open-source programming language.
*images
okay, I'm confusing it with something else
there was something that explicitly decided "no more alpine" but I don't remember what
I think I considered moving this to alpine
but probably I didn't want to bother
https://github.com/parrrate/openttd-docker/blob/main/Dockerfile
Why 3 r's
or I just, like
made it work
though "it works"
deleted
yes
Fair enough
You can only take off so many layers of skin?
to make it not collide with a concatenation of two existing words
no I'm not
I opened ed, like, twice
What is the name of the trading sim game?
this?
"Factorio is environmentalist propaganda"
HA
Factorio is labelled as a Management Sim
it's been >20 years since EVE released
you don't need any conspiracies to subvert the world
you can just be Oracle
they don't need to understand anything to do this
"lawnmover can't understand"
I came across this simplistic Risk like invasion game - https://territorial.io/
Territorial.io - The Art of Conquest
person chained to having to play that game over and over
https://www.youtube.com/@CGPlays
also, this exists
https://colab.research.google.com/
I actually noticed one of his streams! But I have actually played this game before watching the video.
one of the steps of Vim tutorial involves deleting the word "fun"
why is this there, what does it mean
Hartford Limited Apparel is still available!!!
WWW.HARTFORDLTD.COM
IF YOU WANT TO SUPPORT AND HELP ME CONTINUE WITH ALL THIS CRAZY CONTENT: Subscribe to my Patreon!
https://www.patreon.com/emeliahartfordโโ
โฅ ECREW
What is Ecrew? When I had to uproot and move to Indiana, there was a car community called Bcrew (B for Bloomington, Indiana). These...
@whole bear was trying to find it, failed so far
If cleanliness is next to godliness, does that mean non-cleanliness occupies the same position as godliness?
I suppose you could have cleanliness in two positions.
there is this
idk if it works
https://marketplace.visualstudio.com/items?itemName=LeetCode.vscode-leetcode
lets goo i can type here
@midnight agate Lexicographically lesser than the target would mean you may want to compare the ascii codes, no?
I don;t think they mean length
len is there to iterate, not to compare
though I don't understand why index
Is there a link where I can read the full problem? I do not have a leetcode account
Can you solve this real interview question? Find Smallest Letter Greater Than Target - You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters.
Return the smallest character in letters that is lexicographically greater than target. If suc...
Thanks
@midnight agate min can't start with letters[0]:
it can be smaller than target
@vocal basin Yes, but then the target is always just 1 letter. so len will always give 1 and then the range will just be 1 element long iteration
@midnight agate are you putting the wrong thing into len?
I do not want to spoil the fun with my own answer.
@midnight agate here is something to help you understand it better - https://www.sololearn.com/Discuss/379268/what-does-it-mean-that-a-particular-string-is-lexicographically-greater-than-another-string-in-java
not related to current issue
(and I'd expect Maro to already know what lexicographical order means)
from __future__ import barry_as_FLUFL
print(1 <> 2)
Well true, but the example in the question is a good indicator. C is considered greater in the question
@vocal basin did not know this one
which?
The <> import , https://peps.python.org/pep-0401/
Python Enhancement Proposals (PEPs)
I knew it for quite a long time
but it doesn't work with !e
!e
from __future__ import barry_as_FLUFL
print(1 <> 2)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print(1 <> 2)
003 | ^^
004 | SyntaxError: invalid syntax
"Alternative implementations <...> are officially discouraged but tolerated"
lol
ah, it's non-decreasing
yes, that exists
it auto-imports
Now I wonder what other interesting PEPs there are?
there is an unofficial pep8 replacement
&pep 9001
OK, Maybe quirky is what I meant. Consider this a rephrase!
if politicians are corrupt enough, anything can get into government, even AI
People at the top do not want this. They will never let AI become that ubiquitous
if they own shares in AI companies, they want it, very much
We were talking about something similar yesterday. Forget about running nations, Company owners will not let AI into the company policy making or decision making, because they ultimately fear that they will become obsolete.
whether or not AI is good at it doesn't matter at all
That is why you will only see articles on why AI will take up jobs, always about working class
if someone in a position of power can profit from it being integrated, it eventually will be
There is just one article I remember that talked about an AI that was acting as CEO.
but that is also pushed down and long forgotten
Humans are irrational, they will always also want control apart from profiteering
@midnight agate
||```py
from bisect import bisect_right
class Solution:
def nextGreatestLetter(self, letters: List[str], target: str) -> str:
return letters[bisect_right(letters, target) % len(letters)]
another for nextGreatestLetter
"sentient" is a meaningless word
@lucid blade self-awareness is not sentience.
unless you're in science fiction and you can't be bothered to use words correctly
there's an "or" there
well, yes, if you don't differentiate those words, then argument based on them is useless
whee
this link looked promising until I clicked it
https://en.wiktionary.org/wiki/Thesaurus:self-aware
only 4 entries
ah, this has more
https://en.wiktionary.org/wiki/Thesaurus:sentient
so, tip for confusing readers:
use all those words interchangeably
as much as possible
1
null 2
3
by levels:
1
null 2
3
gives 1 null 2 3
full would be
1 null 2 3 null null null
||```py
class Solution:
def minimumOperations(self, nums: List[int]) -> int:
return len(set(filter(bool, nums)))
read level by level
less ugly lines
1
null 2
3 null
null null
all last nulls are cut off
this would be
1 null 2 null 3
Rensselaer County Supreme Court.
last syllable stressed
or
second-to last
i
idk
ren
seh
lye
I can't find a word with a pronunciation that matches the last syllable (or last two)
because it's lieh not lie
or something
"lear"
allegedly
like, one of the worst choices
VS for Python is worse than VS Code
maybe it's better for making C Extensions
because compiled
and stuff
they have Vim plugin anyway
both
"ed is a very efficient code editor"
waiting for an ed plugin for VS Code
!d typing.Callable
typing.Callable```
Deprecated alias to [`collections.abc.Callable`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "collections.abc.Callable").
`Callable[[int], str]` signifies a function that takes a single parameter of type [`int`](https://docs.python.org/3/library/functions.html#int "int") and returns a [`str`](https://docs.python.org/3/library/stdtypes.html#str "str").
The subscription syntax must always be used with exactly two values: the argument list and the return type. The argument list must be a list of types, a [`ParamSpec`](https://docs.python.org/3/library/typing.html#typing.ParamSpec "typing.ParamSpec"), [`Concatenate`](https://docs.python.org/3/library/typing.html#typing.Concatenate "typing.Concatenate"), or an ellipsis. The return type must be a single type.
There is no syntax to indicate optional or keyword arguments; such function types are rarely used as callback types. `Callable[..., ReturnType]` (literal ellipsis) can be used to type hint a callable taking any number of arguments and returning `ReturnType`. A plain [`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable "typing.Callable") is equivalent to `Callable[..., Any]`, and in turn to [`collections.abc.Callable`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "collections.abc.Callable").
this
since 3.11 there is also improved support for args/kwargs annotations
!d typing.TypeVarTuple
class typing.TypeVarTuple(name)```
Type variable tuple. A specialized form of [`type variable`](https://docs.python.org/3/library/typing.html#typing.TypeVar "typing.TypeVar") that enables *variadic* generics.
Usage:
```py
T = TypeVar("T")
Ts = TypeVarTuple("Ts")
def move_first_element_to_last(tup: tuple[T, *Ts]) -> tuple[*Ts, T]:
return (*tup[1:], tup[0])
``` A normal type variable enables parameterization with a single type. A type variable tuple, in contrast, allows parameterization with an *arbitrary* number of types by acting like an *arbitrary* number of type variables wrapped in a tuple. For example:
you can specify covariance
for typevars
this is valid:
def example(f: Callable[[int], None]):
f(True)
fundamentally, if the function "accepts" int, it also accepts all derived classes
including bool
the issue is when you want to cast Callable[[bool], None] to Callable[[int], None]
def action(self, *, name: str = "", title: str = "", inputs: Sequence[Input] = tuple()):
"""Decorator to add an action."""
def decorator(handler: ActionHandler):
return self.add(
handler=handler,
name=name,
title=title,
inputs=inputs,
)
return decorator
HandlerInput = MutableMapping[str, Any]
ActionHandler = Callable[[HandlerInput], Awaitable[Any]]
just before TypeVarTuple
3.10
because no need to extend syntax
try-import
though
no
that breaks
there is typing_extensions
but that's a dependency
(and doesn't give the new syntax, obviously)
__future__-annotations is postponed evaluation
!stream 710569497081151590
โ @visual ruin can now stream until <t:1687894788:f>.
!stream 710569497081151590
โ @visual ruin can now stream until <t:1687895368:f>.
what are u doing gofek
profile shows relative numbers
(percentage)
moving that towards balance might be an option
@uncut meteor contravariant is usual for function parameters
U -> V is covariant over V and contravariant over U
!d typing.NewType
class typing.NewType(name, tp)```
Helper class to create low-overhead [distinct types](https://docs.python.org/3/library/typing.html#distinct).
A `NewType` is considered a distinct type by a typechecker. At runtime, however, calling a `NewType` returns its argument unchanged.
Usage:
```py
UserId = NewType('UserId', int) # Declare the NewType "UserId"
first_user = UserId(1) # "UserId" returns the argument unchanged at runtime
I almost totally don't understand what the problem is
too complex for me
@visual ruin did you try with contravariant?
I might've missed
okay
ive tried both, but with any TypeVar pyright doesnt recognize and substitutes it as "Unknown"
I can't even spell words
(that was supposed to be "don't")
so, this is somewhat important
you can't generically upcast the thing from "it takes a specific" to "it takes any model"
so, yes, there needs to be a type guard of some sort
and
you'd actually not store it as callable that takes models
you'd generate a request handler or something similar
that takes the request in its most generic, not yet parsed form
and does whatever it wants to
and the decorator is just a way to generate that
from typing import Callable, TypeVar
class Base: ...
B = TypeVar("B", bound=Base, covariant=True)
class Sub(Base): ...
def wrap(name: str) -> Callable[[Callable[[B], None]], None]:
def inner(f: Callable[[B], None]) -> None:
...
return inner
@wrap(name="Hello")
def test(x: Sub) -> None:
print("A")
with all that encapsulated
ellipsis works in tuples
this looks wrong
like
it still thinks it's (function)
but it understand it's likely to be None
I'm trying to understand what covariant/contravariant would do there and I can't
no brain today
covariant means that subclasses of types are compatible with parent classes, e.g. Dog can be assigned to Animal
mb
wrap and wrap(name) are covariant over B the way B is defined there, I think
def okay(f: Callable[[Callable[[bool], None]], None]) -> Callable[[Callable[[int], None]], None]:
return f
def wrong(f: Callable[[Callable[[int], None]], None]) -> Callable[[Callable[[bool], None]], None]:
return f
if you have variadic arguments and are pulling types out of annotations, might as well just give up on typing
(on typing for the decorator)
doesn't FastAPI just "take whatever"?
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
literally anything
and FastAPI.get returns Callable[[DecoratedCallable], DecoratedCallable]
ughh, also about auto-generated types
I think I have some Rust logs saved
because of rust-analyzer dumping all the types it can't fit in the output into logs
and by "not being able to show the type because it's too long", you can imagine what happens
!d typing.Protocol
class typing.Protocol(Generic)```
Base class for protocol classes.
Protocol classes are defined like this:
```py
class Proto(Protocol):
def meth(self) -> int:
...
``` Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing), for example...
!d list
class list([iterable])```
Lists may be constructed in several ways:
โข Using a pair of square brackets to denote the empty list: `[]`
โข Using square brackets, separating items with commas: `[a]`, `[a, b, c]`
โข Using a list comprehension: `[x for x in iterable]`
โข Using the type constructor: `list()` or `list(iterable)`...
so
the longest type is 1216, but that might've been on purpose
I hope
Pyright has some issues, yes
at least tuple covariance/contravariance isn't broken now
As in 1216 characters in the name?
longest that's not on purpose was 669
<<<Ctx as rcore::Context<'a>>::Fallible as func::MonadFailAny<'a>>::W<rcore::resolution::ResolutionError<<Ctx as rcore::Context<'a>>::LookupError, rstd::collections::avl::bounds::BoundError<A, <<A as rcore::Mentionable<'a, Ctx>>::Fctr as rcore::Factory<'a, Ctx>>::ParseError>>> as func::WeakFunctor<'_>>::F<<<<Ctx as rcore::Context<'a>>::Fallible as func::MonadFailAny<'a>>::W<rcore::resolution::ResolutionError<<Ctx as rcore::Context<'a>>::LookupError, rstd::collections::avl::bounds::BoundError<A, <<A as rcore::Mentionable<'a, Ctx>>::Fctr as rcore::Factory<'a, Ctx>>::ParseError>>> as func::WeakFunctor<'_>>::F<rstd::collections::avl::bounds::BoundTree<'a, Ctx, A>>>
dumb names
just get rid of Pyright
Alternative?
still the best language server I know
wouldn't switch to PyCharm's
idk what VS proper uses
That's.... a good question
Would assume something based off their Pyright/Pylance stuff
the second one is the VS's own thing
if python and typing were to mix, would it be pyping or tython?
@lunar haven Whatcha workin' on?
@strong linden What's your question?
if it's either something that takes int or something that takes str, then it's not something that takes int|str
that's why typevar restriction
but typevar isn't powerful enough, because variadic
at Py 3.8 you're just stuck at Callable[...,]
why it gives 0 AA 1 BB 2 CC as a result ? Why paramater " i " takes the index number of the tuple and X gets the content of it ?
!d enumerate
enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](https://docs.python.org/3/glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](https://docs.python.org/3/library/functions.html#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
``` Equivalent to...
i being the index is the purpose of enumerate
!e
print(list(enumerate(['A', 'B', 'C'])))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
[(0, 'A'), (1, 'B'), (2, 'C')]
damn leetcode makes me feel like i know nothing
ty alisa
๐
yes, check the like-dislike ratio
whats it so bad lol
the actual challenge is to solve it in something like C++
i'll be right back if Mr. Hemlock asks, not going deafened because my stream will drop again
where tolower is defined for characters not strings
or C
in C it's
if in range, then set bit
I don't want to C++
sounds scary, tbh
French Revolution, Kotlin version
it all aligns
@rugged root in 3.11, I think, yes you can
not fully in 3.8
(args/kwargs)
!pep 695
@lunar haven If you're leaving your computer, just hop off stream
wth is with that memory usage
Ruby do be Ruby
I tried solving in Kotlin
it failed with lowercase not defined
I gave up
yay Java
(and that was 1000th)
how many languages do u know
Java isn't one of them
idk what really qualifies as "know"
I'm excluding Java because I've "reviewed" way more Java code than I've written myself
how many languages have you **dabbled
in
add reaction>search>whatevr
there's also +:emoji:
put two such letters after each other
this
becomes this
๐บ ๐ฆ
๐บ๐ฆ
it's for flags and other combinations
i jus type f
I had a script for converting alphanumeric strings to regional indicator emoji sequence
\๐ซ
same one but escaped
it's also very varied by font/system/etc., I think
idk how accurate that list is now
#voice-chat-text-0 message
I might've forgotten some of them since then, who knows ยฏ_(ใ)_/ยฏ
and me writing one Go script totally doesn't mean I know Go
!d typing.TypedDict
class typing.TypedDict(dict)```
Special construct to add type hints to a dictionary. At runtime it is a plain [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict").
`TypedDict` declares a dictionary type that expects all of its instances to have a certain set of keys, where each key is associated with a value of a consistent type. This expectation is not checked at runtime but is only enforced by type checkers. Usage...
class Ham:
def __init__(self, **kwargs):
for key, item in kwargs.items():
if isinstance(item, int) or isinstance(item, float) or isinstance(item, str):
self.__dict__[key] = item
Again, was just an idea
dayum
amend commits have somewhat limited applicability
thanks for the help and ideas, i'll be heading out for now. i will use the namedtuple solution + document the allowed types as you have suggested until i can think of a better solution
would be more helpful if git actually helped show those limitations
final piece of the puzzle then is to implement validation based on the annotations but that shouldnt be too hard as i've done it before in a yaml config loader
you can't amend a pushed commit, for obvious reasons
but there isn't much that prevents you from doing so
(locally)
like
until you try to push, it looks just fine
what part?
line length
or ) if root else []?
Do those before the return
black dislikes mixed alignment, a lot
I see lots of things happening in a return and my brain just goes nope
one way isto replace ternary with two separate returns
* is to
[*self.inorderTraversal(root.left), root.val, *self.inorderTraversal(root.right)]
or make self.inorderTraversal a standalone function with a shorter name
not lambda
just a normal function outside the class
Hello kids
but this creates more temporary lists
whatsup gofek
wsg
sorry can't speak due to rules
hey guys is there a static way to make my program in python user friendly and be able to install it in other people's pc without confusion
what dependencies do you have?
I mean the way the ordinary program we install
It's a program to isolate voice and music from a song
does it use something like tensorflow/pytorch?
dependencies may need extra configuration to be installed
hmmm I guess It's gonna be complex
Python isn't exactly really good for packaging into a desktop app
there are tools like pyinstaller and py2exe, but they're very unreliable
hmmm
those two are difficult because of CUDA
language/computation model/etc. that nvidia graphics card provide
gofek is acting like a announcer
* cards
I guess I have much to learn in this holiday
do I need to learn algorithms to be good in cybersecurity
or it's just bash and python scripting I need
depends on what type of cybersecurity
it's usually more important to know properties of algorithms other people implemented rather than writing your own
(when doing security)
not really
not yet, at least
literally pfp from an anime right now
profile picture
because just abbreviating by first letters doesn't work well
I tried to get 50 msgs to participate in voice chats using duplicated msgs
instead I got ban from voice chat for 14 more days
strict rules๐๐คฆโโ๏ธ
that's why I have only one branch
I have only two projects with tags
one of them is a library, another is a mod
versions for the first one actually matter
versions for the second one are just marketing
Eid is tomorrow
EID MUBARRAK guys
on the mod we used to have a separate branch for development, keeping main at whatever is currently released
but now we directly commit to main
test everything before you commit
I try to have commits as little as possible
"as little as possible" being that code works after the commit
if a change requires rewriting everything, that everything will be in one commit
tests
run unit tests on each code change
I appologize for interruption but are you guys working in a github project together
not together
did you make it open source @lunar haven ??
at my second-to-most-committed-to project I have 312 commits so far
awesome
I sometimes put branches for things that might be usable later
since 10th of March
git branch -b ๐
branch name example
(named by the feature name)
okay
how long have you been in this career guys
that's an issue
same crash
0 days
haven't really written any code for money yet
instructor in Git and GitHub course in coursera said same
I'd rather not mess with commit history
there are also reasons why I must never drop commits from history
specifically:
I reference versions by commits
whoa
I just saw, like, 10 people drop from "online" status
some outage seems to be happening
if I have something that tries to get that specific commit but that commit doesn't exist, problems start to appear
@wind raptor if it was rust, I would just wrap values in Reverse to differentiate between minheap and maxheap
insertion is O(1) on average, allegedly
(in binary heaps)
quite a long time ago
two years after AVL
@scarlet halo are you using dictionaries as keys in a dictionary?
hashable+immutable+equalable
first usually implies second and third
@somber heath tuples are conditionally hashable, yes
!e
print(hash((1,2,3)))
print(hash((1,2,[3])))
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | 529344067295497451
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 2, in <module>
004 | print(hash((1,2,[3])))
005 | ^^^^^^^^^^^^^^^
006 | TypeError: unhashable type: 'list'
Traceback (most recent call last):
File "C:\Users\elise\Documents\Python\mModInstaller\Run.py", line 14, in <module>
search("entityculling")
File "C:\Users\elise\Documents\Python\mModInstaller\Run.py", line 8, in search
o = x[i]
~^^^
TypeError: unhashable type: 'dict'
import requests as req
def search(term="",page=1,amount=20):
x = req.get(f"https://api.modrinth.com/v2/search?limit={amount}&offset={(amount*page) - amount}&query={term}")
x = x.json()
for i in x["hits"]:
o = x[i]
y = o["slug"] + " - " + o["author"]
print('-' * len(y))
print(y)
print('-' * len(y))
for o in x["hits"]:
...
likely
though
maybe enumerate?
ah
or range+len
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
JIF here, too. It smells and I dislike it.
Black Friday, but with baguettes.
Also, when you said Navi, I thought you meant Na'vi.
it's very practical for stoves
It's practical for stoves and I don't like it and it smells.
damn calm down boys
what do you guys think of the new apple VR
@stark blade Interesting idea, will help put AR into the forefront
But currently it's a pair of ski goggles
Really fancy ski goggles
lmaoo it rlly does look like fancy ski goggles
Not something I would wear out and about
yeaa. + battery life isnt so great
but i feel like it could open a bunch of new possibilities
Eh, that's early gen teething pains
i wonder if price will go down
Would hope so
ill prob get it price goes down
right now i dont think its worth the price of a gaming laptop
that was funny๐คฃ
โค๏ธ
what is the best monitor setup for coding?
Personal choice, two landscape monitors, one portrait
What if Google turns evil?
Turns?
Oh I don't have that setup currently. Shuffled around my office at work and I'm just down to the two landscape.
Oh, I know.
antidisestablishmentarianism
ahh ok
what do you think of going full vertical?
The problem wasn't Python.
For all of them? Or just the one. The one portrait is great for your editor or documentation
A Venezuelan man confessed to killing Dutch cop Ferry Bakx after the officer caught him and others in the act of a robbery on Bonaire in August last year. The confession was made on the first day of a three-day trial against six Venezuelans and one man from Bonaire for Bakx's murder, RTL Nieuws reports.
โ
!charinfo โ
\u268d : DIGRAM FOR LESSER YIN - โ
yooo
I'm still confused as to what that is
looks like a ๐ neutral face
That is quite nice
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Makes sense
rust is a lot faster
Nothing sad about that
probably yeah
Right tool, right job and all that
yk i wrote my first rust code
idk if it's unoptimised or crap
im really happy that i tackled the crates crap
Very cool
but yk what i might still use a bit of python for some lightweight reinforcement learning and weights tuning
since it's easier to write and change and speed doesn't matter too much for gene editing
hi guys again
Yo
Trying to get a handle on TypeScript
ok
Doing my usual language hopping
Did you delete them and/or were they sent in #bot-commands?

some of them are in bot commands i think
That's why. Those aren't counted
?
Oh you were talking about HTML/CSS and Python
well am learning for 3-4 days now
Thought that meant you were messing with either the Flask or Django framework
Oh cool cool
just bored browsing through servers im in with vc
Oh cool cool
wbu
whos the owner of this server
Well you're more than welcome here. Messing around with TypeScript. Trying to make a wrapper for https://spacetraders.io/
And yeah, Directors are owners
Currently it's Lemon, Mina, and Zig
ok
All really nice folks
thats nice
anyways cya
Later
yeah im out too i dont rlly like typing only talkingg
Fair enough
been having some python installation issues on my pi and im ready to explode
if anyone knows why aiohttp doesnt want to install that would be extremely helpful hahaha i can send the error log for anyone curious
Yeah toss the error, I'll look in just a moment
i love you
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting aiohttp==3.8.1
Using cached aiohttp-3.8.1.tar.gz (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
ร Preparing metadata (pyproject.toml) did not run successfully.
โ exit code: 1
โฐโ> [74 lines of output]
*********************
* Accelerated build *
*********************
running dist_info
creating /tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info
writing /tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/dependency_links.txt
writing requirements to /tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/requires.txt
writing top-level names to /tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/*.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE.txt'
writing manifest file '/tmp/pip-modern-metadata-pduyygv8/aiohttp.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-pduyygv8/aiohttp-3.8.1.dist-info'
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/tmp/pip-build-env-wufwez7f/normal/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 28, in <module>
from .macosx_libfile import calculate_macosx_platform_tag
File "/tmp/pip-build-env-wufwez7f/normal/lib/python3.10/site-packages/wheel/macosx_libfile.py", line 43, in <module>
import ctypes
File "/usr/local/lib/python3.10/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
ร Encountered error while generating package metadata.
โฐโ> See above for output.
sorry had to grab pieces of it
using 3.10.7 on pi, same error cam on 3.11.4
l-inux
Hmmmmmmmmmm
raspbian
What's the install command?
joining voip hang on
@mild quartz why silent?
they just want you to say hi
correct. say hello to all
yeah its in the requirements.txt
@thorn wharf r u hearing us?
really? how?
python -m pip install -U wheel setuptools
?
Sorry, that was to 10038
^ how to listen across channels
My b
???
It's why we have two ears. One for each channel!
If you are lucky enough.
pity i have not even one..

!e
ham = "Python is not good"
pork = ham[:9] + ham[13:]
print(pork)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
Python is good
I'm not able to speak in vc, but I'm from Canada
Just trying to figure out Python to help out with Data Engineering
Yeah, I think Microsoft's Fabric will be my go to for data solutions. But I feel that Python will be necessary for many things, just not sure what yet.
Stuck in this "learning the basics and can't apply it to the real world" scenario.
!e
months = ['Jan', 'March', 'April', 'June']
print(months)
months = months[:1] + ['Feb'] + months[1:]
print(months)
months = months[:-1] + ['May']
print(months)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['Jan', 'March', 'April', 'June']
002 | ['Jan', 'Feb', 'March', 'April', 'June']
003 | ['Jan', 'Feb', 'March', 'April', 'May']
Hope it's actually useful
[:1] doesn't include 1 position? I would expect the first 2 months to be Jan, March still.
In 2.
So [:n+1] is a way to make the full range?
[:] will do that
Same result?
Obv yours is clean
Ah, makes sense thanks!
I need a few more sessions on this server before I can apply to speak
Anyone into Data Engineering?
Oh definitely. I would feel too dangerous handling a companies data at this point.
Eh
So long as you're not doing stuff in prod
Back in a moment, getting into the van for deliveries
I think I would screw it up during integration. I guess their old system would always be intact, so nothing should really be at risk. But yeah, being thorough with testing is gonna prevent terrible things happening in prod


