Re: [Pharo-users] using latest iceberg with Pharo 6.1 / 7.0

2018-11-08 Thread Guillermo Polito
On Fri, Nov 2, 2018 at 6:25 PM Sanjay Minni  wrote:

> If I want to use iceberg then should I first update pharo image as
> mentioned
> on github iceberg homepage (https://github.com/pharo-vcs/iceberg)
>

I'd also insist here with Sven. Could you please explain better what are
you trying to accomplish?


> for 6.1: should I run the script as given on the homepage or is there an
> easier way to upgrade (i.e. some UI - point and click) ?
>

This is ok, and this will update latest release (not latest dev version).
Usually from a user perspective yor may want only latest release and that's
ok.


>
> for 7.0: its mentioned to clone iceberg and pull changes
>- i run iceberg ...
>- dialog opens:repositories - there is a line "iceberg ... local
> repositories missing".
> how should i proceed from here ?
>
[SNIP]

Actually, here what you were doing is loading latest version of iceberg to
contribute to it.
If you want to use Iceberg, you need to do nothing :) The latest iceberg
version is already in Pharo7 and you had nothing to do.

Cheers,
Guille


Re: [Pharo-users] using latest iceberg with Pharo 6.1 / 7.0

2018-11-08 Thread Sanjay Minni
Thanks Sven, Guille,

I am only looking at iceberg for development / loading of a software project
being developed in Pharo (i.e. not develop iceberg itself ... if the
question was on iceberg development maybe I would have posted in
Pharo-developers group ;) ). so it seems there is nothing to be done to
"use" iceberg.

I have some questions ... pardon if they are naive but I am pretty green in
the pharo environment.

Question 1: This is on the sequence for cloning a repository and loading the
project from bitbucket with a Metacello configuration defined. - 
I have cloned on pharo 6.1... after that do I have to load the project /
packages as a separate step ?
after cloning, iceberg shows as follows
 Name CurrBranch   loaded version   Status
myProjectdevelopmentNo Package Loadednot loaded

Question 2: what are the steps to pull the latest version of the project and
overwrite the existing package versions already loaded

Question 3: Are class side initialize scripts triggerred on first time load
and on reload 

Question 4: the project has several external files .jpegs, .css .json etc,
... are they also pulled / pushed alongwith pharo code thru iceberg 

Question 5: how do I update iceberg 1.4.0 in pharo 6.1 image / 7.0 image

Question 6: is there documentation / guide available for iceberg like the
monticello / metacello guide in Deep Into Pharo 

thanks
Sanjay


Guillermo Polito wrote
> On Fri, Nov 2, 2018 at 6:25 PM Sanjay Minni <

> sm@

> > wrote:
> 
>> If I want to use iceberg then should I first update pharo image as
>> mentioned
>> on github iceberg homepage (https://github.com/pharo-vcs/iceberg)
>>
> 
> I'd also insist here with Sven. Could you please explain better what are
> you trying to accomplish?
> 
> 
>> for 6.1: should I run the script as given on the homepage or is there an
>> easier way to upgrade (i.e. some UI - point and click) ?
>>
> 
> This is ok, and this will update latest release (not latest dev version).
> Usually from a user perspective yor may want only latest release and
> that's
> ok.
> 
> 
>>
>> for 7.0: its mentioned to clone iceberg and pull changes
>>- i run iceberg ...
>>- dialog opens:repositories - there is a line "iceberg ... local
>> repositories missing".
>> how should i proceed from here ?
>>
> [SNIP]
> 
> Actually, here what you were doing is loading latest version of iceberg to
> contribute to it.
> If you want to use Iceberg, you need to do nothing :) The latest iceberg
> version is already in Pharo7 and you had nothing to do.
> 
> Cheers,
> Guille





-
---
Regards, Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] what must be instead of the ??

2018-11-08 Thread Roelof Wobben

Hello,

I try to solve a adventofcode challenge where I must find out when santa 
is first at the basement. the floor is there -1.

So I thought I use a while loop like this :

santaFloorOnBasement
    "calculates which step take Santa to the basement"
 | index|
 index := 1.
 ??? when: (floor >=0 ) do:
    [ floor := (input at: index = '(' )
    ifTrue: [ floor + 1 ]
    ifFalse: [ floor - 1 ].
 index := index + 1 ].

but I cannot find out what must be instead of the ??

index is the index of the string which has to start with a 1.
floor  and input are both instance variables. floor contains the current 
floor and input the input of the challenge.


Can someone help me figure this out so the next time I can do this on my 
own.


Roelof