Archive for the ‘Research’ Category
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
If you want to do cross-domain scripting with XMLHttpRequest, e.g. fetching data from a remote location but you’re on a local page or local XUL application (file:///), you need to tell Mozilla/Firefox about that, otherwise you get the infamous error:
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
Always remember: XMLHttpRequest needs UniversalBrowserRead!
If the page with the XMLHttpRequest is on a http:// URI (on a webserver), it is not possible to fetch data from another domain!!! This is a security measure of Mozilla/Firefox.
cross-domain-xmlhttprequest.html
<script type="text/javascript" language="javascript">
// Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
var http_request = false;
function makeRequest(url, parameters) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) {
alert("Permission UniversalBrowserRead denied.");
}
http_request = false;
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
if (!http_request) {
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.onreadystatechange = alertContents;
http_request.open('GET', url + parameters, true);
http_request.send(null);
}
function alertContents() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var string = http_request.responseText;
alert(string);
} else {
alert('There was a problem with the request.');
}
}
}
function updateweather() {
makeRequest('http://www.wunderground.com/auto/rss_full/global/stations/16239.xml', '');
}
</script>
<input type="button" name="button" value="GET XML"
onclick="javascript:updateweather();">
Source: http://www.captain.at/howto-ajax-permission-denied-xmlhttprequest.php
Freebase Paralax
How Search Engine Work

“Spiders” take a Web page’s content and create key search words that enable online users to find pages they’re looking for.
Source: http://computer.howstuffworks.com/search-engine1.htm
A Browser for Heterogeneous Semantic Web Repositories
![]()
Research 8: A Browser for Heterogeneous Semantic Web Repositories
Michiel Hildebrand
Facets and Tagging
RawSugar Faceted Search
Plone Gov Brings Os To Public Sector
ArchGenXML /UML and Plone – How To
ArchGenXML is a code-generator for CMF/Plone applications (Products) based on the Archetypes framework. It parses UML models in XMI-Format (.xmi, .zargo, .zuml), created with applications such as ArgoUML, Poseidon or ObjectDomain.
What is Archetypes?
Framework for developing Plone products
- Automatically creates view and edit pages
- Maintains unique object IDs
- Creates references between objects
Archetypes framework
Field validation
- Standard security setup
- Alternate storage options
- Data transformation capabilities
How to..(in Windows XP)
Before installing AGX, we need to have Plone install (Here my Plone version is 3.1.1).
Step 1: Download ArchGenXML from Plone website (Plone.org). The latest version of Plone requires the latest version of ArchGenXML which is available on SVN (Sub Version Control) repository: https://svn.plone.org/svn/archetypes/ArchGenXML/trunk/
Since i use the latest version of Plone so I need to download SGX from the SVN.
Step 2: Install SVN in order to download the repository. (http://tortoisesvn.net/downloads).
Step 3: Create a folder name “archGenXML” (in order to be easy to work with this i create it in C)
Step 4: Right Click on “archGenXML” folder > Click “SVN Checkout”. Enter the URL of SVN repository “https://svn.plone.org/svn/archetypes/ArchGenXML/trunk/” in URL of reposity field > Click OK. All the repository file and folder will be copied to your archGenXML folder.
Alternatively you can use command: svn co https://svn.plone.org/svn/archetypes/ArchGenXML/trunk/ from the command prompt to checkout the repository.
Step 5: Set up Path to “C:\Program Files\Plone 3\Python” and “C:\Program Files\Plone 3\Python\Scripts“ in PATH environment variable
Step 6: Go to command prompt: C:\archGenXML>python setup.py install
Step 7: Type: C:\>easy_install archgenxml
Step 8: Create a file name: .agx_zope_path (create this file using command prompt) in C:\archGenXML\src\archgenxml. Put one single line: “C:/Program Files/Plone 3/Zope/lib/Python” into the file.
Step 9: Install UML software. Here I use ArgoUML (http://argouml.tigris.org/)
Step 10: Create a simple UML model.
Example: Make a new UML model and give it a name HelloWorld . Choose the tool for class creation and add a class to the diagram. Give it a name such as “HelloType” and add an attribute HelloText with type String.
Step 11: Save/export your model as an XMI file with the name MyFirstExample.xmi (You may save this file in drive C). Then go to the command line and execute: C:\>archgenxml MyFirstExample.xmi
ArchGenXML will begin code generation. When it completes, you will have a new folder HelloWorld on your file system
Step 12: Move the HelloWorld folder to: C:\Program Files\Plone 3\Data\Products. Restart Zope server and open Plone in a browser and log in as Admin. Choose Site Setup from the personal bar and choose Add-on Products. A new product HelloWorld should now appear in the list of products available for install. Choose it and click install. Go to your personal folder. In the list of addable items you’ll find the new product as an addable content type. Add a test instance to see if it works.
If you still have any problem please let me know..
Reference:
http://plone.org/documentation/manual/archgenxml2
http://www.jazkarta.com/presentations/ArchGenXML-UML-talk.pdf
Re-usable metadata, re-usable content
Carrot2 – Open Source Framework for Building Search Clustering Engines
![]()
Carrot2 is an Open Source Search Results Clustering Engine. It can automatically organize (cluster) search results into thematic categories:
Search results clustered with Carrot2 (live demo)
Carrot2 provides an architecture for acquiring search results from various sources (YahooAPI, GoogleAPI, MSN Search API, eTools Meta Search, Alexa Web Search, PubMed, OpenSearch, Lucene index, SOLR), clustering the results and visualising the clusters. Currently, 5 clustering algorithms are available that are suitable for different kinds of document clustering tasks.
Thanks to its flexible architecture, high quality and a friendly BSD-like license, Carrot2 has been successfully used in a number of commercial and research applications and resulted in a number of interesting publications. To get started, please have a look at live demos and the downloads section. If you have any questions or comments about Carrot2, please let us know.
For consulting services, installation, maintenance and text mining expertise, please contact the Carrot2 spin-off company called Carrot Search. Carrot Search offers Lingo3G — the third generation high-performance document clustering engine featuring hierarchical clustering, ontologies, synonyms and advanced tuning capabilities.


