#voice-chat-text-0
1 messages ยท Page 932 of 1
The SO developer survey might interest you: https://insights.stackoverflow.com/survey/2021#section-top-paying-technologies-top-paying-technologies
Although I think it's a bit hard to interpret what the statistics actually mean.
Who sorry?
So you want your character to be able to want to the right?
It's been a while since I used the library. One second...
Erm...
Not sure ๐
Oh right, on Chrome?
Erm, there is probably an example.
IDE?
I don't think so ๐ค
Yeah, I think they stopped supporting 32-bit apps on MacOS High Sierra.
that sounds about right
I may have looked it up ๐
Hello Opal!
I'm here ๐
Ah, client glitch probably.
Try refreshing.
I don't think not believing is really an option for him...
I love programming in Python!
Alright guys, this is boring.
Does the meme generator come up with its own jokes?
That would be impressive
To be fair, even if it didn't work very well, it would still be funny.
Fair enough ๐
I was reading something about a possible route to removing the GIL.
Lukasz is actually a member of this server.
Alright, I gtg ๐
Cya @somber heath @viral compass
later!
I am a heretic
biblically?
depending on who you ask, yes
no good
Part of the experience of being a Latter-day Saint
why I cant use mic ?
Hello
hi
Tell me something about what i don't know about python list()
I mean, tell me what usually people don't know about list()
@molten pewter re the airgap
looked up the required distance between connector with a certain voltage difference per spec
240 volts rms from the socket means 240 * โ2 peak voltage difference
that's 340 volts approximately
which makes the required distance somewhere between 1.25 and 2.5 mm
so ig it'll be fine
@sterile barn Yahoy.
@whole bear Ahoy.
Pardon?
Australian.
Post the error and we'll see what can be said.
speak(f"weather in {city} city is")
TypeError: 'module' object is not callable```
@warm granite ๐
It's inconvenient to talk at my present location at this time.
At some point, you've assigned a module object to speak.
So you might have something that looks like this.
import speak
speak(f"weather in {city} city is")```
Modules aren't usually callable.
If you want.
You probably want a function or class within the given module.
I'm researching. Please hold.
I choose to not speak.
Looking at this.
I skimmed over it.
I saw what I needed to.
azure.cognitiveservices.speech.speech_py_impl.SpeechSynthesizer.speak_text
But I think there's a bunch of other auth stuff.
I expect something like from azure.cognitiveservices.speech.speech_py_impl.SpeechSynthesizer import speak_text
But I don't think that will work either.
All I know is what those docs say. Maybe you can find someone who works with this framework.
They might have a better handle on what you need to be doing.
I am.
Oh good.
import azure.cognitiveservices.speech as speechsdk
# Creates an instance of a speech config with specified subscription key and service region.
# Replace with your own subscription key and service region (e.g., "westus").
speech_key, service_region = "YourSubscriptionKey", "YourServiceRegion"
speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_region)
# Creates a speech synthesizer using the default speaker as audio output.
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config)
# Receives a text from console input.
print("Type some text that you want to speak...")
text = input()
# Synthesizes the received text to speech.
# The synthesized speech is expected to be heard on the speaker with this line executed.
result = speech_synthesizer.speak_text_async(text).get()
# Checks result.
if result.reason == speechsdk.ResultReason.SynthesizingAudioCompleted:
print("Speech synthesized to speaker for text [{}]".format(text))
elif result.reason == speechsdk.ResultReason.Canceled:
cancellation_details = result.cancellation_details
print("Speech synthesis canceled: {}".format(cancellation_details.reason))
if cancellation_details.reason == speechsdk.CancellationReason.Error:
if cancellation_details.error_details:
print("Error details: {}".format(cancellation_details.error_details))
print("Did you update the subscription info?")
# </code>```
Right, so there is auth stuff.
Do you have you subscription key?
If you put it directly in your code, which you shouldn't do, don't share your code with others without removing it.
oh ok
Have it as an environmental variable. For whatever reason, that seems to be the common practice.
!d os.environ
os.environ```
A [mapping](https://docs.python.org/3/glossary.html#term-mapping) object where keys and values are strings that represent the process environment. For example, `environ['HOME']` is the pathname of your home directory (on some platforms), and is equivalent to `getenv("HOME")` in C.
This mapping is captured the first time the [`os`](https://docs.python.org/3/library/os.html#module-os "os: Miscellaneous operating system interfaces.") module is imported, typically during Python startup as part of processing `site.py`. Changes to the environment made after this time are not reflected in `os.environ`, except for changes made by modifying `os.environ` directly.
This mapping may be used to modify the environment as well as query the environment. [`putenv()`](https://docs.python.org/3/library/os.html#os.putenv "os.putenv") will be called automatically when the mapping is modified.
It's not something I've done before, but let's see.
!e py import os print(os.environ)This isn't meant as a full example. I'm just testing something.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
environ({'LANG': 'en_US.UTF-8', 'OMP_NUM_THREADS': '5', 'OPENBLAS_NUM_THREADS': '5', 'MKL_NUM_THREADS': '5', 'VECLIB_MAXIMUM_THREADS': '5', 'NUMEXPR_NUM_THREADS': '5', 'PYTHONPATH': '/snekbox/user_base/lib/python3.10/site-packages', 'PYTHONIOENCODING': 'utf-8:strict', 'LC_CTYPE': 'C.UTF-8'})
It's just testing.
Not intended for your code.
I'm not available for anything in-depth at the moment.
Hey @whole bear!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
So the idea is that you load up your authorisation key thing into your operating system's variables.
If you're on windows, this is where you would "add things to your path" variable.
Talk to the bot people.
They'd know all about what you need to do on various systems with this stuff, specifically.
Yes. Say you have an api auth key that you want to load into your code in the done fashion, which I'm led to believe is as an environmental variable.
I know. You can put it directly into your code.
This is precisely what I suggested you don't do.
Which is to say, don't share secrets publicly.
Talk to the bot people.
They'll know about environmental variables with API keys.
It's not a bot, but it's the same idea.
@whole bear Specifically mention environmental variables.
and os.environ
@whole bear Yeah, just...maybe don't bother with the#discord-bots folk.
Bad idea.
Ok
Ok
Good Evening
Yahoy.
Study other example usages of the API in question.
Oh that is greate idea
I do, on occasion, have them.
Tired of speaking on webex?
Not so pumped to give that speech?
Just plain can't be bothered talking?
Forget it, just use text to speech to do it for you in 10ish minutes! You can speed up your ability to convert written text to AI powered neural network generated speech in minutes. Plus there's support for a whole bucketload of different lang...
I'm busy concentrating on other things. At the present moment, I'm here to socialise.
Assisting with in-depth technological matters is not something I am taking onto my plate right at the moment. ๐
brb
@cunning monolith ๐
lol
I sneezed.
Thought you'd want to know.
That's a lie.
I didn't think that.
Well. Maybe some of you might find the recounting amusing.
I'm a loud sneezer.
@cunning monolith beware that dont use regional languages in voice channels ; fortunately no admin was in here
Huh. I may have invented a colour illusion accidentally.
...except now my vision has stripes in it and I don't know how I feel about it.
happens
Visual discomfort advisory.
Gaze at the center.
Do you see colour?
If so, HAHA, I hacked your brain.
Because there isn't any.
gazing with my wide screen
cursing at opal not finding anything
circles
What didn't I find?
Yep.
Yahoy?
Idling.
Making nauseating pictures.
See above.
It's a greyscale image.
It's bisk.
Are the concentric circles an illusion?
Not quite.
But the colour is.
It's actually an interference pattern I jiggered a little.
Yeah, the circles are kind of there.
Hmm yeah I don't see a colour either. Is my brain broken? 
Are you looking at the center?
It's faint.
Yes.
It is. I'm sorry.
I'm not setting out to create things that are awful.
There's a bit of a weird effect if you move your eyes closer and further from the image. Like bulging and shrinking ๐ค
Interference pattern.
Think waves in a pond.
Interacting with one another.
Right.
I wasn't expecting to invent colour.
But here we are.
The lines.
Yes.,
Yes. I know.
It's awful.
It goes away.
"Do not operate heavy machinery after viewing this image."
I guess. Mm.
My eyes hate me.
A little.
I forget what I was doing, specifically, but the lines weren't intended to come out the way they did.
It's supposed to be symetrical.
How it ended up non symmetrical given the code in question I don't know.
Might be GIMP's fault, there.
Not sure.
Relevant things have since been discarded, so it shall remain a mystery.
No. Just postprocessing.
This is more along the lines of what I'm aiming in the very general region of.
Nothing.
Just looks interesting.
These are ones I did ages ago.
Except now I'm using numpy and more properly.
Also scipy's spatial.
Because distance_matrix is cool.
that's cool
pretty
So things are zoomy.
Hey @wind raptor
What's er, everyone up to? ๐
Yeah same, except it's around lunchtime here, and I've already had about 4 cups of coffee ๐
reaading
oooOOooo
Why not love everyone?
MS Access files
Think SQlite
Here's a less processed one straight from the press for comparison.
At least it's not: ```
myscript
myscript_final
myscript_final_final
myscript_really_the_final_this_time
Did.... Did you just pronounce an ellipsis?
wave interference
1.1.2685278915?
Tracky dacks.
That"s Australian for tracksuit pants / sweatpants.
๐จโโ๏ธ ๐
If they wrapped returning spacecraft in bacon rashers, the astronauts could have bacon when they land.
A friend of mine makes gorgeous things in Minecraft.
Houses, gardens, etc.
yeah there's some people who are genuinely gr8 at it
I'm off 'til Saturday evening or Sunday
have a nice weekend
"Windows has decided it's an awesome idea to..."
We do name badges for a major American retailer
Here are some names from today's list:
Javaughn
Keiaira
Ki lo lo
Mrs. Hurt
Ryanne
Khadeejah
Tashmere
Ayonna
Reema
Juanita
Sparkle
Nabras
Hayat
For some reason when I log in, it says that I have no internet despite the fact I do
Spooky internet.
I hate that
Mrs. Hurt
what the fuck? @rugged root
refresh (ctrl+r)
k
Right?
I've never seen a salutation on a name badge before
I'm honestly curious how old she is
did you people know that user accounts can now be in multiple voice channels at one time!
Sounds like a wrestler
Ew.
Shock switches...like...poorly insulated?
choc
no h
lol
@somber heath you there?
Last I checked.
alr i have to go code now bye peoples
Hey @torn grove!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .json attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
I need it
I would break a nail on that thing
why i don't hear you guys
I'm not sure
What about those mice that also come with keys
Are your speakers muted?
oh
[IC] ROTR Macro Pad and Knob - GB LIVE
thanks
Film stuff too, I think
The what now?
hey ๐
With the advent of neural interface technology, it would not be outside the realm of possibility to control a car's air conditioning system in such a fashion.
Ooo, that's true
๐
@whole bear The problem is on line 38/39, which seems to be duplicated code
If the audio_config parameter accepts None, then removing those two lines should make it work
3.11 is fasterโข overall at the moment
Without removing the GIL
Huh, I'll have to check that out
There's also a 3.10/3.11 that removes the GIL, I think
I don't like locks
lmao
They're just missing the S
CgoS?
he means CS:GO
No - he confirmed it - he meant CgoS
oh
lmao srry i thought he meant cs xD
oh ๐ฎ
Rude
Sorry
i'm kind of multi tasking rn so hard to keep up xD
i really want thiss
i have this nut can chnge the height
The other day had a client that needed to build a very basic web service and the only requirement that I had was that this would needed toโฆ
M4 filename suffix is mostly used for Macro Processor Library files.
Now what those are, I don't know
Eh, clarifies it enough for me
it looks stupid
Guys everyone use their brain power, the table @woeful salmon linked, does anything like this exist on the market that i could also travel with (put in my backpack) which the height is adjustable to human height to put your laptop on?
@gentle flint
it might but it just looks so convenient
your back might start hurting for to much siting on bed
Kemal you remind me of lemony snicket
i have no idea who that is
but ok
dosn`t exist
as far as ur usecase is concern ]
@quartz gazelleoush why dont you create it for us
We could be millionaires
it would be like revolutionizing the bicycle
G'evening
will have to leave
bye bye ๐
i have decent posture and don't require back support
so that's not a huge issue
@vivid palm find me a portable computer stand tall enough (adjustable) for my eye level, that i can fit in my backpack
@jovial nexus find me a portable computer stand tall enough (adjustable) for my eye level, that i can fit in my backpack
You funny as hell
thanks 
Yes
i dont ever want to sit down
if you ever see me sitting down i want you to think theirs 'something wrong'
i want to be known for this/i want to be famous for this
Come on guys, use your brain power
i take back what i said yesterday
japanese are not the most weird
i just found something korean which is like 10 times more messed up
In what way though
hard to explain
@crystal fox
Why I cant use My mic ???
Check out the #voice-verification channel
That'll tell you what you need to know about our voice gate
Thx Bro
@whole bear #voice-verification
tks a lot
https://www.youtube.com/watch?v=PMRZWAVyerM
ah nvm its a dial ๐ฆ
First impressions of the Asus ProArt StudioBook 16 and VivoBook Pro. These are the best laptops Asus makes for content creation.
If you want to support the channel, consider a Dave2D membership by clicking the โJoinโ button above!
http://twitter.com/Dave2D
http://www.instagram.com/Dave2D
https://discord.gg/Dave2D
Purchases made from store lin...
"Thingy ma'bobbers." - @rugged root
whats this called? and whys it so good?
we have these in atms
@marble oar
@marble oar Actually, you might ask in #unix
They'd be the folks who would know
Not very
Just delete it from a Linux live cd
No, it's annoying as shit
Take ownership doesn't always work either
Windows 11 version
@rugged root is a manjaro expert
i would say the people who drink ketchup are just as weird
i've seen my cousin brother literally drink like half of a small ketchup bottle and i almost threw up just from thinking about it
So what you're saying is that she's MinAAAAAAHHHHHHH
o-o
:<
apparently you're lemon
hi guys
i still cannot speak in here.
i am not a real human i am only a voice in the machine
not even a voice
a letter
#voice-verification
i still cannot
still
mother fawker
its ok i enjoy listening to conversations more anyways
how long does a waterpik take
I don't think it's that much longer
It's been a while since I used one. I do need to get one
I'm going to stay muted but maybe the audio will improve. it was working well yesterday...
I probably have too many tabs open
Moderation here is pretty good
I'm going full text for now...
function modifiedOutput(strArr, ...args) {
return strArr[0] + args[0] + strArr[1] + args[1] + strArr[2] + (args[0] + args[1]);
}
console.log(modifiedOutput`${10} + ${20} = `);
// output: 10 + 20 = 30
^ javascript feature alot of ppl (including people i know who work with javascript fufll time) don't know about
@rugged root what about you? xD
Hello ๐
@manic magnet https://github.com/josh-richardson/cadmus
@strong archguess what
what
@woeful salmon hi
the one that you posted?
and this is why we use linux folks (<- you see this... its sarcasm)
why does that kid look like he's either blind in which case that's not funny or just drunk
hes just dancing
Minix?
perhaps i just don't understand dancing
to me that looks like either a blind person looking for something to get support on or a drunk person struggling to keep his balance
Erm @wintry kernel, could you possibly turn on noise suppression?
You've got quite a lot of random noise coming through.
Wait, can I do it?
you can!
I can ๐
there u go
Noo
What will I do?
I suggest muting Fisher
KJ is lambda now
yes
Ladies, Beware! The charmer is here to woo you with his flirtatious ways.
Listen to the title track 'Bachna Ae Haseeno'!
โบ Subscribe Now: https://goo.gl/xs3mrY ๐ Stay updated!
#YRFnewreleases - https://www.youtube.com/playlist?list=PLCB05E03DA939D484
๐ง Song Credits:
Song: Bachna Ae Haseeno
Singers: Kishore Kumar, Sumeet Kumar, Vishal Dadlani
M...
KJ = h/mv
(KJ = lambda here)
is that the equation for the wave length of a wave
wave length of a wave is easy, its debroaglie's eq
ฮป = v/f
do you like this song?
h is planck's constant
I was obsessed with it a long time ago... but haven't thought of it in a while
ah, I thought this was heisenberg's uncertainty principle
heisenburg's principal mathematically and theoritically is a lot differet it is error/uncertaintiy in position x error/uncertainity in momentum >= h/4pi (note here we are talking about hydrogen like atoms)
thats cute :)
I first heard it on Outsourced the TV show, which was fairly successful while it ran.
cool
The TV show was basically the same plot as the movie but with a lot more story-telling. I don't know how representative it really was of Indian culture but I really enjoyed all the characters.
Outsourced Season 1 Episode 11
A Sitar is Born
When Todd hears Madhuri's singing in the bathroom, he is taken by her beautiful voice. Hoping to get her to enter a local talent contest, he offers pay the entrance fee for anyone interested in signing up, which leads to the unintended outcome of Gupta taking up his offer.
Meanwhile, Jerry insists o...
oh cool i will try seeing outsourced
that song always makes me a little emotional
In smart cities, a lot of data is collected by various measuring devices and transmitted to the center. In our city, we collect temperature data with measuring devices recorded at various locations, which are sometimes sent to the center.
The text data file should be structured as follows: GPS coordinates (latitude, longitude), date, time, measured value
Use the decimal point format (DD) to enter GPS coordinates, eg 47.6498634, 19.1404118
- Create a script called homerseklet.sh that tells you how many different days measurements were taken at a location with a given GPS coordinate. (./homerseklet.sh latitude)
- Create a script called max_homerseklet.sh that specifies where and when the highest temperature was.
- Create a script called best_results.sh that specifies the location where most measurement results were obtained.
you can try hash mapping the latitudes with the given data
like you know python right?
yes
Hey @fierce summit!
It looks like you tried to attach file type(s) that we do not allow (.rar). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
so kinda do it like this in shell script
# the structure of the data should be like this i think
data = {(32.343, 55.5) : ((date, time, measured_value), ...), ...}
The misconception is that electrons carry potential energy around a complete conducting loop, transferring their energy to the load. This video was sponsored by Casรฉta by Lutron. Learn more at https://Lutron.com/veritasium
Special thanks to Geraint Lewis for bringing up this question in the first place and discussing it with us -- check out his...
lsb_release -a
@fierce summit
are you sure you cant do this?
Yeah I agree with that.
Although ranger is pretty good.
Simmer down Hemlock ๐
(47.6498634, 19.1404118), 2021.09.10, 12:35, 26
(47.6498634, 19.1404118), 2021.09.12, 15:55, 24
(47.6498634, 19.1404118), 2021.09.14, 18:05, 20
(57.6498634, 29.1404118), 2021.09.06, 11:05, 31
(47.6498634, 19.1404118), 2021.09.12, 14:00, 30
(17.6498634, 15.1404118), 2021.09.25, 09:05, 24
(47.6498634, 19.1404118), 2021.09.30, 20:05, 21
But... my high horse
@rugged root
In smart cities, a lot of data is collected by various measuring devices and transmitted to the center. In our city, we collect temperature data with measuring devices recorded at various locations, which are sometimes sent to the center.
The text data file should be structured as follows: GPS coordinates (latitude, longitude), date, time, measured value
Use the decimal point format (DD) to enter GPS coordinates, eg 47.6498634, 19.1404118
- Create a script called homerseklet.sh that tells you how many different days measurements were taken at a location with a given GPS coordinate. (./homerseklet.sh latitude)
- Create a script called max_homerseklet.sh that specifies where and when the highest temperature was.
- Create a script called best_results.sh that specifies the location where most measurement results were obtained.
Out dated but still neat
what's this sentence mean please ?
I couldn't find in dictionary.
High horse means... speaking in a way that they feel superior for their opinion
It was a joke
How do you clear the console in the Chrome JS thing?
also lesser known part of PowerShell if you use Get-Help with -Full you get a huge piece of documentation of every single option of thecommand
Found it, I derp
"my high horse" means some one else to stop speaking like that?
Sorry to bother you. I can ask later if isn't good time time.
No you're fine, just trying to figure out how to explain it
So think of a preacher at a church. He sees his position as morally superior, and will preach to the people that he sees as sinners.
It's kind of like that
aha he feels for example "he sat on a high horse"?
and we can say "get of high horse please"?
you're so great to give me your time.
I love to help people learn. I'm always happy to do so
$PSVersionTable
# Set up Suggestions
Import-Module PSReadLine
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompleteion for Arrow keys
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -ShowToolTips
Set-PSReadLineOption -PredictionSource History
#Set the color for Prediction (auto-suggestion)
Set-PSReadlineOption -Colors @{InlinePrediction = "DarkGray"}
Out-File: Could not find a part of the path 'C:\Users\XXX\Documents\PowerShell\Microsoft.PowerShell_profile.ps1'.
New-Item -Type File -Path $profile
@scenic wind
https://realpython.com/python-csv/
Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate. - GitHub - astanin/python-tabulate: Pretty-print tabular d...
Doing a delivery run
I'll hop on in the van
I think Black does a pretty good job most of the time.
But if you find some weird edge-case where it does the wrong thing, bring it up in #black-formatter ๐
foo bar
bazz buz
^ this will become
foo bar
bazz buz
!stream 589497499174043800
โ @scenic wind can now stream until <t:1637355154:f>.
How do I get this glowing letter?
I don't know, but it looks cool!

Erm, @scenic wind , paste your code here and explain what you're trying to do.
There's an active conversation going on.
writer.writerows(registration, time, speed, speedingYorN)
writer.writerow([registration, time, speed, speedingYorN])
xD if you use windows and have vim installed on either powershell or wsl you can use this option in appearance of windows terminal to get glowing text like that
Vitally important ๐
Oh cool.
# n is the matrix
def sync_index(n,tau): # tau is a given number # returns the sync of a couple of lines arrotondate alla sesta cifra decimale
count_A = 0 # num accent of B
count_B = 0 # num accent of B
prec_A = 0 # is the number of times an accent of A is preceded by an accent of B within a distance <= tau
prec_B = 0 # is the number of times an accent of B is preceded by an accent of A within a distance <= tau
len_n = len(n) #lenght of the matrix
len_accent_list = len(n[0]) #lenght of the list (al the list has the same lenght)
temp = 0
for i in range(len_n-1):
for j in range(i+1, len_n):
count_A = 0
count_B = 0
prec_A = 0
prec_B = 0
for z in range(len_accent_list):
if n[i][z] == "1":
count_A += 1 # counter of 1's in a
if n[j][z] == "1":
count_B += 1 # counter of 1's in b
if z-tau < 0:
if n[i][z] == "1" and n[j][z] == "1":
prec_A += 1
prec_B += 1
else:
slice_obj_A = slice(z-tau,z)
slice_obj_B = slice(z-tau,z)
if n[i][z] == "1":
if n[j][z] == "1" or "1" in n[i][z][slice_obj_A]:
prec_A += 1
if n[j][z] == "1":
if n[i][z] == "1" or "1" in n[j][slice_obj_B]: # sync for B
prec_B += 1
temp += (((1/2) * (prec_A + prec_B)) / (count_A*count_B)**(1/2))
if count_A == 0 or count_B == 0:
return 0
return round(temp/len_n,6)
guys i should write a program that compare more items in multiple lists inside a list. I have to increment the counter "prec_A " if in both lists A and B there is a 1 in the same position, or if for example in A there is 1 but in B 0 in the same position, if in list B there is at least 1 in the position distance minus tau then it is incremented. if all cases are true, it is incremented only once. same thing for "prec_B ". ES:
For example, given the two sequences:
- A = [0, 0, 0, 0, 1, 0, 0, 1]
- B = [1, 0, 1, 0, 1, 0, 0, 0]
- tau = 3
we will obtain:
- prec_B = 1, as only the third accent in B (position 4) is preceded in A by a
accent within 3 positions (in this case the 1 in A has the same position
as the 1 in B)
- prec_A = 2, as both accents of A are preceded in B by two accents within
3 positions
- count_A = 2
- count_B = 3
- Sync = 0.5 * (1 + 2) / sqrt(2 * 3) = 0.6123724356957946
the problem is that when I have a lot of lists I can't really compare them all. pls help me
Hey @untold rapids, you're more likely to get help if you claim a help channel and copy your question over.
See #โ๏ฝhow-to-get-help for instructions on claiming a help channel ๐
ok thanks
I like regex, but if someone's learning Python, I wont recommend it.
pass is just a no-op.
str.isalnum()```
Source code: Lib/re.py
This module provides regular expression matching operations similar to those found in Perl.
Both patterns and strings to be searched can be Unicode strings (str) as well as 8-bit strings (bytes). However, Unicode strings and 8-bit strings cannot be mixed: that is, you cannot match a Unicode string with a byte pattern or vice-versa; similarly, when asking for a substitution, the replacement string must be of the same type as both the pattern and the search string.
@scenic wind 
But learning it is a whole task itself.
I learned regex by drawing finite state machines by hand at university ๐
@whole bear You can talk here for the time-being.
yea
The voice-gate is necessary unfortunately to keep trolls out.
Wait, working on what? ๐
you can post your question here
i'm about to sleep so if i help you alone in dms i might have to leave midway
Erm, not sure @celest mantle I'll look.
Sorry what was that?
Erm, I don't know sorry.
I should know ๐
Yeah idk. It's one of those things I learned once, forgot, and have been meaning to re-learn.
#โ๏ฝhow-to-get-help i would recommend just opening a help channel ๐ฆ as sadly i don't think anyone in vc right now is familiar with that
k
gtg ๐
๐ i'm going to sleep too goodnight
@heavy nacelle
๐ @stuck furnace
Hey Laundmo, how have you been?
Ah yeah, the clients have been glitchy lately.
A lot of people reporting phantom/missing users in voice-chat.
I've had that happened too many times lol
<input onchange="Math.max(....)" onpaste="this.onchange()" oncut="this.onchange()" onkeypress="this.onchange()" oninput="this.onchange()">
Is that a <center> tag? ๐ What year is this?
Also reset that token ๐ฌ
Sorry wrong disc channel
๐ฌ
Yep, we cannot assist with the development of self-bots in this server @half silo
And operating a self-bot is likely to get your account banned by Discord.
Hello @heavy nacelle ๐
hello
Yeah, you kind of sound underwater Laund.
I'm not very familiar sorry, but we do have a #discord-bots channel.
๐ @olive hedge
I'm self-muting voice because discord seems to be degrading it quite a bit. Have I gone over some unwritten bandwidth limit such that they are now throttling me?
i dont think thats a thing. it might just be a spotty connection.
Erm yeah Mina's deafened right now.
๐
I like the discoverability.
@heavy nacelle heres the reason discord.py was archived: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1
Alright gtg ๐
๐คฆโโ๏ธ
lolol
@vivid palm #voice-chat-text-0 message
Hi everyone
hayyy
omo
anyeonghaseyo
noooooooooooooooo\
dont do that :'DDDD
haha
Ha!
hahahaha
oh my gosh now I wanna change it
yeah
hajar is correct
yeah
like you say it
nooooo
hahaha
but the h is not silent tho
haha
so unusual to see people online at this time
Global community.
Everyone holding hands. Singing songs.
haha
I get away with small snatches of song here and there.
Beaver moon?
i'm actually not quiet sure I've only learned of it yesterday
but apparently beavers prepare for hibernation at this time that's why they call it beaver moon
I've still got you turned right up, but it does seem an improvement on at least the quality.
yeahh.... I couldn't see it tho ๐ฆ
This morning? I thought it was yesterday
Oh yeah... it's 5.00 pm for me yesterday and we can't really see the moon then
Easter time!
That's what we're doing these days, isn't it? Celebrating things months and months ahead of time?
I am, like a lot of people, quite partial to chocolate.
Give it to me dark and sweet.
gochujang man ...
oh wow that's really amazing
6 Ways to Enjoy Rice Bowls!
- Tamagodon (Japanese Egg Rice Bowl)
- Oyakodon (Japanese Chicken & Egg Rice Bowl)
- Butadon (Japanese Pork Rice Bowl)
- Kimchi Jeyuk Deopbap (Korean Kimchi Pork Rice Bowl)
- Beoseot Deopbap (Korean Mushroom Rice Bowl)
- Steak Rice Bowls
โถ Get full recipes here! https://bit.ly/3pkpxoz
โถ Subscribe Aaro...
Tata
this one looks like a composite but if that's a raw photo then that's really incredible
bonjour
hmm not sure. comments say maybe a big ass telescope
makes sense
now I want a telescope
Unexpected disco floor.
Very much a product of throwing stuff at a wall to see what sticks.
"Gotta harden those kids up. The more we put them down the more they'll learn to build character and rise up to prove us wrong."
"Tough love and all that."
It's an internal justification for bullying.
It's juvenile.
@dense ibex Administrations are afraid of letters.
As in missives.
There's being tough, then there's...being a bumface.
You write down an honest accounting of what was said.
Disinclude emotional and manipulative buzzwords beyond that.
Get people who were present to sign it.
Make copies.
See if there's some kind of code of conduct for teachers.
Laws of the state, etc, that apply.
Frame your complaint with that in mind.
The teacher is an employee with things they, themselves can get in trouble for.
Find out what they are.
I get it.
Proofs to me are actually quite fascinating. I can understand it and be all, like, inspired and stuff but I could never come up with a good proof myself
proofs are sooo satisfying
lmao
Unless you can pull it off.
Yeah I was like... she's writing code on the board? haha
idle game? idol game?
oh ok
ha-jahr
yes perfect
I've been totally bad with my money this year hahaha
Oh look airpods 3 are finally available at the apple store
There's give and take.
Sounds like fun.
Oh yes.
taptaptap...taptaptap...taptaptap
It wasn't obnoxious.
Hey, Mina, you can threaten to mute him, now.
๐
(Not being at all serious)
Touchscreens may well become a legacy technology.
Like not changing the materials for their cables
vs neural interfaces or hand/eye tracking
"Ah, the person is looking right here and make this hand gesture."
Keyboards, touchscreen or otherwise, however...
They might persist.
The mysteries of the future.
The notch.
DUN DUN DUN.
I'd like to think that nuclear batteries could be a thing, but...
Hell no.
Like, just something you never need to charge.
and doesn't explode
Energy harvesting from the human body is an interesting avenue.
Well, you might lose it somewhere.
and then someone might pick it up and see it and go "Ooh, free ipod! Oh. It's Mina's. Fine, I'll give it back."
Hello
Do they have screens?
Yeah. They're selling all the things people need to do it themselves.
Maybe not all themselves.
It's just allowing people to void their own warranties, have to buy new phones and also positioning themselves to be the only supplier of the tools people need.
hm
Apple wheels are $1000
I thought they already had.
hello hello
Black.
Hello @crisp wyvern
prettyyy
geeez
has anyone get the airpods 3
is the fit OK?
im srsly considering getting them
but i heard it's sorta bigger then the 2s
profesional hand model man
probably
it was fun. 3/5
byee mina
have a good rest
i gueesss i have interet issues
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
can u help me with a kivy problem
and yeah still looking for Voice verification
i been here for a few months
Q:list()
"Today we are living in an era of science"
How can i program to change the word science to technology and print it..
SELECT * FROM pg_settings WHERE name = 'port';
class Emploee: def __init__(self) -> None: pass
what is something we can work together on in real time?
any topic?
i can find dataset
!e
class Emploee:
def init(self , first , last , pay) :
self.first = first
self.last = last
self.pay = pay
self.mail = first + '.' + last + '@company.com'
def fullname (self):
return '{} {}'.format(first , last)
emp1 = Emploee('Hamid' , 'Daneshjoo' , 2000)
print(Emploee.fullname(emp1))
@frozen jetty :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 12, in <module>
003 | File "<string>", line 9, in fullname
004 | NameError: name 'first' is not defined. Did you mean: 'list'?
__init__ not init
!e
from typing import Union
def add(num1: Union[int, float], num2: Union[int, float]) -> Union[int, float]:
"""Return sum of the 2 given numbers"""
return num1 + num2
static type checker
from typing import Union
def add(num1: Union[int, float], num2: Union[int, float]) -> Union[int, float]:
"""Return sum of the 2 given numbers"""
return num1 + num2
num1 = input("give first value: ")
num2 = input("give the second value: ")
fun = input("enter what u wanna do: ")
if fun == "+" or "add" :
print(add(num1,num2))
this maybe a string or int or float
self annotating u mean?
def add(num1,num2):
"""Return sum of the 2 given numbers"""
return num1 + num2
num1 = int(input("give first value: "))
num2 = int(input("give the second value: "))
fun = input("enter what u wanna do: ")
if fun == "+" or "add" :
print(add(num1,num2))
works as expected for me
its only hinting the type so it won't error even with the wrong type
unless you use a static type checker
like this
!e
import time
def timer_decorator(func):
def wrapped():
start_time = time.monotonic()
func()
print(f"{func.__name__} took {time.monotonic() - start_time}")
return wrapped
def sleep():
time.sleep(5)
print("woke up!")
sleep = timer_decorator(sleep)
sleep()
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | woke up!
002 | sleep took 5.023586682975292
@fucntion
import time
def timer_decorator(func):
def wrapped():
start_time = time.monotonic()
func()
print(f"{func.__name__} took {time.monotonic() - start_time}")
return wrapped
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
sleep()
I'll come back soon...
ok
@timer_decorator> def sleep(): = timer_decorator(sleep)
def timer_decorator(func): > def timer_decorator(sleep):
ah trying to make a syntax for making it to look preety
!e
import time
def timer_decorator(func):
return "yo"
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
print(sleep)
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
yo
@willow lynx hi
!e```py
import time
def timer_decorator():
return "yo"
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
print(sleep)
Hey
!e ```py
import time
def timer_decorator():
return "yo"
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
print(sleep)
@wet token :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 7, in <module>
003 | TypeError: timer_decorator() takes 0 positional arguments but 1 was given
!e
import time
def timer_decorator(func):
def wrapped():
start_time = time.monotonic()
func()
print(f"{func.__name__} took {time.monotonic() - start_time} seconds")
return wrapped
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
sleep()
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | woke up!
002 | sleep took 5.025091249961406 seconds
sorry my nose is not giving me an easy time speaking right now ๐ฆ
import time
def timer_decorator(func,func2):
def wrapped():
start_time = time.monotonic()
func()
print(f"{func.name} {func.name} took {time.monotonic() - start_time} seconds")
return wrapped
@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")
sleep()
you don't
you sound like 16-18
i'm 22
how old are you
ah
nice
same
yeah
sounding young is not a bad thing
i sound the same when i wake up too
i sleep like 4 hours though
i don't have a healthy schedule rn
fixing it slowly
!voice @crystal latch
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!resources @wet token
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
you c ould do it with brython
yeah either javascript or something that then compiles to javascript
for example typescript or blazer (C# on the front end)
๐คทโโ๏ธ i love javascript myself
it used to be bad before 2015 though
well that's a you problem not a javascript problem
i learnt elisp recently o- o
(defun add-numbers '(n1 n2)
(+ n1 n2))
ikr xD
(/ 20 (- 15 (+ 5 5)))
^ lisp
vs
python
20 / (15 - (5 + 5))
francophon
lisp uses preffix notation
xD
it starts to make sense when you understand how it works
its scary
HHHHHHHH
1337
function modifiedOutput(strArr, ...args) {
return strArr[0] + args[0] + strArr[1] + args[1] + strArr[2] + (args[0] + args[1]);
}
console.log(modifiedOutput`${10} + ${20} = `);
// output: 10 + 20 = 30
also js has more fun weird things then you'd expect
lol
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
not """ but ```
for your code
noo i meant for formatting
i didn't see it was just a docstring
lol
#!/usr/bin/env python3
"""
module approximate_pi.py qui genere des pts aleatoire
"""
from random import uniform
from collections import namedtuple
import sys
Point = namedtuple('Point', 'x y')
def genere_point_aleatoire():
"""
une fonction qui genere un point aleatoire
dans le carre de longeur 2"""
return Point(uniform(-1,1), uniform(-1,1))
def est_danscercle(point):
"""
fonction qui return true si le point est dans le cercle unitaire
"""
return ((point.x)2+ (point.y)2)<=1
def main():
"""
la fonction principale qui rrturn la valeur de pi
"""
nombre = int(sys.argv[1])
compteur = 0
for in range(nombre):
if est_dans_cercle(genere_point_aleatoire()):
compteur += 1
print ((4*compteur)/nombre)
if __name__ == "__main__":
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
yeah ^ like that
use time.monotonic or time.perfcounter instead of time.time()
Hey i m new here
I don't have the permission to speak
Can anyone tell me
What's going on?
time.time() is slow and not accurate
no frensh
yow guys hhhhh there is no problem
i had a question
which is
no the main script
is very long
200 ligne
but
my
question is
how can i generate
a random
point
without uniform
guuuys
i want
to talk
actually it is
hhhhhhhh
hhhhhhh
i am in aschool of math
and
computer science
there is no server in which i can talk here
!!!!
shiit
hhhhhhh
PV
I like boom
hhhhhhhh
this
is
what
m doing
the script that i sent to u just took the number of point
like recaptcha?


