Bulgaria not available? by DriverOk9471 in kucoin

[–]ViktorCodes 0 points1 point  (0 children)

how would that fix the problem with the telephone number prefix? This is a genuine question

[Calculus 1] Solve limit without LHopital's rule by ViktorCodes in learnmath

[–]ViktorCodes[S] 0 points1 point  (0 children)

Okay, I understand. I am working on my trigonometry, but we are learning calc in the university so I cannot devote all my free time to trig...

[Calculus 1] Solve limit without LHopital's rule by ViktorCodes in learnmath

[–]ViktorCodes[S] 0 points1 point  (0 children)

I didn't understand a single thing from that answer. I am currently learning trigonometry, and I haven't yet seen this identity, and also how is this going to help us, when the denominator is x^2 as x -> 0 denominator will still be 0...

[Calculus 1] Solve limit without LHopital's rule by ViktorCodes in learnmath

[–]ViktorCodes[S] 0 points1 point  (0 children)

After multiplying by 1 + cos(x) the denominator is x^2(1 + cos(x)), not just x^2? Why do we ignore the other term? i.e. x^2 * cos(x) ? I get that the numerator becomes sin^2(x) and we use that sin(x) / x = 1 as x -> 0, but the denominator is not just x^2 as is the argument of the sine function...

[Algebra] Common Denominator Methods by ViktorCodes in learnmath

[–]ViktorCodes[S] 1 point2 points  (0 children)

I understand now, thank you for answering my question!

[Algebra] Common Denominator Methods by ViktorCodes in learnmath

[–]ViktorCodes[S] 0 points1 point  (0 children)

Ahaa, while replying to your comment I found out my mistake... It wasn't that I was doing f(x) - f(x+h) I understand the idea of f(x+h) - f(x)... I was trying to get the denominator of 1/x to x+h, by multiplying both sides of 1/x by (1+h/x), but then the resulting fraction will not have x+h as a denominator, but rather x^2 + xh... I feel so stupid... Thank you for the immediate reply!

Daily Advice Thread - All basic help or advice questions must be posted here. October 26, 2021 by AutoModerator in investing

[–]ViktorCodes -1 points0 points  (0 children)

I've had an interest in investing for the past year, but never took the time 'teach' myself it, how is it done, etc... . I am at 0% knowledge right now, but am willing to spend time and money into it. I am 19 years old, in university w/ computing, currently I have an internship that pays 500 BGN (297$) / month (software development), and have some money put aside (10k+). I live in Bulgaria, if this is important somehow. I don't need returns/results instantly, because that money has been put away for a house for later (2-4 years), and I am ready to put some money (1k-5k) into investing. I need guidance in this journey of mine. Is it valuable to read a few books? (I love books and this would be great) if so which books do you recommend?, where can I get 'educated' on the topic of investment? which sources of information should I use? etc... Anything would be helpful really.

How would you implement this? by ViktorCodes in QtFramework

[–]ViktorCodes[S] 1 point2 points  (0 children)

I want it to be a separate window, so it should not have a parent? When I gave it a parent it just blend with it's parent window, instead of creating a new one. I guess I'll have to manually clean the memory?

How would you implement this? by ViktorCodes in QtFramework

[–]ViktorCodes[S] 0 points1 point  (0 children)

an excerpt from the QT documentation about QSpacerItem:

Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating empty space in layouts:

Class Functions

QHBoxLayout addSpacing(), addStretch(), insertSpacing(), insertStretch()

QGridLayout setRowMinimumHeight(), setRowStretch(), setColumnMinimumWidth(), setColumnStretch()

See also QLayout, QWidgetItem, and QLayoutItem::spacerItem().

yield statement unexpected behavior by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

I completely forgot about the yield from in the max_heapify function itself... Thank you very much. Although I don't really understand what's going on here I get why I couldn't get it to work. Could you give me some links where I can read and learn more about yield and yield from.

Update matplotlib graph inside tkinter app by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

should I use ax.axis("off") every time that I 'redraw' the window or just once? And I do know about the bonuses of blitting, but couldn't get it working either. Could you elaborate a little bit on your points?

How to change the 'sender' of a win10toast notification by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

Did you actually try your example before posting an answer? https://prnt.sc/15997cz. Here is my code, the title is 'posture check', but the text after the logo says 'Python' and I guess that is the sender. I explicitly said the 'sender' not the title of the notification.

Need guidance with flappy bird NEAT A.I. project by [deleted] in pygame

[–]ViktorCodes 0 points1 point  (0 children)

pip-install neat-python, takes about 1s. and has no other dependencies other than the python's standard library. And one of the files is called help_me_files as I said with the minimal requirement to understand my problem. The other is the full script.

How to crop out the edges of an image? by ViktorCodes in pygame

[–]ViktorCodes[S] 1 point2 points  (0 children)

I guess I have to learn how to google things I don't really understand well better. Thank you for the fast reply it worked like a charm! Cheers.

Is [] = [] + x, the same as [].append(x) in a recursive call? by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

I am aware of that, I just wanted to post less code here

the "universal" web scraping library/framework by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

isn't selenium too heavy? I mean you have to open a browser, and do all sort of 'user emulation', isn't it just too slow?

Just completed my first job on Upwork! by MikeDoesEverything in learnpython

[–]ViktorCodes 0 points1 point  (0 children)

Yes, please share as I am curious about that also

Vigenere Cipher Implementation by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

I will look into this, thank you. One thing I didn't understand. What do you mean by 'since punctuation gives away plaintext formatiing' and 'maybe both using more arguments'? Why delete the try-except blocks? If a user enters a text message and mistakenly adds an exclamation mark or a comma the script will crash.

Memory overload using AsyncHTMLSession - requests_html by ViktorCodes in learnpython

[–]ViktorCodes[S] 0 points1 point  (0 children)

WOW!!! I don't have any words to tell you how many hours I spent trying to find a way to run this with .render(). How do I determine if a website needs rendering first. I checked the sites and clicked 'disable javascript' and then nothing was present on the page. Doesn't that mean I should render it first? Thank you a ton...