comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Ann: Corporate Bullshit Generator
Date: Mon, 20 Jun 2011 12:26:32 -0400
Date: 2011-06-20T12:26:32-04:00	[thread overview]
Message-ID: <nospam-3F8549.12263220062011@news.aioe.org> (raw)
In-Reply-To: 26d40fa3-eeda-4660-8925-6cdd9c8a0f0c@b1g2000yql.googlegroups.com

In article 
<26d40fa3-eeda-4660-8925-6cdd9c8a0f0c@b1g2000yql.googlegroups.com>,
 Gautier write-only <gautier_niouzes@hotmail.com> wrote:

> Is there anybody here who could help setting up a JVM applet (through 
> jgnat) with the CBSG and some HTML or JS code to have the applet 
> generating, say, an HTML frame or whatever in that fashion? Indeed 
> any solution with a button on web page titled "More bullshit, 
> please!" would be welcome.

Sorry, I've not used jgnat, but I was thinking about deployment.

Client side:
-----------
Assuming that jgnat's output is JARable bytecode, JApplet is a 
reasonable choice, but an application distributed via Java Web Start 
should work, too. Here's a hybrid example:

<http://sites.google.com/site/drjohnbmatthews/subway>

JEditorPane with setEditable(false) is a convenient container for 
simple markup (~HTML 3.2).

<http://download.oracle.com/javase/6/docs/api/javax/swing/JEditorPane.html>

Server side:
-----------

If a hosted servlet container is available, here's a simple Java 
servlet that sends the standard output of a command via an 
HttpServletResponse:

<http://groups.google.com/group/comp.lang.java.programmer/msg/9fe6bb022349464b>

Hosted applications at SourceForge include Trac. I'm not sure if you 
can add your own wiki macro or if gnat is installed; but here's an 
example, analogous to the servlet above, that invokes fortune:

from trac.wiki.macros import WikiMacroBase
import commands

class FortuneMacro(WikiMacroBase):
    """ Return a random fortune. """
    revision = "$Rev$"
    url = "$URL$"

    def expand_macro(self, formatter, name, args):
        """ Return a random fortune. """
        fortune = commands.getoutput('/usr/games/fortune')
        fortune = fortune.replace('\n', '<br>')
        return fortune

<https://sourceforge.net/apps/trac/sourceforge/wiki/Hosted%20Apps>
<http://trac.edgewall.org/wiki/WikiMacros>

Would writing to standard output, as is done in fortune, be a useful 
default?

<http://linux.die.net/man/6/fortune>

Yes, I too wish to leverage functional enterprise content interactively!

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  reply	other threads:[~2011-06-20 16:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 17:46 Ann: Corporate Bullshit Generator Gautier write-only
2011-06-17 19:02 ` Adam Beneschan
2011-06-17 19:43 ` Ludovic Brenta
2011-06-17 20:06 ` Thomas Løcke
2011-06-17 23:00   ` Ludovic Brenta
2011-06-17 23:15 ` Georg Bauhaus
2011-06-18 20:08 ` Gautier write-only
2011-06-20 16:26   ` John B. Matthews [this message]
2011-06-22 17:09     ` JD Educational Computing Services
2011-06-27  7:42   ` Jacob Sparre Andersen
2011-06-27 18:11     ` Ludovic Brenta
2011-06-27 18:33       ` Bill Findlay
2011-08-01 18:03 ` Georg Bauhaus
2011-08-02  8:59   ` Francois54
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox