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

2017-11-25 Thread Ben Coman
On 25 November 2017 at 15:18, Викентий Потапов 
wrote:

>
> I downloaded the latest PharoLauncher image, use VM for Pharo 6.1.
> 1) On load i got an error with UTF8 encoding.
> 2) Every time i tried to create image (for example, Pharo 7 image) i get
> an error "Can't find the requested origin".
>
> Reported.
>
> Best regards, Vikenti Potapov
>
>
The overall difficulty here in getting this addressed is difficulty in
reproducing your environment.
For example, I think it would be awkward for me to operate with OS locale
set to Russian.
You'll see little action on it until there is an Issue logged at
pharo.fogbugz.com with a simple set of steps to reproduced for standard
environments (i.e. using English locales)

Reviewing your other posts, I'd suggest initially creating a script to wrap
Pharo startup that cleans all the environment variables to ascii
characters, temporarily creating required directories so at lest you can
get it started.  Then extend that script to reintroduce the error, like a
single non-ascii character in a single environment variable that causes an
error.  That extended part then provides a path for others to reproduce
your problem, which you would attach to the Issue.   Then as you
investigate a solution yourself, ask questions about it on pharo-dev to
keep the Issue active and over time you'll likely get some action from
others on it.

cheers -ben


Re: [Pharo-users] Timespan translateToUTC problematic

2017-11-25 Thread Alistair Grant
On 21 November 2017 at 18:07, Alistair Grant  wrote:
>
> If I don't hear back in a couple of days I'll submit a PR (with
> automated tests).

Thanks to Ben, Benoit and Sven for their input.

I ended up using #equals: as suggested by Sven.  I'd thought of this
and had originally rejected it due to it being the same name (when
spoken) as #=.  But I've also added the other corresponding
comparisons, and #equals: fitted in the best.

Issue: https://pharo.fogbugz.com/f/cases/20747/
PR: https://github.com/pharo-project/pharo/pull/544

Cheers,
Alistair



Re: [Pharo-users] Timespan translateToUTC problematic

2017-11-25 Thread Alistair Grant
On 16 November 2017 at 20:23, Pavel Krivanek  wrote:
> I openend an issue:
> https://pharo.fogbugz.com/f/cases/20700/translateToUTC-does-not-work-on-Month-and-Year
>
> Thank you for reporting
> -- Pavel

PR: https://github.com/pharo-project/pharo/pull/545

Cheers,
Alistair


> 2017-11-16 18:36 GMT+01:00 Trussardi Dario Romano
> :
>>
>> Ciao,
>>
>> i have a Pharo 4.0 image run on macbook with time zone is set to
>> Rome +1 UTC .
>>
>> When i send the translateToUTC to Date instance it is ok:
>>
>> Date today  >  2017-11-16T00:00:00+01:00
>>
>> Date today translateToUTC   >
>> 2017-11-16T00:00:00+00:00
>>
>>
>> But for Month instance :
>>
>> Month month:  6 year:  2015 >
>> 2015-06-01T00:00:00+01:00
>>
>> ( Month month:  6 year:  2015 )  translateToUTC >
>> 2015-06-01T00:00:00+01:00
>>
>> The same problematic is for Year instance.
>>
>> Considerations ?
>>
>> Thanks,
>>
>> Dario
>
>



Re: [Pharo-users] Business process (declaration and orchestration), ontology/taxonomy,

2017-11-25 Thread Stephane Ducasse
I will take some time before I can try but I wants to have super simple
shape with lines between them.

Stef

On Thu, Nov 23, 2017 at 12:56 PM, Serge Stinckwich <
serge.stinckw...@gmail.com> wrote:

>
>
> On Wed, Oct 25, 2017 at 1:48 PM, Cédrick Béler  wrote:
>
>> Hi again, this is my last question and the more general one of the day :-)
>>
>>
>> I’m looking for way of representing and executing simple "business
>> processes" in Pharo and a way of declaring domain ontologies/taxonomies.
>>
>
> ​Sorry, I'm a bit slow to reply ... I have worked some months ago with a
> student on some support of BPMN processes.
> We are able to load BPMN models (XML files) and do some basic static
> analysis based on complexity metrics and dynamic analysis on different kind
> of simulations (including multi-agent ones). There is more details on the
> website here: http://a4bp.com/
>
> I would be very interested to work again on this.
>
> ​Regards,​
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC/UY1)
> "Programs must be written for people to read, and only incidentally for
> machines to execute."http://www.doesnotunderstand.org/
>


Re: [Pharo-users] Pharo-Chrome (was: Soup bug(fix))

2017-11-25 Thread Sean P. DeNigris
Alistair Grant wrote
> An updated version is available including:

Great, thanks! #exampleEvalutionOfJavaScript and #exampleNavigation both
work now. Also, the finance.yahoo.com example from this thread worked until
missing class DataFrame. IIUC you said this was from a different project,
but I didn't see it in the Pharo Catalog. How would I load it and what is
the project about? Thanks!



-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Timespan translateToUTC problematic

2017-11-25 Thread Stephane Ducasse
Thanks you all for this discussion.
Last time I used Date and friends I got really frustrated. The
navigation between the concept was not really good.
I needed for example to manipulate a month in a year: February 2017 (I
should check what I did).
If I would have time and money I would
- create a minimal package private only used by the kernel to load and
save image and order changesets.
- create a nicer package that we can use for app dev.

Stef




On Sat, Nov 25, 2017 at 11:54 AM, Alistair Grant  wrote:
> On 16 November 2017 at 20:23, Pavel Krivanek  wrote:
>> I openend an issue:
>> https://pharo.fogbugz.com/f/cases/20700/translateToUTC-does-not-work-on-Month-and-Year
>>
>> Thank you for reporting
>> -- Pavel
>
> PR: https://github.com/pharo-project/pharo/pull/545
>
> Cheers,
> Alistair
>
>
>> 2017-11-16 18:36 GMT+01:00 Trussardi Dario Romano
>> :
>>>
>>> Ciao,
>>>
>>> i have a Pharo 4.0 image run on macbook with time zone is set to
>>> Rome +1 UTC .
>>>
>>> When i send the translateToUTC to Date instance it is ok:
>>>
>>> Date today  >  2017-11-16T00:00:00+01:00
>>>
>>> Date today translateToUTC   >
>>> 2017-11-16T00:00:00+00:00
>>>
>>>
>>> But for Month instance :
>>>
>>> Month month:  6 year:  2015 >
>>> 2015-06-01T00:00:00+01:00
>>>
>>> ( Month month:  6 year:  2015 )  translateToUTC >
>>> 2015-06-01T00:00:00+01:00
>>>
>>> The same problematic is for Year instance.
>>>
>>> Considerations ?
>>>
>>> Thanks,
>>>
>>> Dario
>>
>>
>



Re: [Pharo-users] Pharo-Chrome (was: Soup bug(fix))

2017-11-25 Thread Alistair Grant
On 25 November 2017 at 14:18, Sean P. DeNigris  wrote:
> Alistair Grant wrote
>> An updated version is available including:
>
> Great, thanks! #exampleEvalutionOfJavaScript and #exampleNavigation both
> work now. Also, the finance.yahoo.com example from this thread worked until
> missing class DataFrame. IIUC you said this was from a different project,
> but I didn't see it in the Pharo Catalog. How would I load it and what is
> the project about? Thanks!

The Pharo-Chrome readme includes code for loading DataFrame:

Metacello new
  baseline: 'DataFrame';
  repository: 'github://PolyMathOrg/DataFrame';
  load.


If you are familiar with python pandas, it is a similar package for
Pharo.  See also:

https://github.com/PolyMathOrg/DataFrame


Cheers,
Alistair



Re: [Pharo-users] Pharo-Chrome (was: Soup bug(fix))

2017-11-25 Thread Sean P. DeNigris
Alistair Grant wrote
> https://github.com/PolyMathOrg/DataFrame

Cool, thanks! I didn't know about this project.



-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] How do you store and manage small programs?

2017-11-25 Thread Andy Burnett
I have just created a couple of small playground scripts that do some useful 
data wrangling. The chances are that I will reuse them from time to time, but 
with tweaks. Does version 6 Have some way to store them? I think I am after a 
sort of scripts catalogue.


Re: [Pharo-users] How do you store and manage small programs?

2017-11-25 Thread Benoit St-Jean via Pharo-users
--- Begin Message ---
Have a look at Script Manager.
http://catalog.pharo.org/catalog/project/ScriptManager
 - 
Benoît St-Jean 
Yahoo! Messenger: bstjean 
Twitter: @BenLeChialeux 
Pinterest: benoitstjean 
Instagram: Chef_Benito
IRC: lamneth 
Blogue: endormitoire.wordpress.com 
"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)

  From: Andy Burnett 
 To: "pharo-users@lists.pharo.org"  
 Sent: Saturday, November 25, 2017 12:35 PM
 Subject: [Pharo-users] How do you store and manage small programs?
   
I have just created a couple of small playground scripts that do some useful 
data wrangling. The chances are that I will reuse them from time to time, but 
with tweaks. Does version 6 Have some way to store them? I think I am after a 
sort of scripts catalogue.

   

|  | Virus-free. www.avg.com  |

--- End Message ---


Re: [Pharo-users] How do you store and manage small programs?

2017-11-25 Thread Dimitris Chloupis
I use github and Package Browser, Package Browser is for intalling packages
from inside image. For small code snippets I use Gist which supports
Smalltalk syntax.
For example
https://gist.github.com/kilon/ef8a99d94637eadfac339107e1ace233

On Sat, Nov 25, 2017 at 7:35 PM Andy Burnett <
andy.burn...@knowinnovation.com> wrote:

> I have just created a couple of small playground scripts that do some
> useful data wrangling. The chances are that I will reuse them from time to
> time, but with tweaks. Does version 6 Have some way to store them? I think
> I am after a sort of scripts catalogue.
>


Re: [Pharo-users] How do you store and manage small programs?

2017-11-25 Thread Offray Vladimir Luna Cárdenas
Hi Andy,

On 25/11/17 12:34, Andy Burnett wrote:
> I have just created a couple of small playground scripts that do some
> useful data wrangling. The chances are that I will reuse them from
> time to time, but with tweaks. Does version 6 Have some way to store
> them? I think I am after a sort of scripts catalogue.

You can try Grafoscopio[1]. It allows you to store, give context,
document and organize your scripts as interactive notebooks,
intertwining text + code and export them to PDF and HTML (via Pandoc).

[1] http://mutabit.com/grafoscopio/index.en.html

Cheers,

Offray



signature.asc
Description: OpenPGP digital signature


[Pharo-users] deselecting individual items with beMultiple

2017-11-25 Thread Evan Donahue
If I have a gl fast table with #beMultiple enabled, is there a way for me
to select non-contiguous items? Eg

- item 1
- item 2
- item 3

Using shift, I can highlight items 1&2 or 1-3, but not 1&3, excluding 2.
Some listing interfaces in non-pharo applications allow control clicking to
deselect individual items from the middle of a selection. Is there
something like that in Pharo glm presentations?

Thanks


Re: [Pharo-users] How do you store and manage small programs?

2017-11-25 Thread Peter Uhnák
re Script Manager
"We would recommend users to switch to QuickAccess which is a better script
manager than this tool."

QuickAccess
here's a video and everything
https://pharoweekly.wordpress.com/2015/11/06/quickaccess/

For QA I also have a startup script that installs it on first startup, and
then reloads its state on every startup (so the scripts are shared between
images)
https://github.com/peteruhnak/pharo-scripts/blob/master/config/6.0/quickAccess.st


for "maybe-sometimes-useful-scripts" or when I just want to write a code
memo for myself, I tend to use gist ( https://gist.github.com/peteruhnak )

Peter


On Sat, Nov 25, 2017 at 6:51 PM, Offray Vladimir Luna Cárdenas <
offray.l...@mutabit.com> wrote:

> Hi Andy,
>
> On 25/11/17 12:34, Andy Burnett wrote:
> > I have just created a couple of small playground scripts that do some
> > useful data wrangling. The chances are that I will reuse them from
> > time to time, but with tweaks. Does version 6 Have some way to store
> > them? I think I am after a sort of scripts catalogue.
>
> You can try Grafoscopio[1]. It allows you to store, give context,
> document and organize your scripts as interactive notebooks,
> intertwining text + code and export them to PDF and HTML (via Pandoc).
>
> [1] http://mutabit.com/grafoscopio/index.en.html
>
> Cheers,
>
> Offray
>
>