[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread TonyM
Post script

I would add to the above reply;

   - The ability to save individual files to the server could be made 
   available to all single file savers and servers not just php given the 
   users have the access rights to do so.
  - This could permit a serial editing feature on all platforms.
   - However a PHP solution is possibly suitable for the most server 
   platforms available.
   - Typically this save mechanism would only be to the current folder or a 
   subfolder (a fair limitation)
   - The "import named file" mechanism we would need to programmatically 
   pull in an external file, and turn it into a tiddler, such as for a lock 
   mechanism would also be able to be used to import content, rss feeds, the 
   output of other content.
   - In tiddlywiki one could use HTML/Php solutions hosted on the server to 
   manage interaction 
  - eg WordPress but then the tiddlywiki could load and or edit and 
  save from a database, file or URL thus consuming or publishing wordpress 
  content.
  - WordPress is the most prolific CMS available and common on PHP 
  servers.
  - You can embed tiddlywikis into wordpress as well.
   
Regards
Tony

On Friday, March 6, 2020 at 12:13:17 PM UTC+11, TonyM wrote:
>
> Bimlas,
>
> I understand your needs better now, please consider this approach, which I 
> am confident should work, 
>
>- it is I believe technically feasible
>- but needs some technical PHP and saver help.
>- In your example case you would not need a serial editing mechanism.
>
> The current tw-receiver allows single file wikis save to php server. 
> Typically all our savers for single file wikis, just save the monolithic 
> wikifile. 
>
>- There is already sufficient tools within tiddlywiki to save as 
>another filename, using a different filter and even different templates 
> for 
>the save.
>- I have long thought that it should be trivial to introduce a plugin 
>with the ability to save and read other files to/from a PHP server (if the 
>passphrase is available)
>- Using custom or available templates you could save one, more or all 
>tiddlers as json, text and preformatted static html that your other 
> website 
>has references to, allowing "display on a web page independently". 
>Basically these additional "exported" files get served by the PHP server 
>not tiddlywiki as with node.
>- Such a facility could be used to develop a checkin/out or tiddlywiki 
>lock allowing single file wikis with multiple to be restricted to serial 
>editing.
>
> Security,
>
>- With the tw-receiver pass phrase you are authorised to write to disk 
>only if you have that
>- When using single file wikis the key gaps with bob is dealing with 
>referencing single tiddlers and contention when you have more than one 
>potential editor
>   - Being able to export to the php server would allow you to publish 
>   single tiddlers
>   - A lock and serial editing layer can address contention for single 
>   file wikis.
>- Additional supporting php could be added to restrict the saving from 
>tiddlywiki to particular folders or file names either publicly writable or 
>only authenticated. 
>- Perhaps we could build a method to save a named users modified 
>tiddlers to their own folder and load or import them (with selective 
>application) for some or all users.
>   - This would allow the contribution of content independent from the 
>   core wiki, and be mediated by the authorised editor.
>   - Such as comments, form filled tiddlers, and more.
>- You could have a hidden secure editable single file tiddlywiki that 
>is published to a seperate file on the server that is publicly accessible 
>with or without local storage and other plugins activated.
>- Innerwiki plugin may be an option for generating a public version, 
>perhaps if the tiddlywiki is not too big.
>
> Have you seen the core plugin "Auto download modified tiddlers"  $:/
> plugins/tiddlywiki/savetrail?
>
>- I could imagine a version of this able to use the operational saver, 
>eg php perhaps saving flagged tiddlers only and according to a nominated 
>template raw or rendered.
>
>
> There may be some resistance to this because some would say "It breaks the 
> single file wiki" model, but in many ways it does not, it just allows the 
> export, externalising and import of content, which accross time is a 
> multi-user function. The alternative method available now is to move to 
> NODE which already breaks the single file model.
>
> Another, perhaps unnecessary, approach if the above one will not be 
> achievable (unlikely), is tiddlers can contain full html that interacts 
> with php and server based scripting, and if necessary via an iframe. It 
> would be possible to build a server based solution embedded within 
> tiddlywiki that publishes content to files to the server as 

[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread TonyM
Bimlas,

I understand your needs better now, please consider this approach, which I 
am confident should work, 

   - it is I believe technically feasible
   - but needs some technical PHP and saver help.
   - In your example case you would not need a serial editing mechanism.

The current tw-receiver allows single file wikis save to php server. 
Typically all our savers for single file wikis, just save the monolithic 
wikifile. 

   - There is already sufficient tools within tiddlywiki to save as another 
   filename, using a different filter and even different templates for the 
   save.
   - I have long thought that it should be trivial to introduce a plugin 
   with the ability to save and read other files to/from a PHP server (if the 
   passphrase is available)
   - Using custom or available templates you could save one, more or all 
   tiddlers as json, text and preformatted static html that your other website 
   has references to, allowing "display on a web page independently". 
   Basically these additional "exported" files get served by the PHP server 
   not tiddlywiki as with node.
   - Such a facility could be used to develop a checkin/out or tiddlywiki 
   lock allowing single file wikis with multiple to be restricted to serial 
   editing.

Security,

   - With the tw-receiver pass phrase you are authorised to write to disk 
   only if you have that
   - When using single file wikis the key gaps with bob is dealing with 
   referencing single tiddlers and contention when you have more than one 
   potential editor
  - Being able to export to the php server would allow you to publish 
  single tiddlers
  - A lock and serial editing layer can address contention for single 
  file wikis.
   - Additional supporting php could be added to restrict the saving from 
   tiddlywiki to particular folders or file names either publicly writable or 
   only authenticated. 
   - Perhaps we could build a method to save a named users modified 
   tiddlers to their own folder and load or import them (with selective 
   application) for some or all users.
  - This would allow the contribution of content independent from the 
  core wiki, and be mediated by the authorised editor.
  - Such as comments, form filled tiddlers, and more.
   - You could have a hidden secure editable single file tiddlywiki that is 
   published to a seperate file on the server that is publicly accessible with 
   or without local storage and other plugins activated.
   - Innerwiki plugin may be an option for generating a public version, 
   perhaps if the tiddlywiki is not too big.

Have you seen the core plugin "Auto download modified tiddlers"  $:/
plugins/tiddlywiki/savetrail?

   - I could imagine a version of this able to use the operational saver, 
   eg php perhaps saving flagged tiddlers only and according to a nominated 
   template raw or rendered.


There may be some resistance to this because some would say "It breaks the 
single file wiki" model, but in many ways it does not, it just allows the 
export, externalising and import of content, which accross time is a 
multi-user function. The alternative method available now is to move to 
NODE which already breaks the single file model.

Another, perhaps unnecessary, approach if the above one will not be 
achievable (unlikely), is tiddlers can contain full html that interacts 
with php and server based scripting, and if necessary via an iframe. It 
would be possible to build a server based solution embedded within 
tiddlywiki that publishes content to files to the server as desired by you.

Regards
Tony


On Thursday, March 5, 2020 at 9:38:19 PM UTC+11, bimlas wrote:
>
> TonyM,
>
> I want to get Tiddly to keep and edit notes that I can display on a web 
> page independently of Tiddly. So Tiddly would be the "editor", but the 
> display would be eg. In PHP. On the other hand, I also want to make the 
> wiki completely online, so that I can access it anywhere and the changes 
> are all in one place.
>
> I don't like the idea of a VPN because I don't think I get it through a 
> webhost, on the other hand, it would have to run at home on a continuously 
> running server. If I already have a web host, I'd like to use it for this 
> purpose.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c56346f7-f729-47f9-a0a0-3bb7ff21d0af%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread TonyM
Bob.exe is a binary

Vanila bob is node

Regards
'Tony

On Friday, March 6, 2020 at 12:01:10 AM UTC+11, bimlas wrote:
>
> Jed,
>
> I didn't even think about Bob, because it's a binary file that I can't run 
> on a web host's server. The server is not my own, only accessed through the 
> cPanel interface. Do you know how to get started?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/36ead933-ca34-4442-8e4b-bc880021d9b5%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
Jed,

I didn't even think about Bob, because it's a binary file that I can't run 
on a web host's server. The server is not my own, only accessed through the 
cPanel interface. Do you know how to get started?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/eff9ec0a-ba58-43e4-a85f-dd1f9820e208%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread Jed Carty
BobEXE doesn't require node, so it may be a possibility. I think I am the only 
one who ever managed to run the secure server version, but if you have Apache 
or nginx to handle the access control that shouldn't be a problem.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/eef9fe60-7769-4765-86e3-34494bea9ad4%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
I remember there was a web page that used Tiddly just like this: the look 
was maybe PHP and Tiddly was the database. A dark red color dominated the 
site. Does anyone remember which side it was?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0ed56a24-18cd-4224-b9e4-249fd6b19027%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
TonyM,

I want to get Tiddly to keep and edit notes that I can display on a web 
page independently of Tiddly. So Tiddly would be the "editor", but the 
display would be eg. In PHP. On the other hand, I also want to make the 
wiki completely online, so that I can access it anywhere and the changes 
are all in one place.

I don't like the idea of a VPN because I don't think I get it through a 
webhost, on the other hand, it would have to run at home on a continuously 
running server. If I already have a web host, I'd like to use it for this 
purpose.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b9309792-5598-4e16-bdcb-4be0d65d67b1%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-04 Thread TonyM
Post Post Script,

I just wanted to add there are two ways to Host or Serve a Wiki, one is the 
file/folder content, the other is to provide the HTML access to the server. 

What I mean is if the servers files are shared online you can have node JS 
run against those files. Ie you take your server with you. Of course you 
can run the server node session off the cloud version but only one at a 
time however I think (unsure) Jed was looking at the ability for multiple 
node servers against the one repository.

finally,
I think there may be value using a VPN to access a node hosted bob, ie keep 
it as a LAN based solution secured inside a VPN to make it internet 
accessible.

Regards
Tony

On Thursday, March 5, 2020 at 9:40:59 AM UTC+11, TonyM wrote:
>
> Bimlas,
>
> Others may have an answer. 
>
> The key method to host online for me is php and tw-receiver but for single 
> file wikis only, this rest on top of a standard html server and there 
> numerous ways to build or host such servers. It would be great if we had a 
> php saver for tiddlywiki that operated like node.js ie folder based wiki.
>
> At present only bob on node has the multi-user multi-access solution 
> typically needed for an online server, although the method used by NoteSelf 
> may be an alternative;
>
>- I think a php solution would ether need this added functionality 
>multi-user multi-access or at a minimum the ability for a group of users 
>with read/write access to serialy edit, ie; lock the wiki in their name.
>- I also wonder if a html put and get server and saver version could 
>be built.
>
> Of course sometimes you could package node inside something like a virtual 
> machine, Docker container and serve it that way instead.
>
> *One thing you could add to this discussion is why you want individual 
> tiddlers* because there are increasingly more opportunities to meet some 
> of the requirements that separate files satisfy but now within the wiki? Ie 
> what is driving your desire for a alternative server platform beyond not 
> node.
>
> PS I have a control panel hosting environment and whilst they did not 
> document it a technician showed me how to host a nodejs instance, I did not 
> continue because even bob presents security risks on the internet, although 
> Jed has implemented a secure version with other technology involved.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/568ff7cd-d0ce-4a8b-8ed5-6c32450b4477%40googlegroups.com.


[twdev] Re: How to use WebServer without Node.js?

2020-03-04 Thread TonyM
Bimlas,

Others may have an answer. 

The key method to host online for me is php and tw-receiver but for single 
file wikis only, this rest on top of a standard html server and there 
numerous ways to build or host such servers. It would be great if we had a 
php saver for tiddlywiki that operated like node.js ie folder based wiki.

At present only bob on node has the multi-user multi-access solution 
typically needed for an online server, although the method used by NoteSelf 
may be an alternative;

   - I think a php solution would ether need this added functionality 
   multi-user multi-access or at a minimum the ability for a group of users 
   with read/write access to serialy edit, ie; lock the wiki in their name.
   - I also wonder if a html put and get server and saver version could be 
   built.

Of course sometimes you could package node inside something like a virtual 
machine, Docker container and serve it that way instead.

*One thing you could add to this discussion is why you want individual 
tiddlers* because there are increasingly more opportunities to meet some of 
the requirements that separate files satisfy but now within the wiki? Ie 
what is driving your desire for a alternative server platform beyond not 
node.

PS I have a control panel hosting environment and whilst they did not 
document it a technician showed me how to host a nodejs instance, I did not 
continue because even bob presents security risks on the internet, although 
Jed has implemented a secure version with other technology involved.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/a8d7ee1d-68f2-4a86-8278-4b6a652d94e9%40googlegroups.com.