[Newbies] Re: Squeak dies when I click process browser
Can you package the .image and .changes file in an archive, so I will give it a look? Hilaire Le dimanche 09 novembre 2008 à 14:13 -0800, farnsworth2008 a écrit : Alt-. seems to do nothing. Once it dies it never seems to come back. I am running it on Windows. -Mark Hilaire Fernandes-4 wrote: Strange indeed. Could be related to a thread blocking the image when you invoke the process browser. What is happening when you press simultaneously the combinaison of keys [Alt]+[.] ? Hilaire farnsworth2008 a écrit : I am new to small talk and new to squeak. The first thing I am doing is exploring the user interface by clicking on stuff. Much of what I have seen is very cool and works well but I have also had problems with the system freezing up and becoming unresponsive. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners signature.asc Description: Ceci est une partie de message numériquement signée ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Removing a method...
Le lundi 10 novembre 2008 à 02:23 -0500, Tony Giaccone a écrit : I I say yes, I get a References To: browser with pointers to other classes where a method (message?) with the same signature is used However, none of those references will ever be to my class, they are made against classes that already exists. I don't want to touch those references, but I do want to remove my method. How do I do that? It's totally not clear to me. Yep, I guess when you are using the remove method from the refactoring tools, it will just make not possible to remove the method as long as there are places where this method name (message) is used. In that case, you can just use the non-refactoring remove tool from the same popup menu. The menu item is remove...(x). When the method is selected you can also use the [alt]+[x] shortcut. You may found that you do not need to use the refactoring version to remove a method, but more when you want to rename a message. In that latter, you have to be careful to rename your message use and not ones from other method with the same name. Hum, not sure it sounds clear. Hilaire signature.asc Description: Ceci est une partie de message numériquement signée ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Squeak dies when I click process browser
Strange indeed. Could be related to a thread blocking the image when you invoke the process browser. What is happening when you press simultaneously the combinaison of keys [Alt]+[.] ? Hilaire farnsworth2008 a écrit : I am new to small talk and new to squeak. The first thing I am doing is exploring the user interface by clicking on stuff. Much of what I have seen is very cool and works well but I have also had problems with the system freezing up and becoming unresponsive. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: block in recursion, Any cure for that kind of situation?
Le mardi 22 janvier 2008 à 22:16 +, Marcin Tustin a écrit : I'm an idiot. That doesn't work either. Why not? Because still nested, I guess. Anyway I want to use that for teacher to design programmaticaly interactige geometry figure for Drgeo. So it have to keep simple and be usable in a Workspace. The only alternative I see is to define a class with methods, but it is a bit more complex for the target audiance. Hilaire signature.asc Description: Ceci est une partie de message numériquement signée ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: block in recursion, Any cure for that kind of situation?
Indeed, and I am adapting from DrGeo1.1 which embede the Guile Scheme interpretor, see http://documentation.ofset.org/drgeo/fr/drgenius_93.html Hilaire Le mardi 22 janvier 2008 à 15:42 -0800, Ben Goetter a écrit : This is a maintenance nightmare waiting to happen. Use a proper method call, Squeak Smalltalk blocks are just similar enough to Scheme lambdas that I still fall into this trap, too. (letrec ((carre (lambda (s1 s2 s3 s4 n) (if ( n 0) (carre (segment s1 s2) (segment s2 s3) (segment s3 s4) (segment s1 s4) (- n 1)) 'oops-must-remember-this-is-Squeak-not-Scheme) Ben signature.asc Description: Ceci est une partie de message numériquement signée ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: block in recursion, Any cure for that kind of situation?
Hi Klaus, Thanks for the tip, I also need the fixTemps. It is not very elegant but it works. See the vidéo: http://squeak.ofset.org/drgeo/spiral.ogg Klaus D. Witzel a écrit : Hi Hilaire, ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] block in recursion, Any cure for that kind of situation?
I got an error Attempt to evaluate a block that is already being evaluated, when I call in recursion a block like carre := [:s1 :s2 :s3 :s4 :n | n 0 ifTrue: [carre valueWithArguments: {(segment value: s1 value: s2). (segment value: s2 value: s3). (segment value: s3 value: s4). (segment value: s1 value: s4). n-1}]] Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Somthing weird in Set
How can the following happen ? theSet includes: theOnject - false theSet asArray includes: theObject - true previous sent messages to theSet were add: remove:ifAbsent: The SetScanFor: looks strange. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Somthing weird in Set
nicolas cellier a écrit : It can happen most probably due to problems of hash code. Two objects that are equal SHOULD have same hash code. - either YourObject does define #= but does not define #hash - or you add theObject to theSet, then modify theObject, which has side effect of modifying its hash code, and then theObject cannot be found in theSet (in which case you have a cure: theSet rehash) Oh, yes it is exactly what it is happening, for odd reason I update the hash value of the inserted object Thanks Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Dead keys on Ubuntu
It seems dead key is not working with utf-8 encoding from the linux host. What we have found is to force to iso8859-1 before starting the VM See some details at (use google to translate if needed): http://community.ofset.org/wiki/Squeak_sur_GNU-Linux#Caract.C3.A8res_accentu.C3.A9s_avec_Ubuntu_Dapper_Drake Hilaire Fahr Jahrel a écrit : Hello, all-- I've been trying unsuccessfully for some hours to make my Squeak image accept diacritical characters under Ubuntu 7.04. I've tried all possible combinations of the -textenc, -encoding, and LC_CTYPE options I could but none worked. The diacritical characters either don't display or display incorrectly. Ironically, if I run Squeak via Wine, the diacritical characters display correctly. Any help pointing me to the right direction would be appreciated. My system configuration today is: Distro: Ubuntu 7.04 Squeak: 3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3 Squeak3.9alpha of 4 July 2005 [latest update: #7021] Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux default plugin location: /usr/local/lib/squeak/3.9-8/*.so Image: Tried with the vanilla 7067 image, the lasted squeak-dev image, and even Ramon Leon's image. :-) Any help is appreaciated. Thanks, Fahr ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Executing an external program
And what about OSCommand on Windows ? Hilaire David T. Lewis a écrit : On Fri, Jun 15, 2007 at 08:59:46AM +0200, Hilaire Fernandes wrote: David T. Lewis a ?crit : There is not (yet) a general cross-platform solution. If you can explain what kind of program you are trying to run, maybe I can give a suggestion. Thanks for for your feedback. I want to run the espeak program for speech synthesis. Basically I just want to run a command like: espeak Speech a few word or espeak Speech a few word -w output.wav In the first case, it may be better if the command is executed in non blocking mode for Squeak. In the second mode a blocking mode may be better, or even semaphore will be helpful. Hilaire, OSProcess will work well for this. When you run an external program, it gives you a process proxy in Squeak the keeps track of the run state of the external program, as well as exit status after the program completes. However, as I said this is not cross-platform. It will work on Linux and Unix, and will work on Mac OSX if you install the plugin from unix/linux. It will also work on Windows, but only if you build your own VM and modify some of the Windows platform source, so this is definitely not for beginners ;) So on, Windows, it is best to use FFI (but I don't think you can have a blocking mode with this). HTH, Dave ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Executing an external program
David T. Lewis a écrit : There is not (yet) a general cross-platform solution. If you can explain what kind of program you are trying to run, maybe I can give a suggestion. Thanks for for your feedback. I want to run the espeak program for speech synthesis. Basically I just want to run a command like: espeak Speech a few word or espeak Speech a few word -w output.wav In the first case, it may be better if the command is executed in non blocking mode for Squeak. In the second mode a blocking mode may be better, or even semaphore will be helpful. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Executing an external program
What are the possibility to execute an external program from Squeak? And portable for sebveral OS host? The programm I want to execute will do so briefly. I read aboud OSProcess, CommandShell but I am not sure where it is best to look at. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Squeasource.com project access right
Within *one* Squeaksource project, it is possible to have different class packages. Is it possible to assign different access right rule to these packages? I only found how to assign globally the access right rule to the whole squeaksource project. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Squeasource.com project access right
Lukas Renggli a écrit : Yes, one access right rule per project. It doesn't make much sense to assign access rules to packages as packages are no first-class entities in Squeak or SqueakSource. There are just versions of snapshots of a specific working set. The name and the contents of these versions might change with every commit. Not sure we talk about the same things. If you look a the 'Latest' link from http://www.squeaksource.com/iFichier.html you will see three different packages eFichier, iFichier and iFichierWeb. It is for these packages I want different access right, not for different versions of the same package. Yes, but from Squeak I can commit eFichier and change the filename in the commit dialog to iFichier for example. Ok, so I guess you mean it is not a good idea to have multiple packages in on project or so? Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Squeak slows to start up in Windows
Asselin Raymond a écrit : Takes about 3 seconds here, with image in different directory from VM. On Tue, 06 Mar 2007 07:39:08 -0800, Hilaire Fernandes [EMAIL PROTECTED] wrote: I am pretty sure I read it somewhere in the Squeak mailing list why Squeak can be slow to start in Windows... but I cannot find the information. Bonjour Hilaire, si je me souviens bien (IIRC) the problem was that windows look lot of places to find the .image and this is long. If you drop the .image directly ont the squeak.exec you’ll have a fast start, I think. Salut Thanks for the tips. I finally took the Herbert option, as this is for a deployment in a school for experimentation test, starting the batch is simpler for kids. Also it will probably prevent the kids from starting several time the VM executable. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] How to remove the need of the Squeak.source file
For distribution purpose to end user, I don't want to ship the Squeak.source file. How can we remove the check of the sourcefile at image start up ? Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Squeak slows to start up in Windows
I am pretty sure I read it somewhere in the Squeak mailing list why Squeak can be slow to start in Windows... but I cannot find the information. I have just rename the image and executable with the same name, located in the same directory, but it start a bit slowly, about 20s. What is the trick? Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Creating custom events in a domain.
Mispunt a écrit : Hi Squeakers, I am working an a project where we have a domain. this domain should not know the classes outside the world, so to communicate the domain should fire an event where the classes outside the domain could react to. How could this be done? I didn't find anything about it in the wiki.. Kind regards, Mispunt You are looking for the Observer pattern, see this small note about it http://wiki.squeak.org/squeak/1214 Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Another newbie Morphic question
mike clemow a écrit : Now I can create a new DuckMorph. Will Squeak support PNG transparency? I guess I could find that out myself. :) Yes, transparency and alpha-transparency as well. Just be sure to select the 32bit depth for display mode in the WorldAppearance menu. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] Drawing an Arc.
Hello Claudio, You may want to give a try to my simple DrGArcMorph in the enclosed change set. To use it: a :=DrGArcMorph new a center: [EMAIL PROTECTED] radius: 100 origin: 0 length: 3.1415 a openInWorld origin and length are in radian unit Hilaire Claudio Acciaresi a écrit : Hello, I`m trying to draw an arc using Morphs, exists an easy way to do it? The acrs that i´m trying to create are like smiles of a face. I see FaceMorph, Gesture morph, but i do not want to use a PolygonMorph. Thanks a lot Claudio. 'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 9 July 2006 at 12:23:31 pm'! DrGPolylineMorph subclass: #DrGArcMorph instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'DrGeoII-GeometryView'! !DrGArcMorph methodsFor: 'accessing' stamp: 'HilaireFernandes 1/17/2006 12:29'! center: aPoint radius: aFloat origin: anOrigin length: aLength |step costep sinstep csteX csteY mobile| step := 5 / aFloat * aLength sign. (aLength / step) abs 100 ifTrue: [step := aLength / 100]. costep := step cos. sinstep := step sin. csteX := aPoint x * (1 - costep) + (aPoint y * sinstep). csteY := aPoint y * (1 - costep) - (aPoint x * sinstep). mobile := aPoint + (aFloat * (anOrigin cos @ anOrigin sin)). vertices := OrderedCollection new add: mobile; yourself. 0 to: (aLength / step) truncated -1 do: [:i| mobile := (mobile x * costep - (mobile y * sinstep) + csteX) @(mobile x * sinstep + (mobile y * costep) + csteY). vertices add: mobile]. mobile := aPoint + (aFloat * ((anOrigin + aLength) cos @ (anOrigin + aLength) sin)). vertices add: mobile. self computeBounds! ! ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] Traditional Chinese characters in Squeak
Hello Bruno, Your best bet could be to group motivated persons and do the job. I know Hung Chao-Kuei in CC is in contact with organisation and people translating free software in traditional chinese, may be he can put you in contact with people to help. Hilaire bruno galmar a écrit : Hi! I would like to know if Traditional Chinese is available as a language for the Squeak environment. I am living in Taiwan and would like that children in my wife's school use Squeak with menus in Traditional Chinese characters. I saw that the Japanese environment is available. It would be very nice if a Chinese one is available. Thanks for your help. Shan __ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail ___ 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] A true beginner with undo
Guy a écrit : Hi beginners, I'm beginning too with Squeak and one of the most important things for à beginner is how to undo. So with Etoys and the drawing tool, I can undo one level an the only way to do more, is to use the eraser. Something I misunderstand or is it true ? Yes, only one level of undo seems to be implemented in the drawing tool. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners