Re: [Newbies] crossSum, an alternative implementation

2006-05-10 Thread Bert Freudenberg
Am 10.05.2006 um 16:57 schrieb Enrico Schwass: Hello As I guessed, there is more than one way to do it. Rons solution is similiar to mine, the one Markus posted is similiar to the other I mentioned before. Anyway. Both of you did it shorter. Thank you for your contributions That gives me some

Re: [Newbies] What kind of application for Squeak

2006-05-22 Thread Bert Freudenberg
Am 22.05.2006 um 01:46 schrieb Pierre Lebrun: Hello, I'm newby by the newbies and red some tutorials across squeak www. I've heard about smalltalk for a long time but just decided to try it. I'd like to program a management software for table tennis tournament. Is it possible to build that

Re: [Newbies] Monticello documentation

2006-06-01 Thread Bert Freudenberg
There is even a user manual: http://www.wiresong.ca/Monticello/UserManual/ - Bert - Am 01.06.2006 um 12:34 schrieb Frank Urbach: Hi Joaquin, for the first steps I think the following link should help: http:// minnow.cc.gatech.edu/squeak/43 Cheers, Frank Original Message

Re: [Newbies] self executable with squeak -- pause on startup

2006-06-07 Thread Bert Freudenberg
Am 07.06.2006 um 21:05 schrieb Алексей: Hello First week with squeak :) I have one (really not one:) question. When I start squeak by clicking on squeak.exe, I get pause about 15 sec. Then if in folder only one image file squeak starts with it. If I use somthing like 'Squeak.exe my.image'

Re: [Newbies] Re: Accessing projects from a Web page

2006-06-10 Thread Bert Freudenberg
Am 10.06.2006 um 05:49 schrieb Klaus D. Witzel: Would some good soul please have a look a the plugintest.html page, which on my platform starts with the following text in the plugin window: Hello Plugin World! This window was opened by some code in the file plugintest.sts, which was

Re: [Newbies] Re: Accessing projects from a Web page

2006-06-10 Thread Bert Freudenberg
Am 10.06.2006 um 11:29 schrieb Klaus D. Witzel: This test page assumes you actually use Squeakland's SqueakPlugin.image. That image has the golden navigator flap enabled by default. I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1 September 2005'. I use it for the Petri

Re: [Newbies] Font list

2006-06-12 Thread Bert Freudenberg
Am 12.06.2006 um 21:33 schrieb Chris Kassopulo: Greetings, In Squeak (3.8) whenever a list of available fonts is presented, (eg. more...set font) the list contains, in alphabetical order, Accuat through ComicSansMs. Is that the complete list of fonts or am I just not finding how to scroll

Re: [Newbies] UndefinedObject

2006-06-12 Thread Bert Freudenberg
Am 12.06.2006 um 23:08 schrieb nicolas cellier: Le Dimanche 11 Juin 2006 14:54, mathieu a écrit : An other things intresting is where do nil being initialized? [I know he is an old friend but it should have been born in a certain time :-) ] I think this one is so essential, that you

Re: [Newbies] CamelCase vs. Infix

2006-07-02 Thread Bert Freudenberg
Am 02.07.2006 um 11:03 schrieb Blake: On Sat, 01 Jul 2006 21:33:04 -0700, itsme213 [EMAIL PROTECTED] wrote: I miss my Ruby macros (1st day in Squeak and I love it ... dislike the camelCase tho'). Would this be the correct way to go about it? Not to hijack, but this is the second time

Re: [Newbies] Plain file editing

2006-07-02 Thread Bert Freudenberg
Am 02.07.2006 um 00:42 schrieb itsme213: Is there an easy way, within squeak itself, to open a text editor on an entire class and simply edit the file and save the entire file (equivalently, file-in the string-buffer). I find I am quicker with this than all the mousing around, specially

Re: [Newbies] API: Control Squaek by Excel

2006-07-03 Thread Bert Freudenberg
Am 03.07.2006 um 11:30 schrieb Loew Uwe (DS/EES1): Hello community, is it possible, to call a method of a Squeak class by another windows programm, e.g. Excel, via an API interface? Not easily. Not impossible either, though - what kind of API do you have in mind? Knowing a bit more about

Re: [Newbies] storeString vs. printString

2006-07-04 Thread Bert Freudenberg
Am 04.07.2006 um 10:17 schrieb Mathieu SUEN: Hi squeakers, I have an extremly simple question. What is the diffrence between #storeString and #printString? #printString (implemented by #printOn:) creates a human-readable description of your object. #storeString (or, more precisely,

Re: [Newbies] Will EToys Teach Me to Program in Squeak?

2006-07-06 Thread Bert Freudenberg
Am 06.07.2006 um 18:34 schrieb Greg Smith: I actually wish that EToys was introduced and structured so that it specifically was aimed at teaching me to program rather than to teach me Mathematics and Science. But maybe it will do both. The focus of etoys indeed is math and science. It's

[Newbies] Fun with Dates

2006-07-09 Thread Bert Freudenberg
Here's a fun little snippet of code to let you plan unusual birthday parties. Just insert a list of dates and get a list of parties, like celebrating the nd week of birth ;-) | start end parties birthday birth number party | start := (Date today subtractDays: 14) asSeconds. end := (Date

Re: [Newbies] troubleshooting question

2006-07-20 Thread Bert Freudenberg
Perhaps you could describe what you actually want to achieve. Squeak is different from other programming environments. Some things are much easier, some are much harder than in other systems. In a way, Squeak pretends to be its own operation system (it indeed can run on bare hardware).

Re: [Newbies] FFI, pragma and co...

2006-08-21 Thread Bert Freudenberg
Am 21.08.2006 um 15:59 schrieb cdrick: euhh actually, I don't see any primitive call in Integerfactorial , only a recursive function... did I miss somrthing ? No, #factorial is a regular method, but LargeInteger arithmetics is accelerated by LargeIntegerPlugin. You could try

Exception hacks (was Re: [Newbies] Changing error message)

2006-08-22 Thread Bert Freudenberg
Ron Teitelbaum schrieb: In order to not break your regular code you will need to wrap the normal call to saleItem:price:taxRate: with: on: GetSaleDateError do: [:ex | ex resume: Date today]. Actually there is no need to wrap any regular code, if you do it properly ;-) You should not

Re: [Newbies] three button mice on windows and macs

2006-09-06 Thread Bert Freudenberg
Ned Konz schrieb: Rainer Keller wrote: Oh, I am able to get all three mouse buttons. It is just that middle and right button are swapped when I use the same image once on the PC and once on the Mac. And I can even change that if I go to preferences every time I switch. I just want to find

Re: [Newbies] The Weekly Squeak is back!

2006-09-07 Thread Bert Freudenberg
Offray Vladimir Luna Cárdenas schrieb: Hi, Michael Rueger escribió: [...] you can subscribe to the sophie mailing list. I'll add the information to the site asap, so others can look it up as well :-) I will be wating for that list. I have downloaded the build-6-32.zip

Re: [Newbies] getters, setters, attr?

2006-09-07 Thread Bert Freudenberg
Steve Moffitt schrieb: Hi David You can download the RefactoryBrowser from squeakmap or you can download and install the refactoryengine from http://squeaksource.com/@ehoWsqHVuXjcUYEx/wpgyyYAP. If you look at the menu from the second top pane ( the class pane ) in the browser the submenu

Re: [Newbies] Is there a message box in squeak

2006-09-25 Thread Bert Freudenberg
Am 25.09.2006 um 20:47 schrieb Herbert König: Hello all, is there a predefined MessageBox (like FillInTheBlankMorph) but no editing and one button? self inform: 'hello world' - Bert - ___ Beginners mailing list

Re: [Newbies] Is there a message box in squeak

2006-09-26 Thread Bert Freudenberg
Am 26.09.2006 um 08:44 schrieb Herbert König: Hello Bert, BF self inform: 'hello world' Thanks, but is there something in a SystemWindow looking like FillInTheBlankMorph? Not that I know of. If look is at all important to you, you would design your own UI, wouldn't you? - Bert -

Re: [Newbies] Tweak question

2006-10-02 Thread Bert Freudenberg
There is no syntactic sugar in Tweak for this. A simple way to connect fields are FieldReferences. Off the top of my head, you would use it like this: balanceReadout player: (account fieldNamed: #value) This sets up all the events you need to synchronize balanceReadout's value

Re: [Newbies] Squeak and XML

2006-10-05 Thread Bert Freudenberg
Yaxo is a SAX-like parser. So you can write your one SAX handler (more efficient) or use the provided DOM handler (simple). For the latter, an example is provided on the class side of XMLDOMParser. - Bert - Am 05.10.2006 um 08:30 schrieb Todd Blanchard: The usual parser is Yaxo. Its

Re: [Newbies] general questions about squeak

2006-10-05 Thread Bert Freudenberg
Am 05.10.2006 um 15:09 schrieb Esteban Robles Luna: Is this hardcoded in the VM? or is SmalltalkImage responsible of the start up process and then delegates the control to this process? The VM does not care. It just resumes executing the frozen context, that is, whichever context called the

Re: [Newbies] VM Building questions

2006-10-05 Thread Bert Freudenberg
The #ccgDecleareCForVar: methods were moved out of the system image into VMMaker recently. The 3.8 image should still have them, IIRC. Or use a more recent version of VMMaker that includes them. So - what image version and VMMaker version do you have? The plugins with missing platform

Re: [Newbies] Time

2006-10-08 Thread Bert Freudenberg
Am 08.10.2006 um 03:26 schrieb keith hodges: why when I have a component that is ticking does its pickup behaviour change. Picking it up creates a copy of the component rather than moving it? That must be something else. What exactly are you doing? - Bert -

Re: [Newbies] Morphic Layout Managers

2006-10-08 Thread Bert Freudenberg
Am 08.10.2006 um 13:28 schrieb Kenneth Payne: Am I right in thinking there is way to get a sub-morph to automatically resize as its owner morph resizes? I've experimented with TableLayout and it seems to work the opposite way. You can get a morph to shrink-wrap around its components but

Re: [Newbies] Morphic Layout Managers

2006-10-09 Thread Bert Freudenberg
Am 09.10.2006 um 20:03 schrieb Kenneth Payne: By the way, that proportional layout code that Bert pointed out seems to do what I want. (Thanks again, Bert). Now I just have to understand it. Well, it's the traditional Smalltalk layout, also known as fractional layout in other

Re: [Newbies] Re: Making a wonderland actor respond to keystrokes, not mouseclicks? (was: Beginners questions)

2006-11-08 Thread Bert Freudenberg
Also, in particular when posting over in the experts list (squeak- dev), take this document to heart: http://catb.org/esr/faqs/smart-questions.html - Bert - Am 08.11.2006 um 11:17 schrieb Roel Wuyts: Hello, I understand the situation from your point of view: you post a question,

Re: [Newbies] E-Toys and Morphic for simple point plotting exercise?

2006-11-15 Thread Bert Freudenberg
On Nov 14, 2006, at 15:54 , Daniel Green wrote: I'd like to challenge some students (9 years old to 14 years old) to use Squeak to draw a Sierpenski Gasket (http://en.wikipedia.org/ wiki/Serpinski_gasket) as an experiment with random numbers. I'm pretty sure Markus Gaelli did that once,

Re: [Newbies] Re: Bugging out of Squeak

2006-11-17 Thread Bert Freudenberg
+20 - Bert - On Nov 17, 2006, at 1:28 , Todd Blanchard wrote: FWIW, this option has saved my bacon a number of times. All destructive operations should have a confirm - quitting without saving is one of those things. -Todd Blanchard On Nov 15, 2006, at 6:21 AM, Ralph Johnson wrote: 4

Re: [Newbies] Video question

2006-11-17 Thread Bert Freudenberg
On Nov 17, 2006, at 5:57 , Andrew Burton wrote: Is there a standard format for video in the Squeak community? I noticed that most of the Croquet videos were in Quicktime format, and I wasn't sure if that carried over to here as well. I ask, because I put together a small video about

Re: [Newbies] Moving an object inside another object with respective to cursor position

2006-11-18 Thread Bert Freudenberg
On Nov 18, 2006, at 2:54 , mnrao wrote: hi all, I have created an rectangle morph and a small ellipse morph. I want to place the ellipse in the rectangle and move the small ellipse (circle) in the direction of the mouse pointer. I want the small ellipse does not come out of the

Re: [Newbies] Send a global keystroke from code

2006-11-22 Thread Bert Freudenberg
See the class comment of EventSensor. - Bert - On Nov 22, 2006, at 18:26 , Rob Rothwell wrote: Thanks; could anyone point me in the right direction to generate said keyboard event?! Rob On 11/22/06, Bert Freudenberg [EMAIL PROTECTED] wrote:On Nov 22, 2006, at 8:12 , Rob Rothwell wrote

[Newbies] Stand alone application (was: Image vs. source code)

2006-11-23 Thread Bert Freudenberg
On Nov 23, 2006, at 3:22 , Andrew Burton wrote: Tyler Sperry wrote: -- but perhaps someone here will point out the Squeakish way of creating standalone (in appearance, at least) applications. I hope someone will. I have no burning desire to create a stand alone Squeak application, but it

Re: [Newbies] Stand alone application

2006-11-23 Thread Bert Freudenberg
On Nov 23, 2006, at 12:14 , Offray Vladimir Luna Cárdenas wrote: Hi, Bert Freudenberg escribió: On Nov 23, 2006, at 3:22 , Andrew Burton wrote: Tyler Sperry wrote: -- but perhaps someone here will point out the Squeakish way of creating standalone (in appearance, at least) applications

Re: [Newbies] Stop a script for a second

2006-11-29 Thread Bert Freudenberg
On Nov 29, 2006, at 19:17 , Martin Bleichner wrote: Hi together, I am new to this list. So perhaps I should introduce myself. I am 25 year old german student studying congitive neuroscience in Utrecht/Netherlands. I want to use squeak /etoys mainly for exploring and visualizing some

Re: [Newbies] Transfering scripts (was: Stop a script for a second)

2006-12-15 Thread Bert Freudenberg
On Dec 12, 2006, at 13:55 , Randy Goldenberg wrote: Hi, I have an object for which I've created some variables and scripts. I would like to add those variables and scripts to another, different object (original object was a SketchMorph, new object is an Ellipse dragged out from the Supplies

Re: [Newbies] How to access a Squeak class

2007-01-16 Thread Bert Freudenberg
A better alternative would be Smalltalk classNamed: 'Object' avoiding the low level #at: and #asSymbol protocol. Does some more checks, too. - Bert - On Jan 16, 2007, at 14:33 , Herbert König wrote: Hello Warakorn, HK try: HK Smalltalk at: #MonthMorph inspect I got some more

Re: [Newbies] How to access a Squeak class

2007-01-16 Thread Bert Freudenberg
What makes you think it does not return a class object? It does. But note that you have to use a symbol (#Object) not a String ('Object') when you use #at:. Of course. '#Object' does not make any sense. If you use #classNamed:, both a String and a Symbol will work. - Bert - On Jan 16,

Re: [Newbies] Help! Where's Wonderland in Squeak 3.9 ?

2007-01-16 Thread Bert Freudenberg
On Jan 16, 2007, at 19:57 , Henry Lenzi wrote: Dear All -- I need your help. I'm teaching my 10 year-old niece eToys. I'm running a Squeak version in FreeBSD that has Wonderland, but on our Macintosh, on version 3.9, we can't find Wonderland. It might be simplest to copy the .image file

Re: [Newbies] Help! Where's Wonderland in Squeak 3.9 ?

2007-01-17 Thread Bert Freudenberg
Am Jan 17, 2007 um 23:53 schrieb Henry Lenzi: On 1/16/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Jan 16, 2007, at 19:57 , Henry Lenzi wrote: Dear All -- I need your help. I'm teaching my 10 year-old niece eToys. I'm running a Squeak version in FreeBSD that has Wonderland

Re: [Newbies] OpenGL in Squeak

2007-01-19 Thread Bert Freudenberg
Am Jan 19, 2007 um 0:47 schrieb Mike O'Brien: Has anyone hooked up the OpenGL libraries in Squeak on the FreeBSD platform? Squeak runs great on FreeBSD. I'm running the 3.7 VM from the FreeBSD ports collection right now. Problem is, I'm trying to run Croquet, which tries to make

Re: [Newbies] Rome (Cairo) installation problems

2007-01-21 Thread Bert Freudenberg
Am Jan 21, 2007 um 12:56 schrieb Sebasstian Nozzi: Hi all, I'm trying to use cairo in squeak (I'm actually trying this in croquet 1.0 beta, since I had read that rome needs tweak Rome does not need Tweak. It should not depend on Tweak either, but since we are using it mostly in Tweak,

Re: [Newbies] terminate event?

2007-01-21 Thread Bert Freudenberg
Am Jan 21, 2007 um 14:07 schrieb David Urquhart: Hi I'm a Squeak beginner. I want to write to the transcript when an object is coming to life and when its terminating. I have an initialize method for the birth - what is the method called that fires at death? There is no such method.

Re: [Newbies] terminate event?

2007-01-21 Thread Bert Freudenberg
Am Jan 21, 2007 um 15:21 schrieb Bert Freudenberg: Am Jan 21, 2007 um 14:07 schrieb David Urquhart: Hi I'm a Squeak beginner. I want to write to the transcript when an object is coming to life and when its terminating. I have an initialize method for the birth - what is the method

Re: [Newbies] terminate event?

2007-01-22 Thread Bert Freudenberg
@lists.squeakfoundation.org Sent: Sunday, January 21, 2007 9:42:16 PM Subject: Re: [Newbies] terminate event? Thanks for a fantastic answer and sample code. -Dave From: Bert Freudenberg [EMAIL PROTECTED] Reply-To: A friendly place to get answers to even the most basic questionsabout Squeak. beginners

Re: [Newbies] Re: Rome (Cairo) installation problems

2007-01-22 Thread Bert Freudenberg
Am Jan 22, 2007 um 19:58 schrieb Sebasstian Nozzi: Hello Bert, Error: subscript is out of bounds: 0 (I don't know how to transcript the whole stack) It is logged to SqueakDebug.log in your image directory - please attach. Gerne ;-) I attached 3 logs, for these files: -

Re: [Newbies] Re: Rome (Cairo) installation problems

2007-01-24 Thread Bert Freudenberg
On Jan 24, 2007, at 21:33 , Sebasstian Nozzi wrote: Actually, to start with Rome you should follow the advice which packages to install on the download page: http://squeaksource.com/Rome.html With the normal Squeak 3.8 it doesn't work, since it needs many VMMaker classes that are

Re: [Newbies] Translating Morphic/Squeak

2007-01-26 Thread Bert Freudenberg
On Jan 26, 2007, at 8:56 , Jens Pall wrote: Frank Urbach wrote: Hi Jens, what do you mean with translating.? Like from English to some other language. In the Navigator flap, click English, select Deutsch. There are more translations available in the Squeakland version. - Bert -

Re: [Newbies] 3.9 reading 3.8 .pr

2007-01-29 Thread Bert Freudenberg
On Jan 29, 2007, at 16:16 , Steve Linduska wrote: I have students and teachers that have developed projects in eToys with 3.8 and are experiencing errors on every .pr file when 3.9 attempts to load. We presumed upward migration and are unable, or unaware, of how to resolve. You should

Re: [Newbies] newbie stuff - cont.

2007-01-30 Thread Bert Freudenberg
On Jan 30, 2007, at 14:48 , David Urquhart wrote: I should add (explain) that one problem I had with surfing code in Squeak was working out how canvasses and Morphs work with one another. Like when I create a Morph, what creates the associated canvas. I couldn't find how. Apart from

Re: [Newbies] Dealing with AnObsoleteC3 Class

2007-01-31 Thread Bert Freudenberg
On Jan 31, 2007, at 20:22 , Michael Davies wrote: I'm trying to refactor a piece of code using the refactoring browser, but I've started getting messages telling me that AnObsoleteC3 class does not understand #directlyDefinesMethod. I assume that a changeset I've loaded has removed a class

Re: [Newbies] Dealing with AnObsoleteC3 Class

2007-01-31 Thread Bert Freudenberg
On Jan 31, 2007, at 22:32 , Michael Davies wrote: On 31/01/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Jan 31, 2007, at 20:22 , Michael Davies wrote: I'm trying to refactor a piece of code using the refactoring browser, but I've started getting messages telling me that AnObsoleteC3

Re: [Newbies] Tweak questions

2007-02-01 Thread Bert Freudenberg
On Feb 1, 2007, at 5:19 , Milan Zimmermann wrote: On 2007 January 31 15:04, Bert Freudenberg wrote: Yes, that's the plan at least for Croquet. The main hold-back for this is that the Tweak development tools are not yet up to par with the Morphic ones. We do have browsers etc., implemented

Re: [Newbies] Tweak questions

2007-02-02 Thread Bert Freudenberg
On Feb 2, 2007, at 8:48 , Milan Zimmermann wrote: On 2007 February 1 04:34, Bert Freudenberg wrote: I don't think there is a Seaside ToolBuilder yet. In 3.9, you have builders for Morphic and MVC. Plus there is the one Tweak. Also, you must not reference the Pluggable*Spec classes directly

[Newbies] Process Scheduling (was Re: BlockClosurefork problem)

2007-02-20 Thread Bert Freudenberg
On Feb 20, 2007, at 11:05 , Michael Davies wrote: George, You'll find that writing to the Transcript always slows things down. I assume it's the time for writing to the Transcript that also causes the second process to start after a different interval each time. Besides, it interferes with

[Newbies] Re: Howto find the host OS

2007-02-26 Thread Bert Freudenberg
You need to use SmalltalkImage current platformName nowadays. In the future, just select platformName and press Cmd-m to find out where it got moved in the most recent refactoring. - Bert - On Feb 26, 2007, at 13:56 , Mispunt wrote: Thanks for the quick reply, but Squeak says:

[Newbies] Re: Alternative for static const...

2007-02-27 Thread Bert Freudenberg
On Feb 27, 2007, at 10:08 , Mispunt wrote: Hi all, For programming my Lego Mindstorms NXT I have to use codes like 16r1F. But I actually want to be able to use readable codes. In a language like Java I will do that with a static const, but as far as I know I have to do it with symbols in

[Newbies] Re: Alternative for static const...

2007-02-27 Thread Bert Freudenberg
using the poolDictionary it isn't possible to use the constants in the Workspace right? or do I have to write methods for them when I want to use them? (well I don't want to, because it is just for testing purpose). Mispunt. On 2/27/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Feb 27, 2007

Re: [Newbies] Re: Alternative for static const...

2007-02-27 Thread Bert Freudenberg
in the Workspace right? or do I have to write methods for them when I want to use them? (well I don't want to, because it is just for testing purpose). Mispunt. On 2/27/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Feb 27, 2007, at 10:08 , Mispunt wrote: Hi all, For programming my Lego

Re: [Newbies] Private metods as my*?

2007-02-27 Thread Bert Freudenberg
On Feb 27, 2007, at 22:05 , Blake wrote: Greetings, I'm trying to fill in the gaps in my Smalltalk knowledge and so am going through some of the free books (thanks, Steph!). Right now I'm looking at Smalltalk By Example where it talks about the absence of private messages. (I've run up

Re: [Newbies] BlockClosurefork problem

2007-02-28 Thread Bert Freudenberg
On Feb 28, 2007, at 20:56 , stephane ducasse wrote: On 20 févr. 07, at 21:55, Bert Freudenberg wrote: On Feb 20, 2007, at 21:28 , George Herolyants wrote: Thanks for this answer, Ron. But actually I'm not confused with order in wich '1' and '2' presents in result line. I can't

Re: [Newbies] Private metods as my*?

2007-03-01 Thread Bert Freudenberg
On Mar 2, 2007, at 1:56 , Blake wrote: On Tue, 27 Feb 2007 13:24:25 -0800, Bert Freudenberg [EMAIL PROTECTED] wrote: I've never seen a fr prefix, and seldomly a my. To emphasize privacy, private seems to be the most common prefix (just check a regular image). There is also a private

Re: [Newbies] Re: Alternative for static const...

2007-03-02 Thread Bert Freudenberg
, but it turned out to be measurably faster than dictionary lookups. Even better, we had revision history for our dictionaries because it was all methods. * Oh, wait, I forgot I was in Squeak. Thousands of methods is no big deal. Bert Freudenberg wrote: On Feb 27, 2007, at 10:08 , Mispunt wrote

Re: [Newbies] Storing a negative SmallInterger in a ByteArray

2007-03-05 Thread Bert Freudenberg
On Mar 5, 2007, at 11:01 , Mispunt wrote: Hi people, I am a bit confused... Maybe you just missed the classes where they talked about bits, bytes, words, and how they relate to numbers? ;) I am working on an implementation to communicate with the Lego Mindstorms NXT. Al works fine,

Re: [Newbies] array literal - a misunderstanding?

2007-03-05 Thread Bert Freudenberg
On Mar 5, 2007, at 18:48 , Thomas Fischer wrote: Hi, The Terse guide to Squeak at http://wiki.squeak.org/squeak/5699 may help. Thanks for this Link. Arrrgh! There is no curly brace in the Terse guide It's a wiki. Add it. - Bert - ___

Re: [Newbies] Squeak in commercial projects

2007-03-07 Thread Bert Freudenberg
On Mar 7, 2007, at 8:57 , [EMAIL PROTECTED] wrote: Hi! Just a note - decompiling from bytecodes is very easy in Squeak. The only thing missing is the original indentation and any comments. But everything else is there. Just so you know. Well, if you're really concerned about decompiling,

Re: [Newbies] Populate a new array.

2007-03-11 Thread Bert Freudenberg
On Mar 11, 2007, at 10:40 , Blake wrote: Here's another one: I've created a method that returns an array of its own class: anArray: aQuantity | a | a := Array new: aQuantity. a size do: [:i | a at: i put: self class new]. ^ a but, for a while,

Re: [Newbies] Populate a new array.

2007-03-15 Thread Bert Freudenberg
On Mar 15, 2007, at 10:54 , Michael van der Gulik wrote: Also, observing that at: is actually implemented in Object, which seems...odd! It is a bit odd. An Object in the virtual machine resembles an array of instance variables, and that method assigns to an instance variable by number.

Re: [Newbies] Morphic event-handling confusion

2007-03-15 Thread Bert Freudenberg
On Mar 15, 2007, at 11:23 , Michael van der Gulik wrote: There's a two-step sequence of messages I'd like my Puck to receive while still doing the normal getting-moved-by-the-Hand stuff. No go. You need to implement your mouse behavior on your own, using an event handler (#on:send:to:) or

Re: [Newbies] FW: [Squeakland] SqueakFest '07 - Save the Date!

2007-03-23 Thread Bert Freudenberg
On Mar 23, 2007, at 2:18 , Blake wrote: I was thinking we need one of these on the left coast... :-) You're welcome to organize one - there should be SqueakFests around the globe, actually. - Bert - ___ Beginners mailing list

Re: [Newbies] Do I need to close a FileStream?

2007-03-24 Thread Bert Freudenberg
On Mar 24, 2007, at 8:34 , Tim Johnson wrote: Hi, Do I need to worry about closing a read-only FileStream when I am done reading from it? Yes. Always. A common pattern is f := ... open the file stream [ ... do something with f ... ] ensure: [f close] This ensures f

Re: [Newbies] Do I need to close a FileStream?

2007-03-25 Thread Bert Freudenberg
On Mar 24, 2007, at 17:41 , Tim Johnson wrote: On Mar 24, 2007, at 3:45 AM, Kyle Hamilton wrote: The underlying OS has only a certain number of file handles that it can maintain open at a time. On UNIX-like systems, there is also possibly a maximum number of files per process. If this

[Newbies] Smalltalk on OLPC (was Re: Morph Window - Class?)

2007-04-08 Thread Bert Freudenberg
On Apr 8, 2007, at 19:17 , Offray Vladimir Luna Cárdenas wrote: Hi, Milan Zimmermann escribió: On 2007 April 3 12:27, Bert Freudenberg wrote: On Apr 3, 2007, at 13:53 , Edgar J. De Cleene wrote: ... The final product could have a programmer mode (Morphic)? Actually we do think about

Re: [Newbies] Efficiently writing to a file

2007-04-08 Thread Bert Freudenberg
On Apr 8, 2007, at 21:13 , Ian Oversby wrote: Is this a reasonable way of writing to a file? It seems to run a little slower than I would expect. Thanks, Ian | myFile | myFile := StandardFileStream fileNamed: 'c:/test.txt' Transcript show: (Time millisecondsToRun: [ 1 to: 1 do: [

[Newbies] Fwd: Squeak meeting on May 12th in Potsdam, Germany

2007-04-10 Thread Bert Freudenberg
Hi, for those German-speaking Squeakers who are not subscribed to the Squeak e.V. mailing list I forward the announcement for our annual meeting. We welcome non-members to the meeting. The official part usually only takes like an hour or so, the rest is fun :) See you in Potsdam! -

Re: [Newbies] Efficiently writing to a file

2007-04-10 Thread Bert Freudenberg
On Apr 10, 2007, at 23:22 , Ian Oversby wrote: Okay, I tried this and it still seems a bit slow: | myFile ios | ios := ReadWriteStream on: ''. Transcript show: 'Populate Buffer: ', (Time millisecondsToRun: [ 1 to: 1 do: [ :x | ios

Re: [Newbies] #and:, #or: methods in blocks?

2007-04-10 Thread Bert Freudenberg
On Apr 10, 2007, at 23:40 , Petr Fischer wrote: Hi, methods #and:, #or: etc. are defined in Boolean class only - why this methods are not defined in blocks too? * standard way (brackets mix): ( condition_1 ) and: [ condition_2 ] ... * this (fictive) way looks beter (for me): [

Re: [Newbies] Efficiently writing to a file

2007-04-10 Thread Bert Freudenberg
On Apr 10, 2007, at 23:50 , Ian Oversby wrote: On 10/04/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Apr 10, 2007, at 23:22 , Ian Oversby wrote: Okay, I tried this and it still seems a bit slow: | myFile ios | ios := ReadWriteStream on: ''. Transcript show: 'Populate Buffer

Re: [Newbies] Error: No content to install

2007-04-11 Thread Bert Freudenberg
On Apr 11, 2007, at 19:40 , Isaac Gouy wrote: I downloaded the Linux VM and image from these links: http://ftp.squeak.org/3.9/unix-linux/Squeak-3.9-8.i686-pc-linux- gnu.tar.gz http://ftp.squeak.org/3.9/Squeak3.9-final-7067.zip I can invoke the image without problem. When I try to pass a

Re: [Newbies] Re: Adding methods to Integers...

2007-04-12 Thread Bert Freudenberg
This is actually wrong. Only SmallIntegers are special [*]. What happens is this: When you add two SmallIntegers (like 3 + 4), and the result is a SmallInteger, the result is calculated in the bytecode directly. Otherwise, a regular send of #+ is performed. From there, everything else

Re: [Newbies] Re: Adding methods to Integers...

2007-04-13 Thread Bert Freudenberg
On Apr 13, 2007, at 14:35 , Klaus D. Witzel wrote: On Fri, 13 Apr 2007 13:39:08 +0200, Bert Freudenberg wrote: On Apr 13, 2007, at 13:27 , Klaus D. Witzel wrote: Hi Bert, on Thu, 12 Apr 2007 18:31:55 +0200, you wrote: This is actually wrong. :) Only SmallIntegers are special

Re: [Newbies] Fading a PNG

2007-04-22 Thread Bert Freudenberg
On Apr 23, 2007, at 0:44 , Steven Greenberg wrote: I have a PNG image that I'd like to display fading out. I tried the BitBlt method suggested by Team RAR to fade the image, but I can't make it work. The image loads properly from a file and displays fine as an ImageMorph. I have been

Re: [Newbies] Fading a PNG

2007-04-23 Thread Bert Freudenberg
[EMAIL PROTECTED] wrote: Thanks for the pointer! I didn't try that code in the workspace, but if you enable haloTransitions using the Preferences browser then the halos fade in and out. Thanks, Steve On 4/22/07, Bert Freudenberg [EMAIL PROTECTED] wrote: On Apr 23, 2007, at 0:44

Re: [Newbies] flood erase in Paint tool

2007-04-25 Thread Bert Freudenberg
Actually, you can just use the fill bucket with the no color (on top of the rainbow gradient chooser) to erase stuff. - Bert - On Apr 25, 2007, at 9:55 , Scott Wallace wrote: Hi, Subbu, First, decide on a color to represent transparent, and then in the paint tool, paint with that color

Re: [Newbies] modules, plugins, primitives, and MIDIPlugin

2007-05-12 Thread Bert Freudenberg
On May 11, 2007, at 18:18 , Andrew Dabrowski wrote: When I try to execute the primMIDIOpenPort method I get a primitivefailed error message. Is this because my current image can't find the external resource? I'm running Ubuntu 7.04 Until very recently the Unix VM did not support the

Re: [Newbies] Passing arguments to squeak image

2007-05-17 Thread Bert Freudenberg
On May 17, 2007, at 10:53 , Patrick Collison wrote: Hi, Using latest SVN Squeak, I'm having trouble passing arguments to an image. As far as I can see from the usage, it looks like squeak foo.image bar should pass bar as an argument to the image. Instead, though, I get a load error (the

Re: [Newbies] Passing arguments to squeak image

2007-05-17 Thread Bert Freudenberg
On May 17, 2007, at 14:45 , subbukk wrote: On Thursday 17 May 2007 4:38 pm, Bert Freudenberg wrote: You can pass an empty argument as first option after the image name followed by your other arguments, or deactivate the launcher in your image. squeak squeak.image /dev/null arg1 bag

Re: [Newbies] Simply

2007-05-20 Thread Bert Freudenberg
On May 20, 2007, at 9:55 , Antero Salminen wrote: Hi, dbl-click program icon and no action. in intelmac , only some VM? no ide? You need to drag the .image file onto the VM. - Bert - ___ Beginners mailing list Beginners@lists.squeakfoundation.org

Re: [Newbies] Morph Drop Shadows

2007-05-20 Thread Bert Freudenberg
, it is hard to know what is the shadow and what is the shape, especially for kids. dhs On 20 May 2007, at 14:51, Bert Freudenberg wrote: The Hand draws a shadow of all morphs it is holding. You could implement the dragging of your morphs yourself and not leave that to HandMorph. Or hack

Re: [Newbies] Tracing back objects

2007-05-25 Thread Bert Freudenberg
On May 25, 2007, at 12:18 , subbukk wrote: Hi, The following code: CompiledMethod allInstances inject: (CompiledMethod allInstances first) into: [:m :i | i size m size ifTrue: [i] ifFalse: [m]]. gives the largest method as an object. Note that CompiledMethod someInstance is

Re: [Newbies] invoking a *class* method from a workspace

2007-05-26 Thread Bert Freudenberg
On May 26, 2007, at 14:50 , mstram wrote: What's the trick / catch ... if there is one for invoking a class method from a workspace? Class methods in Smalltalk are regular methods, because classes are regular objects. Unfortunately the browser gives the impression that there are two

Re: [Newbies] invoking a *class* method from a workspace

2007-05-26 Thread Bert Freudenberg
On May 26, 2007, at 18:32 , mstram wrote: Well obviously I need to a lot more reading and experimenting with this, even if class methods are regular methods, there is something different with them as far as : 1) the syntax to access them (fire .. call .. invoke ??? what is the

Re: [Newbies] invoking a *class* method from a workspace

2007-05-27 Thread Bert Freudenberg
On May 27, 2007, at 17:14 , subbukk wrote: Since classes are also objects that are created when you 'accept' the definition (except that its variables are created from classVariableNames), so you can use them in class methods immediately. Not quite. Those variables are class variables,

Re: [Newbies] Mophic scripts tiles vs textual code

2007-06-03 Thread Bert Freudenberg
On Jun 3, 2007, at 19:50 , David H. Shanabrook wrote: Hi. I am writing some simple morphic scripts. It would be convenient to use smalltalk directly, so I toggle the script to directly enter the code. But I am having problems, as it is not working. If I uses tiles to create a script

Re: [Newbies] Mophic scripts tiles vs textual code

2007-06-04 Thread Bert Freudenberg
, and I do something like hide PolyB in the workspace it asks about PolyB. On 3 Jun 2007, at 14:26, Bert Freudenberg wrote: On Jun 3, 2007, at 19:50 , David H. Shanabrook wrote: Hi. I am writing some simple morphic scripts. It would be convenient to use smalltalk directly, so I toggle

Re: [Newbies] Mophic scripts tiles vs textual code

2007-06-04 Thread Bert Freudenberg
On Jun 4, 2007, at 16:47 , subbukk wrote: On Monday 04 June 2007 4:40 pm, Bert Freudenberg wrote: Now that only works for morphs that actually *have* a player, that is, the morphs that are scripted. I noticed that the 'debug' button has new entries for player the moment I open a player

Re: [Newbies] Mophic scripts tiles vs textual code

2007-06-04 Thread Bert Freudenberg
self, and hide the argument polyb? Then when writing the morph code I can refer to this new method? On 4 Jun 2007, at 07:10, Bert Freudenberg wrote: Etoys is a layer on top of Smalltalk, so in most cases you can (unfortunately) not use the regular Smalltalk coding tools directly. OTOH

  1   2   3   4   5   6   >