Re: [Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Roelof Wobben
Op 10-12-2018 om 08:29 schreef Ben Coman: solver := Key5Solver new startCalculation  . Got it working There was a dot missing Roelof

Re: [Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Roelof Wobben
Op 10-12-2018 om 08:29 schreef Ben Coman: solver := Key5Solver new startCalculation  . Thanks but still problems I have this : startCalculation     | zeros zerosSize count secret candidate |     secret := 'abcde'.     zeros := '000'.     zerosSize := zeros  size.     count := 0.     [

Re: [Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Ben Coman
On Mon, 10 Dec 2018 at 14:28, Roelof Wobben wrote: > > Hmm, > > I thought I understand this idea but I do not. > > I did this in the playground : > > > | answer | > answer := Key5Solver new solver. > ^ answer Result > You can't access the Result variable inside like that. You need a accessor

Re: [Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Roelof Wobben
Hmm, I thought I understand this idea but I do not. I did this in the playground : | answer | answer := Key5Solver new solver.  ^ answer Result class : Object subclass: #Key5Solver    

Re: [Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Roelof Wobben
Hello, I got this code from the discord channel secret := 'abcdef'. zeros := '000'. zerosSize := zeros size. count := 0. [ [candidate := secret , count printString. ((MD5 hashMessage: candidate) hex first: zerosSize) = zeros ]

Re: [Pharo-users] Voyage

2018-12-09 Thread Sanjay Minni
This seems to work - at least loading seems to have gone thru but is it possible to shorten the following filename in the github repository itself cryptUIDlgSelectCertificateFromStore.winHandle.pwszTitle.pwszDisplayString.dwDontUseColumn.flags.reserved..st it is in

[Pharo-users] good game plan for AoC2015 day 4

2018-12-09 Thread Roelof Wobben
Helllo, a question about day4 of 2015 is it right that I can only solve this bruteforece so begin at for example 1 , encode it, check for 5 zeros if found then I have