[tw] TiddlyWiki in the Sky supports Classic :)

2017-10-13 Thread Arlen Beiler
Good evening everyone,

The new URL is: https://twcloud.github.io/dropbox/

I've updated TiddlyWiki in the Sky using a new mechanism that allows me to
support both Classic and Five. The new mechanism generates a blob URL
containing the selected file and the code needed for saving.

Every link now contains an actual "permalink" containing both the app
access type and the file path, so you can now bookmark specific files in
your account for easy access. The permalink includes the account id to make
sure you don't accidentally open a file in the wrong account.

Right-click on the link to copy it or open it in a new tab. You can also
drag it into your bookmarks. If you open it in a new tab, the current
access token won't carry over, so you will still need to be logged into the
same Dropbox account, just as if you were using the link from
somewhere else.

Sorry, the icons are simply gone for now, but it should be pretty obvious
what's a folder and what's an HTML file. Also, it is kind of beta, but I
was testing it and worked out a few more bugs this evening, so I'm pretty
confident now that everything is working.

The old URL still works and uses the old loading mechanism, so if you run
into any trouble, that one will still be there.
https://twcloud.github.io/tw5-dropbox/

As always, let me know if you run into any trouble.

The new URL is at the top of this email to avoid confusion :)

Enjoy,
Arlen

-- 
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/CAJ1vdSTa1UUPoNBzXFAa1yfFmAVd-RSBHRemq2sbMX2ZxpiyzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to Filter Using Range of Field Values ((less than, greater than)

2017-10-13 Thread Berne Campbell
I guess ultimately I want something like SQL, in SQL I can do multiple 
levels of sorting, and I can also run a function on input and then have 
that output be the input of another function. So I can do SELECT * FROM 
foobar WHERE (CAST(length AS NUMBER)) < 10 ORDER BY length, title DESC; <-- 
Probably incorrect SQL syntax but trying to illustrate what I mean.

I was thinking something like "[tag[foobar]has[length] 
let:pseudolength[int(length)] lessthan:pseudolength[10] 
sort[pseudolength,title]"  where pseudolength is a temporary field created 
by the let operator, and int(length) will convert a alphanumeric field into 
a numberic field (e.g. "10 feet" becomes 10, and it has type int), when 
sort comes along it can take multiple fields, and because the pseudolength 
field is of type int it sort it numerically, whilst title is sorted 
alphabetically. Something like this, or being able to specify some custom 
javascript like a callback for converting or sorting, would be nice.

On Saturday, 14 October 2017 06:31:59 UTC+11, Jed Carty wrote:
>
> I can see how we can do all of that other than the zero padding in just 
> wikitext, but without the zero padding the sort will break because it would 
> be an alphanumeric sort. Perhaps we need to make a padding filter, it 
> shouldn't be too difficult to implement and I think it has come up before.
>
> For anyone who doesn't know the details of the sorting, the problem is 
> that there are two types of sorting done in tiddlywiki, it can be numeric, 
> where things are ordered according to numeric values and 10 comes after 2 
> because the number 10 is greater than 2. The other sort is an alphanumeric 
> sort where 10 comes before 2 because the first character in 10 comes before 
> the first character in 2 when sorted in the order that the characters are 
> sorted in the character encoding used. If you have something that has both 
> numbers and letters in it than it can not be sorted using the numeric 
> method using built-in functions.
>

-- 
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/2a755632-df3b-47d2-9712-d860d81d66aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] privacy concerns for self-hosted wiki

2017-10-13 Thread TonyM
Rob,

What is your website host?. I have used .htaccess to secure folders and cpanel 
has a tool to protect folders.

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/01f6236f-5b19-4872-94d2-63c8d3cc42d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: privacy concerns for self-hosted wiki

2017-10-13 Thread PMario
On Friday, October 13, 2017 at 11:29:18 PM UTC+2, Rob Locher wrote:
>
> I have some privacy concerns.  Currently the wiki's only protection is its 
> "secret" URL; anyone who has the URL can edit the wiki.  
>

You should use https://... https://letsencrypt.org/ is the way to go 
here. Your hosting provider may have additional info!
 

> The username and password are pre-populated in the control panel.
>

IMO this in only there because your browser does it. ... So check your 
browser settings and have a look at your saved passwords. ... *Make sure 
you know them*, remove them and have a look at the panel again. 

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/1a2d3836-0dcd-4cbf-aa83-86f8f7040491%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] privacy concerns for self-hosted wiki

2017-10-13 Thread Rob Locher
Greetings all,

I've just discovered TiddlyWiki, what an amazing thing!  It sure beats the 
collection of text files I'd been using.  Somehow I even managed to install 
a wiki on my website by uploading the wiki file itself and store.php.  Now 
I can access my notes from work, hurrah!

I have some privacy concerns.  Currently the wiki's only protection is its 
"secret" URL; anyone who has the URL can edit the wiki.  The username and 
password are pre-populated in the control panel.  It seems as though it 
could be just a matter of time before some bot discovers the wiki and spams 
it.  (I had a bad experience once as the webmaster of a CMS-based website.)

Ideally I'd like visitors to be required to authenticate before even seeing 
the wiki.  I definitely need some sort of control so that not just anyone 
can save it.  Does anyone have any suggestions?

- Rob

-- 
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/ba3c9739-3a62-4537-b692-503c318be4fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to Filter Using Range of Field Values ((less than, greater than)

2017-10-13 Thread Jed Carty
I can see how we can do all of that other than the zero padding in just 
wikitext, but without the zero padding the sort will break because it would 
be an alphanumeric sort. Perhaps we need to make a padding filter, it 
shouldn't be too difficult to implement and I think it has come up before.

For anyone who doesn't know the details of the sorting, the problem is that 
there are two types of sorting done in tiddlywiki, it can be numeric, where 
things are ordered according to numeric values and 10 comes after 2 because 
the number 10 is greater than 2. The other sort is an alphanumeric sort 
where 10 comes before 2 because the first character in 10 comes before the 
first character in 2 when sorted in the order that the characters are 
sorted in the character encoding used. If you have something that has both 
numbers and letters in it than it can not be sorted using the numeric 
method using built-in functions.

-- 
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/b6c81ff4-b384-4175-bde7-93ee54f9b38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Import website as tiddlers

2017-10-13 Thread Diego Mesa
Hello,

I frequently check Cosma Shalizi's "Notebooks": 

http://bactra.org/notebooks

I find myself copying links from them, and copying/pasting etc. I thought 
it would be excellent for me to "import" each notebook into its own tiddler 
in my wiki, but I have no idea how to accomplish this. For one, Im using 
the single file version, which I like. Second, I'd have to change all of 
the  calls to "$$". Third, I'd have to change all links like 
"bactra.org/noteboks/***" to be [[***]]", but keep all other bactra and 
non-bactra links intact. Fourth, I'd have to develop this script in such a 
way as to be able to be periodically run and import new changes to 
notebooks, while preserving the changes I've made to the tiddlers in the 
meantime. 

This seems like quite a task. Does anyone know of anything similar done in 
the past that I can use as a starting off point?

Thank you,
Diego

-- 
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/5ba0fa97-f512-4439-ac25-037ac8136105%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to Filter Using Range of Field Values ((less than, greater than)

2017-10-13 Thread Jed Carty
Sorting based on multiple criteria in sequence doesn't work well because at 
least Chrome doesn't use a stable sorting algorithm (this is it may change 
the order of items even if they all have the same sort value). This cause a 
lot of confusion when I was working on TWederation and I ended up having to 
make a custom TOC macro in javascript to handle it.

I will hopefully have time to update all my plugins and try to either get 
the a plugin with them into the main plugin libraries or get it into the 
core. But the way things are going that will take a long time for me to do.

A tool to treat input with more than just strictly numeric contents as a 
number would be nice but I am not sure how it would be used. Because it 
would need to be used internally in other things, like for these filters, 
it would either need to be included in every place it could be used or we 
would need to make it as a plugin and have other plugins depend on it.

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


Re: [tw] Re: Bad zoomin.js working with long tiddlers.

2017-10-13 Thread TonyM
 Archizona V

You site is impressive and extraordinary it is in tiddlywiki, I would love 
to know more, incidentally I am building a WordPress / Divi / WooCommerse 
Shop right now.

*Thomas,*

I am grateful for your answer and see no problem with your English. I am 
quite happy to be set strait and will change my mind on evidence 
(incidentally I am a modern skeptic, who works hard to be a critical 
thinker).

I do not want to seem like I am hijacking the thread.

To clarify

I understand what you have told me, Interestingly I have being involved 
with computers since before 1980, and I am aware that the key to the 
internet is the same as mainframe computers of the past, basically the 
server sends and it receives (get and Put), and these can be moments or 
hours between, so each put and get needed to somehow stand on their own, 
and a server does not care if you respond except in so far as it may 
maintain a session status, basically a server gets on with other work and 
only looks at what you ask it to, when we ask the server to do something  
(a Put).. I understood that in TiddlyWiki, that the terminal / browser and 
code in tiddlywiki are feature rich and and can do a lot on their own 
between put and get (this occurs every save for single files, and every 
tiddler under nodejs or noteself with couch db). Most of the interaction / 
response a user gets in tiddlywiki is from the local environment 
responding, not the server.

In my case I have equated a tab in a browser with a session, what you seem 
to be suggesting is the session is in the browser behind the tabs, and that 
the browser back and forward, and history are ways of jumping around urls 
within that session even if the tab changes in some way?

What is not clear to me is as long as I make a change and it has not saved 
yet, when I do save it (except for NodeJS and Noteself), tiddlywiki writes 
the whole wiki back to the server, If you edited and saved something in 
between me I would overwrite your changes. like wise if I try and navigate 
to any other address, and I took this to mean also asking the browser to go 
to a new address outside the tiddlywiki (and inside for that matter) It 
will not permit me to leave if I have a save outstanding.

Of course If I remain in one tab, where I use tiddlywiki to navigate, and 
it updates the address bar, I am not actually leaving the tiddlywiki 
session, and I am not forced to save. It remains in the save session. Of 
course we can add to this the ability of modern browsers to maintain a 
website session across browser restarts in some cases (like noteseff 
without a db).

Now back to Archizonas first question why would tiddlywiki maintain a 
scroll state etc... for every url in a browsers session, 
when it needs to respond dynamically to the users input? Or is this just a 
fault of the way we change focus within the tiddlywik?

I hope my English is clear enough, and its my mother tongue.

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/09119427-dde6-4f87-b7ac-9da47fd4ed0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] listing/transcluding snippets of highlighted text

2017-10-13 Thread Thomas Elmiger
Hi Stefan and Mat

My Extract macro should do the job. In a recent discussion we pointed out, that 
the documentation is lousy (sorry!), but the discussion itself should be 
helpful. 

https://groups.google.com/forum/m/?utm_medium=email_source=footer#!msg/tiddlywiki/u-Dq4CywvD0/vrL_gfB0AwAJ

Cheers,
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/53eb06b0-a1bf-4b4b-a846-3432d38cd2f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] listing/transcluding snippets of highlighted text

2017-10-13 Thread Mat
Stefan, I'll look in to this but I can't say when. I'm already involved in 
a few other things here so it may take time. Did you have a chance to look 
up Thomas Elmigers version of this? It may be his extract macro but I'm not 
quite sure. @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/ce71963c-7e6d-412a-a091-d728ae76b826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to Filter Using Range of Field Values ((less than, greater than)

2017-10-13 Thread Berne Campbell
Birthe C was right, I had not reloaded the browser - I saved the my wiki, 
the download has a " {x}" appended, I copied the latest saved one over the 
original and re-opened it. The filter is now working as expected. This is 
awesome. I'm very happy to be able to filter numerically. I think this 
should be in the core TW5.

I already had a "has[length]" in my filter. If it take it out it lists all 
those with no length field and by those that have one less than X.

I can sort by length (nlength). I'd like to sort tied lengths by name but I 
haven't worked out how to do that yet. I tried sort[title]nsort[length] but 
I can see that doesn't work as I desired.

I also noticed that if I have tiddlers with lengths that are purely 
numeric, e.g. 11' (11 foot), then those tiddlers won't show up. I can take 
a look at the code and see how it was done. I can take a look at your code 
and learn how it works and then tweak it or add some new functions. I'd 
like to be able to chain operations so that I can first convert the length 
field stripping all non-numberic characters, then cast it to a number, and 
then sort on that calculated value. That might be not be possibly though.

Thanks for all the help everyone, especially Jed for writing the plugin and 
point it out to me. I can now do something I really wanted to do and was 
struggling with.


On Friday, 13 October 2017 03:58:44 UTC+11, Mark S. wrote:
>
> But your examples do work when brought into a recent TW5 file. Whether the 
> plugin works  with Berne's data ... we would need to see it.
>
> On Thursday, October 12, 2017 at 9:05:42 AM UTC-7, Jed Carty wrote:
>>
>> It looks like if the input tiddlers don't have the field in question it 
>> will return them all. if you add has[length] than that may help.
>>
>> I am not sure that these filters actually work well, they were an 
>> experiment that I made a while ago so I don't remember much about the code.
>>
>
>
>

-- 
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/88766652-0c8d-43ec-9439-c5fa4d581182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] listing/transcluding snippets of highlighted text

2017-10-13 Thread Stefan Spycher



Hi Mat, 

i gave it another try, removing the whitespaces. unfortunately without an 
improvement:



Am Donnerstag, 12. Oktober 2017 15:49:45 UTC+2 schrieb Mat:
>
> @Stefan
>
> if I recall (it was a while ago!), the start- and end markers must be on 
> the format " & Text" and "End Of Text&& " respectively, i.e note the 
> spaces and lack of spaces surrounding the "&&".
>
> <:-)
>

-- 
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/05ed450c-b216-422a-9518-0a098de11c19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Bad zoomin.js working with long tiddlers.

2017-10-13 Thread Thomas Elmiger
Hi Tony,

Technically, the tupper page, tiddlywiki.com and many TW pages I made are
all the same: they are single-page web applications. As a user you can load
one single HTML page and you have everything. Then you can disconnect from
the internet and still use the website or navigate through the shop and
everything just works until you close the browser tab.

Heeg/tupper is a really great and innovative example of the potential TW
has concerning presentation. It hides it's TW nature from visitors … while
a savvy TW user can hack it, go to the control panel, activate some buttons
and edit content and even prices. It looks like read-only, but it isn't. It
is dynamic and editable and it hides it very well ;–)

Now about the browser navigation buttons. A single page web app like TW5
does not reload the page, even if the URL changes. Think of it like
internal links or anchors on the same page. They take you to another
section of the same page. Usually, browsers reflect this by appending the
name of the anchor to the url of the page: pagename.html#anchorname. In TW
you can choose if you want this or not and TW will instruct the browser
accordingly. (The first setting I mentioned in my previous post.) The same
is true for including this address in the browser’s history list: with TW
you can choose. (The second setting.) – No matter what you choose, the
browser will not leave the page and all edits are save, even if the app
presents different content after every click and the #anchor segment of the
URL is updated. This is also true if you go back and forth in the browser
history using the browser buttons!

You would be right if we were talking about static websites which TW also
can produce/export but this is not the case with our examples here.

No intent to set you straight – just trying to explain how single page
Tiddlywikis work :–)

I hope I could make my points clear even if my English is not the best.

Cheers,
Thomas


TonyM  schrieb am Fr. 13. Okt. 2017 um 03:13:

> Thomas,
>
> I stand to be corrected, but clearly in the above example are we
> discussing https://Tupper.online
> 
> is a read only published website, which is substantially different to a
> dynamic editable tiddlywiki. The first question did not make this
> differentiation.
>
> The only thing I dispute, which I expected a newbie to be mistaken is the
> browser back button in writable tiddlywiki.
>
> If auto-save is on and permalinks displayed this may be achievable but
> when a single file wiki is in use back and forward force the browser to
> load the whole wiki again on each action. Changes not saved will not be
> found after back or forward. As nice as save on every action is when you
> have large wikis or data tiddlers, turning off auto-save is needed, and you
> must manually save before leaving the page.
>
> In the examples discussed, this is clearly tiddlywiki as a website (prior
> to web 2.0) , I agree totally that it would be ideal if it behaves like any
> other website and honors the forward and back buttons as navigation tools,
> but surely this needs to be a static website, lest you load the whole wiki
> every-time?
>
> If you can set me strait on the question and issues please to so.
>
> Tony
>
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/O9XhXAd0UmU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/8792c1be-5c7d-4e0c-97ba-90505cd3d2e5%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/CALXLrTgq2tFTQqx5_ieAGs5nw_NJchAnZznpaEQRhfeA5ddk_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.