[Pharo-users] Re: Picking neighbouring elements

2023-04-30 Thread Bernhard Pieber
Hi Richard,

That sounds great. I am looking forward to playing with it.

Bernhard

> Am 25.04.2023 um 04:11 schrieb Richard O'Keefe :
>
> There is a much newer version. I've made some minor corrections today.
> I really must put it up on github.
> Let me get back to you about that.
>
> On Sat, 22 Apr 2023 at 18:57, Bernhard Pieber  wrote:
>
>> Hi Richard,
>>
>> I really liked your concise description about what is the point of using an 
>> object-oriented language. It made my day.
>>
>> I searched the Web for your Smalltalk library and found this link:
>> http://www.cs.otago.ac.nz/staffpriv/ok/astc-1711.tar.gz
>>
>> Is there a newer version available somewhere?
>>
>> Cheers,
>> Bernhard
>>
>>> Am 22.04.2023 um 00:51 schrieb Richard O'Keefe :
>>>
>>> I'm sorry, it appears that I failed to explain the question
>>> well enough. I thought I'd explained earlier.
>>>
>>> successor: target
>>> ^(self select: [:each | target < each]) min
>>>
>>> is trivial. What's wrong with it is that it allocates
>>> an intermediate collection and takes two passes.
>>> FIXING that is is also trivial.
>>>
>>> successor: target
>>> ^(self virtualSelect: [:each | target < each]) min
>>> ^^^
>>>
>>> This does allocate something, but it's just a few words,
>>> and a single traversal is one.
>>>
>>> In other languages/contexts we'd be talking about
>>> loop fusion/listless transformation/deforestation.
>>> It is my understanding that using Transducers would
>>> get me *this* level of improvement.
>>>
>>> The problem is that this is still a linear-time
>>> algorithm. If you take advantage of the order in
>>> a SortedCollection or SortedSet,it can take logarithmic
>>> time. When SortedSet is implemented as a splay tree
>>> -- as it is in my library -- iterating over all its
>>> elements using #successor: is amortised CONSTANT time
>>> per element. So we need THREE algorithms:
>>> - worst case O(n) select+min
>>> - worst case O(lg n) binary search
>>> - amortised O(1) splaying
>>> and we want the algorithm selection to be
>>>
>>> A U T O M A T I C.
>>>
>>> That's the point of using an object-oriented language.
>>> I say what I want done and the receiver decides how to
>>> do it. Anything where I have to write different
>>> calling code depending on the structure of the receiver
>>> doesn't count as a solution.
>>>
>>> Now we come to the heart of the problem.
>>> The binary search algorithm is NOT a special case
>>> of the linear search algorithm. It is not made of
>>> pieces that can be related to the parts of the linear
>>> search algorithm.
>>> The splaying algorithm is NOT a special case of the
>>> linear search algorithm OR the binary search algorithm.
>>> It is not made of pieces that can be related to their
>>> parts.
>>>
>>> So *IF* I want automatic selection of an appropriate
>>> algorithm, then I have to rely on inheritance and
>>> overriding, and in order to do that I have to have
>>> a named method that *can* be overridden, and at that
>>> point I'm no longer building a transducer out of
>>> pluggable pieces.
>>>
>>> So that's the point of this exercise.
>>> How do we get
>>> (a) composition of transducers out of pluggable parts
>>> AND
>>> (b) automatic selection of appropriate algorithms
>>>
>>> On Fri, 21 Apr 2023 at 20:35, Steffen Märcker  wrote:
>>>
>>>> Hi Richard,
>>>>
>>>> Now that's much clearer to me:
>>>> min{y | y in c . y > x} "strict supremum"
>>>> max{y | y in c . y < x} "strict infimum"
>>>>
>>>> For the general case of a sequence (not sorted) of elements we can do
>>>>
>>>> strictSupremumOf: x in: sequence
>>>>
>>>> ^(sequence transduce filter: [:y | y > x])"virtual sequence"
>>>> inject: nil
>>>> into: [:min :b | min ifNotNil: [:a | a min: b]]
>>>>
>>>> I just picked a variant of minimum that answers nil if no element is 
>>>> found. Other variants would work, too.
>>>> The focus of transducers is on re-use and composition of processing steps. 
>>>> We can 

[Pharo-users] Re: Picking neighbouring elements

2023-04-21 Thread Bernhard Pieber
Hi Richard,

I really liked your concise description about what is the point of using an 
object-oriented language. It made my day.

I searched the Web for your Smalltalk library and found this link:
http://www.cs.otago.ac.nz/staffpriv/ok/astc-1711.tar.gz

Is there a newer version available somewhere?

Cheers,
Bernhard

> Am 22.04.2023 um 00:51 schrieb Richard O'Keefe :
>
> I'm sorry, it appears that I failed to explain the question
> well enough. I thought I'd explained earlier.
>
> successor: target
> ^(self select: [:each | target < each]) min
>
> is trivial. What's wrong with it is that it allocates
> an intermediate collection and takes two passes.
> FIXING that is is also trivial.
>
> successor: target
> ^(self virtualSelect: [:each | target < each]) min
> ^^^
>
> This does allocate something, but it's just a few words,
> and a single traversal is one.
>
> In other languages/contexts we'd be talking about
> loop fusion/listless transformation/deforestation.
> It is my understanding that using Transducers would
> get me *this* level of improvement.
>
> The problem is that this is still a linear-time
> algorithm. If you take advantage of the order in
> a SortedCollection or SortedSet,it can take logarithmic
> time. When SortedSet is implemented as a splay tree
> -- as it is in my library -- iterating over all its
> elements using #successor: is amortised CONSTANT time
> per element. So we need THREE algorithms:
> - worst case O(n) select+min
> - worst case O(lg n) binary search
> - amortised O(1) splaying
> and we want the algorithm selection to be
>
> A U T O M A T I C.
>
> That's the point of using an object-oriented language.
> I say what I want done and the receiver decides how to
> do it. Anything where I have to write different
> calling code depending on the structure of the receiver
> doesn't count as a solution.
>
> Now we come to the heart of the problem.
> The binary search algorithm is NOT a special case
> of the linear search algorithm. It is not made of
> pieces that can be related to the parts of the linear
> search algorithm.
> The splaying algorithm is NOT a special case of the
> linear search algorithm OR the binary search algorithm.
> It is not made of pieces that can be related to their
> parts.
>
> So *IF* I want automatic selection of an appropriate
> algorithm, then I have to rely on inheritance and
> overriding, and in order to do that I have to have
> a named method that *can* be overridden, and at that
> point I'm no longer building a transducer out of
> pluggable pieces.
>
> So that's the point of this exercise.
> How do we get
> (a) composition of transducers out of pluggable parts
> AND
> (b) automatic selection of appropriate algorithms
>
> On Fri, 21 Apr 2023 at 20:35, Steffen Märcker  wrote:
>
>> Hi Richard,
>>
>> Now that's much clearer to me:
>> min{y | y in c . y > x} "strict supremum"
>> max{y | y in c . y < x} "strict infimum"
>>
>> For the general case of a sequence (not sorted) of elements we can do
>>
>> strictSupremumOf: x in: sequence
>>
>> ^(sequence transduce filter: [:y | y > x])"virtual sequence"
>> inject: nil
>> into: [:min :b | min ifNotNil: [:a | a min: b]]
>>
>> I just picked a variant of minimum that answers nil if no element is found. 
>> Other variants would work, too.
>> The focus of transducers is on re-use and composition of processing steps. 
>> We can break this up into steps if needed:
>>
>> minimum := [:min :b | min ifNotNil: [:a | a min: b]] init: nil."reduction"
>> upperBounds := Filter predicate: [:y | y > x]."transducer"
>> strictSup := minimum transduce: upperBounds."transformed reduction"
>> ^strictSup reduce: sequence
>>
>> We can also use a different notation similar to a data flow:
>>
>> minimum <~ upperBounds <~ sequence
>>
>> Of course, if we know how the sequence is sorted, we should use another 
>> algorithm. Assuming an ascending order with no random access, we'd change 
>> minimum to stop early:
>>
>> minimum := [:min :b | Stop result: b].
>>
>> Kind regards,
>> Steffen
>>
>> Richard O'Keefe schrieb am Freitag, 21. April 2023 05:33:44 (+02:00):
>>
>>> successor of x in c = the smallest element of c that is larger than x
>>> min {y | y in c . y > x}
>>> predecessor of x in c = the largest element of c that is smaller than x
>>> max {y | y in c . y < x}
>>>
>>> On Thu, 20 Apr 2023 at 21:08, Steffen Märcker  wrote:
>>>
 Dear Richard,

 thanks for that additional piece. I'll put insert- on my list 
 of possible variants. I think we come back to naming after the initial 
 port is done and everyone can play with it. Generally, I made the 
 observation to better be careful with names since it's too easy to 
 alienate other or trigger wrong assumptions.

 New topic! (quote below)

 Honestly, my knowledge of Haskell is rather limited and rusted. Hence, I 
 am having difficulties understanding what exactly these operations with a 
 sequence of elements. Can you give an example or so

[Pharo-users] Re: P3 connection error

2021-05-18 Thread Bernhard Pieber
Yes, I am on Windows 10.

Thanks!

Bernhard

> Am 18.05.2021 um 22:23 schrieb Sven Van Caekenberghe :
>
>
> Hi,
>
> Since you can connect to 3 of the 4 machines, both over plain and tls, it 
> basically works.
>
> You will have to find out what is different in the host configurations of the 
> servers.
>
> It could be a certificate issue like you suggest, I don't know.
>
> I am guessing you are on Windows ?
>
> Tomorrow I will try to test plain and tls connections on my machine.
>
> Sven
>
>> On 18 May 2021, at 21:22, Bernhard Pieber  wrote:
>>
>> Hi Sven,
>>
>> The explicit form does not work either. All the fields contain safe 
>> characters.
>>
>> However, I just found out that I can connect to three other hosts. All four 
>> hosts should have the same settings (databases and users), and just one of 
>> them does not work. So there must be a difference in the settings after all.
>>
>> I noticed that the error message ends with "SSL off“. So maybe the problem 
>> is related to SSL after all. Just calling #setSSL does not help, though. I 
>> get SSL Exception: connect failed [code:-5]. Maybe I am missing some 
>> certificates?
>>
>> When I connect with psql, three of the four hosts show this message:
>> psql (12.5, Server 12.6)
>> SSL-Verbindung (Protokoll: TLSv1.2, Verschlüsselungsmethode: 
>> ECDHE-ECDSA-AES128-GCM-SHA256, Bits: 128, Komprimierung: aus)
>>
>> The fourth does not mention SSL.
>>
>> However, only one of the three hosts that show SSL does not work. Really 
>> strange.
>>
>> (All of the four hosts work with psql, SQuirreL and DBeaver.)
>>
>> Thanks for your support!
>>
>> Bernhard
>>
>>> Am 18.05.2021 um 20:16 schrieb Sven Van Caekenberghe :
>>>
>>>
>>> (CC-ing the list)
>>>
>>> Hmm, that should just work.
>>>
>>> Are there any special characters in the username, password or host 
>>> (non-ascii, URL unsafe characters) ?
>>>
>>> You could try the explicit init form
>>>
>>> P3Client new host: 'host'; user: 'user'; password: 'password'; database: 
>>> 'database'; yourself.
>>>
>>>> On 18 May 2021, at 19:47, Bernhard Pieber  wrote:
>>>>
>>>> Hi Sven,
>>>>
>>>> Thank you for the fast response.
>>>>
>>>> Yes, I can connect using the psql client using this command line:
>>>> C:\PostgreSQL\12\bin\psql.exe -h host -U user -d database -p 5432
>>>>
>>>> I have to enter the password in the command prompt.
>>>>
>>>> The driver URL in SQuirreL is:
>>>> jdbc:postgresql://host:5432/database
>>>>
>>>> User name and password are separate text fields.
>>>>
>>>> pgAdmin also works, by the way.
>>>>
>>>> In P3 I use the long form:
>>>> P3Client new url: 'psql://user:password@host:5432/database'.
>>>>
>>>> Cheers,
>>>> Bernhard
>>>>
>>>>> Am 18.05.2021 um 19:16 schrieb Sven Van Caekenberghe :
>>>>>
>>>>>
>>>>> Hi Bernard,
>>>>>
>>>>>> On 18 May 2021, at 18:40, Bernhard Pieber  wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have a PostgreSQL database on a remote host which I want to access 
>>>>>> using P3. I do have a username and a password and can connect via 
>>>>>> SQuirreL and DBeaver. Both use a JDBC driver. However, when I try to 
>>>>>> access it via Pharo and P3 I get the infamous "no pg_hba.conf entry for 
>>>>>> host “ error. The thing is that I cannot change the 
>>>>>> pg_hba.conf file as the server does not belong to me. I wonder why the 
>>>>>> JDBC driver does not run into this problem when connecting from my IP 
>>>>>> address? It must do something differently.
>>>>>>
>>>>>> As I have just started playing with P3 (and PostgreSQL to be honest) I 
>>>>>> may be missing something fundamental. Using #setSSL did not help, by the 
>>>>>> way. Any other ideas I could try?
>>>>>>
>>>>>> Cheers,
>>>>>> Bernhard
>>>>>
>>>>> This is an interesting problem: to do a remote, over the network, 
>>>>> connection this has to be enabled in PostegreSQL in the pg_hba.conf. But 
>>>>> since other clients can connect, it would help if you could give me more 
>>>>> details regarding their connection settings. I know this could include 
>>>>> confidential information, so be careful what you post.
>>>>>
>>>>> You could also try to connect using the command line psql client, from 
>>>>> your machine.
>>>>>
>>>>> Sven
>>>>
>>>
>>
>>
>



[Pharo-users] Re: P3 connection error

2021-05-18 Thread Bernhard Pieber
Hi Sven,

The explicit form does not work either. All the fields contain safe characters.

However, I just found out that I can connect to three other hosts. All four 
hosts should have the same settings (databases and users), and just one of them 
does not work. So there must be a difference in the settings after all.

I noticed that the error message ends with "SSL off“. So maybe the problem is 
related to SSL after all. Just calling #setSSL does not help, though. I get SSL 
Exception: connect failed [code:-5]. Maybe I am missing some certificates?

When I connect with psql, three of the four hosts show this message:
psql (12.5, Server 12.6)
SSL-Verbindung (Protokoll: TLSv1.2, Verschlüsselungsmethode: 
ECDHE-ECDSA-AES128-GCM-SHA256, Bits: 128, Komprimierung: aus)

The fourth does not mention SSL.

However, only one of the three hosts that show SSL does not work. Really 
strange.

(All of the four hosts work with psql, SQuirreL and DBeaver.)

Thanks for your support!

Bernhard

> Am 18.05.2021 um 20:16 schrieb Sven Van Caekenberghe :
>
>
> (CC-ing the list)
>
> Hmm, that should just work.
>
> Are there any special characters in the username, password or host 
> (non-ascii, URL unsafe characters) ?
>
> You could try the explicit init form
>
> P3Client new host: 'host'; user: 'user'; password: 'password'; database: 
> 'database'; yourself.
>
>> On 18 May 2021, at 19:47, Bernhard Pieber  wrote:
>>
>> Hi Sven,
>>
>> Thank you for the fast response.
>>
>> Yes, I can connect using the psql client using this command line:
>> C:\PostgreSQL\12\bin\psql.exe -h host -U user -d database -p 5432
>>
>> I have to enter the password in the command prompt.
>>
>> The driver URL in SQuirreL is:
>> jdbc:postgresql://host:5432/database
>>
>> User name and password are separate text fields.
>>
>> pgAdmin also works, by the way.
>>
>> In P3 I use the long form:
>> P3Client new url: 'psql://user:password@host:5432/database'.
>>
>> Cheers,
>> Bernhard
>>
>>> Am 18.05.2021 um 19:16 schrieb Sven Van Caekenberghe :
>>>
>>>
>>> Hi Bernard,
>>>
>>>> On 18 May 2021, at 18:40, Bernhard Pieber  wrote:
>>>>
>>>> Hi,
>>>>
>>>> I have a PostgreSQL database on a remote host which I want to access using 
>>>> P3. I do have a username and a password and can connect via SQuirreL and 
>>>> DBeaver. Both use a JDBC driver. However, when I try to access it via 
>>>> Pharo and P3 I get the infamous "no pg_hba.conf entry for host >>> address>“ error. The thing is that I cannot change the pg_hba.conf file as 
>>>> the server does not belong to me. I wonder why the JDBC driver does not 
>>>> run into this problem when connecting from my IP address? It must do 
>>>> something differently.
>>>>
>>>> As I have just started playing with P3 (and PostgreSQL to be honest) I may 
>>>> be missing something fundamental. Using #setSSL did not help, by the way. 
>>>> Any other ideas I could try?
>>>>
>>>> Cheers,
>>>> Bernhard
>>>
>>> This is an interesting problem: to do a remote, over the network, 
>>> connection this has to be enabled in PostegreSQL in the pg_hba.conf. But 
>>> since other clients can connect, it would help if you could give me more 
>>> details regarding their connection settings. I know this could include 
>>> confidential information, so be careful what you post.
>>>
>>> You could also try to connect using the command line psql client, from your 
>>> machine.
>>>
>>> Sven
>>
>



[Pharo-users] P3 connection error

2021-05-18 Thread Bernhard Pieber
Hi,

I have a PostgreSQL database on a remote host which I want to access using P3. 
I do have a username and a password and can connect via SQuirreL and DBeaver. 
Both use a JDBC driver. However, when I try to access it via Pharo and P3 I get 
the infamous "no pg_hba.conf entry for host “ error. The thing 
is that I cannot change the pg_hba.conf file as the server does not belong to 
me. I wonder why the JDBC driver does not run into this problem when connecting 
from my IP address? It must do something differently.

As I have just started playing with P3 (and PostgreSQL to be honest) I may be 
missing something fundamental. Using #setSSL did not help, by the way. Any 
other ideas I could try?

Cheers,
Bernhard


[Pharo-users] Re: Tabular for Pharo 9 and Git line ending conventions

2021-04-26 Thread Bernhard Pieber
Actually, it is even worse. All lines in all methods are shown as changed.

> Am 26.04.2021 um 09:36 schrieb Bernhard Pieber :
>
> Hi,
>
> I made the Tabular tests to run on Pharo 9:
> https://github.com/bpieber/Tabular
>
> However, due to different line endings all lines of all touched methods are 
> shown as changed:
> https://github.com/VincentBlondeau/Tabular/compare/master...bpieber:master
>
> The reason seems to be that in the repository the files use CRLF line endings 
> while on my Mac the line endings are converted to LF.
>
> I experimented with all settings of core.autocrlf (true, false, and input). 
> However, the result was always the same.
>
> Is there any way I can solve this problem?
>
> Is there a convention which line endings Pharo projects should have in the 
> repository on GitHub?
>
> Cheers,
> Bernhard

[Pharo-users] Tabular for Pharo 9 and Git line ending conventions

2021-04-26 Thread Bernhard Pieber
Hi,

I made the Tabular tests to run on Pharo 9:
https://github.com/bpieber/Tabular

However, due to different line endings all lines of all touched methods are 
shown as changed:
https://github.com/VincentBlondeau/Tabular/compare/master...bpieber:master

The reason seems to be that in the repository the files use CRLF line endings 
while on my Mac the line endings are converted to LF.

I experimented with all settings of core.autocrlf (true, false, and input). 
However, the result was always the same.

Is there any way I can solve this problem?

Is there a convention which line endings Pharo projects should have in the 
repository on GitHub?

Cheers,
Bernhard

Re: [Pharo-users] Image does not start anymore

2018-10-02 Thread Bernhard Pieber
Hi Vincent,

It occurred to me that I had probably misunderstood you. I had tried with the 
Squeak VM and not the latest OpenSmalltalk Pharo VM. With that my image works 
again. Code is saved. Data is there. Learned something for next time. :-)

Thanks everyone for your help.

Cheers,
Bernhard


> Am 02.10.2018 um 09:24 schrieb Bernhard Pieber :
> 
> Hi Vincent,
> 
> Thanks for taking the time to answer. Yes, I have the same error every time.
> 
> I tried with the latest stable Squeak VM. However, I get an error „External 
> module not found“ for libgit2.dll.
> 
> I am afraid I cannot provide the image because the data it contains is 
> sensitive.
> 
> I will look into Epicea next.
> 
> Cheers,
> Bernhard
> 
>> Am 01.10.2018 um 18:09 schrieb  
>> :
>> 
>> Hi,
>> 
>> That is weird. It seems that you should have some debugging process 
>> running... Do you have the same error if you try again? So can also try with 
>> a squeak VM which is more simple.
>> You can always retrieve your changes with Epicea (see Gif) and you 
>> playground code (see in the play cache folder).
>> 
>> Worse case, I can try something to get your data back but without any 
>> guaranty that it will work because it implies to play with the image 
>> bytecode. 
>> 
>> Cheers,
>> Vincent
>> 
>> -Original Message-
>> From: Pharo-users  On Behalf Of 
>> Bernhard Pieber
>> Sent: Saturday, September 29, 2018 9:07
>> To: Any question about pharo is welcome 
>> Subject: [Pharo-users] Image does not start anymore
>> 
>> Hi,
>> 
>> I have a Pharo 7 image which I normally start from Pharo Launcher on 
>> Windows. I think I saved it without problems. However, suddenly it stopped 
>> opening. As it contains data and some unsaved code I would hate to loose, 
>> I'd appreciate any help on how to debug a situation like this. I attached 
>> the debug log.
>> 
>> Cheers,
>> Bernhard
>> <2018-10-01_09-03-51.gif>




Re: [Pharo-users] Image does not start anymore

2018-10-02 Thread Bernhard Pieber
Hi Vincent,

Thanks for taking the time to answer. Yes, I have the same error every time.

I tried with the latest stable Squeak VM. However, I get an error „External 
module not found“ for libgit2.dll.

I am afraid I cannot provide the image because the data it contains is 
sensitive.

I will look into Epicea next.

Cheers,
Bernhard

> Am 01.10.2018 um 18:09 schrieb  
> :
> 
> Hi,
> 
> That is weird. It seems that you should have some debugging process 
> running... Do you have the same error if you try again? So can also try with 
> a squeak VM which is more simple.
> You can always retrieve your changes with Epicea (see Gif) and you playground 
> code (see in the play cache folder).
> 
> Worse case, I can try something to get your data back but without any 
> guaranty that it will work because it implies to play with the image 
> bytecode. 
> 
> Cheers,
> Vincent
> 
> -Original Message-
> From: Pharo-users  On Behalf Of Bernhard 
> Pieber
> Sent: Saturday, September 29, 2018 9:07
> To: Any question about pharo is welcome 
> Subject: [Pharo-users] Image does not start anymore
> 
> Hi,
> 
> I have a Pharo 7 image which I normally start from Pharo Launcher on Windows. 
> I think I saved it without problems. However, suddenly it stopped opening. As 
> it contains data and some unsaved code I would hate to loose, I'd appreciate 
> any help on how to debug a situation like this. I attached the debug log.
> 
> Cheers,
> Bernhard
> <2018-10-01_09-03-51.gif>



[Pharo-users] Image does not start anymore

2018-09-29 Thread Bernhard Pieber
Hi,

I have a Pharo 7 image which I normally start from Pharo Launcher on Windows. I 
think I saved it without problems. However, suddenly it stopped opening. As it 
contains data and some unsaved code I would hate to loose, I'd appreciate any 
help on how to debug a situation like this. I attached the debug log.

Cheers,
Bernhard


PharoDebug.log
Description: Binary data


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

2017-12-02 Thread Bernhard Pieber
That was the problem. Thanks, Norbert!

Bernhard

> Am 02.12.2017 um 17:01 schrieb Norbert Hartl :
> 
> That most probably means there are no files in the directory. If you create 
> one then you will see.
> 
> Norbert
> 
>> Am 02.12.2017 um 15:02 schrieb Bernhard Pieber :
>> 
>> Hi Norbert,
>> 
>> I tried this in a 6.1 image but I only get a normal inspector. What do I 
>> miss?
>> 
>> Bernhard
>> 
>>> Am 26.11.2017 um 13:36 schrieb Norbert Hartl :
>>> 
>>> Andy,
>>> 
>>> I use the filesystem for it. Let‘s say you have a directory called 
>>> „scripts“. If you inspect
>>> 
>>> ‘scripts‘ asFileReference
>>> 
>>> you get kind of a browser of the files in there. If the have the file 
>>> extension .st syntax highlighting is enabled if you look at it. You can 
>>> create new scripts there,too.
>>> I like that the most because the scripts are not in the image anymore and 
>>> the probability to loose them is lower. 
>>> 
>>> I have a scripts folder in my home directory (global) and one in the 
>>> project folder (project specific). And inspectors to bith location are 
>>> opened by the script that prepares a new image.
>>> 
>>> Norbert
>>> 
>>>> Am 25.11.2017 um 18:34 schrieb 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-12-02 Thread Bernhard Pieber
Hi Norbert,

I tried this in a 6.1 image but I only get a normal inspector. What do I miss?

Bernhard

> Am 26.11.2017 um 13:36 schrieb Norbert Hartl :
> 
> Andy,
> 
> I use the filesystem for it. Let‘s say you have a directory called „scripts“. 
> If you inspect
> 
> ‘scripts‘ asFileReference
> 
> you get kind of a browser of the files in there. If the have the file 
> extension .st syntax highlighting is enabled if you look at it. You can 
> create new scripts there,too.
> I like that the most because the scripts are not in the image anymore and the 
> probability to loose them is lower. 
> 
> I have a scripts folder in my home directory (global) and one in the project 
> folder (project specific). And inspectors to bith location are opened by the 
> script that prepares a new image.
> 
> Norbert
> 
>> Am 25.11.2017 um 18:34 schrieb 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] Installation done last week: Do I have Pharo 6.0 or Pharo 6.1?

2017-08-18 Thread Bernhard Pieber
Hi Hannes,

I think I read somewhere that the 6.1 release reports the version number 6.0 in 
the image. However, if that means you have got 6.1 I am not sure how to tell.

Cheers,
Bernhard

> Am 18.08.2017 um 16:21 schrieb H. Hirzel :
> 
> Hello
> 
> Pharo 6.1 was released on the 24th July 2017.
> Thread [Pharo-dev] [ANN] Pharo 6.1 (summer) released! (35 messages so far).
> My question short: Which version do I get when installing?
> 
> Last week I on the the 9th August I did
> 
>   curl get.pharo.org | bash
> 
> on Ubuntu 14.04-32bit. Installation was done fully automated. Very
> smooth! Excellent!
> 
> Just needed to do in a terminal window
>./pharo-ui
> to start Pharo 6.x
> 
> Now my question:
> 
>'Word menu'  -> 'System' -> 'About'
> 
> gives me
> 
>Pharo 6.0
>Latest update: #60510
> 
> 
> Is the indication 'Pharo 6.0' just an omission in the release process
> and it should say 'Pharo 6.1'?
> Or did I still get 'Pharo 6.0' for some reason?
> 
> Thank you for the answer in advance
> 
> Hannes
>