Klaus D. Witzel | 19 Jul 14:54

Q: FileStream class>>#writeSourceCodeFrom:* and *TextConverter

Hi,

I'm trying to successfully fileOut and fileIn class and method comments  
with characters codePoint <= 255 (the "european" range of byte size  
characters).

Fileout works but the file looks to have prefix from #writeBOMOn: of  
UTF8TextConverter and file suffix is ".st" or ".cs". On fileIn this fails  
with syntax error :( and Google search did not help. Has anyone experience  
with source code fileOut/fileIn for the "european" character range?

Did a quick shot on FileStream class>>#writeSourceCodeFrom:*, with  
#isAsciiString replaced by #isWideString (followed by ifFalse:ifTrue:),  
filed out again and then fileIn was happy again.

I understand this is perhaps not really sort of bug, but want a bit more  
than just the ascii characters. So what do you Squeakers recommend, how  
should that be done in a Squeak platform compatible way?

TIA.

/Klaus

Philippe Marschall | 18 Jul 22:58
Picon

advice on efficient socket programming sought

Hi list

Are there some guidelines available on doing efficient socket
programming with Squeak for something like a server?

My read pattern will be:
- read one to four bytes
- read a chunk of up to 8k bytes, the number of bytes is encoded in
the bytes read before, these chunks can be either binary or text,
again this depends on the bytes read above
- repeat

My write pattern will be similar. It could be made into bulk writes of up to 8k.

Does it make sense to use Socket or is it too much hassle and I should
use SocketStream? If I should go for SocketStream is constantly
flipping between #binary and #ascii a bad idea? If is it preferable to
run #ascii and convert the integer protocol constants to Characters or
run #binary and send #asString to the resulting ByteArray?

Cheers
Philippe

Sebastian Sastre | 18 Jul 19:08

Maintenance of remote references

Hi there,

	Thing. I'm working in the RemoteObjects package that is a sort of RMI or
RPC but for real objects ;) Right now is working > x2 than rST in localhost. It
was designed in a P2P fashion and it allows to have N brokers even inside the
same image. 

	Purpose. Scaling Squeak today.

	Plan. Some of you helped with ideas and I plan to publish in squeak
source (MIT) when minimally stability is reached.

	Status. Remote inspectors just started to work and I need to start
thinking about making something for the maintenance of its cache.

	Problem. A broker can publish some objects but, as the communication get
used, remote references start to be holded by them. ThatÂ’s fine until you think
in how to claim space without injecting troubles.

	Reference. As benchmarking I saw the rST way and I'm not satisfied with
its model. Some objects end up being missed with time. 

	Ideas. So I though about 1 making a kind of watchdog to maintain "alive"
the remote references renovating the expiration period every time a remote
message reach the object. Also I'm thinking in 2 the idea of the session. So
when session is expired a whole group of references is claimed.

	Hears. Anyway I'm in analisys phase for this problem so I want to hear
more ideas. So thinking loud is welcome.

(Continue reading)

Randal L. Schwartz | 18 Jul 01:42
Favicon

www.squeak.org and friends


The Squeak Leadership Team concluded in this week's meeting that we should be
moving forward on choosing the next technology for the core Squeak websites,
such as www.squeak.org.  I've been selected to put out a call for any
last-minute comments on the two proposals that have been offerred so far, or
soliciting any further proposals.

I won't repeat the comments already offered.  You can review the webteam
mailing list history for the past few months at places like
http://lists.squeakfoundation.org/pipermail/webteam/, particularly the
messages in March, April, and July.

Following the end of the comment period, the Leadership Team will evaluate the
proposals and comments, and select the path forward, and invite the
participants to begin and manage the migration work.

Please submit your comments to squeak-dev and/or webteam before
30 July 2008.  That will give us a week to absorb the info before our
next team meeting.

Thank you.

Randal, speaking on behalf of the leadership team.

--

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

(Continue reading)

Eric Hochmeister | 17 Jul 22:30
Picon

ODBC, JOIN table with same column names.

Hi,

I'm using the ODBC driver for squeak and I was running into an issue
with JOIN tables where the 2 tables I'm joining have identical column
names.
ie. I have a table X and table Y.
both tables have columns ID, FIRST_NAME

So when I do the query,

SELECT c1.ID, c1.FIRST_NAME, d1.FIRST_NAME FROM X c1, Y d1 WHERE c1.ID = d1.ID

I get back rows which only have ID and FIRST_NAME (2 columns), rather than 3.

I'm just curious if this is a known bug, or if I'm missing something,
ie. not doing this correctly.  Has anyone else run in to this issue,
or do you solve it differently?

Thanks,

Eric

Ties Stuij | 17 Jul 11:50
Picon

patch for filing in project from browser

Except for the changes already mentioned in previous posts, there was
one more thing needed before our E-Paath activities loaded correctly
in a browser:

There were a couple of methods not defined on RWBinaryOrTextStream,
but which it did expect, so I copied them over from a related stream.
Note that the documentation for the main method,
fileInObjectAndCodeForProject (don't you just love camelcase) is a bit
ambiguous in its description of if it should have been defined on
RWBinaryOrTextStream in the first place, yes or no:  "File it in and
return the object.  Note that self must be a FileStream or
RWBinaryOrTextStream.  Maybe ReadWriteStream incorporate
RWBinaryOrTextStream?" I left it in for wiser (wo)men to annotate.

/Ties
Attachment (rw-stream-methods-for-pr-loading.1.cs): application/octet-stream, 1580 bytes

Michael Rueger | 17 Jul 00:58
Picon
Favicon

Just slightly [OT]


http://www.abebooks.com/servlet/BookDetailsPL?bi=529347759&searchurl=an%3Ddouglas%2Badams%26bi%3D0%26bx%3Doff%26ds%3D30%26fe%3Don%26sortby%3D1%26x%3D38%26y%3D7

(apologies, can't get to tinyurl right now)

Michael

Javier Reyes | 16 Jul 17:00
Picon

Snapshot and Startup

Hello All,

¿Is there a way to save the current image without invoking all the registered startup methods immediately ?

Best,
             Javier Reyes

stephane ducasse | 15 Jul 11:16
Picon
Favicon

Looking for a code coverage tool

Hi all

I would like to run the tests and see which methods are covered.
I know that christo was used to work but does anybody use it recently?
Is there another code coverage tool available?

Stef

Steven W Riggins | 16 Jul 07:20
Favicon

OrderedCollection bug?

Hi there!

We're running Sophie in a 3.8 image, and ran into a fairly nasty  
OrderedCollection bug.  I've not tried to replicate this in later  
images.

o := OrderedCollection new.
o add: true beforeIndex: 2.

If you do this, the resulting collection is (nil)

No error, and true is not in the collection.

Can someone verify if this still exists, or what the proper behavior is?

Back Story:  When "saving as" our page templates, the code determines  
that some actions are not needed, but it still writes them into the  
new collection based on their old index.  So you end up with a nil  
object in the collection, missing the object you intended to be there,  
and a silent failure to boot.

We'll clean up our usage of OrderedCollection, but shouldn't this at  
least throw an error?

Steve

K. K. Subramaniam | 15 Jul 15:41
Picon

caps-lock treated like shift-lock

Hi,

Squeak treats caps-lock key like a shift-lock key. When capslock is on, Squeak 
picks up the shifted key instead of just upper-casing alphabets.

Many new notebook computers have tiny indicators for capslock on and children 
get confused working in Squeak when they turn caps-lock on accidentally.

Am I the only one to find this annoying?

Subbu


Gmane