[Newbies] basicFormat method missing in SHTextStylerST80?

2006-07-03 Thread Mark Aufflick

Hi everyone,

I think that my smalltalk conversion will be much nicer if I can get
the SVI emacs-like environments up and running.

The editor and workspace work great, but the SVI ClassBrowser  fails
at the following point:

basicStyle: (aText _ styler basicFormat: t asText).

Where styler is an instance of SHTextStylerST80. Problem is it has no
basicFormat method. The only reference to a basicFOrmat method via
google is:

http://lists.squeakfoundation.org/pipermail/squeak-dev/2004-April/077901.html

which is hardly useful in this case, although it does point to the
function of the method.

First, can anyone suggest a change to the code or a wrapper
implementation of basicFOrmat?

This also points to a challenge that the ST community has with regards
to it's use of traditional SCM. Since most coding projects (say Rails)
use a standard text based SCM like CVS or subversion, they can run
simple web interfaces allowing access to all versions of all source
files. A huge benefit of that is that I can google for some class and
method names (that may be in either an upcoming version or may have
been deprecated years ago) and I will often find the source that
implements that method which is a good starting point, even if noone
has ever mentioned my specific issue.

There don't seem to be any such online viewable repositories of, say,
the squeak core. Is there any kind of repositary that would be
suitable for putting a read only web front end on? Ideally with more
granularity than just the snapshots of released image versions.

Cheers,

Mark.

--
Mark Aufflick
e: [EMAIL PROTECTED]
w: mark.aufflick.com
p: +61 438 700 647
f: +61 2 9436 4737
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Re: basicFormat method missing in SHTextStylerST80?

2006-07-03 Thread Mark Aufflick

BTW, the line quoted is from PluggableSVIShoutMapMorphpreStyleText.
If I replace basicStyle: with unstyledTextFrom: (the only method
listed in the 'converting' catgory of SHTextStylerST80's instance
methods) the browser will launch, but I don't have styled text...

On 7/3/06, Mark Aufflick [EMAIL PROTECTED] wrote:

Hi everyone,

I think that my smalltalk conversion will be much nicer if I can get
the SVI emacs-like environments up and running.

The editor and workspace work great, but the SVI ClassBrowser  fails
at the following point:

basicStyle: (aText _ styler basicFormat: t asText).

Where styler is an instance of SHTextStylerST80. Problem is it has no
basicFormat method. The only reference to a basicFOrmat method via
google is:

http://lists.squeakfoundation.org/pipermail/squeak-dev/2004-April/077901.html

which is hardly useful in this case, although it does point to the
function of the method.

First, can anyone suggest a change to the code or a wrapper
implementation of basicFOrmat?

This also points to a challenge that the ST community has with regards
to it's use of traditional SCM. Since most coding projects (say Rails)
use a standard text based SCM like CVS or subversion, they can run
simple web interfaces allowing access to all versions of all source
files. A huge benefit of that is that I can google for some class and
method names (that may be in either an upcoming version or may have
been deprecated years ago) and I will often find the source that
implements that method which is a good starting point, even if noone
has ever mentioned my specific issue.

There don't seem to be any such online viewable repositories of, say,
the squeak core. Is there any kind of repositary that would be
suitable for putting a read only web front end on? Ideally with more
granularity than just the snapshots of released image versions.

Cheers,

Mark.

--
Mark Aufflick
 e: [EMAIL PROTECTED]
 w: mark.aufflick.com
 p: +61 438 700 647
 f: +61 2 9436 4737




--
Mark Aufflick
e: [EMAIL PROTECTED]
w: mark.aufflick.com
p: +61 438 700 647
f: +61 2 9436 4737
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Plain file editing

2006-07-03 Thread stéphane ducasse


On 2 juil. 06, at 00:42, itsme213 wrote:

Is there an easy way, within squeak itself, to open a text editor  
on an entire class and simply edit the file and save the entire  
file (equivalently, file-in the string-buffer). I find I am  
quicker with this than all the mousing around, specially when  
making a new class.


I know I can file-out and file-in, but I am looking to avoid those  
steps.


Basically you should try to avoid to fileout and file in all the time.
The code browser is there to help you, shout the syntax editor can  
help you to find mistake.

Writing Smalltalk in VI can be painful.

I suggest you to:
- save your image
- save the category doing a fileout
- use Monticello and save a package
but work with the tools

have a look at my videos they show all the steps to do one by one.

http://www.listic.univ-savoie.fr/~ducasse/Resources.html/



Thanks.
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] API: Control Squaek by Excel

2006-07-03 Thread Loew Uwe (DS/EES1)



Hello 
community,

is it possible, to 
call a method of a Squeak class by another windows programm, e.g. Excel, via an 
API interface?

Thank you very 
much.

Best regards
Uwe LoewTestsystemsRobert Bosch GmbHDiesel Systems, Engineering ECU Software 
(DS/EES1)Postfach 30 02 20 - 70442 
Stuttgart - GERMANYTel: +49 711 
811-45743 Fax: +49 711 811-31800[EMAIL PROTECTED]www.bosch.com
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] API: Control Squaek by Excel

2006-07-03 Thread Bert Freudenberg

Am 03.07.2006 um 11:30 schrieb Loew Uwe (DS/EES1):


Hello community,

is it possible, to call a method of a Squeak class by another  
windows programm, e.g. Excel, via an API interface?


Not easily. Not impossible either, though - what kind of API do you  
have in mind? Knowing a bit more about the problem might help giving  
a more specific answer.


- Bert -

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Plain file editing

2006-07-03 Thread Mark Aufflick

I have been pondering the same sorts of things, being something of an
emacs junky. Today I discovered SVI, which implements vi-like or
emacs-like key bindings for many editor panes (such as the class
browser, work space).

I am finding it a real boon. It doesn't change the way you interact
with the smalltalk runtime at all, but when you want to shuffle around
bits of text or jump from one window frame to another using familiar
keyboard commands - well for me it's like coming to the surface of the
water and being able to breathe again ;)

You can find SVI in squeakmap - the one package has vi-like and
emacs-like bindings. vi-like is the default but you just need to call
a few methods to change over to a remarkably good rendition of the
emacs editing experience (considering the author is a vi user).

/Mark

On 7/2/06, stéphane ducasse [EMAIL PROTECTED] wrote:


On 2 juil. 06, at 00:42, itsme213 wrote:

 Is there an easy way, within squeak itself, to open a text editor
 on an entire class and simply edit the file and save the entire
 file (equivalently, file-in the string-buffer). I find I am
 quicker with this than all the mousing around, specially when
 making a new class.

 I know I can file-out and file-in, but I am looking to avoid those
 steps.

Basically you should try to avoid to fileout and file in all the time.
The code browser is there to help you, shout the syntax editor can
help you to find mistake.
Writing Smalltalk in VI can be painful.

I suggest you to:
- save your image
- save the category doing a fileout
- use Monticello and save a package
but work with the tools

have a look at my videos they show all the steps to do one by one.

http://www.listic.univ-savoie.fr/~ducasse/Resources.html/


 Thanks.
 ___
 Beginners mailing list
 Beginners@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/mailman/listinfo/beginners

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners




--
Mark Aufflick
e: [EMAIL PROTECTED]
w: mark.aufflick.com
p: +61 438 700 647
f: +61 2 9436 4737
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


RE: [Newbies] API: Control Squaek by Excel

2006-07-03 Thread Ron Teitelbaum
Hi Uwe,

There are a number of ways that you can use to communicate with either Excel
to Smalltalk or Smalltalk to Excel.  The issue is really out of the huge
number of options which one do you want to try?

The best thing to do is to decide which things are important to you.  Here
are some things to consider:

Will excel be talking to Smalltalk on the same machine?
Will excel need to retrieve a response (is the communication two-way)?
What are the performance requirements of your system?  Does the conversation
need to be sub-second or will minutes be ok?
Will there be more then one client talking to Smalltalk at the same time?
Is there a database involved between excel and Smalltalk (which could be the
source of your communication also)?

As an example of a really easy communication protocol you could simply
define a text structure (say xml and then you could use SAX or DOM... :).
Then on a Smalltalk instance you could have a separate process that polls
for a text file to appear and then reads in the contents.  Now all you have
to do is get excel to write a file into a location that Smalltalk can read,
which is easy to do. 

If you answer some of the questions maybe I can help more.

Happy coding!

Ron Teitelbaum
President / Principal Software Engineer
US Medical Record Specialists
[EMAIL PROTECTED] 


From: Loew Uwe 
Sent: Monday, July 03, 2006 5:30 AM
Hello community,
 
Is it possible, to call a method of a Squeak class by another windows
programm, e.g. Excel, via an API interface?
 
Thank you very much.
 
Best regards
Uwe Loew
Testsystems


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


RE: [Newbies] Ruby macros

2006-07-03 Thread Ramon Leon
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of itsme213
 Sent: Saturday, July 01, 2006 9:33 PM
 To: squeak-beginers
 Subject: [Newbies] Ruby macros
 
 I miss my Ruby macros (1st day in Squeak and I love it ... 
 dislike the camelCase tho'). Would this be the correct way to 
 go about it?
 
 RUBY:
 
 class Class
   def has_many symbol
  ...generate getter/setter with Collection.new
   end
 end
 
 class House
   has_many :doors # just remove this line to Undo !
 end
 

Correct me if I'm wrong, but those Ruby macro's don't actually generate
getters and setters, rather, don't they just setup method_missing to
intercept those calls as if getters and setters actually existed?  Don't the
relationships in ActiveRecord do this as well?  If so, method_missing is the
same as Smalltalk's doesNotUnderstand:, so you can accomplish the same thing
in Smalltalk by overriding new on the class side and implementing methods
like hasOne: and hasMany: to setup a property hash in the object that
doesNotUnderstand: can check to handle messages.  As a newbie, I doubt
you're ready for hacking doesNotUnderstand:, yet, but it's certainly
possible to implement declarative relationships, quite easily in fact.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Shouldn't 7r6.5 be the same as 7r65 * 0.1

2006-07-03 Thread Klaus D. Witzel

Would some good soul please explain what

Number readFrom: '7r6.5'

should return. It is apparently not the same as 7r65 * 0.1 and before I  
dig deeper (why does this happen, is it a bug or feature) I'd appreciate  
that someone confirms or rejects (bug | feature).


Thank you.

/Klaus

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] SqueakMap, Monticello

2006-07-03 Thread itsme213

Thanks Damien. Couple of follow-ups below.

From: Damien Cassou [EMAIL PROTECTED]

itsme213 wrote:
I have tried to install some packages from SqueakMap and get errors about 
some pre-requisite dependencies. Is there a loader / packager that is 
aware of such dependencies and will automatically find and install them?


No ! Most of the time, read the comment associated to the package, and you 
will know the dependencies.


Do the packages themselves have declared dependencies on other packages(I 
mean outside the comments)? I ask because I seem to be getting error dialogs 
about missing classes, which does not tell me anything about where (e.g. 
which package) to find them. And the comments don't tell me either. e.g.

  This package depends on the following classes:
  CommandHistory

Also, is a loaded package an object in squeak? If so, how can I locate / 
browse it?


Thanks. 
___

Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Plain file editing

2006-07-03 Thread itsme213

to shuffle around
bits of text or jump from one window frame to another using familiar
keyboard commands - well for me it's like coming to the surface of the
water and being able to breathe again ;)


This sounds like manna from heaven ...

I tried loading SVI and got:
This package depends on the following classes:
 CommandHistory

Any idea where I find that? It does not tell me which other package to 
install, and there is no package called CommandHistory.


Thank you !! 
___

Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Re: Shouldn't 7r6.5 be the same as 7r65 * 0.1

2006-07-03 Thread Klaus D. Witzel

Hi Ken,

on Mon, 03 Jul 2006 20:51:00 +0200, you wrote:

On Mon, 2006-07-03 at 20:30 +0200, Klaus D. Witzel wrote:

Would some good soul please explain what

Number readFrom: '7r6.5'

should return. It is apparently not the same as 7r65 * 0.1 and before I
dig deeper (why does this happen, is it a bug or feature) I'd appreciate
that someone confirms or rejects (bug | feature).

Thank you.

/Klaus


Because in the expression

7r65 * 0.1

the first value is in base 7 whereas the second is in base 10

7r65 * 7r0.1 IS the same valus as 7r6.5.


Ah! This equation cut my knot, thank you Ken.

/Klaus


Ken



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners