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 Langhoffmartin.langh...@gmail.com 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-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/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
Langhoffmartin.langh...@gmail.com 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-de...@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)
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 Vizosoto...@sugarlabs.org wrote:
 On Tue, Jun 30, 2009 at 19:41, Martin Langhoffmartin.langh...@gmail.com 
 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
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Journal and filenames on USB disks - more leases.sig problems

2009-06-30 Thread John Gilmore
 Is there a better way to do this?

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.

Run Firefox, not Browse.
Open up a terminal and do what needs doing.

You've just stumbled on one tiny corner of the problem that the Sugar
tools don't teach kids about real hierarchical file systems, and don't
provide access to real hierarchical file systems.  So kids don't get
access to source code (for reading or writing) because they can't grok
the structure in which it's stored.  Nor access to anything else, like
lease signature files.

John
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: 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 Gilmoreg...@toad.com 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
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/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
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: 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
Langhoffmartin.langh...@gmail.com 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
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel