Re: [Pharo-users] Native language support
Hi Nick, Thanks for chasing the bug down. Since the code for event handling is probably going to change in favor of SDL2 events soon, I think it should be good to also provide some tests for this, to detect any regression or problem, or at least to document expected behavior. Do you have any pointers of what should be tested? Which are the cases that worked or not and in which keyboard layouts? Guille El jue., 12 de mar. de 2015 a la(s) 8:48 a. m., Nick Doodka nickdoo...@gmail.com escribió: After series of trial and error methods I found acceptable solution of my problem. That is chunk of code from Pharo 2.0 should be copypaste to appropriate place in method HandMorphgenerateKeyboardEvent. This way let me to avoid problems with mouse wheel freezing or generating errors. i.e. . Adjustments to provide consistent key value data for different VM's: - charCode always contains unicode code point. - keyValue contains 0 if input is outside legacy range If there is no unicode data in the event, assume keyValue contains a correct (256) Unicode codepoint, and use that (charCode isNil or: [charCode = 0]) ifTrue: [charCode := keyValue]. If charCode is not single-byte, we definately have Unicode input. Nil keyValue to avoid garbage values from some VMs. charCode 255 ifTrue: [keyValue := 0]. . Full version of patched method I attach as zip-archive for v3 and v4 apart. I suppose developers should correct this method in next releases of Pharo for the sake non-english users support. Thanks for helping and advises. 2015-03-10 16:10 GMT+02:00 Sean P. DeNigris s...@clipperadams.com: Now it is Pharo3.0 Latest update: #30862 and Pharo4.0 Latest update: #40474, but previous updates worked the same (ignore cyrillic capital letters ЁНПОЛЄМ) What is the exact image version (incl. update number)? I meant specifically regarding the #isArrow error. I don’t think you can be having this in 3.0, so you mean #40474 correct? Is it only after you change the language? Cheers, Sean -- View this message in context: Re: Native language support http://forum.world.st/Native-language-support-tp4809392p4811000.html Sent from the Pharo Smalltalk Users mailing list archive http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html at Nabble.com.
[Pharo-users] When to use a stream for concatenating text..
it seems that in more cases than not, i find that developers use a stream when concatenating some text strings. I am wondering if this is a smalltalk thing, or is there a real speed benefit when using streams in this way. Thanks!
Re: [Pharo-users] Pillar parser rewrite: PetitParser or not?
2015-03-12 9:46 GMT+01:00 kilon alios kilon.al...@gmail.com: It would be nice to have a parser to rule them all. I am currently using SmaCC and gets the job done. I really like its condense syntax and its syntax tool but also love the smalltalky feel of pettit parser. Maybe one must bite the bullet and write perfomance critical parts in C or even use a C parsing engine as a back end of pettit parser ? This would be overkill. Smalltalk is fast enough. From what Doru was talking about, we should have at least some knowledge on what is slow in PetitParser by ESUG. I saw some things by just profiling it once. My position on that is that PetitParser reliance on PEG is a weakness, especially compared to the current state of competing tools (GLR in SmaCC, LL(*) in ANTLR, Parsing with Derivatives, GLL). And if you combine it with performance problems, then that doesn't look so good. On the other hand, PetitParser has a lot going for it: parser combinators (but PwD and GLL also have that), parser reuse, parsing debug. Now, if you tell me a Pillar based parser in SmaCC, I'd say: easy and fast. With a nice, formal grammar defining/documenting the Pillar as a side benefit, which would make maintaining Pillar parsing very easy for the long term. (and that formal grammar would make writing a PetitParser pillar parser a breeze :)). Thierry
Re: [Pharo-users] GTTools and Mongo
Ben wrote: A blog article on that would be cool :) This was already in the pipe: https://medium.com/@astares/building-a-mongo-browser-in-pharo-fe2104052843 but dont tell anyone otherwise our community will be even cooler ;) Tudor wrote: And I see you used yet another undocumented feature: filtering the inspector :) Sorry for making this more documented ;) Thanks to Sven - his articles are inspiring! Bye T.
Re: [Pharo-users] Pillar parser rewrite: PetitParser or not?
It would be nice to have a parser to rule them all. I am currently using SmaCC and gets the job done. I really like its condense syntax and its syntax tool but also love the smalltalky feel of pettit parser. Maybe one must bite the bullet and write perfomance critical parts in C or even use a C parsing engine as a back end of pettit parser ? On Thu, Mar 12, 2015 at 12:39 AM, Norbert Hartl norb...@hartl.name wrote: Am 11.03.2015 um 23:03 schrieb Damien Cassou damien.cas...@gmail.com: Hi, The current pillar parser has several problems: - it is hard to understand and change - it discards input locations I think a refactor or rewrite is necessary. What are the pros and cons of using PetitParser to do that? The cons are that petit parser is a heavier component and we should never underestimate that (just a reaction to a notion on this list). So we should avoid making things more complex, especially dependency wise. The pros is that petit parser will make it easier to extend and maintain the pillar parser. I've read something about a new version of petit parser that has a speedup of aprox. 1.000.000x. If that is the case then it is no downgrade speed wise :) Another pro is IMHO that are some people that would like to move petit parser closer (not too close) to the core. That again would make it a more standard component that makes it easy to write parsers for everyone. A good companion if you have regex and you exceed to possibilities it provides. I really have a bad feeling while saying: It would be good to have pillar based on petit parser. Norbert
Re: [Pharo-users] Native language support
Hi Nick, The best way to ensure this will get included is log an issue and submit a code slice at pharo.fogbugz.com. Then your code can undergo review and be integrated in a managed way. Read the How to Contribute link from there, and if its not clear, please provide feedback so we can improve it. cheers -ben cheers -ben On Thu, Mar 12, 2015 at 4:37 PM, Guillermo Polito guillermopol...@gmail.com wrote: Hi Nick, Thanks for chasing the bug down. Since the code for event handling is probably going to change in favor of SDL2 events soon, I think it should be good to also provide some tests for this, to detect any regression or problem, or at least to document expected behavior. Do you have any pointers of what should be tested? Which are the cases that worked or not and in which keyboard layouts? Guille El jue., 12 de mar. de 2015 a la(s) 8:48 a. m., Nick Doodka nickdoo...@gmail.com escribió: After series of trial and error methods I found acceptable solution of my problem. That is chunk of code from Pharo 2.0 should be copypaste to appropriate place in method HandMorphgenerateKeyboardEvent. This way let me to avoid problems with mouse wheel freezing or generating errors. i.e. . Adjustments to provide consistent key value data for different VM's: - charCode always contains unicode code point. - keyValue contains 0 if input is outside legacy range If there is no unicode data in the event, assume keyValue contains a correct (256) Unicode codepoint, and use that (charCode isNil or: [charCode = 0]) ifTrue: [charCode := keyValue]. If charCode is not single-byte, we definately have Unicode input. Nil keyValue to avoid garbage values from some VMs. charCode 255 ifTrue: [keyValue := 0]. . Full version of patched method I attach as zip-archive for v3 and v4 apart. I suppose developers should correct this method in next releases of Pharo for the sake non-english users support. Thanks for helping and advises. 2015-03-10 16:10 GMT+02:00 Sean P. DeNigris s...@clipperadams.com: Now it is Pharo3.0 Latest update: #30862 and Pharo4.0 Latest update: #40474, but previous updates worked the same (ignore cyrillic capital letters ЁНПОЛЄМ) What is the exact image version (incl. update number)? I meant specifically regarding the #isArrow error. I don’t think you can be having this in 3.0, so you mean #40474 correct? Is it only after you change the language? Cheers, Sean -- View this message in context: Re: Native language support http://forum.world.st/Native-language-support-tp4809392p4811000.html Sent from the Pharo Smalltalk Users mailing list archive http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html at Nabble.com.
Re: [Pharo-users] using spotter to navigate through the file system
Really impressive stuff. Looks like GTSpotter does not understand ~ for home folder. It also does not preview images as gtinspector can and also fails to preview text files that dont have a .txt extension like for example .profile again GTInspector has no problem previewing. Is it possible to modify the contents of a text file from inside GTInspector and save that file ? On Wed, Mar 11, 2015 at 11:55 PM, Tudor Girba tu...@tudorgirba.com wrote: Hi, Here is a little post that describes how you can use GTSpotter to navigate through the file system: http://www.humane-assessment.com/blog/searching-file-system-with-gtspotter/ If you combine this with the GTInspector ability of allowing you interact with the file references, you get a pretty powerful tool: http://www.humane-assessment.com/blog/browsing-files-with-gtinspector/ This is probably the simplest 3-minute demo you can give to a newcomer :). Cheers, Doru -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] Native language support
Hi Nick, thanks for finding this. I can now, finally, use the compose key on my Linux keyboard to enter characters like Ç, É, À... Thierry 2015-03-12 8:48 GMT+01:00 Nick Doodka nickdoo...@gmail.com: After series of trial and error methods I found acceptable solution of my problem. That is chunk of code from Pharo 2.0 should be copypaste to appropriate place in method HandMorphgenerateKeyboardEvent. This way let me to avoid problems with mouse wheel freezing or generating errors. i.e. . Adjustments to provide consistent key value data for different VM's: - charCode always contains unicode code point. - keyValue contains 0 if input is outside legacy range If there is no unicode data in the event, assume keyValue contains a correct (256) Unicode codepoint, and use that (charCode isNil or: [charCode = 0]) ifTrue: [charCode := keyValue]. If charCode is not single-byte, we definately have Unicode input. Nil keyValue to avoid garbage values from some VMs. charCode 255 ifTrue: [keyValue := 0]. . Full version of patched method I attach as zip-archive for v3 and v4 apart. I suppose developers should correct this method in next releases of Pharo for the sake non-english users support. Thanks for helping and advises. 2015-03-10 16:10 GMT+02:00 Sean P. DeNigris s...@clipperadams.com: Now it is Pharo3.0 Latest update: #30862 and Pharo4.0 Latest update: #40474, but previous updates worked the same (ignore cyrillic capital letters ЁНПОЛЄМ) What is the exact image version (incl. update number)? I meant specifically regarding the #isArrow error. I don’t think you can be having this in 3.0, so you mean #40474 correct? Is it only after you change the language? Cheers, Sean -- View this message in context: Re: Native language support http://forum.world.st/Native-language-support-tp4809392p4811000.html Sent from the Pharo Smalltalk Users mailing list archive http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html at Nabble.com.
Re: [Pharo-users] using spotter to navigate through the file system
Hi, On Thu, Mar 12, 2015 at 10:38 AM, kilon alios kilon.al...@gmail.com wrote: Really impressive stuff. Looks like GTSpotter does not understand ~ for home folder. It also does not preview images Images should appear fine. What images are you missing? as gtinspector can and also fails to preview text files that dont have a .txt extension like for example .profile again GTInspector has no problem previewing. This should work as well. Could you point me to the file? Is it possible to modify the contents of a text file from inside GTInspector and save that file ? You could, but the problem is that at this point it is too expensive to show the contents of large files, so we are only showing trimmed contents and that is why you do not have the option of saving right now. This will change in Pharo 5. In the meantime, you can add a simple presentation that allows you to change the file in your packages :) Cheers, Doru On Wed, Mar 11, 2015 at 11:55 PM, Tudor Girba tu...@tudorgirba.com wrote: Hi, Here is a little post that describes how you can use GTSpotter to navigate through the file system: http://www.humane-assessment.com/blog/searching-file-system-with-gtspotter/ If you combine this with the GTInspector ability of allowing you interact with the file references, you get a pretty powerful tool: http://www.humane-assessment.com/blog/browsing-files-with-gtinspector/ This is probably the simplest 3-minute demo you can give to a newcomer :). Cheers, Doru -- www.tudorgirba.com Every thing has its own flow -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] Native language support
Hi Nick, Ben, 2015-03-12 10:17 GMT+01:00 Ben Coman b...@openinworld.com: Hi Nick, The best way to ensure this will get included is log an issue and submit a code slice at pharo.fogbugz.com. Then your code can undergo review and be integrated in a managed way. I've created an issue: https://pharo.fogbugz.com/default.asp?15121 Read the How to Contribute link from there, and if its not clear, please provide feedback so we can improve it. cheers -ben cheers -ben On Thu, Mar 12, 2015 at 4:37 PM, Guillermo Polito guillermopol...@gmail.com wrote: Hi Nick, Thanks for chasing the bug down. Since the code for event handling is probably going to change in favor of SDL2 events soon, I think it should be good to also provide some tests for this, to detect any regression or problem, or at least to document expected behavior. Do you have any pointers of what should be tested? Which are the cases that worked or not and in which keyboard layouts? Guille El jue., 12 de mar. de 2015 a la(s) 8:48 a. m., Nick Doodka nickdoo...@gmail.com escribió: After series of trial and error methods I found acceptable solution of my problem. That is chunk of code from Pharo 2.0 should be copypaste to appropriate place in method HandMorphgenerateKeyboardEvent. This way let me to avoid problems with mouse wheel freezing or generating errors. i.e. . Adjustments to provide consistent key value data for different VM's: - charCode always contains unicode code point. - keyValue contains 0 if input is outside legacy range If there is no unicode data in the event, assume keyValue contains a correct (256) Unicode codepoint, and use that (charCode isNil or: [charCode = 0]) ifTrue: [charCode := keyValue]. If charCode is not single-byte, we definately have Unicode input. Nil keyValue to avoid garbage values from some VMs. charCode 255 ifTrue: [keyValue := 0]. . Full version of patched method I attach as zip-archive for v3 and v4 apart. I suppose developers should correct this method in next releases of Pharo for the sake non-english users support. Thanks for helping and advises. 2015-03-10 16:10 GMT+02:00 Sean P. DeNigris s...@clipperadams.com: Now it is Pharo3.0 Latest update: #30862 and Pharo4.0 Latest update: #40474, but previous updates worked the same (ignore cyrillic capital letters ЁНПОЛЄМ) What is the exact image version (incl. update number)? I meant specifically regarding the #isArrow error. I don’t think you can be having this in 3.0, so you mean #40474 correct? Is it only after you change the language? Cheers, Sean -- View this message in context: Re: Native language support http://forum.world.st/Native-language-support-tp4809392p4811000.html Sent from the Pharo Smalltalk Users mailing list archive http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html at Nabble.com.
Re: [Pharo-users] Datathon for development in Paris
Hi Serge, Do you know if these data will stay open and public after the event? At the Citilab we're working a lot with open data and we're constantly looking for new sources. I don't think we'll be able to come to Paris though... El dia 12/03/2015 12.20, Serge Stinckwich serge.stinckw...@gmail.com va escriure: Dear all, something that might interest some of you. There will be a datathon organized in Paris in collaboration with the MIT about data development in African countries from April 7th to 9th. Some companies and NGOs will provide open data. Orange, the telecom provider will provided some data about communication between local antennas and also trajectories log of people. I have the idea of having a small team using ROASSAL for participating to the datathon and doing some nice vizualisations. Anyone interested to made a team ? You could find more information about this event here: http://simplon.co/blog/2015/3/7/datathon-data-for-development-rdv-les-7-8-et-9-avril-montreuil- sorry only in French. Regards -- Serge Stinckwich UCBN UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/
Re: [Pharo-users] Native language support
2015-03-12 14:41 GMT+01:00 Henrik Johansen henrik.s.johan...@veloxit.no: On 12 Mar 2015, at 10:39 , Thierry Goubier thierry.goub...@gmail.com wrote: Hi Nick, Ben, 2015-03-12 10:17 GMT+01:00 Ben Coman b...@openinworld.com: Hi Nick, The best way to ensure this will get included is log an issue and submit a code slice at pharo.fogbugz.com. Then your code can undergo review and be integrated in a managed way. I've created an issue: https://pharo.fogbugz.com/default.asp?15121 There was already a case (with some issues noted to the fix), I linked to that. And I closed this one, since this is a duplicate of https://pharo.fogbugz.com/default.asp?15085 Which makes me think, with the duality of communication happening in mailing list/issue tracker, it'd be *really* nice if it were possible to have a field in the issue tracker where you can link to a mailing list thread, and have the tracker post to the thread that an issue has been created... Why not. It is also convenient, as it is the case in github, that replying to the email from the issue tracker adds to the issue. (i.e. two way update). Thierry
[Pharo-users] Tide
For an upcoming project I'm thinking about what technology to use. I think it will be seaside or amber+tide. For the latter I would like to have some experience reports. Is anyone of you using tide and what is your experience with it? thanks, Norbert
Re: [Pharo-users] Native language support
Hi nick We would love that you can. Now we need somebody with a non ascii language to help. Stef Le 4/3/15 10:37, Nick Doodka a écrit : Hi all. I would like to use Pharo in my native language (Ukrainian in my case or Cyrillic), but I cannot enter some capital letters to Workspace / System Browser because it's fails on letters: CapsLock or Shift+Keys - [~YGJKV]. That behavior take place only in Pharo ver. 3 and 4. In Pharo 2.0 all keys working good! What is wrong? Platform - Windows XP
Re: [Pharo-users] Pillar parser rewrite: PetitParser or not?
Le 11 mars 2015 à 23:07, Tudor Girba a écrit : I completely agree. I think there are mostly pros. It can be that the parsing will be slower, but I do not think this is a critical issue for Pillar. not sure about the speed. I hope we will adopt pillar for class / packages comments. Then, you need a fast parsing to render it nicely and quickly on the browser. Fast/slow always depends on your comparison point. To be more precise, I would say we need to render (parsing + syntax highlighting) Pillar documents (at least one page) in less than 10 ms. smime.p7s Description: S/MIME cryptographic signature
Re: [Pharo-users] Pillar parser rewrite: PetitParser or not?
I do not think that we want to have many extensions of the syntax. We should enhance it but I do not see it changing and getting extended more. Le 11/3/15 23:07, Tudor Girba a écrit : I completely agree. I think there are mostly pros. It can be that the parsing will be slower, but I do not think this is a critical issue for Pillar. It would be more important to have an extensible parser. Cheers, Doru On Wed, Mar 11, 2015 at 11:03 PM, Damien Cassou damien.cas...@gmail.com mailto:damien.cas...@gmail.com wrote: Hi, The current pillar parser has several problems: - it is hard to understand and change - it discards input locations I think a refactor or rewrite is necessary. What are the pros and cons of using PetitParser to do that? Best -- www.tudorgirba.com http://www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] Native language support
On 12 Mar 2015, at 10:39 , Thierry Goubier thierry.goub...@gmail.com wrote: Hi Nick, Ben, 2015-03-12 10:17 GMT+01:00 Ben Coman b...@openinworld.com mailto:b...@openinworld.com: Hi Nick, The best way to ensure this will get included is log an issue and submit a code slice at pharo.fogbugz.com http://pharo.fogbugz.com/. Then your code can undergo review and be integrated in a managed way. I've created an issue: https://pharo.fogbugz.com/default.asp?15121 https://pharo.fogbugz.com/default.asp?15121 There was already a case (with some issues noted to the fix), I linked to that. Which makes me think, with the duality of communication happening in mailing list/issue tracker, it'd be *really* nice if it were possible to have a field in the issue tracker where you can link to a mailing list thread, and have the tracker post to the thread that an issue has been created... Cheers, Henry
[Pharo-users] configuration browser descriptions
Hi! Here is another information based on my last beginners session. One should discuss if it might be useful and easy to implement to have a configuration browser that includes descriptions for the offered configurations. Beginners have no idea what Seaside, AltBrowser, Artefact,... stand for. Cheers! Sebastian
[Pharo-users] We are so lucky!
Problem: Scanning a bi-fold pamphlet produced a PDF with two non-contiguous pages per scanned image. After converting each page of the PDF into a png, compare the following approaches to split them in half: Assembler... I mean Write-Only... I mean Shell Solution [1]: #!/bin/sh if [ ! -e even-odd ]; then mkdir even-odd; fi first=`ls -1 *.jpg | head -n1` let halfwidth=`gm identify -format '%w \n' $first`/2 width=`gm identify -format '%w \n' $first` height=`gm identify -format '%h \n' $first` for FILE in *.jpg ; do convert -crop $halfwidthx$height+0+0 $FILE $FILE-A.jpg ; mv `ls *.jpg | grep A` even-odd ; convert -crop $widthx$height+$halfwidth+0 $FILE $FILE-B.jpg mv `ls *.jpg | grep B` even-odd done ; Smalltalk solution: PsProcessPageImages#splitPages imageFiles do: [ :file | self currentFile: file. self splitCurrentImage. index := self index + 1 ]. PsProcessPageImages#splitCurrentImage self index odd ifTrue: [ self rightFirstSplitCurrentImage ] ifFalse: [ self leftFirstSplitCurrentImage ] etc... One fun change was: width=`gm identify -format '%w \n' $first` which became: imageForm width oh yeah, we can treat the image as a real object and just ask it what its width is! [1] http://ubuntuforums.org/showthread.php?t=1665621 - Cheers, Sean -- View this message in context: http://forum.world.st/We-are-so-lucky-tp4811504.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Why `aFileReference asString = aFileReference fullName` is false?
Please open a bug entry that we do not forget and yes we need displayString Well, not now. In Pharo 5 :) Doru On Tue, Mar 10, 2015 at 12:18 PM, Tudor Girba tu...@tudorgirba.com mailto:tu...@tudorgirba.com wrote: Indeed. In GT, we introduced gtDisplayString which is meant to be used as a default brief string representation. I think that we could promote this to displayString now that it is in the Pharo image. Cheers, Doru On Tue, Mar 10, 2015 at 12:03 PM, Sean P. DeNigris s...@clipperadams.com mailto:s...@clipperadams.com wrote: Ben Coman wrote Now the followup question is whether its natural to expect something better from #asString I feel like #asString is such a general question that no answer would be satisfying. What string representation should be returned? 'file://'? '/path/to'? And what to do with memory file systems? It's been mentioned a few times on the list that we should all be more disciplined in sending e.g. #displayString vs. #printString instead of #asString. The more I hear that argument, the more sense it makes to me. - Cheers, Sean -- View this message in context: http://forum.world.st/Why-aFileReference-asString-aFileReference-fullName-is-false-tp4810690p4810889.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. -- www.tudorgirba.com http://www.tudorgirba.com Every thing has its own flow -- www.tudorgirba.com http://www.tudorgirba.com Every thing has its own flow
[Pharo-users] Opening filtered Setting Browser in Pharo 4.0
Hi, I am looking for how we can open Setting Browser with only desired setting items and found this solution: SettingBrowser new changeSearchedText: 'sendUsageData'; open; expandAll Is there a better way? We want to have a possibility to open SettingBrowser from Spotter as it was discussed recently. Thanks! Juraj
Re: [Pharo-users] Question about NeoJSON
I don't really understand why you want to keep the original JSON. It is a bit like you don't trust the parsing and/or mapping. Now, the mapping I understand (somewhat). So I would parse once without mapping, which would give you pure Arrays and Dictionaries that you are guaranteed can be used to reproduce the full original input. Pick the second level in that structure and use it. On 12 Mar 2015, at 21:47, Mariano Martinez Peck marianop...@gmail.com wrote: On Thu, Mar 12, 2015 at 5:32 PM, Sven Van Caekenberghe s...@stfx.eu wrote: Mariano, I assume you what this while reading JSON. That won't be possible. NeoJSON is designed as an efficient stream parser, working as it goes. So it never knows the whole JSON expression. U I imagined that :( I would do it manually, but that can only be done at the top level. Well...my list of TestObject is not at the root, but second level. But in any case... how would you do that? Thanks! Sven On 12 Mar 2015, at 21:22, Mariano Martinez Peck marianop...@gmail.com wrote: On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. But how do I get the JSON string associated to the TestObject instance? In other words... mapper for: TestObject do: [ :mapping | HERE how do I get the JSON string of TestObject in order to map it to 'jsonOriginalString' ? ] Or are you planning to store it as JSON object itself? no, a string is OK. Thanks in advance, Esteban A. Maringolo 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com: Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] pharo headless and without gui. Seaside app
I think phil is right. -vm-display-null is the question . it aborts the process. Does not matter wich vm and image are you using. For example i am trying pharo4 latest image latest vm. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: Esteban Lorenzano esteba...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 17:42:55 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: Headless on windows is not working I think. that’s not related, —no-quit should be working (and —headless should be letting a window in the try). can you provide more information? vm version? image version? anything relevant? just asking without information is like going to the doctor and just say “it hurts me”… not much we can do to help. Esteban BQ_BEGIN There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... Phil Le 12 mars 2015 20:41, Pablo R. Digonzelli pdigonze...@gmail.com a écrit : BQ_BEGIN Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: Pablo Digonzelli pdigonze...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 16:20:08 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: pablo digonzelli pdigonze...@softsargentina.dyndns.biz Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 BQ_END BQ_END
Re: [Pharo-users] Question about NeoJSON
Mariano, I assume you what this while reading JSON. That won't be possible. NeoJSON is designed as an efficient stream parser, working as it goes. So it never knows the whole JSON expression. I would do it manually, but that can only be done at the top level. Sven On 12 Mar 2015, at 21:22, Mariano Martinez Peck marianop...@gmail.com wrote: On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. But how do I get the JSON string associated to the TestObject instance? In other words... mapper for: TestObject do: [ :mapping | HERE how do I get the JSON string of TestObject in order to map it to 'jsonOriginalString' ? ] Or are you planning to store it as JSON object itself? no, a string is OK. Thanks in advance, Esteban A. Maringolo 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com: Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] Question about NeoJSON
On Thu, Mar 12, 2015 at 5:32 PM, Sven Van Caekenberghe s...@stfx.eu wrote: Mariano, I assume you what this while reading JSON. That won't be possible. NeoJSON is designed as an efficient stream parser, working as it goes. So it never knows the whole JSON expression. U I imagined that :( I would do it manually, but that can only be done at the top level. Well...my list of TestObject is not at the root, but second level. But in any case... how would you do that? Thanks! Sven On 12 Mar 2015, at 21:22, Mariano Martinez Peck marianop...@gmail.com wrote: On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. But how do I get the JSON string associated to the TestObject instance? In other words... mapper for: TestObject do: [ :mapping | HERE how do I get the JSON string of TestObject in order to map it to 'jsonOriginalString' ? ] Or are you planning to store it as JSON object itself? no, a string is OK. Thanks in advance, Esteban A. Maringolo 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com : Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] Question about NeoJSON
2015-03-12 17:22 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com: On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. But how do I get the JSON string associated to the TestObject instance? In other words... Why doesn't this work? mapper for: TestObject do: [ :mapping | ... (mapping mapInstVar: #jsonOriginalString) ]. That would make sense if the jsonOriginalString is an immutable object (from the application standpoint) that you keep in order to preserve some sort of logging of how/where the object was created. Regards. Esteban A. Maringolo
Re: [Pharo-users] pharo headless and without gui. Seaside app
On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: Headless on windows is not working I think. that’s not related, —no-quit should be working (and —headless should be letting a window in the try). can you provide more information? vm version? image version? anything relevant? just asking without information is like going to the doctor and just say “it hurts me”… not much we can do to help. Esteban There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... Phil Le 12 mars 2015 20:41, Pablo R. Digonzelli pdigonze...@gmail.com mailto:pdigonze...@gmail.com a écrit : Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com mailto:pdigonze...@softsargentina.com pdigonze...@gmail.com mailto:pdigonze...@gmail.com Cel: 5493815982714 De: Pablo Digonzelli pdigonze...@gmail.com mailto:pdigonze...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org mailto:pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 16:20:08 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com mailto:pdigonze...@softsargentina.com pdigonze...@gmail.com mailto:pdigonze...@gmail.com Cel: 5493815982714 De: pablo digonzelli pdigonze...@softsargentina.dyndns.biz mailto:pdigonze...@softsargentina.dyndns.biz Para: Any question about pharo is welcome pharo-users@lists.pharo.org mailto:pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com mailto:pdigonze...@softsargentina.com pdigonze...@gmail.com mailto:pdigonze...@gmail.com Cel: 5493815982714
Re: [Pharo-users] Question about NeoJSON
2015-03-12 18:09 GMT-03:00 Sven Van Caekenberghe s...@stfx.eu: I don't really understand why you want to keep the original JSON. It is a bit like you don't trust the parsing and/or mapping. Now, the mapping I understand (somewhat). I guess this has to do with the fact that if you have a REST+JSON API he wants to preserve the JSON payload that was used to create the instance (in case of a POST). So you first parse the JSON, create the object from it, and then assign the JSON string to it (and this should never change). Some API's preserve the entire request (including HTTP headers) in the created/updated object. Esteban A. Maringolo
Re: [Pharo-users] Question about NeoJSON
Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. Or are you planning to store it as JSON object itself? Esteban A. Maringolo 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com: Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] pharo headless and without gui. Seaside app
Headless on windows is not working I think. There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... Phil Le 12 mars 2015 20:41, Pablo R. Digonzelli pdigonze...@gmail.com a écrit : Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA -- *Ing. Pablo Digonzelli* Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 -- *De: *Pablo Digonzelli pdigonze...@gmail.com *Para: *Any question about pharo is welcome pharo-users@lists.pharo.org *Enviados: *Jueves, 12 de Marzo 2015 16:20:08 *Asunto: *Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA -- *Ing. Pablo Digonzelli* Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 -- *De: *pablo digonzelli pdigonze...@softsargentina.dyndns.biz *Para: *Any question about pharo is welcome pharo-users@lists.pharo.org *Enviados: *Jueves, 12 de Marzo 2015 15:47:49 *Asunto: *pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA -- *Ing. Pablo Digonzelli* Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714
Re: [Pharo-users] Question about NeoJSON
On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Assuming you store the original JSON string as a String object in an instance variable named json you could map it as any other string. But how do I get the JSON string associated to the TestObject instance? In other words... mapper for: TestObject do: [ :mapping | HERE how do I get the JSON string of TestObject in order to map it to 'jsonOriginalString' ? ] Or are you planning to store it as JSON object itself? no, a string is OK. Thanks in advance, Esteban A. Maringolo 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck marianop...@gmail.com: Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] pharo headless and without gui. Seaside app
Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: Pablo Digonzelli pdigonze...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 16:20:08 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: pablo digonzelli pdigonze...@softsargentina.dyndns.biz Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714
[Pharo-users] Question about NeoJSON
Hi, In this link: https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md I see an example of a custom mapping like this one: mapper for: TestObject do: [ :mapping | mapping mapInstVars: #(id name). (mapping mapInstVar: #timestamp to: 'created-at') valueSchema: DateAndTime. (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints. (mapping mapInstVar: #bytes) valueSchema: ByteArray ]. I need something similar, but I need to store the original JSON string that was used to build a particular TestObject instance, in an instance variable of TestObject too. In other words, I need an instVar originalResponse in TestObject that would be set with the original JSON string. Any ideas how can I implement this? Thanks in advance, -- Mariano http://marianopeck.wordpress.com
[Pharo-users] Settings Browser: Moose 5.1 exported settings raises error in Pharo 4.0
Hi, If I export settings from Settings Browser in Moose 5.1 and then open Pharo 4.0 image, it raises an error GTGenericStackDebugger not found in SystemDictionary”. The problem is a setting: (Smalltalk at: #GTGenericStackDebugger) perform: #enableStackColoring: with: (true) which apparently does not exists in Pharo 4.0. I think if we want to share settings between images, it should ignore any setting that raise an error, right? Thanks! Juraj
Re: [Pharo-users] Opening filtered Setting Browser in Pharo 4.0
Yes, this is also an option if we do not mind to show a bit more all options related to the spotter event recorder. Thanks! Cheers, Juraj 12. 3. 2015 v 16:15, Andrei Chis chisvasileand...@gmail.com: What about: SettingBrowser new changePackageSet: (RPackage organizer packageNamed: 'GT-Spotter-EventRecorder') asOrderedCollection; open; expandAll. Cheers, Andrei On Thu, Mar 12, 2015 at 7:08 PM, Juraj Kubelka juraj.kube...@gmail.com mailto:juraj.kube...@gmail.com wrote: Hi, I am looking for how we can open Setting Browser with only desired setting items and found this solution: SettingBrowser new changeSearchedText: 'sendUsageData'; open; expandAll Is there a better way? We want to have a possibility to open SettingBrowser from Spotter as it was discussed recently. Thanks! Juraj
[Pharo-users] pharo headless and without gui. Seaside app
I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714
Re: [Pharo-users] pharo headless and without gui. Seaside app
Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: pablo digonzelli pdigonze...@softsargentina.dyndns.biz Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714
Re: [Pharo-users] Opening filtered Setting Browser in Pharo 4.0
What about: SettingBrowser new changePackageSet: (RPackage organizer packageNamed: 'GT-Spotter-EventRecorder') asOrderedCollection; open; expandAll. Cheers, Andrei On Thu, Mar 12, 2015 at 7:08 PM, Juraj Kubelka juraj.kube...@gmail.com wrote: Hi, I am looking for how we can open Setting Browser with only desired setting items and found this solution: SettingBrowser new changeSearchedText: 'sendUsageData'; open; expandAll Is there a better way? We want to have a possibility to open SettingBrowser from Spotter as it was discussed recently. Thanks! Juraj
Re: [Pharo-users] Opening filtered Setting Browser in Pharo 4.0
PharoLauncher does this at the level of a group. cheers -ben On Fri, Mar 13, 2015 at 3:22 AM, Juraj Kubelka juraj.kube...@gmail.com wrote: Yes, this is also an option if we do not mind to show a bit more all options related to the spotter event recorder. Thanks! Cheers, Juraj 12. 3. 2015 v 16:15, Andrei Chis chisvasileand...@gmail.com: What about: SettingBrowser new changePackageSet: (RPackage organizer packageNamed: 'GT-Spotter-EventRecorder') asOrderedCollection; open; expandAll. Cheers, Andrei On Thu, Mar 12, 2015 at 7:08 PM, Juraj Kubelka juraj.kube...@gmail.com wrote: Hi, I am looking for how we can open Setting Browser with only desired setting items and found this solution: SettingBrowser new changeSearchedText: 'sendUsageData'; open; expandAll Is there a better way? We want to have a possibility to open SettingBrowser from Spotter as it was discussed recently. Thanks! Juraj
[Pharo-users] Datathon for development in Paris
Dear all, something that might interest some of you. There will be a datathon organized in Paris in collaboration with the MIT about data development in African countries from April 7th to 9th. Some companies and NGOs will provide open data. Orange, the telecom provider will provided some data about communication between local antennas and also trajectories log of people. I have the idea of having a small team using ROASSAL for participating to the datathon and doing some nice vizualisations. Anyone interested to made a team ? You could find more information about this event here: http://simplon.co/blog/2015/3/7/datathon-data-for-development-rdv-les-7-8-et-9-avril-montreuil- sorry only in French. Regards -- Serge Stinckwich UCBN UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/
Re: [Pharo-users] using spotter to navigate through the file system
Images should appear fine. What images are you missing? hmm it looks like I am missing the preview panel altogether. Is this committed to Pharo 4 ? I got the latest Pharo 4 image just now. In the meantime, you can add a simple presentation that allows you to change the file in your packages :) ok then I will look into that.
Re: [Pharo-users] using spotter to navigate through the file system
Hi, On Thu, Mar 12, 2015 at 10:59 AM, kilon alios kilon.al...@gmail.com wrote: Images should appear fine. What images are you missing? hmm it looks like I am missing the preview panel altogether. Is this committed to Pharo 4 ? I got the latest Pharo 4 image just now. No, it's not yet. I made some changes recently and they are not yet in Pharo :). You can find them in the moose image. In the meantime, you can add a simple presentation that allows you to change the file in your packages :) ok then I will look into that. Ok. Doru -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] pharo headless and without gui. Seaside app
On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote: I think phil is right. -vm-display-null is the question . it aborts the process. Does not matter wich vm and image are you using. For example i am trying pharo4 latest image latest vm. The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is part of the loadable VM module system that he made for sound and displays. You will find this in the various VMs that run on top of Ian platform code. The Windows VMs originate from Andreas Raab's code base, which has different VM command line parameters. For common things like starting a headless VM, it would be a good idea to make the command line parameters consistent across VMs. Maybe that could be done most easily in the start scripts, as opposed to the VM executables. Dave TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucum??n Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: Esteban Lorenzano esteba...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 17:42:55 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: Headless on windows is not working I think. that???s not related, ???no-quit should be working (and ???headless should be letting a window in the try). can you provide more information? vm version? image version? anything relevant? just asking without information is like going to the doctor and just say ???it hurts me?? not much we can do to help. Esteban BQ_BEGIN There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... Phil Le 12 mars 2015 20:41, Pablo R. Digonzelli pdigonze...@gmail.com a ??crit : BQ_BEGIN Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucum??n Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: Pablo Digonzelli pdigonze...@gmail.com Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 16:20:08 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucum??n Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: pablo digonzelli pdigonze...@softsargentina.dyndns.biz Para: Any question about pharo is welcome pharo-users@lists.pharo.org Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucum??n Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 BQ_END BQ_END
Re: [Pharo-users] Why `aFileReference asString = aFileReference fullName` is false?
On Mar 10, 2015, at 8:43 AM, Sven Van Caekenberghe s...@stfx.eu wrote: OK, both of the following make sense /Users/sven/Desktop/foo.txt file:///Users/sven/Desktop/foo.txt file:///Users/sven/Desktop/foo.txt But what about native (OS platform) conventions ? I don't want to see Windows backslashes, but Windows user might disagree. There is not one good solution, hence you must use specific accessors/convertors. The alternative to no one good solution is to find the sensible less worst solution. Do we have a way to strategise the answer of asString per supported platform in such a way that it will conform the string representation of the path to a file? I’m still trying to understand the practical use of the current answer instead of strategize the answer per platform
Re: [Pharo-users] Why `aFileReference asString = aFileReference fullName` is false?
On Mar 10, 2015, at 12:57 PM, Sven Van Caekenberghe s...@stfx.eu wrote: the standard string representation of an abstract platform independent representation of a file should be that: abstract platform independent (it would be terrible to mask that behind a platform dependent external representation) furthermore it makes sense that the print string gives an indication of what it actually is/models: hence it is useful to add the type reference (else totally different ones will look the same) there are other accessors that do what you want, why can't you use those ? most objects cannot come up with just one single canonical representation for example, according to universal standards, ZnUrl and ZnMimeType can do this, but these are exceptions I’m already using alternatives to asString, I’m not stuck, I’m trying to understand why asString is not providing what I consider a practical answer to a universal need (string representation of a file reference). Why the strategy of asString would not have a fallback to a really abstract representation for an unknown platform and return the useful answer for when is familiarized to a particular OS? Aren't *nix platforms universal enough?