Re: [Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-07-01 Thread Martin Langhoff
On Wed, Jul 1, 2009 at 3:08 PM, Tomeu Vizoso wrote:
> On Tue, Jun 30, 2009 at 19:41, Martin Langhoff 
> wrote:
>> Is there a better way to do this?
>
> If you go through the archives, you will find that this was discussed
> some weeks ago, I think it was Tony Forster who started the
> discussion.

True - thanks for the tip. I didn't find any specific workaround (but
I found one of my own, as I mentioned before).

> And we have tickets in trac as well.

Cool. I will create an additional ticket, related to file renames on a
USB drive. If I can find my way around the relevant code, I'll try to
prep a patch.

cheers,


martin
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-07-01 Thread Edward Cherlin
Better way: http://wiki.sugarlabs.org/go/Activities#Midnight_Commander

On Tue, Jun 30, 2009 at 10:41 AM, Martin
Langhoff wrote:
> I am trying to get leases.sig from the XS to the USB stick. On 8.2.x,
> Browse.xo saves the file as
>
>   File leases.sig from http://...
>
> ... two possible ways to move next.
>
> Copy and rename
>
>  1 - Insert (fat-formatted) USB stick, once mounted copy the file to
> the USB stick. Check on Terminal indicates that the file has the LFN
> we expect ("File leases.sig from http://...";).
>
>  2 - Switch to the 'USB disk' view of the Journal.
>
>  3 - Rename the file to leases.sig . A check from the commandline
> shows that the file has not been renamed. Oops?. The Journal only
> renames the metadata. Bug?
>
> Rename and copy
>
>  1 - Rename the file in the Journal to 'leases.sig'
>
>  2 - Insert (fat-formatted) USB stick, once mounted copy the file to
> the USB stick. The Journal reports that the file is called lease.sig.
> From terminal I can see that the file is called lease.sig.txt . Bug?
>
> Is there a better way to do this?
>
> cheers,
>
>
>
> m
> --
>  martin.langh...@gmail.com
>  mar...@laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
Silent Thunder (默雷/धर्ममेघशब्दगर्ज/دھرممیگھشبدگر ج) is my name
And Children are my nation.
The Cosmos is my dwelling place, The Truth my destination.
http://earthtreasury.org/worknet (Edward Mokurai Cherlin)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-07-01 Thread Tomeu Vizoso
On Tue, Jun 30, 2009 at 19:41, Martin Langhoff wrote:
> I am trying to get leases.sig from the XS to the USB stick. On 8.2.x,
> Browse.xo saves the file as
>
>   File leases.sig from http://...
>
> ... two possible ways to move next.
>
> Copy and rename
>
>  1 - Insert (fat-formatted) USB stick, once mounted copy the file to
> the USB stick. Check on Terminal indicates that the file has the LFN
> we expect ("File leases.sig from http://...";).
>
>  2 - Switch to the 'USB disk' view of the Journal.
>
>  3 - Rename the file to leases.sig . A check from the commandline
> shows that the file has not been renamed. Oops?. The Journal only
> renames the metadata. Bug?
>
> Rename and copy
>
>  1 - Rename the file in the Journal to 'leases.sig'
>
>  2 - Insert (fat-formatted) USB stick, once mounted copy the file to
> the USB stick. The Journal reports that the file is called lease.sig.
> From terminal I can see that the file is called lease.sig.txt . Bug?
>
> Is there a better way to do this?

If you go through the archives, you will find that this was discussed
some weeks ago, I think it was Tony Forster who started the
discussion.

And we have tickets in trac as well.

Regards,

Tomeu


> cheers,
>
>
>
> m
> --
>  martin.langh...@gmail.com
>  mar...@laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-06-30 Thread Martin Langhoff
On Tue, Jun 30, 2009 at 7:41 PM, Martin
Langhoff wrote:
> Rename and copy

>From the department of useful tricks...

If you want to preserve your users' ability to name a file you serve
via HTTP, eschew proper mimetypes and say with me:

Content-Type: application/x-forcedownload

With that mimetype, the "rename and copy" strategy works.

> Is there a better way to do this?

At first blush it doesn't qualify as 'better', but this particular
file is not meant to be read or edited by the end user (as it's
Canonical JSON). So serving it text/plain was a liability, as the
Journal would happily open it under Write.xo . So yes, we are better
off with it.

Maybe application/json-don't-edit-me would be more appropriate.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-06-30 Thread Martin Langhoff
On Tue, Jun 30, 2009 at 7:47 PM, John Gilmore wrote:
> Don't use Browse as if it was a real web browser.  Don't use the
> Journal as if it was a real file system.

... and don't use Sugar as a useful Desktop or UI...?

I don't buy the argument. There are lots of things that rely on
filenames; as the userbase of Sugar grows, users will use Sugar for an
ever widening variety of tasks.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Journal and filenames on USB disks - more leases.sig problems

2009-06-30 Thread Martin Langhoff
I am trying to get leases.sig from the XS to the USB stick. On 8.2.x,
Browse.xo saves the file as

   File leases.sig from http://...

... two possible ways to move next.

Copy and rename

 1 - Insert (fat-formatted) USB stick, once mounted copy the file to
the USB stick. Check on Terminal indicates that the file has the LFN
we expect ("File leases.sig from http://...";).

 2 - Switch to the 'USB disk' view of the Journal.

 3 - Rename the file to leases.sig . A check from the commandline
shows that the file has not been renamed. Oops?. The Journal only
renames the metadata. Bug?

Rename and copy

 1 - Rename the file in the Journal to 'leases.sig'

 2 - Insert (fat-formatted) USB stick, once mounted copy the file to
the USB stick. The Journal reports that the file is called lease.sig.
>From terminal I can see that the file is called lease.sig.txt . Bug?

Is there a better way to do this?

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel