Steve Wessels | 1 Aug 01:55 2007
Picon

Re: subclasses detect

My God, that's funny.  

Thank you for your kind words.  

Squeak has a special place in my "heart" too.

- Steve

Sent from my iPhone

On Jul 31, 2007, at 5:33 PM, gruntfuttuck <gruntfuttuck <at> gmail.com> wrote:

Thanks Steve, loving the tutorial. I wouldn't have given squeak another try
if it wasn't for your fabulous tutorial. 

My Girlfriend asked my what I was thinking about, after sex, the other day.
I didn't dare tell her, squeak code, so I said, our new home that we are
getting together. 

Steve Wessels wrote:

David's message is excellent.  The idiom used by this method is useful to
understand.  I actually make a point of describing it's role as a
substitution for a Case statement in a section just a few pages later in
the Tutorial.  Check out page 048A.html 

- Steve

Sent from my iPhone

(Continue reading)

Conrad Taylor | 1 Aug 04:02 2007
Picon

Re: PostGreSQL client for Squeak?

Hey, thanks for the information because I was able to both install PostgreSQL client and run the Glorp unit tests successfully.


-Conrad

On 7/31/07, Norbert Hartl <norbert <at> hartl.name> wrote:
On Tue, 2007-07-31 at 12:58 -0700, Conrad Taylor wrote:
> Hi, could someone recommend a PostgreSQL client for Squeak?  At this
> time, the current version in SqueakMap Package Loader hasn't been
> blessed to work with Squeak 3.9 (7076).
>
You can just ignore the warnings that is not known to work
for 3.9. I use it in 3.9 without any problems.

If you use it and get into trouble with encoding contact me
again :)

Norbert


_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Picon

Re: subclasses detect

Hi Steve,

I think that this tutorial is great. I would like to make a translation 
to Spanish for my students later this year. Have you consider releasing 
it under a Creative Commons license (or something similar) to make 
derivated works of it (like translations)?

Cheers and thanks for your tutorial,

Offray

Steve Wessels escribió:
> My God, that's funny.  
>
> Thank you for your kind words.  
>
> Squeak has a special place in my "heart" too.
>
> - Steve
>
> Sent from my iPhone
>
> On Jul 31, 2007, at 5:33 PM, gruntfuttuck <gruntfuttuck <at> gmail.com> wrote:
>
>
> Thanks Steve, loving the tutorial. I wouldn't have given squeak another try
> if it wasn't for your fabulous tutorial. 
>
> My Girlfriend asked my what I was thinking about, after sex, the other day.
> I didn't dare tell her, squeak code, so I said, our new home that we are
> getting together. 
>
>
>
>
> Steve Wessels wrote:
>
> David's message is excellent.  The idiom used by this method is useful to
> understand.  I actually make a point of describing it's role as a
> substitution for a Case statement in a section just a few pages later in
> the Tutorial.  Check out page 048A.html 
>
> - Steve
>
> Sent from my iPhone
>
> On Jul 31, 2007, at 4:00 PM, gruntfuttuck <gruntfuttuck <at> gmail.com> wrote:
>
>
> Thank you, that was very clear and helpful :-)
>
>
> David Mitchell-10 wrote:
>
> The message #subclasses returns a collection of Class objects
> The message #detect: returns the first object in that collection that
> matches the criteria in the block
>
> Since detect is the last message sent before the return, one class
> object will be returned.
>
> If more than one matches, the code will never know, since detect:
> returns on the first match. It won't evaluate to find the other match.
> That is, it short circuits the iteration.
>
> If you want to return a collection of matches, send the #select:
> message instead of #detect:.
>
> Nothing to do with class instance variables (those are rare birds --
> misused as often as they are needed).
>
> Also realize that the message isn't "subclasses detect". They are two
> separate messages. #detect: works with any collection. #subclasses
> returns a collection.
>
>
>
>
> On 7/31/07, gruntfuttuck <gruntfuttuck <at> gmail.com> wrote:
>
> Hello
>
> In the laser game tutorial by Stephan B Wessels I was intrerested by this
> code:
>
> directionFor: aSymbol
>       ^ self subclasses
>               detect: [:cls | cls directionSymbol = aSymbol]
>
> The code appears here at the bottom of the page:
> http://squeak.preeminent.org/tut2007/html/038.html
>
> What I read this code as doing, in this example is: return an symbol
> object
> which is a sublass instance varable, if it is the same as aSymbol.
>
> What would happen if more than one subclass object had a match?
>
> Also how else can subclasses detect: be used? It looks very interesting.
>
> Grunt
>
>
> --
> View this message in context:
> http://www.nabble.com/subclasses-detect-tf4196202.html#a11934239
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>
> _______________________________________________
> Beginners mailing list
> Beginners <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
>
>   
Norbert Hartl | 2 Aug 11:51 2007

Loading package plus dependencies via monticello

Hi,

I like to bootstrap an image with my own application.
Until now I had a base installation of the application
and did an upgrade with a script provided at the command
line.

I use

repo := (MCDirectoryRepository new
            directory: (FileDirectory on: repositoryPath)
       	).
(repo loadVersionFromFileNamed: releaseFile) load.

Now I'm trying to do a bootstrap without having the 
application installed. But the way I use it Monticello
is unable to resolve dependencies to file them in. 
How can I provide Monticello with information where it 
can find the files to resolve the dependencies?

thanks,

Norbert
Michael Rueger | 2 Aug 12:31 2007
Picon

Re: Loading package plus dependencies via monticello

Norbert Hartl wrote:

> How can I provide Monticello with information where it 
> can find the files to resolve the dependencies?

For Sophie we use config maps, not dependencies.

You have to have all needed repositories already setup in the image 
though for config maps to work.

Michael
Norbert Hartl | 2 Aug 13:10 2007

Re: Loading package plus dependencies via monticello

On Thu, 2007-08-02 at 12:31 +0200, Michael Rueger wrote:
> Norbert Hartl wrote:
> 
> > How can I provide Monticello with information where it 
> > can find the files to resolve the dependencies?
> 
> For Sophie we use config maps, not dependencies.
> 
> You have to have all needed repositories already setup in the image 
> though for config maps to work.
> 
I read a few times people speaking of config maps. But to be honest
I've no glue what it is. And I have trouble finding some valuable
information how to use them.

thanks,

Norbert
Michael Rueger | 2 Aug 13:21 2007
Picon

Re: Loading package plus dependencies via monticello

Norbert Hartl wrote:

> I read a few times people speaking of config maps. But to be honest
> I've no glue what it is. And I have trouble finding some valuable
> information how to use them.

a quick google digs up this one:
http://tweakproject.org/ABOUT/FAQ/MCConfigurationUpdates/

Has nothing really to do with tweak ;-)

Michael
Edgar J. De Cleene | 2 Aug 14:31 2007
Picon

Re: Loading package plus dependencies via monticello


Para los que como yo , no saben todos los misterios de Moticello, hoy vino
esta información útil

El 8/2/07 8:21 AM, "Michael Rueger" <m.rueger <at> acm.org> escribió:

> http://tweakproject.org/ABOUT/FAQ/MCConfigurationUpdates/
Norbert Hartl | 2 Aug 16:27 2007

Re: Loading package plus dependencies via monticello

On Thu, 2007-08-02 at 13:21 +0200, Michael Rueger wrote:
> Norbert Hartl wrote:
> 
> > I read a few times people speaking of config maps. But to be honest
> > I've no glue what it is. And I have trouble finding some valuable
> > information how to use them.
> 
> a quick google digs up this one:
> http://tweakproject.org/ABOUT/FAQ/MCConfigurationUpdates/
> 
> Has nothing really to do with tweak ;-)
> 
Ok, nice tool. In principal exact what I was looking for. 
Unfortunately it doesn't support directory repositories
and it that way.

thanks,

Norbert
Chris Cunningham | 2 Aug 23:48 2007
Picon

Re: Loading package plus dependencies via monticello

Ok, nice tool. In principal exact what I was looking for.
Unfortunately it doesn't support directory repositories
and it that way.
 
Hi Norbert,
 
Attached is a simple change set that will allow it to mostly support directories (I've been using it personally for a while now - there are undoubtedly places where there are holes).  Basically, it removes the protections that were put in to not use Directories.  If you think about it, using directory repositories for configurations is a really bad idea - if you share the config with someone else, they can't get to your repositories.  Heck, if the directory is local on your machine and you switch to another machine, they configuration isn't even useful for yourself.
 
That said, this will allow you to do it if you still want too.

-Chris
'From Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] on 2 August 2007 at 2:43:24
pm'!

!MCConfigurationBrowser methodsFor: 'repositories' stamp: 'CBC 8/2/2007
14:42'!
addRepository
	(self pickRepositorySatisfying: [:ea | (self repositories includes: ea)
not])
		ifNotNilDo: [:repo |
"			(repo isKindOf: MCHttpRepository)
				ifFalse: [^self inform:
'Only HTTP repositories are supported']."
			self repositories add: repo.
			self changed:
#repositoryList.
		]! !

!MCConfigurationBrowser methodsFor: 'repositories' stamp: 'CBC
8/2/2007 14:42'!
checkRepositories
"	| bad |
	bad := self repositories reject: [:repo | repo
isKindOf: MCHttpRepository].
	^bad isEmpty or: [
		self selectRepository: bad first.
		self
inform: (String streamContents: [:strm |
			strm nextPutAll: 'Please remove these repositories:';
cr.
			bad do: [:r | strm nextPutAll: r description; cr].
			strm nextPutAll: '(only HTTP
repositories are supported)']).
		false]."
	^true! !


!MCDirectoryRepository methodsFor: 'as
yet unclassified' stamp: 'CBC 8/2/2007 14:43'!
asCreationTemplate
	^'MCDirectory on: ', directory
printString! !

_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Gmane