Hi,
I would like to parse a log file with PetitParser. I wrote the parser and it works with a test file of 5,3 Mo.
But the real case is 73,6 Mo...
The main problem is that PetitParser calls asPetitStream, which calls contents on the file.
At this point, the primitive 72 #elementsForwardIdentityTo: fails for #'insufficient object memory'. However, my image is new so it should not raise an error because I have at least 500 Mo of free space.
Is there an way to parse the file as a stream to avoid the call to contents?
Maybe by using PPStream?
Thanks in advance,
Cheers,
Vincent
*************************************************************************************
"Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? de Worldline ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted."
Hi!
Just to let yo know: I have just committed a new version of the package Moose-Help with a help for Moose Chef.
It is very preliminary, but I will make it grow over the time.
Help is welcome :-)
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi,
since I wanted to use DarkTheme I played around with TRMorph (since seeing
giant white rectangle in dark theme is not very nice).
What I have done is moved the background color setting to `surface clear:`
(instead of the original aCanvas fillRectangle).
And then if theme background luminance is dark (>0.5), I invert all the
colors in the visualization.
For dark theme the background is black, and not the theme background - at
least to me it seems that black is much clearer.
Is this something that could be incorporated?
And the modified code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"protocol: drawing"
TRMorph>>drawOn: aCanvas
"aCanvas is a FormCanvas"
self checkSession.
"aCanvas fillRectangle: bounds color: trachelCanvas color."
trachelCanvas playAnimations.
"The drawing has to be done when a change in the shapes occured or when
there is an animation."
surface drawDuring: [:cs |
surface clear: trachelCanvas color.
"We display the elements that are subject to the camera"
cs pathTransform
translateBy: (self extent / 2) asFloatPoint;
scaleBy: trachelCanvas camera scale asFloat;
translateBy: trachelCanvas camera position negated asFloatPoint.
trachelCanvas shapes do: [ :trachelShape |
trachelShape drawOn: cs.
].
"We display the elements that are _NOT_ subject to the camera"
cs pathTransform loadIdentity scaleBy: 1.001.
trachelCanvas fixedShapes do: [ :trachelShape |
trachelShape drawOn: cs.
].
].
self theme backgroundColor luminance < 0.5 ifTrue: [
surface drawDuring: [ :cs |
cs paintMode restoreAfter: [
cs setPaint: Color white.
cs paintMode difference.
cs drawShape: (0 @ 0 extent: surface extent)
]
]
].
"aCanvas translucentImage: surface asForm at: self bounds origin."
"asForm creates a new Form, which is likely to be expensive. This can be
cached"
aCanvas image: surface asForm at: self bounds origin sourceRect: (0 @ 0
extent: surface extent) rule: 34.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Wed, Feb 24, 2016 at 11:03 AM, Martin Bähr <
mbaehr(a)email.archlab.tuwien.ac.at> wrote:
> Excerpts from Peter Uhnák's message of 2016-02-24 10:35:05 +0100:
> > In any case, I wrote a simpler layout delegator in Roassal that delegates
> > the layouting to graphviz and it works reasonably well, so I could
> probably
> > add it to Roassal (you however need graphviz installed and it would add
> > another dependency to Roassal, which I'm not so keen on).
>
> how does that work? does it ask graphviz for the position of the nodes and
> then
> recreate that in roassal?
>
Yes, I generate .dot file that describes the nodes I want the layout for
(that includes the dimensions of it), and then the .dot file is passed to
GraphViz… from there I parse the generated SVG file (they can also output
other formats like txt, or xml) and move the Roassal nodes.
>
> > Maybe also OGDF (http://ogdf.net/doku.php) could be used if you are ok
> with
> > GPL… they have their own graph format so there could be some interaction.
>
> this would work the same as with graphviz as an additional dependency on
> ogdf, right?
>
GraphViz is good enough for generic graphs, but OGDF is well-founded and
much more powerful layouting library. However C++ coding is required if one
wants to use it.
Peter
Hi
I was just passing by DynaCASE once again.
It uses RTGridView and I noticed that when I zoom out camera or resize
(enlarge) window too much, grid remains too small in the center of the
canvas with empty space around it.
Therefore I used few more events and callbacks which reset grid path in
those cases.
mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
By the way why does RTCanvas use TRResizeCanvasEvent and not
TRExtentCallback which would seem to me more uniform with rest of Trachel?
Jan Blizničenko
--
View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.ht…
Sent from the Moose mailing list archive at Nabble.com.
Hello,
I am using Moose 6.0 to generate an UML diagram for a paper.
In the UML diagram below is there a way to specify a Line between the
compilationContext instance variable and CompilationContext class box?
| b |
b := RTUMLClassBuilder new.
b
instanceVariables: #instVarNames;
methodselector: #selector;
methodsNames: #();
attributeselector: #yourself.
b attributeShape color: Color black.
b methodShape color: Color black.
b classNameShape color: Color black.
b lineShape color: Color black.
b boxShape borderColor: Color black.
b
addObjects: { Compiler . CompilationContext };
treeLayout;
build;
view
Hernán
For large images, it can really be a drag to have ImageMorphs always open at
the full size of the form. I added Fit and Fit-Width actions to my Morph
presentations, but I can't figure out how to hook in to have Morphs open
Fit-Width by default. As a hack, I was thinking of trying to fire the action
when the presentation comes up, but I'm not sure how to do that either! Any
suggestions?
I have:
gtInspectorFormIn: composite
<gtInspectorPresentationOrder: 0>
^ composite morph
title: 'Morph';
display: [ self asMorph ]
The morph looked like this:
<http://forum.world.st/file/n4877731/Screenshot_2016-02-15_21.png>
But I want to be fit inside the presentation pane, with no parts cut off.
Here's a screencast of the manual process which I'd like to automate:
https://youtu.be/EsJA0dp6k8c
Thanks in advance!
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/GT-Presentation-Auto-Fit-Morph-tp4877731.html
Sent from the Moose mailing list archive at Nabble.com.
Dear all,
this is a reminder ! The deadline is Feb 19th 2016.
Yuko&Serge, Pharo GSOC 2016 co-administrators
PS: We are looking for more co-administrators to help us finish Pharo
application.
Please ask me in PM.
================================================
Dear pharoers,
this year Pharo consortium (and community) is going to take part in the
Google Summer of Code event[1] as a standalone organization. This is
an opportunity to promote Pharo, get some job done and have students
paid.
Currently we are at the most important stage as we are preparing the
organization application, and hoping that we will be accepted and
granted decent amount of project slots. Everyone can help with
application by submitting ideas for student projects.
I reuse the list of the last year :
https://github.com/pharo-project/pharo-project-proposals/blob/master/Topics…
It is in STON format, and result will be generated at: http://gsoc.pharo.org/
Please add (or update) your ideas following the format of existing projects and
open a pull request with them (you will need a github account).
Preferably submit ideas with possible mentors, but if none are
available at the moment ideas without mentors are also welcome.
The template to submit projects is :
PharoTopic new
title: 'The name of your project;
contact: 'email address';
supervisors: 'Supervisors names';
keywords: 'keywords separated by spaces;
context: 'a description of the context of the project';
goal: 'description of the goal';
level: 'Beginner or Intermediate or Advanced';
yourself.
We will need a lot of projects/idea before February 19th 2016, the
deadline for applying to GSOC 2016.
Do not hesitate to ask me questions.
If you don't know how to edit the list, please send your project description
following the template to me.
[1] https://summerofcode.withgoogle.com/
--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/