Re: [Pharo-users] Roasal: Putting a white background instead of a transparent one in word clouds

2015-04-17 Thread Peter Uhnák
> > There is any other way I can help with debugging this? Should I open a bug > report to get this solved on Roassal? > This is best directed at Alex, but I would think that the solution should be pretty straight forward (maybe just copying part of the solution between the exporters). Alex: could

[Pharo-users] questionable questionable code critic

2015-04-24 Thread Peter Uhnák
Why does CodeCritic (QualityAssistant) considers this questionable canBeTargetFor: aController ^ aController isKindOf: DMNodeController and yet this seems fine to him canBeTargetFor: aController ^ aController class = DMNodeController ~~~

[Pharo-users] QualityAssistant ignoring rules

2015-04-25 Thread Peter Uhnák
Hi, is there a simple way to add certain rule as ignored? Something like "right click -> supress rule" I am working on tools that do use metaprogramming, so it tends to complain, and for example in roassal there is a common pattern element := RTBox new size: 50; elementOn: 'sth'. But that of cours

Re: [Pharo-users] QualityAssistant ignoring rules

2015-04-25 Thread Peter Uhnák
od, so if the > other developer will read your code he can also se the you’ve skipped the > rule on porpoise and it’s a planned decision. > > Cheers! > Uko > > > On 25 Apr 2015, at 09:50, Peter Uhnák wrote: > > > > Hi, > > > > is there a simple way to

Re: [Pharo-users] Running agile visualization examples on pharo 4 doesn't show the RTView

2015-04-25 Thread Peter Uhnák
Indeed, I always run this script to get in Pharo 4 ~~~ "=== Roassal presentations ===" Gofer new smalltalkhubUser: 'Moose' project: 'GToolkit'; package: 'GT-InspectorExtensions-CoreRoassal'; load. Gofer new smalltalkhubUser: 'Moose' project: 'Glamour'; package

Re: [Pharo-users] Running agile visualization examples on pharo 4 doesn't show the RTView

2015-04-25 Thread Peter Uhnák
-show-the-RTView-td4821824.html Peter On Sat, Apr 25, 2015 at 8:56 PM, Yuriy Tymchuk wrote: > Is it only me, or as GTInspector is a part of Pharo 4, configuration of > roassal should load the presentation and not something from outside? > > > On 25 Apr 2015, at 19:23, Pet

[Pharo-users] Rubric RubKeystroke

2015-04-25 Thread Peter Uhnák
Hi, is it possible to catch pressed key in RubTextFieldArea? I tried ~~~ |fieldArea| fieldArea := RubTextFieldArea new takeKeyboardFocus. fieldArea announcer when: RubKeystroke do: [ :rbEvent | rbEvent inspect ]. fieldArea openInWindow. but it doesn't seem

Re: [Pharo-users] Rubric RubKeystroke

2015-04-26 Thread Peter Uhnák
26 Apr 2015 10:21:25 +0200 > Subject: Re: [Pharo-users] Rubric RubKeystroke > > I’ve opened an issue 15407 <https://pharo.fogbugz.com/default.asp?15407> > try with Rubric-AlainPlantec.188 which should fixe it (in Pharo/Rubric). > Cheers > Alain > > > On 25 Apr 2015, at 22

Re: [Pharo-users] Where to channel questions

2015-04-27 Thread Peter Uhnák
Sometimes people also post on StackOverflow and then send link to mailing list. SO is generally oriented more on concrete problems and solutions... e.g. "How do I sort a collection?". General discussions, debates, opinions and other are discouraged and downvoted — it doesn't belong there; so best a

Re: [Pharo-users] [REQUEST] Script to copy repository from SmalltalkHub to Github

2015-04-28 Thread Peter Uhnák
I don't know the current state of things, but when I was using it I had some issues so this may or may not be relevant to you: http://forum.world.st/moving-to-git-and-preserving-monticello-history-td4806386.html#a4806611 Peter On Tue, Apr 28, 2015 at 10:36 PM, Yuriy Tymchuk wrote: > Hi, > > her

[Pharo-users] inverting colors of athens(cairo)canvas

2015-05-01 Thread Peter Uhnák
Is it possible to invert the colors of a Athens Canvas? After some digging I found paintMode and paintTransform; however the former doesn't support such method (maybe some combination of xor and over?); and the former is only for some specific colors. I also tried changing Color>>asAthensPaintOn:

Re: [Pharo-users] builder pattern

2015-05-01 Thread Peter Uhnák
s Diagram'; parent: #MostUsedTools; action: [ self openEmpty ]; Peter On Wed, Apr 15, 2015 at 10:32 AM, Nicolai Hess wrote: > Hi Peter, > > 2015-04-09 21:20 GMT+02:00 Peter Uhnák : > >> Is there some common / best way for coding builde

Re: [Pharo-users] inverting colors of athens(cairo)canvas

2015-05-01 Thread Peter Uhnák
Thanks Nicolai! I should've tried all the paint modes before asking. -_- Peter On Fri, May 1, 2015 at 8:32 PM, Nicolai Hess wrote: > > > 2015-05-01 17:50 GMT+02:00 Werner Kassens : > >> Hi Peter, >> at the morphic level you might eventually look at ColorMappingCanvas and >> make a subclass. >>

[Pharo-users] accessing themed colors from morph

2015-05-01 Thread Peter Uhnák
Hi, how is set the background color of a morph? I could access directly "Smalltalk ui theme backgroundColor" from within the Morph, but I don't see anywhere that something is using themed colors this way. So I assume there is some other way; what am I missing? Note that I don't want to use the c

Re: [Pharo-users] accessing themed colors from morph

2015-05-01 Thread Peter Uhnák
Thank's for the pointers. It seems to me that they access it via 'self theme'; in any case my problem is, for the moment, solved. Thanks, Peter On Fri, May 1, 2015 at 11:11 PM, Nicolai Hess wrote: > > > 2015-05-01 22:22 GMT+02:00 Peter Uhnák : > >> Hi, >>

[Pharo-users] initializeWith* and constructors

2015-05-02 Thread Peter Uhnák
It seems to me that Smalltalkers are not very fond of constructors and I can't comprehend why. If for example I want to create object X that _needs_ object Y, then I would have to make a Y accessor. X>>y: anY y := anY but this makes no sense as I can still change the `y` object at later date

Re: [Pharo-users] accessing themed colors from morph

2015-05-03 Thread Peter Uhnák
> > Yes but, 'self theme' is 'the theme engine that defines all theme > settings' and > 'self theme backgroundColor' is > 'what this theme defines as general backgroundColor' > It does not mean that self (the morph) is actually using this theme > setting for anything. > > I know, I don't care if th

Re: [Pharo-users] Image growing size

2015-05-13 Thread Peter Uhnák
As I have discovered recently I quite regularly have large images (500+ MB); the reason seems to be combination of memory leaks, Roassal (maybe Athens), GUI, and a LOT of saving while having all those things opened. But Image cleanup tends to shrink it back to tens of megabytes. Personally I don't

Re: [Pharo-users] Store a png in a class variable

2015-05-15 Thread Peter Uhnák
You can also use this utility to simplify generation of the array. http://smalltalkhub.com/#!/~peteruhnak/IconFactory Peter On Fri, May 15, 2015 at 9:37 PM, stepharo wrote: > Look at the icons because they are managed like an encoded byte array. > > > Le 15/5/15 21:11, Leonardo Silva a écrit :

Re: [Pharo-users] Spec - Columns Containing Rows Containing Columns

2015-05-19 Thread Peter Uhnák
Indeed using a single top level container should be the best approach, because "SpecLayout composed" doesn't have any layout - so adding multiple items into it are just placed one over the other. Arguably it might be better to add new methods "SpecLayout rows/SpecLayout cols" or something like that

Re: [Pharo-users] [Pharo-dev] Fwd: [cormas] [Cormas] Proposition de stage en informatique

2015-05-27 Thread Peter Uhnák
> > > Is this related to Dynacase? > It is not related... yet :) I've already sent mail to the mails written in the contact. Peter

Re: [Pharo-users] Pointer drawing method?

2015-05-27 Thread Peter Uhnák
I find google's "define" particularly helpful...e.g. google "define ambient" or "define ambience". Peter On Wed, May 27, 2015 at 1:26 PM, Laura Risani wrote: > I always thought that "environment" and "ambient" were synonyms, but it > turns out that the second one is an adjective. > > On Wed, Ma

[Pharo-users] brick/bloc examples missing FILOStack

2015-05-31 Thread Peter Uhnák
Hi, I wanted to try new brick/bloc thing https://pharoweekly.wordpress.com/2015/05/30/future-new-widget-sets-is-coming-to-you/ however after loading (in Pharo 5.0) it is complaining about missing FILOStack (in BlBrickLayouter>>initialize) What should I load? Thanks, Peter

Re: [Pharo-users] brick/bloc examples missing FILOStack

2015-05-31 Thread Peter Uhnák
;> Yes, better to use a queue - thanks! >> >> Cheers, >> Alex >> On Jun 1, 2015 7:32 AM, "Sven Van Caekenberghe" wrote: >> >>> >>> > On 31 May 2015, at 23:15, Peter Uhnák wrote: >>> > >>> > FILOStack >>> >>> Just wondering, isn't this a contradiction in terms ? >>> A stack is by definition LIFO, a FILO structure is normally called a >>> queue, no ? >>> >> >

Re: [Pharo-users] Visualizing a repository tree

2015-06-02 Thread Peter Uhnák
HI Offray, I gave it a quick bash and come up with the following code. It's just a prototype and could be greatly simplified. - MCVersionInfo ancestors for whatever reason returned empty array down the line (so its cut off at the end), but I didn't investigate the problem - edge building and poss

[Pharo-users] sorting repositories in monticello browser

2015-06-02 Thread Peter Uhnák
Hi, is it possible to sort repositories in monticello browser? When I have many (20+) packages it is quite hard to find any one. :( Or perhaps even swap repository names around... so instead of http://smalltalkhub.com/#!/~Moose/PetitParser/ github://Uko/QualityAssistant:v0.4.1 gitfiletree:///hom

[Pharo-users] pillar remove numbering from some headings

2015-06-02 Thread Peter Uhnák
Hi, is there a way to remove heading numbering for some headings? Basically I'm looking for an equivalent of Latex' \subsection*{...}. Thanks, Peter

Re: [Pharo-users] case-insensitive regexp

2015-06-04 Thread Peter Uhnák
I do not think this is possible. The problem is that the Regex compiles (parses) the pattern so once it's created you would have to reparse it. Theoretically speaking you could add ignoreCase accessors to RxMatcher but it is likely it would break things; or add method to RxMatcher that would return

Re: [Pharo-users] Visualizing a repository tree

2015-06-04 Thread Peter Uhnák
n! Keep going! > > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Jun 2, 2015, at 10:57 AM, Peter Uhnák wrote: > > On Tue, Jun 2, 2015 at 3

Re: [Pharo-users] [Pharo-dev] Roassal Camp Smalltalk

2015-06-04 Thread Peter Uhnák
Hi Alex, is it possible to add some discussion about stuff we did in roassal for dynacase to the list? Because I feel there is some duplication effort and also we could probably contribute some stuff we did back. Or perhaps even more general discussion about using roassal for more dynamic and modi

[Pharo-users] collectionDo: vs. collection do:

2015-06-04 Thread Peter Uhnák
Hi, is there some best practice about collectionDo: versus collection do: ? I see many times the first used (e.g. String>>linesDo:); I see a benefit if there is no accessor to the collection, but more times than not there actually is. >From my perspective it further pollutes the protocol and as a

Re: [Pharo-users] Pharo Video Tutorial: Package Tags

2015-06-04 Thread Peter Uhnák
On Wed, Jun 3, 2015 at 1:19 PM, Sergio Fedi wrote: > If something is a tag, then you should be able to apply multiple tags to > something. > Well you sort-of can do that. Consider how many packages have tag "Tests" in it. They don't need to be globally unique and it makes sense to use the very s

Re: [Pharo-users] Pharo Video Tutorial: Package Tags

2015-06-06 Thread Peter Uhnák
> > I am not clear on the internals dealing with "tag" , but in your > example I guess the tags needs to be associated with classes, but our > current "tag"s are associated with a packages? Yeah at least to me it feels that it is associated more with packages. GT-Tests-Spotter makes a good examp

[Pharo-users] breaking infinite loop from saved image

2015-06-15 Thread Peter Uhnák
In moment of my utter brilliance I managed to save image without noticing that I have infinite loop running... So it obviously crashed and launching is quite problematic. I managed to recompile infringing method from a startup script, since it seems strangly that it has higher priority, however rig

Re: [Pharo-users] breaking infinite loop from saved image

2015-06-15 Thread Peter Uhnák
I ended up fileouting what I could in headless mode (had utf8 issues for whatever reason so I didn't get it all), and rewriting the rest. :/ But what happens once will happen again... so some more generic solution for this would be nice. Yuriy mentioned Oz, and it looks viable, provided it works w

Re: [Pharo-users] breaking infinite loop from saved image

2015-06-16 Thread Peter Uhnák
On Tue, Jun 16, 2015 at 10:09 AM, Guillermo Polito < guillermopol...@gmail.com> wrote: > Hi! > > El mar., 16 de jun. de 2015 a la(s) 8:55 a. m., Peter Uhnák < > i.uh...@gmail.com> escribió: > >> I ended up fileouting what I could in headless mode (had utf8 i

[Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-17 Thread Peter Uhnák
Hi, I would like to describe some additional behavior for objects when they are interacting with another objects. The prime example is GTInspector; by default to add presentation you implement a method with "gtInspectorPresentationOrder:". This is fine if there is just one method like this, but w

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-17 Thread Peter Uhnák
7:23 AM, Peter Uhnák wrote: > Hi, > > I would like to describe some additional behavior for objects when they > are interacting with another objects. > > The prime example is GTInspector; by default to add presentation you > implement a method with "gtInspectorPresentati

[Pharo-users] drawing morphs with athens

2014-07-05 Thread Peter Uhnák
Hello, I'm currently working on drawing engine (à la Squeak Connectors) as a part of school project and have a couple of questions about Morphs and Athens and would be grateful if someone could enlighten me. What is the difference between "Morph>>#drawOn:" and "Morph>>#drawOnAthensCanvas:" if I d

Re: [Pharo-users] drawing morphs with athens

2014-07-07 Thread Peter Uhnák
Thank you for all the suggestions. I looked more closely at Roassal and it seems that it might have everything we would need. Basically the next step in the project is to create extensible drawing tool for modelling languages (UML/Petri nets/what have you), so we need to be able to draw any arbitra

[Pharo-users] Building UI with Spec vs Pharo

2014-07-09 Thread Peter Uhnák
Hi, what is the recommended framework for building UIs? As I understand it Spec should be able to handle pretty much anything, however Glamour has quite a lot of nice features and was recommended here http://forum.world.st/Roassal-amp-Spec-td4690745.html as a higher-level abstraction framework (al

Re: [Pharo-users] Building UI with Spec vs Pharo

2014-07-09 Thread Peter Uhnák
here there is a flow from one element to another. So the > answer is: it depends on what you want to do. > > Could you tell us what is it that you are trying to build? > > > On Jul 9, 2014, at 11:39 AM, Peter Uhnák wrote: > > > Hi, > > > > what is the recommended

[Pharo-users] Roassal2 Composite Shape

2014-07-11 Thread Peter Uhnák
Hi I'm trying to draw an ellipse inside another ellipse but to no avail. I've tried using RTCompositeShape but that just expands the size of the smaller shape. Is there something else I'm missing (like fixing dimensions so they won't get updated) or should I subclass RTAbstractCompositeShape and t

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-13 Thread Peter Uhnák
pe elementsOn: RTShape withAllSubclasses). > RTFlowLayout on: v elements. > > v > -=-=-=-=-=-=-=-=-= > > > Alexandre > > > On Jul 11, 2014, at 11:05 PM, Peter Uhnák wrote: > > Hi > > I'm trying to draw an ellipse inside another ellipse but to no avail. I've > tried using RTCom

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-13 Thread Peter Uhnák
te your own shape. > > Let me know how it goes. > > Cheers, > Alexandre > > > On Jul 13, 2014, at 10:38 AM, Peter Uhnák wrote: > >> Thank you both for suggestions. >> >> According to Monticello I have latest Roassal2 and yet I don't see >> RTMu

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Peter Uhnák
.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Jul 13, 2014, at 9:57 AM, Peter Uhnák wrote: > > Thank you, the example now works. However as I've mentioned in > previous post I'm not sure about th

[Pharo-users] Spec - vertically stacked Menu(Group)Model

2014-07-17 Thread Peter Uhnák
Is it possible to force MenuModel to display its groups (and group's items) vertically instead of horizontally? The use case is having button palette to click on. Both world menu and subMenu of MenuItemModel render it this way but it is all hidden in the depths of Morphic. Is there any way how to s

Re: [Pharo-users] Spec - vertically stacked Menu(Group)Model

2014-07-17 Thread Peter Uhnák
:) > > Ben > > On 17 Jul 2014, at 18:24, Peter Uhnák wrote: > > Is it possible to force MenuModel to display its groups (and group's > items) vertically instead of horizontally? The use case is having button > palette to click on. Both world menu and subMenu of MenuItem

Re: [Pharo-users] Spec - vertically stacked Menu(Group)Model

2014-07-17 Thread Peter Uhnák
; :) > > Ben > > On 17 Jul 2014, at 19:03, Peter Uhnák wrote: > > Well, is this something that should be done on top of the existing > solution, or should be Morphic be pushed away and use only Spec? Or just > use Morphic for the very last item - Button and the rest with Spe

Re: [Pharo-users] Spec - vertically stacked Menu(Group)Model

2014-07-17 Thread Peter Uhnák
Ok, thank you both. On Thu, Jul 17, 2014 at 7:16 PM, Esteban Lorenzano wrote: > > On 17 Jul 2014, at 19:10, Peter Uhnák wrote: > > But in general, is Morphic planned to be discontinued (fully replaced with > Athens?) or just live as the bottom layer? > > > No. >

[Pharo-users] Recommended Pharo image updating and Metacello commit policy

2014-07-24 Thread Peter Uhnák
Having ~month old pharo image I was wondering what is the recommended way of updating it. Do I just delete everything and download a fresh one every so often (daily?), do I load new changes through Monticello? Does that upgrade the VM though? If the former what about local code I wrote but I don't

Re: [Pharo-users] Recommended Pharo image updating and Metacello commit policy

2014-07-24 Thread Peter Uhnák
t. I always keep the old images, just in case. > > HTH, > > Sven > > PS: You can save workspaces to files, or use ScriptManager for multiple ones. > There also exists various solutions to move preferences and/or settings > around, YMMV. > > On 24 Jul 2014, at 14:58, Peter Uhn

Re: [Pharo-users] Recommended Pharo image updating and Metacello commit policy

2014-07-24 Thread Peter Uhnák
But isn't that a bit... weird to use cache to move data from one image to another? I would expect cache to be just a cache even if in reality it is just a regular repository. On Fri, Jul 25, 2014 at 12:48 AM, Norbert Hartl wrote: > > Am 24.07.2014 um 23:43 schrieb Stephan Eggermont : > > > If y

[Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-07-26 Thread Peter Uhnák
Hi, is there any support for orthogonal lines in Roassal2? I've seen something similar (ROOrthoVerticalLineShape), however nothing of that sort in Roassal2. I would imagine it to behave similarly to RTBezierLine - having controllingElements to specify the corners. (While ROOrtholines did it automa

Re: [Pharo-users] Copy/past doesn't work sometimes

2014-07-29 Thread Peter Uhnák
I have the same problem on Debian, on both Pharo 3 and 4. I think that Chromium is doing something weird when copying to clipboard, because every other program I've tried works just fine. As a workaround I've installed clipboard manager and I copy from there (or paste and re-copy in some other text

Re: [Pharo-users] Copy/past doesn't work sometimes

2014-07-30 Thread Peter Uhnák
n recopy > it from Sublime text to Pharo IDE even if (sadly) it became a habit... > > On 29/07/14 20:10, Peter Uhnák wrote: > > I have the same problem on Debian, on both Pharo 3 and 4. > > I think that Chromium is doing something weird when copying to clipboard, > > b

Re: [Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-07-30 Thread Peter Uhnák
ts: (1 to: 20) from: [ :n | n // 3 ] to: #yourself > using: shape inView: v. > > v elements @ RTDraggable @ RTPopup. > RTTreeLayout on: v elements. > v open > -=-=-=-=-=-=-=-=-=-=-=-= > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexan

Re: [Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-07-31 Thread Peter Uhnák
ers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Jul 26, 2014, at 3:57 PM, Peter Uhnák wrote: > > Hi, > > is there any support

Re: [Pharo-users] Copy/past doesn't work sometimes

2014-07-31 Thread Peter Uhnák
It seems that the Chromium issue is most likely a result of them switching from GTK to Aura, since it broke in version 35 (when Aura was introduced). So unless someone wants to dive into Pharo VM or Chromium then there is really no simple solution. On Wed, Jul 30, 2014 at 9:10 PM, Peter Uhnák

[Pharo-users] Roassal2 RTDraggable grid and synchronized movement

2014-07-31 Thread Peter Uhnák
While playing with RTMultiLine I thought that it would be nice to have option for RTDraggable elements to snap to a grid / move only by fixed increments - for example the position could only be divisible by 10 (grid size would be 10), so dragging from 20@10 to 26@4 would jump to 30@0. Is something

Re: [Pharo-users] Roassal2 RTDraggable grid and synchronized movement

2014-07-31 Thread Peter Uhnák
x27;t this be handled at Roassal level as it was done in Roassal1 (ROMouseRightClick)? On Thu, Jul 31, 2014 at 9:58 PM, Peter Uhnák wrote: > While playing with RTMultiLine I thought that it would be nice to have > option for RTDraggable elements to snap to a grid / move only by fixed > in

Re: [Pharo-users] Roassal2 RTDraggable grid and synchronized movement

2014-08-01 Thread Peter Uhnák
o slightly process the matrix coordinate. Maybe there are other way > to do this, but it does not look like. Changing Trachel because of this > seems a bit overkill... > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~

Re: [Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-08-02 Thread Peter Uhnák
using: shape inView: v. > >> > >> v elements @ RTDraggable @ RTPopup. > >> > >> RTTreeLayout on: v elements. > >> v open > >> -=-=-=-=-=-=-=-=-=-=-=-= > >> > >> Cheers, > >> Alexandre > >> -- > >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^

Re: [Pharo-users] Roassal2 RTDraggable grid and synchronized movement

2014-08-11 Thread Peter Uhnák
oing with having a snapOnGrid behavior? > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Aug 1, 2014, at 2:36 PM, Peter Uhnák wrote: &g

Re: [Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-08-13 Thread Peter Uhnák
r scenario will be covered by the tests. > > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Aug 2, 2014, at 5:29 AM, Peter Uhnák wrote: > > Hi Alex, > > is there a (

Re: [Pharo-users] Roassal2 orthogonal lines, attach points and self-lines.

2014-08-17 Thread Peter Uhnák
nceptual - should the interaction be even responsible for creating those shapes - especially RTMultiLine? But than again RTLabelled creates Label itself too. Anyway... off to play with the grid now. P On Wed, Aug 13, 2014 at 10:00 AM, Peter Uhnák wrote: > It's a bit longer since at the time

Re: [Pharo-users] Roassal2 RTDraggable grid and synchronized movement

2014-08-19 Thread Peter Uhnák
,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On Aug 11, 2014, at 4:37 AM, Peter Uhnák wrote: > > Hi Alex, > > unfortunately I've been quite busy with other stuff however it's on my > todo list so I'm planning to get back to it later this week. >

[Pharo-users] Code formatting - preserving newlines and comments

2014-08-20 Thread Peter Uhnák
Is it possible to configure formatter to preserve empty lines and line comments? e.g. -- myMethod someCode. < empty line that I would like to preserve > moreCode. --- the formatter also automatically puts comments on the end of the previous statement. e.g. -- someCode.

Re: [Pharo-users] Code formatting - preserving newlines and comments

2014-08-20 Thread Peter Uhnák
Ah! RBConfigurableFormatter class>>settingsOn: is missing one setting (aBuilder setting: #retainBlankLinesBetweenStatements) label: 'Retain blank lines between statements'. As for the comments, I looked at RBConfigurableFormatter>>formatStatementCommentsFor: one idea might be to look a

Re: [Pharo-users] Code formatting - preserving newlines and comments

2014-08-20 Thread Peter Uhnák
rue: [ self newLines: count ] ifFalse: [ codeStream tab ]. codeStream nextPutAll: (originalSource copyFrom: each first to: each last) ] -- to allow having comments on top of sections of code. On Wed, Aug 20, 2014 at 10:20 PM, Peter Uhnák wrote: > Ah! > > RBConfigurableFor

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-17 Thread Peter Uhnák
M, Tudor Girba wrote: > Hi Peter, > > I am not sure I understand. > > Is the worry caused by the fact that when there are multiple gtInspector* > methods then the API would get polluted? > > Cheers, > Doru > > > > On Thu, Jun 18, 2015 at 7:35 AM, Peter Uh

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
-- For example Roassal's RTElement exposes a dictionary to which I can add random stuff, however from my experience that gets messy fast (since I end up just manipulating symbols in structural/procedural code). Peter On Thu, Jun 18, 2015 at 8:37 AM, Peter Uhnák wrote: > The worry is caused by

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
> > > > I don't fully understand the TreeModel example, what would your tool do > with all the men/displayBlock/childrenBlock ... - methods? > Ah, I should've explained what TreeModel is; it is a Spec UI widget to display tree-like structures: ​ So the way this works is that I give the TreeMod

Re: [Pharo-users] gtInspectorPresentation:, TreeModel, pragmas, visitors and polluting protocols

2015-06-18 Thread Peter Uhnák
And gmail didn't add the image correctly it seems... ​ On Thu, Jun 18, 2015 at 10:10 AM, Peter Uhnák wrote: > >> > I don't fully understand the TreeModel example, what would your tool do >> with all the men/displayBlock/childrenBlock ... - methods? >> &g

Re: [Pharo-users] Any YAML parser?

2015-06-21 Thread Peter Uhnák
I suggest using http://forum.world.st/ for searching through mailing lists; using Google is often hit-or-miss (which even with all its neural networks and tracking me everywhere is still after years suggesting Pharaoh...) Anyway, there seems to be something http://forum.world.st/PetitYAML-td480367

[Pharo-users] PetitParser ignorable parsers

2015-06-22 Thread Peter Uhnák
Hi, is it possible to add such a parser that would consume input, but wouldn't return anything? Right now I do things like... MyParser>>rule ^ ($[ asParser, anotherRule, $] asParser) ==> [ :nodes | nodes second ] Of course when the rules are more complex, so is the block; however it seems t

[Pharo-users] pragmas and example* methods use-cases

2015-06-22 Thread Peter Uhnák
Hi, there was a long discussion about the meaning of example* methods and pragmas, however I do not know what was the final resolution. Basically I am interested in two use-cases 1. executable example (the one where Nautilus shows nice play icon) This is as I understand only through example* na

Re: [Pharo-users] pragmas and example* methods use-cases

2015-06-22 Thread Peter Uhnák
Thank you all for your answers (For whatever reason all replies by Torsten to this thread ended up as separate threads.. maybe mail client issues?) It seems that is then the go-to naming for now. I also like that the word starts differently so it's easy to differentiate them at a glance. On Mon

[Pharo-users] Pharo image processing library

2015-06-25 Thread Peter Uhnák
Hi, is there any image (as in picture) processing library in the likes of Python's PIL(http://effbot.org/imagingbook/image.htm), or even (highly unlikely) something like OpenCV (http://opencv.org/)? Thanks, Peter

Re: [Pharo-users] Displaying an image from a file

2015-06-27 Thread Peter Uhnák
As for the saving, you can also look at http://smalltalkhub.com/#!/~peteruhnak/IconFactory (or just browse ThemeIcons, which is already present in the image), which stores the images in methods as base64 strings. Peter On Sat, Jun 27, 2015 at 5:20 PM, Tudor Girba wrote: > Just look at FileRefer

Re: [Pharo-users] [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

2015-06-29 Thread Peter Uhnák
On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont wrote: > On 29-06-15 10:26, Hannes Hirzel wrote: > >> Thank you, Stephan, for providing a well worked out example continuing >> where >> Morphic tutorials normally end. This is a real need to unearth functions >> which have been there fore years

Re: [Pharo-users] adding an element to an empty array

2015-06-29 Thread Peter Uhnák
Or if you want to create an array with elements already in it (this works both for array and collections) you can also do ~~ { anElement } "dynamic array syntax, Pharo-only" ~~ or #('element') "static array, works only for scalars" or Array with:

Re: [Pharo-users] AST Inspector

2015-06-29 Thread Peter Uhnák
What is it drawn with? On Mon, Jun 29, 2015 at 6:53 PM, Mark Rizun wrote: > Need a bit of anti-aliasing for the round shapes :) >> > > Right :) > > >> I wonder how it will look with a long method: they usually have rather >> flat ASTs that would result in a wide diagram. > > > Yes it will be pre

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Peter Uhnák
I've had also bad results on windows... Windows XP 32bit (VirtualBox) - 178.200 (compilations per second) compared to Ubuntu 32bit (VirtualBox) - 694.932 Debian 64bit (host) - 669.932 I had also had experience with Git handling small files on windows was incredibly slow... so maybe it has someth

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-29 Thread Peter Uhnák
Windows XP 1011857707 bytecodes/sec; 132044070 sends/sec Debian 1172295363 bytecodes/sec; 144744207 sends/sec But I think taking the compile: method apart tells a better story ~~~ code := 'a'. method := Object compiler source: code; requestor: nil; failBlock: [ ^nil ]; compile.

Re: [Pharo-users] an elegant way to return a result

2015-06-30 Thread Peter Uhnák
No need to have both if you are returning the receiver. ^ something aMsg ifNotNil: [ aNotherResult ] For example try printing these two lines 1 ifNotNil: [ true ]. "true" nil ifNotNil: [ true ]. "nil" If you are interested in the implementation details I highly recommend to look at the implement

Re: [Pharo-users] an elegant way to return a result

2015-06-30 Thread Peter Uhnák
Make sense if there's code in between. something aMsg ifNil:[ ^ something aMsg ]. "yay for guards!" "much more code" ^ aNotherResult Peter

Re: [Pharo-users] an elegant way to return a result

2015-06-30 Thread Peter Uhnák
Yeah, that should be >something aMsg ifNil: [ ^ nil ]< I thought you were referring to something else originally. :) On Tue, Jun 30, 2015 at 1:43 PM, jtuc...@objektfabrik.de < jtuc...@objektfabrik.de> wrote: > Am 30.06.15 um 13:40 schrieb Peter Uhnák: > >> Make sense if

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-30 Thread Peter Uhnák
I think we've safely established that the bottleneck is disk operations. Quoting from previous emails... store := [ method putSource: code inFile: 2 withPreamble: [:f | f cr; nextPut: $!; nextChunkPut: 'Behavior method'; cr]. ]. machine 1: Debian 64bit (laptop) store bench. 41604 per second Win

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-06-30 Thread Peter Uhnák
e:inFile:withPreambule statement by statement. Is there some more convenient way to do it than wrap each statement in a block? Some way to profile a method or something. Peter On Tue, Jun 30, 2015 at 7:00 PM, Sven Van Caekenberghe wrote: > > > On 30 Jun 2015, at 18:36, Peter Uhnák

[Pharo-users] skipping whole class

2015-07-01 Thread Peter Uhnák
Is it possible to skip whole class from testing? I could do "self skip" for individual methods, but the problems arise even in setUp so I would like to stop the whole class from being tested. Is that possbile? Thanks, Peter

Re: [Pharo-users] skipping whole class

2015-07-01 Thread Peter Uhnák
Of course... thanks :) Peter On Wed, Jul 1, 2015 at 6:44 PM, Camille wrote: > > > On 01 Jul 2015, at 18:24, Peter Uhnák wrote: > > > > Is it possible to skip whole class from testing? > > I could do "self skip" for individual methods, but the problems ari

Re: [Pharo-users] 1$ Recognizer in Pharo

2015-07-01 Thread Peter Uhnák
This is cool indeed! It would be interesting to integrate it with Roassal to drag elements around. :) Peter On Thu, Jul 2, 2015 at 12:33 AM, Johan Fabry wrote: > Very cool ! > > > On Jul 1, 2015, at 18:52, stepharo wrote: > > > > > > Now that we have gestures we can interface recognisers. > >

Re: [Pharo-users] an elegant way to return a result

2015-07-02 Thread Peter Uhnák
> > > So for me > > arg: [ ^ ... ] > > > > is a big warning. > > > > Stef > > Is there a code critic for that ? :) > > There is code critic that encourages you to use it for guards. :) Peter

Re: [Pharo-users] an elegant way to return a result

2015-07-03 Thread Peter Uhnák
by the way > nextOrNextAfterNext := stream next ifNil: [stream next]. > I would argue that almost every person who would read this would think it's a bug and it should be ifNotNil: Also there would be no point in saving it to a variable if you will just return. ^ stream next ifNil: [ stream nex

Re: [Pharo-users] an elegant way to return a result

2015-07-03 Thread Peter Uhnák
> > By the way, I've always used return statements in blocks to "break" out of > loops since i didn't find any "break" method in Pharo. Is that bad too ? > It's still the same thing. Could you provide an example where you do such a thing? When I started with Smalltalk I had also this habit of forc

Re: [Pharo-users] Kivy

2015-07-04 Thread Peter Uhnák
By "something like that" you mean what? More widgets? yaml-like DSL? Touch? Peter On Sat, Jul 4, 2015 at 3:36 PM, Hilaire wrote: > For the record, a friend told me about this > https://en.wikipedia.org/wiki/Kivy > > Will it be cool to have something like that? > > Hilaire > > -- > Dr. Geo > ht

Re: [Pharo-users] Kivy

2015-07-04 Thread Peter Uhnák
> > Is Bloc a user interface markup language? > Or a graphic framework like Morphic? > Bloc is replacement for Morphic. Smalltalk is the markup language; it gives you much more expressiveness compared to static DSLs.

[Pharo-users] Finding error in STON string

2015-07-05 Thread Peter Uhnák
Would be possible for STON to report context for error? For example STON fromString: '[ "first", "second", ]' reports "At character 23: invalid input" which is not very useful especially in longer strings. (at: 23 is actually Character cr) Maybe better would be something like 'At character 23:

[Pharo-users] STON wtf parsing

2015-07-05 Thread Peter Uhnák
How come this passes? STON fromString: '{ "a": "b" }wtf", "x": "y" '. The result is dictionary "a" -> "b". I would expect for it to die on parse error. Peter

<    1   2   3   4   5   6   7   8   >