1 Jul 2005 01:14
1 Jul 2005 01:29
Re: Making Squeak look like Windows
Blake <blake <at> kingdomrpg.com>
2005-06-30 23:29:00 GMT
2005-06-30 23:29:00 GMT
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?
1 Jul 2005 01:43
RE: Making Squeak look like Windows
Ramon Leon <rleon <at> insario.com>
2005-06-30 23:43:42 GMT
2005-06-30 23:43:42 GMT
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)
1 Jul 2005 01:55
1 Jul 2005 02:22
Re: Making Squeak look like Windows
Blake <blake <at> kingdomrpg.com>
2005-07-01 00:22:28 GMT
2005-07-01 00:22:28 GMT
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>
1 Jul 2005 02:26
RE: Making Squeak look like Windows
Ramon Leon <rleon <at> insario.com>
2005-07-01 00:26:23 GMT
2005-07-01 00:26:23 GMT
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)
1 Jul 2005 02:37
Re: Making Squeak look like Windows
Blake <blake <at> kingdomrpg.com>
2005-07-01 00:37:49 GMT
2005-07-01 00:37:49 GMT
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.
1 Jul 2005 11:04
hash method
Houssam Fakih <fakih <at> ensm-douai.fr>
2005-07-01 09:04:20 GMT
2005-07-01 09:04:20 GMT
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
1 Jul 2005 11:18
Re: hash method
Andreas Raab <andreas.raab <at> gmx.de>
2005-07-01 09:18:20 GMT
2005-07-01 09:18:20 GMT
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**
>
>
>
>
> ------------------------------------------------------------------------
>
>
1 Jul 2005 12:26
Re: hash method
stéphane ducasse <ducasse <at> iam.unibe.ch>
2005-07-01 10:26:38 GMT
2005-07-01 10:26:38 GMT
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
>
>
>
>
RSS Feed