Re: [Jgeneral] files in jwiki

2018-11-05 Thread Raul Miller
Perhaps worth noting, also that [at least for now] every github
repository comes with its own wiki (which just redirects you back to
the repository if you haven't put anything into it). Content in that
wiki uses markdown formatting instead of mediawiki formatting. For
example: https://help.github.com/articles/adding-links-to-wikis/

https://help.github.com/articles/about-github-wikis/

For example, the https://github.com/jsoftware user has a jsource
repository which you can see at https://github.com/jsoftware/jsource,
and if that wiki had any content, you would be able to see that at
https://github.com/jsoftware/jsource/wiki . (And it might make sense
to put a link to the code.jsoftware.com wiki there?)

(Also, there's the pages.github.com mechanism which has some analogous
characteristics but which takes a little more thought to set up and
use.)

FYI,

-- 
Raul

On Mon, Nov 5, 2018 at 3:04 PM chris burke  wrote:
>
> Right, the way files are handled is that a file link takes you to the File:
> page from which you can then download or view the file.
>
> This is the design of mediawiki (the wikipedia engine). Wiki engines were
> never really intended for file delivery systems.
>
> In your own case, since you have several files, it would easier for the
> user that you create an addon. This can be done in your own github repo,
> see https://code.jsoftware.com/wiki/Addons/Installation#install_Verb .
>
> On Mon, Nov 5, 2018 at 11:30 AM Brian Schott  wrote:
>
> > I have been reviewing my turtle graphics in jhs script (tgsjhs) on the
> > jwiki and have been surprised by how files are now handled on the jwiki. I
> > believe there have been changes that I did not realize and want to seek
> > confirmation of my impressions. This link takes you to the jwiki page
> > Download section:
> >
> >
> > https://code.jsoftware.com/wiki/User:Brian_Schott/code/turtleGraphics/tgsjhs#Download
> >
> >
> > 0) Notice that each file's name now begins with 'File:' and is followed by
> > a capitalized Filename. It is my understanding that the user is expected to
> > click on the 'File:xxx' link and is then delivered to that file's separate
> > page to view or download the file. The new link is as follows (notice the
> > capitalization).
> >
> > code.jsoftware.com/wiki/File:
> >
> > (Further below I will try to discuss a problem that I have had trying to
> > upload a zip file, but here only downloading a viewing are discussed.)
> >
> > 1) Clicking on the link in the first section of the new window/tab (which
> > is the File section named https://code.jsoftware.com/wiki/File
> > :#file)
> > acts like a typical hyperlink which produces a new window or tab containing
> > text or an image of the file, depending on the file type.
> >
> > Instead, right-clicking on this link enables downloading the File with the
> > capitalize Filename, and at least on my Mac even worked for a .zip file
> > that was uploaded as a .png file because the jwiki does not accept the
> > former. On my Mac the "Save Link as..." option allowed me to change the
> > Filename-without-extension to filename.with-desired-extension (notice
> > change in capitalization and addition of '.' . This enables me to save with
> > exactly the desired filename and extension. But frankly it took a while to
> > learn the correct steps, especially right-clicking and renaming.
> >
> > I guess my questions for the above are, am I correct in the required steps
> > and is this so burdensome that folks coming from a youtube video who
> > attempt to download my will not wish to download this (or other) scripts?
> >
> > 
> >
> > Now back to uploading a zip file to the jwiki. There is a zip file already
> > on this page; it was uploaded before the new wiki was installed using a
> > disguised extension of .png . But I have been unable to replace that zip
> > file nor to upload a new zip file either by using the disguised extension
> > or the real extension. When I use the png extension it is rejected with the
> > following error.
> >
> > File extension ".png" does not match the detected MIME type of the file
> > (application/zip).
> >
> > When I use the zip extension, an error informs me that zips are not
> > permitted.
> >
> > So the question here is: Is there a workaround for this problem?
> >
> > Thanks,
> >
> > --
> > (B=) <-my sig
> > Brian Schott
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jgeneral] files in jwiki

2018-11-05 Thread chris burke
Right, the way files are handled is that a file link takes you to the File:
page from which you can then download or view the file.

This is the design of mediawiki (the wikipedia engine). Wiki engines were
never really intended for file delivery systems.

In your own case, since you have several files, it would easier for the
user that you create an addon. This can be done in your own github repo,
see https://code.jsoftware.com/wiki/Addons/Installation#install_Verb .

On Mon, Nov 5, 2018 at 11:30 AM Brian Schott  wrote:

> I have been reviewing my turtle graphics in jhs script (tgsjhs) on the
> jwiki and have been surprised by how files are now handled on the jwiki. I
> believe there have been changes that I did not realize and want to seek
> confirmation of my impressions. This link takes you to the jwiki page
> Download section:
>
>
> https://code.jsoftware.com/wiki/User:Brian_Schott/code/turtleGraphics/tgsjhs#Download
>
>
> 0) Notice that each file's name now begins with 'File:' and is followed by
> a capitalized Filename. It is my understanding that the user is expected to
> click on the 'File:xxx' link and is then delivered to that file's separate
> page to view or download the file. The new link is as follows (notice the
> capitalization).
>
> code.jsoftware.com/wiki/File:
>
> (Further below I will try to discuss a problem that I have had trying to
> upload a zip file, but here only downloading a viewing are discussed.)
>
> 1) Clicking on the link in the first section of the new window/tab (which
> is the File section named https://code.jsoftware.com/wiki/File
> :#file)
> acts like a typical hyperlink which produces a new window or tab containing
> text or an image of the file, depending on the file type.
>
> Instead, right-clicking on this link enables downloading the File with the
> capitalize Filename, and at least on my Mac even worked for a .zip file
> that was uploaded as a .png file because the jwiki does not accept the
> former. On my Mac the "Save Link as..." option allowed me to change the
> Filename-without-extension to filename.with-desired-extension (notice
> change in capitalization and addition of '.' . This enables me to save with
> exactly the desired filename and extension. But frankly it took a while to
> learn the correct steps, especially right-clicking and renaming.
>
> I guess my questions for the above are, am I correct in the required steps
> and is this so burdensome that folks coming from a youtube video who
> attempt to download my will not wish to download this (or other) scripts?
>
> 
>
> Now back to uploading a zip file to the jwiki. There is a zip file already
> on this page; it was uploaded before the new wiki was installed using a
> disguised extension of .png . But I have been unable to replace that zip
> file nor to upload a new zip file either by using the disguised extension
> or the real extension. When I use the png extension it is rejected with the
> following error.
>
> File extension ".png" does not match the detected MIME type of the file
> (application/zip).
>
> When I use the zip extension, an error informs me that zips are not
> permitted.
>
> So the question here is: Is there a workaround for this problem?
>
> Thanks,
>
> --
> (B=) <-my sig
> Brian Schott
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jgeneral] files in jwiki

2018-11-05 Thread Brian Schott
I have been reviewing my turtle graphics in jhs script (tgsjhs) on the
jwiki and have been surprised by how files are now handled on the jwiki. I
believe there have been changes that I did not realize and want to seek
confirmation of my impressions. This link takes you to the jwiki page
Download section:

https://code.jsoftware.com/wiki/User:Brian_Schott/code/turtleGraphics/tgsjhs#Download


0) Notice that each file's name now begins with 'File:' and is followed by
a capitalized Filename. It is my understanding that the user is expected to
click on the 'File:xxx' link and is then delivered to that file's separate
page to view or download the file. The new link is as follows (notice the
capitalization).

code.jsoftware.com/wiki/File:

(Further below I will try to discuss a problem that I have had trying to
upload a zip file, but here only downloading a viewing are discussed.)

1) Clicking on the link in the first section of the new window/tab (which
is the File section named https://code.jsoftware.com/wiki/File:#file)
acts like a typical hyperlink which produces a new window or tab containing
text or an image of the file, depending on the file type.

Instead, right-clicking on this link enables downloading the File with the
capitalize Filename, and at least on my Mac even worked for a .zip file
that was uploaded as a .png file because the jwiki does not accept the
former. On my Mac the "Save Link as..." option allowed me to change the
Filename-without-extension to filename.with-desired-extension (notice
change in capitalization and addition of '.' . This enables me to save with
exactly the desired filename and extension. But frankly it took a while to
learn the correct steps, especially right-clicking and renaming.

I guess my questions for the above are, am I correct in the required steps
and is this so burdensome that folks coming from a youtube video who
attempt to download my will not wish to download this (or other) scripts?



Now back to uploading a zip file to the jwiki. There is a zip file already
on this page; it was uploaded before the new wiki was installed using a
disguised extension of .png . But I have been unable to replace that zip
file nor to upload a new zip file either by using the disguised extension
or the real extension. When I use the png extension it is rejected with the
following error.

File extension ".png" does not match the detected MIME type of the file
(application/zip).

When I use the zip extension, an error informs me that zips are not
permitted.

So the question here is: Is there a workaround for this problem?

Thanks,

-- 
(B=) <-my sig
Brian Schott
--
For information about J forums see http://www.jsoftware.com/forums.htm