Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:04
    @mstellaluna banned @dertiuss323
  • Jan 07 15:43
    User @mstellaluna unbanned @oudarjya718
  • Jan 06 15:14
    @mstellaluna banned @oudarjya718
  • Dec 15 2018 23:38
    @mstellaluna banned @Julianna7x_gitlab
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 22:59
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:13
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 27 2018 19:07
    User @mstellaluna unbanned @JomoPipi
  • Aug 27 2018 06:17
    @mstellaluna banned @JomoPipi
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:15
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
Andrew
@sheerluck
try sudo snap install pycharm-community —classic
Andrew
@sheerluck
compare
WebGearMT
@WebGearMT
@sheerluck It worked! thanks a million!!
I used this one: sudo snap install pycharm-community —classic
Aviraj Khare
@avirajkhare00
./run hello_world.sh
Sara Alomran
@saraalomran3_twitter
hey guys i have a question regarding API requests using python
anyone interested to help?
Philip Durbin
@pdurbin
@saraalomran3_twitter I can try. What's your question? :)
Sara Alomran
@saraalomran3_twitter
Screen Shot 2019-12-01 at 5.44.28 PM.png
guys how can i plug (user_input) inside the url instead of (google.com)
a changing variable that i take from the user
whats the syntax
Philip Durbin
@pdurbin
@saraalomran3_twitter well, please be careful to sanitize user input to prevent security problems
Andrew
@sheerluck
@saraalomran3_twitter
user_input = request.form['url']
url = f"https://endpoint... 71b&host={user_input}" # notice f
print(url) # https://endpoint... 71b&host=boo.me
t = requests.get(url)
Sara Alomran
@saraalomran3_twitter
YOU'RE A GENIUS I LOVE YOU ANDREW
Andrew
@sheerluck
Jeferson Moura
@jefmoura
Hey guys, some partners and I are building an open-source API Gateway in Python/Django with a lot of features and I'd like ask you for feedback. Our idea is to help developers to speed up the process of application and API creation, including the admnistration of them. We want to also encourage people to use "micro" services and industry standards, so they can connect services that are built in different languages and use them seamlessly. Keep in mind that this project is still in progress and it's not in version 1.0 yet but it will be ;). I'd love to get some feedback from you all, so you can email me directly jeferson@buildly.io or the team team@buildly.io
Thank you and have fun :D
https://github.com/buildlyio/buildly-core/
https://buildly.io/developer-community/
https://buildly-core.readthedocs.io/en/latest/
Sorry for the long message
Sara Alomran
@saraalomran3_twitter
hey guys i got a question.
i used a python library that generates xml sitemap for any website, this is the screenshot of the output it gives, the thing is i want to only print out the url object ( a string object) not the whole objects which are ( priority, last_modified, change_frequency , news_story)
Screen Shot 2019-12-03 at 4.28.54 PM.png
Screen Shot 2019-12-03 at 4.34.58 PM.png
and this is the code that i wrote
Sara Alomran
@saraalomran3_twitter
how can i append all url object in one list then print it?
knowing its xml
this is the library's documentation
Sara Alomran
@saraalomran3_twitter
nevermind guys it workeddd
Lujain36
@Lujain36
Hi
I’m facing some problems in firebase using python and I hope you could help in this.
I’ve list of strings and I need to store each element of the list in firebase but, this what I got “firebase_admin.exceptions.InvalidArgumentError: Invalid data; couldn't parse JSON object, array, or value.”
    for i in indusry_list:
        name= i
        cpc="11"
        serp="11"
        vulme="11"
        keyword={ 
            name:{
            "cpc": cpc,
            "serp": serp,
            "volume" : vulme}
        }

        keywords.update(keyword)


    Industry["keywords"].update(keywords)
    SUPERHEROES2 = db.reference('Industries/')
    SUPERHEROES2.push(Industry)

    #end of for loop
this is the code. Thanks in advance!
Francisco Albert Albusac
@tatitati
guys, during an installation with PIP in mac I'm having an error and is saying: Check the logs for full command output., but is not saying what file is that log. Exist any default one?
han-solo
@millefalcon
Could you give us the full traceback ?
Francisco Albert Albusac
@tatitati
is sorted out, I reinstalled python and it didn't happen again, not sure about the reason
Joe Gasewicz
@joegasewicz
hey guys , I would be really grateful if anyone wants to star my Flask library, thank you: https://github.com/joegasewicz/Flask-JWT-Router
WebGearMT
@WebGearMT

Hey guys, I'm trying to make a network scanner using this tutorial: https://www.thepythoncode.com/article/building-network-scanner-using-scapy , this is what the result should look like:

available devices on the network:
IP                                                         MAC
192.168.1.1                                    mac:address:...
192.168.1.3                                    mac:address:...

However, the response looks like this:

Begin emission:
.Finished to send 256 packets.
..................................................................
Received 67 packets, got 0 answers, remaining 256 packets
Available devices in the network:
IP                  MAC

I used the code exactly as in the tutorial, however, the output remains the same, does anyone know what went wrong and how I can fix this? thanks in advance!

Andrew
@sheerluck
@WebGearMT maybe you are not in 192.168.1.xx network:
# ip route | grep 192.168.1
default via 192.168.1.1 dev enp4s0 proto dhcp src 192.168.1.70 metric 204
192.168.1.0/24 dev enp4s0 proto dhcp scope link src 192.168.1.70 metric 204

# ifconfig | grep 192.168.1
        inet 192.168.1.70  netmask 255.255.255.0  broadcast 192.168.1.255

# python scapyall.py
Available devices in the network:
IP                  MAC
192.168.1.1         1c:74:44:44:44:44
192.168.1.50        44:8a:44:44:44:44
192.168.1.1 is my zyxel, 192.168.1.70 is my desktop, 192.168.1.50 is my notebook, oh and this:
# whoami
root
WebGearMT
@WebGearMT
After studying your information here I realized that all I needed to do was change the network used in the tutorial to my own network, silly me haha, thanks a lot!
Javith
@aaqibjavith
Hi, why we need uwsgi infront of flask server? Is there any advantage? As of now, I just using Nginx infront of flask server.
han-solo
@millefalcon
how does your application talk to the web server then ?
i don't think, your flask application can understand the request directly from nginx
To intermediate between your nginx and your python flask application, one need to use some WSGI complaint server like uwsgi or gunicorn

and the request from Nginx will be translated by wsgi server and will be given to your python application.

----request---->[nginx]---->[wsgi server]----->[flask]

dodumosu
@dodumosu
I'm not entirely sure, but I think you could use nginx to proxy requests to a Flask server. That said, @aaqibjavith please don't. The Flask docs even tell you that the development server is not to be used in production. You don't have to use uwsgi. Gunicorn, waitress, CherryPy, Twisted can serve up your application
Use whichever wsgi server you like, just don't use the Flask development server in production. It's single threaded if I recall, it's insecure
han-solo
@millefalcon
flask or others have their own web servers they can run. But if you need to integrate with nginx/apache you need a wsgi complain server to intermediate. I have not tried the proxy stuff
learningcode
@learningcode9
Hi,Anyone know how to use a treeview in tkinter to insert,update,get data from postgres?
Sundar
@sundarv85
Hello.. one question, I’m new to uwsgi and when I run the code pastebin.com/raw/ZagmAMkc using the command uwsgi --http :9090 --wsgi-file wsgi.py --enable-threads --processes 2, I get two processes, but the thread that I’m creating is running only in the main process.. I was expecting the thread also to be part of the fork, but that is not the case. How is it working internally?
Javith
@aaqibjavith
@millefalcon I think, flask implement WSGI internally. I just use the proxy pass in Nginx configurations
imaring
@imaring
程序员导航:https://nav.imaring.com/