#ot1-perplexing-regexing

1 messages · Page 627 of 1

harsh tundra
#

In some Slavic languages, it represents the continuation of Proto-Slavic, non-palatal ⟨L⟩ (dark L), except in Polish, Kashubian, and Sorbian, where it evolved further into /w/.

#

Lol, Wikipedia uses the same example of water

In Polish, ⟨Ł⟩ is used to distinguish historical dark (velarized) L [ɫ] from clear L [l]. The Polish ⟨Ł⟩ now sounds the same as the English ⟨W⟩, as in water (except for older speakers in some eastern dialects where it still sounds velarized).

#

Oh, it seems Polish used that sound historically but Russian kept it.

Polish final Ł also often corresponds to Ukrainian word-final ⟨В⟩ Ve (Cyrillic) and Belarusian ⟨Ў⟩ (Short U (Cyrillic). Thus, "he gave" is "dał" in Polish, "дав" in Ukrainian, "даў" in Belarusian (all pronounced [daw]), but "дал" [daɫ] in Russian.

/w/ vs /ɫ/

shell raptor
#

huh

#

I always wondered why Ukrainian paste tense verbs end in V whereas ours end in L

#

that seems to explain it

#

but the last sound of "дал" is just L

#

well, not the English L

harsh tundra
#

That's why it says it's ɫ in phonetic alphabet

shell raptor
#

ah

harsh tundra
#

It's that... Soft L thing.
When Poles learn Russian, we are mostly told that Л is both L and Ł, I never looked into specific sounds, so I didn't notice the difference

#

I just knew to pronounce is more softly than Polish Ł XD

#

I love how you have Ж. And Ш and Ч.
In Polish we have ż/rz (both pronounced as ж, apparently they historically were different and now it's just orthography), and then sz and cz. As I said, Polish would work well in Cyrillic but historically we got baptised by Czechia and stayed with Catholicism so we got Latin alphabet

#

I also hate how international transliteration doesn't make much sense in Polish. We have those letters/sounds. Surnames being officially internationally transcribed as -tsky when it's just -cki. Or Ярослав at my uni group had his name as "Iaroslav", but it's just Jarosław in Polish. He had Polish family and signed his papers in Polish name (had -cki kind of surname as well)

shell raptor
#

they have different transliterations of my name 😐

coral sky
#

@paper plover Is your pfp from Limbo?

paper plover
#

I was scrolling on there and it looked cool so I screenshotted xd

coral sky
#

Nope, Limbo is a great game. If you're bored, I highly suggest trying it out! Really awesome game

paper plover
coral sky
#

Great :D

paper plover
#

:D

floral apex
dire siren
manic storm
#
for (int i = 0; i < size; i++) {
  int curr = arr[i].getKey();
  int pointer1 = 0;
  int pointer2 = 0;
  for (int j = 0; j < size; j++) {
    if (arr[j].getKey() == curr) {
      pointer1 = j;
    }
    if (copy[j].getKey() == curr) {
      pointer2 = j;
    }
    if (arr[pointer1].getValue() != copy[pointer2].getValue()) {
      return false;
    }
  }
}```
#

if copy is [(10, 20), (5, 20), (8, 20), (5, 1)]
and arr is [(5, 20), (5, 1), (8, 20), (10, 20)]

for the first iteration,
curr would be 5,
pointer1 would be 0,
pointer2 would be 1?

im not sure if the j loop works like that like pointer1 can be 0, then j can continue to increment for pointer2 to 1?

vocal wren
rough sapphire
#

are you passing with straight As?

vocal wren
#

Hah, nope

rough sapphire
#

what are they?

#

Im taking AP Chem and AP Calc rn

#

I wanna take more but JROTC takes up 2 terms

vocal wren
#

World history and comp sci

rough sapphire
#

is world history hard?

vocal wren
#

Very, and my teacher isn't particularly wonderful

#

I don't have too much to personally compare it to though

rough sapphire
#

@vocal wren I read that you've earned over a thousand dollars while writing on medium

#

Do you have any tips for me to make money?

#

I want to start my own blog with Django and React

opaque bronze
#

don't start a blog with an expectation of making money

rough sapphire
#

no

#

I don't want to start a blog to make money

#

I want it for college application

opaque bronze
#

o

#

good luck in your endeavor 👍

vocal wren
#

Personally I'd say don't start with that in mind either, try to focus your intentions on just sharing what you're good at

rough sapphire
#

okay

vocal wren
#

Also if you're curious, my earnings are mainly from one article that just happened to go somewhat viral

#

So another key I'll add in here is to write about what's relevant

rough sapphire
#

does article get famous or something

vocal wren
#

I earn from my writing because I get paid through Medium, and their platform also definitely helps you reach a wider audience

rough sapphire
vocal wren
opaque bronze
woeful cipher
#

What do you think is the best package for printing bold/colored text in python?

floral apex
woeful cipher
latent scaffold
#

tbh I love using rich even just for coloring

#

you'd just do something like

from rich.console import Console

console = Console()
console.print("[bold red]Meow![/]")
#

If you're wondering how that looks:

dire siren
#

yeah rich is better, I forgot that choice sorry

woeful cipher
woeful cipher
dire siren
#

look what he is doing in the pic

woeful cipher
#

i dont want to print it just yet actually

#
logging.basicConfig(
    level=logging.INFO, format="%(asctime)s %(filename)s - %(levelname)s - %(message)s"
)
#

this is what im trying to do

#

iw ant to wrap the level name with the bold ascii code

#

so i cant really print the text

latent scaffold
#

You keep saying ASCII but I think you mean ANSI

woeful cipher
#

smh my bad

#

my brain is just kind of confused lol

woeful cipher
#

aha thanks!

latent scaffold
#

sorry \😩 I reopened Discord after the notification

#

look how helpful I am, though

mild abyss
latent scaffold
#

why not both

floral apex
#

How do I make print convoluted
System.Console.Write.Logl

fathom niche
#

How do you guys fix/recover from a repo with broken history or smth

woeful cipher
topaz aurora
harsh tundra
fathom niche
topaz aurora
#

Well, you can do an interactive rebase, delete the junk commits, and fhen force push

#

But meh, just leave them be

woeful cipher
dire siren
#

why shift + delete works faster than delete

#

🤔

gritty zinc
#

what's the context on that

dire siren
topaz aurora
dire siren
#

i cleared my recycle bin

#

i used to have 75.4 gb free

#

now i have 85.4 gb free

#

why do i have so much trash there bruh

last mantle
edgy crest
#

o

harsh tundra
#

I'm playing with tempering chocolate :3

#

Also cheating my age (also from tempered chocolate) on cake my partner made XD

fathom niche
#

What's the pyproject.toml for?

#

I didn't see him using poetry

fathom niche
wraith hound
#

There's a PEP standard for it

#

!pep 621 is one, and then there's some other specific ones

royal lakeBOT
#
**PEP 621 - Storing project metadata in pyproject.toml**
Status

Final

Created

22-Jun-2020

Type

Standards Track

fathom niche
#

Hmm

acoustic moss
#

three mice??

fathom niche
wraith hound
#

uhhh

#

isort supports it

#

I don't think flake8 does

harsh tundra
quick ledge
#

happy birthday!?

acoustic moss
#

happy birthday!!

harsh tundra
#

I'm only 25.997 today. It's tomorrow XD

#

But ty ❤️❤️❤️

rough sapphire
#

u drink?

harsh tundra
#

*u drunk? Yes, lol

#

My MIL decided to try whisky with cola. Didn't know how much to pour. Poured too muck whisky XD

jovial oriole
floral apex
floral apex
#

Hm, I don't need one, but if I do, there's these two

#

Sanity or Strapi

latent scaffold
#

oh gosh

#

I hate that bottom search bar

bright hemlock
#

anyone here good with linux? The linux discord is terrrible

frozen crane
bright hemlock
mild abyss
#

dont add spaces before or after the commas

bright hemlock
latent scaffold
bright hemlock
latent scaffold
#

what was it from, then?

bright hemlock
#

personal use for something

latent scaffold
#

uh

bright hemlock
#

do u wanna help or something?

latent scaffold
#

well I can't really tell what you're wanting

#

and I know you were previously asking for help with a homework question

mild abyss
latent scaffold
#

We just have to take rule 8 into account

#

!rule 8

royal lakeBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

latent scaffold
#

so we kinda need more info from you

latent scaffold
bright hemlock
mild abyss
bright hemlock
mild abyss
latent scaffold
bright hemlock
#

I already told u it wasnt

#

thats enough info

mild abyss
#

well if it is actually for homework, well go brain drain yourself and regret later in life 🥴

latent scaffold
#

but not that that's a terrible thing

mild abyss
#

theyre going to have regrets 🥴

next locust
#

will flake8 support pyproject.toml anytime soon?

latent scaffold
next locust
#

instead of putting your config in .flake8 put it in pyproject.toml?

#

(I don't know much about pyproject.toml much btw)

latent scaffold
next locust
#

hmm

#

aight thanks!

floral apex
#

I am very lazy

latent scaffold
#

but it's also like really weird

floral apex
#

That's fine and understandable

#

I mainly use my thumbs on my phone

#

You can probably see why I don't like it at the top

distant hazel
#

@rough sapphire please talk here for non-python things

rough sapphire
#

but this chat is dead!

distant hazel
#

you can bring it back to life with interesting conversation

#

but that's up to you

distant hazel
#

!help helpdm

royal lakeBOT
#
Command Help

!helpdm <state_bool>
*Allows user to toggle "Helping" dms.

If this is set to on the user will receive a dm for the channel they are participating in.

If this is set to off the user will not receive a dm for channel that they are participating in.*

distant hazel
#

@young shoal hey does this command work for you outside of bot-commands?

young shoal
#

!helpdm

royal lakeBOT
#
Missing required argument

state_bool

#
Command Help

!helpdm <state_bool>
*Allows user to toggle "Helping" dms.

If this is set to on the user will receive a dm for the channel they are participating in.

If this is set to off the user will not receive a dm for channel that they are participating in.*

young shoal
#

!helpdm on

royal lakeBOT
#

:ok_hand: @young shoal Help DMs ON!

young shoal
#

yes

#

@distant hazel

distant hazel
#

tyty

eternal wing
#

@cloud lichen Hello, we have loads of channels. We even have our own help system. Please see #❓|how-to-get-help, that should explain how to use it.

You can use these off-topic channels (the one we are in right now) for things not very related to python. We also have loads of topical channels for more specific discussions.

cloud lichen
#

thanks

eternal wing
#

No problem at all joe_salute

fathom niche
#

I'm trying to ssh to github codespace (via gh codespace ssh <codespace name>) managed by cs50 it requires Ubuntu@localhost password
How do I know what the password is?

bold moat
#

wow nice ot name

distant hazel
#

i'm gonna guess this was @karmic gust

karmic gust
#

why me

distant hazel
#

bc alliteration

#

you seem to have an affinity for alliteration

karmic gust
#

it is a superb series of starting syllables

latent scaffold
#

alliteration affinity \🤔

karmic gust
#

hah it was not me

rough sapphire
#

guys pls gude me for making a new module???

#

plspslpsl

mellow spire
#

Happy birthday @harsh tundra

white copper
#

I have a math question.

What is √i?
If you want an answer, DM me. 🙂

tardy rain
#

You have a question but you also have an answer?

dire siren
#

multiposted btw

tardy rain
#

Checks out

dull turtle
#

It is soo damn cold in this house, it was like 62 or something and my parents REFUSE to put it to 70

tardy rain
#

62 is fine, put a sweatshirt on

bold moat
#

yep no prob

rough sapphire
#

thanks

#

62 is not cold for me

bold moat
#

oh yeah

harsh tundra
stark prawn
#

17 is nice and cozy at this time of year

molten bloom
#

sheesh i rushed a git commit right before dinner

woeful cipher
tranquil orchid
#

17 is cold 👀

#

It's starting to cool down for me

edgy crest
#

and its starting to warm up here

runic wigeon
#

still freezing here

clear acorn
lime maple
#

-1 to 10 degree Celsius all day

#

Every day

lime maple
lime maple
viscid hemlock
jovial oriole
graceful basin
#

I consider it valuable to normalise including pronouns regardless of gender identity @rough sapphire

noble niche
#

@naive ether __file__ is a special variable containing the absolute path of the python file thats being run, if it exists

#

!e print(__file__)

royal lakeBOT
#

@noble niche :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name '__file__' is not defined. Did you mean: '__name__'?
noble niche
#

this wouldnt work as the bot isnt running a file

#

so there's no __file__

#

!e print(globals())

royal lakeBOT
#

@noble niche :white_check_mark: Your eval job has completed with return code 0.

{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>}
noble niche
#

it does still have some special vars as you can see /\

naive ether
#

but to compare? i still dont understand

#

compile it randomly

noble niche
#
from pathlib import Path
folder_name = Path(__file__).parent.name

if folder_name == 'random_name':
    print('tada')
```as ive said before, the pathlib stuff lets you compare the folder name directly
#

if you need further explanation open a channel and ping me

naive ether
#

no i mean

#

compare the folder name "folder" with ".folder"

noble niche
#

".folder" being just a string representing a relative path, and "folder" being just a string with the name of a folder, not a path to it?

jovial oriole
#

!e py for file in os.listdir('./'): print(file)

royal lakeBOT
#

@jovial oriole :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'os' is not defined
jovial oriole
#

!e py import os for file in os.listdir('./'): print(file)

royal lakeBOT
#

@jovial oriole :white_check_mark: Your eval job has completed with return code 0.

001 | Pipfile.lock
002 | Pipfile
003 | config
004 | snekbox
005 | user_base
006 | tests
007 | LICENSE
jovial oriole
#

hmmmm

wraith hound
jovial oriole
wraith hound
#

mhm

jovial oriole
#

mhm

gritty zinc
#

wait, what the fuck

#

since when can channel names be this long

dapper dew
#

Gotta have the alliteration

young shoal
#

the alliteration is an acquired...appetite?

harsh tundra
vocal wren
#

@thorn lagoon yeah the .in site is definitely further ahead in textbook solutions too

thorn lagoon
#

like almost all grades

vocal wren
#

They had them first and I'd guess they have the most books on the indian site

thorn lagoon
#

i guess so

bold moat
#

joe how is it up thee

vocal wren
thorn lagoon
#

hm

#

ooooo thats a lot

vocal wren
#

Just a bit

bold moat
#

like whenever i cant understand de math problem

#

i hop on to brainly

vocal wren
#

Thanked by 4.1k people on there so maybe 😂

bold moat
#

yes

#

like brainly answerers or whatever you call them really deserve the gratitude

vocal wren
#

I'm still friends with a few people on the trusted helpers team, I'll pass that on 😉

bold moat
#

thx

remote citrus
remote citrus
gleaming gull
remote citrus
#

Bruh can't understand what ur saying

#

2757...

dire siren
#

time to ping joe for stats guys

floral apex
#

I tried

mild abyss
uneven pine
#

that's mildly annoyed at best

rough sapphire
#

!e

import os
for file in os.listdir('\\'):
  print(file)
royal lakeBOT
#

@rough sapphire :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: '\\'
rough sapphire
#

!e

import os
for file in os.listdir("\"):
  os.delete(file)
#

!e

import os
for file in os.listdir('/'):
  os.delete(file)
#

:trashcan;

uneven pine
#

man this place has gone farther and farther every time I come back

rough sapphire
#

Damn

floral apex
uneven pine
#

!ok

vestal wraith
#

heya, i need a really long complicated tittle for the IT department

tepid crane
#

Hey!

#

I am using pyttsx3 to play some text to speech

#

but i get some reallllly robotic voice

#

any way to fix that?

#

my code: ```py
listener = sr.Recognizer()
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', 'english')
engine.setProperty("rate", 150)

uneven pine
#

@vestal wraith Information Technology Wizard of the Twelfth Realm of Ephysiyes Master of Light and Shadow Manipulator of Data Delights Devourer of Chaos Champion of the Great Firewalls of Ter'akkas

vestal wraith
#

Just need it to have tech words and not fantasy

#

Or atleast words that sou d techy but are made up

#

Like deep learning

acoustic moss
#

all words are made up, pontus

vestal wraith
#

i mean yeah :b

#

iwant sme startrek mombo jumbo

floral apex
# vestal wraith Like deep learning

Cloud Nine Realm Informatorium of the Grand Mathematical Masters of the Data Hoarding Stalkers In The Depths Of The Great Firewalls of Big Tech

#

I dunno what I came up with

vestal wraith
#

mhhr doesnt sound official enough

#

The Department of cloud data storage and Information subspace hoarding with the verterium cortenide deflector generators and ion transwarp injectors.

floral apex
#

Sounds Scifi

vestal wraith
#

mm

#

i need like a goverment branch sounding namei think

#

so ppl think i actually do stuff down here

#

if we can encoorperate a name for "dungeon" or "IT basement" so ppl know where it is aswell, that be swell

rough sapphire
#

What do you call somoene who owns a farm?

thin cloak
dire siren
floral apex
#

There I combined the two

thin cloak
shut ermine
#

sounds like a good time but im still gonna have to charge you ¯\_(ツ)_/¯

vestal wraith
#

it needs to sound official

#

like goverment official

floral apex
#

The Department of Internet Technology Maintainance and Backend Systems Management

vestal wraith
#

osunds much better

#

internet needs to be converted

#

Information Infrastructure

mild abyss
#

i wonder if there is a masters in bioinformatics somewhere in Ph

#

🤔

vestal wraith
#

The Maintaince department of Information pipeline Infrastructure technology and Backend system management,

thin cloak
vestal wraith
#

oh yeah, i need to make sure to put in that iam the member of it, or the crew

thin cloak
#

Department of electronic data processing on premises and on the cloud and information pipeline infrastructure management....

#

EDP or Electronic Data Processing is olde IT Dept name before MIS

shut ermine
#

kinda hard to make anything sound official with a basement or a dungeon 💀

vestal wraith
#

The "cloud" is to informational

#

cant belivie im getting paid to just check if the data server is flashing

#

kinda sounds like " information pipeline infrastructure management.." is cut off, like it needs more

bold moat
#

man memeology is quite the server

#

ooh its supported

#

ig they dont know the userbase

graceful basin
#

we allow all servers with a vanity URL or something of that shape

bold moat
#

oh

stray veldt
#

hi giys

floral apex
meager lava
#

In my day we called them mainframes...

#

leased computing time and paid by the card 😄

quick ledge
#

yes but mainframes get hacked all the time by dudes wearing black hoodie with their terminal font set to green

#

"I'm in."

dapper dew
#
> color 02
> tree
> ping

I'm in

floral apex
#

To infinity and beyond (Brad's Matrix screensaver)

#

Meanwhile I will go

#

To my bed

#

And sleep

dapper dew
#
cmatrix -lba
thorn lagoon
#

not matrix

last mantle
#

thats ksp

#

ksp 2 when ducky_vader

tight zodiac
# dapper dew

here is the photo upscaled 4x and 16x respectively because i wanted to use that as a profile picture but i didnt like it being pixelated

brave minnow
#

Lets be honest, moat of us who fucking know python and shit wont get a girlfriend

tardy rain
#

no that just sounds like you

#

getting a girlfriend doesnt depend on how much python you know

dapper dew
#

Yeah that doesn't quite hold water

#

(I'm also married ¯_(ツ)_/¯)

harsh tundra
floral apex
#

Basic bitch colors here

#

White on black with a little bit of customization

shut ermine
thin cloak
bold moat
bold moat
thin cloak
bold moat
#

hmmm i wonder why people make such attachments to people without actually talking to them

#

wait

floral apex
bold moat
#

if you ever spot her looking at you, then shut down the lights suddenly, and then play freddy's music box

#

Sir Frederickson's harsh melody will put that young lady to sleep quickly!

#

🧐

thin cloak
bold moat
#

you shouldnt have missed the opportunity to do a "tiny bit" of joking around

floral apex
#

Transferring 7.7 GB onto an external hard disk

#

Bless me with patience

#

And yes I said HDD, not SSD

bold moat
#

thou musteth be blessed by god

floral apex
#

That's just for one user

shut ermine
coarse dock
thin cloak
coarse dock
#

Me neither

#

I kinda cringe when ppl ask what my zodiac or whatever is a little bit

tardy rain
#

I knew someone in my uni circles that actually spent money on psychics and crystals

coarse dock
#

I mean at least it's APG fuel

#

Fluorite crystals as it turn out are very toxic

rough sapphire
#

Good night 🌃

#

Good night

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @rough sapphire until <t:1643793220:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

quick ledge
#

good night

tardy rain
#

<@&831776746206265384> cross posting a survey

#

cheers

frozen coral
#

!warn 782906494034903051 As per our sixth rule, please don't use our server to post unapproved advertising

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied warning to @frail sun.

frozen coral
hushed shadow
#

I want to make a js program which when runs the following output should be displayed:

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144

(ignore the first number)

So bascially what is happening in the above sequence i that first 0 + 1 = 1 (So the first number is one)

Then 1+1 is 2 so next number is 2

then 2+1 is 3 so the next number is 3

I cant figure out the equation.

I Have to use for loops

wraith hound
#

I don't know the equation, but I know there is one

inland wolf
#

bruh

#

its f(i) = f(i-1) + f(i-2)

hushed shadow
inland wolf
#

fibonacci function

#

f(1) and f(2) should be = 1

hushed shadow
inland wolf
#

no i was saying that mathematically

#

its not ur exact answer i was replying to dawn

rough sapphire
#

This is missing that f(0) = 0 and f(1) = 1

#

And then f(i) = f(i-1) + f(i-2)

inland wolf
#

yea

#

i thought it was f(1) and f(2) = 1

rough sapphire
#

If you meant f(1) = 0 and f(2) = 1 then that's equivalent (but with shifted domain)

inland wolf
#

no i was just wrong

#

xd

rough sapphire
wraith hound
#

I'm stupid

#

This is how wonderful morning brains are

rough sapphire
#

There actually is an equation too

#

A closed form one

#

Seems like something that would appear there 👀

clear plume
#

A formula for fib 💀

soft violet
#

Maybe I just don't understand the notation, but that looks like a complicated way of writing a function that just spits out zero.

acoustic moss
#

its 1 + sqrt(5) on the left and 1 - sqrt(5) on the right

soft violet
#

Ah. Missed that.

#

Damn it. Obvious, now.

floral apex
#

I wonder what the square root of 5 is doing there

acoustic moss
#

funny that that formula works

soft violet
#

I recognised the formula for phi, though.

floral apex
#

Actually everything there, I'm confused

rough sapphire
#

It's the golden ratio

floral apex
#

It looks like magic like The Quadratic Formula where you just plug variables im

acoustic moss
#

the quadratic formula is relatively easy to derive

#

just have to complete the square

rough sapphire
#

Same with the cubic

#

Just complete the cube

floral apex
#

H m m m

clear plume
#

Algebra is just easy (almost always)

floral apex
#

I wonder if I'm feeling the effects of memorization people say happens at school

inland wolf
#

this was more suprising

#

to me

rough sapphire
floral apex
#

Probably if it gets flushed out the moment I left Junior High Hellhole School

acoustic moss
# inland wolf

i think thats relatively better because its an approximation

#

better as in easier to believe that it works

floral apex
#

How many people have felt peace ever sicnce social distancing's the norm

clear plume
#

Also, to any gamers here, I have an issue. Basically, my school is making an esports team, and they asked me to tryout. The thing is, so far, the average rank is like 3 below mine, but they offer a slight grade boost to whatever class I choose. The only issue is I also have tryouts for a T3 team in 2 weeks, and I just don't know who to go for

rough sapphire
inland wolf
rough sapphire
#

How good is the approximation

acoustic moss
inland wolf
rough sapphire
floral apex
floral apex
#

Even learning felt more relaxing

#

Apart from that one time I rushed Math

#

The subject I'm supposed to understand

floral apex
#

Covid sucks too

#

Tbf it does get boring

#

Unexciting, etc.

acoustic moss
#

programming and pydis have basically kept me alive lol

floral apex
#

And the whole people are suffering for a multitude of reasons caused directly or indirectly by the virus

acoustic moss
#

mm

rough sapphire
#

Ye, day-do-today human interaction has also become harder. It's not too bad on it's own, but over a two year period it's really straining

clear plume
#

Imo the biggest problem was online school

#

Well, I suppose for some it still is a problem

rough sapphire
#

No online exams here 😦

#

We have them offline and have to get a test the day before

thin cloak
thin cloak
thin cloak
floral apex
#

Python kept me occupied

#

Now it's web dev

shut ermine
#

well yes I've been stuck in paperwork limbo for a while and nothing seems worth it anymore just keep doing some papers and more keep coming out, getting nowhere and I'm not sure how long i can do this lol

floral apex
#

Who knows what's next. Game dev? Emulation? Language dev?

#

If I do language dev, I'll practice with the Lisp family

#

Though probably would benefit me to learn other languages to absorb what parts I like about them

#

Hmmm, what if SCREAMING_CASE implicitly treats a variable as constant

#

And prefixing methods with underscores would implicitly make the method private

#

An implicit behavior more consistent than Javascript's types

radiant cosmos
jovial oriole
#

.topic

median domeBOT
#
**If you had $100 bill in your Easter Basket, what would you do with it?**

Suggest more topics here!

jovial oriole
#

invest

#

and probably go bankrupt

#

but invest

bitter mango
#

question: is it okay to post tenor gif links in the off topic chats?

#

like if the gif is related to the current topic, is it okay?

jovial oriole
#

!ot

royal lakeBOT
jovial oriole
#

ettiqutte

solemn leaf
#

that will be sooooo implicit

harsh tundra
floral apex
#

Not like additions to Python itself

tardy rain
#

Efficient

#

And ISO compliant

carmine niche
#

can someon ehelp..

#

there is no such "family group"

#

i own my account outright and am not part of any group

#

this happens whenever i try to sign in on the xbox website

#

not even go to settins just.. sign in

mild abyss
#

idk much about xbox :((

hushed shadow
#
function fibonacci(num)
{
    var num1=0;
    var num2=1;
    var sum;
    var i=0;
    for (i = 0; i < num; i++) 
    {
        sum=num1+num2;
        num1=num2;
        num2=sum;
        return num2; 
    }

}

Could someone explain me this js code for the fibonacci sequence i found on the internet?

coarse dock
acoustic moss
acoustic moss
coarse dock
#

I am familiar

#

This code just isn't very verbose

acoustic moss
#

so this code maintains that num1 and num2 are the last two numbers in the sequence
then the next number is num1 + num2, which is sum

#

then it needs to update num1 and num2 before the next iteration

#

num1 becomes what was previously num2 (last becomes second to last)
and num2 becomes sum (current becomes last)

hushed shadow
hushed shadow
#

if u think it is verbose

coarse dock
#

Not now, I'm on phone rn

#

But maybe in morning

hushed shadow
coarse dock
#

I'll try

hushed shadow
#

and ping me also if u remember

coarse dock
#

Yeah

hushed shadow
# coarse dock This code just isn't very verbose

I actually removed few of the useless lines now this is my code:

function fibonacci(num)
{
    var num1=0;
    var num2=1;
    for (i = 0; i < num; i++) 
    {
        sum=num1+num2;
        num1=num2;
        num2=sum;
        console.log(num2)
    }

}

Better?

#

Or can I make it more shorter?

acoustic moss
#

just because you can doesnt mean you should :P

hushed shadow
coarse dock
#

Comments explaining why you did what you did would be helpful

hushed shadow
wraith hound
acoustic moss
hushed shadow
dire siren
#

i have given up using android studio, kivy is much easier. im not sure if this decision is correct

#

someone punch me in the face if i'm wrong

hushed shadow
# coarse dock Comments explaining why you did what you did would be helpful
//In This Line we declared a function named fibonacci
function fibonacci(num)
{
    //Here we created 2 variables with num1 is 0 and num2 is 1
    let num1=0;
    let num2=1;

    //So now we created a for loop so that the code can keep on going till it stops
    for (i = 0; i < num; i++) 
    {
        //Here we made it so that the sum is num1 + num2
        sum=num1+num2;
        //here we made it so that num1 = num2 & num2= sum so that it will run till we call it with the num
        // E.G. num1 = 0 and num2 = 1 so with the below code num1 = 1 and num2 = 0+1 = 1 so later in thsi code this will display
        num1=num2;
        num2=sum;
        //As I told in the above e.g. we will display it in the console bye logging it(num2) and it will keep on going
        console.log(num2)
    }

}

I am bad at explaining but did my best!

coarse dock
#

Oh yeah that's good

#

Especially with really simple stuff like this is easy to get lost sometimes, thanks

hushed shadow
#

:)

gleaming gull
mossy mango
#

hello

#

@broken apex

broken apex
#

hi

#

Can I stop xorg from using VRAM?

mossy mango
#

is the find still running?

#

hit ctrl+C , it can be started again

broken apex
mossy mango
#

let's see if that was impacting somehow

broken apex
#

it's at like 10,000 I'd prefer to wait 🤣

mossy mango
#

can you run it from a non-graphical session? 🤔

broken apex
#

unless it can go much faster somehow

mossy mango
#

10,000 have been converted?

broken apex
#

yep

mossy mango
#

are you low on VRAM?

broken apex
#

not for that

mossy mango
#

idk what VRAM is really

broken apex
#

I just need it to be a bit higher for something else

broken apex
mossy mango
#

hmm

broken apex
#

GPU memory

#

that isn't using any

mossy mango
#

any browser open?

broken apex
#

xorg is using a lot though

broken apex
mossy mango
#

well

broken apex
#
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.39.01    Driver Version: 510.39.01    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   43C    P0    56W / 200W |    567MiB /  8192MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     13679      G   /usr/lib/xorg/Xorg                466MiB |
|    0   N/A  N/A     13829      G   /usr/bin/gnome-shell               92MiB |
|    0   N/A  N/A     97714      G   ...2/usr/lib/firefox/firefox        2MiB |
+-----------------------------------------------------------------------------+```
#

oh

#

terrible

#

well, my screen may just be too small

mossy mango
#

pidof xorg | xargs -n1 pstree

broken apex
#

13,000 converted

mossy mango
#

what does that show

#

everything shown will get killed

royal lakeBOT
#

Hey @broken apex!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

broken apex
#

really?

#

😡

#

useless

mossy mango
#

wait

#

just try pidof xorg

broken apex
#

probably bad then

mossy mango
#

might need sudo ?

broken apex
#

nothing

mossy mango
#

ok then

#

that didnt work

broken apex
#

I have the process id, if that's what it does

mossy mango
#

it showed all lol

#

yrs

#

pstree #

broken apex
#

13679 right now

latent scaffold
#

nvidia-smi \🤔

broken apex
#

Xorg───{Xorg}

latent scaffold
broken apex
latent scaffold
#

If you're not, then there's probably nothing you can do

broken apex
#

what's that?

latent scaffold
#

literally just having two graphics cards

#

whether the primary one is meant to be integrated or not

broken apex
#

it has an IGPU enabled from the BIOS

latent scaffold
#

some laptops have an iGPU and a dGPU

broken apex
#

not a laptop

latent scaffold
#

do you have an iGPU and dGPU?

broken apex
#

yes

#

dGPU?

latent scaffold
#

i = integrated
d = dedicated

#

integrated is built into the CPU

broken apex
#

oh, yes, both

latent scaffold
#

dedicated would be your NVIDIA card

broken apex
#

it's even enabled in BIOS

latent scaffold
#

so then you need to mess with NVIDIA prime, probably

broken apex
#

which was the previous problem

latent scaffold
#

or it depends on your BIOS

#

you might still be only running one GPU

mossy mango
#

COLUMNS=4096 pstree --show-pids --thread-names --uid-changes --show-parents --long #

#

gives me a lot more info

latent scaffold
#

Xorg on nvidia-smi would mean that your "primary" GPU is your dGPU

#

and offloading would go to the iGPU

#

chances are... you want the opposite

broken apex
latent scaffold
#

the process will vary somewhat depending on the distro you're using

broken apex
#

ubuntu

mossy mango
#

huh

#

what's the worst that can happen

broken apex
#

20,000 images done

latent scaffold
#

does Ubuntu have nvidia-prime?

#

the package

broken apex
#

yes

#

installed it with apt

latent scaffold
#

so then you should be able to do like sudo prime-select intel

broken apex
#

loading

latent scaffold
#

or there's subcommands I think

#

but you want to select "intel", I believe

#

or actually

broken apex
#

it says done, no affect

mossy mango
#

how many images do you have btw

broken apex
latent scaffold
latent scaffold
#

like any other desktop app

#

or run the nvidia-xsettings (I think) command

rough sapphire
#

Do I need help? (Ignore the theme)

mossy mango
#

what the

rough sapphire
#

qwq

broken apex
rough sapphire
broken apex
latent scaffold
broken apex
mossy mango
latent scaffold
rough sapphire
mossy mango
#

lol

#

you have photos as background in vscode?

broken apex
broken apex
mossy mango
latent scaffold
mossy mango
latent scaffold
#

idk how often relogging works but I don't think it often does for me

#

so I just reboot

broken apex
#

okay

mossy mango
#

log out and back in?

latent scaffold
#

that should work

mossy mango
#

that what it is?

latent scaffold
#

or it's supposed to

rough sapphire
latent scaffold
#

relog = log out and back in, yes

rough sapphire
#

Why code not work :((

latent scaffold
#

Idk how often that actually works, though. I just reboot anyways

mossy mango
rough sapphire
#

What is traceback

mossy mango
#

And you're in ot uk

broken apex
rough sapphire
mossy mango
#

also packages should just be one word without exclamation points lol

#

you have dynamic wallpaper?

#

never seen that

#

right-click "super app code.py" -> Delete

#

fixed

rough sapphire
#

It makes it transparent so you can see my wallpaper

rough sapphire
#

If you want :)

broken apex
latent scaffold
broken apex
#

the HDMI cord

mossy mango
#

is it done yet @broken apex

rough sapphire
#

@mossy mango I know your weight

mossy mango
#

oh cool

#

what is it

broken apex
latent scaffold
rough sapphire
broken apex
#

29,000

latent scaffold
#

so that means killing X

#

and restarting it

rough sapphire
#

I hope this won't come under spamming

broken apex
latent scaffold
#

uh..

#

if you relog, probably not

#

if you reboot... depends on the screen

broken apex
#

in what way?

#

finished the images

mossy mango
broken apex
#

now I just need to fix xorg

rough sapphire
mossy mango
#

I live in US so I only weigh in lbs

#

scale doesnt read kgs

rough sapphire
mossy mango
#

but nice try :p

rough sapphire
latent scaffold
mossy mango
#

ok

rough sapphire
broken apex
#

i mean, unless you consider a bad GPU to be the problem

mossy mango
#

lemon_starstruck kidnapped

rough sapphire
latent scaffold
#

which probably isn't intended

mossy mango
latent scaffold
#

you want the iGPU to be primary and offload to the dGPU

rough sapphire
mossy mango
#

whats yours

rough sapphire
mossy mango
#

yes

rough sapphire
rough sapphire
#

Um yes

#

@mossy mango Say thank you

mossy mango
#

you're small

rough sapphire
rough sapphire
#

=,=

mossy mango
#

that's why

#

lol

rough sapphire
mossy mango
#

34

rough sapphire
#

Ok so

#

You're an old man?

#

You have white hair? qwq

broken apex
mossy mango
#

no because

#

you called me kid

rough sapphire
mossy mango
mossy mango
#

nobody likes to be called old

#

🤷‍♂️

broken apex
rough sapphire
rough sapphire
mossy mango
#

that little kids wish to be grown-up

broken apex
#

pretty much

rough sapphire
#

I'm a teen

mossy mango
#

and omce they are, they'll wish they could be younger

rough sapphire
#

😎

mossy mango
#

probably

rough sapphire
rough sapphire
broken apex
rough sapphire
#

Alr

#

qwq

#

I'll leak your address

broken apex
#

It took "30 seconds" for discord to load, I have horrible internet and am on a really bad computer right now

mossy mango
#

are you going to do some more coding?

rough sapphire
broken apex
#

probably you

rough sapphire
#

oh ok

rough sapphire
#

🌚 Sed life

broken apex
rough sapphire
#

; - ;

#

It'll take time for me to learn the full language

#

@mossy mango Why are you taking so long

#

in typing

mossy mango
#

because I was typing

rough sapphire
#

One question. Do anyone really use Pycharm?

mossy mango
# rough sapphire I'll leak your address

i was going to make a friendly suggestion-- be careful who you say these things to-- some people won't know you're joking and might be legit scared or try to get you in trouble

rough sapphire
broken apex
#

there wouldn't be pycharm if people used it

latent scaffold
rough sapphire
latent scaffold
#

you'll often see some of the staff using it, too

mossy mango
broken apex
latent scaffold
#

I know eivl uses professional, I sometimes see Xith using CLion and stuff

rough sapphire
mossy mango
#

yea its great

rough sapphire
#

Ikr

broken apex
#

now I need to fix xorg

latent scaffold
rough sapphire
broken apex
#

my GPU VERY BARELY has enough VRAM

latent scaffold
mossy mango
#

was too busy with @rough sapphire

rough sapphire
rough sapphire
latent scaffold
#

Xorg's just using what the system designated as your primary GPU

mossy mango
#

fake-kidnapping me lol

rough sapphire
latent scaffold
#

you can force Xorg to switch things up, though

rough sapphire
#

I forgot "you"

latent scaffold
#

but it's not the root of the problem

#

sudo prime-select intel; sudo reboot and that should be that

rough sapphire
latent scaffold
rough sapphire
broken apex
broken apex
latent scaffold
#

what are the prime-select options again?

broken apex
#

nvcc --version works though

broken apex
latent scaffold
#

do prime-select

#

it should give you options

broken apex
#

Usage: /usr/bin/prime-select nvidia|intel|on-demand|query

latent scaffold
#

oh, you might want on-demand

#

so do sudo prime-select on-demand; sudo reboot

broken apex
#

okay

distant burrow
#

fucking hell i love aperture

broken apex
latent scaffold
#

is your PC custom built \🤔

broken apex
#

the screen just shows as light grey

latent scaffold
#

I have a feeling something is a little wonky

#

that ain't normal at all

broken apex
#

I have 2 SSDs, one is ubuntu, one is windows

latent scaffold
#

that doesn't mean anything to me lol

broken apex
#

both in the computer

#

so it tries dual boot

latent scaffold
#

and?

#

If something broke from switching to on-demand, it'd break after you've selected Ubuntu

broken apex
#

that might be the cause

latent scaffold
#

Is your PC custom built?

broken apex
#

no

latent scaffold
#

in that case

broken apex
#

I started ubuntu, but I always have issues with the graphics driver when it starts

latent scaffold
#

I have no idea. When did your screen "show light grey"

#

like when during the boot process

broken apex
latent scaffold
#

booting what

broken apex
#

ubuntu

latent scaffold
#

So you selected Ubuntu from GRUB

broken apex
#

yes

#

and it showed a blank but on screen

latent scaffold
#

okay then just boot in safe-graphics mode and undo that

#

or restart and see if it'll just work

#

it sounds like you're gonna have to just pick one GPU

#

either the integrated or the dedicated

broken apex
#

what's safe graphics mode? I've seen it, but what is it?

latent scaffold
#

but they're not terribly good in terms of performance and stuff

#

so you boot into safe-graphics to fix your issues and then reboot normally so you can actually utilize your GPU correctly

broken apex
#

if it doesn't, that means I need to take my computer apart again, which is incredibly annoying, is there any actual fix to the problem before I try that?

latent scaffold
#

no

broken apex
#

oh

latent scaffold
#

if it was working before, then it'd be the change of on-demand

#

it sounds like your GPU setup is a bit funky, though

#

if I had to guess, your BIOS settings might be a little wack

broken apex
#

IGPU or graphics card?

latent scaffold
#

idk tbh

#

sounds like just both

broken apex
broken apex
#

I looked it up, I don't think prime-select does what you said, it seems to be to turn off the GPU

#

which may have broken my computer

#

which is very annoying

broken apex
latent scaffold
#

on-demand means both GPUs would be on

#

but the dGPU goes in some specific mode to use less power iirc

#

so you "off-load" to the dGPU to only use it for select applications

#

if you select intel, only your iGPU would be on

#

if you select nvidia, only your dGPU would be on

latent scaffold
#

Google said that rebooting fixes it lmao

#

How did you install NVIDIA

broken apex
#

normally?

latent scaffold
#

define "normally"

#

Did you use ubuntu-drivers?

#

that's the "normal" method

broken apex
#

no

#

how do I do that?

latent scaffold
#

run ubuntu-drivers

#

find the driver that's recommended

#

and sudo apt install it

#

it should hopefully uninstall whatever driver you had before out of conflict

#

but Google still seems to suggest that you should reboot

broken apex
latent scaffold
#

in that case

#

all I can suggest is reinstalling the drivers

#

or wait

#

what happened to the grey screen

#

Are you in safe-graphics?

broken apex
#

no

#

I went to advanced and selected default

latent scaffold
#

wat

#

so prime-select is still on-demand?

broken apex
#

how do I check?

latent scaffold
#

prime-select query

broken apex
#

yep

latent scaffold
#

lol my prime-select is way different

#
❯ sudo prime-select
[sudo] password for root:

NVIDIA/Intel video card selection for NVIDIA Optimus laptops.

usage: prime-select           nvidia|intel|intel2|amd|offload|unset|get-current|get-boot|offload-set|log-view|log-clean
usage: prime-select boot      nvidia|intel|intel2|amd|offload|last
usage: prime-select next-boot nvidia|intel|intel2|amd|offload|abort
usage: prime-select service   check|disable|restore

nvidia:      use the NVIDIA proprietary driver
intel:       use the Intel card with the "modesetting" driver
intel2:      use the Intel card with the "intel" Open Source driver (xf86-video-intel)
amd:         use the Amd card with the "amd" Open Source driver (xf86-video-amdgpu)
offload      PRIME Render Offload possible with >= 435.xx NVIDIA driver
offload-set  choose which intel driver use in PRIME Render Offload
unset:       disable effects of this script and let Xorg decide what driver to use
get-current: display driver currently configured
log-view:    view logfile
log-clean:   clean logfile
boot:        select default card at boot or set last used
             supports kernel parameter nvidia.prime=intel|intel2|nvidia|amd|offload
next-boot:   select card ONLY for next boot, it not touches your boot preference. abort: restores next boot to default
get-boot:    display default card at boot
service:     disable, check or restore prime-select service.
broken apex
#

the driver installed x server settings

latent scaffold
#

I thought you said you didn't have that

#

\🤔

broken apex
#

but nvidia-smi didn't work

latent scaffold
#

okay hold on a second

broken apex
latent scaffold
#

from ubuntu-drivers?

broken apex
#

yes

latent scaffold
#

You'll have to reboot after you install drivers

broken apex
#

oh

#

of course

#

finally!

#

this is slightly better:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46       Driver Version: 495.46       CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   36C    P3    32W / 200W |    303MiB /  7948MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2125      G   /usr/lib/xorg/Xorg                175MiB |
|    0   N/A  N/A      2258      G   /usr/bin/gnome-shell              126MiB |
+-----------------------------------------------------------------------------+```
#

but still not off

latent scaffold
#

oh boy.

#

check prime-select query real quick

#

does it say on-demand still?

broken apex
#

yes

latent scaffold
#

okay then idk what to suggest

#

I have a feeling there's a BIOS setting somewhere

broken apex
#

nope, it did nothing

latent scaffold
#

idk why your dGPU is the default

#

that's just weird

#

maybe check NVIDIA X Settings

broken apex