LessBackupsPlugin

95 views
Skip to first unread message

stuckagain

unread,
Dec 4, 2012, 5:57:09 PM12/4/12
to tiddl...@googlegroups.com
I am using FF17 and TiddlyFox AddOn. However coincidentally the LessBackupsPlugin (http://mptw.tiddlyspot.com/#LessBackupsPlugin) has stopped working. Is this connected to the change to Firefox?

Help please!

Yakov

unread,
Dec 5, 2012, 7:52:57 AM12/5/12
to tiddl...@googlegroups.com
Hello,

yes, that's the problem with FireFox. The plugin you mentioned uses enablePrivilege method which is unsupported in FireFox since v17 (and since v15 you can't allow this to work for new TiddlyWikis).

Basically, this is the reason why TiddlyFox was created. Jeremy said that TiddlyFox will support importing and such things too, but this will require some time.

On the other hand, the LessBackupsPlugin won't work in its current approach even when TiddlyFox supports new things because the plugin calls enablePrivilege directly instead of using some TW core functions. I guess, the "open the file" section should be rewritten, but I'm not that good with this I/O stuff (and as for now that's a general issue, as I understand), so I can't help you with recoding the plugin. Though, there's a plugin by Jon [1] which seems imports, so it can give some ideas how to fix this; but this requires digging and coding anyway..

Best regards,
Yakov.


среда, 5 декабря 2012 г., 2:57:09 UTC+4 пользователь stuckagain написал:

stuckagain

unread,
Dec 10, 2012, 5:25:37 AM12/10/12
to tiddl...@googlegroups.com
Thanks Yakov. My coding is very poor, so it seems the solution for me is to downgrade to FF16 or try TW with Chrome. Thanks for the feedback.

PMario

unread,
Dec 11, 2012, 5:38:26 AM12/11/12
to tiddl...@googlegroups.com
Am Montag, 10. Dezember 2012 11:25:37 UTC+1 schrieb stuckagain:
Thanks Yakov. My coding is very poor, so it seems the solution for me is to downgrade to FF16 or try TW with Chrome. Thanks for the feedback.

I think LessBackupsPlugin was FireFox only.
-m

Yakov

unread,
Dec 11, 2012, 5:55:38 AM12/11/12
to tiddl...@googlegroups.com
According to the code, probably for FF and IE. And I suspect that it will require downgrading to FF 14 -- if with version 17 preferences.js is deleted. Though, it can probably be re-created with FF 14 and then used with FF 16.

вторник, 11 декабря 2012 г., 14:38:26 UTC+4 пользователь PMario написал:

PMario

unread,
Dec 11, 2012, 6:03:57 AM12/11/12
to tiddl...@googlegroups.com
> And I suspect that it will require downgrading to FF 14
Yea, the browser security / removing functionality issue bites us hard these days :) And using unsupported browsers imo isn't a solution for the long run.

I think it would be possible, to rewrite the plugin, to use TiddlyFox and the "core" save mechanism. But I didn't have a closer look.

-m

Daniel Baird

unread,
Jan 1, 2013, 10:58:32 PM1/1/13
to tiddl...@googlegroups.com
LessBackups uses a first-backup-in-each-period method that avoids ever deleting files, and also avoids having to always save multiple copies, that first occurred to me in the last-ish paragraph here: https://groups.google.com/d/msg/tiddlywiki/ARBheDSfpog/p3qyDAz_ETEJ

I'm pretty sure it could work without checking save dates (by recording the last saved period in a tiddler) so in theory it could use only the core save stuff and still work.

Who's up for it?

--
Daniel Baird
I've tried going to the XHTML <bar /> a few times, but it's always closed.

PMario

unread,
Jan 2, 2013, 8:56:39 AM1/2/13
to TiddlyWiki, Jeremy Ruston
On Jan 2, 4:58 am, Daniel Baird <danielba...@gmail.com> wrote:
> > I think it would be possible, to rewrite the plugin, to use TiddlyFox and
> > the "core" save mechanism. But I didn't have a closer look.
>
> LessBackups uses a first-backup-in-each-period method that avoids ever
> deleting files, and also avoids having to always save multiple copies, that
> first occurred to me in the last-ish paragraph here:https://groups.google.com/d/msg/tiddlywiki/ARBheDSfpog/p3qyDAz_ETEJ
Hi Daniel,
Nice to see, that you are still around.

I'm having a closer look now ;)
So you used the (now depricated) file access methodes only, to get the
lastModifiedTime, to calculate the expiry variable.

> I'm pretty sure it could work without checking save dates (by recording the
> last saved period in a tiddler) so in theory it could use only the core
> save stuff and still work.

IMO nope, if lastModified dates are stored in a tiddler you run into
synchronisation / consistency problems. It will be very hard to do it
right (eg: copy a file from one computer to an other one, where the
tiddler is invalid). I think a backups system needs to be reliable.

So for me the solution is, to convince Jeremy, to implement a
LessBackup(ish) algorithm.

Without the whole file stuff, it seems to be pretty simple. The only
thing to do, would be a nice TiddlyFox config page to enable / disable
it.

@jeremy
IMO A TiddlyFox config page is needed anyway ;)

-mario





PMario

unread,
Jan 2, 2013, 9:03:54 AM1/2/13
to TiddlyWiki
On Jan 2, 2:56 pm, PMario <pmari...@gmail.com> wrote:

> So for me the solution is, to convince Jeremy, to implement a
> LessBackup(ish) algorithm.
uups, backups are done be TW core. This was a bad idea :/ so more
thinking is needed.

-m
Reply all
Reply to author
Forward
0 new messages