Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Denis Kudriashov
2017-06-07 14:53 GMT+02:00 Steven Costiou : > I want to do the following: > > B adoptInstance: a > > It does'nt work, for what i understand it is because the format of the > classes are different (B has an inst var and A has not). > Yes, #adopt checks class format. Use need to use #become to achi

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Denis Kudriashov
2017-06-07 16:43 GMT+02:00 Steven Costiou : > Yes but when you do that you loose all the states from "a" (at least the > values). You have to do state migration management... You just need extra step to copy all state from old object: b := B new. b copyFrom: a. a becomeForward: b.

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Denis Kudriashov
2017-06-07 22:30 GMT+02:00 Steven Costiou : > But would it not be faster to just change the class (which finally works > with a little tuning) ? In fact your solution with anonymous subclass is doing what I describe underhood.

Re: [Pharo-users] Porting Transducers to Pharo

2017-06-07 Thread Denis Kudriashov
2017-06-07 22:04 GMT+02:00 p...@highoctane.be : > I read your note about DoubleAgents for the tests, well, yeah this one we > do not have. I read about it on the blog of its maker and it looked decent > indeed. > I think Mocketry can easily replace DoubleAgents but API is different and most tests

Re: [Pharo-users] Porting Transducers to Pharo

2017-06-08 Thread Denis Kudriashov
2017-06-08 15:37 GMT+02:00 Steffen Märcker : > In fact, I moved from Mocketry to DoubleAgents quite some time ago... =) It was greatly updated from VW version. (look for details here http://dionisiydk.blogspot.fr/2016/04/new-version-of-mocketry-30.html)

Re: [Pharo-users] PharoCloud drops VM hosting and focuses on Ephemeric Cloud

2017-06-09 Thread Denis Kudriashov
Hi Mike. Do you plan to support custom ports? It would be very interesting to support remote development. Imaging EphemericInstance will able to open browser, playground and debugger. 2017-06-09 0:59 GMT+02:00 mikefilonov : > Hello, > > I just wanted to make some clarifications on what is going

Re: [Pharo-users] Remote debugger: do i need identical images ?

2017-06-12 Thread Denis Kudriashov
Hi. 2017-06-12 16:03 GMT+02:00 Steven Costiou : > Hi, > > when using the Pharo remote debugger, we have a server side (the remote > application) and a client side (the local computer used to debug). > > Apart from the remote debugger itself, do both images need to have exactly > the same code - e

Re: [Pharo-users] Anonymous classes performances

2017-06-16 Thread Denis Kudriashov
Hi Steven. Could you show code which you measure? 2017-06-16 17:17 GMT+02:00 Steven Costiou : > I have been playing a bit with anonymous subclasses, and instances of anon > subclasses seem slower to execute code than "regular" subclasses instances, > but sometimes they reach equivalent performan

Re: [Pharo-users] RFBSever not surviving disconnection

2017-07-04 Thread Denis Kudriashov
As alternative to RFB try remote dev tools http://dionisiydk.blogspot.fr/2017/01/pharmide-pharo-remote-ide-to-develop.html . You can play with it in PharoCloud http://docs.swarm.pharocloud.com/article/remote_debug . (you need Pharo 6 for this) 2017-07-04 15:47 GMT+02:00 sergio ruiz : > Hi, all..

Re: [Pharo-users] PharoCloud Ephemeric Cloud updates

2017-07-04 Thread Denis Kudriashov
Good job Mike. It opens a lot of possibilities. 2017-07-03 23:17 GMT+02:00 mikefilonov : > > 4) As result now you can remotely connect, debug and control Images running > at PharoCloud using PharmIDE: > http://docs.swarm.pharocloud.com/article/remote_debug > This is so awesome! Thank you to Denis

Re: [Pharo-users] Problem with PharmIDE

2017-07-06 Thread Denis Kudriashov
2017-07-06 4:45 GMT+02:00 sergio ruiz : > Hey, all.. > > I am checking out PharmIDE.. This is BOSS.. but in testing, i lost > connection to my remote.. and now, when i try to evaluate: > > > remotePharo := PrmRemoteIDE connectTo: (TCPAddress ip: #[138 197 11 201] > port: 40423). > > I get: > > Er

Re: [Pharo-users] Problem with PharmIDE

2017-07-06 Thread Denis Kudriashov
2017-07-06 13:05 GMT+02:00 Denis Kudriashov : > If you will save your image with running server then peerId will be > constant forever and this error should not happen. But take care, IDE server has no security in communication protocol. So it is up to you to organize secure channel for

Re: [Pharo-users] Updating my remote pharo to latest codebase..

2017-07-07 Thread Denis Kudriashov
Hi. You can just open remote playground and evaluate ConfigurationOfYourProject loadDevelopment (or similar). Notice that when you will save image after that Pharm server will be automatically running after restart 2017-07-06 22:55 GMT+02:00 sergio ruiz : > > Hi, all.. > > I think have most ever

Re: [Pharo-users] Updating my remote pharo to latest codebase..

2017-07-07 Thread Denis Kudriashov
2017-07-07 10:44 GMT+02:00 Denis Kudriashov : > Hi. > > You can just open remote playground and evaluate > ConfigurationOfYourProject loadDevelopment (or similar). > So idea is to script updating

Re: [Pharo-users] Cannot keep image running.

2017-07-07 Thread Denis Kudriashov
Hi 2017-07-07 4:17 GMT+02:00 sergio ruiz : > Hi, all.. > > I have install PharmIDE on this, and my project… and my project keeps > dying.. I am getting the following stack trace.. > any ideas? > What do you mean by keeps dying? Is it only about connecting by PharmIDE? Or your domain code have so

Re: [Pharo-users] Should I be running 32bit or 64bit pharo 6?

2017-07-07 Thread Denis Kudriashov
2017-07-07 3:08 GMT+02:00 sergio ruiz : > Hey all.. > > My questions about iceberg got me wondering if i should be running pharo > 32bit or 64bit.. > It depends on you. 64bits makes linux installation easy - no need to thing about 32bits dependency.

Re: [Pharo-users] Cannot keep image running.

2017-07-07 Thread Denis Kudriashov
2017-07-07 14:09 GMT+02:00 sergio ruiz : > It is a teapot app.. > > i start it by doing something like: > > ./pharo Pharo.image —no-quit & > > after a few minutes, it becomes unresponsive, and in the terminal, i get a > stack trace, and the pharo is no longer running.. > And the error which you s

Re: [Pharo-users] Should I be running 32bit or 64bit pharo 6?

2017-07-07 Thread Denis Kudriashov
2017-07-07 14:06 GMT+02:00 sergio ruiz : > I am running the remote (live server - linux) and my development > machine(macOS) 64bit.. Just to notice, remote tools support all scenarios: all 64bits, all 32bits, 32bits client/64bits server and 64bits client/32bits server

Re: [Pharo-users] Cannot keep image running.

2017-07-07 Thread Denis Kudriashov
2017-07-07 15:58 GMT+02:00 sergio ruiz : > Correct.. Ok. So server image was saved with running server, right? And actually it was saved with connected client. Error shows that after image was saved communication with client was continued. But when server restarts client is not connected to it a

Re: [Pharo-users] How to view hierarchy of multiple classes in a package?

2017-07-07 Thread Denis Kudriashov
Hi Tim. Just remembered this thread. In latest Calypso you are able select multiple classes and switch to hierarchy. It will show "composite" hierarchy of all classes instead of single one. So if you select all classes (cmd+a) you will get desired behaviour, 2016-12-27 17:44 GMT+01:00 Tim Mackin

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-11 Thread Denis Kudriashov
2017-07-11 2:16 GMT+02:00 sergio ruiz : > When I try to save the order, I get the following error: > > 'An ActiveRecord can not reference any sub instances of instruction > stream. Make sure you are not saving blocks. ‘ > I think Sandstone do not support block serialization. To fix it in your a

Re: [Pharo-users] How do you develop for gemstone in open source tools (pharo)?

2017-07-11 Thread Denis Kudriashov
Hi 2017-06-22 23:16 GMT+02:00 Petr Fischer : > There is amazing new browser for Pharo, Calypso, which has remote browsing > capabilities (but probably different remoting/proxy layer than gt tools) - > is possible to utilize this project for remote Gemstone browsing in future? Calypso itself is

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-11 Thread Denis Kudriashov
2017-07-11 16:25 GMT+02:00 sergio ruiz : > I am setting up the state machine on initialization using (where state > machine is an instance variable): > > > setupStatemachine > > | stCustomerIncomplete stNoImages stImagesAttached stSizeSelected > stOrderComplete | > > statemachine := SsStateMachine

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Denis Kudriashov
2017-07-12 9:09 GMT+02:00 Marcus Denker : > in the workspace it creates a variable (with value nil)… so it treats > upper-case > unknown vars the same as lower case. > > I think it might make sense to have for upper case instead the menu that > asks > what to do (it could there have a “add binding

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Denis Kudriashov
2017-07-13 9:00 GMT+02:00 Hilaire : > Plus I understood it will be replace by Calypso, right? > That's the plan. > > May be hacking on Calypso would make sense, but there are several use > cases I want to explore with Glamour, so... > What exactly you are implementing?

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-13 Thread Denis Kudriashov
2017-07-13 14:44 GMT+02:00 sergio ruiz : > I tried this.. but what happens when i change this to message sends (it > does save) is that the state machine no longer works. The reason for this > being that when he state machine is initialized, it’s initialized with the > result of the message send,

Re: [Pharo-users] Seamless - send collections by value

2017-07-14 Thread Denis Kudriashov
Hi Petr. There are few solutions to your problem. 1) You can specify #value strategy for any collections for your network instance: network transferByValue: (Kind of: Collection) For your example you need to apply this strategy on server side. In that case client will continue send collections

Re: [Pharo-users] Seamless - send collections by value

2017-07-15 Thread Denis Kudriashov
Also try SeamlessLogger to profile remote communication: SeamlessLogger startAfresh All remote messages will be written into transcript. And you can analyze full statistics: SeamlessLogger collectStatistics inspect. 2017-07-14 14:04 GMT+02:00 Denis Kudriashov : > Hi Petr. > > Ther

Re: [Pharo-users] Pharo 6, scrolling with 2 fingers on a Mac trackpad is very erratic

2017-07-23 Thread Denis Kudriashov
SDL logic is already here. If you open new world in external OS window then all these issues disappear. But sadly it starts to be broken in Pharo 6. We should fix it and evolve (there were some problems of course) 2017-07-23 19:30 GMT+02:00 Stephane Ducasse : > We should rewrite all the logic u

Re: [Pharo-users] Looking for small boards and tiny computers which can run Pharo

2017-07-25 Thread Denis Kudriashov
Hi. Pharo works on Beaglebone. And I am pretty sure that it will work on other ARM/Linux based computers 2017-07-24 21:30 GMT+02:00 Steven Costiou : > Hi, > > i am looking for: > > - small hardware, boards/computers, "embeddable" devices, etc. that can > run Pharo (except Raspberry pi that i alr

Re: [Pharo-users] Performance of zero conf install since 6.1 seems very slow?

2017-07-26 Thread Denis Kudriashov
Hi. I don't know answer. But what time it takes before? 2017-07-26 9:30 GMT+02:00 Tim Mackinnon : > Hi - has anyone else noticed that since 6.1 - using zero conf for installs > is very very slow (it takes minutes to download pharo64.zip when using > > curl get.pharo.org/64/ | bash > > > This is

Re: [Pharo-users] BaselineOfXxx equivalent of npm's devDependencies

2017-07-28 Thread Denis Kudriashov
You need to specify groups for your project: spec group: 'default' with: #('Core' 'Tests' ); group: 'Core' with: #('Towergame' ); group: 'Tests' with: #('Towergame-Tests' 'Mocketry') Then your script will load default group with everything. And to load Core group use "load: #(Core)" instread of

Re: [Pharo-users] BaselineOfXxx equivalent of npm's devDependencies

2017-07-28 Thread Denis Kudriashov
dependency. 2017-07-28 15:39 GMT+02:00 Denis Kudriashov : > You need to specify groups for your project: > > spec > group: 'default' with: #('Core' 'Tests' ); > group: 'Core' with: #('Towergame' ); > group: 'Tests'

Re: [Pharo-users] [ANN] PharoLambda 1.5 - Pharo running on AWS Lambda now with saved Debug sessions via S3

2017-08-11 Thread Denis Kudriashov
This is cool Tim. So what image size you deployed at the end? 2017-08-10 15:47 GMT+02:00 Tim Mackinnon : > I just wanted to thank everyone for their help in getting my pet project > further along, so that now I can announce that PharoLambda is now working > with the V7 minimal image and also sup

Re: [Pharo-users] Thread-safe initialization of class state (was Re: Threads safety in Pharo)

2017-08-11 Thread Denis Kudriashov
What package you explore? I not find fileTypes method in Pharo 7. 2017-08-11 8:53 GMT+02:00 monty : > Here's a hypothetical broken class method that does lazy initialization of > a class inst var: > > fileTypes > fileTypes ifNil: [ > fileTypes := Dictionary new. >

Re: [Pharo-users] Parser failure on FFI pragmas declaration in Pharo 5

2017-08-17 Thread Denis Kudriashov
Hi. I think your problem related to the old FFI syntax. In Pharo UFFI is the way to do external calls. To enable old FFI syntax try to switch compiler: Smalltalk compilerClass: Compiler I used this trick to port some small library which was based on old FFI. I made migration manually but maybe t

Re: [Pharo-users] Parser failure on FFI pragmas declaration in Pharo 5

2017-08-17 Thread Denis Kudriashov
> Sorry, but we will not accept old pragma format (as I said, is invalid… > and ugly ;) ). But we will be able load old compiler (when it will be removed from standard image) to support such old code 2017-08-17 11:48 GMT+02:00 Esteban Lorenzano : > hi, > > Old way to do FFI calls is no longer s

Re: [Pharo-users] Parser failure on FFI pragmas declaration in Pharo 5

2017-08-17 Thread Denis Kudriashov
Yes. Also simple solution can be to override compiler of problem classes to return old compiler. I know it is better to rewrite code but it can be not simple task when there are a lot of ffi-methods. 2017-08-17 13:17 GMT+02:00 Guillermo Polito : > > > On Thu, Aug 17, 2017 at 1:09

Re: [Pharo-users] Parser failure on FFI pragmas declaration in Pharo 5

2017-08-18 Thread Denis Kudriashov
ou can just switch default compiler. Is not works for you? 2017-08-18 10:20 GMT+02:00 Holger Freyther : > > > On 17. Aug 2017, at 19:37, Denis Kudriashov > wrote: > > > Hey! > > > Yes. > > > > Also simple solution can be to override compiler of problem clas

Re: [Pharo-users] [ann] moldable editor - with expandable elements

2017-08-26 Thread Denis Kudriashov
difficult to browse long call chain which include many small methods. So with new editor command+click will be able expand implementor just in place. I think it will be big improvement for IDE. 2017-08-26 14:59 GMT+02:00 Thierry Goubier : > > > 2017-08-26 14:46 GMT+02:00 Denis K

Re: [Pharo-users] [ann] moldable editor - with expandable elements

2017-08-29 Thread Denis Kudriashov
rg/alpha+vm | bash > 2. > Iceberg enableMetacelloIntegration: true. > Metacello new >baseline: 'GToolkit'; >repository: 'github://feenkcom/gtoolkit/src'; > load > 3. > './pharo-local/iceberg/feenkcom/gtoolkit/doc/mondrian/index.pillar

Re: [Pharo-users] Usability issues with Calypso

2017-09-02 Thread Denis Kudriashov
Hi 2017-09-01 14:26 GMT+02:00 kmo : > I have been keen to use Calypso (I love the way it shows inherited methods) > as my browser but I am finding some usability issues. It may be just me but > some things I find off-putting. > Any feedback is very important. > > I don't really like the way th

Re: [Pharo-users] Usability issues with Calypso

2017-09-03 Thread Denis Kudriashov
can’t rename a temp for example). > > Tim > > On 2 Sep 2017, at 10:30, Denis Kudriashov wrote: > > Hi > > 2017-09-01 14:26 GMT+02:00 kmo : > >> I have been keen to use Calypso (I love the way it shows inherited >> methods) >> as my browser but I am find

Re: [Pharo-users] Usability issues with Calypso

2017-09-06 Thread Denis Kudriashov
hod etc. This menu is not in > Calypso right? > > Tim > > On 3 Sep 2017, at 17:24, Denis Kudriashov wrote: > > Hi Tim. > > No. It is available by cmd+r and from suggestions menu like in Nautilus. > But maybe I do not know other place which you use for this > >

Re: [Pharo-users] BlockStyler: Make Blocks more recognizable in source code

2017-09-07 Thread Denis Kudriashov
Hi. I will look. Maybe Calypso plugins are already able to do this kind of extensions 2017-09-07 9:58 GMT+02:00 Manuel Leuenberger : > It’s installed through a meta-link on AbstractNautilusUI >> #addIconStyle > and uses RubConfigurationChange to announce on the editor’s > sourceTextModel. It is

Re: [Pharo-users] BlockStyler: Make Blocks more recognizable in source code

2017-09-07 Thread Denis Kudriashov
+02:00 Denis Kudriashov : > Hi. > > I will look. Maybe Calypso plugins are already able to do this kind of > extensions > > 2017-09-07 9:58 GMT+02:00 Manuel Leuenberger : > >> It’s installed through a meta-link on AbstractNautilusUI >> #addIconStyle >> and use

Re: [Pharo-users] Usability issues with Calypso

2017-09-11 Thread Denis Kudriashov
;>sourceCodeShortcutActivator. > > Tim > > Sent from my iPhone > > On 6 Sep 2017, at 10:45, Denis Kudriashov wrote: > > Hi Tim. > > Sorry for late response. During Esug I am a bit out of mails. > > About saving method problem it is definitely a bug. Thank

Re: [Pharo-users] Usability issues with Calypso

2017-09-11 Thread Denis Kudriashov
2017-09-08 14:37 GMT+02:00 kmo : > If Tim had not posted this comment - "I love the fact you can move to a new > method with unsaved changes and no nag prompt".- I would never have known > that it was possible to do this. Since I always save my methods before > moving on I had never experienced th

Re: [Pharo-users] Who is maintaining of Artefact?

2017-09-12 Thread Denis Kudriashov
There is also PDFTalk from Christian Haider https://wiki.pdftalk.de/doku.php. But it needs to be ported into Pharo. 2017-09-11 21:03 GMT+02:00 Alejandro Infante : > Hi! > I would like to explore having support for Unicode characters. I want to > help for it. > > Who is the right person to talk ab

Re: [Pharo-users] Who is maintaining of Artefact?

2017-09-12 Thread Denis Kudriashov
specialized as > Smalltalk objects. > > The library code is annotated with the original descriptions and > definitions from the specification, so that learning about PDF itself > is well supported. " > > I wonder what the main issues would be when porting this to Pharo. &g

Re: [Pharo-users] Who is maintaining of Artefact?

2017-09-12 Thread Denis Kudriashov
t; Cheers, > > Christian > > > > > > *Von:* Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] *Im > Auftrag von *Denis Kudriashov > *Gesendet:* Dienstag, 12. September 2017 11:12 > *An:* Any question about pharo is welcome > *Betreff:* Re: [Pha

Re: [Pharo-users] "Leaking" CommandLineHandler when running headless image

2017-09-19 Thread Denis Kudriashov
Hi. It is probably related to issue 20309 2017-09-19 15:02 GMT+02:00 Holger Freyther : > Hi, > > I am currently trying to run one of my images as non-root and related to > that look into keeping changes in a d

Re: [Pharo-users] Usability issues with Calypso

2017-09-24 Thread Denis Kudriashov
Hi Sean 2017-09-23 19:57 GMT+02:00 Sean P. DeNigris : > Stephane Ducasse-3 wrote > > Calypso is still an enfant and this is > > IMPORTANT that people tell what > > they do not like so that we can improve. > > A few more impressions now that I've been using Calypso as my default > browser: > - Ove

Re: [Pharo-users] Usability issues with Calypso

2017-09-26 Thread Denis Kudriashov
2017-09-26 3:26 GMT+02:00 Sean P. DeNigris : > Denis Kudriashov wrote > > In Calypso you should not create protocols with star. In method editor > > status bar there is explicit checkbox "extension" to specify external > > package for the method. > > We shou

Re: [Pharo-users] Equals and HashCode Builder

2017-10-02 Thread Denis Kudriashov
Hi. I just use RBGenerateEqualHashRefactoring for this: r := RBGenerateEqualHashRefactoring className: MyClass variables: #(vars which should be used in equal and hash). r execute But it is a bit different. 2017-10-02 0:51 GMT+02:00 Vitor Medina Cruz : > Hello! > > Is there, in Pharo, builder

Re: [Pharo-users] Equals and HashCode Builder

2017-10-02 Thread Denis Kudriashov
Hi Sean. I did not know about quality of generated hash function. But if I remember correctly the same code is generated for java using Eclipse or Idea. So it should be good enough. 2017-10-02 16:37 GMT+02:00 Sean P. DeNigris : > Denis Kudriashov wrote > > I

Re: [Pharo-users] Equals and HashCode Builder

2017-10-02 Thread Denis Kudriashov
2017-10-02 16:41 GMT+02:00 Sean P. DeNigris : > Denis Kudriashov wrote > > I just use RBGenerateEqualHashRefactoring for this: > > I added your answer to the Pharo wiki. Is this available through the UI? If > not, maybe it should be! > > As I know it not exists >

Re: [Pharo-users] Equals and HashCode Builder

2017-10-02 Thread Denis Kudriashov
2017-10-02 16:37 GMT+02:00 Sean P. DeNigris : > > Two questions/comments about the generated code: > 1. #= > ... > self class = anObject class "should compare #species instead?" > ifFalse: [ ^ false ]. > ... > Typically, I've seen #species instead of #class

Re: [Pharo-users] Equals and HashCode Builder

2017-10-02 Thread Denis Kudriashov
ed two instances of different classes to be equal. And I can imaging the problems which it will lead to. > > On Mon, Oct 2, 2017 at 11:57 AM, Denis Kudriashov > wrote: > >> >> 2017-10-02 16:37 GMT+02:00 Sean P. DeNigris : >> >>> >>>

Re: [Pharo-users] Hiding the cursor in pharo and/or bloc

2017-10-03 Thread Denis Kudriashov
Hi. Look at Cursor class side. All cursor bitmaps are in class variables. If you will replace all of them with blank cursor then cursor will be always blank. Something like this: Cursor classVariables associationsDo: [ :each | each value: Cursor blank ] 2017-10-03 9:38 GMT+02:00 Steven Costiou

Re: [Pharo-users] Equals and HashCode Builder

2017-10-03 Thread Denis Kudriashov
2017-10-02 17:30 GMT+02:00 Denis Kudriashov : > > 2017-10-02 17:13 GMT+02:00 Vitor Medina Cruz : > >> I am sorry, not species, but #isKindOf istead of #= to compare classes. >> > > It is bad idea. #= should be transitive. > Oh, I used wrong word, shame on me

Re: [Pharo-users] Behold Pharo: The Modern Smalltalk

2017-10-04 Thread Denis Kudriashov
Hi 2017-10-04 12:30 GMT+02:00 horrido : > Behold Pharo: The Modern Smalltalk > smalltalk-38e132c46053> > > If you would like to suggest some edits, I'm all ears. Anything to improve the impact of the article. > As you mentioned IoT p

Re: [Pharo-users] using mocketry to mock subcall

2017-10-07 Thread Denis Kudriashov
Hi Peter. You should stub instance instead of class: s := Something new. s stub askFor... 7 окт. 2017 г. 9:18 пользователь "Peter Uhnák" написал: > Hi, > > maybe I am missing something fundamental, because this seems like an > obvious scenario > > I have a class Something with two met

Re: [Pharo-users] Behold Pharo: The Modern Smalltalk

2017-10-10 Thread Denis Kudriashov
Hi Dimitris. You opinion about live programming reminds me the common sentence from developers who don't care about languages at all. Usual argument is: they all are Turing complete, so who cares. 2017-10-10 11:02 GMT+02:00 webwarrior : > Calm your tits, dude. No need to use Caps Lock that much

Re: [Pharo-users] [ANN] Libusb binding + HID support for Pharo

2017-10-12 Thread Denis Kudriashov
2017-10-12 13:29 GMT+02:00 Julien : > Hello, > > A bit late, there is a Libusb [1] binding (using UFFI) and support for the > Human Interface Device [2] (that uses the binding but is written in pure > Smalltalk) for Pharo. > > Everything is on the github repository [3]. « Install » and « Quick >

Re: [Pharo-users] Mocketry willGenerateValueFrom: (was: Re: How do you mock http?)

2017-10-17 Thread Denis Kudriashov
are more >> unrelated uses", it could as well be `1 to: 100`): >> >> ZnClient stub new willReturnValueFrom: >> ((1 to: 10) collect: [ :i | ZnMockClient >> > > For Denis Kudriashov: would you be willing to add something like > `willGenerateValueF

Re: [Pharo-users] Mocketry willGenerateValueFrom: (was: Re: How do you mock http?)

2017-10-17 Thread Denis Kudriashov
on: '{}') ] ]. Or better: ZnClient stubGET: ('https://onesignal.com/api/v1/players' asZnUrl / (self uidy: 'Q7') withParams: {'app_id' -> appId } byResponse: [ :request | ZnResponse ok: (ZnEntity json: '{}') ] ]. 2017-10-17 14:22

Re: [Pharo-users] Mocketry willGenerateValueFrom: (was: Re: How do you mock http?)

2017-10-17 Thread Denis Kudriashov
2017-10-17 14:49 GMT+02:00 Herby Vojčík : > Denis Kudriashov wrote: > >> I would hide the tricks even more: >> >>ZnClient stubRequests: [ :request | >>request uri = >> ('https://onesignal.com/api/v1/players/{1}?app_id={2} >> <https://o

Re: [Pharo-users] using mocketry to mock subcall

2017-10-20 Thread Denis Kudriashov
ought that I can also mock at the class level (at least it was > shown in the docs). > > Peter > > On Sat, Oct 7, 2017 at 11:24 AM, Denis Kudriashov > wrote: > >> Hi Peter. >> >> You should stub instance instead of class: >> s := Something new. &g

Re: [Pharo-users] using mocketry to mock subcall

2017-10-20 Thread Denis Kudriashov
gt; > 2017-10-20 13:58 GMT+02:00 Peter Uhnák : > >> Thanks Denis, that did the trick. >> >> But I thought that I can also mock at the class level (at least it was >> shown in the docs). >> >> Peter >> >> On Sat, Oct 7, 2017 at 11:24 AM, Denis Kudrias

Re: [Pharo-users] using mocketry to mock subcall

2017-10-23 Thread Denis Kudriashov
volved. And of >> course you can replace mock with real instance if you want: >> >> some := Something new. >> >> some stub askForName: 'new'. >> >> Something stub new willReturn: some. >> >> >> >> 2017-10-20 14:21

Re: [Pharo-users] using mocketry to mock subcall

2017-10-24 Thread Denis Kudriashov
Hi 2017-10-24 20:07 GMT+02:00 Herby Vojčík : > Denis Kudriashov wrote: > >> Hi Herby. >> >> 2017-10-20 18:49 GMT+02:00 Herby Vojčík > <mailto:he...@mailbox.sk>>: >> >> >> I had this problem. I tried something like (though not exa

Re: [Pharo-users] Exchanging information between 2 pharo applications (2 images running on two different computers)

2017-10-25 Thread Denis Kudriashov
Look at Seamless https://github.com/dionisiydk/Seamless. 2017-10-25 14:21 GMT+02:00 Cédrick Béler : > Hi all, > > I want to connect two applications (1 by image, each one on a different > computer) so as as to exchange information (data) between them. > > So my question is about the best (smallta

Re: [Pharo-users] Exchanging information between 2 pharo applications (2 images running on two different computers)

2017-10-25 Thread Denis Kudriashov
What is offline mode? 2017-10-25 15:10 GMT+02:00 Cédrick Béler : > Thanks Denis. I will ! I knew I have seen a telephoto component that > could help but forgot about it ! > > Do you know if it’s possible to handle offline mode ? > > > > Le 25 oct. 2017 à 15:05, D

Re: [Pharo-users] Exchanging information between 2 pharo applications (2 images running on two different computers)

2017-10-25 Thread Denis Kudriashov
lection of static > information/data versions) on both peers to be synchronized when a > connection is established. > > > > > > Le 25 oct. 2017 à 15:31, Denis Kudriashov a écrit : > > What is offline mode? > > 2017-10-25 15:10 GMT+02:00 Cédrick Béler : > >&g

Re: [Pharo-users] Peeking at a stream

2017-11-02 Thread Denis Kudriashov
Hi. In XStreams this method called #explore: . 2017-11-02 9:59 GMT+01:00 Prof. Andrew P. Black : > I sometimes find, when working with a stream, that I need to "peek ahead” > a few items, without disturbing the state of the stream. The message stream > peek gives me the next item, but doesn’t ge

Re: [Pharo-users] Exchanging information between 2 pharo applications (2 images running on two different computers)

2017-11-02 Thread Denis Kudriashov
To load such code switch to old compiler in settings browser. It supports old FFI syntax. Then you can manually adopt all ffi calls to UFFI and commit new version. 2017-10-29 15:09 GMT+01:00 Paulo R. Dellani : > Dear all, > > I would like to give ZeroMQ a try in Smalltalk, but am unable to > load

Re: [Pharo-users] Extending Calypso

2017-11-02 Thread Denis Kudriashov
Hi There is no real documentation for now. Only examples on my slides. 2017-11-02 16:16 GMT+01:00 Juraj Kubelka : > Hi, > > Are there any examples (documentation) how to extend Calipso? > > I have tried to create a simple (demo) method group, but I miss something, > because it is not called. > >

Re: [Pharo-users] Extending Calypso

2017-11-02 Thread Denis Kudriashov
asEnvironmentItem because by default provider adds only not empty groups where empty check can lead to long computation > Cheers, > Juraj > > On Nov 2, 2017, at 12:23, Denis Kudriashov wrote: > > Hi > > There is no real documentation for now. Only examples on my sl

Re: [Pharo-users] UFFI with asynchronous callbacks

2017-11-08 Thread Denis Kudriashov
Hi. Esteban has version ported to UFFI https://github.com/estebanlm/TalkFFI. But I don't know is it working or not. 2017-11-08 10:15 GMT+01:00 Todd Blanchard : > I know, but its closer to "done" than starting from scratch. > > > > On Nov 8, 2017, at 1:13 AM, Ben Coman wrote: > > AFAIK, TalkFFI

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-09 Thread Denis Kudriashov
Hi Tim. Fix is here 20661-Fixing-test-from-debugger-should-mark-test-as-green-when-proceed . Thank's for reporting. It forces me to fix. I always noticed it but never take it seriously :) 2017-11-09 11:32 GMT+01:00 Tim Mackinnon : > Hi - I really

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-09 Thread Denis Kudriashov
And now it is in latest Pharo 2017-11-09 12:16 GMT+01:00 Denis Kudriashov : > Hi Tim. > > Fix is here 20661-Fixing-test-from-debugger-should-mark-test-as- > green-when-proceed <https://github.com/pharo-project/pharo/pull/456> . > Thank's for reporting. It forces me t

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-09 Thread Denis Kudriashov
osite one. > > Unfortunately I haven’t got a chance to look a bit deeper to help - but it > might be worth rolling back this change for now. We should fix it though - > and the answer must be in the area you have identified. > > tim > > On 9 Nov 2017, at 12:43, Denis Kudriashov wrote:

Re: [Pharo-users] I18n in pharo

2017-11-09 Thread Denis Kudriashov
Hi 2017-11-09 22:15 GMT+01:00 Stephane Ducasse : > Hi vikenti > > I would love. Now if nobody using a different alphabet does not give > us feedback and help we will not really make progress. > Denis how do you it? > I got this kind of errors in past with Pharo 1 on Windows XP. Now I was sure th

Re: [Pharo-users] I18n in pharo

2017-11-09 Thread Denis Kudriashov
In my experience I used my own custom implementation to support multiple languages. It was based on super simple dictionary of lang->labelName->text. I loaded it from custom xml file. My problem was that I never understood how gettext is supposed to be used on Windows. 2017-11-09 21:29 GMT+01:00 В

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-10 Thread Denis Kudriashov
ou fix your problem in the > debugger and then proceed and it passes all assertions. But it should > equally fail if you proceed and it asserts false or craps out. > > Strange it would vary in 6.1 - but I'll check. > > Tim > > Sent from my iPhone > > > >

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-10 Thread Denis Kudriashov
;> debugger and then proceed and it passes all assertions. But it should >> equally fail if you proceed and it asserts false or craps out. >> >> Strange it would vary in 6.1 - but I'll check. >> >> Tim >> >> Sent from my iPhone >> >> &g

Re: [Pharo-users] Pharo 6.1 UTF8InvalidText error

2017-11-10 Thread Denis Kudriashov
Hi. Sorry for the late response. I skipped your mail somehow. You need to try CP1251 converter. In past I used CP1251TextConverter from http://www.squeaksource.com/RussianSupport.html. But now there is very nice ZnCharacterEncoder hierarchy which provides out of the box main encodings. To get cp12

Re: [Pharo-users] Pharo 6.1 UTF8InvalidText error

2017-11-10 Thread Denis Kudriashov
; > Sven > > > On 10 Nov 2017, at 11:44, Denis Kudriashov wrote: > > > > Hi. > > Sorry for the late response. I skipped your mail somehow. > > > > You need to try CP1251 converter. In past I used CP1251TextConverter > from http://www.squeaksource.com/R

Re: [Pharo-users] Pharo 6.1 UTF8InvalidText error

2017-11-10 Thread Denis Kudriashov
2017-11-10 11:44 GMT+01:00 Denis Kudriashov : > > And question for others: should not we deprecate old TextConverter's and > move to zn encoders completely? > And I found related issue 17751 <https://pharo.fogbugz.com/f/cases/17751/Remove-TextConverter>. > > 2017-

Re: [Pharo-users] Network data exchange - Basys and Seamless usage questioning

2017-11-12 Thread Denis Kudriashov
Hi Cedrick. 2017-11-12 10:47 GMT+01:00 Cédrick Béler : > Hi all and Denis, > > I’ve played a bit with Basys and Seamless. Basys is the low level P2P > connection framework used by Seamless. > First, thanks for such works. Heavily documented and tested. That’s super > cool. > Thank's. But I think

Re: [Pharo-users] Stream API

2017-11-14 Thread Denis Kudriashov
What about contributing to zinc streams? Imaging that I will create block based streams, collecting:/selecting streams like in XSteam. Where I should put them? 2017-11-13 23:51 GMT+01:00 Norbert Hartl : > > > > Am 13.11.2017 um 21:08 schrieb Stephane Ducasse >: > > > >> On Mon, Nov 13, 2017 at

Re: [Pharo-users] Stream API

2017-11-14 Thread Denis Kudriashov
t; On Tue, Nov 14, 2017 at 9:16 AM, Denis Kudriashov > wrote: > >> What about contributing to zinc streams? Imaging that I will create block >> based streams, collecting:/selecting streams like in XSteam. Where I should >> put them? >> >> >> 2017-11-13

Re: [Pharo-users] Iterating through two collections in parallel

2017-11-14 Thread Denis Kudriashov
Hi Try this one: #(1 2 3) with: 'abc' do: [ :aNumber :aLetter | do something first with 1 and $a, then with 2 and $b, and finally with 3 and $c ] 2017-11-14 10:10 GMT+01:00 Prof. Andrew P. Black : > What method will execute a t

Re: [Pharo-users] Stream API

2017-11-14 Thread Denis Kudriashov
2017-11-14 14:00 GMT+01:00 Sven Van Caekenberghe : > > > > On 14 Nov 2017, at 09:53, Denis Kudriashov wrote: > > > > I look at the code, So Zinc provides only binary/character streams. > Right? > > Yes, Zn streams focus on classic binary(byte) / character stre

Re: [Pharo-users] Stream API

2017-11-14 Thread Denis Kudriashov
urse, welcome. > > > > About contribution: it is in external repository of Sven. Can we > contribute with normal process, create pull request into Pharo repo? > > > > > > 2017-11-14 9:36 GMT+01:00 Guillermo Polito >: > > > To a package next to block? >

Re: [Pharo-users] Stream API

2017-11-14 Thread Denis Kudriashov
2017-11-14 16:30 GMT+01:00 Steffen Märcker : > I forgot to mention, that the most recent code for Pharo is already on > Github: https://github.com/Pharophile/Transducers > > Reducers was the name of the first very first implementation. > > (In fact, I was originally inspired by clojures Reducers l

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-15 Thread Denis Kudriashov
2017-11-15 1:49 GMT+01:00 Sean P. DeNigris : > Ben Coman wrote > > Or it could go to Amber, half-way between green & red to mean probably > > correct. > > Ha ha. > > Again, it seems that just automatically rerunning the test immediately > after > a human-manipulated run and setting the color based

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-15 Thread Denis Kudriashov
2017-11-15 11:00 GMT+01:00 Guillermo Polito : > And just putting it back to gray? As "not run"? > We can implement any logic. Personally I need current behaviour. > > On Wed, Nov 15, 2017 at 10:44 AM, Denis Kudriashov > wrote: > >> 2017-11-15 1:49 GMT+01:00 S

Re: [Pharo-users] Why does the test runner show red when I correct a test?

2017-11-15 Thread Denis Kudriashov
2017-11-15 11:08 GMT+01:00 Guillermo Polito : > > On Wed, Nov 15, 2017 at 11:06 AM, Denis Kudriashov > wrote: > >> >> >> 2017-11-15 11:00 GMT+01:00 Guillermo Polito : >> >>> And just putting it back to gray? As "not run"? >>>

  1   2   3   4   >