[tw] Re: Chrome, white and access control

2014-03-17 Thread PMario
On Monday, March 17, 2014 3:13:32 PM UTC+1, Anton Aylward wrote:
>
> Trying to use Eric's "AttachFilePlugin" in Firefox leads to access 
> problems.  I've posted about that and am awaiting answers.
>


__All__ browser vendors removed the possibility to access the local 
filesystem, due to security restrictions. I think FireFox 16 was the last 
one, that could directly save TW. Now we are using TiddlyFox [1] AddOn to 
save a file TW with the latest browser. 

You could also use TiddlyDesktop  [2] with TWc. There's a intro video with 
TW5, but it should work with TWclassic too. 

have fun!
mario

[1] https://addons.mozilla.org/de/firefox/addon/tiddlyfox/
[2] https://github.com/Jermolene/TiddlyDesktop
[3] http://www.youtube.com/watch?feature=player_embedded&v=i3Bggkm7paA

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-17 Thread Anton Aylward

On 17/03/14 11:03 AM, PMario wrote:

On Monday, March 17, 2014 3:13:32 PM UTC+1, Anton Aylward wrote:

Trying to use Eric's "AttachFilePlugin" in Firefox leads to access
problems.  I've posted about that and am awaiting answers.



__All__ browser vendors removed the possibility to access the local
filesystem, due to security restrictions. I think FireFox 16 was the
last one, that could directly save TW. Now we are using TiddlyFox [1]
AddOn to save a file TW with the latest browser.


Yes I'm aware of the security problems that are the reason why the 
features were removed.  The removeal started much earlier, 12 or 13 IIR.


Yes I am using TiddlyFox, and yes I can save the TW file.

What I can't do is use the AttachFilePlugin to *READ* a graphics file 
from the file system to create the base64 encoded tiddler representation 
of the graphic.


Please note -- *READ*

Do I need to submit screenshots to make this point?

How can I use Eric's tool if I cant *READ* the file?

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-17 Thread Anton Aylward

On 17/03/14 11:03 AM, PMario wrote:



You could also use TiddlyDesktop  [2] with TWc. There's a intro video
with TW5, but it should work with TWclassic too.


I installed that.
I can open TW files
But nothing is clickable.

--
The future is taking shape now in our own beliefs and in the courage of 
our leaders. Ideas and leadership -- not natural or social 'forces' -- 
are the prime movers in human affairs.

- George Roche, A World Without Heroes

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-17 Thread PMario
On Monday, March 17, 2014 4:51:50 PM UTC+1, Anton Aylward wrote:
>
> What I can't do is use the AttachFilePlugin to *READ* a graphics file 
> from the file system to create the base64 encoded tiddler representation 
> of the graphic. 
>
> Please note -- *READ* 
>

AttachFilePlugin uses the 
"netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");" 
function, which has been removed. It doesn't matter, if you want to read or 
write ... accessing the local file system with these functions doesn't work 
anymore. 

Do I need to submit screenshots to make this point? 
>
nope
 

> How can I use Eric's tool if I cant *READ* the file? 
>
Atm. You can't.

-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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-18 Thread Anton Aylward

On 17/03/14 09:49 PM, PMario wrote:



How can I use Eric's tool if I cant *READ* the file?

Atm. You can't.


Is there any other way I can embed the small graphics/icons such as Eric 
and Tobias and others use and the ONE graphic I need as a map?


--
If it's a good idea, go ahead and do it. It is much easier to apologize 
than it is to get permission.

- Admiral Grace Hopper

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-22 Thread skye riquelme
Hi again... not sure why you need to embed the graphic(s). Obviously using 
the [img[...link  ]] function lets you display and play with a graphic 
inside a TW...it is a link to an imageyou can add extra control with 
Erics ImageSizePlugin...and he even has a ImageMapPlugin that magically 
allow you to create clickable imagessuch as maps... BUT all this uses 
links to existing files (...online or offline)links to images not 
images embedded...its the embed functions that got stuffed up by these 
security questionswhich means that great plugins like LocalDirectory 
LaunchApplication, AttachFillePlugin...don1t work anymore - with medern, 
updated browser versions.

Actually this brings up a small point. Especially in Erics site there are 
many great plugins that used to work, but now dont work (with recent 
browser versions)...and it not clear to newcomers which or why..maybe 
we need a short note in these tiddlers noting that they have this 
limitation/restriction. just a suggestion

Skye
 

Em terça-feira, 18 de março de 2014 09h28min51s UTC-3, Anton Aylward 
escreveu:
>
> On 17/03/14 09:49 PM, PMario wrote: 
> > 
> > 
> > How can I use Eric's tool if I cant *READ* the file? 
> > 
> > Atm. You can't. 
>
> Is there any other way I can embed the small graphics/icons such as Eric 
> and Tobias and others use and the ONE graphic I need as a map? 
>
> -- 
> If it's a good idea, go ahead and do it. It is much easier to apologize 
> than it is to get permission. 
> - Admiral Grace Hopper 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Chrome, white and access control

2014-03-22 Thread Eric Shulman
On Saturday, March 22, 2014 3:12:33 PM UTC-7, skye riquelme wrote:
>
> BUT all this uses links to existing files (...online or offline)links 
> to images not images embedded...its the embed functions that got stuffed up 
> by these security questionswhich means that great plugins like 
> LocalDirectory LaunchApplication, AttachFillePlugin...don1t work anymore - 
> with medern, updated browser versions.
>

Actually, *use* of embedded images still works just fine... 
AttachFilePluginFormatters extends the [img[...]] syntax to allow reference 
to embedded "attachment tiddlers".  The problem is in *creating* NEW 
attachments, which needs to read *binary* file content from the local 
filesystem.  That is the part that is blocked by the browser.

However... there IS a way to *manually* create attachment tiddlers

First, take a look at:
   http://www.TiddlyTools.com/#AttachFileSample

The format of this tiddler uses standard TiddlyWiki section syntax, like 
this:
--
!usage
{{{[img[AttachFileSample]]}}}
[img[AttachFileSample]]
!notes
example of encoded data attachment
!type
image/gif
!file
./images/meow.gif
!url
http://www.TiddlyTools.com/images/meow.gif
!data
data:image/gif;base64,R0lGO...
--

The sections are labeled "usage", "notes", "type", "file", "url", and "data"

The "type" section defines the MIME type for the attachement (e.g, 
"image/gif", "image/png", "image/jpg")
The "file", "url" and "data" sections are options, but at least ONE must be 
present.  The "file" section is for local filesystem references, the "url" 
section is for remotely stored images, and the "data" section is for 
embedded base64 encoded binary (e.g., the image file contents)  To display 
the image, AttachFilePluginFormatters first tries the embedded data (if 
any), then the local "file" reference (if not blank), then the remote URL 
(again, if not blank).  If 

You can create your own attachment tiddlers manually by making a copy of 
the AttachFileSample tiddler and then hand editing the information it 
contains.  The only tricky part is generating the base64 encoded image data 
itself.  There are several easy-to-use "base64 image encoder" tools online. 
 Typically, you just upload your image and it returns the encoded text 
result.  You can then copy/paste that data into the appropriate place in 
the attachment tiddler.  Note that the data section of the tiddler always 
starts with "data:image/gif;base64,", followed by the actual data.

Hopefully, this will give you enough to get started... let me know how it 
goes.

-e

-- 
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.
For more options, visit https://groups.google.com/d/optout.