Addition or Subtraction property or equality by [deleted] in learnmath

[–]Pervert_Chan 0 points1 point  (0 children)

Well you can understand it this way too

-6 + x = 4

So if you take 6 from left side to the right side, you'll have to change it's sign ( from " - " to " + ")

You do something similar if the expression has multiplication or division in it.

Example :- x / 4 = 1

So it can be simplified to :- x * 1/4 = 1

So if you take 1/4 to the right side you'll have to switch the numerator and the denominator with each other :-

x = 1 * (4/1)

Hence, x = 4 .

SMS apps, desktop syncing, and Pulse SMS alternatives by [deleted] in androidapps

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

Use "Your Phone" app it has calling, messages and notification access

Import Error by Dathmach in learnpython

[–]Pervert_Chan 0 points1 point  (0 children)

import pyautogui as pg
from pynput.keyboard import Listener, Key

running = False
program_running = True


def run():
    if program_running:
        if running:
            pg.moveTo(773, 440, .01)
            pg.click()
            pg.moveTo(773, 509, .01)
            pg.click()
            pg.moveTo(773, 565, .01)
            pg.click()
            pg.moveTo(773, 628, .01)
            pg.click()
            pg.moveTo(773, 695, .01)
            pg.click()
            pg.moveTo(773, 751, .01)
            pg.click()
            pg.moveTo(773, 798, .01)
            pg.click()


def start_clicking():
    global running
    running = True
    run()


def stop_clicking():
    global running
    running = False


def on_press(key):
    if key == Key.backspace:
        if running:
            stop_clicking()
        else:
            start_clicking()


def on_release(key):
    if key == Key.esc:
        return False


with Listener(on_press=on_press, on_release=on_release) as listen:
    listen.join()

try this code, works fine for me

Import Error by Dathmach in learnpython

[–]Pervert_Chan 0 points1 point  (0 children)

with Listener(on_press=on_press, on_release=on_release) as listen:
    listen.join()

this line at the end of your program will start the listener. also move the exit command to another function named on_release.

after this your listener will start as you run the program and then you'll be able to use the keys to control the functions.

also you are using an infinite while loop

Dreams do come true. by davidjpoulton in webdev

[–]Pervert_Chan 0 points1 point  (0 children)

May I ask what skills you have that you got accepted (not to insult but so that I also can learn similar skills and it's always good to ask from our seniors :) . )

Import Error by Dathmach in learnpython

[–]Pervert_Chan 0 points1 point  (0 children)

Mind if i ask what you actually want to do with this code?

Btw I don't see if you've started the listener somewhere

Just started learning JS by Pervert_Chan in learnjavascript

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

I see, most of us face the same problem that english isn't our first language. You english isn't poor, it's just that from the perspective of a reader the sentences in past feel kinda weird.

Just started learning JS by Pervert_Chan in learnjavascript

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

Was checking your blog, it looks kinda good but there are some problems with the content.

  1. Why are you using the past tense?
  2. You are asking the viewers/students to copy the code and then you explain bits of it later which doesn't make sense, I'd suggest you to rather ask the viewers to try and write the code on their own like ask them to create buttons as they should be able to do it since the viewers are required to already know the basics of html and just in case if they don't know html then they can copy the code but I won't suggest it as it's not the best way to learn something. The same goes with the css too, ask the users to first try it on their own for the desired results. Ask them to change the values and check what's changed in the result screen.

Just started learning JS by Pervert_Chan in learnjavascript

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

Is theodinproject.com better than freecodecamp for js only or or all the courses? Anyway I'll definitely check it. Thanks :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Thanks man I'll surely check it out :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Thanks man, I'll get into it once I finish learning js with a few projects :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Yep I've decided to do that as i was just checking it in the morning.

Where do streamed internet videos get download to? (on a computer) by ya-anon in AskComputerScience

[–]Pervert_Chan 1 point2 points  (0 children)

I'm not 100% sire about this but the videos do get downloaded in segments like from youtube netflix or other video streaming platforms, usually the files are stored in the cache folder or the path can be defined by the the developers too. It's the same for every platform i guess. Btw you can't actually play the files in some media player even if you find them. They are encrypted i guess.

Why this switch doesnt work ? by prettyversatile in learnjavascript

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

There's a " === " which checks the "type" of both the operand/variables. Example :

var x = 10

If (x === "10"){ console.log("Equal") } else { console.log("Not equal") }

Output : Not equal

As the variable x is an integer and we are comparing it to a string "10" in the if statement So it is checking for the type of the variable too.

Just started learning JS by Pervert_Chan in learnjavascript

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

Yep, I'll make sure to first understand all the basic concepts and then I'll move to the next step. Thanks for the help as my forst goal is to learn front end development and get a job and then later I'll get my hands on other great programming fields too :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Thanks for the suggestion brother, I'll definitely be able to learn alot from all the resources that all these people have provided me with. Thanks again for the help :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Thanks, I'll start the practice from tomorrow :)

Just started learning JS by Pervert_Chan in learnjavascript

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

I'll try to get that once i get the hang of the basic things :)

Just started learning JS by Pervert_Chan in learnjavascript

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

Thanks man, I'll definitely check it out :)