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
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
*
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
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
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
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
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
://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
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
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,
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
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
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
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.
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
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
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.
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 -
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.
*
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(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,
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
43 matches
Mail list logo