git push git@bitbucket.org:apb/faye.git master
Thursday, 29 December 2011
Sunday, 18 December 2011
Tidy up proxy config
Trying to cleanup the proxy settings...
readynas1:/etc/frontview/apache/addons# cat velvet.conf # LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/local/apache2/modules/mod_proxy_http.so ProxyRequests OffOrder deny,allow Allow from all ProxyPass /velvet/ http://192.168.1.8:80/web/ ProxyPassReverse /velvet/ http://192.168.1.8:80/web/ # faye ProxyPass /faye/ http://192.168.1.8:9000/ ProxyPassReverse /faye/ http://192.168.1.8:9000/ # subsonic ProxyPass /subsonic/ http://192.168.1.8:4040/ ProxyPassReverse /subsonic/ http://192.168.1.8:4040/ # git ProxyPass /git/ http://192.168.1.8/gitweb/ ProxyPassReverse /git/ http://192.168.1.8/gitweb/ # fuseki ProxyPass /sparql/ http://192.168.1.8:3030/ ProxyPassReverse /sparql/ http://192.168.1.8:3030/ #ProxyPass ^/sparql/(.*)$ http://192.168.1.9:8080/$1 #ProxyPassReverse ^/sparql/(.*)$ http://192.168.1.9:8080/$1
Tuesday, 13 December 2011
dojo 1.7
http://comments.gmane.org/gmane.comp.web.dojo.devel/16087
<script>
var dojoConfig = (function(){
var base = location.href.split('/');
base.pop();
base = base.join('/');
return {
async: true,
packages: [{
name: "my",
location: base + "/my"
}]
};
})();
</script>
<script src="http://downloads.dojotoolkit.org/release-1.7.0/..."></script>
<script>
require(["my/Foo"], function(Foo){
new Foo();
});
</script>
Using http://formatmysourcecode.blogspot.com/Monday, 12 December 2011
Sunday, 11 December 2011
Updating velvet
This box locked up sometime last week. After reboot got email
Your ReadyNAS device has been updated with a new firmware image. (RAIDiator-x86 4.2.19)
looks like a lot of custom config has gone missing, e.g g++
Tried
apt-get update
apt-get install apt dpkg dpkg-dev
apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev g++
apt-get install autoconf automake1.9 intltool libtool
apt-get install apt dpkg dpkg-dev
apt-get install libssl-dev libexpat1-dev libapr1-dev libaprutil1-dev
Tried
apt-get update
apt-get install apt dpkg dpkg-dev
apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev g++
apt-get install autoconf automake1.9 intltool libtool
apt-get install apt dpkg dpkg-dev
apt-get install libssl-dev libexpat1-dev libapr1-dev libaprutil1-dev
Monday, 28 November 2011
factbook.xml ids
Seem to be broken.. 21 duplicate ids (found in 7.7 secs). These are all cities in more than one province. Kansas City is in four!
import module namespace functx="http://www.functx.com";
declare variable $data:=db:open("factbook","factbook.xml");
let $i:=$data//@id
return functx:non-distinct-values($i)
f0_3099 f0_3111 f0_3123 f0_3129 f0_1533 f0_1583 f0_4275 f0_1598 f0_6017 f0_6689 f0_7122 f0_8638 f0_1715 f0_10628 f0_10634 f0_1865 f0_1875 f0_14313 f0_14419 f0_2194 f0_2237
Sunday, 27 November 2011
more performance
Back on node 0.4, working on id resolution, performance dreadful
Document Path: /fb/country
Document Length: 158878 bytes
Concurrency Level: 5
Time taken for tests: 913.225 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 15911748 bytes
HTML transferred: 15887800 bytes
Requests per second: 0.11 [#/sec] (mean)
Time per request: 45661.240 [ms] (mean)
Time per request: 9132.248 [ms] (mean, across all concurrent requests)
Transfer rate: 17.02 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.5 0 4
Processing: 7438 44742 6506.7 45143 55947
Waiting: 7397 44712 6503.3 45133 55937
Total: 7439 44743 6506.4 45143 55947
Percentage of the requests served within a certain time (ms)
50% 45143
66% 47397
75% 47790
80% 48077
90% 49007
95% 51383
98% 55787
99% 55947
100% 55947 (longest request)
Removing idLink
Document Path: /fb/country
Document Length: 158692 bytes
Concurrency Level: 5
Time taken for tests: 40.286 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 15893156 bytes
HTML transferred: 15869200 bytes
Requests per second: 2.48 [#/sec] (mean)
Time per request: 2014.309 [ms] (mean)
Time per request: 402.862 [ms] (mean, across all concurrent requests)
Transfer rate: 385.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 3
Processing: 344 1977 292.5 1955 2817
Waiting: 288 1947 287.4 1924 2590
Total: 345 1977 292.3 1955 2817
Percentage of the requests served within a certain time (ms)
50% 1955
66% 2001
75% 2042
80% 2068
90% 2338
95% 2558
98% 2607
99% 2817
100% 2817 (longest request)
Saturday, 19 November 2011
performance
dynamic-path is the killer
50% 1158
app:td hardcoded to return td50% 1441
declare function app:td($item, $field-def) as element(td) {
(: path default to name :)
let $path:=($field-def/@path,concat('@',$field-def/@name))[1]
let $data:="test"
(: let $data:=data(functx:dynamic-path($item,$path)) :)
let $x :=
if($field-def/@type='id' and $field-def/@link)
then app:hyperlink(concat($field-def/@link,"/",$data),string($data))
else $data
let $d:={
(if($field-def/@type=('integer','float'))
then attribute class {'r'}
else ''
,$x)
}
return $d
};
Working solution
declare function app:data($item , $path as xs:string) {
let $f:=app:fpath($path)
return data($f($item))
};
declare function app:fpath($path){
util:eval(concat("function($item){$item/",$path,"}"))
};
Tuesday, 15 November 2011
dojo-boilerplate
Tried this https://github.com/csnover/dojo-boilerplate, blog piece here
dojo bug
andy@ThinkPad-T42:~/workspace/dojo-boilerplate$ util/build.sh
Using /home/andy/workspace/dojo-boilerplate/profiles/main.profile.js. CSS will be copied and JS will be built.
Cleaning old files... Done
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'addEventListener' of undefined
at /home/andy/workspace/dojo-boilerplate/src/js/dojo/dojo.js:242:65
at Object. (/home/andy/workspace/dojo-boilerplate/src/js/dojo/dojo.js:1749:2)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
Ubuntu, node 0.61dojo bug
Monday, 14 November 2011
performance
checking Apache using basex interface, some fails but very fast.
Document Path: /velvet/basex.php/table.php
Document Length: 45105 bytes
Concurrency Level: 5
Time taken for tests: 8.694 seconds
Complete requests: 100
Failed requests: 7
(Connect: 0, Receive: 0, Length: 7, Exceptions: 0)
Write errors: 0
Total transferred: 4524892 bytes
HTML transferred: 4510492 bytes
Requests per second: 11.50 [#/sec] (mean)
Time per request: 434.685 [ms] (mean)
Time per request: 86.937 [ms] (mean, across all concurrent requests)
Transfer rate: 508.28 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 3 1.7 2 8
Processing: 276 426 96.0 408 929
Waiting: 150 278 88.4 263 708
Total: 278 428 96.6 411 937
Percentage of the requests served within a certain time (ms)
50% 411
66% 438
75% 462
80% 479
90% 551
95% 611
98% 671
99% 937
100% 937 (longest request)
After the pipeline
Document Path: /country
Document Length: 93520 bytes
Concurrency Level: 5
Time taken for tests: 113.181 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 9375940 bytes
HTML transferred: 9352000 bytes
Requests per second: 0.88 [#/sec] (mean)
Time per request: 5659.026 [ms] (mean)
Time per request: 1131.805 [ms] (mean, across all concurrent requests)
Transfer rate: 80.90 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.5 0 8
Processing: 1123 5557 1114.8 5243 8239
Waiting: 1103 5550 1115.0 5236 8230
Total: 1126 5557 1114.2 5243 8239
Percentage of the requests served within a certain time (ms)
50% 5243
66% 5296
75% 5370
80% 5848
90% 7680
95% 8071
98% 8178
99% 8239
100% 8239 (longest request)
Sunday, 13 November 2011
more performance
Getting better not sure why, working on send pipeline.
Document Path: /country
Document Length: 93520 bytes
Concurrency Level: 5
Time taken for tests: 103.874 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 9375970 bytes
HTML transferred: 9352000 bytes
Requests per second: 0.96 [#/sec] (mean)
Time per request: 5193.684 [ms] (mean)
Time per request: 1038.737 [ms] (mean, across all concurrent requests)
Transfer rate: 88.15 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.2 0 9
Processing: 1000 5090 569.7 5191 5304
Waiting: 997 5088 570.3 5189 5302
Total: 1001 5090 568.9 5191 5304
Percentage of the requests served within a certain time (ms)
50% 5191
Wednesday, 9 November 2011
performance
Trying to speed it up. This with
but it is just getting slower each run :-( (note log has 2581 Rows)
50% 7767 repeat yesterdays test
50% 8162 after no indent
50% 7450 after optimize
dojo grid tips
declare option output:indent "no";
but it is just getting slower each run :-( (note log has 2581 Rows)
50% 7767 repeat yesterdays test
50% 8162 after no indent
50% 7450 after optimize
127.0.0.1 - - [Wed, 09 Nov 2011 22:18:13 GMT] "GET /country HTTP/1.0" 200 - "-" "ApacheBench/2.3" queue size: 49 queue size: 50 queue size: 51 queue size: 52 queue size: 53 queue size: 54 queue size: 55 queue size: 56 queue size: 57 queue size: 58 queue size: 59
Server Software:
Server Hostname: 127.0.0.1
Server Port: 9000
Document Path: /country
Document Length: 93520 bytes
Concurrency Level: 5
Time taken for tests: 179.847 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 9375950 bytes
HTML transferred: 9352000 bytes
Requests per second: 0.56 [#/sec] (mean)
Time per request: 8992.359 [ms] (mean)
Time per request: 1798.472 [ms] (mean, across all concurrent requests)
Transfer rate: 50.91 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.9 0 9
Processing: 1519 8826 1899.6 8162 11889
Waiting: 1514 8808 1898.9 8143 11880
Total: 1519 8826 1899.4 8162 11889
Percentage of the requests served within a certain time (ms)
50% 8162
66% 10558
75% 10851
80% 10988
90% 11228
95% 11375
98% 11575
99% 11889
100% 11889 (longest request)
dojo grid tips
Monday, 7 November 2011
Node BaseX performance tesing
50% 5692
Server Software:
Server Hostname: 127.0.0.1
Server Port: 9000
Document Path: /country
Document Length: 203972 bytes
Concurrency Level: 5
Time taken for tests: 115.494 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 20421162 bytes
HTML transferred: 20397200 bytes
Requests per second: 0.87 [#/sec] (mean)
Time per request: 5774.684 [ms] (mean)
Time per request: 1154.937 [ms] (mean, across all concurrent requests)
Transfer rate: 172.67 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 5
Processing: 1708 5662 575.7 5692 6700
Waiting: 1173 5619 619.9 5670 6689
Total: 1710 5662 575.3 5692 6700
Percentage of the requests served within a certain time (ms)
50% 5692
66% 5738
75% 5773
80% 5804
90% 5936
95% 6444
98% 6645
99% 6700
100% 6700 (longest request)
Saturday, 29 October 2011
Wednesday, 5 October 2011
More gadgets
I ordered a tablet; the NATPC M009S 7 inch 2GB Google Android Tablet PC -
Cheapest 2.2 Android Tablet works with Flash 10.1 - WiFi , Touchscreen, Epad, Apad, Android Market, Youtube, Kindle and Facebook App
...it is still in the post, was £52.50 when I bought it, now priced at £ £69.95.
...it is still in the post, was £52.50 when I bought it, now priced at £ £69.95.
Monday, 3 October 2011
ab testing the node base client
Installed Apache ab for load testing
Using these instructions
Running the basex-node (0.2) Httpserver example
Local thinkpad t42:Result with 100 simultaneous users a constant 4.2 secs andy@ThinkPad-T42:~$ ab -n 300 -c 100 http://localhost:9000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests
Server Software:
Server Hostname: localhost
Server Port: 9000
Document Path: /
Document Length: 372 bytes
Concurrency Level: 100
Time taken for tests: 12.555 seconds
Complete requests: 300
Failed requests: 0
Write errors: 0
Total transferred: 130800 bytes
HTML transferred: 111600 bytes
Requests per second: 23.89 [#/sec] (mean)
Time per request: 4185.159 [ms] (mean)
Time per request: 41.852 [ms] (mean, across all concurrent requests)
Transfer rate: 10.17 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 6 8.9 0 25
Processing: 11 3490 1214.0 4172 4232
Waiting: 8 3490 1214.0 4172 4232
Total: 32 3497 1206.5 4172 4232
Percentage of the requests served within a certain time (ms)
50% 4172
66% 4196
75% 4208
80% 4212
90% 4216
95% 4220
98% 4228
99% 4232
100% 4232 (longest request)
On the Readynas pro 2
andy@ThinkPad-T42:~$ ab -n 300 -c 100 http://velvet:9000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking velvet (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests
Server Software:
Server Hostname: velvet
Server Port: 9000
Document Path: /
Document Length: 312 bytes
Concurrency Level: 100
Time taken for tests: 13.577 seconds
Complete requests: 300
Failed requests: 0
Write errors: 0
Total transferred: 112800 bytes
HTML transferred: 93600 bytes
Requests per second: 22.10 [#/sec] (mean)
Time per request: 4525.533 [ms] (mean)
Time per request: 45.255 [ms] (mean, across all concurrent requests)
Transfer rate: 8.11 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 16 19.3 4 139
Processing: 64 3795 1179.3 4316 4863
Waiting: 64 3795 1179.3 4316 4863
Total: 77 3811 1173.3 4319 4922
Percentage of the requests served within a certain time (ms)
50% 4319
66% 4334
75% 4364
80% 4422
90% 4619
95% 4779
98% 4853
99% 4879
100% 4922 (longest request)
Using from express faye app
andy@ThinkPad-T42:~$ ab -n 300 -c 100 http://orlop.webhop.info/faye/basex/This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking orlop.webhop.info (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests
Server Software:
Server Hostname: orlop.webhop.info
Server Port: 80
Document Path: /faye/basex/
Document Length: 312 bytes
Concurrency Level: 100
Time taken for tests: 13.030 seconds
Complete requests: 300
Failed requests: 0
Write errors: 0
Total transferred: 176856 bytes
HTML transferred: 93600 bytes
Requests per second: 23.02 [#/sec] (mean)
Time per request: 4343.177 [ms] (mean)
Time per request: 43.432 [ms] (mean, across all concurrent requests)
Transfer rate: 13.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 37 299.6 2 3013
Processing: 68 3590 1217.3 4214 4523
Waiting: 68 3590 1217.3 4212 4522
Total: 90 3628 1264.3 4217 7312
Percentage of the requests served within a certain time (ms)
50% 4217
66% 4316
75% 4320
80% 4322
90% 4336
95% 4343
98% 4345
99% 7228
100% 7312 (longest request)
Sunday, 2 October 2011
basex modules published
v0.2 released to the world. It is here .
Node publishing is very easy...
Node publishing is very easy...
npm adduser ... npm publish ...
Saturday, 1 October 2011
Readynas updates
Installed the latest versions
Needed to add
Needed to add
index.xml to /etc/frontview/apache
<location> Options ExecCGI DirectoryIndex redirect.html index.html index.htm index.php index.xml </location>
Tuesday, 20 September 2011
First steps to basex interface
velvet:~/basex-node# node test_start_stop.js Modified require.paths: /root/basex-node/../,/root/local/node,/root/.node_modules,/root/.node_libraries,/root/local/node/lib/node Queueing info for next server connection. Queueing quit for next server connection. Stream connected 127.0.0.1:1984 fd 6 checking server ready state... send 127.0.0.1:1984 fd 6: *1 $4 info net read 127.0.0.1:1984 fd 6: 5109341874956173 events.js:45 throw arguments[1]; // Unhandled 'error' event ^ Error: basex reply parser error: Error: invalid state unknown type at basexReplyParser.execute (/root/basex-node/lib/parser/javascript.js:231:31) at BasexClient.on_data (/root/basex-node/index.js:320:27) at Socket.(/root/basex-node/index.js:91:14) at Socket.emit (events.js:64:17) at Socket._onReadable (net.js:678:14) at IOWatcher.onReadable [as callback] (net.js:177:10) at basexReplyParser. (/root/basex-node/index.js:83:28) at basexReplyParser.emit (events.js:64:17) at basexReplyParser.parser_error (/root/basex-node/lib/parser/javascript.js:52:10) at basexReplyParser.execute (/root/basex-node/lib/parser/javascript.js:231:18) at BasexClient.on_data (/root/basex-node/index.js:320:27) at Socket. (/root/basex-node/index.js:91:14) at Socket.emit (events.js:64:17) at Socket._onReadable (net.js:678:14) at IOWatcher.onReadable [as callback] (net.js:177:10)
Sunday, 18 September 2011
Friday, 16 September 2011
Node modules for faye
npm list npm WARN connect-mongodb 1.0.0 Unmet dependency in /root/faye npm WARN connect-timeout 0.0.1 Unmet dependency in /root/faye npm WARN jade 0.15.2 Unmet dependency in /root/faye npm WARN mailer 0.4.52 Unmet dependency in /root/faye npm WARN markdown 0.2.1 Unmet dependency in /root/faye npm WARN mongoose 2.0.3 Unmet dependency in /root/faye npm WARN stylus 0.15.1 Unmet dependency in /root/faye apb@0.1.0 /root/faye ├─┬ connect-auth@0.4.1 extraneous │ ├─┬ connect@1.7.1 │ │ ├── mime@1.2.3 │ │ └── qs@0.3.1 │ ├── oauth@0.9.5 │ └── openid@0.3.1 ├── UNMET DEPENDENCY connect-mongodb 1.0.0 ├── UNMET DEPENDENCY connect-timeout 0.0.1 ├── ejs@0.4.3 extraneous ├── emailjs@0.1.14 extraneous ├─┬ express@2.4.4 │ ├── connect@1.6.2 │ ├── mime@1.2.2 │ └── qs@0.3.1 ├── express-messages@0.0.2 extraneous ├── faye@0.6.6 extraneous ├── formidable@1.0.5 extraneous ├── UNMET DEPENDENCY jade 0.15.2 ├── UNMET DEPENDENCY mailer 0.4.52 ├── UNMET DEPENDENCY markdown 0.2.1 ├── UNMET DEPENDENCY mongoose 2.0.3 ├── redis@0.6.7 extraneous ├── UNMET DEPENDENCY stylus 0.15.1 └── underscore@1.1.7 extraneous
Thursday, 15 September 2011
A node client for BaseX
- Installed Markdown editor in eclipse
- Created github repository
Thursday, 8 September 2011
imagemagick installed
velvet:~/faye/node_modules/imagemagick# convert -v
Version: ImageMagick 6.2.4 07/28/09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
Usage: convert [options ...] file [ [options ...] file ...] [options ...] file
Where options include:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-annotate geometry text
annotate the image with text
-antialias remove pixel-aliasing
-append append an image sequence
-authenticate value decrypt image with this password
-average average an image sequence
-background color background color
-bias value add bias when convolving an image
-black-threshold value
forces all pixels below the threshold into black
-blue-primary point chromaticity blue primary point
-blur geometry blur the image
-border geometry surround image with a border of color
-bordercolor color border color
-channel type apply option to select image channels
-charcoal radius simulate a charcoal drawing
-chop geometry remove pixels from the image interior
-clip clip along the first path from the 8BIM profile
-clip-path id clip along a named path from the 8BIM profile
-clone index clone an image
-coalesce merge a sequence of images
-colorize value colorize the image with the fill color
-colors value preferred number of colors in the image
-colorspace type alternate image colorspace
-combine combine a sequence of images
-comment string annotate image with comment
-compose operator set image composite operator
-composite composite image
-compress type type of pixel compression when writing the image
-contrast enhance or reduce the image contrast
-convolve coefficients
apply a convolution kernel to the image
-crop geometry cut out a rectangular region of the image
-cycle amount cycle the image colormap
-debug events display copious debugging information
-define format:option
define one or more image format options
-deconstruct break down an image sequence into constituent parts
-delay value display the next image after pausing
-delete index delete the image from the image sequence
-density geometry horizontal and vertical density of the image
-depth value image depth
-despeckle reduce the speckles within an image
-display server get image or font from this X server
-dispose method GIF disposal method
-dither apply Floyd/Steinberg error diffusion to image
-draw string annotate the image with a graphic primitive
-edge radius apply a filter to detect edges in the image
-emboss radius emboss an image
-encoding type text encoding type
-endian type endianness (MSB or LSB) of the image
-enhance apply a digital filter to enhance a noisy image
-equalize perform histogram equalization to an image
-evaluate operator value
evaluate an arithmetic, relational, or logical expression
-extent geometry set the image size
-extract geometry extract area from image
-family name render text with this font family
-fill color color to use when filling a graphic primitive
-filter type use this filter when resizing an image
-flatten flatten a sequence of images
-flip flip image in the vertical direction
-floodfill geometry color
floodfill the image with color
-flop flop image in the horizontal direction
-font name render text with this font
-format "string" output formatted image characteristics
-frame geometry surround image with an ornamental border
-fuzz distance colors within this distance are considered equal
-fx expression apply mathematical expression to an image channel(s)
-gamma value level of gamma correction
-gaussian geometry gaussian blur an image
-geometry geometry perferred size or location of the image
-green-primary point chromaticity green primary point
-gravity type horizontal and vertical text placement
-help print program options
-implode amount implode image pixels about the center
-insert index insert last image into the image sequence
-intent type type of rendering intent when managing the image color
-interlace type type of image interlacing scheme
-label name assign a label to an image
-lat geometry local adaptive thresholding
-level value adjust the level of image contrast
-limit type value pixel cache resource limit
-log format format of debugging information
-loop iterations add Netscape loop extension to your GIF animation
-map filename transform image colors to match this set of colors
-mask filename set the image clip mask
-matte store matte channel if the image has one
-mattecolor color frame color
-median radius apply a median filter to the image
-modulate value vary the brightness, saturation, and hue
-monitor monitor progress
-monochrome transform image to black and white
-morph value morph an image sequence
-mosaic create a mosaic from an image sequence
-motion-blur geometry
simulate motion blur
-negate replace every pixel with its complementary color
-noise radius add or reduce noise in an image
-normalize transform image to span the full range of colors
-opaque color change this color to the fill color
-ordered-dither NxN
ordered dither the image
-orient type image orientation
-page geometry size and location of an image canvas (setting)
-paint radius simulate an oil painting
-ping efficiently determine image attributes
-pointsize value font point size
-posterize levels reduce the image to a limited number of color levels
-preview type image preview type
-profile filename add, delete, or apply an image profile
-quality value JPEG/MIFF/PNG compression level
-quiet suppress all error or warning messages
-radial-blur angle radial blur the image
-raise value lighten/darken image edges to create a 3-D effect
-random-threshold low,high
random threshold the image
-region geometry apply options to a portion of the image
-raise value lighten/darken image edges to create a 3-D effect
-red-primary point chromaticity red primary point
-render render vector graphics
-repage geometry size and location of an image canvas
-resample geometry change the resolution of an image
-resize geometry resize the image
-roll geometry roll an image vertically or horizontally
-rotate degrees apply Paeth rotation to the image
-sample geometry scale image with pixel sampling
-sampling-factor geometry
horizontal and vertical sampling factor
-scale geometry scale the image
-scene value image scene number
-seed value pseudo-random number generator seed value
-segment values segment an image
-separate separate an image channel into a grayscale image
-sepia-tone threshold
simulate a sepia-toned photo
-set attribute value set an image attribute
-shade degrees shade the image using a distant light source
-shadow geometry simulate an image shadow
-sharpen geometry sharpen the image
-shave geometry shave pixels from the image edges
-shear geometry slide one edge of the image along the X or Y axis
-sigmodial-contrast geometry
lightness rescaling using sigmoidal contrast enhancement
-size geometry width and height of image
-solarize threshold negate all pixels above the threshold level
-splice geometry splice the background color into the image
-spread amount displace image pixels by a random amount
-strip strip image of all profiles and comments
-stroke color graphic primitive stroke color
-strokewidth value graphic primitive stroke width
-stretch type render text with this font stretch
-style type render text with this font style
-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
-swap indexes swap two images in the image sequence
-swirl degrees swirl image pixels about the center
-texture filename name of texture to tile onto the image background
-threshold value threshold the image
-thumbnail geometry create a thumbnail of the image
-tile filename tile image when filling a graphic primitive
-tint value tint the image with the fill color
-transform affine transform image
-transparent color make this color transparent within the image
-treedepth value color tree depth
-trim trim image edges
-type type image type
-undercolor color annotation bounding box color
-units type the units of image resolution
-unsharp geometry sharpen the image
-verbose print detailed information about the image
-version print version information
-view FlashPix viewing transforms
-virtual-pixel method
virtual pixel access method
-wave geometry alter an image along a sine wave
-weight type render text with this font weight
-white-point point chromaticity white point
-white-threshold value
forces all pixels above the threshold into white
-write filename write images to this file
By default, the image format of `file' is determined by its magic
number. To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps). Specify 'file' as
'-' for standard input or output.
Wednesday, 31 August 2011
Installing dojo
wget http://download.dojotoolkit.org/release-1.6.1/dojo-release-1.6.1-src.tar.gz tar zxvf dojo-release-1.6.1-src.tar.gz rm *.gzstackoverflow
This very naive approach results in ...
59 requests
|
489.4 KB
|
(12.1 KB from cache) 42.32s (onload: 42.44s)
| ||||
Compared with ~12sec from the CDN
Tuesday, 23 August 2011
login
review login forms
This the dojo 1.6 answer. Updated forum
Tried connect-dojo did not work for me. need to get dojo build working.
This the dojo 1.6 answer. Updated forum
Tried connect-dojo did not work for me. need to get dojo build working.
Wednesday, 17 August 2011
Wednesday, 10 August 2011
xslt
Found this project for xslt on Node https://github.com/bahblah/node_xslt. . Looks like what I need...
Installing the dependencies on the nas..
Installing the dependencies on the nas..
velvet:~# apt-get install libxml2 Reading package lists... Done Building dependency tree... Done Recommended packages: xml-core The following packages will be upgraded: libxml2 1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded. Need to get 757kB of archives. After unpacking 36.9kB of additional disk space will be used. Get:1 http://archive.debian.org etch/main libxml2 2.6.27.dfsg-6+etch1 [757kB] Fetched 757kB in 2s (298kB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 24801 files and directories currently installed.) Preparing to replace libxml2 2.6.27.dfsg-6 (using .../libxml2_2.6.27.dfsg-6+etch1_i386.deb) ... Unpacking replacement libxml2 ... Setting up libxml2 (2.6.27.dfsg-6+etch1) ...libxslt was not found by apt-get, but this worked
velvet:~# apt-get install xsltproc ... velvet:~# xsltproc -V Using libxml 20627, libxslt 10124 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10119 and libexslt 813 libxslt 10124 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627More work required as
velvet:~/faye# npm install node_xslt > node_xslt@0.1.0 preinstall /root/faye/node_modules/node_xslt > node-waf clean || true; node-waf configure build Cleaning nothing... 'clean' finished successfully (0.000s) Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok Checking for node path : not found Checking for node prefix : ok /root/local/node Checking for library ['xml2', 'xslt'] : not found /root/faye/node_modules/node_xslt/wscript:13: error: the configuration failed (see '/root/faye/node_modules/node_xslt/build/config.log') npm ERR! error installing node_xslt@0.1.0 Error: node_xslt@0.1.0 preinstall: `node-waf clean || true; node-waf configure build` npm ERR! error installing node_xslt@0.1.0 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1 npm ERR! error installing node_xslt@0.1.0 at ChildProcess.Tried(/root/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20) npm ERR! error installing node_xslt@0.1.0 at ChildProcess.emit (events.js:67:17) npm ERR! error installing node_xslt@0.1.0 at ChildProcess.onexit (child_process.js:192:12) npm ERR! node_xslt@0.1.0 preinstall: `node-waf clean || true; node-waf configure build` npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1 npm ERR! npm ERR! Failed at the node_xslt@0.1.0 preinstall script. npm ERR! This is most likely a problem with the node_xslt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-waf clean || true; node-waf configure build npm ERR! You can get their info via: npm ERR! npm owner ls node_xslt npm ERR! There is likely additional logging output above. npm ERR! npm ERR! System Linux 2.6.37.6.RNx86_64.2.1 npm ERR! command "node" "/root/local/node/bin/npm" "install" "node_xslt" npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/faye/npm-debug.log npm not ok velvet:~/faye#
apt-get install libxml2-devmore progress,after setting NODE_PATH and creating libxslt.so link
velvet:/usr/lib# ls -l libxslt* lrwxrwxrwx 1 root root 17 2011-08-14 18:13 libxslt.so -> libxslt.so.1.1.24 lrwxrwxrwx 1 root root 17 2011-07-10 15:58 libxslt.so.1 -> libxslt.so.1.1.24 -rw-r--r-- 1 root root 208188 2011-01-25 01:17 libxslt.so.1.1.24now trying to build from source
File "/root/bahblah-node_xslt-34c6509/wscript", line 19, in build
obj.cxxflags = subprocess.check_output(["xml2-config", "--cflags"]).strip()
AttributeError: 'module' object has no attribute 'check_output'
Python2.7+ required, nas has 2.6.6, trying this get a bit further.a=subprocess.Popen(['xml2-config', '--cflags'], stdout=subprocess.PIPE).comm
obj.cxxflags = a.strip()
obj.lib = ['xml2', 'xslt']
obj.libpath = ['/usr/lib']
velvet:~/bahblah-node_xslt-34c6509# node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /root/local/node
Checking for node prefix : ok /root/local/node
Checking for library ['xml2', 'xslt'] : yes
'configure' finished successfully (0.260s)
Waf: Entering directory `/root/bahblah-node_xslt-34c6509/build'
[1/2] cxx: node_xslt.cc -> build/default/node_xslt_1.o
../node_xslt.cc:3:26: error: libxslt/xslt.h: No such file or directory
../node_xslt.cc:4:35: error: libxslt/xsltInternals.h: No such file or directory
../node_xslt.cc:5:31: error: libxslt/transform.h: No such file or directory
../node_xslt.cc:6:31: error: libxslt/xsltutils.h: No such file or directory
../node_xslt.cc: In function âvoid jsXmlDocCleanup(v8::Persistent, void*)â:
../node_xslt.cc:19: error: âxmlDocPtrâ was not declared in this scope
../node_xslt.cc:19: error: expected `;' before âdocâ
../node_xslt.cc:20: error: âdocâ was not declared in this scope
../node_xslt.cc:20: error: âxmlFreeDocâ was not declared in this scope
../node_xslt.cc: In function âvoid jsXsltStylesheetCleanup(v8::Persistent, void*)â:
../node_xslt.cc:27: error: âxsltStylesheetPtrâ was not declared in this scope
../node_xslt.cc:27: error: expected `;' before âstyleâ
../node_xslt.cc:28: error: âstyleâ was not declared in this scope
../node_xslt.cc:28: error: âxsltFreeStylesheetâ was not declared in this scope
../node_xslt.cc: At global scope:
../node_xslt.cc:32: error: âxmlDocPtrâ was not declared in this scope
../node_xslt.cc:32: error: expected â,â or â;â before â{â token
../node_xslt.cc:38: error: âxsltStylesheetPtrâ was not declared in this scope
../node_xslt.cc:38: error: expected â,â or â;â before â{â token
../node_xslt.cc: In function âv8::Handle readXmlString(const v8::Arguments&)â:
../node_xslt.cc:48: error: âxmlDocPtrâ was not declared in this scope
../node_xslt.cc:48: error: expected `;' before âdocâ
../node_xslt.cc:49: error: âdocâ was not declared in this scope
../node_xslt.cc:52: error: âdocâ was not declared in this scope
../node_xslt.cc: In function âv8::Handle readXsltString(const v8::Arguments&)â:
../node_xslt.cc:59: error: âxmlDocPtrâ was not declared in this scope
../node_xslt.cc:59: error: expected `;' before âdocâ
../node_xslt.cc:60: error: âdocâ was not declared in this scope
../node_xslt.cc:63: error: âxmlFreeDocâ was not declared in this scope
../node_xslt.cc:63: error: âdocâ was not declared in this scope
../node_xslt.cc:65: error: âxsltStylesheetPtrâ was not declared in this scope
../node_xslt.cc:65: error: expected `;' before âstylesheetâ
../node_xslt.cc:66: error: âstylesheetâ was not declared in this scope
../node_xslt.cc:70: error: âstylesheetâ was not declared in this scope
../node_xslt.cc: In function âv8::Handle transform(const v8::Arguments&)â:
../node_xslt.cc:86: error: âxsltStylesheetPtrâ was not declared in this scope
../node_xslt.cc:86: error: expected `;' before âstylesheetâ
../node_xslt.cc:87: error: âxmlDocPtrâ was not declared in this scope
../node_xslt.cc:87: error: expected `;' before âdocumentâ
../node_xslt.cc:112: error: expected `;' before âresultâ
../node_xslt.cc:113: error: âresultâ was not declared in this scope
../node_xslt.cc:116: error: âxmlFreeDocâ was not declared in this scope
../node_xslt.cc:116: error: âresultâ was not declared in this scope
../node_xslt.cc:118: error: âxmlCharâ was not declared in this scope
../node_xslt.cc:118: error: âdoc_ptrâ was not declared in this scope
../node_xslt.cc:120: error: âstylesheetâ was not declared in this scope
../node_xslt.cc:120: error: âxsltSaveResultToStringâ was not declared in this scope
../node_xslt.cc:121: error: âxmlFreeâ was not declared in this scope
Waf: Leaving directory `/root/bahblah-node_xslt-34c6509/build'
Build failed: -> task failed (err #1):
{task: cxx node_xslt.cc -> node_xslt_1.o}
velvet:~/bahblah-node_xslt-34c6509#
Guess missing libxslt-devvelvet:/usr/include# sudo apt-get install libxslt-dev Reading package lists... Done Building dependency tree... Done Note, selecting libxslt1-dev instead of libxslt-dev Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: libxslt1-dev: Depends: libxslt1.1 (= 1.1.19-3) but 1.1.24-2 is to be installed E: Broken packagesAsked on forum
Monday, 8 August 2011
Friday, 5 August 2011
Wednesday, 3 August 2011
hookbox to faye
Currently:
chataws.php+ hookchat.js:
file upload module node-formidable, full tutorial here.
connect tutorial here
role based auth
dojo widget tutorial
looking at template engine ejs
chataws.php+ hookchat.js:
- checks session for username
- subscribes to topic chat
- handles onPublish and for presence: onSubscribe onUnsubscribe
file upload module node-formidable, full tutorial here.
connect tutorial here
role based auth
dojo widget tutorial
looking at template engine ejs
Thursday, 28 July 2011
graphviz
npm graphviz
Discovered no fonts installed.
Solution:
copy fonts from urw-fonts.tar.gz to /usr/local/share/fonts
Discovered no fonts installed.
Solution:
copy fonts from urw-fonts.tar.gz to /usr/local/share/fonts
Saturday, 23 July 2011
basex as service
- Got it to run as service on basex account.
- got xslt1 to work
- wrote simple php sandbox
- packages
- xslt2
basex@velvet:/etc/init.d$ cat basex
#! /bin/sh
### BEGIN INIT INFO
# Provides: basex-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: basex-server - Persistent key-value db
# Description: basex-server - Persistent key-value db
### END INIT INFO
PATH=/opt/redis/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
case "$1" in
start)
echo -n "Starting $DESC: "
su -c "basexserver -s " - basex
;;
stop)
echo "Stopping $DESC"
basexserver stop
;;
restart|force-reload)
${0} stop
${0} start
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Wednesday, 20 July 2011
basex
Installed debian 6.7.1 deb package on velvet
basex .......... Standalone local XML database. Command line interface. basexgui ....... Standalone local XML database. Graphical user interface. basexserver .... BaseX XML Database Server. basexclient .... BaseX XML Database Client.
velvet:/etc/rc3.d# basexserver -help BaseX 6.7 [Server] Usage: basexserver [-dpsz] [-c] [stop] stop Stop existing server -cExecute initial database command(s) -d Activate debugging mode -e Set event port -i Enter interactive mode -p Set server port -s Start as service -z Suppress logging
Tuesday, 19 July 2011
success
Got retwis working using Predis (0.6.6)
Key is to use download not the pear install
Key is to use download not the pear install
Monday, 18 July 2011
redis twitter clone retwis
The php version is not working for me. source and docs
Thinking of switching PHP Redis client to phpredis
Installing phpredis
predis
https://github.com/nrk/predis/
Thinking of switching PHP Redis client to phpredis
Installing phpredis
php -v
PHP Warning: PHP Startup: redis: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.6-11 with Suhosin-Patch (cli) (built: Jun 12 2011 13:57:38)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
Giving up, to try..predis
https://github.com/nrk/predis/
velvet:/usr/bin# pear channel-discover pearhub.org Adding Channel "pearhub.org" succeeded Discovery of channel "pearhub.org" succeeded velvet:/usr/bin# pear install pearhub/predis downloading predis-0.6.6.tgz ... Starting to download predis-0.6.6.tgz (40,757 bytes) ...........done: 40,757 bytes install ok: channel://pearhub.org/predis-0.6.6
Wednesday, 13 July 2011
redis
nice tutorial
trying node retwis
Will try init.d script here
working after using update-rc.d
Delete all redis keys
trying node retwis
Will try init.d script here
working after using update-rc.d
Delete all redis keys
redis-cli keys "*" | while read LINE ; do TTL=`redis-cli ttl $LINE`; if [ $TTL -eq -1 ]; then echo "Del $LINE"; RES=`redis-cli del $LINE`; fi; done;
Monday, 11 July 2011
Dev tools
Git installed from here. tools at /opt/rfw/bin
Projects below /opt/git show up https://velvet/gitweb/gitweb.cgi
installed graphviz 2.8 and node.js
Projects below /opt/git show up https://velvet/gitweb/gitweb.cgi
installed graphviz 2.8 and node.js
velvet:~# node -v v0.4.10-preinstalled redis
velvet:/# redis-server --version Redis server version 2.2.11 (00000000:0)and mercurial on ubuntu
Sunday, 10 July 2011
More new nas
installed (via readynas extras..
- php
- phpadmin
- python
- git
installed via apt
- gcc
installed via manual
- Fuskei 0.2.0
- php
- phpadmin
- python
- git
installed via apt
- gcc
installed via manual
- Fuskei 0.2.0
cd /usr/local/Fuseki-0.2.0 ./fuseki-server --update --mem /dataset
Friday, 8 July 2011
New NAS
Got this installed...
Disks: SAMSUNG HD204UI [1863 GB] 1858 GB allocated
| Model: | ReadyNAS Pro 2 [X-RAID2] |
| Serial: | 2K21140D000F5 |
| Firmware: | RAIDiator 4.2.17 |
| Memory: | 1024 MB [DDR3] |
And Java using these instructions
fffff
velvet:~# java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
Tuesday, 21 June 2011
dojo
Struggling to get dojo rotator widget to work and reported bug with claroEnharncedGrid css.
looking at browsershots
looking at browsershots
Wednesday, 15 June 2011
calabash and json
<p:unescape-markup content-type="application/json"/>There seem to be two problems:
- Leading white space causes failure.
- content type may have charset e.g. content-type="application/json;charset="UTF-8""
private static void build(TreeWriter tree, JSONTokener jt) {
tree.addStartElement(_json);
try {
char ch = jt.nextClean();
jt.back();
Friday, 3 June 2011
proxy html
I need to map the html with mod_proxy_html.so
asked here
http://lists.gotroot.com/pipermail/modsecurity/2006-February/000414.html
asked here
http://lists.gotroot.com/pipermail/modsecurity/2006-February/000414.html
Wednesday, 1 June 2011
proxy stuff
Goal running fuseki on another server
step 1: set fixed ip for T42= 192.168.1.9
step 2: Set apache config
/etc/frontview/apache/addons/sparqlproxy.conf
step 1: set fixed ip for T42= 192.168.1.9
step 2: Set apache config
/etc/frontview/apache/addons/sparqlproxy.conf
LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/local/apache2/modules/mod_proxy_http.so ProxyRequests OffMore work required, based on thisOrder deny,allow Allow from all ProxyPass /sparql http://192.168.1.9:3030/ ProxyPassReverse /sparql http://192.168.1.9:3030/
Tuesday, 31 May 2011
Apache modules
Using phpinfo a list of apache modules installed on readynas
(found this nice piece on the NETGEAR ReadyNAS Pro 6-Bay) disks
Updated existDb to 1.4.1dev-rev14490-20110522
- core
- mod_authz_host
- mod_authz_user
- mod_auth_basic
- mod_include
- mod_log_config
- mod_logio
- mod_env
- mod_expire
- s mod_headers
- mod_setenvif
- mod_ssl
- prefork
- http_core
- mod_mime
- mod_dav
- mod_status
- mod_autoindex
- mod_cgi
- mod_dav_fs
- mod_negotiation
- mod_dir
- mod_alias
- mod_rewrite
- mod_so
- mod_perl
- mod_perl mod_auth_pam
- mod_auth_sys_group
- mod_apreq2
- mod_listhandler
- mod_php5
(found this nice piece on the NETGEAR ReadyNAS Pro 6-Bay) disks
Updated existDb to 1.4.1dev-rev14490-20110522
Saturday, 28 May 2011
Apache
For readynas apache /etc/frontview/apache/http.conf
For later notes on using dojo builder
RewriteEngine on RewriteRule ^/sparql/.*$ http://google.com RewriteRule ^/$ /website [R,L]Discovered Readynas is using PAM
For later notes on using dojo builder
Friday, 27 May 2011
Thursday, 26 May 2011
Tuesday, 24 May 2011
places
more refactoring, calendar store no longer hard coded.
Image data is stored in data/images.json
exif2json.xpl creates data/images.json
exif2json.xpl uses data/exif.xml
looking to use open providence.
img2xml.xpl creates data/meta.xml
img2xml.xpl uses c:\saxon\meta.bat
Image data is stored in data/images.json
exif2json.xpl creates data/images.json
exif2json.xpl uses data/exif.xml
{"thumb": "../images/kerala2009/Resized/IMG_1727.jpg",
"large": "../images/kerala2009/IMG_1727.jpg",
"link": "../images/kerala2009/IMG_1727.jpg",
"camera": "Canon DIGITAL IXUS 65",
"date": "2009:08:30 10:20:03",
"pixelX": 457,
"pixelY": 421,
"latitude": 9.967708,
"longitude": 76.241639} Searching for triples looking to use open providence.
- Artifact
- Process
- Agent
img2xml.xpl creates data/meta.xml
img2xml.xpl uses c:\saxon\meta.bat
Sunday, 15 May 2011
progress on places
refactored folder structure a little. Using rsync to deploy.
Wednesday, 4 May 2011
Saturday, 30 April 2011
Protege
Installed Protege 4.0.115 on ubuntu using these instructions
Added Skos editor and ACE tool.
Built eXist 1.5 dev after setting JAVA_HOME
Discovered the problems with open-jdk exist list
set java
looking to fix server index serving xml
Added Skos editor and ACE tool.
Built eXist 1.5 dev after setting JAVA_HOME
Discovered the problems with open-jdk exist list
set java
andy@ThinkPad-T42:~$ sudo update-alternatives --config java [sudo] password for andy: There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode Press enter to keep the current choice[*], or type selection number: 2 update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode. andy@ThinkPad-T42:~$
looking to fix server index serving xml
Sunday, 24 April 2011
Saturday, 23 April 2011
dojo 1.6 bugs
- bug report: dojox.data.FlickrStore broken in 1.6.0
- widget trouble with: dijit.form
.DropDownB utton forum post
Wednesday, 20 April 2011
places
Got kerala2009 largely working on readynas. Main problem was tooltips causing layout problems in bordercontainer. Moved them to bottom to fix. Problems still with dialogs and flickr store.
Monday, 18 April 2011
Places
Unable to get kerala working on dojo 1.6. Debuging with CDN not easy. So
installed dojo 1.6 src on readynas and wrote rsync script to install kerala on it.
installed dojo 1.6 src on readynas and wrote rsync script to install kerala on it.
Sunday, 10 April 2011
dojo 1.6
Updated places and playlist code to dojo 1.6.
Also in playlists:
Also in playlists:
- set svn:keyword on title to show revision and date
- removed calls to hosted hookbox which has been down for months now
Saturday, 9 April 2011
Installing Nodejs on Readynas duo
working from https://github.com/joyent/node/wiki/Installation
Failed for lack of a C complier. So tried this which failed at
A lot of scary messages later.. no progress
Realise this is all a bit dangerous
Please remember, do not replace the libc6 package! I haven't try that, but I guess it will brick the system if tried.
Looking for advice on the readynas forums
Failed for lack of a C complier. So tried this which failed at
apt-get install libc6-devTried this
Then try apt-get upgrade again, apt-get -f install back and forth until only the package that has the error is left.
A lot of scary messages later.. no progress
Setting up apache-common (1.3.33-6sarge3) ... addgroup: The group `www-data' already exists. dpkg: error processing apache-common (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: apache-common E: Sub-process /usr/bin/dpkg returned an error code (1)
Realise this is all a bit dangerous
Please remember, do not replace the libc6 package! I haven't try that, but I guess it will brick the system if tried.
apt-get install libssl-dev ... Unpacking libssl-dev (from .../libssl-dev_0.9.8g-10_sparc.deb) ... Setting up apache-common (1.3.33-6sarge3) ... addgroup: The group `www-data' already exists. dpkg: error processing apache-common (--configure): subprocess post-installation script returned error exit status 1 Setting up linux-kernel-headers (2.6.17.8ReadyNAS.netgear1) ... Setting up libc6-dev (2.3.2.ds1-22sarge6.infrant1) ... Setting up zlib1g-dev (1:1.2.2-4.sarge.2) ... Setting up libssl-dev (0.9.8g-10) ... Errors were encountered while processing: apache-common E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking for advice on the readynas forums
Friday, 8 April 2011
Tag formats
- ID3v1 http://www.id3.org/ID3v1
- ID3v2.3 http://www.id3.org/id3v2.3.0
- APEv2 http://wiki.hydrogenaudio.org/index.php?title=APEv2
- ID3v2.2 http://www.id3.org/id3v2-00
- ID3v2.4 http://www.id3.org/id3v2.4.0-frames
- Lyrics3v2 http://www.id3.org/Lyrics3v2
- WMA http://www.mp3-tag.com/wma.asp
- MP4 http://atomicparsley.sourceforge.net/mpeg-4files.html
Wednesday, 6 April 2011
Sunday, 3 April 2011
More git
Working on servlex examples. switched to giggle as GUI, rabbitCVS has too many issues.
git remote add locker git-apb@free1.projectlocker.com:webservlex.gitAlso interesting Using Git to manage a web site
Thursday, 17 March 2011
Monday, 14 March 2011
hookbox comet and dojo
I see dojo 1.6 will support Comet Session protocol so should be easy to use with hookbox.
Saturday, 12 March 2011
Saturday, 5 March 2011
Monday, 28 February 2011
Sunday, 27 February 2011
Simpledb
Decided to modify sdb.php to add new method to return XML from select call. Then xslt transform to format suitable for dojo data source.
Thursday, 24 February 2011
Places
Doing some work on the Kerala website. ...
The plan:
The plan:
- Update to dojo 1.5
- refresh design
- extract common components
- create new Napflio site.
Tuesday, 22 February 2011
AWS Free Usage Tier
The deal. My experience matches @turutosiya although the bill is only $0.01 so far.
I will try: Reducing Disk IO By Mounting Partitions With noatime
I will try: Reducing Disk IO By Mounting Partitions With noatime
Monday, 21 February 2011
simpledb
Making some progress on php timestamps
microtime at stackoverflow
but beginning to think sdb.php is not the way to go. relay.php more complicated but better fit? Or this
microtime at stackoverflow
but beginning to think sdb.php is not the way to go. relay.php more complicated but better fit? Or this
Friday, 18 February 2011
playlist
Search now working on title and artist...
I was getting error:
Looking at using amazon simple db
Nice set of examplesI was getting error:
Warning: SimpleDB::putAttributes(): 60 error setting certificate verify locations: CAfile: /usr/share/curl/curl-ca-bundle.crt CApath: none in /c/website/playlists-0.5/login/sdb.php on line 838The solution is to turn off verify
// create connection $sdb = new SimpleDB(awsAccessKey, awsSecretKey); // apb for readynas $sdb->enableVerifyHost(false); $sdb->enableVerifyPeer(false);
Thursday, 17 February 2011
Eclipse settings for xmlcalabash
main class:
com.xmlcalabash.drivers.Main
Program Arguments
-Eorg.apache.xml.resolver.tools.CatalogResolver
-Uorg.apache.xml.resolver.tools.CatalogResolver
"file:/${resource_loc}"
VM arguments
-Xms1024m -Xmx1024m
-Dcom.xmlcalabash.phonehome=false
classpath:
resolver.jar
tagsoup
metadata-extractor
com.xmlcalabash.drivers.Main
Program Arguments
-Eorg.apache.xml.resolver.tools.CatalogResolver
-Uorg.apache.xml.resolver.tools.CatalogResolver
"file:/${resource_loc}"
VM arguments
-Xms1024m -Xmx1024m
-Dcom.xmlcalabash.phonehome=false
classpath:
resolver.jar
tagsoup
metadata-extractor
Tuesday, 15 February 2011
Tuesday
- Fixed search (which was broken by last set of changes)
- Found nice dojo widget tutorial
- Upgraded Amazon SimpleDB PHP Class to version 0.81
Adding php and microseconds
$now = microtime();
$date = date("Y-m-d\tH:i:s\.u", $now);
echo $date;Sunday, 13 February 2011
Wednesday, 9 February 2011
progress
Changed the hash tag addressing for tracks from: the filepath key to a playlist and track number scheme. This fixes a bug where tracks appearing in more than one playlist did not display e.g:
HOT POTATOE Siren, kevin coyne Strange Locomotion
now #view=track;playlist=ab-ad4;track=13 and #view=track;playlist=ab-ad7;track=1
Remaining bugs
HOT POTATOE Siren, kevin coyne Strange Locomotion
now #view=track;playlist=ab-ad4;track=13 and #view=track;playlist=ab-ad7;track=1
Remaining bugs
- Why does search for kevin only return 2 of the 4 hits.
- Why multiple toasters?
- The Neil Young & Crazy Horse problem
Tuesday, 8 February 2011
Using Musicdata APIs
Investigating music APIs. Looking at musicbrainz, discogs and dbpedia.
http://www.semanticoverflow.com/questions/3031/are-dbpedia-classes-in-the-http-dbpedia-org-resource-namespace-deprecated
http://labrosa.ee.columbia.edu/millionsong/
discogs
http://dev.exil.org/DiscogsApiXmlSchema.htmldbpedia
sparql for dbpediahttp://www.semanticoverflow.com/questions/3031/are-dbpedia-classes-in-the-http-dbpedia-org-resource-namespace-deprecated
http://labrosa.ee.columbia.edu/millionsong/
Thursday, 3 February 2011
playlist search
added search widget, not working. new css
Wednesday, 2 February 2011
Gadget shopping
Got a new battery for Laptop.
Laptop 1 of 6-cell Li-ion 10.80V 4400mAh High Quality Laptop Battery.
Capacity shows 91.1%. Should that be 100%?
Also replacing Linksys router as it keeps dropping out.
Got a TP-Link TD-W8960N
and matching wifi USB
TP-Link TL-WN821N
Wireless-not working with ubuntu
Update drivers
Laptop 1 of 6-cell Li-ion 10.80V 4400mAh High Quality Laptop Battery.
Capacity shows 91.1%. Should that be 100%?
Also replacing Linksys router as it keeps dropping out.
Got a TP-Link TD-W8960N
and matching wifi USB
TP-Link TL-WN821N
Wireless-not working with ubuntu
Update drivers
Sunday, 30 January 2011
thinkpad performance
Is it worth buying memory and battery for old thinkpads
t40 Intel Pentium M 1.50GHz 393
t42 Intel Pentium M 1.73GHz 448
http://www.cpubenchmark.net/cpu_list.php
AMD Athlon II P320 Dual-Core 1270
t40 Intel Pentium M 1.50GHz 393
t42 Intel Pentium M 1.73GHz 448
http://www.cpubenchmark.net/cpu_list.php
AMD Athlon II P320 Dual-Core 1270
Thursday, 27 January 2011
nginx
http://serverfault.com/questions/220184/setup-a-reverse-proxy-with-nginx-and-apache-on-ec2
http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/
how-to-get-nginx-to-serve-up-on-an-elastic-ip
http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/
how-to-get-nginx-to-serve-up-on-an-elastic-ip
Monday, 24 January 2011
Sunday, 23 January 2011
How to install hookbox on aws
Using this image
Now install it
Basic 64-bit Amazon Linux AMI 2010.11.1 Beta (AMI Id: ami-75d4e101) Amazon Linux AMI Base 2010.11.1, EBS boot, 64-bit architecture with Amazon EC2 AMI Tools. Root Device Size: 8 GiBThen install dev tools, see
# yum groupinstall 'Development Tools'And more..
sudo yum -y install python-devel
Now install it
[ec2-user@ip-10-48-109-40 bin]$ sudo easy_install hookbox Searching for hookbox Best match: hookbox 0.3.3 Processing hookbox-0.3.3-py2.6.egg hookbox 0.3.3 is already the active version in easy-install.pth Installing hookbox script to /usr/bin Using /usr/lib/python2.6/site-packages/hookbox-0.3.3-py2.6.egg Processing dependencies for hookbox Searching for greenlet>=0.3 Reading http://pypi.python.org/simple/greenlet/ Reading http://bitbucket.org/ambroff/greenlet Reading http://undefined.org/python/#greenlet Best match: greenlet 0.3.1 Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-0.3.1.tar.gz#md5=8d75d7f3f659e915e286e1b0fa0e1c4d Processing greenlet-0.3.1.tar.gz Running greenlet-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CU_Uff/greenlet-0.3.1/egg-dist-tmp-ODnl11 /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'repository' warnings.warn(msg) zip_safe flag not set; analyzing archive contents... Adding greenlet 0.3.1 to easy-install.pth file Installed /usr/lib/python2.6/site-packages/greenlet-0.3.1-py2.6-linux-x86_64.egg Finished processing dependencies for hookbox [ec2-user@ip-10-48-109-40 bin]$ hookbox status 2011-01-23 23:28:44,561 - hookbox - INFO - Listening to hookbox on http://0.0.0.0:8001 ^CCtr+C pressed; Exiting. [ec2-user@ip-10-48-109-40 bin]$
Friday, 21 January 2011
exist
Trying to install existdb on ec2 based on these instructions
could not connect to this image
>Working now, here
could not connect to this image
andy@ThinkPad-T40:~$ ssh -i keys/existkey1.pem root@ec2-46-137-17-37.eu-west-1.compute.amazonaws.com The authenticity of host 'ec2-46-137-17-37.eu-west-1.compute.amazonaws.com (46.137.17.37)' can't be established. RSA key fingerprint is 14:0e:5a:bd:39:d4:c4:15:e9:a5:05:d2:1f:0c:8f:6d. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added 'ec2-46-137-17-37.eu-west-1.compute.amazonaws.com,46.137.17.37' (RSA) to the list of known hosts. Please login as the ec2-user user rather than root user. Connection to ec2-46-137-17-37.eu-west-1.compute.amazonaws.com closed. andy@ThinkPad-T40:~$ ssh -i keys/existkey1.pem -l ec2-user root@ec2-46-137-17-37.eu-west-1.compute.amazonaws.com Please login as the ec2-user user rather than root user. Connection to ec2-46-137-17-37.eu-west-1.compute.amazonaws.com closed. andy@ThinkPad-T40:~$ ssh -i keys/existkey1.pem ec2-user@ec2-46-137-17-37.eu-west-1.compute.amazonaws.com __| __|_ ) Amazon Linux AMI _| ( / Beta ___|\___|___| See /usr/share/doc/amzn-ami/image-release-notes for latest release notes. :-) [ec2-user@ip-10-48-109-40 ~]$ hostname ip-10-48-109-40 [ec2-user@ip-10-48-109-40 ~]$Corrections
$ sudo /usr/local/exist/tools/wrapper/bin/exist.sh startResult
>Working now, here
Tuesday, 18 January 2011
hookbox install
Sadly failed
readynas1:/c/webroot/xplorer/files# easy_install hookbox Searching for hookbox Reading http://pypi.python.org/simple/hookbox/ Reading http://hookbox.org Traceback (most recent call last): File "/usr/bin/easy_install", line 7, in ? sys.exit( File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/command/easy_install.py", line 1712, in main with_ei_usage(lambda: File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage return f() File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/command/easy_install.py", line 1716, indistclass=DistributionWithoutHelpCommands, **kw File "distutils/core.py", line 149, in setup File "distutils/dist.py", line 946, in run_commands File "distutils/dist.py", line 966, in run_command File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/command/easy_install.py", line 211, in run self.easy_install(spec, not self.no_deps) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/command/easy_install.py", line 434, in easy_install self.local_index File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/package_index.py", line 466, in fetch_distribution dist = find(self, requirement) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/package_index.py", line 439, in find for dist in env[req.key]: File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 766, in __getitem__ _sort_dists(dists) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2444, in _sort_dists dists[::-1] = [d for hc,d in tmp] ValueError: attempt to assign sequence of size 17 to extended slice of size 16 readynas1:/c/webroot/xplorer/files#
Labels:
playlist
Sunday, 16 January 2011
python
Installed Python 2.4.4 on readynas with intention of hosting hookbox locally if required.
readynas1:~# python Python 2.4.4 (#2, Oct 31 2010, 22:03:48) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> quit 'Use Ctrl-D (i.e. EOF) to exit.' >>> readynas1:~#copied from putty using the middle button.
Monday, 10 January 2011
T-mobile broadband stick
Now working on ubuntu 10.10 after long struggle.
First I was using WCID for its WEP support. This disables network manager, which is a mistake as networkmanager can support WEP and has mobile support.
Force ubuntu to connect with wep
UK T-mobile Mobile Broadband ZTE usb stick 120
Using NetworkManager with your 3G WWAN modem
First I was using WCID for its WEP support. This disables network manager, which is a mistake as networkmanager can support WEP and has mobile support.
Force ubuntu to connect with wep
UK T-mobile Mobile Broadband ZTE usb stick 120
Using NetworkManager with your 3G WWAN modem
![]() | |||
| Eject modem |
Labels:
thinkpad
connections
trying to get hookbox connect to work with dojo. Using Firecookie helps.
Monday, 3 January 2011
Saturday, 1 January 2011
Subscribe to:
Comments (Atom)













