Re: [Newbies] Re: rename class category?

2008-11-09 Thread Bert Freudenberg
On 09.11.2008, at 14:34, Mark Volkmann wrote: On Nov 9, 2008, at 4:14 AM, Hilaire Fernandes wrote: From the UI, over the category name in the class browser, right click (or alt/apple click) the category, in the pop up menu you should have a 'rename...' menu item. Here's what I see. Ther

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 ColorForm>>replaceColor: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 colo

Re: [Newbies] Coloring images with transparant parts

2008-11-22 Thread Bert Freudenberg
Am Sat, 22 Nov 2008 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 ColorForm>>replaceColor:with: which does what you describe. But it is unfortunately not what I was looking for. I wasn

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

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: aB

Re: [Newbies] closing WriteStream?

2008-11-26 Thread Bert Freudenberg
On 26.11.2008, at 02:10, Mr. Timothy C. Johnson wrote: Hi, Do I need to worry about closing a WriteStream? Currently I am working like this: buildStatementFor: anObject | statement | statement := String new writeStream. [ statement nextPutAll: 'bla bla bla'. ^ statement contents. ] ensure

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 "destruct

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 a

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 copying

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 elem

[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 t

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 is

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 snaps

Re: [Newbies] how can I compile a String to BlockContext?

2009-02-27 Thread Bert Freudenberg
On 27.02.2009, at 08:12, Albert Lee wrote: aka eval, in python: eval('3 + 5') 8 Compiler evaluate: '3 + 5' - Bert - ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners

Re: [Newbies] Float comparsion

2009-02-27 Thread Bert Freudenberg
On 27.02.2009, at 13:22, Camillo Bruni wrote: Hy all, I recently tried to compare two Float which apparently should be (nearly) the same. I have to following excerpt: a := (Float halfPi / 2) tan a = 1.0 The comparison evaluates to false, although it should be 1.0. How do I

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 applicat

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 o

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

2009-03-02 Thread Bert Freudenberg
On 02.03.2009, at 23:29, Steinar Bang wrote: Bert Freudenberg : Make sure you grab the "assignment" arrow, not the name of the tile. The viewer lets you get two kinds of tiles for properties such as heading: one to access the heading, and one to set it. If you hover the mouse

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 sq

[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 do

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 : 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: http://billkerr2.blogspot.com/2007/11/making-pong-in-etoys.html That's

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 lik

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

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 wo

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 def

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 f

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 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 implementation where i woul

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/ http://planet-plop

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 the

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 with

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 Beginners@lists.squeakfoun

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 := OrderedCollectio

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). http://the.taoo

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 any

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 disp

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, a

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, ho

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 Sque

[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" Date: 3. August 2009 00:45:30 MESZ To: Subject: [squeakland] Hello from Porto Alegre Hello,

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 mat

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 .chan

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 Beginners@lists.squ

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

2009-08-26 Thread Bert Freudenberg
eed, which we can't really proof because of the lack of it ;) Cookbook wiki maybe? 2009/8/25 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 ht

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 yo

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 16:50, Randal L. Schwartz wrote: As we were discussing this issue last night at the Portland Smalltalk meeting after-meeting dinner, whether it is faster to grab the associations to sort them, or to grab the keys to sort them first then go look up the values, depends on t

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 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 sp

[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 Beginner

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 acc

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 steppin

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. Yo

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] OrderedCollection if imageMorphs

2009-11-09 Thread Bert Freudenberg
On 09.11.2009, at 02:08, Christine Wolfe wrote: Oh wow! thanks - having the sample code will be a huge help. I'll give it a try. -Original Message- From: Randal L. Schwartz [mailto:mer...@stonehenge.com] Sent: Sunday, November 08, 2009 8:03 PM To: Christine Wolfe Cc: beginners@lists

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 r

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 indivi

Re: [Newbies] Speed

2009-11-15 Thread Bert Freudenberg
On 14.11.2009, at 23:07, John Worden wrote: > So are you saying that my example is slow because of the time taken to > process the text data files in Squeak? (I was using 3.10) > > Not that it matters in this case but how would I work around this if it were > a real application that needed to

Re: [Newbies] HTTP encoding into UTF8

2009-11-16 Thread Bert Freudenberg
On 16.11.2009, at 23:04, Stephane Schitter wrote: > hello, > > I am playing around with squeak to connect to webservices and I run into > issues very early in the process. > Something to do with url encoding. Is there any reason the following code: > > 'aa aa éé aa aa' encodeForHTTP >

Re: [Newbies] HTTP encoding into UTF8

2009-11-17 Thread Bert Freudenberg
On 16.11.2009, at 23:17, Bert Freudenberg wrote: > > On 16.11.2009, at 23:04, Stephane Schitter wrote: > >> hello, >> >> I am playing around with squeak to connect to webservices and I run into >> issues very early in the process. >> Something to do

Re: [Newbies] [semi-OT] (fwd) Re: What Killed Smalltalk?

2009-11-18 Thread Bert Freudenberg
On 18.11.2009, at 13:41, Steve Wessels wrote: > > That's right. Smalltalk hasn't died. I am fortunate enough to be part of a > team developing financial software for many years using Smalltalk. > > People have predicted Smalltalk's death about as often as Apple's death. > > I think comparison

Re: [Newbies] Opening URL in default browser.

2009-11-20 Thread Bert Freudenberg
On 20.11.2009, at 09:09, Herbert König wrote: > > Hi Mike, > > MV> Is it possible to have squeak run the default web browser and have it > MV> go to a url? > > Yes. > > You need the FFI package. Assuming you are in Windows > Win32Shell>>shellExplore: aPathString gives you an example to open the

Re: [Newbies] Replaceing AnObsolete....Class

2009-12-01 Thread Bert Freudenberg
On 01.12.2009, at 18:06, Paul DeBruicker wrote: > > Hi - > > In my image I have at least two obsolete classes that are still > referenced by some code. They were created when I inadvertently > deleted some classes from the image and reinstalled them from a file out > of an older image. How

Re: [Newbies] Referencing a variable?

2009-12-03 Thread Bert Freudenberg
On 03.12.2009, at 12:59, Amir Ansari wrote: > > But I'd like to reuse the code as much as possible, so I'd prefer to do > something like this: > > element := 'title'. > choice := myLibrary collect: [:each | each element]. element := #title. choice := myLibrary collect: [:each | each perform: el

Re: [Newbies] Referencing a variable?

2009-12-03 Thread Bert Freudenberg
On 03.12.2009, at 13:46, Amir Ansari wrote: > > Yes! That did it! > > First time I've used 'perform:'; I'd never have considered it. > > Thank you so much! > > Amir You just graduated into the first level of meta-programming :) - Bert - ___ Beginn

Re: [Newbies] Expected menu items not there

2009-12-15 Thread Bert Freudenberg
On 15.12.2009, at 16:35, Tim Rowe wrote: > > 2009/12/10 prwnkl : >> Tim, >> >> I have been at Squeak for only a couple of weeks but if you have a Mac with >> a one button mouse like I do you have to use AppleKey + Enter to "print". > > No, this is under Windows, so I have a 2-button plus scrollw

Re: [Newbies] Expected menu items not there

2009-12-15 Thread Bert Freudenberg
On 15.12.2009, at 16:53, Tim Rowe wrote: > > 2009/12/15 Alex Schenkman : >> I'm sorry Tim, but I don't understand your question. >> Could you rephrase it please? > > Ok. I'm a complete newcomer to Squeak, and indeed to Smalltalk, > although I am an experienced programmer, having worked by way thr

Re: [Newbies] Expected menu items not there

2009-12-15 Thread Bert Freudenberg
On 15.12.2009, at 16:58, Tim Rowe wrote: > > 2009/12/15 Bert Freudenberg : > >> The menu you said is displayed seems to match the "yellowButtonNoviceMenu". >> >> So, can you make sure you do not have the noviceMode preference enabled? > > Aha! Ye

Re: [Newbies] Is there a Squeak idiom for array slices?

2009-12-17 Thread Bert Freudenberg
On 18.12.2009, at 02:47, Tim Rowe wrote: > > If, for example, variable a contains an array with 20 elements, but I > want to inject:into: just elements 3 through 17, is there an easier > way than step-by-step creating a new array, copying the required > elements of a into it, and then doing an inj

Re: [Newbies] Is there a Squeak idiom for array slices?

2009-12-17 Thread Bert Freudenberg
On 18.12.2009, at 02:51, Bert Freudenberg wrote: > > On 18.12.2009, at 02:47, Tim Rowe wrote: >> >> If, for example, variable a contains an array with 20 elements, but I >> want to inject:into: just elements 3 through 17, is there an easier >> way than step-by-step

Re: [Newbies] Bitmap-Arrays to large for "contents"

2009-12-22 Thread Bert Freudenberg
On 22.12.2009, at 03:17, Hans Gruber wrote: > > Hi Squeak-Fans! > > I am new in programming squeak an I have the following problem: > > I want to integrate bitmap-arrays in my project for the images used in it. To > get the elements for my bit-map array I used: > > | image stream | > image :=

Re: [Newbies] How to construct a PolygonMorph?

2009-12-22 Thread Bert Freudenberg
On 22.12.2009, at 18:55, Tim Rowe wrote: > > 2009/12/22 Stan Shepherd : wrote: > >> And generally, the answers will point you back to the image, rather than >> documentation. > > Something I'm finding quite frustrating, actually. It feels as if I > can only do something if I can find somebody el

Re: [Newbies] Check wheater an instance of a class is actually there or not

2009-12-23 Thread Bert Freudenberg
On 23.12.2009, at 03:40, Hans Gruber wrote: > >>> "Hans" == Hans Gruber writes: >> >> Hans> Now to my question: >> >> Hans> How may I check wheater an instance of a class (in my case >> MyFileLibrary) has been created and exists at the time I check it. >> >> Hans> (MyFileLibrary = nil) is

Re: [Newbies] FW: Bitmap-Arrays too large for "contents"

2009-12-23 Thread Bert Freudenberg
On 23.12.2009, at 03:03, Hans Gruber wrote: > >> Hi Squeak-Fans! >> >> I am new in programming squeak an I have the following problem: >> >> I want to integrate bitmap-arrays in my project for the images used in it. >> To get the elements for my bit-map array I used: >> >> | image stream | >>

Re: [Newbies] how to delete imported graphics

2010-01-14 Thread Bert Freudenberg
On 14.01.2010, at 21:01, Ken G. Brown wrote: > > This is latest trunk on Mac Squeak 64-32 5.3b1.app > > I've done a couple of file list/import of jpgs. > I'm wondering where the jpg's are stored and how do I delete them? > I can see them from World Menu/help/graphical imports but the menubar menu

Re: [Newbies] UTF-8 Streams

2010-01-21 Thread Bert Freudenberg
On 21.01.2010, at 18:08, Ole Voß wrote: > > Uhm, ok, I get it ;-) > > I'll rephrase that... how do I ensure that a UTF-8 textfile will be read and > recognised as such using Squeak (or Pharo) smalltalk? I was expecting some > sort of decoding mechanisms or a method of telling Squeak this String

Re: [Newbies] Re: LedMorph - step problem

2010-03-08 Thread Bert Freudenberg
On 08.03.2010, at 13:42, FrankBz wrote: > > > Hi Jerome, thanks for answering.. I modified the program as you suggested and > now it seems to work fine. > Basically it starts or stops stepping when sending those messages to the > LedFrame in the workspace. > What is still not working is the butt

Re: [Newbies] Permutations and Combinations

2010-03-12 Thread Bert Freudenberg
On 12.03.2010, at 15:27, Paul DeBruicker wrote: > > Hi -- > > Is there a standard Smalltalk way to enumerate the possible permutations > and combinations of a collection of collections? I'm not having any > luck googling for an example or mention of a class or package to use. Type "permut" some

Re: [Newbies] Re: Permutations and Combinations

2010-03-12 Thread Bert Freudenberg
On 12.03.2010, at 16:28, Paul DeBruicker wrote: > > Sorry. I hit send inadvertently. > > > > > An illustration of what I want is: > > |w x y z | > w:=OrderedCollection with: 'A' > x:=OrderedCollection with: 'a' with: 'b' with: 'c' with: 'd'. > y:=OrderedCollection with: '1' with: '2' with:

Re: [Newbies] Ho to get center of the system screen

2010-03-14 Thread Bert Freudenberg
On 14.03.2010, at 13:02, FrankBz wrote: > > > Hi, how can I get a point representing the screen center? Display center > I need it to open a morph at that position. Hehe: morph openCenteredInWorld Alternatively: morph center: World center > So far I tried with -

Re: [Newbies] Re: Ho to get center of the system screen

2010-03-15 Thread Bert Freudenberg
On 15.03.2010, at 09:42, FrankBz wrote: > > > thanks guys! it works perfectly.. what I meant in my original post was that I > tried with - myMorph position: World center - that as pointed out by jerome > doesn't correspond to the display center. It does. But your Morph's position is its upper-l

Re: [Newbies] How to add a gif or an image to a Morph

2010-03-15 Thread Bert Freudenberg
On 15.03.2010, at 12:54, FrankBz wrote: > > > Hi, how can one insert an animated gif or any type of image to a Morph? Drag the picture file from the file system (Finder on Mac, Explorer on Windows, Nautilus in Gnome, etc.) into the Squeak window. Use the halo to embed into your morph. - Bert

Re: [Newbies] Re: How to add a gif or an image to a Morph

2010-03-15 Thread Bert Freudenberg
On 15.03.2010, at 13:14, FrankBz wrote: > > > It works fine, except that animated gifs are shown statically. Any idea on > how to keep them animated? Hmm, seems to be bug that does not happen automatically. But this works: open a File List, navigate to the GIF, click the first "open" button

Re: [Newbies] Re: How to add a gif or an image to a Morph

2010-03-18 Thread Bert Freudenberg
On 18.03.2010, at 14:30, K. K. Subramaniam wrote: > > On Thursday 18 March 2010 04:56:13 pm FrankBz wrote: >> The problem is that I'm writing a a morph that should change background >> image accordingly to user action.. > What exactly are you trying to do? Create a button? Create a scenic animate

Re: [Newbies] Does vm shipped with Squeak 4.0 support closures? [cross posted]

2010-03-18 Thread Bert Freudenberg
On 18.03.2010, at 22:25, tom.x.por...@gmail.com wrote: > I know that Pharo (or at least Pharo with seaside) requires a VM with closure > support, and the Pharo download page gives access to a vm 4.2.2b1 that > supports them. > > Squeak V4.0 has a vm 4.2.3.b1u, but I am unclear if it was build wi

Re: [Newbies] Howto initialize class variables

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 09:46, Alex Schenkman wrote: > Hi List! > > I'm playing with class variables. How should I initialize them? > I've tried with the class method initialize but it does not do the job. > > Pirulo class>>initialize > super initialize. > myClassVar := Dictionary new at: 'one'

Re: [Newbies] Drag and Drop problem

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 20:47, FrankBz wrote: > > > Hello everyone, I would like to have a Morph which according to different > colored morphs dragged into it, responds with different actions. For > example, if the dragged morph is blue, the container morph should change its > background color, otherwi

Re: [Newbies] a titleize function?

2010-03-20 Thread Bert Freudenberg
On 20.03.2010, at 21:05, John McKeon wrote: > A correct "titlization" will not capitalize "small words" (articles, > prepositions etc). This is probably overkill but I've got parser madness and > just could not help myself =) Seems like overkill for the beginners list indeed ;) Besides, the onl

Re: [Newbies] Best list box morph

2010-03-27 Thread Bert Freudenberg
On 27.03.2010, at 22:22, Jerome Peace wrote: > > > > --- On Fri, 3/26/10, Gary Dunn wrote: > >> From: Gary Dunn >> Subject: Re: [Newbies] Best list box morph >> To: "Squeak Beginners List" >> Date: Friday, March 26, 2010, 5:31 PM >> On Fri, 26 Mar 2010 09:31:39 -0500 >> David Mitchell >> wr

Re: [Newbies] Programmatically simulating drag and drop

2010-04-06 Thread Bert Freudenberg
On 06.04.2010, at 15:48, DeNigris Sean wrote: > Does anyone know how to simulate drag and drop? I managed to pick up a morph > via HandMorph attachMorph:, but I can't get the cursor to move (tried > position: and a few others). > > Thanks. > > Sean DeNigris How detailed do you need the simul

Re: [Newbies] Re: Programmatically simulating drag and drop

2010-04-06 Thread Bert Freudenberg
On 06.04.2010, at 19:02, Sean P. DeNigris wrote: > > > Bert Freudenberg wrote: >> >> How detailed do you need the simulation to be? In the end, dropping >> results in >> >> targetMorph addMorph: droppedMorph >> > > Thanks. I tr

Re: [Newbies] Installing packages - not!

2010-04-07 Thread Bert Freudenberg
On 07.04.2010, at 04:33, DeNigris Sean wrote: > Squeak gurus (I'll have to appeal to the gods next), > > I was living the the personal dynamic media dream - new Squeak image, every > object alive and available, the digital world was my oyster... until I tried > to load some packages... > > I ju

  1   2   3   4   5   6   7   >