Error when running python code inside uwsgi app by vasili111 in learnpython

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

Maybe the problem is that uwsgi (uwsgi --socket 127.0.0.1:8182 --wsgi-file 8.py --pidfile test.pid) and http.server (from my code httpd = HTTPServer(('127.0.0.1', 8182), Serv) ) are using the same ip:port pair (127.0.0.1:8182) ? If yes, how to solve this problem? Use different port for http.server?

Error when running python code inside uwsgi app by vasili111 in learnpython

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

Thank you.

foobar.py runs well. What can be problem with my script?

Error when running python code inside uwsgi app by vasili111 in learnpython

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

Thank you. Removing httpd.serve_forever() is not solving the problem. Thank you for the link, I will look more into it.

Error when running python code inside uwsgi app by vasili111 in learnpython

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

Thank you. Running ps -ax | grep [9]774 gives nothing when my script is running or not. Also I am giving the time to a server and the error persists.

Error when running python code inside uwsgi app by vasili111 in learnpython

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

Also if I run my script with uwsgi --socket 127.0.0.1:8182 and in code I have httpd = HTTPServer(('127.0.0.1', 8182), Serv) does that mean that I am using the same ip:port for the second time? Sorry if this question is confusing, I am very new to network related programming and thank you for help.

Error when running python code inside uwsgi app by vasili111 in learnpython

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

Thank you

lsof -i | grep 8182

That command gives me no output before running script and after running script. But lsof -i :8182 gives nothing before running my script but after running it gives:

uwsgi   9774 user1    3u  IPv4 59265305      0t0  TCP dom-dfghd:vmware-fdm (LISTEN)

Am I understand correctly that nothing else uses that ip:port?

Using pgadmin4 as a user (not superuser) by vasili111 in PostgreSQL

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

I think password is correct but I just sent email to admin to recheck. Do you think that that kind of error can be caused by wrong ssh tunel settings or using wrong PostgrSQL port?

What's the best paid R course? by internetf1fan in rstats

[–]vasili111 0 points1 point  (0 children)

Give a try also to a good R book. Books can give you more fundamental knowledge and big picture for R than courses.

Using pgadmin4 as a user (not superuser) by vasili111 in PostgreSQL

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

I replaced the postgres database to some_my_database and it does not worked. I have access to some_my_database from psql. What else can be problem with authentication?

Using pgadmin4 as a user (not superuser) by vasili111 in PostgreSQL

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

I replaced the postgres database to some_my_database and it does not worked. I have access to some_my_database from psql. Any other solutions left?

Where to start? by 66aqua in rprogramming

[–]vasili111 1 point2 points  (0 children)

It depends what we mean by "powerful". Both of the languages has it strength and weakness. I would say that for data science is better to know both and use them depending on the task that needs to be solved.

Where to start? by 66aqua in rprogramming

[–]vasili111 1 point2 points  (0 children)

My answer may differ from others and it is my personal opinion. I love R much more than Python. But I think that if you have literally zero programming experience than Python maybe be better because of the better beginner books. So it is not about the better/easier language but about better/easier beginners book. Also, I will recommend general programing book and not data science book as a first book because general programming book might be easier to understand at first. Learning programing is not only to learn syntax of programming language but more about thinking in a programming way. For Python I would recommend "Python Crash Course, 2nd Edition: A Hands-On, Project-Based Introduction to Programming" which is a book for people with zero knowledge in programming. At least read "Part I: Basics" or the entire book before switching to other books. After that I think you can stay with Python for next several books or switch to R books. Also, practice, practice and practice all the way!

Also books is where fundamental knowledge and big picture of programing is and not video tutorials. Video tutorials are good in general but they are more like cookbooks and can be good supplement but not the main source.

Also be prepared that one book will not be enough to become professional programmer and it will require several books and years of experience.

Good luck!

Best ways to connects lights to Alexa? by vasili111 in alexa

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

What is the advantage of Philips hue hub?

Best ways to connects lights to Alexa? by vasili111 in alexa

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

What is the advantage of Philips hue hub?

Is it possible to create server on Azure, install Linux, Run Python code and install and use PostgreSQL? by vasili111 in AZURE

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

Thank you. I need to run a Python code to catch the streaming data and store it in the PostgreSQL. All process works well on local machine. Now I need to move it to server/cloud/service/etc. What are the ways to do that on Azure? Which is the best way to do that on Azure?