[Pharo-users] safely determining whether ProcessWrapper process is running

2018-06-30 Thread Peter Uhnák
Hi, I feel like I am missing something obvious, but is there a _safe_ way to test if PW is still running? If the process pointer for whatever reason is no longer valid (e.g. the image crashed / I closed image), then #isRunning results in crashing the image. Maybe this is a bug? Thanks, Peter

Re: [Pharo-users] [Moose-dev] Roassal2 in Pharo 6.1 (Win) 137 tests fails

2018-07-06 Thread Peter Uhnák
> May be Roassal2 is broken on Windows? Sometimes Pharo on Windows decides that it will not load external library. Try to restart your PC and see if it persists. Peter On Fri, Jul 6, 2018 at 5:38 PM, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > In a clean Pharo 6.1 (Windows 8) I

Re: [Pharo-users] Logging system

2018-07-10 Thread Peter Uhnák
Hi Miguel, there is beacon for logging https://github.com/pharo-project/pharo-beacon you can also consider pharo-sentry https://github.com/peteruhnak/pharo-sentry (note that sentry can be self-hosted) Peter On Mon, Jul 9, 2018 at 10:30 PM, Miguel Campusano < m.campusano.ar...@gmail.com> wrote:

Re: [Pharo-users] Email Google API for pharo

2018-07-11 Thread Peter Uhnák
+1. I've used it last year or so and it was very nice to use. On Wed, Jul 11, 2018 at 2:59 AM, Ben Coman wrote: > On 11 July 2018 at 05:53, oswall arguedas wrote: > > Greetings community of pharo > > > > I am working with the google API to process gmail emails, read, modify, > > archive, send.

Re: [Pharo-users] Email Google API for pharo

2018-07-14 Thread Peter Uhnák
> > Anything public we can use for inspiration? > I was playing with gmail filters, but I think I deleted the image long time ago.

Re: [Pharo-users] XML support for pharo

2018-07-14 Thread Peter Uhnák
Hi Oswall, for processing, take a look also at these three projects. They work on top of XML libraries, but provide some automation/simplification/inference. https://github.com/peteruhnak/xml-dom-visitor https://github.com/peteruhnak/xml-magritte-generator https://github.com/peteruhnak/xmi-analyz

Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-14 Thread Peter Uhnák
This is not FT plugin problem. This is Windows failing to load a proper dll for Pharo. Happens regularly at least with FT and Cairo. Peter On Fri, Jul 13, 2018 at 10:00 AM, webwarrior wrote: > Peter Kenny wrote > > Hello > > > > This seems exactly like a problem I reported almost exactly a year

Re: [Pharo-users] XML support for pharo

2018-07-15 Thread Peter Uhnák
On Sun, Jul 15, 2018 at 3:38 PM, Sean P. DeNigris wrote: > Peter Uhnák wrote > > https://github.com/peteruhnak/xml-magritte-generator > > What does this one do? Here is something similar-sounding: > https://github.com/magritte-metamodel/XML-Bindings Did you read the README?

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

2018-07-19 Thread Peter Uhnák
Hi, did anyone play around with launching a separate native window for Pharo? E.g. I have normal window in which Pharo is, and then I open a separate native window that shows just e.g. Transcript. I know that there are some projects like OSWindow-SDL and OSWindows-UI (using WinAPI), but both of

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

2018-07-19 Thread Peter Uhnák
Thank you both, this is exactly what I was looking for! But I ran into an issue (maybe this is Windows (10) specific): once I open the window, the original Pharo window is no longer responsive. It is not frozen, I can see a cursor blinking in the playground, but clicking anywhere or pressing any

[Pharo-users] NeoJSON ignore some instance variables

2018-07-25 Thread Peter Uhnák
Hi, what is the best way to ignore instance variables when serializing with NeoJSON? I figured out this so far... (NeoJSONWriter on: stream) for: Something do: [ :mapping | mapping mapInstVars: mapping identifier instVarNames \ #(unwanted) ]; nextPut: aSomething Thanks, Peter

[Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
Hi, would it be possible to provide option to automatically sort instance variables when serializing objects? Either always sorted NeoJSONObjectMapping>>writeObject: anObject on: jsonWriter jsonWriter writeMapStreamingDo: [ :jsonMapWriter | (properties sorted: #propertyName ascending) do: [ :eac

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
order. So if you add them in the right order, that would do it. > > > On 25 Jul 2018, at 11:12, Peter Uhnák wrote: > > > > Hi, > > > > would it be possible to provide option to automatically sort instance > variables when serializing objects? > > > &g

Re: [Pharo-users] NeoJSON sorting instance variables/properties

2018-07-25 Thread Peter Uhnák
> Actually I do not think that the above is that bad ;-) It is too explicit for me and easy to forget to do. :) > I guess you could add some extension methods to NeoJSONWriter, or subclass it - yourself. In the end, this is probably the most reasonable. And I can change some of the defaults to

[Pharo-users] Morph reacting to Window being closed

2018-07-29 Thread Peter Uhnák
Hi, how can a Morph react to its parent window being closed? E.g. Morph subclass: #MyMorph. MyMorph new openInWindow how can MyMorph cleanup itself on window close? I thought Morph>>delete would do the trick, but it is not being called. Thanks, Peter

[Pharo-users] transactions on pharo objects

2018-07-30 Thread Peter Uhnák
Hi, is there some library or approach how to do transactions in pharo? And I don't mean database transactions, but directly in memory on Pharo objects... e.g. p := Person new. transaction do: [ p name: 'Nobody'. p age: 70. ] on: Error do: [ transaction rollback. ]. self assert: p na

[Pharo-users] Moose Java AST?

2018-07-31 Thread Peter Uhnák
Hi, is there a Java AST parser in Pharo? I imagine that jdt2famix must have something inside, but as far as I understand, it just extracts some information from the source code and throws the AST away. Thanks, Peter

Re: [Pharo-users] Tracing Method Calls

2018-08-01 Thread Peter Uhnák
If you want some projects using metalinks for inspiration: https://github.com/peteruhnak/metalinks-toolkit https://github.com/peteruhnak/live-instance-viewer (the second one also has a link to PDF explaining it in more detail) Also here an example http://blog.yuriy.tymch.uk/2016/02/vigorous-cach

Re: [Pharo-users] Morph reacting to Window being closed

2018-08-06 Thread Peter Uhnák
Thank you Henrik, #outOfWorld: was the best solution to me, as I can use it even when I don't control the window/container the morph is embedded in. Peter On Sun, Jul 29, 2018 at 10:16 PM, Henrik-Nergaard wrote: > Hi Peter, > > There are two methods which can be used for this purpose. > #outOf

Re: [Pharo-users] Is there a project Label for packages

2018-08-12 Thread Peter Uhnák
BaselineOf/ConfigurationOf is the only place that contains this information, e.g. (BaselineOfCalypso project version packages collect: #name) asSet Peter On Sat, Aug 11, 2018 at 7:41 PM, Eric Gade wrote: > Unless I'm mistaken, the `BaselineOfXXX` is, in part, a description of all > the package

[Pharo-users] mustache bug?

2018-08-13 Thread Peter Uhnák
Hi, I'm using Mustache for Pharo, and according to mustache docs ( https://mustache.github.io/mustache.5.html ), when a key is not found, it should look into parents contexts. However that does not seem to be the case: str := '{{root}} {{#items}} {{root}}.{{name}} {{/items}}'. data := { 'root'

<    3   4   5   6   7   8