[Pharo-users] Question about Spec2 and SpTablePresenter

2021-07-04 Thread Mark O'Donoghue
Howdy all I’ve got stuck trying to manage Tables – over 12 hours now and I’m out of ideas!. ☹ Any observations / suggestions are most welcome… I’ve been loading small external files of transactions using NeoCSV into Spec2 tables. I am trying to use Fuel to persist the table contents

Re: [Pharo-users] Question ZnClient with file

2020-08-30 Thread Sven Van Caekenberghe
> On 30 Aug 2020, at 18:05, Sabine Manaa wrote: > > Hi Sven, > > thanks a lot for your answer! I was already replying 3 hours ago but my > answer did not pass the mailing list. > > Perhaps you can answer this mail for the mailing list again: > > I was writing: > > Hi Sven, > you see me h

Re: [Pharo-users] Question ZnClient with file

2020-08-30 Thread Sven Van Caekenberghe
Hi, CC'ing the Pharo Users ML since that gives a permanent record of my answer. File uploads using ZnClient do work in the common case. You can check ZnServerTest>>#testFormTest3 or ZnImageExampleDelegateTest>>#testUpload as well as several other senders of #addPart: First you are mixing 2 typ

Re: [Pharo-users] Question about Deploying a Pharo Web Application in Production

2020-05-23 Thread Georges
Thanks Sven :) It works ! Georges -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Question about Deploying a Pharo Web Application in Production

2020-05-23 Thread Sven Van Caekenberghe
Hi George, $ ./pharo Pharo.image config --help Command line handler for dealing with Metacello configurations from the command line Usage: config [--help] [] [--install[=]] [--group=] [--username=] [--password=][--no-quit][--no-save] --help show this help message

[Pharo-users] Question about Deploying a Pharo Web Application in Production

2020-05-23 Thread Georges
Hello all, I have a problem, i try to do something simular as this: ./pharo myapp.image config \ http://www.myRespository.com ConfigurationOfMyApp --install=stable But I need to add my username and password in here. I tried http://www.myRespistory.com?login=loginname&password=password an

Re: [Pharo-users] Question on MetaLink: access to the calling MessageNode from a MethodNode

2019-12-18 Thread Marcus Denker
> On 18 Dec 2019, at 14:06, Mehrdad Abdi wrote: > > Hello > > For a specific method, I need to log some information when the method is > called, like the state of the receiver, values of arguments, where the method > is called, ... . > > Using following MetaLink, I’m able to capture the re

[Pharo-users] Question on MetaLink: access to the calling MessageNode from a MethodNode

2019-12-18 Thread Mehrdad Abdi
Hello For a specific method, I need to log some information when the method is called, like the state of the receiver, values of arguments, where the method is called, ... . Using following MetaLink, I’m able to capture the receiver and arguments and context. link := MetaLink new

[Pharo-users] Question about Artifact and Especial Characters

2019-07-17 Thread Juan Pablo Sandoval Alcocer
Hi, We are using Artifact for automatically creating pdf invoices. It was working well so far, until we realize a problem with especial characters, for instance "Zarić". When some special characters are used, our script generate a white pdf as invoice :(. We tried to fix this using different cha

Re: [Pharo-users] Question: anyone using NOCompletion setting?

2019-06-21 Thread Sean P. DeNigris
Marcus Denker-4 wrote > Removing the Ocompletion (for a while) would make it much easier… I can live without it for a while, especially if we can plug it back in at the end! - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Question: anyone using NOCompletion setting?

2019-06-20 Thread Alexandre Bergel via Pharo-users
--- Begin Message --- Marcus, this is an excellent idea! Alexandre > On Jun 19, 2019, at 4:15 AM, Marcus Denker wrote: > > > >> On 18 Jun 2019, at 19:34, Sean P. DeNigris wrote: >> >> I use it sometimes. IIRC there was a paper that it was objectively better at >> finding the "right" thing.

Re: [Pharo-users] Question: anyone using NOCompletion setting?

2019-06-19 Thread Marcus Denker
> On 18 Jun 2019, at 19:34, Sean P. DeNigris wrote: > > I use it sometimes. IIRC there was a paper that it was objectively better at > finding the "right" thing. Are you thinking of removing it? > > I would like to re-implement sorting of results in a more pluggable way… so that e.g. peop

Re: [Pharo-users] Question: anyone using NOCompletion setting?

2019-06-18 Thread Sean P. DeNigris
I use it sometimes. IIRC there was a paper that it was objectively better at finding the "right" thing. Are you thinking of removing it? - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Question: anyone using NOCompletion setting?

2019-06-18 Thread Marcus Denker
Hi, There are two completion modes currently: the standard one and the NOControler setting the NO option has the idea that it sorts “newly” compiled selectors first, else it is the same. Is anyone using this setting? Marcus

Re: [Pharo-users] question about FFI

2018-11-26 Thread Esteban Lorenzano
> On 26 Nov 2018, at 11:14, Henrik Sperre Johansen via Pharo-users > wrote: > > > From: Henrik Sperre Johansen > Subject: Re: question about FFI > Date: 26 November 2018 at 11:14:26 CET > To: pharo-users@lists.pharo.org > > > Yuriy Babah wrote >> in Playground i'm doing: > * >> #(2 3) doWi

Re: [Pharo-users] question about FFI

2018-11-26 Thread Yuriy Babah
> FFIExamples > interpolationFunc_xm: xm getHandle > ym: ym getHandle > size: 2 > x: 2.5 . > cool! it worked !! Thank Esteban Lorenzano and everyone else )

Re: [Pharo-users] question about FFI

2018-11-26 Thread Esteban Lorenzano
Hi, > On 26 Nov 2018, at 09:28, Yuriy Babah wrote: > > Hi ! > > I'm trying to call a very simple function from C ++ lib, writed for the test. > function with prototype: > > extern "C" float interpolationFunc(float* xm, float* ym, int size, float x). > > In Pharo7 wrote: > FFIExamples class >>

Re: [Pharo-users] question about FFI

2018-11-26 Thread Henrik Sperre Johansen via Pharo-users
--- Begin Message --- Nevermind me, hadn't had my coffee yet, for some reason I didn't see it was doWithIndex: you were using :/ Still a bit scary that FFIExternalArray at:put: doesn't perform bounds checks... Cheers, Henry -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.htm

Re: [Pharo-users] question about FFI

2018-11-26 Thread Henrik Sperre Johansen via Pharo-users
--- Begin Message --- Yuriy Babah wrote > in Playground i'm doing: * > #(2 3) doWithIndex: [:each :i | xm at: i put: each]. > #(3 4) doWithIndex: [:each :i | ym at: i put: each]. * > > whot i'm doing wrong? So, you're putting 2 at index 2 of xm, and then writing 3 past end of array, and in ym yo

Re: [Pharo-users] question about FFI

2018-11-26 Thread Yuriy Babah
just in case, and https://www.virustotal.com/ru/file/738460bb6be71b4615581dad1a787cbb80b188e52fe3480ef54b7bfce500f3dd/analysis/1543226071/ пн, 26 нояб. 2018 г. в 12:50, Yuriy Babah : > Thank, i'm trued do this, and i'm got > aBoxedFloat64 4.5879913020458836e-41 , > which is still a very st

Re: [Pharo-users] question about FFI

2018-11-26 Thread Yuriy Babah
Thank, i'm trued do this, and i'm got aBoxedFloat64 4.5879913020458836e-41 , which is still a very strange value пн, 26 нояб. 2018 г. в 12:33, teso...@gmail.com : > Hi, > >could be the problem that you are using the same external array for > both xm and ym?. > The clone message just cr

Re: [Pharo-users] question about FFI

2018-11-26 Thread teso...@gmail.com
Hi, could be the problem that you are using the same external array for both xm and ym?. The clone message just creates a shallow copy of the external array. It does not allocates a new external array, it only copies the address in both xm and ym. You should better do something like this: xm

[Pharo-users] question about FFI

2018-11-26 Thread Yuriy Babah
Hi ! I'm trying to call a very simple function from C ++ lib, writed for the test. function with prototype: extern "C" float interpolationFunc(float* xm, float* ym, int size, float x). In Pharo7 wrote: FFIExamples class >> interpolationFunc_xm: xM ym: yM size: size x: x ^ self ffiCall: #(flo

Re: [Pharo-users] Question about pharo's object model

2018-11-14 Thread Julien
Hello and welcome :-) When a method is « public » , it means that it is usable by any other object in the system. In Pharo, methods are « public » and instance variables are « protected ». « protected » means that the instance variable is only usable from inside the class defining it or f

Re: [Pharo-users] Question about pharo's object model

2018-11-14 Thread Ben Coman
Generically across programming languages... - a private method can only me invoked by an object of the same class (or subclass) i.e. it can only be invoked by itself. - a public method can be invoked from any object. In Pharo, variables are private and methods are public. The advantage of private

[Pharo-users] Question about pharo's object model

2018-11-14 Thread iu136 via Pharo-users
--- Begin Message --- hello guys I'm new to programming, I started programming using pharo, I had a question about pharo's object model. In object model we say, methods are public. What does "public" mean here? thanks -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html --- 

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Stephane Ducasse
Indeed TestCase is a really a special class and it can be really looking strange at first. On Sun, Apr 22, 2018 at 2:20 PM, Sean P. DeNigris wrote: > Gregg Williams wrote >> Hi—I’m a beginner in Pharo and am working my way through Pharo by Example >> 5.0 (PbE) and Learning OOP and TDD with Pharo

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Sean P. DeNigris
Gregg Williams wrote > Hi—I’m a beginner in Pharo and am working my way through Pharo by Example > 5.0 (PbE) and Learning OOP and TDD with Pharo (LOTWP). Welcome! That's a great way to start :) Gregg Williams wrote > 1) These two methods are defined on the instance side (the Class button is > *n

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Stephane Ducasse
tx guys for your help. cleaning the garden (was a junggle -well still). On Sun, Apr 22, 2018 at 12:18 PM, Hilaire wrote: > Le 22/04/2018 à 05:25, Gregg Williams a écrit : >> >> 2) In testAllIsogramSet, why do you need ‘self’? After all ‘isograms’ is a >> data structure, and its message is ‘do:’ >

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Hilaire
Le 22/04/2018 à 05:25, Gregg Williams a écrit : 2) In testAllIsogramSet, why do you need ‘self’? After all ‘isograms’ is a data structure, and its message is ‘do:’ You defined isograms as a method of the class. Therefore only this method returns the data structure you defined there. It is not

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-21 Thread Martin McClure
On 04/21/2018 08:25 PM, Gregg Williams wrote: > Hi—I’m a beginner in Pharo Hi Gregg, welcome! > and am working my way through Pharo by Example 5.0 (PbE) and Learning OOP and > TDD with Pharo (LOTWP). > > I’m currently going through 7.4 Designing a test, in LOTWP, which covers > testing whether a

[Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-21 Thread Gregg Williams
Hi—I’m a beginner in Pharo and am working my way through Pharo by Example 5.0 (PbE) and Learning OOP and TDD with Pharo (LOTWP). I’m currently going through 7.4 Designing a test, in LOTWP, which covers testing whether a string has no repeated characters, adding the method String >> isIsogramSet

Re: [Pharo-users] Question about GLORP class models

2018-03-29 Thread Alejandro Infante
Thanks! I will try that. Alejandro > On Mar 29, 2018, at 2:47 PM, Esteban A. Maringolo > wrote: > > This is a question best suited to the Glorp mailing list (which I'm > cc'ing in this email). > > What you need is an HorizontalTypeResolver, and define a common class > as the ancestor for both

Re: [Pharo-users] Question about GLORP class models

2018-03-29 Thread Esteban A. Maringolo
This is a question best suited to the Glorp mailing list (which I'm cc'ing in this email). What you need is an HorizontalTypeResolver, and define a common class as the ancestor for both of your classes. You'll have to define a descriptor for it, and you will use it to reference the "parent" of the

[Pharo-users] Question about GLORP class models

2018-03-29 Thread Alejandro Infante
Hi guys! I’m trying to use GLORP and I’m having problems defining the class model for a class which has an instance variable which is a collection of instances of two different classes: I have 3 classes named: { Section . Question . QuestionGroup } and I have problems for specifying the glorp

Re: [Pharo-users] Question

2017-07-24 Thread p...@highoctane.be
LargeInteger is not what you should use. Try this: v:= SmallInteger minVal - 1 In 64-bit, one gets:"-1152921504606846977" and there you have a LargeNegativeInteger that prints properly. v := SmallInteger maxval + 1 "1152921504606846976" same but positive. You have Integers that are Numbers

[Pharo-users] Question

2017-07-24 Thread Koos Brandt
Hi I am still learning but something weird happened. In a new Workspace Do-it myVar := LargeInteger new Print-itmyVar When I inspect it I get SubclassResponsibility: LargeInteger had the subclass responsibility to implement #printOn:base: When I browse LargeInteger, th

Re: [Pharo-users] Question about writeStream

2017-06-29 Thread Guillermo Polito
In fact the question comes from the fact that they are not polymorphic and you should know if you're manipulating a closable stream or not... Maybe a solution is indeed to use #writeStreamDo:, that should behave well even for in-memory, collection streams, no? On Thu, Jun 29, 2017 at 4:58 PM, Sve

Re: [Pharo-users] Question about writeStream

2017-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2017, at 16:07, Jérémie Regnault > wrote: > > Hi, > > I am writing tests with streams, and I noticed that a stream opened on a > string doesn't close, but FileStreams do close. Is it normal ? How do you mean that ? That FileStreams close automatically ? That is indeed the case,

[Pharo-users] Question about writeStream

2017-06-29 Thread Jérémie Regnault
Hi, I am writing tests with streams, and I noticed that a stream opened on a string doesn't close, but FileStreams do close. Is it normal ? -- Jérémie Regnault

Re: [Pharo-users] question on message passing.

2016-06-08 Thread stepharo
Keep us up to date It looks like an exciting project. BTW I love the audio stuff made by sven (I did not buy because I have too many loud speakers around me) but they keep telling me that I should buy them. Stef Le 7/6/16 à 20:42, sergio ruiz a écrit : On Jun 7, 2016, at 2:36 PM, Peter U

Re: [Pharo-users] question on message passing.

2016-06-08 Thread sergio ruiz
wow! on it! thanks! > On Jun 8, 2016, at 4:53 AM, Sven Van Caekenberghe wrote: > > Sergio, > > Here is my code: https://github.com/svenvc/mpdclient - the README.md should > get you started. peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2d

Re: [Pharo-users] question on message passing.

2016-06-08 Thread Sven Van Caekenberghe
Sergio, Here is my code: https://github.com/svenvc/mpdclient - the README.md should get you started. Have fun ! Sven > On 07 Jun 2016, at 22:17, sergio ruiz wrote: > >> >> I have a (almost complete) MPD client in Pharo, talks the protocol directly. >> As well as a simple web UI to control

Re: [Pharo-users] question on message passing.

2016-06-07 Thread sergio ruiz
> > I have a (almost complete) MPD client in Pharo, talks the protocol directly. > As well as a simple web UI to control music selection/playback. > wow! this sounds like a good building block for what i am doing. i am building a standalone/headless player that just uses buttons to select tag

Re: [Pharo-users] question on message passing.

2016-06-07 Thread Sven Van Caekenberghe
> On 07 Jun 2016, at 20:42, sergio ruiz wrote: > > >> On Jun 7, 2016, at 2:36 PM, Peter Uhnák wrote: >> >> (PipeableOSProcess command: 'mpc status') output lines first >> >> (also +1 for mpd :)) > > got it! thanks! > > you might like this project.. > > this is going to run on raspberry pi

Re: [Pharo-users] question on message passing.

2016-06-07 Thread sergio ruiz
> On Jun 7, 2016, at 2:36 PM, Peter Uhnák wrote: > > (PipeableOSProcess command: 'mpc status') output lines first > > (also +1 for mpd :)) got it! thanks! you might like this project.. this is going to run on raspberry pi.. the reason i am doing mpc status is to get the first line, and send

Re: [Pharo-users] question on message passing.

2016-06-07 Thread Peter Uhnák
You can just do (PipeableOSProcess command: 'mpc status') output lines first (also +1 for mpd :)) On Tue, Jun 7, 2016 at 8:27 PM, sergio ruiz wrote: > I have a feeling this is wrong, but I am not sure how to make it work > cleanly.. > > This: > > |s| > > s := (((PipeableOSProcess command: '/us

[Pharo-users] question on message passing.

2016-06-07 Thread sergio ruiz
I have a feeling this is wrong, but I am not sure how to make it work cleanly.. This: |s| s := (((PipeableOSProcess command: '/usr/local/bin/mpc status') output) findTokens: Character lf) first should i have all the parenthesis in there? is there a cleaner way to do this? thanks! peace

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-15 Thread stepharo
Good idea! Stef Le 8/4/16 09:49, Cyril Ferlicot Delbecque a écrit : On 08/04/2016 09:05, Henrik Nergaard wrote: | s1 s2 | s1 := 1234 asString. s2 := 1234 asString. s1 = s2. "true" s1 == s2. "false" s1 asSymbol = s2 asSymbol. "true" s1 asSymbol == s2 asSymbol. "true" (s1 class allInstances

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Cyril Ferlicot Delbecque
On 08/04/2016 09:05, Henrik Nergaard wrote: > | s1 s2 | > > s1 := 1234 asString. > s2 := 1234 asString. > > s1 = s2. "true" > s1 == s2. "false" > > s1 asSymbol = s2 asSymbol. "true" > s1 asSymbol == s2 asSymbol. "true" > > (s1 class allInstances select: [:s | s = s1 ]) size. "2" > (s1 asSymbo

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread stepharo
+1 | s1 s2 | s1 := 1234 asString. s2 := 1234 asString. s1 = s2. "true" s1 == s2. "false" s1 asSymbol = s2 asSymbol. "true" s1 asSymbol == s2 asSymbol. "true" (s1 class allInstances select: [:s | s = s1 ]) size. "2" (s1 asSymbol class allInstances select: [:s | s = s1 asSymbol ]) size. "1" [

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Sven Van Caekenberghe
> On 08 Apr 2016, at 09:19, Damien Cassou wrote: > > Henrik Nergaard writes: > >> | s1 s2 | >> >> s1 := 1234 asString. >> s2 := 1234 asString. >> >> s1 = s2. "true" >> s1 == s2. "false" >> >> s1 asSymbol = s2 asSymbol. "true" >> s1 asSymbol == s2 asSymbol. "true" >> >> (s1 class allInstanc

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Damien Cassou
Henrik Nergaard writes: > | s1 s2 | > > s1 := 1234 asString. > s2 := 1234 asString. > > s1 = s2. "true" > s1 == s2. "false" > > s1 asSymbol = s2 asSymbol. "true" > s1 asSymbol == s2 asSymbol. "true" > > (s1 class allInstances select: [:s | s = s1 ]) size. "2" > (s1 asSymbol class allInstances sel

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-08 Thread Henrik Nergaard
@lists.pharo.org] On Behalf Of Ben Coman Sent: Friday, April 8, 2016 3:23 AM To: Any question about pharo is welcome Subject: Re: [Pharo-users] Pharo-users Question about the symbols A symbol is like a string, except that all symbols with the same value are in fact the same object; that is,

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Cyril Ferlicot
On Friday, 8 April 2016, Valentin Ryckewaert wrote: > Hello everyone, > > i'm learning Pharo and i'm having difficulties to understand the symbols, > what are they? How are they different of the ByteString ? Why are they > usefull ? > Why should I put #string where I can put 'string' ? > Hi, As

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Brad Selfridge
And symbols are immutable Brad Sent from my iPad > On Apr 7, 2016, at 9:41 PM, Markus Stumptner wrote: > > As a result, internal names (e.g., method names) are usually symbols. Strings > are normally used for string manipulation, symbols for unambiguous (but > humanly readable!) internal r

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Markus Stumptner
As a result, internal names (e.g., method names) are usually symbols. Strings are normally used for string manipulation, symbols for unambiguous (but humanly readable!) internal reference (vulgo 'naming'). Markus On 08/04/16 10:53, Ben Coman wrote: A symbol is like a string, except that all

Re: [Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Ben Coman
A symbol is like a string, except that all symbols with the same value are in fact the same object; that is, every #hello symbol is the exact same object as every other #hello symbol. See "identically equal" section here... http://sdmeta.gforge.inria.fr/FreeBooks/ByExample/08%20-%20Chapter%206%20-

[Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Valentin Ryckewaert
Hello everyone, i'm learning Pharo and i'm having difficulties to understand the symbols, what are they? How are they different of the ByteString ? Why are they usefull ? Why should I put #string where I can put 'string' ? Thanks in advance for your answer. Valentin Ryckewaert

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-21 Thread Sven Van Caekenberghe
> On 21 Dec 2015, at 14:29, Nicolai Hess wrote: > > > > 2015-12-21 13:58 GMT+01:00 H. Hirzel : > On 12/20/15, Sven Van Caekenberghe wrote: > > I think the original question was how to change one element from a > > collection by another one, in this case, replace a string by another one, by >

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-21 Thread Nicolai Hess
2015-12-21 13:58 GMT+01:00 H. Hirzel : > On 12/20/15, Sven Van Caekenberghe wrote: > > I think the original question was how to change one element from a > > collection by another one, in this case, replace a string by another > one, by > > 'editing' an item, not to destructively modify a string

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-21 Thread H. Hirzel
On 12/20/15, Sven Van Caekenberghe wrote: > I think the original question was how to change one element from a > collection by another one, in this case, replace a string by another one, by > 'editing' an item, not to destructively modify a string (which would be a > bad idea (tm)). > > Inspect: >

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-21 Thread H. Hirzel
On 12/20/15, Marcus Denker wrote: > On Sat, Dec 19, 2015 at 9:24 PM, Tudor Girba wrote: > >> Hi, >> >> Strings are supposed to be immutable, and that is why we do not support >> editing by default :). >> >> > I do not think this is good... yes, it would be nice if *literal* strings > *would* be i

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-20 Thread Sven Van Caekenberghe
I think the original question was how to change one element from a collection by another one, in this case, replace a string by another one, by 'editing' an item, not to destructively modify a string (which would be a bad idea (tm)). Inspect: #('foo' 'bar') copy Go to the Raw view, double-cl

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-20 Thread Tudor Girba
Awesome. Then could you tell me what is the preferred api to modify strings? Cheers, Doru > On Dec 20, 2015, at 10:03 AM, Marcus Denker wrote: > > >> On 20 Dec 2015, at 09:13, Clément Bera wrote: >> >> >> >> 2015-12-20 8:15 GMT+01:00 Marcus Denker : >> >> >> On Sat, Dec 19, 2015 at 9:24

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-20 Thread Marcus Denker
> On 20 Dec 2015, at 09:13, Clément Bera wrote: > > > > 2015-12-20 8:15 GMT+01:00 Marcus Denker >: > > > On Sat, Dec 19, 2015 at 9:24 PM, Tudor Girba > wrote: > Hi, > > Strings are supposed to be immutable, and that is why we do

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-20 Thread Clément Bera
2015-12-20 8:15 GMT+01:00 Marcus Denker : > > > On Sat, Dec 19, 2015 at 9:24 PM, Tudor Girba wrote: > >> Hi, >> >> Strings are supposed to be immutable, and that is why we do not support >> editing by default :). >> >> > I do not think this is good... yes, it would be nice if *literal* strings >

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-19 Thread Marcus Denker
On Sat, Dec 19, 2015 at 9:24 PM, Tudor Girba wrote: > Hi, > > Strings are supposed to be immutable, and that is why we do not support > editing by default :). > > I do not think this is good... yes, it would be nice if *literal* strings *would* be immutable, but they are not. The tools should no

Re: [Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-19 Thread Tudor Girba
Hi, Strings are supposed to be immutable, and that is why we do not support editing by default :). If you would want to provide editing tools for a String, you would need to create a new inspector extension. This would probably be a bit cumbersome because you would probably have to work with b

[Pharo-users] [Question] Inspecting a collection of strings in Pharo 5 -- edit pane for a string?

2015-12-19 Thread H. Hirzel
Hello I am inspecting a collection of strings in Pharo 5. I wonder how I get at an edit pane to modify a particular string? Thank you for the answer in advance --Hannes

Re: [Pharo-users] Question when reading UPBE

2015-10-20 Thread stepharo
please take 5 min and watch this video: http://sdmeta.gforge.inria.fr/StarterKitCache/Exercises/Exercises-Counter/ stef Le 19/10/15 17:49, 小橙橙 a écrit : Hi, I'm a newcomer in Pharo and start to learn how to use Pharo. In page 42 of UPBE(Vesion:2015-10-17 ), I don't know where I write

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread Dimitris Chloupis
Let me make this clear, I dont believe in stupid questions. Your first language , like me, is not English and so you have harder time to understand documentation. Coding nowdays is as much about learning English than is about learning how to code since its by far the most popular language that code

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread 小橙橙
You mean that I should type them in the pane of the method I want to define, am I right? then, which one should I type "LOGame>>cellsPerSide" or "cellsPerSide"? Maybe this syntax --">>" just indicates that this method should belong to this class. but as reader, I don't need to type all, do I ? My

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread Dimitris Chloupis
have your read the Pharo Tour chapter ? please read the entire book from start to finish , DO NOT skip chapters this is a complete tutorial on Pharo that depends on previous chapters for continuation of knowledge. If you dont understand previous chapters you wont understand this. Your question i

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread Serge Stinckwich
Have a look to this tutorial here: https://www.youtube.com/watch?v=gSmlsarDMEQ On Mon, Oct 19, 2015 at 7:31 PM, 小橙橙 wrote: > But I don't find the pane on which I should write code. Did you know it? > > > On Monday, October 19, 2015, Serge Stinckwich > wrote: >> >> Dear Andy, >> >> welcome here

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread Nicolai Hess
Hi Andy, on the page before, you see the Figure 3.14, the bottom panel is the code panel. If you select class LOGame in the second left pane, and for example "-- all --" in the category panel, every code you put in the code panel, becomes a method of your class "LOGame". 2015-10-19 19:31 GMT+02:0

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread 小橙橙
But I don't find the pane on which I should write code. Did you know it? On Monday, October 19, 2015, Serge Stinckwich wrote: > Dear Andy, > > welcome here ! > > Normally you have to write your code on the bottom pane of the code > browser. > > Regards, > > On Mon, Oct 19, 2015 at 5:49 PM, 小橙橙

Re: [Pharo-users] Question when reading UPBE

2015-10-19 Thread Serge Stinckwich
Dear Andy, welcome here ! Normally you have to write your code on the bottom pane of the code browser. Regards, On Mon, Oct 19, 2015 at 5:49 PM, 小橙橙 wrote: > Hi, > > I'm a newcomer in Pharo and start to learn how to use Pharo. > In page 42 of UPBE(Vesion:2015-10-17 ), I don't know wher

[Pharo-users] Question when reading UPBE

2015-10-19 Thread 小橙橙
Hi, I'm a newcomer in Pharo and start to learn how to use Pharo. In page 42 of UPBE(Vesion:2015-10-17 ), I don't know where I write the constant methods and UPBE didn't tell me in which pane to type them. Could you tell me ? Andy Zhu

Re: [Pharo-users] Question about color

2015-09-29 Thread Esteban A. Maringolo
2015-09-29 10:08 GMT-03:00 Ben Coman : > > This must be a common user error. Should the method actually error > when passed a number > 1 ? > cheers -ben +1 "Rule of repair: When you must fail, fail noisily and as soon as possible" :) Esteban A. Maringolo

Re: [Pharo-users] Question about color

2015-09-29 Thread Ben Coman
This must be a common user error. Should the method actually error when passed a number > 1 ? cheers -ben On Tue, Sep 29, 2015 at 11:02 AM, Alejandro Infante wrote: > As far as I remember, Color>>#r:g:b: expects 3 numbers between 0 and 1, > instead of integers from 0 to 255. > > Inspecting a co

Re: [Pharo-users] Question about color

2015-09-29 Thread Offray Vladimir Luna Cárdenas
Thanks Alejandro. Mistery solved :-) On 28/09/15 22:02, Alejandro Infante wrote: As far as I remember, Color>>#r:g:b: expects 3 numbers between 0 and 1, instead of integers from 0 to 255. Inspecting a color using the fractions proposed by Wolframalpha gives you the expected color: Col

Re: [Pharo-users] Question about color

2015-09-28 Thread Alejandro Infante
As far as I remember, Color>>#r:g:b: expects 3 numbers between 0 and 1, instead of integers from 0 to 255. Inspecting a color using the fractions proposed by Wolframalpha gives you the expected color: Color r: 0.06 g: 0.39 b: 0.39 Cheers,

Re: [Pharo-users] Question about Text Editor.

2015-05-01 Thread Cyril Ferlicot
Thank you for your answers, i'll take a look ;) On 1 May 2015 at 11:59, Esteban Lorenzano wrote: > >> On 01 May 2015, at 02:57, Pierce Ng wrote: >> >> On Wed, Apr 29, 2015 at 06:04:49PM -0300, Mariano Martinez Peck wrote: >>> Not a text editor, but there was a ScriptManager that was kind of a >>

Re: [Pharo-users] Question about Text Editor.

2015-05-01 Thread Esteban Lorenzano
> On 01 May 2015, at 02:57, Pierce Ng wrote: > > On Wed, Apr 29, 2015 at 06:04:49PM -0300, Mariano Martinez Peck wrote: >> Not a text editor, but there was a ScriptManager that was kind of a >> worksapce with ability to give scripts a name, save them, and then easily >> browse and execute them.

Re: [Pharo-users] Question about Text Editor.

2015-04-30 Thread Pierce Ng
On Wed, Apr 29, 2015 at 06:04:49PM -0300, Mariano Martinez Peck wrote: > Not a text editor, but there was a ScriptManager that was kind of a > worksapce with ability to give scripts a name, save them, and then easily > browse and execute them. But this is a bit old, so not sure if this still > work

Re: [Pharo-users] Question about Text Editor.

2015-04-29 Thread Mariano Martinez Peck
Not a text editor, but there was a ScriptManager that was kind of a worksapce with ability to give scripts a name, save them, and then easily browse and execute them. But this is a bit old, so not sure if this still works in Pharo 4.0: http://pharo.gemtalksystems.com/book/PharoTools/Script-Manager

Re: [Pharo-users] Question about Text Editor.

2015-04-29 Thread Nicolai Hess
2015-04-27 12:36 GMT+02:00 Cyril Ferlicot : > Hi, > I wanted to do a little text editor and I would like to know if > someone already did one with simple features like open a file, save a > file etc... > I don't want to lose too much time in something that already exist. > None that I know of.

[Pharo-users] Question about Text Editor.

2015-04-27 Thread Cyril Ferlicot
Hi, I wanted to do a little text editor and I would like to know if someone already did one with simple features like open a file, save a file etc... I don't want to lose too much time in something that already exist. -- Cheers Cyril Ferlicot

Re: [Pharo-users] Question about loading Roassal2 in Pharo4

2015-03-24 Thread Javier Pimás
OK, that did the trick, thank you! On Tue, Mar 24, 2015 at 2:22 PM, Andrei Chis wrote: > Use: > > Gofer new > smalltalkhubUser: 'Moose' project: 'Glamour'; > package: 'Glamour-Tools'; > package: 'Glamour-Roassal2-Presentations'; > load > > > On Tue, Mar 24, 2015 at 6:15 PM, Javier Pimás

Re: [Pharo-users] Question about loading Roassal2 in Pharo4

2015-03-24 Thread Andrei Chis
Use: Gofer new smalltalkhubUser: 'Moose' project: 'Glamour'; package: 'Glamour-Tools'; package: 'Glamour-Roassal2-Presentations'; load On Tue, Mar 24, 2015 at 6:15 PM, Javier Pimás wrote: > Loading Glamour-Tools was ok with: > > Gofer new > smalltalkhubUser: 'Moose' project: 'GToolkit'

Re: [Pharo-users] Question about loading Roassal2 in Pharo4

2015-03-24 Thread Javier Pimás
Loading Glamour-Tools was ok with: Gofer new smalltalkhubUser: 'Moose' project: 'GToolkit'; package: 'Glamour-Tools'; load Yet, I don't know where to find Glamour-Roassal2-Presentations package On Mon, Mar 23, 2015 at 5:17 PM, Andrei Chis wrote: > You should also load the packages Glamour-Too

Re: [Pharo-users] Question about loading Roassal2 in Pharo4

2015-03-23 Thread Andrei Chis
You should also load the packages Glamour-Tools and Glamour-Roassal2-Presentations from the Glamour repo. Cheers, Andrei On Mon, Mar 23, 2015 at 8:49 PM, Javier Pimás wrote: > Hi guys, I see the same problem with latest pharo4. I loaded gt extensions > for roassal but now I get a message not u

Re: [Pharo-users] Question about loading Roassal2 in Pharo4

2015-03-23 Thread Javier Pimás
Hi guys, I see the same problem with latest pharo4. I loaded gt extensions for roassal but now I get a message not understood when selecting the examples. I'm loading roassal and the extensions with Gofer it smalltalkhubUser: 'ObjectProfile' project: 'Roassal2'; configurationOf: 'Roassal2'

Re: [Pharo-users] Question about NeoJSON

2015-03-13 Thread Mariano Martinez Peck
On Thu, Mar 12, 2015 at 6:19 PM, Esteban A. Maringolo wrote: > 2015-03-12 17:22 GMT-03:00 Mariano Martinez Peck : > > On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo < > emaring...@gmail.com> > > wrote: > > >> Assuming you store the original JSON string as a String object in an > >> instanc

Re: [Pharo-users] Question about NeoJSON

2015-03-13 Thread Mariano Martinez Peck
On Thu, Mar 12, 2015 at 6:09 PM, Sven Van Caekenberghe wrote: > I don't really understand why you want to keep the original JSON. It is a > bit like you don't trust the parsing and/or mapping. Now, the mapping I > understand (somewhat). > > Yes, there are a few domain-specific reasons, but let me

Re: [Pharo-users] Question about NeoJSON

2015-03-12 Thread Esteban A. Maringolo
2015-03-12 18:09 GMT-03:00 Sven Van Caekenberghe : > I don't really understand why you want to keep the original JSON. It is a bit > like you don't trust the parsing and/or mapping. Now, the mapping I > understand (somewhat). I guess this has to do with the fact that if you have a REST+JSON API

Re: [Pharo-users] Question about NeoJSON

2015-03-12 Thread Esteban A. Maringolo
2015-03-12 17:22 GMT-03:00 Mariano Martinez Peck : > On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo > wrote: >> Assuming you store the original JSON string as a String object in an >> instance variable named "json" you could map it as any other string. > But how do I get the JSON string a

Re: [Pharo-users] Question about NeoJSON

2015-03-12 Thread Sven Van Caekenberghe
I don't really understand why you want to keep the original JSON. It is a bit like you don't trust the parsing and/or mapping. Now, the mapping I understand (somewhat). So I would parse once without mapping, which would give you pure Arrays and Dictionaries that you are guaranteed can be used t

Re: [Pharo-users] Question about NeoJSON

2015-03-12 Thread Mariano Martinez Peck
On Thu, Mar 12, 2015 at 5:32 PM, Sven Van Caekenberghe wrote: > Mariano, > > I assume you what this while reading JSON. That won't be possible. NeoJSON > is designed as an efficient stream parser, working as it goes. So it never > knows the whole JSON expression. > U I imagined that :( > >

  1   2   3   >