Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
Thanks Roelof Op 15-12-2018 om 21:52 schreef Nicole de Graaf: Hi Roelof, on my side all the test methods went green: changes I need to apply: 1.  

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Nicole de Graaf
Hi Roelof, on my side all the test methods went green: changes I need to apply: 1. checkForbiddenParts: word "deletes all the words that contain forbidden parts" ^( forbiddenWords anySatisfy: [ :forbidden | word includesSubstring: forbidden ]) not 2. testisNice

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
isNice must look like this : isNice: aCollection     "comment stating purpose of message"     | niceStringsObject answer |     niceStringsObject := self class new.     answer := aCollection         select: [ :word |             (n

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
moment Does the isNice  not ends on  result nice. What do you then use as smalltalk version. Roelof Op 15-12-2018 om 21:36 schreef Nicole de Graaf: Hi Roelof, the result of: Find

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Nicole de Graaf
Hi Roelof, the result of: FindNiceStrings new isNice: testData >> #('haegwjzuvuyypxyu’). First idee is your algo is fine, but you test assert correct implemented (I can be wrong side I use not Pharo 7 or 6) My implementation: testisNice "comment stating purpose of message"

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
You can find that one also with the finder. overlappingPairsCollect: aBlock     "Answer the result of evaluating aBlock with all of the overlapping pairs of my elements."     | retval |     retval := self species ofSize: self size - 1.

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Nicole de Graaf
Hi Roelof, Question: With your “fileout” can I run all test. (Green) or only the last one #testisNice. I started with: #test1CheckForForbiddenParts that is failing .. the substring is not in the input! Regards, Nic > > > > Op 15-12-2018 om 20:52 schreef Nicole de Graaf: >> Hi Roelof

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
of course includesSubstring: substring     "Returns whether the receiver contains the argument."     "('abcdefgh' includesSubstring: 'de') >>> true"         ^ substring isEmpty or: [ (self findString: substring startingAt: 1) > 0 ]

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Nicole de Graaf
p.s. and also Array>>#overlappingPairsCollect: Regards, Nic > On 15 Dec 2018, at 20:52, Nicole de Graaf wrote: > > Hi Roelof, > > I started to read you code , can you please give me the implementation of: > ByteString>>#includesSubstring: > > Regards, > Nic > >> On 15 Dec 2018, at 19:36,

Re: [Pharo-users] some help to find the bug

2018-12-15 Thread Nicole de Graaf
Hi Roelof, I started to read you code , can you please give me the implementation of: ByteString>>#includesSubstring: Regards, Nic > On 15 Dec 2018, at 19:36, Roelof Wobben wrote: > > Hello, > > I have this code : > https://gist.github.com/RoelofWobben/7c08680797d1d9f84436653a0e4edd3b > <

[Pharo-users] some help to find the bug

2018-12-15 Thread Roelof Wobben
Hello, I have this code : https://gist.github.com/RoelofWobben/7c08680797d1d9f84436653a0e4edd3b as  my solution to a AoC challenge. But the last test `testIsNice`  is still  outputting the wrong output. The right output is :   `ugknbfddgicrmopn ` a

Re: [Pharo-users] Discussion on life logger applications (from Geolocalization apps to MicroPub) => Are people interested in porting apps from https://indieweb.org/p3k ?

2018-12-15 Thread Roelof Wobben
Fine with me. I almost the whole day on discord expecially the learning channels under the name ` Roelof Wobben` Roelof Op 15-12-2018 om 14:54 schreef Cédrick Béler: Perfect.  Maybe we can tr

Re: [Pharo-users] NeoCSV

2018-12-15 Thread Sven Van Caekenberghe
You can use https://github.com/svenvc/NeoCSV > On 15 Dec 2018, at 17:03, horrido wrote: > > I'm trying to load NeoCSV and I'm running into all kinds of problems. First, > Catalog Browser will not install it – it fails silently. > > Second, the following fails with "Could not resolve: Neo-CSV-Co

[Pharo-users] NeoCSV

2018-12-15 Thread horrido
I'm trying to load NeoCSV and I'm running into all kinds of problems. First, Catalog Browser will not install it – it fails silently. Second, the following fails with "Could not resolve: Neo-CSV-Core in '/home/richard/pharo blah blah blah": Gofer it smalltalkhubUser: 'SvenVanCaekenberghe' proj

Re: [Pharo-users] Discussion on life logger applications (from Geolocalization apps to MicroPub) => Are people interested in porting apps from https://indieweb.org/p3k ?

2018-12-15 Thread Cédrick Béler
Perfect. Maybe we can try on MicroPub next week ? I’ll be a bit available. I’ll ask on Discord too at the time. Cheers, Cédrick > Le 15 déc. 2018 à 13:18, Roelof Wobben a écrit : > > Hello, > > I maybe could help you but Im a super beginner in Pharo but eager to learn. > > Roelof > > O

Re: [Pharo-users] Discussion on life logger applications (from Geolocalization apps to MicroPub) => Are people interested in porting apps from https://indieweb.org/p3k ?

2018-12-15 Thread Cédrick Béler
>> >> *** Do people know if we have implementations out there of the >> micropub/microformat tools ? > > Not that I know of, but I quickly skimmed the spec above and as far as I can > see, all the building blocks are there in Pharo (Zinc,NeoJSON). Should make > for a nice and useful project.

Re: [Pharo-users] StCAD is open source

2018-12-15 Thread Noury Bouraqadi
Hi > On 15 Dec 2018, at 06:32, askoh wrote: > > Hi: > > I am preparing to port StCAD from VisualWorks to Pharo. Please advise how > this can be done most efficiently. I am not familiar with Pharo GUI > development. > You should have a look to: Spec http://books.pharo.org/spec-tutorial/ Roass

Re: [Pharo-users] Pharo 7 and Zero conf problem

2018-12-15 Thread Vitor Medina Cruz
Ok, thanks!! On Sat, Dec 15, 2018 at 8:28 AM Esteban Lorenzano wrote: > You can ignore it (but is something we need to fix, indeed) > > On 15 Dec 2018, at 00:53, Vitor Medina Cruz wrote: > > Hello, > > Under debian, loading > > curl https://get.pharo.org/64/70+vm | bash > > And then executing:

Re: [Pharo-users] Discussion on life logger applications (from Geolocalization apps to MicroPub) => Are people interested in porting apps from https://indieweb.org/p3k ?

2018-12-15 Thread Sven Van Caekenberghe
> On 15 Dec 2018, at 12:51, Cédrick Béler wrote: > > Hi all, > > I was looking for iOS geolocalization app on GitHub and found Overland from > Aaron Parecki. > https://github.com/aaronpk?tab=repositories > > Cool app that can send straight to a Pharo image gps points. So perfect as a > bas

[Pharo-users] Iceberg repository import

2018-12-15 Thread Trussardi Dario Romano
Ciao, i work with Pharo 7.0.0 build 34. in the past, into another pharo environment, i have clone the git Seaside project ( master 9566cb4 ) Now in the new image for import the Seaside project, i do the Iceberg command: Import from existing clone

Re: [Pharo-users] Pharo 7 and Zero conf problem

2018-12-15 Thread Esteban Lorenzano
You can ignore it (but is something we need to fix, indeed) > On 15 Dec 2018, at 00:53, Vitor Medina Cruz wrote: > > Hello, > > Under debian, loading > > curl https://get.pharo.org/64/70+vm | bash > > And then executing: > > ./pharo Pharo.image eval "Class al

Re: [Pharo-users] how to rewrite this to use a stream

2018-12-15 Thread Roelof Wobben
And found the culprit after some good night sleep. But any feedback is appreiciated. Roelof Op 15-12-2018 om 10:34 schreef Roelof Wobben: Thanks for the reviews. I have change my code a little b

Re: [Pharo-users] how to rewrite this to use a stream

2018-12-15 Thread Roelof Wobben
Thanks for the reviews. I have change my code a little bit. I now check for 1 string and at the end I check for every word the three filters So I looks now like this: checkForbiddenParts: word     "checks if a word contains some

Re: [Pharo-users] how to rewrite this to use a stream

2018-12-15 Thread p...@highoctane.be
Thx for those reviews. And interesting paper. Phil On Sat, Dec 15, 2018, 04:20 Richard O'Keefe Starting from the top:\ > (0) It's not *wrong* to start a selector with a capital letter, but > it is certainly unusual. > (1) Intention-revealing names are good. That's why this name is bad. >