[Pharo-users] mentor wanted for a web application

2022-02-02 Thread Roelof Wobben via Pharo-users
Hello, I like Pharo a lot and I like to make a web site with it for a volunteer organisation. For the web site I need a login system. And some products which can be "borrowed" by a client which has a subscription. We have also some volunteer in the "shop"  where a client can also "borrow"

[Pharo-users] why do I not see the menu here in my seaside project

2021-09-28 Thread Roelof Wobben via Pharo-users
Hello, I have done this in a seaside tutorial but whatever I try I do not see the menu appearing. Can someone help me figure out what I have done. I include a fileout because I cannot get it working with a github repo. WAComponent subclass: #StListComponent instanceVariableNames: ''

[Pharo-users] Re: Exercism v3 problems

2021-08-15 Thread Roelof Wobben via Pharo-users
t; cart.add(:MEDNEW) > cart.add(:MEDNEW) > assert_equal 'Newspaper, Rice', cart.items_list" > Looking at the other implementation can help. > > https://github.com/exercism?q=-test-runner > > Now my plate is more than full. So I cannot really help because I have too

[Pharo-users] Re: Exercism v3 problems

2021-08-15 Thread Roelof Wobben via Pharo-users
Yep, The spec and other information can be found here : https://github.com/exercism/docs/blob/main/building/tooling/test-runners/interface.md I hoping we can get number 2 or 3 working. Roelof Op 15-8-2021 om 15:15

[Pharo-users] Exercism v3 problems

2021-08-10 Thread Roelof Wobben via Pharo-users
Hello, For the new version of exercism which is due in a few weeks, the pharo track needs a test-runner, a example of that can be found here : https://github.com/exercism/ruby-test-runner/tree/main/lib first question : Can this be easily be done in pharo? second question : can it also be

[Pharo-users] How to read this file into a image

2021-01-25 Thread Roelof Wobben via Pharo-users
Hello, Im just trying for fun to get exercism working on P9 and now I wonder how I can take care that this data from a exercism api can be read in the image so the user can work on it. ``` ``` ``` " \# Hello World The classical introductory exercise. Just say ""Hello, World!"".

[Pharo-users] Re: is there a better way

2021-01-06 Thread Roelof Wobben via Pharo-users
Op 6-1-2021 om 19:36 schreef Richard Sargent: On Wed, Jan 6, 2021 at 10:34 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:

[Pharo-users] Re: is there a better way

2021-01-06 Thread Roelof Wobben via Pharo-users
: if the other end is fast enough, that can certainly help. HTH, Sven On 6 Jan 2021, at 18:11, Roelof Wobben via Pharo-users wrote: I did it on the root document and see this : So as far as I see it , The most time it taken by getting all the data from all the 10 images. I hope someone

[Pharo-users] [willow] image cannot be found

2021-01-05 Thread Roelof Wobben via Pharo-users
Hello, I try to do the first steps on my journey to make a nice layout in willow but I get stuck. Whatever I try the image which I uploaded is not found. I include a file out in here : WADeploymentAwareFileMetadataLibrary subclass: #MyFileMetadataLibrary     instanceVariableNames: ''    

[Pharo-users] Re: [exercism bowling challenge] Is there a better way to do this

2021-01-02 Thread Roelof Wobben via Pharo-users
oke, im haskell  I see how things are working but pharo is not smalltalk. So how do you see this in smalltalk. Roelof Op 23-12-2020 om 01:29 schreef Richard O'Keefe: Yes, there is a better

[Pharo-users] Re: [exercism bowling challenge] Is there a better way to do this

2020-12-21 Thread Roelof Wobben via Pharo-users
Op 21-12-2020 om 13:56 schreef Russ Whaley: I had a lot of fun putting my bowling game together back when you first brought this up. I have a Bowling (Game) class, a Frame class, aThrow class and a Score(ing) class.  I made the Throws a class that I put in an OrderedCollection - but instVars

[Pharo-users] Re: how to check for the statusCode

2020-09-28 Thread Roelof Wobben via Pharo-users
Op 28-9-2020 om 21:11 schreef Sven Van Caekenberghe: You *really* should read the HTTP chapters of http://books.pharo.org/enterprise-pharo/ in particular

[Pharo-users] how to check for the statusCode

2020-09-28 Thread Roelof Wobben via Pharo-users
Hello, Sorry for asking so much questions but I lost the big picture right now. Im trying to get the response object back from a api call. That I can do with : ` response := ZnEasy get: url. ` and I see that it has the fields statusline which has the field code I thought I could use it like

[Pharo-users] how the best deal with this

2020-09-27 Thread Roelof Wobben via Pharo-users
Hello, I have this code : getMoreData     | url url2 json json2 artObjectJson levelsJson|     url := 'https://www.rijksmuseum.nl/api/nl/collection/' , objectNumber         , '?key=14OGzuak=json'.     url2 := 'https://www.rijksmuseum.nl/api/nl/collection/'         , objectNumber ,

[Pharo-users] why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Roelof Wobben via Pharo-users
Hello, In a project of mine I do this :  (ZnEasy get: 'https://www.rijksmuseum.nl/api/nl/collection/SK-C-1368/tiles?key=14OGzuak') contents . but this is given me a bytearray. When I do the same in other languages I know like c# or ruby I get a dictionary like I

[Pharo-users] Re: exercism bowling challenge

2020-09-25 Thread Roelof Wobben via Pharo-users
But here is the thing: it is isolated on one given place and used on one other place, I can rewrite it maybe more easily.   On Thu, 24 Sep 2020

[Pharo-users] Re: exercism bowling challenge

2020-09-24 Thread Roelof Wobben via Pharo-users
As the other Richard seemed to suggest, this isn't an object rich problem. It's largely a question of how to implement an algorithm. Working examples on paper will help with internalising how to do it. Oops, and I thinking of a solution with 3  classes. the given class a class Frame which

[Pharo-users] Re: exercism bowling challenge

2020-09-24 Thread Roelof Wobben via Pharo-users
On Thu, 24 Sep 2020 at 23:53, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Op 24-9-2020 om 13:42 schreef DavidBajger: > Hi Roelof, > I always wonder, what kind of answer you expect fro

[Pharo-users] Re: exercism bowling challenge

2020-09-24 Thread Roelof Wobben via Pharo-users
Op 24-9-2020 om 13:52 schreef Roelof Wobben via Pharo-users: Op 24-9-2020 om 13:42 schreef DavidBajger: Hi Roelof, I always wonder, what kind of answer you expect from your prior statement. To your question: "Can this plan be working or is there improvements to this plan."

[Pharo-users] Re: exercism bowling challenge

2020-09-24 Thread Roelof Wobben via Pharo-users
Op 24-9-2020 om 13:42 schreef DavidBajger: Hi Roelof, I always wonder, what kind of answer you expect from your prior statement. To your question: "Can this plan be working or is there improvements to this plan." I can have this answer: Yes, it could be both: working or fail, but you don't know

[Pharo-users] Re: exercism bowling challenge

2020-09-24 Thread Roelof Wobben via Pharo-users
Op 21-9-2020 om 18:49 schreef Roelof Wobben via Pharo-users: hello, I need now to make code that calculates the full score of a bowling game like one of the tests shown. test09_ConsecutiveStrikesEachGetTheTwoRollBonus

[Pharo-users] c# challenge in pharo

2020-09-23 Thread Roelof Wobben via Pharo-users
Hello, I found this c# challenge what I think can be done in Pharo https://github.com/csinn/CSharp-From-Zero-To-Hero/tree/Chapter2/extra-challenge/milkshakes-sim But I do not see how I can make the code which can be take care that the robots are max used I do

[Pharo-users] Re: where are the nills come from and how do I get rid of them

2020-09-21 Thread Roelof Wobben via Pharo-users
if there are still nils. Or ask the Bad for occurencesOf: nil. It is completely normal to see nils in an Inspector on a Set or Bag. Has to do with internals of Set's and Bag's. These nils are there, but not for you ;-) Joachim Am 21.09.20 um 08:16 schrieb Roelof Wobben via Pharo-users: Hello, I

[Pharo-users] exercism bowling challenge

2020-09-21 Thread Roelof Wobben via Pharo-users
hello, I need now to make code that calculates the full score of a bowling game like one of the tests shown. test09_ConsecutiveStrikesEachGetTheTwoRollBonus     | result |     result := bowlingCalculator         scoreAfterRolling: #(10 10 10 5 3 0 0 0

[Pharo-users] where are the nills come from and how do I get rid of them

2020-09-21 Thread Roelof Wobben via Pharo-users
Hello, I have to make a word count from a sentence so I did this : countWordsSentence: aString     | splitted result |     splitted := aString splitOn: [ :each | ', ' includes: each ].     result := splitted         inject: Bag new         into: [ :wordBag :word |             wordBag            

[Pharo-users] Re: roman numbers

2020-09-18 Thread Roelof Wobben via Pharo-users
Op 18-9-2020 om 16:13 schreef Pablo Navarro: Hi! Maybe you can use this algorithm: Define a dictionary with these elements:   1000:'M',  900:'CM',  500: 'D',  400: 'CD', 

[Pharo-users] Re: roman numbers

2020-09-18 Thread Roelof Wobben via Pharo-users
Op 18-9-2020 om 06:45 schreef Richard O'Keefe: Roman numerals are much more complicated and much less consistent than most people realise.  The regular M DC LX VI system is both more modern and less

[Pharo-users] Re: roman numbers

2020-09-17 Thread Roelof Wobben via Pharo-users
! 2 printStringRoman “II” Have fun! On Thu, 17 Sep 2020 at 18:20, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Hello,

[Pharo-users] roman numbers

2020-09-17 Thread Roelof Wobben via Pharo-users
Hello, Can someone help me with a good plan to convert numbers to roman numbers. I could make a dictionary with 1,4,5,9,10,99,100, 999, 1000 but that feels like a overkill. Regards, Roelof

[Pharo-users] Re: how can I improve this

2020-09-15 Thread Roelof Wobben via Pharo-users
Op 15-9-2020 om 15:42 schreef Roelof Wobben via Pharo-users: with: other count: testBlock     |r|     r := 0.     self with: other do: [:x :y |     (testBlock value: x value: y

[Pharo-users] Re: how can I improve this

2020-09-15 Thread Roelof Wobben via Pharo-users
, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Op 14-9-2020 om 22:19 schreef Hernán Morales Durand: ^ (1 to: self size) count: [ : i | (self at: i) ~= (aString

[Pharo-users] Re: how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
Op 14-9-2020 om 22:19 schreef Hernán Morales Durand: ^ (1 to: self size) count: [ : i | (self at: i) ~= (aString at: i) ] With that code I get a few problems but this is working distanceStrand1: aString strand2: aString2     aString

[Pharo-users] Re: how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
t: [ : i | (self at: i) ~= (aString at: i) ] El lun., 14 sept. 2020 a las 16:15, Roelof Wobben via Pharo-users (<pharo-users@lists.pharo.org>) escribió: Hello, I have solved the hamming challenge of

[Pharo-users] how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
Hello, I have solved the hamming challenge of exercism where I have to find in how many places two strings are different. my solution is : distanceStrand1: aString strand2: aString2     aString size == aString2 size         ifFalse: [ DomainError signal: (self messageFor: aString strand2:

Re: [Pharo-users] How can I make this more OOP

2020-09-14 Thread Roelof Wobben via Pharo-users
On Sun, 13 Sep 2020 at 21:26, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Hello, I know that OOP is not asking a object what it is but I have to flatten a array so I did

[Pharo-users] metacolli and magritte-bootstrap

2020-09-13 Thread Roelof Wobben via Pharo-users
Hello, Does anyone know how to install magritte-bootstrap web with metacolli, I tried this : Metacello new     repository: 'github://magritte-metamodel/bootstrap-magritte/source';     baseline: 'Magritte';     load. but I get a message that the baseline could not be found. Regards, Roelof

[Pharo-users] Fwd: Re: How can I make this more OOP

2020-09-13 Thread Roelof Wobben via Pharo-users
Van: Roelof Wobben Aan: Noury Bouraqadi Hello, Noury, Thanks for letting me see this but  I wonder if it is good practice to place my own methods

[Pharo-users] How can I make this more OOP

2020-09-13 Thread Roelof Wobben via Pharo-users
Hello, I know that OOP is not asking a object what it is but I have to flatten a array so I did this : flattenArray: aCollection     ^ (OrderedCollection         streamContents: [ :stream | self flatten: aCollection into: stream ])         asArray

[Pharo-users] how can I divide a string in parts of 5

2020-09-10 Thread Roelof Wobben via Pharo-users
Hello, For another challenge of exercism I have to divide a string in parts of max 5 characters. so for example abcdefg willl be "abcde fg" Any hints how I can achieve this ? Roelof

Re: [Pharo-users] Can it do this way ?

2020-09-08 Thread Roelof Wobben via Pharo-users
Op 8-9-2020 om 08:30 schreef Roelof Wobben: Op 8-9-2020 om 04:22 schreef Richard O'Keefe: There are two quite different questions. (1) Where may dashes occur in a real ISBN

Re: [Pharo-users] Can it do this way ?

2020-09-08 Thread Roelof Wobben via Pharo-users
Op 8-9-2020 om 04:22 schreef Richard O'Keefe: There are two quite different questions. (1) Where may dashes occur in a real ISBN-10? (2) What does Exercism require in the specification and check in the

Re: [Pharo-users] Can it do this way ?

2020-09-07 Thread Roelof Wobben via Pharo-users
See here for all the tests : https://github.com/exercism/pharo-smalltalk/blob/master/exercises/isbn-verifier/IsbnVerifierTest.class.st#L88 Roelof

Re: [Pharo-users] Can it do this way ?

2020-09-07 Thread Roelof Wobben via Pharo-users
Op 6-9-2020 om 10:07 schreef Steffen Märcker: Maybe this is a naive question, but can you just split the task into the following two? 1. Check whether whether the string is syntactically an ISBN number. This can be done, e.g., using a regex. 2. Check the the check character. Calculate the

Re: [Pharo-users] Can it do this way ?

2020-09-06 Thread Roelof Wobben via Pharo-users
4-9-2020 om 07:35 schreef Roelof Wobben via Pharo-users: Nope, with your idea I cannot make this part work : he ISBN-10 format is 9 digits (0 to 9) plus one check character (either a digit or an X only). In the case the check character

Re: [Pharo-users] Can it do this way ?

2020-09-03 Thread Roelof Wobben via Pharo-users
with or without hyphens, and can be checked for their validity by the following formula: (x1 * 10 + x2 * 9 + x3 * 8 + x4 * 7 + x5 * 6 + x6 * 5 + x7 * 4 + x8 * 3 + x9 * 2 + so I mean the calculation. Roelof Op 4-9-2020 om 06:45 schreef Roelof Wobben

Re: [Pharo-users] Can it do this way ?

2020-09-03 Thread Roelof Wobben via Pharo-users
A test case for the empty string is is only valuable if the empty string is NOT a special case. On Wed, 2 Sep 2020 at 22:52, Roelof Wobben <r.wob...@home.nl> wrote:

Re: [Pharo-users] Can it do this way ?

2020-09-03 Thread Roelof Wobben via Pharo-users
Op 2-9-2020 om 12:52 schreef Roelof Wobben via Pharo-users: So no more hints from other people? Roelof

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 2-9-2020 om 12:38 schreef Richard O'Keefe: There is simply no point in "taking the first nine numbers out". And there shouldn't BE a test for the string being empty, anywhere.

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Correct. This is a exercism task. and yes, there are no variables given but that does not in my oponion means that I cannot add a instance or a class variable I myself was thinking about adding two instance variables named digits which hold the first 9 characters and a

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Yep, I know that isValidIsbn is the method that must output if a isbn is valid or not. What I want to do is take the first 9 characters out so I can convert them to a array of numbers where I can do the calculation on. And take out the last char so I can seperate test if

[Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I have now a challenge where I have to validate a ISBN number. Can I do something like this on the class side : (string isEmpty)    ifTrrue: [ ^ false]   ifFalse:  [ digits:= something.    controlDigit := something.    self

Re: [Pharo-users] mentoring contined I hope

2020-09-01 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 1-9-2020 om 21:40 schreef Roelof Wobben: Op 1-9-2020 om 21:11 schreef Richard Sargent: You will discover an error when you write your tests, but that's fine. It's why you write tests

Re: [Pharo-users] mentoring contined I hope

2020-09-01 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 1-9-2020 om 21:11 schreef Richard Sargent: You will discover an error when you write your tests, but that's fine. It's why you write tests. :-) #validateTime:minute: is a poor name choice for a few reasons. - there is no validation going on. Validation would report an

Re: [Pharo-users] mentoring contined I hope

2020-09-01 Thread Roelof Wobben via Pharo-users
--- Begin Message --- oke, then I would work with hour and minutes as the challenge wanted, So still on the class side make code that convert any given hour and minute to a valid one ?

[Pharo-users] mentoring contined I hope

2020-08-31 Thread Roelof Wobben via Pharo-users
--- Begin Message --- I would argue against that approach. Make it a requirement that a given API must be used with correct values. e.g. #hours:minutes: requires hours between 00 and 23 and minutes between 00 and

[Pharo-users] mentoring continued I hope

2020-08-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I have this challenge from exercism : https://github.com/exercism/pharo-smalltalk/tree/master/exercises/clock and this function is given : hour: anInteger minute: anInteger2     self shouldBeImplemented Schould I make it on this class method work that the

[Pharo-users] how to structure this project

2020-08-29 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I want to make my first app with seaside and a database, as database I use Postgres with the P3 driver of Glorp. So I have a class Customer with the instance variables. And  I have a Descriptorclass which takes care of the database. And  I want to make a class which

[Pharo-users] How can I do this. Put files on the right place on a repo

2020-08-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I have a repo and in that repo I have a directory named /src/concepts where all the concept challenges must be placed later on there will also a directory named /src/practice where all the practice challenges

[Pharo-users] mentor help continued

2020-07-14 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Sorry that you did not hear from me a long time but I was in a dark place for a long time. but im back and have a question I have to make a clock so the seconds and minutes schould not be above 60, How can I take care of that ? and can I put the code here on the class

Re: [Pharo-users] mentor question 4

2020-05-03 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 3-5-2020 om 12:32 schreef Ben Coman: On Sun., 3 May 2020, 3:48 pm Roelof Wobben, <r.wob...@home.nl>

Re: [Pharo-users] mentor question 4

2020-05-03 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 3-5-2020 om 04:24 schreef Ben Coman: On Sun, 3 May 2020 at 03:09, Roelof Wobben <r.wob...@home.nl>

Re: [Pharo-users] mentor question 4

2020-05-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 2-5-2020 om 21:09 schreef Roelof Wobben via Pharo-users: but this seems to work : cardNumber := '4539 1488 0343 6467'. cleanDigits := cardNumber copyWithout: Character space. preWrapDigits := (cleanDigits asArray reverse collectWithIndex: [ :char :idx | (idx even

Re: [Pharo-users] mentor question 4

2020-05-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 2-5-2020 om 19:33 schreef Ben Coman: On Sat, 2 May 2020 at 15:52, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Op 1-5-2

Re: [Pharo-users] mentor question 4

2020-05-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 1-5-2020 om 08:35 schreef Roelof Wobben: Op 1-5-2020 om 02:51 schreef Richard O'Keefe: (oddSum + evenSum) dividedBy: 10 You previously had _ isDivisibleBy: 10 which certainly works. Squeak, Pharo, and ST/X have #isDivisibleBy: VisualWorks. Dolphin, and GNU Smalltalk

Re: [Pharo-users] mentor question 4

2020-05-01 Thread Roelof Wobben via Pharo-users
2020 at 02:16, Roelof Wobben wrote: Op 30-4-2020 om 16:06 schreef Richard O'Keefe: This sounds very much like the Luhn test task at RosettaCode. https://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers except that there it is described as working on the digits of an integer. (1) The

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 20:19 schreef Richard Sargent: See below. On Thu, Apr 30, 2020 at 10:58 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org>

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
:30 schreef Roelof Wobben: Op 30-4-2020 om 16:16 schreef Roelof Wobben: nextIsOdd := true. aString reverseDo: [:digit | digit = Character space ifFalse: [ nextIsOdd ifTrue:  [oddSum := ...] ifFalse: [evenSum := ...]. nextIsOdd := nextIs

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 16:16 schreef Roelof Wobben: nextIsOdd := true. aString reverseDo: [:digit | digit = Character space ifFalse: [ nextIsOdd ifTrue:  [oddSum := ...] ifFalse: [evenSum := ...]. nextIsOdd := nextIsOdd

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 16:06 schreef Richard O'Keefe: This sounds very much like the Luhn test task at RosettaCode. https://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers except that there it is described as working on the digits of an integer. (1) There are two approaches

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 15:10 schreef Stéphane Ducasse: It looks like a cool problem from where did you take it? I hope I can discuss my approch to this problem :

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 15:10 schreef Stéphane Ducasse: It looks like a cool problem from where did you take it? I hope I can discuss my approch to this problem :

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 10:57 schreef Ben Coman: On Thu, 30 Apr 2020 at 16:46, Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:

Re: [Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 30-4-2020 om 10:31 schreef Ben Coman: collection := '8569 2478 0383 3437'. (collection reverse selectWithIndex: [:item :index | (index % 2 == 0) ifTrue: [item *2]] )  inspect I see a error and the non-even numbers are nill now. but after some figgeling this seems to

[Pharo-users] mentor question 4

2020-04-30 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I hope I can discuss my approch to this problem : Given a number determine whether or not it is valid per the Luhn formula. The Luhn algorithm is a simple checksum formula used to validate a variety of identification

Re: [Pharo-users] mentor question 3 is there a formula for this

2020-04-29 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Am I right here or terrible wrong ? Roelof Op 28-4-2020 om 20:53 schreef Roelof Wobben: Thanks, And the 5 can also be calculated by   2 * (char - $a)  + 1 Roelof

Re: [Pharo-users] mentor question 3 is there a formula for this

2020-04-28 Thread Roelof Wobben via Pharo-users
$C), ($(C-1) to: $A by: -1) and do the arithmetic. On Tue, Apr 28, 2020 at 1:23 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote: Hello, I try now to solve this one :

[Pharo-users] mentor question 3 is there a formula for this

2020-04-28 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I try now to solve this one : ntroduction The diamond kata takes as its input a letter, and outputs it in a diamond shape. Given a letter, it prints a diamond starting with 'A', with the supplied

Re: [Pharo-users] how can I test this

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 27-4-2020 om 19:50 schreef Roelof Wobben via Pharo-users: This seems to be working testKaNetWorkServer     | srcNode destNode link packet link2 packet2 recievedPackage |     srcNode := KANetworkNode withAddress: #src.     destNode := KANetworkServer withAddress: #dest

Re: [Pharo-users] how can I test this

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 27-4-2020 om 19:16 schreef Richard Sargent: On Mon, Apr 27, 2020 at 9:30 AM Roelof Wobben <r.wob...@home.nl> wrote: Op 27-4-2020 om 18:28 s

Re: [Pharo-users] can I divide a string into part of exactly n length

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 27-4-2020 om 19:05 schreef Richard Sargent: On Mon, Apr 27, 2020 at 9:27 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:

Re: [Pharo-users] how can I test this

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 27-4-2020 om 18:28 schreef Richard Sargent: On Mon, Apr 27, 2020 at 1:56 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:

[Pharo-users] can I divide a string into part of exactly n length

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I wonder if it is possible in Pharo to divide a string in lets say part of 3. so this :  'abcdefgh' would be  'abc def gh` Regards, Roelof --- End Message ---

Re: [Pharo-users] mentor question 2.

2020-04-27 Thread Roelof Wobben via Pharo-users
  From: Pharo-users On Behalf Of Roelof Wobben via Pharo-users Sent: 27 April 2020 12:23 To: pharo-users@lists.pharo.org Cc: Roelof Wobben Subject: Re: [Pharo-users] mentor question 2

Re: [Pharo-users] mentor question 2.

2020-04-27 Thread Roelof Wobben via Pharo-users
.   Peter Kenny   From: Pharo-users On Behalf Of Roelof Wobben via Pharo-users Sent: 26 April 2020 19:52 To: pharo-users@lists.pharo.org Cc: Roelof Wobben Subject: Re: [Pharo-users

[Pharo-users] how can I test this

2020-04-27 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I have to test the server which should return the string but then in uppercase. So far I have this : https://github.com/RoelofWobben/Network-simulator/blob/master/src/NetworkSimulator-Tests/KANetworkTest.class.st#L79 but I fail to see how I can test that the

Re: [Pharo-users] mentor question 2.

2020-04-26 Thread Roelof Wobben via Pharo-users
] On Sun, Apr 26, 2020 at 2:52 PM Roelof Wobben via Pharo-users wrote: Hello, I have to make some code that convert a binary to a decimal and im not allowed to use the convert methods that Pharo has. So I have written this : decimalFromBinary: aString | result isValid | isValid

[Pharo-users] mentor question 2.

2020-04-26 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I have to make some code that convert a binary to a decimal and im not allowed to use the convert methods that Pharo has. So I have written this : decimalFromBinary: aString     | result isValid |     isValid = self isValidBinary: aString.     isValid        

Re: [Pharo-users] mentor wanted

2020-04-26 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 26-4-2020 om 06:30 schreef Richard O'Keefe: Roelof, *I* was offering to write something. On Sat, 25 Apr 2020 at 19:47, Roelof Wobben via Pharo-users wrote: Op 25-4-2020 om 08:30 schreef Richard Sargent: On Fri, Apr 24, 2020, 22:25 Richard O'Keefe wrote: Roelof, I

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 20:17 schreef Roelof Wobben: Op 25-4-2020 om 20:04 schreef tbrunz: 1. 'loopback' is a node, just like 'source' and 'destination'.  A network is a mesh of 'nodes' joined by 'links'.  Your Pharo program represents one of those nodes: It is the 'loopback

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 20:04 schreef tbrunz: 1. 'loopback' is a node, just like 'source' and 'destination'. A network is a mesh of 'nodes' joined by 'links'. Your Pharo program represents one of those nodes: It is the 'loopback' node. oke, so I can do : loopback :=

[Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, Im doing the OOP book written by Ducassse and im now stuck at the network-simulator. Code so far can be found here : https://github.com/RoelofWobben/Network-simulator Im stuck at 2 places 1) What for datatype is

Re: [Pharo-users] mentor wanted

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 08:30 schreef Richard Sargent: On Fri, Apr 24, 2020, 22:25 Richard O'Keefe wrote: Roelof, I don't

Re: [Pharo-users] mentor wanted

2020-04-24 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 24-4-2020 om 09:49 schreef Hilaire: Find it. It is a chapter of the book Squeak, Open Personal Computing and Multimedia http://sdmeta.gforge.inria.fr/FreeBooks/GuzdialBookDrafts/DesignObjects-ch4.pdf

Re: [Pharo-users] mentor wanted

2020-04-24 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 23-4-2020 om 23:53 schreef Richard Sargent: On Thu, Apr 23, 2020 at 2:42 PM Roelof Wobben <r.wob...@home.nl> wrote: Op 23-4-2020 om 23:00 s

Re: [Pharo-users] mentor wanted

2020-04-23 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 23-4-2020 om 23:00 schreef Richard Sargent: On Thu, Apr 23, 2020 at 12:14 PM Roelof Wobben <r.wob...@home.nl> wrote: Op 23-4-2020 om 21:09 s

Re: [Pharo-users] mentor wanted

2020-04-23 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 23-4-2020 om 21:09 schreef Richard Sargent: On Thu, Apr 23, 2020 at 12:00 PM Roelof Wobben <r.wob...@home.nl> wrote: Op 23-4-2020 om 20:52 s

Re: [Pharo-users] mentor wanted

2020-04-23 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 23-4-2020 om 20:52 schreef Richard Sargent: On Thu, Apr 23, 2020 at 3:32 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:

[Pharo-users] mentor wanted

2020-04-23 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, I like Pharo a lot but I hit a wall very often. With complex problems I do not see how to solve things in small steps. Is there somewhere who is willing to mentor me in how I can overcome that problem. Roelof --- End Message ---

Re: [Pharo-users] is this better regarding naming thigs

2020-01-06 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Thanks. I have missed that one. Thanks for pointing it to me. Roelof Op 6-1-2020 om 13:13 schreef xap: Here's the permalink to Sven's response (in case it still isn't visible to you): http://forum.world.st/is-this-better-regarding-naming-thigs-tp5109389p5109392.html

Re: [Pharo-users] is this better regarding naming thigs

2020-01-06 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 6-1-2020 om 09:34 schreef xap: hi Roelof, i didn't mean to hijack your thread, sorry -- my question was directed at you, then kinda took on a life of its own. That said, Sven had/has responded to your op (original post), no? One additional change I would make: rename

  1   2   3   4   >