Re: [Newbies] Re: indexing into a collection

2016-07-27 Thread Ben Coman
yToUpdate := oc detect: [ :dd | dd store = 'marianos' ]. drivingDayToUpdate mileage: 7. oc printString. >> > an OrderedCollection(2016-01-02| quigley | 18, >> > 2016-01-03| marianos | 7) (disclaimer, I am not somewhere I can run this. Its just off the top of my head.) cheers -ben

Re: [Newbies] indexing into a collection

2016-07-26 Thread Ben Coman
Hi Joe, As Ron said, you should not be getting a copy. If you still have a problem, perhaps best if you post code for a complete example: * class definition (with just two instance variables) * instance variable accessor methods * instance creation & adding to collection * select statement *

Re: [Newbies] sorting by key1 inside of key2

2016-07-06 Thread Ben Coman
On Thu, Jul 7, 2016 at 10:58 AM, Joseph Alotta wrote: > Greetings, > > I have a collection of Transaction objects. They have instance variables of > category and payee. > > A category might be “Office Expense” and a payee might be “Costco” or > “Amazon”. > > I want to

Re: [Newbies] Interactive Fiction Framework in Smalltalk Released

2016-06-20 Thread Ben Coman
Hi Eric, Given you've developed on top of Pharo, another good place to announce is pharo-users http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org Sounds like a cool project. I'll try to find some time to try it out. cheers -ben (p.s. you might add [ANN] to the front of your

Re: [Newbies] Re: FileDirectory

2016-05-26 Thread Ben Coman
On Fri, May 27, 2016 at 3:02 AM, Joseph Alotta wrote: > >> On May 26, 2016, at 8:29 AM, Ron Teitelbaum [via Smalltalk] <[hidden >> email]> wrote: >> >> One more question for you. I mentioned returning a newly created instance >> or a specific class from a class side

Re: [Newbies] help with morphic

2016-05-19 Thread Ben Coman
On Fri, May 20, 2016 at 7:38 AM, Ben Coman <b...@openinworld.com> wrote: > On Fri, May 20, 2016 at 4:43 AM, Joseph Alotta <joseph.alo...@gmail.com> > wrote: >> Greetings, >> >> I am having trouble getting started with Morphic. I tried the tutorial on

Re: [Newbies] help with morphic

2016-05-19 Thread Ben Coman
On Fri, May 20, 2016 at 4:43 AM, Joseph Alotta wrote: > Greetings, > > I am having trouble getting started with Morphic. I tried the tutorial on > squeak.org and found it too hard to follow. Now I have morphs on my screen > and I don’t know how to close them. > > I

Re: [Newbies] Raspberry Pi v. Raspberry St

2015-07-16 Thread Ben Coman
://events.linuxfoundation.org/sites/events/files/slides/Enhancing%20RT%20Capabilities%20with%20the%20PRU%20final.pdf https://www.youtube.com/watch?v=plCYsbmMbmY cheers -ben On Tue, Jul 14, 2015 at 7:42 PM, Ben Coman b...@openinworld.com wrote: Smalltalk FPGA may be of interest... http

Re: [Newbies] Raspberry Pi v. Raspberry St

2015-07-15 Thread Ben Coman
On Wed, Jul 15, 2015 at 1:28 AM, Kirk Fraser overcomer@gmail.com wrote: Wow! Ben's article and slides shows Ralph Johnson's suggestion several steps closer to real life and on computer vision for robots. I'm still thinking a laser range finder is not necessary since humans don't have

Re: [Newbies] Raspberry Pi v. Raspberry St

2015-07-14 Thread Ben Coman
Smalltalk FPGA may be of interest... http://www.slideshare.net/esug/luc-fabresse-iwst2014 http://esug.org/data/ESUG2014/IWST/Papers/iwst2014_From%20Smalltalk%20to%20Silicon_Towards%20a%20methodology%20to%20turn%20Smalltalk%20code%20into%20FPGA.pdf cheers -ben On Tue, Jul 14, 2015 at 11:55 AM,

Re: [Newbies] How to round a float?

2015-02-04 Thread Ben Coman
In the interest of teaching how to fish, look at the senders of #roundTo: to find its usage. I'll post a full answer tomorrow if you don't beat me to it. cheers -ben On Wed, Feb 4, 2015 at 4:34 PM, Chuck Hipschman ckhipsch...@gmail.com wrote: 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 What

Re: [Newbies] How to round a float?

2015-02-04 Thread Ben Coman
On Wed, Feb 4, 2015 at 7:22 PM, Chuck Hipschman ckhipsch...@gmail.com wrote: 7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks! But: 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.890001 162.88946267774418 unrounded 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.890001

Re: [Newbies] Read RasPi GPIO

2015-01-28 Thread Ben Coman
How about sending #reset to set the stream back to the start ? Read the paragraph above lseek here... http://falsinsoft.blogspot.com.au/2012/11/access-gpio-from-linux-user-space.html cheers -ben On Wed, Jan 28, 2015 at 8:45 PM, Herbert König herbertkoe...@gmx.net wrote: Hi, I can

Re: [Newbies] Beginner wants to start graphic windows in, Smalltalk 80 - need help - 2

2014-11-26 Thread Ben Coman
Hans Schueren wrote: Hello , here is Hans , The Byte Surfer , the smalltalk code is from books of year 1992 and 1993 1988 and 1987. I have a lot of books around the world . ALL of the Topic SMALLTALK 80. Only 80 !!! Because i am a absolute beginner and want to learn smalltalk 80.

Re: [Newbies] status of the 'mvc' environment?

2014-09-06 Thread Ben Coman
Casey Ransberger wrote: Woot! I can't answer your question, but I do have a strong interest in being able to unload the Morphic environment. In something like a web server, Morphic just wastes a lot of CPU cycles, and MVC is much less expensive (as we've seen on lower end machines like the

Re: [Newbies] Unknown error

2014-06-06 Thread Ben Coman
ParadoxMachine wrote: Hello. I'm having problems with this code: That code results in the following text being written in Transcript: I don't know how to fix this. Thank you for reading. -- View this message in context: http://forum.world.st/Unknown-error-tp4761926.html Sent from the

Re: [Newbies] Re: Unknown error

2014-06-06 Thread Ben Coman
ParadoxMachine wrote: No, they were supposed to appear as raw text (using raw tags). At least they do for me. Anyway, here's the code: a := 0. b := 1. 10 timesRepeat: [ a timesRepeat: [b = b*2]. Transcript show: '2^a = '. Transcript show: b ;cr. a = a+1.

Re: [Newbies] Re: Unknown error

2014-06-06 Thread Ben Coman
ParadoxMachine wrote: No, that doesn't work, either. The result is exactly the same as the one I mentioned. Thanks for replying, though. -ParadoxMachine -- View this message in context: http://forum.world.st/apparently-Undeclared-variables-tp4761926p4761943.html Sent from the Squeak -

Re: [Newbies] Re: Unknown error

2014-06-06 Thread Ben Coman
ParadoxMachine wrote: That worked, thanks. By the way, how do I put strings (or a string and a number) together? The way I did it requires me to write more than a single Transcript show: line. -ParadoxMachine Two alternatives... * Transcript crShow: 1 asString, String tab, 2 asString. *

Re: [Newbies] List still active?

2014-04-05 Thread Ben Coman
Mark Dymek wrote: I tried to subscribe to this list but it appears I already am. Is the list no longer active? I have not been getting messages from it. ___ Beginners mailing list Beginners@lists.squeakfoundation.org

Re: [Newbies] List still active?

2014-04-05 Thread Ben Coman
Well there have been several responses to your post on the list. So there is something wrong. Mark Dymek wrote: I ask because I've received no messages from this list. On Apr 5, 2014 12:52 PM, "Ben Coman" b...@openinworld.com wrote: Mark Dymek wrote:

Re: [Newbies] Re: Website change, Squeek by Example Game?

2014-03-21 Thread Ben Coman
Sorry I'm not familiar with the tutorial you are referring to. However a good alternative is Stephan B Wessels Laser Game tutorial [1]. Unfortunately it has been updated since 3.9, but I think its still worth doing as one of the best. [1] http://squeak.preeminent.org/tut2007/html/ cheers

Re: [Newbies] Re: Website change, Squeek by Example Game?

2014-03-21 Thread Ben Coman
through after this tutorial. Thanks! Abuzar On Fri, Mar 21, 2014 at 10:42 AM, Ben Coman b...@openinworld.com wrote: Sorry I'm not familiar with the tutorial you are referring to. However a good alternative is Stephan B Wessels Laser Game tutorial [1]. Unfortunately it has been updated since

Re: [Newbies] Package difference

2013-12-10 Thread Ben Coman
Mateusz Grotek wrote: How to see the difference between two packages by using Monticello? ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners Do you mean two versions of the

Re: [Newbies] sandboxing a world

2013-10-13 Thread Ben Coman
David Holiday wrote: Hi all, I'm just now getting into squeak and finding it a delightful programming environment. I am, however, curious as to why some features don't seem readily available. First and foremost, why isn't there a stripped down version of the VM that runs Squeak programs

Modbus (was Re: [Newbies] Re: Beginners Digest, Vol 89, Issue 3)

2013-09-15 Thread Ben Coman
bject line - was: [Newbies] Re: Beginners Digest, Vol 89, Issue 2 (Ben Coman) -- Message: 1 Date: Fri, 13 Sep 2013 08:00:41 -0500 From: Marcos Cevallos mcevallo...@gmail.com Subject: [Newbies] Re: Beginners Digest, Vol 8

properly setting the subject line - was: [Newbies] Re: Beginners Digest, Vol 89, Issue 2

2013-09-13 Thread Ben Coman
om Windows system directory (Ben Coman) -- Message: 1 Date: Thu, 12 Sep 2013 19:35:17 -0500 From: Marcos Cevallos mcevallo...@gmail.com Subject: [Newbies] Re: Beginners Digest, Vol 89, Issue 1 To: beginners@lists.squeakfoundation.o

Re: [Newbies] RE: I need an idea. I know you have some. Give. (Casey Ransberger)

2013-03-09 Thread Ben Coman
Casey Ransberger wrote: And a TableMorph could complete the package. It's something I've thought about for a while too. I wish there was more information about Analyst around, I get the sense that a Smalltalk spreadsheet could be crazy powerful. Check out Spreadsheet at

Re: [Newbies] RE: I need an idea. I know you have some. Give. (Casey Ransberger)

2013-03-09 Thread Ben Coman
Ben Coman wrote: Casey Ransberger wrote: And a TableMorph could complete the package. It's something I've thought about for a while too. I wish there was more information about Analyst around, I get the sense that a Smalltalk spreadsheet could be crazy powerful. Check out

Re: [Newbies] Reset Morphic Drawing After Error

2013-02-12 Thread Ben Coman
Look in MorphfullDrawOn: and how it calls drawErrorOn: Doing [ self setProperty: #errorOnDraw toValue: false ] should resume your regularly scheduled program. Jeff Gonis wrote: Hi Everyone, So when I am using Morphs in Squeak I like to instantiate a morph and then iteratively change it

Re: [Newbies] Creating a ClassnewX method directly from a pre-existing instance X

2012-06-09 Thread Ben Coman
Casey Ransberger wrote: Maybe worth noting that #storeString might not work so well with a Morph that's visible in the World... IIRC that ends up trying to store the whole World, because Morphs hang onto a reference to their current World. It will work as long as there aren't cycles and

Re: [Newbies] Where is the setter for self?

2012-06-02 Thread Ben Coman
Chris Cunnington wrote: http://www.osrcon.ca/image2.png http://www.osrcon.ca/image1.png Yea, I'm not asking this very well. And all things Renggli make my head spin. In image2, if I inspect the string 'bob' I see self contains a string called 'bob'. It does not say a ByteString, which to me

Re: [Newbies] Re: Re: perform withArguments

2012-04-24 Thread Ben Coman
Dawson wrote: Hi Louis, thanks for your very helpful posts, particularly the most recent one ... On 24/04/12 6:49 PM, Louis LaBrunda wrote: Hi Dawson and Dawson's 15 year old son, From your code below, I assume that somewhere in your program you have created (instantiated) nine

Re: [Newbies] comparing to an exact class storing class association relationships

2012-04-23 Thread Ben Coman
Randal L. Schwartz wrote: "Ben" == Ben Coman b...@openinworld.com writes: Ben doh! smacks-head funny how it works itself out when you step away for a Ben while - this works fine... B

[Newbies] Re: [squeak-dev] Another video tutorial

2012-01-31 Thread Ben Coman
Lawson English wrote: Latest squeak tutorial. Connectors how-to: http://www.youtube.com/watch?v=H1LveflchAU as an aside, it seems to me that Connectors should be ported back to Pharo, because it can be very useful I am finding. Lawson There is

Re: [Newbies] Testing = and == in workspace

2012-01-07 Thread Ben Coman
Bert Freudenberg wrote: Am 07.01.2012 um 07:04 schrieb Ben Coman b...@openinworld.com: I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical. It is like the compiler has noticed that they are equal

Re: [Newbies] Re: Testing = and == in workspace

2012-01-07 Thread Ben Coman
nicolas cellier wrote: Ben Coman btc at openInWorld.com writes: Thanks Bert. Doing that is insightful.  Interestingly the result is different with numbers.  Where strings assigned in separate executions are not identical, numbers assigned in separate executions are identical

Re: [Newbies] Testing = and == in workspace

2012-01-07 Thread Ben Coman
Levente Uzonyi wrote: On Sat, 7 Jan 2012, Ben Coman wrote: Bert Freudenberg wrote: Am 07.01.2012 um 07:04 schrieb Ben Coman b...@openinworld.com: I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical

[Newbies] class method #initializeClass vs. #initialize

2012-01-07 Thread Ben Coman
I have come across a class method initializeClass with a comment Do not rename to #initialize. Is that a generic concern ? This particular case is from BaseUnit initializeClass from http://www.squeaksource.com/Units.html cheers, Ben ___ Beginners

[Newbies] Testing = and == in workspace

2012-01-06 Thread Ben Coman
I was trying to confirm the operation of = and == in the workspace by executing the following code.. x := 'xxx'. y := 'xxx'. z := x. (OrderedCollection new) add: (x = y) ; add: (x == y) ; add: (x=z); add: (x==z); yourself. I was confused that I was getting anOrderedCollection(true true

Re: [Newbies] Float variableWordSubclass

2012-01-05 Thread Ben Coman
Levente Uzonyi wrote: On Wed, 4 Jan 2012, Ben Coman wrote: When I define... Float subclass: MyPrefixFloat I guess you meat Float subclass: #MyPrefixFloat . why does it get changed to... Float variableWordSubclass: #MyPrefixFloat Float is already a variableWordSubclass, so its

[Newbies] Enumeration type implementation

2012-01-04 Thread Ben Coman
(Resending since it didn't show up on the list overnight) What is the best way to implement enumerations in Smalltalk. For instance, for a UML definition of... enumeration Currency enum USD 'US dollar' enum EUR 'Eueropean euro' enum AUD'Australian dollar' here is my guess,

[Newbies] Enumeration type implementation

2012-01-04 Thread Ben Coman
What is the best way to implement enumerations in Smalltalk. For instance, for a UML definition of... enumeration Currency enum USD 'US dollar' enum EUR 'Eueropean euro' enum AUD'Australian dollar' here is my guess, consisting of 2 instance side methods and 3 class side