#voice-chat-text-0
1 messages · Page 417 of 1
@severe scroll👋
What I was also thinking of
It's simpler, but does raise the issue of readability that I mentioned. Whilst StatePreparation in the one before this is kind of redundant, it introduces a common interface between exact and approximate whilst keeping the two separate.
I actually like these types of challenges.
@whole bear👋
Heloo
Hey @somber heath
Automated cigarette butt recycling into teddy bears :3
Laying here feeling the battle between tiredness and caffeine ... and caffeine is winning -.-
Fuck it, I'm coming back on
Hiya.
"Just one more hug! I'm jonesing here, c'mon!"
jfc
What's next, Plutonium jumprope?
Yes, sorry. You're right.
They could put it into roads.
AF, if you get a chance from work, I'd appreciate your insight on this one.
He means recycle.
...I guess...
No, I was saying this to Opal that you didn't mean cigarette butts literally.
Like taking cigarette butts and jamming them in. The recycle part was implicitly implied.
Yes. If it can be done in a non-toxic manner, why not.
I would prefer to not have them be created in the first place.
And I would prefer education and healthcare to be free.
Not the world we live in.
Nope.
Harsh reality is rather pandemic.
Based
:L
There's alot of stuff we want, which sound nice, but don't make sense. Like we say free education, free healthcare, but someone has to pay for making the medicine, the utilities of hospitals, the paycheck of doctors, all year round, for millions of people. That is expensive.
They take taxes sure, but tons of stuff are paid out from that pool, so lots of stuff we like are just not feasible. So we remain in the harsh reality.
@whole harness👋
yo
Regardless, my point is that if you can recyle those material in a safe manner, then it's a great source for recycling. Tons of people smoke, and if you incentivise them to recycle, you'd also reduce the amount of litter on the street by a significant amount.
why i cant stream in the chanel
and it can be used to help fund homeless people or low income people with collection/recycling intiatives
ah i need to be here for 3 days
Well, I don't feel like getting into the specifics, but there are ways we could fund that stuff in America, at least. Feasible but not popular due to our Oligarchal leaders.
Anyways, I don't want to let this turn political, so I'm gonna be a good ace and go back to working silently.
:L
Yes, I don't want to make you uncomfortable or anything. What you said is possible, but I suppose a discussion for a different time. I am too tired to go over it anyways
"American* politics" - Python Discord Server
lol
Nobody was speaking.
Used to be able to.
On mobile.
I did it once and people could hear me giggling at something.
There was some degree of astonishment, because they, on Desktop/web clients, couldn't.
Yeees. You could.
I think it's still valid at the Discord protocol level, just not at the client software level anymore.
another copyright strike but this shit is worth it, have a nice Friday!!!
R3dX
https://soundcloud.com/r3dx
https://soundcloud.com/r3dx
https://soundcloud.com/r3dx
© Any copyright issues, please get in touch with me.
https://www.instagram.com/makusabrina/
in Woking, UK
Provided to YouTube by The Orchard Enterprises
Swing Low, Sweet Chariot · Reggae Beat
Sweat Reggae
℗ 2010 Meta/ Countdown
Released on: 2010-12-01
Auto-generated by YouTube.
Hi
Internet.
It's you dude, it's you!
I've not.
Yes
Am I detecting a theme?
@somber heath opedipus?
Oedipus?
BBC
:L
Keeping it classy.
I think he was on BBC
It's from cooking video or show
Ainsley blends together the ingredients for this famous marinade and is overjoyed at the lip smacking prospect of his favourite jerk chicken.
For more BBC Good Food videos visit our channel: http://www.youtube.com/bbcgoodfood
For recipes on the go, download our mobile app for iOS, Android, and Windows 10: http://bbcgoodfood.app.link/yjd0xiERX...
BBC on BBC
Have you seen the video of Robin Williams and Martha Stewart?
Black British Cook on British Broadcasting Corporation
I have good intention
Alisa waiting for one of us to slip
Catholics against the printing press
a very
sequence of images
show me the laser eyes
#code-of-conduct has answers to that
"yes, it is censorship, and we have no problem enforcing it"
NK, Russia, USA very famously have done that
UAE too?
Depends on the person and it's agenda
America has more interest in doing such thing as it has both resource and power to do so but it has key ingredient intention and little to no resistance
Unlikely
familiar with Khashoggi?
He ain't from UAE
what a confusing library, why did I decide to rewrite it again
I forgot just how many separate parts are involved even when for simple stuff
it's for distributed data structures
I'm sure you'll do it
yeah, my memory plays tricks on me sometimes, sorry
I don't think I had ever seen AF code. Interesting experience.
@astral coralLet me DM you?
Not now.
I'll stop
All good?
gradually remembering why the code is so complicated
what I'm currently rewriting is the logic of parsing an object
(from bytes)
Haven't done that before, but from watching salt explain it, I know it can be tricky depending on os.
"are you Norepinephrine, cause you're arousing ... my hypothalamus" .... @rugged root
and there are two distinct categories of them:
those which don't depend on how much data is left,
those that can be extended
wait until when Hemlock is online, then try telling him that joke
He is currently either asleep, or on the way to work. He won't see the ping.
Doubt it.
AF gave a good advice. Just save it for later.
I was attempting to be discrete.
"idiosyncrasies"?
I somehow didn't know how to spell it, despite having heard it a lot of times
idiosyncratic being the adjective
last meme -
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!text
I'm trying to have as much as possible on stack
but there's a lot of dynamicity, so that goes to go on the heap
dyn there means to put a pointer to a vtable near the pointer
Zig is closer to being that than Rust
Rust is a more sane implementation of C++
mostly
there isn't much extraordinary about F#
just a .NET ML
but
there are some language extensions
I found it remarkable that it's both FP and has access to the entire .NET eco-system
e.g. those which raise its type system expressiveness almost to the level of Haskell
with partial implementation of type classes
to me, F# would've been a prime candidate for gamedev, but I've never quite seen it shine in that area, I had to rummage through Github to find graphics-related repos with F#
I've been programming in Python for over 7 years by now
only started writing Rust properly in 2023
before that, Pascal, Java, C
I switched to Rust from Haskell
also Lua
That's absolute gold
So good
thank you :3
you're not the first to like that one but I'm really NOT a witty person
once ina blue moon :L
Sometimes that's all it takes
:L
I wonder why GNU Parallel has emerged not in the Python eco-system but in the Perl eco-system.
I think Python has what it needs to build something like that.
@potent nacelle check channel "voice verification"
2002
Python still being somewhat obscure
despite having existed for, like, 11 years?
Existed yes but not thrived
ah, good point
"some weird European thing"
-- bcantrill
3.0 didn't come out until 2008, and 2.7 not until 2010
eugh
I'm having to use PhantomData again
Spooky
Strange women lying in ponds distributing programming languages is no basis for a system of computing…
"wdym a ghost?
we can't see anything"
I expect it would be overstimulating.
I'm not saying no.
I was just musing on the importance of taking care of the sewerage infrastructure.
@astral coralYes.
I thought it was closer to something like 8 not 4
@astral coral I know. We recycle it and fill teddybears with it.
@somber heath ¬¬
"in America, only wealthy people are allowed to bribe the politicians"
If population is problem, so how come China is much cleaner?
lobbying
why is there a NaN
where does it even come from
does it show something different?
A/B testing moment
Oh, king eh? Very nice. And how’d you get that, eh? By exploiting the workers. By hanging on to outdated imperialist dogma which perpetuates the economic and social differences in our society. If there’s ever gonna be any progress…
(temporary files are the answer if someone wants to skip to it)
whole-file writing from two processes causes true data race, should be treated like UB
can't you design a priority system of some kind?
none of the two processes end up with the state they wanted
Sorry, UB?
undefined behaviour
Ah right right
{"key": "value"}ome other value"}
if you just write "who gets to write first" is somewhat irrelevant
you're guaranteed to eventually end up with data loss
even if writes succeed
or a temporary variable which has a accuracy value that would update the value but it would be mainly read than write type deal?
do you have IP record?
IP -> DNS
roundcube, right?
(irrelevant but just seems to be familiar interface)
@tacit crane you also need from IP to domain
not only direct
you need a reverse
I'll give you a spoiler: DKIM is unlikely to be enough
copying over text
Neurons are amazing little microbes capable of learning and making decisions. Modern AI tries to take inspiration from living neurons, but why settle for the synthetic version? By growing human neurons directly connected to a computer it's possible to make a living AI of sorts capable of even complex tasks like flying a plane in a simulation.
...
Researchers are using electrical signals from rat brain cells to power small robots.
Find out more about the experiment at https://www.newscientist.com/article/mg19926696-100-rise-of-the-rat-brained-robots/
Azathoth is a deity in the Cthulhu Mythos and Dream Cycle stories of writer H. P. Lovecraft and other authors. He is the supreme deity of the Cthulhu Mythos and the ruler of the Outer Gods, and may also be seen as a symbol for primordial chaos, therefore being the most powerful entity in the entirety of the Cthulhu Mythos.
Azathoth is referred t...
@rugged root Steve
If only
@gentle flint ☝️
You look slightly like H.P. Lovecraft
At least with that particular picture
Mainly the expression of disapproval
!stream 1157723305265078272 1h
✅ @astral coral can now stream until <t:1740589112:f>.
hi there👋
hey
@astral coral I don't have that much money to lose
@vocal basin I bet you'd be a billionaire by now :L
abillionaire -- someone who doesn't have a billion
:L
stacked diffs ✨
I was about to start a rather large change, maybe fate stopped it.
Yeah, it was like 10 commits.
I was about to start working on the approximate one.
@rugged root whoops
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Why does it look like this fish has a big ass mitochondria on its head?
It looks like it doesn't have a brain. I can relate.
'lifetime
generic argument
Haskell
ML in general
I didn't come up with a better name
something that describes how objects connect together
"here, look at a more useless part"
(func stuff I won't be carrying over to this version)
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
@midnight agate
you were asking about race conditions.
i just did a quick search in the debugging books I have, here they are, ranked by occurences of this term.
I guess the one by Holtmann, Keding, Wloka talks a lot about it, with the one by Spinellis coming in 2nd.
Click here to see this code in our pastebin.
Seaside, an acronym that stands for “Squeak Enterprise Aubergines Server with Integrated Development Environment,” is computer software, a web framework to develop web applications in the programming language Smalltalk. It is distributed as free and open-source software under an MIT License.
Seaside provides a component architecture in which web...
easi ide
same VM
quea sea
it kinda builds upon erlang
did that end?
Ah that's right
bash
also
algol
algol is where it comes from I think
that one's not publicly avaialable
(if I'm not confusing it with something else)
@rugged root
most of content is on YouTube or whatever
in stream recordings
unofficial documentation of the jai programming language from Thekla, Inc. - pixeldroid/jailang
This site attempts to form a searchable language reference out of the hours and hours of video information presented by Jonathan Blow on his youtube channel
duckduckgo has some dealings with microsoft
so, like, there is influence from the latter but not as obnoxious as regular bing
Dude I miss playing these... https://en.wikipedia.org/wiki/Infocom
Infocom was an American software company based in Cambridge, Massachusetts, that produced numerous works of interactive fiction. They also produced a business application, a relational database called Cornerstone.
Infocom was founded on June 22, 1979, by staff and students of Massachusetts Institute of Technology, and lasted as an independent co...
he doesn't look nearly disapproving enough
"breathing is an anti-pattern"
You Are Jeff Bezos is a satirical text adventure game, developed and released in 2018 by indie developer and writer Kris Lorischild, then known as Kris Ligman. The game's premise involves the player waking up one morning as Amazon founder Jeff Bezos, and being tasked with spending his entire US$156 billion fortune.
seems like in 2024 will have to do this at times
(as _)
no longer automatically infers at times
someone suggested weed lol
Have petitions ever done anything?
@unique wyvern Annoyed people
ALL THE COFFEE
therefore it can be coerced into any other type
Just vibrate your way to victory
I wouldn't expect it to
Heroin
It's worth a shot
fix'd
heroiné
anything less than LSD is just a waste
Nothing like tripping balls while doing an exam
Leaving a what?
Yes
First rule of cat club: there are no rules other than what the cat tells you
I love the url name
Sort of
Just the regular ol' text adventure like zork
Although more flexible and you can do other crazy nonsense
War and Peace?
Ooo ooo oh oh, pick me!
I don't!
Result[Some, Err]
there's iex for exceptions
monad composition is insanity
that's impossible
i am a black hole
Truth
Wow there's still quite a few engines/frameworks/whatever you call them for making text adventure games
Huh, yeah even a full on DSL for one
Inform is a natural-language-based programming language for writers of interactive fiction.
Granted the last push to main on that one was 2022
Ah that's when it was open sourced, nevermind
I guess it really shouldn't be any surprise that most of these are dead or not overly maintained
Other than Twine, it seems
need a new project idea 🥱
getting bored
What kind of project
Buttbuttin
@midnight agate found an even better reference.
Advanced Python Programming by Quan Nguyen
it has an entire chapter on Race Conditions in Python.
https://www.amazon.com/dp/1801814015/
anything i can do that is fun really
last project i made some aync tools for django
but it seems i'm running out of tools
@molten pewter I will fight you. Valhalla is stellar
well..
there are things to be made, i'm just not sure if it's worth it or not
need more info on that
Anything is worth it if you learn from it
Or you have fun doing it
https://tenor.com/7VeS.gif @molten pewter
at this point it's mostly copy paste
tho the tests are fun
Origins.
Ye
i should put time and finish god of war 4
I also didn't like origins.
Syndicate was really nice. The train, the overall progression, the map. The grapple especially.
It's separated far enough from that where it just doesn't get in the way
But none of them will ever live up to Ezio's trilogy. Ezio was the best one, and had the best gameplay.
Wasn't Davinci our friend?
He gives you the kite, fixes the hidden blade to not cut off your finger.
@unique wyvern In an MST3K way, yeah
He was your R&D in brotherhood.
They stream it on Youtube as well
@molten pewter It was relevant because of the b-movie thing you mentioned
Yeah
Fair
I will not hear a bad word about "Manos: Hands of Fate"
Riff traks is separate
Technically
Some of the older ones really don't hold up
And same with the newer ones
There's kind of a butter zone of goodness
Joel's sense of humor is just very esoteric
Oh oh oh oh, we actually did that one time
For the movie "Saved"
Halp, my foot is asleep
The tingles
You know what
Looking over Twine....
I might actually do my game idea in that
poor kitties
ooh kittys are agile
@vocal basin Can you stop then restart your stream? It's not loading for me for some reason
@quartz beacon Yo
👋
How goes it
soad :)
Niiice
I Would Like Some Feedback
https://durontoshop.com
STill Prototype
dont judge the images
bit o Fosters fix ya up - talk with a wiggy wag @rugged root
@rugged root the artist formally known as prints
@unique wyvern Didn't know I was supposed to write such detailed documentation in the init files.
@unique wyvern It's Movable. I also doubted for a second, thought it's Moveable.
ah, cache not cash
cache rules everything around me, cream get the memory, byte byte code ya'll
¬¬ I NEED to stop
Alpha
@tacit crane https://simpletexting.com/pricing/ That doesn't seem to bad. Problem is that I don't know of any off the top of my head that would be specific for or work best for Bangladesh
Our SMS marketing pricing is flexible and affordable. Learn about our text marketing plans that can fit every business. Try it for free today!
where pandas
ask google
@astral coral You're not my dad, you can't tell me what to do
hint: locals()["variable"] = "stuff" won't help
Wouldn't think so
@vocal basin Hi 👋
I define them at the top, the name in SCREAMING_SNAKE_CASE
I define them right after the imports
where JS dev
auto_guild/__main__.py lines 23 to 34
class InvalidChannelType(Exception):
"""Raised when the channel type is invalid."""
def __init__(self, channel_type):
self.channel_type: str = channel_type
self.message: str = (
"{} is not a valid channel type. Please consult the readme."
)
super().__init__(self.message)
def __str__(self) -> str:
return self.message.format(self.channel_type)```
updating leftpad, obviously
I've got one in one of my projects
The hell is wrong with me, why do I not have the parameter typed
: Any
Nuuuuuu
: Unknown
: parameter
though this would complain
Eh.... the project is out of date anyway... no reason to change it at this point
you know what wouldn't?
channel_type: Never
Never, like Any coerces to anything
if you cannot enter this line, all code is correct
@unique wyvern I am an artist, and memes are my medium
I'm going to challenge myself to speak only in gifs one day
buffer[i++]
my brush VScode, my paint Python, my art Indentation error
That is pretty nice
Wait was it.... ++i that would update the value but give you the value unincremented first?
!e
i = 11
i++ 11
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e
i = 0
print(++i)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0
:L
There's a few out there.
Would likely be out of scope for us, though
What monitor do you use @rugged root ?
@midnight agate 👋
Whatever we had at the office
You don't have personal monitor?
@midnight agate Privately
Mixture
Private is best way to learn
@midnight agate Highly depends on the community, too
There's certainly some out there that'll absolutely roast you
I haven't really messed with my desktop at home in like... years
If I do anything on a computer at home it's on a laptop
I'm mostly playing games on my console
So you are at office now?
If I'm here, then I'm in the office
How?
I mean is it permissible to do so?
I'm IT. So long as I get stuff done and/or immediately go take care of something, they begrudgingly allow it
Okay
I'm very very lucky with my work situation
Of course
What exactly you do?
My proper title is Administrative Support. I'm our runner, so I deliver tax and payroll documents to some of our clients, I do clerical work as needed, I do some minor building maintenance like changing lightbulbs and fixing the fridge from time to time. But primarily, I act as our in-house IT
@unique wyvern in a compiled language that's even easier,
you can use > and it gets optimised to whatever is best
(.len() > 0)
We have an external MSP (IT folks) that handle our network and backend stuff
And field anything I can't cover or fix here
Github Copilot : Let me do it for you
Great!
Been here for almost 10 years
Any plan of establishing your own business?
okay gramps
None whatsoever. Way too much risk. Most businesses fail
I'm content with where I am and what I do
English ig?
woohoo memory leak
Use Typescript
GML, Javascript, C++, Python and C# - Varying degrees ¬¬
I like JavaScript because it gets work done!
@midnight agate
Only in video games. And it's not even one of my favorite modes
:L
yeah true tho
I meant white hat tho :L
I wrote a python book once
like basic programming principles etc etc
never published it tho and wrote it by hand
@fast gyro Chinese la?
I wanna make a true game on The Thing
like social deception, not like the PS2
game*
I tried in game maker
got far
made a 2D world and had it basically ready to write AI and procedural animations
had multiplayer etc set up tho
I got locked outta my google drive tho, lost my phone : _ ;
@fast gyro https://adventofcode.com/
As will the shame
([]+![])[+!![]]+([]+![])[!![]+!![]]+([]+[][[]])[!![]+!![]+!![]+!![]+!![]]+([]+![])[!![]+!![]+!![]]+([]+![])[+!![]]+([]+{})[!![]+!![]+!![]+!![]+!![]+!![]+!![]]+([]+![])[+![]]+([]+![])[!![]+!![]+!![]+!![]]+([]+[][[]])[!![]+!![]+!![]+!![]+!![]]+([]+![])[!![]+!![]+!![]]+([]+!![])[+![]]+([]+![])[!![]+!![]+!![]+!![]]+([]+![])[!![]+!![]]
@fast gyro I'm going to do a bit of what Maroloccio does and ask you to solve a doubly-linked list exercise then
manually
2, 37, 23, 71, 2, 23, 71, 5, 61, 2, 103, 101, 71, 41, 2, 61, 73
@vocal basin
little brain quiz :L
!e
print(ord('\t'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
9
!e
print(ord('\n'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
10
hmm
awww 😦 shes not playing :L
updating
adding
???
updating
downloading
adding
VSC terminal issues
it forgets letters
sryy, I couldnt see the chat
Well played
@twin token https://github.com/nedbat
I think I've seen that sequence before
2, 37, 23, 71, 2, 23, 71, 5, 61, 2, 103, 101, 71, 41, 2, 61, 73
@fast gyro
yeah, I noticed that
trying to figure out the order
nth
ASCII?
okay, yeah, that does make sense
what the numbers are, nth and its a four word message
2, 37, 23, 71, 2. 23, 71. 5, 61, 2, 103, 101. 71, 41, 2, 61, 73
@fast gyro Deepseek is 💩 - Qwen is 👑
I understand how it's formed
Now I understood
@vocal basin May I have stream perms :)
we don't give streaming perms to people with voice mute
!e
from string import ascii_lowercase
candidates = [False, False, *([True] * 200)]
for i in range(len(candidates)):
if candidates[i]:
for j in range(i * 2, len(candidates), i):
candidates[j] = False
mapping = {i: ascii_lowercase[j] for j, i in enumerate(i for i, is_prime in enumerate(candidates) if is_prime) if j < len(ascii_lowercase)}
data = [2, 37, 23, 71, 2, 23, 71, 5, 61, 2, 103, 101, 71, 41, 2, 61, 73]
print("".join(map(mapping.__getitem__, data)))
eugh
agony
missing mapping
and the sieve is wrong, amazing
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 12, in <module>
003 | print("".join(map(mapping.__getitem__, data)))
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | KeyError: 103
!e
import random
compliments = [
"You're doing great!",
"I'm impressed with your work.",
"You have a great attitude.",
"Keep up the amazing work!",
"You're a natural!",
"Your creativity shines through.",
"You're a valuable asset to the team.",
"You're making a real difference.",
"Your hard work is paying off.",
"I'm so lucky to work with you!",
"You're a star!",
"You bring so much positivity.",
"Your dedication is inspiring.",
"You're incredibly talented.",
"You're a joy to be around."
]
print(random.choice(compliments))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
You're making a real difference.
!e
compliments = [
"You're doing great!",
"I'm impressed with your work.",
"You have a great attitude.",
"Keep up the amazing work!",
"You're a natural!",
"Your creativity shines through.",
"You're a valuable asset to the team.",
"You're making a real difference.",
"Your hard work is paying off.",
"I'm so lucky to work with you!",
"You're a star!",
"You bring so much positivity.",
"Your dedication is inspiring.",
"You're incredibly talented.",
"You're a joy to be around."
]
print(random.choice(compliments))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 19, in <module>
003 | print(random.choice(compliments))
004 | ^^^^^^
005 | NameError: name 'random' is not defined. Did you forget to import 'random'?
W
You have to import it
Collussos the f**k outta the code :L
I think I know about the import, I was checking.
.
@fast gyro and @little scarab Sound so similar
off by one?
@unique wyvern you're making a terminal? Do you have a github??
I see - can people contribute? This give me Terry Davis vibes
@fast gyro macOS is ᴜɴɪx-based not Linux-based
it is ᴜɴɪx in a way
a descendant thereof
[97, 47, 73, 61, 43, 73, 41, 3, 11, 61, 67, 2, 61, 11, 83, 61, 47, 43, 17]
x o t r n t m b
2 is A there
!e
from string import ascii_lowercase
candidates = [False, False, *([True] * 200)]
for i in range(len(candidates)):
if candidates[i]:
for j in range(i * 2, len(candidates), i):
candidates[j] = False
mapping = {i: ascii_lowercase[j] for j, i in enumerate(i for i, is_prime in enumerate(candidates) if is_prime) if j < len(ascii_lowercase)}
data = [97, 47, 73, 61, 43, 73, 41, 3, 11, 61, 67, 2, 61, 11, 83, 61, 47, 43, 17]
print("".join(map(mapping.__getitem__, data)))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
yournumbersarewrong
Letter Prime
A 2 J 29 S 71
B 3 K 31 T 73
C 5 L 37 U 79
D 7 M 41 V 83
E 11 N 43 W 89
F 13 O 47 X 97
G 17 P 53 Y 101
H 19 Q 59 Z 103
I 23 R 61
.wa short 25th prime
.wa short 25th letter of english alphabet
Failed to get response.
Failed to get response.
.wa short 24th letter
Failed to get response.
(in any case, it's Y not X)
I have an OpenCL implementation of the sieve somewhere
@rugged root "cope and seethe of Eratosthenes"
ChatGPT is going to suggest you use RC4 and you'll get into patent trouble
@rugged root well good bye ¬¬ jesus :L
@chilly wolf you haven't been on all day : _ :
time to start metaprogramming
SORZ!! I just been sleepy today and I had a dentist appointment a couple hours ago
I want tuple support up to at least 12 items
no, in the library I'm making
currently only supports pairs
@chilly wolf don't worry man 🙂 just recover 🙂
no
standard library implements most traits for this many
some crates implement up to 32
Scala's limit of 22 sounds weirder
I'm trying to remember where I used macros for implementing this stuff for tuples before
!e
code
!e```import math
from turtle import*
def hearta(k):
return 15math.sin(k)**3
def heartb(k):
return 12math.cos(k)-5*
math.cos(2k)-2
math.cos(3k)-
math.cos(4k)
speed(0)
bgcolor("black")
for i in range(6000):
goto(hearta(i)*20,heartb(i)*20)
for j in range(5):
color("red")
goto(0,0)
done()```
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | from turtle import*
004 | File "/snekbin/python/3.12/lib/python3.12/turtle.py", line 101, in <module>
005 | import tkinter as TK
006 | File "/snekbin/python/3.12/lib/python3.12/tkinter/__init__.py", line 38, in <module>
007 | import _tkinter # If this fails your Python may not be configured for Tk
008 | ^^^^^^^^^^^^^^^
009 | ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
okay that code is probably gone
:/
metaprogramming did not work
time to do codegen then
!e
from string import ascii_uppercase
print("'. '".join(ascii_uppercase[:12]))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
A'. 'B'. 'C'. 'D'. 'E'. 'F'. 'G'. 'H'. 'I'. 'J'. 'K'. 'L
how do you tell if you have an even number of admin? you get 2 mod (admin %2 == 0 where % is mod, short for moderator ) ... and that is my obscure joke of the day.
are you making in pygame?
curiosity rover has a 3d textured model available from nasa website
link?
some bullshit i made in blender
penis
!e py print(*range(10, 0, -1))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
10 9 8 7 6 5 4 3 2 1
!e py print(*range(10, 0))
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!d range
class range(stop)``````py
class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int) or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__) special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.
For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.
For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9
password = input("please enter your password: ")
if password == "Joe Bob":
print("That\'s the correct password")
break
if password != "Joe Bob":
print("That's not correct")```
!e ```py
for i in range(5):
print(i)
if i == 3:
break
else:
print('Hello, world.')
print('Bye.')```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | Bye.
!e ```py
for i in range(5):
print(i)
else:
print('Hello, world.')
print('Bye.')```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | Hello, world.
007 | Bye.
while True:
password = input("please enter your password: ")
if password == "Joe Bob":
print("That's the correct password")
break
if password != "Joe Bob":
print("That's not correct")
for i in range(5):
print(i)
if i == 3:
break
else:
print('Hello, world.')
print('Bye.')
for i in range(4):
i - 1
password = input("please enter your password: ")
if password == "Joe Bob":
print("That's the correct password")
break
if password != "Joe Bob":
print("That's not correct")
!e py for _ in range(3): print('Hello, world.')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
@lethal siren 👋
else:
for _ in range(3):
password = input("please enter your password: ")
if password == "Joe Bob":
print("That's the correct password")
break
if password != "Joe Bob":
print("That's not correct")
else:
print("Sorry you can't log in")
please enter your password: jo
That's not correct
please enter your password: jo
That's not correct
please enter your password: jo
That's not correct
Sorry you can't log in
!code
password = input("please enter your password: ")
if password == "Joe Bob":
print("That\'s the correct password")
break
if password != "Joe Bob":
print("That's not correct")
else:
print("Sorry you can't log in")```
def func():
pass```
for _ in range(3):
password = input("please enter your password: ")
if password == "Joe Bob":
print("That\'s the correct password")
break
if password != "Joe Bob":
print("That's not correct")
else:
print("Sorry you can't log in")```
@gentle dagger #media-processing message
use else
I was just messing with that
irrelevant
I am learning and am figuring out how python works
alright
until last night I didn't know the diffrence between == and = and is
I just learned about != today
progress is good
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
- PEP 8 document
- Our PEP 8 song! :notes:
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
zen deez nutz HA! gott'em
From form, let function flow.
From function, let form flow.
If your code is beautiful, it's likely to work well.
If your code works well, it's likely to be beautiful.```
define beautiful
you cannot measure that
Too bad.
yes, too bad
Acoustic cover of Terry Davis' song "Material".
Vocals: Terry Davis
Image: https://ibb.co/ns1CLvP
damn he was such a good poet
Bongo Cat cover A Thousand Years (Christina Perri) with Meow style
Original Song: https://youtu.be/rtOvBOTyX00
Meower: Kirine
IG: @kirine.me
YT: @negakirine
Music Producer: VBK | IG: https://www.instagram.com/thephuongvbk0510/
Music Arranger: DuyNH | FB: https://www.facebook.com/duyduynguyen111
Mix Master DHTM: https://www.facebook.com/profile...
is it possible to get my voice recording device detects and start recording my audio when i execute something on chrome and it uses microphone ? @wicked bison
@astral coral you there zak ?
?
is it possible with python script ?
javascript yeah I assume so, python maybe, I don't really do web dev
it's not web dev
I just need something to check the state of the mic in Chrome and if chrome using the mic then start a recording process using ffmpeg i already tested and if it's not using the mic then stop the recording and loop again if chrome is using the mic again and continues...
Can i do this in python. I would really appreciate your help @astral coral
already tried and it didn't do anything
just wasted 4 hours trying to figure this out
Windows
Download FFmpeg and extract it.
Download SoundVolumeView.
Place both ffmpeg.exe and SoundVolumeView.exe in the same folder as the script.
Run:
python mic_monitor.py
Click here to see this code in our pastebin.
give context
@sleek salmon you sound tired
W
Who tf said "good boy"
@sleek salmon You are being rewarded, they will be punished.
Look at my description.
"If the world is against you, just remember the airplane flies against the wind, not with it."
@whole bear Old jokes
@whole bear No, It just sound nice
That's weird but this guy @astral coral actually help so i won't believe it 🙂
did it work?
got an error try to fix it
whats the error?
¬¬
I think it's because I'm using Windows
okay, i will try
it's because you copied the discord syntax
:L
🙂 congratz
just hol on
kk
hi @astral coral
hey @edgy edge
The mic is not being used right now and it didn't end the recording (i think it's even didn't started)
How do you get them into sections, Like Mode, LastWriteTime, Length Name.
!e
import random
questions = {
"What is the capital of France?": "Paris",
"What is the highest mountain in the world?": "Mount Everest",
"What is the largest ocean in the world?": "Pacific Ocean",
"What is the chemical symbol for water?": "H2O",
"What is the name of Earth's only natural satellite?": "Moon"
}
score = 0
num_questions = len(questions)
for question, answer in questions.items():
try:
user_answer = input(f"{question} ")
except EOFError:
break
if user_answer.lower() == answer.lower():
print("Correct!")
score += 1
else:
print(f"Incorrect. The answer is {answer}.")
print(f"\nYou got {score} out of {num_questions} questions correct.")
print(f"Your score is {(score / num_questions) * 100:.2f}%")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | What is the capital of France?
002 | You got 0 out of 5 questions correct.
003 | Your score is 0.00%
@astral coral i used this ffmpeg command before and it worked great :
ffmpeg -f dshow -i audio="Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)" -f dshow -i audio="Voicemeeter Out B2 (VB-Audio Voicemeeter VAIO)" -filter_complex "[0:a][1:a]amix=inputs=2:duration=longest[a]" -map "[a]" -c:a libmp3lame -b:a 192k output.mp3
so the recording it self i can use it manually but i need to automate it
import subprocess
# Define the FFmpeg command
ffmpeg_command = [
"ffmpeg",
"-f", "dshow", "-i", 'audio=Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)',
"-f", "dshow", "-i", 'audio=Voicemeeter Out B2 (VB-Audio Voicemeeter VAIO)',
"-filter_complex", "[0:a][1:a]amix=inputs=2:duration=longest[a]",
"-map", "[a]",
"-c:a", "libmp3lame",
"-b:a", "192k",
"output.mp3"
]
# Run the command
subprocess.run(ffmpeg_command, shell=True)
my problem is with the if chrome using the mic the run the ffmpeg command and if not anymore stop and loop
i Will try it
but that won't work with chrome?
is that a question or an answer
import subprocess
import psutil
import time
def is_chrome_running():
"""Check if Google Chrome is running."""
for process in psutil.process_iter(['name']):
if process.info['name'] and "chrome" in process.info['name'].lower():
return True
return False
def run_ffmpeg():
"""Run FFmpeg command to capture Voicemeeter audio."""
ffmpeg_command = [
"ffmpeg",
"-f", "dshow", "-i", 'audio=Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)',
"-f", "dshow", "-i", 'audio=Voicemeeter Out B2 (VB-Audio Voicemeeter VAIO)',
"-filter_complex", "[0:a][1:a]amix=inputs=2:duration=longest[a]",
"-map", "[a]",
"-c:a", "libmp3lame",
"-b:a", "192k",
"output.mp3"
]
print("Chrome detected! Running FFmpeg...")
subprocess.run(ffmpeg_command, shell=True)
# Monitor Chrome and trigger FFmpeg when it opens
while True:
if is_chrome_running():
run_ffmpeg()
else:
break # Stop monitoring after FFmpeg starts
time.sleep(2) # Check every 2 seconds
@fast kelp 👋
this will work with Chrome
Thx, i will try this
but it won't work when the mic is active
it runs the command you gave me when you open chrome
I modified the code
i need this to happen when the mic is active then start the command and when it's not then stop the command and that's the thing that i need. I don't need a whole recording of all the calls when i will open chrome. is there is anyway i can do what I'm i looking for?
apparently GPT added a clause when you run Chrome to stop recording ¬¬ I changed the end three lines to make it stop when Chrome closes
okay hold on
🙋♂️ hi
import subprocess
import psutil
import time
import sounddevice as sd
import numpy as np
def is_chrome_running():
"""Check if Google Chrome is running."""
for process in psutil.process_iter(['name']):
if process.info['name'] and "chrome" in process.info['name'].lower():
return True
return False
def is_audio_active(threshold=0.01, duration=1):
"""Check if there is active audio input."""
def callback(indata, frames, time, status):
global audio_level
audio_level = np.linalg.norm(indata) # Measure audio level
audio_level = 0
with sd.InputStream(callback=callback, channels=1, samplerate=44100):
time.sleep(duration) # Listen for 'duration' seconds
return audio_level > threshold
def run_ffmpeg():
"""Run FFmpeg command to capture Voicemeeter audio."""
ffmpeg_command = [
"ffmpeg",
"-f", "dshow", "-i", 'audio=Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)',
"-f", "dshow", "-i", 'audio=Voicemeeter Out B2 (VB-Audio Voicemeeter VAIO)',
"-filter_complex", "[0:a][1:a]amix=inputs=2:duration=longest[a]",
"-map", "[a]",
"-c:a", "libmp3lame",
"-b:a", "192k",
"output.mp3"
]
print("Chrome and active audio detected! Running FFmpeg...")
subprocess.run(ffmpeg_command, shell=True)
# Monitor Chrome and audio input
while True:
if is_chrome_running() and is_audio_active():
run_ffmpeg()
time.sleep(2) # Check every 2 seconds
I really appreciate your effort man ❤️
This should work when audio input and chrome are active at the same time
no problem
FYI I have no idea, I get most but not all, this is GPT so yeeeeeeeeeeeeaaaaaaaahhhhhhhh ....
you see, you can use GPT I shouldn't bc if you understand what programming is and have knowledge about what GPT is typing then it can be good but me i don't know about python and have no programming experience so that's why. I really wanna learn python btw
cool cool
i think this method is using threshold than using mic state, I'm i corrct?
I've been advised not to use GPT to help anymore, so I'm at a dead-end because I have no idea how the audio input works, I've never done sound engineering etc etc
Yeah, I see, I appreciate your effort though
I recommend learning basic programming principles on your own and get some practice if this is the route you wish to take
otherwise, find third party software and create like a macro
yeah, but the problem is i didn't find any third-party that can do this to me so i knew that i should use a script
Voicemeeter + windows sound recorder
unfortunately it didn't work, but thanks though, I'm gonna get some rest and then I will try again tomorrow. Thx man
the automation process needs a script
for my work
just manually do it every time you have a call ¬¬
I'm a customer service agent. Getting a lot of calls so I won't be able to manually record them
ahhh okays
and sometimes i forget a lot
well I recommend learning python programming principles and troubleshoot the previous code
so i wanna like an recording to the client so if i missed something in submission i go back and listen
no, I understand
It's in my plans in this year
It's okay man
this code
press windows key + R
okay
type taskschd.msc
create a basic task
name it whatever
continue till you find "when program starts"
make sure you select "Chrome"
okay
then when it asks you what you want to use
find the directory for your python.exe
and then add that replied script to argument
restart PC
now it should run the bash script you gave me everytime you open chrome
thats the best I can do for you
Thx man. I will try that
I suggest using "google" from here on out
I'll keep searching no matter what no just because of the work, But because it just came into my head. And when it gets harder the more i would love to achieve it 🙂
you too man
orders = Table(
name="orders",
connection=connection,
columns=[
Column(name="id",type=DataType.SERIAL().primary_key().unique().not_null()),
Column(name="user_id",type=DataType.BIGINT().not_null()),
Column(name="status",type=DataType.TEXT().default("pending")),
Column(name="product_name",type=DataType.TEXT().not_null()),
Column(name="product_description",type=DataType.TEXT()),
Column(name="product_image",type=DataType.TEXT()),
Column(name="product_type",type=DataType.TEXT().not_null().default("service")),
Column(name="product_price",type=DataType.DOUBLE_PRECISION().not_null()),
Column(name="discount",type=DataType.DOUBLE_PRECISION().default(0)),
Column(name="payment_method",type=DataType.TEXT()),
Column(name="payment_from",type=DataType.TEXT()),
Column(name="transaction_id",type=DataType.VARCHAR(255)),
Column(name="paid_amount",type=DataType.DOUBLE_PRECISION()),
Column(name="ticket_id",type=DataType.BIGINT()),
Column(name="updated_at",type=DataType.TIMESTAMPTZ()),
Column(name="created_at",type=DataType.TIMESTAMPTZ().default("CURRENT_TIMESTAMP").not_null())
],
cache=True,
cache_key="id",
cache_ttl=300,
cache_maxsize=1000
)```
async def initialize_routes():
# Add all routers here from ./routes folder
for file in os.listdir("./routes"):
if file.endswith(".py"):
module = file[:-3]
if module != "__init__":
module_router = __import__(f"routes.{module}", fromlist=["router"])
app.include_router(module_router.router)```
from fastapi import APIRouter, Request
router = APIRouter()
@router.get("/", response_class=HTMLResponse, dependencies=[Depends(rate_limiter)])
async def home(request: Request):
return RedirectResponse(url=urls.SUPPORT_SERVER)```

