Looking at using Apache Tika to pull metadata from photos and mp3 files. It is a single jar that runs as a command line, GUI or http server.
Saturday, 23 June 2012
Monday, 11 June 2012
Upgrading to dojo 1.7
Starting to upgrade the places website to dojo 1.7 migration-17
And trying to get to grips with the build system
And trying to get to grips with the build system
Issues
- dojox.widget.Calendar not AMD compatible
- Require declare vs define
Labels:
dojo
Web based code editors
Looking for a nice web based code edit component. I wanted XQuery and Sparql in addition to the usual suspects. The choice seems to be between Codemirror and Ace.
Codemirror supports both Sparql and XQuery out of the box.
Ace has very nice XQuery support initially developed for the eXide feature of eXist by Wolfgang Meier and then enhanced, and pushed back to the main Ace project, by William Candillon. Ace currently has no official Sparql mode, but I spotted Callimachus has the code for a slightly earlier Ace release.
For me the deciding factor is that ACE is built with AMD support, whereas Codemirror is not. There is a project to convert/wrap Codemirror for use with Dojo, which means using AMD, but it looks like a lot of work.
Related projects to watch: Treehugger and Dojo Widget for Ace
Codemirror supports both Sparql and XQuery out of the box.
Ace has very nice XQuery support initially developed for the eXide feature of eXist by Wolfgang Meier and then enhanced, and pushed back to the main Ace project, by William Candillon. Ace currently has no official Sparql mode, but I spotted Callimachus has the code for a slightly earlier Ace release.
For me the deciding factor is that ACE is built with AMD support, whereas Codemirror is not. There is a project to convert/wrap Codemirror for use with Dojo, which means using AMD, but it looks like a lot of work.
Related projects to watch: Treehugger and Dojo Widget for Ace
Tuesday, 5 June 2012
BaseX on Debian
Current install strategy:
- unzip to /usr/local/share/basex-x.y
- link basex to basex-x.y
velvet:/usr/bin# ln -s /usr/local/share/basex/bin/basexclient ln -s /usr/local/share/basex/bin/basexserver ln -s /usr/local/share/basex/bin/basexhttp ln -s /usr/local/share/basex/bin/xquery
TODO init.d
Monday, 4 June 2012
Marklogic 5
I picked up a MarkLogic USB drive with 5.0.2 at XML Prague 2012. I installed this on Ubuntu but I wanted to get it to run on my Readynas Pro 2. This wish resulted in a factory reset on my first try, while attempting to install alien.
Older and wiser I tried again using chroot with a Debian Sarge image. The source file from the USB was MarkLogic-5.0-2.i686.rpm. Instructions based on
http://developer.marklogic.com/download#comment-354202122
Older and wiser I tried again using chroot with a Debian Sarge image. The source file from the USB was MarkLogic-5.0-2.i686.rpm. Instructions based on
http://developer.marklogic.com/download#comment-354202122
To install
After doing debootstrap to create/c/home/squeeze
chroot /c/home/squeeze sudo apt-get install alien sudo alien --to-deb --verbose MarkLogic-5.0-2.i686.rpm sudo dpkg -i marklogic_5.0-3_i386.deb
To run
mount proc /c/home/squeeze/proc/ -t proc cp /etc/resolv.conf /c/home/squeeze/etc cp /etc/hosts /c/home/squeeze/etc chroot /c/home/squeeze /etc/init.d/MarkLogic start
The result
Sunday, 3 June 2012
BaseX event handling
21:19:01.858 [127.0.0.1:38155] LOGIN admin OK 21:19:01.861 [127.0.0.1:38156] LOGIN test1 OK 21:19:02.003 [127.0.0.1:38155] CREATE EVENT messenger 21:19:02.005 [127.0.0.1:38155] OK 143.0 ms 21:19:02.027 [127.0.0.1:38156] OK 13.41 ms 21:19:02.247 [127.0.0.1:38156] QUERY(0) for $i in 1 to 1000000 where $i=3 return $i OK 219.51 ms 21:19:02.248 [127.0.0.1:38156] QUERY(0) OK 0.5 ms 21:19:02.252 [127.0.0.1:38155] QUERY(0) db:event('messenger', 'Hello World!') OK 230.45 ms 21:19:02.254 [127.0.0.1:38155] QUERY(0) OK 0.76 ms 21:19:02.584 [127.0.0.1:38155] EXEC(0) OK 329.22 ms 21:19:02.943 [127.0.0.1:38156] EXEC(0) OK 694.17 ms 21:19:02.945 [127.0.0.1:38156] OK 0.34 ms 21:19:03.004 [127.0.0.1:38155] DROP EVENT messenger 21:19:03.005 [127.0.0.1:38155] OK 2.18 ms 21:19:03.006 [127.0.0.1:38155] EXIT 21:19:03.011 [127.0.0.1:38155] OK 6.03 ms 21:19:03.012 [127.0.0.1:38155] LOGOUT admin OK 21:19:03.014 [127.0.0.1:38156] EXIT 21:19:03.019 [127.0.0.1:38156] OK 6.57 ms 21:19:03.020 [127.0.0.1:38156] LOGOUT test1 OK
Then it hangs..
21:19:16.106 [127.0.0.1:38158] LOGIN admin OK 21:19:16.112 [127.0.0.1:38158] CREATE EVENT messenger 21:19:16.115 [127.0.0.1:38158] OK 27.79 ms 21:19:16.151 [127.0.0.1:38159] LOGIN test1 OK 21:19:16.192 [127.0.0.1:38158] QUERY(0) db:event('messenger', 'Hello World!') OK 0.98 ms 21:19:16.200 [127.0.0.1:38158] QUERY(0) OK 7.4 ms 21:19:16.207 [127.0.0.1:38159] OK 0.65 ms 21:19:16.220 [127.0.0.1:38159] QUERY(0) for $i in 1 to 1000000 where $i=3 return $i OK 7.77 ms 21:19:16.231 [127.0.0.1:38159] QUERY(0) OK 4.3 ms 21:19:16.253 [127.0.0.1:38158] EXEC(0) Error: null 21:19:16.732 [127.0.0.1:38159] EXEC(0) OK 459.42 ms 21:19:20.036 [127.0.0.1:38158] LOGOUT admin OK 21:19:20.042 [127.0.0.1:38159] LOGOUT test1 OKWhat is that error?
Subscribe to:
Posts (Atom)