Re: [Pharo-users] VPS difficulties

2018-12-03 Thread horrido
I agree totally. We shouldn't do anything to scare away people new to Pharo. It's a hard enough sell as it is. This kind of thing only undermines my advocacy. Ben Coman wrote > On Tue, 4 Dec 2018 at 02:07, Sven Van Caekenberghe > sven@ > wrote: > >> Yes, I can confirm that it looks like

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread Ben Coman
On Tue, 4 Dec 2018 at 02:07, Sven Van Caekenberghe wrote: > Yes, I can confirm that it looks like /etc/security/limits.d settings are > not honoured inside an LXC/LXD container on Linux. I am not sure that there > is a way around this, as it seems that such limits are part of the > technology

Re: [Pharo-users] Latest Pharo and Aida/Web

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- If I'm not mistaken (according to the fact that both class comments are exactly the same), SecureHashAlgorithm (in Squeak) is the exact same thing as class SHA1 (in Pharo)... Just updating the code with the "new" class name will probably do the job! -

[Pharo-users] Latest Pharo and Aida/Web

2018-12-03 Thread eftomi
Hi, I'm trying to run Aida/Web on Pharo 5.0, 6.1 and 7.0 with no luck. After package inclusion with Catalog Browser, the initialisation with SwazooAida demoStart wasn't working, since Timestamp was not present. After I "faked" it with DateAndTime, the web server is running, but if I visit the

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Wouldn't be that hard to implement.  We just need a modulo (like I did) when sending #next to wrap around... Or even better: a "cyclic" iterator, something like #withWrapDo: ? - Benoît St-Jean Yahoo! Messenger: bstjean Twitter: @BenLeChialeux Pinterest:

Re: [Pharo-users] can I improve this

2018-12-03 Thread phil--- via Pharo-users
--- Begin Message --- CyclicReadStream. Not in base Pharo. I wish. We have atWrap: but not the best. Phil On Mon, Dec 3, 2018 at 1:17 PM Richard O'Keefe wrote: > "if I use do: this ends at the end of the array." > True. But all that means is that you have to keen on using #do:. > >

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread Sven Van Caekenberghe
Yes, I can confirm that it looks like /etc/security/limits.d settings are not honoured inside an LXC/LXD container on Linux. I am not sure that there is a way around this, as it seems that such limits are part of the technology used to implement containers (and hence it might conflict with them

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- It's just a matter of taste and/or habit.  Quite frankly, I never think about using #streamContents nor #readStream or other variations since I've always had to write that kinda code "the long way" since 1992 ! - Benoît St-Jean Yahoo! Messenger: bstjean

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread Norbert Hartl
I didn’t read much of this thread but the VPS might give a hint. If you are in a virtualized server and you want to modify kernel parameters the underlying host needs to allow that. Norbert > Am 03.12.2018 um 16:55 schrieb horrido : > > Yes, I did. I even rebooted Ubuntu. > > Given that

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread horrido
Yes, I have a normal account. And, yes, the ownership is root:root. Sven Van Caekenberghe-2 wrote > sven@ubuntu:~/Documents/pharo7$ uname -a > Linux ubuntu 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 > x86_64 x86_64 x86_64 GNU/Linux > > sven@ubuntu:~/Documents/pharo7$ cat

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
Op 3-12-2018 om 17:01 schreef Benoit St-Jean via Pharo-users: Many many many thanks For me too and that is the answer I expect Two question, Why is trough StandardFileStream a line and can this also be rewritten with a StreamContents Roelof

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Works fine with my Squeak and Pharo code. Result is 558 in both cases! - Benoît St-Jean Yahoo! Messenger: bstjean Twitter: @BenLeChialeux Pinterest: benoitstjean Instagram: Chef_Benito IRC: lamneth Blogue: endormitoire.wordpress.com "A standpoint is an

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread horrido
Yes, I did. I even rebooted Ubuntu. Given that this problem occurs for both Debian and Ubuntu, there must be some commonality that hasn't been documented. Ben Coman wrote > At https://linux.die.net/man/5/limits.conf > I read "note that all limit settings are set per login." > You haven't

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
found it. I use the old reading code from part1. but on part2 you did add the input to the numbers collection so numbers was keeping empty sorry for the noise Roelof Op 3-12-2018 om 16:13 schreef Benoit St-Jean via Pharo-users: | file total numbers index frequencies duplicate | duplicate

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread Ben Coman
At https://linux.die.net/man/5/limits.conf I read "note that all limit settings are set per login." You haven't mentioned whether you logged out and back in again? cheers -ben On Mon, 3 Dec 2018 at 23:17, horrido wrote: > I've switched over to Ubuntu Server 18.04 LTS. I've repeated all the

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
Op 3-12-2018 om 16:13 schreef Benoit St-Jean via Pharo-users: file := StandardFileStream readOnlyFileNamed: 'C:\Recv\day.1.input'. [file atEnd] whileFalse: [numbers add: (file nextLine asInteger)]. file close. very wierd, on my Pharo 7 box I do not work. I also see a message that temp variables

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread horrido
I've switched over to Ubuntu Server 18.04 LTS. I've repeated all the steps to arrive at Pharo installation. I'm still having the same problem: pthread_setschedparam failed. Here's my /etc/security/limits.d/pharo.conf: * hard rtprio 2 * soft rtprio 2 Sven Van Caekenberghe-2 wrote >> On 2 Dec

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- I'm on Squeak btw.  Tried it in Pharo 6.1 and it looks like number parsing is different. Here's a version that works fine on Pharo 6.1 | file total numbers index frequencies duplicate | duplicate := false. frequencies := Set new: 15. frequencies add: 0. numbers :=

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
Op 3-12-2018 om 16:08 schreef Benoit St-Jean via Pharo-users: yep I did change it by the argument partTwo: aFileName     | total numbers index frequencies duplicate file | duplicate := false. frequencies := Set new: 15. frequencies add: 0. numbers := OrderedCollection new: 1000. total :=

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Did you change the file name? - 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". 

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
yep, on  Pharo this is a empty collection. numbers := OrderedCollection new: 1000. so   index \\ (numbers size)   is  something divide by zero Roelof Op 3-12-2018 om 15:44 schreef Roelof Wobben: Op 3-12-2018 om 15:30 schreef Benoit St-Jean via Pharo-users: Thanks, But at first glance you

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
Op 3-12-2018 om 15:30 schreef Benoit St-Jean via Pharo-users: Thanks, But at first glance you do not use the contents of file anywhere or am I mistaken. When I try your code on the real input I see a divide by zero error message. Roelof

Re: [Pharo-users] can I improve this

2018-12-03 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Concerning Day1, part2 of Advent Of Code 2018, here's my quick take (Coded in a workspace with Squeak)... | file total numbers index frequencies duplicate | duplicate := false. frequencies := Set new: 15. frequencies add: 0. numbers := OrderedCollection new: 1000.

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
Thanks, I found the function #atWrap  who maybe can be handy Op 3-12-2018 om 13:17 schreef Richard O'Keefe: "if I use do:   this ends at the end of the array." True.  But all

Re: [Pharo-users] can I improve this

2018-12-03 Thread Richard O'Keefe
"if I use do: this ends at the end of the array." True. But all that means is that you have to keen on using #do:. Processing an array repeatedly is as simple as [true] whileTrue: [ anArray do: [:each | ...]] I had intended to twist this into [changes anySatisfy: [:change |

Re: [Pharo-users] VPS difficulties

2018-12-03 Thread Ben Coman
That is strange. Can you post your "/etc/security/limits.d/pharo.conf" file? cheers -ben On Mon, 3 Dec 2018 at 01:42, horrido wrote: > Bizarre. I've created a new VirtualBox image of Debian and now this > solution > no longer works! I'm still getting the thread priority warning. So this >

Re: [Pharo-users] Pharo 7 Monticello browser and github repositories

2018-12-03 Thread Ben Coman
On Mon, 3 Dec 2018 at 01:48, Sanjay Minni via Pharo-users < pharo-users@lists.pharo.org> wrote: > How to add new github repositories in Monticello (Browser) in Pharo 7 > (e.g to include the repository for Voyage) > > Monticello browser does show github repositories - how to edit / add new > ones

Re: [Pharo-users] can I improve this

2018-12-03 Thread Roelof Wobben
hello Richard, Thanks, I figured that out already. What I do not get is how to read the array multiple times. if I use do:   this ends at the end of the array. Or I must use something as this : index := 0 if index >

Re: [Pharo-users] UFFI and opaque(ish) types

2018-12-03 Thread p...@highoctane.be
Alistair, I also would like to see how this works. https://github.com/estebanlm/TalkFFI There is also https://github.com/Pharophile/swig https://github.com/Pharophile/swig/tree/master/Lib/pharo (actually this is a fork from Ronie's work) that does some Pharo magic for bindings. And

Re: [Pharo-users] UFFI and opaque(ish) types

2018-12-03 Thread Alistair Grant
Hi Ben and Phil, Thanks for your replies. On Sun, Dec 02, 2018 at 10:53:11PM +0800, Ben Coman wrote: > One option could be to create a small shared library that you compile for each > platform that just exported the member offsets... >

Re: [Pharo-users] can I improve this

2018-12-03 Thread Richard O'Keefe
Roelof Wobben wrote "I have to reread the file till the adding causes the same outcome as we had already" You have to process the *sequence of changes* repeatedly; you DON't have to *reread the file*. Somebody already made this point. Having read the changes into an array, you can iterate

Re: [Pharo-users] [Pharo-dev] [Ann] Fog 1.0.0-beta

2018-12-03 Thread Santiago Bragagnolo
It was late yesterday hahaha, I made many mistakes, thanks Marcus. Anyway, the address is this one: https://github.com/smartanvil/Fog El lun., 3 de dic. de 2018 09:12, Marcus Denker escribió: > Link to GitHub: > > https://github.com/smartanvil/Fog

Re: [Pharo-users] [Pharo-dev] [Ann] Fog 1.0.0-beta

2018-12-03 Thread Marcus Denker
Link to GitHub: https://github.com/sbragagnolo/Fog > On 3 Dec 2018, at 01:20, Santiago Bragagnolo > wrote: > > Hi All! > > I have being working on releasing versions (i should do it more often). > I am happy to announce Fog v1.0.0-beta. I think I found