Is embedding an XML style possible in a cytoscape network json file? - cytoscape

Maybe this is an obvious question or perhaps it's simply not possible but our team is trying to add export functionality to our webapp and we would require users to use our specific cytoscape style.xml file alongside their exported graph. Ideally though we'd just embed the style into the json. Is this possible?
Thanks in advance!

Unfortunately, the short answer is "no". Currently, there is no way that I know of to export cytoscape desktop styles for visualization in cytoscape.js. We have the same requirement and could not find an easy solution. On the other hand, you can export your network as a CX file, which includes information about styles and then visualize that with cytoscape.js.
-- scooter

Related

Grails Export Plugin - Embed Image

I've got the grails export plugin working nicely but is there any way of embedding an image in the produced pdf report? I cant find an obvious way of doing it :(
many thanks
Tom
Why would you require to put an image when export plugin only talks about domain object. If you are looking for generating report which has images and other html stuff, I think itext library is the way forward.
Thanks, KJ

rich text editor with image hosting

is there a rich text editor that has image hosting with it?
eg with stackoverflow they are using imgur to host images.
or is there another way eg using an api? im using asp.net mvc/c#
ckeditor(text)+ckfinder(image)
They are the brothers :)
ckeditor
Try this SO question: https://stackoverflow.com/questions/1801458/free-image-hosting-with-open-api
There are a few possible options, but you're looking at writing your own connector for the text editor to interface with the API - but having said that, for the most part you'd probably be writing a connector for the image uploading anyway, or at least searching around looking for one that works since most (free) RTEs don't supply file / image upload functionality built-in.
Not sure if this is entirely what you're after, but it might be worth having a look at using Yahoo's YUI editor + Flickr for hosting the images: http://developer.yahoo.com/yui/examples/editor/flickr_editor.html
jquery tinymce is a best option. Since there are many plugins for image upload that can be easily integerate into editor
Tinymce
http://tinymce.moxiecode.com/download/download.php
There would be default image upload. if u need use some third party plugins like this
refer it. http://www.danieloshea.com/products/806-image-selection-and-upload-plugin-for-tinymce
If you are looking for free stuff, use FCKEditors, it contains image uploader already plugged in.
Try this , this works for me: I used tinymce RTE roxyfileman

SVG files in Raphael, can they be used?

I have an SVG file that I would like to display via Raphael (each svg file is a node in a tree I'm trying to draw, the actual connections of the tree will be made by raphael). I tried something like:
var vector_image = paper.image("test.svg", 50,50,50,50);
but no dice, seems only "real" image files like png or jpeg are accepted? I find this very strange as Raphael itself uses Scalable Vector Graphics.
Is there anyway (short of parsing the SVG files into javascript snippets and pasting them into the html document) to display existing SVG files using Raphael (or any other vector based javascript graphical engine?)
If parsing it will have to be, is there any easy way to do this, short of just manually scraping the files? I'm running this code on a Ruby on Rails server, so I'd like to avoid solutions outside this framework, if possible (I've heard of one PHP solution through this site...I'd rather code by hand than add another language onto this project).
-Jenny
It's currently not possible to display existing SVG with Raphael, and there are apparently no plans for the implementation of SVG editing (see this forum post).
As for alternative JavaScript libraries, a newer alternative is Snap.svg, which can load external SVG files via its Snap.load() function.

LaTeX: Are there any web frontends available?

As of now the workflow is something like, I import an SVN or a CVS repository and then compile a document locally on my machine to get either a ps or a pdf file. But I was wondering if there is a Web front-end to do all the stuff, like for instance, an editor using which you can edit the file online and then download just the pdf file by compiling it?
Any suggestions?
http://www.scribtex.com/pages/index
http://code.google.com/p/latex-lab/
latex-lab will build on top of the google apps editor base...
scribtex is hosted only it looks like.
Another to add to the list is TeXonWeb.
If you mean online LaTeX compilers, then there are two I know of - at baywifi.com (to PDF) and at ScienceSoft (to several formats). Haven't seen any full editors, though.
There is a CMS based on Latex out there at www.osreviews.net.
The best site I found to produce PDF from LaTeX online is PC Shows.
Verbosus offers an Online LaTeX Editor that supports PDF preview, HTTPS, syntax highlighting, code completion, templates, etc. (Additionally it offers an editor for Octave/Matlab)
This is less of a web-based interface than a simple drag-and-drop cgi script that converts latex syntax to a graphic... www.forkosh.com/mimetex.html
latex-online is a simple open source web service that compiles latex sources/public git repos and returns pdf's. It has both a simplistic web front-end and a command-line tool for interacting with the service - you might find it interesting.
One rather new possibility is https://texlive.net/
You can either interactively edit your documents or you can pass your document via the url to it. E.g. a simple hello world document can be constructed as
https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0AHello%20world!%0A%5Cend%7Bdocument%7D

How does theming for ziya charts work?

I'm implementing charts using The Ziya Charts Gem. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using
chart.add(:theme, 'whatever')
Problem: I haven't found any predefined themes, nor have I found a reference to the required format.
If you install the ZiYa plug-in into your Rails application there should be a themes directory where you said. Just copy one of the existing themes, change its name to whatever you want, and then modify it however you like.
Another options for nice Flash charts is Open Flash Chart. I moved from Ziya/SWF Charts to Open Flash Chart when working on Flash charts in a Rails app I was working on. There is also a Rails plug-in for Open Flash Chart. Besides the fact that it is easier to work with, Open Flash Chart is open source, so if you can hack Flash you can customize it.
As I understand it, the themes are used by initializing the theme directory in your ziya.rb file like so:
Ziya.initialize(:themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes]) )
And you'll need to set up the proper directory, in this case public/charts/themes. It doesn't come with any in there to start with as I recall. Are you having problems past this?
To partly answer my own question, there are some themes in the website sources which can be checked out at
svn co svn://rubyforge.org/var/svn/liquidrail/samples/charting
(then go to /public/charts/themes/)

Resources