Re: [tw] TW5 - Another RSOD suggestion

2017-03-11 Thread PMario
On Saturday, March 11, 2017 at 9:05:14 AM UTC+1, Jeremy Ruston wrote:
>
> As i've noted elsewhere "This is embarrassing" is not useful. You have no 
> need to be embarrassed on my behalf - or indeed, your own, in the rare 
> event that the error originates in TW core.
>
> I think I used that phrasing as a nod to a meme carried by Firefox and 
> others (see below). I’d be happy to ditch it; it is a bit folksy for my 
> tastes.
>

I can change the wording in PR #2799 
, if you want. .. but 
we have to be sure about the exact phrase, since it also affects all 
translations. 

I'd like to change the order of the arguments. eg: "We are sorry! To 
protect your data we highly recommend to restart TiddlyWiki."

-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/84f78626-fc6c-443c-aaa0-d89e3433d73c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 JS macros

2017-03-11 Thread PMario
On Saturday, March 11, 2017 at 6:50:06 AM UTC+1, tejjyid wrote:
>
> It seems that when I execute a JS macro with an unsupplied parameter, it's 
> set to "" rather than undefined. Is that always the case?
>

Yes. 

Macros return text and we need to be 100% compatible with wikitext macros 
. They work 
that way. 

-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/39653d8f-9e02-4269-9f4d-2255e6adc6e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Introducing a simple BarChart plugin

2017-03-11 Thread Jed Carty
I just released the BarChart plugin, it adds a simple widget that can be 
used to make progress bars or bar charts in tiddlywiki based on filters. I 
have some demos on the demo site here 
 showing its use as a progress 
bar, a simple one line stacked bar chart and a more normal multi-bar 
stacked bar chart.

I am planning on creating other simple data visualisation widgets later.

I made a purely wikitext version but it doesn't was much more complex to 
use and didn't have some features, like being able to give fewer colours 
than you have sections in your bar chart.

I wrote this instead of using d3.js or snap.svg or any of the other 
existing libraries because it is much simple and smaller and if you have a 
single use tiddlywiki and just want one type of visualisation this will not 
add much to your wiki.

The plugin is in the OokTech plugin library and the code is on GitHub, 
links are on the demo site or on the directory site here 
.

I am going to work on this a bit more to make more options for displaying 
the progress, the inspiration come from a request and this doesn't exactly 
do what was requested so I will work on that a bit.

I also noticed that all the plugin library tiddlers in my plugins point to 
the http version instead of the https version and change it, so the OokTech 
plugin library should be available from wikis served on https sites now, if 
you have trouble you may need to reinstall a plugin manually to get tiddler 
for the https version of the plugin library.

-- 
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/b320decb-8719-4b9b-902c-8b311f2af51d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: FF plugins future (was Vivaldi Browser - Shameless Publicity)

2017-03-11 Thread Ákos Szederjei
My luck! :)

I think a good solution to the problem would be, as I do not see a how to 
resolve the "save file" debacle in the near future, is to have a place like the 
old TiddlySpace, where the work is saved on the server side. Perfect, no, it 
requires internet connection, but it would work on all platforms, but it beats 
the current save file situation.

Ok, I had too much time to think of the problem... :)

Ákos

On Freitag, 10. März 2017 17:58:13 CET @TiddlyTweeter wrote:
> darn nabbit. you added complications to the complication! :-)
> 
> On Friday, 10 March 2017 16:57:19 UTC+1, Ákos Szederjei wrote:
> > Thanks you for the link, but under Firefox 52.0 (32-bit) it does not
> > install,
> > it says "addon appears to be corrupt".
> > 
> > Ákos

-- 
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/1700697.SEODdcZcFS%40michael-pc.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: TW5 JS macros

2017-03-11 Thread Jeremy Ruston
JS macros can specify a default value for each parameter; otherwise you'll see 
"undefined" as the value. For example:
exports.params = [ {name: "title", "default": "My title"} ];
Note that the property name "default" must be in quotes because it is a 
built-in keyword.

Best wishes

Jeremy

---
Jeremy Ruston
jer...@jermolene.com
http://jermolene.com



--
Jeremy Ruston
jer...@jermolene.com
http://jermolene.com
> On 11 Mar 2017, at 09:33, PMario  wrote:
> 
>> On Saturday, March 11, 2017 at 6:50:06 AM UTC+1, tejjyid wrote:
>> It seems that when I execute a JS macro with an unsupplied parameter, it's 
>> set to "" rather than undefined. Is that always the case?
> 
> Yes. 
> 
> Macros return text and we need to be 100% compatible with wikitext macros. 
> They work that way. 
> 
> -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/39653d8f-9e02-4269-9f4d-2255e6adc6e9%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/F7C4212E-4CFC-4943-AFDA-772AF533AF8E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Vivaldi Browser - Shameless Publicity

2017-03-11 Thread 'Mark S.' via TiddlyWiki
People always think a new browser is faster, because they haven't loaded 
it's cache and memory yet like the old.

I used Pale Moon for awhile, but I found I got many more Red Screen Of 
Embarrassment messages. It seemed to give them even for things it didn't 
like in CSS settings, as if something in its memory was out of synch with 
the rest of the file.

Mark 

On Thursday, March 9, 2017 at 1:01:48 PM UTC-8, G.J.Robert wrote:
>
> I have switched to Vivaldi first, and than I found Pale Moon, which forked 
> from Firefox and will keep XUL/XPCOM addon framework which will keep 
> TiddlyFox alive. Also Pale Moon is much faster, energy/RAM-efficient than 
> Firefox 28+.
>
> @TiddlyTweeter於 2017年3月9日星期四 UTC+8上午2時14分02秒寫道:
>>
>> The added value of FIREFOX for TiddlyWiki is really only the brilliant 
>> TiddlyFox EXTENSION. It works really well. 
>>
>> But the problem is its getting harder and harder to run it as Firefox 
>> changes. 
>>
>> Right now I'm using Firefox Developer Edition simply because it lets me 
>> over-ride the strict signing rules to get Jeremy's perfectly innocent, 
>> excellent, TW auto-save add-on, TiddlyFox, working. 
>>
>> I think Mozilla are shooting themselves in the foot. Their lifeblood was 
>> extensions. And the future for TW auto-saving via browsers currently looks 
>> fragile.
>>
>> Best wishes
>> Josiah
>>
>> On Wednesday, 8 March 2017 18:38:53 UTC+1, Duarte Farrajota Ramos wrote:
>>>
>>> Those chrome extensions are great indeed. I am imagining it is something 
>>> along the lines of Download Router Vivaldi will one day have built in.
>>>
>>> Unfortunately those extensions don't work with Vivaldi, at least from my 
>>> testing I could not get Downloads Router to work. Although it is mostly 
>>> chromium based it probably introduces enough changes in the downloads area 
>>> that breaks those.
>>> Lets hope to see some improvements in that area in the future.
>>>
>>> For now I just use it as I did in Firefox, I don't have a default save 
>>> location and just manually browse to the required directory and overwrite 
>>> the file.
>>>
>>>
>>> On Wednesday, 8 March 2017 14:43:17 UTC, @TiddlyTweeter wrote:

 Chrome has these file SAVING EXTENSIONS that may be relevant, if they 
 work in Vivaldi:

 *Downloads Overwrite Existing Files*: 
 https://chrome.google.com/webstore/detail/downloads-overwrite-exist/fkomnceojfhfkgjgcijfahmgeljomcfk

 *Downloads Router*: 
 https://chrome.google.com/webstore/detail/downloads-router/fgkboeogiiklpklnjgdiaghaiehcknjo

 What is really needed is a combination of the both in one. It would be 
 a close second to auto-save such as we have in Firefox via TiddlyFox.

 BTW, it was* Riz* who first alerted me to the Chrome extensions. There 
 may be more I don't know of.

 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/c6fc87cd-2568-40af-b89e-ef4eb17a5c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Strategies for dealing with large TWs

2017-03-11 Thread Erwan

Hi,

In case anyone finds this thread later, it might be worth mentioning 
that extensively using tags puts a strain on large wikis. Using fields 
instead (everywhere where possible/relevant) can significantly improve 
the overall performance. see a case study at:

http://erwanm.github.io/tw-community-search/#TagsOptimizations

Erwan


On 26/01/17 14:00, Nick Gibbins wrote:

Hi,

I'm currently having difficulties with a rather large TW that I'm 
constructing, containing roughly 25,000 tiddlers (it's a specialised 
encyclopedia). Total file size is less than 20Mb; the majority of the 
tiddlers are small, but contain structured data in custom fields. I'm 
using TW version 5.1.13 and Firefox 50.1.0 under OS X 10.12.2. The 
machine I'm using has an SSD.


If I treat my TW as a single file, I get save times in excess of 120s 
(autosave is therefore not an option).


If I use node.js as a backend, opening or closing each tiddler 
typically takes around 50s (the server console suggests that much of 
this time is spent on the save task for $:/StoryList). During this 
time, the browser is unresponsive.


I also fairly often see the following error, typically when opening 
the TW when the server has already been running for longer than a few 
minutes.


RangeError: Maximum call stack size exceeded
at Logger.log ($:/core/modules/utils/logger.js:29:108)
at Syncer.dispatchTask ($:/core/modules/syncer.js:495:15)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:417:9)
at $:/core/modules/syncer.js:425:27
at $:/core/modules/syncer.js:505:4
at FileSystemAdaptor.loadTiddler 
($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:201:2)

at Syncer.dispatchTask ($:/core/modules/syncer.js:496:20)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:417:9)
at $:/core/modules/syncer.js:425:27
at $:/core/modules/syncer.js:505:4

Any and all suggestions would be welcome at this point, including "you 
fool, you're using TW for things that it wasn't designed for".


Thanks, Nick




--
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/ea3947a7-c49f-4102-9b2b-a24e05810f02%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/d9078c9d-0a28-58a5-8536-25049d85b94e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Vivaldi Browser - Shameless Publicity

2017-03-11 Thread BJ
at this point ff and chrome have implemented the new version of javascript, 
while pale moon is stuck in the past and will eventually stop working with 
new webpages. There is a long term support for ff (I have not tried it) 
which last for 12months and will be based on version 52
https://developer.mozilla.org/en-US/Firefox/Firefox_ESR


On Saturday, March 11, 2017 at 5:52:10 PM UTC, Mark S. wrote:
>
> People always think a new browser is faster, because they haven't loaded 
> it's cache and memory yet like the old.
>
> I used Pale Moon for awhile, but I found I got many more Red Screen Of 
> Embarrassment messages. It seemed to give them even for things it didn't 
> like in CSS settings, as if something in its memory was out of synch with 
> the rest of the file.
>
> Mark 
>
> On Thursday, March 9, 2017 at 1:01:48 PM UTC-8, G.J.Robert wrote:
>>
>> I have switched to Vivaldi first, and than I found Pale Moon, which 
>> forked from Firefox and will keep XUL/XPCOM addon framework which will keep 
>> TiddlyFox alive. Also Pale Moon is much faster, energy/RAM-efficient than 
>> Firefox 28+.
>>
>> @TiddlyTweeter於 2017年3月9日星期四 UTC+8上午2時14分02秒寫道:
>>>
>>> The added value of FIREFOX for TiddlyWiki is really only the brilliant 
>>> TiddlyFox EXTENSION. It works really well. 
>>>
>>> But the problem is its getting harder and harder to run it as Firefox 
>>> changes. 
>>>
>>> Right now I'm using Firefox Developer Edition simply because it lets me 
>>> over-ride the strict signing rules to get Jeremy's perfectly innocent, 
>>> excellent, TW auto-save add-on, TiddlyFox, working. 
>>>
>>> I think Mozilla are shooting themselves in the foot. Their lifeblood was 
>>> extensions. And the future for TW auto-saving via browsers currently looks 
>>> fragile.
>>>
>>> Best wishes
>>> Josiah
>>>
>>> On Wednesday, 8 March 2017 18:38:53 UTC+1, Duarte Farrajota Ramos wrote:

 Those chrome extensions are great indeed. I am imagining it is 
 something along the lines of Download Router Vivaldi will one day have 
 built in.

 Unfortunately those extensions don't work with Vivaldi, at least from 
 my testing I could not get Downloads Router to work. Although it is mostly 
 chromium based it probably introduces enough changes in the downloads area 
 that breaks those.
 Lets hope to see some improvements in that area in the future.

 For now I just use it as I did in Firefox, I don't have a default save 
 location and just manually browse to the required directory and overwrite 
 the file.


 On Wednesday, 8 March 2017 14:43:17 UTC, @TiddlyTweeter wrote:
>
> Chrome has these file SAVING EXTENSIONS that may be relevant, if they 
> work in Vivaldi:
>
> *Downloads Overwrite Existing Files*: 
> https://chrome.google.com/webstore/detail/downloads-overwrite-exist/fkomnceojfhfkgjgcijfahmgeljomcfk
>
> *Downloads Router*: 
> https://chrome.google.com/webstore/detail/downloads-router/fgkboeogiiklpklnjgdiaghaiehcknjo
>
> What is really needed is a combination of the both in one. It would be 
> a close second to auto-save such as we have in Firefox via TiddlyFox.
>
> BTW, it was* Riz* who first alerted me to the Chrome extensions. 
> There may be more I don't know of.
>
> 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/a5c1bbac-db5f-4b1a-b820-232bac959b53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.