Re: [Pharo-users] Iceberg + github without github account

2017-07-21 Thread Herby Vojčík
Peter Uhnak wrote: In Iceberg (Version Control) settings, there should be an option "enable Metacello (or Monticello?) integration" that should disable this iirc. On Fri, Jul 21, 2017 at 08:35:23PM +0200, Herby Vojčík wrote: Hello! I use Iceberg with metacelloIntegration: true to have gitloca

Re: [Pharo-users] Iceberg + github without github account

2017-07-21 Thread Peter Uhnak
In Iceberg (Version Control) settings, there should be an option "enable Metacello (or Monticello?) integration" that should disable this iirc. On Fri, Jul 21, 2017 at 08:35:23PM +0200, Herby Vojčík wrote: > Hello! > > I use Iceberg with metacelloIntegration: true to have gitlocal:// protocol >

[Pharo-users] Pharo MOOC: Difference between class methods and instance methods

2017-07-21 Thread Michel Marinier
I am an absolute beginner at Pharo and I’m working my way through Pharo by Example as well as the MOOC online. While coding the TinyBlog example in the MOOC, I got stuck until I kind of “guessed” the difference between “TBPost >> methodName” and “TBPost class >> methodName”. I didn’t know I had to

Re: [Pharo-users] Critical issues for Dr. Geo on P6

2017-07-21 Thread Hilaire
The problem is explained in the ticket: there is a bug in the position where the drgeo menu shows up when encapsulated in the Playground. It is not related to Glamour however. I may just decide to remove the Dr. Geo menu to avoid the bug. Le 21/07/2017 à 20:50, Tudor Girba a écrit : Can you

Re: [Pharo-users] Critical issues for Dr. Geo on P6

2017-07-21 Thread Tudor Girba
Hi, Can you detail your needs regarding the integration with Playground? Cheers, Doru > On Jul 21, 2017, at 11:19 AM, Hilaire wrote: > > Hello people, > > Here are a few critical issues due to bugs or lack of information or feature > for porting Dr. Geo to P6. There were others critical is

[Pharo-users] Iceberg + github without github account

2017-07-21 Thread Herby Vojčík
Hello! I use Iceberg with metacelloIntegration: true to have gitlocal:// protocol available to load local git repos. Problem I encountered (while trying to load Mocketry) that Iceberg hijacks github:// protocol and it seems it needs ssh credentials that actually allows access to github. But

Re: [Pharo-users] Critical issues for Dr. Geo on P6

2017-07-21 Thread Hilaire
Hi Stefane, Did you read the bug tickets in my previous email? Hilaire Le 21/07/2017 à 18:08, Stephane Ducasse a écrit : I do not understand what the issues that you need in Pharo 60. -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Tim Mackinnon
Paul - this is very helpful, gosh you learn a lot from what seemed like simple question. Your suggestion along with Subbu’s gives an easy workable solution - I also wonder if the method should be in the image along with the comment explaining half open intervals like you have. Do you think ther

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Tim Mackinnon
As an aside - there is another way of doing it - but I’m not sure if its clearer (or more efficient): ^ ((aDate year * 1 + (aDate monthIndex * 100) + aDate dayOfMonth - (self year * 1 + (self monthIndex * 100) + self dayOfMonth)) / 1) truncated > On 21 Jul 2017, at

[Pharo-users] Beyond Live Coding

2017-07-21 Thread Jimmie Houchin
Pharo (Smalltalk) is much more than simply live coding. All of us here dearly love live coding. Kilon states it is possible to do live coding in other languages. I have no experience doing so in any other language. I will say that I know of no other language that it is integral to development i

Re: [Pharo-users] Why does debugger browse open on Object?

2017-07-21 Thread Stephane Ducasse
Sure propose a fix. On Thu, Jul 20, 2017 at 12:31 AM, Tim Mackinnon wrote: > It turns out it's trivial - just create a subclass of DebugAction (the create > one has all the pieces you need). > > Not sure how you get an icon on the button (create doesn't either). > > Maybe I can propose it for 7

Re: [Pharo-users] Critical issues for Dr. Geo on P6

2017-07-21 Thread Stephane Ducasse
Hilaire I do not understand what the issues that you need in Pharo 60. Stef On Fri, Jul 21, 2017 at 11:19 AM, Hilaire wrote: > Hello people, > > Here are a few critical issues due to bugs or lack of information or feature > for porting Dr. Geo to P6. There were others critical issues from P6 bu

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Paul DeBruicker
Tim Mackinnon wrote > I am also wondering if the issue with Timespan is concerning - I was > surprised that putting a start and end date left me something that didn’t > answer my end date presumably down to rounding when it’s converted down to > a duration (making me wonder if its better to keep a

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Esteban A. Maringolo
I remember this was discussed before in the mailing list, not in the context of age calculation, but regarding the offset/duration vs calendar based dates handling. Pharo's core date classes are "incremental", which isn't suited for calendar sensitive calculations. Java core class for those calcul

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Tim Mackinnon
I hadn’t heard of that library - looks like one to keep in the back of my mind for more serious date related work. I do think that age or ageOn: should be in the standard core particularly when we have so many date and duration related classes - but I’m not sure what the feeling is about adding

Re: [Pharo-users] In Praise of the Very Best Programming Language

2017-07-21 Thread Esteban A. Maringolo
Great! Although it might happen silently, many smalltalkers like me value the "public relations" job you decided to lead on your own. So keep promoting Smalltalk! When something has value in itself, it doesn't need to be sold, only needs awareness in the public. Regards! Esteban A. Maringolo

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Esteban A. Maringolo
Tim, You might consider a full-fledged framework for it like Chalten: https://github.com/ba-st/chalten I don't know how it handles timezones, because the age calculation might get trickier if you consider also the time of birth and you're querying it from a different timezone ;-) Regards! Esteb

Re: [Pharo-users] In Praise of the Very Best Programming Language

2017-07-21 Thread kmo
You've done a great job in promoting smalltalk and pharo. -- View this message in context: http://forum.world.st/In-Praise-of-the-Very-Best-Programming-Language-tp4955487p4956078.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread K K Subbu
On Friday 21 July 2017 03:01 PM, Tim Mackinnon wrote: Actually that simplification doesn’t work - someone born on 1/Mar/2000 should be 11 on 1/Mar/2011 and this answers 10 (the previous version did work). You're right. The simplification does not take into account leap days. Mea culpa. Origin

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Tim Mackinnon
Actually that simplification doesn’t work - someone born on 1/Mar/2000 should be 11 on 1/Mar/2011 and this answers 10 (the previous version did work). This does make me think its tricky enough to put this in the core - I may submit it along with the unit tests I borrowed from Stack Overflow (the

[Pharo-users] Critical issues for Dr. Geo on P6

2017-07-21 Thread Hilaire
Hello people, Here are a few critical issues due to bugs or lack of information or feature for porting Dr. Geo to P6. There were others critical issues from P6 but were resolved and will be hopefully integrated, when ? * Minimal Dr. Geo image * Inte

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread K K Subbu
I suppose no one needed it that badly ;-). Age is the difference in years except when the given date's julian is less than self's julian when it is less by 1, so the code can be simplified to: ^aDate year - self year - (aDate dayOfYear < self dayOfYear) ifTrue: [ 1 ] ifFalse: [ 0 ]) BTW, the

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-21 Thread Tim Mackinnon
Yes that's a good solution, however I'm really surprised that with the plethora of dates, durations, timespans (we are well served with a very rich time and date domain) that this isn't already in the image? It seems very surprising. In fact the group I was working with (other language programm