| Home | Podcasts | 

Using web widgets in content on a #Chisimba based site
313 days ago

Chisimba can be used to build all kinds of different sites, ranging from an academic programme registration system, through a content management system or an eLearning system (so-called learning management system), to a blog or wiki and lots more.

All the content tools and most of the blocks can take filters. For text blocks, you do not need this filter, since text blocks do not have  a  WYSWYG editor. The filter that I am going to describe here is just a shortcut to avoid the need for people who are not comfortable with messing around in the source code of the page in the editor. It allows you to paste a web widget directly into the WYSWYG editor, right in the content of the page.

Many sites give you code snippets, which are used as widgets to create some kind of mashup. For example, TeacherTube (http://teachertube.com/) is a good source of educational videos, many of which you will not find on YouTube. There is no specific filter for TeacherTube because the site's player does not lend itself to filter creation, but you can copy the embeddable player and paste it into your content page surrounded by WIDGET tags.

The filter is [WIDGET][/WIDGET] and is used to enclose a web widget in the WYSWYG editor. To use this to embed a TeacherTube video, simply surround the TeacherTube code by this tag. The format is: [WIDGET]<embed width="470" height="260" flashvars="file=http://www.teachertube.com/embedFLV.php?pg=video_120951&amp;menu=false&amp;frontcolor=ffffff&amp;lightcolor=FF0000&amp;logo=http://www.teachertube.com/www3/images/greylogo.swf&amp;skin=http://www.teachertube.com/embed/overlay.swf&amp;volume=80&amp;controlbar=over&amp;displayclick=link&amp;viral.link=http://www.teachertube.com/viewVideo.php?video_id=120951&amp;stretching=exactfit&amp;plugins=viral-1,gapro-1&amp;viral.callout=none&amp;viral.onpause=false&amp;gapro.accountid=UA-2624863-1&amp;gapro.trackstarts=true&amp;gapro.trackpercentage=true&amp;gapro.tracktime=true" allowfullscreen="true" allowscriptaccess="always" bgcolor="undefined" src="http://www.teachertube.com/embed/player.swf"></embed> style="color: rgb(0, 0, 255);">[/WIDGET]

This will cause the embeddable player to be shown when the page is viewed, as below:

This allows you to insert videos from sites other than YouTube, as well as other kinds of content from widget sites without having to tamper with the source HTML of the content.

I might use this to insert a web widget, for example from Widgetbox or another widget site. The same principle works. To insert a guitar tuner widget, I might use:
[WIDGET]<script type="text/javascript" src="
http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('b7cf6c47-768d-4ae3-8ca5-f7b5f7044942');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/guitar-tuner">Guitar Tuner</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript> style="color: rgb(0, 0, 255);">[/WIDGET]
which is copied from the guitar tuner widget on widgetbox. I keep this on my local copy of Chisimba and use it daily to tune my guitar!

There are plenty of educational widgets, videos, sound bytes and other goodies that can easily be inserted in this way.There are plenty of educational widgets, videos, sound bytes and other goodies that can easily be inserted in this way.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

How to create content with dashboard gages in #Chisimba content
314 days ago

Have you ever wanted to produce a report that has dashboard gages in it? You can now do this in any Chisimba content tool that supports filters. These include the content management system (CMS), news, blog, discussion forum, course and group content, blocks, etc.

The GAGE filter implements these dashboard gages using google graph API. Use it as

[GAGE:actual=percentage,label=percentage,colors=start-finish,size=size]Your caption here[/GAGE]

For example, to produce the gage below:
Half way there
Half way there

use the code:

[GAGE:actual=50,label=50,colors=red-green,size=150x100]Half way there[/GAGE]

Here is an example of useage:

Progress in making the muffins
Step Progress
Purchase the ingredients Purchase
Purchase
Place ingredients on counter top Where are the rest
Where are the rest
Heat the oven Oven
Oven
Mix the ingredients Dry ingredients
Dry ingredients

I am sure you can think of other uses!

NOTES:
the numbers should always be percentages;
colors can only be red-green or green-red;
the x in the size must be lower case;
only a white background at present.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

User accounts deleted
316 days ago

I had allowed for self-registration on this site, but as I do not really have time to maintain external users, I have deleted all existing users. I have been neglecting the site a bit lately, and some people used the opportunity to spam the comments. I have therefore deleted all comments, rather than search and remove the abusive ones.

If you have registered on this site, you will not be able to login with those credentials any more. I will shortly implement the feature that allows you to login with your Facebook account. Hopefully that will require less maintenance on my part. Apologies to those who have been deleted.



Tags for this post
This post has not been tagged

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

The Malta Moon file I used for the OpenZoom / #Chisimba tutorial
345 days ago

These are the Malta Moon files that I used for the tutorial on building multiscale images and using them with the OpenZoom Chisimba filter.


Moon over Malta

You can download this whole set as a zip file if you want to explore it.

 



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

Creating multiscale images using them with the #Chisimba OpenZoom filter
346 days ago

This video is a screen recording showing how to create multiscale images using some simple python tools from OpenZoom Endo. It also shows how to use them with the #Chisimba OpenZoom filter. 



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

Installing the OpenZoom Endo python tools for making multiscale images for use in #Chisimba
346 days ago

This video describes how to install the multiscale python tools from the OpenZoom project Endo so that you can produce multiscale images for use in Chisimba with the OPENZOOM filter.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

OpenZoom filter demonstration in #Chisimba
347 days ago

This is an underwater photo that I took in Malta in June. The source image is 1422x1387 pixels, which is not large. But it is large enough to demonstrate the features of the OpenZoom multiscale image plugin for Chisimba. I developed this filter and the plugin module that it uses based on the work of  Daniel Gasienica in developing the underlying flash and jQuery plugin.


Invertebrates in Malta.

This is an underwater photograph from Malta that I took with a cheap rental camera when I was diving there in June.

You can use the mouse wheel to zoom into and out of the image. This uses an image pyramid, that enables the image to 'stream' so the full image size is only loaded if you want it.

Use the Shift key while zooming to prevent the web page from scrolling up and down.

 I will blog about how to use this filter in the next day or so.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

My work on OpenZoom and #Chisimba integration
349 days ago

Having solved the problem of the OpenZoom applet being able to live in an arbitrary location, I have now moved on to working on getting a basic OpenZoom filter working in Chisimba. Feeds from this work appear below.

[RSS]http://search.twitter.com/search.atom?q=openzoom+%23chisimba[/RSS]

As soon as I have worked out how to make the image pyramid, I will blog with an example.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

Changing OpenZoom Nano so it can work with the flash player in an arbitrary location (e.g. as a Chisimba plugin)
351 days ago

I have been experimenting with OpenZoom, and with writing a Chisimba wrapper for it so it can be a Chisimba plugin.  The OpenZoom Project promotes and supports the use of high-resolution images and Zoomable User Interfaces (ZUIs) on the web. OpenZoom provides frameworks, tools and documentation to enable you to create great user experiences.

The OpenZoom SDK is a free & open source toolkit for delivering high-resolution images and Zoomable User Interfaces (ZUIs) to the web and desktop. It is built on top of the Adobe Flash Platform and was developed by Daniel Gasienica, a Computer Science student in Zürich, Switzerland. The kit consists of some python tools for producing the zoomable images, as well as a jQuery plugin to render a flash applet (OpenZoom Nano) in a web page. This should make it easy to build a Chisimba wrapper, and a Chisimba filter for it.

When getting started, I hit a known issue, in that the flash player has to be in the same directory as the source image and the HTML file that makes it viewable. This would be impossible for writing a Chisimba plugin, so I posed the question on the Chisimba developer's mailing list. A solution was suggested by one of the developers there, and I merely implemented his idea and it worked.

It was necessary to change the openzoom run function as follows to read an openzoom:viewerpat parameter from the image tag, specifically:

appletFile = $(this).attr("openzoom:viewerpath") + "OpenZoomViewer.swf",

Note that I put my viewer in a directory called tmp, below the directory with the source image. You also need to change the image tag attributes to add this viewerpath as follows:

<img src="me/me-500x375.jpg" width="500" height="375" openzoom:source="../me/image.xml" openzoom:viewerpath="tmp/">

Note also that the openzoom:source now points to the image via a realative path, and the path is relative to the actual location of the viewer. In this case it is one up (../) and down in the directory 'me'. This is a limitation that makes this a bit of a dirty hack. It would be better if the image path could be absolute, but that will probably require an actionscript hero to look at the source of the player. For now, this at least works, and I can start playing with a filter for Chisimba.

The full code then looks as follows, with the changed lines indicated in red.

/*
 * OpenZoom Endo 0.4
 * http://openzoom.org/
 *
 * Copyright (c) 2007-2009, Daniel Gasienica <daniel@gasienica.ch>
 * License: GNU General Public License v3
 * <http://www.gnu.org/licenses/gpl.html>;
 */
(function($) {
    $.openzoom = {};
    $.openzoom.run = function ()
The display method is not set.
{
        $("img").each(function() {
            var width = $(this).attr("width"),
                height = $(this).attr("height"),
                source = $(this).attr("openzoom:source"),
                appletFile = $(this).attr("openzoom:viewerpath") + "OpenZoomViewer.swf",
                alternate = "<img src="" + $(this).attr("src") + "" width="" + width + "" height="" + height + "">",
                viewerId = "viewer" + Math.floor(Math.random() * 0x424f),
                defaults = {
                    viewer: appletFile,
                    background: "#111111"
                }
,
            viewer = getEmbedHTML(source, width, height, alternate, viewerId, defaults);
           
            if (source != null && source != "")
                $(this).replaceWith(viewer);
        });
       
        function getEmbedHTML(source, width, height, alternate, id, options)
The display method is not set.
{
            return "<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " +
                    "width=""+ width +"" height=""+ height +"" id="" + id + "" name="" + id + "">" +
                     "<param name="movie" value="" + options.viewer + ""/>" +
                     "<param name="scale" value="noscale" />" +
                     "<param name="bgcolor" value="" + options.background + "" />" +
                     "<param name="allowfullscreen" value="true"/>" +
                     "<param name="allowscriptaccess" value="always" />" +
                     "<param name="flashvars" value="source=" + source + ""/>" +
                     "<!--[if !IE]>-->" +
                     "<object type="application/x-shockwave-flash" data="" + options.viewer + "" " +
                      "width=""+ width +"" height=""+ height +"" name="" + id + "">" +
                       "<param name="scale" value="noscale" />" +
                       "<param name="bgcolor" value="" + options.background + "" />" +
                       "<param name="allowfullscreen" value="true" />" +
                       "<param name="allowscriptaccess" value="always" />" +
                       "<param name="flashvars" value="source=" + source + ""/>" +
                     "<!--<![endif]-->" +
                           alternate +
                     "<!--[if !IE]>--> " +
                     "</object>" +
                     "<!--<![endif]-->" +
                   "</object>";
        }

    }
})(jQuery);
jQuery.noConflict();jQuery(document).ready(function(){jquery.openzoom.run()});

You can download Daniel's simple example with the altered code.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

Version 3.1.1 of the Chisimba Framework core available
371 days ago

Version 3.1.1 of the Chisimba Framework is now available for download on
the AVOIR downloads page and the OSUSL mirror for those off UWC campus ( http://ftp.osuosl.org/pub/chisimba/ )



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike

Windows 7 sins and the case against proprietary software
371 days ago

Windows 7 SinsAs someone who has enjoyed the benefits of software freedom for a number of years, I am at times amused and others saddened to see people using proprietary software these days. The folks at the Free Software Foundation has used the launch of Windows 7 by the Redmond based license vendor, Microsoft, to raise awareness of Free Software. The campaign is based in part on the unsavoury practices of the license vendor in education. The site says

Increasingly, computers are expected to be useful tools in our children's education. But today, most children whose education involves computers are being taught to use one company's product: Microsoft's. Microsoft spends large sums on lobbyists and marketing to procure the support of educational departments.
The Website is located at http://windows7sins.org/
 

Visit the site if you are interested in education, democracy or freedom. The Redmond-based license vendor has been up to its monopolistic practices in South Africa including wineing and dining government officials, using its global power to undermine national strategies around document standards, marketing its licenses to school children, breaking South African patenting policy by attempting to gain software patents on commonly used practices, and attempting to deliberately undermine Government Open Source strategy.  Of course, there are those who would argue that such immoral practices are just business. Well, so is the FSF campaign.



Tags for this post

       
Bookmark this post Trackback URL  No trackbacks were found for this post Attribution Share Alike
Weblog of: Derek Keats
Login




Remember me

Forgot your password?
HELP

toggle Twitter
You cannot tweet unless you are logged in, and on your own page.
Follow me on Twitter Follow me on Twitter
Friend me on Facebook Add me on Facebook
Chisimba Facebook group Chisimba Facebook group





Afrigator