[tw5] Re: Another datapoint on extremely large TiddlyWikis

2019-06-04 Thread 'Mark S.' via TiddlyWiki
Here's some code that runs in the prerelease 5.1.20 (it needs the new 
operators).

ABSOLUTELY make sure you have a copy of everything in your browser and in 
your desktop, because if you have a lot of tiddlers, this may crash your 
browser. You may get a lot of those "A script on this page is slowing down 
your web page messages.". If so, just keep clicking on "wait". It should 
finish eventually.

The reason this is so slow is because the nsort won't work on a tiddler 
with the title "552 My tiddler" as a number (552). So what I did instead 
was to first find all the counts and sort them, and then match those counts 
against each tiddler. Crazy inefficient. 

For your safety, there is limit[10] in the output filter. Remove this from 
the filter when you're ready to try it for read.

Currently this will show you the count of all standard tiddlers, including 
image tiddlers. The image tiddlers are likely to be your biggest.

Have fun, and be careful. But not in that order.


\define numbered-tiddlers()
<$vars pre="" suf="" mid=".0 ">
<$list filter="[all[tiddlers]!is[system]]" variable="tid">
<$list filter="[get[text]length[]]" variable="count">
<$list filter="[]"/>



\end
\define find-tiddlers-by-number(num)
$num$
<$vars pre="" suf="" mid=".0 ">
<$list filter="[all[tiddlers]!is[system]]" variable="tid">
<$list filter="[get[text]length[]regexp[^$num$$]sort[]]" 
variable="tid2">
$num$ == <$link to=<>><>



\end


<$wikify text=<> name="sortus" mode="inline">
<$list filter="[enlistnsort[title]limit[10]]" variable="cnt">
<$macrocall $name="find-tiddlers-by-number" num=<>/>


<$wikify text=<> name="sortus" mode="inline">
<$list filter="[enlistnsort[title]]" variable="cnt">
<$macrocall $name="find-tiddlers-by-number" num=<>/>



On Tuesday, June 4, 2019 at 3:09:12 PM UTC-7, Sean Boyle wrote:
>
> In the spirit of large tiddlywikis, is there a simple way to get a listing 
> of tiddlers by size, sorted largest first?  I would like to do some weeding.
>
> On Friday, May 31, 2019 at 3:50:24 AM UTC-7, Jeremy Ruston wrote:
>>
>> Several of the projects I’m working on for Federatial clients involve 
>> large wikis, in the 10MB to 100MB range. I’ve posted before about the 
>> surprisingly good performance of such large wikis, and recently worked on 
>> improving performance further through the introduction of more 
>> sophisticated indexing strategies. 
>>
>> As an experiment, today I just tried combining the data from several 
>> large wikis to make a compound wiki that weighs in at 874.9MB (nearly a 
>> gigabyte!). To my astonishment, Chrome and Firefox will both run it with 
>> reasonable performance (Safari complains about resource usage). 
>>
>> The wiki actually only contains 60 tiddlers, of which 13 are plugins 
>> containing a total of 64,202 shadow tiddlers (this project uses plugins to 
>> package wiki content). There are just over 3,000 images, weighing in at 
>> about 197MB of base64 encoded text. 
>>
>> I don’t think such large wikis are practical for everyday use right now, 
>> but they certainly will be in the next few years. (None of this is actually 
>> to praise TiddlyWiki; it’s the hardworking browser engineers over the last 
>> decade that we have to thank). 
>>
>> Best wishes 
>>
>> Jeremy.
>
>

-- 
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/ef14e652-98f1-4932-b6e0-375866afcc14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Styling and sizing images as buttons

2019-06-04 Thread TonyM
Folks,

I am bumping this request hoping someone can help. So far I have spent some 
hours trying to ensure I never spend hours again. :(

The following is the best I hacve so far

{{$:/core/images/timestamp-on}}



{{$:/favicon.ico}}




{{Motovun Jack.jpg}}





{{$:/PSaT/buttons/archive/add.png}}




{{$:/PSaT/buttons/archive/archive.svg}}

However the first and last two fail because it only ever displays the size 
set inside the the SVG tiddler.

I would like to find a way that works with all image types consistently and 
if not create a macro that will handle what ever image tiddler it is given 
and set a given height and/or width.
A macro that can replace the customary transclusion of the image tiddler 
such that we can also say 
<>
etc

Any css or svg experts here?

Regards
Tony

On Monday, May 27, 2019 at 10:23:46 AM UTC+10, TonyM wrote:
>
> Folks,
>
> Have you skills in using png and svg in Tiddlywiki, I could do with your 
> help
>
> *Background*
>
>- I use images png and jpg and most commonly svg's built in and 
>imported to my wiki. 
>- My main use is as buttons or icons. I would like to list place both 
>svg and other images in the icon field or similar and use them in image 
>buttons.
>- In some cases I would like to use 72x72 and other 22px x 22px as 
>seems to be standard in the built in icons.
>- I have a subscription to a large icon library and hope to package 
>some to make up for the "missing" icons. If licencing permits I will share 
>these.
>
> *The problem*
>
>- I can't find a way to set the dimensions reliably when I display an 
>image, ideally independently of the image type
>- I would like a small number of predefined sizes 
>- I find identifying the style or classes used already tiddlywiki 
>difficult or identifying the special variables in use for this.
>- What are in fact tiddlywikis default sizes?
>
> Any guidance would be greatly appreciated.
>
> Thanks in advance
> 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/1f908709-8992-4112-8efd-c8c19e05b378%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 without text field is more than ~1800

2019-06-04 Thread TonyM
Josiah,

My answer to your question is

Should you need to as a workaround

However depending on how the tiddlers are to be used it may provide additional 
functionality.

More directly the problem at hand its suggested it relates to skinny tiddler 
handling. A feature one may want everyday but which tests resources in large 
batches. If its a code bug we fix it, if its external in node perhaps simply a 
short or configurable pause every 1000 tiddlers could be sufficient.

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/d2797a16-d187-4c81-8d70-0732c683442b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Another datapoint on extremely large TiddlyWikis

2019-06-04 Thread Magnus
Check 
out https://groups.google.com/d/topic/tiddlywiki/hr75FTeEL_g/discussion

-- 
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/e81cd6a8-6b15-42a0-8fab-e505cb1dd658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Another datapoint on extremely large TiddlyWikis

2019-06-04 Thread Sean Boyle
In the spirit of large tiddlywikis, is there a simple way to get a listing 
of tiddlers by size, sorted largest first?  I would like to do some weeding.

On Friday, May 31, 2019 at 3:50:24 AM UTC-7, Jeremy Ruston wrote:
>
> Several of the projects I’m working on for Federatial clients involve 
> large wikis, in the 10MB to 100MB range. I’ve posted before about the 
> surprisingly good performance of such large wikis, and recently worked on 
> improving performance further through the introduction of more 
> sophisticated indexing strategies. 
>
> As an experiment, today I just tried combining the data from several large 
> wikis to make a compound wiki that weighs in at 874.9MB (nearly a 
> gigabyte!). To my astonishment, Chrome and Firefox will both run it with 
> reasonable performance (Safari complains about resource usage). 
>
> The wiki actually only contains 60 tiddlers, of which 13 are plugins 
> containing a total of 64,202 shadow tiddlers (this project uses plugins to 
> package wiki content). There are just over 3,000 images, weighing in at 
> about 197MB of base64 encoded text. 
>
> I don’t think such large wikis are practical for everyday use right now, 
> but they certainly will be in the next few years. (None of this is actually 
> to praise TiddlyWiki; it’s the hardworking browser engineers over the last 
> decade that we have to thank). 
>
> Best wishes 
>
> Jeremy.

-- 
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/9b0a4d1f-26dd-4d1b-939b-dced0933798a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Internal Javacript Error in ckeditor.js

2019-06-04 Thread BJ
And which version of visualeditor plugin are you using?

On Tuesday, June 4, 2019 at 10:43:15 PM UTC+2, armlet wrote:
>
> I am using ckeditor 4.11.4 with TiddlyDesktop 0.0.13, but it is the same 
> when I open it in Chrome. That error message was from Chrome Developer 
> Tools.
>
> It gets worse after I installed Reader Mode plugin from 
> https://tid.li/tw5/plugins.html
> It will almost always happen when I click the Reader mode button and then 
> start scrolling the story river.
>
> I am about to remove the Reader Mode plugin since I am not really using 
> it, but the big read error box happens a lot to me to the point that it 
> will interrupt what I am doing too often.
>
> Thanks BJ!
>
> On Friday, May 31, 2019 at 4:43:33 AM UTC-5, BJ wrote:
>>
>> HI Armlet,
>>
>> if you could described in as much detail as possible the steps from 
>> starting to edit the tiddler to when the error occurs, it would help me to 
>> workout what is going wrong. What version of ckeditor are you using (and 
>> with what browser)?
>>
>> thanks
>>
>> BJ
>>
>> On Wednesday, May 29, 2019 at 8:31:24 PM UTC+2, armlet wrote:
>>>
>>> Internal JavaScript Error
>>> Well, this is embarrassing. It is recommended that you restart 
>>> TiddlyWiki by refreshing your browser
>>> Script error.
>>>
>>>
>>>
>>> ckeditor.js:88 Uncaught TypeError: Cannot read property 'compatMode' of 
>>> undefined
>>> at CKEDITOR.dom.window.getViewPaneSize (ckeditor.js:88)
>>> at p.queryViewport (ckeditor.js:1253)
>>> at CKEDITOR.dom.window. (ckeditor.js:31)
>>> at CKEDITOR.dom.window.p (ckeditor.js:10)
>>> at CKEDITOR.dom.window.fire (ckeditor.js:12)
>>> at ckeditor.js:68
>>>
>>> Is this a ckeditor problem or bj's plugin problem?
>>>
>>

-- 
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/61d39b3f-81fb-462b-8072-d3e8757269f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How does one use Bricks?

2019-06-04 Thread Thomas Elmiger
Hello again, passingby,

Sorry for my late reply, but I am drowning in work and need some time for 
family and friends too ... so I will keep it short this time: 

https://tid.li/tw5/test/bricks.html was left in a messy state some time 
ago. Sorry again. Now I brought the most important documentation tiddlers 
to the front again, so I hope it will make a much more friendly entry point 
again. I have tried to explain, what is offered, so I hope reading 
carefully and following the links will bring you closer to your goals.

Note: there might be differences between the docs and the actual state of 
Bricks, so if you have questions or encounter errors, please ask, protest, 
let me know!

The dark forces palette is there and can be activated with one click: 
https://tid.li/tw5/test/bricks.html#%24%3A%2Fplugins%2Ftelmiger%2Fbricks%2Fpalettes

I hope you will be able to customize everything you want by searching for 
the corresponding stylesheet in the Style Manager. Stylesheets from plugins 
should also appear in the list of the manager. 

When you are done, it might be sufficient to generate final stylesheets as 
described in 
https://tid.li/tw5/test/bricks.html#Wikilogic%20Tiddler%20Transformation 
instead of creating a theme right away.

Please ask again, if you need help or encounter problems. 

All the best,
Thomas

-- 
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/c71547a9-58f5-437c-bf66-6c26236cc62c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Internal Javacript Error in ckeditor.js

2019-06-04 Thread armlet
I am using ckeditor 4.11.4 with TiddlyDesktop 0.0.13, but it is the same 
when I open it in Chrome. That error message was from Chrome Developer 
Tools.

It gets worse after I installed Reader Mode plugin from 
https://tid.li/tw5/plugins.html
It will almost always happen when I click the Reader mode button and then 
start scrolling the story river.

I am about to remove the Reader Mode plugin since I am not really using it, 
but the big read error box happens a lot to me to the point that it will 
interrupt what I am doing too often.

Thanks BJ!

On Friday, May 31, 2019 at 4:43:33 AM UTC-5, BJ wrote:
>
> HI Armlet,
>
> if you could described in as much detail as possible the steps from 
> starting to edit the tiddler to when the error occurs, it would help me to 
> workout what is going wrong. What version of ckeditor are you using (and 
> with what browser)?
>
> thanks
>
> BJ
>
> On Wednesday, May 29, 2019 at 8:31:24 PM UTC+2, armlet wrote:
>>
>> Internal JavaScript Error
>> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
>> by refreshing your browser
>> Script error.
>>
>>
>>
>> ckeditor.js:88 Uncaught TypeError: Cannot read property 'compatMode' of 
>> undefined
>> at CKEDITOR.dom.window.getViewPaneSize (ckeditor.js:88)
>> at p.queryViewport (ckeditor.js:1253)
>> at CKEDITOR.dom.window. (ckeditor.js:31)
>> at CKEDITOR.dom.window.p (ckeditor.js:10)
>> at CKEDITOR.dom.window.fire (ckeditor.js:12)
>> at ckeditor.js:68
>>
>> Is this a ckeditor problem or bj's plugin problem?
>>
>

-- 
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/ce850bea-6346-4a70-93db-07602ee1cdf9%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 without text field is more than ~1800

2019-06-04 Thread 'Mark S.' via TiddlyWiki
After lazing-loading the text data, I populated all the text fields. Then I 
deleted the text fields.

Outcome:

1. The tiddlers created have a different kind of line return then your test 
data (maybe \r\n vs \r ?) 
2. The tiddlers created have a line return after the last header line, 
adding one blank line on the end
3. The tiddlers can now be loaded without the lazy-load option.

HTH

On Tuesday, June 4, 2019 at 11:03:11 AM UTC-7, Mark S. wrote:
>
> I notice that when TW makes it's own "empty" tiddler, there is one line 
> after the last header field. It might be interesting to see if you get 
> different results if your test tiddlers have that blank line.
>
>

-- 
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/b8f5e455-b265-45b6-af1c-77ddd60c5a28%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 without text field is more than ~1800

2019-06-04 Thread 'Mark S.' via TiddlyWiki
I notice that when TW makes it's own "empty" tiddler, there is one line 
after the last header field. It might be interesting to see if you get 
different results if your test tiddlers have that blank line.

-- 
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/8c438546-f32a-4077-8180-3b21fa792ec7%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 without text field is more than ~1800

2019-06-04 Thread 'Mark S.' via TiddlyWiki
I just realized something Jeremy said. This is happening because it's 
acting as if the tiddlers have been lazy-loaded when they actually 
haven't been.  So ... If you use the lazy-load option:

   root-tiddler=$:/core/save/lazy-all

then the Wiki will load fine without crashing. So if you really want to 
load this set, you can do so. 

-- Mark

On Tuesday, June 4, 2019 at 9:58:20 AM UTC-7, solex wrote:
>
> Mark,
>
> I am not sure the exact number matters much.
> So far anyone who tried to reproduce it with 2000 tiddlers got the server 
> to crash, so the issue is reproducible on most systems.
> I would expect the exact number to differ depending on the available 
> memory and processing power, but the gist of the problem is that the system 
> cannot handle a few thousands of skinny tiddlers while being quite capable 
> of handling tens of thousands of "normal" tiddlers.
>
> On Tuesday, June 4, 2019 at 7:05:51 PM UTC+3, Mark S. wrote:
>>
>> I'm not sure what the "1800" tiddlers is based on. In my tests, all the 
>> tiddler titles loaded. Behind the scenes, apparently the server was stilll 
>> fishing for tiddler text. It must have been using an internal array to save 
>> results while waiting for (non-existent) data to load. The server crashed 
>> after the server had reported 1862 load attempts. But that's just as far as 
>> the reporting got. Internally, it may have had all the load events queued. 
>> The output reporting would have just lagged. So, I think,it would be more 
>> about machine processing maching. I'm running at 3.2 Ghz. I suspect solex's 
>> processing speed is similar.
>>
>> The way I captured the report is to use the > operator to funnel the 
>> output of the node launch into a text file. Then I could look at the file 
>> and count how many load entries there were. solex could repeat the process 
>> with his own device. It would be a doubtful coincidence if our count was 
>> exactly the same. In that case, maybe there's a pre-set number of threads?
>>
>>
>> -- Mark
>>
>> On Tuesday, June 4, 2019 at 7:51:40 AM UTC-7, @TiddlyTweeter wrote:
>>>
>>> Jeremy Ruston wrote:

 This isn’t actually a bug, it’s more of an unexpected consequence of 
 the way that lazy loading is implemented: in client-server mode, if the 
 browser references a skinny tiddler (one that lacks a text field) then it 
 requests the body from the server. 

>>>
>>> My impression reading the thread is that the "break-down" occurs at a 
>>> specific point?
>>>
>>> I mean, a server overload I can't see happening at a specific number on 
>>> different machines. That has to be code?
>>>
>>> I remain hazy whether this is able to be replicated at a set number? But 
>>> that was my naive first impression--that it does?
>>>
>>> Side 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/e5f8b237-9368-47c9-bf54-d95bc7395ea2%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 without text field is more than ~1800

2019-06-04 Thread solex
Mark,

I am not sure the exact number matters much.
So far anyone who tried to reproduce it with 2000 tiddlers got the server 
to crash, so the issue is reproducible on most systems.
I would expect the exact number to differ depending on the available memory 
and processing power, but the gist of the problem is that the system cannot 
handle a few thousands of skinny tiddlers while being quite capable of 
handling tens of thousands of "normal" tiddlers.

On Tuesday, June 4, 2019 at 7:05:51 PM UTC+3, Mark S. wrote:
>
> I'm not sure what the "1800" tiddlers is based on. In my tests, all the 
> tiddler titles loaded. Behind the scenes, apparently the server was stilll 
> fishing for tiddler text. It must have been using an internal array to save 
> results while waiting for (non-existent) data to load. The server crashed 
> after the server had reported 1862 load attempts. But that's just as far as 
> the reporting got. Internally, it may have had all the load events queued. 
> The output reporting would have just lagged. So, I think,it would be more 
> about machine processing maching. I'm running at 3.2 Ghz. I suspect solex's 
> processing speed is similar.
>
> The way I captured the report is to use the > operator to funnel the 
> output of the node launch into a text file. Then I could look at the file 
> and count how many load entries there were. solex could repeat the process 
> with his own device. It would be a doubtful coincidence if our count was 
> exactly the same. In that case, maybe there's a pre-set number of threads?
>
>
> -- Mark
>
> On Tuesday, June 4, 2019 at 7:51:40 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Jeremy Ruston wrote:
>>>
>>> This isn’t actually a bug, it’s more of an unexpected consequence of the 
>>> way that lazy loading is implemented: in client-server mode, if the browser 
>>> references a skinny tiddler (one that lacks a text field) then it requests 
>>> the body from the server. 
>>>
>>
>> My impression reading the thread is that the "break-down" occurs at a 
>> specific point?
>>
>> I mean, a server overload I can't see happening at a specific number on 
>> different machines. That has to be code?
>>
>> I remain hazy whether this is able to be replicated at a set number? But 
>> that was my naive first impression--that it does?
>>
>> Side 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/c7488c4a-0507-467b-9cc2-18a6892e4fb9%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 without text field is more than ~1800

2019-06-04 Thread 'Mark S.' via TiddlyWiki
I'm not sure what the "1800" tiddlers is based on. In my tests, all the 
tiddler titles loaded. Behind the scenes, apparently the server was stilll 
fishing for tiddler text. It must have been using an internal array to save 
results while waiting for (non-existent) data to load. The server crashed 
after the server had reported 1862 load attempts. But that's just as far as 
the reporting got. Internally, it may have had all the load events queued. 
The output reporting would have just lagged. So, I think,it would be more 
about machine processing maching. I'm running at 3.2 Ghz. I suspect solex's 
processing speed is similar.

The way I captured the report is to use the > operator to funnel the output 
of the node launch into a text file. Then I could look at the file and 
count how many load entries there were. solex could repeat the process with 
his own device. It would be a doubtful coincidence if our count was exactly 
the same. In that case, maybe there's a pre-set number of threads?


-- Mark

On Tuesday, June 4, 2019 at 7:51:40 AM UTC-7, @TiddlyTweeter wrote:
>
> Jeremy Ruston wrote:
>>
>> This isn’t actually a bug, it’s more of an unexpected consequence of the 
>> way that lazy loading is implemented: in client-server mode, if the browser 
>> references a skinny tiddler (one that lacks a text field) then it requests 
>> the body from the server. 
>>
>
> My impression reading the thread is that the "break-down" occurs at a 
> specific point?
>
> I mean, a server overload I can't see happening at a specific number on 
> different machines. That has to be code?
>
> I remain hazy whether this is able to be replicated at a set number? But 
> that was my naive first impression--that it does?
>
> Side 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/74240656-125c-47c1-b2a0-e09efe6bf852%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 without text field is more than ~1800

2019-06-04 Thread solex
TonyM,

It has to be text. The crash occurs regardless of the number and the 
content of other fields.
If I understood Jeremy correctly, a tiddler with no text field is 
considered a "skinny tiddler" and is treated differently by the sync 
process, thus causing the memory overload when the number of such tiddlers 
is in thousands. 


On Tuesday, June 4, 2019 at 4:42:38 PM UTC+3, TonyM wrote:
>
> Some
>
> A question. Rather than adding newlines to text, adding nothing but 
> actually something in each tiddler and thus defeating the possibility of 
> using the filter [all[current]has[text]] to test if text has content.
>
> Would populating a field in each tiddler do the same? or must it be the 
> text field?
>
> If you must use the text field perhaps insert something like "batch 
> creation: batchname", then you could list items with a text field with 
> prefix[batch creation:] or prefix[batch creation:batchname] if you needed 
> to identify thousands for batch deletion.
>
> 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/cb40069f-8cfa-4d74-a05c-a62d63a3de11%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 without text field is more than ~1800

2019-06-04 Thread @TiddlyTweeter
Jeremy Ruston wrote:
>
> This isn’t actually a bug, it’s more of an unexpected consequence of the 
> way that lazy loading is implemented: in client-server mode, if the browser 
> references a skinny tiddler (one that lacks a text field) then it requests 
> the body from the server. 
>

My impression reading the thread is that the "break-down" occurs at a 
specific point?

I mean, a server overload I can't see happening at a specific number on 
different machines. That has to be code?

I remain hazy whether this is able to be replicated at a set number? But 
that was my naive first impression--that it does?

Side 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/e6b7b0f4-192e-4135-911e-daf0d39d933f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-06-04 Thread Greg Davis
You can also open in Wordpad and then save. Works at least in XP, don't 
have 8 or 10 handy to check. Use this trick on other files that some 
programs create.

-- 
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/624cbb3c-4f45-4aee-8a6b-4c3397638785%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 without text field is more than ~1800

2019-06-04 Thread @TiddlyTweeter
Ciao TonyM

Simple query: Why SHOULD you have to populate anything?
>
>
Josiah, x

-- 
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/2b7d1d15-34a9-4b09-bf8a-ccb3be44814b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] easy basic question on listing references of a tiddler

2019-06-04 Thread Watt
Hi steved

Do you mean the backlinks operator?

https://tiddlywiki.com/#backlinks%20Operator

-- 
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/3a42d2f4-e6e0-41f2-aab8-e1c8dc424ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: TiddlyDrive Rebooted!

2019-06-04 Thread Alfonso Arciniega
Joshua,

Settings allowing popups and others are fine. It works seamlessly at my 
workplace with Chrome on Windows 7. I keep Chrome up to date with the 
latest version, though my Mac OS is not the latest. It runs macOS High 
Sierra v10.13, and it cannot be updated anymore. I submitted a bug report a 
minute ago.

Thanks,

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/f19c6dae-bbc8-40ce-9d98-2d68a4f5407d%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 without text field is more than ~1800

2019-06-04 Thread TonyM
Some

A question. Rather than adding newlines to text, adding nothing but actually 
something in each tiddler and thus defeating the possibility of using the 
filter [all[current]has[text]] to test if text has content.

Would populating a field in each tiddler do the same? or must it be the text 
field?

If you must use the text field perhaps insert something like "batch creation: 
batchname", then you could list items with a text field with prefix[batch 
creation:] or prefix[batch creation:batchname] if you needed to identify 
thousands for batch deletion.

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/418ea841-8fe0-4449-ae8f-475b607386aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Quiz/Test

2019-06-04 Thread Chems
Hey,

I am starting to use Tiddlywiki to summarise school works. Now I had the 
idea, to include a Test/Quiz for myself.
I imagined something like this: My tiddlers are named after years e.g. 
1913. The first row is usually a few words summary, like: Start second 
World war.

Now, a test I imagined would show me the Year, and like 4 answer 
possibilities, from which one is correct. Like:
1913
Start Vietnam War
Jesus was born
Start second World war
G. Washington was elected

After choosing my answer, the correct answer would be marked and the next 
question starts.

I Hope you understand what I mean and you have a idea!

Thank you in advanced!

-- 
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/634de8ea-0b78-46f5-a9f0-ea2a2a187409%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 without text field is more than ~1800

2019-06-04 Thread solex
Hi Jeremy,

I just opened an issue on Github. Please feel free to close if you believe 
it's not a bug.

However, I do believe this needs to be at least documented. Currently there 
is no reason to expect this crash, and the cause of the problem is not 
immediately obvious.
Perhaps a note could be added somewhere that skinny tiddlers are treated 
somewhat differently by the system, and that one shouldn't create too many 
of them.
(If I knew that, for instance, I could have easily avoided the problem 
altogether by simply adding a few newline characters to my tiddlers)

-
Thanks

On Tuesday, June 4, 2019 at 3:19:00 PM UTC+3, Jeremy Ruston wrote:
>
> Hi Solex
>
> This isn’t actually a bug, it’s more of an unexpected consequence of the 
> way that lazy loading is implemented: in client-server mode, if the browser 
> references a skinny tiddler (one that lacks a text field) then it requests 
> the body from the server. It’ll only do it once for each tiddler but in a 
> case like this with thousands of skinny tiddlers it looks like it can 
> overload the server.
>
> Best wishes
>
> Jeremy.
>
>
>
> On 4 Jun 2019, at 12:44, @TiddlyTweeter > 
> wrote:
>
> Great bit of collective detective work in this thread!
>
> YES, GitHub is the way to go.
>
> Also, once written (I assume as an "Issue", but maybe its almost a "PR" a 
> writer here could polish?) you can ask back in this thread for "upvotes" to 
> it so folk can indicate its importance.
>
> Best wishes
> Josiah
>
> On Tuesday, 4 June 2019 12:36:02 UTC+2, solex wrote:
>>
>> What is the proper way to submit a bug? Should I open a Github issue?
>>
>
> -- 
> 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/6cc309c6-7c3e-459c-b41c-c15074bc134f%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/09a885fc-6b68-4083-8ad2-304415ca48dc%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 without text field is more than ~1800

2019-06-04 Thread Jeremy Ruston
Hi Solex

This isn’t actually a bug, it’s more of an unexpected consequence of the way 
that lazy loading is implemented: in client-server mode, if the browser 
references a skinny tiddler (one that lacks a text field) then it requests the 
body from the server. It’ll only do it once for each tiddler but in a case like 
this with thousands of skinny tiddlers it looks like it can overload the server.

Best wishes

Jeremy.



> On 4 Jun 2019, at 12:44, @TiddlyTweeter  wrote:
> 
> Great bit of collective detective work in this thread!
> 
> YES, GitHub is the way to go.
> 
> Also, once written (I assume as an "Issue", but maybe its almost a "PR" a 
> writer here could polish?) you can ask back in this thread for "upvotes" to 
> it so folk can indicate its importance.
> 
> Best wishes
> Josiah
> 
> On Tuesday, 4 June 2019 12:36:02 UTC+2, solex wrote:
> What is the proper way to submit a bug? Should I open a Github issue?
> 
> -- 
> 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/6cc309c6-7c3e-459c-b41c-c15074bc134f%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/0BC1D35A-086B-4388-B332-10387F66CB64%40gmail.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 without text field is more than ~1800

2019-06-04 Thread @TiddlyTweeter
Great bit of collective detective work in this thread!

YES, GitHub is the way to go.

Also, once written (I assume as an "Issue", but maybe its almost a "PR" a 
writer here could polish?) you can ask back in this thread for "upvotes" to 
it so folk can indicate its importance.

Best wishes
Josiah

On Tuesday, 4 June 2019 12:36:02 UTC+2, solex wrote:
>
> What is the proper way to submit a bug? Should I open a Github issue?
>

-- 
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/6cc309c6-7c3e-459c-b41c-c15074bc134f%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 without text field is more than ~1800

2019-06-04 Thread PMario
On Tuesday, June 4, 2019 at 12:36:02 PM UTC+2, solex wrote:
>
> Hi,
>
> I can confirm that the problem is related to text-less tiddlers (as PMario 
> suggested). 
> The problem can now be properly restated as: *File-based TW on node.js 
> crashes when the number of tiddlers without text field is more than ~1800*
> The number and structure of the rest of tiddlers doesn't matter, so long 
> as a total number of text-less tiddlers is over the threshold.
> The problem appears to be related to the "load" task dispatched by 
> syncer-server-filesystem, because apparently this task is only dispatched 
> for text-less tiddlers, but not for tiddlers with text.
>
> This looks like a bug to me, because "title" is supposed to be the only 
> required tiddler field, and also because the system fails in a non-obvious 
> way (as opposed to, say, refusing to process tiddlers that don't meet 
> certain requirements)
>
> What is the proper way to submit a bug? 
>

 - use your bold text as heading. 
 - Copy your text above to the issue at github. 
 - add a link to this thread. So we can find it easily

issue page: https://github.com/Jermolene/TiddlyWiki5/issues
 

> Should I open a Github issue?
>

Yes

-- 
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/897c300b-9036-47f7-8688-c80e072b7309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] File-based TW on node.js crashes when the number of tiddlers without text field is more than ~1800

2019-06-04 Thread solex
Hi,

I can confirm that the problem is related to text-less tiddlers (as PMario 
suggested). 
The problem can now be properly restated as: *File-based TW on node.js 
crashes when the number of tiddlers without text field is more than ~1800*
The number and structure of the rest of tiddlers doesn't matter, so long as 
a total number of text-less tiddlers is over the threshold.
The problem appears to be related to the "load" task dispatched by 
syncer-server-filesystem, because apparently this task is only dispatched 
for text-less tiddlers, but not for tiddlers with text.

This looks like a bug to me, because "title" is supposed to be the only 
required tiddler field, and also because the system fails in a non-obvious 
way (as opposed to, say, refusing to process tiddlers that don't meet 
certain requirements)

What is the proper way to submit a bug? Should I open a Github issue?

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/9d06429b-87ee-4b99-8d8a-dc8e99a90484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread Watt
Thanks for taking this further PMario! I'm only just getting to grips with data 
tiddlers but they seem to me to be similar to single column spreadsheets. They 
have an index and a single column of values, and each value 'slot' is similar 
to a spreadsheet's cell in just one column. 
If I create 2 or more data tiddlers with the same indexes then the number of 
value columns available to my 'spreadsheet' expands and 'cells' across both 
tiddlers can be referenced by {{distinctdatatiddlername##sharedindex}}.
In an ideal world I'd like to be able to sum those values but also to be able 
to carry out the other maths operations that a spreadsheet allows on individual 
values, ranges of values, groups of values that match a criteria etc - (i.e 
values filtered to meet a condition, across several data tiddlers).
I hope that makes some sort of sense. Just my 2 shrimps worth if you're 
thinking about formulating a pull request.

-- 
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/4022bf72-b074-4f98-aa7e-4c6c4ca01b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread Watt
Thanks for taking this further PMario! Hope I'm not sounding like Forest Gump 
here but data tiddlers seem to me to be similar to single column spreadsheets. 
They have an index and a single column of values, and each value 'slot' is 
similar to a spreadsheet's cell in just one column. 
If I create 2 or more data tiddlers with the same indexes then the number of 
value columns available to my 'spreadsheet' expands and 'cells' across both 
tiddlers can be referenced by {{distinctdatatiddlername##sharedindex}}.
In an ideal world I'd like to be able to sum those values but also to be able 
to carry out the other maths operations that a spreadsheet allows on individual 
values, ranges of values, groups of values that match a criteria etc - (i.e 
values filtered to meet a condition, across several data tiddlers).
I hope that makes some sort of sense. Just my 2 shrimps worth if you're 
thinking about formulating a pull request.

-- 
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/46fd177a-c43d-471f-8641-f4ebdc399448%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread PMario

On Tuesday, June 4, 2019 at 10:22:55 AM UTC+2, PMario wrote:
>
> On Tuesday, June 4, 2019 at 8:56:02 AM UTC+2, TonyM wrote:
>>
>>
>> Do you think we could also provide values with other inputs like 
>> values values{!!fieldname} values{tiddlername!!fieldname}  if it 
>> could parse this with spaces as the delimiter then numeric lists in a 
>> variable will not be deduped and can feed into our maths operators.
>>
>
> I think this is the existing "enlist" operator.
>

uups ... missed the "deduped" :)
-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/4b726e0b-4f48-40c5-ace0-b8771d0d3894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread PMario
On Tuesday, June 4, 2019 at 8:57:28 AM UTC+2, TonyM wrote:
>
> values[1 2 1 2 3]sum[]
>

same as indexes. ... no parameters

-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/4de116fd-2583-4dce-8a00-333665d4b8b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread PMario
Hi,

Working with data-tiddlers there is the "indexes" and the "getindex" 
operators. ... BUT they are not enough with the new math functions. 

As the OP shows. ... The new "values" operator works similar to the 
"indexes" operator, but it lists the values instead of the indexes (keys)

Since the both outputs are sorted, I also want to have an "keyvalues" 
operator, which will allow us to get both elements, and use string 
manipulation afterwards. 

-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/470da3e5-7e32-49c0-af9a-bc182120dc8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread PMario
On Tuesday, June 4, 2019 at 8:56:02 AM UTC+2, TonyM wrote:
>
>
> Do you think we could also provide values with other inputs like 
> values values{!!fieldname} values{tiddlername!!fieldname}  if it 
> could parse this with spaces as the delimiter then numeric lists in a 
> variable will not be deduped and can feed into our maths operators.
>

I think this is the existing "enlist" operator.

-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/c7c4481c-8d2f-451d-b663-35599e954d96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] easy basic question on listing references of a tiddler

2019-06-04 Thread steved
Sorry learning - but I could not find the syntax for calling the  
references of a tiddler 

I thought it might be 

{{{ [all[*References*]] }}} or [type[references]]

so what would I change to list the references
 
reference being the 

   - The *References* tab lists all the tiddlers that link *to* the current 
   tiddler.

I tried everything but could not get it - gave 30 minutes trying to look it 
up but "References" is a tricky thing to search in tiddlywiki.com as it 
means many things.

-- 
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/7994b46e-e20b-442e-b892-2274ff898b67%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-04 Thread Mohammad
We are
Tiddlywikians

On Sunday, June 2, 2019 at 7:16:54 AM UTC+4:30, TonyM wrote:
>
> Folks
>
> You suggestion please
>
> Are we TiddlyWikians?
> *If you are a TiddlyWiki enthusiast to what tribe do we belong?*
>
> What is our collective noun?
> A Group of us collect here but what if we had a user group?, we could just 
> be "users", but there's a lot of them around.
> I am thinking due to the value of tags in TiddlyWiki our collective noun 
> could be;
> A group of TiddlyWikian's" is a "Rag Tag", or a "Tag Team"
>
>
> Please post suggestions here, 
>
> 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/c3993e0a-9176-4817-954f-ad6319717022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread TonyM
Also

values[1 2 1 2 3]sum[]

Regards
Tony

On Tuesday, June 4, 2019 at 4:56:02 PM UTC+10, TonyM wrote:
>
> Mario,
>
> Smiley Face :)
>
> Do you think we could also provide values with other inputs like 
> values values{!!fieldname} values{tiddlername!!fieldname}  if it 
> could parse this with spaces as the delimiter then numeric lists in a 
> variable will not be deduped and can feed into our maths operators.
>
> Perhaps values:field[fieldname] would also be valid extracting all values 
> in all tiddlers with field name.
>
> My only concern is the operator name "values" is a very generic word and 
> we will have a need for more with the maths operators. 
>
> So given the above perhaps this would be safer. 
> [datatiddler(s)]values:data[]sum[]
> [tiddler(s)]values:field[fieldname]sum[]
>
>
>
> Regards
> Tony
>
>
> On Tuesday, June 4, 2019 at 4:44:12 PM UTC+10, PMario wrote:
>>
>> Hi Folks, 
>>
>> Just had a look at the code. ... It shouldn't be that hard. 
>>
>> I would like to have {{{[[data]values[]sum[]]}}} ... Which should show 2 
>> if the above content is a tiddler named: data. 
>>
>> I do have a new "values" operator working. I'll create a pull request 
>> today. 
>>
>> BE AWARE!! *The code above doesn't work atm*. ... It will work in 
>> 5.1.20, if Jeremy merges the pull request. 
>>
>> have fun!
>> 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/401a3858-215e-4931-a556-73e0d54c40c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread TonyM
Mario,

Smiley Face :)

Do you think we could also provide values with other inputs like 
values values{!!fieldname} values{tiddlername!!fieldname}  if it 
could parse this with spaces as the delimiter then numeric lists in a 
variable will not be deduped and can feed into our maths operators.

Perhaps values:field[fieldname] would also be valid extracting all values 
in all tiddlers with field name.

My only concern is the operator name "values" is a very generic word and we 
will have a need for more with the maths operators. 

So given the above perhaps this would be safer. 
[datatiddler(s)]values:data[]sum[]
[tiddler(s)]values:field[fieldname]sum[]



Regards
Tony


On Tuesday, June 4, 2019 at 4:44:12 PM UTC+10, PMario wrote:
>
> Hi Folks, 
>
> Just had a look at the code. ... It shouldn't be that hard. 
>
> I would like to have {{{[[data]values[]sum[]]}}} ... Which should show 2 
> if the above content is a tiddler named: data. 
>
> I do have a new "values" operator working. I'll create a pull request 
> today. 
>
> BE AWARE!! *The code above doesn't work atm*. ... It will work in 5.1.20, 
> if Jeremy merges the pull request. 
>
> have fun!
> 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/0ea411ef-6ac5-4a85-9ac9-a9ad3be9fb84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread PMario
Hi Folks, 

Just had a look at the code. ... It shouldn't be that hard. 

I would like to have {{{[[data]values[]sum[]]}}} ... Which should show 2 if 
the above content is a tiddler named: data. 

I do have a new "values" operator working. I'll create a pull request 
today. 

BE AWARE!! *The code above doesn't work atm*. ... It will work in 5.1.20, 
if Jeremy merges the pull request. 

have fun!
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/9859d722-c9bd-457e-b0ac-80d49bcee5d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread Watt
Will do. All working on the pre-release so far. Thanks again, enjoy that snow.

-- 
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/af0c951e-ffaf-4e0f-b651-b1481b5d7b26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Count data dictionary values

2019-06-04 Thread TonyM
Watt,

Remember this is using sum which is in the pre-release. Be careful using 
this for production. Be ready to export your content and re import it when 
the full 5.1.20 release is available.

If you wanted it working in pre 5.1.20 you could use evans formulae plugin 
or the calc widget (search here or tiddlywiki.com)

Regards
Tony


On Tuesday, June 4, 2019 at 3:58:33 PM UTC+10, Watt wrote:
>
> 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/5fda0594-8ed9-451d-a761-24b0d70c41b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.