[Newbies] Help needed

2015-03-27 Thread Raymond Asselin
I get an app that I made in Squeak. I would like to print the content of some 
OrderedCollection but don't know how to do that. 
I thought to us a FileStream but never worked with Stream before any clue or 
reference is welcome.
My objectif is to print a list of my orderedCollection. I want a hard copy...

Raymond Asselin___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Help needed

2015-03-27 Thread Raymond Asselin
This is a Maui UI

Herbert König said: You'd need to give some details about your collection for 
more help. So it is:

When i select 'fileOutMedicaments' , I want to produce a text file that I can 
print with a printer. And the content would be the 'sortedMedicaments' list. I 
don't want to print to Transcript. It is easy to export in graphic format but I 
want a text file…At least something I can open in a text editor an say 
Print…to get hard copy.

So the content is : #date, #temps, #nom, #commentaire. 

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Help needed

2015-03-27 Thread Raymond Asselin
Thanks to everybody, with your hints I came with a solution which satisfies me.

It's done now
Again thanks
 Le 2015-03-27 à 12:48, Mateusz Grotek unodue...@poczta.onet.pl a écrit :
 
 At least something I can open in a text editor an say Print…to get hard 
 copy.
 
 You have three options:
 1. To create a normal text file (.txt)
 2. To create a PostScript file (.ps)
 3. To create an image (.jpg or .png)
 
 Please choose one. :-)
 
 P.S.
 PostScript files can be printed directly in Linux. In Windows it depends on 
 your printer. If it supports PostScript you can send it directly, if not you 
 need some software, like GhostScript.
 ___
 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


Re: [Newbies] How to doubble sort a collection

2015-02-16 Thread Raymond Asselin
I Got it. 
You talked about generate heading in the past but can't figure how to send it. 
Now it's clear hover your mouse inside the yellowish area of the collection, 
press ESC to invoke the menu, then select generate heading.

Envoyé de mon iPhone

 Le 2015-02-16 à 16:36, Chris Muller asquea...@gmail.com a écrit :
 
 Hi Raymond,
 
 On Wed, Feb 4, 2015 at 12:42 PM, Raymond Asselin jgr.asse...@me.com wrote:
 SortedNotesExample.png
 
 
 
 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


Re: [Newbies] How to doubble sort a collection

2015-02-04 Thread Raymond Asselin



 Le 2015-02-04 à 13:33, Tobias Pape das.li...@gmx.de a écrit :
 
 
 can you give an example?
 

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] How to doubble sort a collection

2015-02-04 Thread Raymond Asselin
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 pdebr...@gmail.com 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


Re: [Newbies] How to doubble sort a collection

2015-02-04 Thread Raymond Asselin
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 cunningham...@gmail.com 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 jgr.asse...@me.com 
 mailto:jgr.asse...@me.com 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 pdebr...@gmail.com 
  mailto:pdebr...@gmail.com a écrit :
 
  a date = b date
ifTrue:[a temps  b temps]
ifFalse:[a date  b date]
 
 ___
 Beginners mailing list
 Beginners@lists.squeakfoundation.org 
 mailto:Beginners@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/mailman/listinfo/beginners 
 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


Re: [Newbies] How to doubble sort a collection

2015-02-04 Thread Raymond Asselin
Thank to everybody because I learned a lot here
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] How to doubble sort a collection

2015-02-04 Thread Raymond Asselin
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?___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: Beginners Digest, Vol 102, Issue 13

2014-11-26 Thread Raymond Asselin
I suppose you put self halt. ?

Envoyé de mon iPhone

 Le 2014-11-26 à 12:42, dnor...@mindspring.com a écrit :
 
 Hi Casey,
 
 The target is Browser, which does not override the method.
 The hierarchy is: ProtoObject, Object, Model, StringHolder (has the method), 
 CodeHolder, Browser, et seq.
 
  
 
 I put the halt in StringHolderperform:orSendTo: and that didn't bring up 
 the debugger.
 
  
 
 There are 13 implementers of perform:orSendTo: and I can put a halt in each 
 one in order to start the research, but I don't understand why the hierarchy 
 seems to be bypassed.
 
  
 
 - Dan
 Date: Tue, 25 Nov 2014 21:43:57 -0800
 From: Casey Ransberger 
 Subject: Re: [Newbies] accept (s)
 To: dnor...@mindspring.com , A friendly
  place to get answers to even the most basic questions about Squeak.
  
 Message-ID: 3b1c3417-8c08-4cb9-844b-e6d28a51c...@gmail.com
 Content-Type: text/plain; charset=us-ascii
 
 Hi Dan,
 
 That doesn't sound quite right. 
 
 #perform:orSendTo: is probably overridden in Browser, but... have you looked 
 to see if there's an implementation of it on Object or maybe ProtoObject or 
 something like that?
 
 I'm pretty sure that #perform: and cousins are usually general. 
 
 Not sure (on a cellphone) without looking at an actual running system, but 
 try looking up the inheritance chain for another implementation of the same 
 selector. That might help. 
 
 Let me know either way, when I get back to a real computer I'll look into it 
 for you if you don't get it figured out by then. 
 
 Good hunting!
 
 Casey
 
  On Nov 25, 2014, at 5:30 PM, wrote:
  
  An inspector for the menu item accept (s) reveals a selector of 
  #perform:orSendTo: which is implemented in Browser.
  
  I want to follow the code and I put a halt in #perform:orSendTo: but the 
  debugger never opened. What gives?
  
  
  
  - Dan
  
  ___
  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


Re: [Newbies] Terse Guide to Squeak

2014-10-05 Thread Raymond Asselin
And in the examples the conform: method  doesn't exist in squeak

Envoyé de mon iPhone

 Le 2014-10-04 à 21:36, summae3...@mypacks.net a écrit :
 
 Thanks, Bert. The hard part was to get etoysinbox added as a repository. The 
 upload took place, AFIK.
 
 - Dan
 -Original Message-
 From: Bert Freudenberg 
 Sent: Oct 4, 2014 1:09 PM
 To: A friendly place to get answers to even the most basic questions about
  Squeak. 
 Subject: Re: [Newbies] Terse Guide to Squeak
 
 On 04.10.2014, at 18:56, wrote:
 
  When I tried to program a table lookup using the usually very helpful 
  Terse Guide, I noticed a couple of things...
  
  1. The remark for detect: is find position of first element that passes 
  test but it should be return first element that passes test
  
  2. There seems to be no alternative in the guide for finding the first 
  element that passes a test. After some archaeology ;) I found 
  SequenceableCollectionfindFirst: which is useful for table lookups.
  
  I updated TerseGuideHelp class to change the remark for detect: wherever 
  it occurs and added findFirst: to Array, OrderedCollection, 
  SortedCollection, and Interval. How can I contribute this to the 
  All-In-One?
 
 
 You submit the changed package via Monticello.
 
 I made a how-to video a while ago, the relevant part is from 1:20 to 4:00:
 
  https://www.youtube.com/watch?v=2QKmfI4taGo#t=1m20s
 
 This is for Etoys, but the difference is really just the repository names - 
 you submit to inbox. Should only take 3 minutes :)
 
 - Bert -
 
 
 
 ___
 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


Re: [Newbies] Terse Guide to Squeak

2014-10-05 Thread Raymond Asselin
Sorry the examples I mentioned are not in the image but on the wiki version. 

Envoyé de mon iPhone

 Le 2014-10-05 à 11:47, David T. Lewis le...@mail.msen.com a écrit :
 
 On Sun, Oct 05, 2014 at 11:24:46AM -0400, Raymond Asselin wrote:
 And in the examples the conform: method  doesn't exist in squeak
 
 I do not understand what you mean. Which examples are you referring to?
 I do not see any references to #conform: anywhere in my Squeak image.
 
 Dave
 
 
 
 Le 2014-10-04 ?? 21:36, summae3...@mypacks.net a ??crit :
 
 Thanks, Bert. The hard part was to get etoysinbox added as a repository. 
 The upload took place, AFIK.
 
 - Dan
 -Original Message-
 From: Bert Freudenberg 
 Sent: Oct 4, 2014 1:09 PM
 To: A friendly place to get answers to even the most basic questions about
 Squeak. 
 Subject: Re: [Newbies] Terse Guide to Squeak
 
 On 04.10.2014, at 18:56, wrote:
 
 When I tried to program a table lookup using the usually very helpful 
 Terse Guide, I noticed a couple of things...
 
 1. The remark for detect: is find position of first element that passes 
 test but it should be return first element that passes test
 
 2. There seems to be no alternative in the guide for finding the first 
 element that passes a test. After some archaeology ;) I found 
 SequenceableCollectionfindFirst: which is useful for table lookups.
 
 I updated TerseGuideHelp class to change the remark for detect: wherever 
 it occurs and added findFirst: to Array, OrderedCollection, 
 SortedCollection, and Interval. How can I contribute this to the 
 All-In-One?
 
 
 You submit the changed package via Monticello.
 
 I made a how-to video a while ago, the relevant part is from 1:20 to 4:00:
 
 https://www.youtube.com/watch?v=2QKmfI4taGo#t=1m20s
 
 This is for Etoys, but the difference is really just the repository names 
 - you submit to inbox. Should only take 3 minutes :)
 
 - Bert -
 ___
 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


Re: [Newbies] Where are images saved?

2014-09-04 Thread Raymond Asselin


Envoyé de mon iPhone

 Le 2014-09-04 à 02:03, Herbert König herbertkoe...@gmx.net a écrit :
 
 Hi Emmanuel,
 
 assuming you use a all in one you will find it in the folder 
 \Squeak-4.5-All-in-One.app\Contents\Resources.
 
 Don't know how a Mac shows this path.
 
I think (don't have my Mac at hand ) you just press the option key when 
selecting Squeak-4.5-All-in-One.app and you'll have the choice to open a bundle 
which is an apple container. 
 
 In a workspace you can enter Smalltalk imagePath (without ) and printIt. 
 This will give you the path.
 
 That aside I'd try to use the image that goes with the book because 4.5 
 differs quite a lot from the image used in the book.
 
 http://gforge.inria.fr/frs/download.php/4624/SqueakByExample-1.3.zip gets you 
 the relevant image. Someone who owns a Mac may show you how to get the 
 relevant sources file (V3.9) and a 3.9 VM for the Mac.
 
 I can go searching if you need further help but hopefully someone with a Mac 
 chimes in.
 
 Cheers,
 
 Herbert
 
 Am 04.09.2014 um 05:19 schrieb Emmanuel Genard:
 I just started going through Squeak by Example and I already have a problem. 
 I'm running Squeak 4.5 on a Macbook Air and I can't find where the image 
 files are saved on my hard drive. Can anyone point me in the right direction?
 
 
 Thank You
 Emmanuel Genard
 
 
 ___
 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


Re: [Newbies] Etoy tutorials on Squeakland and documentation in general

2006-10-23 Thread Raymond Asselin
Le 2006/10/20, lanas [EMAIL PROTECTED] écrivait :


parce que cela s'adonne que je comprends trés bien le francais !

So I have found excerpts at Eyrolles:

http://www.eyrolles.com/Accueil/Livre/9782212110234/livre-squeak-
programmation.php

But it doesn't seem to be available in America (Canada specifically).
Browsing quickly the sample chapters, the book looks quite
interesting.

Bonjour Alain tu peux sûrement le commander dans une librairie, je
l'ai acheté à la librairie de l'université du Québec à Montréal lorsqu'il
a été publié.

Effectivement c'est un très bon livre de Stéphane et Xavier

Salut
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: Hi I'm new

2006-10-23 Thread Raymond Asselin
Le 2006/10/20, Serge Stinckwich [EMAIL PROTECTED]
écrivait :

Alexandre Jasmin a écrit : It'd be fun to meet other Squeakers in
person and hopefully share a few
 tricks with them. There was an email on squeak-dev about a
Smalltalk
 meeting in Toronto but it's a bit difficult for me to get there
 especially during the week. Are there any Smalltalkers in
Montreal?

Bonjour Alexandre,  bienvenue à Squeak, oui il y a quelques
Squeakers à Montréal qui ne se sont jamais rencontrés cependant.
J'en suis, je demeure à Longueuil. Il y a aussi Benoît St-Jean qui est
sporadiquement ici et aux USA.

Çà serait intéressant de se rencontrer pour parler de Squeak si çà
t'intéresse également.  Fais-moi signe par courriel privé.

Ciao
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners