I am trying to configure the ChatterBot extension on the LiveHelperChat platform. The official instructions include the following step:
Edit extension settings in lhcchatbot/settings.ini.php
set your
"secret_hash"
"host"
Where do I find the secret_hash value? I am using shared hosting which is already running the Chatterbot application. Thank you in advance.
I'm not familiar with LiveHelperChat specifically. However, services like this will often generate a hash for your account. Look for this in your profile or account settings. Otherwise, you will need to contact the service directly for any questions.
Related
I made a CLI application in Python which uses Google Dialogflow.
As the documentation provides, I created a Service Account and downloaded the JSON file. Then I loaded it in Python and the application works.
Now I want to publish my software on GitHub and pip but when I load all the files I receive an e-mail from Google that states that I am not managing correctly my credentials. And I agree with that.
The problem is that I do not understand how to manage properly those credentials.
There is 2 solutions:
Either anyone can access to your backend, and you don't need a service account, because it's pubilc
Or, it's private and you don't publish your key (if the secret is known of everyone, the security is useless, make it public!). It's a requirement of the deployment to not commit publicly but to document and to explain how to configure the correct service account to use your app.
Provide more on your context and want you want to achieve to have better pieces of advice. What do you want to protect? Where will you deploy your app? ...
I'm trying to create a Web Job on Azure (I have a student account) but the option is greyed out whenever I create a Web App, does anyone know why? I'm aiming to host a Discord bot I wrote on there, although it uses various Python packages and SQLite3 so I'm not sure if it'd even work. If anyone has any other hosting alternatives I'd appreciate suggestions!
WebJob feature is only support in Azure WebApp for Windows, not for Linux on Container.
Also note that Student Subscription will have limited services enabled.
I need some help with the Google IoT Core API for Python...
For now I'm able to create and delete a registry as needed but, I need to also edit the registry to add more topics to it.
I researched a lot the documentation but no luck, maybe someone here have a similar issue or request? I need to be able to add Topics to a existent registry with active devices in it (no delete and re-creation possible?)
Any help is Greatly appretiated
EDIT: I found this reference: Link to API Reference
But I cant issue the command correctly :( a example could be usefull
You may use the google SDK to edit the registry and wrap the Shell command in a python script that format the topics, the proyect name, etc... the shell comand has this sctructure:
gcloud iot devices update {DEVICE_ID}
--project={PROJECT_ID}
--region={REGION}
--registry={REGISTRY_ID}
For more information of the shell comand check the documentation:
google registry docs
I am developing web applications in python using Django framework. I would like to develop some plugins to extend the functionality of the app. Can anybody tell me how to start about it as i have found nothing specific for web apps in python.
And also can the plugins be developed in any language or should they be in python as well??
Plugin: Suppose I am writing a parser to parse different forms of data, then i want each plugin to take care of each type of data. They should be included only if required by the user. The user has to download the plugin and be able to work on it.
Thanks,
Harsha
If you're talking about how to create a package that other Python developers can import into their application, whether it be a Django project or not, and have it installable via easy_install or pip, you need to register for an account on PyPi and follow the tutorial to get started.
If you want to write your "plugin" in a language other than Python, and offer that functionality on the web, regardless of language or platform, you need to create a Web Service to accept input and return output, usually in XML or JSON format.
Working with a Web Service is NOT like working with a Python package. There is nothing to download or install, there are simply URL endpoints that respond to HTTP verbs.
If you would like to make scripts that parse data and then fill your database with it then check Django documentation on how to write custom django-admin commands: https://docs.djangoproject.com/en/1.5/howto/custom-management-commands/
Such commands will use django env and will have access to your models.
I'm trying to add an Ldap authentication backend to a Django project running over GAE.
The project runs ok. The only problem really is Ldap is not supported by GAE. I mean:
import ldap
will generate a server error. Nonetheless, I do know that I could make my own modules available through zipimport.
Does anybody have any experience solving similar issues? Can this sort of workaround be an effective solution considering lower level dependencies?
Thanks!
A.
App Engine doesn't let you open sockets directly. Unless the LDAP server you're planning to connect to has an internet-visible HTTP front-end, you need a Plan B. (E.g., you could periodically upload extract from LDAP to your App.)
See http://code.google.com/appengine/docs/python/runtime.html#The_Sandbox