Re: [Pharo-users] Re RFC Minecraft Server
On Sun, Mar 13, 2016 at 8:12 AM, Andy Burnett wrote: > I think that is a really exciting idea. I would love to help. > > Are you thinking about a minecraft, or minecraft PE server? > > My kids play minecraft on their iPads and this isn't compatible with PC > based minecraft. However, there is a nice minecraft PE server - written in > PHP. Which one? I was thinking of the standard PC version since I understood the PE version was not so amenable to mods. Actually my kids have been playing PE edition on iPads, and I bought them second hand laptops to run the PC edition to do modding. Still discovering how it all works. cheers -ben
[Pharo-users] Re RFC Minecraft Server
I think that is a really exciting idea. I would love to help. Are you thinking about a minecraft, or minecraft PE server? My kids play minecraft on their iPads and this isn't compatible with PC based minecraft. However, there is a nice minecraft PE server - written in PHP. Cheers Andy
Re: [Pharo-users] Roassal2 on Ubuntu 64
Aha, I followed the Quick Start at https://dl.dropboxusercontent.com/u/31543901/AgileVisualization/QuickStart/0101-QuickStart.html and didn't notice anything there. Cheers, Evan -- View this message in context: http://forum.world.st/Roassal2-on-Ubuntu-64-tp4883675p4884245.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Roassal2 on Ubuntu 64
I knew the 32bit cairo was mentioned somewhere http://smalltalkhub.com/#!/~ObjectProfile/Roassal2 at the very end But it most certainly should be mentioned on more places. Peter On Thu, Mar 10, 2016 at 5:48 PM, Sven Van Caekenberghe wrote: > > > On 10 Mar 2016, at 17:08, Evan Donahue wrote: > > > > D'oh. Yep, this did it. I think I've been bitten by 32 bits before both > on > > sound and on file opening. One day I'll learn, and on that day, Pharo > will > > be 64 bit. > > ;-) > > > Thanks, > > Evan > > > > > > > > -- > > View this message in context: > http://forum.world.st/Roassal2-on-Ubuntu-64-tp4883675p4883840.html > > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > > >
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
> On 12 Mar 2016, at 21:09, Hernán Morales Durand > wrote: > > Welcome Clément, > > 2016-03-12 6:42 GMT-03:00 Clément Dumazy : > Hello, > > I'm a French student who have learned Pharo for 2 months during a university > course. > As this was the first time I use Pharo IDE and the first time I program in > Pharo, my teacher suggested me to send a mail on the mailing list if I > encounter problems. > > I encountered some problems/suggestions with using the IDE : > • As I crashed the IDE several times, is there a way to automatically > save the image every 5 minutes (or every other frequency) to avoid the loss > of my work ? > > [ [ true ] whileTrue: [ > (Delay forSeconds: 300) wait. > Smalltalk snapshot: true andQuit: false > ] ] forkAt: Processor userInterruptPriority. > > You can access the Process Browser to stop the process. This is not such a good idea, it would/could do more harm than it helps. Especially for a beginner. Just my opinion. > Cheers, > > Hernán
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
Welcome Clément, 2016-03-12 6:42 GMT-03:00 Clément Dumazy : > Hello, > > I'm a French student who have learned Pharo for 2 months during a > university course. > As this was the first time I use Pharo IDE and the first time I program in > Pharo, my teacher suggested me to send a mail on the mailing list if I > encounter problems. > > I encountered some problems/suggestions with using the IDE : > >- As I crashed the IDE several times, is there a way to automatically >save the image every 5 minutes (or every other frequency) to avoid the loss >of my work ? > > [ [ true ] whileTrue: [ (Delay forSeconds: 300) wait. Smalltalk snapshot: true andQuit: false ] ] forkAt: Processor userInterruptPriority. You can access the Process Browser to stop the process. Cheers, Hernán
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
Still, this should be part of the scripts as mentioned in my comment at the end of the mentioned link. Phil On Sat, Mar 12, 2016 at 1:23 PM, Julien Delplanque wrote: > Hi Clement, > > On 12/03/16 10:42, Clément Dumazy wrote: > >> - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I >> could >> copy/paste from other software like Gedit or Firefox. >> >> I had the same problem. There is a little trick to resolve this: [1] > (second message). > > Sadly, there are still webpages where copy/paste from it to Pharo does not > work :(. > > Julien > > Links: > [1]: > http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html > > >
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
2016-03-12 13:19 GMT+01:00 Ben Coman : > On Sat, Mar 12, 2016 at 5:42 PM, Clément Dumazy > wrote: > > Hello, > > > > I'm a French student who have learned Pharo for 2 months during a > university > > course. As this was the first time I use Pharo IDE and the first time I > program in > > Pharo, my teacher suggested me to send a mail on the mailing list if I > > encounter problems. > > Nice to hear from someone new to Pharo taking the time to let us know > how to improve. I hope you have a long and prosperous experience with > Pharo. > > > As I crashed the IDE several times, is there a way to automatically save > the > > image every 5 minutes (or every other frequency) to avoid the loss of my > > work ? > > Could I just clarify if this was a "crash" where the Image exited, or > a "lockup" where the Image froze. Since the code you develop and > execute runs in the same thread as the IDE, an error in you code that > (for example) loops forever will block the UI from operating. Do you > know about the system escape keypress [Alt .] "alt-period" for > breaking out of such a situation? > > I didn't know this. Thank you it will help me next times ! > > I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could > > copy/paste from other software like Gedit or Firefox. > > I'm on Debian 8 Jessie which uses MATE Desktop Environment 1.8.1. Its > similar vintage to 14.04 but I don't know what desktop it uses? > > I just downloaded the latest build 50636 and tested against Chrome. I > had no problem copying text from a random web page into a playground > in Pharo. But I may have a different VM. Could you post the exact > links you downloaded, and also the VM and Image shown by World menu > > System > System Reporter. Here is mine... > > Image > - > /home/ben/.local/share/Pharo/images/Pharo 5.0 (beta)-50636/Pharo 5.0 > (beta)-50636.image > Pharo5.0 > Latest update: #50636 > Unnamed > > Virtual Machine > --- > /home/ben/.local/share/Pharo/VMs/spur/pharo-vm/pharo > CoInterpreter VMMaker.oscog-eem.1630 uuid: > 2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016 > StackToRegisterMappingCogit VMMaker.oscog-eem.1630 uuid: > 2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016 > https://github.com/estebanlm/pharo-vm.git Commit: > 21ec004cce7d26010c18d357c805a0e1a4ffe376 Date: 2016-01-14 11:42:33 > +0100 By: Esteban Lorenzano Jenkins build #498 > > Julien help me for this problem with the option : --textenc utf8 This is what I obtain : Image - /home/clement/Softwares/pharo4.0/shared/Pharo4.0.image Pharo4.0 Latest update: #40626 Unnamed Virtual Machine --- /home/clement/Softwares/pharo4.0/bin/pharo NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 https://github.com/pharo-project/pharo-vm.git Commit: ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: Esteban Lorenzano Jenkins build #14826 Unix built on May 15 2014 18:29:39 Compiler: 4.6.3 VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: Esteban Lorenzano Jenkins build #14826 NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 > > > Last problem that I have seen, is that I couldn't use Pharo on my > windows 10 > > Computer. I have downloaded the last version (windows version) on > pharo.org > > and when I try to execute it (without and with administrator mode), I > have a > > pop-up who appear. I made a screenshot of this pop-up and put it in > > attachment to this mail. > > Could you provide the exact links you downloaded from? > > I download it on this page : http://pharo.org/download And the exact link is : http://files.pharo.org/platform/Pharo4.0-win.zip > > I hope that I have posted this mail in the good mailing list. > > Yep, you found the right spot. > cheers -ben > > Thank you for your answer, Cheers, Clément
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
Thank you Julien. Your solution works very well ! 2016-03-12 13:23 GMT+01:00 Julien Delplanque : > Hi Clement, > > On 12/03/16 10:42, Clément Dumazy wrote: > >> - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I >> could >> copy/paste from other software like Gedit or Firefox. >> >> I had the same problem. There is a little trick to resolve this: [1] > (second message). > > Sadly, there are still webpages where copy/paste from it to Pharo does not > work :(. > > Julien > > Links: > [1]: > http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html > >
Re: [Pharo-users] RFC Minecraft Server
It would be awesome but sounds like a (very) big project. I would provide help if I was not already suffocating under too much projects... :-( Julien On 12/03/16 18:38, Ben Coman wrote: I'm not ready to do this yet, but just surveying interest. I'm thinking of creating a Minecraft server using Pharo. My kids are enthusiastic about playing Minecraft and I think its a great platform to grow their creativity and cognitive skills per [1]. Much better than passively watching TV! [1] http://minemum.com/minecraft-educational I'm particularly interested in using Minecraft modding as a platform to teach programming to my kids. I had high hopes for the Scratch-like interface of learntomod.com, but I found it awkward and unsuitable. Other options for writing mods include Java[2], Javascript [3] or Lua[4][5]. For now I'll probably settle on Lua, but I'd prefer to be teaching them with Phratch and later directly with Pharo. [2] https://blogs.oracle.com/arungupta/entry/introducing_kids_to_java_programming [3] http://scriptcraftjs.org/ [4] http://www.computercraft.info/wiki/Main_Page [5] https://book.cuberite.org/ Ignoring client-side modding that IIUC is only applicable to single player mode, mods are implemented on the server. Servers are written in several languages [6] and it would be nice to make one in Pharo, with Woden providing a basic 3D viewer as a management tool. Documentation available here [7] [6] http://minecraft.gamepedia.com/Custom_servers [7] http://wiki.vg/How_to_Write_a_Server cheers -ben P.S. Along the way I found several pointers at the following being competent info on optimising voxel engines... http://0fps.net/2015/01/23/collision-detection-part-3-benchmarks/ http://0fps.net/2012/01/14/an-analysis-of-minecraft-like-engines/ http://0fps.net/2012/06/30/meshing-in-a-minecraft-game/ http://0fps.net/2012/07/07/meshing-minecraft-part-2/
[Pharo-users] RFC Minecraft Server
I'm not ready to do this yet, but just surveying interest. I'm thinking of creating a Minecraft server using Pharo. My kids are enthusiastic about playing Minecraft and I think its a great platform to grow their creativity and cognitive skills per [1]. Much better than passively watching TV! [1] http://minemum.com/minecraft-educational I'm particularly interested in using Minecraft modding as a platform to teach programming to my kids. I had high hopes for the Scratch-like interface of learntomod.com, but I found it awkward and unsuitable. Other options for writing mods include Java[2], Javascript [3] or Lua[4][5]. For now I'll probably settle on Lua, but I'd prefer to be teaching them with Phratch and later directly with Pharo. [2] https://blogs.oracle.com/arungupta/entry/introducing_kids_to_java_programming [3] http://scriptcraftjs.org/ [4] http://www.computercraft.info/wiki/Main_Page [5] https://book.cuberite.org/ Ignoring client-side modding that IIUC is only applicable to single player mode, mods are implemented on the server. Servers are written in several languages [6] and it would be nice to make one in Pharo, with Woden providing a basic 3D viewer as a management tool. Documentation available here [7] [6] http://minecraft.gamepedia.com/Custom_servers [7] http://wiki.vg/How_to_Write_a_Server cheers -ben P.S. Along the way I found several pointers at the following being competent info on optimising voxel engines... http://0fps.net/2015/01/23/collision-detection-part-3-benchmarks/ http://0fps.net/2012/01/14/an-analysis-of-minecraft-like-engines/ http://0fps.net/2012/06/30/meshing-in-a-minecraft-game/ http://0fps.net/2012/07/07/meshing-minecraft-part-2/
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
Hi Clement, On 12/03/16 10:42, Clément Dumazy wrote: - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could copy/paste from other software like Gedit or Firefox. I had the same problem. There is a little trick to resolve this: [1] (second message). Sadly, there are still webpages where copy/paste from it to Pharo does not work :(. Julien Links: [1]: http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
On Sat, Mar 12, 2016 at 5:42 PM, Clément Dumazy wrote: > Hello, > > I'm a French student who have learned Pharo for 2 months during a university > course. As this was the first time I use Pharo IDE and the first time I > program in > Pharo, my teacher suggested me to send a mail on the mailing list if I > encounter problems. Nice to hear from someone new to Pharo taking the time to let us know how to improve. I hope you have a long and prosperous experience with Pharo. > As I crashed the IDE several times, is there a way to automatically save the > image every 5 minutes (or every other frequency) to avoid the loss of my > work ? Could I just clarify if this was a "crash" where the Image exited, or a "lockup" where the Image froze. Since the code you develop and execute runs in the same thread as the IDE, an error in you code that (for example) loops forever will block the UI from operating. Do you know about the system escape keypress [Alt .] "alt-period" for breaking out of such a situation? > I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could > copy/paste from other software like Gedit or Firefox. I'm on Debian 8 Jessie which uses MATE Desktop Environment 1.8.1. Its similar vintage to 14.04 but I don't know what desktop it uses? I just downloaded the latest build 50636 and tested against Chrome. I had no problem copying text from a random web page into a playground in Pharo. But I may have a different VM. Could you post the exact links you downloaded, and also the VM and Image shown by World menu > System > System Reporter. Here is mine... Image - /home/ben/.local/share/Pharo/images/Pharo 5.0 (beta)-50636/Pharo 5.0 (beta)-50636.image Pharo5.0 Latest update: #50636 Unnamed Virtual Machine --- /home/ben/.local/share/Pharo/VMs/spur/pharo-vm/pharo CoInterpreter VMMaker.oscog-eem.1630 uuid: 2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016 StackToRegisterMappingCogit VMMaker.oscog-eem.1630 uuid: 2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016 https://github.com/estebanlm/pharo-vm.git Commit: 21ec004cce7d26010c18d357c805a0e1a4ffe376 Date: 2016-01-14 11:42:33 +0100 By: Esteban Lorenzano Jenkins build #498 > Last problem that I have seen, is that I couldn't use Pharo on my windows 10 > Computer. I have downloaded the last version (windows version) on pharo.org > and when I try to execute it (without and with administrator mode), I have a > pop-up who appear. I made a screenshot of this pop-up and put it in > attachment to this mail. Could you provide the exact links you downloaded from? > I hope that I have posted this mail in the good mailing list. Yep, you found the right spot. cheers -ben
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
Thank you Serge ! That will help me very well. 2016-03-12 11:59 GMT+01:00 Serge Stinckwich : > On Sat, Mar 12, 2016 at 10:42 AM, Clément Dumazy > wrote: > > Hello, > > Hi Clement, > Welcome in the Pharo community ! > > > I'm a French student who have learned Pharo for 2 months during a > university > > course. > > As this was the first time I use Pharo IDE and the first time I program > in > > Pharo, my teacher suggested me to send a mail on the mailing list if I > > encounter problems. > > > > I encountered some problems/suggestions with using the IDE : > > > > As I crashed the IDE several times, is there a way to automatically save > the > > image every 5 minutes (or every other frequency) to avoid the loss of my > > work ? > > This is almost impossible to lose code in Pharo ! Your code > modifications are logged in the changes file. > Please have a look to this video that explain how to recover changes > when you crash you image: > https://www.youtube.com/watch?v=hFvsvOsvqwo > > -- > Serge Stinckwich > UCBN & UMI UMMISCO 209 (IRD/UPMC) > Every DSL ends up being Smalltalk > http://www.doesnotunderstand.org/ > >
Re: [Pharo-users] Problems/Suggestions with Pharo IDE
On Sat, Mar 12, 2016 at 10:42 AM, Clément Dumazy wrote: > Hello, Hi Clement, Welcome in the Pharo community ! > I'm a French student who have learned Pharo for 2 months during a university > course. > As this was the first time I use Pharo IDE and the first time I program in > Pharo, my teacher suggested me to send a mail on the mailing list if I > encounter problems. > > I encountered some problems/suggestions with using the IDE : > > As I crashed the IDE several times, is there a way to automatically save the > image every 5 minutes (or every other frequency) to avoid the loss of my > work ? This is almost impossible to lose code in Pharo ! Your code modifications are logged in the changes file. Please have a look to this video that explain how to recover changes when you crash you image: https://www.youtube.com/watch?v=hFvsvOsvqwo -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/
[Pharo-users] Problems/Suggestions with Pharo IDE
Hello, I'm a French student who have learned Pharo for 2 months during a university course. As this was the first time I use Pharo IDE and the first time I program in Pharo, my teacher suggested me to send a mail on the mailing list if I encounter problems. I encountered some problems/suggestions with using the IDE : - As I crashed the IDE several times, is there a way to automatically save the image every 5 minutes (or every other frequency) to avoid the loss of my work ? - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could copy/paste from other software like Gedit or Firefox. - Last problem that I have seen, is that I couldn't use Pharo on my windows 10 Computer. I have downloaded the last version (windows version) on pharo.org and when I try to execute it (without and with administrator mode), I have a pop-up who appear. I made a screenshot of this pop-up and put it in attachment to this mail. I hope that I have posted this mail in the good mailing list. Thanks for reading, Clement
Re: [Pharo-users] How to access XML tag name?
Hi Stephane, Do you want to extract subtree from a XML? Or just extract the text in specific nodes? I think StAX parser is more friendly for selecting nodes (you don't have to subclass), i.e.: | parser doc | doc := ' Vertigo Drame USA James Stewart John Ferguson Kim Novak Madeleine Elster Scottie Ferguson, ancien inspecteur de police, est sujet au vertige depuis qu''il a vu mourir son collegue. Elster, son ami, le charge de surveiller sa femme, Madeleine, ayant des tendances suicidaires. Amoureux de la jeune femme Scottie ne remarque pas le piege qui se trame autour de lui et dont il va etre la victime... '. parser := XMLPullParser parse: doc. [ parser isEndDocument ] whileFalse: [ parser if: 'FILM' peek: [ : found | Transcript show: found name , ' -> ' , found attributes asString; cr. parser next. Transcript show: parser tagName ]. parser next ] Anyway if you want to try with SAX, have a look at #test01ParsingNodes and add some halts in BioNCBIBlastSAXParser to see it in action (that's in BioSmalltalk). I didn't used visitors though. Hernán 2016-03-12 5:33 GMT-03:00 stepharo : > This is more complex than that. > Because I would like to have a visitor generated from the token I give. > > And this > start > character > end > > does not really help me. > > Because in SAXHandler I have > start > where I should store the properties >same in characters: > to store the name >end > where I should invoke the visitor > > Now it means that I should only store the information for the tag I want. > Does anybody already did that and publish it? > I know doru did that in the past. > I will try. > > Stef > > > > Le 11/3/16 14:17, Blondeau Vincent a écrit : > >> Hi, >> >> >> The qualified name in function startElement: aQualifiedName attributes: >> aDictionary, will be FILMS and after FILM and after TITRE,...etc... >> So, you have to tell to your shouldVisit: method to accept TITRE too and >> get in and after you should implement characters: to get the content on the >> tag. >> >> Vincent >> >> -Message d'origine- >>> De : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] De la >>> part de >>> stepharo >>> Envoyé : vendredi 11 mars 2016 14:04 >>> À : Any question about pharo is welcome >>> Objet : [Pharo-users] How to access XML tag name? >>> >>> Hi >>> >>> Yesterday I started to hack a smart SAX handler. The idea is that I want >>> to just >>> specify the tags I want to visit and the SAX handler should invoke >>> (generated) >>> visit methods. Like that I can easily get visitors on XML domain. >>> >>> Here is an example of what I did. >>> >>> | h | >>> h := SmartSAXHandler new >>> visitor: (MyFilmVisitor new visitTags: #(FILM ROLE)); >>> on: FileSystem workingDirectory / 'FILMS.XML'. >>> h parseDocument. >>> ^ h >>> >>> >>> >>> SmartSAXHAndler >> startElement: aQualifiedName attributes: aDictionary >>> >>> (visitor shouldVisit: aQualifiedName) >>> ifTrue: [ >>> visitor >>> perform: (visitor createdVisitSelector: >>> aQualifiedName) >>> with: aQualifiedName >>> with: aDictionary >>> ] >>> >>> >>> Object subclass: #GenericTagSAXVisitor >>> instanceVariableNames: 'visitTag visitTags' >>> classVariableNames: '' >>> category: 'SmartXMLHandler' >>> >>> >>> GenericTagSAXVisitor>>visitTags: aCollection >>> "set the tags that will lead to a call to a visitTag:with: method >>> in the visitor" >>> >>> visitTags := aCollection collect: [ :each | each asLowercase ]. >>> self createVisitMethods. >>> >>> and in a subclass the visit* methods automatically generated >>> >>> >>> Now I could not get when I have a Vertigo where I can get >>> the >>> Vertigo information. >>> I redefined several methods of SAXhandler but without success. >>> >>> >>> >>> >>> >>> Vertigo >>> Drame >>> USA >>> >>> >>> >>> James >>> Stewart >>> John Ferguson >>> >>> >>> Kim >>> Novak >>> Madeleine Elster >>> >>> >>> Scottie Ferguson, ancien inspecteur de police, est sujet >>> au vertige depuis qu'il a vu mourir son >>>collegue. Elster, son ami, le charge de surveiller sa femme, >>> Madeleine, ayant des tendances >>>suicidaires. Amoureux de la jeune femme Scottie ne remarque pas le >>> piege qui se trame autour >>>de lui et dont il va etre la victime... >>> >>> >> >> >> !!!* >> "Ce message et les pièces jointes sont confidentiels et réservés à >> l'u
Re: [Pharo-users] How to access XML tag name?
This is more complex than that. Because I would like to have a visitor generated from the token I give. And this start character end does not really help me. Because in SAXHandler I have start where I should store the properties same in characters: to store the name end where I should invoke the visitor Now it means that I should only store the information for the tag I want. Does anybody already did that and publish it? I know doru did that in the past. I will try. Stef Le 11/3/16 14:17, Blondeau Vincent a écrit : Hi, The qualified name in function startElement: aQualifiedName attributes: aDictionary, will be FILMS and after FILM and after TITRE,...etc... So, you have to tell to your shouldVisit: method to accept TITRE too and get in and after you should implement characters: to get the content on the tag. Vincent -Message d'origine- De : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] De la part de stepharo Envoyé : vendredi 11 mars 2016 14:04 À : Any question about pharo is welcome Objet : [Pharo-users] How to access XML tag name? Hi Yesterday I started to hack a smart SAX handler. The idea is that I want to just specify the tags I want to visit and the SAX handler should invoke (generated) visit methods. Like that I can easily get visitors on XML domain. Here is an example of what I did. | h | h := SmartSAXHandler new visitor: (MyFilmVisitor new visitTags: #(FILM ROLE)); on: FileSystem workingDirectory / 'FILMS.XML'. h parseDocument. ^ h SmartSAXHAndler >> startElement: aQualifiedName attributes: aDictionary (visitor shouldVisit: aQualifiedName) ifTrue: [ visitor perform: (visitor createdVisitSelector: aQualifiedName) with: aQualifiedName with: aDictionary ] Object subclass: #GenericTagSAXVisitor instanceVariableNames: 'visitTag visitTags' classVariableNames: '' category: 'SmartXMLHandler' GenericTagSAXVisitor>>visitTags: aCollection "set the tags that will lead to a call to a visitTag:with: method in the visitor" visitTags := aCollection collect: [ :each | each asLowercase ]. self createVisitMethods. and in a subclass the visit* methods automatically generated Now I could not get when I have a Vertigo where I can get the Vertigo information. I redefined several methods of SAXhandler but without success. Vertigo Drame USA James Stewart John Ferguson Kim Novak Madeleine Elster Scottie Ferguson, ancien inspecteur de police, est sujet au vertige depuis qu'il a vu mourir son collegue. Elster, son ami, le charge de surveiller sa femme, Madeleine, ayant des tendances suicidaires. Amoureux de la jeune femme Scottie ne remarque pas le piege qui se trame autour de lui et dont il va etre la victime... !!!* "Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.!!!"
Re: [Pharo-users] Fwd: Fwd: Phratch + Debian
gogogogo! Phratch! Le 10/3/16 17:38, Hilaire a écrit : We should help to promote Phratch at the Education Nationale/FR because there is now the need for graphic programming tools. Right now Scratch2.0 is what most recommend but there is problem to use it on some situation. Moreover when custom features are needed, it is far more easier to get it done with Phratch. Hilaire Le 09/03/2016 22:03, stepharo a écrit : Cool initiative! Tx Jannik I blogged it and twitted it :)
Re: [Pharo-users] NBOpenGL on Pharo5
Hi richard I was wondering what the status of NBOpenGL on Pharo5 was. As far as I know, it does not work. I would like to have CodeCity work on Pharo5. Me too :) Is anybody else (for instance the Roassal3d team) affected by this? I will discuss with ronie to see if he can help when visiting us - he is arriving 16 of april. But what would be good is to have more people knowing about it. Now what would be good is that you have a look at the bindings and ported them to uFFI. This would help also esteban and give feedback on uFFI. The OpenGL calls do not change just the way to express them and they should be similar. Do you think that you can give a tru I asked esteban to release his uFFI documentation. Stef
Re: [Pharo-users] OpenGL project
Check bloc under Moose in the CI there is a little class with the binding. Stef Le 11/3/16 13:22, Thibault Raffaillac a écrit : Hi, I would like to do a bit of OpenGL in Pharo, but it does not seem to work at the moment. Tried NBOpenGL with a spur image (50560): _ fails at installation from configuration browser (need to click again on installing to get all classes) _ demo "GLTTRenderingDemo new openInWorld" fails at NBGLContextDriver with error "No suitable implementation found for initializing OpenGL context for your platform" (running on a Mac) Tried with a pre-spur image (50496): _ same weirdness at installation _ demo fails at NBGLCurveRenderer with "MessageNotUnderstood: receiver of on: is nil" Is there a working demo available out there? I have worked a lot with OpenGL ES 2.0 and could definitely provide work on the topic. Cheers, Thibault