Re: [Pharo-users] Stream >> <

2019-09-11 Thread Herby Vojčík
On 11. 9. 2019 11:46, Herby Vojčík wrote: On 11. 9. 2019 3:23, Richard O'Keefe wrote: #write: really does not seem to be any improvement over #nextPutAll:. Will post. Actually, I won't. I don't care any more. I found Contributor Covenant-derived Code of Conduct was added t

Re: [Pharo-users] Stream >> <

2019-09-11 Thread Herby Vojčík
On 11. 9. 2019 3:23, Richard O'Keefe wrote: It is good that you have a coherent idea of how << can work. After the changes sent by Sven, Pharo 8 seems to have the exactly same idea. IMNSHO. The question I was addressing is how << *DOES* work in Pharo. Having simple things working, if they a

Re: [Pharo-users] Stream >> <

2019-09-10 Thread Herby Vojčík
On 10. 9. 2019 15:20, Sven Van Caekenberghe wrote: Development happens in Pharo 8 first, with possible back ports if really necessary. The last relevant change was the following: https://github.com/pharo-project/pharo/pull/2698 That's a very nice change, indeed. Thank you. But there's still

Re: [Pharo-users] Stream >> <

2019-09-10 Thread Herby Vojčík
On 10. 9. 2019 14:54, Richard O'Keefe wrote: I think it's fair to say that #<< *is* a bug. There does not seem to be any coherent description of what it means. It's overloaded to mean *either* #nextPut: *or* #nextPutAll: *or* something else, in some confusing ways. CommandLineHandler   #n

[Pharo-users] Stream >> <

2019-09-10 Thread Herby Vojčík
Hello! In Pharo 7.0.4, Array streamContents: [ :s | s << 10 << '10' << #(10 '10') ] >>> #($1 $0 $1 $0 10 '10') Bug or feature? Herby

Re: [Pharo-users] Set >> collect:thenDo:

2019-09-08 Thread Herby Vojčík
On 8. 9. 2019 14:28, Peter Kenny wrote: Two comments: First, the method comment for Collection>>collect:thenDo: is "Utility method to improve readability", which is exactly the same as for collect:thenSelect: and collect:thenReject:. This suggests that the *intention* of the method is not to intr

[Pharo-users] Set >> collect:thenDo:

2019-09-07 Thread Herby Vojčík
Hello! (#(1 2 3) asSet collect: #odd) do: [ :each | Transcript show: each; cr ] > true > false #(1 2 3) asSet collect: #odd thenDo: [ :each | Transcript show: each; cr ] > true > false > true Bug or feature? Herby

Re: [Pharo-users] Ssilence does not mean agreement

2019-09-04 Thread Herby Vojčík
On 4. 9. 2019 20:10, Sven Van Caekenberghe wrote: If nobody talks casually about guns as if they are a normal part of life on this list I will have no problem doing so. You are not director here. Get over your compulsion. If unable yourself, seek medical help. Herby Sven

Re: [Pharo-users] SequenceableCollection>>#allButFirst: inconsistence across subclasses

2019-09-04 Thread Herby Vojčík
On 4. 9. 2019 10:41, Sven Van Caekenberghe wrote: John, On 4 Sep 2019, at 04:25, John Pfersich wrote: and gun habits. Please stop normalising guns with such casual remarks. Guns have no place in modern society. Just a reminder the above is not the general opinion. Be yourself, John! Her

Re: [Pharo-users] SequenceableCollection>>#allButFirst: inconsistence across subclasses

2019-08-30 Thread Herby Vojčík
On 30. 8. 2019 11:56, Ben Coman wrote: On Fri, 30 Aug 2019 at 15:34, Julien > wrote: Hello, I opened that issue: https://github.com/pharo-project/pharo/issues/4442 And I think to fix it we need to actually discuss about what we want. #allB

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Herby Vojčík
On 23. 8. 2019 19:23, Herby Vojčík wrote:> On 23. 8. 2019 16:14, Julien wrote: >> Hello, >> >> I wanted to have an iterator framework for Pharo for a long time. >> >> So I started building it step by step and today I think that, while it >> still require

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Herby Vojčík
On 23. 8. 2019 16:14, Julien wrote: Hello, I wanted to have an iterator framework for Pharo for a long time. So I started building it step by step and today I think that, while it still requires more documentation, it is ready to be announced and used by others. I present you Iterators : ht

Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-25 Thread Herby Vojčík
On 25. 7. 2019 4:27, Richard O'Keefe wrote: Comment 2. ?? This is a poor design.?? As it is, any object can replace the tracks of an artist ?? with *anything*.?? And even without doing that, any object can add and remove ?? items to an artist's tracks, even if the added items are not Tracks

Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-25 Thread Herby Vojčík
On 24. 7. 2019 17:30, sergio ruiz wrote: hmm??? maybe this is cleaner.. tracks tracks ifNil: [ self tracks: OrderedCollection new ]. ^ tracks IMO, return ifNil: value is an understood and used idiom, so I'd say ^ tracks ifNil: [ tracks := ... ] is the most clean way. Maybe look at sender

Re: [Pharo-users] Bloc of code in tiers programming language

2019-05-18 Thread Herby Vojčík
On 15. 5. 2019 15:44, Tomaž Turk wrote: In javascript I believe is var f = function(x) { return Math.cos(x) + x; } var df = function(x) { return f(x + 1e-8) - f(x) * 1e8; } You should use modern JS for comparision, though, so: const f = x => Math.cos(x) + x; const df = x => (f(x + 1e-8) - f(x

Re: [Pharo-users] Richard Kenneth Eng is NOT Mr. Smalltalk

2019-04-10 Thread Herby Vojčík
On 28. 2. 2019 18:02, Esteban Maringolo wrote: Hi Michael, I share the belief that beyond some point pushing for something can backfire, and if you keep going then you enter into the trolls or fanatics zone. However I don't believe the community has to do something, or exclude anybody. In a

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Herby Vojčík
On 4. 4. 2019 13:16, Roelof Wobben wrote: Hello, For a challenge of Exercism I need to check if some parenthes and brackets are balanced. so for example ()  = true ([])  = true but (])  is not true because the bracket has no opening bracket. Now I wonder if I can premature end a #do:  like

Re: [Pharo-users] A "with" construct like Pascal - easy to do, but is it terrible?

2019-03-04 Thread Herby Vojčík
On 4. 3. 2019 14:15, Esteban Maringolo wrote: Well... you have the cascading that provides you that. book1 title:'C Programming'; author: 'Nuha Ali '; subject: 'C Programming Tutorial'; book_id: 6495407. What I would like, sometimes, is the option to nest cascades, very much lik

[Pharo-users] Pragma "only for place of definition", is there one?

2019-02-16 Thread Herby Vojčík
Hi! I'd just like to know if there is some pragma (eg. ) which would say to a (class-level) method only to use the code in the case self is method definition class, otherwise just delegate to super. I only see it useful in class-side `initialize` method, as in: Foo class >> initialize

Re: [Pharo-users] Traits for class methods?

2019-02-13 Thread Herby Vojčík
On 13. 2. 2019 14:54, Cyril Ferlicot wrote: On Wed, Feb 13, 2019 at 2:40 PM Hilaire wrote: I am wondering. Does it not make responsabilities less clear, shareed in class hierarchy and traits hierarchy, now both in term of behavior but also state? Hi, In general I do not choose between inhe

Re: [Pharo-users] Pharo-users Digest, Vol 55, Issue 206

2017-11-26 Thread Herby Vojčík
Ben Coman wrote: On 26 November 2017 at 21:28, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Ben Coman wrote: On 25 November 2017 at 15:18, Викентий Потапов mailto:vikenti.pota...@gmail.com> <mailto:vikenti.pota...@gmail.com <mail

Re: [Pharo-users] Pharo-users Digest, Vol 55, Issue 206

2017-11-26 Thread Herby Vojčík
Ben Coman wrote: On 25 November 2017 at 15:18, Викентий Потапов mailto:vikenti.pota...@gmail.com>> wrote: I downloaded the latest PharoLauncher image, use VM for Pharo 6.1. 1) On load i got an error with UTF8 encoding. 2) Every time i tried to create image (for example, Pharo 7 im

Re: [Pharo-users] I love the launcher!!!!

2017-11-26 Thread Herby Vojčík
, Herby Vojčík wrote: Stephane Ducasse wrote: Why don't you try? It does not bite. For me it works in all scenario. I have projects that i manage over several weeks and others I drop day to day. And I have also startup script per versions. Maybe I will. The main problem was I didn't

Re: [Pharo-users] I love the launcher!!!!

2017-11-26 Thread Herby Vojčík
se are also new to me - did not know of them until your booklet, not using them at all yet. Herby Stef On Fri, Nov 24, 2017 at 3:10 PM, Herby Vojčík wrote: Thank you all, now I understand it better. Good for lots of "branches". However, I wonder how does it work with the rule I rea

Re: [Pharo-users] I love the launcher!!!!

2017-11-24 Thread Herby Vojčík
cking, and you see the list of your local images and can launch them, etc. Peter On Thu, Nov 23, 2017 at 12:56 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Stephane Ducasse wrote: Hi I love the PharoLauncher. Pardon my question, I have downloaded it and looked at

Re: [Pharo-users] I love the launcher!!!!

2017-11-23 Thread Herby Vojčík
Stephane Ducasse wrote: Hi I love the PharoLauncher. Pardon my question, I have downloaded it and looked at it, but I don't get it. What does it do / what are the use cases (honest question)? Thanks, Herby It helps me to manage my parallel development and projects. We should put a link o

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-11-01 Thread Herby Vojčík
Herby Vojčík wrote: Not as easy as it seems, ran this on docker image herbysk/pharo:64_61 61_64, of course.

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-11-01 Thread Herby Vojčík
Esteban Lorenzano wrote: Hi, I don’t know if is useful in your case, but you made me remember I made a small tool to trap unix signals within Pharo. I uploaded then to github. https://github.com/estebanlm/pharo-posix-signal is very easy to use and it will allow you to trap any signal and do wh

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-31 Thread Herby Vojčík
!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) #define SIGWINCH 28 /* window size changes */ #define SIGINFO 29 /* information request */ #endif #define SIGUSR1 30 /* user defined signal 1 */ #define SIGUSR2 31 /* user defined signal 2 */ /31 October 2017 1

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-31 Thread Herby Vojčík
Bruce O'Neel wrote: Hi, Posix requires that if the process is killed the return status is greater than 128. What is convention on linux systems is that if the process is sent a signal then the signal number is added to 128. Therefore 137 is SIGKILL (kill -9). SIGTERM is 143, SIGABRT is 134, S

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-29 Thread Herby Vojčík
werner kassens wrote: Hi Herby, eventually you might want to look at https://github.com/moby/moby/issues/1063 but then i dont know anything about these things. Hopefully they have this solved already... but I learned 137 means "killed". generally; did not know. :-) werner Herby

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-29 Thread Herby Vojčík
what you want ;) Thanks, looks that it'll help. Esteban On 28 Oct 2017, at 13:39, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Hi, I had to find out how to automatically deploy the backend written in Pharo, and so far it uses docker-compose stop to stop the instance (and l

Re: [Pharo-users] [ANN] Iceberg 0.6.2 backported to Pharo 6.1

2017-10-28 Thread Herby Vojčík
Thanks. I did not yet try if I can use it for push, but it's great already as I could remove all the workarounds I needed before to work with the local repo. Herby Esteban Lorenzano wrote: Hi, I backported lastest Iceberg version to Pharo 6.1 to allow people to benefit for latest changes.

[Pharo-users] Read-only images / how to deploy new image as fast as possible?

2017-10-28 Thread Herby Vojčík
Hi, I came to the phase where I actually deploy the small backend written in Pharo, and I wonder about two things: 1. Is it possible to make .image / .changes read-only? Will Pharo just work (not writing the image, but that is not needed, all data are in sqlite file)? 2. How to "switch

[Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-28 Thread Herby Vojčík
Hi, I had to find out how to automatically deploy the backend written in Pharo, and so far it uses docker-compose stop to stop the instance (and later docker-compose up -d to get everything up again). I noticed the stop phase takes a while and ends with status code 137. I presume it ended fo

Re: [Pharo-users] Glorp: #includesKey:

2017-10-25 Thread Herby Vojčík
x27;t know of anyone planning to add this feature to Glorp right now. Regards, Tom On 10/24/2017 12:27 PM, Herby Vojčík wrote: Hello! I am using a DictionaryMapping in my code, and I wanted to use #includesKey: in #where: clause (something akin each tools includesKey: aToolId ) to select

Re: [Pharo-users] Glorp: #includesKey:

2017-10-25 Thread Herby Vojčík
jtuc...@objektfabrik.de wrote: Herby, I must admit I've never used Dictionary Mappings with Glorp, so I don't have an answer. But I am a bit confused by your code examples. See below Am 24.10.17 um 20:27 schrieb Herby Vojčík: Hello! I am using a DictionaryMapping in my code, and I

Re: [Pharo-users] Glorp: #includesKey:

2017-10-25 Thread Herby Vojčík
Tom Robinson wrote: Hi Herby, In my opinion, the way you found to make it work is the way it should be. The reason is that the first way doesn't translate into SQL and the second one does. It might be possible to add includesKey: functionality but resolving that to SQL would be more complex. I w

[Pharo-users] Glorp: #includesKey:

2017-10-24 Thread Herby Vojčík
Hello! I am using a DictionaryMapping in my code, and I wanted to use #includesKey: in #where: clause (something akin each tools includesKey: aToolId ) to select only rows for which DictionaryMapping uses certain key. It failed with the error in the lines of "#tools does not resolve to fi

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

2017-10-24 Thread 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 exactly w/ this code): Foo stub new will: [ :aMessage | | original | original := MockExpectedOriginalCa

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

2017-10-20 Thread Herby Vojčík
Denis Kudriashov wrote: So you want to stub message to *any* instance of class. Right? Conceptually, in Mocketry/StateSpecs way, it should looks like: (Instance of: Something) stub askForName willReturn: 'new'. or: (Kind of: Something) stub askForName willReturn: 'new'. But it w

Re: [Pharo-users] Yet another Pharo in docker

2017-10-18 Thread Herby Vojčík
Herby Vojčík wrote: https://hub.docker.com/r/herbysk/pharo/ Thanks to gotchas@dockerhub whose scripts I adapted.

[Pharo-users] Yet another Pharo in docker

2017-10-18 Thread Herby Vojčík
https://hub.docker.com/r/herbysk/pharo/

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

2017-10-17 Thread Herby Vojčík
i/v1/players' asZnUrl / (self uidy: 'Q7') withParams: {'app_id' -> appId } byResponse: [ :request | ZnResponse ok: (ZnEntity json: '{}') ] ]. Yes, we're getting where nock library is on node. I didn't want to make full http mocking dsl (woul

Re: [Pharo-users] How do you mock http?

2017-10-17 Thread Herby Vojčík
Herby Vojčík wrote: Hello! I felt the need to mock http api (like nock in node, that is, mock http request-response itself on low-level part, leaving aside the question of what wrapper / library one uses to get to that http; in node it mocks basic http layer, here I tackled ZnClient), but

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

2017-10-17 Thread Herby Vojčík
Denis Kudriashov wrote: Hi Herby. There is message #will: which accepts the block with possible arguments (if needed). ZnClient stub new will: [ ZnMockClient ...] But generally your approach looks bad to me. You put too many details on your tests which just duplicate Zinc API used in the dom

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

2017-10-17 Thread Herby Vojčík
library is great way to do these kinds of tests, so I got a slight bias to use 'mock at http level' approach. Best regards, Denis Thanks, Herby 2017-10-17 12:34 GMT+02:00 Herby Vojčík mailto:he...@mailbox.sk>>: Herby Vojčík wrote: Hello! I felt the need

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

2017-10-17 Thread Herby Vojčík
Herby Vojčík wrote: Hello! I felt the need to mock http api (like nock in node, that is, mock http request-response itself on low-level part, leaving aside the question of what wrapper / library one uses to get to that http; in node it mocks basic http layer, here I tackled ZnClient), but

[Pharo-users] How do you mock http?

2017-10-17 Thread Herby Vojčík
Hello! I felt the need to mock http api (like nock in node, that is, mock http request-response itself on low-level part, leaving aside the question of what wrapper / library one uses to get to that http; in node it mocks basic http layer, here I tackled ZnClient), but struggled for a time how

[Pharo-users] NeoJSONObject convenience method hint

2017-10-17 Thread Herby Vojčík
newFromAccessors: aCollection ofObject: anObject "Performs supplied accessors on anObject and returns my instance with accessor -> result pairs." ^ self newFrom: (aCollection collect: [ :each | each -> (anObject perform: each) ]) "I use it for example in this piece of code:

Re: [Pharo-users] Zinc release?

2017-10-13 Thread Herby Vojčík
Sven Van Caekenberghe wrote: On 12 Oct 2017, at 15:58, Herby Vojčík wrote: There are a few fixes out there for Zinc, not to mention convenience like ZnEntity class>> json:. Don't you consider releasing the new version (as I tried to update it by hand, it is not that easy,

[Pharo-users] Zinc release?

2017-10-12 Thread Herby Vojčík
There are a few fixes out there for Zinc, not to mention convenience like ZnEntity class >> json:. Don't you consider releasing the new version (as I tried to update it by hand, it is not that easy, it has more components, to load HTTP I had to update Character-Encoding as well, so probably bet

Re: [Pharo-users] Update of ConfigurationOfGlorp

2017-10-11 Thread Herby Vojčík
stephan wrote: On 11-10-17 21:50, Herby Vojčík wrote: 129 is from different author, who skipped upload of its 127 and 128 (probably intermediates). 127 is mine, fixes IMO overoptimized case for DirectMapping which unlike its superclass (thus all the other mappings as there is no other

Re: [Pharo-users] Update of ConfigurationOfGlorp

2017-10-11 Thread Herby Vojčík
stephan wrote: On 11-10-17 20:33, Herby Vojčík wrote: 127 is general, is not sqlite-specific. Fixes any case where primary key is not primitive and has converter. Should 127 and 129 be merged first, and should current development be promoted to release? And why is 128 missing? Stephan

Re: [Pharo-users] Update of ConfigurationOfGlorp

2017-10-11 Thread Herby Vojčík
stephan wrote: On 06-10-17 17:22, Herby Vojčík wrote: Any chance of incorporating fixes 127 / 129? Sure, as soon as someone tells me they are safe to add. I am just testing Glorp with P3 and Postgres now, and don't have the capacity to verify these changes other than by just reading the

[Pharo-users] Futures, in Scale (was: Re: Embeddable Smalltalk (was: Re: Behold Pharo: The Modern Smalltalk))

2017-10-07 Thread Herby Vojčík
will be helpful but the current main issue is the VM interpret loop that is in the current VMs. It is not an intrinsic problem. Telepharo is also a great step to enable that to exist. Phil On Oct 7, 2017 13:05, "Herby Vojčík" mailto:he...@mailbox.sk>> wrote: Ben Coman w

[Pharo-users] Embeddable Smalltalk (was: Re: Behold Pharo: The Modern Smalltalk)

2017-10-07 Thread Herby Vojčík
Ben Coman wrote: Nice article. I like the way you've structured it and pushed the "updated" angle. I feel a bit too strong a claim is laid on Pharo producing the CogVM. Much of the Cog + Spur + 64bit VM work was originally done for Squeak with Pharo riding the coat-tails of that work. Lately Ph

Re: [Pharo-users] Update of ConfigurationOfGlorp

2017-10-06 Thread Herby Vojčík
Sven Van Caekenberghe wrote: On 4 Oct 2017, at 17:20, stephan wrote: I've added a Pharo 7 version, copied the configurations from DBXTalk/Glorp to DBXTalk/Configurations and the metarepos, and replaced the #'Pharo6.0.x' style names by #'Pharo6.x' style. Please let me know if that creates pro

Re: [Pharo-users] ZnClient in Pharo 6.1 not working for Https on Windows

2017-10-06 Thread Herby Vojčík
kmo wrote: I was trying to Soup on Windows 7 and found I could not access https sites On windows 7 and 10 the following code fails: ZnEasy get:'https://genius.com/Alice-nuvole-lyrics'. This works fine in Pharo 5 on Windows. Also works fine with Pharo 6.1 (32 bit) on Linux. The problem is Phar

Re: [Pharo-users] How to make pharo find sqlite?

2017-10-02 Thread Herby Vojčík
Herby Phil On Mon, Oct 2, 2017 at 1:45 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Renaud de Villemeur wrote: Hi [...snip...] The reason it pass under windows is because the method library return by default sqlite3, which is the dll name

Re: [Pharo-users] How to make pharo find sqlite?

2017-10-02 Thread Herby Vojčík
Renaud de Villemeur wrote: Hi [...snip...] The reason it pass under windows is because the method library return by default sqlite3, which is the dll name you put under pharo VM directory to get it work. Not true. It is not in pharo vm directory. It finds it on %PATH%. On linux, unless yo

Re: [Pharo-users] How to set library path for UFFI on Linux?

2017-09-30 Thread Herby Vojčík
Dan Wilczak wrote: Hernan - I haven't opened an issue - how do I do it? (I'm very new to Pharo.) About continuing the search - I only mean continuing the search of the LD_LIBRARY_PATH directories, not the whole filesystem. Two changes would be needed to accomplish this: FWIW, I had problem wi

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
s work. Maybe, libsqlite.so would do the trick as well, but I got no nerve to play with it more. But, frankly, do not tell me this is what ppl need to do to load external libs in linux. :-/ Herby Phil On Sat, Sep 30, 2017 at 1:28 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote:

Re: [Pharo-users] How to set library path for UFFI on Linux?

2017-09-30 Thread Herby Vojčík
Stephane Ducasse wrote: Would you pls care to look at the sibling thread "How to make pharo find SQLite", it seems that it struggles with similar problem, is it supposed to created symlinks on linux, or it should be able to fund the library but somehow fails? Thanks, Herby https://pharo.fo

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
Herby Vojčík wrote: p...@highoctane.be wrote: I am using UDBCSQLite on Windows without problems. Me, too; when developing. The problem was on Linux, where I deploy. Things begin to look as if it was really that the module is not found, though. Now that I saw into the code CairoLibrary

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
it in both 32bit env as well as 64bit env, with appropriate vm installed; but always the same: sqlite3 module is not found). At least it seems it is not mysterious vm bug, but (only) failure to find an external module. Though I don't know how to solve it, LD_LIBRARY_PATH did not help.

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
scary and shows that vm may be culprit as well. Herby Phil On Sat, Sep 30, 2017 at 1:28 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: p...@highoctane.be <mailto:p...@highoctane.be> wrote: What about LD_LIBRARY_PATH=;$LD_LIBRARYPATH ./pharo-ui

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
somehow. What is the module being loaded ? Phil On Sat, Sep 30, 2017 at 1:28 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: p...@highoctane.be <mailto:p...@highoctane.be> wrote: What about LD_LIBRARY_PATH=;$LD_LIBRARYPATH ./pharo-ui some.image

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
il On Sat, Sep 30, 2017 at 1:28 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: p...@highoctane.be <mailto:p...@highoctane.be> wrote: What about LD_LIBRARY_PATH=;$LD_LIBRARYPATH ./pharo-ui some.image Phil Thanks for answer, did not h

[Pharo-users] Pharo 6.1 UDCBSQLite problem, masked behind "Error: External module not found"?

2017-09-30 Thread Herby Vojčík
Hello! I got the strange error first reported as "External module not found", but after putting a few diagnostic transcript outputs to the code: TowergameSyncTests >> setUp Transcript cr; show: self; cr; show: 'ENTER setUp'; cr. dao := Towergame daoForLogin: self loginToTempora

Re: [Pharo-users] How to make pharo find sqlite?

2017-09-30 Thread Herby Vojčík
starts to run. :-( Herby P.S.: I saw there is a similar thread out there, but it has problems with 32bit loaded by 64bit vm; but here, I have 32bit linux, so the vm installed should be 32bit. On Thu, Sep 28, 2017 at 7:40 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Hello!

[Pharo-users] How to make pharo find sqlite?

2017-09-28 Thread Herby Vojčík
Hello! I try to deploy UDBCSQLite-using image in a 32bit ubuntu 16.04.3. I do have libsqlite3: root@32bit-agent:~# find / -name '*libsqlite*' -type f 2>>/dev/null /usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6 /var/lib/dpkg/info/libsqlite0.list /var/lib/dpkg/info/libsqlite3-0:i386.postinst /var/li

Re: [Pharo-users] Pharo 7 license question

2017-09-21 Thread Herby Vojčík
Jimmie Houchin wrote: You say it defends rights. It just removed my right to license my software how I wish. The only way to preserve that option is to not use GPL software. Now, should I choose to not use GPL software. How has that benefited anybody in the GPL ecosystem? Not at all. We like to

Re: [Pharo-users] Gofer loads wrong version?

2017-09-14 Thread Herby Vojčík
stephan wrote: On 12-09-17 21:58, Herby Vojčík wrote: Bump. Can you pls help me with how to load proper version / finding what is wrong here? As shown in replies, it loads two versions (eg. it seems it loads everything it finds in the repo). Herby Herby Vojčík wrote: Hello! As I need to

Re: [Pharo-users] Gofer loads wrong version?

2017-09-13 Thread Herby Vojčík
Guillermo Polito wrote: On Mon, Sep 4, 2017 at 1:01 PM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Hello! As I need to load specific version of Glorp with my fix, and I did not find out how to force-override it in my baseline, I tried to load it post-the-baseline via

Re: [Pharo-users] Gofer loads wrong version?

2017-09-12 Thread Herby Vojčík
Bump. Can you pls help me with how to load proper version / finding what is wrong here? As shown in replies, it loads two versions (eg. it seems it loads everything it finds in the repo). Herby Herby Vojčík wrote: Hello! As I need to load specific version of Glorp with my fix, and I did

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread Herby Vojčík
Stephane Ducasse wrote: Hi Pierce Ng How different is the API from Seaside? Because I would like to use it. I like to think modularly :) Stef Maybe porting Silk and let it write to some simulated DOM could be interesting as well... :-) https://lolg.it/herby/silk Herby On Mon, Sep 11, 20

[Pharo-users] Glorp: problem with DictionaryMapping with "data objects"

2017-09-07 Thread Herby Vojčík
Hello! I have the problem with mapping dictionary of key to simple data-holding object (two integers) work. Glorp DictionaryMapping dicriminates between mapping a simple value (#dictionaryFrom: String to: Integer), where things work as assumed (having two fields in a table, one for key, one f

Re: [Pharo-users] Gofer loads wrong version?

2017-09-04 Thread Herby Vojčík
Herby Vojčík wrote: Hello! As I need to load specific version of Glorp with my fix, and I did not find out how to force-override it in my baseline, I tried to load it post-the-baseline via Gofer: (Gofer new smalltalkhubUser: 'DBXTalk' project: 'Glorp') package: 

[Pharo-users] Gofer loads wrong version?

2017-09-04 Thread Herby Vojčík
Hello! As I need to load specific version of Glorp with my fix, and I did not find out how to force-override it in my baseline, I tried to load it post-the-baseline via Gofer: (Gofer new smalltalkhubUser: 'DBXTalk' project: 'Glorp') package: 'Glorp'; version: 'Glorp-HerbyVojcik.127'; lo

Re: [Pharo-users] new chapter on double dispatch for new book :)

2017-08-23 Thread Herby Vojčík
Maybe in general sumWithFoo: => addSelfToFoo: to make clues clearer. Herby

Re: [Pharo-users] new chapter on double dispatch for new book :)

2017-08-23 Thread Herby Vojčík
Stephane Ducasse wrote: feedback is welcome Good reading 2.4 "is to explicit type check" - "is to explicitly type check", or - "is to do explicit type check" s/we will haveother/we will have other/ s/distabilizing/destabilizing/ "In fact we just to tell the receiver ,,,"

Re: [Pharo-users] Glorp: Is there some way to do insert-or-update?

2017-08-23 Thread Herby Vojčík
jtuchel wrote: Herby, as Esteban already said, UPSERT doesn't make any sense in an ORM. It I don't know... I just create new object (with same "primary key") and register it (yes, I know I get an error - maybe I should be able to set the policy to "overwrite" and it would makes sense; or not

[Pharo-users] Glorp: Is there some way to do insert-or-update?

2017-08-22 Thread Herby Vojčík
Hello! Is there some way to do insert-or-update operation (that is, roughly, to be able to register an object with possibly existing primary key(s) and let it be written regardless? Thanks, Herby P.S.: Use case - I want to have log of USER-DEVICE pairing with last timestamp and 'enabled' fi

Re: [Pharo-users] How do I get a list of all packages in the catalog with a 6.0 tag?

2017-08-21 Thread Herby Vojčík
. I had the impression I found out where catalog is held / updated using that, but it was few weeks ago. Herby On 8/21/17, Herby Vojčík wrote: H. Hirzel wrote: Hello On 8/17/17, bdurin wrote: Maybe something like having the list of all packages and their version included in a given image

Re: [Pharo-users] How do I get a list of all packages in the catalog with a 6.0 tag?

2017-08-21 Thread Herby Vojčík
H. Hirzel wrote: This helps me to get at the information for a particular singular entry. I am looking for a list of all catalog entries in 6.0. Ah, sorry. Did not get the question properly. On 8/21/17, Herby Vojčík wrote: H. Hirzel wrote: Hello On 8/17/17, bdurin wrote: Maybe

Re: [Pharo-users] How do I get a list of all packages in the catalog with a 6.0 tag?

2017-08-21 Thread Herby Vojčík
H. Hirzel wrote: Hello On 8/17/17, bdurin wrote: Maybe something like having the list of all packages and their version included in a given image version on https://pharo.org could be useful. What is the code snippet to get a list of all packages with a '6.0' tag and their description? The

Re: [Pharo-users] Where is the installation log? Installing FileMan into Pharo 6.0-60510, which is 6.1.

2017-08-21 Thread Herby Vojčík
H. Hirzel wrote: Hello I wanted to install the FileMan package through the catalog into Pharo 6.0-60510 (a.k.a 6.1). FileMan is library used by Cuis Smalltalk and also available for other Smalltalk dialects - http://wiki.squeak.org/squeak/6333. There is a FileMan entry in the catalog, but no

Re: [Pharo-users] [ANN] Pharo wiki , is here

2017-08-20 Thread Herby Vojčík
Stephane Ducasse wrote: I added some links to books and blogs. On Sat, Aug 19, 2017 at 11:20 PM, Dimitris Chloupis wrote: I also turned it to be published as a webpage, its can be viewed from this link https://squarebracketassociates.github.io/PharoWiki/ Seems like another github-account-

Re: [Pharo-users] What is proper fix for this?

2017-08-17 Thread Herby Vojčík
Esteban Lorenzano wrote: On 17 Aug 2017, at 10:35, Guillermo Polito mailto:guillermopol...@gmail.com>> wrote: Just a thought out of thin air: wasn't filetree supposed to provide common ground for this kind of scenarios? If we shared a single repository in github that would save us a lot of dis

Re: [Pharo-users] What is proper fix for this?

2017-08-17 Thread Herby Vojčík
Guillermo Polito wrote: On Thu, Aug 17, 2017 at 10:32 AM, Esteban Lorenzano mailto:esteba...@gmail.com>> wrote: > On 17 Aug 2017, at 10:18, Herby Vojčík mailto:he...@mailbox.sk>> wrote: > > jtuc...@objektfabrik.de <mailto:jtuc...@objektfabrik.

Re: [Pharo-users] What is proper fix for this?

2017-08-17 Thread Herby Vojčík
jtuc...@objektfabrik.de wrote: Herby, my ccomments were not meant to say you are not competent enough to fix Glorp. I know you have been active as the maintainer of Amber for quite a while now and know you are an experienced Smalltalker. So this is not Not really. Actually, never did any produ

Re: [Pharo-users] What is proper fix for this? (was: Re: Big Glorp problem w/ type coercion, pls help)

2017-08-16 Thread Herby Vojčík
Esteban A. Maringolo wrote: Herby, Please apologize I can't take the time to look into your code. Np, if someone eventually will. I granted you write access to , could you upload your latter version to it? Uploaded. Regards! Esteban A. Maringol

Re: [Pharo-users] What is proper fix for this? (was: Re: Big Glorp problem w/ type coercion, pls help)

2017-08-16 Thread Herby Vojčík
Herby Vojčík wrote: Esteban Lorenzano wrote: but if he is using Glorp for Pharo and cincom takes the bug and fixes it, it still will not hit Pharo until someone ports it. So, while I have literally no idea of what Herby is asking for, I encourage to keep discussion also here, then solution can

Re: [Pharo-users] What is proper fix for this? (was: Re: Big Glorp problem w/ type coercion, pls help)

2017-08-16 Thread Herby Vojčík
k wrote: BTW I took the latter way (as method tries to be as optimized as possible), it is in http://smalltalkhub.com/#!/~herby/Glorp/versions/Glorp-HerbyVojcik.127, consider merging in. Thanks. Herby Vojčík wrote: Hello! I think I found the culprit. Few methods posted here: Mapping&g

[Pharo-users] What is proper fix for this? (was: Re: Big Glorp problem w/ type coercion, pls help)

2017-08-15 Thread Herby Vojčík
ribute getValueFrom: each)]] ifFalse: [self convertedDbValueOf: (attribute getValueFrom: anObject)]]]. ^(anExpression get: self attribute name) get: aSymbol withArguments: (Array with: value) Or something completely different? Thanks, Herby Herby Vojčík wrote: Hello! I encountered a p

Re: [Pharo-users] Big Glorp problem w/ type coercion, pls help

2017-08-14 Thread Herby Vojčík
Agent ] Is it true (should this work)? Herby Herby Vojčík wrote: Esteban A. Maringolo wrote: Do you have the code somewhere loadable? Reading chunk is something I do only when everything crashed :D Esteban A. Maringolo I will attach the .st files... not loadable as its in private on-prem

Re: [Pharo-users] Big Glorp problem w/ type coercion, pls help

2017-08-14 Thread Herby Vojčík
-03:00 Herby Vojčík: Hello! I encountered a problem with OneToOneMapping and type coercion. When writing data, thing work; when reading data, the right child of relation fails to convert. I tried everything possible to inject converters (even subclassing GlorpBlobType), but to no avail

[Pharo-users] Big Glorp problem w/ type coercion, pls help

2017-08-14 Thread Herby Vojčík
Hello! I encountered a problem with OneToOneMapping and type coercion. When writing data, thing work; when reading data, the right child of relation fails to convert. I tried everything possible to inject converters (even subclassing GlorpBlobType), but to no avail. RelationExpression passes

Re: [Pharo-users] Honest question, new to ecosystem: are Glorp and Garage alive?

2017-08-14 Thread Herby Vojčík
. Thus, this is complicated to maintain 4 backends for 3 platforms, on 2 pharo versions, if you don't eat your own food. Now, documentation may be outdated :) On Mon, Aug 14, 2017 at 11:57 AM, Herby Vojčík mailto:he...@mailbox.sk>> wrote: Hello! Without wanting to offend anyone,

  1   2   >