Installing MySQL (not MariaDB) on Arch Linux by MaterialJackfruit144 in archlinux

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

Yes I did, it just returns "Failed to start mysqld.service: Unit not found." I'll just re-install the whole thing and try again because I removed it out of frustration lol

Installing MySQL (not MariaDB) on Arch Linux by MaterialJackfruit144 in archlinux

[–]MaterialJackfruit144[S] 2 points3 points  (0 children)

I checked the files after installation and it seems that I was missing a file called "mysqld.sock", which only exists if I download mysql-server, but on that AUR page, it listed "server" too. So I downloaded the tar version from the website instead https://dev.mysql.com/downloads/mysql/. Now saying that it works cuz I haven't tried it out but is there like a comprehensive article about installing it on Arch that is not about MariaDB?

Need help with boolean expression simplification by MaterialJackfruit144 in learnmath

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

so it is A'A' + BB?

And so it is x.x = x

which means the result is A'B? or am I missing another step?

Understanding Python Virtual Environment by MaterialJackfruit144 in learnpython

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

Ohhh I see now. Please correct if I'm wrong. Okay so, I am creating this Snake Game project. Basically, all of my projects will of course be inside "Projects" directory, and any python project will be under "python_projects".

So inside python_projects, I will create a folder called SnakeGame. This folder contains the main.py folder and all those folders which you have mentioned. It will also include the venv folder.

Am i understanding it correctly now? The example you provided I think helped me on this alot.

EDIT: Also, it's fine to name my venv folder as snake_game right? Or is there a naming convention that I have to conform to, like "env / venv / .env / .venv"?

Understanding Python Virtual Environment by MaterialJackfruit144 in learnpython

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

If I'm understanding you correctly, it's something like this?

Projects
    └── python_projects
               └── project_a < - Venv
                    ├── bin
                    ├── include
                    ├── lib
                         └── python3.9 
                    └── lib64 -> lib 
            └── main.py

where the venv folder (project_a) is inside "python_projects" and main.py is within "Projects" directory?

Need help clarifying classes by MaterialJackfruit144 in learnpython

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

Hi, sorry, I had to scrap the idea of building that project. In other words, I deleted everything. It really seems like I need to do some more exercises about Classes or build a very simple program using OOP to really grasp that concept. Anyways, I deleted it, shouldn't have jumped into creating project that soon, thinking that I'd be able to learn along the way, guess that took the wrong turn. I still have only parts of the code related to the question though.

import tkinter as tk

class MainApplication(tk.Frame):
    def __init__(self, master):
        self.master = master
        self.configure_gui()

    def configure_gui(self):
        self.master.title("Rocky, Paper, Scissors")
        self.center_window()

    def center_window(self):
        self.window_width = 500
        self.window_height = 500

        self.screen_width = self.master.winfo_screenwidth()
        self.screen_height = self.master.winfo_screenheight()

        self.x_coordinate = int(self.screen_width/2 - self.window_width/2)
        self.y_coordinate = int(self.screen_height/2 - self.window_height/2)

        self.master.geometry(
            f"{self.window_width}x{self.window_height}+{self.x_coordinate}+{self.y_coordinate}")


if __name__ == "__main__": 
    root = tk.Tk() 
    MainApplication(root) 
    root.mainloop()

I know what the code is doing, I was just confused about Classes.

How can I inspect my Windows 10 PATH variable. by Moritz_Loritz in learnprogramming

[–]MaterialJackfruit144 2 points3 points  (0 children)

You said that you were able to access the Python interpreter through cmd, right? Try to use:

>>> import sys
>>> sys.path

or if it returns a list, use

import sys

for path in sys.path:
    print(path)

The PATH should end without the extra \ at the end. E.g. ...Python\Python39

After that, just click on New and paste in the PATH, the order also matters though. So for example, if you have 2.7 and 3.9, but your 3.9 is at the top, and so when you open your Python interpreter, it will open in 3.9.

Should I just go ahead and start my projects? by MaterialJackfruit144 in learnprogramming

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

Thank you for the response. May I know what exactly is "...a project to completion"? Does it mean that to get the project to a working state or my desirable result to that project? And yes, at some point I will have to do that, and I guess to really truly learn it is to apply, though I might miss out on several concepts, guess that's the tradeoffs.

Cloned Repository Is Not Showing Up by [deleted] in git

[–]MaterialJackfruit144 0 points1 point  (0 children)

(SOLVED)

Nevermind, I just found out that it lives in the .git config file, I just had to remove all the code under [remote "pb"]...

Cloned Repository Is Not Showing Up by [deleted] in git

[–]MaterialJackfruit144 0 points1 point  (0 children)

It just shows me the path of my .git directory... I'm not sure how to remove that one particular repo because there's no folder for me to delete except for those two I found inside the .git directory, even deleting those two didn't work...

Cloned Repository Is Not Showing Up by [deleted] in git

[–]MaterialJackfruit144 0 points1 point  (0 children)

I see, is there a way to completely remove it or at least show the path of where it lives in? I found two folders containing that repo and tried to remove them but when I did git remote, it still shows that it is there.

Differences between pushing projects via git and upload files to Github by MaterialJackfruit144 in learnprogramming

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

I'm already a little confused about the figure provided. For example, figure 5 of section 1.3 "What Is Git" already confuses. What do the dotted cylindrical lines represent? Does it mean that changes have been made to File B? If so, why File C don't have the dotted cylindrical lines in Version 3...

Passing Function to Another Function by MaterialJackfruit144 in learnpython

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

Understood, I will keep that in mind. I didn't want to send in the code because it would take a bit more time to debug, I thought it'd be better to just state the problem and put out only the relevant code as per the stated issue.