Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
May 2010
- 29 participants
- 155 messages
Re: [Pharo-users] Using FFI to call a MacOs System function
by Mariano Martinez Peck
On Sat, May 15, 2010 at 8:42 PM, David Wilson <djwilson(a)bluewin.ch> wrote:
> Hi Mariano
>
> I now see that my solution (yesterday) was a hack.
>
hahhaha I though that when I read it ;)
But as I don't know how it is, I didn't say anything.
> John Macintosh' post (
> http://forum.world.st/Re-Pharo-users-Using-FFI-to-call-a-MacOs-System-funct…)
> shows how to do this properly.
> If I do something with this (ie gain real experience) then I'll look at
> working on the documentation.
>
>
Excellent!
> Cheers
>
> David
>
>
> On 14 May, 2010, at 20:16, Mariano Martinez Peck wrote:
>
>
>
>> Let us know your progress. Now...would you like to help us and document
>> all this in http://book.seaside.st/ ?
>>
>
>
> Sorry I mean http://book.pharo-project.org/ ;) too many books
>
>
>
>
>> We need to write all this down. Image the poor guy that comes after
>> you...imagine if someone already had this problem and you would have found
>> such info...wouldn't that be cool ? Don't worry for the English neither to
>> the text. It doesn't need to be perfect. This is continuous...we first
>> write, and then the community will give feedback, correct it, complete it,
>> etc...
>>
>> If you want to join, please let us know and we generate a user for you.
>>
>> Cheers
>>
>> Mariano
>>
>> Cheers
>>>
>>> David
>>>
>>>
>>>
>>>
>>>
>>> On 05 May, 2010, at 23:15, Mariano Martinez Peck wrote:
>>>
>>> BTW....keyboards seems to be a .h (a header) , but not a library...at
>>> least in my mac
>>>
>>> Do you have also the library ? I am still newbie with the Mac OS :(
>>>
>>> Cheers
>>>
>>> mariano
>>>
>>> On Wed, May 5, 2010 at 11:10 PM, Mariano Martinez Peck <
>>> marianopeck(a)gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Tue, May 4, 2010 at 4:46 PM, David Wilson <djwilson(a)bluewin.ch>wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I'm new to Pharo (although I was a Smalltalk programmer in the 90's),
>>>>> and I'm trying to use FFI to access an MacOs system function:
>>>>>
>>>>>
>>>> Hi and welcome!
>>>>
>>>>
>>>>> apiKLGetKeyboardLayoutCount
>>>>> < cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module:
>>>>> 'keyboards'>
>>>>> ^ self externalCallFailed.
>>>>>
>>>>> I get an error "'Unable to find function address'" which seems to say
>>>>> the OS-module "keyboards" can't be found.
>>>>>
>>>>
>>>> Exactly. That's the problem.
>>>>
>>>>
>>>>> I can't figure out what the address should be.
>>>>> The function is defined here:
>>>>> http://developer.apple.com/legacy/mac/library/documentation/Carbon/Referenc…
>>>>> (yes, it's deprecated, I have a very old mac runnning 10.4).
>>>>>
>>>>>
>>>> But you see the library in your computer, isn't it ? I mean, it is
>>>> there, but FFI doesn't find it ?
>>>>
>>>>
>>>>
>>>>> I'm not sure if I'm using FFI correctly, do I have to somehow include
>>>>> the external library in the Pharo VM?
>>>>>
>>>>
>>>> No, you shouldn't need to do that. However, you can try to put them
>>>> there just to see if that's the problem. I think that at some point (depends
>>>> on an order) the library is searched in the same place where you are calling
>>>> from. So, yes, do a test, but just a test. It should work without doing
>>>> that.
>>>>
>>>> How did you install FFI ? Which Pharo VM and image versions are you
>>>> using ?
>>>>
>>>> Can anyone help?
>>>>>
>>>>>
>>>> I would like too, but I don't have such library.
>>>>
>>>> I developed a wrapper for a Clibrary called OpenDBX using FFI. In our
>>>> website, some people experimented similar problems.
>>>> Please take a look to the title "Problems with Mac OS:" of the
>>>> following link:
>>>>
>>>> http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX
>>>>
>>>> I also cc'ed people that can help you.
>>>>
>>>> Cheers
>>>>
>>>> Mariano
>>>>
>>>>
>>>> I'm looked for FFI examples, but don't find anything helpful.
>>>>>
>>>>> David
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-users mailing list
>>>>> Pharo-users(a)lists.gforge.inria.fr
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>
>>>
>>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
May 15, 2010
Re: [Pharo-users] Using FFI to call a MacOs System function
by David Wilson
Hi Mariano
I now see that my solution (yesterday) was a hack.
John Macintosh' post (http://forum.world.st/Re-Pharo-users-Using-FFI-
to-call-a-MacOs-System-function-tt2131691.html#a2217998) shows how to
do this properly.
If I do something with this (ie gain real experience) then I'll look
at working on the documentation.
Cheers
David
On 14 May, 2010, at 20:16, Mariano Martinez Peck wrote:
Let us know your progress. Now...would you like to help us and
document all this in http://book.seaside.st/ ?
Sorry I mean http://book.pharo-project.org/ ;) too many books
We need to write all this down. Image the poor guy that comes after
you...imagine if someone already had this problem and you would have
found such info...wouldn't that be cool ? Don't worry for the
English neither to the text. It doesn't need to be perfect. This is
continuous...we first write, and then the community will give
feedback, correct it, complete it, etc...
If you want to join, please let us know and we generate a user for you.
Cheers
Mariano
Cheers
David
On 05 May, 2010, at 23:15, Mariano Martinez Peck wrote:
BTW....keyboards seems to be a .h (a header) , but not a
library...at least in my mac
Do you have also the library ? I am still newbie with the Mac OS :(
Cheers
mariano
On Wed, May 5, 2010 at 11:10 PM, Mariano Martinez Peck
<marianopeck(a)gmail.com> wrote:
On Tue, May 4, 2010 at 4:46 PM, David Wilson <djwilson(a)bluewin.ch>
wrote:
Hi
I'm new to Pharo (although I was a Smalltalk programmer in the 90's),
and I'm trying to use FFI to access an MacOs system function:
Hi and welcome!
apiKLGetKeyboardLayoutCount
< cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module:
'keyboards'>
^ self externalCallFailed.
I get an error "'Unable to find function address'" which seems to say
the OS-module "keyboards" can't be found.
Exactly. That's the problem.
I can't figure out what the address should be.
The function is defined here: http://developer.apple.com/legacy/mac/
library/documentation/Carbon/Reference/KeyboardLayoutServices/
Reference/reference.html
(yes, it's deprecated, I have a very old mac runnning 10.4).
But you see the library in your computer, isn't it ? I mean, it is
there, but FFI doesn't find it ?
I'm not sure if I'm using FFI correctly, do I have to somehow include
the external library in the Pharo VM?
No, you shouldn't need to do that. However, you can try to put them
there just to see if that's the problem. I think that at some point
(depends on an order) the library is searched in the same place where
you are calling from. So, yes, do a test, but just a test. It should
work without doing that.
How did you install FFI ? Which Pharo VM and image versions are you
using ?
Can anyone help?
I would like too, but I don't have such library.
I developed a wrapper for a Clibrary called OpenDBX using FFI. In our
website, some people experimented similar problems.
Please take a look to the title "Problems with Mac OS:" of the
following link:
http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX
I also cc'ed people that can help you.
Cheers
Mariano
I'm looked for FFI examples, but don't find anything helpful.
David
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 15, 2010
Re: [Pharo-users] Resolving some dependencies...
by Mariano Martinez Peck
Done. Check http://www.squeaksource.com/PharoMorphicExtras.html
On Wed, May 12, 2010 at 10:08 PM, Stéphane Ducasse <
stephane.ducasse(a)inria.fr> wrote:
> We should edit the project wiki to say that and also the status to private
> so that PharoMorphicExtras is just
> there for archival purposes.
>
> Setf
>
> On May 12, 2010, at 5:18 PM, Mariano Martinez Peck wrote:
>
> > Carla: some time ago with stef we moved the working packages form
> http://www.squeaksource.com/PharoMorphicExtras to
> >
> > http://www.squeaksource.com/PharoNonCorePackages
> >
> > As you can see in PharoNonCorePackages it is no more MorphicExtras.
> > In addition, we did ConfigurationOfPharoMorphicExtras
> >
> > So please, from nowon, use that repository. And in case of changing
> something, commit it there, as the next dev images will use
> PharoNonCorePackages and not PharoMorphicExtras.
> >
> > Cheers
> >
> > Mariano
> >
> >
> > On Mon, May 10, 2010 at 7:15 PM, Stéphane Ducasse <
> stephane.ducasse(a)inria.fr> wrote:
> > ExtraMorphs?
> > On May 10, 2010, at 5:15 PM, Mariano Martinez Peck wrote:
> >
> > >
> > >
> > > On Mon, May 10, 2010 at 5:09 PM, Carla F. Griggio <
> carla.griggio(a)gmail.com> wrote:
> > > Uff, then... I'll have to do some work over this :)
> > >
> > > About MorphicExtras, if you say it's a lot of crap, I trust you.
> > >
> > > me too.
> > >
> > > But the name of ConfigurationOfPharoMorphicExtras suggests that it will
> load MorphicExtras (at least for me, because I had the package name 'Morphic
> Extras' stucked in my head when I found the metacello configuration) :$ So
> that might be a little confusing.
> > >
> > > That's exactly why I asked. Stef, Carla, do you have a better name for
> such configuration ?
> > >
> > > Cheers
> > >
> > > Mariano
> > >
> > >
> > >
> > > Thanks!
> > >
> > > Carla
> > >
> > >
> > > On Mon, May 10, 2010 at 8:03 AM, Stéphane Ducasse <
> stephane.ducasse(a)inria.fr> wrote:
> > > >
> > > > >
> > > > > PS: When I used ConfigurationOfPharoMorphicExtras, it loaded some
> Morphic packages but not the MorphicExtras package itself, I had to load it
> manually later. Is that OK?
> > > >
> > > > Yes because MorphicExtras-StephaneDucasse.144 is a dead package. It
> is full of crap or experimental code.
> > >
> > >
> > >
> > > >
> > > >
> > > > But anyway, I think she is right.
> > >
> > > she is not
> > >
> > > > The package MorphicExtras should be loaded, together with
> MorphExamplesAndDemos and LED, shouldn't it ?
> > >
> > > No it should NOT!
> > > Check the classes in there and you will see that you do NOT want that
> in your image. :)
> > > What I did was to extract the MorphExampleAndDemos where I cleaned the
> code made sure that the xamples
> > > are working......
> > >
> > > So MorphicExtras should just be there so that people can extract
> something that they would like to repackage. Period.
> > >
> > > >
> > > > Cheers
> > > >
> > > > mariano
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Pharo-users mailing list
> > > > > Pharo-users(a)lists.gforge.inria.fr
> > > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > > >
> > > >
> > > > _______________________________________________
> > > > Pharo-users mailing list
> > > > Pharo-users(a)lists.gforge.inria.fr
> > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > > >
> > > > _______________________________________________
> > > > Pharo-users mailing list
> > > > Pharo-users(a)lists.gforge.inria.fr
> > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 14, 2010
Re: [Pharo-users] Using FFI to call a MacOs System function
by Mariano Martinez Peck
>
> Let us know your progress. Now...would you like to help us and document all
> this in http://book.seaside.st/ ?
>
Sorry I mean http://book.pharo-project.org/ ;) too many books
> We need to write all this down. Image the poor guy that comes after
> you...imagine if someone already had this problem and you would have found
> such info...wouldn't that be cool ? Don't worry for the English neither to
> the text. It doesn't need to be perfect. This is continuous...we first
> write, and then the community will give feedback, correct it, complete it,
> etc...
>
> If you want to join, please let us know and we generate a user for you.
>
> Cheers
>
> Mariano
>
> Cheers
>>
>> David
>>
>>
>>
>>
>>
>> On 05 May, 2010, at 23:15, Mariano Martinez Peck wrote:
>>
>> BTW....keyboards seems to be a .h (a header) , but not a library...at
>> least in my mac
>>
>> Do you have also the library ? I am still newbie with the Mac OS :(
>>
>> Cheers
>>
>> mariano
>>
>> On Wed, May 5, 2010 at 11:10 PM, Mariano Martinez Peck <
>> marianopeck(a)gmail.com> wrote:
>>
>>>
>>>
>>> On Tue, May 4, 2010 at 4:46 PM, David Wilson <djwilson(a)bluewin.ch>wrote:
>>>
>>>> Hi
>>>>
>>>> I'm new to Pharo (although I was a Smalltalk programmer in the 90's),
>>>> and I'm trying to use FFI to access an MacOs system function:
>>>>
>>>>
>>> Hi and welcome!
>>>
>>>
>>>> apiKLGetKeyboardLayoutCount
>>>> < cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module:
>>>> 'keyboards'>
>>>> ^ self externalCallFailed.
>>>>
>>>> I get an error "'Unable to find function address'" which seems to say
>>>> the OS-module "keyboards" can't be found.
>>>>
>>>
>>> Exactly. That's the problem.
>>>
>>>
>>>> I can't figure out what the address should be.
>>>> The function is defined here:
>>>> http://developer.apple.com/legacy/mac/library/documentation/Carbon/Referenc…
>>>> (yes, it's deprecated, I have a very old mac runnning 10.4).
>>>>
>>>>
>>> But you see the library in your computer, isn't it ? I mean, it is there,
>>> but FFI doesn't find it ?
>>>
>>>
>>>
>>>> I'm not sure if I'm using FFI correctly, do I have to somehow include
>>>> the external library in the Pharo VM?
>>>>
>>>
>>> No, you shouldn't need to do that. However, you can try to put them there
>>> just to see if that's the problem. I think that at some point (depends on an
>>> order) the library is searched in the same place where you are calling from.
>>> So, yes, do a test, but just a test. It should work without doing that.
>>>
>>> How did you install FFI ? Which Pharo VM and image versions are you
>>> using ?
>>>
>>> Can anyone help?
>>>>
>>>>
>>> I would like too, but I don't have such library.
>>>
>>> I developed a wrapper for a Clibrary called OpenDBX using FFI. In our
>>> website, some people experimented similar problems.
>>> Please take a look to the title "Problems with Mac OS:" of the following
>>> link:
>>>
>>> http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX
>>>
>>> I also cc'ed people that can help you.
>>>
>>> Cheers
>>>
>>> Mariano
>>>
>>>
>>> I'm looked for FFI examples, but don't find anything helpful.
>>>>
>>>> David
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-users mailing list
>>>> Pharo-users(a)lists.gforge.inria.fr
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>>
>>>
>>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>>
>
May 14, 2010
Re: [Pharo-users] Using FFI to call a MacOs System function
by Mariano Martinez Peck
On Fri, May 14, 2010 at 7:04 PM, David Wilson <djwilson(a)bluewin.ch> wrote:
> Hi Mariano
>
> Thanks for the tips, you got me on the right track. Some trial and lots of
> error got me to a solution.
>
>
Hi David. I am glad it worked.
> In order to use MacOs system calls you have to:
> 1) identify the function you want to use e.g. KLGetKeyboardLayoutCount
> 2) find out what header file this is defined in. here it's "Keyboards.h" in
> the Framework "Carbon/Carbon.h"
> So far it's easy from the Apple documentation
>
> 3) find out which Bundle this is in. I used Finder to find out where
> Keyboards.h is used, it's used in HIToolbox.framework
> 4) find the actual compiled framework, on my system it's at:
>
> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
> 5) I placed a copy of this file in the Pharo bundle at:
> Pharo-1.0.app/Contents/Resources/HIToolbox
>
> An the call looks like:
>
> apiKLGetKeyboardLayoutCount
> < cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module: 'HIToolbox'>
>
> ^ self externalCallFailed.
>
> I tried a link to the bundle, that didn't work.
> Probably the correct way to do this is to change Pharos RES path (in
> Pharo.sh) to include the a pointer to HIToolbox executable.
> I may try that if I go further with this than a prototype.
>
>
Let us know your progress. Now...would you like to help us and document all
this in http://book.seaside.st/ ?
We need to write all this down. Image the poor guy that comes after
you...imagine if someone already had this problem and you would have found
such info...wouldn't that be cool ? Don't worry for the English neither to
the text. It doesn't need to be perfect. This is continuous...we first
write, and then the community will give feedback, correct it, complete it,
etc...
If you want to join, please let us know and we generate a user for you.
Cheers
Mariano
Cheers
>
> David
>
>
>
>
>
> On 05 May, 2010, at 23:15, Mariano Martinez Peck wrote:
>
> BTW....keyboards seems to be a .h (a header) , but not a library...at
> least in my mac
>
> Do you have also the library ? I am still newbie with the Mac OS :(
>
> Cheers
>
> mariano
>
> On Wed, May 5, 2010 at 11:10 PM, Mariano Martinez Peck <
> marianopeck(a)gmail.com> wrote:
>
>>
>>
>> On Tue, May 4, 2010 at 4:46 PM, David Wilson <djwilson(a)bluewin.ch> wrote:
>>
>>> Hi
>>>
>>> I'm new to Pharo (although I was a Smalltalk programmer in the 90's), and
>>> I'm trying to use FFI to access an MacOs system function:
>>>
>>>
>> Hi and welcome!
>>
>>
>>> apiKLGetKeyboardLayoutCount
>>> < cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module: 'keyboards'>
>>> ^ self externalCallFailed.
>>>
>>> I get an error "'Unable to find function address'" which seems to say the
>>> OS-module "keyboards" can't be found.
>>>
>>
>> Exactly. That's the problem.
>>
>>
>>> I can't figure out what the address should be.
>>> The function is defined here:
>>> http://developer.apple.com/legacy/mac/library/documentation/Carbon/Referenc…
>>> (yes, it's deprecated, I have a very old mac runnning 10.4).
>>>
>>>
>> But you see the library in your computer, isn't it ? I mean, it is there,
>> but FFI doesn't find it ?
>>
>>
>>
>>> I'm not sure if I'm using FFI correctly, do I have to somehow include the
>>> external library in the Pharo VM?
>>>
>>
>> No, you shouldn't need to do that. However, you can try to put them there
>> just to see if that's the problem. I think that at some point (depends on an
>> order) the library is searched in the same place where you are calling from.
>> So, yes, do a test, but just a test. It should work without doing that.
>>
>> How did you install FFI ? Which Pharo VM and image versions are you using
>> ?
>>
>> Can anyone help?
>>>
>>>
>> I would like too, but I don't have such library.
>>
>> I developed a wrapper for a Clibrary called OpenDBX using FFI. In our
>> website, some people experimented similar problems.
>> Please take a look to the title "Problems with Mac OS:" of the following
>> link:
>>
>> http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX
>>
>> I also cc'ed people that can help you.
>>
>> Cheers
>>
>> Mariano
>>
>>
>> I'm looked for FFI examples, but don't find anything helpful.
>>>
>>> David
>>>
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>
>>
>>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
May 14, 2010
IWST 2010 CfP - Deadline Extension
by Michael Haupt
* apologies for multiple copies *
The submission deadline for the International Workshop on Smalltalk
Technologies (IWST) 2010 has been extended to June 18. Please find the
details below.
Call for Papers
International Workshop on Smalltalk Technologies (IWST) 2010
co-located with European Smalltalk User Group Conference (ESUG)
Barcelona, Spain, September 11-17, 2010
** Description
The goal of the IWST workshop series is to create and foster a forum
around advances or experience in Smalltalk. We welcome contributions
on all aspects, theoretical as well as practical, of Smalltalk-related
topics.
There are two possible kinds of submissions, which must be in ACM SIGPLAN style:
* Research papers (up to 10 pages). Submissions in this category will
be rigorously reviewed, and accepted papers will be published in the
ACM Digital Library (ACM SIGPLAN has approved, the final ACM approval
is pending).
* Demonstration papers (up to 4 pages). Submissions in this category
will not be published in the ACM Digital Library, but will be
available for download from the workshop web page.
** Submission and Reviewing Process
The EasyChair submission web site is at
http://www.easychair.org/conferences/?conf=iwst10.
Authors will be given the opportunity to comment on reviewers' work by
providing feedback on the reviews. For this purpose, a questionnaire
will be sent to authors. Their answers will be evaluated anonymously,
and feedback will be handed on to reviewers.
** Important Dates
Submission: June 18, 2010 (Samoa time)
Feedback: July 16, 2010
ESUG Early Registration Deadline: July 9, 2010
Authors will be able to register for the early rate if their
registration depends on IWST notification.
Workshop: September 12, 2010, Barcelona, Spain
** Programme Committee
Co-Chairs:
Michael Haupt, Hasso-Plattner-Institut, University of Potsdam, Germany
Robert Hirschfeld, Hasso-Plattner-Institut, University of Potsdam, Germany
PC Members:
Gabriela Arevalo, Universidad Nacional de La Plata, Argentina
Johannes Brauer, NORDAKADEMIE, Germany
Johan Brichau, Université catholique de Louvain, Belgium
Marcus Denker, INRIA Lille - Nord Europe, France
Theo D'Hondt, Vrije Universiteit Brussel, Belgium
James Foster, GemStone Systems, Inc., USA
Andy Kellens, Vrije Universiteit Brussel, Belgium
Andreas Raab, Teleplace Inc., USA
Lukas Renggli, Software Composition Group (SCG), University of Bern, Switzerland
Randal L. Schwartz, Stonehenge Consulting Services, Inc.
Dave Ungar, IBM Research
May 14, 2010
Re: [Pharo-users] Using FFI to call a MacOs System function
by David Wilson
Hi Mariano
Thanks for the tips, you got me on the right track. Some trial and
lots of error got me to a solution.
In order to use MacOs system calls you have to:
1) identify the function you want to use e.g. KLGetKeyboardLayoutCount
2) find out what header file this is defined in. here it's
"Keyboards.h" in the Framework "Carbon/Carbon.h"
So far it's easy from the Apple documentation
3) find out which Bundle this is in. I used Finder to find out where
Keyboards.h is used, it's used in HIToolbox.framework
4) find the actual compiled framework, on my system it's at:
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
5) I placed a copy of this file in the Pharo bundle at:
Pharo-1.0.app/Contents/Resources/HIToolbox
An the call looks like:
apiKLGetKeyboardLayoutCount
< cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module:
'HIToolbox'>
^ self externalCallFailed.
I tried a link to the bundle, that didn't work.
Probably the correct way to do this is to change Pharos RES path (in
Pharo.sh) to include the a pointer to HIToolbox executable.
I may try that if I go further with this than a prototype.
Cheers
David
On 05 May, 2010, at 23:15, Mariano Martinez Peck wrote:
BTW....keyboards seems to be a .h (a header) , but not a
library...at least in my mac
Do you have also the library ? I am still newbie with the Mac OS :(
Cheers
mariano
On Wed, May 5, 2010 at 11:10 PM, Mariano Martinez Peck
<marianopeck(a)gmail.com> wrote:
On Tue, May 4, 2010 at 4:46 PM, David Wilson <djwilson(a)bluewin.ch>
wrote:
Hi
I'm new to Pharo (although I was a Smalltalk programmer in the 90's),
and I'm trying to use FFI to access an MacOs system function:
Hi and welcome!
apiKLGetKeyboardLayoutCount
< cdecl: ulong 'KLGetKeyboardLayoutCount' (void) module:
'keyboards'>
^ self externalCallFailed.
I get an error "'Unable to find function address'" which seems to say
the OS-module "keyboards" can't be found.
Exactly. That's the problem.
I can't figure out what the address should be.
The function is defined here: http://developer.apple.com/legacy/mac/
library/documentation/Carbon/Reference/KeyboardLayoutServices/
Reference/reference.html
(yes, it's deprecated, I have a very old mac runnning 10.4).
But you see the library in your computer, isn't it ? I mean, it is
there, but FFI doesn't find it ?
I'm not sure if I'm using FFI correctly, do I have to somehow include
the external library in the Pharo VM?
No, you shouldn't need to do that. However, you can try to put them
there just to see if that's the problem. I think that at some point
(depends on an order) the library is searched in the same place where
you are calling from. So, yes, do a test, but just a test. It should
work without doing that.
How did you install FFI ? Which Pharo VM and image versions are you
using ?
Can anyone help?
I would like too, but I don't have such library.
I developed a wrapper for a Clibrary called OpenDBX using FFI. In our
website, some people experimented similar problems.
Please take a look to the title "Problems with Mac OS:" of the
following link:
http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX
I also cc'ed people that can help you.
Cheers
Mariano
I'm looked for FFI examples, but don't find anything helpful.
David
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________
Pharo-users mailing list
Pharo-users(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 14, 2010
Help (perfect for newcomers) migrating a technical FAQ
by Mariano Martinez Peck
Hi folks. I had a good idea and and it perfect for someone that wants to
help and don't know how. It is not the most entertained task, but I promise
you will learn a lot. Mostly, if you are newcomer.
The idea is basically to migrate the FAQ that is here:
http://scg.unibe.ch/wiki/faq/pharofaq
to a new section in the collaborative Pharo book:
http://book.pharo-project.org/
So....any takers ? Let us know so that we generate a new user in the Book
The idea is also to check whether what is says is still correct for pharo or
if it needs an update. Or even how to improve it (from the view of a
newcomer).
Thanks
Mariano
May 13, 2010
Re: [Pharo-users] [Pharo-project] Help testing Pharo 1.1 in big screens!
by Stéphane Ducasse
this is ok let us keep that one :)
On May 13, 2010, at 9:08 PM, Mariano Martinez Peck wrote:
>
>
> On Thu, May 13, 2010 at 8:44 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> On my 30 inches screen
> opening in full show some little square due to the limit of the png :)
>
> Ok...I guess it's a limit of the png format in particular, but THIS file. I mean, even if I convert it, I will get same results I gues...
>
> Now, I don't know where this image came from. Samuel Morello ? Can we ask someone for a new one with better resolution ?
>
> Thanks
>
> mariano
>
>
> Thanks mariano.
>
>
> On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
>
> > Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background picture for the PharoDev 1.1. The last time I tried, we had a problem with the picture because in big screens instead of making it bigger, it put it several times, or it cut it. Now, thanks to Gary, it should work well.
> >
> > So, if you are a lucky guy an have a big screen, can you please take the latests PharoCore 1.1 image, for example this:
> >
> > https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
> >
> >
> > How to test it ?
> >
> > - Download this in the same directory where the .image is:
> > https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
> >
> > Then evaluate:
> >
> > World backgroundMorph:
> > ((UITheme builder
> > newAlphaImage: (ImageReadWriter formFromFileNamed: 'pharoBackground.png') help: nil)
> > autoSize: false;
> > layout: #scaled;
> > lock)
> >
> >
> > What to test ?
> >
> > - You should stretch the pharo image, make it very big, and the background picture should stretch also together with the image.
> > - If you notice a performance decrease with it (I don't think so)
> > - If you like it or not.
> > - If the resolution is good enough in big screens
> >
> >
> > Thanks!
> >
> > Mariano
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
May 13, 2010
Re: [Pharo-users] [Pharo-project] Help testing Pharo 1.1 in big screens!
by Mariano Martinez Peck
On Thu, May 13, 2010 at 8:44 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr
> wrote:
> On my 30 inches screen
> opening in full show some little square due to the limit of the png :)
>
Ok...I guess it's a limit of the png format in particular, but THIS file. I
mean, even if I convert it, I will get same results I gues...
Now, I don't know where this image came from. Samuel Morello ? Can we ask
someone for a new one with better resolution ?
Thanks
mariano
>
> Thanks mariano.
>
>
> On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
>
> > Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background
> picture for the PharoDev 1.1. The last time I tried, we had a problem with
> the picture because in big screens instead of making it bigger, it put it
> several times, or it cut it. Now, thanks to Gary, it should work well.
> >
> > So, if you are a lucky guy an have a big screen, can you please take the
> latests PharoCore 1.1 image, for example this:
> >
> >
> https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
> >
> >
> > How to test it ?
> >
> > - Download this in the same directory where the .image is:
> > https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
> >
> > Then evaluate:
> >
> > World backgroundMorph:
> > ((UITheme builder
> > newAlphaImage: (ImageReadWriter formFromFileNamed:
> 'pharoBackground.png') help: nil)
> > autoSize: false;
> > layout: #scaled;
> > lock)
> >
> >
> > What to test ?
> >
> > - You should stretch the pharo image, make it very big, and the
> background picture should stretch also together with the image.
> > - If you notice a performance decrease with it (I don't think so)
> > - If you like it or not.
> > - If the resolution is good enough in big screens
> >
> >
> > Thanks!
> >
> > Mariano
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 13, 2010
Re: [Pharo-users] [Pharo-project] Help testing Pharo 1.1 in big screens!
by Stéphane Ducasse
On my 30 inches screen
opening in full show some little square due to the limit of the png :)
Thanks mariano.
On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
> Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background picture for the PharoDev 1.1. The last time I tried, we had a problem with the picture because in big screens instead of making it bigger, it put it several times, or it cut it. Now, thanks to Gary, it should work well.
>
> So, if you are a lucky guy an have a big screen, can you please take the latests PharoCore 1.1 image, for example this:
>
> https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
>
>
> How to test it ?
>
> - Download this in the same directory where the .image is:
> https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
>
> Then evaluate:
>
> World backgroundMorph:
> ((UITheme builder
> newAlphaImage: (ImageReadWriter formFromFileNamed: 'pharoBackground.png') help: nil)
> autoSize: false;
> layout: #scaled;
> lock)
>
>
> What to test ?
>
> - You should stretch the pharo image, make it very big, and the background picture should stretch also together with the image.
> - If you notice a performance decrease with it (I don't think so)
> - If you like it or not.
> - If the resolution is good enough in big screens
>
>
> Thanks!
>
> Mariano
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
May 13, 2010
Help testing Pharo 1.1 in big screens!
by Mariano Martinez Peck
Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background
picture for the PharoDev 1.1. The last time I tried, we had a problem with
the picture because in big screens instead of making it bigger, it put it
several times, or it cut it. Now, thanks to Gary, it should work well.
So, if you are a lucky guy an have a big screen, can you please take the
latests PharoCore 1.1 image, for example this:
https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
How to test it ?
- Download this in the same directory where the .image is:
https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
Then evaluate:
World backgroundMorph:
((UITheme builder
newAlphaImage: (ImageReadWriter formFromFileNamed:
'pharoBackground.png') help: nil)
autoSize: false;
layout: #scaled;
lock)
What to test ?
- You should stretch the pharo image, make it very big, and the background
picture should stretch also together with the image.
- If you notice a performance decrease with it (I don't think so)
- If you like it or not.
- If the resolution is good enough in big screens
Thanks!
Mariano
May 13, 2010
Re: [Pharo-users] ecompletion - smart characters
by Stéphane Ducasse
Cool!
On May 13, 2010, at 1:04 AM, Mariano Martinez Peck wrote:
> Ok...I added this information to the book. Please look at:
>
> http://book.pharo-project.org/book/CodeEditing/SmartCharactersAutocompletion
>
> Cheers
>
> Mariano
May 13, 2010
Re: [Pharo-users] ecompletion - smart characters
by Mariano Martinez Peck
Ok...I added this information to the book. Please look at:
http://book.pharo-project.org/book/CodeEditing/SmartCharactersAutocompletion
Cheers
Mariano
On Tue, May 11, 2010 at 1:40 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr
> wrote:
> I saw but I want that on http://book.pharo-project.org
>
> On May 11, 2010, at 10:41 AM, Lukas Renggli wrote:
>
> > See http://code.google.com/p/pharo/issues/detail?id=2407.
> >
> > Lukas
> >
> > On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr>
> wrote:
> >> mariano
> >>
> >> can you create a page on the book with that?
> >>
> >> Stef
> >>
> >> On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
> >>
> >>>
> >>>
> >>> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org>
> wrote:
> >>> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
> >>>
> >>>> If I understood correctly it is about the matching of brackets and
> >>>> quotes. In this regard, the completion behaves exactly like TextMate.
> >>>
> >>>> So, why is this a bug?
> >>>
> >>> How do you manage to type a single quote in TextMate? Does that work
> >>> in Pharo?
> >>>
> >>>
> >>> Good question. But I don't know. This "feature" is from the package
> Shout that is installed in Pharo dev images. If you take a PharoCore for
> example, it doesn't happen.
> >>>
> >>> I keep winding up with too many right parens. It is possible that I
> >>> am typing too many. My suspicion is that Pharo is providing too
> >>> many.
> >>>
> >>> This is how it works:
> >>>
> >>> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it
> will AUTOMATICALLY open the other pair. This is because this is usually the
> case: you open the left one, you will probably need to open the right one.
> >>>
> >>> 2) when you type the RIGHT side, it only writes the right side.
> >>>
> >>> 3) When you remove a left side of the two recently created ( like 1) )
> , just after creating it, it removes both of them: left and right
> >>>
> >>>
> >>> Let me remark something. The style to work with this tool, is not to go
> to left, type, then go to right, and type. I mean, suppose I have this
> >>>
> >>> Transcript show: 5 timesRepeat: ['something']
> >>>
> >>> and I need to have it like this:
> >>>
> >>>
> >>> Transcript show: (5 timesRepeat: ['something'])
> >>>
> >>> the whay to work with Pharo is not:
> >>>
> >>> Transcript show: (5 timesRepeat: ['something']
> >>>
> >>> then
> >>>
> >>> Transcript show: (5 timesRepeat: ['something'])
> >>>
> >>> The idea is that you FIRST select the code you want, and then, you
> press the LEFT side of what you want. In that case, you select "5
> timesRepeat: ['something']" and with that selected you press "(" . And the
> same with all those characters.
> >>>
> >>> It is difficult to explain by chat hahahaha. I think they are very very
> useful, but you have to get use to. When I started with Pharo I was still a
> java developer..so I was the whole day with Eclipse and then at night with
> Pharo...and it was incredible how I was trying to work this way in Eclipse,
> in gmail, in TextEdit etc hahahahha
> >>>
> >>> Cheers
> >>>
> >>> Mariano
> >>>
> >>>
> >>>
> >>> Ron Jeffries
> >>> www.XProgramming.com
> >>> www.xprogramming.com/blog
> >>> New and stirring things are belittled because if they are not
> belittled,
> >>> the humiliating question arises, "Why then are you not taking part in
> >>> them?" -- H. G. Wells
> >>>
> >>>
> >>> _______________________________________________
> >>> Pharo-users mailing list
> >>> Pharo-users(a)lists.gforge.inria.fr
> >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >>>
> >>> _______________________________________________
> >>> Pharo-users mailing list
> >>> Pharo-users(a)lists.gforge.inria.fr
> >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >>
> >>
> >> _______________________________________________
> >> Pharo-users mailing list
> >> Pharo-users(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >>
> >
> >
> >
> > --
> > Lukas Renggli
> > www.lukas-renggli.ch
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 12, 2010
Re: [Pharo-users] Resolving some dependencies...
by Stéphane Ducasse
We should edit the project wiki to say that and also the status to private so that PharoMorphicExtras is just
there for archival purposes.
Setf
On May 12, 2010, at 5:18 PM, Mariano Martinez Peck wrote:
> Carla: some time ago with stef we moved the working packages form http://www.squeaksource.com/PharoMorphicExtras to
>
> http://www.squeaksource.com/PharoNonCorePackages
>
> As you can see in PharoNonCorePackages it is no more MorphicExtras.
> In addition, we did ConfigurationOfPharoMorphicExtras
>
> So please, from nowon, use that repository. And in case of changing something, commit it there, as the next dev images will use PharoNonCorePackages and not PharoMorphicExtras.
>
> Cheers
>
> Mariano
>
>
> On Mon, May 10, 2010 at 7:15 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> ExtraMorphs?
> On May 10, 2010, at 5:15 PM, Mariano Martinez Peck wrote:
>
> >
> >
> > On Mon, May 10, 2010 at 5:09 PM, Carla F. Griggio <carla.griggio(a)gmail.com> wrote:
> > Uff, then... I'll have to do some work over this :)
> >
> > About MorphicExtras, if you say it's a lot of crap, I trust you.
> >
> > me too.
> >
> > But the name of ConfigurationOfPharoMorphicExtras suggests that it will load MorphicExtras (at least for me, because I had the package name 'Morphic Extras' stucked in my head when I found the metacello configuration) :$ So that might be a little confusing.
> >
> > That's exactly why I asked. Stef, Carla, do you have a better name for such configuration ?
> >
> > Cheers
> >
> > Mariano
> >
> >
> >
> > Thanks!
> >
> > Carla
> >
> >
> > On Mon, May 10, 2010 at 8:03 AM, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> > >
> > > >
> > > > PS: When I used ConfigurationOfPharoMorphicExtras, it loaded some Morphic packages but not the MorphicExtras package itself, I had to load it manually later. Is that OK?
> > >
> > > Yes because MorphicExtras-StephaneDucasse.144 is a dead package. It is full of crap or experimental code.
> >
> >
> >
> > >
> > >
> > > But anyway, I think she is right.
> >
> > she is not
> >
> > > The package MorphicExtras should be loaded, together with MorphExamplesAndDemos and LED, shouldn't it ?
> >
> > No it should NOT!
> > Check the classes in there and you will see that you do NOT want that in your image. :)
> > What I did was to extract the MorphExampleAndDemos where I cleaned the code made sure that the xamples
> > are working......
> >
> > So MorphicExtras should just be there so that people can extract something that they would like to repackage. Period.
> >
> > >
> > > Cheers
> > >
> > > mariano
> > >
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Pharo-users mailing list
> > > > Pharo-users(a)lists.gforge.inria.fr
> > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 12, 2010
Re: [Pharo-users] Resolving some dependencies...
by Mariano Martinez Peck
Carla: some time ago with stef we moved the working packages form
http://www.squeaksource.com/PharoMorphicExtras to
http://www.squeaksource.com/PharoNonCorePackages
As you can see in PharoNonCorePackages it is no more MorphicExtras.
In addition, we did ConfigurationOfPharoMorphicExtras
So please, from nowon, use that repository. And in case of changing
something, commit it there, as the next dev images will use
PharoNonCorePackages and not PharoMorphicExtras.
Cheers
Mariano
On Mon, May 10, 2010 at 7:15 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr
> wrote:
> ExtraMorphs?
> On May 10, 2010, at 5:15 PM, Mariano Martinez Peck wrote:
>
> >
> >
> > On Mon, May 10, 2010 at 5:09 PM, Carla F. Griggio <
> carla.griggio(a)gmail.com> wrote:
> > Uff, then... I'll have to do some work over this :)
> >
> > About MorphicExtras, if you say it's a lot of crap, I trust you.
> >
> > me too.
> >
> > But the name of ConfigurationOfPharoMorphicExtras suggests that it will
> load MorphicExtras (at least for me, because I had the package name 'Morphic
> Extras' stucked in my head when I found the metacello configuration) :$ So
> that might be a little confusing.
> >
> > That's exactly why I asked. Stef, Carla, do you have a better name for
> such configuration ?
> >
> > Cheers
> >
> > Mariano
> >
> >
> >
> > Thanks!
> >
> > Carla
> >
> >
> > On Mon, May 10, 2010 at 8:03 AM, Stéphane Ducasse <
> stephane.ducasse(a)inria.fr> wrote:
> > >
> > > >
> > > > PS: When I used ConfigurationOfPharoMorphicExtras, it loaded some
> Morphic packages but not the MorphicExtras package itself, I had to load it
> manually later. Is that OK?
> > >
> > > Yes because MorphicExtras-StephaneDucasse.144 is a dead package. It is
> full of crap or experimental code.
> >
> >
> >
> > >
> > >
> > > But anyway, I think she is right.
> >
> > she is not
> >
> > > The package MorphicExtras should be loaded, together with
> MorphExamplesAndDemos and LED, shouldn't it ?
> >
> > No it should NOT!
> > Check the classes in there and you will see that you do NOT want that in
> your image. :)
> > What I did was to extract the MorphExampleAndDemos where I cleaned the
> code made sure that the xamples
> > are working......
> >
> > So MorphicExtras should just be there so that people can extract
> something that they would like to repackage. Period.
> >
> > >
> > > Cheers
> > >
> > > mariano
> > >
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Pharo-users mailing list
> > > > Pharo-users(a)lists.gforge.inria.fr
> > > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> > >
> > > _______________________________________________
> > > Pharo-users mailing list
> > > Pharo-users(a)lists.gforge.inria.fr
> > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 12, 2010
Re: [Pharo-users] Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Miguel Enrique Cobá Martinez
El mar, 11-05-2010 a las 16:57 -0400, Marco A. Gonzalez escribió:
> Hi, I'm new to Pharo, and think that along with Seaside, it is so well
> architected that it's compelling me to try it for professional web
> development.
>
> I've created a simple web application in Seaside into which I'd like
> to incorporate a WYSIWYG Javascript editor for the HTML textarea tags
> so my users can enter stylized text. I've used TinyMCE in the past in
> my Java-based web apps, and it's been very simple to integrate.
> See http://tinymce.moxiecode.com/.
>
> However, I can't get it to work in my Pharo/Seaside web applications.
> It just doesn't show up in my web browser.
> I hope I've specified everything below clearly, completely and
> succinctly. Has anyone else incorporated TinyMCE successfully? What am
> I missing? What am I doing wrong?
I use tinyMCE but I don't import the javascript code into the Seaside
app. I put them on the web server in a given path and then in the
Seaside code I put a reference to it:
updateRoot: anHtmlRoot
super updateRoot: anHtmlRoot.
anHtmlRoot javascript
resourceUrl: '/javascript/tiny_mce/tiny_mce.js'
I use a resource url but you can use a full path by using url: (I
think).
Then in the text area component:
script
^ '
tinyMCE.init({
mode : "textareas",
theme : "advanced"
});
'
and then something like:
renderContentOn: html
html label with: self session l10n text.
html break.
html textArea
class: 'span-13';
rows: 6;
on: #text of: self note
And this activates the editor on all the text areas on the page.
Hope this help.
--
Miguel Cobá
http://miguel.leugim.com.mx
May 12, 2010
Re: [Pharo-users] Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Igor Stasenko
I don't know if it would help,
but i think FireBug (for Firefox browser) will make your life much easier,
to debug things and determine why it not works :)
On 11 May 2010 23:57, Marco A. Gonzalez <marcoinc(a)mac.com> wrote:
> Hi, I'm new to Pharo, and think that along with Seaside, it is so well
> architected that it's compelling me to try it for professional web
> development.
> I've created a simple web application in Seaside into which I'd like to
> incorporate a WYSIWYG Javascript editor for the HTML textarea tags so my
> users can enter stylized text. I've used TinyMCE in the past in my
> Java-based web apps, and it's been very simple to integrate.
> See http://tinymce.moxiecode.com/.
>
> However, I can't get it to work in my Pharo/Seaside web applications. It
> just doesn't show up in my web browser.
> I hope I've specified everything below clearly, completely and succinctly.
> Has anyone else incorporated TinyMCE successfully? What am I missing? What
> am I doing wrong?
>
> Below are the relevant snippets of code:
> ----
> #updateRoot: anHtmlRoot
> super updateRoot:anHtmlRoot.
>
> "Adds tinyMCE javascript code to the document with a 'script src='
> anHtmlRoot addScript: self tinyMCEJavascript.
>
> #tinyMCEJavascript
> ^'
> tinyMCE.init({
> // General options
> // mode : "textareas",
>
> mode : "specific_textareas",
> editor_selector : "useJavascriptWYSIWYGEditor",
>
> theme : "advanced",
> plugins :
> "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
>
> // Theme options
> theme_advanced_buttons1 :
> "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
> theme_advanced_buttons2 :
> "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
> theme_advanced_buttons3 :
> "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
> theme_advanced_buttons4 :
> "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
> theme_advanced_toolbar_location : "top",
> theme_advanced_toolbar_align : "left",
> theme_advanced_statusbar_location : "bottom",
> theme_advanced_resizing : true,
>
> // Example content CSS (should be your site CSS)
> content_css : "css/example.css",
>
> // Drop lists for link/image/media/template dialogs
> template_external_list_url : "js/template_list.js",
> external_link_list_url : "js/link_list.js",
> external_image_list_url : "js/image_list.js",
> media_external_list_url : "js/media_list.js",
>
> // Replace values for the template plugin
> template_replace_values : {
> username : "Some User",
> staffid : "991234"
> }
> });
> '.
>
> #renderContentOn: html
> html document addLoadScript:'tinyMCE.init();'.
>
> html div class: 'AmagaviBNIEventEditor'; with: [
> html form multipart with: [
> html table class: 'rolodex'; with:[
>
> html tableRow:[
> html tableHeading:'Descriptive text'.
> html tableData:[
> html textArea
> "class: 'content';"
> class: 'useJavascriptWYSIWYGEditor';
> columns: '60';
> rows: '5';
> callback: [ :editedValue | self event descriptiveText: editedValue ];
> value: self event descriptiveText.
> ].
> ]. "tableRow"
> ]. "table"
>
> html submitButton
> callback: [ self save. ];
> value: 'Save'.
>
> html submitButton
> callback: [self cancel];
> value: 'Cancel'.
> ]. "form"
> ]. "div"
>
> ----
>
> Using my web browser, when I "view source" to see the HTML, I appropriately
> see the following HTML in between the <head></head> tags:
> <script type="text/javascript"
> src="/amagaviBNI?_s=UOMr33WyYGqoSDx0"></script>
>
> Copy/Pasting the "/amagaviBNI?_s=UOMr33WyYGqoSDx0" in my browser
> appropriately shows the tinyMCE.init() javascript method that is referenced
> by #tinyMCEJavascript.
>
> The textarea HTML appropriately shows
> <textarea rows="5" cols="60" class="useJavascriptWYSIWYGEditor"
> name="5">This is an event. </textarea>
>
> The body tag looks like this:
> <body onload="onLoad()">
>
> ... and right above the closing body tag, the HTML is...
> <script type="text/javascript">/*<![CDATA[*/function
> onLoad(){tinyMCE.init();}/*]]>*/</script></body>
>
> I'm using PharoCore1.0, Latest update: #10517 on a Macintosh MacBookPro with
> OS X v10.5.8.
> Using "printIt" on SmalltalkImage current vmVersion, I get
> 'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM 4.2.2b1'
>
> I think I'm using Seaside 3.0a5 since I have a window entitled "Seaside
> 3.0a5" but since I've used the World menu > System > Software update to
> update my system, I don't know if it's been updated. I also don't know what
> to evaluate to determine what actual version of Seaside I'm running so I'd
> be grateful if someone could tell me how to do that too. If there's a newer
> version of Seaside that I've not been getting using "Software update", then
> would you tell me how to get the most recent, "usable" version also?
>
> Finally, thanks to everyone who has developed all the above-mentioned
> components, as well as the people using Pharo and Seaside and have been
> posting and answering questions. I hope to get to a point of expertise where
> I can contribute as well.
>
> - Marco A.
> ---------
> Marco A. Gonzalez
> web:Â http://www.amagavi.com/
>
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
--
Best regards,
Igor Stasenko AKA sig.
May 11, 2010
Re: [Pharo-users] Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Stéphane Ducasse
hi marco
welcome :)
May be you should ask seaside questions to the seaside mailing-list?
Because you will have a better chance to get an answer.
stef
On May 11, 2010, at 10:57 PM, Marco A. Gonzalez wrote:
> Hi, I'm new to Pharo, and think that along with Seaside, it is so well architected that it's compelling me to try it for professional web development.
>
> I've created a simple web application in Seaside into which I'd like to incorporate a WYSIWYG Javascript editor for the HTML textarea tags so my users can enter stylized text. I've used TinyMCE in the past in my Java-based web apps, and it's been very simple to integrate. See http://tinymce.moxiecode.com/.
>
> However, I can't get it to work in my Pharo/Seaside web applications. It just doesn't show up in my web browser.
> I hope I've specified everything below clearly, completely and succinctly. Has anyone else incorporated TinyMCE successfully? What am I missing? What am I doing wrong?
>
> Below are the relevant snippets of code:
> ----
> #updateRoot: anHtmlRoot
> super updateRoot:anHtmlRoot.
>
> "Adds tinyMCE javascript code to the document with a 'script src='
> anHtmlRoot addScript: self tinyMCEJavascript.
>
> #tinyMCEJavascript
> ^'
> tinyMCE.init({
> // General options
> // mode : "textareas",
>
> mode : "specific_textareas",
> editor_selector : "useJavascriptWYSIWYGEditor",
>
> theme : "advanced",
> plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
>
> // Theme options
> theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
> theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
> theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
> theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
> theme_advanced_toolbar_location : "top",
> theme_advanced_toolbar_align : "left",
> theme_advanced_statusbar_location : "bottom",
> theme_advanced_resizing : true,
>
> // Example content CSS (should be your site CSS)
> content_css : "css/example.css",
>
> // Drop lists for link/image/media/template dialogs
> template_external_list_url : "js/template_list.js",
> external_link_list_url : "js/link_list.js",
> external_image_list_url : "js/image_list.js",
> media_external_list_url : "js/media_list.js",
>
> // Replace values for the template plugin
> template_replace_values : {
> username : "Some User",
> staffid : "991234"
> }
> });
> '.
>
> #renderContentOn: html
> html document addLoadScript:'tinyMCE.init();'.
>
> html div class: 'AmagaviBNIEventEditor'; with: [
> html form multipart with: [
> html table class: 'rolodex'; with:[
>
> html tableRow:[
> html tableHeading:'Descriptive text'.
> html tableData:[
> html textArea
> "class: 'content';"
> class: 'useJavascriptWYSIWYGEditor';
> columns: '60';
> rows: '5';
> callback: [ :editedValue | self event descriptiveText: editedValue ];
> value: self event descriptiveText.
> ].
> ]. "tableRow"
> ]. "table"
>
> html submitButton
> callback: [ self save. ];
> value: 'Save'.
>
> html submitButton
> callback: [self cancel];
> value: 'Cancel'.
> ]. "form"
> ]. "div"
>
> ----
>
> Using my web browser, when I "view source" to see the HTML, I appropriately see the following HTML in between the <head></head> tags:
> <script type="text/javascript" src="/amagaviBNI?_s=UOMr33WyYGqoSDx0"></script>
>
> Copy/Pasting the "/amagaviBNI?_s=UOMr33WyYGqoSDx0" in my browser appropriately shows the tinyMCE.init() javascript method that is referenced by #tinyMCEJavascript.
>
> The textarea HTML appropriately shows
> <textarea rows="5" cols="60" class="useJavascriptWYSIWYGEditor" name="5">This is an event. </textarea>
>
> The body tag looks like this:
> <body onload="onLoad()">
>
> ... and right above the closing body tag, the HTML is...
> <script type="text/javascript">/*<![CDATA[*/function onLoad(){tinyMCE.init();}/*]]>*/</script></body>
>
> I'm using PharoCore1.0, Latest update: #10517 on a Macintosh MacBookPro with OS X v10.5.8.
> Using "printIt" on SmalltalkImage current vmVersion, I get
> 'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM 4.2.2b1'
>
> I think I'm using Seaside 3.0a5 since I have a window entitled "Seaside 3.0a5" but since I've used the World menu > System > Software update to update my system, I don't know if it's been updated. I also don't know what to evaluate to determine what actual version of Seaside I'm running so I'd be grateful if someone could tell me how to do that too. If there's a newer version of Seaside that I've not been getting using "Software update", then would you tell me how to get the most recent, "usable" version also?
>
> Finally, thanks to everyone who has developed all the above-mentioned components, as well as the people using Pharo and Seaside and have been posting and answering questions. I hope to get to a point of expertise where I can contribute as well.
>
> - Marco A.
> ---------
> Marco A. Gonzalez
> web: http://www.amagavi.com/
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010
Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Marco A. Gonzalez
Hi, I'm new to Pharo, and think that along with Seaside, it is so well
architected that it's compelling me to try it for professional web
development.
I've created a simple web application in Seaside into which I'd like
to incorporate a WYSIWYG Javascript editor for the HTML textarea tags
so my users can enter stylized text. I've used TinyMCE in the past in
my Java-based web apps, and it's been very simple to integrate. See http://tinymce.moxiecode.com/
.
However, I can't get it to work in my Pharo/Seaside web applications.
It just doesn't show up in my web browser.
I hope I've specified everything below clearly, completely and
succinctly. Has anyone else incorporated TinyMCE successfully? What am
I missing? What am I doing wrong?
Below are the relevant snippets of code:
----
#updateRoot: anHtmlRoot
super updateRoot:anHtmlRoot.
"Adds tinyMCE javascript code to the document with a 'script src='
anHtmlRoot addScript: self tinyMCEJavascript.
#tinyMCEJavascript
^'
tinyMCE.init({
// General options
// mode : "textareas",
mode : "specific_textareas",
editor_selector : "useJavascriptWYSIWYGEditor",
theme : "advanced",
plugins :
"safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
// Theme options
theme_advanced_buttons1 :
"save
,newdocument
,|
,bold
,italic
,underline
,strikethrough
,|
,justifyleft
,justifycenter
,justifyright
,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 :
"cut
,copy
,paste
,pastetext
,pasteword
,|
,search
,replace
,|
,bullist
,numlist
,|
,outdent
,indent
,blockquote
,|
,undo
,redo
,|
,link
,unlink
,anchor
,image
,cleanup
,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 :
"tablecontrols
,|
,hr
,removeformat
,visualaid
,|
,sub
,sup
,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 :
"insertlayer
,moveforward
,movebackward
,absolute
,|
,styleprops
,spellchecker
,|
,cite
,abbr
,acronym
,del
,ins
,attribs
,|
,visualchars
,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/example.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
'.
#renderContentOn: html
html document addLoadScript:'tinyMCE.init();'.
html div class: 'AmagaviBNIEventEditor'; with: [
html form multipart with: [
html table class: 'rolodex'; with:[
html tableRow:[
html tableHeading:'Descriptive text'.
html tableData:[
html textArea
"class: 'content';"
class: 'useJavascriptWYSIWYGEditor';
columns: '60';
rows: '5';
callback: [ :editedValue | self event descriptiveText:
editedValue ];
value: self event descriptiveText.
].
]. "tableRow"
]. "table"
html submitButton
callback: [ self save. ];
value: 'Save'.
html submitButton
callback: [self cancel];
value: 'Cancel'.
]. "form"
]. "div"
----
Using my web browser, when I "view source" to see the HTML, I
appropriately see the following HTML in between the <head></head> tags:
<script type="text/javascript" src="/amagaviBNI?
_s=UOMr33WyYGqoSDx0"></script>
Copy/Pasting the "/amagaviBNI?_s=UOMr33WyYGqoSDx0" in my browser
appropriately shows the tinyMCE.init() javascript method that is
referenced by #tinyMCEJavascript.
The textarea HTML appropriately shows
<textarea rows="5" cols="60" class="useJavascriptWYSIWYGEditor"
name="5">This is an event. </textarea>
The body tag looks like this:
<body onload="onLoad()">
... and right above the closing body tag, the HTML is...
<script type="text/javascript">/*<![CDATA[*/function onLoad()
{tinyMCE.init();}/*]]>*/</script></body>
I'm using PharoCore1.0, Latest update: #10517 on a Macintosh
MacBookPro with OS X v10.5.8.
Using "printIt" on SmalltalkImage current vmVersion, I get
'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM
4.2.2b1'
I think I'm using Seaside 3.0a5 since I have a window entitled
"Seaside 3.0a5" but since I've used the World menu > System > Software
update to update my system, I don't know if it's been updated. I also
don't know what to evaluate to determine what actual version of
Seaside I'm running so I'd be grateful if someone could tell me how to
do that too. If there's a newer version of Seaside that I've not been
getting using "Software update", then would you tell me how to get the
most recent, "usable" version also?
Finally, thanks to everyone who has developed all the above-mentioned
components, as well as the people using Pharo and Seaside and have
been posting and answering questions. I hope to get to a point of
expertise where I can contribute as well.
- Marco A.
---------
Marco A. Gonzalez
web: http://www.amagavi.com/
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Stéphane Ducasse
I saw but I want that on http://book.pharo-project.org
On May 11, 2010, at 10:41 AM, Lukas Renggli wrote:
> See http://code.google.com/p/pharo/issues/detail?id=2407.
>
> Lukas
>
> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
>> mariano
>>
>> can you create a page on the book with that?
>>
>> Stef
>>
>> On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>>
>>>
>>>
>>> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
>>> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>>>
>>>> If I understood correctly it is about the matching of brackets and
>>>> quotes. In this regard, the completion behaves exactly like TextMate.
>>>
>>>> So, why is this a bug?
>>>
>>> How do you manage to type a single quote in TextMate? Does that work
>>> in Pharo?
>>>
>>>
>>> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>>>
>>> I keep winding up with too many right parens. It is possible that I
>>> am typing too many. My suspicion is that Pharo is providing too
>>> many.
>>>
>>> This is how it works:
>>>
>>> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>>>
>>> 2) when you type the RIGHT side, it only writes the right side.
>>>
>>> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>>>
>>>
>>> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have this
>>>
>>> Transcript show: 5 timesRepeat: ['something']
>>>
>>> and I need to have it like this:
>>>
>>>
>>> Transcript show: (5 timesRepeat: ['something'])
>>>
>>> the whay to work with Pharo is not:
>>>
>>> Transcript show: (5 timesRepeat: ['something']
>>>
>>> then
>>>
>>> Transcript show: (5 timesRepeat: ['something'])
>>>
>>> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>>>
>>> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>>>
>>> Cheers
>>>
>>> Mariano
>>>
>>>
>>>
>>> Ron Jeffries
>>> www.XProgramming.com
>>> www.xprogramming.com/blog
>>> New and stirring things are belittled because if they are not belittled,
>>> the humiliating question arises, "Why then are you not taking part in
>>> them?" -- H. G. Wells
>>>
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Lukas Renggli
Yes, of course :-)
Lukas
On 11 May 2010 10:43, Mariano Martinez Peck <marianopeck(a)gmail.com> wrote:
>
>
> On Tue, May 11, 2010 at 10:41 AM, Lukas Renggli <renggli(a)gmail.com> wrote:
>>
>> See http://code.google.com/p/pharo/issues/detail?id=2407.
>>
>
> I thought it was Shout who did that...is ECompletion instead ?
>
>
>>
>> Lukas
>>
>> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
>> > mariano
>> >
>> > can you create a page on the book with that?
>> >
>> > Stef
>> >
>> > On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>> >
>> >>
>> >>
>> >> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org>
>> >> wrote:
>> >> Hello, Tudor. Â On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>> >>
>> >> > If I understood correctly it is about the matching of brackets and
>> >> > quotes. In this regard, the completion behaves exactly like TextMate.
>> >>
>> >> > So, why is this a bug?
>> >>
>> >> How do you manage to type a single quote in TextMate? Does that work
>> >> in Pharo?
>> >>
>> >>
>> >> Good question. But I don't know. This "feature" is from the package
>> >> Shout that is installed in Pharo dev images. If you take a PharoCore for
>> >> example, it doesn't happen.
>> >>
>> >> I keep winding up with too many right parens. It is possible that I
>> >> am typing too many. My suspicion is that Pharo is providing too
>> >> many.
>> >>
>> >> This is how it works:
>> >>
>> >> 1) when you type the LEFT side of: Â { , [ Â , ( , " , ' Â Â etc .... it
>> >> will AUTOMATICALLY open the other pair. This is because this is usually the
>> >> case: you open the left one, you will probably need to open the right one.
>> >>
>> >> 2) when you type the RIGHT side, it only writes the right side.
>> >>
>> >> 3) When you remove a left side of the two recently created ( like 1) )
>> >> , just after creating it, it removes both of them: left and right
>> >>
>> >>
>> >> Let me remark something. The style to work with this tool, is not to go
>> >> to left, type, then go to right, and type. I mean, suppose I have  this
>> >>
>> >> Transcript show: 5 timesRepeat: ['something']
>> >>
>> >> and I need to have it like this:
>> >>
>> >>
>> >> Transcript show: (5 timesRepeat: ['something'])
>> >>
>> >> the whay to work with Pharo is not:
>> >>
>> >> Transcript show: (5 timesRepeat: ['something']
>> >>
>> >> then
>> >>
>> >> Transcript show: (5 timesRepeat: ['something'])
>> >>
>> >> The idea is that you FIRST select the code you want, and then, you
>> >> press the LEFT side of what you want. In that case, you select "5
>> >> timesRepeat: ['something']" and with that selected you press "(" . And the
>> >> same with all those characters.
>> >>
>> >> It is difficult to explain by chat hahahaha. I think they are very very
>> >> useful, but you have to get use to. When I started with Pharo I was still a
>> >> java developer..so I was the whole day with Eclipse and then at night with
>> >> Pharo...and it was incredible how I was trying to work this way in Eclipse,
>> >> in gmail, in TextEdit etc hahahahha
>> >>
>> >> Cheers
>> >>
>> >> Mariano
>> >>
>> >>
>> >>
>> >> Ron Jeffries
>> >> www.XProgramming.com
>> >> www.xprogramming.com/blog
>> >> New and stirring things are belittled because if they are not
>> >> belittled,
>> >> the humiliating question arises, "Why then are you not taking part in
>> >> them?" Â -- H. G. Wells
>> >>
>> >>
>> >> _______________________________________________
>> >> Pharo-users mailing list
>> >> Pharo-users(a)lists.gforge.inria.fr
>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >>
>> >> _______________________________________________
>> >> Pharo-users mailing list
>> >> Pharo-users(a)lists.gforge.inria.fr
>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >
>> >
>> > _______________________________________________
>> > Pharo-users mailing list
>> > Pharo-users(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >
>>
>>
>>
>> --
>> Lukas Renggli
>> www.lukas-renggli.ch
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
--
Lukas Renggli
www.lukas-renggli.ch
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Mariano Martinez Peck
On Tue, May 11, 2010 at 10:41 AM, Lukas Renggli <renggli(a)gmail.com> wrote:
> See http://code.google.com/p/pharo/issues/detail?id=2407.
>
>
I thought it was Shout who did that...is ECompletion instead ?
> Lukas
>
> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> > mariano
> >
> > can you create a page on the book with that?
> >
> > Stef
> >
> > On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
> >
> >>
> >>
> >> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org>
> wrote:
> >> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
> >>
> >> > If I understood correctly it is about the matching of brackets and
> >> > quotes. In this regard, the completion behaves exactly like TextMate.
> >>
> >> > So, why is this a bug?
> >>
> >> How do you manage to type a single quote in TextMate? Does that work
> >> in Pharo?
> >>
> >>
> >> Good question. But I don't know. This "feature" is from the package
> Shout that is installed in Pharo dev images. If you take a PharoCore for
> example, it doesn't happen.
> >>
> >> I keep winding up with too many right parens. It is possible that I
> >> am typing too many. My suspicion is that Pharo is providing too
> >> many.
> >>
> >> This is how it works:
> >>
> >> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it
> will AUTOMATICALLY open the other pair. This is because this is usually the
> case: you open the left one, you will probably need to open the right one.
> >>
> >> 2) when you type the RIGHT side, it only writes the right side.
> >>
> >> 3) When you remove a left side of the two recently created ( like 1) ) ,
> just after creating it, it removes both of them: left and right
> >>
> >>
> >> Let me remark something. The style to work with this tool, is not to go
> to left, type, then go to right, and type. I mean, suppose I have this
> >>
> >> Transcript show: 5 timesRepeat: ['something']
> >>
> >> and I need to have it like this:
> >>
> >>
> >> Transcript show: (5 timesRepeat: ['something'])
> >>
> >> the whay to work with Pharo is not:
> >>
> >> Transcript show: (5 timesRepeat: ['something']
> >>
> >> then
> >>
> >> Transcript show: (5 timesRepeat: ['something'])
> >>
> >> The idea is that you FIRST select the code you want, and then, you press
> the LEFT side of what you want. In that case, you select "5 timesRepeat:
> ['something']" and with that selected you press "(" . And the same with all
> those characters.
> >>
> >> It is difficult to explain by chat hahahaha. I think they are very very
> useful, but you have to get use to. When I started with Pharo I was still a
> java developer..so I was the whole day with Eclipse and then at night with
> Pharo...and it was incredible how I was trying to work this way in Eclipse,
> in gmail, in TextEdit etc hahahahha
> >>
> >> Cheers
> >>
> >> Mariano
> >>
> >>
> >>
> >> Ron Jeffries
> >> www.XProgramming.com
> >> www.xprogramming.com/blog
> >> New and stirring things are belittled because if they are not belittled,
> >> the humiliating question arises, "Why then are you not taking part in
> >> them?" -- H. G. Wells
> >>
> >>
> >> _______________________________________________
> >> Pharo-users mailing list
> >> Pharo-users(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >>
> >> _______________________________________________
> >> Pharo-users mailing list
> >> Pharo-users(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Lukas Renggli
See http://code.google.com/p/pharo/issues/detail?id=2407.
Lukas
On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> mariano
>
> can you create a page on the book with that?
>
> Stef
>
> On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>
>>
>>
>> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
>> Hello, Tudor. Â On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>>
>> > If I understood correctly it is about the matching of brackets and
>> > quotes. In this regard, the completion behaves exactly like TextMate.
>>
>> > So, why is this a bug?
>>
>> How do you manage to type a single quote in TextMate? Does that work
>> in Pharo?
>>
>>
>> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>>
>> I keep winding up with too many right parens. It is possible that I
>> am typing too many. My suspicion is that Pharo is providing too
>> many.
>>
>> This is how it works:
>>
>> 1) when you type the LEFT side of: Â { , [ Â , ( , " , ' Â Â etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>>
>> 2) when you type the RIGHT side, it only writes the right side.
>>
>> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>>
>>
>> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have  this
>>
>> Transcript show: 5 timesRepeat: ['something']
>>
>> and I need to have it like this:
>>
>>
>> Transcript show: (5 timesRepeat: ['something'])
>>
>> the whay to work with Pharo is not:
>>
>> Transcript show: (5 timesRepeat: ['something']
>>
>> then
>>
>> Transcript show: (5 timesRepeat: ['something'])
>>
>> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>>
>> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>>
>> Cheers
>>
>> Mariano
>>
>>
>>
>> Ron Jeffries
>> www.XProgramming.com
>> www.xprogramming.com/blog
>> New and stirring things are belittled because if they are not belittled,
>> the humiliating question arises, "Why then are you not taking part in
>> them?" Â -- H. G. Wells
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
--
Lukas Renggli
www.lukas-renggli.ch
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Stéphane Ducasse
mariano
can you create a page on the book with that?
Stef
On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>
>
> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>
> > If I understood correctly it is about the matching of brackets and
> > quotes. In this regard, the completion behaves exactly like TextMate.
>
> > So, why is this a bug?
>
> How do you manage to type a single quote in TextMate? Does that work
> in Pharo?
>
>
> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>
> I keep winding up with too many right parens. It is possible that I
> am typing too many. My suspicion is that Pharo is providing too
> many.
>
> This is how it works:
>
> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>
> 2) when you type the RIGHT side, it only writes the right side.
>
> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>
>
> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have this
>
> Transcript show: 5 timesRepeat: ['something']
>
> and I need to have it like this:
>
>
> Transcript show: (5 timesRepeat: ['something'])
>
> the whay to work with Pharo is not:
>
> Transcript show: (5 timesRepeat: ['something']
>
> then
>
> Transcript show: (5 timesRepeat: ['something'])
>
> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>
> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>
> Cheers
>
> Mariano
>
>
>
> Ron Jeffries
> www.XProgramming.com
> www.xprogramming.com/blog
> New and stirring things are belittled because if they are not belittled,
> the humiliating question arises, "Why then are you not taking part in
> them?" -- H. G. Wells
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010