I am currently working on graphviz in linux environment and i am new to linux.
By using the below command i am trying to generate an svg file from the below listed input dot file.(i have installed graphviz 2.38.0) and the current user is having full access to the machine.
dot -Tsvg -o Check_Svg.svg Check_Svg.txt
Check_Svg.txt
digraph g {
graph[size="15,5" nodesep=1 ranksep=1 ];
node[color="#56B9F9" shape="oval" style="filled" penwidth="2.5" fontname="Helvitica-Outline" fontsize="25" ];
edge[penwidth="2.5" fontsize="30" ];
Example_01[fontcolor="white" color="#56B9F9" label=<<table border="0"><tr> <td>Example_Application</td></tr><tr><td>Case1</td></tr><tr><td>Case2</td></tr></table>> fontsize=35 ];
Example_02[color="#FDC12E" label=<<table border="0"><tr><td>Example_02</td></tr><tr> <td>Case2</td></tr></table>>];
Example_01->Example_02[label=<<table border="0"><tr><td>Example_01 to Example_02</td> </tr><tr><td>1 Relationship</td></tr></table>> headport="nw" ];
{
rank="max"
Legend [color="#96B9F9" fontsize="30" ,shape=none, margin=0, label=<
<TABLE COLOR="BLACK" BORDER="1" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD> ( ) </TD>
<TD align="left"> Cases </TD>
</TR>
<TR>
<TD> * </TD>
<TD align="left"> Relationship </TD>
</TR>
</TABLE>
>];
}
}
When i executed the command to generate a svg output from a dot file, i am getting the below error.
Warning: Not built with libexpat. Table formatting is not available.
in label of node Example_01
in label of node Example_02
in label of node Legend
in label of edge Example_01 -> Example_02
The output svg file is getting created, but wrongly. Instead of the html label, the node name itself is coming in the diagram.
The output svg from the above dot file
I have installed libexpat, in my linux machine, at /usr/local/lib.
Please suggest me how to invoke the libexpat, so that i can generate the actual output from my linux environment.
Thanks in advance !!!
Configure first sees if the expat-config program is in your path.
If not, it tries building against the library with
the various user-supplied -I and -L paths. If it still can't find your
libexpat, you can use the --with-expatincludedir
and --with-expatlibdir to specify where the include file and library reside.
Obviously, all this depends on having libexpat installed. You'll need to
find it, or just install it yourself.
By the way, you needn't configure, build and run to check for a missing
feature. When configure finishes, it should
list which optional pieces are available.
Hiii, i got the answer for my above question.
Actually for linking a library to one particular application, we need to install that library before the installation of the application.
So here i installed expat-2.0.1 and then installed graphviz2.38.0 and the issue is sorted out.
Thank you !!
Related
This is my directory structure:
doc/
├─ image.png
src/
README.md
I'm trying to center and resize a logo image on the top of the README file, just like I'm used to do on GitHub (using HTML tags), but I just can't make it work on Azure's Repos.
So far, this is what I tried:
<p align="center">
<a target="blank"><img src="doc/image.png" width="30%" /></a>
</p>
<center>
![image.png](doc/image.png)
</center>
And some other variations of those... I've found some answers on the internet, but none of them seems to work to me.
I have a directory called "features" in the root and inside this directory has image "state_transitation.JPG" and document "myMdc_features.md"
I am trying to add an image "state_transitation.JPG" to the md extension document "myMdc_features.md" in my repository by using markdown below:
![alt text](./state_transitation.JPG)
![alt text](/state_transitation.JPG)
![alt text](state_transitation.JPG)
<p>
<img src="state_transitation.JPG" />
</p>
I tried all above options but this is giving page could not be found error. 404
Both myMdc_features.md and image file are in same path/directory.
What is the correct way to display an image in gitlab myMdc_features.md?
I think that the first option should work, assuming they are in the same folder. I made an example repostiory here that works.
Source of the file:
Hello World
![](./i-have-no-idea-what-im-doing.jpg)
Output in GitLab:
the html part looks like this:
...
<form action="/upload/select-single/" method="post" enctype="multipart/form-data">
<input type="hidden" name="csrfmiddlewaretoken" value="U3Uh3EAYWXaWEiNaWC3zcCQutQe8hGM53u4BTx810o08t1GwOfIJI2ayHCFQFySw">
<p>
<label for="id_file_field">File field:</label>
<input id="id_file_field" name="file_field" type="file" multiple="" required="">
</p>
<input id="submit" type="submit" value="submit">
</form>
...
the selenium test like this:
...
btn_choose_file = self.browser.find_element_by_id("id_file_field")
# write file path to field
# to check that I really selected the field, I tried btn_choose_file.click() -> and it works
btn_choose_file.send_keys('/path/to/file') # -> THIS is the line which seems to cause the problem
# click submit
self.browser.find_element_by_id("submit").click()
...
unfortunately when the test is executed this error is raised
selenium.common.exceptions.WebDriverException: Message: File not found: /path/to/file
this due to the part where the file path is send to the input element with btn_choose_file.send_keys('/path/to/file')
note: the real '/path/to/file' is the following
/Users/udos/development/trails/processfile/gpx_data/test_data/suite 001 - val poschiavo/Bernina - Le Prese.gpx (the file exists and I copied the path from the IDE)
very odd behaviour. this test was running before, somehow I managed to break it...
any suggestions what the cause could be?
UPDATE downgrading Firefox from version 55.0.2 to 54.0.1 "fixed" the issue.see -> https://stackoverflow.com/a/45753912/420953
One way to work around the issue is to replace all "/" occurances in the filename with "\" ("\\" in python).
This work at least on Windows.
After this bug i installed and used chromewebdriver. Worked like firefox driver and all my tests run smoothly. I suggest you try it at least it worked like a charm for me
this error was due to an update of Firefox to version 55.0.2 (which automatically happened 2 days ago because I have automatic updates configured)
the following geckodriver issue pointed me into this direction
https://github.com/mozilla/geckodriver/issues/659note: probably this issue was reintroduced in 55.0.x...
I then downgraded my Firefox version to 54.0.1 as described in article
https://support.mozilla.org/en-US/kb/install-older-version-of-firefoxnote: make sure to disable automatic updates as described in that article.
with this, the selenium tests are running again.
I have a problem with the CKEDITOR. I installed it with bower and changed the basepath. So CKEDITOR works.
My problem now is to laod a custom skin, because i download it also with bower.
This is the code:
<textarea id="editor-<?= $block_count ?>" name="block[<?= $block_count ?>][text][]" rows="10" cols="80" class="form-control"></textarea>
<script>
CKEDITOR.replace('editor-<?= $block_count ?>',{
customConfig: '../../dist/scripts/ckeditor.js',
skin: 'office2013'
});
</script>
But if it want to laod the skin i get this error message:
ckeditor.js:76 GET
htttp://myurl.com/src/bower_components/ckeditor/skins/office2013/editor.css?t=G87D
Can i define a skinpath to load it from teh bower path like:
CKEDITOR.replace('editor-<?= $block_count ?>',{
customConfig: '../../dist/scripts/ckeditor.js',
skinpath: 'src/bower_componnts/ckeditor-office2013-skin/office2013/',
skin: 'office2013'
});
Yes you can. Check the documentation. Quoting docs:
It is possible to install skins outside the default skin folder in the editor installation. In that case, the absolute URL path to that folder should be provided, separated by a comma ('skin_name,skin_path').
config.skin = 'moono';
config.skin = 'myskin,/customstuff/myskin/';
So, something similar should do the trick:
skin: 'office2013,/src/bower_components/ckeditor-office2013-skin/office2013/'
I am using OpenCart 2.2.0 with Kingstore Lite theme
At the order history when i try to view the details of one order i do get the error message:
Notice
:Undefined index: href in catalog/view/theme/kingstorepro/template/account/order_list.tpl on line
29
This is the line:
<td class="text-right"><a href="<?php echo $order['href']; ?>"
and the route is : index.php?route=account/order
How can i fix ? is at the controller or at the model ? how can i find and fix?
Try below code instead of above -
<td class="text-right"><a href="<?php echo $order['view']; ?>"
Hope this will help you.