Alister Pillow | 25 Jul 04:37 2016
Picon

Monex improvement

Hi Joe,

+1 for this idea.
Regards,
Alister.

For anyone who's interested, I filed a PR for the Monitoring &
Profiling (monex) app, adding a new button to the Profiling pane,
called "Tare".  It's described here:
https://github.com/wolfgangmm/monex/pull/34.  Before this PR, the
query profiling tabs were polluted with all kinds of artifacts from
monex's own operations - its controller.xql, its own modules, its
imported templating functions, its index usage (or lack thereof).
Just enabling query profiling and refreshing the results resulted in
the following number of entries in each pane:

- Queries: 2
- Functions: 20
- Indexes: 19

My thought was: just as with placing a measuring cup on a scale and
pressing the "tare" button to zero out the weight of the vessel before
adding the substance to be measured, couldn't we add a "tare" button
to monex to zero out monex's own operations?  While I had thought
about a feature like this for some time, it was Alfredo's question
that made me act: here was a new user struggling to figure out if
indexes were working on his query.  He already wasn't seeing the
expected results from his own queries, and amidst all of this, he had
to wade through results irrelevant to his task.

What the tare button does is capture all of the queries, functions,
and indexes that are in operation when you select the button.  It then
suppresses those entries from appearing in the results.

Of course sometimes you want to know the entire picture, including
monex's own operations, so you can toggle between Tare and Clear Tare.
I'd welcome anyone to test it out and send comments on the PR.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Ted Hickox | 24 Jul 20:30 2016
Picon

A thank you and a gift

Once again I wanted to thank everyone for their assistance in my recent project.  I wanted to share this video in appreciation.  I hope people will be able to use this code to create their own artwork using the eXist database program.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Masoud Vakili | 24 Jul 14:52 2016
Picon

collection function performance

Hi all,
the collection function is heavily dependent on its documents subset path and is very slow (for example 200 ms)!
is there any way for improve performance?
(my CollectionCache is 128M and I tested 250M too, but it had no effect)
Please help me.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Ted Hickox | 24 Jul 00:49 2016
Picon

Trying to validate a SVG document.

Here is my SVG code:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Image_Box" xsi:schemaLocation="http://www.w3.org/2000/svg SVG_Double_Dollar_SVG.xsd">
    <path id="Top_Path" d="M350,85 Q400,85 400,135"/>
    <line id="Left_Line" x1="300" y1="50" x2="300" y2="350"/>
    <line id="Middle_Join_1" x1="300" y1="85" x2="350" y2="85"/>
    <line id="Middle_Join_2" x1="300" y1="200" x2="350" y2="200"/>
    <line id="Middle_Join_3" x1="300" y1="300" x2="350" y2="300"/>
    <line id="Right_Line" x1="350" y1="50" x2="350" y2="350"/>
    <path id="Middle_Path_1" d="M300,85 C215,85  215,200 300,200"/>
    <path id="Middle_Path_2" d="M350,200 C425,200  425,300 350,300"/>
    <path id="Bottom_Path" d="M300,300 Q250,300 245,250"/>
</svg>

Here is my schema code:

<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:target="http://www.w3.org/2000/svg" targetNamespace="http://www.w3.org/2000/svg" elementFormDefault="qualified">
    <complexType name="SVGType">
         <sequence>
            <element name="svg" type="target:PathType"/>
         </sequence>
    </complexType>
    <complexType name="PathType">
         <sequence>
            <element name="Top_Path" type="target:TopPathType"/>
            <element name="Left_Line" type="target:LeftLineType"/>
            <element name="Middle_Join_1" type="target:Middle_Join_1Type"/>
            <element name="Middle_Join_2" type="target:Middle_Join_2Type"/>
            <element name="Middle_Join_3" type="target:Middle_Join_3Type"/>
            <element name="Right_Line" type="target:RightLineType"/>
            <element name="Middle_Path_1" type="target:Middle_Path_1Type"/>
            <element name="Middle_Path_2" type="target:Middle_Path_2Type"/>
            <element name="Bottom_Path" type="target:BottomPathType"/>
         </sequence>
    </complexType>
    <complexType name="TopPathType">
        <attribute name="id" type="string"/>
        <attribute name="d" type="string"/>
    </complexType>
    <complexType name="LeftLineType">
        <attribute name="id" type="string"/>
        <attribute name="x1" type="string"/>
        <attribute name="x2" type="string"/>
        <attribute name="y1" type="string"/>
        <attribute name="y2" type="string"/>
    </complexType>
    <complexType name="Middle_Join_1Type">
        <attribute name="id" type="string"/>
        <attribute name="x1" type="string"/>
        <attribute name="x2" type="string"/>
        <attribute name="y1" type="string"/>
        <attribute name="y2" type="string"/>
    </complexType>
    <complexType name="Middle_Join_2Type">
        <attribute name="id" type="string"/>
        <attribute name="x1" type="string"/>
        <attribute name="x2" type="string"/>
        <attribute name="y1" type="string"/>
        <attribute name="y2" type="string"/>
    </complexType>
    <complexType name="Middle_Join_3Type">
        <attribute name="id" type="string"/>
        <attribute name="x1" type="string"/>
        <attribute name="x2" type="string"/>
        <attribute name="y1" type="string"/>
        <attribute name="y2" type="string"/>
    </complexType>
    <complexType name="RightLineType">
        <attribute name="id" type="string"/>
        <attribute name="x1" type="string"/>
        <attribute name="x2" type="string"/>
        <attribute name="y1" type="string"/>
        <attribute name="y2" type="string"/>
    </complexType>
    <complexType name="Middle_Path_1Type">
        <attribute name="id" type="string"/>
        <attribute name="d" type="string"/>
    </complexType>
    <complexType name="Middle_Path_2Type">
        <attribute name="id" type="string"/>
        <attribute name="d" type="string"/>
    </complexType>
    <complexType name="BottomPathType">
        <attribute name="id" type="string"/>
        <attribute name="d" type="string"/>
    </complexType>
</schema>

Here is what the eXist Database says:

<report>
<status>invalid</status>
<namespace>http://www.w3.org/2000/svg</namespace>
<duration unit="msec">6</duration>
<message level="Errorline="1column="184">cvc-elt.1.a: Cannot find the declaration of element 'svg'.</message>
</report>

I'm not sure what I'm doing wrong.  I would appreciate your assistance.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alister Pillow | 22 Jul 11:29 2016
Picon

example EXPath package with both XQuery and Java functions?

Hi,

Can someone point me to an example EXPath Package which combines functions in XQuery and Java?
I’m having trouble making this - the Java namespace seems to override the XQuery namespace.

Is it even possible?

Thanks,
Alister.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alberto Simões | 21 Jul 21:28 2016
Picon
Gravatar

Web site seems down.

Just in case nobody noticed :-)

--
Alberto Simões
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Nick Sincaglia | 21 Jul 18:14 2016

Questions about eXist-db v3.0 RC latest code

Yesterday, I downloaded the latest code from the developer branch so that I could build a new system and
start to test the latest version of the code. One thing I noticed was that a lot has changed within
$EXIST_HOME/tools. I normally run eXist-db using the wrapper. I was wondering if someone could explain
how one can run eXist-db as a wrapper using the new code? Also, which logs are used when eXist-db is run as a
wrapper in the new code base?

I tried running exist.sh in the $EXIST_HOME/tools/jsvc but I am getting the error:
$ sudo ./exist.sh start
./exist.sh: line 45: /opt/exist/bin/jsvc: No such file or directory 

Looking at my server, we don’t have an exist directory in /opt. 

I figured I would just ask and find out how the new code is intended to work. 

Can anyone provide and quick overview?

Thanks!

Nick

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Prasad Gudipati | 19 Jul 17:20 2016
Picon

eXistDB Document Replication not working

Hi,
I tried setting up my existDB document replication environment in the following way and its not working. It does not seem to connect to MQ and documents placed in that particular collection on producer are 

not being replicated on the consumer.
All the below settings were done on my local windows PC 

1. Installed existDB 3.0 RC1 on localhost at HTTP Port 8899 and jetty.port.ssl at 8443 to be configured as a Producer instance with admin and no pwd
2. Installed "Messaging and Replication - Core", "Messaging and Replication" which came with build using package manager.
3. created a collection /db/fcc
4. Created /db/system/config/db/fcc and placed collection.xconf under it.
5. Here is the content of collection.xconf

<collection xmlns="http://exist-db.org/collection-config/1.0">
    <triggers>
        <trigger class="org.exist.jms.replication.publish.ReplicationTrigger">
            <parameter name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
            <parameter name="java.naming.provider.url" value="tcp://localhost:61616"/>
            <parameter name="connection-factory" value="ConnectionFactory"/>
            <parameter name="destination" value="dynamicTopics/nabu-doc-replication"/>
            <parameter name="client-id" value="id1"/>
        </trigger>
    </triggers>
</collection>

6. Installed existDB 3.0 RC1 on localhost at HTTP Port 8898 and jetty.port.ssl at 8442 to be configured it as consumer.
7. Installed "Messaging and Replication - Core", "Messaging and Replication" which came with build using package manager. (tried without this on consumer too)
8. edited conf.xml under <EXIST-HOME> directory and placed the following content under <triggers></triggers> tags

<trigger class="org.exist.jms.replication.subscribe.ReceiverStartupTrigger">

<parameter name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
<parameter name="java.naming.provider.url" value="tcp://localhost:61616"/>
<parameter name="connection-factory" value="ConnectionFactory"/>
<parameter name="destination" value="dynamicTopics/nabu-doc-replication"/>
<parameter name="subscriber.name" value="NabuSubscriptionId"/>
<parameter name="connection.client-id" value="NabuClientId"/>
</trigger>

9. Downloaded and extracted apache-activemq-5.13.3 on localhost. No other configuration done on active MQ
10. Started Active MQ, eXistDB Consumer, eXistDB Producer
11. Uploaded an xml document in /db/fcc and I do not see that being enqued under topics, do not see any activity under subscribers, connections.
12. I do not see document being replicated on /db/fcc of consumer too.
13. I tried registering consumer via the xquery option (which is given in hithug documentation as preferred way)
14. I now see consumer and Topic on MQ, but do not see the producer still.
15. I tried different ways of configuring as mentioned in the following URLs but to no avail.


https://github.com/eXist-db/messaging-replication/wiki/Document%20replication
http://harvardforest.fas.harvard.edu:8080/exist/apps/doc/replication.xml
https://en.wikibooks.org/wiki/XQuery/eXist_Replication

Any help would be greatly appreciated at prasadgudipati <at> yahoo.com.

 
Regards
Prasad Gudipati
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Pietro Liuzzo | 20 Jul 10:19 2016
Picon

login

Dear all,

I am trying to figure out how to set up access to my application using the controller.xql but this seams to be not that easy at least for me. I am working with the stable release of exist 2.2 running on ubuntu 14.04.

I have been looking at security and application security sections of the O'Relly manual at the url rewriting example for login in the demo app and at this tread

I have now a page which takes user and password, the controller redirects directly to that page before index is accessed. But then the user and password are not kept with the following request and so requesting another page requires a new login. At the same time, if I point directly the browser to a deeper level in the app, it does not prompt to the login as I would like and just opens it. I tried to replicate the instruction for each view but it did not help. 

I have then tried sm:has-access() as suggested in the manual, to check user rights before any forward. the test stops however, because it says '/db/myapp' or $exist:resource which I have also tested is not a xs:anyURI. 

Could any one give me some more hints on how to set up login based on exist security and permissions from the controller, please? I would like that at any entry point in the app login is prompted if there is no user data but then the information is retained and checked at every new request against the access rights specified in eXist.
 
I also have the following problems with authentication in general:

- I have to re-log my self in every time I do a edit in eXide and checking "Remember me for 2 Weeks" does not help...
- trying to add a user with the user manager from dashboardand  I got logged out, the full list of users temporarely disappeared, I had to reboot the server as everything was stuck. Then when I tried again I got this message on the login section of the dashboard 
"It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching." and I add to log in as admin to see the app. I removed the new user and everything come back to normal.


Thanks a lot for any help on any of the above points!

sincerely yours
Pietro
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Prasad Gudipati | 19 Jul 22:01 2016
Picon

eXistDB Document Replication not working

Hi,
I tried setting up my existDB document replication environment in the following way and its not working. It does not seem to connect to MQ and documents placed in that particular collection on producer are 

not being replicated on the consumer.
All the below settings were done on my local windows PC 

1. Installed existDB 3.0 RC1 on localhost at HTTP Port 8899 and jetty.port.ssl at 8443 to be configured as a Producer instance with admin and no pwd
2. Installed "Messaging and Replication - Core", "Messaging and Replication" which came with build using package manager.
3. created a collection /db/fcc
4. Created /db/system/config/db/fcc and placed collection.xconf under it.
5. Here is the content of collection.xconf

<collection xmlns="http://exist-db.org/collection-config/1.0">
    <triggers>
        <trigger class="org.exist.jms.replication.publish.ReplicationTrigger">
            <parameter name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
            <parameter name="java.naming.provider.url" value="tcp://localhost:61616"/>
            <parameter name="connection-factory" value="ConnectionFactory"/>
            <parameter name="destination" value="dynamicTopics/nabu-doc-replication"/>
            <parameter name="client-id" value="id1"/>
        </trigger>
    </triggers>
</collection>

6. Installed existDB 3.0 RC1 on localhost at HTTP Port 8898 and jetty.port.ssl at 8442 to be configured it as consumer.
7. Installed "Messaging and Replication - Core", "Messaging and Replication" which came with build using package manager. (tried without this on consumer too)
8. edited conf.xml under <EXIST-HOME> directory and placed the following content under <triggers></triggers> tags

<trigger class="org.exist.jms.replication.subscribe.ReceiverStartupTrigger">

<parameter name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
<parameter name="java.naming.provider.url" value="tcp://localhost:61616"/>
<parameter name="connection-factory" value="ConnectionFactory"/>
<parameter name="destination" value="dynamicTopics/nabu-doc-replication"/>
<parameter name="subscriber.name" value="NabuSubscriptionId"/>
<parameter name="connection.client-id" value="NabuClientId"/>
</trigger>

9. Downloaded and extracted apache-activemq-5.13.3 on localhost. No other configuration done on active MQ
10. Started Active MQ, eXistDB Consumer, eXistDB Producer
11. Uploaded an xml document in /db/fcc and I do not see that being enqued under topics, do not see any activity under subscribers, connections.
12. I do not see document being replicated on /db/fcc of consumer too.
13. I tried registering consumer via the xquery option (which is given in hithug documentation as preferred way)
14. I now see consumer and Topic on MQ, but do not see the producer still.
15. I tried different ways of configuring as mentioned in the following URLs but to no avail.


https://github.com/eXist-db/messaging-replication/wiki/Document%20replication
http://harvardforest.fas.harvard.edu:8080/exist/apps/doc/replication.xml


 
Regards
Prasad Gudipati
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
alfredopacino | 18 Jul 21:40 2016
Picon

Improve performance of query with range indexes

Hello to the community!
 
Starting from this question
and thanks to joewiz step-to-step guide :) I came to a working range index configuration. As you can see in this profiling screenshot in the query there is something that is involved and not indexed. The results is after ~10 tests 2 queries take more than 10 seconds (the queries with the highest number of results).
The configuration file is
 
    <index>
        <range>
            <create qname="number" type="xs:string"/>
            <create qname="date" type="xs:string"/>
            <create qname="year" type="xs:string"/>
            <create qname="type" type="xs:string"/>
        </range>
    </index>
</collection>
 
 
The query:
 
xquery version "3.0"; <root> { for $a in doc("/db/index_test/test_general.xml")//detail[date = "03/02/1993" and number = 29]/ancestor::doc/header return doc("/db/index_test/test_general.xml")/db/full_text_docs/doc [ header/year = $a/year and header/number = $a/number and header/type = $a/type ] } </root>
 
 
 
Thanks in advance for any help!
 
best regards
AP
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane