[tw5] Re: Count data dictionary values

2019-06-03 Thread Watt
Thank you so much TonyM! Those are very useful solutions which I would never 
have worked out myself. I'm sure others will find them helpful too - adding and 
counting data tiddler values must be a common requirement but I couldn't find 
anything on the forum. My run stats are now reborn. "Life is like a box of 
chocolates".

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/29c4efc9-b225-48a3-a6c1-f6c4a9dc59c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: TiddlyDrive Rebooted!

2019-06-03 Thread Joshua Stubbs
Hi, Alfonso.

Please submit a bug reports here:
https://github.com/tiddlydrive/tiddlydrive.github.io/issues

and please include your version of Chrome, version of Mac and any
extensions that you have installed.

Best. Joshua.

Also, just to make sure. Did you allow popups?

On Tue, 4 Jun 2019, 03:53 Alfonso Arciniega,  wrote:

> Joshua,
>
> On my Mac, it works on Firefox though not on Chrome. On Chrome, a green
> band appears at the top forever.
>
> Alfonso
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/ymvE-Sy14_0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/86d97032-2501-4be2-9ebd-60ea44e34e01%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAKEf0Ad%3D%2BgvRXH7JyBe4NuwTiQMU0TE5JYu-ZvUKTOM0TMEMRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-03 Thread TonyM
Further improvments

Note Split[ ] contains a space

\define all-values(data-tiddler) <$list filter="[[$data-tiddler$]indexes[]]" 
variable=item> <$view tiddler=Data index=<>/>

all-values: "<>"

<$wikify name=string text="<>">
String: "<>"

<$set name=result filter="[split[ ]sum[]]">
 Set sum Result: <>



<$set name=result filter="[split[ ]count[]]">
 Set Count: <>

 
 
 
<$list filter="[split[ ]sum[]]" variable=datum>
 List Result: <>






<$list filter="[split[ ]]" variable=datum>
 List Item: <>








Count exact number of items with value "1" in prefix/suffix


<$set name=result filter="[split[ ]prefix[1]suffix[1]count[]]">
 Set Count: <>



<$set name=result filter="[split[ ]prefix[1]suffix[1]sum[]]">
 Set Sum: <>



<$list filter="[split[ ]prefix[1]suffix[1]count[]]" variable=result>
 List Result Count: <>



<$list filter="[split[ ]prefix[1]suffix[1]sum[]]" variable=result>
 List Result Sum: <>



Best Method? (with Wikify)
Use this {{{ [split[ ]prefix[1]suffix[1]count[]] }}}
Or  this <$text text={{{ [split[ ]prefix[1]suffix[1]count[]] }}}/>

If values only 0 or 1 use `{{{ [split[ ]sum[]] }}}` giving {{{ 
[split[ ]sum[]] }}}





I believe further improvement is possible.

Regards
Tony

On Tuesday, June 4, 2019 at 1:30:14 PM UTC+10, TonyM wrote:
>
> Watt,
>
> I have it working in an inelegant way. It only works if the values are 0 
> and 1 because summing all ones is also a count of all one's
>
> I will post here without explanation other than unless I use wikify the 
> split[ ]sum[] will not work
> \define all-values()
> <$list filter="[[Data]indexes[]]" variable=item>
> <$view tiddler=Data index=<>/>
> 
> \end
>
> all-values: <>
>
> <$wikify name=string text="<>">
>
> String: <>
>
> <$set name=result filter="[split[]sum[]]">
>  Set sum Result: <>
> 
>
> <$set name=result filter="[split[]] +[count[]]">
>  Set Count: <>
> 
>  
>  
>  
> <$list filter="[split[]sum[]]" variable=datum>
>  List Result: <>
> 
>
> <$list filter="[split[]]" variable=datum>
>  List: <>
> 
>
> 
> The result of Set Count: and List: demonstrates it is still not perfect.
>
>
> I am not so practiced with Data Tiddlers. 
>
> Regards
> Tony
>
>
> On Monday, June 3, 2019 at 11:00:22 PM UTC+10, Watt wrote:
>>
>> Thanks TonyM, yes it's a data tiddler with index:value pairs. 
>>
>> 01:1
>> 02:0
>> 03:1
>> 04:1
>> 05:0
>> etc.
>>
>> Any clues on counting the '1' values much appreciated. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/914facdf-e3cb-4b47-b20f-8e5fc3c36617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-03 Thread TonyM
Watt,

I have it working in an inelegant way. It only works if the values are 0 
and 1 because summing all ones is also a count of all one's

I will post here without explanation other than unless I use wikify the 
split[ ]sum[] will not work
\define all-values()
<$list filter="[[Data]indexes[]]" variable=item>
<$view tiddler=Data index=<>/>

\end

all-values: <>

<$wikify name=string text="<>">

String: <>

<$set name=result filter="[split[]sum[]]">
 Set sum Result: <>


<$set name=result filter="[split[]] +[count[]]">
 Set Count: <>

 
 
 
<$list filter="[split[]sum[]]" variable=datum>
 List Result: <>


<$list filter="[split[]]" variable=datum>
 List: <>



The result of Set Count: and List: demonstrates it is still not perfect.


I am not so practiced with Data Tiddlers. 

Regards
Tony


On Monday, June 3, 2019 at 11:00:22 PM UTC+10, Watt wrote:
>
> Thanks TonyM, yes it's a data tiddler with index:value pairs. 
>
> 01:1
> 02:0
> 03:1
> 04:1
> 05:0
> etc.
>
> Any clues on counting the '1' values much appreciated. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6c77d1ec-4c1d-4b14-bd7e-55e2473622f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TW plain text export & Windows Notepad

2019-06-03 Thread TonyM
Hey thanks for Sharing.

A related method

I have installed a Generic pain text printer in Windows on the port FILE: I 
open a given tiddler in a new window and Use the browser print function 
(Sadly not in TiddlyDesktop)  and print to this printer. This way I can 
name the file output to name.txt name.cmd etc... and save it where I wish.

Regards
Tony

On Tuesday, June 4, 2019 at 11:54:31 AM UTC+10, A Gloom wrote:
>
> For anyone who has wondered why plain text exporting of a single tiddler 
> in single file TW using the custom plain text export format detailed at 
> https://tiddlywiki.com/#Creating%20a%20custom%20export%20format doesn't 
> display properly in Windows Notepad, here is why. Notepad in Win8 and 
> earlier will not display line breaks unless it's CR+LF line breaks so it 
> will display the text in one continuous line.  But do not despair-- the 
> line breaks are there-- other programs like Notepad ++ and Firefox will 
> properly display the line breaks.  Notepad in later versions of Win10 will 
> display linebreaks correctly.
>
> What can be done about it, is after exporting the plain text, open it in 
> Notepad ++ and under the edit menu go to "EOL Conversion" and select 
> "Windows (CR/LF)".  Then save the file and Notepad will display the text 
> with line breaks.  Other text editors can probably also do this.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e21e19ef-c6dd-4fec-b2f0-296b381fef9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] TW plain text export & Windows Notepad

2019-06-03 Thread A Gloom
For anyone who has wondered why plain text exporting of a single tiddler in 
single file TW using the custom plain text export format detailed at 
https://tiddlywiki.com/#Creating%20a%20custom%20export%20format doesn't 
display properly in Windows Notepad, here is why. Notepad in Win8 and 
earlier will not display line breaks unless it's CR+LF line breaks so it 
will display the text in one continuous line.  But do not despair-- the 
line breaks are there-- other programs like Notepad ++ and Firefox will 
properly display the line breaks.  Notepad in later versions of Win10 will 
display linebreaks correctly.

What can be done about it, is after exporting the plain text, open it in 
Notepad ++ and under the edit menu go to "EOL Conversion" and select 
"Windows (CR/LF)".  Then save the file and Notepad will display the text 
with line breaks.  Other text editors can probably also do this.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c641d46a-3ad5-4ed9-902e-2883589ff9c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TiddlyDrive Rebooted!

2019-06-03 Thread Alfonso Arciniega
Joshua,

On my Mac, it works on Firefox though not on Chrome. On Chrome, a green 
band appears at the top forever. 

Alfonso

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/86d97032-2501-4be2-9ebd-60ea44e34e01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Show links of a tiddle in the sidebar

2019-06-03 Thread TonyM
JeRoen,

Thanks for Sharing back. There is a thread that perhaps Mario will update 
in relation to focused tiddlers which may go further towards the 
functionality your are after, or perhaps even better.

Using a Toc to access tiddlers open them in the story river but under this 
proposed approach we get a Focused tiddler value we can use in a sidebar 
tab. It would be trivial to make a button on the view toolbar that also 
sets the focused tiddler on a click. As a result the focused tiddler would 
be the last you navigated to from a TOC or that which you nominate from the 
existing open ones. Further such a focus button could be transcluded in any 
list of tiddlers {{||focusbuttontiddler}} to permit a click to focus.

A little background. Since there are multiple Sidebar items and they are 
all displayed "continuously" the idea of currentTiddler in these is 
somewhat misleading. The fact is a tiddler displayed in the side bar does 
not have a currentTiddler value unless you create a list that filters and 
generates the currentTiddler value.

Place this in a tiddler tagged $:/tags/AboveStory  $:/tags/SideBar  and 
$:/tags/SideBarSegment 
\define notAboveStory()
Not Tagged $:/tags/AboveStory
Shows how to do/display more as a result of an emptyMessage, 
by using a macro definition
\end
Test ~SideBar
Current Tiddler: "<>"
Current Tab: "<>"

<$list filter="[has[title]]" emptyMessage="No Current 
Tiddler available" variable=result>
  Displayed only in Story River


<$list filter="[has[title]]" emptyMessage="No current Tab" 
variable=result>
  Displayed only in tabs


<$tiddler tiddler="Test SideBar">
<$list filter="[tag[$:/tags/AboveStory]]" emptyMessage=<> 
variable=result>
  Displayed only When also tagged $:/tags/AboveStory


to see what I mean

If you are building tiddlers for use in the side bar you can use the 
existence of $:/tags/SideBar  and $:/tags/SideBarSegment  along with 
testing <> and <>

Of note is if the tiddler is tagged $:/tags/AboveStory or another page 
related location the currentTiddler will also not be available so testing 
for the actual tag on the named tiddler may help differentiate those 
tiddlers that could appear anywhere, but because you have no currentTiddler 
use the tiddler command as above.

This should give you a lot to play with.

Regards
Tony



On Monday, June 3, 2019 at 11:35:57 PM UTC+10, jeroen ophetweb wrote:
>
> Thanks for all explanations ... 
>>
>
> My final script looks like this:
>
> {{Used URL's}}
>
>
> <$tiddler tiddler={{$:/HistoryList!!current-tiddler}}>
>
>
> This tiddler is mentioned on:
> >
>
>
> This tiddler links to:
> >
>  
>
> The "Used URL's" is shown first and contains about 12 URL's I use a lot. 
> Both links to tiddlers and also links to local files, networkshares and 
> websites. This will probably grow to about 30-40 URL's. 
>
> Below that the backlinks and links on the current tiddler are shown in a 
> list. Especially the backlink I like as the links are off course shown in 
> the TiddlerText but I like it to also see it as a comprehensive list. 
>
> I gave it a tag $:/tags/SideBar so that it is always available as a tab 
> in the sidebar. In the settings I set that tab to be the default tab. 
>
> This for now gives me enough to start with although I think that in time I 
> want to add links independently from backlinks and links but we cross that 
> bridge when we get there. This post gives me a firm start to begin with. 
>
> Thank you all. 
>
> JeRoen
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/53f65634-e58d-4662-b99d-b40c8ded7c0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread PMario
Hi, 

With your attachment, I can reproduce the problem. ... I'm pretty sure it's 
because there is no text field. 

So if you could create your tiddlers with at least 3 line breaks it may 
work. 

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d0496360-55bc-40a5-90bd-7d83b90917de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread 'Mark S.' via TiddlyWiki
It's always useful to see things exactly the way the user sees them.

I got the exact same error you did, when loading it as

tiddlywiki tw-benchmark --listen port=8090

The error occurs after 1862 "loads".  However, when I check the internal 
contents, it appears that all tiddler titles have actually loaded (I can 
check these numbers because the advanced search works even when the server 
has crashed).

But I was able to load the wiki via Bob just fine. So ... maybe Bob doesn't 
invoke all the "loads"? Or uses a different loading mechanism?

I'm using Windows 7, so my system is very different from yours, but we're 
getting the same error.

So anyone testing should use your data and the standard mechanism for using 
it on node.js.

Good luck

On Monday, June 3, 2019 at 11:09:55 AM UTC-7, solex wrote:
>
> Hi Mark,
>
> Sure, attached. 
> But like I said, it really is just a fresh wiki with a bunch of generated 
> simple tiddlers
>
>
>
> On Mon, Jun 3, 2019 at 6:46 PM 'Mark S.' via TiddlyWiki <
> tiddl...@googlegroups.com > wrote:
>
>> I'm wondering about the data. Could you zip up your tiddlers and post it?
>>
>> About the email. Google bounces mail from certain domains (or at least 
>> that seems to be the problem).  
>>
>> -- Mark
>>
>> On Monday, June 3, 2019 at 2:03:49 AM UTC-7, solex wrote:
>>>
>>> Hi all,
>>>
>>> I am rather new to TiddlyWiki, and I've been doing some experiments 
>>> recently with the automatic importing of data to a file-based wiki.
>>> But I found that when serving a wiki with a few thousand tiddlers, the 
>>> node server crashes with the following error, while in the middle of 
>>> dispatching "load" tasks:
>>>
>>> RangeError: Maximum call stack size exceeded
 at Console.(anonymous function) 
 (internal/console/constructor.js:243:9)
 at Console.log (internal/console/constructor.js:283:24)
 at Logger.log ($:/core/modules/utils/logger.js:32:25)
 at Syncer.dispatchTask ($:/core/modules/syncer.js:515:15)
 at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
 at $:/core/modules/syncer.js:445:27
 at $:/core/modules/syncer.js:525:4
 at FileSystemAdaptor.loadTiddler 
 ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:193:2)
 at Syncer.dispatchTask ($:/core/modules/syncer.js:516:20)
 at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
>>>
>>>
>>> My system:
>>> tiddlywiki: 5.1.19
>>> node: 11.9.0
>>> MacOs: 10.13.6
>>>
>>> I experimented with the total number, and found that the issue occurs 
>>> somewhere between 1500 and 2000 tiddlers. It looks like the content doesn't 
>>> matter: the problem occurs even with the simplest possible tiddlers (title 
>>> only).
>>>
>>> I also disabled the TW's logger just to rule out a problem in the logger 
>>> itself, and the problem persists.
>>>
>>> To reproduce the error:
>>>
>>>1. Create a fresh "server edition" wiki
>>>2. Populate with 2000 tiddlers (I used a basic script for that)
>>>3. Start a server with a "listen" command
>>>4. Open the TW's page in the browser
>>>
>>>
>>> 2000 tiddlers doesn't seem like a very large number for an in-browser 
>>> wiki, nor it should be a problem for a server per se. I believe the 
>>> bottleneck is somewhere in the synchronization process, but so far I wasn't 
>>> able to pinpoint it exactly.
>>>
>>> Has anyone experienced the same problem and is there is anything that 
>>> can be done to improve the sync performance?
>>>
>>> (Also, please let me know if this sort of question should be posted to 
>>> TiddlyWikiDev)
>>>
>>> Thanks!
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddl...@googlegroups.com .
>> To post to this group, send email to tiddl...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/c320a3b8-3d90-4bfd-8135-9d7518f0111b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0c7700b8-ddfe-49b9-8e12-9a266aa8679b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread 'Mark S.' via TiddlyWiki
I'm wondering about the data. Could you zip up your tiddlers and post it?

About the email. Google bounces mail from certain domains (or at least that 
seems to be the problem).  

-- Mark

On Monday, June 3, 2019 at 2:03:49 AM UTC-7, solex wrote:
>
> Hi all,
>
> I am rather new to TiddlyWiki, and I've been doing some experiments 
> recently with the automatic importing of data to a file-based wiki.
> But I found that when serving a wiki with a few thousand tiddlers, the 
> node server crashes with the following error, while in the middle of 
> dispatching "load" tasks:
>
> RangeError: Maximum call stack size exceeded
>> at Console.(anonymous function) 
>> (internal/console/constructor.js:243:9)
>> at Console.log (internal/console/constructor.js:283:24)
>> at Logger.log ($:/core/modules/utils/logger.js:32:25)
>> at Syncer.dispatchTask ($:/core/modules/syncer.js:515:15)
>> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
>> at $:/core/modules/syncer.js:445:27
>> at $:/core/modules/syncer.js:525:4
>> at FileSystemAdaptor.loadTiddler 
>> ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:193:2)
>> at Syncer.dispatchTask ($:/core/modules/syncer.js:516:20)
>> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
>
>
> My system:
> tiddlywiki: 5.1.19
> node: 11.9.0
> MacOs: 10.13.6
>
> I experimented with the total number, and found that the issue occurs 
> somewhere between 1500 and 2000 tiddlers. It looks like the content doesn't 
> matter: the problem occurs even with the simplest possible tiddlers (title 
> only).
>
> I also disabled the TW's logger just to rule out a problem in the logger 
> itself, and the problem persists.
>
> To reproduce the error:
>
>1. Create a fresh "server edition" wiki
>2. Populate with 2000 tiddlers (I used a basic script for that)
>3. Start a server with a "listen" command
>4. Open the TW's page in the browser
>
>
> 2000 tiddlers doesn't seem like a very large number for an in-browser 
> wiki, nor it should be a problem for a server per se. I believe the 
> bottleneck is somewhere in the synchronization process, but so far I wasn't 
> able to pinpoint it exactly.
>
> Has anyone experienced the same problem and is there is anything that can 
> be done to improve the sync performance?
>
> (Also, please let me know if this sort of question should be posted to 
> TiddlyWikiDev)
>
> Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c320a3b8-3d90-4bfd-8135-9d7518f0111b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread solex
It looks like my original post doesn't appear in the email exchange (while 
visible in Google groups UI).
That probably explains some some questions and suggestions (which I already 
addressed in the first post)

On Monday, June 3, 2019 at 12:03:49 PM UTC+3, solex wrote:
>
> Hi all,
>
> I am rather new to TiddlyWiki, and I've been doing some experiments 
> recently with the automatic importing of data to a file-based wiki.
> But I found that when serving a wiki with a few thousand tiddlers, the 
> node server crashes with the following error, while in the middle of 
> dispatching "load" tasks:
>
> RangeError: Maximum call stack size exceeded
>> at Console.(anonymous function) 
>> (internal/console/constructor.js:243:9)
>> at Console.log (internal/console/constructor.js:283:24)
>> at Logger.log ($:/core/modules/utils/logger.js:32:25)
>> at Syncer.dispatchTask ($:/core/modules/syncer.js:515:15)
>> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
>> at $:/core/modules/syncer.js:445:27
>> at $:/core/modules/syncer.js:525:4
>> at FileSystemAdaptor.loadTiddler 
>> ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:193:2)
>> at Syncer.dispatchTask ($:/core/modules/syncer.js:516:20)
>> at Syncer.processTaskQueue ($:/core/modules/syncer.js:437:9)
>
>
> My system:
> tiddlywiki: 5.1.19
> node: 11.9.0
> MacOs: 10.13.6
>
> I experimented with the total number, and found that the issue occurs 
> somewhere between 1500 and 2000 tiddlers. It looks like the content doesn't 
> matter: the problem occurs even with the simplest possible tiddlers (title 
> only).
>
> I also disabled the TW's logger just to rule out a problem in the logger 
> itself, and the problem persists.
>
> To reproduce the error:
>
>1. Create a fresh "server edition" wiki
>2. Populate with 2000 tiddlers (I used a basic script for that)
>3. Start a server with a "listen" command
>4. Open the TW's page in the browser
>
>
> 2000 tiddlers doesn't seem like a very large number for an in-browser 
> wiki, nor it should be a problem for a server per se. I believe the 
> bottleneck is somewhere in the synchronization process, but so far I wasn't 
> able to pinpoint it exactly.
>
> Has anyone experienced the same problem and is there is anything that can 
> be done to improve the sync performance?
>
> (Also, please let me know if this sort of question should be posted to 
> TiddlyWikiDev)
>
> Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a790148a-f303-42ba-a48f-dc76f1954952%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread solex
Hi BJ,

No, turning off the logs was the first thing I tried. The error was the 
same (just without the logger-related traceback)


On Monday, June 3, 2019 at 6:09:12 PM UTC+3, BJ wrote:
>
> maybe there is a problem with the logging...
>
> you can turn off the logs from the syncer in startup.js
>
> $tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor, 
> logging : false});
>
>
> On Monday, June 3, 2019 at 3:13:04 PM UTC+2, solex wrote:
>>
>> Hi Jeremy,
>>
>> It didn't occur to me to tweak the Node's memory usage, because I didn't 
>> think it was the cause of the problem, and I still doubt that processing 
>> 2000 one-line tiddlers consumes all of the default 1GB memory - something 
>> else must be the problem. But I'll try to experiment with the parameters to 
>> see if that at least increases the number.
>> I did try to close most of the other apps/processes on my machine just in 
>> case, to no avail.
>>
>> My test wiki doesn't use any recursive templates - or anything besides 
>> the built-in functionality - because I created a fresh server wiki just to 
>> investigate the problem. All I am doing is generating 2000 simple tiddlers 
>> with an external script (I described a sequence of steps in my original 
>> post).
>>
>> Yes, the same error occurs when I am trying to build a static version 
>> with:
>> tiddlywiki tw-benchmark --build index
>>
>> -
>> Thanks,
>> solex
>>
>>
>> On Mon, Jun 3, 2019 at 3:39 PM Jeremy Ruston  wrote:
>>
>>> Hi Solex
>>>
>>> I run many wikis with over 2,000 tiddlers, so I think there maybe 
>>> something else going on here.
>>>
>>> Firstly, Node.js is by default conservative about memory usage, using 
>>> only a maximum of 512MB of 32-bit systems and 1GB on 64-bit systems. You 
>>> can manually specify the total amount of memory in MB to be used with the 
>>> "max-old-space-size" flag. For example:
>>>
>>> node --max-old-space-size=16384  >> arguments>
>>>
>>> Secondly, the easiest way to cause out-of-memory errors is to try to 
>>> render a template that includes recursive elements. Are you using a custom 
>>> raw markup tiddlers? Do you get the same error if you try to build the wiki 
>>> as a single file? 
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>>
>>> On Monday, June 3, 2019 at 1:04:51 PM UTC+1, solex wrote:

 Hi mario,

 My tiddlers only have title as an attribute, and the corresponding file 
 name.
 e.g.

 tiddlers/test-tiddler-1.tid

 title: test-tiddler-1

 Initially they had other fields as well (including content-type), but 
 I reduced them to a minimum while investigating, and the particular set of 
 fields didn't seem to make any difference. 
 Also, when the total number is lower (e.g. <1500), the wiki is 
 functioning as expected, so I'm sure the problem is not in the tiddler 
 generation.
 The browser doesn't matter too (as expected).

 Apparently the only difference is environment (Node version + OS), so 
 perhaps I will try later on a different machine.

 Thanks,
 solex



 On Monday, June 3, 2019 at 1:03:41 PM UTC+3, PMario wrote:
>
> Hi solex, 
>
> I did create 10'000 tiddlers. They all look similar to this one and 
> are about 800 bytes in size. 
>
> created: 20190603094535523
> modified: 20190603094535523
> tags: t-0
> title: a-0-0
> type: text/vnd.tiddlywiki
>
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 
>
>
> There is no problem for me. 
>  - I use node v10.16.0 LTS. 
>  - FF latest 
>  - TW 5.1.19
>  - win 10
>
> The tw server side needs about 20 seconds to start. 
> It transferes about 12MByte to the browser, which needs about 4 
> seconds. 
>
> So how do you create your files?
>
> -mario
>
>
> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tiddl...@googlegroups.com.
>>> To post to this group, send email to 

Re: [tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread BJ
maybe there is a problem with the logging...

you can turn off the logs from the syncer in startup.js

$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor, 
logging : false});


On Monday, June 3, 2019 at 3:13:04 PM UTC+2, solex wrote:
>
> Hi Jeremy,
>
> It didn't occur to me to tweak the Node's memory usage, because I didn't 
> think it was the cause of the problem, and I still doubt that processing 
> 2000 one-line tiddlers consumes all of the default 1GB memory - something 
> else must be the problem. But I'll try to experiment with the parameters to 
> see if that at least increases the number.
> I did try to close most of the other apps/processes on my machine just in 
> case, to no avail.
>
> My test wiki doesn't use any recursive templates - or anything besides the 
> built-in functionality - because I created a fresh server wiki just to 
> investigate the problem. All I am doing is generating 2000 simple tiddlers 
> with an external script (I described a sequence of steps in my original 
> post).
>
> Yes, the same error occurs when I am trying to build a static version with:
> tiddlywiki tw-benchmark --build index
>
> -
> Thanks,
> solex
>
>
> On Mon, Jun 3, 2019 at 3:39 PM Jeremy Ruston  > wrote:
>
>> Hi Solex
>>
>> I run many wikis with over 2,000 tiddlers, so I think there maybe 
>> something else going on here.
>>
>> Firstly, Node.js is by default conservative about memory usage, using 
>> only a maximum of 512MB of 32-bit systems and 1GB on 64-bit systems. You 
>> can manually specify the total amount of memory in MB to be used with the 
>> "max-old-space-size" flag. For example:
>>
>> node --max-old-space-size=16384  > arguments>
>>
>> Secondly, the easiest way to cause out-of-memory errors is to try to 
>> render a template that includes recursive elements. Are you using a custom 
>> raw markup tiddlers? Do you get the same error if you try to build the wiki 
>> as a single file? 
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>> On Monday, June 3, 2019 at 1:04:51 PM UTC+1, solex wrote:
>>>
>>> Hi mario,
>>>
>>> My tiddlers only have title as an attribute, and the corresponding file 
>>> name.
>>> e.g.
>>>
>>> tiddlers/test-tiddler-1.tid
>>>
>>> title: test-tiddler-1
>>>
>>> Initially they had other fields as well (including content-type), but I 
>>> reduced them to a minimum while investigating, and the particular set of 
>>> fields didn't seem to make any difference. 
>>> Also, when the total number is lower (e.g. <1500), the wiki is 
>>> functioning as expected, so I'm sure the problem is not in the tiddler 
>>> generation.
>>> The browser doesn't matter too (as expected).
>>>
>>> Apparently the only difference is environment (Node version + OS), so 
>>> perhaps I will try later on a different machine.
>>>
>>> Thanks,
>>> solex
>>>
>>>
>>>
>>> On Monday, June 3, 2019 at 1:03:41 PM UTC+3, PMario wrote:

 Hi solex, 

 I did create 10'000 tiddlers. They all look similar to this one and are 
 about 800 bytes in size. 

 created: 20190603094535523
 modified: 20190603094535523
 tags: t-0
 title: a-0-0
 type: text/vnd.tiddlywiki

 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
 123456789 123456789 123456789 


 There is no problem for me. 
  - I use node v10.16.0 LTS. 
  - FF latest 
  - TW 5.1.19
  - win 10

 The tw server side needs about 20 seconds to start. 
 It transferes about 12MByte to the browser, which needs about 4 
 seconds. 

 So how do you create your files?

 -mario


 -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddl...@googlegroups.com .
>> To post to this group, send email to tiddl...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/cdbfa07c-80bd-4ed9-b378-242ab9180f02%40googlegroups.com
>>  
>> 

[tw5] Re: Show links of a tiddle in the sidebar

2019-06-03 Thread jeroen ophetweb

>
> Thanks for all explanations ... 
>

My final script looks like this:

{{Used URL's}}


<$tiddler tiddler={{$:/HistoryList!!current-tiddler}}>


This tiddler is mentioned on:
>


This tiddler links to:
>
 

The "Used URL's" is shown first and contains about 12 URL's I use a lot. 
Both links to tiddlers and also links to local files, networkshares and 
websites. This will probably grow to about 30-40 URL's. 

Below that the backlinks and links on the current tiddler are shown in a 
list. Especially the backlink I like as the links are off course shown in 
the TiddlerText but I like it to also see it as a comprehensive list. 

I gave it a tag $:/tags/SideBar so that it is always available as a tab in 
the sidebar. In the settings I set that tab to be the default tab. 

This for now gives me enough to start with although I think that in time I 
want to add links independently from backlinks and links but we cross that 
bridge when we get there. This post gives me a firm start to begin with. 

Thank you all. 

JeRoen

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd21a682-d46f-4bf9-8c7f-ccd51bc66fde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread Oleksiy Solyanyk
Hi Jeremy,

It didn't occur to me to tweak the Node's memory usage, because I didn't
think it was the cause of the problem, and I still doubt that processing
2000 one-line tiddlers consumes all of the default 1GB memory - something
else must be the problem. But I'll try to experiment with the parameters to
see if that at least increases the number.
I did try to close most of the other apps/processes on my machine just in
case, to no avail.

My test wiki doesn't use any recursive templates - or anything besides the
built-in functionality - because I created a fresh server wiki just to
investigate the problem. All I am doing is generating 2000 simple tiddlers
with an external script (I described a sequence of steps in my original
post).

Yes, the same error occurs when I am trying to build a static version with:
tiddlywiki tw-benchmark --build index

-
Thanks,
solex


On Mon, Jun 3, 2019 at 3:39 PM Jeremy Ruston 
wrote:

> Hi Solex
>
> I run many wikis with over 2,000 tiddlers, so I think there maybe
> something else going on here.
>
> Firstly, Node.js is by default conservative about memory usage, using only
> a maximum of 512MB of 32-bit systems and 1GB on 64-bit systems. You can
> manually specify the total amount of memory in MB to be used with the
> "max-old-space-size" flag. For example:
>
> node --max-old-space-size=16384   arguments>
>
> Secondly, the easiest way to cause out-of-memory errors is to try to
> render a template that includes recursive elements. Are you using a custom
> raw markup tiddlers? Do you get the same error if you try to build the wiki
> as a single file?
>
> Best wishes
>
> Jeremy
>
>
>
> On Monday, June 3, 2019 at 1:04:51 PM UTC+1, solex wrote:
>>
>> Hi mario,
>>
>> My tiddlers only have title as an attribute, and the corresponding file
>> name.
>> e.g.
>>
>> tiddlers/test-tiddler-1.tid
>>
>> title: test-tiddler-1
>>
>> Initially they had other fields as well (including content-type), but I
>> reduced them to a minimum while investigating, and the particular set of
>> fields didn't seem to make any difference.
>> Also, when the total number is lower (e.g. <1500), the wiki is
>> functioning as expected, so I'm sure the problem is not in the tiddler
>> generation.
>> The browser doesn't matter too (as expected).
>>
>> Apparently the only difference is environment (Node version + OS), so
>> perhaps I will try later on a different machine.
>>
>> Thanks,
>> solex
>>
>>
>>
>> On Monday, June 3, 2019 at 1:03:41 PM UTC+3, PMario wrote:
>>>
>>> Hi solex,
>>>
>>> I did create 10'000 tiddlers. They all look similar to this one and are
>>> about 800 bytes in size.
>>>
>>> created: 20190603094535523
>>> modified: 20190603094535523
>>> tags: t-0
>>> title: a-0-0
>>> type: text/vnd.tiddlywiki
>>>
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
>>> 123456789 123456789 123456789
>>>
>>>
>>> There is no problem for me.
>>>  - I use node v10.16.0 LTS.
>>>  - FF latest
>>>  - TW 5.1.19
>>>  - win 10
>>>
>>> The tw server side needs about 20 seconds to start.
>>> It transferes about 12MByte to the browser, which needs about 4 seconds.
>>>
>>> So how do you create your files?
>>>
>>> -mario
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/cdbfa07c-80bd-4ed9-b378-242ab9180f02%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at 

[tw5] Count data dictionary values

2019-06-03 Thread Watt
Thanks TonyM, yes it's a data tiddler with index:value pairs. 

01:1
02:0
03:1
04:1
05:0
etc.

Any clues on counting the '1' values much appreciated. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a2f24081-11aa-44b3-90f3-d65aca3fef1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread Jeremy Ruston
Hi Solex

I run many wikis with over 2,000 tiddlers, so I think there maybe something 
else going on here.

Firstly, Node.js is by default conservative about memory usage, using only 
a maximum of 512MB of 32-bit systems and 1GB on 64-bit systems. You can 
manually specify the total amount of memory in MB to be used with the 
"max-old-space-size" flag. For example:

node --max-old-space-size=16384  

Secondly, the easiest way to cause out-of-memory errors is to try to render 
a template that includes recursive elements. Are you using a custom raw 
markup tiddlers? Do you get the same error if you try to build the wiki as 
a single file? 

Best wishes

Jeremy



On Monday, June 3, 2019 at 1:04:51 PM UTC+1, solex wrote:
>
> Hi mario,
>
> My tiddlers only have title as an attribute, and the corresponding file 
> name.
> e.g.
>
> tiddlers/test-tiddler-1.tid
>
> title: test-tiddler-1
>
> Initially they had other fields as well (including content-type), but I 
> reduced them to a minimum while investigating, and the particular set of 
> fields didn't seem to make any difference. 
> Also, when the total number is lower (e.g. <1500), the wiki is functioning 
> as expected, so I'm sure the problem is not in the tiddler generation.
> The browser doesn't matter too (as expected).
>
> Apparently the only difference is environment (Node version + OS), so 
> perhaps I will try later on a different machine.
>
> Thanks,
> solex
>
>
>
> On Monday, June 3, 2019 at 1:03:41 PM UTC+3, PMario wrote:
>>
>> Hi solex, 
>>
>> I did create 10'000 tiddlers. They all look similar to this one and are 
>> about 800 bytes in size. 
>>
>> created: 20190603094535523
>> modified: 20190603094535523
>> tags: t-0
>> title: a-0-0
>> type: text/vnd.tiddlywiki
>>
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
>> 123456789 123456789 123456789 
>>
>>
>> There is no problem for me. 
>>  - I use node v10.16.0 LTS. 
>>  - FF latest 
>>  - TW 5.1.19
>>  - win 10
>>
>> The tw server side needs about 20 seconds to start. 
>> It transferes about 12MByte to the browser, which needs about 4 seconds. 
>>
>> So how do you create your files?
>>
>> -mario
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cdbfa07c-80bd-4ed9-b378-242ab9180f02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Are we TiddlyWikians? and what is out collective noun?

2019-06-03 Thread @TiddlyTweeter
TonyM wrote:
>
> ... I would like to find out more about non trivial quines.
>

That is exactly what is interesting. 

I think there are very few? I don't know any except TW. But 'cause I'm not 
a computer scientist I can't be sure. 

Its a seriously interesting issue.

At first it looks obscure: Who cares whether it is or not? I think it 
matters and actually grasping what a quine is and that TW is one is 
extremely helpful.

Best wishes
Josiah

>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0cdf4391-87d3-4c47-bd0f-424bb76d6fed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Count data dictionary values

2019-06-03 Thread TonyM
By data dictionaries do you mean data tiddlers.

Ie an index and value pair.

If so you can treat the value in a data tiddler like the value in a field.

I will try and post more on this later. 

I even know how to do in before prerelease.

Regards
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/821792bb-163b-4106-b38b-7350e7e770c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Are we TiddlyWikians? and what is out collective noun?

2019-06-03 Thread TonyM
Josiah

Thanks for your responses. I too think Quine may be a good stem word to work 
from but I noticed many quines raised are minimalist or trivial Quine. I would 
like to find out more about non trivial quines. 

This Quine nature of tiddlywiki is far greater since it also includes the user 
interface, data storage, media handling, built in editor I would even go so far 
as to say it contains its own development environment, software development 
kit, providing a whole platform.

Tiddlywiki goes way beyond the trivial Quine to a comprehensive platform all in 
a Quine. 

I think we need a new word. Or perhaps call it a " comprehensive Quine ", or 
complete Quine.

regards
Tony

Post script
If I could have a 100mb of storage and processing impeded in my brain it would 
be tiddlywiki.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/67d08cdf-fe3d-4eec-b489-38af181eaee5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread solex
Hi mario,

My tiddlers only have title as an attribute, and the corresponding file 
name.
e.g.

tiddlers/test-tiddler-1.tid

title: test-tiddler-1

Initially they had other fields as well (including content-type), but I 
reduced them to a minimum while investigating, and the particular set of 
fields didn't seem to make any difference. 
Also, when the total number is lower (e.g. <1500), the wiki is functioning 
as expected, so I'm sure the problem is not in the tiddler generation.
The browser doesn't matter too (as expected).

Apparently the only difference is environment (Node version + OS), so 
perhaps I will try later on a different machine.

Thanks,
solex



On Monday, June 3, 2019 at 1:03:41 PM UTC+3, PMario wrote:
>
> Hi solex, 
>
> I did create 10'000 tiddlers. They all look similar to this one and are 
> about 800 bytes in size. 
>
> created: 20190603094535523
> modified: 20190603094535523
> tags: t-0
> title: a-0-0
> type: text/vnd.tiddlywiki
>
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 123456789 123456789 
>
>
> There is no problem for me. 
>  - I use node v10.16.0 LTS. 
>  - FF latest 
>  - TW 5.1.19
>  - win 10
>
> The tw server side needs about 20 seconds to start. 
> It transferes about 12MByte to the browser, which needs about 4 seconds. 
>
> So how do you create your files?
>
> -mario
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eba7c040-6e3d-49e0-bc75-17e0cdcf6c74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: ANN: New Plugin: embed Fira Code font

2019-06-03 Thread Scott Sauyet
@ David:

Thanks for the report.  I'm glad it's working well *somewhere*!

I haven't had time yet to dig in to see why it's not working as a plugin in 
Windows, although the underlying technique is working fine for me.  I hope 
to find time this evening.   But if not, it may be a few days.

  -- Scott

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/289ce705-0aeb-4905-9b70-3c8e69f94afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Are we TiddlyWikians? and what is out collective noun?

2019-06-03 Thread @TiddlyTweeter
TonyM wrote:
>
> Are we TiddlyWikians?
> *If you are a TiddlyWiki enthusiast to what tribe do we belong?*
>

First thought: its simply, maybe, *too late* to establish some convention 
on that. Perhaps on next version?

Second, the lingo itself is problematic. In British English "Tiddler" 
refers to both small fish that live in shoals (brilliant structural 
description of TW). But it can also (in slang in some areas) refer to a 
person ("tiddler") relieving themselves ("I need a tiddle" [pee]). "Tiddly" 
is also a used slang word for being "slightly drunk" in addition to meaning 
"very small". My impression is also that other English speaking countries 
don't have any of these usages as part of everyday use?

Third, of words I'd say actually fit the activity of working with TW *I 
think French derived words are quite a good match*.

A "Bricoleur" is a maker of "Bricolage". This is akin to a "hobbyist" doing 
DIY, but in French the words are semantically richer--.implying the the 
resultant "Bricolage" is an achievement more than a simple sum of its 
parts. The "parts" are also usually "found" or "givens" or "mades", rather 
than just "bought". Its a strong sense of "free assemblage". The Bricoleur 
performs a creative integration.

Importantly there is *no distinction* between activity to create content 
(wiki for something) or an activity to tweak/code to achieve the former. In 
my usage these French words are the best fit.

Fourth, the other word that I think has mileage is "Quine" ... as a 
description of TW's uniqueness it has much merit. TW is one of the few 
practical examples of a working Quine (where a program's output is a 
modification of *itself* to be its own input). This self-modifying nature 
of TW is pretty damn unusual. I'm no programmer but I been quite surprised 
programmers don't seem to pick up and comment on this more?! 

SO, I've not answered you question really, but I think its an interesting 
one. 

Best wishes
Josiah

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e79750a6-e52d-4f64-9fb5-ff09d63f108a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TW5: Copy and paste images directly from clipboard

2019-06-03 Thread Mohamed Amin
Thanks a lot Mark and A Gloom for your reply, I can do it now (a little 
different than what I used to do, but TW5 deserve that I change my habits 
:) )

On Friday, February 14, 2014 at 6:18:52 PM UTC+2, Caleb wrote:
>
> Are there any plans to allow simple copy and paste of images directly from 
> the clipboard into TW5 tiddlers (i.e. using Ctrl+V)? I am guessing this is 
> going to become more and more common in wikis, now that it is technically 
> possible (for example, the commercial wiki Confluence allows it). 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dedb29ec-4fc1-4e8a-b545-8d465d0b0a20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] [Sharing] Local desktop server to LAN server TiddlyServer, Node or Bob (Windows?)

2019-06-03 Thread @TiddlyTweeter
Ciao Arlen & TonyM

Small footnote on this ...

Given my Current Focus on TiddlyServer can I suggest these improvements?
>
>- Add a automatic method to minimise the number of backups retained.
>
>
Just FYI, both Riz'sTimimi & PMario's saver have successfully implemented 
variants of the "Towers Of Hanoi" schema that maximises coverage whilst 
minimising the proliferation of unneeded copies. In practice this removes 
the need for additional manual management of redundant saves.

Best wishes
Josiah

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/648de127-2b57-4b12-8f0f-c04a1107e9f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Are we TiddlyWikians? and what is out collective noun?

2019-06-03 Thread @TiddlyTweeter
Ciao TonyM

TonyM wrote:
>
> Are we TiddlyWikians?
> *If you are a TiddlyWiki enthusiast to what tribe do we belong?*
>

Despite the welcome humour in the thread I take it as an interesting 
question.

I think about it more. 

There is one obvious semantic problem in that "Tiddler" & "TiddlyWiki"  are 
descriptors of structure, not descriptors of either human activity or 
functional aim. Nor do they resonate phonetically well outside British 
English.  

Thoughts
Josiah

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/35a2b4fb-a4dc-4365-be5b-2c7f339fd525%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: File-based TW on node.js crashes when the number of tiddlers is more than ~2000

2019-06-03 Thread PMario
Hi solex, 

I did create 10'000 tiddlers. They all look similar to this one and are 
about 800 bytes in size. 

created: 20190603094535523
modified: 20190603094535523
tags: t-0
title: a-0-0
type: text/vnd.tiddlywiki

123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789 123456789 123456789 


There is no problem for me. 
 - I use node v10.16.0 LTS. 
 - FF latest 
 - TW 5.1.19
 - win 10

The tw server side needs about 20 seconds to start. 
It transferes about 12MByte to the browser, which needs about 4 seconds. 

So how do you create your files?

-mario


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7484d536-1423-425c-bd67-2e8eb5b05674%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Are we TiddlyWikians? and what is out collective noun?

2019-06-03 Thread @TiddlyTweeter
PMario wrote:
>
> Mat, 
> You are right. The naming is important ;)
> https://www.youtube.com/watch?v=WboggjN_G-4
>

lol! 

Are you part of the "The TiddlyWiki League" or the "Union of 
TiddlyWikians"? :-) 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9e6a4f5-b912-45be-81e8-b5eb9f2e329e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: ANN: New Plugin: embed Fira Code font

2019-06-03 Thread David Nebauer
Thanks, Scott. Looks great on debian linux in qutebrowser, google-chrome 
and firefox.

[image: fira-gc.png]

[image: fira-ff.png]

[image: fira-qute.png]

Regards,
David.

On Sunday, 2 June 2019 12:06:30 UTC+9:30, Scott Sauyet wrote:
>
> There is a new plugin hosted at 
> http://scott.sauyet.com/tiddlywiki/plugins/FiraCode.html.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9ae33771-4176-4e52-9c27-e002de6a0fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Count data dictionary values

2019-06-03 Thread Watt
I'm experimenting with data dictionaries and have one that records runs 
completed. It has dates 01 to 31 as the index and either 0 or 1 as a value, 1 
indicating a run completed on that date. e.g

01:1 
02:0 
03:1 etc

Runs completed=2

I'd like to count those '1' values in order to get a total of runs completed, 
but I'm stumped. Does anybody know how to count, add or mathematically 
manipulate data dictionary values? I'm using the pre-release version. Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0faa4f21-0773-4cba-bd8f-07ae75a75032%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] [Sharing] Local desktop server to LAN server TiddlyServer, Node or Bob (Windows?)

2019-06-03 Thread TonyM
Arlen,

Thanks for the reminder. Here is how I use TiddlyServer

I suppose I forgot to mention this other level of abstraction that can be 
done with TiddlyServer. I already lean on this heavily, as when I go to the 
Tiddly Server address there is a list of Wikis listed like a table of 
contents and even folders (inc Virtual folders) and subfolders that I can 
browse to find anyone of a number of Wikis. Eg My Development folder opens 
to list multiple wikis under hostname:/development/ I also like the ability 
to have any singleFile Wiki backed up to a single folder with all other 
wikis. I just noted I need to clean this folder up because despite 
compression its now 10GB+ in size

Browser address ts.local

[image: ts.local.jpg]


Until recently I had to present TiddlyServer at myIPaddress:8081/ to 
address the other servers competing to appear at myIPaddress:
Since TiddlyServer now uses its own dedicated and movable IP Address and 
setting it to port 80 there is no need to provide the port number at all.

The point with the tips in my original post is I can now refer to the wikis 
as at the IP address 192.168.1.81 or the domain name ts.local and the 
location such as http://ts.local/Development/EditFields.html at this 
location even on my desktop with all the other servers the same there, is 
no need for an alternate port number and not only could I host the example 
EditFields.html Development/EditFields.html from a totally different folder 
and use the same address (The advantage of TiddlyServer) but I could lift 
and shift the whole server to another computer without changing any links, 
weather I used 192.168.1.81/Development/EditFields.html or 
ts.local/Development/EditFields.html with a Domain Name server.


   - This way of using TiddlyServer means I do not have to edit 
   settings.json to simply add another wiki to be served by TiddlyServer, just 
   add it to a folder already listed on tiddlyserver (or one of its children)
   - Inspired by your point Arlen I created and added to settings.json the 
   full path file name to home, a single file wiki

Given my Current Focus on TiddlyServer can I suggest these improvements?

   - Add a automatic method to minimise the number of backups retained.
   - Perhaps allow browsing the TiddlyServer tree at addresses such as 
   http://ts.local/Instances/
   or 
   http://ts.local/Instances
   However in this second case, look to see if the folder contains 
   index.html and load that if it exists, if not do the same as the first.
   Currently if the address points to http://ts.local/WikiFolder
   Then it loads the folder wiki
   - I wonder if we could somehow configure redirects, to other urls under 
   TiddlyServer, such as Node.js redirects 
   , perhaps even allow them to 
   be added to settings.json
   Thus TiddlyServer could also act as directory to many resources (a 
   Useful product on its own even)


Thanks for reminding us all of the power of TiddlyServer.


*Is there something more to TiddlyDesktop I am not yet aware of?*

Regards
Tony


On Monday, June 3, 2019 at 12:58:43 PM UTC+10, Arlen Beiler wrote:
>
> Just thought I would mention (since it appears that you're using 
> TiddlyServer) that TiddlyServer was created to do away with this exact 
> scenario. Specifically, data folders may be arranged in folders, and 
> TiddlyServer is then configured to serve the entire folder. When a data 
> folder is loaded, TiddlyServer automatically mounts it and starts serving 
> the data folder alongside all the other data folders according to the URL 
> it is located at. 
>
> I hope that makes sense. 
>
> On Mon, Jun 3, 2019 at 8:46 AM TonyM > 
> wrote:
>
>> Folks,
>>
>> I thought I would share a little discovery. that may help others who do a 
>> lot of TiddlyWiki serving.
>>
>> It is nice to set up one or more servers on your own PC for tiddlywiki 
>> but the use of multiple servers on one computer means setting the port each 
>> uses.
>> *You may want vanila Node, TiddlyServer, Bob and If work out how 
>> TiddlyDesktop to Share Wikis. In addition I have apache serving tiddlyWikis 
>> (**using tw-receiver) **and WordPress etc (AMPPS) *
>>
>>- This means all your links must include this port
>>- Other applications may want to use the same ports
>>- If you move it to another device you may have to change the port
>>- Ports can not be added to your Domain name system
>>
>> What I have discovered at least on Windows, but I expect there is away on 
>> all platforms, is it is trivial to add additional IP addresses. 
>>
>>- I simply reduced the range of addresses my home router issues to 
>>DHCP 2-79 freeing 80-99 ie 192.168.1.80 - 192.168.1.99 to be used as 
>> static 
>>IP Addresses
>>   - For those interested I use the range 100-254 for Fixed static IP 
>>   addresses of all devices I know. The Router issues the static 
>> addresses 
>>   through DHCP
>>- Rather than