Re: [Newbies] Re: ifTrue ifFalse help

2011-04-27 Thread Matthias Berth
$a is a way to input the Character "a". Just like you use 'Hello' to input the string "Hello". In other words, it is a Character literal. Does that make sense? Matthias On Wed, Apr 27, 2011 at 08:35, calcrisk33 wrote: > bool = $a worked like a charm!  So what exactly does $ do?  I'm more famili

Re: [Newbies] ifTrue ifFalse help

2011-04-26 Thread Matthias Berth
try bool = $a to get what you expect. A String consists of Characters (Character is a separate class). You could also do 'abc' inspect to see what's going on :) Cheers Matthias On Wed, Apr 27, 2011 at 08:05, calcrisk33 wrote: > Given: > > | binnum index bool| > binnum := 'abc'. > index

Re: [Newbies] editing an instance variable in an OrderedCollection

2010-03-06 Thread Matthias Berth
You just need to use parentheses, like so: (Album repository at: 7) desc: 'this is a good album' BTW, it is better to use full words for your method and variable names -- they are much easier to guess. I don't know about the context where you want to use this, but maybe it is a good idea to sepa

Re: [Newbies] Can a block be a string?

2010-02-18 Thread Matthias Berth
Andy, a string and a block are two distinct things in Smalltalk. Seaside just lets you provide one or the other as an argument for messages like paragraph: because that's convenient when you write a web application. Sometimes you want to have plain text in that paragraph, then you use html para

Re: [Newbies] 24 hours expiration? PDF? Using Alias?

2010-02-10 Thread Matthias Berth
Hi Van, On Wed, Feb 10, 2010 at 9:48 AM, Van Upboy wrote: > Hello all, > > 1. Some data 'expires' after 24 hours. So when the object is initialized, I > do: >    creationDate: Date today. > > And there is a method to check if the data is expired, like this: >    ^self creationDate > (creationDat

Re: [Newbies] Generating printable output files from Squeak

2009-08-03 Thread Matthias Berth
Hi Kevin, there is a Seaside FAQ on generating PDFs http://seaside.st/documentation/pdfs HTH Matthias On Sun, Aug 2, 2009 at 11:16 AM, Kevin Polston wrote: > Hi > I'd like to create a printable output file from within Squeak, for instance > to create a report. > > I've done a little Googlin

Re: [Newbies] String construction and replacement

2009-02-02 Thread Matthias Berth
For your particular need (normalizing line breaks), use: aString withSqueakLineEndings That gives you a defined line end convention, suitable for use with other methods like linesDo:. HTH Matthias On Mon, Feb 2, 2009 at 4:09 PM, Sebastian Nozzi wrote: > No, actually no. > > But the backgrou

Re: [Newbies] SoundEx algorithm

2009-01-12 Thread Matthias Berth
http://www.visoracle.com/squeak/faq/string-search.html :) On Mon, Jan 12, 2009 at 10:38 PM, Rob Rothwell wrote: > Does anyone know of a SoundEx algorithm in Squeak before I go write one > myself? > > Never hurts to ask! > > Rob > > ___ > Beginners maili

Re: [Newbies] Coloring images with transparant parts

2008-11-18 Thread Matthias Berth
Hi, I know it is possible manually, using the paint box. I guess you could fill using a transparent color. I would open the Method finder and search for fill or floodfill. Don't have a squeak image in front of me now, sorry. HTH Matthias On Tue, Nov 18, 2008 at 3:08 PM, Matthias Korn <[EMAIL PR

Re: [Newbies] binary message ==

2008-10-31 Thread Matthias Berth
Mark, == tests for object identity. Look for implementors of ==, you find it in ProtoObject: == anObject "Primitive. Answer whether the receiver and the argument are the same object (have the same object pointer). Do not redefine the message == in any other class! Essenti

Re: [Newbies] Squeak-specific syntax

2008-10-29 Thread Matthias Berth
Hi, the @ method is not specific to Squeak. I guess it has been included in the earliest versions of Smalltalk already. I don't know about any other Squeak-specific syntax (apart from arrays). If you're concerned about portability of your code to other Smalltalk dialects then you might want to h

Re: [Newbies] Total newb...

2008-10-14 Thread Matthias Berth
ity to be based on the value of some internal class > value. > > Maybe I'm thinking too much like a java programmer. > > Tony > > On Oct 14, 2008, at 2:56 AM, Matthias Berth wrote: > >> Hi Michael, >> >> I think Tonys model of the game is like this: >

Re: [Newbies] Total newb...

2008-10-13 Thread Matthias Berth
Hi Michael, I think Tonys model of the game is like this: A Player throws a hand. That can be any of "rock", "scissors", or "paper". Now someone (a Game object?) has to check if the player did not make a mistake, say by throwing a "well". The set of legal throws (in this game, anyway) is somehow

Re: [Newbies] Total newb...

2008-10-13 Thread Matthias Berth
Hi Tony, welcome to Smalltalk :-) Try this: s := 'abcdef' asSet. s includes: $a. To see similar methods, browse the class Collection - in the testing category. HTH Matthias On Tue, Oct 14, 2008 at 8:11 AM, Tony Giaccone <[EMAIL PROTECTED]> wrote: > Ok, so I'm really new to smalltalk. I've don

Re: [Newbies] Skewing Forms in Squeak V2

2008-09-22 Thread Matthias Berth
e. Is there any place where I could put the code so the community can > use it ? > > Cheers, > Iulian > > -- Forwarded message -- > From: Matthias Berth <[EMAIL PROTECTED]> > Date: Tue, Jul 22, 2008 at 7:10 PM > Subject: Re: [Newbies] Skewing Forms in

Re: [Newbies] Binary file I/O performance problems

2008-09-05 Thread Matthias Berth
David, How many possible float values do you have? Maybe a lookup strategy for the conversion is feasible... Cheers Matthias On Fri, Sep 5, 2008 at 7:59 PM, David Finlayson <[EMAIL PROTECTED]> wrote: > I re-wrote the test application to load the test file entirely into > memory before parsing t

Re: [Newbies] Skewing Forms in Squeak V2

2008-07-22 Thread Matthias Berth
> > wrote: >> >> what is Squeak V2? >> >> On Tue, Jul 22, 2008 at 12:02 PM, Matthias Berth >> <[EMAIL PROTECTED]> wrote: >> > Hi, >> > >> > is WarpBlt available in Squeak V2? >> > >> > On Tue, Jul 22, 2008

Re: [Newbies] Skewing Forms in Squeak V2

2008-07-22 Thread Matthias Berth
Hi, is WarpBlt available in Squeak V2? On Tue, Jul 22, 2008 at 7:53 PM, Iulian Wande Radu <[EMAIL PROTECTED]> wrote: > Hi, I'd like to skew the graphics of a Form, is there an easy way to do this > in v2 ? > > What I want is to take the rectangle from a normal form, transform it into > an arbitra

Re: [Newbies] Code critics - Overrides super method without calling it

2008-07-21 Thread Matthias Berth
Hi, The idea is that you should _maybe_ give the superclasses of Strand a chance to execute their method. In some situations this is really necessary, or just a good way to avoid code duplication. HTH Matthias On Sat, Jul 19, 2008 at 5:47 PM, stan shepherd <[EMAIL PROTECTED]> wrote: > > Hi, I g

Re: [Newbies] flash, index cards

2008-07-16 Thread Matthias Berth
Have a look at BookMorph. Cheers Matthias On Wed, Jul 16, 2008 at 2:33 AM, waufrepi III <[EMAIL PROTECTED]> wrote: > anyone know of if there's a package kicking around that creates index/flash > cards? I have some good old fashion rote memorization to tackle and would > like to stay in Squeak? >

Re: [Newbies] Mac OS X... proper installation?

2008-05-22 Thread Matthias Berth
t; On 22-May-08, at 8:24 AM, Matthias Berth wrote: > >> ... just one mor ething about recovering the Todo app: you'll want to >> open the .changes file that was originally produced in the Seaside One >> Click experience image. That will be inside the App folder (Control

Re: [Newbies] Mac OS X... proper installation?

2008-05-22 Thread Matthias Berth
world menu) and browse it. Cheers Matthias On Thu, May 22, 2008 at 1:16 PM, Matthias Berth <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 10:40 PM, Aaron Broad <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm new to smalltalk/squeak. Trying to learn seasid

Re: [Newbies] Mac OS X... proper installation?

2008-05-22 Thread Matthias Berth
On Wed, May 21, 2008 at 10:40 PM, Aaron Broad <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new to smalltalk/squeak. Trying to learn seaside. I want to use the > web development image but i can't seem to get it to work. I have mac os x > leopard on macbook pro. I have tried the following each with f

Re: [Newbies] Disable Morph-drag in a PasteUpMorph

2008-02-28 Thread Matthias Berth
Hi, you can do this by selecting "Resist being picked up" in the morph's menu. Cheers Matthias On Thu, Feb 28, 2008 at 12:39 AM, Marcus Strehlow <[EMAIL PROTECTED]> wrote: > Hi guys, > > again, I have to ask a rather interesting question. Say, you have a > PasteUpMorph, inside which you have

Re: [Newbies] how do I get Seaside up on my Squeak?

2007-10-13 Thread Matthias Berth
Hi, just in case there is still a problem with this: > Open -> Universe Browser -> Web Development -> Seaside Means: - start squeak - right-click on the background, this opens the "World menu" - about 1/3 down there is an entry "open..." in the world menu - click on open..., and choose "Univers

Re: [Newbies] Morphic buttons in Laser Game tutorial

2007-09-10 Thread Matthias Berth
Hi, maybe I can help you find the problem. > When I get to the part where tutorial describes creating the 'Fire' and > 'Quit' buttons, though, I get an unexpected result. The buttons are vastly > oversized. I've checked the code and the tutorial several times, so I don't > think I've typed i

Re: [Newbies] Custom Search Engine for Squeak and related projects, please help

2007-03-26 Thread Matthias Berth
I think we could have the mailing lists as "refinements" http://google.com/coop/manage/cse/refinements?cx=008315932112852043911%3Ayuibfrpnbc0 It says: Refinements are labels that you apply to web sites. They appear as a list of links above search results, offering users a way to narrow their sear

[Newbies] Custom Search Engine for Squeak and related projects, please help

2007-03-25 Thread Matthias Berth
Hello, I have created a custom search engine for Squeak and related projects: http://google.com/coop/cse?cx=008315932112852043911%3Ayuibfrpnbc0 at the moment it has only a few sites on it. Please volunteer to add more sites (click on the "volunteer to contribute" link) or send interesting URLs

Re: [Newbies] Disappointed

2006-11-08 Thread Matthias Berth
Hi Jeff,sorry, in the enthusiasm over having found out something, I totally forgot that you were asking about reactions to key strokes, not mouse clicks :-)Let me give you my 2 cents about your frustrations. Again, I'm just trying to help, so please don't take it personally. - Ask early. I would no

Re: [Newbies] Plotting x-y data within Squeak

2006-11-07 Thread Matthias Berth
Might be instructional to use etoys for that, along the lines of http://www.squeakland.org/pdf/poster/graphbooklet.pdf Use the screen as your plotting area. Position a morph to the x,y coordinate and let it "stamp" itself for every point. This is not so easy when you want to plot some pre-compu

Re: [Newbies] Making a Wonderland Actor react to mouse clicks (was: Beginners questions)

2006-11-07 Thread Matthias Berth
Hello Jeff :-)interesting question, and I know the situation you're describing with respect to getting the help you want.OK, to the point of your problem: you want to turn a Wonderland actor (your helicopter) in response to a mouse click. Here is a quick, concrete recipe, tested in Squeak 3.8:1) A

Re: [Newbies] general questions about squeak

2006-10-05 Thread Matthias Berth
> I need a simple framework like MVC, but with an improved looking. Another route might be to use a web browser with a HTML GUI on the desktop. Use Seaside to produce HTML and manage state, scriptaculous for some extra effects. Hmm, other software (like Firefox) is accepted even with non-nativ