Re: Lilypond as MediaWiki extension does not print in Extension:Collection
2010/1/28 John Mandereau > Le jeudi 28 janvier 2010 à 15:48 +0100, Oscar van Dillen a écrit : > > " You can install and use this extension in your wiki, but it is > currently > > not available in Wikipedia. Many people would love to use this extension > > in Wikipedia and other large-footprint wikis that they have no control > > over. However, in its current form, this is unfortunately impossible due > > to security concerns. > > This is not a reason not to support LilyPond processing as a option that > is switchable by a configuration file accessible only to the website > administrator, which would be disabled by default. > > > > is this correct, that lilypond has this "security issue" as stated; > > and is it possible " to make the program hang indefinitely"? > > Adding to Kieren's example, think that LilyPond user interface is a > programming language, so it is hard to avoid these problems, that's the > workaround that consists of limiting CPU and memory usage is > recommended. Even with normal use of such an extension, you need much > CPU power and free memory, which is surely not available on many servers > running MediaWiki. > > Best, > John > thank you kieren and john, things have become much more clear to me after this thread so far. i will ponder on how to perhaps make it run a bit more safely on my website, and keep on using it, as lilypond is relatively userfriendly, very powerful, and essential there :-) fyi to the pediapress people i wrote, to conclude ticket #775 i mentioned earlier: "still, in my humble opinion, not including lilypond in the pdf rendering extension:collection is a missed chance for pediapress as well, since to me it seems to concern its field of business, and a possible venture into a whole new field: open source music printing. but i will not push the issue further at this point (and leave this ticket closed). i think however pediapress is missing out on an opportunity, but this is also a matter of choices of priority, and we may vary in this of course. i personally believe it would be more than worth the efforts to tackle this" all the best, oscar -- oscarvandil...@gmail.com www.oscarvandillen.com ** The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. Although this message and any attachments are believed to be free of viruses, no responsibility can be accepted for any loss or damage arising in any way from receipt or use thereof. ** ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond as MediaWiki extension does not print in Extension:Collection
Le jeudi 28 janvier 2010 à 15:48 +0100, Oscar van Dillen a écrit : > " You can install and use this extension in your wiki, but it is currently > not available in Wikipedia. Many people would love to use this extension > in Wikipedia and other large-footprint wikis that they have no control > over. However, in its current form, this is unfortunately impossible due > to security concerns. This is not a reason not to support LilyPond processing as a option that is switchable by a configuration file accessible only to the website administrator, which would be disabled by default. > is this correct, that lilypond has this "security issue" as stated; > and is it possible " to make the program hang indefinitely"? Adding to Kieren's example, think that LilyPond user interface is a programming language, so it is hard to avoid these problems, that's the workaround that consists of limiting CPU and memory usage is recommended. Even with normal use of such an extension, you need much CPU power and free memory, which is surely not available on many servers running MediaWiki. Best, John signature.asc Description: Ceci est une partie de message numériquement signée ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond as MediaWiki extension does not print in Extension:Collection
Hi Oscar, > is this correct, that lilypond has this "security issue" as stated; I'm no security expert, but this issue has been discussed at length several times on the Lilypond lists (-user and -dev), so check the archives. > and is it possible " to make the program hang indefinitely"? Probably... what about \repeat "unfold" 1000 { \repeat "unfold" 1000 { \repeat "unfold" 1000 { \repeat "unfold" 1000 { c128 } } } } Worse, of course, is to write in a Scheme function -- which Lilypond would of course attempt to execute -- which simply calculated pi to infinite precision. =) Cheers, Kieren ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond as MediaWiki extension does not print in Extension:Collection
On Thu, Jan 28, 2010 at 3:11 PM, Oscar van Dillen wrote: > > > On Thu, Jan 28, 2010 at 1:26 PM, John Mandereau > wrote: > >> 2010/1/27 Oscar van Dillen : >> > on my website I found that Lilypond as MediaWiki extension does not >> print >> > music notation, just code, to the pdf in Extension:Collection >> > http://www.mediawiki.org/wiki/Extension:Collection >> > Lilypond does work fine when using "printable version" such as can be >> seen >> > here http://www.oscarvandillen.com/Triad?printable=yes >> >> > should I rather tell the collection programmers at >> > http://www.mediawiki.org/wiki/Extension:Collection/Wishlist >> >> Yes, please. If that extension shows only the LilyPond source code of >> snippets but the normal page view and the printable view show these >> snippets processed and converted to PNG, it surely means that LilyPond >> is not called to process these snippets from Extension:Collection. >> >> By the way, for a decent printing quality, the PDF generation should >> not be left to the user browser but should be done on the server side >> (using PDF snippets generated by LilyPond), like what >> openstreetmap.org does. This regards standard printable view as well >> as the extension Collection. >> >> Best, >> John >> > > thank you very much! > with the help of your analysis, i now filed a bug to this collection, > hoping it will be fixed in the near future. > > it is here http://code.pediapress.com/wiki/ticket/775 > > > very best, > oscar > > -- > oscarvandil...@gmail.com > > www.oscarvandillen.com > > hmm, as it turns out, pediapress refuses to fix this, the reasons given are: " You can install and use this extension in your wiki, but it is currently not available in Wikipedia. Many people would love to use this extension in Wikipedia and other large-footprint wikis that they have no control over. However, in its current form, this is unfortunately impossible due to security concerns. This extension is using Lilypond's safe mode, which according to the documentation "does not detect resource overuse. It is still possible to make the program hang indefinitely, for example by feeding cyclic data structures into the backend. Therefore, if using LilyPond on a publicly accessible webserver, the process should be limited in both CPU and memory usage." This extension is therefore not used in Wikipedia because it is considered a hazardous denial-of-service vector." is this correct, that lilypond has this "security issue" as stated; and is it possible " to make the program hang indefinitely"? thanks in advance and all the best, oscar -- oscarvandil...@gmail.com www.oscarvandillen.com ** The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. Although this message and any attachments are believed to be free of viruses, no responsibility can be accepted for any loss or damage arising in any way from receipt or use thereof. ** ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond as MediaWiki extension does not print in Extension:Collection
On Thu, Jan 28, 2010 at 1:26 PM, John Mandereau wrote: > 2010/1/27 Oscar van Dillen : > > on my website I found that Lilypond as MediaWiki extension does not print > > music notation, just code, to the pdf in Extension:Collection > > http://www.mediawiki.org/wiki/Extension:Collection > > Lilypond does work fine when using "printable version" such as can be > seen > > here http://www.oscarvandillen.com/Triad?printable=yes > > > should I rather tell the collection programmers at > > http://www.mediawiki.org/wiki/Extension:Collection/Wishlist > > Yes, please. If that extension shows only the LilyPond source code of > snippets but the normal page view and the printable view show these > snippets processed and converted to PNG, it surely means that LilyPond > is not called to process these snippets from Extension:Collection. > > By the way, for a decent printing quality, the PDF generation should > not be left to the user browser but should be done on the server side > (using PDF snippets generated by LilyPond), like what > openstreetmap.org does. This regards standard printable view as well > as the extension Collection. > > Best, > John > thank you very much! with the help of your analysis, i now filed a bug to this collection, hoping it will be fixed in the near future. it is here http://code.pediapress.com/wiki/ticket/775 very best, oscar -- oscarvandil...@gmail.com www.oscarvandillen.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond as MediaWiki extension does not print in Extension:Collection
2010/1/27 Oscar van Dillen : > on my website I found that Lilypond as MediaWiki extension does not print > music notation, just code, to the pdf in Extension:Collection > http://www.mediawiki.org/wiki/Extension:Collection > Lilypond does work fine when using "printable version" such as can be seen > here http://www.oscarvandillen.com/Triad?printable=yes > should I rather tell the collection programmers at > http://www.mediawiki.org/wiki/Extension:Collection/Wishlist Yes, please. If that extension shows only the LilyPond source code of snippets but the normal page view and the printable view show these snippets processed and converted to PNG, it surely means that LilyPond is not called to process these snippets from Extension:Collection. By the way, for a decent printing quality, the PDF generation should not be left to the user browser but should be done on the server side (using PDF snippets generated by LilyPond), like what openstreetmap.org does. This regards standard printable view as well as the extension Collection. Best, John ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond as MediaWiki extension does not print in Extension:Collection
dear all, on my website I found that Lilypond as MediaWiki extension does not print music notation, just code, to the pdf in Extension:Collection http://www.mediawiki.org/wiki/Extension:Collection Lilypond does work fine when using "printable version" such as can be seen here http://www.oscarvandillen.com/Triad?printable=yes *is it my configuration? see http://www.oscarvandillen.com/Special:Version(Lilypond is invisible there but installed) *is this a know issue? (i didn't find it anywhere yet) should I rather tell the collection programmers at http://www.mediawiki.org/wiki/Extension:Collection/Wishlist or is it something that must be solved by the Lilypond programmers? very best, oscar -- oscarvandil...@gmail.com www.oscarvandillen.com ** The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. Although this message and any attachments are believed to be free of viruses, no responsibility can be accepted for any loss or damage arising in any way from receipt or use thereof. ** ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
Hello, as already posted, the solution is: In the Lilypond.php file you have to change the parameters: $cmd = $wgLilypond " -d safe -d eps --format=png ---header=textidoc " Hajo ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
Graham Percival wrote: On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote: lilypond -d safe foo.ly works here. i guess the lilypond mediawiki extension is broken? in my wiki page i get the error /same problem with the below line i guess. $cmd = $wgLilypond . " --safe --backend=eps --format=png --header=texidoc " . escapeshellarg($lyFile) . " 2>&1"; I already told you the answer. Please read the command-line argument I wrote, and compare it to the command-line argument you used. Also read the NEWS document for the version of lilypond that you are using. - Graham i am just pointing out that the lilypond extension http://www.mediawiki.org/wiki/Extension:LilyPond has errors i am not the author of this php script just a bug reporter backing up the report made by the last poster to this list thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
Graham Percival wrote: On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote: lilypond -d safe foo.ly works here. i guess the lilypond mediawiki extension is broken? in my wiki page i get the error /same problem with the below line i guess. $cmd = $wgLilypond . " --safe --backend=eps --format=png --header=texidoc " . escapeshellarg($lyFile) . " 2>&1"; I already told you the answer. Please read the command-line argument I wrote, and compare it to the command-line argument you used. Also read the NEWS document for the version of lilypond that you are using. - Graham i am just pointing out that the lilypond extension http://www.mediawiki.org/wiki/Extension:LilyPond has errors i am not the author of this php script just a bug reporter backing up the report made by the last poster to this list thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote: > >> lilypond -d safe foo.ly >> works here. >> > i guess the lilypond mediawiki extension is broken? > in my wiki page i get the error > > /same problem with the below line i guess. > $cmd = $wgLilypond . >" --safe --backend=eps --format=png --header=texidoc " . >escapeshellarg($lyFile) . " 2>&1"; I already told you the answer. Please read the command-line argument I wrote, and compare it to the command-line argument you used. Also read the NEWS document for the version of lilypond that you are using. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
lilypond -d safe foo.ly works here. Cheers, - Graham i guess the lilypond mediawiki extension is broken? in my wiki page i get the error *LilyPond error:* //usr/local//lilypond/usr/bin/lilypond: unrecognized option: `--safe' /same problem with the below line i guess. $cmd = $wgLilypond . " --safe --backend=eps --format=png --header=texidoc " . escapeshellarg($lyFile) . " 2>&1"; cheers rob On Sun, Dec 07, 2008 at 03:05:07PM +0100, Hajo Dezelski wrote: Thanks for the hint. Still have a problem. As far as I understood I have to take the parameter -d and an option . But how is the correcht syntax? lilypond -d safe lilypond -d safe (#f) liypond -d #f I couldnt get it to work Cheers Hajo 2008/12/7 Graham Percival On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote: > >I am using v. 11-64. > >I am not a php-programmer. Is there a solution to this problem or should I >drop the idea using lilypond within the mediawiki? Yes, there is a solution. That solution is to run lilypond --help and/or read the News document of lilypond. Cheers, - Graham -- --- ... indessen wandelt harmlos droben das Gestirn ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
It works also within MediaWiki-Software as an extension. In the Lilypond.php file you have to change the parameters: $cmd = $wgLilypond " -d safe -d eps --format=png ---header=textidoc " I still have some formatting problems, but first I have to read the manuals ;-) Hajo -- --- ... indessen wandelt harmlos droben das Gestirn ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
lilypond -d safe foo.ly works here. Cheers, - Graham On Sun, Dec 07, 2008 at 03:05:07PM +0100, Hajo Dezelski wrote: >Thanks for the hint. Still have a problem. As far as I understood I have >to take the parameter -d and an option . But how is the correcht syntax? >lilypond -d safe >lilypond -d safe (#f) >liypond -d #f > >I couldnt get it to work > >Cheers Hajo > >2008/12/7 Graham Percival <[EMAIL PROTECTED]> > > On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote: > > > >I am using v. 11-64. > > > >I am not a php-programmer. Is there a solution to this problem or > should I > >drop the idea using lilypond within the mediawiki? > > Yes, there is a solution. That solution is to run > lilypond --help > and/or read the News document of lilypond. > > Cheers, > - Graham > >-- >--- >... indessen wandelt harmlos droben das Gestirn ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
Thanks for the hint. Still have a problem. As far as I understood I have to take the parameter -d and an option . But how is the correcht syntax? lilypond -d safe lilypond -d safe (#f) liypond -d #f I couldnt get it to work Cheers Hajo 2008/12/7 Graham Percival <[EMAIL PROTECTED]> > On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote: > > > >I am using v. 11-64. > > > >I am not a php-programmer. Is there a solution to this problem or > should I > >drop the idea using lilypond within the mediawiki? > > Yes, there is a solution. That solution is to run > lilypond --help > and/or read the News document of lilypond. > > Cheers, > - Graham > -- --- ... indessen wandelt harmlos droben das Gestirn ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote: > >I am using v. 11-64. > >I am not a php-programmer. Is there a solution to this problem or should I >drop the idea using lilypond within the mediawiki? Yes, there is a solution. That solution is to run lilypond --help and/or read the News document of lilypond. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
MediaWiki-Extension for Lilypond
Hello, trying find a solution with my incipits problem I used my MediaWiki with the Lilypond extension. But I got the error *ilypond.exe: unrecognized option: `--safe' * I deleted the --safe option then the next argument was also not recognized $cmd = $wgLilypond . " --safe --backend=eps --format=png --header=texidoc " . Then I deleted the whole option, but that was not a solution either. I am using v. 11-64. I am not a php-programmer. Is there a solution to this problem or should I drop the idea using lilypond within the mediawiki? Hajo -- --- ... indessen wandelt harmlos droben das Gestirn ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Mediawiki extension
Hi Yann, > I copied some Lilypond files from some other sites, including > lilypond.org, but they do not work out of the box. > Simple examples work, but complex ones do not. > There are many syntax errors. You are using examples from old lilypond versions that do not compile anymore. See http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Updating-files-with-convert_002dly This > http://www.wikilivres.info/wiki/index.php/Musique_de_Table compiles now, so you setup is fine. You want to check your .ly files using lilypond on the command line before adding them to the wiki. Jan. -- Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Mediawiki extension
Hello, I have some problems on a setup with Debian + Mediawiki + Lilypond. I installed it according to http://www.mediawiki.org/wiki/Extension:LilyPond I have Debian stable (Etch), Lilypond 2.8.7. Then I had to upgrade Lilypond to 2.10.29 (Debian testing) and guile to 1.8.2 (Debian unstable). I copied some Lilypond files from some other sites, including lilypond.org, but they do not work out of the box. Simple examples work, but complex ones do not. There are many syntax errors. See http://www.wikilivres.info/wiki/index.php/Musique_de_Table http://www.wikilivres.info/wiki/index.php/Down_to_the_Sea http://www.wikilivres.info/wiki/index.php/Belle_qui_tiens_ma_vie Help very much appreciated. However the result is quite nice when it works: http://www.wikilivres.info/wiki/index.php/Wikilivres:Lilypond Seeing the difficulties I have to set up Lilypond with Mediawiki, I understand why the developers of the Wikimedia Foundation refuse to enable it on Wikipedia and related projects. That's quite a pity, because it would be very useful there. Regards, Yann -- http://www.non-violence.org/ | Site collaboratif sur la non-violence http://www.forget-me.net/ | Alternatives sur le Net http://fr.wikipedia.org/ | Encyclopédie libre http://fr.wikisource.org/ | Bibliothèque libre http://wikilivres.info | Documents libres ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki extension?
Thank you, these are good points. Bert ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki extension?
2007/7/16, Bertalan Fodor <[EMAIL PROTECTED]>: I remember there was a MediaWiki extension for lilypond. Does that exist currently? I'm creating a wiki site for some music and would like to use mediawiki along with this extension. You're refering to Johannes Schindelin's Wikitex extension: http://wikisophia.org/wiki/Wikitex http://svn.wikitex.org/wikitex/branches/1.1/template/music.ly AFAIK, this extension is unmaintained so far, but it should still work (maybe with some tweaking though). However, I think you need to install (in jailed mode) LilyPond on the same server where your wiki is hosted to use it. If you have to deal with many scores but no text, you can of course use Sebastiano's LSR backend, wich is by far the most advanced client/server LilyPond project. A French guy named Christophe Richard has just opened a public LilyPond server: http://www.lilyserv.net/bashserver.php He's using it with a Wiki-like plugin he has developed for the SPIP CMS: http://www.musicorum.net/spip.php?article125 (I know you disagree with the idea of creating new LilyPond clients, but I'd like to mention here the web interface I'm trying to develop, as an AJAX implementation of LilyPondTool, at http://valentin.villenave.info/lilypond/ ; currently it's only supported by Mozilla browsers) and btw, I'm glad to see I'm not the only Web2.0 geek here :) Regards, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki extension?
http://bugzilla.wikipedia.org/show_bug.cgi?id=189#c12 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
MediaWiki extension?
Hello, I remember there was a MediaWiki extension for lilypond. Does that exist currently? I'm creating a wiki site for some music and would like to use mediawiki along with this extension. Thanks, Bert ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user