extensive Linux user with python and php programming

Jan
9
awarded Nice Answer
Dec
16
comment Can you print an image to the terminal using python?
you mean rendering image on console or printing the image data ?
Nov
26
comment How to stick the menubar at the top of the window PyGTK
please add more code especially your menu and packing on layout. Also see: python-gtk-3-tutorial.readthedocs.org/en/latest/index.html
Nov
21
awarded Caucus
Nov
18
comment PEP 8 and deferred import
Since it is an opinion, I would go for try....except where-ever I use the optional module. This would be useful if you wrap the information about the use case of optional module i.e numpy in your case.
Nov
10
comment convert html table to csv in python
yes. All I can recommend is check 'tablehtml' as well as 'soup' before you call anything on it.
Nov
10
comment convert html table to csv in python
I tested your code with selenium and bs4 and have got no issues. Somehow your soup object is returned as None.
Nov
10
comment convert html table to csv in python
what is the ouput of tablehtml ?
Nov
6
comment MySQL insert with List Comprehensions
Please check what query is executed. You may need more data treatment as well.
Nov
6
comment MySQL insert with List Comprehensions
I think your empty list with 'roles' is creating a problem.
Nov
6
comment MySQL insert with List Comprehensions
Please paste you 'member' variable sample on your question
Nov
6
comment MySQL insert with List Comprehensions
If your key is 'sid' it should be '%(sid)s'
Nov
6
answered MySQL insert with List Comprehensions
Nov
6
comment MySQL insert with List Comprehensions
You can use mappings with executemany. why not something like this -> cursor.executemany( "INSERT INTO Orgs (sid) VALUES (%(sid)s);", target_org)
Oct
28
comment Is there a javascript equivalent for the python pass statement that does nothing?
Isn't {} empty braces the same thing ?
Oct
27
comment python nested dict gets Key error when using += operand
'KeyError' is due to dictionary not having key. Either your 'repID' or 'month' variable has value that is not populated in dictionary
Oct
16
comment Getting 404 for all static files during WSGI setup with django
see docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/… . This is the way to serve static in different development servers
Oct
16
comment Getting 404 for all static files during WSGI setup with django
afaik you should have debug=True to make staticfiles app work. I have not done http through uwsgi but it seems to support it uwsgi-docs.readthedocs.org/en/latest/HTTP.html . You could try that.
Oct
16
comment Getting 404 for all static files during WSGI setup with django
are you trying to serve static files with uwsgi itself or are you using any http server ?
Oct
15
comment How to find out which server is clashing on 127.0.0.1
If the port was clashing django won't run afaik. It seems you have apache installed and running somewhere. To test django you need ip with port i.e. 127.0.0.1:8000 on address bar.
1 2 3 4 5