Re: [Pharo-users] XML Writer not pretty printing

2018-08-15 Thread Peter Uhnak
ur-mileage-may-vary... > > parser := XMLDOMParser > on:' > > > > '. > > (parser parseDocument) > removeAllFormattingNodes; > prettyPrinted. > > Regards > Carlo > > On 14 Aug 2018, at 13:08, Peter Uhnak

Re: [Pharo-users] separate native window of same Pharo image

2018-08-16 Thread Peter Uhnak
> I believe this is a known Windows issue. Well this is more of a show-stopper than just an issue. Is the project maintained? Is Windows support something that is planned? Thanks, Peter On Thu, Jul 19, 2018 at 7:35 PM kmo wrote: > I believe this is a known Windows issue. I have certainly see

[Pharo-users] MetaLink after on a message with argument

2018-09-04 Thread Peter Uhnak
Hi, I'm trying to install an #after metalink to a MessageNode that has an argument, however it fails because the bytecode is missing the argument (I think). Note that #before control worked fine, so I am not sure whether this is a bug, not yet supported, or am I doing something wrong. code (teste

Re: [Pharo-users] Configuring iceberg on Windows

2018-09-06 Thread Peter Uhnak
> I need to get past that error since I get it even when I install Moose via Metacello. Note that Moose depends on projects that are on github, so if it is misconfigured, then it will fail. Maybe you can provide both the ssh key and regular key/password? I use both and so far I had no problems on

Re: [Pharo-users] memorizing data between tests

2018-09-09 Thread Peter Uhnak
Hi Ben, take a look at TestResource (its comment and subclasses). It should do what you are looking for. Peter On Sun, Sep 9, 2018 at 8:08 AM Ben Coman wrote: > Say I want to write ten tests for different aspects of a web service point. > Apart from the risk of relying on an external service,

Re: [Pharo-users] Ready to use Roassal?

2018-09-09 Thread Peter Uhnak
Not sure if this is already fixed in P7, but in P6 sometimes the catalog would not load properly... so one has to close pharo and open it again... probably not the best experience for non-pharo user. Also, if your user is using linux, they also need to have libcairo(i386) installed, otherwise Roas

Re: [Pharo-users] To get started with Gtoolkit and bloc

2018-09-13 Thread Peter Uhnak
Hi, you can start with the Bloc booklet http://files.pharo.org/books-pdfs/booklet-Bloc/BLOCDRAFT.pdf ... it is probably a bit outdated, but I think the API hasn't changed that much. and then in the image itself there is a "Bloc-Examples" package that contains hundreds (thousands?) of examples. Pe

[Pharo-users] is class-side name setter used by the system

2018-09-17 Thread Peter Uhnak
Hi, is the class-side "name:" setter used by the system itself? Because I remember many times overriding it for my own needs and it never broke anything as far as I know... which makes it strange why it even exists (because it is a trap). Thanks, Peter

Re: [Pharo-users] is class-side name setter used by the system

2018-09-17 Thread Peter Uhnak
Hi Peter, >there is no more #name: in Class (or ClassDescription or Behavior). It > is named #setName: > It is only used by the class builder, some class methods and some tests. > It could be hidden better if it is still a problem. > > Cheers. > > > On Mon, Sep 17, 2018

[Pharo-users] overriding FileReference>>copyTo: behavior

2018-09-17 Thread Peter Uhnak
Hi, is there an API to copy a file that will override the target destination if it already exists? I was quite surprised that #copyTo: (and #copyAllTo:) will throw up when the target file already exists. Do I need to explicitly remove the file before copying / copy the contents instead? Thanks,

Re: [Pharo-users] overriding FileReference>>copyTo: behavior

2018-09-17 Thread Peter Uhnak
Ideally something that works as updater only (doesn't touch nor change modification time if the contents is the same) On Mon, Sep 17, 2018 at 1:16 PM Peter Uhnak wrote: > Hi, > > is there an API to copy a file that will override the target destination > if it already ex

Re: [Pharo-users] TextEditor

2018-09-21 Thread Peter Uhnak
Hi, depending on your use-case you might also consider Spec or Playground http://forum.world.st/Using-Playgrounds-as-a-notepad-tp4869129p4869227.html Peter On Fri, Sep 21, 2018 at 5:06 PM Hilaire wrote: > Hello Hernán, > > Thanks to point Rubric which I did not know until now. Any doc/pointer

Re: [Pharo-users] [ANN] Migrated Artefact to GitHub

2018-10-02 Thread Peter Uhnak
On Tue, Oct 2, 2018 at 4:55 PM Sean P. DeNigris wrote: > Guillermo Polito wrote > > when somebody migrates the repository. > > Who has access to the Pharo-contributions GH organization? Is that the > "go-to" repository for this case? I'm not often clear about under which GH > user/org something s

[Pharo-users] Metacello load baselines/configurations only

2018-10-02 Thread Peter Uhnak
Hi, is there a way to instruct Metacello to only install BaselineOfs/ConfigurationOfs instead of the entire project? For the purposes of analyzing dependencies. Thanks, Peter

[Pharo-users] finding dependees of a package

2018-10-07 Thread Peter Uhnak
Hi, I know I can "Browse Dependencies" of a particular package, but this only shows me the dependencies of the selected package X. What I am looking for is a list of packages that depend on X ... is that possible? Thanks, Peter

Re: [Pharo-users] TxText ?

2018-10-14 Thread Peter Uhnak
I think it is "going to be replaced" for several years now, so I wouldn't worry about it too much. Peter On Sun, Oct 14, 2018 at 10:53 AM Hilaire wrote: > Hi, > > I read on some Rubric class comment, it will be replaced or merged with > TxText. > > I heard about TxText on this list, but what is

[Pharo-users] library to chain select:/collect:/ ... via cascade

2018-10-17 Thread Peter Uhnak
Hi, is there some library that will allow me to chain select:/collect:/... via cascade? E.g. #(12 7 'a' nil #(0)) query reject: #isNil; select: #isNumber; collect: #squared; select: #even? The point is to not have to write billion parentheses when building a more complex query. I imagine this

Re: [Pharo-users] RBParser bug ? (Morphic corruption)

2018-10-17 Thread Peter Uhnak
Yes, this is fixed in P7 https://pharo.fogbugz.com/f/cases/20212#BugEvent.193460 solution is to close your image and open again, or go to process browser and kill the new UI loop that started. As a workaround you can do parseExpression:onError: (or whatever the name is)... or I've made a small wr

Re: [Pharo-users] ring deprecation in pharo 7

2018-10-23 Thread Peter Uhnak
Hi Doru, I imagine the replacement is Pavel's Ring2 https://github.com/pavel-krivanek/ring2 Peter On Fri, Oct 19, 2018 at 10:56 PM Tudor Girba wrote: > Hi, > > Ring seems to be deprecated in Pharo 7. Is there something else it will be > replaced with? > > In particular, I am looking for the co

Re: [Pharo-users] what must be instead of the ??

2018-11-09 Thread Peter Uhnak
On Fri, Nov 9, 2018 at 1:26 PM Roelof Wobben wrote: > Thanks all. > > This code seems to do the job > > santaFloorOnBasement > "calculates which step take Santa to the basement" > | index| > index := 1. > [floor ~= -1 ] whileTrue: > [ floor := ((input at: index) = '(' )

Re: [Pharo-users] what must be instead of the ??

2018-11-09 Thread Peter Uhnak
> > but how do I find now the answer do I have to do something like puzzle1 > stepChanges detectIndex ? How do you mean? It would be the same santaFloorOnBasement "calculates which step take Santa to the basement" stepChanges := input collect: [ :c | floor := floor + (c = '(' ifTrue:

Re: [Pharo-users] ToManyRelationSlot variant with an ordered collection?

2018-11-13 Thread Peter Uhnak
Maybe useful... some months ago I've reimplemented FAME's links (and added support for ToOne, etc.) https://github.com/openponk/synchronized-links I wanted to add supports for slots, but didn't get around to it yet... but maybe it will be easier to adapt this than to rewrite everything from scratch

Re: [Pharo-users] Examples of bad code

2018-11-13 Thread Peter Uhnak
Not necessarily unreadable, but I always find the UIManager & co. very confusing. There's a very recent discussion on part of it here http://forum.world.st/Streams-and-FileDialog-in-Pharo-6-and-7-td5084352.html And the combinations and variations of arguments is also a mess https://gist.github.com

Re: [Pharo-users] Problems with NeoCSV Package

2018-11-27 Thread Peter Uhnak
Hi, > Instance of ByteString doesn’t understand #atEnd. This is a very typical error when you have accidentally passed a String instead of a Stream. ... which you did here: > stream := workingDir/myFileName readStreamDo: [ :stream | stream contents]. You can either operate directly on the file

Re: [Pharo-users] subpackages in P7

2018-11-27 Thread Peter Uhnak
The main benefit of using separate packages instead of tags is that you can choose what to load. That's why MyPackage-Test is best kept separate, because when other project is loading your project, they don't need to load such package (which can speed up dependency loading and makes for smaller im

Re: [Pharo-users] How to intercept every instance variable write on all objects

2019-02-02 Thread Peter Uhnak
Hi, 3) Metalinks - it's based on intercepting method calls, right? But I need to intercept direct instance variable write, so probably not possible no, you can attach metalink to any AST node, including an Assignment Node. Some years ago I've made a small utility for this that also auto-reinstall

<    1   2   3