[Pharo-users] Re: New Memory Profiler

2023-02-23 Thread Bernardo Ezequiel Contreras
is it possible to inspect this
https://github.com/pharo-project/pharo/issues/12831
? and see what's going on?

On Tue, Feb 21, 2023 at 8:04 AM Sebastian Jordan Montano <
sebastian.jor...@inria.fr> wrote:

> Hello,
>
> I have been working on a new Memory Profiling for profiling object
> allocations.
>
> The profiler has reached a first stable version and I would like to share
> it with you. https://github.com/jordanmontt/illimani-memory-profiler
>
> The profiler gives some statistics, cool visualizations, like a heat-map,
> about the allocations and memory usage.
>
> If you want to profile the memory of some applications, this tool can help
> you.
>
> Also, if you have some use cases or you have some feedback please let us
> know because we are looking to improve the tool :)
>
> Cheers,
>
> Sebastian Jordan
>
>

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: First time Pharo experience: TFFIBackend induced crash...

2022-05-29 Thread Bernardo Ezequiel Contreras
Do you have the git library installed in your O.S.? if you read the stack
trace, it's part of the initialization of git. libgit2_init

On Sun, May 29, 2022 at 2:52 AM  wrote:

> Hi,
>
> (Running GENTOO Linux 64bit/no 32bit layer)
>
> I just downloaded the Pharo Launcer and followed the instructions given
> here:
>
> https://pharo-project.github.io/pharo-launcher/create-images/
>
> I choose the newest stable image and launched it.
>
> A post mortem screen pops up (see attachment). Since I just started with
> Pharo Smalltalk, i can only guess, that something with the “TFFIBackend”
> (whatever that is… ;) ) failed and Pharo stopped working.
>
> I would like to use Pharo…
>
> How can I fix that problem?
>
> Cheers!
>
>
>

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: Null Object Pattern

2022-03-16 Thread Bernardo Ezequiel Contreras
it's impossible to talk about a project that i don't understand.
this sentence
*In the second code especially, the problem is that `position` could be
many types that are not in the same hierarchy,*

draw my attention, because i did many hierarchies  when you don't need to
do it. just use polymorphic messages, objects that have the same protocol.
In that case they don't need to be in the same hierarchy. HTH.

On Wed, Mar 16, 2022 at 4:42 PM  wrote:

> if you are using the null object pattern then you should not write those
> checks (ifNil:ifNotNil:, isNil, isNotNil). you should send the message to
> an instance of the null object and that object should decide what to do.
> just an opinion.
>
> I agree as a general rule, but it can get complicated, especially when
> crossing library boundaries. Once one uses a null object, no one anywhere
> can use those messages. This might, for example, make experimentation,
> refactoring and porting harder.
>
> At the risk of further distracting the conversation from the question of
> inlining, I was having lots of trouble applying the idea you mentioned to
> this (low level hack):
>
> self transcriptable
>
> ifNil: [
>
> self notify: 'Transcript subject not found'
>
> "We want this to be resumable because maybe e.g. the model just hasn't
> been loaded yet" ]
>
> ifNotNil: [
>
> "This is inside the guard because to get the line, we need a subject"
>
> self line ifNil: [
>
> "Brand new snippet"
>
> self initializeLine.
>
> ^ self ] ].
>
> And this:
>
> self snippet line position ifNotNil: [ :position |
>
> self firePlayerRequest: [ :player | player currentPosition: position ] ]
>
> In the second code especially, the problem is that `position` could be
> many types that are not in the same hierarchy, so to send a message to the
> null object instead probably means further polluting Object for the
> non-null case.
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: Null Object Pattern

2022-03-15 Thread Bernardo Ezequiel Contreras
if you are using the null object pattern then you should not write those
checks (ifNil:ifNotNil:, isNil, isNotNil). you should send the message to
an instance of the null object and that object should decide what to do.
just an opinion.


On Tue, Mar 15, 2022 at 3:16 PM  wrote:

> I had some chaining that was getting too complex due to many nil checks,
> so I started to refactor using a Null Object.
>
> However, I’m struggling a bit with the refactor due to inlining. Since
> #ifNil: variants might be inlined, it seems that something like:
>
> anObject with a long chain of messages ifNotNil: [ :result | “…” ]
>
> must be changed into something like:
>
> anObject with a long chain of messages isNil ifFalse: [ anObject with a
> long chain of messages “…” ].
>
> Obviously, I can use a temp to have:
>
> result := anObject with a long chain of messages.
>
> result isNil ifFalse: [ result “…” ].
>
> But both seem ugly and make me question using this pattern.
>
>1.
>
>What am I missing?
>2.
>
>After 40+ years of Moore’s Law, can we turn off these inlines by
>default?
>
>

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: ByteString asDate

2022-03-02 Thread Bernardo Ezequiel Contreras
see chapter 13 in
http://files.pharo.org/books-pdfs/deep-into-pharo/2013-DeepIntoPharo-EN.pdf

it's a chapter dedicated to exceptions. the #on:do: message is in section
13.4.

regarding the asDate message,  i really don't know. you need a kind of
validator.

sorry, if i'm not much help.

On Wed, Mar 2, 2022 at 7:35 AM Robert Briggs via Pharo-users <
pharo-users@lists.pharo.org> wrote:

> Thanks Bernardo
>
>
>
> That construct works as required, however I’m not sure what the semantic
> difference is to my original.  I seems counterintuitive.  Could you expand
> on what is going on for my benefit (if you have time).
>
> Again thanks.
>
>
>
> Also do you have a view on my description of the asDate result, and
> whether it should self-validate the receiver and raise an exception?
>
>
>
> Regards
>
> R
>
>
>
> *From: *Bernardo Ezequiel Contreras 
> *Reply to: *Any question about pharo is welcome <
> pharo-users@lists.pharo.org>
> *Date: *Tuesday, 1 March 2022 at 15:05
> *To: *Any question about pharo is welcome 
> *Subject: *[Pharo-users] Re: ByteString asDate
>
>
>
> try to send the #on:do: message  to a block. try this
>
>
>
> ^ [ (Date readFrom: self pattern: ‘dd/mm/’).
>
>  true ]  on: DateError do: [ false].
>
>
>
>
>
>
>
> On Tue, Mar 1, 2022 at 11:52 AM Robert Briggs via Pharo-users <
> pharo-users@lists.pharo.org> wrote:
>
> I may be being stupid but the current Date Class does not appear to
> protect itself against a ByteString that is not in valid date format, e.g.
> by raising an Error.
>
>
>
> e.g. the code  ‘ABC’ asDate opens the Debugger on #isLetter was sent to
> nil because it appears to expect more letters after $C but the peek
> returns nil instead.
>
> This seems to me to require a more defensive programming approach.
>
>
>
> I would like to validate a user input as a valid date in a number of
> different formats before converting it to a Date and storing it in my model.
>
>
>
> I’ve tried using the Date parser, e.g.
>
>
>
> Date readFrom: '04/02/2013' readStream pattern: 'dd/mm/'.
>
>
>
>
>
> This is fine for simply parsing a valid string but rates a DateError if it
> doesn’t match the .  So entering ‘04/13/2013’ cleverly raises ‘DateError:
> There is no 13th month’.
>
>
>
> My thought was I could use this to return a simple true/false result in a
> ByteString extension in my application for example as follows:
>
>
>
> ByteString >> isValdiDate
>
>
>
> (Date readFrom: self pattern: ‘dd/mm/’) on: DateError do: [^ false].
>
> ^ true
>
>
>
> However this doesn’t intercept the DateError which is simply reported in
> the Debugger as before.   This may be my lack of uncderstaning of the
> Exception handling in Pharo.
>
>
>
> Any and all thoughts welcome.
>
>
>
> R
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
>
> Bernardo E.C.
>
>
>
> Sent from a cheap desktop computer in South America.
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: ByteString asDate

2022-03-01 Thread Bernardo Ezequiel Contreras
try to send the #on:do: message  to a block. try this

^ [ (Date readFrom: self pattern: ‘dd/mm/’).
 true ]  on: DateError do: [ false].



On Tue, Mar 1, 2022 at 11:52 AM Robert Briggs via Pharo-users <
pharo-users@lists.pharo.org> wrote:

> I may be being stupid but the current Date Class does not appear to
> protect itself against a ByteString that is not in valid date format, e.g.
> by raising an Error.
>
>
>
> e.g. the code  ‘ABC’ asDate opens the Debugger on #isLetter was sent to
> nil because it appears to expect more letters after $C but the peek
> returns nil instead.
>
> This seems to me to require a more defensive programming approach.
>
>
>
> I would like to validate a user input as a valid date in a number of
> different formats before converting it to a Date and storing it in my model.
>
>
>
> I’ve tried using the Date parser, e.g.
>
>
>
> Date readFrom: '04/02/2013' readStream pattern: 'dd/mm/'.
>
>
>
>
>
> This is fine for simply parsing a valid string but rates a DateError if it
> doesn’t match the .  So entering ‘04/13/2013’ cleverly raises ‘DateError:
> There is no 13th month’.
>
>
>
> My thought was I could use this to return a simple true/false result in a
> ByteString extension in my application for example as follows:
>
>
>
> ByteString >> isValdiDate
>
>
>
> (Date readFrom: self pattern: ‘dd/mm/’) on: DateError do: [^ false].
>
> ^ true
>
>
>
> However this doesn’t intercept the DateError which is simply reported in
> the Debugger as before.   This may be my lack of uncderstaning of the
> Exception handling in Pharo.
>
>
>
> Any and all thoughts welcome.
>
>
>
> R
>
>
>
>
>
>
>
>
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Re: PharoDays'22: Inscriptions are open!

2022-02-01 Thread Bernardo Ezequiel Contreras
any video recordings?

On Tue, Feb 1, 2022 at 10:20 AM Russ Whaley  wrote:

> Any opportunity for virtual attendance at any of these sessions?
>
> On Tue, Feb 1, 2022 at 5:26 AM Guillermo Polito 
> wrote:
>
>>
>> 
>> Pharo Days
>>
>> March 3rd and 4th, Lille, France
>>
>> https://days.pharo.org/
>> 
>>
>> Inscriptions are open!
>>
>> Do not miss the opportunity to meet the Pharo programming environment and
>> its community! PharoDays is a unique event where you can meet other
>> Pharoers, discover latest advances, and share your experience. Hand-ons
>> sessions are there to help you getting started on advance topics. Follow
>> the "Show us your project" sessions to get immersed in Pharo lively
>> community.
>>
>> This year, PharoDays is a mix of technical talks and hand-ons. Come to
>> join business chat and enjoy friendly atmosphere and discuss with experts.
>> Check the tentative schedule: from building command line interfaces to
>> web applications, through modern desktop applications, visualisations,
>> debugging and even a live music performance!
>>
>> See you in march!
>>
>
>
> --
> Russ Whaley
> whaley.r...@gmail.com
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Don't tell I sent that ;)

2020-04-24 Thread Bernardo Ezequiel Contreras
see
http://stephane.ducasse.free.fr/FreeBooks.html
that's a good link.


On Fri, Apr 24, 2020 at 4:57 AM Cédrick Béler  wrote:

> Found the link. As I guess not legal, I send private.
>
> I’ve the book. I liked it if I remember ;)
>
>
> https://doc.lagout.org/programmation/Smalltalk/Smalltalk%20-%20Objects%20and%20Design.pdf
>
> Cheers,
> Cédrick
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] how to open a system browser on a environment?

2019-08-29 Thread Bernardo Ezequiel Contreras
thanks, but nop. (i downloaded drgeo and tested that expression)
i want to open the system browser with my project's packages, only that.
thanks again.


On Thu, Aug 29, 2019 at 9:16 AM Hilaire  wrote:

> On DrGeo based on P7, I do this:
>
> Smalltalk tools browser openOnClass: DrGeoSketch
>
> Hope it help.
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>
>

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] how to open a system browser on a environment?

2019-08-28 Thread Bernardo Ezequiel Contreras
hi, i used to open a system browser with an environment

i built the following environment

earleyEnvironment
| packageNames |
packageNames := OrderedCollection with: BaselineOfEarleyParser package
packageName.
packageNames addAll: (BaselineOfEarleyParser project version packages
collect: [ :each | each name ]).
^ (RBBrowserEnvironment new forPackageNames: packageNames)
label: 'Earley Parser Environment';
yourself

and then i opent the system browser with it
"protocol: environment"
openBrowserInEarleyEnvironment
^ (Smalltalk tools browser browsedEnvironment: self earleyEnvironment) open

now, i dont know how to do it with the new browser.
any hints? suggestions?

thanks.


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] External module not found

2018-11-17 Thread Bernardo Ezequiel Contreras
i've seen that error when i forgot to put a link to sqlite3 (libsqlite3.so)
near the VM. are you sure that the VM have access to the external library?



On Sat, Nov 17, 2018 at 7:39 PM Richard Kenneth Eng <
horrido.hobb...@gmail.com> wrote:

> I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
>  encryption
> package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
> anymore. The ffiCall:module: message always gives me "External module
> not found".
>
> So my question is, what alternative package can I use to replace the it
> for Pharo 6?
>
> Should I go back to Pharo 5?
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Tonel, Pharo 6.1 and file per class?

2018-05-09 Thread Bernardo Ezequiel Contreras
On Wed, May 9, 2018 at 9:36 PM, Tim Mackinnon  wrote:

>
> I also wasn’t sure how you merge a branch back on to master with Iceberg
> (can you ?) - so I just did that bit in gitlab.
>
>
no, i didn't use iceberg. i just run the script (without the push at the
end) and then i use git commands to get back to master
and merge the migrate-sources-to-tonel branch. and then i pushed to origin.

if you have a better script, just propose the fix in github. there's a
pencil in the left hand
with the caption 'Fork this project and edit this file' after the
modification you have the
option to create a pull request.


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Tonel, Pharo 6.1 and file per class?

2018-05-09 Thread Bernardo Ezequiel Contreras
Tim, i've used the following script

https://github.com/pharo-vcs/tonel/blob/master/MigrateFromFileTree.md

in my pet projects. hope this helps.

On Wed, May 9, 2018 at 8:22 PM, Tim Mackinnon  wrote:

> Hmmm - I don’t think I’ve fully understood the instructions. If I already
> have a project in filetree git format - does creating the .properties file
> work? What do I do to convert it to tonel format? I think I’ve noticed a
> few announcements where people have said they’ve moved to the new tonel
> format - so how did they do it?
>
> I tried using git on the command line to add .properties file there - but
> not sure it did anything?
>
> Tim
>
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] #ast vs. #parseTree

2018-05-02 Thread Bernardo Ezequiel Contreras
a "parse tree" is not equal to an "ast"(abstract syntax tree)
but its difficult to find a name for an ast that is not cached.
maybe
parsedAst
parseAst



On Wed, May 2, 2018 at 3:28 PM, Richard Sargent <
richard.sarg...@gemtalksystems.com> wrote:

> On Wed, May 2, 2018 at 11:06 AM, Denis Kudriashov 
> wrote:
>
>> Hi.
>>
>> Maybe #parseSourceCode would be better name for #parseTree.
>>
>
> I've always found it good advice to avoid using a verb phrase to name
> something which does not entail some kind of action.
> #parseSourceCode realy reads like something which would parse the source
> code. #parseTree also has that effect, except for the lack of a tree to
> parse.
>
>
>
>>
>> 2018-05-02 16:33 GMT+03:00 Marcus Denker :
>>
>>>
>>>
>>> > On 27 Apr 2018, at 21:36, Sean P. DeNigris 
>>> wrote:
>>> >
>>> > Marcus Denker-4 wrote
>>> >> I will add comments…
>>> >
>>> > I got confused by this again and created an issue:
>>> > https://pharo.manuscript.com/f/cases/21806/Document-Differen
>>> ce-between-ast-and-parseTree
>>> >
>>> > And then Peter Uhnak reminded me on Discord about this thread. I'm
>>> happy to
>>> > add the comments, but not sure I understand the issue well enough.
>>> IIUC #ast
>>> > is cached, but #parseTree is not. What I don't understand is the
>>> purpose of
>>> > this difference and when one would use one over the other.
>>>
>>> the cached #ast is for one interesting for speed (that is, in situations
>>> where you ask for it often).
>>>
>>> The other use-case is if you want to annotate the AST and keep that
>>> annotation around (till the next
>>> image save, but you can subscribe to ASTCacheReset and re-install the
>>> AST in the cache after cleaning.
>>> (This is used by MetaLinks to make sure they survive image restart).
>>>
>>> The last thing that it provides is that we do have a quite powerful
>>> mapping between bytecode/text/context
>>> and the AST. Regardless how you navigate, you get the same object.
>>>
>>> e.g. even this one works:
>>>
>>> [ 1+2 ] sourceNode == thisContext method ast blockNodes first
>>>
>>> > For example,
>>> > when, if ever, would a user want to access a CM's #ast (as opposed to
>>> > #parseTree) and could modifying it create problems?
>>> >
>>>
>>> Modification is a problem, yes.. code that wants to modify the AST
>>> without making sure the compiledMethod is in sync later
>>> should use #parseTree.
>>>
>>> Code that does not modify the AST (or makes sure to compile it after
>>> modification) is free to use #ast.
>>> or if you want to annotate the AST (which is a modification, after all).
>>>
>>> This is not perfect (not at all…) but the simplest solution to get (to
>>> some extend) what you would have if the system would have
>>> a real persistent, first class AST…
>>>
>>> To be improved. The ASTCache with it’s naive “lets just cache everything
>>> till the next image save” was done with the idea to see
>>> when it would show that it is too naive… for that it worked amazingly
>>> well till now.
>>>
>>> Marcus
>>>
>>
>>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Smalltalk-76 Demo

2018-04-28 Thread Bernardo Ezequiel Contreras
https://youtu.be/NqKyHEJe9_w

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Creating a repository with Iceberg

2018-04-19 Thread Bernardo Ezequiel Contreras
you can avoid it if you go to

World>>System>>Settings>>Tools>>Software Configuration Management>>Iceberg

and choose the
File format type: tonel/filetree

On Thu, Apr 19, 2018 at 3:33 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> see
> https://github.com/pharo-vcs/iceberg/issues/579
>
>
>
> On Thu, Apr 19, 2018 at 1:04 PM, sergio ruiz  wrote:
>
>> I am just getting started with Iceberg.
>>
>> In creating a new repo on my local machine, I keep getting this error:
>>
>> Object>>doesNotUnderstand: #asSymbol
>>
>> it has a beef with this line:
>>
>> defaultFileFormat
>> ^ Smalltalk at: self defaultFileFormatType asSymbol
>>
>> Do i need to set this in my image?
>>
>> Thanks!
>>
>>
>>
>> 
>> peace,
>> sergio
>> photographer, journalist, visionary
>>
>> Public Key: http://bit.ly/29z9fG0
>> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
>> http://www.codeandmusic.com
>> http://www.twitter.com/sergio_101
>> http://www.facebook.com/sergio101
>>
>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Creating a repository with Iceberg

2018-04-19 Thread Bernardo Ezequiel Contreras
see
https://github.com/pharo-vcs/iceberg/issues/579



On Thu, Apr 19, 2018 at 1:04 PM, sergio ruiz  wrote:

> I am just getting started with Iceberg.
>
> In creating a new repo on my local machine, I keep getting this error:
>
> Object>>doesNotUnderstand: #asSymbol
>
> it has a beef with this line:
>
> defaultFileFormat
> ^ Smalltalk at: self defaultFileFormatType asSymbol
>
> Do i need to set this in my image?
>
> Thanks!
>
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SmalltalkCI now supports loading tonel-based projects

2018-04-18 Thread Bernardo Ezequiel Contreras
it works
https://travis-ci.org/vonbecmann/earley-parser/builds/365332549

thanks.


On Wed, Apr 18, 2018 at 2:04 PM, Gabriel Cotelli 
wrote:

> Yes, that failure it's the same I reported in
> https://github.com/pharo-vcs/iceberg/issues/643.
>
> On Wed, Apr 18, 2018 at 1:48 PM, Damien Pollet <
> damien.pollet+ph...@gmail.com> wrote:
>
>> I can confirm coverage is back. I think the drop is at least partly due
>> to the changes I did while it was broken.
>>
>> However the Pharo 7 builds seem to be broken now, with what looks like a
>> libgit issue… https://travis-ci.org/cdlm/clap-st
>>
>> On 18 April 2018 at 13:24, Gabriel Cotelli  wrote:
>>
>>> Hi,
>>> We managed to implement the coveralls support for Tonel based repos, and
>>> fixed the problem loading dependencies in Tonel format (by enabling the
>>> Iceberg-Metacello integration).
>>>
>>> So feel free to test it and report any problem detected (it's now merged
>>> in smalltalkCI/master).
>>>
>>> By now the only open issue we known is: https://github.com/pharo-vcs/i
>>> ceberg/issues/643.
>>>
>>> Regards,
>>> Gabriel
>>>
>>>
>>> On Sat, Apr 7, 2018 at 6:28 AM, Peter Uhnák  wrote:
>>>
 Hi,

 SmalltalkCI now supports loading tonel-based projects, so feel free to
 start using it.

 The configuration is still the same.

 Please note that coveralls support for tonel is not yet in place, but
 that's just a cherry on top. :-)

 Cheers,
 Peter

>>>
>>>
>>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] [SmalltalkCI] loading tonel dependencies?

2018-04-11 Thread Bernardo Ezequiel Contreras
in a fresh 6.1 image , i did this

Metacello new
baseline: 'EarleyParser';
repository: 'github://vonbecmann/earley-parser/repository';
load.

expression in the playground and it works.

so there's something bogus in smalltalkCI.



On Wed, Apr 11, 2018 at 9:14 PM, Gabriel Cotelli 
wrote:

> If Iceberg enableMetacelloIntegration is true the load seems to work. But
> I think smalltalkCI disabled it for Pharo (see disableIcebergDuring: ). I
> don't know why.
>
> On Wed, Apr 11, 2018 at 6:40 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> peter,
>>  are you sure that dependencies of a project in tonel format can be
>> loaded?
>>
>> earley-parser -> linked-list
>>
>> see https://travis-ci.org/vonbecmann/earley-parser/builds/365332549
>>
>> thanks in advance
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] [SmalltalkCI] loading tonel dependencies?

2018-04-11 Thread Bernardo Ezequiel Contreras
peter,
 are you sure that dependencies of a project in tonel format can be loaded?

earley-parser -> linked-list

see https://travis-ci.org/vonbecmann/earley-parser/builds/365332549

thanks in advance

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SmalltalkCI now supports loading tonel-based projects

2018-04-09 Thread Bernardo Ezequiel Contreras
peter, thanks.
don't pay attention to that file. it's used by a pet project of mine in my
computer(locally).
thanks again.


On Mon, Apr 9, 2018 at 4:31 AM, Peter Uhnák  wrote:

> >  do you use filetree:// or tonel:// ?
>
> Neither. as I said, it requires no change in the configuration.
>
> But naturally it requires tonel in the image, so Pharo 6.1+
>
> I don't know what's the purpose of your set-up.st ... that's
> SmalltalkCI's responsibility to load the code.
>
> Peter
>
> On Mon, Apr 9, 2018 at 2:05 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> i changed the pharo version from 6.0 to 6.1, and use tonel://
>> and then it worked!
>>
>> https://travis-ci.org/vonbecmann/linked-list/builds/363909898
>>
>> thanks.
>>
>>
>> On Sun, Apr 8, 2018 at 8:15 PM, Bernardo Ezequiel Contreras <
>> vonbecm...@gmail.com> wrote:
>>
>>> do you use filetree:// or tonel:// ?
>>>
>>> thanks in advance.
>>>
>>>
>>> On Sat, Apr 7, 2018 at 6:28 AM, Peter Uhnák  wrote:
>>>
>>>> Hi,
>>>>
>>>> SmalltalkCI now supports loading tonel-based projects, so feel free to
>>>> start using it.
>>>>
>>>> The configuration is still the same.
>>>>
>>>> Please note that coveralls support for tonel is not yet in place, but
>>>> that's just a cherry on top. :-)
>>>>
>>>> Cheers,
>>>> Peter
>>>>
>>>
>>>
>>>
>>> --
>>> Bernardo E.C.
>>>
>>> Sent from a cheap desktop computer in South America.
>>>
>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SmalltalkCI now supports loading tonel-based projects

2018-04-08 Thread Bernardo Ezequiel Contreras
i changed the pharo version from 6.0 to 6.1, and use tonel://
and then it worked!

https://travis-ci.org/vonbecmann/linked-list/builds/363909898

thanks.


On Sun, Apr 8, 2018 at 8:15 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> do you use filetree:// or tonel:// ?
>
> thanks in advance.
>
>
> On Sat, Apr 7, 2018 at 6:28 AM, Peter Uhnák  wrote:
>
>> Hi,
>>
>> SmalltalkCI now supports loading tonel-based projects, so feel free to
>> start using it.
>>
>> The configuration is still the same.
>>
>> Please note that coveralls support for tonel is not yet in place, but
>> that's just a cherry on top. :-)
>>
>> Cheers,
>> Peter
>>
>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SmalltalkCI now supports loading tonel-based projects

2018-04-08 Thread Bernardo Ezequiel Contreras
do you use filetree:// or tonel:// ?

thanks in advance.


On Sat, Apr 7, 2018 at 6:28 AM, Peter Uhnák  wrote:

> Hi,
>
> SmalltalkCI now supports loading tonel-based projects, so feel free to
> start using it.
>
> The configuration is still the same.
>
> Please note that coveralls support for tonel is not yet in place, but
> that's just a cherry on top. :-)
>
> Cheers,
> Peter
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo-users Digest, Vol 55, Issue 94

2017-11-11 Thread Bernardo Ezequiel Contreras
check esugboard channel in youtube
https://www.youtube.com/channel/UCO-vBhaKVZf0al-ISMMPvRw

On Sat, Nov 11, 2017 at 6:29 PM, Викентий Потапов  wrote:

>
> I want to get these esug videos, but i've searched through the whole pharo
> site and i haven't found them ... :(
> I appreciate if you point me where to find help on working with minimal
> image\deploying with Pharo.
> And i also think this very important information should be available on
> pharo site at conspicuous place.
>
> What about Dr.Geo - i've downloaded this program to test from official
> site (http://www.drgeo.eu/download#TOC-PC-Mac-GNU-Linux). I launched
> DrGeo.bat, as it noted in instruction. It shown me console window and Pharo
> command line options. That's all. It didn't start. I think, the reason is -
> also cyrillic paths, but ... who knows?
>
> And also i mean some simple and understandable deployment tool (as in
> Cincom VW exists) but not manual-written bash scripts.  This tool asks me
> what class\accessor send open message, asks what to strip and how to pack
> my image. Few simple steps and i have perfectly cleaned minimal image with
> all image started methods tuned to load necessary class. It's really cool
> stuff. It's a pity, my low-level SmallTalk knowledge (VW + Pharo) is not
> enough to port this tool or create the new one.
>
> Please, understand me right, i don't criticize pharo, but i'm trying to
> understand what to do and how to do with less efforts for me. And these are
> the questions every developer asks.
>
> > On 11-11-17 18:58,  ??? wrote:
> > > Another stumbling block is application deployment.
> >
> > You want to start from a minimal image and load everything you need with
> > a Metacello baseline/configuration. And you want to change some settings
> > to run without sources. You will run into parts that are not modularized
> > enough yet and need their baselines to be split up further than they are
> > now.
> >
> > The minimal image is rather minimal. See the esug videos
> >
> > Stephan
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] LiteratureResearcher - where graphs, PDFs, and BibTex happily live together

2017-11-01 Thread Bernardo Ezequiel Contreras
really nice! ted nelson talks about something like that in his xanadu
project.

On Wed, Nov 1, 2017 at 6:16 PM, Manuel Leuenberger  wrote:

> Hi everyone,
>
> I was experimenting in the last few weeks with my take on literature
> research. For me, the corpus of scientific papers form an interconnected
> graph, not those plain lists and tables we keep in our bibliographies. So,
> here is the first prototype that has Google Scholar integration for search,
> can fetch PDFs from IEEE and ACM, extracts metadata from PDFs - all this
> results in hyperlinked PDFs!
>
> See a demo here: https://youtu.be/EcK3Pt_WnEw
> Also slides from the SCG seminar here: http://scg.unibe.ch/
> download/softwarecomposition/2017-10-31-Leuenberger-ILE.pdf
>
> I plan on packaging it, so that those who are interested can check it out
> themselves (help wanted!). Currently, it only works on macOS.
>
> What do you think of my approach? Which use cases should be added?
>
> Cheers,
> Manuel
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-05 Thread Bernardo Ezequiel Contreras
did you try with negate?

comment
^ ($" asParser , $" asParser negate star , $" asParser) flatten



On Sat, Aug 5, 2017 at 5:26 PM, Sean P. DeNigris 
wrote:

> How do I tell Petit Parser to parse a string of certain allowable
> characters
> as long as the final result isn't a particular string? E.g. consume an
> identifier as long as it's not 'Baz' or 'Bar'
>
> Thanks
>
>
>
> -
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/
> PetitParser-Parse-X-as-long-as-it-s-not-Y-tp4958895.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Prolog in Pharo

2017-06-17 Thread Bernardo Ezequiel Contreras
MCSmalltalkhubRepository
owner: 'goonsh'
project: 'Prolog'
user: ''
password: ''

it worked in pharo 3, it doesn't work in pharo5 and pharo6


On Sat, Jun 17, 2017 at 4:43 PM, Serge Stinckwich <
serge.stinckw...@gmail.com> wrote:

> Talking about DSL, there was all this work about integrating logic
> programming with Smalltalk called
> SOUL. But apparently all this died since many years:
> http://ss3.gemstone.com/ss/SOUL.html
> http://soft.vub.ac.be/SOUL/
>
> On Sat, Jun 17, 2017 at 6:11 PM, Evan Donahue  wrote:
> > Hi, just saw this.
> >
> > Smallkanren is complete and under very active development, I just haven't
> > put a new version up in a while because I didn't think that anyone was
> using
> > it. I'm currently cleaning up a new release and was planning to upload
> that
> > in the next few days. It should have full support for all the core
> functions
> > and a better interface, in addition to being much faster.
> >
> > As far as the matter of real world vs academic exercise, I think I might
> say
> > rather that it has not *yet* been as thoroughly developed and proven as
> > prolog. It is, after all, a much newer language by almost a half century.
> > However, it forms the basis of clojure's core.logic library, and has been
> > seeing an increasing amount of deployment in real world projects in that
> > area (configuration, parsing, test generation sorts of things I think).
> I'd
> > like to enable the same in Pharo.
> >
> > If anyone is interested to know more, feel free to get in touch.
> >
> > Cheers,
> > Evan
> >
> >
> >
> >
> >
> > --
> > View this message in context: http://forum.world.st/Prolog-
> in-Pharo-tp4951719p4951737.html
> > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Serge Stinckwich
> UCN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Deprecation Warning

2017-06-02 Thread Bernardo Ezequiel Contreras
World>>System>>Settings
Tools>>Debugging>>Deprecation handling

Raise a blocking dialog
if true, then a dialog is popup for each deprecated method invocation

hth

On Fri, Jun 2, 2017 at 7:28 PM, Georges  wrote:

> Hello,
>
> Is there somewhere a setting to turn off the Deprecation Warning debugger?
>
> Georges
>
>
>
> --
> View this message in context: http://forum.world.st/
> Deprecation-Warning-tp4949096.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread Bernardo Ezequiel Contreras
hi,
  i'm using a multi-valued dictionary

https://github.com/vonbecmann/multi-valued-dictionary

in the following way

itemsByKey := MultiValuedDictionary dictionary: IdentityDictionary
collection: IdentityDictionary

so i can check the existence of an item by its key (an ordered pair)

(itemsByKey at: anItem key first ifAbsent: nil)
ifNotNil:
[ :dict |
(dict at: anItem key second ifAbsent: nil)
ifNotNil: [ :found | ^ found ] ].


and i add an item like this

itemsByKey
at: anItem key first
add: (Association basicNew key: anItem key second value: anItem).

hth

On Sat, May 27, 2017 at 3:28 PM, Stephane Ducasse 
wrote:

> Hi
>
> I'm looking for an implementation of dictionary whose value is also a
> dictionary.
>
> Stef
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Easy question about syntax.

2017-03-10 Thread Bernardo Ezequiel Contreras
i think that in the first case you access an instance variable trees while
in the second case you send a message trees to self that cause an infinite
recursion.
am i right?


On Sat, Mar 11, 2017 at 12:57 AM, sergio ruiz  wrote:

> I have a simple one, but i need to understand what is going on..
>
> i have something like
>
> Tree
>
> with a class method
>
> trees
> ^ trees ifNil: [OrderedCollection new]
>
> i initially ran into trouble with it locking my image up because i wrote
> it as:
>
> trees
> ^ self trees ifNil: [OrderedCollection new]
>
> what is the semantic difference between these two calls?
>
> THanks!
>
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] [Teaser] Using Pharo to script Unreal

2016-11-12 Thread Bernardo Ezequiel Contreras
congratulations! you seem very excited with the results.


On Sat, Nov 12, 2016 at 5:44 PM, Dimitris Chloupis 
wrote:

> Annnd I DID IT !!!
>
> I accomplished connecting Pharo with Unreal so I can script it with Pharo.
> It works from inside the editor and for the game as standalone. True live
> coding :)
>
> I am amazed how fast it is, but then I guess it should be expected with
> shared memory.  You can watch a short demo here
>
> https://www.youtube.com/watch?v=6fsUKW8-bBE&feature=youtu.be
>
> When I first created the loop, nothing happened.
>
> So naturally I expected that my CPPBridge was not working, my loop is
> basically going from 1 to 150 (z axis), 10 times. After inserting a delay
> of just 10 milliseconds I could see movement.
>
> So apparently without the delay Pharo , Unreal and CPPBridge are so fast
> that do 10 times movement of 1 to 150 in under one frame ! So now I
> will have to slow down thing to make them work as I want !!! LOL I
> expected to be fast but nowhere that fast.
>
> Not that I am complaining.
>
> But this is just the first step, now I will slowly and steadily start to
> wrap Unreal Engine 4.13 API for Pharo.
>
> Its a dream to use Pharo professionally :)
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Converting an Array of Characters to a String

2016-11-08 Thread Bernardo Ezequiel Contreras
something similar

String withAll: { $a. Character space. $b }.



On Tue, Nov 8, 2016 at 10:52 AM, Dimitris Chloupis 
wrote:

>
>
> On Tue, Nov 8, 2016 at 3:42 PM Nicolai Hess  wrote:
>
>> 2016-11-08 14:31 GMT+01:00 Dimitris Chloupis :
>>
>> I feel like stupid but I cannot find a way to convert an Array of
>> Characters to a String , I can do with a do: and join characters converted
>> to strings to a single string but it feels too many steps.
>>
>> Is there a simpler way ?
>>
>>
>> String newFrom:{ $a . $b . $c }.
>> { $a . $b . $c } as:String.
>>
>>
> Its so weird that
>
> { $a . $b . $c } as:String.
>
> works but
>
> { $a . $b . $c } asString.
>
> does not
>
> the latter returns a string that contains something like
>
> {$S. $e. $d. Character space. $o. $r. $n. $a. $r. $e. C
>
> In any case Thanks Nicolai it works :)
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] CodeGenerator, your opinions?

2016-10-18 Thread Bernardo Ezequiel Contreras
Implementing State Machines in Smalltalk (1993) Trevor Hopkins
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.31.6732

- A state machine generator (based in the excellent paper of Trevor P.
> Hopkins)
>
>
i add it to my reading list. thanks


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo5 download for linux - interpreter cannot read image file

2016-10-06 Thread Bernardo Ezequiel Contreras
Hold on,

  There's also this issue
https://pharo.fogbugz.com/f/cases/17353/build-spur-vm-for-debian-old-libc

where in one comment jan.vrany recommended his build

https://swing.fit.cvut.cz/jenkins/job/pharo-vm-spur-swing/

https://swing.fit.cvut.cz/jenkins/view/All/job/pharo-vm-spur-swing/lastSuccessfulBuild/artifact/pharo-vm-spur-swing.zip

that i have used in debian wheezy with the old libc for quite a while. i
don't use it anymore because im in jessie.



On Thu, Oct 6, 2016 at 9:13 PM, Andreas Sunardi  wrote:

> Thank you for the impressive quick response. Unfortunately, I have older
> glibc. So now I'm struggling with compiling glibc 2.15 for 32 bit on my 64
> bit CentOS 6.5 machine. Not an easy thing to do.
>
> I'll try those VMs once I succeed in building this glibc
>
> On Thu, Oct 6, 2016 at 12:41 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> this
>> http://files.pharo.org/vm/pharo-spur32/linux/latest.zip
>>
>> works pretty well in Debian GNU/Linux 8 Jessie
>>
>>
>> On Thu, Oct 6, 2016 at 4:09 PM, Clément Bera 
>> wrote:
>>
>>> Thanks for reporting the problem.
>>>
>>> The error means the VM is incompatible with the image. There was a
>>> change of image format in Pharo 5, so the package has likely an old VM
>>> while the image has the new format, or the new VM while the image has the
>>> old format.
>>>
>>> Someone will look into that problem in the incoming weeks. Most Pharo
>>> maintainers are on Mac, we noticed recently that other OS were not
>>> maintained carefully enough (We're sorry about that) and we're trying to
>>> solve that problem.
>>>
>>> Meantime
>>>
>>> Can you try the latest VM from here (latest.zip):
>>> http://files.pharo.org/vm/pharo-spur32/linux/
>>>
>>> Or if still failing, the latest VM from here (latest.zip):
>>> http://files.pharo.org/vm/pharo/linux/
>>>
>>> One of these two VMs should work. Please tell me which one worked if you
>>> try.
>>>
>>> Thanks & Regards
>>>
>>> Clement
>>>
>>> On Thu, Oct 6, 2016 at 8:44 PM, Bernardo Ezequiel Contreras <
>>> vonbecm...@gmail.com> wrote:
>>>
>>>> i already submitted a similar issue
>>>> https://pharo.fogbugz.com/f/cases/18221/This-interpreter-ver
>>>> s-6505-cannot-read-image-file-vers-6521
>>>>
>>>> check it and see if it is the same
>>>>
>>>> On Thu, Oct 6, 2016 at 3:20 PM, Andreas Sunardi 
>>>> wrote:
>>>>
>>>>> I'm on CentOS 6.5 and I downloaded Pharo 5 for GNU/Linux w. libc <
>>>>> 2.15 and for CentOS. Both won't start (I have no problem with Windows
>>>>> version):
>>>>>
>>>>> $ pharo
>>>>> This interpreter (vers. 6505) cannot read image file (vers. 6521).
>>>>> Press CR to quit...
>>>>>
>>>>> I'm unable to find report or information about this issue on the web.
>>>>> I think it was like this ~2 months ago as well. Is this a known issue?
>>>>>
>>>>> First time posting question in this mailing list, so I beg your pardon
>>>>> if I break any mailing list rule.
>>>>>
>>>>> --
>>>>> Andreas S
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Bernardo E.C.
>>>>
>>>> Sent from a cheap desktop computer in South America.
>>>>
>>>
>>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo5 download for linux - interpreter cannot read image file

2016-10-06 Thread Bernardo Ezequiel Contreras
this
http://files.pharo.org/vm/pharo-spur32/linux/latest.zip

works pretty well in Debian GNU/Linux 8 Jessie


On Thu, Oct 6, 2016 at 4:09 PM, Clément Bera  wrote:

> Thanks for reporting the problem.
>
> The error means the VM is incompatible with the image. There was a change
> of image format in Pharo 5, so the package has likely an old VM while the
> image has the new format, or the new VM while the image has the old format.
>
> Someone will look into that problem in the incoming weeks. Most Pharo
> maintainers are on Mac, we noticed recently that other OS were not
> maintained carefully enough (We're sorry about that) and we're trying to
> solve that problem.
>
> Meantime
>
> Can you try the latest VM from here (latest.zip):
> http://files.pharo.org/vm/pharo-spur32/linux/
>
> Or if still failing, the latest VM from here (latest.zip):
> http://files.pharo.org/vm/pharo/linux/
>
> One of these two VMs should work. Please tell me which one worked if you
> try.
>
> Thanks & Regards
>
> Clement
>
> On Thu, Oct 6, 2016 at 8:44 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> i already submitted a similar issue
>> https://pharo.fogbugz.com/f/cases/18221/This-interpreter-ver
>> s-6505-cannot-read-image-file-vers-6521
>>
>> check it and see if it is the same
>>
>> On Thu, Oct 6, 2016 at 3:20 PM, Andreas Sunardi 
>> wrote:
>>
>>> I'm on CentOS 6.5 and I downloaded Pharo 5 for GNU/Linux w. libc < 2.15
>>> and for CentOS. Both won't start (I have no problem with Windows version):
>>>
>>> $ pharo
>>> This interpreter (vers. 6505) cannot read image file (vers. 6521).
>>> Press CR to quit...
>>>
>>> I'm unable to find report or information about this issue on the web. I
>>> think it was like this ~2 months ago as well. Is this a known issue?
>>>
>>> First time posting question in this mailing list, so I beg your pardon
>>> if I break any mailing list rule.
>>>
>>> --
>>> Andreas S
>>>
>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo5 download for linux - interpreter cannot read image file

2016-10-06 Thread Bernardo Ezequiel Contreras
i already submitted a similar issue
https://pharo.fogbugz.com/f/cases/18221/This-interpreter-vers-6505-cannot-read-image-file-vers-6521

check it and see if it is the same

On Thu, Oct 6, 2016 at 3:20 PM, Andreas Sunardi  wrote:

> I'm on CentOS 6.5 and I downloaded Pharo 5 for GNU/Linux w. libc < 2.15
> and for CentOS. Both won't start (I have no problem with Windows version):
>
> $ pharo
> This interpreter (vers. 6505) cannot read image file (vers. 6521).
> Press CR to quit...
>
> I'm unable to find report or information about this issue on the web. I
> think it was like this ~2 months ago as well. Is this a known issue?
>
> First time posting question in this mailing list, so I beg your pardon if
> I break any mailing list rule.
>
> --
> Andreas S
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Speeding-up >>#instVarNamed: in Pharo-5.0 and beyond?

2016-09-28 Thread Bernardo Ezequiel Contreras
cheap hack.

if you replace this line

index := self classLayout instVarIndexFor: instVarName ifAbsent: [0].

with

index := self classLayout instVarIndexFor: instVarName ifAbsent: 0.

in instVarIndexFor: instVarName ifAbsent: aBlock

it will be faster because it won't create a closure, but no one will
approve that use. to cheap :)



On Wed, Sep 28, 2016 at 6:41 PM, Holger Freyther  wrote:

> Hi,
>
> Magritte and my TagLengthValue (TLV) both use 
> >>#instVarNamed:/>>#instVarNamed:put:
> to read and write from an object. I was just running >>#bench on my SMPP
> library and noticed that besides Spur Pharo5 is slower than Pharo3.
>
>
> I added this to PointerLayout:
>
> >># instVarIndexFor: aString ifAbsent: aBlockClosure
> | idx |
> idx := 1.
> slotScope do: [:each |
> each isVisible ifTrue: [
> each name = aString ifTrue: [^idx].
> idx := idx +1]].
> ^aBlockClosure value
>
> and modified ClassDescription/TClassDescription to use it:
>
> "protocol: instance variables"
> instVarIndexFor: instVarName ifAbsent: aBlock
> "Answer the index of the named instance variable."
>
> | index |
> index := self classLayout instVarIndexFor: instVarName ifAbsent:
> [0].
> index = 0 ifTrue:
> [^self superclass == nil
> ifTrue: [aBlock value]
> ifFalse: [self superclass instVarIndexFor:
> instVarName ifAbsent: aBlock]].
> ^self superclass == nil
> ifTrue: [index]
> ifFalse: [index + self superclass instSize]
>
>
> The speed-up comes from filtering allSlots to allVisibleSlots (and
> creating an Array), then collecting the slot names and finally searching
> the name. Does it make sense to integrate such speed-ups?
>
>
> cheers
> holger
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GLMPanePort hold instances of my classes?

2016-09-21 Thread Bernardo Ezequiel Contreras
sorry, no, i can't reproduce it.

thanks

On Wed, Sep 21, 2016 at 4:22 PM, Tudor Girba  wrote:

> Hi,
>
> No, this was not at all a stupid question. It might be that we have a
> memory leak.
>
> Could you reproduce the problem?
>
> Cheers,
> Doru
>
> > On Sep 21, 2016, at 4:34 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
> >
> > everything was closed, i was using the simple workspace. but anyways
> there were references.
> >
> > it was a stupid question, i solved it starting from a fresh image.
> >
> > thanks
> >
> > On Wed, Sep 21, 2016 at 1:16 AM, Tudor Girba 
> wrote:
> > Hi,
> >
> > You should close the respective Glamour browser. Could it be that you
> have an opened inspector? If so, try closing it and see what happens.
> >
> > Doru
> >
> >
> > > On Sep 21, 2016, at 3:28 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
> > >
> > > Hi,
> > >   is there a way to tell to GLMPanePort to release my stupid objects
> and classes?
> > > because i want to change a class and i can't. there's another bug when
> migrating
> > > instances (not easy to reproduce). so im trying to release all the
> references.
> > > is it possible??
> > >
> > > thanks.
> > >
> > > example:
> > > Port (pane=#evaluator name=#entity value=([A = A, A·. @ [45, 127]]))
> > > Port (pane='root' name=#selection value=([A = A, A·. @ [45, 127]]))
> > > JEPackedNode(ProtoObject)>>gtInspectorActionBrowse
> > > [ :aPresentation | each gtInspectorActions asOrderedCollection ]
> > > etc.
> > >
> > >
> > > Image
> > > -
> > > Pharo5.0
> > > Latest update: #50761
> > > Unnamed
> > >
> > > Virtual Machine
> > > ---
> > > CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
> 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > > StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
> uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > > https://github.com/pharo-project/pharo-vm.git Commit:
> 3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16 18:01:23 +0200
> By: GitHub  Jenkins build #597
> > >
> > > Unix built on Jul 18 2016 16:36:31 Compiler: 4.6.3
> > > VMMaker versionString https://github.com/pharo-project/pharo-vm.git
> Commit: 3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16
> 18:01:23 +0200 By: GitHub  Jenkins build #597
> > > CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
> 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > > StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
> uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > >
> > >
> > >
> > > --
> > > Bernardo E.C.
> > >
> > > Sent from a cheap desktop computer in South America.
> >
> > --
> > www.tudorgirba.com
> > www.feenk.com
> >
> > "Every thing has its own flow."
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Bernardo E.C.
> >
> > Sent from a cheap desktop computer in South America.
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> “The smaller and more pervasive the hardware becomes, the more physical
> the software gets."
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GLMPanePort hold instances of my classes?

2016-09-21 Thread Bernardo Ezequiel Contreras
everything was closed, i was using the simple workspace. but anyways there
were references.

it was a stupid question, i solved it starting from a fresh image.

thanks

On Wed, Sep 21, 2016 at 1:16 AM, Tudor Girba  wrote:

> Hi,
>
> You should close the respective Glamour browser. Could it be that you have
> an opened inspector? If so, try closing it and see what happens.
>
> Doru
>
>
> > On Sep 21, 2016, at 3:28 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
> >
> > Hi,
> >   is there a way to tell to GLMPanePort to release my stupid objects and
> classes?
> > because i want to change a class and i can't. there's another bug when
> migrating
> > instances (not easy to reproduce). so im trying to release all the
> references.
> > is it possible??
> >
> > thanks.
> >
> > example:
> > Port (pane=#evaluator name=#entity value=([A = A, A·. @ [45, 127]]))
> > Port (pane='root' name=#selection value=([A = A, A·. @ [45, 127]]))
> > JEPackedNode(ProtoObject)>>gtInspectorActionBrowse
> > [ :aPresentation | each gtInspectorActions asOrderedCollection ]
> > etc.
> >
> >
> > Image
> > -
> > Pharo5.0
> > Latest update: #50761
> > Unnamed
> >
> > Virtual Machine
> > ---
> > CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
> 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
> uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > https://github.com/pharo-project/pharo-vm.git Commit:
> 3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16 18:01:23 +0200
> By: GitHub  Jenkins build #597
> >
> > Unix built on Jul 18 2016 16:36:31 Compiler: 4.6.3
> > VMMaker versionString https://github.com/pharo-project/pharo-vm.git
> Commit: 3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16
> 18:01:23 +0200 By: GitHub  Jenkins build #597
> > CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
> 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> > StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
> uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
> >
> >
> >
> > --
> > Bernardo E.C.
> >
> > Sent from a cheap desktop computer in South America.
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Every thing has its own flow."
>
>
>
>
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] GLMPanePort hold instances of my classes?

2016-09-20 Thread Bernardo Ezequiel Contreras
Hi,
  is there a way to tell to GLMPanePort to release my stupid objects and
classes?
because i want to change a class and i can't. there's another bug when
migrating
instances (not easy to reproduce). so im trying to release all the
references.
is it possible??

thanks.

example:
Port (pane=#evaluator name=#entity value=([A = A, A·. @ [45, 127]]))
Port (pane='root' name=#selection value=([A = A, A·. @ [45, 127]]))
JEPackedNode(ProtoObject)>>gtInspectorActionBrowse
[ :aPresentation | each gtInspectorActions asOrderedCollection ]
etc.


Image
-
Pharo5.0
Latest update: #50761
Unnamed

Virtual Machine
---
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
https://github.com/pharo-project/pharo-vm.git Commit:
3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16 18:01:23 +0200
By: GitHub  Jenkins build #597

Unix built on Jul 18 2016 16:36:31 Compiler: 4.6.3
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit:
3daf6cb181c8332cf6993b07430e0d5f0886fda9 Date: 2016-07-16 18:01:23 +0200
By: GitHub  Jenkins build #597
CoInterpreter VMMaker.oscog-HolgerHansPeterFreyther.1880 uuid:
16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016
StackToRegisterMappingCogit VMMaker.oscog-HolgerHansPeterFreyther.1880
uuid: 16138eb3-2390-40f5-a6c8-15f0494936f8 Jul 18 2016



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] BitArray and BooleanArray ?

2016-08-31 Thread Bernardo Ezequiel Contreras
Hi,
  why there isn't a BitArray or BooleanArray in the collection library?
  is there a sustitute for that?

thanks

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SQLite + Pharo

2016-07-09 Thread Bernardo Ezequiel Contreras
Mark,
  im using this

Metacello new
 smalltalkhubUser: 'TorstenBergmann' project: 'UDBC';
 configuration: 'UDBC';
 version: #bleedingEdge;
 load.

on pharo 5


On Sat, Jul 9, 2016 at 7:41 AM, Mark Bratcher  wrote:

> Is UDBCSQLite3 available somewhere? I've tried Google and it turns up
> nothing but maybe two threads discussing it.
>
>
>
> On 7/9/2016 6:33 AM, Esteban Lorenzano wrote:
>
>> On 09 Jul 2016, at 11:42, Pierce Ng  wrote:
>>>
>>> On Wed, Jul 06, 2016 at 11:24:51AM +0200, Hilaire wrote:
>>>
 I guess UDBC is for Pharo 5, and for Pharo 4 it is the NB version,
 right?

>>> Yes.
>>>
>>> I guess both version has the same public interface.

>>> Yes, but. :-) Some bits of NBSQLite3, notably the online backup API but
>>> possibly other small stuff, isn't in UDBCSQLite3 yet.
>>>
>>> After making UDBCSQLite3 work with Glorp on Pharo 5, I've
>>> decided/realized that
>>> I don't have time to maintain both it and NBSQLite3. I'm leaving
>>> NBSQLite3 more
>>> or less as is, and continue to work on UDBCSQLite3.
>>>
>> +1
>> I think this is the way to go :)
>>
>> Pierce
>>>
>>>
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Recovering PNG/JPG images that were automatically serialized as FUEL when storing into external database

2016-07-06 Thread Bernardo Ezequiel Contreras
Offray,
   could you post a snippet of the code to serialize and materialize an
object and insert it into the sqlite database, please?
  just what's needed in order to get the idea

thanks;



On Wed, Jul 6, 2016 at 3:00 PM, Offray Vladimir Luna Cárdenas <
offray.l...@mutabit.com> wrote:

> Hi Pierce,
>
> I was my fault. I was not understanding properly the way of materialize
> back the png/jpeg images. With Max's help in the Slack chat channel it was
> clearer. Now is working properly and I have updated the database query
> messages accordingly.
>
> This combination of Fuel + SQLite seems very promising. For the moment I'm
> using mostly Fuel with the same efficiency of SQLite for external storage:
> 27 Mb both, the sqlite file and the fuel one, and almost the same reading
> time and without the impedance of object object-relational mapping. I
> imagine that the more we start to query the data, the more we're going to
> rely on SQLite bindings.
>
> Cheers,
>
> Offray
>
> On 04/07/16 22:51, Pierce Ng wrote:
>
> On Sat, Jul 02, 2016 at 10:01:14PM -0500, Offray Vladimir Luna Cárdenas wrote:
>
> I can read the blobs from SQLite. The problem is that they're stored
> as FUEL inside SQLite and I don't know how to read them back to
> recover the png/jpeg image that was serialized that way.
>
> UDBCSQLite uses Fuel to serialize/materialize objects that aren't integers,
> real numbers and strings. Sounds like you've hit a bug, whereby your png/jpg
> files are serialized but aren't being materialized when read back, so you're
> getting back raw byte arrays.
>
> Can you provide simple schema and code fragment to reproduce the problem
> please.
>
> Pierce
>
>
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GTSpotter froze my image again

2016-07-03 Thread Bernardo Ezequiel Contreras
i'll do that next time, today everything seems to work, i cannot reproduce
it anymore.
when it is waiting on a delay of a semaphore does the cpu consumption raise
to almost 100%?

On Sun, Jul 3, 2016 at 12:56 PM, Mariano Martinez Peck <
marianop...@gmail.com> wrote:

> If you interrupt the hung, can you check if it is waiting on a delay of a
> semaphore ?
>
> On Sun, Jul 3, 2016 at 11:55 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> here's another report
>>
>> https://pharo.fogbugz.com/f/cases/18659/Image-freeze
>>
>> with the image to reproduce it.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GTSpotter froze my image again

2016-07-03 Thread Bernardo Ezequiel Contreras
here's another report

https://pharo.fogbugz.com/f/cases/18659/Image-freeze

with the image to reproduce it.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GTSpotter froze my image again

2016-07-03 Thread Bernardo Ezequiel Contreras
Tudor,
  i disabled that extension, and it works so i enabled it again and it
continues to work therefore that's not the problem.
  anyway, thanks for the information im gonna be alert and try to catch
this bug.

thanks.


On Sun, Jul 3, 2016 at 1:17 AM, Tudor Girba  wrote:

> Hi Bernando,
>
> Thanks for reporting.
>
> Spotter searches for multiple things depending on what is defined in the
> image. Each category you see in Spotter is defined in a little method that
> can also be enabled/disabled through the settings browser. To understand
> what this means, please read this:
>
> http://www.humane-assessment.com/blog/discovering-and-managing-spotter-extensions/
>
> In your case, it looks like searching for the Catalog does a remote
> search, and this can be a problem. To check this, please try evaluating
> this:
> GTSpotterExtensionSettings disableProcessorDefinedInMethod:
> (GTSpotter>>#spotterCatalogProjectsFor:)
>
> Please let me know if this helps.
>
> Cheers,
> Doru
>
>
>
> > On Jul 3, 2016, at 4:41 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
> >
> > i found this
> >
> > GTSpotter cleanUp.
> > GTSpotter dontShowPreview
> >
> > in the help tutorial under the title Resetting Spotter.
> >
> > after the evaluation of it, gt-spotter seems to work but if you close it
> and you open it again, it freeze the image again!.
> >
> > thanks.
> >
> >
> > On Sat, Jul 2, 2016 at 11:20 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
> > Mariano,
> >  no, but i have a poor ISP. and i have disable everything from the
> settings related with networking (urls, port).
> >  anyway,  the image freeze if i open the gt-spotter.
> >
> > thanks.
> >
> >
> > On Sat, Jul 2, 2016 at 10:53 PM, Mariano Martinez Peck <
> marianop...@gmail.com> wrote:
> > Bernardo,
> >
> > Were you without internet when spotter hunged? If true, it can be the
> catalog search of gt-spotter. From the preferences you can disable it.
> >
> > On Sat, Jul 2, 2016 at 9:43 PM, Offray Vladimir Luna Cárdenas <
> offray.l...@mutabit.com> wrote:
> > Hi,
> >
> > My image becomes slow when I change my Internet connection and use
> spotter, for example when I suspend my laptop leaving my image open and
> change from home to the hackerspace or viceversa. In that case, the best
> way to get responsiveness back is to reopen the image. May be you can try
> to check if there is some network issue involved.
> > Cheers,
> > Offray
> >
> > On 02/07/16 17:50, Bernardo Ezequiel Contreras wrote:
> >> Hi,
> >>
> >>   it's the second time that my image freeze when i open gt spotter,
> pressing Alt + .  doesn't interrupt it. is there something that you can do
> to interrupt it?
> >>
> >> im on debian wheezy using
> >> Pharo5.0
> >> Latest update: #50760
> >>
> >> thanks.
> >>
> >>
> >> --
> >> Bernardo E.C.
> >>
> >> Sent from a cheap desktop computer in South America.
> >
> >
> >
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
> >
> >
> >
> > --
> > Bernardo E.C.
> >
> > Sent from a cheap desktop computer in South America.
> >
> >
> >
> > --
> > Bernardo E.C.
> >
> > Sent from a cheap desktop computer in South America.
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> “Live like you mean it."
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Recovering PNG/JPG images that were automatically serialized as FUEL when storing into external database

2016-07-02 Thread Bernardo Ezequiel Contreras
i found this
http://stackoverflow.com/questions/625029/how-do-i-store-and-retrieve-a-blob-from-sqlite

hth


On Sat, Jul 2, 2016 at 11:03 PM, Offray Vladimir Luna Cárdenas <
offray.l...@mutabit.com> wrote:

> Hi,
>
> I have not solved this issue, but I'm using Fuel for my persistence model
> instead of SQLite in this project and is working like a charm.
> Serialization and materialization of objects, including png/jpeg images in
> external files is pretty fast and space efficient.
>
> Cheers,
>
> Offray
>
> On 02/07/16 16:59, Offray Vladimir Luna Cárdenas wrote:
>
> Hi,
>
> I was storing Pharo objects into an external SQLite3 database. It went
> fine, but now all my png/jpg images are serialized with FUEL, when I try to
> see them inside SQLite and when I import them back to the image, they're
> long byte streams. There is any way to recover the images as png/jpg morphs
> that visible inside the image again? How can I disable this automatic
> serialization for making the database portable without using FUEL to
> recover back the PNG/JPG images?
>
> Thanks,
>
> Offray
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GTSpotter froze my image again

2016-07-02 Thread Bernardo Ezequiel Contreras
i found this

GTSpotter cleanUp.
GTSpotter dontShowPreview

in the help tutorial under the title Resetting Spotter.

after the evaluation of it, gt-spotter seems to work but if you close it
and you open it again, it freeze the image again!.

thanks.


On Sat, Jul 2, 2016 at 11:20 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> Mariano,
>  no, but i have a poor ISP. and i have disable everything from the
> settings related with networking (urls, port).
>  anyway,  the image freeze if i open the gt-spotter.
>
> thanks.
>
>
> On Sat, Jul 2, 2016 at 10:53 PM, Mariano Martinez Peck <
> marianop...@gmail.com> wrote:
>
>> Bernardo,
>>
>> Were you without internet when spotter hunged? If true, it can be the
>> catalog search of gt-spotter. From the preferences you can disable it.
>>
>> On Sat, Jul 2, 2016 at 9:43 PM, Offray Vladimir Luna Cárdenas <
>> offray.l...@mutabit.com> wrote:
>>
>>> Hi,
>>>
>>> My image becomes slow when I change my Internet connection and use
>>> spotter, for example when I suspend my laptop leaving my image open and
>>> change from home to the hackerspace or viceversa. In that case, the best
>>> way to get responsiveness back is to reopen the image. May be you can try
>>> to check if there is some network issue involved.
>>>
>>> Cheers,
>>>
>>> Offray
>>>
>>> On 02/07/16 17:50, Bernardo Ezequiel Contreras wrote:
>>>
>>> Hi,
>>>
>>>   it's the second time that my image freeze when i open gt spotter,
>>> pressing Alt + .  doesn't interrupt it. is there something that you can do
>>> to interrupt it?
>>>
>>> im on debian wheezy using
>>> Pharo5.0
>>> Latest update: #50760
>>>
>>> thanks.
>>>
>>>
>>> --
>>> Bernardo E.C.
>>>
>>> Sent from a cheap desktop computer in South America.
>>>
>>>
>>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] GTSpotter froze my image again

2016-07-02 Thread Bernardo Ezequiel Contreras
Mariano,
 no, but i have a poor ISP. and i have disable everything from the settings
related with networking (urls, port).
 anyway,  the image freeze if i open the gt-spotter.

thanks.


On Sat, Jul 2, 2016 at 10:53 PM, Mariano Martinez Peck <
marianop...@gmail.com> wrote:

> Bernardo,
>
> Were you without internet when spotter hunged? If true, it can be the
> catalog search of gt-spotter. From the preferences you can disable it.
>
> On Sat, Jul 2, 2016 at 9:43 PM, Offray Vladimir Luna Cárdenas <
> offray.l...@mutabit.com> wrote:
>
>> Hi,
>>
>> My image becomes slow when I change my Internet connection and use
>> spotter, for example when I suspend my laptop leaving my image open and
>> change from home to the hackerspace or viceversa. In that case, the best
>> way to get responsiveness back is to reopen the image. May be you can try
>> to check if there is some network issue involved.
>>
>> Cheers,
>>
>> Offray
>>
>> On 02/07/16 17:50, Bernardo Ezequiel Contreras wrote:
>>
>> Hi,
>>
>>   it's the second time that my image freeze when i open gt spotter,
>> pressing Alt + .  doesn't interrupt it. is there something that you can do
>> to interrupt it?
>>
>> im on debian wheezy using
>> Pharo5.0
>> Latest update: #50760
>>
>> thanks.
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>>
>>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] GTSpotter froze my image again

2016-07-02 Thread Bernardo Ezequiel Contreras
Hi,

  it's the second time that my image freeze when i open gt spotter,
pressing Alt + .  doesn't interrupt it. is there something that you can do
to interrupt it?

im on debian wheezy using
Pharo5.0
Latest update: #50760

thanks.


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Provide a mapping for a collection of s in NeoJSON

2016-06-30 Thread Bernardo Ezequiel Contreras
Peter,
  i had the same issue, i couldn't find the way to do it, but i hack my own
writing like this

NDBFood>>neoJsonOn: neoJSONWriter
"custom writing"

neoJSONWriter
writeMap:
(OrderedDictionary new
add: 'ndb_no' -> ndbno;
add: 'full_name' -> name;
add: 'food_group' -> fg;
add: 'factors' -> self factors;
add: 'nutrients' -> self nutrients;
yourself)

i just implement my own writing for my objects.

HTH

On Thu, Jun 30, 2016 at 12:06 PM, PBKResearch 
wrote:

> Hello
>
>
>
> I have recently used NeoJSON for the first time. All went pretty well, but
> I would like to make a small tweak to the output, which probably involves
> defining a mapping. I have read through the information in the NeoJSON pdf,
> and also looked at the class comments, but I am  a bit lost. Could Sven or
> anyone please give me a hint?
>
>
>
> What I want is to construct a JSON object as a Pharo dictionary, but then
> control the order in which the fields are output to the JSON file. Clearly
> the order is irrelevant for a computer, but it could be helpful to a human
> reader to put them in an order which reflects the way humans think about
> the objects. The keys of a dictionary are of course unordered, so this is
> not possible, but if we step back a bit we see that a dictionary is often
> constructed from a collection of associations; if we could stop at this
> stage, and have a mapping which outputs the associations in the order in
> which they appear in the collection, this would give the control I am
> looking for.
>
>
>
> Am I talking nonsense, or is there any way of implementing this using
> NeoJSON mappings?
>
>
>
> Best wishes
>
>
>
> Peter Kenny
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] If you have to do web data scraping, what tool would you use?

2016-06-26 Thread Bernardo Ezequiel Contreras
Hi,
Imagine that you have to do some data scraping work, what tool would you
use?
I know about ZnClient, Soup, NeoCSV, NeoJSON, is there something else that
i'm not aware of it?

thanks.


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] This interpreter (vers. 6505) cannot read image file (vers. 6521). [FreeBSD]

2016-06-16 Thread Bernardo Ezequiel Contreras
i found it.

http://forum.world.st/ANN-Pre-compiled-Pharo-Spur32-VM-for-Debian-Stable-tp4871332.html

On Thu, Jun 16, 2016 at 11:31 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> hi Petr,
>  im using this vm
>
> https://swing.fit.cvut.cz/jenkins/view/All/job/pharo-vm-spur-swing/lastSuccessfulBuild/artifact/pharo-vm-spur-swing.zip
>
> on debian wheezy. i think jan did it, he announced it in this mailing list.
>
>
>
> On Thu, Jun 16, 2016 at 10:36 PM, Petr Fischer 
> wrote:
>
>> Why is incompatible VM and Image in official (centos) distribution (main
>> download) on pharo.org?
>>
>> This first impression is really terrible... Simply don't work... What
>> about newcomers?
>>
>> Your links to stable spur vms are compiled with glibc >= 2.15 - is there
>> vms compiled with older glibc (< 2.15), like on this page?
>> http://pharo.org/gnu-linux-installation
>>
>> pf
>>
>>
>> > On Fri, Jun 17, 2016 at 6:04 AM, Petr Fischer 
>> wrote:
>> > > Hello, I finally managed linux compatibility layer and all 32bit
>> dependencies on FreeBSD to run official Pharo 5 VM, but got this error:
>> > >
>> > > "This interpreter (vers. 6505) cannot read image file (vers. 6521)."
>> > >
>> > > It's official centos download from pharo.org:
>> > > http://files.pharo.org/platform/Pharo5.0-centos.zip
>> > >
>> > > I downloaded *-centos" package because there is older glibc than 2.15
>> on FreeBSD (default GNU/Linux distribution from pharo.org needs glibc >=
>> 2.15).
>> > >
>> > > Whats wrong? Thanks! Petr Fischer
>> >
>> > The Image file format changed for Spur.  You are trying to open a Spur
>> > Image with a non-Spur VM.  You need to update your VM.  Probably one
>> > of these will do...
>> >
>> > http://files.pharo.org/vm/pharo-spur32/linux/stable-20160504.zip
>> > http://files.pharo.org/vm/pharoS-spur32/linux/stable-20160504.zip
>> >
>> > The first is Cog+Spur. The second is StackInterpreter+Spur.
>> >
>> > cheers -ben
>> >
>>
>>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] This interpreter (vers. 6505) cannot read image file (vers. 6521). [FreeBSD]

2016-06-16 Thread Bernardo Ezequiel Contreras
hi Petr,
 im using this vm
https://swing.fit.cvut.cz/jenkins/view/All/job/pharo-vm-spur-swing/lastSuccessfulBuild/artifact/pharo-vm-spur-swing.zip

on debian wheezy. i think jan did it, he announced it in this mailing list.



On Thu, Jun 16, 2016 at 10:36 PM, Petr Fischer  wrote:

> Why is incompatible VM and Image in official (centos) distribution (main
> download) on pharo.org?
>
> This first impression is really terrible... Simply don't work... What
> about newcomers?
>
> Your links to stable spur vms are compiled with glibc >= 2.15 - is there
> vms compiled with older glibc (< 2.15), like on this page?
> http://pharo.org/gnu-linux-installation
>
> pf
>
>
> > On Fri, Jun 17, 2016 at 6:04 AM, Petr Fischer 
> wrote:
> > > Hello, I finally managed linux compatibility layer and all 32bit
> dependencies on FreeBSD to run official Pharo 5 VM, but got this error:
> > >
> > > "This interpreter (vers. 6505) cannot read image file (vers. 6521)."
> > >
> > > It's official centos download from pharo.org:
> > > http://files.pharo.org/platform/Pharo5.0-centos.zip
> > >
> > > I downloaded *-centos" package because there is older glibc than 2.15
> on FreeBSD (default GNU/Linux distribution from pharo.org needs glibc >=
> 2.15).
> > >
> > > Whats wrong? Thanks! Petr Fischer
> >
> > The Image file format changed for Spur.  You are trying to open a Spur
> > Image with a non-Spur VM.  You need to update your VM.  Probably one
> > of these will do...
> >
> > http://files.pharo.org/vm/pharo-spur32/linux/stable-20160504.zip
> > http://files.pharo.org/vm/pharoS-spur32/linux/stable-20160504.zip
> >
> > The first is Cog+Spur. The second is StackInterpreter+Spur.
> >
> > cheers -ben
> >
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
im on debian with
Pharo5.0
Latest update: #50760

i just add a whitespace in the class comment of the class RxParser and then
follow your steps, saving the slice locally in a directory.



On Wed, Jun 15, 2016 at 12:08 AM, Mark Bratcher  wrote:

> Thanks for trying it. Are you on Windows and Pharo 5.0?
>
> Can you tell me what item you changed? I'd be curious just to try the same
> thing.
>
> On 6/14/2016 11:04 PM, Bernardo Ezequiel Contreras wrote:
>
> i tried your steps locally in a directory with a fake change and i couldnt
> reproduce the bug,  i got the slice and the dependent package(with the fake
> change).
> please report it, someone with more knowledge should check it.
>
>
>
> On Tue, Jun 14, 2016 at 11:54 PM, Mark Bratcher 
> wrote:
>
>> Just saving the slice to the repository (as the instructions indicate)
>> does not save the code also, and Monticello marks the slice and associated
>> packages all clean when just saving the slice. So I'm thinking bug...?
>>
>> On 6/14/2016 10:38 PM, Bernardo Ezequiel Contreras wrote:
>>
>> the slice has no code, it just a reference to the dependencies (the dirty
>> packages), those dirty packages should be save in the repository(files
>> ended with mcz in your directory)
>> if you don't have those files in the local repository(directory), theres
>> a bug.
>>
>> On Tue, Jun 14, 2016 at 11:33 PM, Mark Bratcher < 
>> mdbra...@gmail.com> wrote:
>>
>>> I opened the MCZ file saved for the slice package and it has no code
>>> changes in it. It just has the dependency information. So it does seem that
>>> more has to be saved to the repository than just the SLICE. Or, the SLICE
>>> operation isn't "capturing" the code properly as part of the package. In
>>> one of my attempts, I did try saving both the SLICE and the package
>>> independently, but that didn't get rid of the error.
>>>
>>>
>>> On 6/14/2016 10:23 PM, Bernardo Ezequiel Contreras wrote:
>>>
>>> there's something fishy going on. (the dependency wasn't save to the
>>> inbox).
>>> in the other hand, the contribution steps could be improved
>>>
>>>
>>>
>>> On Tue, Jun 14, 2016 at 11:03 PM, Mark Bratcher < 
>>> mdbra...@gmail.com> wrote:
>>>
>>>> Bernardo
>>>>
>>>> Thank you. That's a good idea. I'll try that. I was surprised that it
>>>> didn't go to the inbox as I thought I set up the repository path properly.
>>>>
>>>> Mark
>>>>
>>>> Sent from TypeApp <http://www.typeapp.com/r>
>>>>
>>>> On Jun 14, 2016, at 10:00 PM, Bernardo Ezequiel Contreras <
>>>> vonbecm...@gmail.com> wrote:
>>>>>
>>>>> i forgot to mention that i used to save my slices locally in a
>>>>> directory, and test the slice with a new image and see if the merge of the
>>>>> slice has no conflicts, to be sure that the monkey will work without
>>>>> problems.
>>>>> and then i copy the slice to the inbox
>>>>>
>>>>>
>>>>> On Tue, Jun 14, 2016 at 10:53 PM, Bernardo Ezequiel Contreras <
>>>>> vonbecm...@gmail.com> wrote:
>>>>>
>>>>>> Hi mark,
>>>>>>  it seems that your package: Regex-Core-MarkBratcher.39.mcz is not
>>>>>> the inbox.
>>>>>>  if you have the package, then you can Copy(button in the monticello
>>>>>> browser) it to the inbox, and try again.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher < 
>>>>>> mdbra...@gmail.com> wrote:
>>>>>>
>>>>>>> I am trying to push a simple enhancement to Pharo50inbox on
>>>>>>> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the
>>>>>>> last month) on Windows 10.
>>>>>>>
>>>>>>> I started from a completely clean image, made my small change (about
>>>>>>> 5 lines in an existing Pharo 5.0 class), and I followed all of the
>>>>>>> directions to contribute a proposed fix
>>>>>>> <http://pharo.org/contribute-propose-fix> very carefully. All the
>>>>>>> steps went smoothly, as expected, until it came time to pull and verify 
>>>>>>> the
>>>>>>> slice.
&

Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
i tried your steps locally in a directory with a fake change and i couldnt
reproduce the bug,  i got the slice and the dependent package(with the fake
change).
please report it, someone with more knowledge should check it.



On Tue, Jun 14, 2016 at 11:54 PM, Mark Bratcher  wrote:

> Just saving the slice to the repository (as the instructions indicate)
> does not save the code also, and Monticello marks the slice and associated
> packages all clean when just saving the slice. So I'm thinking bug...?
>
> On 6/14/2016 10:38 PM, Bernardo Ezequiel Contreras wrote:
>
> the slice has no code, it just a reference to the dependencies (the dirty
> packages), those dirty packages should be save in the repository(files
> ended with mcz in your directory)
> if you don't have those files in the local repository(directory), theres a
> bug.
>
> On Tue, Jun 14, 2016 at 11:33 PM, Mark Bratcher 
> wrote:
>
>> I opened the MCZ file saved for the slice package and it has no code
>> changes in it. It just has the dependency information. So it does seem that
>> more has to be saved to the repository than just the SLICE. Or, the SLICE
>> operation isn't "capturing" the code properly as part of the package. In
>> one of my attempts, I did try saving both the SLICE and the package
>> independently, but that didn't get rid of the error.
>>
>>
>> On 6/14/2016 10:23 PM, Bernardo Ezequiel Contreras wrote:
>>
>> there's something fishy going on. (the dependency wasn't save to the
>> inbox).
>> in the other hand, the contribution steps could be improved
>>
>>
>>
>> On Tue, Jun 14, 2016 at 11:03 PM, Mark Bratcher < 
>> mdbra...@gmail.com> wrote:
>>
>>> Bernardo
>>>
>>> Thank you. That's a good idea. I'll try that. I was surprised that it
>>> didn't go to the inbox as I thought I set up the repository path properly.
>>>
>>> Mark
>>>
>>> Sent from TypeApp <http://www.typeapp.com/r>
>>>
>>> On Jun 14, 2016, at 10:00 PM, Bernardo Ezequiel Contreras <
>>> vonbecm...@gmail.com> wrote:
>>>>
>>>> i forgot to mention that i used to save my slices locally in a
>>>> directory, and test the slice with a new image and see if the merge of the
>>>> slice has no conflicts, to be sure that the monkey will work without
>>>> problems.
>>>> and then i copy the slice to the inbox
>>>>
>>>>
>>>> On Tue, Jun 14, 2016 at 10:53 PM, Bernardo Ezequiel Contreras <
>>>> vonbecm...@gmail.com> wrote:
>>>>
>>>>> Hi mark,
>>>>>  it seems that your package: Regex-Core-MarkBratcher.39.mcz is not the
>>>>> inbox.
>>>>>  if you have the package, then you can Copy(button in the monticello
>>>>> browser) it to the inbox, and try again.
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher < 
>>>>> mdbra...@gmail.com> wrote:
>>>>>
>>>>>> I am trying to push a simple enhancement to Pharo50inbox on
>>>>>> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the last
>>>>>> month) on Windows 10.
>>>>>>
>>>>>> I started from a completely clean image, made my small change (about
>>>>>> 5 lines in an existing Pharo 5.0 class), and I followed all of the
>>>>>> directions to contribute a proposed fix
>>>>>> <http://pharo.org/contribute-propose-fix> very carefully. All the
>>>>>> steps went smoothly, as expected, until it came time to pull and verify 
>>>>>> the
>>>>>> slice.
>>>>>>
>>>>>> Here is a snapshot of my Monticello browser right BEFORE pushing
>>>>>> <http://i.stack.imgur.com/Zv2bZ.jpg> the suggested change slice.
>>>>>> What is listed as dirty are the SLICE itself (containing Regex-Core
>>>>>> (TheIntegrator.38)) and the package itself, listed separately, as dirty
>>>>>> (Regex-Core (TheIntegrator.38)).
>>>>>>
>>>>>> As indicated in the instructions, I highlighted the SLICE and did a
>>>>>> Save to the ` <http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main>
>>>>>> http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main` repository. That
>>>>>> went smoothly. After clicking save, Monticello showed
>>>>>>

Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
the slice has no code, it just a reference to the dependencies (the dirty
packages), those dirty packages should be save in the repository(files
ended with mcz in your directory)
if you don't have those files in the local repository(directory), theres a
bug.

On Tue, Jun 14, 2016 at 11:33 PM, Mark Bratcher  wrote:

> I opened the MCZ file saved for the slice package and it has no code
> changes in it. It just has the dependency information. So it does seem that
> more has to be saved to the repository than just the SLICE. Or, the SLICE
> operation isn't "capturing" the code properly as part of the package. In
> one of my attempts, I did try saving both the SLICE and the package
> independently, but that didn't get rid of the error.
>
>
> On 6/14/2016 10:23 PM, Bernardo Ezequiel Contreras wrote:
>
> there's something fishy going on. (the dependency wasn't save to the
> inbox).
> in the other hand, the contribution steps could be improved
>
>
>
> On Tue, Jun 14, 2016 at 11:03 PM, Mark Bratcher 
> wrote:
>
>> Bernardo
>>
>> Thank you. That's a good idea. I'll try that. I was surprised that it
>> didn't go to the inbox as I thought I set up the repository path properly.
>>
>> Mark
>>
>> Sent from TypeApp <http://www.typeapp.com/r>
>>
>> On Jun 14, 2016, at 10:00 PM, Bernardo Ezequiel Contreras <
>> vonbecm...@gmail.com> wrote:
>>>
>>> i forgot to mention that i used to save my slices locally in a
>>> directory, and test the slice with a new image and see if the merge of the
>>> slice has no conflicts, to be sure that the monkey will work without
>>> problems.
>>> and then i copy the slice to the inbox
>>>
>>>
>>> On Tue, Jun 14, 2016 at 10:53 PM, Bernardo Ezequiel Contreras <
>>> vonbecm...@gmail.com> wrote:
>>>
>>>> Hi mark,
>>>>  it seems that your package: Regex-Core-MarkBratcher.39.mcz is not the
>>>> inbox.
>>>>  if you have the package, then you can Copy(button in the monticello
>>>> browser) it to the inbox, and try again.
>>>>
>>>>
>>>>
>>>> On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher < 
>>>> mdbra...@gmail.com> wrote:
>>>>
>>>>> I am trying to push a simple enhancement to Pharo50inbox on
>>>>> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the last
>>>>> month) on Windows 10.
>>>>>
>>>>> I started from a completely clean image, made my small change (about 5
>>>>> lines in an existing Pharo 5.0 class), and I followed all of the 
>>>>> directions
>>>>> to contribute a proposed fix <http://pharo.org/contribute-propose-fix>
>>>>> very carefully. All the steps went smoothly, as expected, until it came
>>>>> time to pull and verify the slice.
>>>>>
>>>>> Here is a snapshot of my Monticello browser right BEFORE pushing
>>>>> <http://i.stack.imgur.com/Zv2bZ.jpg> the suggested change slice. What
>>>>> is listed as dirty are the SLICE itself (containing Regex-Core
>>>>> (TheIntegrator.38)) and the package itself, listed separately, as dirty
>>>>> (Regex-Core (TheIntegrator.38)).
>>>>>
>>>>> As indicated in the instructions, I highlighted the SLICE and did a
>>>>> Save to the ` <http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main>
>>>>> http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main` repository. That
>>>>> went smoothly. After clicking save, Monticello showed
>>>>> <http://i.stack.imgur.com/BYfVf.jpg> that the SLICE (with subpackage)
>>>>> and the separately listed package were no longer marked dirty and version
>>>>> had been bumped with my name associated (both now called, "Regex-Core
>>>>> (MarkBratcher.39)").
>>>>>
>>>>> The dialog that popped up after the save indicated that there is a
>>>>> dependency on `Regex-Core (MarkBratcher.39)` which surprised me a bit, but
>>>>> since I followed the instructions exactly, I wasn't concerned yet...
>>>>>
>>>>> When I tried to verify, I started with a clean image again (as
>>>>> recommended in the instructions, opened Monticello, opened the 
>>>>> Pharo50Inbox
>>>>> repository, found and highlighted my slice, and clicked "Load". Then I got
>>>>> an error that there was a missing dependency on the package: `Regex-Core
>>>>> (MarkBratcher.39)`. I thought that package was integrated as part of the
>>>>> SLICE.
>>>>>
>>>>> If I followed the linked instructions precisely, what am I missing?
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Bernardo E.C.
>>>>
>>>> Sent from a cheap desktop computer in South America.
>>>>
>>>
>>>
>>>
>>> --
>>> Bernardo E.C.
>>>
>>> Sent from a cheap desktop computer in South America.
>>>
>>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
there's something fishy going on. (the dependency wasn't save to the inbox).
in the other hand, the contribution steps could be improved



On Tue, Jun 14, 2016 at 11:03 PM, Mark Bratcher  wrote:

> Bernardo
>
> Thank you. That's a good idea. I'll try that. I was surprised that it
> didn't go to the inbox as I thought I set up the repository path properly.
>
> Mark
>
> Sent from TypeApp <http://www.typeapp.com/r>
>
> On Jun 14, 2016, at 10:00 PM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>>
>> i forgot to mention that i used to save my slices locally in a directory,
>> and test the slice with a new image and see if the merge of the slice has
>> no conflicts, to be sure that the monkey will work without problems.
>> and then i copy the slice to the inbox
>>
>>
>> On Tue, Jun 14, 2016 at 10:53 PM, Bernardo Ezequiel Contreras <
>> vonbecm...@gmail.com> wrote:
>>
>>> Hi mark,
>>>  it seems that your package: Regex-Core-MarkBratcher.39.mcz is not the
>>> inbox.
>>>  if you have the package, then you can Copy(button in the monticello
>>> browser) it to the inbox, and try again.
>>>
>>>
>>>
>>> On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher 
>>> wrote:
>>>
>>>> I am trying to push a simple enhancement to Pharo50inbox on
>>>> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the last
>>>> month) on Windows 10.
>>>>
>>>> I started from a completely clean image, made my small change (about 5
>>>> lines in an existing Pharo 5.0 class), and I followed all of the directions
>>>> to contribute a proposed fix <http://pharo.org/contribute-propose-fix>
>>>> very carefully. All the steps went smoothly, as expected, until it came
>>>> time to pull and verify the slice.
>>>>
>>>> Here is a snapshot of my Monticello browser right BEFORE pushing
>>>> <http://i.stack.imgur.com/Zv2bZ.jpg> the suggested change slice. What
>>>> is listed as dirty are the SLICE itself (containing Regex-Core
>>>> (TheIntegrator.38)) and the package itself, listed separately, as dirty
>>>> (Regex-Core (TheIntegrator.38)).
>>>>
>>>> As indicated in the instructions, I highlighted the SLICE and did a
>>>> Save to the `http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main`
>>>> repository. That went smoothly. After clicking save, Monticello showed
>>>> <http://i.stack.imgur.com/BYfVf.jpg> that the SLICE (with subpackage)
>>>> and the separately listed package were no longer marked dirty and version
>>>> had been bumped with my name associated (both now called, "Regex-Core
>>>> (MarkBratcher.39)").
>>>>
>>>> The dialog that popped up after the save indicated that there is a
>>>> dependency on `Regex-Core (MarkBratcher.39)` which surprised me a bit, but
>>>> since I followed the instructions exactly, I wasn't concerned yet...
>>>>
>>>> When I tried to verify, I started with a clean image again (as
>>>> recommended in the instructions, opened Monticello, opened the Pharo50Inbox
>>>> repository, found and highlighted my slice, and clicked "Load". Then I got
>>>> an error that there was a missing dependency on the package: `Regex-Core
>>>> (MarkBratcher.39)`. I thought that package was integrated as part of the
>>>> SLICE.
>>>>
>>>> If I followed the linked instructions precisely, what am I missing?
>>>>
>>>>
>>>
>>>
>>> --
>>> Bernardo E.C.
>>>
>>> Sent from a cheap desktop computer in South America.
>>>
>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
i forgot to mention that i used to save my slices locally in a directory,
and test the slice with a new image and see if the merge of the slice has
no conflicts, to be sure that the monkey will work without problems.
and then i copy the slice to the inbox


On Tue, Jun 14, 2016 at 10:53 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> Hi mark,
>  it seems that your package: Regex-Core-MarkBratcher.39.mcz is not the
> inbox.
>  if you have the package, then you can Copy(button in the monticello
> browser) it to the inbox, and try again.
>
>
>
> On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher  wrote:
>
>> I am trying to push a simple enhancement to Pharo50inbox on
>> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the last
>> month) on Windows 10.
>>
>> I started from a completely clean image, made my small change (about 5
>> lines in an existing Pharo 5.0 class), and I followed all of the directions
>> to contribute a proposed fix <http://pharo.org/contribute-propose-fix>
>> very carefully. All the steps went smoothly, as expected, until it came
>> time to pull and verify the slice.
>>
>> Here is a snapshot of my Monticello browser right BEFORE pushing
>> <http://i.stack.imgur.com/Zv2bZ.jpg> the suggested change slice. What is
>> listed as dirty are the SLICE itself (containing Regex-Core
>> (TheIntegrator.38)) and the package itself, listed separately, as dirty
>> (Regex-Core (TheIntegrator.38)).
>>
>> As indicated in the instructions, I highlighted the SLICE and did a Save
>> to the `http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main` repository.
>> That went smoothly. After clicking save, Monticello showed
>> <http://i.stack.imgur.com/BYfVf.jpg> that the SLICE (with subpackage)
>> and the separately listed package were no longer marked dirty and version
>> had been bumped with my name associated (both now called, "Regex-Core
>> (MarkBratcher.39)").
>>
>> The dialog that popped up after the save indicated that there is a
>> dependency on `Regex-Core (MarkBratcher.39)` which surprised me a bit, but
>> since I followed the instructions exactly, I wasn't concerned yet...
>>
>> When I tried to verify, I started with a clean image again (as
>> recommended in the instructions, opened Monticello, opened the Pharo50Inbox
>> repository, found and highlighted my slice, and clicked "Load". Then I got
>> an error that there was a missing dependency on the package: `Regex-Core
>> (MarkBratcher.39)`. I thought that package was integrated as part of the
>> SLICE.
>>
>> If I followed the linked instructions precisely, what am I missing?
>>
>>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Dependency error trying to submit a proposed enhancement to Pharo 5.0 on Smalltalkhub.com

2016-06-14 Thread Bernardo Ezequiel Contreras
Hi mark,
 it seems that your package: Regex-Core-MarkBratcher.39.mcz is not the
inbox.
 if you have the package, then you can Copy(button in the monticello
browser) it to the inbox, and try again.



On Tue, Jun 14, 2016 at 9:53 PM, Mark Bratcher  wrote:

> I am trying to push a simple enhancement to Pharo50inbox on
> smalltalkhub.com. I am running Pharo 5.0 (downloaded within the last
> month) on Windows 10.
>
> I started from a completely clean image, made my small change (about 5
> lines in an existing Pharo 5.0 class), and I followed all of the directions
> to contribute a proposed fix 
> very carefully. All the steps went smoothly, as expected, until it came
> time to pull and verify the slice.
>
> Here is a snapshot of my Monticello browser right BEFORE pushing
>  the suggested change slice. What is
> listed as dirty are the SLICE itself (containing Regex-Core
> (TheIntegrator.38)) and the package itself, listed separately, as dirty
> (Regex-Core (TheIntegrator.38)).
>
> As indicated in the instructions, I highlighted the SLICE and did a Save
> to the `http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main` repository.
> That went smoothly. After clicking save, Monticello showed
>  that the SLICE (with subpackage) and
> the separately listed package were no longer marked dirty and version had
> been bumped with my name associated (both now called, "Regex-Core
> (MarkBratcher.39)").
>
> The dialog that popped up after the save indicated that there is a
> dependency on `Regex-Core (MarkBratcher.39)` which surprised me a bit, but
> since I followed the instructions exactly, I wasn't concerned yet...
>
> When I tried to verify, I started with a clean image again (as recommended
> in the instructions, opened Monticello, opened the Pharo50Inbox repository,
> found and highlighted my slice, and clicked "Load". Then I got an error
> that there was a missing dependency on the package: `Regex-Core
> (MarkBratcher.39)`. I thought that package was integrated as part of the
> SLICE.
>
> If I followed the linked instructions precisely, what am I missing?
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Bernardo Ezequiel Contreras
hi,
 i try to open the file with fbreader on debian wheezy, and the file seems
to be empty or corrupted (i see some parts of it).
it is not clear what's going on, also it is the first time that i open this
class of file. i hope this helps.

should i try a different epub reader?


thanks

On Mon, May 30, 2016 at 11:44 AM, Thibault ARLOING <
thibault.arlo...@hotmail.fr> wrote:

> Hi,
>
> I created an ePub version of the book Enterprise Pharo for electronic
> readers.
> It would be great if you could test it and give me feedbacks on everything
> that shocks you.
>
> You can downlod the file here
> .
>
> Thanks,
> Thibault
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Eliot Miranda and Clement Bera - "Sista: Speculative inlining, Smalltalk-style"

2016-05-13 Thread Bernardo Ezequiel Contreras
https://youtu.be/f4Cvia-HZ-w

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Understanding Slang for building a compiler to C++

2016-03-04 Thread Bernardo Ezequiel Contreras
Hi Dimitris,
  Pavel has extracted the code generator in this project

http://smalltalkhub.com/#!/~PavelKrivanek/CCodeGenerator

On Fri, Mar 4, 2016 at 9:06 AM, Dimitris Chloupis 
wrote:

> Hey pharo experts I am interesting into studying how Slang works for
> making a compiler that takes pharo code and turns it to C++ code, my
> questions is where to find Slang , how to extract the code that compiles
> Slang to C and study it as an example for making my own compiler for C++.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] [ANN] breakpoints and watchpoints working

2015-12-02 Thread Bernardo Ezequiel Contreras
thank you!
it's really useful



On Mon, Nov 30, 2015 at 10:08 PM, Ben Coman  wrote:

> On Tue, Dec 1, 2015 at 4:32 AM, Marcus Denker 
> wrote:
> >
> >>
>  but a problem you could be aware is setting a break once in
> InputEventFetcher>>signalEvent: , and then moving the mouse, the image
> hangs.
> 
> >>> Thanks, we will investigate. The “once” breakpoint triggers a
> recompile before opening the debugger.
> >>> but of course the devil is in the details… we will check to see what
> exactly is happening here.
> >>>
> >>
> >> I think I understand what happens: the method is called because there
> is an interrupt. Check for interrupt happens on all message sends
> >> ==> even though we *want* to recompile before calling the method again,
> the check for interrupt happens and it is called again before the new
> >> method is installed.
> >
> > Hmm.. I think it could be fixed by changing priorities of running
> threads: if we lover (temporarily) the input-event fetcher priority and
> raise
> > the thread that does the compiling/installing, maybe we can make sure
> that the signalEvent: is not called before the break is removed…
>
> I speculate that changing the priority of input-event fetcher would
> have more impact than just raising the installing thread above it, but
> then I guess the DelayScheduler timing-priority event loop will be
> susceptible to the same problem. Maybe the final part of the install
> needs to be done with a primitive like #become: ?
> cheers -ben
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] What is your preferred way for storing ByteArray's as text?

2015-10-29 Thread Bernardo Ezequiel Contreras
thanks, so the title should be Base64MimeConverter instead of
ZnBase64Encoder.

On Thu, Oct 29, 2015 at 5:18 PM, Esteban A. Maringolo 
wrote:

> 2015-10-29 17:07 GMT-03:00 Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com>:
> > Esteban,
> >   Could you explain line 8 ? why did you use a Base64MimeConverter?
> > thanks.
> >
> > line 8:
> >
> > stream nextPutAll: 'ZnBase64Encoder '; nextPutAll: [ (Base64MimeConverter
> > mimeEncode: ba readStream multiLine: false) ] bench printString; cr.
>
> Because it is the class used by ByteArray>>#base64Encoded.
>
> Esteban A. Maringolo
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] What is your preferred way for storing ByteArray's as text?

2015-10-29 Thread Bernardo Ezequiel Contreras
Esteban,
  Could you explain line 8 ? why did you use a Base64MimeConverter?
thanks.

line 8:

stream nextPutAll: 'ZnBase64Encoder '; nextPutAll: [ (Base64MimeConverter
mimeEncode: ba readStream multiLine: false) ] bench printString; cr.



On Thu, Oct 29, 2015 at 3:43 PM, Esteban A. Maringolo 
wrote:

> 2015-10-29 15:21 GMT-03:00 Peter Uhnák :
> >> >>> Option A) The printString of ByteArray, it is #[23 12 253 ...]
> >>
> >> >>> Option B) A Base64 encoded version of the ByteArray
> >
> >
> > I like this one, because it is not Pharo-specific format. ByteArray is
> not
> > pharo-specific, but the syntax is --- I can copy paste base64 from/to
> > outside world.
> > Plus base64 has better tool support in the wild.
>
> I also prefer base64 even over native binary storage.
>
> I ran a small comparison[1] of speed and size and these were my results.
>
> ByteArray size: 19448860
>
> Speed:
> Base64MimeConverter: ''0.592 per second''
> #hex: ''0.666 per second''
> #asString: ''6.898 per second''
> ZnBase64Encoder ''0.459 per second''
>
> Size:
> Base64MimeConverter: 26291980
> #hex: 38897720
> #asString: 19448860
> ZnBase64Encoder 25931816
>
> Esteban A. Maringolo
>
> [1]: http://ws.stfx.eu/47PV2GUP9ITS
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Fossil and Filetree

2015-10-21 Thread Bernardo Ezequiel Contreras
Hi Offray
  What fossil hosting service do you recommend ?

Thanks


On Wed, Oct 21, 2015 at 6:07 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> Hi,
>
> On 20/10/15 13:34, Dale Henrichs wrote:
>
>> This is good to hear 
>>
>> I am pro-git, because well you have to pick an SCM to talk about and I do
>> think that the collaboration tools for open source projects on github are
>> superior to anything else...
>>
>>
> My friends think the same, but usually they don't know "anything else",
> specially Fossil :-). They just picked what the majority did.
>
> Git other than that I am glad that folks are finding that FileTree is
>> working for other disk-based SCMs --- because that really is the point of
>> FileTree:)
>>
>>
> Yes, nice to know.
>
> It should also be possible to copy packages back and forth between a
>> git-managed FileTree repository and a Fossil-managed Filetree repositor...
>>
>>
> It is. Fossil have an import command, somewhere.
>
> Cheers,
>
> Offray
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] [ann] brick on top of bloc - preview

2015-08-25 Thread Bernardo Ezequiel Contreras
 i forgot to mention that it was while

Loading Bloc-Core-AliakseiSyrel.636

thanks



On Tue, Aug 25, 2015 at 5:43 PM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> Sorry, but after evaluating
>
> Gofer new
> smalltalkhubUser: 'Pharo' project: 'Brick';
> configuration;
> loadDevelopment
>
> in Pharo5.0#50270, i got an Error: Unrecognized class definition
>
> The screenshots look really cool.
>
> thanks
>
>
> On Tue, Aug 25, 2015 at 5:13 PM, Tudor Girba  wrote:
>
>> Hi,
>>
>> We are happy to announce the first preview version of Brick, a new widget
>> set created from scratch on top of Bloc.
>>
>> Brick is being developed primarily by Alex Syrel (together with Alain
>> Plantec, Andrei Chis and myself), and the work is sponsored by ESUG. Brick
>> is part of the Glamorous Toolkit effort and will provide the basis for the
>> new versions of the development tools.
>>
>> Brick's goal is to provide a beautiful looking widget set, and the
>> default look is based on material design. The widgets are theme-able.
>>
>> Right now, there exists:
>> - Label
>> - Simple button
>> - Toggle button
>> - Checkbox
>> - Radio button
>> - Window with or without an active title bar that can include various
>> visual actions and info
>> - Menu
>> - Beautiful scrollbars that are thin by default and enlarge when the
>> mouse hovers over it
>> - Scalable list for huge amounts of items with various heights
>> (The list also allows one for embedding text widgets with in place
>> editing)
>>
>> The next immediate target is the creation of a new Pager widget (the
>> widget that is behind the current GTInspector).
>>
>> You can see some screenshots on the official site:
>> http://gt.moosetechnology.org/brick
>>
>> To play with it, you can download a ready-made image:
>>
>> https://ci.inria.fr/moose/job/gtoolkit5/lastSuccessfulBuild/artifact/gtoolkit5.zip
>>
>> and, in a Bloc space, you can browse the examples:
>> BrExampleBrowser exampleOpen
>>
>> We would be happy to hear your feedback.
>>
>> Cheers,
>> Doru
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>>
>
>
>
> --
> Bernardo E.C.
>
> Sent from a cheap desktop computer in South America.
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] [ann] brick on top of bloc - preview

2015-08-25 Thread Bernardo Ezequiel Contreras
Sorry, but after evaluating

Gofer new
smalltalkhubUser: 'Pharo' project: 'Brick';
configuration;
loadDevelopment

in Pharo5.0#50270, i got an Error: Unrecognized class definition

The screenshots look really cool.

thanks


On Tue, Aug 25, 2015 at 5:13 PM, Tudor Girba  wrote:

> Hi,
>
> We are happy to announce the first preview version of Brick, a new widget
> set created from scratch on top of Bloc.
>
> Brick is being developed primarily by Alex Syrel (together with Alain
> Plantec, Andrei Chis and myself), and the work is sponsored by ESUG. Brick
> is part of the Glamorous Toolkit effort and will provide the basis for the
> new versions of the development tools.
>
> Brick's goal is to provide a beautiful looking widget set, and the default
> look is based on material design. The widgets are theme-able.
>
> Right now, there exists:
> - Label
> - Simple button
> - Toggle button
> - Checkbox
> - Radio button
> - Window with or without an active title bar that can include various
> visual actions and info
> - Menu
> - Beautiful scrollbars that are thin by default and enlarge when the mouse
> hovers over it
> - Scalable list for huge amounts of items with various heights
> (The list also allows one for embedding text widgets with in place editing)
>
> The next immediate target is the creation of a new Pager widget (the
> widget that is behind the current GTInspector).
>
> You can see some screenshots on the official site:
> http://gt.moosetechnology.org/brick
>
> To play with it, you can download a ready-made image:
>
> https://ci.inria.fr/moose/job/gtoolkit5/lastSuccessfulBuild/artifact/gtoolkit5.zip
>
> and, in a Bloc space, you can browse the examples:
> BrExampleBrowser exampleOpen
>
> We would be happy to hear your feedback.
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.
THERE_BE_DRAGONS_HERE
Error: Unrecognized class definition
25 August 2015 5:50:57.559625 pm

VM: unix - i686 - linux-gnu - NBCoInterpreter NativeBoost-CogPlugin-HolgerHansPeterFreyther.21 uuid: e0df6e2d-5694-40e2-8035-dc217200b424 May  7 2015
NBCogit NativeBoost-CogPlugin-HolgerHansPeterFreyther.21 uuid: e0df6e2d-5694-40e2-8035-dc217200b424 May  7 2015
https://github.com/pharo-project/pharo-vm.git Commit: 81b5d19917dcb78f22482a780deec48c53738396 Date: 2014-09-20 14:36:18 +0200 By: Esteban Lorenzano  Jenkins build #14858

Image: Pharo5.0 [Latest update: #50270]

MCStReader(Object)>>error:
	Receiver: a MCStReader
	Arguments and temporary variables: 
		aString: 	'Unrecognized class definition'
	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMainLoopManager) a MCMe...etc...


MCStReader>>typeOfSubclass:
	Receiver: a MCStReader
	Arguments and temporary variables: 
		aSymbol: 	#named:
	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMainLoopManager) a MCMe...etc...


MCStReader>>classDefinitionFrom:
	Receiver: a MCStReader
	Arguments and temporary variables: 
		aRingClass: 	TBlAnnouncerOwner
		tokens: 	#(#Trait #named: #TBlAnnouncerOwner #uses: #'{' #'}' #category: 'Bloc-C...etc...
		traitCompositionString: 	'{}
	category: ''Bloc-Core-Traits'''
		lastIndex: 	8
		classTraitCompositionString: 	'{}'
	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMainLoopManager) a MCMe...etc...


[ :ringClass | 
ringClass hasDefinitionSource
	ifTrue:
		[ definitions add: (self classDefinitionFrom: ringClass) ].
definitions addAll: (self methodDefinitionsFor: ringClass).
definitions
	addAll: (self methodDefinitionsFor: ringClass theMetaClass) ] in MCStReader>>loadDefinitions
	Receiver: a MCStReader
	Arguments and temporary variables: 
		filePackage: 	a RingChunkImporter
		ringClass: 	TBlAnnouncerOwner
	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMainLoopManager) a MCMe...etc...


Array(SequenceableCollection)>>do:
	Receiver: an Array(BlMainLoopManager AthensCompositeTransform BlMorphicSpace BlPopupOnMouseDownEvent...etc...
	Arguments and temporary variables: 
		aBlock: 	[ :ringClass | 
ringClass hasDefinitionSource
	ifTrue:
		[ definitions ...etc...
		index: 	67
	Receiver's instance variables: 
an Array(BlMainLoopManager AthensCompositeTransform BlMorphicSpace BlPopupOnMouseDownEvent...etc...

MCStReader>>loadDefinitions
	Receiver: a MCStReader
	Arguments and temporary variables: 
		filePackage: 	a RingChunkImporter
	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMainLoopManager) a MCMe...etc...


MCStReader(MCSnapshotReader)>>definitions
	Receiver: a MCStReader
	Arguments and temporary variables: 

	Receiver's instance variables: 
		stream: 	a ReadStream
		definitions: 	an OrderedCollection(a MCClassDefinition(BlMa

Re: [Pharo-users] SmaCC 2.0.5 released

2015-08-19 Thread Bernardo Ezequiel Contreras
Hi Thierry,

In the following thread
http://forum.world.st/Brainstorming-question-what-non-trivial-uses-can-you-think-of-for-an-object-based-parser-strings-not-tp4827974p4827983.html

you said

So what are the benefits of OMeta? Note that SmaCC would very easily do
> parsing over any kind of objects, not only tokens.
> Thierry


is there an example of that, ... somewhere?

Thanks.

On Wed, Aug 19, 2015 at 11:30 AM, Thierry Goubier  wrote:

> Hi All,
>
> I have released SmaCC 2.0.5, aligned on the main SmaCC[1] with a small fix
> on the Java parser, a few additional parsers (Cucumber), the addition of
> the Javascript parser, and continuous improvements on the performance and
> source code coverage of SmaCC generated parsers (with many thanks to John
> Brant and Don Roberts). The project is available on github[2]
>
> [1] http://www.refactoryworkers.com/SmaCC.html
>
> [2] https://github.com/ThierryGoubier/SmaCC
>
> This release is targeted at Pharo4. All parsers should work on Pharo 5,
> but the GUI doesn't work. Most parsers come with full AST generation and a
> dedicated visitor for each, and support for native language refactoring.
>
> To retrieve a specific parser, please use Metacello with the following
> script:
>
> Metacello new
>   baseline: 'SmaCC';
>   repository: 'github://ThierryGoubier/SmaCC:v2.0.5';
>   load: 'SmaCC-Javascript'
>
> (SmaCC-Python, SmaCC-Java, SmaCC-Cucumber, etc...)
>
> On Pharo4 only, to retrieve the full set (gui and tests), please use
> Metacello with the following expressions:
>
> Metacello new
>   baseline: 'SmaCC';
>   repository: 'github://ThierryGoubier/SmaCC:v2.0.5';
>   load
>
> Regards,
>
> Thierry
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo 4 Playground open file menu

2015-05-03 Thread Bernardo Ezequiel Contreras
The same as Phil mentioned, but with Emacs on Debian Wheezy you get a lot
of ^M and Emacs says this about the coding system:

- -- undecided-unix (alias: unix)

No conversion on encoding, automatic conversion on decoding.
Type: undecided (do automatic conversion)



On Sun, May 3, 2015 at 5:46 PM, p...@highoctane.be 
wrote:

>
>
> On Sun, May 3, 2015 at 10:34 PM, Tudor Girba  wrote:
>
>> Hi,
>>
>> I think this is an interesting use case, and it is already supported only
>> in a less classic way :).
>>
>> I just wrote a blog post about it:
>>
>> http://www.humane-assessment.com/blog/managing-external-pharo-scripts-with-gtinspector-and-gtspotter/
>>
>> Let me know if this works for you.
>>
>
> Nice, I need to go to 4.0 to get that Spotter thing :-)
>
> One note: scripts are saved with the CR (or ^M) line ending by Pharo.
> Now, vim in Linux positively hates that (showing a single line with ^M s
> all over).
>
> This also makes diffing files a pain (meld is not recognizing any lines
> etc).
>
> So, I have to mac2unix convert them after they have been saved.
>
> I think we should be much better LF (\n) citizens in the Linux world.
>
>
> Phil
>
>
>>
>> Cheers,
>> Doru
>>
>>
>>
>>
>> On Sun, May 3, 2015 at 3:02 PM, p...@highoctane.be 
>> wrote:
>>
>>>
>>> Le 3 mai 2015 12:28, "Esteban Lorenzano"  a écrit :
>>> >
>>> >
>>> >> On 02 May 2015, at 23:28, p...@highoctane.be wrote:
>>> >>
>>> >> When some sysadmin has to edit them on servers, you want them in .st
>>> files.
>>> >>
>>> >> No class. No IDE. Not too much Smalltalk.
>>> >
>>> >
>>> > but  then
>>> > - if not smalltalk, the scripts should not be in the image… even in
>>> workspaces
>>> > - if the sysadmin has to edit them, he can always do something like:
>>> >
>>> > #! /bin/bash
>>> >
>>> > pharo MyImage.image eval “
>>> > my
>>> > multilined
>>> > more or less smalltalk
>>> > script”
>>> >
>>> > - you can always see and edit your scripts by doing:
>>> >
>>> > 'play-cache' asFileReference inspect
>>> >
>>> > (instead ‘play-cache’ you can put: ‘my-script-folder’, whatever)
>>> >
>>> > and you will have a complete inspector that allows you to see and edit
>>> your scripts (who are in the file system, where a sysadmin can find them,
>>> and not in an obscure workspace).
>>> >
>>> > also I bet you would take no more than 5’ to add functionality to
>>> gtinspector (it is designed to be moldable, after all) to add new scripts,
>>> and no matter what other functionality you need… and the result will be a
>>> lot more “pharoish” than storing it in a workspace.
>>>
>>> I agree to these things for the Pharoish experience.
>>>
>>> Just that those scripts are to be edited with Vim on remote boxes.
>>>
>>> I don't want to convert a sysadmin to pharo.
>>>
>>> I want pharo to be used as any other tool in the lineup.
>>>
>>> My image builder is fullly in a class etc.
>>>
>>> Also I am using Sebastian Sastre's ConfigurationFiles that do load
>>> conf/SomeConfFile.st
>>>
>>> I have several such files:
>>>
>>> - email addresses
>>> - mongodb conf
>>> - seaside ports, debug level..
>>> - API config
>>> - configuration file for a tree structure
>>> - preferences
>>>
>>> These are using code that get eval'd because it is practical to use
>>> variables etc.
>>>
>>> e.g.
>>>
>>> defaultBandwidth := 50 megabitsPerSecond.
>>>
>>> 
>>>
>>> #(10 20 30 40) do: [:id |
>>> config add: SomeModule new bandwidth: defaultBandwidth; id: id asString;
>>> label: 'SomeLab', is asString; picture:'some.jpg'; geoLocation: 45.55@44.42;
>>> yourself]
>>>
>>> 
>>>
>>> ^config
>>>
>>> I am preparing them in with Playground etc.
>>>
>>> So nothing wrong with Playground.
>>>
>>> I just like the simple workspace too.
>>>
>>> I also added a : prefix in Spotlight to execute what I do type.
>>>
>>> Going 4.0 is not yet done here.
>>> I am using 3.0 with GToolkit.
>>>
>>> Phil
>>>
>>> >
>>> > Esteban
>>> >
>>> >
>>> >> Just the DSL on an as needed to know basis to configure things.
>>> >>
>>> >> That's better that XML/YAML/JSON...
>>> >>
>>> >> So, that's the case.
>>> >>
>>> >> Startup scripts same story.
>>> >>
>>> >> Phil
>>> >>
>>> >> Le 2 mai 2015 17:56, "Esteban Lorenzano"  a
>>> écrit :
>>> >>>
>>> >>> well… IMO those scripts also should be in a method.
>>> >>> Probably under a class named: MyCoolProjectRunScripts or something
>>> like that… but in a class.
>>> >>> If they are in a class you can:
>>> >>> - save them with your project
>>> >>> - version them
>>> >>> - if you add 

Re: [Pharo-users] Code to create a repository

2015-03-24 Thread Bernardo Ezequiel Contreras
i used to do this

| myRepo myRepoDir |
myRepoDir := FileDirectory on:'/home/vonbecmann/repo'.
myRepo := MCDirectoryRepository new directory: myRepoDir.
MCRepositoryGroup default addRepository: myRepo.

in order to add my directory repository.

"Ken G. Brown's idea"
All in one go if you like:
MCRepositoryGroup default addRepository: (MCDirectoryRepository new
directory: (FileDirectory on: '/myLocalMCRepositoryPath/MyPackage/')).

"Hernan Durand's idea"

| repositories |
repositories := MCRepositoryGroup default.
{
(MCHttpRepository location: 'http://www.squeaksource.com/Phantasia'
user: '' password: '').
(MCHttpRepository location: 'http://www.squeaksource.com/SmallFaces'
user: '' password: '').
}
do: [ : aRepository | repositories addRepository: aRepository ]

And if you read this article
https://pharoweekly.wordpress.com/2014/07/26/a-pharolauncher-lover/

in the script part there are some useful ways to set the username and
password.



Regards

On Tue, Mar 24, 2015 at 6:52 PM, Jan B.  wrote:

> Hello
>
> I would like to ask how to simply add a repository into monticello without
> using monticello GUI's button +Repository, but by code.
> If I'm loading baseline or configuration via Gofer or Metacello, it creates
> repository automatically, but I don't want to load anything, what I need is
> just something like...
> Metacello new repository: 'filetree:///aPath'; create.
> What is the correct command?
>
> Jan
>
>
>
> --
> View this message in context:
> http://forum.world.st/Code-to-create-a-repository-tp4814923.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Logic in Pharo ?

2015-03-20 Thread Bernardo Ezequiel Contreras
here's another one
http://www.smalltalkhub.com/mc/goonsh/Prolog/main

works in pharo 2.0.

I think they are copies of AOKI Atsushi's version.


On Fri, Mar 20, 2015 at 1:58 AM, Hernán Morales Durand <
hernan.mora...@gmail.com> wrote:

> I don't know Prolog, but I have some links you may like:
>
> http://squeaksource.blueplane.jp/JgProlog/
> http://wiki.squeak.org/squeak/1000
>
> http://www.cs.middlebury.edu/~briggs/Courses/CS313-F12/smalltalk/stx/goodies/prolog/
> http://www.smalltalkhub.com/#!/~SergiReyner/Prolog
> https://code.google.com/p/prolog-for-squeak-smalltalk/
>
> There is also Prolog.st (but check the license)
>
> Prolog
> Goodies for VisualWorks 2.5/2.5J and VisualWave 1.0
> Copyright (C) 1995-1997 AOKI Atsushi
> 1997/02/21
>
> Some of them could be repeated/cloned/forked.
> Cheers,
>
> Hernán
>
>
>
>
> 2015-03-19 2:34 GMT-03:00 Alain Busser :
>
> Hello,
>>
>> I am currently working on mechanical means to solve Aristotle's
>> syllogisms. My project is here: https://github.com/AlainBusser/LogicGame
>> (programmed in CoffeeScript for a webApp). When I will present it (in a
>> little more than two months) I plan to solve the same syllogisms with a
>> software tool which must be free, of course.
>>
>> I am thinking about a lightweighted Prolog. Does this exist on Pharo? Or
>> anything which would be similar (computing in a boolean algebra, something
>> like alt-ergo etc)...
>>
>> and, if it runs on Raspbian it will be even better ;-)
>>
>> Alain
>>
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Error while loading GitFileTree in Pharo 4.0

2015-03-15 Thread Bernardo Ezequiel Contreras
it seems so. i was facing the same problem (sthub is dow :(  ).


On Mon, Mar 16, 2015 at 3:40 AM, Jigyasa Grover
 wrote:
> After following this --
>
> Gofer it
> url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
> configurationOf: 'GitFileTree';
> loadDevelopment
>
> I am getting unable to access smalltalkhub.com
> I am also unable to connect to this website through browser.
> Is it unavailable ?
>
> Thanks
> Jigyasa Grover
>
> On Sun, Mar 15, 2015 at 12:09 PM, Jigyasa Grover 
> wrote:
>>
>> Does there exist any alternative ?
>>
>> Thanks
>> Jigyasa Grover
>>
>> On Sun, Mar 15, 2015 at 11:35 AM, Martin Bähr
>>  wrote:
>>>
>>> Excerpts from Jigyasa Grover's message of 2015-03-15 06:56:49 +0100:
>>> > Whenever I click on Install stable version of GitFileTree
>>> > (ThierryGoubier
>>> > .33) in Configuration Browser in Pharo 4.0 , I get the error = The
>>> > symbolic
>>> > version #stable is not defined in Configuration GitFileTree for the
>>> > current
>>> > platform. Possible symbolic version values include : #(#bleedingEdge
>>> > #development)
>>>
>>> i have seen the same error today.
>>> seems there is a problem loading the current version.
>>>
>>> greetings, martin.
>>>
>>> --
>>> eKita   -   the online platform for your entire academic
>>> life
>>> --
>>> chief engineer
>>> eKita.co
>>> pike programmer  pike.lysator.liu.secaudium.net
>>> societyserver.org
>>> secretary
>>> beijinglug.org
>>> mentor
>>> fossasia.org
>>> foresight developer  foresightlinux.org
>>> realss.com
>>> unix sysadmin
>>> Martin Bähr  working in china
>>> http://societyserver.org/mbaehr/
>>
>>
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



Re: [Pharo-users] files.pharo.org now cached close to you

2015-03-07 Thread Bernardo Ezequiel Contreras
Today, 50 seconds to download the image.

i think so.  it also helped that the image now is a lot smaller. but
take into account that i have a lousy ISP

On Sat, Mar 7, 2015 at 3:52 AM, Marcus Denker  wrote:
>
>> On 07 Mar 2015, at 04:47, Bernardo Ezequiel Contreras  
>> wrote:
>>
>> +1.  it took 57 seconds to download an image!!
>>
>
> did you see a speedup from before?
>
>> On Fri, Mar 6, 2015 at 12:11 PM, Johan Fabry  wrote:
>>>
>>> That’s cool! Let’s hope it will help in downloading the latest image, 
>>> sometimes it’s annoyingly slow here.
>>>
>>>> On Mar 6, 2015, at 05:58, Marcus Denker  wrote:
>>>>
>>>> Hi,
>>>>
>>>> Yesterday we have set up a caching infrastructure for 
>>>> http://files.pharo.org
>>>>
>>>> This means that files that are requested multiple times from your location 
>>>> will
>>>> be served from a server  close to you.
>>>>
>>>> There are e.g. servers in Chile, Argentine, Brazil, Dallas, LA, Franfurt, 
>>>> Paris, Hongkong, Sydney….
>>>>
>>>> This will cost us around $1-2 per day. This is not a lot but more that 
>>>> someone (e.g. me) could spend
>>>> from their own pocket.
>>>>
>>>> As such, this is only possible due to the funds of the  Pharo Association:
>>>>
>>>>  http://association.pharo.org
>>>>
>>>> Thanks a lot to all the members!
>>>> If you like this and want to support things like this, please consider 
>>>> joining the association!
>>>>
>>>>  fMarcus
>>>>
>>>
>>>
>>>
>>> ---> Save our in-boxes! http://emailcharter.org <---
>>>
>>> Johan Fabry   -   http://pleiad.cl/~jfabry
>>> PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile
>>>
>>>
>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



Re: [Pharo-users] files.pharo.org now cached close to you

2015-03-06 Thread Bernardo Ezequiel Contreras
+1.  it took 57 seconds to download an image!!

On Fri, Mar 6, 2015 at 12:11 PM, Johan Fabry  wrote:
>
> That’s cool! Let’s hope it will help in downloading the latest image, 
> sometimes it’s annoyingly slow here.
>
>> On Mar 6, 2015, at 05:58, Marcus Denker  wrote:
>>
>> Hi,
>>
>> Yesterday we have set up a caching infrastructure for http://files.pharo.org
>>
>> This means that files that are requested multiple times from your location 
>> will
>> be served from a server  close to you.
>>
>> There are e.g. servers in Chile, Argentine, Brazil, Dallas, LA, Franfurt, 
>> Paris, Hongkong, Sydney….
>>
>> This will cost us around $1-2 per day. This is not a lot but more that 
>> someone (e.g. me) could spend
>> from their own pocket.
>>
>> As such, this is only possible due to the funds of the  Pharo Association:
>>
>>   http://association.pharo.org
>>
>> Thanks a lot to all the members!
>> If you like this and want to support things like this, please consider 
>> joining the association!
>>
>>   fMarcus
>>
>
>
>
> ---> Save our in-boxes! http://emailcharter.org <---
>
> Johan Fabry   -   http://pleiad.cl/~jfabry
> PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile
>
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



Re: [Pharo-users] Porting Voss to Pharo

2015-03-06 Thread Bernardo Ezequiel Contreras
Hi paul,

see http://voss.logicarts.com/

​


Re: [Pharo-users] SQLite3 - External module not found

2015-03-01 Thread Bernardo Ezequiel Contreras
here's Torsten Bergmann's email asta...@gmx.de
and blogspot http://astares.blogspot.com.ar/

get it in contact with him, and you may write some helpful documentation :)

Thanks.

On Sun, Mar 1, 2015 at 5:30 AM, Julien Delplanque  wrote:

> Also, it would be great to give more details about the installation on
> Smalltalkhub (http://smalltalkhub.com/#!/~PharoExtras/NBSQLite3) and
> there is absolutely no details in
> http://smalltalkhub.com/#!/~TorstenBergmann/SQLite.
>
> I think it would be great to give precisions about the version of the
> lib etc
>
> Maybe also give the exact commands to have it fully working on each
> platforms?
>
> Who do I have to contact if I want to help by writing a little bit more
> about installation details?
>
> I mean no offense, I just want to help next people that will have
> troubles with that :p
>
> Julien
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SQLite3 - External module not found

2015-02-28 Thread Bernardo Ezequiel Contreras
maybe

https://sourceware.org/binutils/docs/binutils/readelf.html

for example
readelf -h libsqlite3.so


On Sat, Feb 28, 2015 at 9:16 PM, Ben Coman  wrote:

> is there a tool that will tell you if a particular library file is 32 or
> 64 bit?
>
> On Sun, Mar 1, 2015 at 7:44 AM, Bernardo Ezequiel Contreras <
> vonbecm...@gmail.com> wrote:
>
>> Julien,
>>  the symbolic link should be libsqlite3.so not sqlite3.so.
>>
>> for example
>> ln -s /usr/lib/i386-linux-gnu/libsqlite3.so.0 libsqlite3.so
>>
>>
>>
>>
>> On Sat, Feb 28, 2015 at 7:47 PM, p...@highoctane.be 
>> wrote:
>> > I have it working on CentOS.
>> >
>> > So it is possible to have it working on Linux.
>> >
>> > Is your lib 32 bits?
>> >
>> > Also beware of the finalize in the sqlite library in Pharo as it has a
>> bug.
>> >
>> > I've had to remove the finalize method and handle connections properly
>> on my
>> > own with ensure:
>> >
>> > NBSqlite also exists.
>> >
>> > Phil
>> >
>> > Le 28 févr. 2015 23:12, "Julien Delplanque"  a écrit
>> :
>> >
>> >> First, thanks to take time to answer me.
>> >>
>> >> On 28/02/15 22:50, Bernardo Ezequiel Contreras wrote:
>> >> > the symbolic link works in my pc. did you restart the image after
>> >> > creating the link? or maybe the link is in the wrong place?
>> >>
>> >> Ok, I'll be a little more precise:
>> >>
>> >> The libsqlite3.so file is located in /usr/lib/
>> >> My pharo vm is located in ~/lib-perso/pharo3.0/
>> >>
>> >> What I did is:
>> >> ln -s /usr/lib/sqlite3.so ~/lib-perso/pharo3.0/bin/sqlite3.so
>> >>
>> >> Then I restarted the VM as you said but the error still appear when I
>> >> tried the code I c/c in the first mail.
>> >>
>> >> Then I realized that  /usr/lib/sqlite3.so is a symbolic link that point
>> >> on /usr/lib/libsqlite3.so.0.8.6 so to be sure it wasn't just that, I
>> >> tried the following commands:
>> >>
>> >> rm ~/lib-perso/pharo3.0/bin/sqlite3.so
>> >> ln -s /usr/lib/libsqlite3.so.0.8.6 ~/lib-perso/pharo3.0/bin/sqlite3.so
>> >>
>> >> The error still appear, I'm really confused.
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Bernardo E.C.
>>
>> Sent from a cheap desktop computer in South America.
>>
>>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] SQLite3 - External module not found

2015-02-28 Thread Bernardo Ezequiel Contreras
Julien,
 the symbolic link should be libsqlite3.so not sqlite3.so.

for example
ln -s /usr/lib/i386-linux-gnu/libsqlite3.so.0 libsqlite3.so




On Sat, Feb 28, 2015 at 7:47 PM, p...@highoctane.be  wrote:
> I have it working on CentOS.
>
> So it is possible to have it working on Linux.
>
> Is your lib 32 bits?
>
> Also beware of the finalize in the sqlite library in Pharo as it has a bug.
>
> I've had to remove the finalize method and handle connections properly on my
> own with ensure:
>
> NBSqlite also exists.
>
> Phil
>
> Le 28 févr. 2015 23:12, "Julien Delplanque"  a écrit :
>
>> First, thanks to take time to answer me.
>>
>> On 28/02/15 22:50, Bernardo Ezequiel Contreras wrote:
>> > the symbolic link works in my pc. did you restart the image after
>> > creating the link? or maybe the link is in the wrong place?
>>
>> Ok, I'll be a little more precise:
>>
>> The libsqlite3.so file is located in /usr/lib/
>> My pharo vm is located in ~/lib-perso/pharo3.0/
>>
>> What I did is:
>> ln -s /usr/lib/sqlite3.so ~/lib-perso/pharo3.0/bin/sqlite3.so
>>
>> Then I restarted the VM as you said but the error still appear when I
>> tried the code I c/c in the first mail.
>>
>> Then I realized that  /usr/lib/sqlite3.so is a symbolic link that point
>> on /usr/lib/libsqlite3.so.0.8.6 so to be sure it wasn't just that, I
>> tried the following commands:
>>
>> rm ~/lib-perso/pharo3.0/bin/sqlite3.so
>> ln -s /usr/lib/libsqlite3.so.0.8.6 ~/lib-perso/pharo3.0/bin/sqlite3.so
>>
>> The error still appear, I'm really confused.
>>
>>
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



Re: [Pharo-users] SQLite3 - External module not found

2015-02-28 Thread Bernardo Ezequiel Contreras
the symbolic link works in my pc. did you restart the image after
creating the link? or maybe the link is in the wrong place?


On Sat, Feb 28, 2015 at 2:22 PM, Julien Delplanque  wrote:
> Hello everyone,
>
> I have problems to get SQLite3 package working. I tried the solution
> provided in another thread of the mailing list that was to create a
> symbolic link from libsqlite3.so to a file located in the pharo3.0/bin
> directory and named 'libsqlite3.so' as well but I still get the error:
> External module not found.
>
> My OS is Archlinux (Linux version 3.18.6-1-ARCH (builduser@tobias) (gcc
> version 4.9.2 20141224 (prerelease) (GCC) ) #1 SMP PREEMPT Sat Feb 7
> 08:44:05 CET 2015) and I'm using pharo3.
>
> The code that fail:
>
> c := SQLiteConnection fileNamed: ':memory:'.
> c open.
>
> Maybe I'm missing something with the libsqlite3.so file?
>
> Thanks in advance,
>
> Julien
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



[Pharo-users] Reloading a shared c library after been modified?

2014-10-12 Thread Bernardo Ezequiel Contreras
hi all,
  i've made a simple shared c library for learning purposes
that i call using nativeboost. Now the problem i'm facing
it's that after i changed the library i have to close and
open the image to get those changes, so the question
is there a way to update the library loaded in the image without
closing and opening the image?

thanks.



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.



Re: [Pharo-users] Please contributors fill up this form...

2013-10-15 Thread Bernardo Ezequiel Contreras
PharoContributor new
  name: 'Bernardo Contreras';
  id: 'vonbecmann';
  email: 'vonbecm...@gmail.com';
  description: 'Software Developer';
  yourself



On Wed, Oct 9, 2013 at 8:34 AM, Stéphane Ducasse
wrote:

> Hi guys
>
> I would like to get
> contributors.pharo.org a bit more representative of Pharo.
>
> We should have Previous contributors and enhance the current list.
> Can you please reply to this mail
>
> PharoContributor new
> name: 'Esteban Lorenzano';
> id: 'estebanlm';
> email: 'esteba...@gmail.com';
> website: 'http://smallworks.eu';
> description: 'Pharo core team. Contributor of several
> projects, including Kernel, DBXTalk, Voyage, Mars, etc. Also I work on the
> VM.';
> image: '
> http://www.gravatar.com/avatar/193af464509ae8fbcc04abad70b72fc0?s=120';
> yourself
>
>
> Stef
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Steve Jobs-The Lost Interview-2012

2013-06-10 Thread Bernardo Ezequiel Contreras
Hi all,
  Hope you like it.

-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Steve_Jobs_The_Lost_Interview_2012_DOCU_DVDRip_XviD_GECKOS.torrent
Description: Binary data