Re: Java & Scratch on XO

2008-12-01 Thread John Maloney
Hi, Bert and Tomeu.

Many thanks for the pointers and examples. I've put together a  
mimetypes.xml file and will test it when I get home. (I don't have my  
XO with me.)

I will let you know if I have any problems or questions.

Thanks again!

-- John

On Dec 1, 2008, at 9:50 AM, Bert Freudenberg wrote:
> On 01.12.2008, at 15:37, Tomeu Vizoso wrote:
>
>> On Mon, Dec 1, 2008 at 3:16 PM, John Maloney  
>> <[EMAIL PROTECTED]> wrote:
>>> Hi, Tomeu.
>>>
>>> Thanks for your reply. It's great that there is a way to handle  
>>> this!
>>>
>>> I took a quick look at the EToys .xo bundle and did not see a
>>> mimetypes.xml file. However, I did notice that EToys lists a lot of
>>> mime types in it's activity.info. What I don't see is how the system
>>> would know what file extension to associate with a type like
>>> "application/x-squeak-project". Is that what the mimetypes.xml is  
>>> for?
>>> Do you know of any other activity that uses a mimetypes.xml file  
>>> that
>>> would be a good model for Scratch?
>>
>> True, have talked with Bert and he said that the etoys.xml file they
>> have in the source repository is for the rpm, not for the .xo. So
>> sorry for the misleading pointer.
>>
>> The idea is that your scratch bundle would have a file named
>> mimetypes.xml in the activity dir (so next to the activity.info file,
>> the icon, etc) and the contents would be analogous to those in
>> etoys.xml. As you can see, that file relates extensions to mime  
>> types.
>>
>> Unfortunately, cannot find now an activity that currently uses it,  
>> but
>> ping me again if you have trouble putting that to work and I will  
>> look
>> harder or do a small experiment here.
>
>
> Yes - should be pretty simple. Here's the essence of the Etoys one  
> (John: we actually dropped the capital T):
>
> 
> http://www.freedesktop.org/standards/shared-mime-info 
> ">
>   
> 
> Squeak Project
> 
>   
> 
>
> - Bert -
>
>

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


Re: Java & Scratch on XO

2008-12-01 Thread Bert Freudenberg

On 01.12.2008, at 15:37, Tomeu Vizoso wrote:

> On Mon, Dec 1, 2008 at 3:16 PM, John Maloney  
> <[EMAIL PROTECTED]> wrote:
>> Hi, Tomeu.
>>
>> Thanks for your reply. It's great that there is a way to handle this!
>>
>> I took a quick look at the EToys .xo bundle and did not see a
>> mimetypes.xml file. However, I did notice that EToys lists a lot of
>> mime types in it's activity.info. What I don't see is how the system
>> would know what file extension to associate with a type like
>> "application/x-squeak-project". Is that what the mimetypes.xml is  
>> for?
>> Do you know of any other activity that uses a mimetypes.xml file that
>> would be a good model for Scratch?
>
> True, have talked with Bert and he said that the etoys.xml file they
> have in the source repository is for the rpm, not for the .xo. So
> sorry for the misleading pointer.
>
> The idea is that your scratch bundle would have a file named
> mimetypes.xml in the activity dir (so next to the activity.info file,
> the icon, etc) and the contents would be analogous to those in
> etoys.xml. As you can see, that file relates extensions to mime types.
>
> Unfortunately, cannot find now an activity that currently uses it, but
> ping me again if you have trouble putting that to work and I will look
> harder or do a small experiment here.


Yes - should be pretty simple. Here's the essence of the Etoys one  
(John: we actually dropped the capital T):


http://www.freedesktop.org/standards/shared-mime- 
info">

  
  Squeak Project
  



- Bert -


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


Re: Java & Scratch on XO

2008-12-01 Thread Tomeu Vizoso
On Mon, Dec 1, 2008 at 3:16 PM, John Maloney <[EMAIL PROTECTED]> wrote:
> Hi, Tomeu.
>
> Thanks for your reply. It's great that there is a way to handle this!
>
> I took a quick look at the EToys .xo bundle and did not see a
> mimetypes.xml file. However, I did notice that EToys lists a lot of
> mime types in it's activity.info. What I don't see is how the system
> would know what file extension to associate with a type like
> "application/x-squeak-project". Is that what the mimetypes.xml is for?
> Do you know of any other activity that uses a mimetypes.xml file that
> would be a good model for Scratch?

True, have talked with Bert and he said that the etoys.xml file they
have in the source repository is for the rpm, not for the .xo. So
sorry for the misleading pointer.

The idea is that your scratch bundle would have a file named
mimetypes.xml in the activity dir (so next to the activity.info file,
the icon, etc) and the contents would be analogous to those in
etoys.xml. As you can see, that file relates extensions to mime types.

Unfortunately, cannot find now an activity that currently uses it, but
ping me again if you have trouble putting that to work and I will look
harder or do a small experiment here.

Good luck,

Tomeu

> On Dec 1, 2008, at 7:44 AM, Tomeu Vizoso wrote:
>
>> On Tue, Nov 25, 2008 at 5:01 PM,  <[EMAIL PROTECTED]> wrote:
>>> i'm forwarding this note from john maloney (scratch maintainer) to
>>> devel.
>>>
>>> this certainly sounds like a mime types issue, but i'm not sure
>>> where or how we'd augment the canonical list.
>>
>> Paul is right, Sugar is not being able to recognize those as being
>> scratch files. You can see how etoys is doing this by extending the
>> mime types database:
>>
>> http://wiki.laptop.org/go/Activity_bundles#Bundle_Structure
>> http://dev.laptop.org/git?p=projects/etoys;a=blob;f=etoys.xml
>>
>> Regards,
>>
>> Tomeu
>>
>>> john wrote:
 Hi, Paul, Cynthia, and Claudia.

 I got a question from a professor at U. of Wisconsin about how to
 work
 with Scratch projects downloaded from the Scratch website (see
 below).

 I verified that the problem is that the .sb file gets renamed to be
 something in /tmp ending in .bin. I think this happens when you put
 the .sb file in the clipboard. In any case, when you drag the file
 icon onto Scratch, that is the file name that is reported.

 So my question is: is there a way to tell the browser the files
 ending
 in .sb are Scratch project files so that it doesn't rename them?
 Is it
 something like registering a MIME type?

 Does anyone else have any suggestions for making it easier to get
 downloaded Scratch projects to open in Scratch?

 -- John



 -
 My understanding of the problem (now that I'm running Scratch 1.3
 everywhere) is that the XO does not properly name the files it
 downloads from the scratch site (i.e., they don't have .sb
 extensions), and Scratch refuses to recognize files without that
 extension. If I use the Linux terminal program to change the name
 (or
 download them onto a USB from another machine) I can get the Scratch
 to open the files. Does this make sense? It is a total pain in the
 neck though, because I can't figure out a solution that does not
 involve a USB: the only way I can find the Scratch program file from
 the Linux terminal is if I use the Journal to copy the file to the
 USB
 (I can't figure out where it lives in the Journal world).
 -
>>>
>>> =-
>>> paul fox, [EMAIL PROTECTED]
>>> give one laptop, get one laptop --- http://www.amazon.com/xo
>>> ___
>>> Devel mailing list
>>> Devel@lists.laptop.org
>>> http://lists.laptop.org/listinfo/devel
>>>
>
> ___
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Java & Scratch on XO

2008-12-01 Thread John Maloney
Hi, Tomeu.

Thanks for your reply. It's great that there is a way to handle this!

I took a quick look at the EToys .xo bundle and did not see a  
mimetypes.xml file. However, I did notice that EToys lists a lot of  
mime types in it's activity.info. What I don't see is how the system  
would know what file extension to associate with a type like  
"application/x-squeak-project". Is that what the mimetypes.xml is for?  
Do you know of any other activity that uses a mimetypes.xml file that  
would be a good model for Scratch?

-- John



On Dec 1, 2008, at 7:44 AM, Tomeu Vizoso wrote:

> On Tue, Nov 25, 2008 at 5:01 PM,  <[EMAIL PROTECTED]> wrote:
>> i'm forwarding this note from john maloney (scratch maintainer) to  
>> devel.
>>
>> this certainly sounds like a mime types issue, but i'm not sure
>> where or how we'd augment the canonical list.
>
> Paul is right, Sugar is not being able to recognize those as being
> scratch files. You can see how etoys is doing this by extending the
> mime types database:
>
> http://wiki.laptop.org/go/Activity_bundles#Bundle_Structure
> http://dev.laptop.org/git?p=projects/etoys;a=blob;f=etoys.xml
>
> Regards,
>
> Tomeu
>
>> john wrote:
>>> Hi, Paul, Cynthia, and Claudia.
>>>
>>> I got a question from a professor at U. of Wisconsin about how to  
>>> work
>>> with Scratch projects downloaded from the Scratch website (see  
>>> below).
>>>
>>> I verified that the problem is that the .sb file gets renamed to be
>>> something in /tmp ending in .bin. I think this happens when you put
>>> the .sb file in the clipboard. In any case, when you drag the file
>>> icon onto Scratch, that is the file name that is reported.
>>>
>>> So my question is: is there a way to tell the browser the files  
>>> ending
>>> in .sb are Scratch project files so that it doesn't rename them?  
>>> Is it
>>> something like registering a MIME type?
>>>
>>> Does anyone else have any suggestions for making it easier to get
>>> downloaded Scratch projects to open in Scratch?
>>>
>>> -- John
>>>
>>>
>>>
>>> -
>>> My understanding of the problem (now that I'm running Scratch 1.3
>>> everywhere) is that the XO does not properly name the files it
>>> downloads from the scratch site (i.e., they don't have .sb
>>> extensions), and Scratch refuses to recognize files without that
>>> extension. If I use the Linux terminal program to change the name  
>>> (or
>>> download them onto a USB from another machine) I can get the Scratch
>>> to open the files. Does this make sense? It is a total pain in the
>>> neck though, because I can't figure out a solution that does not
>>> involve a USB: the only way I can find the Scratch program file from
>>> the Linux terminal is if I use the Journal to copy the file to the  
>>> USB
>>> (I can't figure out where it lives in the Journal world).
>>> -
>>
>> =-
>> paul fox, [EMAIL PROTECTED]
>> give one laptop, get one laptop --- http://www.amazon.com/xo
>> ___
>> Devel mailing list
>> Devel@lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>>

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


Re: Java & Scratch on XO

2008-12-01 Thread Tomeu Vizoso
[reposting to [EMAIL PROTECTED] and adding [EMAIL PROTECTED] to cc]

On Mon, Dec 1, 2008 at 1:44 PM, Tomeu Vizoso <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 5:01 PM,  <[EMAIL PROTECTED]> wrote:
>> i'm forwarding this note from john maloney (scratch maintainer) to devel.
>>
>> this certainly sounds like a mime types issue, but i'm not sure
>> where or how we'd augment the canonical list.
>
> Paul is right, Sugar is not being able to recognize those as being
> scratch files. You can see how etoys is doing this by extending the
> mime types database:
>
> http://wiki.laptop.org/go/Activity_bundles#Bundle_Structure
> http://dev.laptop.org/git?p=projects/etoys;a=blob;f=etoys.xml
>
> Regards,
>
> Tomeu
>
>> john wrote:
>>  > Hi, Paul, Cynthia, and Claudia.
>>  >
>>  > I got a question from a professor at U. of Wisconsin about how to work
>>  > with Scratch projects downloaded from the Scratch website (see below).
>>  >
>>  > I verified that the problem is that the .sb file gets renamed to be
>>  > something in /tmp ending in .bin. I think this happens when you put
>>  > the .sb file in the clipboard. In any case, when you drag the file
>>  > icon onto Scratch, that is the file name that is reported.
>>  >
>>  > So my question is: is there a way to tell the browser the files ending
>>  > in .sb are Scratch project files so that it doesn't rename them? Is it
>>  > something like registering a MIME type?
>>  >
>>  > Does anyone else have any suggestions for making it easier to get
>>  > downloaded Scratch projects to open in Scratch?
>>  >
>>  >  -- John
>>  >
>>  >
>>  >
>>  > -
>>  > My understanding of the problem (now that I'm running Scratch 1.3
>>  > everywhere) is that the XO does not properly name the files it
>>  > downloads from the scratch site (i.e., they don't have .sb
>>  > extensions), and Scratch refuses to recognize files without that
>>  > extension. If I use the Linux terminal program to change the name (or
>>  > download them onto a USB from another machine) I can get the Scratch
>>  > to open the files. Does this make sense? It is a total pain in the
>>  > neck though, because I can't figure out a solution that does not
>>  > involve a USB: the only way I can find the Scratch program file from
>>  > the Linux terminal is if I use the Journal to copy the file to the USB
>>  > (I can't figure out where it lives in the Journal world).
>>  > -
>>
>> =-
>>  paul fox, [EMAIL PROTECTED]
>>  give one laptop, get one laptop --- http://www.amazon.com/xo
>> ___
>> Devel mailing list
>> Devel@lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>>
>
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Java & Scratch on XO

2008-11-25 Thread pgf
i'm forwarding this note from john maloney (scratch maintainer) to devel.

this certainly sounds like a mime types issue, but i'm not sure
where or how we'd augment the canonical list.

paul

john wrote:
 > Hi, Paul, Cynthia, and Claudia.
 > 
 > I got a question from a professor at U. of Wisconsin about how to work  
 > with Scratch projects downloaded from the Scratch website (see below).
 > 
 > I verified that the problem is that the .sb file gets renamed to be  
 > something in /tmp ending in .bin. I think this happens when you put  
 > the .sb file in the clipboard. In any case, when you drag the file  
 > icon onto Scratch, that is the file name that is reported.
 > 
 > So my question is: is there a way to tell the browser the files ending  
 > in .sb are Scratch project files so that it doesn't rename them? Is it  
 > something like registering a MIME type?
 > 
 > Does anyone else have any suggestions for making it easier to get  
 > downloaded Scratch projects to open in Scratch?
 > 
 >  -- John
 > 
 > 
 > 
 > -
 > My understanding of the problem (now that I'm running Scratch 1.3  
 > everywhere) is that the XO does not properly name the files it  
 > downloads from the scratch site (i.e., they don't have .sb  
 > extensions), and Scratch refuses to recognize files without that  
 > extension. If I use the Linux terminal program to change the name (or  
 > download them onto a USB from another machine) I can get the Scratch  
 > to open the files. Does this make sense? It is a total pain in the  
 > neck though, because I can't figure out a solution that does not  
 > involve a USB: the only way I can find the Scratch program file from  
 > the Linux terminal is if I use the Journal to copy the file to the USB  
 > (I can't figure out where it lives in the Journal world).
 > -

=-
 paul fox, [EMAIL PROTECTED]
 give one laptop, get one laptop --- http://www.amazon.com/xo
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Java & Scratch on XO

2008-10-20 Thread pgf
john -- i'm cc'ing [EMAIL PROTECTED] on this, since i may not have all the
answers.

john wrote:
 > Hi, Paul.
 > 
 > Will the G1G1 build have Java pre-installed so that you can run Java  
 > applets in the browser?

i don't believe so.

 > 
 > I'm wondering because we have a Scratch applet that allows users to  
 > run Scratch projects in their browser when they visit the Scratch  
 > website. If a user likes a project, they can download it, see how it  
 > works, and perhaps make their own variation of that project. We think  
 > being able to run Scratch projects in the browser encourages Scratch  
 > users to learn from each other helps motivate them to learn.
 > 
 > The last time I tried Java on the XO, the Sun Java SDK did not work  
 > due to a slight shared library compatibility. I now see that the Wiki  
 > is recommending an open-source version of Java. Does that one work  
 > with the XO web browser activity?

i haven't tried it myself.

 > 
 > What is the feeling at OLPC about having Java pre-installed (if it  
 > isn't already)? Is that a possibility? I think it would be helpful to  
 > many Scratch users if Java were included.
 > 
 > Is it s too late to suggest including Java in the upcoming G1G1 build?

yes, i believe it's too late.  build 767, aka 8.2.0, is finalized.

to make a case for including (some form of) java in a future release,
see http://wiki.laptop.org/go/8.2.1 for how to champion it for an 8.2.1,
and/or file a trac ticket to get it on the radar for 9.1.0.  (initial 9.1.0
feature planning is underway via proposals sent to the devel list.
see:
  http://lists.laptop.org/pipermail/devel/2008-October/date.html#20384
and subsequent messages with with "9.1 Proposal:" in the subject.

paul
=-
 paul fox, [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel