[tw] Re: Pouch database: include it in the download mechanism

2015-05-30 Thread Richard Smith
Hi Danielo,

Thankyou for the explanation. I understand much better now and agree that 
it's potentially very useful. I look forward to seeing it.

I will read some more about pouchdb and how it gets synced to remote server 
- it would be great to have a reliable, roll-your-own dropbox/evernote 
replacement. I've also been playing around with some of Jed's stuff, which 
is kind of related.

We can even imagine that one day, someone signing up for heroku or AWS or 
similar services might be able to install a default TW environment, that 
contains all the clever stuff you and everyone else are working on, to use 
as a reliable home for digital content and a 'social media' node/mail 
server etc. (getting carried away with ideas beyond my current capabilities 
again!)

Regards,
Richard

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/230f0305-dbeb-4b02-9fd9-a226b3a7690b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Generating HTML attribute strings from wikitext?

2015-05-30 Thread Richard Smith
Hi Evan,

It's not really an answer to your question but if you want something that 
will work now, you might try this;

define a macro;

\define insertsvg(path)

  

\end

and call it using the macrocall syntax

<$macrocall $name="insertsvg" path={{myPath}}/>

seems to produce the desired result - 


but doesn't really answer your question.

Regards,
Richard

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/58cbcad1-b8a2-4981-a58f-38b7567754e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: node.js on android tablet

2015-05-30 Thread Richard Smith
Hi Crash,

Personally, I use dropbox to store any TWs that I want to keep in sync 
across multiple devices. That way I don't have to remember to save/sync 
anything manually. I use a mac and a windows machine and not android.

If I want to run the node.js version on both of my machines, I can still 
generate a single file and use it just as a way to keep the two in sync.

The other alternative, of course, is to expose the node server and connect 
to it from the tablet, but that depends whether the tablet will always have 
an internet connection.

As for Node on Android, the answer seems to be 'possible but difficult' 
- 
http://oguzbastemur.blogspot.com.au/2015/03/nodejs-truly-on-android-and-ios.html
 

Personally, I think that a really easy way to edit and get things into a 
single Tiddlywiki from multiple devices is a 'killer feature' that would 
make it obviously more useful to a huge new group of people. ie; you love 
evernote because you can trust it to 'just work' and everything will be 
stored in one place, but wouldn't it be great to pattern that information 
in arbitrarily complex ways depending on the requirements of your task(s).

Your own use-case is particularly fascinating to me. I have been reading a 
lot lately about the 'getting things done' methodology 
- http://gettingthingsdone.com/ - which I had previously dismissed as some 
gimmicky business thing, but the gentleman who wrote it is very persuasive 
in interviews about the benefits of creating for ourselves an 'external 
brain' to take over the tasks that otherwise weigh on our internal brain, 
and for which it is not well-suited to begin with. He stresses that for us 
to trust the external brain, it must basically be 100% reliable - ie; any 
information we put into must be available when we need it. My experience of 
tw in this respect is really, really good - I've never lost any data, 
except through my own stupidity, in two years of constant use with tw5. The 
only problem I ever have is that I end up with too many wikis and too many 
unfinished projects and everything is consequently always in a bit of a 
mess - to be fair, this is a pretty good reflection of the inside of my 
head but I think I need to figure out some way to organise things more 
effectively, in order to find some clarity.

I hope you'll let us know what you get working.

Regards,
Richard

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2612d75f-30ae-448a-a3b6-dcddf786ef37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: node.js on android tablet

2015-05-30 Thread Crash Pop-Quiz
Thanks for your input and suggestions. I was hoping that there was some 
method to port node.js to the Android platform. I have come to love the one 
tiddler - one file feature enabled through node.js. Thanks again.


On Saturday, May 30, 2015 at 3:38:11 PM UTC-4, Crash Pop-Quiz wrote:
>
> I lean heavily on TiddlyWiki to compensate memory issues that are a result 
> of having Parkinson's. I cannot quantify what TiddlyWiki has provided to 
> me. I want to thank everyone that has participated in creating this 
> incredible aid.
>
> When at home I use TiddlyWiki with node.js running on my Mac. I would like 
> to move everything over to my Android tablet, which would enable me to have 
> TiddlyWiki with me wherever I go.
>
> There was a time when I could work through this transition. Where I could 
> figure out how to move node.js to my tablet. That time is long past. Those 
> skills have been taken from me.
>
> Which brings me to this request. I have a Samsung Galaxy Tab Pro 12.2 
> tablet running Android v4.4. Could someone help me move TiddlyWiki along 
> with node.js to my tablet? Are there a set on instructions that I may be 
> able to follow?
>
> Thanks in advance for your help.
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/18d47362-4725-4e40-8d95-dd47193b1d8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: node.js on android tablet

2015-05-30 Thread 'Mark S.' via TiddlyWiki
Hello Crash,

I use Cheetah sync to synch my TW file with Android. Cheetah runs a file 
server on the desktop computer. When I'm going to be using the tablet, I  
run the synch (which I previously set up) and then refresh in the Firefox 
browser on the tablet. When I'm done, and if I have made any changes, I 
synch again and refresh FF on your desktop. This 2-way synch requires the 
full $4 application. Being able to synch things without scrounging around 
for a cable or having to remember complicated settings seemed worth it.

Cheetah makes a desktop server for Mac as well as for PC. I assume it works 
equally efficiently. The main thing is to check that the synch ran the way 
you expected it to before changing platforms.

In my experience, TW on small devices is slow, especially for input. For 
keeping track of small notes without images (though you can link to images) 
there is Simplenote. It synchs really fast without extra steps and is 
available on all platforms. You can type into it's notes as fast as your 
device will let you. It doesn't slice and dice data the way TW does, but if 
you're trying to simplify, it might be the way to go.

HTH
Mark


On Saturday, May 30, 2015 at 12:38:11 PM UTC-7, Crash Pop-Quiz wrote:
>
> I lean heavily on TiddlyWiki to compensate memory issues that are a result 
> of having Parkinson's. I cannot quantify what TiddlyWiki has provided to 
> me. I want to thank everyone that has participated in creating this 
> incredible aid.
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6f5478a7-edf6-4094-8127-2cbccaba0642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Generating HTML attribute strings from wikitext?

2015-05-30 Thread Evan Balster
Hello, all --


Is there a simple way to use plaintext data from wikitext, which can then 
be fed into HTML (or SVG) attributes?  If not, could I lobby for one?

The gulf of execution here looks like this:



<$set>
*  *contrary to what the docs suggest 
*, this is a 
text reference and not a transclusion, and silently fails.*



I understand why rendering WikiText to attribute strings could be a massive 
headache for widgets, but I suspect that reasoning doesn't apply to HTML.


Context:

After using TiddlyWiki classic as a notetaking format for a few years, I 
upgraded to TW5 a few months ago and have been going nuts with the 
automation features.  I have a somewhat complex story wiki, and it has been 
*very* helpful for eliminating information redundancy through transclusion, 
generating chronologies and character lists, et cetera.  My latest pursuit 
is finding a way to generate visual timelines and genealogies, and SVG 
generation seems to be the best approach.

The lack of wikitext parsing in attribute string macros has tripped me up 
many times before, and in this case the need to perform indirect 
transclusions (ideally with the conditional logic and default values I use 
elsewhere!) is making what I want to do very difficult.  I'm also lamenting 
the apparent impossibility of using <$list> to generate SVG paths.

As a general bit of TW5 feedback, it took me a *long* time to grasp the 
complex relationship between macros, widgets and transclusions -- and as 
you can imagine, I'm still learning.  :)

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f13d7e5c-eed0-4ed9-8116-80ea37d72d03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: node.js on android tablet

2015-05-30 Thread Danielo Rodríguez
Hello Crash,

My grandpa suffers Parkinson also, so I know how bad this illness is. There 
is no node version for android. Fortunately tiddlywiki can work without any 
node backend. Your best (and simplest) bet is to use the Firefox browser on 
your tablet and install the tiddlyfox addon for Firefox. It will allow you 
to edit and save the wiki on your tablet, if that is your objective. If you 
only need to read your wiki, then any browser is fine. To get a copy of 
your wiki with all the content just click on the download icon on the right 
sidebar (the circle with a tick inside). It will ask you for a place to 
download a file with html extension, that file is a copy of your wiki. Then 
just copy that file to your tablet

Hope that is enough.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/21a93e0a-fa30-498c-9aad-4011ece8fc94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] node.js on android tablet

2015-05-30 Thread Crash Pop-Quiz
I lean heavily on TiddlyWiki to compensate memory issues that are a result 
of having Parkinson's. I cannot quantify what TiddlyWiki has provided to 
me. I want to thank everyone that has participated in creating this 
incredible aid.

When at home I use TiddlyWiki with node.js running on my Mac. I would like 
to move everything over to my Android tablet, which would enable me to have 
TiddlyWiki with me wherever I go.

There was a time when I could work through this transition. Where I could 
figure out how to move node.js to my tablet. That time is long past. Those 
skills have been taken from me.

Which brings me to this request. I have a Samsung Galaxy Tab Pro 12.2 
tablet running Android v4.4. Could someone help me move TiddlyWiki along 
with node.js to my tablet? Are there a set on instructions that I may be 
able to follow?

Thanks in advance for your help.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1cf90323-750d-405b-9146-293e9ebee9fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: @Danielo - TiddlyDrive, pouchdb...

2015-05-30 Thread Danielo Rodríguez
Hello again Mat,

I don't know if I mentioned this, but I have plans to create a tiddlywiki 
flavor for micro blogging using couchdb. The idea is to have two wiki 
files, one without any edition capability (read only), and a normal TW file 
(full featured). The advantage of this is that you use the full featured TW 
to edit and create content, without worrying about how to save it without 
edition capabilities or to "publish" it. You just write your tiddlers, they 
are synchronized to the database and they are automatically available on 
the "published" edition. Couchdb allows you to define different levels of 
access, you don't have to worry about anybody using the "console" or any 
other method on your read only copy because they will need write access.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d661be3f-b54d-4242-83e9-03d664d7d4e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Pouch database: include it in the download mechanism

2015-05-30 Thread Danielo Rodríguez


El sábado, 30 de mayo de 2015, 14:07:00 (UTC+2), Richard Smith escribió:
>
> Hi Danielo,
>
> It seems to me like the database tiddler should be deleted 
>
I agree
 

> - because it will be re-created if the process is repeated, right? And 
> it's useless while the wiki's open.
>
I'm not sure what do you mean. Do you mean that If you download again the 
wiki using the appropriate method it will be generated again? if so, yes, 
that is correct. But I have plans to provide several download methods, so 
once you have generated the "databaseTiddler" you can just choose another 
download method that saves the wiki without re-packing the database. 
Anyway, I think the most reasonable way is to delete that tiddler like TW 
deletes the import tiddler. 
 

>
> Do you mean that pouchdb will contain all of the tiddlers, or a separate 
> db of some kind? 
>
Yes, exactly. That is the point. At the end, this is a sync adaptor, and 
when a sync adaptor is available TW saves the tiddlers through it. In this 
case pouch saves the data in the LocalStorage DB of the browser. It also 
allows you to sync to a remote server.
 

>
> What would happen if you opened the file in a browser that doesn't support 
> pouchdb? 
>
To be precise, is not pouchdb what is not supported, pouchdb is just a 
library. Pouchdb has fallback mechanisms to use whichever database the 
browser provides. But, if none local database is available then pouchdb 
will return an error, the database will not be created and the sync adaptor 
will not become active. I have plans to provide several tools to interact 
with the local database: Export database as a JSON file, import a JSON 
databse file to the local database  and so on. I can provide a method to 
unpack a database tiddler as a collection of normal tiddlers to the current 
wiki.
 

>
> Will it be complicated to merge the databases later?
>

I have to experiment with it, but pouchdb provides revisions numbers, so in 
case of conflict  the tiddler/doc with the highest revision number wins. 
This should happen silently. Mi idea is to only pack the last revision of 
each tiddler.

>
> Regards,
> Richard
>

Thank you very much for your feedback Richard. 

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ebabc5c-db5b-4df8-bf38-c259b626552b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Help Sorting a treeview

2015-05-30 Thread Arc Acorn
The more I tinker with this the more I think that this may require a core 
modification. 
Since it seems like the core issues is how: store.getTaggedTiddlers();
gathers it's list of tiddlers. 

On Wednesday, May 27, 2015 at 3:08:07 PM UTC-7, Arc Acorn wrote:
>
> This is the plugin I'm using:
> http://dots.tiddlyspace.com/TreeviewPluginPlugin2
>
>
> As of now trees with leading numbers sort like:
>
> 1 10 100 11 12 13 2 3 4 5...
>
> I know the reason is how strings are sorted and a naturalsort function 
> needs to be worked in:
> eg: 
>
> function naturalSort(ar, index){
> var L= ar.length, i, who, next, 
> isi= typeof index== 'number', 
> rx=  /(\.\d+)|(\d+(\.\d+)?)|([^\d.]+)|(\.(\D+|$))/g;
> function nSort(aa, bb){
> var a= aa[0], b= bb[0], a1, b1, i= 0, n, L= a.length;
> while(i if(!b[i]) return 1;
> a1= a[i];
> b1= b[i++];
> if(a1!== b1){
> n= a1-b1;
> if(!isNaN(n)) return n;
> return a1>b1? 1: -1;
> }
> }
> return b[i]!= undefined? -1: 0;
> }
> for(i= 0; i who= ar[i];
> next= isi? ar[i][index] || '': who;
> ar[i]= [String(next).toLowerCase().match(rx), who];
> }
> ar.sort(nSort);
> for(i= 0; i ar[i]= ar[i][1];
> }
> }
>
>
>
> However I can't for the life of me figure out how to incorporate the 
> natural sort function into the treeview plugin 
> Any help would be greatly appreciated.
> . 
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5086c06c-7365-43d2-862b-2673bcc59f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: @Danielo - TiddlyDrive, pouchdb...

2015-05-30 Thread Danielo Rodríguez
Hello Mat,

Unfortunatelly tiddlydrive does not work currenctly because google has 
changed (again) it's apps-script API. Fortunately, if you are interested in 
a similar configuration you can use the couchdb adaptor (note I wrote 
couch, not pouch). Tiddlydirve uses a backend, a google's one but a backed 
at the end. You can use any of the many free couchdb services to run a 
similar configuration. I recommend you cloudant, because it is easier to 
manage and has a big free quota. You can host your html file wherever you 
want, dropbox public folder, tiddlyspot, github-pages, even in your couch 
database as an attachment. Then you configure the adapter to point to the 
database of your choice and it will work as long as your couch service has 
CORS enlabed (cloudant has).

Regarding my own domain, it is a unexpected but welcome side effect. I have 
my main GitHub page with a CDOMAIN pointing to my own domain. Because of 
this, all my github projects pages are shown under the same domain. 
TiddlyDrive is one of those projects.

As you know, I have been working on the couchdb repo and it is easier than 
before to use it, anyway, if you need help setting up you own couch 
service, let me know if I can help you.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9c5e84c0-a2fb-4f9a-8b89-f86c66b0b8c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] @Danielo - TiddlyDrive, pouchdb...

2015-05-30 Thread Mat
Danielo, you're really working on cool things. Unfortunately they're much 
"above my level" so I have some basic questions. I'll post them here 
instead of hijacking your other threads;

On a small scale, I'm hoping for a way to let visitors add 
metadata/comments without the use of a traditional dynamic server. Instead, 
I hope the data could be stored in e.g Google Drive or similar. I 
understand there are limitations on "running code" from within the Drive 
space.  

At the same time I like tiddlyspot, so it would be nice if the TW itself 
can be stored there. In other words, visitors go to X.tiddlyspot.com and 
add meta-data (e.g user created tags) that gets stored in my Drive and this 
metadata is also fetched *from *my drive so that one visitor can see anther 
visitors metadata.

On a community scale, I'm hoping for some kind of aggregation of meta data. 
E.g to make lists of plugins that show the collected reviews.


Do your projects touch on any of these things?
The Pouchdb, does it still require a common server to be used or would it 
work from Drive/Dropbox/...?
And TiddlyDrive , I 
notice you run it from your own domain. Is this required? Again, can a user 
put all necessary components directly in Drive?

Would Pouchdb be of use for TiddlyDrive?

Thank you. Again, sorry these are such total noob questions.


<:-)
TWaddle.tiddlyspot


-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bf964936-a1e6-4b35-b218-dd5077c010e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Pouch database: include it in the download mechanism

2015-05-30 Thread Richard Smith
Hi Danielo,

It seems to me like the database tiddler should be deleted - because it 
will be re-created if the process is repeated, right? And it's useless 
while the wiki's open.

Do you mean that pouchdb will contain all of the tiddlers, or a separate db 
of some kind? 

What would happen if you opened the file in a browser that doesn't support 
pouchdb? 

Will it be complicated to merge the databases later?

Regards,
Richard

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1eda378d-fd9f-4b48-9075-d882c13eba0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.