Difference between revisions of "User:DavidWhitten"

From FollowTheScore
Jump to: navigation, search
 
(14 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
:[[User:Gero|Gero]] 08:36, 23 February 2008 (CET)
 
:[[User:Gero|Gero]] 08:36, 23 February 2008 (CET)
 
----
 
----
You are correct that it wasn't simple to install.
+
You are correct that it wasn't simple to install. I have written some [[User:DavidWhitten/Wgraph_Install_Notes|notes]] of my experiences.
  
One thing that could have helped would be ways to test things.
+
My experiment with wgraph and href yielded:
like to find out whether ImageMagick (convert) was installed,
+
<nowiki>
I had to look until I found the source code for ImageMagick.
+
<pre>
 +
{{#wgraph: svg | thumb = 40 |
 +
  node wgl        { type data    label "text notation\n-- WGL --" href "http://www.google.com" }
 +
}}
 +
</pre>
 +
</nowiki>
 +
which generates:
 +
{{#wgraph: svg | thumb = 40 |
 +
  node wgl        { type data    label "text notation\n-- WGL --" href "http://www.google.com" }
 +
  node whitespace99  {label "\n" level 99 color white}
  
I used the command:  wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
+
}}
  
 +
I note that I can't click on the node directly, but rather have to click on the image, then I can get to the svg file and then I can click on the node to go to google.  Also the banner stating that it was generated by aiSee in the svg file is on top of the rest of the graph.  Is there any way to have that banner be a part of the graph, but not taking over?
  
I had to installed ImageMagick under the user I was using, rather than installed for the entire website. Let's pretend the user name was fooimg.
+
:Sometimes it helps to place a small (white) node with no text into the right lower corner of your graph (using the 'level' parameter. Thus the aiSee logo gets out of way... ([[User:Gero|Gero]] 22:58, 25 February 2008 (CET))
I had to create a "local" directory under the /home/fooimg  since I couldn't put anything in /usr/local
 
on this machine. I used the command: mkdir local
 
  
And when I did the command install command for ImageMagick, I could not just say ./configure
+
----
like the instructions said, but I had to instead type  ./configure --prefix=/home/fooimg/local/
+
I have run into an error (using the local windows aiSee) with this [[User:DavidWhitten/Anchor_Error_1| graph]].
( by the way ./configure --prefix=~/local did NOT work, because the "configure" program wanted the actual place on disk to put into its generated script files. )
+
Aparently, the anchor can only be from 1..255 in valueYou get an error here on this wiki, but I didn't get one on my wiki, I don't know whyThe error here was !! #Wgraph: invalid filename, only a-zA-Z0-9 and "-,_" are allowed. !!
 
+
but of course, it really isn't that error at all. I got this [[User:DavidWhitten/Anchor_Error_1_Log|error log]] in images/Wgraph/Test1.log. Just so you know...
Then I had to use "make" to create the convert program...
+
:Wgraph takes the article name as a file name for the gdl file. If your article is a subpage the name will contain a "/" which confuses the operating system. Therefore Wgraph is very restrictive with file names. To avoid the error you only need to set the file name explicitly by 'name=foo123' (where 'foo123' should be unique in your wiki).
 
+
:[[User:Gero|Gero]] 18:45, 26 February 2008 (CET)
The above steps are show in the following log of my command history:
+
:As to the anchor problem: anchor must be >= 1; Using anchor values bigger than the number of lines in your node will cause your line to end somewhere in the open field. I changed your example a little to show the effect.
 
+
:[[User:Gero|Gero]] 19:03, 26 February 2008 (CET)
  16  mkdir local
+
----
  17  cd ImageMagick-6.3.8/
+
I have started to read the Wgraph.php to learn how it works.
  18  ./configure --prefix=~/local
 
  19  pwd
 
  20  ./configure --prefix=/home/fooimg/local/
 
  21  cd ..
 
  22 ls local/
 
  23  cd ImageMagick-6.3.8/
 
  24  make
 
  25  cd ..
 
  26  ls local/
 
 
 
I tried to install it, and it complained (but might have actually done what I need. I was surprised to find the stuff in the local directory later on:
 
 
 
  27  cd ImageMagick-6.3.8/
 
  28  make install
 
 
 
I ultimate got the computer to find the convert program for me, since I didn't know where it was put:
 
 
 
  34  find . -print | grep convert
 
  35 ./utilities/convert
 
 
 
I was doing this, because I wanted Wgraph (and mediawiki) to use the convert program to make thumbnails.
 
 
 
I used tar with xvzf (extract,verbose,compressed file) on the file I got here : aiSee_linux.tgz ((Thanks by the way))
 
 
 
  127  wget http://www.absint.com/dla/wgraph/aiSee_linux.tgz
 
  128  tar xvzf /home/visvis/aiSee_linux.tgz
 
  129  ls
 
  130  cd aiSee/
 
  131  ls
 
  132  lynx .
 
  133  ./setup
 
 
 
I had already purchased a license for aiSee for a different project, by the way.
 
by the way, this created a directory named aiSee  which I later had to rename as aisee (without the capital letter)
 
because somewhere the directory was referenced without the capital letter.
 
 
 
I tried running bin/aisee.bin and it complained about libXext  not being available.  I had to use apt-get to retrieve it (since I don't run X windows on this server)
 
 
 
 
 
I got your Recode executable and moved it into the bin directory under /home/fooimg/public_html/Wgraph
 
 
 
  mv recode ../Wgraph/linux/bin/
 
 
 
 
 
I did a lot of stuff, and I have the log which means I can tell you the steps, but just remember, I started from scratch, no mediawiki, no wgraph, no aisee, no ImageMagick, no X-windows extension library so I probably had to do stuff which a lot of people might not need to do.
 

Latest revision as of 21:57, 29 February 2008

David Whitten is the Chief Technology Officer of WorldVistA (http://www.worldvista.org) a U.S. 501(c)(3) nonprofit dedicated to affordable healthcare computing worldwide.

Yea! I just got Wgraph working on a private wiki. As I understand it, it only generates svg and png files. I wonder what would be necessary to generate image maps ?


Image maps might be somewhat complicated. But there is a good alternative: use the 'href' attribute for nodes.

BTW: It is not really simple to install Wgraph. Did you have problems? Are you using Windows or Unix? Do you see the need for improving the installation description?

Gero 08:36, 23 February 2008 (CET)

You are correct that it wasn't simple to install. I have written some notes of my experiences.

My experiment with wgraph and href yielded: <pre> {{#wgraph: svg | thumb = 40 | node wgl { type data label "text notation\n-- WGL --" href "http://www.google.com" } }} </pre> which generates: {{#wgraph: svg | thumb = 40 |

  node wgl         { type data     label "text notation\n-- WGL --" href "http://www.google.com" }
  node whitespace99  {label "\n" level 99 color white}

}}

I note that I can't click on the node directly, but rather have to click on the image, then I can get to the svg file and then I can click on the node to go to google. Also the banner stating that it was generated by aiSee in the svg file is on top of the rest of the graph. Is there any way to have that banner be a part of the graph, but not taking over?

Sometimes it helps to place a small (white) node with no text into the right lower corner of your graph (using the 'level' parameter. Thus the aiSee logo gets out of way... (Gero 22:58, 25 February 2008 (CET))

I have run into an error (using the local windows aiSee) with this graph. Aparently, the anchor can only be from 1..255 in value. You get an error here on this wiki, but I didn't get one on my wiki, I don't know why. The error here was !! #Wgraph: invalid filename, only a-zA-Z0-9 and "-,_" are allowed. !! but of course, it really isn't that error at all. I got this error log in images/Wgraph/Test1.log. Just so you know...

Wgraph takes the article name as a file name for the gdl file. If your article is a subpage the name will contain a "/" which confuses the operating system. Therefore Wgraph is very restrictive with file names. To avoid the error you only need to set the file name explicitly by 'name=foo123' (where 'foo123' should be unique in your wiki).
Gero 18:45, 26 February 2008 (CET)
As to the anchor problem: anchor must be >= 1; Using anchor values bigger than the number of lines in your node will cause your line to end somewhere in the open field. I changed your example a little to show the effect.
Gero 19:03, 26 February 2008 (CET)

I have started to read the Wgraph.php to learn how it works.