[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread @TiddlyTweeter
Ciao Thomas

That is a good example of the issue.

I agree that Erwan's tool is there, though underused. I don't use its 
search much because the people who make things don't signal to it enough to 
have the heft needed to bother. But its a Working Aggregator and if it were 
used more it would solve half the problems IMO.

Josiah

Thomas Elmiger wrote:
>
> Via TW Community Search I found another interesting solution: 
> http://erwanm.github.io/tw-community-search/ => 
>
> http://let.tiddlyspot.com/#RANDOM:GettingStarted%20RANDOM 
> 

-- 
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/bf65bf36-db32-46da-90a2-2ad618ca4aef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread Thomas Elmiger
Via TW Community Search I found another interesting solution: 
http://erwanm.github.io/tw-community-search/ => 

http://let.tiddlyspot.com/#RANDOM:GettingStarted%20RANDOM

Let, by Tobias Beer, selects random tiddlers via filters. (You could find Jed’s 
solution there too. Mine is brand new so we will have to wait a bit.)

Maybe we should promote Erwan’s great search a bit more. 

-- 
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/b67dfce5-8626-420d-8af6-40780d363abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread @TiddlyTweeter
Ciao Mark S. 

I agree with you.

I also want to add its an instance of the *Informational Chaos* we are 
confronted with here over finding great things people have already created 
you can't find without a PhD in Searchology. 

The de-centralisation of TW has not, unfortunately, yet been properly 
complemented with appropriate aggregation. On THIS issue I would probably 
ADORE a centralised server for plugins. Lets get on with it.

Best wishes
Josiah

Mark S. wrote:
>
> We've got at least 3 third-party solutions for finding randoms. Shouldn't 
> something like this be in the stock TW5 filter operator and/or widget tool 
> kit?
>

-- 
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/f91d8db7-5a12-40cc-9afd-7aa31c60248c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread @TiddlyTweeter
Ciao Thomas

That's neat! Between your & PMario's offerings I'm sure I can now move on 
one way or another. So thanks!

Best wishes
Josiah

Thomas Elmiger wrote:
>
> I added a random integer generator to my rpn script. No leading zeros 
> though. would return a number between 1 and 4000 (including 1 and 4000).
>
> In case anyone wants to try it: https://tid.li/tw5/plugins.html – it is a 
> plugin now.
> <>
>
>

-- 
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/1bd0228f-3b95-4ac6-a7c3-981b47467137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread @TiddlyTweeter
Ciao Jed

Thank you for the link. I think Mario or Thomas' solutions will be more 
economical for the specific need.

BUT, yet again, I end up feeling like a bad dog for not knowing your gizmo 
existed. 

*We need do something to sort out our informational mess.* Where stuff 
exists but we have to rely on the author to tell us what they already 
publicly published.

Best wishes
Josiah 

Jed Carty wrote:
>
> ... I did make a widget that returns a random number in a given range. 
> http://inmysocks.tiddlyspot.com/#RandVal%20Plugin
>

-- 
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/09146d72-ab6f-468c-b807-7000d433f28b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread 'Mark S.' via TiddlyWiki


We've got at least 3 third-party solutions for finding randoms. Shouldn't 
something like this be in the stock TW5 filter operator and/or widget tool 
kit?

Mark

-- 
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/1519e891-a4f4-4086-b99d-536b60e44024%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread Thomas Elmiger
Same here, but different ;–)

I added a random integer generator to my rpn script. No leading zeros 
though. 
<>
would return a number between 1 and 4000 (including 1 and 4000).

In case anyone wants to try it: https://tid.li/tw5/plugins.html – it is a 
plugin now.

Happy randomizing
Thomas

Am Samstag, 15. Juli 2017 13:46:43 UTC+2 schrieb Jed Carty:
>
> While for this use I think that Mario's answer is better I did make a 
> widget that returns a random number in a given range. 
> http://inmysocks.tiddlyspot.com/#RandVal%20Plugin
>

-- 
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/c0e65cca-56a9-4bf5-8c43-0ee90a6761fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-15 Thread Jed Carty
While for this use I think that Mario's answer is better I did make a 
widget that returns a random number in a given 
range. http://inmysocks.tiddlyspot.com/#RandVal%20Plugin

-- 
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/47cc180f-d727-4375-958f-78b8b379172d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thank you Mark S. I appreciate it.

On Friday, 14 July 2017 22:34:31 UTC+2, Mark S. wrote:
>
> Just change 
>
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>
> to
>
> <$list filter="0 1 2 3 +[random[1]]" variable="n1" >
>
> On Friday, July 14, 2017 at 1:29:29 PM UTC-7, @TiddlyTweeter wrote:
>>
>> Thanks Mark S.
>>
>> Yes  to 3999 would work best. I can rename 4000 as . Anything 
>> over 4000 would hit a void.
>>
>> How should PMario's idea be modified for that?
>>
>> Best wishes
>> Josiah
>>
>> On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>>>
>>> D'oh! Very clever Pmario!
>>>
>>> That will actually make a number between  and 4999. Perhaps a number 
>>> between  and 3999 would be acceptable? That's actually 4000 distinct 
>>> numbers.
>>>
>>> Mark
>>>
>>> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:

 imo better: 

 \define number()$(n1)$$(n2)$$(n3)$$(n4)$
 <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
 <>
 
 
 
 

>>>

-- 
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/b53646cf-e119-4e91-aa8f-4ce666097f25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
Just change 

<$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >

to

<$list filter="0 1 2 3 +[random[1]]" variable="n1" >

On Friday, July 14, 2017 at 1:29:29 PM UTC-7, @TiddlyTweeter wrote:
>
> Thanks Mark S.
>
> Yes  to 3999 would work best. I can rename 4000 as . Anything over 
> 4000 would hit a void.
>
> How should PMario's idea be modified for that?
>
> Best wishes
> Josiah
>
> On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>>
>> D'oh! Very clever Pmario!
>>
>> That will actually make a number between  and 4999. Perhaps a number 
>> between  and 3999 would be acceptable? That's actually 4000 distinct 
>> numbers.
>>
>> Mark
>>
>> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>>>
>>> imo better: 
>>>
>>> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
>>> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
>>> <>
>>> 
>>> 
>>> 
>>> 
>>>
>>

-- 
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/164c5ef7-2f1c-4a1e-8153-4a2428b0c554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks Mark S.

Yes  to 3999 would work best. I can rename 4000 as . Anything over 
4000 would hit a void.

How should PMario's idea be modified for that?

Best wishes
Josiah

On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>
> D'oh! Very clever Pmario!
>
> That will actually make a number between  and 4999. Perhaps a number 
> between  and 3999 would be acceptable? That's actually 4000 distinct 
> numbers.
>
> Mark
>
> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>>
>> imo better: 
>>
>> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
>> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
>> <>
>> 
>> 
>> 
>> 
>>
>

-- 
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/c75ffd34-eb02-4c10-9a52-696c8f038049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
D'oh! Very clever Pmario!

That will actually make a number between  and 4999. Perhaps a number 
between  and 3999 would be acceptable? That's actually 4000 distinct 
numbers.

Mark

On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>
> imo better: 
>
> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
> <>
> 
> 
> 
> 
>

-- 
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/d36450e2-807a-49af-8673-0d3e9fa8e76b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks PMario

I can see what that is doing and it makes sense & should run fast.

I will play with it and see if I can get it to work for what I need.

Best wishes
Josiah

On Friday, 14 July 2017 20:20:23 UTC+2, PMario wrote:
>
> imo better: 
>
> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
> <>
> 
> 
> 
> 
>

-- 
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/8fbda574-1f23-419b-a2d5-53c8b6f98786%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread PMario
imo better: 

\define number()$(n1)$$(n2)$$(n3)$$(n4)$
<$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
<>





-- 
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/7a794b78-f1d5-40bf-a083-64a1dc76fec1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks Mark S.

A query, does "<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" 
variable="num" >" mean i'd have to literally enter 4000 numbers? If so, 
that looks like asking for trouble.

Could it not be calculated from a spawned random?

I wasn't actually thinking of using Tobias' solution because it seemed more 
focused on Tiddlers that exist. What I need is only random creation of a 
number between 0001 and 4000 to help create an external file link that is 
transitory. 

Best wishes
Josiah

On Friday, 14 July 2017 18:27:34 UTC+2, Mark S. wrote:
>
> I assume you're thinking of using Tobias' random solution ? His is based 
> on selecting tiddler titles. Haven't tried it, but assuming you could 
> construct a massive filter like:
>
> \define reimage() C:\mypath\fw_$(num)$.jpg
> <$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >
> <$image source=<>/>
> 
> which could be used to build fw_0001.jpg, fw_0002.jpg, fw_0003.jpg ...
>
> Not sure what the performance would be like with 4000 items, or if the 
> parser would break.
>
> Or if you had a data dictionary with the file names in it, or even just 
> numbers 0-4000 you could used the indexes operator.
>
> Mark
>
>  
>
> On Friday, July 14, 2017 at 3:48:41 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Ciao tutti
>>
>> This is an early query to see if anyone can confirm whether what I will 
>> need will be possible or not.
>>
>> If it sounds like it is I can lay out the use case in more detail.
>>
>> By way of background, I have a project with multiple (external) images. 
>> When a visitor comes to the TW online I want them to see ONE randomly 
>> selected image presented via a modal. 
>>
>> Important to understand is that *this is NOT a randomly selected Tiddler* 
>> (which a gizmo by Tobias Beer does well already). 
>>
>> Rather, the modal initiation should dynamically create a path to a 
>> randomly selected external graphic file that the modal displays (obviously 
>> only within the range of what is available). The range for the image to 
>> randomly pick is currently "0001" to "4000"---with full-file names like: 
>> "fw3022.jpg".   
>>
>> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
>> doesn't need to be a lightweight Lightbox). 
>>
>> I hope this is clear enough.
>>
>> Please ask me to clarify if it is not.
>>
>> Many thanks
>> 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/9674af2f-b765-4f9c-8d1e-4b6654376695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
I assume you're thinking of using Tobias' random solution ? His is based on 
selecting tiddler titles. Haven't tried it, but assuming you could 
construct a massive filter like:

\define reimage() C:\mypath\fw_$(num)$.jpg
<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >
<$image source=<>/>

> Ciao tutti
>
> This is an early query to see if anyone can confirm whether what I will 
> need will be possible or not.
>
> If it sounds like it is I can lay out the use case in more detail.
>
> By way of background, I have a project with multiple (external) images. 
> When a visitor comes to the TW online I want them to see ONE randomly 
> selected image presented via a modal. 
>
> Important to understand is that *this is NOT a randomly selected Tiddler* 
> (which a gizmo by Tobias Beer does well already). 
>
> Rather, the modal initiation should dynamically create a path to a 
> randomly selected external graphic file that the modal displays (obviously 
> only within the range of what is available). The range for the image to 
> randomly pick is currently "0001" to "4000"---with full-file names like: 
> "fw3022.jpg".   
>
> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
> doesn't need to be a lightweight Lightbox). 
>
> I hope this is clear enough.
>
> Please ask me to clarify if it is not.
>
> Many thanks
> 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/417fccac-c7b4-4def-bf7a-5c898e02a371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.