Change bot properties in AIML standard from alicebot.org - aiml

I'm trying to make a chatbot for a school project. I am using the AIML set 9 from this link.
Link to AIML Set
I want to change the name of my bot along with the other properties of the bot. But I can't find the place where these properties are set in this set.
Can somebody help me with the code I have to add in the files to set a particular property like bot name="name" or if it's set somewhere then where?

Your bot's name is not located in AIML but in Bot's config folder. Go to config/properties.txt in Alice bot's folder.
In my case, the path is:
bots/alice2/config.properties.txt

Related

Sitecore advanced upload option is missing from admin panel

I was trying to upload an image using Sitecore [Version 6.5] media library to my existing sitecore website. I see the Advance Upload Files option is completly missing. Later, I tried to install a default sitecore instance and I see the Advanced Upload option is there. But it is completely missing to the existing sitecore website.
Here, is the snapshot of my site where the Advanced upload option is completely missing:
And here is the snapshot of my default sitecore site where the Advanced upload option is there:
To fix this, I tried to change couple of configuration files. But still the same issue. The Advanced upload files option is completely missing. Did you face the same type of issue or if you know how to fix this issue, can you please share your thoughts. Or if I need to change any of the configuration files, then can you share your thoughts about that change of any of the configuration file?
Thanks
Upload files (Advanced) button is hidden in 2 cases:
Folder does not use Media Folder template. Just check your folders - maybe they use standard Folder template instead of Media Folder.
Upload.Classic setting is set to false. Open /sitecore/admin/showconfig.aspx and look for Upload.Classic value. When it's set to true, Sitecore uses flash upload instead.
If none of above is the case, maybe you have some custom code which hides Upload files (Advanced) button from you editors.

How to put web service consumer configuration in properties file in Mulesoft?

I want to put the parameters of web service consumer in a properties file. I know how to use properties file in mule. ${myWSDLlocation} in the configuration dialogue box does not do anything. I looked into this link, but could not solve it.
Any help will be appreciated. Thanks.
Got the solution.. This is what I did:
Dragged and dropped ws-consumer in flow
Configured it using the UI
Added properties file and defined key-value pairs in it - the usual way
Then edited the <ws:consumer-config> tag using ${keyNameHere}
First be sure you have property placeholders defined. Below is the syntax where a config.properties file has been defined to be used and it is placed in src/main/resources directory of your project.
Now in you properties file you can define the stuffs like below
implementation.url=http://abc-cdc.com
This URL can be accessed from web service consumer application using below.
ws:consumer-config doc:name="Web Service Consumer" name="Web_Service_Consumer" connectorConfig="HTTPS_Request_Configuration" wsdlLocation="ServiceWSDL/Manager.wsdl" serviceAddress="![p['implementation.url']]" port="ManagerSOAPPort" service="ManagerService"
In above example I am using only serviceAddress from config.properties file. Please let me know how it goes.

Required license is missing: Runtime Sitecore

I am getting this error
Required license is missing: Runtime
I have checked datafolder path
<sc.variable name="dataFolder" value="C:\Path\Data" />
and license file settings
<setting name="LicenseFile" value="$(dataFolder)/license.xml" />
also checked permission all is correct but still it is giving error.
The most likely cause is a patch file in the include folder that is changing your path. Sometimes this is called "DataFolder.config" and may have the default path set in it, which will overwrite the setting value you might have in another patch config or in the Web.config file.
There are some tools that let you track down config settings without having a working Sitecore instance. I would try out the Config Builder (https://marketplace.sitecore.net/Modules/Sitecore_ConfigBuilder.aspx) which should be able to load up all your config settings and help you track down the problem.
I know it is a pretty late to answer, but for folks who end up here - this might be helpful.
There could be couple of reasons why you get this error. Since OP had already mentioned that his license file has not expired - Another viable reason is
The datafolder path is wrong. the first line of the Sitecore.config line defines the datafolder path. For eg: something like this:
<sc.variable name="dataFolder" value="C:\Inetpub\wwwroot\sitecoredev\Data\"/>
if you have any developer create a different instance name or folder and checks it in, it will not find the path and hence you will get this error.
Check if the licence file has expired:
Confirm that the expiration date in the licenses has not been reached or passed. Open the license.xml file with a text editor and search for “expires”; find the line corresponding to the “20060319”. If the date has been reached or passed (for instance, if it is March 19, 2006 or later), the license will not work; obtain an updated license.
https://sdn.sitecore.net/Articles/Troubleshooting/License%20Issues.aspx
I have installed 8.2 update 5 on my local machine. The default installation adds a folder called 'zzz' in App_config/include folder and creates DataFolder.config in that folder and references the data folder name from that config file. My publish overwrote/deleted that folder and i got the error 'Required license is missing: Runtime Sitecore'.
Adding that folder 'zzz' from my backup site resolved that issue.
I have also noticed that even if after fixing the path you may still see this error. Once you fix path with valid license, DON'T forget to reset IIS/ Apppool.
Below are the possibilities for the error.
Verify if the license file is present - You can check this in the default data directory of the Sitecore installation path. If the file is not there add it here and restart the IIS.
The path of the License file is wrong - The default path of the Sitecore license file will be specified in the “web.config,” and if you are using the Sitecore 8+ version, then verify Sitecore.config file(App_config/Sitecore.config) where LicenseFile settings are provided
Overriding the License file path - If you are using any Patch files or thrid-party libraries like brainjocks then make sure the patch file is not overriding the default path.
License expired - Don't forget the check if you provided license is been still active or expired. You can do this by opening the license.xml in editor and verifying the field "expiry" and the date.
Config File settings
<sc.variable name="dataFolder" value="/data" />
<setting name="LicenseFile" value="$(dataFolder)/license.xml" />
Source - Sitecore Required license is missing: Runtime [Solved]
Something to watch out for: I had multiple config files for different environments (e.g. DataFolder.QA.config, DataFolder.Live.config) which were overriding my DataFolder.config with values that were incorrect for my local environment. Deleting the unneeded environment configs got this working.
if you have doubt whether sitecore is looking into correct place, check out /sitecore/admin/showconfig.aspx page. this is what sitecore really uses after combining all configurations. You can chekc both <sc.variable name="dataFolder" value="C:\Path\Data" /> and <setting name="LicenseFile" value="$(dataFolder)/license.xml" /> there. Of course this page only shows <sitecore>...</sitecore> part of configuration.
Also make sure that NETWORK SERVICE account or <your IIS app pool name here> account (depending on which Identity is bound to your App Pool instance) has full access to Data folder and also App_Data subfolder inside webroot, just to rule out any read/write access issue

Using fossil embedded documents

I'm using fossil to manage some home projects and keeping notes in the wiki. After running like this for a few months, I'd like to at least try to use embedded documentation; mainly so as to be able easily to go back to previous versions.
I've studied the website page about managing project documentation which confirms that this is a technique I want to follow up, but I can't make out how to do it.
I've cut-and-pasted one of my wiki pages and added it to my fossil repo, but I can't work out where it should go in the directory structure to be accessible as described on the above page.
I've tried in a few places none of which worked. The document is currently %fossil-root%\doc\foo.wiki, (I'm on Windows), where %fossil-root% is the directory holding _ _FOSSIL__ (slighly mangled filename because of markdown), but having started a server with fossil ui, when I point my browser at http://localhost:8080/doc/foo.wiki, fossil presents me with a nicely formatted page saying it can't find index.html. I created /doc/index.html to see what would happen, but it made no difference.
Please can someone help me out, and/or point me to an example repository containing embedded documentation or another "how-to" document.
If your document is located in %fossil-root%\doc\foo.wiki, you can access it at the following URL:
http://localhost:8080/doc/trunk/doc/foo.wiki
This URL breaks down as follows:
http://localhost:8080 is the root URL to access Fossil when you run fossil ui
/doc signals that you want to access embedded documentation
/trunk indicates the checkin containing the documentation you wish to access
/doc/foo.wiki is the path of the document inside the repository
Instead of trunk, you can also specify a tag, or a branch name, or even a hexadecimal checkin identifier.
In the URL you were using, http://localhost:8080/doc/foo.wiki, foo.wiki is interpreted as the checkin name, and no document path is specified, which logically means Fossil won't find anything.
As for an example repository containing embedded documentation, the homepage of the Fossil website itself is a prime example:
https://www.fossil-scm.org/index.html/doc/trunk/www/index.wiki
where
https://www.fossil-scm.org/index.html is Fossil's root URL
/doc indicates a request for embedded documentation
/trunk indicates we want to fetch files from the trunk
/www/ is the path to the requested file inside the repository
index.wiki is the name of the file inside the repository.
So, in the 'trunk' branch of the repository, the file www/index.wiki contains the home page of the Fossil website.
You simply need to put the documentation under the %fossil-root%\www\ directory (or any other directory under version control) in your repository and then you can, for example, add the following line to your header's mainmenu section to link to it:
html "<a href='$home/doc/trunk/www/foo.wiki'>Documentation</a>\n"
As I said, it can be any directory under version control. To test this, pick any file in the repository, let's say a README file at the top level, and go to http://localhost:8080/doc/trunk/README. You should see the README file load up in your browser in a raw text format. By putting wiki or html files under a particular directory such as www you make it easy to organize the files that you specifically want rendered as documentation, which makes it easier to link to them.
http://www.fossil-scm.org/index.html/doc/trunk/www/embeddeddoc.wiki
After fossil 1.33, just prepare your document in the repository.
If the wiki file is put in
/doc/index.wiki
And use web browser to setup -> Admin -> Configuration.
There is a "Index Page" field, fill in your main index.html.
For example:
/doc/trunk/doc/index.wiki
Or if you just want the released version:
/doc/<version>/doc/index.wiki

changing the default URL i.e. http://localhost:8080/axis2/services/ in Webservices using axis

I tried an web service example from the below mention link
http://www.tidytutorials.com/2009/02/web-services-example-using-axis-2-and.html
In the example when we generate the client code using wsdl2java the url used is as mention in title i.e. http://localhost:8080/axis2/services/ Is there any way by which i can use custom name insted of axis2/services for ex. ponds/accounts
I tried with packages, keeping the aar file in newly created folder in services directory but not working
Try this
in the axis2.xml you'll see
<parameter name="contextRoot">axis2</parameter>
Its usually commented out and I suspect axis just uses axis2 by default. but try changing it and see if that fixes it
I don't think you're using eclipse but if you are it has an easier way of changing the context root through Project Properties -> Web Project Settings