#ot1-perplexing-regexing
1 messages · Page 627 of 1
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 /ɫ/
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
That's why it says it's ɫ in phonetic alphabet
ah
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)
I have two debit cards: one I made myself and another one I got from university
they have different transliterations of my name 😐
@paper plover Is your pfp from Limbo?
Idk is that someone from tik tok?
I was scrolling on there and it looked cool so I screenshotted xd
Nope, Limbo is a great game. If you're bored, I highly suggest trying it out! Really awesome game
Oh my bad, Ill look it up later!
Great :D
:D
https://youtu.be/xP5-iIeKXE8 Life in life
A video of Conway's Game of Life, emulated in Conway's Game of Life.
The Life pattern is the OTCA Metapixel: http://www.conwaylife.com/wiki/OTCA_metapixel - for more information, see http://otcametapixel.blogspot.com.au/
The life simulator used is Golly - http://golly.sourceforge.net/ which has a built-in script to generate these metapixel gri...
Game in Game
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?
#python-discussion message
@rough sapphire Just two AP classes right now
are you passing with straight As?
Hah, nope
what are they?
Im taking AP Chem and AP Calc rn
I wanna take more but JROTC takes up 2 terms
World history and comp sci
is world history hard?
Very, and my teacher isn't particularly wonderful
I don't have too much to personally compare it to though
@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
don't start a blog with an expectation of making money
no
I don't want to start a blog to make money
I want it for college application
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
okay
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
how do you make money though
does article get famous or something
I earn from my writing because I get paid through Medium, and their platform also definitely helps you reach a wider audience
may i get a link to your viral post?
https://betterprogramming.pub/4-new-github-products-that-will-change-how-you-code-27933401faa0?sk=d298a554ccb7d9c5d5c6bd8f48a9d777 (This link should get you around the paywall, let me know if not.)
wow nice
me who deletes cookies to get around paywall 👀
What do you think is the best package for printing bold/colored text in python?
Didn't know Medium earns you money
colorama
how do i just get the bold ascii code in colorama?
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:
I think it's in colorama.Style
yeah rich is better, I forgot that choice sorry
i cant find it :(
is it possible to get the ascii for bold in rich?
yeah
look what he is doing in the pic
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
You keep saying ASCII but I think you mean ANSI
if you're doing logging, just use the RichHandler
aha thanks!
goodnight
sorry \😩 I reopened Discord after the notification
look how helpful I am, though
stop helping and start loving
why not both
How do I make print convoluted
System.Console.Write.Logl
How do you guys fix/recover from a repo with broken history or smth
the emoji isnt discordified :O
Depends, what're you trying to do?
\😱
I did some stuff and I just made useless pull request commits and stuff
Well, you can do an interactive rebase, delete the junk commits, and fhen force push
But meh, just leave them be
😱
Aight thanks
what's the context on that
idk, i just feel faster. i'm not sure if it's even correct
Deletes by word instead
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
@edgy crest
o
I'm playing with tempering chocolate :3
Also cheating my age (also from tempered chocolate) on cake my partner made XD
Automated testing in Python is an important way to take your Python project to the next level of dependability and professionalism. There are a lot of steps, but it's not too difficult to setup your tests to run automatically across multiple different operating systems and versions of Python whenever you push a commit or receive a pull request o...
What's the pyproject.toml for?
I didn't see him using poetry

A lot of tools allow it for configuration
There's a PEP standard for it
!pep 621 is one, and then there's some other specific ones
Hmm
three mice??
So instead of using .isort.cfg and .flake8 I can put both in pyproject.toml? (Assuming both support it?)
Didn't work, I got correct number of candles XD
happy birthday!?
happy birthday!!
u drink?
*u drunk? Yes, lol
My MIL decided to try whisky with cola. Didn't know how much to pour. Poured too muck whisky XD
plain overkill, 7 or nothing smh
I am obligated to say OwO
anyone here good with linux? The linux discord is terrrible
what is your question about linux? "asking to ask" doesn't really attract potential answerers.
true. my question is how would I make several files with different extensions in one specific file location? (I know I would use the touch command)
just use the touch command with multiple arguments that have different file extensions. one thing u can probably do is touch pathtodirectory/{somefile.txt,somefile.jl,somefile.py,somefile.rs}
dont add spaces before or after the commas
ty, would their be a faster way to do this I need 10 of 4 different extensions?
wasn't this for homework?
no
what was it from, then?
personal use for something
uh
do u wanna help or something?
well I can't really tell what you're wanting
and I know you were previously asking for help with a homework question
?
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
so we kinda need more info from you
a simple expansion would work
you dont. Stop burying my reply if you arent going to help.
oh yeah i was dumb
its fine ill just type it out ty
We do, though. If it's for an assignment, we can't just give you the answers especially if we don't know what you're supposed to be learning
well if it is actually for homework, well go brain drain yourself and regret later in life 🥴
Well, questions like that are definitely more likely to be for an assignment — especially since your previous question was one
but not that that's a terrible thing
nah just let them brain drain themselves
theyre going to have regrets 🥴
will flake8 support pyproject.toml anytime soon?
How's that supposed to work?
instead of putting your config in .flake8 put it in pyproject.toml?
(I don't know much about pyproject.toml much btw)
idk if that'd make much sense, I think pyproject.toml is supposed to only really be for packaging and distribution
And I hate top search bars since they're too far to reach
I am very lazy
I guess that makes sense
but it's also like really weird
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
@rough sapphire please talk here for non-python things
but this chat is dead!
!help helpdm
!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 hey does this command work for you outside of bot-commands?
!helpdm
state_bool
!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.*
!helpdm on
:ok_hand: @young shoal Help DMs ON!
tyty
@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.
thanks
No problem at all 
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?
man why is this so good
wow nice ot name
i'm gonna guess this was @karmic gust
why me
it is a superb series of starting syllables
alliteration affinity \🤔
hah it was not me
Happy birthday @harsh tundra
I have a math question.
What is √i?
If you want an answer, DM me. 🙂
You have a question but you also have an answer?
multiposted btw
Checks out
It is soo damn cold in this house, it was like 62 or something and my parents REFUSE to put it to 70
62 is fine, put a sweatshirt on
yep no prob
oh yeah
❤️
17 is nice and cozy at this time of year
sheesh i rushed a git commit right before dinner
insert applause
and its starting to warm up here
still freezing here

Hello, I haven't seen sun like in forever.
-1 to 10 degree Celsius all day
Every day
Australia ay
It will be summer here if that's the temperature
Oh yeah congrats! 🥳
I consider it valuable to normalise including pronouns regardless of gender identity @rough sapphire
@naive ether __file__ is a special variable containing the absolute path of the python file thats being run, if it exists
!e print(__file__)
@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__'?
this wouldnt work as the bot isnt running a file
so there's no __file__
!e print(globals())
@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)>}
it does still have some special vars as you can see /\
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
".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?
!e py for file in os.listdir('./'): print(file)
@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
!e py import os for file in os.listdir('./'): print(file)
@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
hmmmm
.bm
FYI it's all open source
oh really?
mhm
mhm
Gotta have the alliteration
the alliteration is an acquired...appetite?
Affection
@thorn lagoon yeah the .in site is definitely further ahead in textbook solutions too
like almost all grades
They had them first and I'd guess they have the most books on the indian site
i guess so
joe how is it up thee
And my expertise here is that I spent a lot of time modding/answering on Brainly in the past https://brainly.com/app/profile/13888565/answers
Just a bit
youre my saviour probably
like whenever i cant understand de math problem
i hop on to brainly
Thanked by 4.1k people on there so maybe 😂
I'm still friends with a few people on the trusted helpers team, I'll pass that on 😉
thx
i can see something like this instead of a song name in the polybar, i used this module: https://github.com/PrayagS/polybar-spotify
I can give my config files if needed
Did u dir it
Dir??
dir(ur code)
time to ping joe for stats guys
Too illiterate to alliterate to reiterate what I'll recreate
I tried
https://youtu.be/kpSO55fTSZc angy klee uwu
that's mildly annoyed at best
!e
import os
for file in os.listdir('\\'):
print(file)
@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: '\\'
!e
import os
for file in os.listdir("\"):
os.delete(file)
!e
import os
for file in os.listdir('/'):
os.delete(file)
:trashcan;
man this place has gone farther and farther every time I come back
Damn
I know a horror show
C++ written spaghetti codebase
!ok
heya, i need a really long complicated tittle for the IT department
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)
@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
Pretty good so far
Just need it to have tech words and not fantasy
Or atleast words that sou d techy but are made up
Like deep learning
all words are made up, pontus
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
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.
Sounds Scifi
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
What do you call somoene who owns a farm?
Dungeon has sex kink connotation or medieval torture or both lol...IT basement...
IT fallout shelter... perfect for uptime even during nuke strike
basically copy all channels' name under topical chat/help
The IT Basement Sex Dungeon
There I combined the two
Thd IT Basement Sex Dungeon and Fallout Shelter with massage service (torture for enemy combatants)...
sounds like a good time but im still gonna have to charge you ¯\_(ツ)_/¯
The Department of Internet Technology Maintainance and Backend Systems Management
The Maintaince department of Information pipeline Infrastructure technology and Backend system management,
Internet = information pipeline infrastructure
oh yeah, i need to make sure to put in that iam the member of it, or the crew
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
kinda hard to make anything sound official with a basement or a dungeon 💀
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
man memeology is quite the server
ooh its supported
ig they dont know the userbase
we allow all servers with a vanity URL or something of that shape
oh
hi giys
Remember, the cloud is just someone else's computer ;)
yes but mainframes get hacked all the time by dudes wearing black hoodie with their terminal font set to green
"I'm in."
To infinity and beyond (Brad's Matrix screensaver)
Meanwhile I will go
To my bed
And sleep
cmatrix -lba
i think that's from toy story
not matrix
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
Thank you kind kerbalnaut
Lets be honest, moat of us who fucking know python and shit wont get a girlfriend
no that just sounds like you
getting a girlfriend doesnt depend on how much python you know
projecting, ay?
When I have a call with one person and they share their terminal, I'm always caught off guard with their colour scheme. Because yes, they use that neon green on black :D
yeah most of the people i enjoy hanging out with are dudes and i dont really have any sex attraction to make me go out of my way and try befriending a "big tiddy goth" for gf purposes, but a catboy is close enough ¯_(ツ)_/¯
Probably not this year....lol but I had the unfortunate experience of a girl I didnt know once asking me for a date for one valentines day..Never gone on a date and didnt know her personally so I said no...later she stalked me, flooded my fb...(no longer checking) spammed my email and cell....changed both....she claimed she watches me by my bedroom window in one of those spam msg ...gasp...
is that the npc from spongebob
if she actually watches you by your bedroom, yelling among us every 5 or so seconds will help. although this will yield a side effect, prompting a character called "your mom" to come and beat you up for making so much noise. the next one is a joke. also attack her insecurities by saying that she is too fat to move around to even reach your house
I tested this by living in a dorm ...she said she missed me in a text while I was at uni lol...creepy
hmmm i wonder why people make such attachments to people without actually talking to them
wait
Parasocial Relationships, yes
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!
🧐
Creepy sound like paranormal...she also claimed to have a third eye and see ghosts in a text lol...why I changed sim etc
shoulda told her to ask them the last name of obama
you shouldnt have missed the opportunity to do a "tiny bit" of joking around
Transferring 7.7 GB onto an external hard disk
Bless me with patience
And yes I said HDD, not SSD
thou musteth be blessed by god
That's just for one user
that just sounds like the average u-haul lesbian :> /s
Sounds like a couple ppl I know ngl
Lol really I dont believe in such ghosts and third eyes
I knew someone in my uni circles that actually spent money on psychics and crystals
: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).
good night
damn
!warn 782906494034903051 As per our sixth rule, please don't use our server to post unapproved advertising
:incoming_envelope: :ok_hand: applied warning to @frail sun.
No probs 😄 the new version of our clean command is so much nicer to use
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
It's the fibonacii sequence
I don't know the equation, but I know there is one
whats f?
what if i remove f?
If you meant f(1) = 0 and f(2) = 1 then that's equivalent (but with shifted domain)
With for loops though, what you want to do is use the following algorithm:
n := 0
m := 1
repeat:
t := m
m := m + n
n := t
Oh right
I'm stupid
This is how wonderful morning brains are
There actually is an equation too
A closed form one
Seems like something that would appear there 👀
A formula for fib 💀
Maybe I just don't understand the notation, but that looks like a complicated way of writing a function that just spits out zero.
its 1 + sqrt(5) on the left and 1 - sqrt(5) on the right
I wonder what the square root of 5 is doing there
funny that that formula works
I recognised the formula for phi, though.
Actually everything there, I'm confused
It's the golden ratio
It looks like magic like The Quadratic Formula where you just plug variables im
the quadratic formula is relatively easy to derive
just have to complete the square
H m m m
Algebra is just easy (almost always)
I wonder if I'm feeling the effects of memorization people say happens at school
In school yes, in university no
Probably if it gets flushed out the moment I left Junior High Hellhole School
i think thats relatively better because its an approximation
better as in easier to believe that it works
How many people have felt peace ever sicnce social distancing's the norm
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
This is cool
the fiboncaci one wasnt an approx?
How good is the approximation
nop its exact
what wtf
Nope, it's exact assuming perfect floating point accuracy
Because I've felt more happy overall when most of my time's at home
Compared to Junior High School where I wish the worst of luck
Even learning felt more relaxing
Apart from that one time I rushed Math
The subject I'm supposed to understand
i miss sports
programming and pydis have basically kept me alive lol
And the whole people are suffering for a multitude of reasons caused directly or indirectly by the virus
mm
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
Imo the biggest problem was online school
Well, I suppose for some it still is a problem
No online exams here 😦
We have them offline and have to get a test the day before
It feels peaceful to me since I avoid people more and less people less conflicts...but more lonely lol
Very true...miss social gatherings and conferences
Much of the interactions are now online like here lol
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
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
somebody should open the issue on pylint or pep8 to rename UPPER_CASE to SCREAMING_CASE
.topic
Suggest more topics here!
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?
!ot
Off-topic channel: #ot2-never-nester’s-nightmare
Please read our off-topic etiquette before participating in conversations.
ettiqutte
never gonna happen smh
that will be sooooo implicit
My PyCharm already screams at me when I'm importing ElementTree as ET
I was talking about in the context of creating a statically typed scripting language
Not like additions to Python itself
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
idk much about xbox :((
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?
Looks like an 80s' programmer's arcane crap
that's not very helpful
in the fibonacci sequence you add the current two terms to get the next one
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)
ik I'm so sorry I'm a beginner js scripter so I got this as hw, sorry :C
could u retype it and make it more readable and short?
if u think it is verbose
pls remember :)
I'll try
and ping me also if u remember
Yeah
tysm
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?
just because you can doesnt mean you should :P
but dragonlord said that its bad because its long
Yeah that actually looks good
Not that it's long, actually that is short
Comments explaining why you did what you did would be helpful
let me do that
I believe it's JS convention to put opening braces on the same line as the preceding expression
they said
isn't very verbose
mhm but tysm for helping me
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
//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!
Oh yeah that's good
Especially with really simple stuff like this is easy to get lost sometimes, thanks
:)
yes
let's see if that was impacting somehow
it's at like 10,000 I'd prefer to wait 🤣
can you run it from a non-graphical session? 🤔
unless it can go much faster somehow
no
10,000 have been converted?
yep
are you low on VRAM?
not for that
idk what VRAM is really
I just need it to be a bit higher for something else
VideoRAM
hmm
any browser open?
xorg is using a lot though
yes, but I stopped it from using vram
well
+-----------------------------------------------------------------------------+
| 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
pidof xorg | xargs -n1 pstree
13,000 converted
Hey @broken apex!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
probably bad then
might need sudo ?
nothing
I have the process id, if that's what it does
13679 right now
nvidia-smi \🤔
Xorg───{Xorg}
Are you on a hybrid computer?
no?
If you're not, then there's probably nothing you can do
what's that?
literally just having two graphics cards
whether the primary one is meant to be integrated or not
it has an IGPU enabled from the BIOS
some laptops have an iGPU and a dGPU
not a laptop
do you have an iGPU and dGPU?
oh, yes, both
dedicated would be your NVIDIA card
it's even enabled in BIOS
so then you need to mess with NVIDIA prime, probably
which was the previous problem
how?
COLUMNS=4096 pstree --show-pids --thread-names --uid-changes --show-parents --long #
gives me a lot more info
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
systemd(1)───gdm3(13260)───gdm-session-wor(13664)───gdm-x-session(13677,eliso)───Xorg(13679)───{InputThread}(13682)
the process will vary somewhat depending on the distro you're using
ubuntu
20,000 images done
so then you should be able to do like sudo prime-select intel
loading
or there's subcommands I think
but you want to select "intel", I believe
or actually
it says done, no affect
how many images do you have btw
30,000 (to convert)
You've installed nvidia-prime? Open the "NVIDIA X Server Settings" and go to "PRIME Profiles"
how do I open that?
Do I need help? (Ignore the theme)
what the
qwq
but I don't know where it is
Tell me. Do you think I need help?
doesn't exist
wdym? like your app menu
it's not there
idk, how did that get there
uh...
XD
If you want your code to do anything at all
I have grey as my background in VS code 🤣
Probably
welp. I'm sure we can use prime-select still
me too 🎉
you have to reboot or relog
idk how often relogging works but I don't think it often does for me
so I just reboot
okay
log out and back in?
that should work
that what it is?
or it's supposed to
I do
relog = log out and back in, yes
Why code not work :((
Idk how often that actually works, though. I just reboot anyways
what traceback
And you're in ot uk
you need to follow syntax rules for it to work 🤣
oo ok
ignore the explorer. I'm a student 🤓
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
I just use GlassIt-VSC
It makes it transparent so you can see my wallpaper
ohh
If you want :)
will it work if plugged in to the GPU port?
wdym by that
the HDMI cord
is it done yet @broken apex
@mossy mango I know your weight
no
no you have to reinit your session
52345827452738239542358326528390567283572308562386572386 kg
29,000
I hope this won't come under spamming
will the screen still turn on
how'd you reach this conclusion? 🤔
now I just need to fix xorg
I'm standing outside your house and I got a sneak peak from your window
I'll kidnap you then
but nice try :p
Ok I'm gonna kidnap you
Xorg's not the problem
ok
See outside your window
yes it is
i mean, unless you consider a bad GPU to be the problem
kidnapped
Ok serious question. What is your weight
No, it's your system's configuration. It's using the dGPU as primary
which probably isn't intended
138 lbs
you want the iGPU to be primary and offload to the dGPU
oo
whats yours
The guy in your pfp. Is it you?
yes
42 kg
oo
34
how do I fix the configuration?
because...?
some people will be bummed out if you speak to them like this, just fyi
oo
little kids do
Understandable
that little kids wish to be grown-up
pretty much
and omce they are, they'll wish they could be younger
😎
probably
Well
You took 30sec to type that?
no
It took "30 seconds" for discord to load, I have horrible internet and am on a really bad computer right now
Oh
are you going to do some more coding?
who you asking
probably you
oh ok
I'm just a programming student not an actual programmer so I don't really have a specific thing to work on
🌚 Sed life
If you actually know how to program python, you could help with a project I'm working on
Well I hope I wasn't a student
; - ;
It'll take time for me to learn the full language
@mossy mango Why are you taking so long
in typing

because I was typing
I'm gonna cry
One question. Do anyone really use Pycharm?
yes
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
Oh
there wouldn't be pycharm if people used it
; - ;
Yes. I use PyCharm Professional
oh
you'll often see some of the staff using it, too
is it done yet?
the images?
I know eivl uses professional, I sometimes see Xith using CLion and stuff
I just asked because maximum of the people use vsc
yea its great
Ikr
pour souls
oh I missed lol
; - ;
my GPU VERY BARELY has enough VRAM
it is again not really a problem with Xorg
was too busy with @rough sapphire
; - ;
qwq
Xorg's just using what the system designated as your primary GPU
fake-kidnapping me lol
I will kidnap for real
you can force Xorg to switch things up, though
I forgot "you"
but it's not the root of the problem
sudo prime-select intel; sudo reboot and that should be that
Roots are underground yk
let's not, please
Why are you so serious 🧐
why aren't you? probably similar but opposite reasons
xd
yes, but no:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.```
right...
what are the prime-select options again?
nvcc --version works though
not sure, it's help description is REALLY bad
Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
okay
fucking hell i love aperture
that was a bad idea, it broke my computer
huh?
is your PC custom built \🤔
the screen just shows as light grey
I have 2 SSDs, one is ubuntu, one is windows
that doesn't mean anything to me lol
and?
If something broke from switching to on-demand, it'd break after you've selected Ubuntu
that might be the cause
no
in that case
I started ubuntu, but I always have issues with the graphics driver when it starts
I have no idea. When did your screen "show light grey"
like when during the boot process
after booting
booting what
ubuntu
So you selected Ubuntu from GRUB
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
what's safe graphics mode? I've seen it, but what is it?
basically uses backup drivers and should generally work fine enough universally
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
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?
no
oh
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
IGPU or graphics card?
I've tried changing so many things, something is definitely wrong, but there's no list of correct options
I'm not sure ¯_(ツ)_/¯
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
Is this different?
Failed to initialize NVML: Driver/library version mismatch
yeah no
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
How do I fix the driver?
normally?
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
didn't, restarting my computer is getting annoying
in that case
all I can suggest is reinstalling the drivers
or wait
what happened to the grey screen
Are you in safe-graphics?
how do I check?
prime-select query
yep
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.
the driver installed x server settings
but nvidia-smi didn't work
okay hold on a second
I just installed the driver
from ubuntu-drivers?
yes
You'll have to reboot after you install drivers
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
yes
nope, it did nothing
idk why your dGPU is the default
that's just weird
maybe check NVIDIA X Settings
for what?


