From overcomer.man at gmail.com Wed Feb 4 04:34:41 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Wed Feb 4 04:34:43 2015 Subject: [Newbies] Panic Message-ID: What does one do in Squeak to stop an infinite loop? If one takes a flying leap at it and: 1) hits anything inside the Smalltalk window nothing happens. 2) hits Ctrl-Alt-Del enough times, selects Task Manger then stops Squeak then next time it opens it says it can't write to the changes file until this is fixed [ok] How does a beginner fix that? As a somewhat not brand new beginner, I recall Dolphin Smalltalk has a panic button for this. Does Squeak have anything except trying to file out one's code, delete and reload Squeak? Thanks. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150203/ba6fd77c/attachment.htm From ckhipschman at gmail.com Wed Feb 4 08:34:46 2015 From: ckhipschman at gmail.com (Chuck Hipschman) Date: Wed Feb 4 08:34:47 2015 Subject: [Newbies] How to round a float? Message-ID: 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 What am I doing wrong, or this a bug? TIA Chuck -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/4c0bb285/attachment-0001.htm From btc at openInWorld.com Wed Feb 4 09:59:19 2015 From: btc at openInWorld.com (Ben Coman) Date: Wed Feb 4 09:59:36 2015 Subject: [Newbies] How to round a float? In-Reply-To: References: Message-ID: 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 wrote: > 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 > > What am I doing wrong, or this a bug? > > TIA > > Chuck > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/56d896b1/attachment.htm From herbertkoenig at gmx.net Wed Feb 4 10:07:07 2015 From: herbertkoenig at gmx.net (=?windows-1252?Q?Herbert_K=F6nig?=) Date: Wed Feb 4 10:07:16 2015 Subject: [Newbies] Panic In-Reply-To: References: Message-ID: <54D1EF4B.3060509@gmx.net> Hi, Alt + . (Alt key and simultaneously the . key) usually brings up a debugger. Cheers, Herbert Am 04.02.2015 um 05:34 schrieb Kirk Fraser: > What does one do in Squeak to stop an infinite loop? > If one takes a flying leap at it and: > 1) hits anything inside the Smalltalk window nothing happens. > 2) hits Ctrl-Alt-Del enough times, selects Task Manger then stops Squeak > then next time it opens it says it can't write to the changes file > until this is fixed [ok] > From ckhipschman at gmail.com Wed Feb 4 11:22:20 2015 From: ckhipschman at gmail.com (Chuck Hipschman) Date: Wed Feb 4 11:22:21 2015 Subject: [Newbies] How to round a float? In-Reply-To: References: Message-ID: 7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks! But: 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001 "162.88946267774418" "unrounded" 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001 "207.8928179411367" "unrounded" Bug, or me again :-) MacBook Pro (Retina, 15-inch, Early 2013) System Version: OS X 10.10.2 (14C109) Image ----- /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/Resources/Squeak4.5-13680.image Squeak4.5 latest update: #13680 Current Change Set: Unnamed1 Image format 6505 (32 bit) Virtual Machine --------------- /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/MacOS/Squeak Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.331] 4.5 Mac OS X built on Aug 22 2013 10:08:05 Compiler: 4.2.1 (Apple Inc. build 5666) (dot 3) platform sources revision VM: r2776 http://www.squeakvm.org/svn/squeak/branches/Cog Plugins: r2545 http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins CoInterpreter VMMaker.oscog-eem.331 uuid: 37d2e4b0-2f37-4e2d-8313-c63637785e59 Aug 22 2013 StackToRegisterMappingCogit VMMaker.oscog-eem.333 uuid: 84da9cb8-7f30-4cb7-b4fb-239a11f63b54 Aug 22 2013 On Wed, Feb 4, 2015 at 2:59 AM, Ben Coman wrote: > 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 > wrote: > >> 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 >> >> What am I doing wrong, or this a bug? >> >> TIA >> >> Chuck >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/fb67740d/attachment.htm From herbertkoenig at gmx.net Wed Feb 4 12:19:17 2015 From: herbertkoenig at gmx.net (=?windows-1252?Q?Herbert_K=F6nig?=) Date: Wed Feb 4 12:19:19 2015 Subject: [Newbies] How to round a float? In-Reply-To: References: Message-ID: <54D20E45.5070804@gmx.net> Hi, > 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001 > "162.88946267774418" "unrounded" > 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001 > "207.8928179411367" "unrounded" this is to be expected and I think you need a bigger pond than the Squeak image to fish for that. I think I found the hint inside Squeak only because I know the reason. I think you did your fishing well. I'll explain later because maybe I can learn better fishing from Ben's reply. Cheers, Herbert From johannh at gmail.com Wed Feb 4 13:22:02 2015 From: johannh at gmail.com (Johann Hibschman) Date: Wed Feb 4 13:22:04 2015 Subject: [Newbies] How to round a float? In-Reply-To: References: Message-ID: That just looks like floating-point representation. It's as rounded as it can get! -Johann On Wed, Feb 4, 2015 at 6:22 AM, Chuck Hipschman wrote: > 7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks! > > But: > > 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001 > > "162.88946267774418" "unrounded" > 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001 > > "207.8928179411367" "unrounded" > Bug, or me again :-) > > MacBook Pro (Retina, 15-inch, Early 2013) System Version: OS X 10.10.2 > (14C109) > > Image > ----- > > /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/Resources/Squeak4.5-13680.image > Squeak4.5 > latest update: #13680 > Current Change Set: Unnamed1 > Image format 6505 (32 bit) > > Virtual Machine > --------------- > > /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/MacOS/Squeak > Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.331] 4.5 > Mac OS X built on Aug 22 2013 10:08:05 Compiler: 4.2.1 (Apple Inc. build > 5666) (dot 3) > platform sources revision VM: r2776 > http://www.squeakvm.org/svn/squeak/branches/Cog Plugins: r2545 > http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins > CoInterpreter VMMaker.oscog-eem.331 uuid: > 37d2e4b0-2f37-4e2d-8313-c63637785e59 Aug 22 2013 > StackToRegisterMappingCogit VMMaker.oscog-eem.333 uuid: > 84da9cb8-7f30-4cb7-b4fb-239a11f63b54 Aug 22 2013 > > On Wed, Feb 4, 2015 at 2:59 AM, Ben Coman wrote: > >> 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 >> wrote: >> >>> 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 >>> >>> What am I doing wrong, or this a bug? >>> >>> TIA >>> >>> Chuck >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/ec2fe19b/attachment-0001.htm From Lou at Keystone-Software.com Wed Feb 4 14:36:09 2015 From: Lou at Keystone-Software.com (Louis LaBrunda) Date: Wed Feb 4 14:36:36 2015 Subject: [Newbies] How to round a float? References: Message-ID: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> Hi Guys, On Wed, 4 Feb 2015 08:22:02 -0500, Johann Hibschman wrote: >That just looks like floating-point representation. It's as rounded as it >can get! >-Johann At first I thought some more parans "(" were needed but that didn't change anything. No this sounds like a bug to me (ar at least something that can be improved) as VA Smalltalk prints 162.89, so somehow they are able to make the floats do the right thing. Lou > >On Wed, Feb 4, 2015 at 6:22 AM, Chuck Hipschman >wrote: > >> 7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks! >> >> But: >> >> 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001 >> >> "162.88946267774418" "unrounded" >> 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001 >> >> "207.8928179411367" "unrounded" >> Bug, or me again :-) >> >> MacBook Pro (Retina, 15-inch, Early 2013) System Version: OS X 10.10.2 >> (14C109) >> >> Image >> ----- >> >> /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/Resources/Squeak4.5-13680.image >> Squeak4.5 >> latest update: #13680 >> Current Change Set: Unnamed1 >> Image format 6505 (32 bit) >> >> Virtual Machine >> --------------- >> >> /Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/MacOS/Squeak >> Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.331] 4.5 >> Mac OS X built on Aug 22 2013 10:08:05 Compiler: 4.2.1 (Apple Inc. build >> 5666) (dot 3) >> platform sources revision VM: r2776 >> http://www.squeakvm.org/svn/squeak/branches/Cog Plugins: r2545 >> http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins >> CoInterpreter VMMaker.oscog-eem.331 uuid: >> 37d2e4b0-2f37-4e2d-8313-c63637785e59 Aug 22 2013 >> StackToRegisterMappingCogit VMMaker.oscog-eem.333 uuid: >> 84da9cb8-7f30-4cb7-b4fb-239a11f63b54 Aug 22 2013 >> >> On Wed, Feb 4, 2015 at 2:59 AM, Ben Coman wrote: >> >>> 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 >>> wrote: >>> >>>> 7 / 8.0 roundTo: 2 I expect 0.88, I get 0 >>>> >>>> What am I doing wrong, or this a bug? >>>> >>>> TIA >>>> >>>> Chuck >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> ----------------------------------------------------------- Louis LaBrunda Keystone Software Corp. SkypeMe callto://PhotonDemon mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com From btc at openInWorld.com Wed Feb 4 14:57:51 2015 From: btc at openInWorld.com (Ben Coman) Date: Wed Feb 4 14:57:54 2015 Subject: [Newbies] How to round a float? In-Reply-To: References: Message-ID: On Wed, Feb 4, 2015 at 7:22 PM, Chuck Hipschman wrote: > 7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks! > > But: > > 100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001 > > "162.88946267774418" "unrounded" > 100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001 > > "207.8928179411367" "unrounded" > Bug, or me again :-) > > If you debug into #roundTo: you'll see its implementation is simple arithmetic, subject to the vagaries of float resolution. Float(Number)>>roundTo: ^(self / quantum) rounded * quantum Now are you wanting something nicely formatted for display, or are you rounding for some mathematic purpose? Perhaps instead you are wanting... 100 * (1.05 raisedTo: 10) printShowingDecimalPlaces: 2 " --> 162.89 " 0.105 printShowingDecimalPlaces: 2 " --> 0.10 " 0.115 printShowingDecimalPlaces: 2 " --> 0.12 " btw, I only found these today, looking in the printing protocol of Number and Float. cheers -ben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/92e05be3/attachment.htm From jgr.asselin at me.com Wed Feb 4 15:34:48 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Wed Feb 4 15:35:22 2015 Subject: [Newbies] How to doubble sort a collection Message-ID: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> I have this kind of sorting on anOrderedCollection BlocNotes >>sortedNotes ^notes sorted:[:a :b | a date > b date] This sort my notes on date but I want them sort by date AND inside a date by hours and I don't khow how to do this. Some insights? aNote = 'med com date temps' instancesVariables what I call hours = temps witch is a number like 2123 for 21h23 Some insights? From Lou at Keystone-Software.com Wed Feb 4 16:32:07 2015 From: Lou at Keystone-Software.com (Louis LaBrunda) Date: Wed Feb 4 16:32:16 2015 Subject: [Newbies] How to doubble sort a collection References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> Message-ID: Hi Raymond, Try: ^notes sorted:[:a :b | (a date > b date) | ((a date = b date) & (a date temps > b date temps))]. Lou On Wed, 04 Feb 2015 10:34:48 -0500, Raymond Asselin wrote: >I have this kind of sorting on anOrderedCollection > >BlocNotes >>sortedNotes > ^notes sorted:[:a :b | a date > b date] > >This sort my notes on date but I want them sort by date AND inside a date by hours and I don't khow how to do this. > >Some insights? > >aNote = 'med com date temps' instancesVariables what I call hours = temps witch is a number like 2123 for 21h23 > >Some insights? ----------------------------------------------------------- Louis LaBrunda Keystone Software Corp. SkypeMe callto://PhotonDemon mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com From pdebruic at gmail.com Wed Feb 4 17:00:13 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Feb 4 17:05:20 2015 Subject: [Newbies] Re: How to doubble sort a collection In-Reply-To: References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> Message-ID: <1423069213706-4803671.post@n4.nabble.com> Does using the | or & notation have any advantages over and: or or: or ifTrue:ifFalse ? I always write expressions like the one you've written like: a date = b date ifTrue:[a temps > b temps] ifFalse:[a date > b date] Louis LaBrunda wrote > Hi Raymond, > > Try: > > ^notes sorted:[:a :b | (a date > b date) | ((a date = b date) & (a date > temps > b date temps))]. > > Lou > > On Wed, 04 Feb 2015 10:34:48 -0500, Raymond Asselin < > jgr.asselin@ > > > wrote: > >>I have this kind of sorting on anOrderedCollection >> >>BlocNotes >>sortedNotes >> ^notes sorted:[:a :b | a date > b date] >> >>This sort my notes on date but I want them sort by date AND inside a date by hours and I don't khow how to do this. >> >>Some insights? >> >>aNote = 'med com date temps' instancesVariables what I call hours = temps witch is a number like 2123 for 21h23 >> >>Some insights? > ----------------------------------------------------------- > Louis LaBrunda > Keystone Software Corp. > SkypeMe callto://PhotonDemon > mailto: > Lou@ > http://www.Keystone-Software.com > > _______________________________________________ > Beginners mailing list > Beginners@.squeakfoundation > http://lists.squeakfoundation.org/mailman/listinfo/beginners -- View this message in context: http://forum.world.st/How-to-doubble-sort-a-collection-tp4803657p4803671.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From cunningham.cb at gmail.com Wed Feb 4 17:20:16 2015 From: cunningham.cb at gmail.com (Chris Cunningham) Date: Wed Feb 4 17:20:19 2015 Subject: [Newbies] Re: How to doubble sort a collection In-Reply-To: <1423069213706-4803671.post@n4.nabble.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> Message-ID: | and & make sure that each expression between them is executed - so it will do each of: a date > b date and a date = b date and a date > temps > b date temps This matters if one of these is significantly slower than the others - it will run it even it it doesn't need too. Also if any side-effects are in one of these expressions, this will make that side effect happen (there aren't any in these, though). and: and or: stop executing as soon as one of them is satisfied sufficiently - so if a date > b date then it will immediately return true without bothering with the rest of the expressions. ifTrue:ifFalse: is similar - except you will evaluate the condition expression AND one of the following expressions. Often this doesn't matter one way or another - but when it does, it matters a lot. -cbc On Wed, Feb 4, 2015 at 9:00 AM, Paul DeBruicker wrote: > Does using the | or & notation have any advantages over and: or or: or > ifTrue:ifFalse ? > > > I always write expressions like the one you've written like: > > a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date] > > > > > > > > Louis LaBrunda wrote > > Hi Raymond, > > > > Try: > > > > ^notes sorted:[:a :b | (a date > b date) | ((a date = b date) & (a date > > temps > b date temps))]. > > > > Lou > > > > On Wed, 04 Feb 2015 10:34:48 -0500, Raymond Asselin < > > > jgr.asselin@ > > > > > > wrote: > > > >>I have this kind of sorting on anOrderedCollection > >> > >>BlocNotes >>sortedNotes > >> ^notes sorted:[:a :b | a date > b date] > >> > >>This sort my notes on date but I want them sort by date AND inside a date > by hours and I don't khow how to do this. > >> > >>Some insights? > >> > >>aNote = 'med com date temps' instancesVariables what I call hours = temps > witch is a number like 2123 for 21h23 > >> > >>Some insights? > > ----------------------------------------------------------- > > Louis LaBrunda > > Keystone Software Corp. > > SkypeMe callto://PhotonDemon > > mailto: > > > Lou@ > > > http://www.Keystone-Software.com > > > > _______________________________________________ > > Beginners mailing list > > > Beginners@.squeakfoundation > > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > > > > -- > View this message in context: > http://forum.world.st/How-to-doubble-sort-a-collection-tp4803657p4803671.html > Sent from the Squeak - Beginners mailing list archive at Nabble.com. > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/fa4fe2a6/attachment-0001.htm From Lou at Keystone-Software.com Wed Feb 4 17:27:15 2015 From: Lou at Keystone-Software.com (Louis LaBrunda) Date: Wed Feb 4 17:27:30 2015 Subject: [Newbies] How to doubble sort a collection - DynamicSortBlock.st (1/1) References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> Message-ID: begin 644 DynamicSortBlock.st M#0I/8FIE8W0@6YA;6EC4V]R=$)L;V-K#0H@("`@8VQA M M*'-E;&8@;F5W*2!A8V-E2!I6UB;VQS*2!U6UB;VP@ M:6X@86-C97-S;W)S+"!T6UB;VP-"@DB268@86X@87-S;V-I871I;VXL(&%D9"!T M:&4@86-C97-S;W(@86YD(&1I6UB;VP@:7-3>6UB;VP@:694 M6UB;VP@=F%L=64N#0H)72X-"B$-"@T*861D06-C97-S;W(Z(&%3 M>6UB;VP@86YD1&ER96-T:6]N.B!A0F]O;&5A;D]R4W1R:6YG#0H)(D%D9"!T M:&4@86-C97-S;W(@86YD(&ET6UB;VP-"@DB061D('1H M92!A8V-E6UB;VPN#0H)"!C;&%S9&ER96-T:6]N6UB;VP@:6X@86-C M97-S;W)S+"!T71H:6YG#0H);W1H97(@ M=&AA;B!TF4@;V8@86-C97-S;W)S+B(-"@DB4V5E("-D:7)E8W1I M;VYS(&%N9"`C=F%L=64Z=F%L=64Z(@T*"7P@<&%I2X-"@EA9&1#;G0@.CT@'10=71!;&PZ(&%C8V5S3H@86-C M97-S;W(@=F%L=64Z(&1I2!T:&4@86-C97-S;W)S(&%R92!T9&ER96-T:6]N72X-"@D)"79A;'5E0B!I9&ER96-T:6]N(&YO=%TN#0H)"0DH=F%L=65!(#P@=F%L=65"*2!I M9E1R=64Z(%M>9&ER96-T:6]N72X-"@D)"2AV86QU94$@/B!V86QU94(I(&EF M5')U93H@6UYD:7)E8W1I;VX@;F]T72X-"@D)72X-"@E=+@T*"5YT <1423069213706-4803671.post@n4.nabble.com> Message-ID: <3uk4da15f1c6jlo8f0g9ulic0k5elf2hp1@4ax.com> On Wed, 4 Feb 2015 09:00:13 -0800 (PST), Paul DeBruicker wrote: >Does using the | or & notation have any advantages over and: or or: or >ifTrue:ifFalse ? and: and or: are needed when you don't want to execute the code inside the block unless it is needed. They are also used to protect from executing code that shouldn't be run for example: x notNil and: [x foo > y foo] >I always write expressions like the one you've written like: >a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date] I like this but it may be a little tricky for a beginner. But both or replay help one to learn. I have also attached a file out (from VA Smalltalk) of a class that acts like a sort block but is much easier to use for complex sorts. Lou >Louis LaBrunda wrote >> Hi Raymond, >> >> Try: >> >> ^notes sorted:[:a :b | (a date > b date) | ((a date = b date) & (a date >> temps > b date temps))]. >> >> Lou >> >> On Wed, 04 Feb 2015 10:34:48 -0500, Raymond Asselin < > >> jgr.asselin@ > >> > >> wrote: >> >>>I have this kind of sorting on anOrderedCollection >>> >>>BlocNotes >>sortedNotes >>> ^notes sorted:[:a :b | a date > b date] >>> >>>This sort my notes on date but I want them sort by date AND inside a date >by hours and I don't khow how to do this. >>> >>>Some insights? >>> >>>aNote = 'med com date temps' instancesVariables what I call hours = temps >witch is a number like 2123 for 21h23 >>> >>>Some insights? >> ----------------------------------------------------------- >> Louis LaBrunda >> Keystone Software Corp. >> SkypeMe callto://PhotonDemon >> mailto: > >> Lou@ > >> http://www.Keystone-Software.com >> >> _______________________________________________ >> Beginners mailing list > >> Beginners@.squeakfoundation > >> http://lists.squeakfoundation.org/mailman/listinfo/beginners ----------------------------------------------------------- Louis LaBrunda Keystone Software Corp. SkypeMe callto://PhotonDemon mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com From jgr.asselin at me.com Wed Feb 4 18:22:07 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Wed Feb 4 18:22:38 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <1423069213706-4803671.post@n4.nabble.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> Message-ID: <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> For now I implemented: sortedNotes ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . AND notesSorted ^notes sort:[:a :b | a date = b date ifTrue:[a temps > b temps] ifFalse:[a date > b date]] . does exactly the same result. But there is still notes in a same date that do not sort correctly, the begining is good and after 5 or so objects I get some witch do not seem to be sorted. BTW don't know the difference between sort: and sorted: it seems as if the last one produce a new collection and the first one produce same collection but sorted. Note: I use 24 hours instead of a.m. / p.m. is this may cause problems? > Le 2015-02-04 ? 12:00, Paul DeBruicker a ?crit : > > a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date] From Das.Linux at gmx.de Wed Feb 4 18:33:01 2015 From: Das.Linux at gmx.de (Tobias Pape) Date: Wed Feb 4 18:33:04 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> Message-ID: <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> On 04.02.2015, at 19:22, Raymond Asselin wrote: > For now I implemented: > > sortedNotes > ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . > > AND > > notesSorted > ^notes sort:[:a :b | a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date]] . > > does exactly the same result. sounds strange. Probably you don't want to store date and time separated but as DateAndTime instances, then you just have to sort them by that. Look at that class. Also, you can see that Date is a subclass of Timespan, which implies a duration: a Date is a timespan of one day. You probably don't want that if you compare them like above. > > But there is still notes in a same date that do not sort correctly, the begining is good and after 5 or so objects > I get some witch do not seem to be sorted. can you give an example? > > BTW don't know the difference between sort: and sorted: > it seems as if the last one produce a new collection and the first one produce same collection but sorted. > exactly. #sorted: is like saying ?Give me this, but sorted? and this ?give me? typically results in a new collection. #sort: is like saying ?You! Sort yourself!? and implies mutation (a bit like set! in scheme or sort! in ruby) > Note: I use 24 hours instead of a.m. / p.m. is this may cause problems? see above BEst -Tobias From pdebruic at gmail.com Wed Feb 4 18:33:25 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Feb 4 18:38:32 2015 Subject: [Newbies] Re: How to doubble sort a collection In-Reply-To: <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> Message-ID: <1423074805548-4803711.post@n4.nabble.com> Proably because you're using #> and not #>=. If not that post the list of dates/times that don't sort properly. also - #sort: & #sort sort in place. #sorted & sorted: make a new copy as you've seen. If your objects should always sort the same way just implement #<= in the instance side of your object and then you can use #sort or #sorted without having to add a sort block. Raymond Asselin-4 wrote > For now I implemented: > > sortedNotes > ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . > > AND > > notesSorted > ^notes sort:[:a :b | a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date]] . > > does exactly the same result. > > But there is still notes in a same date that do not sort correctly, the > begining is good and after 5 or so objects > I get some witch do not seem to be sorted. > > BTW don't know the difference between sort: and sorted: > it seems as if the last one produce a new collection and the first one > produce same collection but sorted. > > Note: I use 24 hours instead of a.m. / p.m. is this may cause problems? > >> Le 2015-02-04 ? 12:00, Paul DeBruicker < > pdebruic@ > > a ?crit : >> >> a date = b date >> ifTrue:[a temps > b temps] >> ifFalse:[a date > b date] > > _______________________________________________ > Beginners mailing list > Beginners@.squeakfoundation > http://lists.squeakfoundation.org/mailman/listinfo/beginners -- View this message in context: http://forum.world.st/How-to-doubble-sort-a-collection-tp4803657p4803711.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From jgr.asselin at me.com Wed Feb 4 18:42:53 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Wed Feb 4 18:43:19 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> Message-ID: <669703BB-1931-48B0-BED4-FA836E68D863@me.com> > Le 2015-02-04 ? 13:33, Tobias Pape a ?crit : > > > can you give an example? > -------------- next part -------------- Skipped content of type multipart/related From cunningham.cb at gmail.com Wed Feb 4 19:40:10 2015 From: cunningham.cb at gmail.com (Chris Cunningham) Date: Wed Feb 4 19:40:11 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> Message-ID: You have a logic issue with the first one: sortedNotes ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . This is saying that the the two dates are different, then false. For this you probably want to be something like: sortedNotes ^notes sort:[:a :b | a date > b date or: [(a date = b date) and:[a temps > b temps]]] . -cbc On Wed, Feb 4, 2015 at 10:22 AM, Raymond Asselin wrote: > For now I implemented: > > sortedNotes > ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . > > AND > > notesSorted > ^notes sort:[:a :b | a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date]] . > > does exactly the same result. > > But there is still notes in a same date that do not sort correctly, the > begining is good and after 5 or so objects > I get some witch do not seem to be sorted. > > BTW don't know the difference between sort: and sorted: > it seems as if the last one produce a new collection and the first one > produce same collection but sorted. > > Note: I use 24 hours instead of a.m. / p.m. is this may cause problems? > > > Le 2015-02-04 ? 12:00, Paul DeBruicker a ?crit : > > > > a date = b date > > ifTrue:[a temps > b temps] > > ifFalse:[a date > b date] > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/5b56c51b/attachment.htm From pdebruic at gmail.com Wed Feb 4 23:32:03 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Feb 4 23:37:11 2015 Subject: [Newbies] Re: How to doubble sort a collection In-Reply-To: <669703BB-1931-48B0-BED4-FA836E68D863@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> <669703BB-1931-48B0-BED4-FA836E68D863@me.com> Message-ID: <1423092723097-4803794.post@n4.nabble.com> Are your temps stored as strings? Strings that are numbers aren't coerced to numbers before comparison. e.g. in a workspace '765' > '1230' prints true and 765 > 1230 prints false..... Raymond Asselin-4 wrote >> Le 2015-02-04 ? 13:33, Tobias Pape < > Das.Linux@ > > a ?crit : >> >> >> can you give an example? >> > > > _______________________________________________ > Beginners mailing list > Beginners@.squeakfoundation > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > SortedNotesExample.png (62K) > <http://forum.world.st/attachment/4803715/0/SortedNotesExample.png> -- View this message in context: http://forum.world.st/How-to-doubble-sort-a-collection-tp4803657p4803794.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From jgr.asselin at me.com Wed Feb 4 23:40:27 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Wed Feb 4 23:41:02 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> Message-ID: <8814F33E-0BBB-4439-9D7B-86CD3B752011@me.com> I finaly found the problem witch was not in the code suggest but behind the keyboard. In fact when the time is generated everything is good , when i entered it by hand = this is a String. So I had in the sorting code: > ^notes sort:[:a :b | (a date = b date) and:[a temps asTime > b temps asTime ]] . > Le 2015-02-04 ? 14:40, Chris Cunningham a ?crit : > > You have a logic issue with the first one: > sortedNotes > ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . > This is saying that the the two dates are different, then false. For this you probably want to be something like: > sortedNotes > ^notes sort:[:a :b | a date > b date or: [(a date = b date) and:[a temps > b temps]]] . > > -cbc > > On Wed, Feb 4, 2015 at 10:22 AM, Raymond Asselin > wrote: > For now I implemented: > > sortedNotes > ^notes sort:[:a :b | (a date = b date) and:[a temps > b temps]] . > > AND > > notesSorted > ^notes sort:[:a :b | a date = b date > ifTrue:[a temps > b temps] > ifFalse:[a date > b date]] . > > does exactly the same result. > > But there is still notes in a same date that do not sort correctly, the begining is good and after 5 or so objects > I get some witch do not seem to be sorted. > > BTW don't know the difference between sort: and sorted: > it seems as if the last one produce a new collection and the first one produce same collection but sorted. > > Note: I use 24 hours instead of a.m. / p.m. is this may cause problems? > > > Le 2015-02-04 ? 12:00, Paul DeBruicker > a ?crit : > > > > a date = b date > > ifTrue:[a temps > b temps] > > ifFalse:[a date > b date] > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150204/4b02ba88/attachment.htm From jgr.asselin at me.com Wed Feb 4 23:41:38 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Wed Feb 4 23:42:00 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <8814F33E-0BBB-4439-9D7B-86CD3B752011@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <8814F33E-0BBB-4439-9D7B-86CD3B752011@me.com> Message-ID: <4F4C6A75-2878-4D1A-B7A9-7818B66571C4@me.com> Thank to everybody because I learned a lot here From unoduetre at poczta.onet.pl Thu Feb 5 12:50:01 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Thu Feb 5 12:16:10 2015 Subject: [Newbies] Is Fabrik available somewhere? Message-ID: <1423140601.24094.2@mglap> Hi, Is it? Some info about the topic: http://wiki.squeak.org/squeak/1175 http://en.wikipedia.org/wiki/Fabrik_%28software%29 http://web.archive.org/web/20070927190552/http://users.ipa.net/~dwighth/smalltalk/Fabrik/Fabrik.html Mateusz From overcomer.man at gmail.com Thu Feb 5 13:11:15 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Thu Feb 5 13:11:17 2015 Subject: [Newbies] Is Fabrik available somewhere? In-Reply-To: <1423140601.24094.2@mglap> References: <1423140601.24094.2@mglap> Message-ID: I'm guessing Fabrik was an early concept that eventually became projects like eToys, Scratch, Physical Etoys, and other Graphical Programming Languages. Eventually one learns Graphical programming is less powerful, less easy, and less fast to program in than ordinary character based programming languages. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Thu, Feb 5, 2015 at 4:50 AM, Mateusz Grotek wrote: > > Hi, > > Is it? Some info about the topic: > http://wiki.squeak.org/squeak/1175 > http://en.wikipedia.org/wiki/Fabrik_%28software%29 > http://web.archive.org/web/20070927190552/http://users. > ipa.net/~dwighth/smalltalk/Fabrik/Fabrik.html > > Mateusz > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150205/ff99027d/attachment-0001.htm From herbertkoenig at gmx.net Thu Feb 5 14:38:37 2015 From: herbertkoenig at gmx.net (=?windows-1252?Q?Herbert_K=F6nig?=) Date: Thu Feb 5 14:38:40 2015 Subject: [Newbies] Is Fabrik available somewhere? In-Reply-To: <1423140601.24094.2@mglap> References: <1423140601.24094.2@mglap> Message-ID: <54D3806D.4070409@gmx.net> Hi Mateusz If you get a Squeak 3.6 from ftp.squeak.org you will find the classes mentioned in http://wiki.squeak.org/squeak/fabrik No idea how complete it is. I checked 3.8, still has it, 4.4 doesn't. Cheers, Herbert Am 05.02.2015 um 13:50 schrieb Mateusz Grotek: > > Hi, > > Is it? Some info about the topic: > http://wiki.squeak.org/squeak/1175 > http://en.wikipedia.org/wiki/Fabrik_%28software%29 > http://web.archive.org/web/20070927190552/http://users.ipa.net/~dwighth/smalltalk/Fabrik/Fabrik.html > > > Mateusz > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From unoduetre at poczta.onet.pl Thu Feb 5 17:17:13 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Thu Feb 5 16:42:57 2015 Subject: [Newbies] Is Fabrik available somewhere? In-Reply-To: <54D3806D.4070409@gmx.net> (from herbertkoenig@gmx.net on Thu Feb 5 15:38:37 2015) References: <1423140601.24094.2@mglap> <54D3806D.4070409@gmx.net> Message-ID: <1423156633.24094.5@mglap> Dnia 05.02.2015 15:38:37, Herbert K?nig napisa?(a): > Hi Mateusz > > If you get a Squeak 3.6 from ftp.squeak.org you will find the classes > mentioned in > http://wiki.squeak.org/squeak/fabrik > > No idea how complete it is. I checked 3.8, still has it, 4.4 doesn't. > > Cheers, > > Herbert > Hi Herbert, I've done exactly as you've said. It works perfectly! I'm amazed that Squeak 3.6 still works without any tweaks. Squeak developers really do a good job!!!! Thank you! Mateusz From overcomer.man at gmail.com Fri Feb 6 09:21:30 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Fri Feb 6 09:21:36 2015 Subject: [Newbies] Video4Squeak Message-ID: How do I get started with Video4Squeak from Physical Etoys? I have moved the video and audio .dll'[s and code to Squeak 4.5 but I don't know how to start a camera displaying. I want to work with the video to do machine vision like will be done in the DARPA Robotics Challenge. I know the first step after getting the software to work with a camera is to calculate contours. But I cannot find the Video4Squeak author or how to make it work and access the video frames to recognize visual objects. I looked at all the Smalltalk code but I don't even understand where the code access the CameraPlugin.dll to be sure it's looking in the correct directory or working at all. Suggestions? Thank you. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150206/3885bb20/attachment.htm From bert at freudenbergs.de Fri Feb 6 17:34:12 2015 From: bert at freudenbergs.de (Bert Freudenberg) Date: Fri Feb 6 17:37:55 2015 Subject: [Newbies] Video4Squeak In-Reply-To: References: Message-ID: <8B7257B7-9CDF-4C28-9418-6CA9EDA134CA@freudenbergs.de> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6112 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150206/6383db1f/smime.bin From nicolas.cellier.aka.nice at gmail.com Sat Feb 14 00:06:18 2015 From: nicolas.cellier.aka.nice at gmail.com (nicolas cellier) Date: Sat Feb 14 00:06:29 2015 Subject: [Newbies] Re: How to doubble sort a collection References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <8814F33E-0BBB-4439-9D7B-86CD3B752011@me.com> <4F4C6A75-2878-4D1A-B7A9-7818B66571C4@me.com> Message-ID: Raymond Asselin me.com> writes: > > Thank to everybody because I learned a lot here > If you're in a recent Squeak, then you can also write: ^notes sorted: #date descending , #temps descending From nicolas.cellier.aka.nice at gmail.com Sat Feb 14 00:56:02 2015 From: nicolas.cellier.aka.nice at gmail.com (nicolas cellier) Date: Sat Feb 14 00:56:14 2015 Subject: [Newbies] Re: How to round a float? References: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> Message-ID: Louis LaBrunda Keystone-Software.com> writes: > > Hi Guys, > > On Wed, 4 Feb 2015 08:22:02 -0500, Johann Hibschman gmail.com> > wrote: > > >That just looks like floating-point representation. It's as rounded as it > >can get! > >-Johann > > At first I thought some more parans "(" were needed but that didn't change > anything. No this sounds like a bug to me (ar at least something that can > be improved) as VA Smalltalk prints 162.89, so somehow they are able to > make the floats do the right thing. > > Lou > Lou, I'm very suspicious about what VA does. IMO you should not trust too much what you see (what it prints!) Because 16289*0.01 and 162.89 are not really the same float... (16289*0.01) asFraction printShowingMaxDecimalPlaces: 1074 '162.890000000000014779288903810083866119384765625' ((162.89) asTrueFraction printShowingMaxDecimalPlaces: 1074) '162.8899999999999863575794734060764312744140625' For having least surprising read-eval-print loops here are 3 levels of expectations: 1) every two different Float shall have a different printString; 2) every Float printString shall be reinterpreted to the same Float; 3) every Float shall be printed to the shortest representation that will be reinterpreted to the same Float. Squeak responds to level-3, so somehow does the right thing. I suspect VA has lower expectations (only print the first n decimals, even if Float are different, they will print the same...). The question is why rounding to 0.01? If it's just to print, then it's better to do so with some instructions like 100 * (1.05 raisedTo: 10) printShowingDecimalPlaces: 2. -> '162.89' For versatile printing options, I suggest loading NumberPrinter package from http://ss3.gemstone.com/ss/NumberPrinter/ (FloatPrinter fixed) digitCount: 2; print: 100 * (1.05s2 raisedTo: 10) -> '162.89' If it's for monetary things like computing interests, then the advice is to not use Float but ScaledDecimal. 100 * (1.05s2 raisedTo: 10) roundTo: 0.01s2 -> 162.89s2 Nicolas From overcomer.man at gmail.com Mon Feb 16 07:51:46 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Feb 16 07:51:48 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? Message-ID: I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh is an executable file, do I want to execute? I click execute then it does nothing. What is needed to make it work? I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi 1 or 2, the cheapest computer I know about. Thanks. Kirk W. Fraser -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150215/36a1f8e3/attachment.htm From limitcase at gmail.com Mon Feb 16 13:54:46 2015 From: limitcase at gmail.com (Michael Rice) Date: Mon Feb 16 13:54:48 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: First things first. Every file has three permissions, read, write, and execute, for three groups: user, group, and all. Do you have execute permission for squeak.sh? ls -l squeak.sh -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh ^ If you show an "x" in column 4 (as above) then you have execute permission. Have you tried double clicking the file? Michael On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser wrote: > I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, > unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi > with the default OS, it downloads, unzips, and says squeak.sh is an > executable file, do I want to execute? I click execute then it does > nothing. What is needed to make it work? > > I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi 1 > or 2, the cheapest computer I know about. > > Thanks. > > Kirk W. Fraser > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/bb424083/attachment.htm From overcomer.man at gmail.com Mon Feb 16 15:16:41 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Feb 16 15:16:43 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: Hi Michael, Yes the "ls" command you gave produces -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh When I double click on squeak.sh I get a pop-up menu which says: Execute File This file 'squeak.sh' is executable. Do you wan to execute it? [Execute] [Execute in Terminal] [Cancel] Any of those choices does nothing visible but seems to block processing other commands for a moment. I made a copy of squeak.sh onto the desktop and it does the same thing. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice wrote: > First things first. > > Every file has three permissions, read, write, and execute, for three > groups: user, group, and all. Do you have execute permission for squeak.sh? > > ls -l squeak.sh > -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh > ^ > > If you show an "x" in column 4 (as above) then you have execute permission. > > Have you tried double clicking the file? > > Michael > > > On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser > wrote: > >> I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, >> unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi >> with the default OS, it downloads, unzips, and says squeak.sh is an >> executable file, do I want to execute? I click execute then it does >> nothing. What is needed to make it work? >> >> I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi 1 >> or 2, the cheapest computer I know about. >> >> Thanks. >> >> Kirk W. Fraser >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/1b2aaf45/attachment.htm From Lou at Keystone-Software.com Mon Feb 16 15:29:47 2015 From: Lou at Keystone-Software.com (Louis LaBrunda) Date: Mon Feb 16 15:29:57 2015 Subject: [Newbies] How to round a float? References: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> Message-ID: <4l24eapobok1u8nelh4cl1vfsv6ea6i3vl@4ax.com> Hi Nicolas, >Lou, I'm very suspicious about what VA does. >IMO you should not trust too much what you see (what it prints!) I think I agree with everything you say. I assumed (I know that might get me in trouble) that Chuck was rounding to print or display the value. Personally I don't see any reason to round floats (or almost anything else) except to display them in a simpler form. Given that, 162.89 looks better than 162.89000000000001 and is probably what Chuck was looking for. That's why I thought there was a problem with #roundTo: but maybe #roundTo: has some other intent that I'm not aware of? Lou ----------------------------------------------------------- Louis LaBrunda Keystone Software Corp. SkypeMe callto://PhotonDemon mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com From limitcase at gmail.com Mon Feb 16 15:31:33 2015 From: limitcase at gmail.com (Michael Rice) Date: Mon Feb 16 15:31:35 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: Have you tried executing squeak.sh from the command line? ./squeak.sh Michael On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser wrote: > Hi Michael, > > Yes the "ls" command you gave produces > -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh > > When I double click on squeak.sh I get a pop-up menu which says: Execute > File > This file 'squeak.sh' is executable. Do you wan to execute it? > [Execute] [Execute in Terminal] [Cancel] > > Any of those choices does nothing visible but seems to block processing > other commands for a moment. > > I made a copy of squeak.sh onto the desktop and it does the same thing. > > > Kirk W. Fraser > w ww.JesusGospelChurch.com > - Replace the fraud churches with the > true church. > http://freetom.info - Example of False Justice common in America > > On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice wrote: > >> First things first. >> >> Every file has three permissions, read, write, and execute, for three >> groups: user, group, and all. Do you have execute permission for squeak.sh? >> >> ls -l squeak.sh >> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >> ^ >> >> If you show an "x" in column 4 (as above) then you have execute >> permission. >> >> Have you tried double clicking the file? >> >> Michael >> >> >> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser >> wrote: >> >>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, >>> unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi >>> with the default OS, it downloads, unzips, and says squeak.sh is an >>> executable file, do I want to execute? I click execute then it does >>> nothing. What is needed to make it work? >>> >>> I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi >>> 1 or 2, the cheapest computer I know about. >>> >>> Thanks. >>> >>> Kirk W. Fraser >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/a2e4acba/attachment-0001.htm From overcomer.man at gmail.com Mon Feb 16 15:49:51 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Feb 16 15:49:53 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: I tried first squeak.sh and got bash: squeak.sh command not found I tried the command you supplied ./squeak.sh and got a popup Error This Squeak version does not support Linux-armv6| [ok] I'm guessing that means I need a new version and I should subscribe to the developers list to ask for it. Thanks for your assistance. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice wrote: > Have you tried executing squeak.sh from the command line? > > ./squeak.sh > > Michael > > On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser > wrote: > >> Hi Michael, >> >> Yes the "ls" command you gave produces >> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >> >> When I double click on squeak.sh I get a pop-up menu which says: Execute >> File >> This file 'squeak.sh' is executable. Do you wan to execute it? >> [Execute] [Execute in Terminal] [Cancel] >> >> Any of those choices does nothing visible but seems to block processing >> other commands for a moment. >> >> I made a copy of squeak.sh onto the desktop and it does the same thing. >> >> >> Kirk W. Fraser >> w ww.JesusGospelChurch.com >> - Replace the fraud churches with the >> true church. >> http://freetom.info - Example of False Justice common in America >> >> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >> wrote: >> >>> First things first. >>> >>> Every file has three permissions, read, write, and execute, for three >>> groups: user, group, and all. Do you have execute permission for squeak.sh? >>> >>> ls -l squeak.sh >>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>> ^ >>> >>> If you show an "x" in column 4 (as above) then you have execute >>> permission. >>> >>> Have you tried double clicking the file? >>> >>> Michael >>> >>> >>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser >>> wrote: >>> >>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, >>>> unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi >>>> with the default OS, it downloads, unzips, and says squeak.sh is an >>>> executable file, do I want to execute? I click execute then it does >>>> nothing. What is needed to make it work? >>>> >>>> I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi >>>> 1 or 2, the cheapest computer I know about. >>>> >>>> Thanks. >>>> >>>> Kirk W. Fraser >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/00f988f2/attachment.htm From limitcase at gmail.com Mon Feb 16 19:01:40 2015 From: limitcase at gmail.com (Michael Rice) Date: Mon Feb 16 19:01:42 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: Where did you get the Squeak you were attempting run? Michael On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser wrote: > I tried first squeak.sh and got > bash: squeak.sh command not found > I tried the command you supplied ./squeak.sh and got a popup Error > This Squeak version does not support Linux-armv6| > [ok] > > I'm guessing that means I need a new version and I should subscribe to the > developers list to ask for it. Thanks for your assistance. > > > Kirk W. Fraser > w ww.JesusGospelChurch.com > - Replace the fraud churches with the > true church. > http://freetom.info - Example of False Justice common in America > > On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice wrote: > >> Have you tried executing squeak.sh from the command line? >> >> ./squeak.sh >> >> Michael >> >> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser >> wrote: >> >>> Hi Michael, >>> >>> Yes the "ls" command you gave produces >>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>> >>> When I double click on squeak.sh I get a pop-up menu which says: >>> Execute File >>> This file 'squeak.sh' is executable. Do you wan to execute it? >>> [Execute] [Execute in Terminal] [Cancel] >>> >>> Any of those choices does nothing visible but seems to block processing >>> other commands for a moment. >>> >>> I made a copy of squeak.sh onto the desktop and it does the same thing. >>> >>> >>> Kirk W. Fraser >>> w ww.JesusGospelChurch.com >>> - Replace the fraud churches with >>> the true church. >>> http://freetom.info - Example of False Justice common in America >>> >>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>> wrote: >>> >>>> First things first. >>>> >>>> Every file has three permissions, read, write, and execute, for three >>>> groups: user, group, and all. Do you have execute permission for squeak.sh? >>>> >>>> ls -l squeak.sh >>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>> ^ >>>> >>>> If you show an "x" in column 4 (as above) then you have execute >>>> permission. >>>> >>>> Have you tried double clicking the file? >>>> >>>> Michael >>>> >>>> >>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser >>>> wrote: >>>> >>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>> is an executable file, do I want to execute? I click execute then it does >>>>> nothing. What is needed to make it work? >>>>> >>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on a >>>>> Pi 1 or 2, the cheapest computer I know about. >>>>> >>>>> Thanks. >>>>> >>>>> Kirk W. Fraser >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/a4352e04/attachment.htm From overcomer.man at gmail.com Mon Feb 16 19:26:05 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Feb 16 19:26:07 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: http://www.squeak.org/Downloads first link. I downloaded it directly into my Raspberry Pi from WiFi using Midori browser. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice wrote: > Where did you get the Squeak you were attempting run? > > Michael > > On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser > wrote: > >> I tried first squeak.sh and got >> bash: squeak.sh command not found >> I tried the command you supplied ./squeak.sh and got a popup Error >> This Squeak version does not support Linux-armv6| >> [ok] >> >> I'm guessing that means I need a new version and I should subscribe to >> the developers list to ask for it. Thanks for your assistance. >> >> >> Kirk W. Fraser >> w ww.JesusGospelChurch.com >> - Replace the fraud churches with the >> true church. >> http://freetom.info - Example of False Justice common in America >> >> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice >> wrote: >> >>> Have you tried executing squeak.sh from the command line? >>> >>> ./squeak.sh >>> >>> Michael >>> >>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser >>> wrote: >>> >>>> Hi Michael, >>>> >>>> Yes the "ls" command you gave produces >>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>> >>>> When I double click on squeak.sh I get a pop-up menu which says: >>>> Execute File >>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>> [Execute] [Execute in Terminal] [Cancel] >>>> >>>> Any of those choices does nothing visible but seems to block processing >>>> other commands for a moment. >>>> >>>> I made a copy of squeak.sh onto the desktop and it does the same thing. >>>> >>>> >>>> Kirk W. Fraser >>>> w ww.JesusGospelChurch.com >>>> - Replace the fraud churches with >>>> the true church. >>>> http://freetom.info - Example of False Justice common in America >>>> >>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>>> wrote: >>>> >>>>> First things first. >>>>> >>>>> Every file has three permissions, read, write, and execute, for three >>>>> groups: user, group, and all. Do you have execute permission for squeak.sh? >>>>> >>>>> ls -l squeak.sh >>>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>> ^ >>>>> >>>>> If you show an "x" in column 4 (as above) then you have execute >>>>> permission. >>>>> >>>>> Have you tried double clicking the file? >>>>> >>>>> Michael >>>>> >>>>> >>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser >>>>> wrote: >>>>> >>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>>> is an executable file, do I want to execute? I click execute then it does >>>>>> nothing. What is needed to make it work? >>>>>> >>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on a >>>>>> Pi 1 or 2, the cheapest computer I know about. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> Kirk W. Fraser >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/59f9f4a5/attachment-0001.htm From limitcase at gmail.com Mon Feb 16 19:45:20 2015 From: limitcase at gmail.com (Michael Rice) Date: Mon Feb 16 19:45:23 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: What OS? On Mon, Feb 16, 2015 at 2:26 PM, Kirk Fraser wrote: > http://www.squeak.org/Downloads first link. I downloaded it directly > into my Raspberry Pi from WiFi using Midori browser. > > Kirk W. Fraser > w ww.JesusGospelChurch.com > - Replace the fraud churches with the > true church. > http://freetom.info - Example of False Justice common in America > > On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice > wrote: > >> Where did you get the Squeak you were attempting run? >> >> Michael >> >> On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser >> wrote: >> >>> I tried first squeak.sh and got >>> bash: squeak.sh command not found >>> I tried the command you supplied ./squeak.sh and got a popup Error >>> This Squeak version does not support Linux-armv6| >>> [ok] >>> >>> I'm guessing that means I need a new version and I should subscribe to >>> the developers list to ask for it. Thanks for your assistance. >>> >>> >>> Kirk W. Fraser >>> w ww.JesusGospelChurch.com >>> - Replace the fraud churches with >>> the true church. >>> http://freetom.info - Example of False Justice common in America >>> >>> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice >>> wrote: >>> >>>> Have you tried executing squeak.sh from the command line? >>>> >>>> ./squeak.sh >>>> >>>> Michael >>>> >>>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser >>>> wrote: >>>> >>>>> Hi Michael, >>>>> >>>>> Yes the "ls" command you gave produces >>>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>>> >>>>> When I double click on squeak.sh I get a pop-up menu which says: >>>>> Execute File >>>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>>> [Execute] [Execute in Terminal] [Cancel] >>>>> >>>>> Any of those choices does nothing visible but seems to block >>>>> processing other commands for a moment. >>>>> >>>>> I made a copy of squeak.sh onto the desktop and it does the same thing. >>>>> >>>>> >>>>> Kirk W. Fraser >>>>> w ww.JesusGospelChurch.com >>>>> - Replace the fraud churches with >>>>> the true church. >>>>> http://freetom.info - Example of False Justice common in America >>>>> >>>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>>>> wrote: >>>>> >>>>>> First things first. >>>>>> >>>>>> Every file has three permissions, read, write, and execute, for three >>>>>> groups: user, group, and all. Do you have execute permission for squeak.sh? >>>>>> >>>>>> ls -l squeak.sh >>>>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>>> ^ >>>>>> >>>>>> If you show an "x" in column 4 (as above) then you have execute >>>>>> permission. >>>>>> >>>>>> Have you tried double clicking the file? >>>>>> >>>>>> Michael >>>>>> >>>>>> >>>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser >>>>> > wrote: >>>>>> >>>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>>>> is an executable file, do I want to execute? I click execute then it does >>>>>>> nothing. What is needed to make it work? >>>>>>> >>>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on a >>>>>>> Pi 1 or 2, the cheapest computer I know about. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> Kirk W. Fraser >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Beginners mailing list >>>>>>> Beginners@lists.squeakfoundation.org >>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/03dae105/attachment.htm From overcomer.man at gmail.com Mon Feb 16 20:24:45 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Feb 16 20:24:48 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: How do I tell what OS it is running? I just downloaded the default recommended when loading my Pi SD card. I noticed an additional message in the terminal after the error popup appeared which may be helpful. It says: ./Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/squeak.sh: line 38: /home/pi/Desktop/Squeak-4.5-All-in-One/Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/Linux-armv6l/bin/squeak: No such file or directory Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Mon, Feb 16, 2015 at 11:45 AM, Michael Rice wrote: > What OS? > > On Mon, Feb 16, 2015 at 2:26 PM, Kirk Fraser > wrote: > >> http://www.squeak.org/Downloads first link. I downloaded it directly >> into my Raspberry Pi from WiFi using Midori browser. >> >> Kirk W. Fraser >> w ww.JesusGospelChurch.com >> - Replace the fraud churches with the >> true church. >> http://freetom.info - Example of False Justice common in America >> >> On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice >> wrote: >> >>> Where did you get the Squeak you were attempting run? >>> >>> Michael >>> >>> On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser >>> wrote: >>> >>>> I tried first squeak.sh and got >>>> bash: squeak.sh command not found >>>> I tried the command you supplied ./squeak.sh and got a popup Error >>>> This Squeak version does not support Linux-armv6| >>>> [ok] >>>> >>>> I'm guessing that means I need a new version and I should subscribe to >>>> the developers list to ask for it. Thanks for your assistance. >>>> >>>> >>>> Kirk W. Fraser >>>> w ww.JesusGospelChurch.com >>>> - Replace the fraud churches with >>>> the true church. >>>> http://freetom.info - Example of False Justice common in America >>>> >>>> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice >>>> wrote: >>>> >>>>> Have you tried executing squeak.sh from the command line? >>>>> >>>>> ./squeak.sh >>>>> >>>>> Michael >>>>> >>>>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser >>>> > wrote: >>>>> >>>>>> Hi Michael, >>>>>> >>>>>> Yes the "ls" command you gave produces >>>>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>>>> >>>>>> When I double click on squeak.sh I get a pop-up menu which says: >>>>>> Execute File >>>>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>>>> [Execute] [Execute in Terminal] [Cancel] >>>>>> >>>>>> Any of those choices does nothing visible but seems to block >>>>>> processing other commands for a moment. >>>>>> >>>>>> I made a copy of squeak.sh onto the desktop and it does the same >>>>>> thing. >>>>>> >>>>>> >>>>>> Kirk W. Fraser >>>>>> w ww.JesusGospelChurch.com >>>>>> - Replace the fraud churches with >>>>>> the true church. >>>>>> http://freetom.info - Example of False Justice common in America >>>>>> >>>>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>>>>> wrote: >>>>>> >>>>>>> First things first. >>>>>>> >>>>>>> Every file has three permissions, read, write, and execute, for >>>>>>> three groups: user, group, and all. Do you have execute permission for >>>>>>> squeak.sh? >>>>>>> >>>>>>> ls -l squeak.sh >>>>>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>>>> ^ >>>>>>> >>>>>>> If you show an "x" in column 4 (as above) then you have execute >>>>>>> permission. >>>>>>> >>>>>>> Have you tried double clicking the file? >>>>>>> >>>>>>> Michael >>>>>>> >>>>>>> >>>>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser < >>>>>>> overcomer.man@gmail.com> wrote: >>>>>>> >>>>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>>>>> is an executable file, do I want to execute? I click execute then it does >>>>>>>> nothing. What is needed to make it work? >>>>>>>> >>>>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on >>>>>>>> a Pi 1 or 2, the cheapest computer I know about. >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> Kirk W. Fraser >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Beginners mailing list >>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Beginners mailing list >>>>>>> Beginners@lists.squeakfoundation.org >>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/2fd91544/attachment-0001.htm From asqueaker at gmail.com Mon Feb 16 21:36:10 2015 From: asqueaker at gmail.com (Chris Muller) Date: Mon Feb 16 21:36:14 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <669703BB-1931-48B0-BED4-FA836E68D863@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> <669703BB-1931-48B0-BED4-FA836E68D863@me.com> Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: SortedNotesExample.png Type: image/png Size: 47035 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/b9cc133a/SortedNotesExample-0001.png From jgr.asselin at me.com Mon Feb 16 23:21:27 2015 From: jgr.asselin at me.com (Raymond Asselin) Date: Mon Feb 16 23:21:48 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> <669703BB-1931-48B0-BED4-FA836E68D863@me.com> Message-ID: <648D39F5-840A-4A7F-9247-0C4B71D44CFA@me.com> I Got it. You talked about generate heading in the past but can't figure how to send it. Now it's clear "<>. Envoy? de mon iPhone > Le 2015-02-16 ? 16:36, Chris Muller a ?crit : > > Hi Raymond, > >> On Wed, Feb 4, 2015 at 12:42 PM, Raymond Asselin wrote: >> >> >> > > Whoa! That looks familiar! :) > > With Maui, you normallly don't need to do methods like #sortedNotes. You can just have #notes in there like you do at the bottom (set its output resultView to #panel). Then if you simply implement these methods on your Note class: > > mauiDefaultColumns > ^ #(med date heures com) > > and > > mauiSortableColumns > ^ #(med date heures comString) > > and > > comString > ^ self com ifNil: [ String empty ] > > Then, hover your mouse inside the yellowish area of the collection, press ESC to invoke the menu, then select "generate heading". > > You will get proper headers for those columns with ascending / descending sort arrows for each column. All for free from Maui. > > HTH. > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/0c63dd4a/attachment.htm From casey.obrien.r at gmail.com Tue Feb 17 02:10:24 2015 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Tue Feb 17 02:10:32 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: Message-ID: <0C5C2F29-5D8C-4600-9375-030ABEA7652F@gmail.com> Hi Kirk, By "default OS" I'm guessing you mean Raspbian. On Linux, to be frank (not to be confused with Frank) I really think you're better off building your own VM from sources. We don't have a JIT that I know of for ARM based machines, so I'm guessing you want a "stack VM" or stack-oriented VM. It might be worth asking what the best VM is for the Pi right now. Mine has an old build of tim's patches to the stack VM, IIRC. I'm guessing the reason ./squeak worked when just plain squeak didn't, is because the directory the executable is in is not included in your PATH variable. Google will tell you how to fix that part. It's basically giving the system a list of directories to look through when you type the name of something you want to run. Generally, getting a VM to work on Linux based systems is about satisfying dependencies precisely. Keep at it, and I'm sure you'll get it figured out. For instant, one click easy installation, may I recommend a Mac or Windows machine? The main problem with supporting "Linux" is just this: there are a million and one variations on that design, and we'd need a million and one maintainers to be able to make sure that it "just works." Obviously there aren't resources to do that, at least not right now. So all that said, if you soldier through it and really push hard to learn everything you can about making stuff go on Linux systems, I can practically guarantee that people in the community will help you. Maybe, later on, you can maintain the VM for your favorite GNU/Linux distro, so the next brave soul doesn't have to repeat your footwork. HTH, and sorry about having been short with you a bit ago. --C > On Feb 16, 2015, at 12:24 PM, Kirk Fraser wrote: > > How do I tell what OS it is running? I just downloaded the default recommended when loading my Pi SD card. > > I noticed an additional message in the terminal after the error popup appeared which may be helpful. It says: > > ./Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/squeak.sh: line 38: /home/pi/Desktop/Squeak-4.5-All-in-One/Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/Linux-armv6l/bin/squeak: No such file or directory > > > Kirk W. Fraser > www.JesusGospelChurch.com - Replace the fraud churches with the true church. > http://freetom.info - Example of False Justice common in America > >> On Mon, Feb 16, 2015 at 11:45 AM, Michael Rice wrote: >> What OS? >> >>> On Mon, Feb 16, 2015 at 2:26 PM, Kirk Fraser wrote: >>> http://www.squeak.org/Downloads first link. I downloaded it directly into my Raspberry Pi from WiFi using Midori browser. >>> >>> Kirk W. Fraser >>> www.JesusGospelChurch.com - Replace the fraud churches with the true church. >>> http://freetom.info - Example of False Justice common in America >>> >>>> On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice wrote: >>>> Where did you get the Squeak you were attempting run? >>>> >>>> Michael >>>> >>>>> On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser wrote: >>>>> I tried first squeak.sh and got >>>>> bash: squeak.sh command not found >>>>> I tried the command you supplied ./squeak.sh and got a popup Error >>>>> This Squeak version does not support Linux-armv6| >>>>> [ok] >>>>> >>>>> I'm guessing that means I need a new version and I should subscribe to the developers list to ask for it. Thanks for your assistance. >>>>> >>>>> >>>>> Kirk W. Fraser >>>>> www.JesusGospelChurch.com - Replace the fraud churches with the true church. >>>>> http://freetom.info - Example of False Justice common in America >>>>> >>>>>> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice wrote: >>>>>> Have you tried executing squeak.sh from the command line? >>>>>> >>>>>> ./squeak.sh >>>>>> >>>>>> Michael >>>>>> >>>>>>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser wrote: >>>>>>> Hi Michael, >>>>>>> >>>>>>> Yes the "ls" command you gave produces >>>>>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>>>>> >>>>>>> When I double click on squeak.sh I get a pop-up menu which says: Execute File >>>>>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>>>>> [Execute] [Execute in Terminal] [Cancel] >>>>>>> >>>>>>> Any of those choices does nothing visible but seems to block processing other commands for a moment. >>>>>>> >>>>>>> I made a copy of squeak.sh onto the desktop and it does the same thing. >>>>>>> >>>>>>> >>>>>>> Kirk W. Fraser >>>>>>> www.JesusGospelChurch.com - Replace the fraud churches with the true church. >>>>>>> http://freetom.info - Example of False Justice common in America >>>>>>> >>>>>>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice wrote: >>>>>>>> First things first. >>>>>>>> >>>>>>>> Every file has three permissions, read, write, and execute, for three groups: user, group, and all. Do you have execute permission for squeak.sh? >>>>>>>> >>>>>>>> ls -l squeak.sh >>>>>>>> -rwxrwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>>>>> ^ >>>>>>>> >>>>>>>> If you show an "x" in column 4 (as above) then you have execute permission. >>>>>>>> >>>>>>>> Have you tried double clicking the file? >>>>>>>> >>>>>>>> Michael >>>>>>>> >>>>>>>> >>>>>>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser wrote: >>>>>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after downloading, unzipping, and executing Squeak.sh Attempting the same on a Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh is an executable file, do I want to execute? I click execute then it does nothing. What is needed to make it work? >>>>>>>>> >>>>>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on a Pi 1 or 2, the cheapest computer I know about. >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> Kirk W. Fraser >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Beginners mailing list >>>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Beginners mailing list >>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Beginners mailing list >>>>>>> Beginners@lists.squeakfoundation.org >>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/3a028fce/attachment-0001.htm From asqueaker at gmail.com Tue Feb 17 03:07:03 2015 From: asqueaker at gmail.com (Chris Muller) Date: Tue Feb 17 03:07:05 2015 Subject: [Newbies] How to doubble sort a collection In-Reply-To: <648D39F5-840A-4A7F-9247-0C4B71D44CFA@me.com> References: <9C23236A-DB86-496C-A823-77A0DE672388@me.com> <1423069213706-4803671.post@n4.nabble.com> <43A1E201-6A04-4AF0-B87A-67B777BF6937@me.com> <9C6B4D83-E3E0-4495-A1A5-D0B2E454D005@gmx.de> <669703BB-1931-48B0-BED4-FA836E68D863@me.com> <648D39F5-840A-4A7F-9247-0C4B71D44CFA@me.com> Message-ID: On Mon, Feb 16, 2015 at 5:21 PM, Raymond Asselin wrote: > I Got it. > You talked about generate heading in the past but can't figure how to send > it. > Now it's clear "< collection, press ESC to invoke the menu, then select "generate heading">>. Ah, sorry I did not make that more clear! Yes, that is the collection-object itself is represented on the screen, with its own context menu. And, you can actually do a poor-mans multi-level sorting by selecting the ascending / descending arrows in \reverse\ order (inner-most sort level to outer-most). > Envoy? de mon iPhone > > Le 2015-02-16 ? 16:36, Chris Muller a ?crit : > > Hi Raymond, > > On Wed, Feb 4, 2015 at 12:42 PM, Raymond Asselin wrote: >> >> >> >> > > Whoa! That looks familiar! :) > > With Maui, you normallly don't need to do methods like #sortedNotes. You > can just have #notes in there like you do at the bottom (set its output > resultView to #panel). Then if you simply implement these methods on your > Note class: > > mauiDefaultColumns > ^ #(med date heures com) > > and > > mauiSortableColumns > ^ #(med date heures comString) > > and > > comString > ^ self com ifNil: [ String empty ] > > Then, hover your mouse inside the yellowish area of the collection, press > ESC to invoke the menu, then select "generate heading". > > You will get proper headers for those columns with ascending / descending > sort arrows for each column. All for free from Maui. > > HTH. > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > From bert at freudenbergs.de Wed Feb 18 01:10:43 2015 From: bert at freudenbergs.de (Bert Freudenberg) Date: Wed Feb 18 01:10:48 2015 Subject: [Newbies] How to round a float? In-Reply-To: <4l24eapobok1u8nelh4cl1vfsv6ea6i3vl@4ax.com> References: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> <4l24eapobok1u8nelh4cl1vfsv6ea6i3vl@4ax.com> Message-ID: On 16.02.2015, at 07:29, Louis LaBrunda wrote: > > That's why I thought there was a problem with #roundTo: but maybe #roundTo: > has some other intent that I'm not aware of? It's used for snapping values to a grid. E.g. in ScrollBar>>setValue:. - Bert - -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4115 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150217/b19fc2cc/smime.bin From overcomer.man at gmail.com Wed Feb 18 08:59:00 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Wed Feb 18 08:59:02 2015 Subject: [Newbies] What PATH makes Squeak work on Raspberry Pi? Message-ID: Amazingly I'm sending this email from my Pi. I made this squeak.sh file for my Pi desktop. Double click produces nothing after the request to execute pop-up menu. Entering each line in a Terminal on the last statement closes the terminal. Suggestions please? Thanks. PATH=/home/pi/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/ VM="/home/pi/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/Linux-i686/bin/squeak" IMAGE="/home/pi/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/Resources/Squeak4.5-13680.image" exec "$VM" "$IMAGE" Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150218/061157ab/attachment.htm From Lou at Keystone-Software.com Wed Feb 18 15:27:55 2015 From: Lou at Keystone-Software.com (Louis LaBrunda) Date: Wed Feb 18 15:28:13 2015 Subject: [Newbies] How to round a float? References: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> <4l24eapobok1u8nelh4cl1vfsv6ea6i3vl@4ax.com> Message-ID: Hi Bert, >> That's why I thought there was a problem with #roundTo: but maybe #roundTo: >> has some other intent that I'm not aware of? > >It's used for snapping values to a grid. E.g. in ScrollBar>>setValue:. >- Bert - Ahh, Thanks Bert. So it isn't exactly the same as displaying the numbers but close. And in that case I guess a value like 162.89000000000001 is good enough and there wouldn't be any growing error as each snap brings the value back where you want it. Lou ----------------------------------------------------------- Louis LaBrunda Keystone Software Corp. SkypeMe callto://PhotonDemon mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com From overcomer.man at gmail.com Thu Feb 19 02:59:42 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Thu Feb 19 02:59:44 2015 Subject: [Newbies] How to run Squeak on Raspberry Pi Message-ID: Thanks Tim for this help. 1) Download squeak and extract it. 2) Copy these three files from contents/resources to squeak folder A '.image' file - you'll find Squeak4.5-13860.image A '.changes' file - you'll find Squeak4.5-13860.changes A '.sources' file - should be Squeak4.1.sources 3) open a terminal type in squeak or 4) make a desktop file "squeak" with the content "squeak" and it works. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150218/b4941078/attachment.htm From p3anoman at gmail.com Thu Feb 19 03:04:54 2015 From: p3anoman at gmail.com (John McKeon) Date: Thu Feb 19 03:04:56 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: <0C5C2F29-5D8C-4600-9375-030ABEA7652F@gmail.com> References: <0C5C2F29-5D8C-4600-9375-030ABEA7652F@gmail.com> Message-ID: The RISC OS is available for Pi machines . And there is a Squeak for that OS. On Mon, Feb 16, 2015 at 9:10 PM, Casey Ransberger wrote: > Hi Kirk, > > By "default OS" I'm guessing you mean Raspbian. > > On Linux, to be frank (not to be confused with Frank) I really think > you're better off building your own VM from sources. We don't have a JIT > that I know of for ARM based machines, so I'm guessing you want a "stack > VM" or stack-oriented VM. > > It might be worth asking what the best VM is for the Pi right now. Mine > has an old build of tim's patches to the stack VM, IIRC. > > I'm guessing the reason ./squeak worked when just plain squeak didn't, is > because the directory the executable is in is not included in your PATH > variable. Google will tell you how to fix that part. It's basically giving > the system a list of directories to look through when you type the name of > something you want to run. > > Generally, getting a VM to work on Linux based systems is about satisfying > dependencies precisely. Keep at it, and I'm sure you'll get it figured out. > > For instant, one click easy installation, may I recommend a Mac or Windows > machine? > > The main problem with supporting "Linux" is just this: there are a million > and one variations on that design, and we'd need a million and one > maintainers to be able to make sure that it "just works." Obviously there > aren't resources to do that, at least not right now. > > So all that said, if you soldier through it and really push hard to learn > everything you can about making stuff go on Linux systems, I can > practically guarantee that people in the community will help you. > > Maybe, later on, you can maintain the VM for your favorite GNU/Linux > distro, so the next brave soul doesn't have to repeat your footwork. > > HTH, and sorry about having been short with you a bit ago. > > --C > > On Feb 16, 2015, at 12:24 PM, Kirk Fraser wrote: > > How do I tell what OS it is running? I just downloaded the default > recommended when loading my Pi SD card. > > I noticed an additional message in the terminal after the error popup > appeared which may be helpful. It says: > > ./Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/squeak.sh: line 38: > /home/pi/Desktop/Squeak-4.5-All-in-One/Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/Linux-armv6l/bin/squeak: > No such file or directory > > > Kirk W. Fraser > w ww.JesusGospelChurch.com > - Replace the fraud churches with the > true church. > http://freetom.info - Example of False Justice common in America > > On Mon, Feb 16, 2015 at 11:45 AM, Michael Rice > wrote: > >> What OS? >> >> On Mon, Feb 16, 2015 at 2:26 PM, Kirk Fraser >> wrote: >> >>> http://www.squeak.org/Downloads first link. I downloaded it directly >>> into my Raspberry Pi from WiFi using Midori browser. >>> >>> Kirk W. Fraser >>> w ww.JesusGospelChurch.com >>> - Replace the fraud churches with >>> the true church. >>> http://freetom.info - Example of False Justice common in America >>> >>> On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice >>> wrote: >>> >>>> Where did you get the Squeak you were attempting run? >>>> >>>> Michael >>>> >>>> On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser >>>> wrote: >>>> >>>>> I tried first squeak.sh and got >>>>> bash: squeak.sh command not found >>>>> I tried the command you supplied ./squeak.sh and got a popup Error >>>>> This Squeak version does not support Linux-armv6| >>>>> [ok] >>>>> >>>>> I'm guessing that means I need a new version and I should subscribe to >>>>> the developers list to ask for it. Thanks for your assistance. >>>>> >>>>> >>>>> Kirk W. Fraser >>>>> w ww.JesusGospelChurch.com >>>>> - Replace the fraud churches with >>>>> the true church. >>>>> http://freetom.info - Example of False Justice common in America >>>>> >>>>> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice >>>>> wrote: >>>>> >>>>>> Have you tried executing squeak.sh from the command line? >>>>>> >>>>>> ./squeak.sh >>>>>> >>>>>> Michael >>>>>> >>>>>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser < >>>>>> overcomer.man@gmail.com> wrote: >>>>>> >>>>>>> Hi Michael, >>>>>>> >>>>>>> Yes the "ls" command you gave produces >>>>>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>>>>> >>>>>>> When I double click on squeak.sh I get a pop-up menu which says: >>>>>>> Execute File >>>>>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>>>>> [Execute] [Execute in Terminal] [Cancel] >>>>>>> >>>>>>> Any of those choices does nothing visible but seems to block >>>>>>> processing other commands for a moment. >>>>>>> >>>>>>> I made a copy of squeak.sh onto the desktop and it does the same >>>>>>> thing. >>>>>>> >>>>>>> >>>>>>> Kirk W. Fraser >>>>>>> w ww.JesusGospelChurch.com >>>>>>> - Replace the fraud churches >>>>>>> with the true church. >>>>>>> http://freetom.info - Example of False Justice common in America >>>>>>> >>>>>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>>>>>> wrote: >>>>>>> >>>>>>>> First things first. >>>>>>>> >>>>>>>> Every file has three permissions, read, write, and execute, for >>>>>>>> three groups: user, group, and all. Do you have execute permission for >>>>>>>> squeak.sh? >>>>>>>> >>>>>>>> ls -l squeak.sh >>>>>>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>>>>> ^ >>>>>>>> >>>>>>>> If you show an "x" in column 4 (as above) then you have execute >>>>>>>> permission. >>>>>>>> >>>>>>>> Have you tried double clicking the file? >>>>>>>> >>>>>>>> Michael >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser < >>>>>>>> overcomer.man@gmail.com> wrote: >>>>>>>> >>>>>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>>>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>>>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>>>>>> is an executable file, do I want to execute? I click execute then it does >>>>>>>>> nothing. What is needed to make it work? >>>>>>>>> >>>>>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 on >>>>>>>>> a Pi 1 or 2, the cheapest computer I know about. >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> Kirk W. Fraser >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Beginners mailing list >>>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Beginners mailing list >>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Beginners mailing list >>>>>>> Beginners@lists.squeakfoundation.org >>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -- jmck.seasidehosting.st -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150218/a78ae7e5/attachment-0001.htm From overcomer.man at gmail.com Thu Feb 19 03:24:39 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Thu Feb 19 03:24:42 2015 Subject: [Newbies] How do I start Squeak on Raspberry Pi ? In-Reply-To: References: <0C5C2F29-5D8C-4600-9375-030ABEA7652F@gmail.com> Message-ID: Thanks everyone. After copying image, changes, and sources under the squeak folder in Raspian, I found it helpful to change my desktop squeak file to say: [Desktop Entry] Type=Application Exec=squeak Icon=squeak StartUpNotify=true That will keep me going for now. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America On Wed, Feb 18, 2015 at 7:04 PM, John McKeon wrote: > The RISC OS is available for Pi machines > . And there is a Squeak > for that OS. > > On Mon, Feb 16, 2015 at 9:10 PM, Casey Ransberger < > casey.obrien.r@gmail.com> wrote: > >> Hi Kirk, >> >> By "default OS" I'm guessing you mean Raspbian. >> >> On Linux, to be frank (not to be confused with Frank) I really think >> you're better off building your own VM from sources. We don't have a JIT >> that I know of for ARM based machines, so I'm guessing you want a "stack >> VM" or stack-oriented VM. >> >> It might be worth asking what the best VM is for the Pi right now. Mine >> has an old build of tim's patches to the stack VM, IIRC. >> >> I'm guessing the reason ./squeak worked when just plain squeak didn't, is >> because the directory the executable is in is not included in your PATH >> variable. Google will tell you how to fix that part. It's basically giving >> the system a list of directories to look through when you type the name of >> something you want to run. >> >> Generally, getting a VM to work on Linux based systems is about >> satisfying dependencies precisely. Keep at it, and I'm sure you'll get it >> figured out. >> >> For instant, one click easy installation, may I recommend a Mac or >> Windows machine? >> >> The main problem with supporting "Linux" is just this: there are a >> million and one variations on that design, and we'd need a million and one >> maintainers to be able to make sure that it "just works." Obviously there >> aren't resources to do that, at least not right now. >> >> So all that said, if you soldier through it and really push hard to learn >> everything you can about making stuff go on Linux systems, I can >> practically guarantee that people in the community will help you. >> >> Maybe, later on, you can maintain the VM for your favorite GNU/Linux >> distro, so the next brave soul doesn't have to repeat your footwork. >> >> HTH, and sorry about having been short with you a bit ago. >> >> --C >> >> On Feb 16, 2015, at 12:24 PM, Kirk Fraser >> wrote: >> >> How do I tell what OS it is running? I just downloaded the default >> recommended when loading my Pi SD card. >> >> I noticed an additional message in the terminal after the error popup >> appeared which may be helpful. It says: >> >> ./Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/squeak.sh: line 38: >> /home/pi/Desktop/Squeak-4.5-All-in-One/Squeak-4.5-All-in-One.app/Contents/LinuxAndWindows/Linux-armv6l/bin/squeak: >> No such file or directory >> >> >> Kirk W. Fraser >> w ww.JesusGospelChurch.com >> - Replace the fraud churches with the >> true church. >> http://freetom.info - Example of False Justice common in America >> >> On Mon, Feb 16, 2015 at 11:45 AM, Michael Rice >> wrote: >> >>> What OS? >>> >>> On Mon, Feb 16, 2015 at 2:26 PM, Kirk Fraser >>> wrote: >>> >>>> http://www.squeak.org/Downloads first link. I downloaded it directly >>>> into my Raspberry Pi from WiFi using Midori browser. >>>> >>>> Kirk W. Fraser >>>> w ww.JesusGospelChurch.com >>>> - Replace the fraud churches with >>>> the true church. >>>> http://freetom.info - Example of False Justice common in America >>>> >>>> On Mon, Feb 16, 2015 at 11:01 AM, Michael Rice >>>> wrote: >>>> >>>>> Where did you get the Squeak you were attempting run? >>>>> >>>>> Michael >>>>> >>>>> On Mon, Feb 16, 2015 at 10:49 AM, Kirk Fraser >>>> > wrote: >>>>> >>>>>> I tried first squeak.sh and got >>>>>> bash: squeak.sh command not found >>>>>> I tried the command you supplied ./squeak.sh and got a popup Error >>>>>> This Squeak version does not support Linux-armv6| >>>>>> [ok] >>>>>> >>>>>> I'm guessing that means I need a new version and I should subscribe >>>>>> to the developers list to ask for it. Thanks for your assistance. >>>>>> >>>>>> >>>>>> Kirk W. Fraser >>>>>> w ww.JesusGospelChurch.com >>>>>> - Replace the fraud churches with >>>>>> the true church. >>>>>> http://freetom.info - Example of False Justice common in America >>>>>> >>>>>> On Mon, Feb 16, 2015 at 7:31 AM, Michael Rice >>>>>> wrote: >>>>>> >>>>>>> Have you tried executing squeak.sh from the command line? >>>>>>> >>>>>>> ./squeak.sh >>>>>>> >>>>>>> Michael >>>>>>> >>>>>>> On Mon, Feb 16, 2015 at 10:16 AM, Kirk Fraser < >>>>>>> overcomer.man@gmail.com> wrote: >>>>>>> >>>>>>>> Hi Michael, >>>>>>>> >>>>>>>> Yes the "ls" command you gave produces >>>>>>>> -rwxrwxr-x 1 pi pi 63 Oct 12 00:49 squeak.sh >>>>>>>> >>>>>>>> When I double click on squeak.sh I get a pop-up menu which says: >>>>>>>> Execute File >>>>>>>> This file 'squeak.sh' is executable. Do you wan to execute it? >>>>>>>> [Execute] [Execute in Terminal] [Cancel] >>>>>>>> >>>>>>>> Any of those choices does nothing visible but seems to block >>>>>>>> processing other commands for a moment. >>>>>>>> >>>>>>>> I made a copy of squeak.sh onto the desktop and it does the same >>>>>>>> thing. >>>>>>>> >>>>>>>> >>>>>>>> Kirk W. Fraser >>>>>>>> w ww.JesusGospelChurch.com >>>>>>>> - Replace the fraud churches >>>>>>>> with the true church. >>>>>>>> http://freetom.info - Example of False Justice common in America >>>>>>>> >>>>>>>> On Mon, Feb 16, 2015 at 5:54 AM, Michael Rice >>>>>>>> wrote: >>>>>>>> >>>>>>>>> First things first. >>>>>>>>> >>>>>>>>> Every file has three permissions, read, write, and execute, for >>>>>>>>> three groups: user, group, and all. Do you have execute permission for >>>>>>>>> squeak.sh? >>>>>>>>> >>>>>>>>> ls -l squeak.sh >>>>>>>>> -rw*x*rwxr-x. 1 mrice mrice 63 Oct 11 18:49 squeak.sh >>>>>>>>> ^ >>>>>>>>> >>>>>>>>> If you show an "x" in column 4 (as above) then you have execute >>>>>>>>> permission. >>>>>>>>> >>>>>>>>> Have you tried double clicking the file? >>>>>>>>> >>>>>>>>> Michael >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Feb 16, 2015 at 2:51 AM, Kirk Fraser < >>>>>>>>> overcomer.man@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> I have Squeak 4.5 All-In-One working in Kbuntu Linux after >>>>>>>>>> downloading, unzipping, and executing Squeak.sh Attempting the same on a >>>>>>>>>> Raspberry Pi with the default OS, it downloads, unzips, and says squeak.sh >>>>>>>>>> is an executable file, do I want to execute? I click execute then it does >>>>>>>>>> nothing. What is needed to make it work? >>>>>>>>>> >>>>>>>>>> I am working to hopefully get eToys video to work on Squeak 4.5 >>>>>>>>>> on a Pi 1 or 2, the cheapest computer I know about. >>>>>>>>>> >>>>>>>>>> Thanks. >>>>>>>>>> >>>>>>>>>> Kirk W. Fraser >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Beginners mailing list >>>>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Beginners mailing list >>>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Beginners mailing list >>>>>>>> Beginners@lists.squeakfoundation.org >>>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Beginners mailing list >>>>>>> Beginners@lists.squeakfoundation.org >>>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Beginners mailing list >>>>>> Beginners@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Beginners mailing list >>>>> Beginners@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Beginners mailing list >>>> Beginners@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>>> >>>> >>> >>> _______________________________________________ >>> Beginners mailing list >>> Beginners@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners >>> >>> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> > > > -- > jmck.seasidehosting.st > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150218/9cf328b3/attachment-0001.htm From overcomer.man at gmail.com Fri Feb 20 22:02:07 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Fri Feb 20 22:02:10 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? Message-ID: The automatic supply of the right parenthesis when a left parenthesis is typed appears to cost me more time in deleting the extra than it saves in the more rare events when I can use the feature. How can I safely stop it for all the p, brackets, and curly braces? Thanks. Kirk W. Fraser w ww.JesusGospelChurch.com - Replace the fraud churches with the true church. http://freetom.info - Example of False Justice common in America -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150220/bef42e12/attachment.htm From lewis at mail.msen.com Fri Feb 20 23:55:28 2015 From: lewis at mail.msen.com (David T. Lewis) Date: Fri Feb 20 23:55:29 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? In-Reply-To: References: Message-ID: <20150220235528.GA20595@shell.msen.com> On Fri, Feb 20, 2015 at 02:02:07PM -0800, Kirk Fraser wrote: > The automatic supply of the right parenthesis when a left parenthesis is > typed appears to cost me more time in deleting the extra than it saves in > the more rare events when I can use the feature. How can I safely stop it > for all the p, brackets, and curly braces? Thanks. > Yes, there is a preference. Look in category "Morphic" and disable the "Auto Enclose" preference. Some people like this preference a lot. Others think it is horrible. Dave From leves at elte.hu Sat Feb 21 01:29:12 2015 From: leves at elte.hu (Levente Uzonyi) Date: Sat Feb 21 01:29:16 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? In-Reply-To: <20150220235528.GA20595@shell.msen.com> References: <20150220235528.GA20595@shell.msen.com> Message-ID: On Fri, 20 Feb 2015, David T. Lewis wrote: > On Fri, Feb 20, 2015 at 02:02:07PM -0800, Kirk Fraser wrote: >> The automatic supply of the right parenthesis when a left parenthesis is >> typed appears to cost me more time in deleting the extra than it saves in >> the more rare events when I can use the feature. How can I safely stop it >> for all the p, brackets, and curly braces? Thanks. >> > > Yes, there is a preference. Look in category "Morphic" and disable the > "Auto Enclose" preference. > > Some people like this preference a lot. Others think it is horrible. This implmenentation is not the best. The one in E/OCompletion is better. Levente > > Dave > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > From limitcase at gmail.com Sat Feb 21 03:48:42 2015 From: limitcase at gmail.com (Michael Rice) Date: Sat Feb 21 03:48:43 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? In-Reply-To: References: <20150220235528.GA20595@shell.msen.com> Message-ID: A better way to have, or not have, it is to use a key combination. Mathematica uses SHIFT-ALT ( , [ , or { to get (), [], or {}, otherwise you get the single character. Michael On Fri, Feb 20, 2015 at 8:29 PM, Levente Uzonyi wrote: > On Fri, 20 Feb 2015, David T. Lewis wrote: > > On Fri, Feb 20, 2015 at 02:02:07PM -0800, Kirk Fraser wrote: >> >>> The automatic supply of the right parenthesis when a left parenthesis is >>> typed appears to cost me more time in deleting the extra than it saves in >>> the more rare events when I can use the feature. How can I safely stop >>> it >>> for all the p, brackets, and curly braces? Thanks. >>> >>> >> Yes, there is a preference. Look in category "Morphic" and disable the >> "Auto Enclose" preference. >> >> Some people like this preference a lot. Others think it is horrible. >> > > This implmenentation is not the best. The one in E/OCompletion is better. > > Levente > > > >> Dave >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150220/a2090d6a/attachment.htm From bert at freudenbergs.de Sat Feb 21 22:04:41 2015 From: bert at freudenbergs.de (Bert Freudenberg) Date: Sat Feb 21 22:04:58 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? In-Reply-To: References: <20150220235528.GA20595@shell.msen.com> Message-ID: > On 20.02.2015, at 17:29, Levente Uzonyi wrote: > > On Fri, 20 Feb 2015, David T. Lewis wrote: > >> On Fri, Feb 20, 2015 at 02:02:07PM -0800, Kirk Fraser wrote: >>> The automatic supply of the right parenthesis when a left parenthesis is >>> typed appears to cost me more time in deleting the extra than it saves in >>> the more rare events when I can use the feature. How can I safely stop it >>> for all the p, brackets, and curly braces? Thanks. >>> >> >> Yes, there is a preference. Look in category "Morphic" and disable the >> "Auto Enclose" preference. >> >> Some people like this preference a lot. Others think it is horrible. > > This implmenentation is not the best. The one in E/OCompletion is better. I love the feature (in other editors), but hate its current behavior. If that one is better, why don't we use that? - Bert - -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4115 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150221/420a9fd1/smime.bin From dnorton at mindspring.com Sat Feb 21 23:04:04 2015 From: dnorton at mindspring.com (Dan) Date: Sat Feb 21 23:04:06 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? Message-ID: <54E90EE4.9624.1D3C22F@dnorton.mindspring.com> > On Sat, 21 Feb 2015, Bert Freudenberg wrote: >I love the feature (in other editors), but hate its current behavior. If that one is >better, why don't we use that? +1 -but retain the preference so it can be turned off. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150221/b742e64e/attachment-0001.htm From asqueaker at gmail.com Sun Feb 22 22:40:29 2015 From: asqueaker at gmail.com (Chris Muller) Date: Sun Feb 22 22:40:32 2015 Subject: [Newbies] Is there a preference setting to block automatic parentheses? In-Reply-To: References: <20150220235528.GA20595@shell.msen.com> Message-ID: >>> Some people like this preference a lot. Others think it is horrible. >> >> This implmenentation is not the best. The one in E/OCompletion is better. > > I love the feature (in other editors), but hate its current behavior. If that one is better, why don't we use that? This preference is part of the low-level interface which affects the overall fidelity of the Squeak user-experience. If we are going to make any changes to this, may we please start it out in the Inbox where we can all try it and discuss it in more objective terms than "love", "hate", "better" and "horrible"? I see OCompletion has a head version in SqueakMap, great! So we can try it out right now and see why its better.. From cunningham.cb at gmail.com Mon Feb 23 19:50:44 2015 From: cunningham.cb at gmail.com (Chris Cunningham) Date: Mon Feb 23 19:50:47 2015 Subject: [Newbies] Re: How to round a float? In-Reply-To: References: <3cb4daljp5iuh2dilf7djrrshdldhtkco4@4ax.com> Message-ID: On Fri, Feb 13, 2015 at 4:56 PM, nicolas cellier < nicolas.cellier.aka.nice@gmail.com> wrote: > ... > > If it's for monetary things like computing interests, then the advice is to > not use Float but ScaledDecimal. > > 100 * (1.05s2 raisedTo: 10) roundTo: 0.01s2 > -> 162.89s2 > > Nicolas > > So, for money, I would suggest not using ScaledDecimal, but rather FixedDecimal. ScaledDecimal can do funny things that you would not expect in real money land: m := 1/3 asScaledDecimal: 2. m "==> 0.33s2" m + m + m "==> 1.00s2" You shouldn't be allowed to add 33 cents together and get a whole dollar (usd, at least)! FixedDecimal actually rounds to the specified length (ScaledDecimal keeps the entire precision 'behind the curtains'). m := 1/3 asFixedDecimal: 2. m "==> 0.33" m + m + m "==> 0.99" http://www.squeaksource.com/FixedDecimal.html -cbc -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150223/cc37d445/attachment.htm