#voice-chat-text-0

1 messages Β· Page 197 of 1

vocal basin
#

ordering each node in the graph in such a way that all arrows are pointing forwards

#

(or upwards here)

#

too lazy to turn it

#

basically, each edge says "a node comes before another node"

#

and sorting linearizes nodes such that each of those constraints holds true

#

!d graphlib.CycleError

wise cargoBOT
#

exception graphlib.CycleError```
Subclass of [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) raised by [`TopologicalSorter.prepare()`](https://docs.python.org/3/library/graphlib.html#graphlib.TopologicalSorter.prepare) if cycles exist in the working graph. If multiple cycles exist, only one undefined choice among them will be reported and included in the exception.

The detected cycle can be accessed via the second element in the [`args`](https://docs.python.org/3/library/exceptions.html#BaseException.args) attribute of the exception instance and consists in a list of nodes, such that each node is, in the graph, an immediate predecessor of the next node in the list. In the reported list, the first and the last node will be the same, to make it clear that it is cyclic.
vocal basin
#

it will go as far as it can without an error (static_order method returns a lazy generator)

#

ad hoc polymorphism?

#

the C++/Java/C#-style of type-based dispatch during compilation

#

choosing a function/method among those with the same name based on the type of the argument

#

(what Rust doesn't allow to do)

lapis brook
#

hello

#

how i will get verified

karmic obsidian
#

No it was just a random name... I didn't have anything in my mind...
It was just a personal project

somber heath
wise cargoBOT
#
Voice verification

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

keen spruce
#

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

somber heath
#

@full venture πŸ‘‹

#

@thick sage πŸ‘‹

thick sage
#

Hello

ruby brook
#

hellloo

somber heath
#

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

somber heath
#

@gusty pendant πŸ‘‹

gusty pendant
#

hello people

hollow perch
#

helloo all

somber heath
#

@outer ibex πŸ‘‹

outer ibex
#

πŸ‘‹

somber heath
#

@gloomy kernelπŸ‘‹

karmic obsidian
#

hey hi everyone

#

@somber heath

#

you there?

somber heath
karmic obsidian
#

oh nw

#

hey @cobalt cloak you from israel?

cobalt cloak
#

ye

karmic obsidian
#

oh that's nice

#

how is everything there?

cobalt cloak
#

hard

karmic obsidian
#

from ur perspective what should be the solution to all this mess?

#

two state or one state?

#

I m just asking out of curiosity tho

cobalt cloak
#

get gaza under israel rule and delte the islamic jihad hamas from the face of the earth

#

one state

#

but it is only because we presented 6 times two state solutions for them but they reject each one

karmic obsidian
#

have that also under israeli control?

cobalt cloak
#

most of the west bank under israeli contorl thank god but still generates a lot of terror attacks on israeli civillians

karmic obsidian
#

I see

#

but tbh honest looking at the demographics

#

i don't think israel would ever get all that region under control

#

I mean it can easily but It would never want to

cobalt cloak
#

yea we co oprate with the palestinian authoreties

#

but never with terrorists

karmic obsidian
#

yeah I get it

#

that makes sense

cobalt cloak
#

but the idf is getting ready with tanks and soldiers all over its borders it called the reserves wich mean my uncles are getting drafted

karmic obsidian
#

uncles ?

#

I didn't get ?

#

what does that mean?

cobalt cloak
#

my mom's brothers

#

sorry i have one mom miss wrote it

karmic obsidian
#

Oh I get it... I thought that's kind of military term that is used in israel

cobalt cloak
#

nah

#

im not old enugh to know millitary terms im only 14

#

i only know the basics

karmic obsidian
cobalt cloak
#

we try but they attack

karmic obsidian
#

lmao

cobalt cloak
#

lmfao

somber heath
#

Nobody is too young for war. Even the unborn shoulder their share.

karmic obsidian
#

great that you here @somber heath

cobalt cloak
#

i have been through contless wars

somber heath
karmic obsidian
#

btw I read some where that there are lot of bunkers in israel... I wonder how good they are
when something like this happens

karmic obsidian
somber heath
cobalt cloak
#

its the hardest one yet they invaded isral there are vids of the terorrists going through israli citys killing people and gettin hold of a police station they ran away and hide in the city so there are footages of the idf tanks rolling down the streets

#

atleast 600 dead

#

and 2000 injured the death toll will surlly go up sadly

karmic obsidian
#

are you working ?

#

or studying?

fallen edge
cobalt cloak
#

ye but not confirmed numbers

karmic obsidian
somber heath
karmic obsidian
cobalt cloak
#

i saw pics of the bodies on the streets and vids of the terorrists nocking on doors impersonating idf soldiers and holding ak 47 and rpg

karmic obsidian
#

I am trying to build a time tracking tool for managers in large organisations to track basic activity of employees like login and logouts ...
I am thinking of using python and sql ...
you think I can do that?

somber heath
karmic obsidian
#

you think it's feasable to choose python and sql only?? or what should be using to build this thing?

somber heath
#

It's not what I deal with.

#

A database sounds like a reasonable component.

karmic obsidian
#

then what is ur expertise in?

somber heath
#

Employee performance is quantum.

#

Kind of.

#

If you try to overengineer performance metrics, you'll impact morale and thus performance.

#

In trying to measure something, you can alter it.

pallid knoll
#

I don't have permission to speak in Voice Chat 0

somber heath
#

There's a balance to be struck.

#

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

karmic obsidian
#

!voice

somber heath
#

How would you measure the performance of a programmer?

karmic obsidian
karmic obsidian
somber heath
#

Interesting answer.

karmic obsidian
#

that's what I would do

cobalt cloak
#

soldiers getting sent to the front

karmic obsidian
cobalt cloak
alpine crow
#

I mean u would need like an actuary to be looking over all the submitted code to determine the complexity

#

and idk I feel a lot of the actual good developer comes from communication with the team and clearly documenting too

#

bc if nobody can understand ur code I mean good job security ig

#

but also useless if u leave

dry jasper
obtuse cape
#

he is a really good teacher

faint raven
#

daddy admin please give me streaming power! power-up noise haaaaargh!!

loud anvil
# karmic obsidian you think it's feasable to choose python and sql only?? or what should be using ...

i agree with opalmist, but i'd like to try and answer, coz its for learning purpose and i believe managers know not to do this with programmers . From my little knowledge in python.

way 1 : I wud deploy a django application on Nginx with uWSGI. Using django u can build and host any service as a website. Will use postgress as a database connected to django, coz its free. U can deploy this in a docker container and host it in heroku or any cloud service.

way2 : u can build an application monitoring library using python. Make the client install it , set it to start and run in the background whenever the machine reboots. Beam back the collected metrics to your backend server django or a cloud service like aws where u can analyse the metrics to derive insights.

loud anvil
#

requires learning about networking stuffs like sockets , ip , subnets , vpc etc , some django, fastapi , autowrapt bootstrap lib to monkey patch monitoring code , setup tools lib to package ur application monitoring library , lil nginx , docker and any cloud service .

somber heath
#

@torn plinth πŸ‘‹

torn plinth
#

@somber heath i gotta type 50 messages to talk?

#

um

#

fair enough

#

how

#

should

#

i

#

speed this

#

up

#

verification speedrun?

#

totally wont...

#

well

#

Oh thast good then

#

Alright

#

wait

#

when I verify can I share screen?

#

womp

#

I wanted to ask but how I get my decimals to round to like idk the hundredths rather than idk like tenth*

#

that is not good

#

we can't have nice things womp womp

somber heath
#

!d round

wise cargoBOT
#

round(number, ndigits=None)```
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is `None`, it returns the nearest integer to its input.

For the built-in types supporting [`round()`](https://docs.python.org/3/library/functions.html#round), values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally close, rounding is done toward the even choice (so, for example, both `round(0.5)` and `round(-0.5)` are `0`, and `round(1.5)` is `2`). Any integer value is valid for *ndigits* (positive, zero, or negative). The return value is an integer if *ndigits* is omitted or `None`. Otherwise, the return value has the same type as *number*.

For a general Python object `number`, `round` delegates to `number.__round__`.
somber heath
#

!f-string

wise cargoBOT
#
Format-strings

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

somber heath
#

!d str.format

wise cargoBOT
#

str.format(*args, **kwargs)```
Perform a string formatting operation. The string on which this method is called can contain literal text or replacement fields delimited by braces `{}`. Each replacement field contains either the numeric index of a positional argument, or the name of a keyword argument. Returns a copy of the string where each replacement field is replaced with the string value of the corresponding argument.

```py
>>> "The sum of 1 + 2 is {0}".format(1+2)
'The sum of 1 + 2 is 3'
```  See [Format String Syntax](https://docs.python.org/3/library/string.html#formatstrings) for a description of the various formatting options that can be specified in format strings.
torn plinth
#

thats sick

#

Can I share images?

#

W

#

hmm ok

#

Kinda yeah

somber heath
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

somber heath
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

torn plinth
#

so basically (code in here)

#

ok so I dont know if my professor wants me to keep the decimals from rounding or not but in the example he has decimals not round and I wanna play it safe as python auto rounds or at least in the website im using

#

like a what

#

ninja?

#

OHHHH

#

I hate them bc they seem to like me a lot and they get my blood a lot

#

Im one requirement off

#

the 10 block sum sum

#

how long you been coding

#

how many languages you learning

somber heath
#

!e py v = 0.123456789 print(v) print(f'The number is {v:.3f}. Bye.') print(f'The number is {v:.2f}. Bye.') print(f'The number is {v:.1f}. Bye.')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 0.123456789
002 | The number is 0.123. Bye.
003 | The number is 0.12. Bye.
004 | The number is 0.1. Bye.
torn plinth
#

or have learnee

#

learned*

#

alright but what is python is good at. I heard finance

#

Yeah I want to know a little bit of coding even though my major might not completely need it

#

I heard Python was pretty easy to learn and I thought if it was it was probably gonna help when I might translate to other languages

#

womp

#

Dw dw

#

whats with excel and python

#

it looks like it being hyped

#
Organisms = int(input("Starting number of organisms:"))
Rate = float(input("Average daily increase (as a percent. Ex: 20 = 20%):"))

print("Day Approximate".ljust(15), "Population".ljust(20))
print("===================================")

DayApproximate = 1

while DayApproximate <= Days:
    Population = Organisms * (1 + (Rate*.01)) ** DayApproximate
    print(str(DayApproximate).ljust(15), str(round(Population, 2)).ljust(20))
    DayApproximate += 1```
shy raft
#

guys why this not work :(

def say(s):
  print('fish')

person.say('hello!', 123)
if True:
  for _ in range(a bajillion):
    pass
somber heath
#

!e ```py
def say(s):
print(s)

say(123)
say(456, 789)```

wise cargoBOT
#

@somber heath :x: Your 3.12 eval job has completed with return code 1.

001 | 123
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 5, in <module>
004 |     say(456, 789)
005 | TypeError: say() takes 1 positional argument but 2 were given
somber heath
#

The say function here has only one parameter, unlike print, which takes an arbitrary number of positional parameters.

#

!e ```py
def func(*args):
print(args)

func(1)
func(1, 2)
func(1, 2, 3)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | (1,)
002 | (1, 2)
003 | (1, 2, 3)
somber heath
#

In this fashion.

#

!e ```py
class MyClass:
def my_method(self, arg):
print(arg)

instance = MyClass()
instance.my_method(123)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

123
somber heath
#

!e py print('A') for _ in range(5): print('B') print('C')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | A
002 | B
003 | B
004 | B
005 | B
006 | B
007 | C
somber heath
#

Though I do get the sense you may be...monkeying around. πŸ’₯😎

#

@shy raft

shy raft
#

πŸ’

somber heath
#

@outer badger πŸ‘‹

outer badger
#

oh i cant speeak lol

somber heath
#

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

outer badger
#

yeah i see

vocal basin
#

I was trying to make something with Python+JS ~5 hours ago
it was so difficult I decided to sleep instead

outer badger
#

thanks

vocal basin
#

I'll probably just not attempt it again for some time

wise loom
#

I need to write some code that does YAML -> XLSX/ODT

#

and it's so boring that I can't get myself to do it

#

I can also justify why I have to write it.. LibreOffice as mature as it may be, after 3000 rows starts getting super-slow.
I mean it already is slow for a few hundred rows. I also don't understand why it's slower on Slackware than it was on Debian.
All these questions I'm asking myself. Of course I could just put it on Google Docs instead but..
To be honest I've even looked at https://www.visidata.org/ but Visidata is also slightly slow, and I have to learn how to use it
which I haven't because I haven't yet allocated time for that.

somber heath
#

@haughty fog πŸ‘‹

wise loom
#

I've also noticed I cling to offline software. Like there's something in the back of my mind saying "Don't trust the cloud too much".
Maybe I'm getting super-old idk..

vocal basin
wise loom
#

But I mean, if Visidata can handle this table (yes with less features but still a fully capable text spreadsheet editor).. and Visidata is Python which is slow compared to Java, like.. how is t possible that Libreoffice is so slow when it's a mix of Java and C++ under the hood.
And they had sooo much time to weed out bugs.

vocal basin
#

so far didn't crash

#

but that one doesn't include functions and stuff

#

(the table)

#

I might've broken it

wise loom
vocal basin
#

it's loading gradually

wise loom
#

but their UI was snappy?

vocal basin
#

it's still rendering

#

calculation was basically instant, but graphics are struggling

wise loom
#

right, same feeling here, something to do with the UI

vocal basin
#

!e

from math import comb
print(float(comb(5011,4999)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

5.164536903979932e+35
vocal basin
#

seems correct

#

it crashed and lost all data

#

(likely doesn't auto-save)

#

Excel's response to trying to open the file

wise loom
#

Christ, we have no viable spreadsheet solution in 2023, we're F-ed

#

@vocal basin but it is somewhat worrying that in order to insert a row in the middle of a large table, all other cells need to be pushed down?
there must be a data structure or some physical layout to hold the rows that doesn't require pushing all rows down like that..
it reminds me of the Rope data structure compared to the regular String data structure.
a Rope can have fast inserts no matter how long the string is.

vocal basin
#

general "it just works" data structure for that would be a tree

#

but moving everything is often faster than the clever approach

#

(especially if the table is represented as a list of pointers to rows)

vocal basin
# vocal basin

something like this would still require recomputing the whole table if first cell changed

#

I guess spreadsheet software on the inside does some graph-based logic to determine what and when to update

vocal basin
vocal basin
#

same reason why b-trees are chosen over avl

whole bear
#

!voice

vocal basin
#

!d graphlib

wise cargoBOT
vocal basin
#

not sure if this can be made to work for evaluation graphs

wise loom
#

@whole bear you have 19 views on that piano video, are you an influencer?

vocal basin
whole bear
#

it's not me

#

I like this music

#

THat person is not me

#

wow

#

so many people

#

How can I check How many messgs do i need to cmplete the criteria for voice verification?

vocal basin
#

#voice-verification has criteria described
!user command in #bot-commands shows how many messages the bot thinks you've sent

whole bear
#

thanks bro

vocal basin
#

(for storing a singular mutable text, not functional-style immutable strings with reference-counted nodes)

karmic obsidian
#

appreciate it

#

hey @somber heath I can talk now...

#

big moment for me lol

somber heath
#

@trim night πŸ‘‹

thin fox
#

opal I like your music taste, do you have any ymusic playlist?

somber heath
#

Another band you can look up is Fish in a Birdcage.

thin fox
#

yea that one was lit, I listened to it last time, when you shared it

#

this one was recomended right after listening to one of the songs you had shared...

#

the lyrics are perfectly relatable to me right now

wind raptor
#

Hey @desert wolf πŸ‘‹

desert wolf
whole bear
#

hi

#

I need three more.

thin fox
#

you seem excited to speak

#

Hii lobhi!

whole bear
#

not really

#

but i just want that role

#

so I can speak

thin fox
#

ah alright

whole bear
#

yah

#

man

thin fox
#

there you go!

#

you got it?

whole bear
#

still can't speak

#

😦

thin fox
#

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

whole bear
#

done

#

thanks bruda

whole bear
thin fox
#

bye~

karmic obsidian
#

@somber heath sorry, I'll restart my laptop and come back

#

sorry once again

somber heath
wind raptor
#

Hey @warped raft πŸ‘‹

warped raft
#

how is it going

#

buddy

wind raptor
#

Good thanks, how about you?

warped raft
#

doing good just submitted the anchoring script

#

man it was a fking long job

#

and tedious too

wind raptor
#

Did you make it funny?

warped raft
#

i would rather say no
after all it is a formal event

wind raptor
#

formal events can have humour

warped raft
#

hmmm

#

my didn't let's se if it make its to the podium or it is modififed from head to tale

#

though it had a very nice quote

wind raptor
#

What was it for again?

somber heath
#

@idle monolith πŸ‘‹

warped raft
#

WE DACNE FOR HAPPINESS
WE DANCE FOR TEARS

#

WE DANCE FOR MADNESS
WE DANCE FOR FEARS

#

WE DANCE FOR HOPES
WE DANCE FOR SCREAMS

#

WE ARE DANCERS
WE CREATE DREAMS

warped raft
wind raptor
#

Nice

#

What is "annual day"?

warped raft
#

it is an annual event in a school' calendar
where there are various dances,acts,songs,speeches etc.

wind raptor
#

Awesome. Sounds fun

warped raft
#

yeah it would be

#

our out fit is something similar to this

wind raptor
#

Looks great for dancing

warped raft
#

it's not for dancing

#

it's for me anchoring

wind raptor
#

πŸ‘

karmic obsidian
#

hey hi @empty leaf

empty leaf
#

hello @karmic obsidian

somber heath
#

@tiny mortar πŸ‘‹

tiny mortar
#

i cant talk

#

hello

somber heath
#

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

tiny mortar
#

!voice

karmic obsidian
#

you like functional programming?

tiny mortar
#

hiii

tiny mortar
karmic obsidian
#

cool

#

which one is ur fav?

tiny mortar
#

but oop is the best

#

whyyy

#

why i cant talk

karmic obsidian
#

you would have to fullfill some criteria

#

go read here

tiny mortar
#

i do

#

!voiceverify

karmic obsidian
#

go put that in the bot

tiny mortar
#

i put in bot-commands but nothings happen

#

what is c-python?

karmic obsidian
#

hey hi @uncut galleon

somber heath
#

@uncut galleon πŸ‘‹

somber heath
#

@solid musk πŸ‘‹

solid musk
#

Hello

somber heath
#

@hybrid flax πŸ‘‹

hybrid flax
#

yo

#

what u guys abt tho

karmic obsidian
#

finding ways

solid musk
#

ah ok, just read the rules, i have to write at least 50 messages before talking in VS, right ?

#

makes sense

somber heath
#

@whole bear πŸ‘‹

candid juniper
#

hello do you know what does dance means in " can urban engineers learn from dance"?

#

this is the full context

karmic obsidian
#

hey @somber heath you know what this pycache file mean?
I run some scripts and that is created in a dir but sometimes when I am running simple script it's not created?
you know why is there a inconsistency there?

candid juniper
#

please help me. i asked google and dictionaries but

rugged root
#

I've never heard of that phrase

candid juniper
willow light
#

This reads like ChatGPT output…

somber heath
candid juniper
candid juniper
#

cam 15 pags 37

somber heath
# candid juniper what?

I think that, if the author is a person, that person needs to look up the meaning of the word brevity.

candid juniper
#

.wa s define brevity

viscid lagoonBOT
candid juniper
#

@somber heath i think may be it really meant PepeJam PepeJam PepeJam stn_buncheer stn_buncheer stn_buncheer

rugged root
karmic obsidian
gentle flint
#

just the normal definition

#

as you'll also see if you read paragraph B of the paper

karmic obsidian
#

typosquatting

somber heath
#

Zonk

rugged root
#

Night night

candid juniper
rugged root
#

@lilac kiln Hello. If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

candid juniper
#

i like discord very much. im proud of myself advoiding using facebook as much as possible and then meet discord when i was 13

rugged root
#

@upper crow Yo

candid juniper
#

discord is the best social media i know

#

i heard that there is twitter and twitter require money to use it. in my opinion that is very good. if ur not rich then just use other social media such as thread.

lilac kiln
candid juniper
#

twitter will be clean and we wont meet troll on twitter. thats may be perfect? if you see no troll or bot or spam on twitter anymore thats entirely worth your money

#

look at how much effort people took to keep this community toxic free

obsidian socket
#

Can you please write down the command here

stuck furnace
#

Hello πŸ‘€

rugged root
#

!u

wise cargoBOT
#
Mr. Hemlock (mr.hemlock)

hypesquad_balance early_supporter discord_certified_moderator

User information

Created: <t:1443481946:R>
Profile: @rugged root
ID: 98195144192331776

Member information

Joined: <t:1525291749:R>
Roles: <@&267628507062992896>, <@&807415650778742785>, <@&267629731250176001>, <@&831776746206265384>, <@&587606783669829632>, <@&797891034906099752>, <@&267630620367257601>, <@&295488872404484098>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>

Activity

Messages: 98,066
Activity blocks: 19,547

Infractions

Total: 32
Active: 0

rugged root
#

Or !user

obsidian socket
#

Ow thanks

#

πŸ˜‚ πŸ‘πŸ»

#

!u

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

karmic obsidian
#

hey hi @stuck furnace

stuck furnace
#

What you all up to?

#

Erm, not much

#

Β―_(ツ)_/Β―

rugged root
#

Weird. I just noticed, I used to be double jointed in my left thumb

#

I am not anymore

#

Probably for the best

#

@vocal basin Sup

vocal basin
#

trying to decide whether or not to resume doing the recent side-project

rugged root
#

What's the project in question?

vocal basin
#

tool to edit a text document from multiple clients

#

but, like, simple

#

it should work on mobile too

rugged root
#

@idle monolith Yo

vocal basin
#

I'm making it so I can edit something both from PC and Android

#

would probably be web-only

#

I have a server, so that's not the problem

rugged root
#

@whole bear Yo

whole bear
#

Hi

#

Good hru?

#

Oh I know about that

#

There is a certain song stuck in my mind

#

I just wanna tell you how I'm feeling

#

Gotta make you understand

vocal basin
#

rabbitmq is also good if some of the processes die halfway through dealing with a message

whole bear
#

Never gonna give you up

#

Never gonna let you down

vocal basin
#

yes

#

not really good for journaling

whole bear
#

How many people can talk on here?

#

Yes

vocal basin
#

because messages are supposed to be dropped eventually

whole bear
#

Alisa can you talk on VC?

vocal basin
#

closer to database journaling not journaling databases, yes

whole bear
#

Then why don't you talk?

#

Ok

#

What is the basics of Cybersecurity?

vocal basin
#

avoiding having to deal with cybersecurity

#

that's the basic

#

I'm using ZeroMQ for communicating between web server and a worker process (singular)

whole bear
#

Anyone know about PowerShell?

#

Can you tell me?

#

What is it used for?

vocal basin
#

main Windows CLI (more user-friendly compared to cmd.exe), but also works on other systems

whole bear
#

Bash vs PowerShell

#

Which is better?

vocal basin
#

it's more likely to have bash pre-installed on a Linux system

whole bear
#

What is the best OS system?

vocal basin
whole bear
#

Windows, Mac, Linux

vocal basin
#

SunOS 4.1

whole bear
#

I've been Windows baby since I was a baby

#

Although I want to learn about other OS system

#

Like Mac and linux

#

@rugged root

rugged root
#

Both are useful

#

Ubuntu or Debian are handy to know for server usages

vocal basin
outer badger
# whole bear Bash vs PowerShell

Well they both do simular things, but Ps is made for windows scripting. And bash is default for linux although you can run it on windows to

vocal basin
#

powershell works on linux too

whole bear
#

Yeah I know

vocal basin
#

ubuntu installer even suggests it

#

ubuntu server installer bloatware page

outer badger
# whole bear Windows, Mac, Linux

Depends on what you want to use the OS for, for programming generally:

linux > mac > windows unless game dev then windows > mac > linux

whole bear
outer badger
whole bear
#

Automation seems fun

vocal basin
#

does alpine have bash preinstalled?

whole bear
#

I just wanna automate stuff

vocal basin
#

there is sh, which is less advanced

whole bear
#

hi

#

goig greaaaaaaaaaaat

#

how bout u?

#

I feel everyone here is married

#

like*

#

I'm 18

vocal basin
#

I meant this type of alpine

alisa@parrrate:~$ docker run -it --rm alpine
/ # bash
/bin/sh: bash: not found
/ #
whole bear
#

Besides you

vocal basin
#

ubuntu image has bash installed

whole bear
#

Mr. Hemlock is married right?

vocal basin
#

alpine has ash

whole bear
#

@rugged root

whole bear
#

nice to hear that

#

Is he/she nice?

vocal basin
#

At least 128 MB of RAM
too much

whole bear
#

Lucky

vocal basin
#

At least 0-700 MB space on a writable storage device.
too much

whole bear
#

Unfortunately I don't have a bff

#

may god give you both lot of happiness.

vocal basin
#

it can run without installation, ig

#

4GB?

#

just use ZFS

whole bear
#

Here is a good video I found about powershell

vocal basin
#

I think, yes, for ext4 there is a way

whole bear
#

Goddamiy

#

Goddamit

vocal basin
#

fun fact: my IP, when opened in a browser, redirects to rick roll proper

vocal basin
whole bear
#

Did anyone get rickrolled?

vocal basin
#

just don't install anything, stuff everything into docker, even desktop

rugged root
vocal basin
#

something goes wrong -> burn down everything

whole bear
#

God Dammit πŸ˜‚

rugged root
#

<site_link_here>

whole bear
#

Wait what do I do?

vocal basin
#

markdown moment

whole bear
vocal basin
#

this uses both and <>

whole bear
#

Alisa Goddamit

#

I got rick rolled

vocal basin
#

right click -> copy text
to see the syntax

whole bear
#

I am still learming

vocal basin
#

is pico the smallest raspberry pi?
that's 264KB RAM

rugged root
#

@crystal jasper @plucky socket Yo

#

How goes it

whole bear
#

Ok bye yall

vocal basin
#

still ARM, but already crossing into microcontroller category rather than just small pc

plucky socket
#

Hey

molten pewter
#

Khanmigo

#

Khanamigo

vocal basin
#

wait wha
why is my used space is suddenly 74% instead of 84%

#

and that's not even Windows

#

I have 21GB free on Windows' system drive
"good enough"

whole bear
#

Is Cryptography Important for Cybersecurity?

vocal basin
#

awareness of algorithms and what systems use which -- that definitely is important

whole bear
#

What do I need to learn if I want to start cybersecurity?

vocal basin
#

as in understanding why SSL 1.0 or something similar shouldn't be used

whole bear
#

@rugged root

dry jasper
#

also for steganography etc

#

there are multiple uses of cryptography in cyber security

vocal basin
#

steganography is, like, <0.0001% of cybersec

whole bear
#

Animmo pls talk in VC

dry jasper
whole bear
#

I mean I can live without coffee

#

But it just helps in the morning

#

When I want to stay awake

#

I can't live without Ice cream though

#

@rugged root

#

πŸ˜‚

#

Anyone wanna play chess?

#

@molten pewter Wanna play chess?

vocal basin
vocal basin
whole bear
#

NO

#

No*

vocal basin
#

another funny mode

quasi yacht
#

why do i need py if i know js/ts?

whole bear
vocal basin
#

knightmare

#

it's very offset in black's favor

whole bear
#

πŸ˜‚

vocal basin
#

it's -16 or -18 evaluation at the start, I think

whole bear
#

Wanna play this?

vocal basin
dry jasper
#

trunkrs

karmic obsidian
#

hey can anyone suggest me some github repo which is beginner friendly ?

#

I am talking of something related to python

dry jasper
whole bear
#

Alisa gg

vocal basin
#

I was never winning the entire game

whole bear
#

gg tho

#

@rugged root wanna play chess?

vocal basin
whole bear
#

@amber raptor Wanna chess?

rugged root
#

That really surprises me for some reason

#

Oooo

#

That's really cool, actually. Didn't know that there's a list like this

rugged root
#

Found it when looking through like "Contribute to your first project"

amber raptor
rugged root
#

Look for tags like "Good first issue"

#

That'll help

karmic obsidian
#

thank you Hemlock

rugged root
#

Happy to help

karmic obsidian
#

if that's ur real name tho

rugged root
#

Close enough

karmic obsidian
#

cool

rugged root
#

@pulsar light What were you wanting to ask?

pulsar light
#

ok

#
#test
#guessing game:
import random

correct_guess = False
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
s_n = random.choice(list1)
guess = 1 
guess_limit= 5
v = input("   \n     Hello, Tell me you name.  ")
print(s_n)

try:
    w= int(input('   \nHi '+ v + '. Lets play a game!. Im thinking of a number between 1 to 15. You think you are able to guess it?, just so you know you have 5 tries.  \n  \n  Take a guess:   '))
    while guess <= guess_limit:
        
        if w == s_n:
                correct_guess = True
                break
        elif s_n + 1<= w <=s_n +4:
            print('   \nYour guess was a little bit too high, try again:   ')
        elif s_n - 5 <= w <= s_n - 1:
            print("   \nYour guess was a little bit too low, try again:   ")
        elif w <= s_n - 6:
            print("   \nYour guess was way too low, try again:   ")
        elif s_n + 4 <= w <= s_n + 9:
            print('   \nYour guess was way too high, try guessing lower:   ')
        elif w > 15:
            print("   \nYou can only type numbers between 1 and 15!.")
            w = int(input('    \n Take another guess:    '))
            continue
        guess += 1 
        w = int(input('    \n Take another guess:    '))
    if correct_guess:
        print("   \nExcellent job " + v + ", You guessed right!.   ")
        if guess == 1:
            print("   \n  You guessed my number in " + str(guess) + " try!.")
        else:
            print("   \n  You guessed my number in " + str(guess) + " tries!.")
    elif guess > guess_limit:
            print("\nSorry, " + v + ", you've run out of guesses. My number was " + str(s_n) + ".")  

except ValueError:
    print('   \nYou can only type a number!')
#

if i lost 4 guesses

and got the last one right

i get printed loss

#

@rugged root

rugged root
#

Thinking

pulsar light
#

alright)

rugged root
#

So the issue is that you're asking for another input after incrementing the guess count.

guess += 1
w = int(input('    \n Take another guess:    '))

So your guess count may go over the limit, meaning it'll hop out of the while loop before it can reach the:

if w == s_n:
  correct_guess = True
#

So correct guess is never updated

#

I would scoot the guess input to the top of the loop rather than the bottom

pulsar light
#

wait so where should i put w

rugged root
#
while guess <= guess_limit:
    w = int(input('Make a guess'))
#

That way, it won't ask you after you've already ran out of guesses

#
x = 5
x = x + 3
# is the same as
x += 3
#

Explaining that to Scorpion, just to give you context Rayane

pulsar light
#

hahaha i wondered

rugged root
#

@rose shadow If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

#

@sinful parrot Yo

sinful parrot
#

hello

#

could someone help me install a package its not really python related but maybe u can help

rugged root
#

What're you trying to do?

sinful parrot
#

so i want to get the data dumps from this music database discogs into a postgres database

#

theres this tool to accomplish this

#

and i cant get it to work lol

rugged root
grim parcel
novel tangle
#

nice

gentle flint
rugged root
#

So absurd

#

Skigypt

#

Skegypt

pulsar light
#

@rugged root ```py
#test
#guessing game:
import random

correct_guess = False
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
s_n = random.choice(list1)
guess = 1
guess_limit= 5
v = input(" \n Hello, Tell me you name. ")
print(s_n)
z = int(input(' \n Take a guess: '))

try:
w= print(' \nHi '+ v + '. Lets play a game!. Im thinking of a number between 1 to 15. You think you are able to guess it?, just so you know you have 5 tries.')
while guess <= guess_limit:
w = int(input(' \n Take another guess: '))
if w == s_n and z == s_n:
correct_guess = True
break
elif s_n + 1<= w and z <=s_n +4:
print(' \nYour guess was a little bit too high, try again: ')
elif s_n - 5 <= w and z<= s_n - 1:
print(" \nYour guess was a little bit too low, try again: ")
elif w <= s_n - 6:
print(" \nYour guess was way too low, try again: ")
elif s_n + 4 <= w and z<= s_n + 9:
print(' \nYour guess was way too high, try guessing lower: ')
elif w > 15 and z >15:
print(" \nYou can only type numbers between 1 and 15!.")
w = int(input(' \n Take another guess: '))
continue
guess += 1
if correct_guess:
print(" \nExcellent job " + v + ", You guessed right!. ")
if guess == 1:
print(" \n You guessed my number in " + str(guess) + " try!.")
else:
print(" \n You guessed my number in " + str(guess) + " tries!.")
elif guess > guess_limit:
print("\nSorry, " + v + ", you've run out of guesses. My number was " + str(s_n) + ".")

except ValueError:
print(' \nYou can only type a number!')

#

what do u think about this

#

there is a problem tho

rugged root
#

In the:

elif w > 15 and z > 15:
  print("   \nYou can only type numbers between 1 and 15!.")
  w = int(input('    \n Take another guess:    '))

That input is redundant

rugged root
#

Since you're asking for input at the top of the loop now, you don't need to ask it before you go back to the top

pulsar light
#

ahh yes

#

but i have a bigger problem

rugged root
#

Shoot

pulsar light
#

when i run the code z just gets printed

#

because i put it on the top

rugged root
#

Oh I see

#

So infinite loop issue

#

I'd just do a smaller while loop at the top specifically to check if that value is within the range you want

novel tangle
#

nice story

pulsar light
#

can u provide me with the code)

rugged root
#

Wait why do you need z?

pulsar light
#

i need it so

#

when i get first msg i get take a guess

#

but if i get it wrong ill get take "another" guess

tacit iris
#

what's up guys

#

yeah currently stuck in some fastapi bullshittery rn 😦

rugged tundra
rugged root
#

So I'd get rid of z, and do this instead:

    while guess <= guess_limit:
        if guess =< 1:
            w = int(input('    \n Take a guess:    '))
        else:
            w = int(input('    \n Take another guess:    '))
        ...
#

Wait, that logic might be off

#

But you get what I'm trying to do right?

pulsar light
#

omg

#

that is just smart

#

u are 20000000000 iq

rugged root
#

Just comes with experience

pulsar light
#

bro

rugged root
#

Oh also

pulsar light
#

20 years?

rugged root
#

!f-strings

wise cargoBOT
#
Format-strings

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

rugged root
#

Use f-strings instead of string concatenation

tacit iris
#

lmao I once got an F on an assignment because I used f-string

rugged root
#

You'll thank yourself

#

Wait seriously?

#

Laaaaaame

tacit iris
#

yes

#

because "they didn't teach f-string yet"

#

and they never touched f-string ever again

#

so

#

I call bullshit

#

yeah but the prof took off the entire credit for missing a space or something

#

so I would say she was the crazy one

#

tbh

#

I worked as a TA for the same prof

#

and my job was easier

#

coz I just hash the stdout and the student's answer don't match

#

I just give 0

#

30 lines of python and it's done

wise cargoBOT
#

@silent sequoia :white_check_mark: Your 3.12 eval job has completed with return code 0.

Useless use of lambdas: <function <lambda> at 0x7efc0064ea20>
tacit iris
#

lol

rugged root
#

!e

java = f"Useless use of lambdas: { (lambda x: x*2)(4) }"
print(java)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.

Useless use of lambdas: 8
tacit iris
#

oh what time is it for you all?

#

1301?

#

same

#

2001 for me

novel tangle
#

2332

tacit iris
#

huh

#

I never knew it is possible to implement a whole browser engine from scratch these days

#

oh this one

rugged root
tacit iris
#

LOL

#

Oh it's in the main serenityos repo as well

#

interesting

lavish rover
tacit iris
#

WASM support?

#

wow

rugged root
tacit iris
#

yoooo

#

this repo is a gem

#

well not a literal gem

#

it's a python server not a ruby one

#

but

rugged root
pulsar light
#

@rugged root

#
#test
#guessing game:
import random

correct_guess = False
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
s_n = random.choice(list1)
guess = 1 
guess_limit= 4
v = input("   \n     Hello, Tell me you name.  ")
print(s_n)


try:
    w= print('   \nHi '+ v + '. Lets play a game!. Im thinking of a number between 1 to 15. You think you are able to guess it?, just so you know you have 5 tries.')
    while guess <= guess_limit:
            if guess <= 1:
                w = int(input('    \n Take a guess:    '))
            else:
                
                z = int(input('    \n Take another guess:    '))

            if w == s_n or z == s_n:
                correct_guess = True
                break
            elif s_n + 1<= (w or z) <=s_n +4:
                print('   \nYour guess was a little bit too high, try again:   ')
            elif s_n - 5 <= (w or z)<= s_n - 1:
                print("   \nYour guess was a little bit too low, try again:   ")
            elif w <= s_n - 6 or z <= s_n - 6:
                print("   \nYour guess was way too low, try again:   ")
            elif s_n + 4 <= w or z<= s_n + 9:
                print('   \nYour guess was way too high, try guessing lower:   ')
            elif w > 15 or z >15:
                print("   \nYou can only type numbers between 1 and 15!.")
                continue
            guess += 1 
            if correct_guess:
                print("   \nExcellent job " + v + ", You guessed right!.   ")
            if guess == 1:
                print("   \n  You guessed my number in " + str(guess) + " try!.")
            else:
                print("   \n  You guessed my number in " + str(guess) + " tries!.")
            if guess > guess_limit:
                print("\nSorry, " + v + ", you've run out of guesses. My number was " + str(s_n) + ".")  

except ValueError:
    print('   \nYou can only type a number!')
rugged root
#

No no

pulsar light
#

it didnt work(

rugged root
#

You don't need z

pulsar light
#

i need w?

rugged root
#

Yeah

gentle flint
#

zwz

#

wzw

rugged root
#
s_n + 1<= (w or z) <=s_n +4:
#
s_n + 1 <= w <= s_n + 4
pulsar light
tacit iris
#

why is the continue clause

#

only in the larger than 15 case

pulsar light
#
#test
#guessing game:
import random

correct_guess = False
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
s_n = random.choice(list1)
guess = 1 
guess_limit= 4
v = input("   \n     Hello, Tell me you name.  ")
print(s_n)


try:
    w= print('   \nHi '+ v + '. Lets play a game!. Im thinking of a number between 1 to 15. You think you are able to guess it?, just so you know you have 5 tries.')
    while guess <= guess_limit:
        if guess <= 1:
            w = int(input('    \n Take a guess:    '))
        else:
                
            w = int(input('    \n Take another guess:    '))

            if w == s_n:
                correct_guess = True
                break
            elif s_n + 1<= w <=s_n +4:
                print('   \nYour guess was a little bit too high, try again:   ')
            elif s_n - 5 <= w <= s_n - 1:
                print("   \nYour guess was a little bit too low, try again:   ")
            elif w <= s_n - 6:
                print("   \nYour guess was way too low, try again:   ")
            elif s_n + 4 <= w:
                print('   \nYour guess was way too high, try guessing lower:   ')
            elif w > 15:
                print("   \nYou can only type numbers between 1 and 15!.")
                continue
            guess += 1 
        if correct_guess:
                print("   \nExcellent job " + v + ", You guessed right!.   ")
        if guess == 1:
                print("   \n  You guessed my number in " + str(guess) + " try!.")
        else:
                print("   \n  You guessed my number in " + str(guess) + " tries!.")
        if guess > guess_limit:
                print("\nSorry, " + v + ", you've run out of guesses. My number was " + str(s_n) + ".")  

except ValueError:
    print('   \nYou can only type a number!')
tacit iris
#

wait

pulsar light
tacit iris
#

lines starting from if w == s_n: must be dedented?

pulsar light
#
#test
#guessing game:
import random

correct_guess = False
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
s_n = random.choice(list1)
guess = 1 
guess_limit= 4
v = input("   \n     Hello, Tell me you name.  ")
print(s_n)


try:
    w= print('   \nHi '+ v + '. Lets play a game!. Im thinking of a number between 1 to 15. You think you are able to guess it?, just so you know you have 5 tries.')
    while guess <= guess_limit:
        if guess <= 1:
            w = int(input('    \n Take a guess:    '))
        else:
                
            w = int(input('    \n Take another guess:    '))

        if w == s_n:
                correct_guess = True
                break
        elif s_n + 1<= w <=s_n +4:
                print('   \nYour guess was a little bit too high, try again:   ')
        elif s_n - 5 <= w <= s_n - 1:
                print("   \nYour guess was a little bit too low, try again:   ")
        elif w <= s_n - 6:
                print("   \nYour guess was way too low, try again:   ")
        elif s_n + 4 <= w:
                print('   \nYour guess was way too high, try guessing lower:   ')
        elif w > 15:
                print("   \nYou can only type numbers between 1 and 15!.")
                continue
    guess += 1 
    if correct_guess:
                print("   \nExcellent job " + v + ", You guessed right!.   ")
    if guess == 1:
                print("   \n  You guessed my number in " + str(guess) + " try!.")
    else:
                print("   \n  You guessed my number in " + str(guess) + " tries!.")
    if guess > guess_limit:
                print("\nSorry, " + v + ", you've run out of guesses. My number was " + str(s_n) + ".")  

except ValueError:
    print('   \nYou can only type a number!')
tacit iris
#

almost there

#

sucrose?

#

sucrose is sugar

#

aww

novel tangle
#

send me that youtube channel

#

link

lavish rover
#

The time has come.

SerenityOS is open source on GitHub: https://github.com/SerenityOS/serenity
Follow me on Twitter: https://twitter.com/awesomekling
Support me on Patreon: https://patreon.com/serenityos
Sponsor me on GitHub: https://github.com/sponsors/awesomekling
Donate via Paypal: http://paypal.me/awesomekling

SerenityOS is a Unix-like ope...

β–Ά Play video
solemn isle
#

hi

#

Dang that is horrible

cobalt cloak
#

the more horrible thing is that there are civillian hostages in gaza some of them are kids

#

there is a vid of a hostage kid crying for his mother while palestinians kids and adults laugh at him and beat him up

#

there are footages of entire familys lying dead in the street

#

there was a party with over 3000 people want to celebrate and then hamas terrorists did there a mass shooting killed over 260 people and injured over 100

dry jasper
rugged root
#

Why the hate on the scope

molten pewter
rugged root
#

I can never get a good view on those

molten pewter
lavish rover
dry jasper
lavish rover
whole bear
#

guys

#

python is trash

amber raptor
#

true

stuck furnace
stuck furnace
#

Very nice πŸ˜„

toxic arch
#

nice sound effects @lavish rover

karmic obsidian
novel tangle
#

bye gn

whole bear
#

Hi

obtuse cape
#

hello

#

everyone gone

pulsar light
#

@lavish rover

#

@rugged root

ionic flicker
#

hello

shy raft
#

hello fellow monke

somber heath
#

@viral jackal πŸ‘‹

#

@lament hornet πŸ‘‹

lament hornet
#

How's it going?

#

Can I ask you a question?

somber heath
lament hornet
#

That's fine, what is the point of the asynchio module in python?

somber heath
#

The clue is in the name.

#

It's often used to deal with communication situations, where you might be waiting around for the other party to communicate, but you want to do other things as well while you're waiting.

#

I don't know enough about it to explain it well.

lament hornet
#

I've watched a couple of videos on it, and it kind of seems like it just controls which part of the program has Priority First, and it does so Through Time delays, so do you mean that a user can put their input in and don't they don't have to wait for a back and forth between them and someone else, so if they wanted to send two messages before the other person sent one, they could do so without any issues?

somber heath
#

My own understanding of it is very shaky.

lament hornet
#

Gotcha, that makes sense.

somber heath
#

It's an event loop system...it might do threading behind the scenes...that's all I kind of understand maybe.

lament hornet
#

I don't know what event loops, or threading is, so I guess that's what I have to look up next lmao.πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

vocal basin
somber heath
#

@tidal anchor @mystic haven @dark meteor πŸ‘‹

mystic haven
#

hello good sir

somber heath
#

@cursive arch πŸ‘‹

vocal basin
#

Python's default async implementation keeps all the tasks and other stuff that directly interacts with the event loop in a single thread
I doubt that's going to change any time soon even if GIL is gone

lament hornet
#

I think I understand now, it makes it to where you can process more than one part of a program at the same time, and not have to worry about them outputting at the same time.

vocal basin
#

there are also languages like Go/Lua where this all is more implicit

#

Rust is kind of weird because it doesn't have the notion of an event loop embedded into the definiton of async

lament hornet
#

In that case, do you only use time delays in a program when you know that one of the threads is going to take longer to process than another, so it gives it a time delay so that way you can do another thing while you're waiting for it to process then come back to that when it's done?

vocal basin
#

it's not delay-based most of the time, in case of async

#

there are mechanisms built into the OS that help waiting on multiple things simultaneously

lament hornet
#

Gotcha so it's just so that way the interpreter doesn't stay idle on something that's taking longer to process than you would like it to, making it to where you can do another thing in the program while you're waiting for it?

vocal basin
#

instead of a delay, it's usually just "not done yet, come back later" while scheduling something to wake up the task

mental wolf
#

hi

#

i made

#

a code

lament hornet
#

How's it going?

mental wolf
#

can anyone

#

rat'

#

rate

stark cairn
#

how are you virtual?

tidal anchor
#

i need help with code project

stark cairn
#

How are you aesha

tidal anchor
#

here is the code

#

import turtle # allows us to use the turtles module
import random # allows us to use the random module

wn = turtle.Screen()

t = turtle.Turtle()
wn.bgcolor('light sky blue')
turtle.setup(800, 400)
t.fillcolor('green')
t.begin_fill()
t.forward(400)
t.right(90)
t.forward(200)
t.right(90)
t.forward(800)
t.right(90)
t.forward(200)
t.end_fill()

def drawleaf(t,size,color):
t.circle(radius, extent=None, steps=None)
tp = t.pos()
th = t.heading()
t.fillcolor(color)
t.begin_fill()
t.circle(size, 120)
t.penup()
t.setpos(tp)
t.right(180)
t.circle(size, -120)
t.end_fill()
t.setpos(tp)
t.seth(th)

def drawFlowerBud(t,size=100,leafColor='light green',stigmaColor='yellow',n=12):
t.speed(0)
tp = t,pos()
th = L.heading()
for leaf in range(n):
drawLeaf(t,size,leafColor)
t.right(360/n)
t.up()
L.seLpos(Lp)
t.backsize(size//4)
t.right(90)
t.pendown()
t.fillcolor(stigmacolor)
t.begin_fill()
t.circle(size//4)
t.end_fill()

drawFlowerBud(t)

#

but flower wont draw

vocal basin
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

tidal anchor
#

why not

stark cairn
#

How are you doing faded

lament hornet
#

I'm doing all right, how about you manjuice?

tidal anchor
#

not so good

#

i need this code done in 45 mins

vocal basin
#

exam?

tidal anchor
#

my project is due in 45 mins

#

no

stark cairn
#

I am doing great however my grandpa just passed due to testicular cancer but I keep pushing through for papa

tidal anchor
#

projecct

vivid shell
#

hi

mental wolf
#

i have benign tumor on my left testicular

vivid shell
#

i cant even screen share

#

bruh

vocal basin
tidal anchor
#

can anyone help me or no

vivid shell
#

i need help im so bad at explaning

tidal anchor
#

i am so screwed

mental wolf
#

doctor said i have 4 days to live until my testicular explodes

lament hornet
#

That sucks, I'm sorry to hear about that, I'm glad that you're managing well with it.

tidal anchor
#

i want to draw flowers of random sizes

vivid shell
#

true

#

my fault

stark cairn
mental wolf
#

im an alcoholic too

tidal anchor
vocal basin
#

missing turtle. in multiple places

tidal anchor
#

like the farther the flowers are away the smaller theu get

#

where

vocal basin
#

what are you using to write the code?

tidal anchor
#

python idle

mental wolf
#

my dad said if i dont code like my uncles in india he will banish me to hell

dark meteor
mental wolf
#

i use chat gpt for my final project and lost 20% of my final grade

stark cairn
#

I am currently 59 years of age, I failed high school and my wife left me. I want to probe all of them wrong and learn to code and make a career out of is it possible?

mental wolf
#

no its over for you usless

stark cairn
#

☹️

tidal anchor
#

@vocal basin

vocal basin
tidal anchor
#

help

vocal basin
#

7 name errors

tidal anchor
#

what is a name error

vocal basin
#

check variable and function names

mental wolf
stark cairn
#

Alisa do u think I can become a coder and make a career out of it

#

I am 59 years old

lament hornet
#

It's not over for you man juice, it's still possible to learn to code and make a career out of it, as for you arsha, that was really rude to say.

vocal basin
#

an example:

tidal anchor
#

do i need to store values as variableS?

vocal basin
stark cairn
vocal basin
mental wolf
#

always the bulgs

tidal anchor
#

oh shi ok lemm cahnge that'

tidal anchor
#

how do i make it draw the leaf

stark cairn
#

I actuallt used to be a professional UFC fighter however my career went downhill when they closed the featherweight division, i suffered head trauma

mental wolf
#

my 8 kids left me

stark cairn
#

It was difficult to make a living as a fighter back in the day so I struggled and worked part time at a restaurant

vocal basin
dark meteor
#

i think maybe use a function to draw something oval shapped

#

as the leaves

stark cairn
#

My head is oval shaped

dark meteor
#

then adjust the angle and put it into a loop

tidal anchor
stark cairn
#

Because of the repeated poundings to the head

#

Demetrius Johnson actuallt humiliated me in the ONE mma championship

vocal basin
#

beyond just fixing variable names -- I don't know

tidal anchor
#

ok can u show me the fixed code>

stark cairn
#

Wow that is impressive with code! If I didn’t have a damaged brain maybe I could see it however I am blind partially in one eye due to repeated head trauma

tidal anchor
#

can u center the pettel?

stark cairn
#

I am sorry for being such a gloomy gus

vocal basin
#

I have no idea which parts of code do what

tidal anchor
#

ok just paste it

#

i wanna see it

#

il ask my teacher

#

for assistance tmr

stark cairn
#

Guys search me up on UFC my name is Jon Jones I was pretty good

#

But not as good as Derrick Lewis

#

I had to retire early due to head trauma

#

I have a fight coming up against stipe miocic

#

Maybe I will bend him over and put him in guilltoine?

vocal basin
# vocal basin

since you don't have the help of an IDE, here is the list of the name errors it would've shown:

radius
pos
L
drawLeaf
Lp
stigmacolor
#

other errors are attribute errors, mostly on Turtle

#

those can be fixed if you have access to stderr (error output) and documentation

tidal anchor
#

can u send the workuing code?

#

so i can fix it so its centered

#

cus i am trying to recrerate this

#

but with differnt types of flowers

somber heath
#

We're not going to do your homework for you.

tidal anchor
#

i understand

#

i just need to know how to fix what ive got

mental wolf
#

I just lost my house gambling

#

Dear god

vocal basin
#

I used to play mostly 1 minute chess because I'm lazy to think

somber heath
#

@serene cargo πŸ‘‹

vocal basin
#

back to provisional rating

#

@whole bear have you ever played knightmare? (odds variant of chess)

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/NNNNKNNN w kq - 0 1

^this

#

slightly imbalanced

vocal basin
#

(part of it)

#

very simplified

#

which website?

#

I can't easily use chess.com, it's banned here

#

the site is banned; I'm not banned

#

I had bullet rating of around 1000 on chess.com

#

1420 on lichess

#

that's around median

#

or used to be

waxen barn
#

@somber heath

#

whats the name of tthat minecraft launcher you have?

#

I lost it when I switched back to windows 10

#

I remember it was like JD launcher or smth

shy raft
#

greetings

vocal basin
#

curseforge have their own tool for managing installations (currently owned by overwolf, I think)
but it uses the default mojang launcher

#

it used to be Curse, then Twitch, now Overwolf

#

if wi-fi fails, it might be due to misconfiguration

#

it may be fixable

#

"including the universal way to fix wi-fi which is to use cable instead"

waxen barn
#

Yea I am not used to using mods so I dont know a lot a bout then

wise loom
vocal basin
#

my ethernet cable is slower than wi-fi because either the connector is attached incorrectly or something else is malfunctioning in the cable itself

#

(I wasn't attaching the connectors, an employee from the ISP was)

waxen barn
#

yea no my supplier is just being an ass today so nothing i can do

vocal basin
#

2 boosts, last time I had it

vocal basin
#

and it's at 100mpbs

#

it may also be faulty router, but that's too depressive of a situation

vocal basin
wise loom
#

blow $85 on a new router

vocal basin
#

$0.2 for two connectors hopefully will be enough

wise loom
somber heath
#

@nova stream πŸ‘‹

waxen barn
somber heath
#

@haughty fog πŸ‘‹

haughty fog
somber heath
#

@gritty wyvern πŸ‘‹

gritty wyvern
#

hi

#

i was wondering if I could get help

#

im really new to python

somber heath
cerulean ridge
gritty wyvern
#

its really hard to describe ngl

#

you think we can call in a personal vc if thats chill?

somber heath
#

Oh, PHI. I thought you said it felt like insects were in your eye.

somber heath
gritty wyvern
#

i understand

#

ill type it out

#

basically I want to make a calorie, fat, protein tracker and I was wondering if I can write code from the user input into a seperate file and have that file load in when i run the code

somber heath
#

Yes.

gritty wyvern
#

is that possible?

#

/with a interpreter like idle

#

?*

somber heath
#

You can use a database, or you can use json, or you can dump the text in a file and parse it yourself.

gritty wyvern
#

forsure

#

what is json?

somber heath
#

!d json

wise cargoBOT
#

Source code: Lib/json/__init__.py

JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subset of JavaScript 1 ).

Warning

Be cautious when parsing JSON data from untrusted sources. A malicious JSON string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.

json exposes an API familiar to users of the standard library marshal and pickle modules.

Encoding basic Python object hierarchies:

somber heath
#

!d open

wise cargoBOT
#

open(file, mode='r', buffering=- 1, encoding=None, errors=None, newline=None, closefd=True, opener=None)```
Open *file* and return a corresponding [file object](https://docs.python.org/3/glossary.html#term-file-object). If the file cannot be opened, an [`OSError`](https://docs.python.org/3/library/exceptions.html#OSError) is raised. See [Reading and Writing Files](https://docs.python.org/3/tutorial/inputoutput.html#tut-files) for more examples of how to use this function.

*file* is a [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object) giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to `False`.)
somber heath
#

!d with

wise cargoBOT
#

8.5. The with statement

The with statement is used to wrap the execution of a block with methods defined by a context manager (see section With Statement Context Managers). This allows common try…except…finally usage patterns to be encapsulated for convenient reuse.


with_stmt          ::=  "with" ( "(" with_stmt_contents ","? ")" | with_stmt_contents ) ":" suite
with_stmt_contents ::=  with_item ("," with_item)*
with_item          ::=  expression ["as" target]
``` The execution of the [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statement with one β€œitem” proceeds as follows:
gritty wyvern
#

so 'open' opens files into code?

#

i dont understand json and with ill look on youtube

somber heath
#

open gives you a representation of a file which you can then read from or write from.

gritty wyvern
#

i see

#

open is really important then

somber heath
#

It's not the same as the data itself.

gritty wyvern
#

i see

somber heath
#

It's often used

gritty wyvern
#

i see

#

ill look on youtube on it

somber heath
#

pathlib is also used in a similar way

gritty wyvern
#

fs

somber heath
#

!d pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If you’ve never used this module before or just aren’t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example: