Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-09 Thread Henrik Johansen
> On 8 Aug 2017, at 22:39 , Herby Vojčík wrote: > > Hello! > > I've got this portion in my delegate: > > requestPayload ifNotNil: [ uuidKeys do: [ :each | > requestPayload at: each ifPresent: [ :s | > requestPayload at: each put: (UUID fromString: s) ] ] ]. >

Re: [Pharo-users] Pharo Object Model

2017-02-10 Thread Henrik Johansen
> On 10 Feb 2017, at 13:04 , Oleksandr Zaytsev wrote: > > Hello, > > I'm trying to understand the logic behind The Pharo Object Model. > > Rule 3 states that every class in Pharo has a subclass. I was expecting some > cool loop, like in the case of Metaclass, which is an instance and also a

Re: [Pharo-users] [Pharo-user] Does SSDP package supposed to work on Pharo 6?

2017-02-09 Thread Henrik Johansen
> On 9 Feb 2017, at 16:10 , Denis Kudriashov wrote: > > Hi. > Question probably to Henrik. > > I try SSDP on latest Pharo 6 and > code for server and client signal primitive error on > #primGetAddressInfoHost:service:flags:family:type:protocol:. >

Re: [Pharo-users] Deployment pharo with multiple instances and voyage

2017-01-26 Thread Henrik Johansen
> On 25 Jan 2017, at 22:39 , Alejandro Infante > wrote: > > Cool! Thanks for the answers! > > Norbert mentions something interesting about references. > I have found that even though on each query mongo get the up-to-date version > of the objects, it does not install the proxies to look for

Re: [Pharo-users] understanding existing code

2017-01-06 Thread Henrik Johansen
> On 5 Jan 2017, at 20:24 , Siemen Baader wrote: > > Hi All, > > I may be missing the obvious, but what are good strategies to understand the > structure of existing code? Specifically, I'm trying to understand more of > PharoJS to solve my own problems and eventually also to contribute back

Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-19 Thread Henrik Johansen
> On 18 Oct 2016, at 11:11 , Sven Van Caekenberghe wrote: > > > Is there still a stack VM (PharoS for ARM, 5.0) ? I downloaded the one you linked (http://files.pharo.org/vm/pharoS/raspbian/latest.zip ), but it was a pre-spur VM, so I had

Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-19 Thread Henrik Johansen
There are two; without nuscratch package loaded, it's an old interpreter (squeak script in /usr/bin launches /usr/lib/squeak/4.*), with nuscratch loaded (which it should be by default in recent Raspbian versions...), it's a cog vm. (squeak script in /usr/bin launches /usr/lib/squeak/5.*) Cheers,

Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-19 Thread Henrik Johansen
> On 18 Oct 2016, at 6:27 , Sven Van Caekenberghe wrote: > >>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"; That's the one I downloaded/ran Pharo on. Like Todd said, there's also a Spur VM shipped with raspbian (as part of

Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Henrik Johansen
> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe wrote: > > Hi, > > Does a (faster) Cog VM for the Raspberry Pi actually exist ? > > I tried comparing the latest OpenSmalltalk VM with some older ones, only to > find that they are all equally fast (slow actually): > > pi@raspberrypi ~/Pharo

Re: [Pharo-users] Pharo not running with macOS Sierra

2016-09-21 Thread Henrik Johansen
> On 21 Sep 2016, at 2:07 , MartinW wrote: > > Hello, > > i just updated to macOS Sierra, and Pharo now starts with an empty black > window and 100% CPU load and stays like this forever. > Any ideas? > > Best regards, > Martin. It's not an "official" official release, but the following link t

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-12 Thread Henrik Johansen
> On 07 Sep 2016, at 5:38 , Ben Coman wrote: > > On Wed, Sep 7, 2016 at 10:42 PM, Ben Coman > wrote: >> On Wed, Sep 7, 2016 at 9:09 PM, Esteban Lorenzano >> wrote: >>> >>> On 07 Sep 2016, at 14:56, Ben Coman wrote: >>> >>> On Tue, Sep 6, 2016 at 8:08 PM, Esteba

Re: [Pharo-users] i18n&l10n & Unicode support in Pharo

2016-08-17 Thread Henrik Johansen
> On 17 Aug 2016, at 9:08 , Gour wrote: > > Hello, > > just starting with Pharo and I'm thinking about i18n/l10n capabilities > within environment to make one's app read for several langauges. > > I've found out I18n (http://smalltalkhub.com/#!/~TorstenBergmann/I18N) > project but it seems the

Re: [Pharo-users] UPnP/IGD implementation

2016-07-26 Thread Henrik Johansen
s with IGD. > > Norbert > >> Am 25.07.2016 um 17:01 schrieb Henrik Johansen >> : >> >> SSDP covers discovery of the services and how they are set up; SOAP and XML >> are then used to access the service. >> IANAE, but; I think as long as you restrict yo

Re: [Pharo-users] UPnP/IGD implementation

2016-07-25 Thread Henrik Johansen
is more feasible. > > Norbert >> Am 25.07.2016 um 16:10 schrieb Henrik Johansen >> : >> >> >>> On 25 Jul 2016, at 12:13 , Norbert Hartl wrote: >>> >>> Does anyone know some code or person that did something with UPnP/IGD in >>>

Re: [Pharo-users] UPnP/IGD implementation

2016-07-25 Thread Henrik Johansen
> On 25 Jul 2016, at 12:13 , Norbert Hartl wrote: > > Does anyone know some code or person that did something with UPnP/IGD in > pharo? > > thanks, > > Norbert I've done an SSDP client/server, but not gone so far as to build a full UPnP model on top of it, since I just needed a discovery p

Re: [Pharo-users] [UFFI] Using a nested structure

2016-07-11 Thread Henrik Johansen
The alignment calculation of external enums is wrong, it should be FFIExternalEnumerationType >> externalTypeAlignment ^ self representationType externalTypeAlignment It only manifests for 32bit platforms on Windows since that's the only one with a pointer alignment (which superclass FF

Re: [Pharo-users] [Raspberry Pi] Accessing GPIO pins on Raspberry Pi?

2016-06-14 Thread Henrik Johansen
There doesn't seem to be many Pharoisms in WiringPi; for a much snappier experience, you might want to check out Squeak instead. Raspbian ships with both Spur and Non-Spur VM's included (courtesy of Scratch) which include optimized BitBlt primitives (may be absent from the old Pharo VM) + it use

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-31 Thread Henrik Johansen
> On 31 May 2016, at 11:44 , Holger Freyther wrote: > > not with Pharo5: > > ((LargePositiveInteger new: 3) digitAdd: SmallInteger maxVal - 10) class > => SmallInteger That's a very recent change to the LargeInteger primitives, wasn't in my old spur vm (a month old perhaps). So,in addition to

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> On 30 May 2016, at 5:49 , Henrik Johansen > wrote: > > A few more comments below; I'm not seeing the things you describe when > testing in my image... > >>> >>> | id | >>> id := LargePositiveInteger. >>> 1 to: (167772

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> On 30 May 2016, at 5:49 , Henrik Johansen > wrote: >>> >>> PS: The other part is that >>#newCounter doesn't seem to be ever executed. >>> On first load >>#initialize will call >>#reset and on >>#shutDown: calls >>> res

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
A few more comments below; I'm not seeing the things you describe when testing in my image... >> >> | id | >> id := LargePositiveInteger. >> 1 to: (16777215 + 50) do: [:each | >> id := id digitAdd: 1]. >> id. >> >> Given the comment it should overflow and the value be 50? This is not what

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
Hi Holger, sorry, I'm not good at responding to unsorted email in a timely manner :/ The comment is inaccurate, the wraparound relates to how the number is used in OID >> #initialize, not the number itself. lp := LargePositiveInteger new: 3. lp at: 1 put: 255; at: 2 put: 255; at: 3 put: 255. lp

Re: [Pharo-users] [Article] Speeding up factorial computation by changing the order of multiplications

2016-05-24 Thread Henrik Johansen
For the specially interested, there's also this fun thread from some years ago: http://forum.world.st/Challenge-Tuning-the-large-factorial-td3588660.html Cheers, Henry > On 24 May 2016, at 9:57 , Sven Van Caekenberghe w

Re: [Pharo-users] [ARTICLE] Tiny, yet so beautiful

2016-03-10 Thread Henrik Johansen
> On 10 Mar 2016, at 3:01 , Peter Uhnák wrote: > > "Nice article. But asBit has existed in @SqueakSmalltalk since at least 2004. > Why not say so?" > https://twitter.com/bertfreudenberg/status/707922868273856512 > > > And indeed,

Re: [Pharo-users] Use cases for methods with optional parameters

2016-01-21 Thread Henrik Johansen
> On 20 Jan 2016, at 6:14 , Esteban A. Maringolo wrote: > > > I would be interested in the use cases and how to deal with > "undefined" arguments, will they be nil or other kind of undefined > object? > > Regards! > > Esteban A. Maringolo Perhaps request: aFile with: anotherThing and: aThir

Re: [Pharo-users] Slow object printOn: with EURO symbol

2016-01-05 Thread Henrik Johansen
> On 05 Jan 2016, at 3:20 , Hilaire wrote: > > Le 05/01/2016 14:38, Sven Van Caekenberghe a écrit : >> The problem can does also be restated: it is really necessary for a tool to >> convert 1000s of items to strings, even if only 10s are shown at the same >> time on a screen ? >> >> I believe

Re: [Pharo-users] Slow object printOn: with EURO symbol

2016-01-04 Thread Henrik Johansen
> On 02 Jan 2016, at 10:58 , Hilaire wrote: > > Hello, > > With Pharo3, in an object of mine, I want its text representation to > come with the EURO symbol: > > CGMoney>>printOn: aStream > aStream << (amount asScaledDecimal: 2) greaseString > << ' ' << '€' > > > It appear

Re: [Pharo-users] Mongo configuration for Pharo40

2015-12-04 Thread Henrik Johansen
> On 04 Dec 2015, at 5:41 , Henrik Johansen > wrote: > > > That's what we have Monticello groups for, right? ;) > I meant to write *Metacello* groups, obviously... Cheers, Henry signature.asc Description: Message signed with OpenPGP using GPGMail

Re: [Pharo-users] Mongo configuration for Pharo40

2015-12-04 Thread Henrik Johansen
> On 04 Dec 2015, at 5:22 , Sven Van Caekenberghe wrote: > > According to http://bsonspec.org/spec.html there are indeed 2 different types > > "\x09" e_name int64 UTC datetime > > "\x11" e_name int64 Timestamp > > I would guess that you need 2 different (sub)classes in Pharo if you want t

Re: [Pharo-users] Mongo configuration for Pharo40

2015-12-04 Thread Henrik Johansen
> On 04 Dec 2015, at 3:49 , Esteban Lorenzano wrote: > > Yes I think… I still do not update voyage to Pharo5 (there are not TimeStamps > anymore). > > Esteban > >> On 04 Dec 2015, at 15:43, stepharo wrote: >> >> Does it make sense to have >> >> Name: ConfigurationOfVoyageMongo-EstebanLore

Re: [Pharo-users] typers in Pharo

2015-11-16 Thread Henrik Johansen
I don't know why, but return typing seems explicitly disabled in Pharo for RoelTyper. Add the extraction in: PharoInstVarInterfaceExtractor >> #methodReturnTop collector addAssignmentForReturn: stack last. ^self pop and it seems to work for me at least. The dictionary access fa

Re: [Pharo-users] Changing playground and monticello shortcuts

2015-11-11 Thread Henrik Johansen
Ehm, or maybe fix event dispatch so it works properly? It should always end up testing for event handling By the leaf morph at the given event position and work its way up if unhandled, not check top-down like the change to dispatchEvent:with: has ended up doing... Cheers, Henry > On 11 Nov 201

Re: [Pharo-users] Artefact and WideString

2015-10-22 Thread Henrik Johansen
> On 22 Oct 2015, at 3:31 , Sabine Manaa wrote: > > I do also use two different implementations for artefact/pdf and html: > > artefact: > 128 asCharacter asString > > html: > '€' > > same would be great https://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.pdf

Re: [Pharo-users] Better Code Completion

2015-10-06 Thread Henrik Johansen
> On 06 Oct 2015, at 1:33 , Nicolai Hess wrote: > > > > 2015-10-06 11:57 GMT+02:00 Werner Kassens >: > On 10/06/2015 09:09 AM, Nicolai Hess wrote: > > Since Object has almost 500 methods whatever I will start typing > Object/TClass/TBehavior/... will have a list

Re: [Pharo-users] issue with large file path on windows

2015-08-24 Thread Henrik Johansen
> On 23 Aug 2015, at 6:09 , Nicolai Hess wrote: > > And If you want to review the changes: > > https://github.com/nicolaihess/pharo-vm/compare/master...nicolaihess:win-long-filename > > > > > 2015-08-23

Re: [Pharo-users] Font with many Unicode glyphs to display code -- IPA?

2015-07-24 Thread Henrik Johansen
> On 23 Jul 2015, at 4:14 , H. Hirzel wrote: > > P.S. Screen shot attached. > A source code font. > Or put the question differently how do I add a font as a source code font? > > > On 7/23/15, H. Hirzel wrote: >> Hello >> >> I work on an app which has some strings in the code with a >> consi

Re: [Pharo-users] an elegant way to return a result

2015-06-30 Thread Henrik Johansen
> On 30 Jun 2015, at 1:21 , abdelghani ALIDRA wrote: > > Hi guys, > > what is the best way to express the following : > return (something aMsg) if it is not nil, return somethingElse elsewhere > > I could stil write: > > something aMsg > ifNil:[^ something aMsg] > ifNotNil:[^aNotherRe

Re: [Pharo-users] adding an element to an empty array

2015-06-29 Thread Henrik Johansen
> On 29 Jun 2015, at 2:18 , abdelghani ALIDRA wrote: > > Hi guys, > > Is there any way to add an element to an empty array (must not use new: > anElement)? > > Cheers It sounds like you want to use an OrderedCollection, not an Array. Those will grow and shrink as needed when you use add:/rem

Re: [Pharo-users] ZnClient and percent characters

2015-06-11 Thread Henrik Johansen
> On 11 Jun 2015, at 9:51 , PBKResearch wrote: > > I don’t quite understand Norbert’s comment. Does ‘monkey’ apply to me or to > what I have done? Either way, it seems unnecessary and abusive. It's a phrase to describe the change: http://en.wikipedia.org/wiki/Monkey_patch

Re: [Pharo-users] NativeBoost pointer and "+"

2015-06-09 Thread Henrik Johansen
> On 09 Jun 2015, at 2:59 , Henrik Johansen > wrote: > > MyClass createCacheOf: data in: cache. Forgot to change this; you need to pass in the ExternalArray addresses as parameters, not the ExternalArrays themselves. MyClass createCacheOf: data address in: cache address Cheers, Henry

Re: [Pharo-users] NativeBoost pointer and "+"

2015-06-09 Thread Henrik Johansen
ery much for your answer. However, the code you provided is some > sort of assembly right ? So does it mean that I need to learn assembly to do > what I want ? > > I'm asking that because I don't know anything about assembly so it will take > me some time to learn. >

Re: [Pharo-users] NativeBoost pointer and "+"

2015-06-08 Thread Henrik Johansen
> On 08 Jun 2015, at 4:41 , Matthieu Lacaton wrote: > > Hello everyone, > > I have a small question about NativeBoost : How does the "+" operator when > applied to a pointer translates into NativeBoost code ? > > To give a bit of context, what I want to do is to reallocate some > non-contig

Re: [Pharo-users] Issue with UDP Sockets

2015-06-01 Thread Henrik Johansen
> On 29 May 2015, at 7:24 , Sven Van Caekenberghe wrote: > > >> On 29 May 2015, at 18:23, Henrik Johansen >> wrote: >> >>> >>> On 19 May 2015, at 11:01 , Sven Van Caekenberghe wrote: >>> >>> >>>> On 19 May 2015,

Re: [Pharo-users] Issue with UDP Sockets

2015-05-29 Thread Henrik Johansen
> On 19 May 2015, at 11:01 , Sven Van Caekenberghe wrote: > > >> On 19 May 2015, at 10:53, Udo Schneider wrote: >> >>> Did you look in all your package caches ? >> I did. Must have been a victim of cleaning ... but maybe TimeMachine has >> something ... thanks for the reminder. >> >>> If it

Re: [Pharo-users] Is it always needed to redefine #hash message when you redefine #= message?

2015-05-29 Thread Henrik Johansen
Also implied, but seldom stated, is that all values used in = and hash must only be set at creation, never after. The reason is the same, keeping hashed collection usage sane; p := Point x: 3 y: 2. Set add: p. "Imaginary method" p setX: 2. Set includes: p -> false Cheers, Henry > On 26 May 2015,

Re: [Pharo-users] Issue with UDP Sockets

2015-05-18 Thread Henrik Johansen
Hupps, was reading the old code, I guess this isn't applicable. Sorry :/ > On 18 May 2015, at 5:15 , Henrik Johansen > wrote: > > >> On 18 May 2015, at 4:44 , Sven Van Caekenberghe wrote: >> >> >>> On 18 May 2015, at 16:34, Manfred Kröhnert

Re: [Pharo-users] Issue with UDP Sockets

2015-05-18 Thread Henrik Johansen
> On 18 May 2015, at 4:44 , Sven Van Caekenberghe wrote: > > >> On 18 May 2015, at 16:34, Manfred Kröhnert >> wrote: >> >> Hi Sven, >> >> On Mon, May 18, 2015 at 4:14 PM, Sven Van Caekenberghe wrote: >> >>> On 18 May 2015, at 15:47, Manfred Kröhnert >>> wrote: >>> >>> Hi, >>> apparentl

Re: [Pharo-users] New fast path for proxy loading in Voyage

2015-05-08 Thread Henrik Johansen
> On 08 May 2015, at 2:12 , Mariano Martinez Peck wrote: > > > > On Fri, May 8, 2015 at 9:00 AM, Henrik Johansen <mailto:henrik.s.johan...@veloxit.no>> wrote: > Hi Esteban! > As we talked about on IRC yesterday, I had hoped to employ the fast become > disc

Re: [Pharo-users] New fast path for proxy loading in Voyage

2015-05-08 Thread Henrik Johansen
ansen.56.mcz Description: Binary data On 08 May 2015, at 2:09 , Esteban Lorenzano <esteba...@gmail.com> wrote:cool, thanks!copied and merged :PEstebanOn 08 May 2015, at 14:00, Henrik Johansen <henrik.s.johan...@veloxit.no> wrote:Hi Esteban!As we talked about on IRC yesterday, I had ho

[Pharo-users] New fast path for proxy loading in Voyage

2015-05-08 Thread Henrik Johansen
Hi Esteban!As we talked about on IRC yesterday, I had hoped to employ the fast become discussed in http://forum.world.st/Igor-s-fast-become-for-CompiledMethods-in-Cog-td4345568.htmlto bring faster proxy loading untill Spur arrives.Sadly, it's not present in any current VM's, for reasons unknown*.Lu

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Henrik Johansen
> On 06 May 2015, at 12:29 , Nicolai Hess wrote: > > > > 2015-05-06 12:10 GMT+02:00 p...@highoctane.be > mailto:p...@highoctane.be>>: > I've loaded your package. > > A prerequisite is to load OS-Window to make it work. > > I've got the DLL call working nicely and

Re: [Pharo-users] [Pharo-dev] QualityAssistant v0.4

2015-04-24 Thread Henrik Johansen
> On 24 Apr 2015, at 8:41 , stepharo wrote: > > I understand the point of marcus but still it is unclear why certain tools > should be in and not others. > Now I would prefer that we have a process that > >1 := take a miniimage AND load the tools >check that we can unload them (jus

Re: [Pharo-users] Polygons + Skybox in woden?

2015-04-16 Thread Henrik Johansen
> On 16 Apr 2015, at 9:41 , Lusa Nicolas wrote: > > Hello, > > I am Nicolas Lusa from university of Lugano and I am working on my master > thesis with the supervision of Yuriy Tymchuk. > Right now I am working with woden and I am trying to build polygons. > Question1: Is it possible somehow t

Re: [Pharo-users] DoubleLinkedList vs LinkedList vs Collection

2015-04-14 Thread Henrik Johansen
> On 14 Apr 2015, at 2:09 , Marcus Denker wrote: > > >> On 14 Apr 2015, at 14:00, Sven Van Caekenberghe wrote: >> >> Peter, >> >>> On 14 Apr 2015, at 13:52, Peter Uhnák wrote: >>> >>> I was surprised to learn that DoubleLinkedList is descendant of Object, >>> while LinkedList is descendan

Re: [Pharo-users] String operations

2015-04-09 Thread Henrik Johansen
+1. In addition, half the methods you usually look for is actually implemented in their proper place (that is, SequenceableCollection, not String). Cheers, Henry > On 09 Apr 2015, at 12:59 , Sean P. DeNigris wrote: > > Damien Pollet-2 wrote >> Indeed, there is much to say about the String API

Re: [Pharo-users] Native language support

2015-03-12 Thread Henrik Johansen
> On 12 Mar 2015, at 10:39 , Thierry Goubier wrote: > > Hi Nick, Ben, > > 2015-03-12 10:17 GMT+01:00 Ben Coman >: > Hi Nick, > > The best way to ensure this will get included is log an issue and submit a > code slice at pharo.fogbugz.com

Re: [Pharo-users] Notification on GC of an object?

2015-01-16 Thread Henrik Johansen
> On 16 Jan 2015, at 1:25 , Johan Fabry wrote: > > > As I’ve been asked, I’ll clarify a bit more. When I said it worked before I > was actually wrong because I had forgotten to remove some alternative cleanup > code (the alternative works but it’s like using a cannon to kill a fly). > > This

Re: [Pharo-users] Notification on GC of an object?

2015-01-15 Thread Henrik Johansen
> On 14 Jan 2015, at 11:29 , Ben Coman wrote: > > what if the object stores a reference to itself? then you can access it from > the shadow copy? GC notification is triggered *after* objects are removed, so even if that were to work*, it'd be nil at the time the executor got around to being n

Re: [Pharo-users] [ Article ] LampSort, a non-recursive QuickSort implementation

2014-12-09 Thread Henrik Johansen
> On 08 Dec 2014, at 7:36 , Sven Van Caekenberghe wrote: > > Hi, > > Here is another article I just published > > LampSort, a non-recursive QuickSort implementation > > The divide and conquer partitioning is at the heart of QuickSort > > > https://medium.com/@svenvc/lampsort-a-non-recurs

Re: [Pharo-users] question on syntax "negate numbers"

2014-11-10 Thread Henrik Johansen
> From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org > <mailto:pharo-users-boun...@lists.pharo.org>] On Behalf Of Thierry Goubier > > > 2014-11-10 8:47 GMT+01:00 Henrik Johansen <mailto:henrik.s.johan...@veloxit.no>>: >> 3 @ -5 is not a problem, and accepted

Re: [Pharo-users] question on syntax "negate numbers"

2014-11-09 Thread Henrik Johansen
> On 10 Nov 2014, at 8:45 , Thierry Goubier wrote: > > > > 2014-11-10 7:59 GMT+01:00 Henrik Johansen <mailto:henrik.s.johan...@veloxit.no>>: > > IMHO, the old compiler is right, whitespace should not be allowed in literals. > > Whitespace can be \t or \n

Re: [Pharo-users] question on syntax "negate numbers"

2014-11-09 Thread Henrik Johansen
> On 08 Nov 2014, at 5:55 , Werner Kassens wrote: > > but if you omit the space between - and 3 the old compiler understands it > too, hence its just a convenience thing that cant lead to misunderstandings, > or? > btw opal also understands this: > -3@2. --> (-3@2) > i mean, its obviou

Re: [Pharo-users] Self-removing announcement subscription?

2014-10-27 Thread Henrik Johansen
> On 25 Oct 2014, at 2:42 , Jan B. wrote: > > Hi all > > Today I come with a question regarding announcements. > I would like to make announcement subscription which would remove itself > after first use. > Something like... > > anObject announcer >subscribe: TRMouseDragEnd >do: [ :e

Re: [Pharo-users] UDP example

2014-10-21 Thread Henrik Johansen
> On 21 Oct 2014, at 3:52 , Luc Fabresse wrote: > > > > 2014-10-21 15:40 GMT+02:00 Sven Van Caekenberghe >: > > > On 21 Oct 2014, at 15:29, Luc Fabresse > > wrote: > > > > > > yes examples are good. > > but I also suggest to use a stream o

Re: [Pharo-users] Passed by references and by value

2014-09-26 Thread Henrik Johansen
On 26 Sep 2014, at 8:24 , Marcus Denker wrote: > > On 25 Sep 2014, at 20:28, Esteban A. Maringolo wrote: > >> 2014-09-25 15:14 GMT-03:00 nacho <0800na...@gmail.com>: >>> Hi, >>> In PBE says that ordinary objects' ivars are passed by references and small >>> integers are passed by value. >>> I

Re: [Pharo-users] Ridiculous we are

2014-09-26 Thread Henrik Johansen
On 25 Sep 2014, at 8:55 , Alain Rastoul wrote: > Le 25/09/2014 07:23, Sven Van Caekenberghe a écrit : >> >> On 25 Sep 2014, at 01:04, Alain Rastoul wrote: >> >>> Le 25/09/2014 00:06, Sven Van Caekenberghe a écrit : Alain, >>> The character encoding situation in Pharo is pretty good

Re: [Pharo-users] Ridiculous we are

2014-09-25 Thread Henrik Johansen
On 22 Sep 2014, at 10:07 , Hilaire wrote: > > However font path seems ok: > File @ /home/hilaire/Téléchargements/DrGeo.app/Contents/Resources. > Inspecting this path, it looks like 'Téléchargements' is 8 bits, but it > should be utf-8, right? > > I think there are issue on Windows, as some use

Re: [Pharo-users] Ridiculous we are

2014-09-25 Thread Henrik Johansen
On 25 Sep 2014, at 5:00 , Hilaire Fernandes wrote: > Le 24/09/2014 18:48, Benjamin Pollack a écrit : >> On Tue, 23 Sep 2014 08:51:54 -0400, Hilaire wrote: >> >>> Le 23/09/2014 14:09, Damien Cassou a écrit : I recently read documents about utf-8 encoding. In all of them, the author sa

Re: [Pharo-users] LF instead of CR for new lines or writing about Pharo inside Pharo

2014-09-23 Thread Henrik Johansen
On 23 Sep 2014, at 6:28 , Offray Vladimir Luna Cárdenas wrote: > Hi :-), > > A small answer to myself that can be useful is someone find this thread: > > I have seen some post on Internet about CR and LF issues on Pharo Smalltalk, > like this: > > [1] > http://stackoverflow.com/questions/1

Re: [Pharo-users] Ubuntu Font License : Compatibility with Pharo License?

2014-09-22 Thread Henrik Johansen
On 19 Sep 2014, at 9:46 , Mayuresh Kathe wrote: > Would the Ubuntu Font License at; http://font.ubuntu.com/licence/ be > considered compatible with the Pharo license? > > If it is not _compatible_ would the usage of Ubuntu fonts still be > acceptable/permissible within Pharo? > > Thanks, >

Re: [Pharo-users] Math Ontologie on Pharo 3.0

2014-09-10 Thread Henrik Johansen
IIRC, there are two sources of imported code in Monticello. By default it reads from the DataStream encoded .bin file, which stores source containing wide character as... a binary WideString. Unless the .bin file is somehow corrupted, importing non-ascii .mcz therefore works as long as you have a

Re: [Pharo-users] Seeing all the methods that is used in a method

2014-08-07 Thread Henrik Johansen
On 07 Aug 2014, at 10:41 , kilon alios wrote: > cant you also use the ast to find out how exactly Pharo which object and > which method it executes ? No. Consider: #do: aBlock aBlock value Finding the methods actually executed by this is a hard problem. You’d at least need inferred

Re: [Pharo-users] Base64 encoding + UTF8 ?

2014-06-12 Thread Henrik Johansen
On 11 Jun 2014, at 10:28 , Sven Van Caekenberghe wrote: > Bonsoir François, > > From the class comment of ZnBase64Encoder: > > [...] > Note that to encode a String as Base64, you first have to encode the > characters as bytes using a character encoder. > [...] > > Sending #asByteArray to a S

Re: [Pharo-users] Xcode's Swift Playground

2014-06-04 Thread Henrik Johansen
On 03 Jun 2014, at 6:32 , Camille Teruel wrote: > > On 3 juin 2014, at 17:34, Johan Fabry wrote: > >> >> On Jun 3, 2014, at 4:21 AM, Camille Teruel wrote: >> To what I understand, types are inferred, it is not statically typed. Am I wrong ? >>> >>> If there is type inference t

Re: [Pharo-users] Probabilities package for Pharo?

2014-04-24 Thread Henrik Johansen
On 24 Apr 2014, at 11:25 , Sebastian Tleye wrote: > Thanks Markus, I didn't try it but I will! > > > 2014-04-24 11:20 GMT+02:00 Markus Fritsche : > On 2014-04-24 11:10, Sebastian Tleye wrote: > > Hi, > > I am doing some experiments in Pharo and I need to model Normal and > Log-Normal distri

Re: [Pharo-users] Athens and ellipse drawing

2014-04-23 Thread Henrik Johansen
On 23 Apr 2014, at 2:31 , Igor Stasenko wrote: > > > > On 23 April 2014 13:17, Henrik Johansen wrote: > > On 22 Apr 2014, at 2:23 , Igor Stasenko wrote: > > > as for why there's 4 arc segments instead of one, its because > > of bad approximation,

Re: [Pharo-users] Athens and ellipse drawing

2014-04-23 Thread Henrik Johansen
On 22 Apr 2014, at 2:23 , Igor Stasenko wrote: > as for why there's 4 arc segments instead of one, its because > of bad approximation, when drawing more that 90 degree arcs. > > also, in athens, arc segment is defined with following inputs: > - end point of previous segment (implicit) > - angl

Re: [Pharo-users] Loop problem on Dr Stef

2014-03-31 Thread Henrik Johansen
On 30 Mar 2014, at 1:45 , Roelof Wobben wrote: > Hello, > > When I select this part: > > 1 to: 100 do: > [:i | Transcript show: i asString; cr ]. > > And do print it. > > I only see 1 where I expected to see all the numbers from 1 till 100. > > What went wrong ? > > Roelof > > "print i

Re: [Pharo-users] Drawing a line

2014-01-16 Thread Henrik Johansen
On 16 Jan 2014, at 10:52 , Маркіян Різун wrote: > Hello! > > Task is simple - draw a line on a form(actually this line will be a border of > a cell). While browsing classes I found LineSegment and LineMorph. Which of > them is better to use in my case? And another question: I know how to > i

Re: [Pharo-users] Mongo cache vs database objects

2013-12-02 Thread Henrik Johansen
On 27 Nov 2013, at 2:57 , Sabine Knöfel wrote: > ok:-) > > btw and ot: > http://adam-fletcher.co.uk/howtobegerman/ > recommend! Haha, completely OT, but just the description brought back a memory from a class trip to Lübeck 15 years ago… Ater I decided to disobey the red man, an old lady rema

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-09-02 Thread Henrik Johansen
On Aug 31, 2013, at 3:30 , Sven Van Caekenberghe wrote: > > On 31 Aug 2013, at 13:47, Stéphane Ducasse wrote: > >> Sabine >> what we could do is to propose a "subclass of UUID" and to group several >> UUID generators. >> Like that with a couple of classes, we could get a better eco system w

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-09-02 Thread Henrik Johansen
On Aug 30, 2013, at 4:35 , Esteban Lorenzano wrote: > > On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: > >> >> On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: >> >>> hi >>> >>> well... I've never been happy on using the UUID generator for my keys, but >>> is the fastest opt

Re: [Pharo-users] Process ID of VM

2013-08-20 Thread Henrik Johansen
On Aug 20, 2013, at 11:34 , Tim Hendriks wrote: > I'am just learning (a few weeks) so why not use super in Class? > > Thanks Tim Nothing wrong with using super in Class, but using it in class initialize is a no-no. That method is treated specially and called once a Class is loaded into

Re: [Pharo-users] image resize event

2013-08-20 Thread Henrik Johansen
On Aug 19, 2013, at 6:07 , Usman Bhatti wrote: > Hello, > > I would like to resize all my windows opened inside my image when resizing > the image window. Can anyone point me to the hook where I can plug my code > for window resizing? > > For example, it would like to do > onImageResize >

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Henrik Johansen
On Aug 19, 2013, at 10:38 , Sabine Knöfel wrote: > Hi, > > I am interested in your opinion. > I use FixedDecimal for computing currency amounts. > This works fine. > > When storing the amounts with voyage into mongo (I have a lot of them!!!), > normally, one currency amount would be stored int

Re: [Pharo-users] Storing test data in methods

2013-08-01 Thread Henrik Johansen
On Jul 23, 2013, at 5:33 , Norbert Hartl wrote: > Max, > > Am 23.07.2013 um 17:27 schrieb Max Leske : > >> >> On 23.07.2013, at 15:32, Mariano Martinez Peck wrote: >> >>> >>> >>> >>> On Tue, Jul 23, 2013 at 9:48 AM, Norbert Hartl wrote: >>> Mariano, >>> >>> Am 23.07.2013 um 14:43 schri

Re: [Pharo-users] Garbage collector & Memory Profiling

2013-07-31 Thread Henrik Johansen
On Jul 31, 2013, at 3:23 , Mariano Martinez Peck wrote: > As far as I know, that's not possible in Pharo unless you explicitly register > the desired objects in "WeakRegistry default" or similar (and implement > #finalize). > I think is the closest you have. > > Cheers, A few clarifications:

Re: [Pharo-users] InputEventSensor and polling

2013-05-16 Thread Henrik Johansen
On May 15, 2013, at 10:34 PM, Eric Clack wrote: > Hi Stephane and Jannik, > Well I don't hate the code (yet ;-) So perhaps I'll have a play with it a bit > more and see if I can get something that works well, and fits with plans for > Pharo3.0. > > Cheers, > -Eric. Would it be possible to t