Blake | 1 Jul 01:14 2005

Re: [PDA] Squeak on WinCe

Speaking of which, what PDA platforms is Squeak available on?

I have a project that may require Palm, WinCE/PocketPC and Blackberry  
clients.

It'd be cool to be able to use Squeak as the platform.

Blake | 1 Jul 01:29 2005

Re: Making Squeak look like Windows

On Thu, 30 Jun 2005 10:10:52 -0700, Ramon Leon <rleon <at> insario.com> wrote:

> Here's a few small things will make squeak feel much nicer to a windows
> user.
>
> uncheck Preferences > scrolling > scroolBarsNarrow, gives you fatter
> windows style scroll bars.

When I right-click on Squeak and select Personalize, I get a browser  
window that says "Preferences class personalizeUserMenu:".

No error message. Just a code window of some sort. Clean 3.8 freshly  
downloaded from Squeak.org.

Does anyone else think the size of the forward and back buttons on the  
"gentle" introduction are perversely small?

Ramon Leon | 1 Jul 01:43 2005

RE: Making Squeak look like Windows

Preferences is on the tools flap on the right hand side, you're looking
in the wrong place. 

> -----Original Message-----
> From: squeak-dev-bounces <at> lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces <at> lists.squeakfoundation.org] On 
> Behalf Of Blake
> Sent: Thursday, June 30, 2005 4:29 PM
> To: The general-purpose Squeak developers list
> Subject: Re: Making Squeak look like Windows
> 
> On Thu, 30 Jun 2005 10:10:52 -0700, Ramon Leon 
> <rleon <at> insario.com> wrote:
> 
> > Here's a few small things will make squeak feel much nicer to a 
> > windows user.
> >
> > uncheck Preferences > scrolling > scroolBarsNarrow, gives 
> you fatter 
> > windows style scroll bars.
> 
> When I right-click on Squeak and select Personalize, I get a 
> browser window that says "Preferences class personalizeUserMenu:".
> 
> No error message. Just a code window of some sort. Clean 3.8 
> freshly downloaded from Squeak.org.
> 
> Does anyone else think the size of the forward and back 
> buttons on the "gentle" introduction are perversely small?
> 
(Continue reading)

Blake | 1 Jul 01:55 2005

Re: Making Squeak look like Windows

On Thu, 30 Jun 2005 16:43:42 -0700, Ramon Leon <rleon <at> insario.com> wrote:

> Preferences is on the tools flap on the right hand side, you're looking
> in the wrong place.

Ah. Thank you!

Blake | 1 Jul 02:22 2005

Re: Making Squeak look like Windows

On Thu, 30 Jun 2005 10:10:52 -0700, Ramon Leon <rleon <at> insario.com> wrote:

> Load package from squeakMap Win32 native Fonts, huge improvement.

On a clean install of 3.8:

-> an error message that the squeakmap servers are down (map1 and map2 at  
squeak foundation, map at squeak, and anakin)
-> when attempting to install WIn32 Native fonts, the usual barrage of "no  
release for your version/no release at all/are you sure?" ends with "Error  
occurred during install: can't find EOCD position. The problem seems to be  
in the ZipArchive object.

> Load package named LookEnhancements from http://squeak.saltypickle.com/,
> it'll make the windows look and feel better.

This was painless. (Yay!) My Squeak seems to be very sluggish in resizing  
panes/windows. I believe I have it matched with my OS (32-bit little  
endian, for 32-bit depth on Wintel).

> World menu, appearance, window colors, just click white, get's rid of
> all the goofy colors and makes everything look more like windows, grey
> windows with white backgrounds.

But that's so...dull.<s>

Ramon Leon | 1 Jul 02:26 2005

RE: Making Squeak look like Windows

I had no such problems with 3.8, but I use the basic bare bones image,
not the full one. 

> -----Original Message-----
> From: squeak-dev-bounces <at> lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces <at> lists.squeakfoundation.org] On 
> Behalf Of Blake
> Sent: Thursday, June 30, 2005 5:22 PM
> To: The general-purpose Squeak developers list
> Subject: Re: Making Squeak look like Windows
> 
> On Thu, 30 Jun 2005 10:10:52 -0700, Ramon Leon 
> <rleon <at> insario.com> wrote:
> 
> > Load package from squeakMap Win32 native Fonts, huge improvement.
> 
> On a clean install of 3.8:
> 
> -> an error message that the squeakmap servers are down (map1 
> and map2 
> -> at
> squeak foundation, map at squeak, and anakin)
> -> when attempting to install WIn32 Native fonts, the usual 
> barrage of 
> -> "no
> release for your version/no release at all/are you sure?" 
> ends with "Error occurred during install: can't find EOCD 
> position. The problem seems to be in the ZipArchive object.
> 
> > Load package named LookEnhancements from 
(Continue reading)

Blake | 1 Jul 02:37 2005

Re: Making Squeak look like Windows

On Thu, 30 Jun 2005 17:26:23 -0700, Ramon Leon <rleon <at> insario.com> wrote:

> I had no such problems with 3.8, but I use the basic bare bones image,
> not the full one.

I believe this is the point where I start grovelling before Lex to update  
his universes for 3.8.

Houssam Fakih | 1 Jul 11:04 2005
Picon

hash method

Hi,

 

When I redefine the = operation for a class I should redefine its hash method.

My question is about the definition of the hash method. I read that the method must return a SmallInteger whose value is related to the receiver. I would like to know if there is a general pattern adopted in Squeak for that. I get a look in the Squeak classes but it doesn’t help.

 

Thanks,

Houssam

____

"Le paradis touche les pieds des mères..."

>>> http://csl.ensm-douai.fr/fakih

 


Andreas Raab | 1 Jul 11:18 2005
Picon
Picon

Re: hash method

Hi -

The only requirement for a hash method is that it needs to compute the 
same values for objects which are considered equal via #=. Other than 
that there is no requirement - in fact, a perfectly valid hash function 
would be:

hash
	^0

Albeit horribly slow (since it creates hash collisions everywhere) it 
would be perfectly valid hash function. An invalid hash function would 
(for example) be:

MyPoint>>= aPoint
    "Only compare x values"
    ^x = aPoint x

MyPoint>>hash
   ^y

Since the y value could be different for points that have equal x values 
and are therefore considered equal. And since you are asking about 
patterns - a classic pattern is to take the hash values of the objects 
that define equality and combine those via an appropriate operator, e.g.,

MyPoint>>= aPoint
   "Compare x and y"
   ^x = aPoint x and:[y = aPoint y]

MyPoint>>hash
   "Hash x and y"
   ^x hash bitXor: y hash

Cheers,
   - Andreas

Houssam Fakih wrote:
> Hi,
> 
>  
> 
> When I redefine the = operation for a class I should redefine its hash 
> method.
> 
> My question is about the definition of the hash method. I read that the 
> method must return a SmallInteger whose value is related to the 
> receiver. I would like to know if there is a general pattern adopted in 
> Squeak for that. I get a look in the Squeak classes but it doesn’t help.
> 
>  
> 
> Thanks,
> 
> Houssam
> 
> **____**
> 
> **"Le paradis touche les pieds des mères..."**
> 
> **≥>> http://csl.ensm-douai.fr/fakih**
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> 

stéphane ducasse | 1 Jul 12:26 2005
Picon
Picon

Re: hash method

Generally

I use

     iv hash bitXor: iv2 hash

Following Kent beck best practices

But now I learned that I want to avoid as much as possible to  
redefine = and hash
and if this is just to sorted objects I used
SortedCollection sortBlock: [:a :b| a iv > b iv] for example.

I think that identity related issues is one of the most complex in OO  
Design.

Stef

Le 1 juil. 05 à 11:04, Houssam Fakih a écrit :

> Hi,
>
>
> When I redefine the = operation for a class I should redefine its  
> hash method.
>
> My question is about the definition of the hash method. I read that  
> the method must return a SmallInteger whose value is related to the  
> receiver. I would like to know if there is a general pattern  
> adopted in Squeak for that. I get a look in the Squeak classes but  
> it doesn’t help.
>
>
> Thanks,
>
> Houssam
>
> ____
>
> "Le paradis touche les pieds des mères..."
>
> >>> http://csl.ensm-douai.fr/fakih
>
>
>
>


Gmane