How to create dynamic graphs in Mediawiki - filter

Our company has an internal wiki powered by MediaWiki. We are planning to create a wiki page to post some operational data in the form of graphs. Im wondering is it possible to create the following in the wiki page?
Create combo boxes like frequency of data (last month/last quarter)
Create button to generate graph
If possible a calendar to select data range
A dynamically generated graph based on the above filters
Does wiki pages allow creation of these objects and generation of graphs based on the filters dynamically? Any references to do this is highly appreciated.

You can do this with a custom-built extension. See Extension: Wiretap as an example (the source code is on GitHub). Basically you query the database using PHP and add it into the HTML source. Then you can use JavaScript to plot with d3.

(Nearly) Interactive graphs are possible with MediaWiki, but only, if you install the Graph extension, which is a bit more difficult to work with. However, there are some good tutorials and demos on the linked extension page and subpages. I'm not quite sure, if all of your use cases can be implemented with the graphs extension, as I'm not that familiar with this extension.

Related

Joomla: display of articles using RAXO All-mode PRO and JXtended labels

I'm currently working on a site that uses the 'RAXO All-mode PRO' module to display a list of articles on the home page, and the 'JXtended labels' component to display pages containing a list of articles associated with given labels. The front-end functionality in both is very similar - get a list of articles and display them.
Ideally, I'd like both lists to display articles in the same format. However, since each component/module has its own way of fetching the data, and its own template, they're currently inconsistent. What's the best way of going about resolving this?
I can envisage a common bit of code (a module? plugin? component?) that deals with the display of a list of articles, and has its own template for that purpose. I guess I'd then need to hack the existing module and component to hand over to this common piece. There's also the question of getting the same set of data - e.g. RAXO All-mode PRO currently gets an article's category; JXtended labels doesn't.
Has anyone come across this issue before?
The issue of the modules pulling different data sets can only be remedied by hacking the core to get the data that is missing.
Everything else can be accomplished by a simple override. You can modify the module template files then save the new version in JOOMLA/templates/YOUR TEMPLATE/html/MODULE NAME/default.php. You can make the override files match pretty much exactly so the display will be consistent across both modules.

Adobe InDesign Server examples

I'm new to Adobe InDesign Server and I'm having a hard time finding a good kitchen sink app. All the examples I got from the SDK seem to partially work. All I'm trying to do is use a master page from InDesign from the server side and edit certain text fields. For example placing first and last name in particular text fields. Does anyone know of a good place to get examples code that shows all the features or how I would approach this problem?
http://www.adobe.com/devnet/indesign/documentation.html#idserver Has a lot of resources that is useful when starting out. In particular http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignServer/ids-solutions.pdf includes a number of code examples for various common operations.
As to your specific example, the typical way to go about it is:
1. Get the page object from the master pages list.
2. Iterate over each text field on the page.
3. Somehow identify the fields, for example by setting the script label in the template document and checking the labels of each text field you iterate through.
4. Set the contents of the text field.
A lot of the official InDesign documentation is partial.
Jongware also hosts the complete reference documentation:
http://www.jongware.com/idjshelp.html
Probably the reason why teh IDS documentation isn't that exhaustive is that dealing with the server version is an extension of the classical indesign use. So the exception of some peculiarities detailed in the ids sdk docs, you will find most of the help with InDesign Scripting guides ;)

Generate a catalog for print and web

I need to create a solution, which allows a database driven catalog to be generated.
Assume, there are a bunch of products, images, prices, other details, and admin can generate catalogs based on "templates".
These templates essentially are "styles" of pages. For instance, style 1, could have 4x4 layout (16 products, with image and other attributes), hence on each page, upto 16 products and details could be displayed. Style 2 could have 2x2 layout, 4 products, but more detail. Admin can pick and choose different styles in a catalog.
Once the catalog is generated, it needs to be put up for either web viewing (lower fidelity) and/or print publishing (higher fidelity).
I would like help in determining the optimum stack to use, particularly, to "code" template and consequently to generate the PDFs.
Factors to consider
Minimum coding effort (reuse commercial or foss)
I will prefer an existing software which can create/edit "template" so I don't have to do that. I can simply get the license and reuse that functionality.
What I have considered so far is the following
Adobe XFA Forms as templates, connected to database to generate PDF.
I not sure which program can generate XFA templates. Acrobat X is an option however it does not seem to have control for adding images. The LiveCycle Server seems to be an overkill.
Use iText library, no idea if templates are possible or not, generate for web/print. Has good support for size/quality of catalog to print.
Use Open office, make template, and write the glue to retrieve data and generate an open office doc, which can easily be converted into html/pdf. No idea how tough/easy this is.
EDIT: Adobe Framemaker allows templates - I am evaluating if it can do the job that i have in mind. I will post an update once I am done.
I have no experience with any of these technologies, so if you can guide/rate them, or add other options that I did not consider.
At this point I am language agnostic. Alot of libraries provide hooks from various languages, so I don't think that will be a problem. If your solution is specific to foo language, please mention it as well.
Thanks for taking the time.
There is a followup question I asked on graphicsdesign exchange. https://graphicdesign.stackexchange.com/questions/2318/use-data-merge-of-indesign-using-console-or-through-an-api
How about Adobe inDesign Data Merge. And video here
Pretty easy to use aswel.
TCPDF (PHP) would give you quite a bit of control, and has lots of example code.
http://www.tcpdf.org/
I've used it before, it's not too hard to figure out.
I'm not sure if its a good fit, but maybe http://issuu.com/#whatIsIssuu

Ajax driven timeline-style blog (in Drupal)

I have created a blog in drupal using CCK and taxonomy.
I wish to display my posts in a timeline, according to the posted date (using views).
So far I have created a listing of the post titles on a timeline.
I now want to display the posts using ajax, wherein clicking on a post title will load the content of that node on the same page. Going ahead I'll add each fetched node into a ul tag and thus create a carousel kind of display of all fetched posts so far.
Whats the best way of achieving this, considering that I have enough knowledge to create a custom module.
Here's where I got my idea from.
http://www.jvm-neckar.de
Try the aptly named http://drupal.org/project/timeline project. I used it long time ago... its a nifty module and you can visualize your various posts on a scrollable timeline. Posts that are frequent will be together and posts that are apart (in time) will be apart -- its all scaled accurately. It has integration with views, of course.
I'm not sure about whether it will meet your exact requirements. Check out an example here:
http://simile.mit.edu/timeline/examples/jfk/jfk.html

iFrames - how do search engines read them?

I know that search engines base part of the calculation of rankings on how many other sites point to a specific site, so I was just wondering, given the following situation:
http://siteA/page.aspx contains an iFrame.
This iFrame points to http://siteB/script.aspx?url=http://siteA/page.aspx.
http://siteB/script.aspx generates a list of 1 or more links based on the supplied URL.
http://siteA/page.aspx therefore displays a list of links.
1) Where would Google etc consider links to be based?
2) If it would consider the links to be based at siteB, is there another technique I could use to force search engines to read the links as being based at siteA? For example ajax.
Thanks in advance,
Regards,
Richard
First of all, if you're looking to build a link farm Google will block you faster than you can blink. I would seriously reconsider using iframes to links as in the situation you've described you've no reason to load another page on your first.
To answer your question, iframes load a page on another, so naturally Google will view them as separate entities.
ok think I may have the answer - http://www.highrankings.com/forum/index.php?showtopic=44155&st=0&gopid=312999&#entry312999

Resources