#voice-chat-text-0

1 messages ยท Page 932 of 1

fallow wagon
#

i wanna beable to get a job, but also have a language i can do anything with

#

its between java, c# and c++

stuck furnace
#

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?

sweet lodge
#

CLion is another JetBrains IDE

#

For C
Also supports Rust

stuck furnace
#

I don't think so ๐Ÿค”

#

Yeah, I think they stopped supporting 32-bit apps on MacOS High Sierra.

viral compass
#

that sounds about right

stuck furnace
#

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...

viral compass
#

I love programming in Python!

stuck furnace
#

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.

viral compass
stuck furnace
#

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

viral compass
#

later!

ocean raptor
#

whats up guys

#

what if they turn you into a butterfly

viral compass
#

I am a heretic

ocean raptor
#

biblically?

viral compass
#

depending on who you ask, yes

ocean raptor
#

no good

viral compass
#

Part of the experience of being a Latter-day Saint

ocean raptor
#

everyone is shy in this vc

#

yes

balmy pumice
#

why I cant use mic ?

whole bear
#

anyone here know deep learning?

#

hey

#

@wind raptor

#

whatsup

kind pike
#

Hello

whole bear
#

hi

gray tapir
#

Tell me something about what i don't know about python list()

#

I mean, tell me what usually people don't know about list()

gentle flint
#

@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

novel lance
#

Hi

#

He

#

Is too

#

Good

#

Bedless noob

#

Is here

#

Lol

somber heath
#

@sterile barn Yahoy.

#

@whole bear Ahoy.

#

Pardon?

#

Australian.

#

Post the error and we'll see what can be said.

whole bear
#
    speak(f"weather in {city} city is")
TypeError: 'module' object is not callable```
somber heath
#

@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")```
whole bear
#

oh ok

#

thankes

somber heath
#

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.

whole bear
#
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>```
somber heath
#

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.

whole bear
#

oh ok

somber heath
#

Have it as an environmental variable. For whatever reason, that seems to be the common practice.

#

!d os.environ

wise cargoBOT
#

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.
whole bear
#

canyou write it

#

maybe

somber heath
#

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.

wise cargoBOT
#

@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'})
somber heath
#

It's just testing.

#

Not intended for your code.

#

I'm not available for anything in-depth at the moment.

wise cargoBOT
#

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:

https://paste.pythondiscord.com

somber heath
#

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.

whole bear
#

Ok

somber heath
#

Well, no.

#

It is a good idea.

#

But don't.

whole bear
#

Ok

frosty star
#

Good Evening

somber heath
#

Yahoy.

whole bear
#

Any other ideaa

#

@somber heath

somber heath
#

Study other example usages of the API in question.

whole bear
#

Oh that is greate idea

somber heath
#

I do, on occasion, have them.

whole bear
frosty star
#

good

#

its fridayy

#

tq ๐Ÿ™‚

#

sorry what was that

#

I was reading

#

sth

whole bear
somber heath
#

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. ๐Ÿ™‚

frosty star
#

brb

somber heath
#

@cunning monolith ๐Ÿ‘‹

whole bear
#

lol

somber heath
#

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.

whole bear
#

@cunning monolith beware that dont use regional languages in voice channels ; fortunately no admin was in here

cunning monolith
#

ok

#

Sorry

somber heath
#

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.

somber heath
#

Visual discomfort advisory.

#

Gaze at the center.

#

Do you see colour?

#

If so, HAHA, I hacked your brain.

#

Because there isn't any.

whole bear
#

gazing with my wide screen

whole bear
gentle flint
#

circles

somber heath
#

What didn't I find?

gentle flint
#

but there aren't actually circles

#

it's an illusion

somber heath
#

Do you get the circle rainbow?

#

The effect is faint, but noticeable.

gentle flint
#

yes

whole bear
#

btw

somber heath
#

Yep.

whole bear
#

no]

#

no hacking

somber heath
#

Yahoy?

#

Idling.

#

Making nauseating pictures.

#

See above.

#

It's a greyscale image.

#

It's bisk.

stuck furnace
#

Are the concentric circles an illusion?

somber heath
#

Not quite.

#

But the colour is.

#

It's actually an interference pattern I jiggered a little.

#

Yeah, the circles are kind of there.

stuck furnace
#

Hmm yeah I don't see a colour either. Is my brain broken? lemon_pensive

somber heath
#

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.

stuck furnace
#

There's a bit of a weird effect if you move your eyes closer and further from the image. Like bulging and shrinking ๐Ÿค”

somber heath
#

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."

crystal fox
somber heath
#

Oh wow

#

Yes

#

Yes.

#

That's neat.

#

Boot to the head!

crystal fox
somber heath
#

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.

nimble heart
#

that's cool

frosty star
somber heath
#

So things are zoomy.

stuck furnace
#

Hey @wind raptor

somber heath
#

I might be a little, er...head blah?

#

Okay. I'm done for now with these.

stuck furnace
#

What's er, everyone up to? ๐Ÿ˜„

#

Yeah same, except it's around lunchtime here, and I've already had about 4 cups of coffee ๐Ÿ‘€

frosty star
#

reaading

somber heath
#

oooOOooo

crystal fox
sweet lodge
#

Why not love everyone?

stuck furnace
#

Ah right ๐Ÿ˜„

sweet lodge
#

MS Access files
Think SQlite

somber heath
#

Here's a less processed one straight from the press for comparison.

stuck furnace
#

At least it's not: ```
myscript
myscript_final
myscript_final_final
myscript_really_the_final_this_time

sweet lodge
#

Did.... Did you just pronounce an ellipsis?

somber heath
#

Yep.

#

Okay. Actually done now.

#

brb

sweet lodge
#

1.1.2685278915?

stuck furnace
#

I need my daily fix of Hemlock.

#

๐Ÿ‘€

somber heath
#

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.

woeful salmon
#

yeah there's some people who are genuinely gr8 at it

gentle flint
#

I'm off 'til Saturday evening or Sunday
have a nice weekend

woeful salmon
#

but most people building huuuuge one to one copies real pictures

#

aren't real

somber heath
#

"Windows has decided it's an awesome idea to..."

sweet lodge
#

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
rugged root
#

For some reason when I log in, it says that I have no internet despite the fact I do

somber heath
#

Spooky internet.

sweet lodge
#

I hate that

whole bear
whole bear
#

what the fuck? @rugged root

vivid palm
#

refresh (ctrl+r)

whole bear
#

k

sweet lodge
#

Right?
I've never seen a salutation on a name badge before
I'm honestly curious how old she is

whole bear
#

did you people know that user accounts can now be in multiple voice channels at one time!

rugged root
whole bear
#

so

#

you could..... make a self bot music bot

somber heath
#

Shock switches...like...poorly insulated?

vivid palm
#

choc

whole bear
#

no h

vivid palm
whole bear
#

lol

plush willow
#

@somber heath you there?

somber heath
whole bear
#

alr i have to go code now bye peoples

wise cargoBOT
#

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:

https://paste.pythondiscord.com

sweet lodge
#

Too many macros? Just add more keyboards

torn grove
sweet lodge
#

How small can a keyboard reasonably get?

#

40%?

#

20%?

torn grove
stray lance
rugged root
#

Okay

#

That's actually cool

sweet lodge
#

I would break a nail on that thing

raven ice
#

why i don't hear you guys

rugged root
#

I'm not sure

swift valley
#

What about those mice that also come with keys

rugged root
#

Are your speakers muted?

raven ice
#

oh

vivid palm
raven ice
#

thanks

vivid palm
#

sleek

#

rotary

#

big

swift valley
#

Film stuff too, I think

somber heath
#

Your face is a surface.

#

It's even in the word.

stuck furnace
#

The what now?

frosty star
#

hey ๐Ÿ˜„

vivid palm
#

hi hajaa

#

"you can control the weather with your mind"

somber heath
#

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.

rugged root
#

Ooo, that's true

whole bear
stuck furnace
#

๐Ÿ‘€

whole bear
swift valley
#

@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

rugged root
#

Huh, I'll have to check that out

swift valley
#

There's also a 3.10/3.11 that removes the GIL, I think

#

I don't like locks

stuck furnace
vivid palm
#

lmao

woeful salmon
#

also forgot to say earlier but Cgo is another big thing in go

rugged root
#

They're just missing the S

sweet lodge
woeful salmon
sweet lodge
woeful salmon
#

oh

sweet lodge
#

Whoops

#

Wrong paste

woeful salmon
#

lmao srry i thought he meant cs xD

sweet lodge
#

He did

#

I'm bullying you

woeful salmon
#

oh ๐Ÿ˜ฎ

rugged root
#

Rude

sweet lodge
#

Sorry

woeful salmon
#

i'm kind of multi tasking rn so hard to keep up xD

crystal fox
rugged root
slow knoll
#

can someone help me

#

I cant open my mic

#

sry ฤฑ am new at server

woeful salmon
#

i really want thiss

whole bear
rugged root
sweet lodge
#

M4 filename suffix is mostly used for Macro Processor Library files.

#

Now what those are, I don't know

rugged root
#

Eh, clarifies it enough for me

flat sentinel
jovial nexus
#

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?

flat sentinel
woeful salmon
flat sentinel
jovial nexus
flat sentinel
#

but ok

whole bear
#

as far as ur usecase is concern ]

jovial nexus
#

@quartz gazelleoush why dont you create it for us

#

We could be millionaires

#

it would be like revolutionizing the bicycle

swift valley
#

G'evening

haughty idol
#

will have to leave
bye bye ๐Ÿ‘‹

vivid palm
#

hi hi

#

day 2 of being completely unproductive it seems

#

is how it's gonna go

woeful salmon
#

so that's not a huge issue

jovial nexus
#

@vivid palm find me a portable computer stand tall enough (adjustable) for my eye level, that i can fit in my backpack

vivid palm
#

@jovial nexus find me a portable computer stand tall enough (adjustable) for my eye level, that i can fit in my backpack

jovial nexus
#

You funny as hell

vivid palm
#

thanks aww

jovial nexus
#

Seriously though...

#

this is my life On The Line

vivid palm
#

computer stand though?

#

not a desk + chair?

jovial nexus
#

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

crystal fox
woeful salmon
#

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

swift valley
#

In what way though

woeful salmon
#

hard to explain

rugged root
#

@crystal fox

balmy pumice
#

Why I cant use My mic ???

rugged root
#

That'll tell you what you need to know about our voice gate

balmy pumice
#

Thx Bro

crystal fox
#

@whole bear #voice-verification

whole bear
#

tks a lot

woeful salmon
#

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...

โ–ถ Play video
jovial nexus
#

"Thingy ma'bobbers." - @rugged root

crystal fox
jovial nexus
whole bear
crystal fox
rugged root
#

@marble oar

#

@marble oar Actually, you might ask in #unix

#

They'd be the folks who would know

sweet lodge
#

Not very

#

Just delete it from a Linux live cd

#

No, it's annoying as shit

#

Take ownership doesn't always work either

rugged root
sweet lodge
sweet lodge
jovial nexus
#

@rugged root is a manjaro expert

sweet lodge
#

The color of the food coloring

#

Salt on Licorishe?

crystal fox
woeful salmon
# rugged root

i would say the people who drink ketchup are just as weird

sweet lodge
#

Liquorice*

#

I think

woeful salmon
#

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

vivid palm
#

@fervent cliffhi minah! i'm mina Shan_Wave

#

omg you're on keeb servers too

woeful salmon
#

๐Ÿ‘€ she changer her name

#

you scared her lol

rugged root
#

So what you're saying is that she's MinAAAAAAHHHHHHH

woeful salmon
vivid palm
#

:<

woeful salmon
#

apparently you're lemon

sweet lodge
#

Joe has almost 100

#

๐Ÿ‘‹

ocean raptor
#

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

crystal fox
#

#voice-verification

ocean raptor
#

i still cannot

#

still

#

mother fawker

#

its ok i enjoy listening to conversations more anyways

#

how long does a waterpik take

rugged root
#

I don't think it's that much longer

#

It's been a while since I used one. I do need to get one

olive hedge
crystal fox
olive hedge
haughty pier
#

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...

woeful salmon
#
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

stuck furnace
#

Hello ๐Ÿ˜„

strong arch
vivid palm
#

@strong archguess what

strong arch
gloomy vigil
#

@woeful salmon hi

stuck furnace
#

Pounds Sterling ๐Ÿ˜„

#

@strong arch

woeful salmon
vivid palm
#

o

#

nvm

#

how is school(?)?

woeful salmon
#

๐Ÿ˜… wtf is that gif

gloomy vigil
terse needle
#

and this is why we use linux folks (<- you see this... its sarcasm)

woeful salmon
#

why does that kid look like he's either blind in which case that's not funny or just drunk

stuck furnace
#

Minix?

woeful salmon
#

thinkmon perhaps i just don't understand dancing

gloomy vigil
#

perhaps

#

i have never danced

woeful salmon
#

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

stuck furnace
#

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?

vivid palm
#

you can!

stuck furnace
#

I can ๐Ÿ˜„

vivid palm
#

there u go

stuck furnace
#

Noo

vivid palm
#

ikr

stuck furnace
#

What will I do?

cobalt fractal
#

I suggest muting Fisher

vivid palm
#

KJ is lambda now

terse needle
terse needle
haughty pier
#
YRF

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...

โ–ถ Play video
gloomy vigil
terse needle
#

is that the equation for the wave length of a wave

gloomy vigil
terse needle
gloomy vigil
gloomy vigil
haughty pier
terse needle
gloomy vigil
haughty pier
rugged root
haughty pier
# gloomy vigil 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.

gloomy vigil
haughty pier
#

that song always makes me a little emotional

fierce summit
#

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

  1. 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)
  2. Create a script called max_homerseklet.sh that specifies where and when the highest temperature was.
  3. Create a script called best_results.sh that specifies the location where most measurement results were obtained.
gloomy vigil
#

like you know python right?

fierce summit
#

yes

wise cargoBOT
#

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.

rugged root
gloomy vigil
haughty pier
fierce summit
terse needle
gloomy vigil
#

lsb_release -a

gloomy vigil
terse needle
fierce summit
gloomy vigil
#

are you sure you cant do this?

stuck furnace
#

Yeah I agree with that.

#

Although ranger is pretty good.

#

Simmer down Hemlock ๐Ÿ˜„

fierce summit
#

(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

rugged root
#

But... my high horse

woeful salmon
#

@rugged root

fierce summit
#

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

  1. 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)
  2. Create a script called max_homerseklet.sh that specifies where and when the highest temperature was.
  3. Create a script called best_results.sh that specifies the location where most measurement results were obtained.
rugged root
#

Out dated but still neat

frozen jetty
rugged root
#

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?

woeful salmon
rugged root
#

Found it, I derp

woeful salmon
#

also this

frozen jetty
rugged root
#

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

frozen jetty
rugged root
#

Exactly

#

"Get down off your high horse, you're no better than the rest of us"

frozen jetty
rugged root
#

I love to help people learn. I'm always happy to do so

woeful salmon
#

$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"}
celest mantle
#

Out-File: Could not find a part of the path 'C:\Users\XXX\Documents\PowerShell\Microsoft.PowerShell_profile.ps1'.

woeful salmon
#

New-Item -Type File -Path $profile

rugged root
#

Doing a delivery run

#

I'll hop on in the van

stuck furnace
#

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 ๐Ÿ˜„

woeful salmon
#
foo bar
bazz buz

^ this will become

foo  bar
bazz buz
stuck furnace
#

!stream 589497499174043800

wise cargoBOT
#

โœ… @scenic wind can now stream until <t:1637355154:f>.

celest mantle
#

How do I get this glowing letter?

stuck furnace
wind willow
stuck furnace
#

Erm, @scenic wind , paste your code here and explain what you're trying to do.

#

There's an active conversation going on.

scenic wind
#
writer.writerows(registration, time, speed, speedingYorN)
woeful salmon
#
writer.writerow([registration, time, speed, speedingYorN])
woeful salmon
stuck furnace
#

Vitally important ๐Ÿ˜„

untold rapids
#
# 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

stuck furnace
#

Hey @untold rapids, you're more likely to get help if you claim a help channel and copy your question over.

untold rapids
#

ok thanks

stuck furnace
#

I like regex, but if someone's learning Python, I wont recommend it.

#

pass is just a no-op.

half silo
#
str.isalnum()```
stuck furnace
#

Yeah, regex is essentially another language.

#

!docs re

wise cargoBOT
#
re

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.

stuck furnace
#

@scenic wind this

#

But learning it is a whole task itself.

#

I learned regex by drawing finite state machines by hand at university ๐Ÿ˜„

stuck furnace
#

@whole bear You can talk here for the time-being.

whole bear
#

yea

stuck furnace
#

The voice-gate is necessary unfortunately to keep trolls out.

#

Wait, working on what? ๐Ÿ˜„

woeful salmon
#

i'm about to sleep so if i help you alone in dms i might have to leave midway

stuck furnace
#

Erm, not sure @celest mantle I'll look.

celest mantle
stuck furnace
#

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.

woeful salmon
ornate thunder
#

k

half silo
#

@woeful salmon @celest mantle

stuck furnace
#

gtg ๐Ÿ‘‹

woeful salmon
#

๐Ÿ‘‹ i'm going to sleep too goodnight

brave steppe
#

@heavy nacelle

brave steppe
#

๐Ÿ‘‹ @stuck furnace

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.

brave steppe
#

I've had that happened too many times lol

faint ermine
#
<input onchange="Math.max(....)" onpaste="this.onchange()" oncut="this.onchange()" onkeypress="this.onchange()" oninput="this.onchange()">
stuck furnace
#

Is that a <center> tag? ๐Ÿ‘€ What year is this?

half silo
brave steppe
#

Also reset that token ๐Ÿ˜ฌ

gaunt lagoon
#

Sorry wrong disc channel

brave steppe
#

๐Ÿ˜ฌ

stuck furnace
#

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.

half silo
#

so no?

#

oh

faint ermine
stuck furnace
#

Hello @heavy nacelle ๐Ÿ‘‹

heavy nacelle
stuck furnace
#

Yeah, you kind of sound underwater Laund.

stuck furnace
heavy nacelle
brave steppe
#

๐Ÿ‘‹ @olive hedge

haughty pier
#

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?

faint ermine
#

i dont think thats a thing. it might just be a spotty connection.

stuck furnace
#

Erm yeah Mina's deafened right now.

brave steppe
#

๐Ÿ‘‹

stuck furnace
#

I like the discoverability.

faint ermine
stuck furnace
#

Alright gtg ๐Ÿ‘‹

somber heath
#

๐Ÿคฆโ€โ™‚๏ธ

vivid palm
#

lolol

somber heath
frosty star
#

Hi everyone

#

hayyy

#

omo

#

anyeonghaseyo

#

noooooooooooooooo\

#

dont do that :'DDDD

#

haha

somber heath
#

Ha!

frosty star
#

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

somber heath
#

Global community.

frosty star
#

it's nice ๐Ÿ™‚

#

Oh imma show you guys something

somber heath
#

Everyone holding hands. Singing songs.

frosty star
#

haha

somber heath
#

But not on vc.

#

Otherwise you get yelled at.

#

๐Ÿ˜

frosty star
#

but this is worth it I promise

#

I puh ro mise

somber heath
#

I get away with small snatches of song here and there.

frosty star
#

Beaver moon yesterday from my backyard

#

that's all

somber heath
#

Beaver moon?

frosty star
#

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

somber heath
#

I've still got you turned right up, but it does seem an improvement on at least the quality.

frosty star
#

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

somber heath
#

Easter time!

#

That's what we're doing these days, isn't it? Celebrating things months and months ahead of time?

somber heath
#

I am, like a lot of people, quite partial to chocolate.

#

Give it to me dark and sweet.

frosty star
#

gochujang man ...

fast umbra
somber heath
#

Tata

frosty star
#

bonjour

fast umbra
#

bonjour

#

comment รงa va?

frosty star
#

je parle pas francais desole

#

mais

#

ca va bien

#

i spose lol

vivid palm
frosty star
#

now I want a telescope

somber heath
#

Unexpected disco floor.

#

Very much a product of throwing stuff at a wall to see what sticks.

somber heath
#

"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.

frosty star
#

functions

#

cartesian plane?

somber heath
#

@dense ibex Why so negative? ๐Ÿ˜

#

That was supposed to be a math joke.

frosty star
#

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

somber heath
#

PEP8 for math?

#

What language?

#

I hate handwritten code.

somber heath
#

Like...it's computer programming.

#

Use a damn computer.

vivid palm
#

lmao

somber heath
#

Unless you can pull it off.

frosty star
#

Yeah I was like... she's writing code on the board? haha

somber heath
#

Then maybe.

#

Offer to teach a class for extra credit.

#

Trig functions.

frosty star
#

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

somber heath
#

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)

vivid palm
somber heath
#

Touchscreens may well become a legacy technology.

frosty star
#

Like not changing the materials for their cables

somber heath
#

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.

somber heath
#

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."

kind pike
#

Hello

somber heath
#

Do they have screens?

kind pike
#

๐Ÿ™Œ yes

#

They are amazing ๐Ÿคฉ

#

apple ecosystem ๐Ÿ˜Œ

somber heath
#

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.

vivid palm
#

hm

kind pike
#

Apple wheels are $1000

somber heath
#

I thought they already had.

crisp wyvern
#

hello hello

somber heath
#

Black.

kind pike
#

Hello @crisp wyvern

somber heath
#

Fine. White.

#

If you want a colour...

#

Hm.

frosty star
#

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

crisp wyvern
#

when you get the text to open as a window and not a terminal for the first time

whole bear
#

i gueesss i have interet issues

haughty pier
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

wet token
#

can u help me with a kivy problem

#

and yeah still looking for Voice verification

#

i been here for a few months

gray tapir
gray tapir
#

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..

woeful salmon
#

SELECT * FROM pg_settings WHERE name = 'port';

frozen jetty
#

class Emploee: def __init__(self) -> None: pass

compact yacht
#

what is something we can work together on in real time?

#

any topic?

#

i can find dataset

frozen jetty
#

!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))

wise cargoBOT
#

@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'?
wet token
#
__init__ not init 
woeful salmon
#

!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
whole bear
#

static type checker

woeful salmon
wet token
#
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

compact yacht
#

self annotating u mean?

wet token
#
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))
frozen jetty
woeful salmon
#

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()
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | woke up!
002 | sleep took 5.023586682975292
wet token
#

@fucntion

woeful salmon
#
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()
frozen jetty
#

I'll come back soon...

whole bear
wet token
#

@timer_decorator> def sleep(): = timer_decorator(sleep)

#

def timer_decorator(func): > def timer_decorator(sleep):

whole bear
#

ah trying to make a syntax for making it to look preety

woeful salmon
#

!e

import time

def timer_decorator(func):
    return "yo"

@timer_decorator
def sleep():
    time.sleep(5)
    print("woke up!")

print(sleep)
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

yo
whole bear
#

@willow lynx hi

wet token
#

!e```py
import time

def timer_decorator():
return "yo"

@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")

print(sleep)

willow lynx
wet token
#

!e ```py
import time

def timer_decorator():
return "yo"

@timer_decorator
def sleep():
time.sleep(5)
print("woke up!")

print(sleep)

wise cargoBOT
#

@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
woeful salmon
#

!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()
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 | woke up!
002 | sleep took 5.025091249961406 seconds
woeful salmon
#

sorry my nose is not giving me an easy time speaking right now ๐Ÿ˜ฆ

wet token
#

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()

woeful salmon
#

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

woeful salmon
#

!voice @crystal latch

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

woeful salmon
#

!resources @wet token

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

woeful salmon
#

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))
crystal latch
#

francophon

woeful salmon
#

lisp uses preffix notation

#

xD

#

it starts to make sense when you understand how it works

#

its scary

crystal latch
#

HHHHHHHH

wet token
#

1337

crystal latch
#

HHHHHHH 42

#

inpt ensias

#

free

woeful salmon
#
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

crystal latch
#

yes i can but how

#

i cant share the screen with u

wise cargoBOT
#

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.

woeful salmon
#

they work in a similar way

#

but are not the exact same

crystal latch
#

its actually approximation od Pi number by MONTE CARLO

#

of*

woeful salmon
#

not """ but ```
for your code

crystal latch
#

wait a minute

woeful salmon
#

i didn't see it was just a docstring

#

lol

wet token
#
 #!/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)) 
woeful salmon
#

yeah ^ like that

woeful salmon
edgy river
#

Hey i m new here
I don't have the permission to speak
Can anyone tell me
What's going on?

woeful salmon
#

time.time() is slow and not accurate

crystal latch
#

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

frozen jetty
#

PV

woeful salmon
#

over 3 10 min blocks

#

and be in the server for more than 3 days

crystal latch
#

i dont to make it shorter but faster

#

hhhhhhh

frozen jetty
#

I like boom

crystal latch
#

hhhhhhhh

#

this

#

is

#

what

#

m doing

#

the script that i sent to u just took the number of point

frozen jetty
crystal latch
#

and return the value of

#

pi

#

ppm image if u know it

#

actually there is no math in my question

#

okey

#

iam

#

gonna say my question

#

in another

#

way