Re: [Newbies] lost 1 objects

2008-08-19 Thread Bert Freudenberg
Am 19.08.2008 um 19:44 schrieb Stephan Janosch: Is there alway one instance of a class in Smalltalk? No, something has a reference to it, otherwise it would be garbage- collected. Try this recipe: http://wiki.squeak.org/squeak/2631 - Bert -

Re: [Newbies] accented characters + squeak

2008-08-20 Thread Bert Freudenberg
Am 20.08.2008 um 06:19 schrieb Hervé Darce: How to write a character accentuated with my keyboard? Squeak displays the debbuger when I strike on the é on the keyboard. I can't use accented characters into squeak with keyboard. How to write a utf8 file? I am Linux utf8. So How to use utf8

Re: [Newbies] accented characters + squeak

2008-08-20 Thread Bert Freudenberg
Am 20.08.2008 um 18:28 schrieb Hervé Darce: Bert Freudenberg a écrit : Am 20.08.2008 um 06:19 schrieb Hervé Darce: How to write a character accentuated with my keyboard? Squeak displays the debbuger when I strike on the é on the keyboard. I can't use accented characters into squeak

Re: [Newbies] accented characters + squeak

2008-08-21 Thread Bert Freudenberg
Am 21.08.2008 um 10:14 schrieb Hervé Darce: Have you tried running the image from http://etoys.laptop.org/src/etoys-image-and-pr.zip using that VM, as Bert suggested? That will allow you to identify if the problem is in the VM or the image. If that allows you to enter accented characters

Re: [Newbies] Most elegant way to delete instances

2008-09-14 Thread Bert Freudenberg
Am 14.09.2008 um 20:15 schrieb Giuseppe Luigi Punzi Ruiz: Hi, I need to delete all the instances of a class. Why? I would like to know, wich is the best way to do this. I'm trying this: IGCompany allInstances do: [ :each | each := nil]. But this, doesn't works. There is no need to

Re: [Newbies] Iterating and removing items from OrderedCollections

2008-09-18 Thread Bert Freudenberg
Am 18.09.2008 um 10:06 schrieb Ian J Cottee: Hello all I've got an OrderedCollection that is normally a fixed size (let's say 10 elements). Each element in the collection is another an object or nil. So for example, at a point in time it might look like [nil, nil, Object, nil, Object,

Re: [Newbies] Iterating and removing items from OrderedCollections

2008-09-18 Thread Bert Freudenberg
Ah, that's a much better description. So you actually don't want to remove nils from the start, but simply remove enough until the size is small enough? Now that's simple: belt size - desiredSize timesRepeat: [belt remove: nil ifAbsent: []]. And to answer Marcin's next question, yes, that

Re: [Newbies] Iterating and removing items from OrderedCollections

2008-09-18 Thread Bert Freudenberg
Am 18.09.2008 um 11:40 schrieb Bert Freudenberg: belt size - desiredSize timesRepeat: [belt remove: nil ifAbsent: []]. And to answer Marcin's next question, yes, that would be O(m^2). Err, O(m*n). Need coffee. - Bert - ___ Beginners mailing

Re: [Newbies] web browser plug-in

2008-09-20 Thread Bert Freudenberg
Am 20.09.2008 um 08:33 schrieb Aidan Gauland: Hello, My web browser doesn't seem to acknowledge the Squeak plug-in. I built and installed the VM from source, and then ran npsqueakregister that was installed in /usr/local/lib/squeak/. I'm using Firefox 2 on Debian etch, and it doesn't

Re: [Newbies] Collection in Smalltalk

2008-09-25 Thread Bert Freudenberg
Am 25.09.2008 um 06:40 schrieb Randal L. Schwartz: Herbert == Herbert König [EMAIL PROTECTED] writes: Herbert Hello Alex, AC Thanks. I'll try to start with the indexing table for each character first. AC Anyway do you know how to split string based on more than 1 AC character, for example

Re: [Newbies] Collection in Smalltalk

2008-09-25 Thread Bert Freudenberg
Am 25.09.2008 um 08:33 schrieb Herbert König: Hello Randal, Herbert mySeparators := Array new: 13 Herbert mySeparators at: 1 put: $- ; at: 2 put: $( . Herbert and so on. RLS You can just write that as a literal: RLS mySeparators := #($- $(). actually yes but I really have 13

Re: [Newbies] scripts

2008-09-26 Thread Bert Freudenberg
Am 26.09.2008 um 05:12 schrieb Mark Volkmann: Is it possible to run a Squeak program from a terminal window and have access to the stdin and stdout streams from the Smalltalk code? Yes. If so, pointers to documentation on this would be much appreciated.

Re: [Newbies] scripts

2008-09-26 Thread Bert Freudenberg
Am 26.09.2008 um 05:48 schrieb Randal L. Schwartz: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert Am 26.09.2008 um 05:12 schrieb Mark Volkmann: Is it possible to run a Squeak program from a terminal window and have access to the stdin and stdout streams from the Smalltalk code

Re: [Newbies] scripts

2008-09-26 Thread Bert Freudenberg
Am 26.09.2008 um 06:49 schrieb Mark Volkmann: On Sep 26, 2008, at 8:03 AM, Randal L. Schwartz wrote: Randal == Randal L Schwartz [EMAIL PROTECTED] writes: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert Am 26.09.2008 um 05:12 schrieb Mark Volkmann: Is it possible to run a Squeak

Re: [Newbies] scripts

2008-09-26 Thread Bert Freudenberg
Am 26.09.2008 um 07:33 schrieb Mark Volkmann: On Sep 26, 2008, at 9:29 AM, Bert Freudenberg wrote: Am 26.09.2008 um 06:49 schrieb Mark Volkmann: On Sep 26, 2008, at 8:03 AM, Randal L. Schwartz wrote: Randal == Randal L Schwartz [EMAIL PROTECTED] writes: Bert == Bert Freudenberg [EMAIL

Re: [Newbies] method naming advice

2008-09-26 Thread Bert Freudenberg
Am 26.09.2008 um 12:46 schrieb Mark Volkmann: On Sep 26, 2008, at 2:36 PM, Bert Freudenberg wrote: Am 26.09.2008 um 12:24 schrieb Mark Volkmann: I hope I'm not exceeding the limit for questions in one day. Not yet ;) I'm porting some Java code that deals with XML to Smalltalk. A Java

Re: [Newbies] pretty printing

2008-09-28 Thread Bert Freudenberg
Am 28.09.2008 um 09:52 schrieb Randal L. Schwartz: Claus == Claus Kick [EMAIL PROTECTED] writes: Claus YourClass escape: aString Claus escapes a String Claus |result| Claus result := ''. Claus aString do:[:char | result := result, char xmlEscaped]. Claus ^result This is an expensive way

Re: [Newbies] pretty printing

2008-09-28 Thread Bert Freudenberg
Am 28.09.2008 um 10:12 schrieb Bert Freudenberg: Am 28.09.2008 um 09:52 schrieb Randal L. Schwartz: This is an expensive way to build a string. #collect: would be better: aString collect: [:char | char xmlEscaped]. Internally, that uses a Stream, which extends itself nicely as new

Re: [Newbies] regular expressions

2008-09-28 Thread Bert Freudenberg
Am 28.09.2008 um 07:52 schrieb Mark Volkmann: On Sep 28, 2008, at 9:31 AM, Norbert Hartl wrote: On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote: Does the standard Squeak image contain a class for operating on regular expressions? No, nothing beside Stringmatches: But you can load a

Re: [Newbies] binary method or keyword with one argument

2008-09-28 Thread Bert Freudenberg
Am 28.09.2008 um 17:09 schrieb Mark Volkmann: Is there a rule of thumb for deciding whether a method that takes one argument should be implemented as a binary method or a keyword method? If in doubt, use keywords. Do you only use binary when the method is like an mathematical

Re: [Newbies] pretty printing

2008-09-29 Thread Bert Freudenberg
Am 29.09.2008 um 10:07 schrieb Claus Kick: Bert Freudenberg wrote: Guess I have to provide an alternative: #('' 'amp;' '' 'lt;' '' 'gt;' 'apos;' '' 'quot;') pairsDo: [:c :s| string := string copyReplaceAll: c with: s]. (this is the same approach as in StringasHTML) Ok

Re: [Newbies] pretty printing

2008-09-29 Thread Bert Freudenberg
Am 29.09.2008 um 12:11 schrieb Claus Kick: How well are look-ups performing with Squeak? Well, measure it. Array indexing is faster because dictionaries are implemented using arrays. - Bert - ___ Beginners mailing list

Re: [Newbies] pretty printing

2008-09-30 Thread Bert Freudenberg
Am 29.09.2008 um 09:52 schrieb Claus Kick: Bert Freudenberg wrote: Am 28.09.2008 um 09:52 schrieb Randal L. Schwartz: aString collect: [:char | char xmlEscaped]. I had actually in mind to do it this way - but I thought the do:[] is easier to read. Runtime performance is always step 2

Re: [Newbies] Re: exception handling lingo

2008-10-01 Thread Bert Freudenberg
Am 30.09.2008 um 14:12 schrieb Michael van der Gulik: Mark: don't stop asking questions; I've learned stuff myself from some of the answers. If you haven't already, jump on IRC (Freenode, #squeak) and ask stuff there too. Actually, if you're not in a hurry, please prefer the mailing list

Re: [Newbies] 'locking' an object

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 08:50 schrieb Sean Allen: If you wanted to take a mutable object and make it immutable and be able to go back again to mutable, how could you do that? What is your use case? In particular the part that has me as a smalltalk beginner stumped is how to disallow any

Re: [Newbies] 'locking' an object

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 10:17 schrieb Sean Allen: You'd have to specially code each accessor in that case to check the flag. Ideally I'd like to be able to step in front of every message send to descendent objects and decide whether to pass along ( read call ) or reject ( write call ). then,

Re: [Newbies] 'locking' an object

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 10:26 schrieb Randal L. Schwartz: But the debugger doesn't have any special privileges, and it can clearly access every inst var, regardless of whether accessors exist or not, through the magic of #instVarAt: and friends. There is no magic in #instVarAt:. It exists

Re: [Newbies] 'locking' an object

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 11:25 schrieb Randal L. Schwartz: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert There is no magic in #instVarAt:. It exists merely for helping Bert debugging. I meant the primitive it invokes. Encapsulated magic is still magic. So code would merely have

Re: [Newbies] testing a String argument

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 12:20 schrieb Mark Volkmann: What's the best way to set a local variable to true if an argument that is supposed to be a String isn't nil and has a size of at least 1? I know I can do this. hasContent := aString notNil and: [ aString isEmpty not ]. but it feels like I'm

Re: [Newbies] 'locking' an object

2008-10-02 Thread Bert Freudenberg
Am 02.10.2008 um 12:44 schrieb Matthew Fulmer: On Thu, Oct 02, 2008 at 02:55:34PM -0400, Sean Allen wrote: On Oct 2, 2008, at 1:18 PM, Bert Freudenberg wrote: If you wanted to take a mutable object and make it immutable and be able to go back again to mutable, how could you do that? What

Re: [Newbies] Re: break out of do

2008-10-03 Thread Bert Freudenberg
Am 03.10.2008 um 09:27 schrieb Randal L. Schwartz: Nicolas == Nicolas Cellier [EMAIL PROTECTED] writes: Nicolas For the fun of it, see also Nicolas http://article.gmane.org/gmane.comp.lang.smalltalk.gnu.general/3375/match=break Oww. I remember that. It makes my head hurt. You could

Re: [Newbies] Re: break out of do

2008-10-03 Thread Bert Freudenberg
Am 03.10.2008 um 11:02 schrieb Randal L. Schwartz: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert That would be a perfect opportunity to employ #valueWithPossibleArgument:. And with this, the newbies heads have exploded. :) Hehe :) If they followed the thread closely

Re: [Newbies] appending Strings

2008-10-03 Thread Bert Freudenberg
Am 03.10.2008 um 14:13 schrieb Mark Volkmann: On Oct 3, 2008, at 3:59 PM, Mariano Abel Coca wrote: I think you must be thinking in #timeToRun. No, but you saying that reminded me of where I saw it. It's in the Time class. ms := Time millisecondsToRun: [ do some stuff here ] which is

Re: [Newbies] Callback

2008-10-09 Thread Bert Freudenberg
Am 09.10.2008 um 15:54 schrieb xyz 42: Hello! I want to create a callback that will call my method after, say, 10 minutes. How can I do it in squeak? [(Delay forDuration: 10 minutes) wait. self myMethod] fork This forks off a background process, waits 10 minutes, then calls myMethod.

Re: [Newbies] Callback

2008-10-09 Thread Bert Freudenberg
Am 09.10.2008 um 16:07 schrieb Bert Freudenberg: Am 09.10.2008 um 15:54 schrieb xyz 42: Hello! I want to create a callback that will call my method after, say, 10 minutes. How can I do it in squeak? [(Delay forDuration: 10 minutes) wait. self myMethod] fork This forks off a background

Re: [Newbies] Callback

2008-10-09 Thread Bert Freudenberg
Am 09.10.2008 um 16:24 schrieb Mark Volkmann: On Oct 9, 2008, at 9:07 AM, Bert Freudenberg wrote: Am 09.10.2008 um 15:54 schrieb xyz 42: Hello! I want to create a callback that will call my method after, say, 10 minutes. How can I do it in squeak? [(Delay forDuration: 10 minutes) wait

Re: [Newbies] Problem filing out change set

2008-10-15 Thread Bert Freudenberg
Am 15.10.2008 um 08:23 schrieb Chris Kermiet: An instance variable was added to class Float and it is not copied in the method veryDeepCopyWith: Please rewrite it to handle all instance variables. See DeepCopier class comment. The instance variable is referenced from the class side: phi

Re: [Newbies] Applets in Squeak

2008-10-16 Thread Bert Freudenberg
Am 16.10.2008 um 14:55 schrieb Vijay Mathew: Hi, I have a Squeak project which I would like to be embedded in web pages, like a Java applet. How can I do this? Upload it to a web server, then use this link to embed it:

Re: [Newbies] Applets in Squeak

2008-10-17 Thread Bert Freudenberg
record sound using an instance of the SoundRecorder object? Thanks, -- Vijay On Thu, Oct 16, 2008 at 10:36 PM, K. K. Subramaniam [EMAIL PROTECTED] wrote: On Thursday 16 Oct 2008 7:01:14 pm Bert Freudenberg wrote: Am 16.10.2008 um 14:55 schrieb Vijay Mathew: Hi, I have a Squeak project

Re: [Newbies] Applets in Squeak

2008-10-22 Thread Bert Freudenberg
Am 18.10.2008 um 01:05 schrieb futuhat: hiya all! i've created a link to my project. the thing is: it opens but looks as if it's been scrunched up and black margins, above and below, appear. i've noticed that the display mode menu enables scale to fit option and i think that's the reason

Re: [Newbies] Applets in Squeak

2008-10-23 Thread Bert Freudenberg
Am 23.10.2008 um 20:28 schrieb futuhat: Bert Freudenberg wrote: Save your project at a smaller resolution. thanks, bert!... ...but, as a newbie in squeak, i have to ask: could you tell me how to save a project at a smaller resolution, please? [i'm using etoys and i can't find out

Re: [Newbies] UI not threaded?

2008-10-28 Thread Bert Freudenberg
On 27.10.2008, at 20:05, Greg Buchholz wrote: I notice that the system isn't responsive when something else is running (for example, while starting up an application like SqueakMap). Can anyone point me in the direction of a document describing Squeak's theory of operation when it

Re: [Newbies] Coloring images with transparant parts

2008-11-21 Thread Bert Freudenberg
On 22.11.2008, at 01:15, Matthias Korn wrote: Hi, thanks for your hints. I also found ColorFormreplaceColor:with: which does what you describe. But it is unfortunately not what I was looking for. I wasn't very clear in my original post: I (now) have a gray-scale image which I want to

Re: [Newbies] Coloring images with transparant parts

2008-11-22 Thread Bert Freudenberg
01:58:33 +0100 schrieb Bert Freudenberg [EMAIL PROTECTED]: On 22.11.2008, at 01:15, Matthias Korn wrote: Hi, thanks for your hints. I also found ColorFormreplaceColor:with: which does what you describe. But it is unfortunately not what I was looking for. I wasn't very clear in my original post

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 15:03, Cédrick Béler wrote: Hi Is there an existing data structure that allow to represent interval with either open or closed ends like [1 ; 10[. Class Interval is closed: 1 to: 10 I don't think there is an open interval class. - Bert -

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 18:36, Randal L. Schwartz wrote: Bert == Bert Freudenberg [EMAIL PROTECTED] writes: Bert On 24.11.2008, at 17:46, Randal L. Schwartz wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval

Re: [Newbies] closed and open interval

2008-11-24 Thread Bert Freudenberg
On 24.11.2008, at 17:46, Randal L. Schwartz wrote: Filip == Filip Malczak [EMAIL PROTECTED] writes: Filip You can always make subclass of Interval for example OpenedInterval , add Filip two variables: left and right.Make new methods: OpenedInterval from: aNumber to: aNumber left: aBoolean

Re: [Newbies] About methods and parameters

2008-12-03 Thread Bert Freudenberg
On 03.12.2008, at 10:23, Delyan Kalchev wrote: I have several questions: Hi! Welcome to a truly object-oriented system, where you might be in for some surprises :) 1. As I see parameter passing in Smalltalk is always call-by-reference, so within a method it is possible to do any

Re: Visual Composition vs. TDD (was: Re: [Newbies] Re: Test Driven Development)

2009-01-06 Thread Bert Freudenberg
On 06.01.2009, at 21:44, Markus Gälli wrote: Am 06.01.2009 um 20:54 schrieb Jerome Peace: [Newbies] Test Driven Development Hi Ryan, Ryan Zerby tahognome at gmail.com Mon Jan 5 14:31:26 UTC 2009 I've run through Squeak By Example and have I was curious what kind of TDD would be

Re: [Newbies] Resizing a form to specific width and height

2009-01-12 Thread Bert Freudenberg
On 12.01.2009, at 00:16, Matthias Korn wrote: Hi, how can I resize a form to a specific width and height by either stretching it on one axis or cropping it on the other axis. Forms are fixed-size. The way you do it is by creating a new form of the desired extent and depth, and then

Re: [Newbies] Morph import corrupted

2009-01-19 Thread Bert Freudenberg
On 19.01.2009, at 01:34, Mark Carter wrote: I'm new to smalltalk and squeak - and I must say, it seems capable of doing some pretty amazing stuff. It is. Welcome :) I started playing with morphs today. It seems as if you played with Etoys, which is an authoring environment aimed at

[Newbies] ProportionalLayout

2009-02-19 Thread Bert Freudenberg
Hi, on IRC we discussed Morphic layouts tonight and I thought I'd post an example here. For many simple tasks ProportionalLayout works fine. In it, for each edge of a morph you specify a fraction of the container's extent as anchor, plus an offset in pixels. The position of an edge is

Re: [Newbies] [Solved] Re: SQLite3 'Unable to find function address'

2009-02-20 Thread Bert Freudenberg
The Linux VM is able to resolve a moduleName of sqlite3 to libsqlite3.so. I think the Mac VM also does this, so just using the short form might work. Otherwise the usual way is to use Smalltalk platformName to figure out the right name. - Bert - On 20.02.2009, at 06:45, aditya siram

Re: [Newbies] Re: Why do lengthy installations shut down Squeak?

2009-02-24 Thread Bert Freudenberg
On 24.02.2009, at 20:15, Matthew Fulmer wrote: On Tue, Feb 24, 2009 at 06:21:10PM +, Zulq Alam wrote: Hi Rob, Rob Rothwell wrote: Just wondering why, since Squeak has processes, when install something large via the Universe Browser, etc... I can't do anything else in Squeak while it

Re: [Newbies] Startup Image

2009-02-26 Thread Bert Freudenberg
On 26.02.2009, at 01:22, GeertC wrote: What is the first thing the VM does when starting an image? I want to learn more about how the image actually works. It simply continues where ever the image was stopped. Select the following two lines in a workspace and do it: Smalltalk

Re: [Newbies] Float comparsion

2009-02-27 Thread Bert Freudenberg
The Epsilon class variable is used only when the primitives for some float functions are not available, in which case they are approximated to that precision. Using that same epsilon for something else is as meaningless as the 0.0001 in #closeTo:. The epsilon really depends on your

Re: [Newbies] Unable to create pong game setup script in Etoys 3.0

2009-03-02 Thread Bert Freudenberg
On 02.03.2009, at 23:09, Steinar Bang wrote: Hi, I'm trying to follow the tutorial here: http://billkerr2.blogspot.com/2007/11/making-pong-in-etoys.html Creating the move script went fine, but I have problems creating the setup script. What I did to create the move script, was click

Re: [Newbies] Squeak/Smalltalk - Java

2009-03-05 Thread Bert Freudenberg
On 05.03.2009, at 14:34, Ralph Johnson wrote: I've noted a trend with two big Squeak apps, Alice and Sophie, going to Java for their next major release: Why is this so? I don't think Alice was ever in Squeak. The original Alice was implemented in C and Python, with user scripts written

[Newbies] Re: [Etoys] BUG: Squeak-3.10 VM and ubuntu

2009-03-05 Thread Bert Freudenberg
On 05.03.2009, at 19:40, Markus Schlager wrote: Hi Jan, I do know, this is the wrong mailing-list for this issue. Indeed. Why don't you bring this up on a Scratch forum? Maybe someone could do me the favour and forward this mail to the VM mailing list. Problem description: When running

[Newbies] Re: [squeak-dev] Re: New Window VM (Closures, FT2Plugin, Large Cursors)

2009-03-08 Thread Bert Freudenberg
On 08.03.2009, at 16:10, Rob Rothwell wrote: This is really a newbie question; but I'd thought I'd ask everyone who is already talking about it anyway... Can you explain exactly what IS native closures-support and why it will be appreciated by the Squeakers? What will this allow you to

Re: [Newbies] Re: Help me on Squeak

2009-03-12 Thread Bert Freudenberg
On 12.03.2009, at 10:26, Steinar Bang wrote: Pedro Pereira virtuald...@hotmail.com: Who can help me, please, in a very small and simple project in squeak? Not squeak directly, but squeak eToys. I found this tutorial very helpful:

Re: [Newbies] Adding new types of Connectors

2009-03-21 Thread Bert Freudenberg
On 21.03.2009, at 15:37, Rob Rothwell wrote: Hi all, Any advice on where to start to add new types of Connectors? I'd just like a Decision connector ( a diamond shape that I could type some text into) to graphically create some algorithms for a project I am working on. You mean like

Re: [Newbies] Adding new types of Connectors

2009-03-21 Thread Bert Freudenberg
On 21.03.2009, at 17:56, Rob Rothwell wrote: Oh...I see...the Connectors package works with any Morph...! Hehe. You're beginning to understand what's so powerful about Morphic and Etoys. - Bert - I'll try what you mentioned...thanks! Rob On Sat, Mar 21, 2009 at 12:19 PM, Bert

Re: [Newbies] Setting up a squeak on a Ubuntu system

2009-03-25 Thread Bert Freudenberg
On 25.03.2009, at 22:12, Jerome Peace wrote: Tanstaafl, or translated you can get free software, but there's a price. Well, the Etoys install should have created a menu entry so you just click that and it should work. One could set up Squeak similarly, and I believe some Linux packagers

Re: [Newbies] Getting at the squeak beneath eToys?

2009-04-08 Thread Bert Freudenberg
On 08.04.2009, at 20:37, Steinar Bang wrote: Is there a way to get at the underlying squeak system when working in an eToys image? I've looked for menu entries to on open a System Browser, but I haven't found any. Various ways: - Disable the etoyFriendly preference to get the regular

Re: [Newbies] What's the relationship between scripts and methods?

2009-04-08 Thread Bert Freudenberg
On 08.04.2009, at 20:28, Steinar Bang wrote: The scripts, converted to code, kind of look like like methods. What are the relationship of scripts and methods? Are scripts instance level methods? Yes. I see two possible implementations for this: - the eToys objects could have a system

Re: [Newbies] What's the relationship between scripts and methods?

2009-04-08 Thread Bert Freudenberg
On 08.04.2009, at 22:10, Mike Stramba wrote: Are you familiar with the halos ? If not : Create a script, MMB for halos on the ScriptEditorMorph that has been created, LMB on the 'debug' icon, choose browse morph class. The debug halo handle is not shown in etoyFriendly mode, which is

Re: [Newbies] Setting up squeak on Ubuntu

2009-04-09 Thread Bert Freudenberg
On 09.04.2009, at 06:40, K. K. Subramaniam wrote: On Thursday 09 April 2009 8:39:42 am Jerome Peace wrote: Its not obvious where things will be stored when saved. So far text from saved workspaces turn up as files in the directories of the original image not the links. Unix Squeak saves

Re: [Newbies] Block and Closure

2009-04-10 Thread Bert Freudenberg
On 10.04.2009, at 05:48, Randal L. Schwartz wrote: K == K K Subramaniam subb...@gmail.com writes: K In Squeak, i in the block will refer to the i in the do: block and the last K statement will print 25 because i would be 5 when do: terminates. Not necessarily. I could see an

Re: [Newbies] standalone apps..

2009-04-24 Thread Bert Freudenberg
On 24.04.2009, at 17:57, sergio ruiz wrote: was wondering if there was somewhere i could try out some standalone apps.. just to see how they look and feel (and play) with the operating system.. http://squeakland.org/download/ http://sophieproject.cntv.usc.edu/download/

Re: [Newbies] Array vs OrderedCollection

2009-04-27 Thread Bert Freudenberg
On 27.04.2009, at 14:12, Miguel Enrique Cobá Martínez wrote: I had the idea that the array was internally something special and diferent than the other clases. It is not a special kind of class, but Array is different than OrderedCollection from the VM's point of view. If you look at

Re: [Newbies] Re: Beginners Digest, Vol 36, Issue 13

2009-04-27 Thread Bert Freudenberg
On 27.04.2009, at 14:55, Eric Caruyer wrote: PS : Is there a relation between Squeak The Mouse ( Mattioli's character ) and Squeak the Free Morphic implementation of SmallTalk ? I don't think so. The lore is that Alan Kay made a folder on his disk for a new project to experiment

Re: [Newbies] graphics question

2009-04-29 Thread Bert Freudenberg
On 29.04.2009, at 15:20, pop.mail.yahoo.com wrote:Hello,Could someone point me to an example of the best way to combine 2 images using color masking. I am using an ImageMorph with an image loaded and would like to overlay other images. I am thinking of trying BitBlt, but am wondering if there is

Re: [Newbies] graphics question

2009-04-29 Thread Bert Freudenberg
On 29.04.2009, at 17:31, Derek O'Connell wrote: ScreeningMorph example: http://www.etoysillinois.org/library.php? sl=487 Nice one! Had not thought of using this to recolor sketches :) - Bert - ___ Beginners mailing list

Re: [Newbies] Concatenating strings stored in an ordered collection

2009-05-22 Thread Bert Freudenberg
On 22.05.2009, at 12:51, Paul DeBruicker wrote: Hi I've created an ordered collection of strings. I'd like to paste each element of the ordered collection together into one long string that contains all of the elements of the ordered collection. So given this: | col | col :=

Re: [Newbies] squeak eToys on the Acer Aspire One w/Linpus linux?

2009-06-08 Thread Bert Freudenberg
On 08.06.2009, at 14:06, Steinar Bang wrote: Hi, I've just bought my kids (7 and 8 years old) Acer Aspire One netbooks with Linpus linux. I've found this useful link, that helped me unlock the Linpus, to let me install other applications (e.g. TuxType2 and TuxPaint).

Re: [Newbies] Where to ask questions - Squeak Beginners and Squeak Dev?

2009-06-17 Thread Bert Freudenberg
On 17.06.2009, at 17:00, Frank Church wrote: What sort of questions are appropriate to each group (really means which questions should you not ask on Squeak Developers)? You should not ask annoyingly simple questions on squeak-dev. Here on the beginner's list you are invited to ask about

Re: [Newbies] Re: squeak eToys on the Acer Aspire One w/Linpus linux?

2009-06-19 Thread Bert Freudenberg
On 19.06.2009, at 19:11, Steinar Bang wrote: - It would have been nice to lose the top bar put there by the window manager, because the window is _just_ too large for what's left of the 8.9 display. I don't need that bar, as long as I can Alt-TAB to the other windows Click the

Re: [Newbies] Re: squeak eToys on the Acer Aspire One w/Linpus linux?

2009-06-19 Thread Bert Freudenberg
On 19.06.2009, at 21:21, Bert Freudenberg wrote: On 19.06.2009, at 19:11, Steinar Bang wrote: - It would have been nice to lose the top bar put there by the window manager, because the window is _just_ too large for what's left of the 8.9 display. I don't need that bar, as long as I can

Re: [Newbies] Getting Squeak to speak

2009-06-28 Thread Bert Freudenberg
On 28.06.2009, at 19:35, James O'Brien wrote: Hi Prashanth, Thank you for the advise. I tried to install the Speech.sar using SqueakMap Package Loader but get error messages. I guess the sar not compatable with the version of Squeak I’m using (3.10.2). No, the install script in the SAR

Re: [Newbies] Will this eventually stop Post by non-member to a members-only list

2009-07-17 Thread Bert Freudenberg
On 17.07.2009, at 04:55, vmars wrote: Every time I post I get this msg: Your mail to 'Beginners' with the subject [Newbies] But where is the VM file? Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only

Re: [Newbies] Squeak on FreeBSD/amd64 - Image Question(s)

2009-07-29 Thread Bert Freudenberg
On 29.07.2009, at 16:46, Michael Haupt wrote: So, could somebody please hint me at how to get the correct Image for 64bit FreebSD/amd64? Or is the Downloaded one OK? It is. Images are cross-platform, you can move them freely between Mac/ Unix/Windows or any other platform. If it is,

Re: [Newbies] \n equivalent?

2009-08-02 Thread Bert Freudenberg
On 02.08.2009, at 23:20, Paul DeBruicker wrote: So 'Character cr asciiValue' is 13 'Character lf asciiValue' is 10 and ascii value of the \n character in Python is ord('\n') 10 So I want to use 'String lf' inplace of a \n in Python during string concatenation. #lf is rarely used in

[Newbies] Squeakfest Brasil report

2009-08-03 Thread Bert Freudenberg
Forwarding a message from Marta, member of Squeakland's education team, who organized an awesome Squeakfest in Porto Alegre last week. - Bert - -- From: Marta Voelcker ma...@pensamentodigital.org.br Date: 3. August 2009 00:45:30 MESZ To: squeakl...@squeakland.org

Re: [Newbies] class variable vs class instance variable uses

2009-08-04 Thread Bert Freudenberg
On 04.08.2009, at 17:28, Miguel Enrique Cobá Martinez wrote: What is the difference between a class variable like Current in Locale class: A class variable exists once per image. A class instance variable exists once per subclass. If your singleton class has no subclasses, it doesn't

Re: [Newbies] Help me FileIn

2009-08-17 Thread Bert Freudenberg
On 17.08.2009, at 05:34, K. K. Subramaniam wrote: On Monday 17 Aug 2009 7:50:35 am Randal L. Schwartz wrote: K On Monday 17 Aug 2009 12:17:25 am Randal L. Schwartz wrote: http://lists.squeakfoundation.org/pipermail/squeak-dev/2007-May/116683.html That explanation is about .sources and

Re: [Newbies] how to sort by key a Dictionary object?

2009-08-25 Thread Bert Freudenberg
On 25.08.2009, at 23:31, Randal L. Schwartz wrote: There might be a far better way.. but I found this in a few minutes. Someone should make a Squeak version of http://xkcd.com/627/ - Bert - ___ Beginners mailing list

Re: [Newbies] how to sort by key a Dictionary object?

2009-08-26 Thread Bert Freudenberg
of it ;) Cookbook wiki maybe? 2009/8/25 Bert Freudenberg b...@freudenbergs.de On 25.08.2009, at 23:31, Randal L. Schwartz wrote: There might be a far better way.. but I found this in a few minutes. Someone should make a Squeak version of http://xkcd.com/627/ - Bert - [*] Here's what

Re: [Newbies] How to introspect method instance variables

2009-08-26 Thread Bert Freudenberg
On 26.08.2009, at 00:36, rdmerrio wrote: The reason for the question is strictly pedagogical. I am learning Smalltalk and i am playing with implementation of a Cells type package ala LISP or pyCells and Cellulose from the Python world. You mean http://common-lisp.net/project/cells/ So

Re: [Newbies] Re: how to sort by key a Dictionary object?

2009-08-26 Thread Bert Freudenberg
On 26.08.2009, at 12:58, Overcomer Man wrote: I know this was already covered but to simplify the explination for the beginner: Sort is automatic for Dictionaries. This is over-simplifying. *Printing* of dictionaries sorts automatically. But not regular iteration. - Bert -

Re: [Newbies] Re: how to sort by key a Dictionary object?

2009-08-26 Thread Bert Freudenberg
On 26.08.2009, at 17:31, Randal L. Schwartz wrote: Bert == Bert Freudenberg b...@freudenbergs.de writes: Bert ... and this would give the advantage to using #keys. Fascinating. I suppose it's all those extra calls to extract the key from the association during the sort. You're

[Newbies] Re: [squeak-dev] [ANN] Krestianstvo SDK - Smalltalk, Croquet, Seaside... programming on native spoken language (Russian)

2009-09-16 Thread Bert Freudenberg
On 16.09.2009, at 16:13, Nikolay Suslov wrote: Hello! Introducing Krestianstvo SDK. Krestianstvo SDK is built on top of OpenCroquet SDK with preloaded packages (some of the list: Sophie XUL-CSS, Seaside, OMeta, and Krestianstvo itself). From now it will be entirely native spoken language

Re: [Newbies] Noob

2009-10-23 Thread Bert Freudenberg
On 23.10.2009, at 03:06, Mark Dymek wrote: Hi I am new to squeak and just wanted to introduce myself and say Hi. Hi Mark! Welcome :) Would be interesting to know what you would like to do with Squeak. - Bert - ___ Beginners mailing list

Re: [Newbies] Drawing a line on a morph

2009-10-30 Thread Bert Freudenberg
On 30.10.2009, at 11:52, Christine Wolfe wrote: drawOn: aCanvas super drawOn: aCanvas. (self perform: ('face', dieValue asString) asSymbol) do: [{:aPoint, anotherPoint} | self drawLineOn: aCanvas from: aPoint to: anotherPoint] In my version of Squeak this won't even compile. How did you

Re: [Newbies] isStepping question

2009-11-07 Thread Bert Freudenberg
On 07.11.2009, at 14:18, Christine Wolfe wrote: If I have a morph that is stepping through some process I know I can test for whether or not it is still stepping by using the isStepping method. But, how to I put this into a loop so that the next instruction doesn’t start until the

Re: [Newbies] isStepping question

2009-11-07 Thread Bert Freudenberg
On 07.11.2009, at 14:45, Christine Wolfe wrote: Wow! That worked. But I'm sorry to hear that morph doesn't support a loop like I wanted. That sounds restrictive but maybe I just need more time in world to become squeakified. Actually that's a restriction of about any event-driven GUI.

Re: [Newbies] isStepping question

2009-11-07 Thread Bert Freudenberg
On 07.11.2009, at 22:43, Alex Schenkman wrote: Bert: Is Croquet the only way to use Tweak nowadays? It's only maintained in Croquet currently, but you can use it without the 3D stuff if you want. The Sophie image contains Tweak, too. Is is possible to load Tweak into Squeak or Pharo?

Re: [Newbies] Starting Seaside Online

2009-11-09 Thread Bert Freudenberg
On 09.11.2009, at 08:08, Overcomer Man wrote: I downloaded the one-click experience of Seaside which when running tells me: The Seaside application server is already running on port 8080. Point your browser to http://localhost:8080/seaside to give it a try. So far so good. Now how do I

Re: [Newbies] Speed

2009-11-11 Thread Bert Freudenberg
On 11.11.2009, at 11:38, John Worden wrote: Absolute beginner playing with smalltalk. I have a simple program that opens a number of text files, plays with data closes files and gives a count of things in the files. (Its actually my Squeak version of the Cincom VW Tutorial). I have run

Re: [Newbies] OrderedCollection if imageMorphs

2009-11-11 Thread Bert Freudenberg
On 11.11.2009, at 17:57, Christine Wolfe wrote: I have an instance variable cells that I defined as cells := Matrix rows: 7 columns: 11 tabulate: [ :i :j | self newCellAt: i at: j]. Each cell of the matrix is going to be an orderedcollection of images. How can I refer to an individual

<    1   2   3   4   5   6   >