Re: [Pharo-users] Linux Install -- problems, but eventually successful
I just had all sort of the troubles trying to install Pharo on Ubuntu 14.04 x64. I followed different routes and (sub)sets of instructions, but always come to either crashing or freezing. And then, next day, everything just started to work normally. So, I conclude, that *REBOOT is necessary at some (final) stage* (which is not obvious thing in Linux world). Trouble is I don't know at which stage, and which combination of actions gives me working environment. Maybe I need to make some experimentation to make this clear, but trouble I don't know how to set my system to fresh condition, except of re-installing it. 2015-07-27 20:02 GMT+03:00 Sean P. DeNigris s...@clipperadams.com: Andy Jones wrote since the instructions at http://pharo.org/gnu-linux-installation#64-bit-System-Setup seem to be out of date... Note that there is no ia32-libs package on Jessie, as far as I can tell. The instructions, under Ubuntu 14.04 and Later, link to http://pharo.org/gnu-linux-installation#ubuntu-ppa-headless-vm , which advises: sudo add-apt-repository ppa:pharo/stable sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install pharo-vm-core Did you try that? - Cheers, Sean -- View this message in context: http://forum.world.st/Linux-Install-problems-but-eventually-successful-tp4839294p4839637.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Pharo on 64bit Ubuntu
I just had all sort of the troubles trying to install Pharo on Ubuntu 14.04 x64. I followed different routes and (sub)sets of instructions, but always come to either crashing or freezing. And then, next day, everything just started to work normally. So, I conclude, that *REBOOT is necessary at some (final) stage* (which is not obvious thing in Linux world). I will try to make some experimentation to understand the correct way - and then I'll ask somebody to update Pharo installation instructions. 2015-07-14 15:35 GMT+03:00 Leo Noordhuizen leo.noordhui...@gmail.com: Markus, If you read the messages in this thread, you can see that it has been more or less solved. 'More or less' because Pharo runs fine now, but when I reboot Ubuntu I get a systemerror with as subject Pharo-vm. This has been probably caused by my different attempts to make this work (with different methods) which may have left some 'rubble' causing this. I should probably re-install Ubuntu soon. Which I do now and then anyway. Thanks, kind regards, Leo Noordhuizen On Tue, Jul 14, 2015 at 12:50 PM, Markus Fritsche mfrits...@reauktion.de wrote: Hello Leo, sorry, I was unavailable. I personally am running 14.04 due to LTS status, but will see if I can recreate your error. Kind regards, Markus
Re: [Pharo-users] VM Crash after adding ram
On 07/30/2015 11:43 AM, Esteban Lorenzano wrote: Hi, did you try a fresh Pharo image (without loaded code)? ExternalObject and ExternalAddress are FFI so… problem*could* be there… no idea what can be happening, but well… it could be there:) cheers, Esteban After poking around the net a bit with some of the error messages I saw Inconsistency detected by ld.so: dl-open.c: 610: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)-r_state == RT_CONSISTENT' failed! it was apparently some corrupted Ubuntu lib's that after running updates again and rebooting seem to have repaired themselves. The VM starting working fine after this last reboot which is admittedly the first reboot since I got the PC back up with the new amount of ram. So, apparently not a VM issue, thanks for the advice anyway. -- Ramon Leon
[Pharo-users] Does RBImplementedButNotSent result in any critics for any of you?
It seems like its not testing for the right conditions any more and therefore not finding any messages that are implemented but not sent. I think this and the problem I was having the other day is from removing the use of the RBSmallLintContext class from checking criitcs issues. Why did you decide to do that?
Re: [Pharo-users] Does RBImplementedButNotSent result in any critics for any of you?
On 31 Jul 2015, at 16:00, Paul DeBruicker pdebr...@gmail.com wrote: It seems like its not testing for the right conditions any more and therefore not finding any messages that are implemented but not sent. I think this and the problem I was having the other day is from removing the use of the RBSmallLintContext class from checking criitcs issues. Why did you decide to do that? This happened during case 15724[1]. Shouldn’t be hard to fix but requires tests. As for context removal: Because we have 100500 contexts in Pharo and everyone uses it’s own. Another thing is that “why should every rule care about the context?”. I wan to check a single class, and the rule needs some kind of context. I don’t have a context I have a class. Another issues that we still have is that you cannot see whether your method/class is violating a rule. You have to go to a result, which is a context, query something… [1]: https://pharo.fogbugz.com/f/cases/15724/
Re: [Pharo-users] Does RBImplementedButNotSent result in any critics for any of you?
Uko2 wrote On 31 Jul 2015, at 16:00, Paul DeBruicker lt; pdebruic@ gt; wrote: It seems like its not testing for the right conditions any more and therefore not finding any messages that are implemented but not sent. I think this and the problem I was having the other day is from removing the use of the RBSmallLintContext class from checking criitcs issues. Why did you decide to do that? This happened during case 15724[1]. Shouldn’t be hard to fix but requires tests. As for context removal: Because we have 100500 contexts in Pharo and everyone uses it’s own. Another thing is that “why should every rule care about the context?”. I wan to check a single class, and the rule needs some kind of context. I don’t have a context I have a class. Another issues that we still have is that you cannot see whether your method/class is violating a rule. You have to go to a result, which is a context, query something… [1]: https://pharo.fogbugz.com/f/cases/15724/ Thanks for the pointer to the bug. I'll take a look. Re contexts, there are 539,103 Arrays in Pharo and everyone uses its own. Are there plans to remove them? Did you consider adding hooks #methodCheckWithContext: #checkClassWithContext: for those that worked and used contexts so that for the ones that profited from the use of contexts could continue without continuing to be poorly named methods? For querying/viewing is there a way contexts could be made polymorphic with rules? -- View this message in context: http://forum.world.st/Does-RBImplementedButNotSent-result-in-any-critics-for-any-of-you-tp4840424p4840453.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
[Pharo-users] Create maps from an SVG file in Roassal
Hi there, I'm trying to import an SVG file describing the provinces of Belgium in Roassal. I've cleaned an SVG file found on wikipedia and trying to import it. I'm trying to imitate the way it is done with Countries. So: RTMapBuilder classprovincesOfBelgium ^ #(#antwerp #brussels #eastFlanders #flemishBrabant #hainaut #liege #limburg #luxembourg #namur #walloonBrabant #westFlanders) and implemented to corresponding SVG paths. Here's one example: RTSVGPath class antwerp ^'m 177.419,25.0693 1.379,-3.5593 -2.986,-1.3778 -3.33,0.5742 -0.114,-3.1001 -4.019,-4.0187 1.492,-5.9704 -2.181,-2.8706 -1.952,-0.2298 -1.034,-1.2628 -2.411,5.1667 -3.673,3.7892 -3.101,-2.067 -5.396,1.378 -2.068,-1.8371 4.479,-0.9188 0.345,-5.1667 -6.2,-2.1815 -4.938,5.741 0.114,2.8704 -8.611,-0.574 1.264,-5.5112 -5.397,0 -6.43,3. 1.263,4.5929 2.411,2.7555 -1.492,2.6409 -4.478,-0.6891 0.115,-2.7555 -6.43,0.3443 0,2.4112 2.296,0.5743 -0.345,5.5112 3.904,1.0336 -3.1,3.3295 3.056,7.4863 0.504,5.9475 -7.923,0.2296 -2.985,3.1002 1.722,1.837 -0.114,3.5595 2.889,0.4893 3.352,-0.9423 7.038,4.5375 3.704,-0.5553 1.759,1.7593 3.149,-1.7593 4.075,2.1297 2.963,-3.6118 11.112,-1.7592 0.092,3.3337 11.576,-3.6113 1.204,-3.0562 5.001,-0.8332 2.129,-3.8894 4.723,-0.7409 0.741,-1.9448 2.223,0.8336 1.481,-0.8336 0.186,-4.9079 -4.075,-2.0373 1.605,-5.4063 z'. Very naively, I've tried: provinceExample self new provinceExample | b | b := RTMapBuilder new. b countries: RTMapBuilder provincesOfBelgium. b color: Color lightGrey. b open. Which does not display anything. I suspect the problem lies in the coordinates of my paths. Is there a README somehwere or the original file that was used to generate the world map of the examples? Cheers, Francois
[Pharo-users] Pillar automatic anchors
Hi, I would like to resolve this issue: Automatic section anchors: Each section title should automatically generate an implicit hyperlink target (aka, anchor) pointing to the section. The text of the hyperlink target (the reference name) is the same as that of the section title. however since I'm not familiar with Pillar I don't know how acceptable this solution could be ~~ PRHTMLWritervisitHeader: aHeader | level | level := self configuration headingLevelOffset + aHeader level. h1 to h7 exist. level := level min: 7 max: 1. canvas tag name: 'h' , level asString; parameterAt: 'id' put: (self createIdForHeader: aHeader); addition with: [ self writeCounterForHeader: aHeader. super visitHeader: aHeader ]. canvas newLine ~~ and ~~ createIdForHeader: aHeader | id | id := aHeader text. id := id asLowercase. replace banned characters with dashes id := '[^0-9a-z\-]' asRegex copy: id replacingMatchesWith: '-'. merge multiple dashes id := '-{2,}' asRegex copy: id replacingMatchesWith: '-'. remove dashes from beginning/end of the id id := '^-|-$' asRegex copy: id replacingMatchesWith: ''. ^ id ~~ Strictly speaking HTML 5 is very permissive with the value of id, but the question is whether we really want to permit everything. E.g. unicode in url is always asking for trouble. Thanks, Peter
Re: [Pharo-users] Does RBImplementedButNotSent result in any critics for any of you?
Paul DeBruicker wrote Uko2 wrote On 31 Jul 2015, at 16:00, Paul DeBruicker lt; pdebruic@ gt; wrote: It seems like its not testing for the right conditions any more and therefore not finding any messages that are implemented but not sent. I think this and the problem I was having the other day is from removing the use of the RBSmallLintContext class from checking criitcs issues. Why did you decide to do that? This happened during case 15724[1]. Shouldn’t be hard to fix but requires tests. [1]: https://pharo.fogbugz.com/f/cases/15724/ Thanks for the pointer to the bug. I'll take a look. Backporting the changes from 15724 from Pharo 5 to Pharo 4 does not fix the bug. The rule still finds no results, even on a package with one class and one method. I've uploaded a slice that does fix the bug and includes a fix you may want to consider incorporating in Pharo 5. https://pharo.fogbugz.com/f/cases/16081/Fix-RBImplementedButNotSent-rule-to-return-a-collection-of-methods-that-are-implemented-but-not-sent-in-Pharo-4 The slice is in the pharo 4 inbox -- View this message in context: http://forum.world.st/Does-RBImplementedButNotSent-result-in-any-critics-for-any-of-you-tp4840424p4840458.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Create maps from an SVG file in Roassal
It will soon come :-) Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 31, 2015, at 2:36 PM, Peter Uhnák i.uh...@gmail.com wrote: The chapter for MapBuilder hasn't been done yet, but it is planned. :)
Re: [Pharo-users] Pillar automatic anchors
Hi Peter, Peter Uhnák i.uh...@gmail.com writes: I would like to resolve this issue: Automatic section anchors: Each section title should automatically generate an implicit hyperlink target (aka, anchor) pointing to the section. The text of the hyperlink target (the reference name) is the same as that of the section title. however since I'm not familiar with Pillar I don't know how acceptable this solution could be ~~ PRHTMLWritervisitHeader: aHeader [...] I think this solution is not the right one because it only affects HTML5. I would prefer that the document is changed by adding anchors to it. Then, the HTML backend will print these anchors the same way it prints the existing ones. The transformer infrastructure is made for that, please use it. -- Damien Cassou http://damiencassou.seasidehosting.st Success is the ability to go from one failure to another without losing enthusiasm. --Winston Churchill
Re: [Pharo-users] Create maps from an SVG file in Roassal
You're right Baarle-Hertog neighbourhood are not in the SVG file :( It should'nt be a problem to express their position in SVG. Have a look at the Comines-Warneton 'which is part of Hainaut) stuck between France and West-Flanders ;) On Fri, Jul 31, 2015 at 10:15 PM, Johan Fabry jfa...@dcc.uchile.cl wrote: Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) On Jul 31, 2015, at 16:51, François Stephany tulipe.mouta...@gmail.com wrote: It works with the explicit line-to: Any hint on how to force its inclusion in Inkscape ? On Fri, Jul 31, 2015 at 9:18 PM, Alexandre Bergel alexandre.ber...@me.com wrote: It will soon come :-) Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 31, 2015, at 2:36 PM, Peter Uhnák i.uh...@gmail.com wrote: The chapter for MapBuilder hasn't been done yet, but it is planned. :) Screen Shot 2015-07-31 at 21.50.58.png --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] Pillar automatic anchors
On Fri, Jul 31, 2015 at 10:20 PM, Damien Cassou damien.cas...@inria.fr wrote: Hi Peter, Peter Uhnák i.uh...@gmail.com writes: I would like to resolve this issue: Automatic section anchors: Each section title should automatically generate an implicit hyperlink target (aka, anchor) pointing to the section. The text of the hyperlink target (the reference name) is the same as that of the section title. however since I'm not familiar with Pillar I don't know how acceptable this solution could be ~~ PRHTMLWritervisitHeader: aHeader [...] I think this solution is not the right one because it only affects HTML5. I would prefer that the document is changed by adding anchors to it. So in a sense of a id=whatever /hX../hX? And for LaTeX \label{sec:whatever} (The html form will probably change later to allow clickable headers, but that's another todo, which would probably apply only to HTML) Then, the HTML backend will print these anchors the same way it prints the existing ones. The transformer infrastructure is made for that, please use it. Thanks for the pointers! So if I understand it correctly, the Transformer performs sort of post-processing operations on the document tree? So instead of doing a (semi-)single-pass build of the tree it would be transformed several times? I'm also assuming this is also used to extend annotations use. Thanks, Peter
Re: [Pharo-users] Create maps from an SVG file in Roassal
Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) On Jul 31, 2015, at 16:51, François Stephany tulipe.mouta...@gmail.com wrote: It works with the explicit line-to: Any hint on how to force its inclusion in Inkscape ? On Fri, Jul 31, 2015 at 9:18 PM, Alexandre Bergel alexandre.ber...@me.com mailto:alexandre.ber...@me.com wrote: It will soon come :-) Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 31, 2015, at 2:36 PM, Peter Uhnák i.uh...@gmail.com mailto:i.uh...@gmail.com wrote: The chapter for MapBuilder hasn't been done yet, but it is planned. :) Screen Shot 2015-07-31 at 21.50.58.png --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] Create maps from an SVG file in Roassal
It works with the explicit line-to: Any hint on how to force its inclusion in Inkscape ? On Fri, Jul 31, 2015 at 9:18 PM, Alexandre Bergel alexandre.ber...@me.com wrote: It will soon come :-) Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 31, 2015, at 2:36 PM, Peter Uhnák i.uh...@gmail.com wrote: The chapter for MapBuilder hasn't been done yet, but it is planned. :)
Re: [Pharo-users] Create maps from an SVG file in Roassal
On Fri, Jul 31, 2015 at 6:31 PM, François Stephany tulipe.mouta...@gmail.com wrote: Hi there, I'm trying to import an SVG file describing the provinces of Belgium in Roassal. I've cleaned an SVG file found on wikipedia and trying to import it. I'm trying to imitate the way it is done with Countries. So: RTMapBuilder classprovincesOfBelgium ^ #(#antwerp #brussels #eastFlanders #flemishBrabant #hainaut #liege #limburg #luxembourg #namur #walloonBrabant #westFlanders) and implemented to corresponding SVG paths. Here's one example: RTSVGPath class antwerp ^'m 177.419,25.0693 1.379,-3.5593 -2.986,-1.3778 -3.33,0.5742 -0.114,-3.1001 -4.019,-4.0187 1.492,-5.9704 -2.181,-2.8706 -1.952,-0.2298 -1.034,-1.2628 -2.411,5.1667 -3.673,3.7892 -3.101,-2.067 -5.396,1.378 -2.068,-1.8371 4.479,-0.9188 0.345,-5.1667 -6.2,-2.1815 -4.938,5.741 0.114,2.8704 -8.611,-0.574 1.264,-5.5112 -5.397,0 -6.43,3. 1.263,4.5929 2.411,2.7555 -1.492,2.6409 -4.478,-0.6891 0.115,-2.7555 -6.43,0.3443 0,2.4112 2.296,0.5743 -0.345,5.5112 3.904,1.0336 -3.1,3.3295 3.056,7.4863 0.504,5.9475 -7.923,0.2296 -2.985,3.1002 1.722,1.837 -0.114,3.5595 2.889,0.4893 3.352,-0.9423 7.038,4.5375 3.704,-0.5553 1.759,1.7593 3.149,-1.7593 4.075,2.1297 2.963,-3.6118 11.112,-1.7592 0.092,3.3337 11.576,-3.6113 1.204,-3.0562 5.001,-0.8332 2.129,-3.8894 4.723,-0.7409 0.741,-1.9448 2.223,0.8336 1.481,-0.8336 0.186,-4.9079 -4.075,-2.0373 1.605,-5.4063 z'. Apparently the path parser doesn't conform to specs? in the code I see a nice comment The description of SVG path, says that M and m may accept more than one coordinates. In practices, this is rarely the case. This also applies for other commands that should support multiple coordinates. anyway, try this (I made all line-to commands explicit): 'm 177.419,25.0693 l 1.379,-3.5593 l -2.986,-1.3778 l -3.33,0.5742 l -0.114,-3.1001 l -4.019,-4.0187 l 1.492,-5.9704 l -2.181,-2.8706 l -1.952,-0.2298 l -1.034,-1.2628 l -2.411,5.1667 l -3.673,3.7892 l -3.101,-2.067 l -5.396,1.378 l -2.068,-1.8371 l 4.479,-0.9188 l 0.345,-5.1667 l -6.2,-2.1815 l -4.938,5.741 l 0.114,2.8704 l -8.611,-0.574 l 1.264,-5.5112 l -5.397,0 l -6.43,3. l 1.263,4.5929 l 2.411,2.7555 l -1.492,2.6409 l -4.478,-0.6891 l 0.115,-2.7555 l -6.43,0.3443 l 0,2.4112 l 2.296,0.5743 l -0.345,5.5112 l 3.904,1.0336 l -3.1,3.3295 l 3.056,7.4863 l 0.504,5.9475 l -7.923,0.2296 l -2.985,3.1002 l 1.722,1.837 l -0.114,3.5595 l 2.889,0.4893 l 3.352,-0.9423 l 7.038,4.5375 l 3.704,-0.5553 l 1.759,1.7593 l 3.149,-1.7593 l 4.075,2.1297 l 2.963,-3.6118 l 11.112,-1.7592 l 0.092,3.3337 l 11.576,-3.6113 l 1.204,-3.0562 l 5.001,-0.8332 l 2.129,-3.8894 l 4.723,-0.7409 l 0.741,-1.9448 l 2.223,0.8336 l 1.481,-0.8336 l 0.186,-4.9079 l -4.075,-2.0373 l 1.605,-5.4063 z' Is there a README somehwere or the original file that was used to generate the world map of the examples? The chapter for MapBuilder hasn't been done yet, but it is planned. :) Peter
Re: [Pharo-users] Create maps from an SVG file in Roassal
Hey, what happened to Voeren? https://en.wikipedia.org/wiki/Voeren https://en.wikipedia.org/wiki/Voeren That’s part of Limburg which is also not on the map. That’s already 2 parts of Flanders left out. This is grounds for an ‘affaire communautaire’ to happen soon! :-P On Jul 31, 2015, at 17:28, François Stephany tulipe.mouta...@gmail.com wrote: You're right Baarle-Hertog neighbourhood are not in the SVG file :( It should'nt be a problem to express their position in SVG. Have a look at the Comines-Warneton 'which is part of Hainaut) stuck between France and West-Flanders ;) On Fri, Jul 31, 2015 at 10:15 PM, Johan Fabry jfa...@dcc.uchile.cl mailto:jfa...@dcc.uchile.cl wrote: Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] Create maps from an SVG file in Roassal
You mean, let’s ditch Wallonia, right? On Jul 31, 2015, at 18:28, François Stephany tulipe.mouta...@gmail.com wrote: Let's ditch Flanders altogether! On 31 Jul 2015 23:17, Johan Fabry jfa...@dcc.uchile.cl mailto:jfa...@dcc.uchile.cl wrote: Hey, what happened to Voeren? https://en.wikipedia.org/wiki/Voeren https://en.wikipedia.org/wiki/Voeren That’s part of Limburg which is also not on the map. That’s already 2 parts of Flanders left out. This is grounds for an ‘affaire communautaire’ to happen soon! :-P On Jul 31, 2015, at 17:28, François Stephany tulipe.mouta...@gmail.com mailto:tulipe.mouta...@gmail.com wrote: You're right Baarle-Hertog neighbourhood are not in the SVG file :( It should'nt be a problem to express their position in SVG. Have a look at the Comines-Warneton 'which is part of Hainaut) stuck between France and West-Flanders ;) On Fri, Jul 31, 2015 at 10:15 PM, Johan Fabry jfa...@dcc.uchile.cl mailto:jfa...@dcc.uchile.cl wrote: Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) --- Save our in-boxes! http://emailcharter.org http://emailcharter.org/ --- Johan Fabry - http://pleiad.cl/~jfabry http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] Create maps from an SVG file in Roassal
Flanders geography looks way too complicated for a sane brain :p On Fri, Jul 31, 2015 at 11:36 PM, Johan Fabry jfa...@dcc.uchile.cl wrote: You mean, let’s ditch Wallonia, right? On Jul 31, 2015, at 18:28, François Stephany tulipe.mouta...@gmail.com wrote: Let's ditch Flanders altogether! On 31 Jul 2015 23:17, Johan Fabry jfa...@dcc.uchile.cl wrote: Hey, what happened to Voeren? https://en.wikipedia.org/wiki/Voeren That’s part of Limburg which is also not on the map. That’s already 2 parts of Flanders left out. This is grounds for an ‘affaire communautaire’ to happen soon! :-P On Jul 31, 2015, at 17:28, François Stephany tulipe.mouta...@gmail.com wrote: You're right Baarle-Hertog neighbourhood are not in the SVG file :( It should'nt be a problem to express their position in SVG. Have a look at the Comines-Warneton 'which is part of Hainaut) stuck between France and West-Flanders ;) On Fri, Jul 31, 2015 at 10:15 PM, Johan Fabry jfa...@dcc.uchile.cl wrote: Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Re: [Pharo-users] troubles with JNIPort on Pharo 5 / Java 8
Hi again, In the meantime I found the problem: if I replace self halt with a concrete execution, it works :). I also tested the passing of arguments back and forth between Pharo3 and Java 1.6 and that works fine, as well. Now, the only thing left is to get this running on Pharo5. Cheers, Doru On Thu, Jul 30, 2015 at 10:44 PM, Tudor Girba tu...@tudorgirba.com wrote: Hi again, I continued with experimentation in Pharo 3. Specifically, I would like to get a callback working, but something does not work out. Could you take a look below? Perhaps you can spot what I am doing wrong. Here is what I did: 1. I downloaded: https://sites.google.com/site/jniport/file-cabinet/JNIPort30_Extras.zip 2. I created the following Java class: package com.tudorgirba.jniport.callback; import jniport.RequestNotHandedException; import jniport.SmalltalkNotification; public class SimpleNotifier { private static final Object notifyTag = new String(sendNotification() ); public static Object notifyTag () { return notifyTag; } public void sendNotification() throws RequestNotHandedException { new SmalltalkNotification(notifyTag, this).send(); } } 3. Then I ran this code in a Pharo 3.0 image: --- Gofer new smalltalkhubUser: 'JNIPort' project: 'JNIPort'; configuration; loadVersion: '3.0-baseline'. JNIPortJNIInterface libraryFile: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libclient.dylib'. jvmSettings := JVMSettings new. jvmSettings usesGhosts: true. jvmSettings supportsCallbacks: true. jvmSettings jniPortSettings useJNIHelperLibrary: false. jvmSettings ghostClassSettings retainMethodSource: true. jvmSettings runtimeSettings classpath: '.:/Users/girba/Work/Code/moose/JNIPort30.jar:/Users/girba/Work/Code/moose/JNIPort30-Tests.jar:/Users/girba/Work/Code/moose/jniport/jniport-callbacks/bin/'. Cursor execute showWhile: [JVM newWithSettings: jvmSettings]. notifierClass := JVM current findClass: #'com.tudorgirba.jniport.callback.SimpleNotifier'. JVM current callbackRegistry setCallback: notifierClass notifyTag handler: [:this :param | *self halt*]. notifier := notifierClass new. notifier *sendNotification*. --- Everything executes without error, but the *self halt* part is not reached. I would expect that when the #sendNotification is executed, the corresponding handler gets executed and the debugger appears. (I thought that perhaps something is wrong with the classpath, but the notifierClass and the notifier objects look just fine) Any idea of what is wrong? Cheers, Doru On Wed, Jul 29, 2015 at 10:47 AM, Tudor Girba tu...@tudorgirba.com wrote: Hi Joachim, Thanks for the answer. Unfortunately, I am stuck at the moment too, and I have no idea how to proceed. I would really benefit from your, or someone else's, help :). Cheers, Doru On Tue, Jul 28, 2015 at 9:57 PM, Joachim Geidel joachim.gei...@onlinehome.de wrote: Hi Tudor, unfortunately I haven’t had much time to work on JNIPort for a while. I have started to simplify some of the code, but this isn’t finished yet, and I have not yet looked into Pharo 4 and 5. The latest Pharo version I have worked with was 3, because I was waiting for the VM and NativeBoost changes which were announced but not finished the last time I looked (which is a long time ago). So currently, I can’t tell what is wrong. Obviously, something has changed in the class building mechanism since Pharo 3. The other problem might be related to NativeBoost or the VM, but of course I am speculating for now. Cheers, Joachim Am 28.07.2015 um 16:10 schrieb Tudor Girba-2 [via Smalltalk] [hidden email] http:///user/SendEmail.jtp?type=nodenode=4839859i=0: Hi Joachim, Thanks for the answer. I did not have Java 1.6 anymore on my Yosemite, but I installed it now. For reference, here is how to get it: https://support.apple.com/kb/DL1572?locale=en_US I still have problems in Pharo5. I am trying the following script: http://ws.stfx.eu/CHS8KCAGWGO2 I tried in Pharo 3, and the script worked fine. I also tried with Pharo4 and Pharo5, but it does not work because I get a MNU for GhostClassBuilder#client:. I fixed it in a Pharo5 image by using #installer: instead, but the computation of JVM newWithSettings: jvmSettings does not seem to finish and it blocks the VM. Any idea of what goes wrong? Cheers, Tudor -- View this message in context: Re: troubles with JNIPort on Pharo 5 / Java 8 http://forum.world.st/troubles-with-JNIPort-on-Pharo-5-Java-8-tp4836922p4839859.html Sent from the Pharo Smalltalk Users mailing list archive http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html at Nabble.com. -- www.tudorgirba.com Every thing has its own flow -- www.tudorgirba.com Every thing has its own flow -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] Create maps from an SVG file in Roassal
Let's ditch Flanders altogether! On 31 Jul 2015 23:17, Johan Fabry jfa...@dcc.uchile.cl wrote: Hey, what happened to Voeren? https://en.wikipedia.org/wiki/Voeren That’s part of Limburg which is also not on the map. That’s already 2 parts of Flanders left out. This is grounds for an ‘affaire communautaire’ to happen soon! :-P On Jul 31, 2015, at 17:28, François Stephany tulipe.mouta...@gmail.com wrote: You're right Baarle-Hertog neighbourhood are not in the SVG file :( It should'nt be a problem to express their position in SVG. Have a look at the Comines-Warneton 'which is part of Hainaut) stuck between France and West-Flanders ;) On Fri, Jul 31, 2015 at 10:15 PM, Johan Fabry jfa...@dcc.uchile.cl wrote: Hey, you forgot Baarle-Hertog … https://en.wikipedia.org/wiki/Baarle-Hertog Or maybe that’s even too complicated a situation for SVG to handle :-) --- Save our in-boxes! http://emailcharter.org --- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile