Re: [Pharo-users] Richard Kenneth Eng is NOT Mr. Smalltalk

2019-04-09 Thread Tim Mackinnon
I thought it was interesting at the recent Pharo Days that there was an attendee from the clinical medical field - who had heard about Smalltalk and wanted to learn more. When we asked him where he heard about it, he referenced these Mr Smalltalk medium articles in question - so I guess

Re: [Pharo-users] How to catch and handle multiple exceptions

2019-04-08 Thread Tim Mackinnon
It won't be fast, but your code might be > clearer. > > >> On Mon, 8 Apr 2019 at 10:21, Tim Mackinnon wrote: >> >> Thanks, I guess that makes sense, although it somehow looks a bit ugly with >> the nested brackets.. but nothing else springs to mind so mayb

Re: [Pharo-users] How to catch and handle multiple exceptions

2019-04-07 Thread Tim Mackinnon
Thanks, I guess that makes sense, although it somehow looks a bit ugly with the nested brackets.. but nothing else springs to mind so maybe I’ll get used to it (and In my case I think it’s likely 2 or 3 different exceptions) Tim Sent from my iPhone > On 7 Apr 2019, at 20:43, Richard Sargent

[Pharo-users] How to catch and handle multiple exceptions

2019-04-07 Thread Tim Mackinnon
Hi - I’m wondering what the best way for handling multiple exceptions is in Pharo? It seems like we just have on:do: (where on is a single exception?). However, I think I’ve noticed that you can concatenate exceptions - so DomainError, ZnHttpUnsuccessful - and then pass that to on: However,

Re: [Pharo-users] Iceberg for files other than code?

2019-04-07 Thread Tim Mackinnon
Hi Konrad - I think you can do what you describe - I think the ICeRepository entry for your project will have the path you want. And yes, its the committing back non source files where iceberg doesn’t try to do anything (and so needs help from elsewhere). Tim > On 7 Apr 2019, at 16:40, Konrad

Re: [Pharo-users] Iceberg for files other than code?

2019-04-06 Thread Tim Mackinnon
My understanding is that at the moment commits are restricted to what’s I the designated src directory, so you need to use an external way to commit non code files into your branch. These can be 1. Git cmd line 2. Another tool like IntelliJ 3. The github web bowser If you do, you need to pull

Re: [Pharo-users] Advanced preferences for Pharo

2019-04-05 Thread Tim Mackinnon
Thanks Cyril - lots of great ideas, thanks for sharing. Top tip I took away - use a meta link to replace a method for non configurable stuff because this way you don’t contaminate any potential pr submissions (neat idea). Tim Sent from my iPhone > On 5 Apr 2019, at 15:34, Cyril Ferlicot

[Pharo-users] How are you supposed to recover code in Pharo - epicea seems half finished?

2019-04-01 Thread Tim Mackinnon
Hi - I’ve been hit by this a few times now, and I’m scratching my head how its supposed to work. I moved some classes to another package and tag (but sometimes Pharo does this badly and rather than a sub-tag it makes a new top level package with a hyphen in it). So I then committed my changes

Re: [Pharo-users] What's wrong with latest Pharo?

2019-04-01 Thread Tim Mackinnon
Come on, let’s try not to be dismissive , we’ve all had that annoying moment where something doesn’t work. Richard, was this installed with zero conf or Launcher, and as mentioned - a Linux distro is going to be helpful. I’m assuming it worked before at some point for you right? But was that

Re: [Pharo-users] why is asDictonary a class method

2019-03-31 Thread Tim Mackinnon
Hi Richard/all - thanks for helping Roelof out. He’s working through the exercism.io exercises that we’ve managed to convert so far. As they are based on more C like languages, they aren’t always as OO as we want (once we get a decent set converted, we’ll try and add some smallish examples -

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-30 Thread Tim Mackinnon
I actually keep meaning to try and plug this in to spotter so we get all of this stuff in one easy place (I think its pretty simple, just haven’t had a chance to try it yet). Tim > On 30 Mar 2019, at 09:26, Peter Kenny wrote: > > Ben > > Thanks for pointing this out - I was not aware of it.

Re: [Pharo-users] How to generically find methods in class hierarchies? (Aka narrow spotter?)

2019-03-30 Thread Tim Mackinnon
still curious how I might have used Spotter to find this method - as I use Spotter a lot (but not as effectively as I should - so reviewing its usage). Tim Sent from my iPhone > On 30 Mar 2019, at 02:46, Ben Coman wrote: > > > >> On Sat, 30 Mar 2019 at 07:46, Tim Mackin

[Pharo-users] How to generically find methods in class hierarchies? (Aka narrow spotter?)

2019-03-29 Thread Tim Mackinnon
I’m wondering if there are better ways of finding things that I am missing. In another thread I was asking about how to wrap the lookup of an item at an index in a collection. I had browsed the collection hierarchy and not seen anything (I kept coming back to the fact that I dont find the

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
ray, so it should do all you >> want. >> >> HTH >> >> Peter >> >> >> Marcus Denker-4 wrote >>>> On 29 Mar 2019, at 14:24, Ben Coman >> >>> btc@ >> >>> wrote: >>>> >>>> >>

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
covered a bug in LinkedList. Do > you feel stirred up enough to raise it as an issue? > > Peter > > > Tim Mackinnon wrote >> Hi Peter - yes of course you are right that its malleable, I guess I’m >> often suprised about the things we leave out and then discove

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
methods to see how well this would work, > but because it regards links as separate from the linked objects, it got too > complicated. But it could give a starting point if you have lots of such > cases. > > HTH > > Peter Kenny > > > Tim Mackinnon wrote >> Hey

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
Hey thanks guys - while it certainly makes sense when you think about it, I was kind of hoping we had something that was much more readable and obvious. It seems strange that when we have lots of esoteric things in collection, that something which is quite common to do isn’t there. I was kind

[Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-28 Thread Tim Mackinnon
Hey guys - I’m wondering if someone might have a nice way of selecting the previous value in a list - but wrapping around to the last value if you are at the front. Essentially I have an exercise with some values in a collection like: list := #($a $e $o $u). And I have an index into the

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-26 Thread Tim Mackinnon
Actually - I’ve been making good progress on Exercism (with help from Ben and Sam) - we can almost come out of alpha (but just need more exercises converted - not sure exactly what the limit is, but 22 isn’t quite enough). I’m just tuning the tooling - and putting some bits in place so that its

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-26 Thread Tim Mackinnon
to those. Tim > On 26 Mar 2019, at 11:06, Stephan Eggermont wrote: > > Tim Mackinnon wrote: >> As I see Exercism students grapple with more realistic, I am wondering >> what we point people towards to learn about OO, identifying objects and >> more importantly

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-26 Thread Tim Mackinnon
(using a video game). Tim > On 26 Mar 2019, at 10:44, Christophe Demarey > wrote: > > http://books.pharo.org/learning-oop/ <http://books.pharo.org/learning-oop/> ? > >> Le 26 mars 2019 à 11:09, Tim Mackinnon > <mailto:tim@testit.works>> a écrit : >>

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-26 Thread Tim Mackinnon
. Tim > On 26 Mar 2019, at 09:16, Tim Mackinnon wrote: > > Has anyone else got any thoughts? I checked out the Larman book - but it > seems very process heavy (probably excellent for a full blown course), while > I’m looking for something a bit lighter weight to guide student

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-26 Thread Tim Mackinnon
wrote: > > On Sun, 24 Mar 2019 at 21:26, Tim Mackinnon wrote: > Any good references come to mind? As I’ll build up a list that I can point > people to, that hopefully puts them in a better place to solve these more > interesting and hopefully rewarding problems. > > Sinc

Re: [Pharo-users] eval from the linux commandline

2019-03-25 Thread Tim Mackinnon
Eval works fine on Linux - I use it for tons of build stuff to launch an image pass a build script with AWS parameters in a constructed dictionary for example. Sent from my iPhone > On 25 Mar 2019, at 10:14, Alistair Grant wrote: > > Inline below ... > > Cheers, > Alistair > (on phone) > >>

[Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-24 Thread Tim Mackinnon
As I see Exercism students grapple with more realistic problems which are less algorithmic and more potentially OO (in this case - https://github.com/exercism/pharo-smalltalk/blob/master/dev/src/Exercism/TournamentTest.class.st

[Pharo-users] What is "blab email" setting

2019-03-19 Thread Tim Mackinnon
I noticed in the settings dialog - there is an option for “blab” email in network settings. What is blab email? As a sub note - the descriptions in many of the settings are really sparse (others are excellent - so its not all bad) Tim

[Pharo-users] Method source contains linefeeds?

2019-03-19 Thread Tim Mackinnon
I keep seeing a code critic complaint that method source contains linefeeds. Why do we care about this? But also, where do they come from - I seem to have methods that are fine, and then when typing or reformatting code it will suddenly complain about them - but I haven’t obviously added any

Re: [Pharo-users] [Pharo-dev] [Issue Trackker][Help Needed]: Move issues from Fogbugz to GitHub

2019-03-18 Thread Tim Mackinnon
Marcus - do we just manually copy over the title and description (and any relevant comments) - or is there some tool to do this with? Tim > On 18 Mar 2019, at 07:38, Marcus Denker wrote: > > Hi, > > We should all look at the old issues: > >

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Tim Mackinnon
And looking at this in the code - there are quite a few variations of #includes… that I don’t think it makes sense to write the mirror of all of them. Not it is... > On 18 Mar 2019, at 16:48, Tim Mackinnon wrote: > > Thanks guys - I always learn something new from these threads. &g

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Tim Mackinnon
ue]. > or >(aString anySatisfy: [:each | each ~= $0 and: [each ~= $1]]) > ifTrue: [aBlock value]. > or >('01' includesAll: aString) ifFalse: [aBlock value]. > > > On Sat, 16 Mar 2019 at 11:33, Tim Mackinnon wrote: > Hi - in my quest to understand the edgi

Re: [Pharo-users] Pharo refactoring rewrite tool?

2019-03-18 Thread Tim Mackinnon
Tool <https://github.com/Uko/MatchTool> > > Cheers, > > Hernán > > El dom., 17 mar. 2019 11:35 p. m., Tim Mackinnon escribió: > I recall there was a refactoring rewrite tool - but where is it in Pharo? Is > it something you have to load separately? Or do y

[Pharo-users] Pharo refactoring rewrite tool?

2019-03-17 Thread Tim Mackinnon
I recall there was a refactoring rewrite tool - but where is it in Pharo? Is it something you have to load separately? Or do you just copy some of the deprecated examples and do it manually? I thought there was something with a window where you typed in a rule and then it showed you what it

Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Tim Mackinnon
less useful). Tim > On 17 Mar 2019, at 10:43, Tim Mackinnon wrote: > > Ah - I didn’t know about using “native fonts” - is that in settings? I’ll > check it out. > > That said - if the image default is not to have that setting - we really need > to understand and

Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Tim Mackinnon
in front of you. So I will also eat the dog food and see if I can help diagnose this . Tim Sent from my iPhone Sent from my iPhone >> On 17 Mar 2019, at 10:18, Pierce Ng wrote: >> >> On Fri, Mar 15, 2019 at 11:04:35PM +0000, Tim Mackinnon wrote: >> In 7.0.1 (osx - hi

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
Reported as https://github.com/pharo-project/pharo/issues/2854 <https://github.com/pharo-project/pharo/issues/2854> (although there was a similar issue already from P6, but I don’t think it made it clear enough the seriousness of this problem). > On 16 Mar 2019, at 22:08, Tim Mackinn

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
(even though there is not reference to using a shared repo, and loading the settings in any of my images doesn’t show this). What a hideous bug…. I will report it, or try and raise its priority if its not reported as this is confusing as hell. Tim > On 16 Mar 2019, at 22:08, Tim Mackinnon wr

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
On 16 Mar 2019, at 21:50, Tim Mackinnon wrote: > > Hi Sean - thanks for chipping in: > > Yes - the correct packages are loading, the baseline is fine (and its a > baseline I’ve been using without issues for a while) - its simply just not > loading the same source as if I do

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
flipped - but I’ve not knowingly done anything in the few hours between when it last worked and suddenly stopped). G… just as I was starting to get the hang of things, its all fallen apart again. Tim > On 16 Mar 2019, at 17:34, Sean P. DeNigris wrote: > > Tim Mackinnon wrote >

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared

2019-03-16 Thread Tim Mackinnon
that is eluding me, but I just don’t understand what? Any git/iceberg gurus that could advise? Tim > On 16 Mar 2019, at 11:52, Tim Mackinnon wrote: > > Mulling this over - I have a few more experiments to try > 1 - try loading from the playground and not the cmd line > 2 - dig out a

Re: [Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
this If anyone can think of an obvious thing I’m missing, I would appreciate the input Tim Sent from my iPhone > On 16 Mar 2019, at 09:20, Tim Mackinnon wrote: > > I’m really struggling a bit with new images in 7.0.2. Now it may be that it’s > not .2’s fault - but as I’ve bee

Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-16 Thread Tim Mackinnon
Hi Hilaire - I'm not changing any font settings at all - this is a clean zero conf image, load my project, open a system browser and start typing some code and it starts happening quite quickly. The only thing that might exasperate this is me loading in mirage after my project (I need to test

[Pharo-users] A strange iceberg/Monticello loading issue that has appeared in 7.0.2?

2019-03-16 Thread Tim Mackinnon
I’m really struggling a bit with new images in 7.0.2. Now it may be that it’s not .2’s fault - but as I’ve been doing lots of repeatable things in Pharo 6 and 7a and 7.0.1, you notice when things change. I’d really appreciate some thoughts on an iceberg/Monticello issue i suddenly hit last

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-16 Thread Tim Mackinnon
the elegance of my little coding solution to other languages). Should I propose it’s inclusion in Collection? Tim Sent from my iPhone > On 16 Mar 2019, at 08:43, Sven Van Caekenberghe wrote: > > > >> On 15 Mar 2019, at 23:06, Tim Mackinnon wrote: >> >> aS

Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-16 Thread Tim Mackinnon
rt of the standard image (IceBerg for example). > > I have none of the issues you describe. > >> On 16 Mar 2019, at 00:04, Tim Mackinnon wrote: >> >> Moving this to a new thread - to avoid historic confusion as I’m seeing a >> much clearer pattern now. >

[Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-15 Thread Tim Mackinnon
Hi - in my quest to understand the edgier details of Pharo (and Smalltalk) - and driven by fresh thoughts of completing exercism exercises - I was surprised to find that there is no #excludes: operation on collection to mirror the #includes: operation? I was curious about this - its seems a

[Pharo-users] Pharo 7.0.2 is starting to appear suspect to me

2019-03-14 Thread Tim Mackinnon
I don’t know if others are using Pharo 7.0.2 in anger - I was previously using 7.0.1 - but I’m finding that having used it for a few hours now (doing things I’ve been doing for weeks in the older version) that its not as stable. I used to be able to delete a hundred classes a few times a day

Re: [Pharo-users] Corrupted fonts in P7 after loading Glamorous Toolkit

2019-03-14 Thread Tim Mackinnon
And it gets more ridiculous… Pharo is trying to solve the damn problem for me... > On 31 Jan 2019, at 22:12, Tim Mackinnon wrote: > > As an observation that might help with this - I’ve not been able to recreate > the corruption after I had re-saved the image and cured

Re: [Pharo-users] Corrupted fonts in P7

2019-03-14 Thread Tim Mackinnon
” in Remove all breakpoints…. Is anything being officially looked at? How can we cure this? > On 31 Jan 2019, at 22:12, Tim Mackinnon wrote: > > As an observation that might help with this - I’ve not been able to recreate > the corruption after I had re-saved the image and cured

[Pharo-users] Is epicea on the roadmap for 8?

2019-03-14 Thread Tim Mackinnon
A few times now when trying to sort out issue, I’ve wanted to search for a particular class to understand what has happened and also to recover source code for it - the current epicea only has very general search and as it replaces the change.log (which was text and searchable) we need better

Re: [Pharo-users] Pharo 7.0.2 osx from launcher has corrupted welcome screen?

2019-03-14 Thread Tim Mackinnon
I’ll raise an issue > On 14 Mar 2019, at 20:07, N. Bouraqadi wrote: > > Yes Tim. I've have it too. > > Noury > >> On 14 Mar 2019, at 21:02, Tim Mackinnon wrote: >> >> Has anyone else noticed that the the newer 7.0.2 image (from launcher) has a >>

[Pharo-users] Does the blue ink formatter setting: 'Selector and argument combined in method signature max size' work?

2019-03-14 Thread Tim Mackinnon
Having done a bunch of refactoring on my code - I realised that the default settings for the code formatter aren’t the greatest (and I know this is quite personal). So I’ve tweaked a few things (the default settings aren’t bad but I don’t understand why "retain black lines between statements"

[Pharo-users] Having to press step into twice, to actually step into with debugger?

2019-03-13 Thread Tim Mackinnon
Has anyone else noticed that you often have to click 2 times, to step into some things in the debugger? I had some code like this: MyClass verify And had a break point on #verify, which the debugger stops on, but then I have to click into, twice to go through the code? Is there something

Re: [Pharo-users] How to get to the bottom of the spinning beach ball when first entering Pharo

2019-03-13 Thread Tim Mackinnon
similar > situation? - which OS are you on, by the way? > > HTH > > Peter Kenny > > -Original Message- > From: Pharo-users On Behalf Of Tim > Mackinnon > Sent: 13 March 2019 10:10 > To: Pharo Users Newsgroup > Subject: [Pharo-users] How to get to

[Pharo-users] How to get to the bottom of the spinning beach ball when first entering Pharo

2019-03-13 Thread Tim Mackinnon
Hi guys - this has come up before in the past - but I’m really noticing it now having worked on a project for a few weeks. Every time I go into my image (by go into - I mean unsuspend my laptop and start using as its the current app, OR flipping to it from say reading email) I get a shining

Re: [Pharo-users] Smalltalk CI - anyone have any luck excluding tests?

2019-03-12 Thread Tim Mackinnon
Mar 2019, at 09:10, Tim Mackinnon wrote: > > As part of Exercism we have to show our language track can build and run > tests - and they use Travis - so, pretty awesome we have that tooling. > > So it was pretty straightforward t hook in - and there are enough examples > aroun

Re: [Pharo-users] doWithIndex: or withIndexDo: ?

2019-03-12 Thread Tim Mackinnon
Yes - I like the prefix doXXX too, as I often think first of do: for normal iteration, with suffixed selectors for other variations. > On 12 Mar 2019, at 16:54, Henrik Sperre Johansen > wrote: > > #doWithIndex: for me. > > Both because it's the selector I'm used to from other dialects, and

[Pharo-users] Pharo Days - anyone going on Wed night (3rd) and where are folks staying?

2019-03-12 Thread Tim Mackinnon
Hi everyone - I’ve managed to sort out a family pass to attend Pharo Days, so keen to maximise my fun/learning/involvement. I was looking at trains on Wed afternoon - and leaving after lunch get me in Lille late afternoon - so I was wondering (if like a few years ago) any other are around

[Pharo-users] Hmmm sending at:put: to an undefined object (nil) gives a confusing error message

2019-03-11 Thread Tim Mackinnon
If you forget to initialise a variable which you thought was a Dictionary - you get a confusing error message: "Error: only integers should be used as indices” if you try an at:put: This is a consequence of having at:put: defined on Object (which is a bit nasty) Should UndefinedObject at least

Re: [Pharo-users] FUEL serialization to a file

2019-03-08 Thread Tim Mackinnon
Hmmm - yesterday I had someone serialise their debug stack (the top right menu bar action) to a file and send it to me and it worked treat - so I wonder what the difference is? Tim Sent from my iPhone > On 8 Mar 2019, at 20:22, Konrad Hinsen wrote: > > Hi everyone, > > after playing with

[Pharo-users] What is the pharo days code?

2019-03-08 Thread Tim Mackinnon
Anyone know what is my code to use for Pharo Days registration? I got my member confirmation but have no idea what the code is all about that it wants for the Pharo days registration? (I recall this happening a few years ago but didn’t pay attention) Any ideas? Tim

[Pharo-users] The best way to construct a file/url path handling misplaced $/ chars

2019-03-08 Thread Tim Mackinnon
I’m sure we have something in the image that deals with this - but if writing a generic http retriever and wanting to correctly cope with constructing resource paths where the base path may or may not have a trailing /, and the resource path may or may not have a leading / Basically -

[Pharo-users] Lightweight name spacing or shadowing - anything that can help me load conflicting code?

2019-03-08 Thread Tim Mackinnon
Hi - as I work through the different strands fo exercism (which has been a great project to kick different corners of Pharo) - I’ve hit an area where I’m wondering if there might be some useful tricks/techniques/ideas to help … Essentially - I want to make mentoring easier (so hopefully people

Re: [Pharo-users] IMAP in Pharo

2019-03-07 Thread Tim Mackinnon
> On 7 Mar 2019, at 09:37, Cédrick Béler > wrote: > > I think maybe what we miss would be a tutorial and a sandbox project so > people can play with (quite intimidating to do his first PR the wrong way). Actually - when you take a deep breathe and plunge in, its not

Re: [Pharo-users] Why can't a Bag answer as a dictionary?

2019-03-06 Thread Tim Mackinnon
is foremost a > collection of things. > > I am not immediately convinced that #valuesAndCounts should be the default > #asDictionary interpretation. > > What about the inverse for example ? > > { #foo->2. #bar->3 } asDictionary asBag. > > But this is certainly an i

Re: [Pharo-users] IMAP in Pharo

2019-03-06 Thread Tim Mackinnon
> On 6 Mar 2019, at 16:08, Sean P. DeNigris wrote: > > cedreek wrote >> Still havent get my head around this FORK/PR cycle but I will for sure one >> day :) > > It took me quite a while to grok. Fork = 'personal remote clone' and: [ PR = > 'UI support for discussing, testing, and accepting

Re: [Pharo-users] How exactly is "share repositories between images" supposed to work without tripping each other up?

2019-03-06 Thread Tim Mackinnon
an image like that at some point previous). Anyway - if it jumps out at someone - I’d be interested, but otherwise will let it go for now. Tim > On 6 Mar 2019, at 09:26, Tim Mackinnon wrote: > > Hi - as many windows users have struggled with the long file path problem > (some

Re: [Pharo-users] Why can't a Bag answer as a dictionary?

2019-03-06 Thread Tim Mackinnon
#(1 2 3) asDictionary > > it fails in exactly the same way. You need key/value pairs (Associations). > > These do work > > Bag new add: #foo->100; asDictionary. > > Bag new addAll: 'ABABAB'; valuesAndCounts. > >> On 6 Mar 2019, at 14:25, Tim Mackinno

Re: [Pharo-users] Noob Question - slicing

2019-03-06 Thread Tim Mackinnon
Nice reply Richard - do you ever post any of these in a blog - the one below would be a great one to point to from Exercism... > On 6 Mar 2019, at 12:48, Richard O'Keefe wrote: > > As someone else already pointed out, the standard way to copy > part of any array-like sequence is >aSequence

[Pharo-users] Why can't a Bag answer as a dictionary?

2019-03-06 Thread Tim Mackinnon
I was surprised to find that a Bag can’t convert to a dictionary - e.g. Bag new addAll: 'aacddd’; asDictionary Gives an error - Dnu #key It looks to me like Bag is inheriting a bad version of #associationsDo: and instead could simply forward it to #doWithOccurences:

[Pharo-users] Smalltalk CI - anyone have any luck excluding tests?

2019-03-06 Thread Tim Mackinnon
As part of Exercism we have to show our language track can build and run tests - and they use Travis - so, pretty awesome we have that tooling. So it was pretty straightforward t hook in - and there are enough examples around to support the docs for the .yml and .ston file - however I hit an

Re: [Pharo-users] A "with" construct like Pascal - easy to do, but is it terrible?

2019-03-04 Thread Tim Mackinnon
> On 4 Mar 2019, at 13:59, Christian Haider > wrote: > > Or #ifNotNil: When you are in the right mindset - lots of things come out of the wood work...

Re: [Pharo-users] A "with" construct like Pascal - easy to do, but is it terrible?

2019-03-04 Thread Tim Mackinnon
> On 4 Mar 2019, at 13:34, Sven Van Caekenberghe wrote: > > There is #in: that does exactly that: Classic - it was there - you just needed to get the name right. thanks.

[Pharo-users] A "with" construct like Pascal - easy to do, but is it terrible?

2019-03-04 Thread Tim Mackinnon
I’ve noticed that as we’ve progressed there has been a move to more concise and fluid code - e.g. I quite like the new String streaming stuff e.g. ^ String streamContents: [ :stream | stream nextPut: …. ] So I was wondering why we don’t have a

Re: [Pharo-users] Stability of Pharo 7 vs 6?

2019-03-04 Thread Tim Mackinnon
than 24 hours) So I guess I should try another experiment with fullscreen but a saved image (my hypothesis is that its the initial saving that really makes the difference). Tim > On 18 Feb 2019, at 08:29, Hilaire wrote: > > Le 18/02/2019 à 02:00, Tim Mackinnon a écrit : >>

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-03-01 Thread Tim Mackinnon
Hey - sometimes these more philosophical conversations do amount to something. I will propose to gene changes and submit a pr - as after all, Pharo is ours and pointing someone to #downTo: or #upTo: would be very rewarding (and for Richard - #to: would remain the same so everyone wins) Tim

Re: [Pharo-users] How to write out simple Json?

2019-03-01 Thread Tim Mackinnon
> On 1 Mar 2019, at 10:35, Sven Van Caekenberghe wrote: > > Forget about the way you are trying to implement it, to what would > > { #key->#value. 1. true } > > be rendered in JSON ? > > { "key":"value", 1, true } > > or > > [ "key":"value", 1, true ] > > Both are illegal JSON. You

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-03-01 Thread Tim Mackinnon
Actually thats quite a good suggestion - it probably should have been: #upTo: #downTo: #to:by: In the first place (but I’m guessing this change will never happen) > On 1 Mar 2019, at 05:35, K K Subbu wrote: > > On 28/02/19 6:33 PM, Tim Mackinnon wrote: >> So I would expect “

Re: [Pharo-users] How to write out simple Json?

2019-02-28 Thread Tim Mackinnon
Sven- thinking a bit more > On 28 Feb 2019, at 13:59, Sven Van Caekenberghe > wrote: > > This is wrong !! > > Think about it, what would then happen with a mixed list ? > > { #key->#value. 1. true } > > That would generate invalid JSON. I actually went and tried my

Re: [Pharo-users] How to write out simple Json?

2019-02-28 Thread Tim Mackinnon
ics' -> #('a' 'b' 'c') } }. String streamContents: [ :stream | (STONJSONWriter on: (stream)) jsonMode: true; prettyPrint: true; writeList: ex ]. > On 28 Feb 2019, at 13:45, Tim Mackinnon wrote: > > Just to add more flavou

Re: [Pharo-users] How to write out simple Json?

2019-02-28 Thread Tim Mackinnon
: true; mapInstVarsFor: Association; nextPut: ex ]. So I’m still wondering the NeoJSONObjectMapping can do something easy for Association other than simply mapInstVars? > On 28 Feb 2019, at 13:36, Tim Mackinnon wrote: > > Hi Sven - is there no convenience shortcut w

Re: [Pharo-users] How to write out simple Json?

2019-02-28 Thread Tim Mackinnon
But I thought Neo might give me something like that, as it must be terribly common? Tim > On 28 Feb 2019, at 13:16, Sven Van Caekenberghe wrote: > > STONJSON toString: { #id->1. #name->'tim' } asDictionary. > > JSON cannot deal with Associations by themselves. > >> On 28 Feb

[Pharo-users] How to write out simple Json?

2019-02-28 Thread Tim Mackinnon
I am stumped about how to write out some simple json (for a config file). I didn't think I need Neo, and STONJSON would be fine but it seems like creating items like: { 'id'-> self id. 'name' -> self name } gives an error about the association. I think you have to do: { ('id'-> self id)

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-28 Thread Tim Mackinnon
1, > 2.5% of them are by: a positive number other than 1, > 90 % are just to:do: with no by: > Inspecting some of the 90% showed that many of them > would go catastrophically wrong if 1 to: 0 do: > performed its body > > On Sat, 23 Feb 2019 at 03:58, Tim Mackinnon wrote: > I've jus

Re: [Pharo-users] The confusing state of SUnit

2019-02-27 Thread Tim Mackinnon
ise in SUnit. > This is not to say your suggestion would be useless. Just make a proposal and > let's discuss. > > > Joachim > > > Am 27.02.19 um 01:14 schrieb Tim Mackinnon: >> Forgive me father, for I have sinned… but when I try to right good tests, >> tha

[Pharo-users] The confusing state of SUnit

2019-02-26 Thread Tim Mackinnon
Forgive me father, for I have sinned… but when I try to right good tests, that fail in a way I can understand them it seems that SUnit doesn’t want to help me… Maybe I am missing something, but in 2019 it should be easy to write tests - particularly when we want people to contribute to adding

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-26 Thread Tim Mackinnon
in the repo - that iceberg no longer knows about, but git does? The longer term fix is to convert PharoWebBrowser to Tonel and see if we can improve the grouping. Tim > On 25 Feb 2019, at 17:19, Tim Mackinnon wrote: > > I’ve created - https://github.com/pharo-vcs/iceberg/issues/1204 &g

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-25 Thread Tim Mackinnon
I’ve created - https://github.com/pharo-vcs/iceberg/issues/1204 > On 25 Feb 2019, at 17:12, Tim Mackinnon wrote: > > Just to add some additional notes on this (and I will also file an issue, as > I don’t think one has been submitted, and I don’t think this is fully down to > f

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-25 Thread Tim Mackinnon
, while there is a long filename issue - is there another hidden issue underneath all of this where files we aren’t even using are getting reference somehow? Tim > On 22 Feb 2019, at 00:01, Tim Mackinnon wrote: > > Some interesting thoughts below - but my understanding is the

Re: [Pharo-users] What does the Package and Sub-Package comment do?

2019-02-25 Thread Tim Mackinnon
Anyone have any thoughts on this? Not sure whether to report a bug or not. > On 22 Feb 2019, at 14:48, Tim Mackinnon wrote: > > Hi - I notice that you can sort of put comments on packages - but I’m not > sure if this is working or if its supposed to work? > > When I type

Re: [Pharo-users] Why is #findString: in accessing?

2019-02-25 Thread Tim Mackinnon
assified > as such, does not really surprise me. > > Did you know about the Finder 'by example search' ? Here is how to find your > selector: > > > > HTH, > > Sven > >> On 25 Feb 2019, at 12:19, Tim Mackinnon > <mailto:tim@testit.works>>

[Pharo-users] Why is #findString: in accessing?

2019-02-25 Thread Tim Mackinnon
I always struggle (even after years of casually using smalltalk) to find the String methods that do the heavy lifting (and are comparable to other languages). The methods are normally there, but they often have names that don’t compare well with other languages. I think that what doesn’t help

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Tim Mackinnon
. But as you say, it’s personal. I’m still curious though. Tim Sent from my iPhone > On 22 Feb 2019, at 16:13, Konrad Hinsen wrote: > >> On 22/02/2019 15:57, Tim Mackinnon wrote: >> I've just been caught out with Intervals - why can't you do: >> 5 to: 1 do: [ :i | Transcript s

[Pharo-users] How to test a new Iceberg baseline?

2019-02-22 Thread Tim Mackinnon
How does one go about testing an Iceberg/metacello baseline? Two parts to this actually - I want to check one under my control - and am wondering if there is a lint checker or some way to tell me what it will load (without having to check it in and try. Or if you do this - can you test loading

[Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Tim Mackinnon
I've just been caught out with Intervals - why can't you do: 5 to: 1 do: [ :i | Transcript show: i printString] (eg a negative interval)? if you want to iterate down a series of numbers do you really have to do: 5 to: 1 by: -1 do: [… I always assumed that if x > y the step was automatically

[Pharo-users] What does the Package and Sub-Package comment do?

2019-02-22 Thread Tim Mackinnon
Hi - I notice that you can sort of put comments on packages - but I’m not sure if this is working or if its supposed to work? When I type something it seems to create and extra Manifest tag, and then the comment that I type seems to be the same for the package and all of its sub tags? Is this

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-21 Thread Tim Mackinnon
Feb 2019, at 16:01, Henrik Sperre Johansen > wrote: > > Tim Mackinnon wrote >> Hi Ben - while I understand the description below - why would it work the >> first time (no errors) and then fail the second time in a fresh image? Are >> we really sure its just down

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-21 Thread Tim Mackinnon
? Tim > On 21 Feb 2019, at 13:20, Ben Coman wrote: > > > > On Thu, 21 Feb 2019 at 20:36, Tim Mackinnon <mailto:tim@testit.works>> wrote: > We noticed a weird problem when testing the pharo exercism project. > > When loading on Windows10 in a fresh 64bit

[Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-21 Thread Tim Mackinnon
We noticed a weird problem when testing the pharo exercism project. When loading on Windows10 in a fresh 64bit image with the following evaluate in the playground: Metacello new baseline: 'Exercism'; repository: 'github://exercism/pharo-smalltalk:master/dev/src'; load. The project seemed

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Tim Mackinnon
g. > | occurences | > occurences := 3. > 'There <1?is:are> <2p> <1?occurrence:ocurrences> of <3p>' expandMacrosWith: > occurences = 1 with: 3 with: 'Foo' > > > Esteban A. Maringolo > > > El mié., 20 feb. 2019 a las 18:08, Tim Mackinnon () &

[Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Tim Mackinnon
I was browsing some of the Pharo issues (always worth doing) - and noticed an interesting one about Test results reporting and pluralisation (https://github.com/pharo-project/pharo/issues/2578) In it, I hadn't noticed String>>asPluralBasedOn: before (and judging from many messages in the image,

<    1   2   3   4   5   6   7   8   >