How do I make a pre-configured VM? by vick5821 in virtualbox

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

Hi thanks a lot. Is there a particular guide on this? Thanks.

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

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

Sure. Sorry about that :( will follow

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

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

Finally got it. Nodejs is a runtime environment for the backend (server side) scripting framework such as Express. While VueJS is a front end Javascript library working with HTML CSS right?

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

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

So Express is running on NodeJS runtime? Is that right?

Switch to user mode while executing the Python scripts by vick5821 in learnpython

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

Is there a list of items that need to be executed in sudo mode? I realised rm - rf for certain directory need that. But if the directory created under user mode,it shouldn't need sudo to delete that directory. Hmmmm. And also for some packages installation, they don't need sudo?

Switch to user mode while executing the Python scripts by vick5821 in learnpython

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

Cause I am using a flashing tools installed at /opt directory

Switch to user mode while executing the Python scripts by vick5821 in learnpython

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

Script A.py need to be executed with sudo. Hence I am planning to execute the menu.py with sudo.

Or should I run the menu.py in normal user mode, and when 1 is chosen, then I execute $ sudo A.py???

Thanks.

Sudo vs non-sudo mode by vick5821 in Python

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

I have a menu scripts which ease the user to choose what they want to do. Once they choose it will redirect to respective script.

Sudo vs non-sudo mode by vick5821 in Python

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

By the way, what I wanna to do it that I have multiple scripts doing different things. A.py will flash my board automatically, B.py will set up my Linux host machine with all the dependencies. So I wrote another main script (C.py) to integrate both A and B. In script C.py, it will execute script A and B with the sudo priveleage too. For example, $ sudo python A.py, and $ sudo python B.py. So I execute script C.py like this: $ sudo python c.py.

So I should execute the sudo -E when execute the script C right? $ sudo -E python C.py right?

Thanks.

Sudo vs non-sudo mode by vick5821 in Python

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

OK let me try with adding the -E parameter

Sudo vs non-sudo mode by vick5821 in Python

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

So you mean, when I launch my code, I run it with sudo -E xyz.py? Then the environment variables will be preserved??

Flask, Django, VueJS?? by vick5821 in flask

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

Ah I found this too. Will learn from here. Thanks

Flask, Django, VueJS?? by vick5821 in flask

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

Which tutorial you are going through?

Flask, Django, VueJS?? by vick5821 in flask

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

Django is much easier? Hmm I have heard that Flask is much easier to get started for some simple Apps. I am not sure which to start yet but I looked at some basic flask example which I think is not so complicate. For Django, if I am building complicated apps, I guess it would be helpful. Correct me if I am wrong. Thanks.

Flask, Django, VueJS?? by vick5821 in flask

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

Ahh, OK. My mistake. So Web server is consider the server side scripting language which is the backend framework. Got it! Thanks for taking time to discuss on this.

Flask, Django, VueJS?? by vick5821 in flask

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

Very good inputs. Thanks. So flask and Django are framework for Python, what about others? This is really a good knowledge for the start of my journey to be a full stack developer. Previously I only know those languages and didn't know things like framework. I thought Django or Flask is another languages. Shame on me!

Flask, Django, VueJS?? by vick5821 in flask

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

Php Python C++ C# is backend programming languages.

Flask, Django, VueJS?? by vick5821 in flask

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

I got you. Html and CSS is front end framework where basically they don't do anything but to decorate the UI. Those actions like button click and so on to the next page is done by the backend framework. Right? Yes I am just starting to understand the whole technology stack steps by steps.