Re: [Pharo-users] Configuring iceberg on Windows

2018-09-06 Thread Andrei Stebakov
I was trying debug it a little to see if how iceberg uses the path to
private and public keys. When I mangle the path to something non-existant I
got no error saying that the path is wrong. What would be a way to verify
that iceberg actually uses the keys?

On Thu, Sep 6, 2018, 16:35 Peter Uhnak  wrote:

> >  I need to get past that error since I get it even when I install Moose
> via Metacello.
>
> Note that Moose depends on projects that are on github, so if it is
> misconfigured, then it will fail.
> Maybe you can provide both the ssh key and regular key/password? I use
> both and so far I had no problems on neither Windows nor Linux.
>
> Peter
>
> On Thu, Sep 6, 2018 at 6:28 PM Ben Coman  wrote:
>
>> On Thu, 6 Sep 2018 at 21:58, Andrei Stebakov  wrote:
>>
>>> I followed the tutorial
>>>
>>
>> Hi Andrei,  Could you be specific about which tutorial that was.  I'm not
>> sure if I'm just getting by on old knowledge
>> or the much improved Iceberg UI and its good to refresh myself with such
>> tutorials.
>>
>>
>>
>>> and provided IceCredentialProvider with ssh settings, also put the same
>>> settings in Settings-Tools-Software Configuration Management.
>>> It seems not to have any effect since when I try to create a repo using
>>> SSH it gives the error "Failed to connect to github.com".
>>> I need to get past that error since I get it even when I install Moose
>>> via Metacello.
>>> Do I need to add ssh-agent as well? If yes, why do we need to provide
>>> public/private key paths with IceCredentialProvider?
>>>
>>
>> In the past I had github+ssh working on Windows with "Use custom SSH
>> keys" enabled"
>> but then a while ago it stopped for "no apparent reason"(TM).
>> Co-incidentally a few hours ago I solved my problem.
>>
>> I went back to basics checking from command line per...
>> https://help.github.com/articles/testing-your-ssh-connection/
>> and found  ```ssh -T g...@github.com``` erroring with...
>> "@@@
>> @ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
>> @@@
>> Permissions for 'C:\\Users\\Ben/.ssh/id_rsa' are too open.
>> It is required that your private key files are NOT accessible by others.
>> This private key will be ignored.
>> Load key "C:\\Users\\Ben/.ssh/id_rsa": bad permissions
>> g...@github.com: Permission denied (publickey).
>>
>> I right-clicked on my folder C:\Users\ben\.ssh
>> then Properties > Security > Advanced > Disable Inheritance
>> then removed SYSTEM, Administrator & Administrators leaving only BEN.
>>
>> Then this worked...
>> C:>ssh -T g...@github.com
>> Hi bencoman! You've successfully authenticated, but GitHub does not
>> provide shell access.
>>
>> And now also worked from within Pharo (with "Use custom SSH keys"
>> enabled")
>>
>> HTH, cheers -ben
>>
>


[Pharo-users] Configuring iceberg on Windows

2018-09-06 Thread Andrei Stebakov
I followed the tutorial and provided IceCredentialProvider with ssh
settings, also put the same settings in Settings-Tools-Software
Configuration Management.
It seems not to have any effect since when I try to create a repo using SSH
it gives the error "Failed to connect to github.com".
I need to get past that error since I get it even when I install Moose via
Metacello.
Do I need to add ssh-agent as well? If yes, why do we need to provide
public/private key paths with IceCredentialProvider?


Re: [Pharo-users] Secure socket timeouts on Windows

2018-09-05 Thread Andrei Stebakov
Hi, Chris. No it consistently fails with any number of retries.

On Wed, Sep 5, 2018, 10:08 Chris Cunningham  wrote:

> HI Andrei,
> if you get this timeout, shut it down and immediately try again, does it
> work that time?
> I ask, because I've been having similar issues - except at home, not at
> work, and I'm using Squeak (but same base VM, roughly).  And windows as
> well.
>
> For me, I seem to get a timeout roughly 1/2 of the time; if I cancel out
> and try again, it almost always works then.  At times this is a very
> reliable pattern - at others, not so much.
>
> Just saying, you aren't quite alone.
>
> -cbc
>
> On Wed, Sep 5, 2018 at 6:41 AM Andrei Stebakov 
> wrote:
>
>> This issue has been bugging me for a while now, but I hesitated to post
>> it since I can't explain what's going on.
>> Every time I do any operation in Pharo related to secure socket
>> connection I have strange socket timeout even though I can connect to the
>> URL using web browser.
>> This time I was trying to install latest pharo 7.0 via pharo installer
>> and I got ZdcSecureSocketStream waitForDataFor: hang over trying to
>> download https://files.pharo.org/get-files/70/pharo-win-stable.zip
>> I can paste that link in Chrome and it can download it for me no problem
>> also I can download it using curl.
>>
>> This issue only happens to me at work, when I do the same from home I
>> don't see this issue.
>> Anyway, I am at a loss here and wonder how can I debug and fix this
>> issue.
>> Wondering if something like that happened for you guys.
>>
>


[Pharo-users] Secure socket timeouts on Windows

2018-09-05 Thread Andrei Stebakov
This issue has been bugging me for a while now, but I hesitated to post it
since I can't explain what's going on.
Every time I do any operation in Pharo related to secure socket connection
I have strange socket timeout even though I can connect to the URL using
web browser.
This time I was trying to install latest pharo 7.0 via pharo installer and
I got ZdcSecureSocketStream waitForDataFor: hang over trying to download
https://files.pharo.org/get-files/70/pharo-win-stable.zip
I can paste that link in Chrome and it can download it for me no problem
also I can download it using curl.

This issue only happens to me at work, when I do the same from home I don't
see this issue.
Anyway, I am at a loss here and wonder how can I debug and fix this issue.
Wondering if something like that happened for you guys.


Re: [Pharo-users] ssh client for Pharo

2018-08-29 Thread Andrei Stebakov
I upgraded Pharo to latest 6.1. Now the prevouos issue is gone. Now I have
SSL socket related problem when it connects to secure git repo. Let me see
if it's only on Windows

On Aug 29, 2018 10:09, "Andrei Stebakov"  wrote:

Hi, Denis

It fails to load in Pharo 6.1 with a message "Could not resolve:
BaselineOfLibSSH2".
Does it work for you?

Thanks!
Andrei

On Wed, Aug 29, 2018, 05:47 Denis Kudriashov  wrote:

> Hi Andrei.
> Look at this: https://github.com/dionisiydk/libssh2-pharo-bindings
> It is very initial support but it was working in my tests
>
>
> ср, 29 авг. 2018 г., 2:19 Andrei Stebakov :
>
>> Is there an ssh client for Pharo just like net-ssh for Ruby?
>>
>> Thanks!
>>
>


Re: [Pharo-users] ssh client for Pharo

2018-08-29 Thread Andrei Stebakov
Hi, Denis

It fails to load in Pharo 6.1 with a message "Could not resolve:
BaselineOfLibSSH2".
Does it work for you?

Thanks!
Andrei

On Wed, Aug 29, 2018, 05:47 Denis Kudriashov  wrote:

> Hi Andrei.
> Look at this: https://github.com/dionisiydk/libssh2-pharo-bindings
> It is very initial support but it was working in my tests
>
>
> ср, 29 авг. 2018 г., 2:19 Andrei Stebakov :
>
>> Is there an ssh client for Pharo just like net-ssh for Ruby?
>>
>> Thanks!
>>
>


[Pharo-users] ssh client for Pharo

2018-08-28 Thread Andrei Stebakov
Is there an ssh client for Pharo just like net-ssh for Ruby?

Thanks!


Re: [Pharo-users] Some facts and figures about pharo gaining momentum?

2018-07-06 Thread Andrei Stebakov
Smalltalk started
> mainly as research project. Lisp as a purely theoretical mathematical
> concept.
>
> So my advice is not to worry much about it, just find the libraries that
> people need in Pharo and that will be far more than enough to convince them
> to take the plunge. Available project in any language are nothing more than
> a tiny fraction of the language's potential, the big hot potatoes are
> performance (none likes slow code), libraries (everyone is lazy) and
> documentation (none likes to decipher other's people code).
>
> People don't hide the fact that they use Pharo , afterall that's the whole
> idea of this mailing list to share your success and failures with Pharo and
> ask questions about it.
>
> But you don't mean much to sell a language , afterall one thing all
> language popularity websites agree on is that almost 50% of the code out
> there is written for tiny project in languages none cares about. I am
> talking about languages like Pharo that end up having a popularity way
> bellow 0.01% . There is a reason we have thousands of languages to choose
> from and it ain't popular projects ;)
>
> On Thu, Jul 5, 2018 at 10:01 PM Andrei Stebakov 
> wrote:
>
>> Thanks, Kilon for such an insightful answer. Lots of stuff to think about.
>> I guess what I was waiting for is some success stories (which we already
>> have on the website), but coming from you guys as consultants saying
>> something like: "oh, this year I have more projects than last year" or "now
>> my network of Smalltalk aware customers is that much bigger" or "a friend
>> of mine who works in company XYZ says that after some consideration they
>> started to use Pharo for micro services instead of Java".
>> I know, it's hard to measure the success level in numbers (other than the
>> example you gave with github stats), more like the word of mouth kind of
>> thing.
>> Another metrix could be the subscription rate for this mailing list,
>> since chances are that most of new Pharo users would be on it and the
>> acceleration of that rate would definitely say something about Pharo
>> success. Wondering if we have access to that data.
>> Thanks for your insight!
>>
>> On Thu, Jul 5, 2018, 13:20 kilon.alios  wrote:
>>
>>> You can check the github repos, github allows you to browse project
>>> repos per
>>> language. You could probably automate that from Pharo, use the Github API
>>> like Iceberg does fetch the names of all projects using smalltalk
>>> language
>>> and check to see which ones have commits the last year and then make a
>>> nice
>>> graph using Roassal. You could do that also periodically to track the
>>> growth
>>> in popularity.
>>>
>>> Github is the center place for everything open source, Pharo and Squeak
>>> are
>>> more tricky because they each have their own hosting sites squeaksource
>>> for
>>> Squeak and smalltalkhub for Pharo but I think most modern Pharo projects
>>> seem to have made the jump to github too.
>>>
>>> But even with Smalltalkhub there should be some API lurking in there
>>> although I suspect it will be undocumented and a lot trickier to get it
>>> working.
>>>
>>> Another source is Google trends, but I dont think google search is very
>>> reliable because smalltalk is a regular word that is not 99.99% of the
>>> time
>>> used to mean the programming language, so you will have to use terms like
>>> "smalltalk programming" (this is the primary method that the TIOBE INDEX
>>> is
>>> using for all its languages) but even that wont be very reliable.
>>>
>>> Technically speaking language popularity is a can of worms, there is a
>>> huge
>>> disagreement even which are the TOP 10 most popular programming languages
>>> right now. Even the TOP 3 can widely fluctuate. So as you can imagine
>>> keeping track of something as unpopular as smalltalk is going to be
>>> quite a
>>> challange.
>>>
>>> For example "everyone" seem to agree that there is very little reason
>>> nowdays to use C over C++, cause "C++ is a much better C with objects" ,
>>> on
>>> the other hand language popularity websites seem to disagree with
>>> "everyone"
>>> because not only they have C in top 10 but in many cases its more popular
>>> than C++ and to put more insult to the sin they also show it shrinking
>>> way
>>> slower than C++ in popularity. Such an example is TIOBE
>>>
>>> https://www.tiobe.com/tiobe-index/
>>> https://www.tiobe.com/tiobe-index/c/
>>> https://www.tiobe.com/tiobe-index/cplusplus/
>>>
>>> If we cannot even agree with C vs C++ imagine Smalltalk vs The REST.
>>>
>>> But I think Github API is a good place to start. The worst place to
>>> start is
>>> asking people for opinion and reading blog posts , hackernews, twitter,
>>> facebook or whatever else "hipster" thing, especially stackoverflow and
>>> medium.
>>>
>>> In the end language popularity is a hopeless cause. In theory everyone
>>> cares, in practice, none does.
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>
>>>


Re: [Pharo-users] Some facts and figures about pharo gaining momentum?

2018-07-05 Thread Andrei Stebakov
Thanks, Kilon for such an insightful answer. Lots of stuff to think about.
I guess what I was waiting for is some success stories (which we already
have on the website), but coming from you guys as consultants saying
something like: "oh, this year I have more projects than last year" or "now
my network of Smalltalk aware customers is that much bigger" or "a friend
of mine who works in company XYZ says that after some consideration they
started to use Pharo for micro services instead of Java".
I know, it's hard to measure the success level in numbers (other than the
example you gave with github stats), more like the word of mouth kind of
thing.
Another metrix could be the subscription rate for this mailing list, since
chances are that most of new Pharo users would be on it and the
acceleration of that rate would definitely say something about Pharo
success. Wondering if we have access to that data.
Thanks for your insight!

On Thu, Jul 5, 2018, 13:20 kilon.alios  wrote:

> You can check the github repos, github allows you to browse project repos
> per
> language. You could probably automate that from Pharo, use the Github API
> like Iceberg does fetch the names of all projects using smalltalk language
> and check to see which ones have commits the last year and then make a nice
> graph using Roassal. You could do that also periodically to track the
> growth
> in popularity.
>
> Github is the center place for everything open source, Pharo and Squeak are
> more tricky because they each have their own hosting sites squeaksource for
> Squeak and smalltalkhub for Pharo but I think most modern Pharo projects
> seem to have made the jump to github too.
>
> But even with Smalltalkhub there should be some API lurking in there
> although I suspect it will be undocumented and a lot trickier to get it
> working.
>
> Another source is Google trends, but I dont think google search is very
> reliable because smalltalk is a regular word that is not 99.99% of the time
> used to mean the programming language, so you will have to use terms like
> "smalltalk programming" (this is the primary method that the TIOBE INDEX is
> using for all its languages) but even that wont be very reliable.
>
> Technically speaking language popularity is a can of worms, there is a huge
> disagreement even which are the TOP 10 most popular programming languages
> right now. Even the TOP 3 can widely fluctuate. So as you can imagine
> keeping track of something as unpopular as smalltalk is going to be quite a
> challange.
>
> For example "everyone" seem to agree that there is very little reason
> nowdays to use C over C++, cause "C++ is a much better C with objects" , on
> the other hand language popularity websites seem to disagree with
> "everyone"
> because not only they have C in top 10 but in many cases its more popular
> than C++ and to put more insult to the sin they also show it shrinking way
> slower than C++ in popularity. Such an example is TIOBE
>
> https://www.tiobe.com/tiobe-index/
> https://www.tiobe.com/tiobe-index/c/
> https://www.tiobe.com/tiobe-index/cplusplus/
>
> If we cannot even agree with C vs C++ imagine Smalltalk vs The REST.
>
> But I think Github API is a good place to start. The worst place to start
> is
> asking people for opinion and reading blog posts , hackernews, twitter,
> facebook or whatever else "hipster" thing, especially stackoverflow and
> medium.
>
> In the end language popularity is a hopeless cause. In theory everyone
> cares, in practice, none does.
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] Microservices using Pharo

2018-06-27 Thread Andrei Stebakov
Thank you guys for your insiteful answers. I wish we could have some kind
of article summarizing those approaches so that next devs wouldn't have to
reinvent the wheel but start with some tried approach and maybe improve it.
As I only scratched the surface learning Pharo, I may have some naive
questions.
Does the fact (fact?) that Pharo uses green threads (not native os threads)
impact the performance?
With two Pharo images running in parallel on two core system, how does it
handle multiple requests at a time? There must always be some unblocked
thread waiting for connections and delegating requests to request handlers
in different green threads (using fork operation). Is my understanding
correct?
So even if one of those threads has to wait on a long IO operation (say
from DB2) that shouldn't impact the performance of other handlers?
I think that in most cases the CPU time for request processing is minal as
the bottleneck is in lengthy IO operations , DB waits and calling external
REST-ful services. So two images on two cores should be enough to handle
hundreds of simultaneous requests since most of the times the threads will
wait on external operations, not using the local CPU.
Please let me know if this summary that I got from this thread makes sense.
Yes, I fully agree that using docker pharo containers under some load
balancing is the way to go.

On Wed, Jun 27, 2018, 04:10 jtuc...@objektfabrik.de 
wrote:

> Norbert,
>
>
> thanks for your insighgts, explanations and thoughts. It is good to read
> and learn from people who are a step or two ahead...
>
> Am 27.06.18 um 09:31 schrieb Norbert Hartl:
>
> Joachim,
>
> Am 27.06.2018 um 07:42 schrieb jtuc...@objektfabrik.de:
>
> Norbert,
>
> Am 26.06.18 um 21:41 schrieb Norbert Hartl:
>
>
>
> Am 26.06.2018 um 20:44 schrieb Andrei Stebakov :
>
> What would be an example for load balancer for Pharo images? Can we run
> multiple images on the same server or for the sake of balancing
> configuration we can only run one image per server?
>
> There are a lot of possibilities. You can start multiple images on
> different ports and use nginx with an upstream rule to load balance. I
> would recommend using docker for spawning multiple images on a host. Again
> with nginx as frontend load balancer. The point is that you can have at
> least twice as muh inages running then you have CPU cores. And of course a
> lot more.
>
>
> the last time I checked nginx, the load balancing and sticky session stuff
> was not available in the free edition. So I guess you either pay for nginx
> (which I think is good) or you know some free 3d party addons...
>
> there is the upstream module which provides load balancing. But you are
> right I think sticky sessions is not part of it. The closest you get IIRC
> is IP based hashing.
>
> I see.
>
>
> I wonder what exactly the benefit of Docker is in that game? On our
> servers we run 10 images on 4 cores with HT (8 virtual cores) and very
> rareley have real performance problems. We use Glorp, so there is a lot of
> SQL queriing going on for quite basic things already. So my guess would be
> that your "2 images per core"  are conservative and leave air for even a
> third one, depending on all the factors already discussed here.
>
>
> Docker is pretty nice. You can have the exact same deployment artefact
> started multiple times. I used tools like daemontools, monit, etc. before
> but starting the image, assigning ports etc. you have to do yourself which
> is cumbersome and I don’t like any of those tools anymore. If you created
> your docker image you can start that multiple times because networking is
> virtualized all images can have the same port serving e.g.
>
>
> oh, I see. This is a plus. We're not using any containers and have to
> provide individual configurations for each image we start up. Works well,
> not too many moving parts (our resources are very limited) and we try to
> keep things as simple as possible. As long as we can live with providing a
> statically sized pool of machines and images and load doesn't vary too
> much, this is not too bad. But once you need to dynamically add and remove
> images for coping with load peeks and lows, our approach will probably
> become cumbersome and complicated.
> OTOH, I guess usind Docker just means solving the same problems on another
> level - but I guess there are lots of toosl in the Container area that can
> help here (like the trafik thing mentioned in another thread).
>
>
> I think talking about performance these days is not easy. Modern machines
> are so fast that you need a lot of users before you experience any
> problems.
>
> ... depending on your usage of resources. As I said, we're using SQL
> heavily because of the way G

Re: [Pharo-users] Microservices using Pharo

2018-06-26 Thread Andrei Stebakov
I guess for multiple images on the same server we need to spawn off images
listening on different ports.

On Tue, Jun 26, 2018, 14:44 Andrei Stebakov  wrote:

> What would be an example for load balancer for Pharo images? Can we run
> multiple images on the same server or for the sake of balancing
> configuration we can only run one image per server?
>
> On Tue, Jun 26, 2018, 14:32 Andrei Stebakov  wrote:
>
>> Thanks, guys! I really appreciate your input!
>>
>> On Tue, Jun 26, 2018, 11:16 Sven Van Caekenberghe  wrote:
>>
>>>
>>>
>>> > On 26 Jun 2018, at 15:52, Norbert Hartl  wrote:
>>> >
>>> >
>>> >
>>> >> Am 26.06.2018 um 15:41 schrieb Sven Van Caekenberghe :
>>> >>
>>> >>
>>> >>
>>> >>> On 26 Jun 2018, at 15:24, Norbert Hartl  wrote:
>>> >>>
>>> >>>
>>> >>>
>>> >>>> Am 26.06.2018 um 14:52 schrieb Andrei Stebakov >> >:
>>> >>>>
>>> >>>> Does anyone use Pharo for Miro services? I heard about Seaside and
>>> Teapot, just was wondering if Pharo can handle multiple simultaneous
>>> requests and if it can, where it reaches the limit.
>>> >>>
>>> >>> I use it extensively. I use Zinc-REST package to offer services. The
>>> answer how much it can handle in parallel is hard to answer. For this you
>>> need to tell what you are about to do. But a rule of thumb is not to exceed
>>> 5 parallel tasks that are working at the same time. But a lot of tasks have
>>> wait times while accessing another HTTP service, a database, a filesystem
>>> etc. For this you can easily go up to 10 I guess.
>>> >>>
>>> >>> But these numbers are more of a gut feeling then something scientific
>>> >>>
>>> >>> Norbert
>>> >>
>>> >> A single ZnServer instance on a single image can handle thousands of
>>> requests per seconds (local network, very small payload, low concurrency).
>>> On a modern multi core / multi processor machine with lots of memory you
>>> can 10s if not 100s of Pharo image under a load balancer, provided you
>>> either do not share state or use high performance state sharing technology
>>> - this is the whole point of REST.
>>> >>
>>> >> Of course, larger payloads, more complex operations, real world
>>> networking, etc will slow you down. And it is very easy to make some
>>> architectural or implementation error somewhere that makes everything slow.
>>> As they say, YMMV.
>>> >>
>>> >
>>> > I meant it regarding what a single image can do. And it can do
>>> thousands of requests only if there is no I/O involved and I doubt this
>>> will be a very useful service to build if it does not any additional I/O.
>>> Still I would try not to have more than 5 req/s on a single image before
>>> scaling up. The only number I can report is that 2 images serving 30
>>> requests/s while using mongodb are not noticable in system stats.
>>> >
>>> > Norbert
>>>
>>> That is what I meant: it is an upper limit of an empty REST call, the
>>> rest depends on the application and the situation. If your operation takes
>>> seconds to complete, the request rate will go way down.
>>>
>>> But with in memory operations and/or caching, responses can be quite
>>> fast (sub 100 ms).
>>>
>>>
>>>


Re: [Pharo-users] Microservices using Pharo

2018-06-26 Thread Andrei Stebakov
What would be an example for load balancer for Pharo images? Can we run
multiple images on the same server or for the sake of balancing
configuration we can only run one image per server?

On Tue, Jun 26, 2018, 14:32 Andrei Stebakov  wrote:

> Thanks, guys! I really appreciate your input!
>
> On Tue, Jun 26, 2018, 11:16 Sven Van Caekenberghe  wrote:
>
>>
>>
>> > On 26 Jun 2018, at 15:52, Norbert Hartl  wrote:
>> >
>> >
>> >
>> >> Am 26.06.2018 um 15:41 schrieb Sven Van Caekenberghe :
>> >>
>> >>
>> >>
>> >>> On 26 Jun 2018, at 15:24, Norbert Hartl  wrote:
>> >>>
>> >>>
>> >>>
>> >>>> Am 26.06.2018 um 14:52 schrieb Andrei Stebakov > >:
>> >>>>
>> >>>> Does anyone use Pharo for Miro services? I heard about Seaside and
>> Teapot, just was wondering if Pharo can handle multiple simultaneous
>> requests and if it can, where it reaches the limit.
>> >>>
>> >>> I use it extensively. I use Zinc-REST package to offer services. The
>> answer how much it can handle in parallel is hard to answer. For this you
>> need to tell what you are about to do. But a rule of thumb is not to exceed
>> 5 parallel tasks that are working at the same time. But a lot of tasks have
>> wait times while accessing another HTTP service, a database, a filesystem
>> etc. For this you can easily go up to 10 I guess.
>> >>>
>> >>> But these numbers are more of a gut feeling then something scientific
>> >>>
>> >>> Norbert
>> >>
>> >> A single ZnServer instance on a single image can handle thousands of
>> requests per seconds (local network, very small payload, low concurrency).
>> On a modern multi core / multi processor machine with lots of memory you
>> can 10s if not 100s of Pharo image under a load balancer, provided you
>> either do not share state or use high performance state sharing technology
>> - this is the whole point of REST.
>> >>
>> >> Of course, larger payloads, more complex operations, real world
>> networking, etc will slow you down. And it is very easy to make some
>> architectural or implementation error somewhere that makes everything slow.
>> As they say, YMMV.
>> >>
>> >
>> > I meant it regarding what a single image can do. And it can do
>> thousands of requests only if there is no I/O involved and I doubt this
>> will be a very useful service to build if it does not any additional I/O.
>> Still I would try not to have more than 5 req/s on a single image before
>> scaling up. The only number I can report is that 2 images serving 30
>> requests/s while using mongodb are not noticable in system stats.
>> >
>> > Norbert
>>
>> That is what I meant: it is an upper limit of an empty REST call, the
>> rest depends on the application and the situation. If your operation takes
>> seconds to complete, the request rate will go way down.
>>
>> But with in memory operations and/or caching, responses can be quite fast
>> (sub 100 ms).
>>
>>
>>


Re: [Pharo-users] Microservices using Pharo

2018-06-26 Thread Andrei Stebakov
Thanks, guys! I really appreciate your input!

On Tue, Jun 26, 2018, 11:16 Sven Van Caekenberghe  wrote:

>
>
> > On 26 Jun 2018, at 15:52, Norbert Hartl  wrote:
> >
> >
> >
> >> Am 26.06.2018 um 15:41 schrieb Sven Van Caekenberghe :
> >>
> >>
> >>
> >>> On 26 Jun 2018, at 15:24, Norbert Hartl  wrote:
> >>>
> >>>
> >>>
> >>>> Am 26.06.2018 um 14:52 schrieb Andrei Stebakov :
> >>>>
> >>>> Does anyone use Pharo for Miro services? I heard about Seaside and
> Teapot, just was wondering if Pharo can handle multiple simultaneous
> requests and if it can, where it reaches the limit.
> >>>
> >>> I use it extensively. I use Zinc-REST package to offer services. The
> answer how much it can handle in parallel is hard to answer. For this you
> need to tell what you are about to do. But a rule of thumb is not to exceed
> 5 parallel tasks that are working at the same time. But a lot of tasks have
> wait times while accessing another HTTP service, a database, a filesystem
> etc. For this you can easily go up to 10 I guess.
> >>>
> >>> But these numbers are more of a gut feeling then something scientific
> >>>
> >>> Norbert
> >>
> >> A single ZnServer instance on a single image can handle thousands of
> requests per seconds (local network, very small payload, low concurrency).
> On a modern multi core / multi processor machine with lots of memory you
> can 10s if not 100s of Pharo image under a load balancer, provided you
> either do not share state or use high performance state sharing technology
> - this is the whole point of REST.
> >>
> >> Of course, larger payloads, more complex operations, real world
> networking, etc will slow you down. And it is very easy to make some
> architectural or implementation error somewhere that makes everything slow.
> As they say, YMMV.
> >>
> >
> > I meant it regarding what a single image can do. And it can do thousands
> of requests only if there is no I/O involved and I doubt this will be a
> very useful service to build if it does not any additional I/O. Still I
> would try not to have more than 5 req/s on a single image before scaling
> up. The only number I can report is that 2 images serving 30 requests/s
> while using mongodb are not noticable in system stats.
> >
> > Norbert
>
> That is what I meant: it is an upper limit of an empty REST call, the rest
> depends on the application and the situation. If your operation takes
> seconds to complete, the request rate will go way down.
>
> But with in memory operations and/or caching, responses can be quite fast
> (sub 100 ms).
>
>
>


[Pharo-users] Microservices using Pharo

2018-06-26 Thread Andrei Stebakov
Does anyone use Pharo for Miro services? I heard about Seaside and Teapot,
just was wondering if Pharo can handle multiple simultaneous requests and
if it can, where it reaches the limit.


[Pharo-users] Some facts and figures about pharo gaining momentum?

2018-06-25 Thread Andrei Stebakov
Hi!

Do we as a community have some proofs in numbers that the popularity of
smalltalk grows?
I saw some articles that have some proofs that smalltalk is on the rise,
but for my presentation I'd like to back it up with some numbers if
possible.
You know, it's one thing when you preach to the choir but quite another
when you talk to some die-hard Java or JavaScript devs!
Any ideas about some great convincing material is also very welcome!


Re: [Pharo-users] Nice catchy video for covering Pharo capability

2018-06-20 Thread Andrei Stebakov
Thank you guys, the videos are amazing!

On Wed, Jun 20, 2018 at 3:37 PM, Alexandre Bergel 
wrote:

> Hi!
>
> Some videos:
>
> https://vimeo.com/226505915
> https://vimeo.com/143858200
> https://vimeo.com/141916068
> https://vimeo.com/127707899
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> > On Jun 19, 2018, at 6:13 PM, Andrei Stebakov 
> wrote:
> >
> > Could you suggest a nice video for a presentation to showcase Pharo as a
> nice language for data visualization?
> >
> > Thanks,
> > Andrei
> >
>
>
>


[Pharo-users] Nice catchy video for covering Pharo capability

2018-06-19 Thread Andrei Stebakov
Could you suggest a nice video for a presentation to showcase Pharo as a
nice language for data visualization?

Thanks,
Andrei


[Pharo-users] Nice Pharo teaser in English?

2018-06-18 Thread Andrei Stebakov
I remember there used to be a nice Pharo teaser video at the top of
pharo.org which had some catchy images for data visualization etc.
Now all I can see is this link https://www.dailymotion.com/video/x3qedvo
and it's in French.
Could someone point me to the old teaser I am referring to?

Thanks!
Andrei


Re: [Pharo-users] [ANN] Iceberg v1.0.0

2018-05-30 Thread Andrei Stebakov
Hi Esteban

The reason I was asking how to update from 0.7.? is because if I take the
same script and execute it after plugging in the 1.0.1 version my Pharo
image freezes. I can try from a fresh Pharo 6.1 image and see if I get the
same problem.

On Wed, May 30, 2018, 01:52 Esteban Lorenzano  wrote:

> hi,
>
> On 30 May 2018, at 01:59, Andrei Stebakov  wrote:
>
> On Pharo 7.0, Windows 10 when I try to clone from pillar-markup/pillar on
> Windows 10, it gives me an error "the filename or extension is too long”
>
>
> this is more a problem of pillar being in filetree format than iceberg.
> there is no clear way to fix that other than migrate to tonel.
>
> but you can try to get smaller paths, like putting your sources in
> C:\pillar
>
> Also I got a couple of questions:
> - How do I check the version of Iceberg
>
>
> not much way this days, since iceberg is installed outside iceberg.
>
> - How can I update from Iceberg 0.7.1 on Pharo 6.1 (installed using
> instructions from https://github.com/pharo-vcs/iceberg) to latest Iceberg
> 1.0.1?
>
>
> The instructions there are titled “updating iceberg” and “for Pharo 6.1”
> so yes :)
> the only difference is you have to change “0.7.?” with “1.0.?” (I need to
> update that).
>
> Esteban
>
>
> Thanks!
> Andrei
>
> On Tue, May 29, 2018 at 5:30 AM, Guillermo Polito <
> guillermopol...@gmail.com> wrote:
>
>> Hi all,
>>
>> Time for a new Iceberg update, that will be available in the next Pharo
>> build. This time, there are lots of cleanups and enhancements. On the big
>> highlights:
>>
>> - Tonel migration plugin is available in the "Other menu item"
>> - Tests are green on 64 bits! (meaning iceberg can be safely used in 64
>> bits).
>>
>> Thanks to everybody that participated in reviewing, opening/closing
>> issues or even fixing a typo!
>>
>> # Documentation
>>
>> Just as a reminder, here you have a link to iceberg's wiki, convering
>> some info like terminology, how to help us, and so on...
>>
>> https://github.com/pharo-vcs/iceberg/wiki
>>
>> # And some videos ;)
>>
>> - Branching and merging https://www.youtube.com/watch?v=DBzkjwABPEI
>> - Loading a Baseline https://youtu.be/brUHEOr-p_E
>> - Contributing to Iceberg https://youtu.be/yGr5HvVWM0M
>>
>> # Changes Log
>>
>> https://github.com/pharo-vcs/iceberg/releases/tag/v1.0.0
>>
>> Enjoy, Guille
>>
>> PS, detailed changes log below:
>>
>> # Cleanups
>>
>> #819 Fix tooltip typo in settings
>> #800 Iceberg should be removed from the catalogue
>> #801 Remove not referenced packages
>> #803 Correct some lints in tests
>> #806 Bad repair options when local repository is missing
>> #725 Remove and clean old UI
>> #794 Some classes should use category "utilities" instead of "utility"
>> #791 Begin to remove old UI
>> #734 Begin to remove old UI
>> #576 Add link to github/gitlab ssh instructions
>>
>> # Enhancements
>>
>> #776 Upgrade to Commander 0.6.2  dependencies
>> #765 Add command to copy SHA from history window
>> #793 Add the commit message to history window
>> #785 Metacello conflicts are not handled Metacello Integration
>>
>> # Bug fixes
>>
>> #771 IceTipRemoveFromRepositoryPackageCommand >> execute is not
>> implemented
>> #748 Code subdirectory in empty repository
>> #767 Error while pulling with renamed packages
>> #814 Moving extension from a package removes extended class
>> #807 When we do not have the right to push on a report we get an Error
>> instead of the pop up!
>> #768 Inverse merge preview shows wrong diff
>> #784 Pulling from a non existing remote branch fails#810 #removePackage:
>> should recursively delete files
>>
>> # Documentation
>>
>> #702 Create screencast - How to contribute to iceberg
>> #774 Copy Wiki contribution page to pharo-project/pharo wiki
>>
>> # Infrastructure
>>
>> #761 Make tests run in 64 bits Pharo 7
>>
>>
>
>


Re: [Pharo-users] [ANN] Iceberg v1.0.0

2018-05-29 Thread Andrei Stebakov
On Pharo 7.0, Windows 10 when I try to clone from pillar-markup/pillar on
Windows 10, it gives me an error "the filename or extension is too long"
Also I got a couple of questions:
- How do I check the version of Iceberg
- How can I update from Iceberg 0.7.1 on Pharo 6.1 (installed using
instructions from https://github.com/pharo-vcs/iceberg) to latest Iceberg
1.0.1?

Thanks!
Andrei

On Tue, May 29, 2018 at 5:30 AM, Guillermo Polito  wrote:

> Hi all,
>
> Time for a new Iceberg update, that will be available in the next Pharo
> build. This time, there are lots of cleanups and enhancements. On the big
> highlights:
>
> - Tonel migration plugin is available in the "Other menu item"
> - Tests are green on 64 bits! (meaning iceberg can be safely used in 64
> bits).
>
> Thanks to everybody that participated in reviewing, opening/closing issues
> or even fixing a typo!
>
> # Documentation
>
> Just as a reminder, here you have a link to iceberg's wiki, convering some
> info like terminology, how to help us, and so on...
>
> https://github.com/pharo-vcs/iceberg/wiki
>
> # And some videos ;)
>
> - Branching and merging https://www.youtube.com/watch?v=DBzkjwABPEI
> - Loading a Baseline https://youtu.be/brUHEOr-p_E
> - Contributing to Iceberg https://youtu.be/yGr5HvVWM0M
>
> # Changes Log
>
> https://github.com/pharo-vcs/iceberg/releases/tag/v1.0.0
>
> Enjoy, Guille
>
> PS, detailed changes log below:
>
> # Cleanups
>
> #819 Fix tooltip typo in settings
> #800 Iceberg should be removed from the catalogue
> #801 Remove not referenced packages
> #803 Correct some lints in tests
> #806 Bad repair options when local repository is missing
> #725 Remove and clean old UI
> #794 Some classes should use category "utilities" instead of "utility"
> #791 Begin to remove old UI
> #734 Begin to remove old UI
> #576 Add link to github/gitlab ssh instructions
>
> # Enhancements
>
> #776 Upgrade to Commander 0.6.2  dependencies
> #765 Add command to copy SHA from history window
> #793 Add the commit message to history window
> #785 Metacello conflicts are not handled Metacello Integration
>
> # Bug fixes
>
> #771 IceTipRemoveFromRepositoryPackageCommand >> execute is not
> implemented
> #748 Code subdirectory in empty repository
> #767 Error while pulling with renamed packages
> #814 Moving extension from a package removes extended class
> #807 When we do not have the right to push on a report we get an Error
> instead of the pop up!
> #768 Inverse merge preview shows wrong diff
> #784 Pulling from a non existing remote branch fails#810 #removePackage:
> should recursively delete files
>
> # Documentation
>
> #702 Create screencast - How to contribute to iceberg
> #774 Copy Wiki contribution page to pharo-project/pharo wiki
>
> # Infrastructure
>
> #761 Make tests run in 64 bits Pharo 7
>
>


Re: [Pharo-users] [ANN] Iceberg v1.0.0

2018-05-29 Thread Andrei Stebakov
Is there support for HTTPS on Windows (or any plans to get it to work)?

On Tue, May 29, 2018 at 5:30 AM, Guillermo Polito  wrote:

> Hi all,
>
> Time for a new Iceberg update, that will be available in the next Pharo
> build. This time, there are lots of cleanups and enhancements. On the big
> highlights:
>
> - Tonel migration plugin is available in the "Other menu item"
> - Tests are green on 64 bits! (meaning iceberg can be safely used in 64
> bits).
>
> Thanks to everybody that participated in reviewing, opening/closing issues
> or even fixing a typo!
>
> # Documentation
>
> Just as a reminder, here you have a link to iceberg's wiki, convering some
> info like terminology, how to help us, and so on...
>
> https://github.com/pharo-vcs/iceberg/wiki
>
> # And some videos ;)
>
> - Branching and merging https://www.youtube.com/watch?v=DBzkjwABPEI
> - Loading a Baseline https://youtu.be/brUHEOr-p_E
> - Contributing to Iceberg https://youtu.be/yGr5HvVWM0M
>
> # Changes Log
>
> https://github.com/pharo-vcs/iceberg/releases/tag/v1.0.0
>
> Enjoy, Guille
>
> PS, detailed changes log below:
>
> # Cleanups
>
> #819 Fix tooltip typo in settings
> #800 Iceberg should be removed from the catalogue
> #801 Remove not referenced packages
> #803 Correct some lints in tests
> #806 Bad repair options when local repository is missing
> #725 Remove and clean old UI
> #794 Some classes should use category "utilities" instead of "utility"
> #791 Begin to remove old UI
> #734 Begin to remove old UI
> #576 Add link to github/gitlab ssh instructions
>
> # Enhancements
>
> #776 Upgrade to Commander 0.6.2  dependencies
> #765 Add command to copy SHA from history window
> #793 Add the commit message to history window
> #785 Metacello conflicts are not handled Metacello Integration
>
> # Bug fixes
>
> #771 IceTipRemoveFromRepositoryPackageCommand >> execute is not
> implemented
> #748 Code subdirectory in empty repository
> #767 Error while pulling with renamed packages
> #814 Moving extension from a package removes extended class
> #807 When we do not have the right to push on a report we get an Error
> instead of the pop up!
> #768 Inverse merge preview shows wrong diff
> #784 Pulling from a non existing remote branch fails#810 #removePackage:
> should recursively delete files
>
> # Documentation
>
> #702 Create screencast - How to contribute to iceberg
> #774 Copy Wiki contribution page to pharo-project/pharo wiki
>
> # Infrastructure
>
> #761 Make tests run in 64 bits Pharo 7
>
>


Re: [Pharo-users] Where do we go now ?

2018-04-20 Thread Andrei Stebakov
That would definitely help if Pharo shed some of its elitism with fancy
names.
Then it would have much more appeal for the masses (and definitely increase
popularity of Smalltalk) but it is the intent of the community, that's the
question.

On Fri, Apr 20, 2018 at 4:09 PM, Benoit St-Jean via Pharo-users <
pharo-users@lists.pharo.org> wrote:

>
>
> -- Forwarded message --
> From: Benoit St-Jean 
> To: pharo-users@lists.pharo.org
> Cc: "s...@clipperadams.com" 
> Bcc:
> Date: Fri, 20 Apr 2018 20:09:43 + (UTC)
> Subject: Re: [Pharo-users] Where do we go now ?
> I concur with Sean's comments.  The problem is not using names : the
> problem is for new users.
>
> A very quick look at what's in Pharo 7 shows the following names : Iceberg,
> Ombu, Calypso, Flashback, Nautilus, Renraku, Zodiac, Shift, Zinc, Hermes,
> Beacon, Cargo, Hermes, Opal, Shoreline, Epicea, Balloon, BlueInk,
> Commander, Fuel, Glamorous, Glamour, Gofer, Hiedra, Metacello, Moose, Ring,
> Rubric, Shout, Spec, etc...
>
> How many Pharo *users* (not regular contributors!) know what those
> tools/frameworks/packages do ???  Make the test and tell us how many out of
> 30 names you were able to identify correctly !
>
> Unless we *clearly* publicize/describe what those names are, there's no
> way in a thousand years you could tell that BlueInk is not a package
> dealing with fonts (that was my first guess) !
>
> Newcomers and (developers in general) expect a few things.  For instance,
> there's a gazillion UI frameworks out there and, most of the time, the name
> used for them is one of a famous painter.  VisualWorks had Chagall for
> instance.
>
> Or you'd expect some kind of hint from the name, e.g. XStreams,
> ScriptManager, RefactoringBrowser.
>
> Or somethings as simple as Regex, the regex package from Bykov.  Or
> Announcements from the same guy.
>
> Or names that reveals something from an etymology standpoint, e.g.
> TelePharo.
>
> The simple fact that someone had to create a file to describe all those
> names/projects/framework on GitHub tells us a lot (https://github.com/
> AdamSadovsky/pharo-family/blob/master/catalog.txt) !
>
> Unless we make it *EXTRA* clear and easily searchable and obvious what
> those names represent, it's just more confusion for the newcomer.
>
> Do you know what Celery is?  Probably not!  But if I ask you the same
> question for RabbitMQ, ActiveMQ, MQSeries, StormMQ, SnakeMQ, IronMQ,
> ZeroMQ, MQTT and MSMQ, you probably figured out it's related to message
> queues, right?  Well, Celery is also related to message queues...  See?
>
> There's nothing worse or more confusing than a bad/weird/unrelated name.
> For example, the biggest company in Canada is called "Canadian Tire".  If
> you think you're gonna end up in a place specialized in tires, you're off
> for a big surprise 
>
> On the other end of the spectrum, you have something like iTunes.
> Everybody knows iTunes.  And I guess, even if you didn't know, you can
> kinda easily guess it's related to music.  Your grandma might not exactly
> remember the name but she'll remember "Was it xTunes? zTunes? yTunes? It
> was something 'tunes', to music" !
>
> And comparing other "names" with Pharo names makes no sense.  Nike,
> Hibernate, Jenkins, Docker and Oracle cannot be compared to Epicea,
> BlueInk, Flashback and Opal.  They just don't have the same visibility and
> public exposure.  That is hopefully a problem that will vanish as Pharo
> gets more and more attention and users and gets known more and more.  But
> in the meantime, those names merely help us differentiate implementations
> of solutions, for us the *regulars*.
>
> Was it really that hard to replace the old workspace with Workspace2 or
> WhateverWorkspace ?  Or even better : get rid of the old Workspace and
> replace it with Playground while retaining the name "Workspace" ??? Did we
> really need to call it Playground and confuse every new Smalltalker out
> there that has seen the term "Workspace" for Dolphin, Smalltalk/X,
> VisualAge, VisualWorks, ObjectStudio, GNU Smalltalk, Amber, PharoJS,
> Smalltalk MT and every other Smalltalk around *EXCEPT* Pharo?
>
> Why are we trying to complicate things when we could just make it
> soo simple?
>
> Let's make it easy for **newcomers** to get their way around and know what
> the named tools/frameworks do.  Get rid of duplicate tools (do we need more
> than one kind of Inspector?  Do we need 2 compilers?  Do we need 8 Delay
> schedulers?  Do we need 2 system browsers? Do we need the duo
> Workspace/Playground) ?  Make these extra tools available somewhere it can
> be loaded from if a user *really* wants them in their image, but let's keep
> those OUT of the image!
>
>
>
> -
> Benoît St-Jean
> Yahoo! Messenger: bstjean
> Twitter: @BenLeChialeux
> Pinterest: benoitstjean
> Instagram: Chef_Benito
> IRC: lamneth
> Blogue: endormitoire.wordpress.com
> "A standpoint is an 

Re: [Pharo-users] [TechTalk] April 12: GIT with Iceberg

2018-04-13 Thread Andrei Stebakov
Can you make the video available online? Another question, is there a
tutorial on Iceberg?

On Thu, Apr 12, 2018, 03:10 Marcus Denker  wrote:

> This is today
>
> 5:00 PM - 7:00 PM (UTC+02:00)
>
> There is a calendar entry to download at:
> https://association.pharo.org/event-2797068
>
> > On 10 Apr 2018, at 16:34, Marcus Denker  wrote:
> >
> > Hi,
> >
> > There next TechTalk will be April 12: GIT with Iceberg
> >
> >   https://association.pharo.org/event-2797068
> >
> >
> > A regular chat about Pharo. Happens on Discord.
> >
> > The Tech talks are open to both members and non-members!
> >
> > Topic:  GIT with Iceberg. Demo of improved UI
> >
> > We will send an information to all subscribers some hours before the
> talk starts.
> >
> >
>
>
>


[Pharo-users] Dynamic shapes for RTEdgeBuilder

2018-04-02 Thread Andrei Stebakov
If I want to select edge shape (solid vs dashed line) based on the property
of the "to" element, what technique can I use?
Currently it looks like #shape method of RTEdgeBuilder only allows to
specify a singe shape for all edges.


[Pharo-users] Quick way to switch from playground to system browser

2018-04-02 Thread Andrei Stebakov
I wonder if there is a best practice for modifying code in you class in
system browser and testing the behavior in the playground.
The way I do it, I have to type the code, use the mouse to find and switch
to the playground and then execute some code in it.
Is there a more ergonomic way to modify/test the new code?


Re: [Pharo-users] Keeping packages up to date

2018-04-01 Thread Andrei Stebakov
Thank you!

On Sun, Apr 1, 2018, 14:00 Stephane Ducasse <stepharo.s...@gmail.com> wrote:

> Andrei
>
> if you need help we can help you.
>
> Stef
>
> On Sun, Apr 1, 2018 at 7:59 PM, Stephane Ducasse
> <stepharo.s...@gmail.com> wrote:
> > use metacello and iceberg or gitfiletree
> >
> > Stef
> >
> > On Sun, Apr 1, 2018 at 4:32 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> >> Exactly! I guess because there are so many ways to navigate around
> updating
> >> the package, I was lost :) Thank you guys for giving me some pointers,
> I'll
> >> try to learn them. I wonder, which one is the most promising and
> mainstream?
> >>
> >> On Sun, Apr 1, 2018, 08:58 <aglyn...@gmail.com> wrote:
> >>>
> >>> You can open the repository in the Monticello browser if it’s a
> >>> Metacello/Monticello repo, or use Iceberg with git if it’s a git repo
> in the
> >>> same manner you would with any other git project.  You can also open
> the
> >>> project in Versionner to get the latest version.
> >>>
> >>>
> >>>
> >>> As far as scripting it, that’s reasonably obvious if you look at the
> >>> Monticello or Versionner code itself.
> >>>
> >>>
> >>>
> >>> From: Pharo-users <pharo-users-boun...@lists.pharo.org> On Behalf Of
> >>> Andrei Stebakov
> >>> Sent: Saturday, March 31, 2018 7:14 PM
> >>> To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
> >>> Subject: [Pharo-users] Keeping packages up to date
> >>>
> >>>
> >>>
> >>> I wonder if there is a generic solution to keeping certain Pharo
> project
> >>> in sync with development tree.
> >>>
> >>> For example when I want to get latest Roassal I execute
> >>>
> >>> Gofer it
> >>>
> >>> smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
> >>>
> >>> package: 'Roassal2';
> >>>
> >>> package: 'Roassal2GT';
> >>>
> >>> package: 'Trachel';
> >>>
> >>> load.
> >>>
> >>>
> >>>
> >>> Also I wouldn't know this unless the maintainers (thanks Alexandre!) of
> >>> the project told me what script to execute to get the latest version.
> >>>
> >>> If I went to Project Catalog I can only get the stable version and if
> I go
> >>> and find Roassal2 it won't give me information how to get its latest
> >>> version.
> >>>
> >>>
> >>>
> >>> How would I get info about how to update, say Roassal given the script
> >>> above from some Roassal project public page?
> >>>
> >>> Talking about Roassal, if I go to
> >>> http://smalltalkhub.com/#!/~ObjectProfile/Roassal2/ page, it offers
> the
> >>> following script:
> >>>
> >>> Gofer it smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
> >>> configurationOf: 'Roassal2'; loadDevelopment
> >>>
> >>>
> >>>
> >>> Which is probably not exactly equal to the script above (or is it?).
> >>>
> >>>
> >>>
> >>> So, is there a generic way to get a latest version of some XYZ package?
> >>>
> >>> What do I need to learn to be able to get that information about any
> Pharo
> >>> project (other than asking the community)? Something similar to "git
> pull"
> >>> when you know the repository.
>
>


Re: [Pharo-users] Keeping packages up to date

2018-04-01 Thread Andrei Stebakov
Exactly! I guess because there are so many ways to navigate around updating
the package, I was lost :) Thank you guys for giving me some pointers, I'll
try to learn them. I wonder, which one is the most promising and mainstream?

On Sun, Apr 1, 2018, 08:58 <aglyn...@gmail.com> wrote:

> You can open the repository in the Monticello browser if it’s a
> Metacello/Monticello repo, or use Iceberg with git if it’s a git repo in
> the same manner you would with any other git project.  You can also open
> the project in Versionner to get the latest version.
>
>
>
> As far as scripting it, that’s reasonably obvious if you look at the
> Monticello or Versionner code itself.
>
>
>
> *From:* Pharo-users <pharo-users-boun...@lists.pharo.org> *On Behalf Of 
> *Andrei
> Stebakov
> *Sent:* Saturday, March 31, 2018 7:14 PM
> *To:* Any question about pharo is welcome <pharo-users@lists.pharo.org>
> *Subject:* [Pharo-users] Keeping packages up to date
>
>
>
> I wonder if there is a generic solution to keeping certain Pharo project
> in sync with development tree.
>
> For example when I want to get latest Roassal I execute
>
> Gofer it
>
> smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
>
> package: 'Roassal2';
>
> package: 'Roassal2GT';
>
> package: 'Trachel';
>
> load.
>
>
>
> Also I wouldn't know this unless the maintainers (thanks Alexandre!) of
> the project told me what script to execute to get the latest version.
>
> If I went to Project Catalog I can only get the stable version and if I go
> and find Roassal2 it won't give me information how to get its latest
> version.
>
>
>
> How would I get info about how to update, say Roassal given the script
> above from some Roassal project public page?
>
> Talking about Roassal, if I go to
> http://smalltalkhub.com/#!/~ObjectProfile/Roassal2/ page, it offers the
> following script:
>
> Gofer it smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
> configurationOf: 'Roassal2'; loadDevelopment
>
>
>
> Which is probably not exactly equal to the script above (or is it?).
>
>
>
> So, is there a generic way to get a latest version of some XYZ package?
>
> What do I need to learn to be able to get that information about any Pharo
> project (other than asking the community)? Something similar to "git pull"
> when you know the repository.
>


[Pharo-users] Keeping packages up to date

2018-03-31 Thread Andrei Stebakov
I wonder if there is a generic solution to keeping certain Pharo project in
sync with development tree.
For example when I want to get latest Roassal I execute
Gofer it
smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
package: 'Roassal2';
package: 'Roassal2GT';
package: 'Trachel';
load.

Also I wouldn't know this unless the maintainers (thanks Alexandre!) of the
project told me what script to execute to get the latest version.
If I went to Project Catalog I can only get the stable version and if I go
and find Roassal2 it won't give me information how to get its latest
version.

How would I get info about how to update, say Roassal given the script
above from some Roassal project public page?
Talking about Roassal, if I go to
http://smalltalkhub.com/#!/~ObjectProfile/Roassal2/ page, it offers the
following script:
Gofer it smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
configurationOf: 'Roassal2'; loadDevelopment

Which is probably not exactly equal to the script above (or is it?).

So, is there a generic way to get a latest version of some XYZ package?
What do I need to learn to be able to get that information about any Pharo
project (other than asking the community)? Something similar to "git pull"
when you know the repository.


Re: [Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-29 Thread Andrei Stebakov
Thanks, Alexandre
Looks like RTResizeableViewContextInteraction has no effect for the tree
that goes beyond the page.
On the other hand RTEmptyViewContextInteraction makes the tree that used to
be shrunk to fit in the page go beyond the page, as expected I guess.
So the RTResizeableViewContextInteraction doesn't work as expected (since
the expectation is to fit in the page as I understand)

On Wed, Mar 28, 2018, 13:56 Alexandre Bergel <alexandre.ber...@me.com>
wrote:

> I also stumbled upon RTHorizontalTreeLayout that works much better in
> terms of having more compact representation.
> What I found out though is that when I inspect the view sometimes it
> displays all the ellipses with their specified sizes and sometimes it
> shrinks the view to fit in the viewable area. Can't put my finger on what
> triggers the view be rendered with normal sized (doesn't fit the page) vs
> zoomed out (fits the page)
>
>
> Yes, you can have a look at Roassal2GT-Glamour-Roassal-Interaction
>
> Here are some examples. The default behavior is obtained by:
> -=-=-=-=-=-=-=-=-=
> b := RTMondrian new.
> b nodes: (1 to: 100).
> b layout grid.
> b view @ RTResizeableViewContextInteraction.
> b
> -=-=-=-=-=-=-=-=-=
>
> If you wish to not have any resize, then you can do:
> -=-=-=-=-=-=-=-=-=
> b := RTMondrian new.
> b nodes: (1 to: 100).
> b layout grid.
> b view @ RTEmptyViewContextInteraction.
> b
> -=-=-=-=-=-=-=-=-=
>
> The code is not clean at all. This is due to the limitation of
> GTInspector.
> Help is welcome on that front!
>
> Alexandre
>
>
> On Tue, Mar 27, 2018, 23:21 Alexandre Bergel <alexandre.ber...@me.com>
> wrote:
>
>> Alexandre, is there a way to display RTTreeLayout so that it would try to
>> fit elements in a more vertical fashion.
>> Let's say even if the parent node has 8 children it would try to arrange
>> them not in one long horizontal line (which depending on the width
>> of elements can be really wide),
>> but spread them more vertically, so they would be viewable on one page.
>> Or maybe I need to try another layout to reach that goal?
>>
>>
>> There is the horizontal tree layout that you may want to try.
>>
>> -=-=-=-=-=-=-=-=
>> b := RTMondrian new.
>> b shape circle.
>> b nodes: Collection withAllSubclasses.
>> b edges connectFrom: #superclass.
>> b normalizer normalizeSize: #numberOfMethods; normalizeColor:
>> #numberOfLinesOfCode.
>> b layout horizontalTree.
>> b
>> -=-=-=-=-=-=-=-=
>>
>>
>> Does it help?
>>
>> Cheers,
>> Alexandre
>>
>> On Fri, Mar 23, 2018 at 8:15 PM, Alexandre Bergel <
>> alexandre.ber...@me.com> wrote:
>>
>> > Thanks, Alexandre, it works!
>> > Also since I use RTView and RTEdgeBuilder I can use
>> > view @ RTDraggableView to achieve the “draggability"
>>
>> Yes! Glad to hear the problem is solved!
>>
>> Alexandre
>>
>> >
>> > On Mar 22, 2018 14:01, "Alexandre Bergel" <alexandre.ber...@me.com>
>> wrote:
>> > I see.
>> > Do you know you can drag and drop the background to scroll?
>> >
>> > You can also make the view zoomable, using the mouse wheel.
>> >
>> > Try this:
>> > -=-=-=-=-=-=-=-=-=
>> > b := RTMondrian new.
>> > b nodes: (RTObject withAllSubclasses).
>> > b edges connectFrom: #superclass.
>> > b layout radial.
>> > b build.
>> >
>> > b view @ RTZoomableView.
>> > RTHTML5Exporter new
>> >   directoryPathname: '/tmp';
>> >   export: b view.
>> >
>> > b view
>> > -=-=-=-=-=-=-=-=-=
>> >
>> > Alexandre
>> > --
>> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> > Alexandre Bergel  http://www.bergel.eu
>> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> >
>> >
>> >
>> >> On Mar 22, 2018, at 1:40 PM, Andrei Stebakov <lisper...@gmail.com>
>> wrote:
>> >>
>> >> Hi Alexandre
>> >>
>> >> I don't see how I can do without the scroll bars in HTML since the
>> node tree that I tender using RTTreeLayout has a big width and only 1/4 of
>> it fits in one page view.
>> >> Since I am building a web service I rely on rendering and serving the
>> view in HTML and without the scroll bars there is no way for me to view all
>> elements of the model in Chrome.
>> >>
>> >> On Mar 22, 2018 11:50, "Alexandre Bergel" <alexandre.ber...@me.com>
>> wrote:
>> >> Hi!
>> >>
>> >> Scroll bar are not exportable to HTML, as benefits in doing so are not
>> really apparent.
>> >> What would be the ideal behavior? Will removing scrollbars when
>> exporting to HTML sufficient for your need?
>> >>
>> >> Cheers,
>> >> Alexandre
>> >> --
>> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> >> Alexandre Bergel  http://www.bergel.eu
>> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> >>
>> >>
>> >>
>> >>> On Mar 22, 2018, at 11:20 AM, Andrei Stebakov <lisper...@gmail.com>
>> wrote:
>> >>>
>> >>> When I do
>> >>> v @ RTDoubleScrollBar.
>> >>> and then export to HTML
>> >>> the bars are rendered in the middle of HTML page and they don't
>> actually scroll.
>> >>> I checked in in Chrome and IE on windows. Could you guys take a look?
>> >>
>> >
>>
>>
>>
>>
>> 
>
>
>


Re: [Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-28 Thread Andrei Stebakov
Hi Alexandre

Thank you for your suggestion!
I also stumbled upon RTHorizontalTreeLayout that works much better in terms
of having more compact representation.
What I found out though is that when I inspect the view sometimes it
displays all the ellipses with their specified sizes and sometimes it
shrinks the view to fit in the viewable area. Can't put my finger on what
triggers the view be rendered with normal sized (doesn't fit the page) vs
zoomed out (fits the page)

On Tue, Mar 27, 2018, 23:21 Alexandre Bergel <alexandre.ber...@me.com>
wrote:

> Alexandre, is there a way to display RTTreeLayout so that it would try to
> fit elements in a more vertical fashion.
> Let's say even if the parent node has 8 children it would try to arrange
> them not in one long horizontal line (which depending on the width
> of elements can be really wide),
> but spread them more vertically, so they would be viewable on one page.
> Or maybe I need to try another layout to reach that goal?
>
>
> There is the horizontal tree layout that you may want to try.
>
> -=-=-=-=-=-=-=-=
> b := RTMondrian new.
> b shape circle.
> b nodes: Collection withAllSubclasses.
> b edges connectFrom: #superclass.
> b normalizer normalizeSize: #numberOfMethods; normalizeColor:
> #numberOfLinesOfCode.
> b layout horizontalTree.
> b
> -=-=-=-=-=-=-=-=
>
>
> Does it help?
>
> Cheers,
> Alexandre
>
> On Fri, Mar 23, 2018 at 8:15 PM, Alexandre Bergel <alexandre.ber...@me.com
> > wrote:
>
> > Thanks, Alexandre, it works!
> > Also since I use RTView and RTEdgeBuilder I can use
> > view @ RTDraggableView to achieve the “draggability"
>
> Yes! Glad to hear the problem is solved!
>
> Alexandre
>
> >
> > On Mar 22, 2018 14:01, "Alexandre Bergel" <alexandre.ber...@me.com>
> wrote:
> > I see.
> > Do you know you can drag and drop the background to scroll?
> >
> > You can also make the view zoomable, using the mouse wheel.
> >
> > Try this:
> > -=-=-=-=-=-=-=-=-=
> > b := RTMondrian new.
> > b nodes: (RTObject withAllSubclasses).
> > b edges connectFrom: #superclass.
> > b layout radial.
> > b build.
> >
> > b view @ RTZoomableView.
> > RTHTML5Exporter new
> >   directoryPathname: '/tmp';
> >   export: b view.
> >
> > b view
> > -=-=-=-=-=-=-=-=-=
> >
> > Alexandre
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >> On Mar 22, 2018, at 1:40 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> >>
> >> Hi Alexandre
> >>
> >> I don't see how I can do without the scroll bars in HTML since the node
> tree that I tender using RTTreeLayout has a big width and only 1/4 of it
> fits in one page view.
> >> Since I am building a web service I rely on rendering and serving the
> view in HTML and without the scroll bars there is no way for me to view all
> elements of the model in Chrome.
> >>
> >> On Mar 22, 2018 11:50, "Alexandre Bergel" <alexandre.ber...@me.com>
> wrote:
> >> Hi!
> >>
> >> Scroll bar are not exportable to HTML, as benefits in doing so are not
> really apparent.
> >> What would be the ideal behavior? Will removing scrollbars when
> exporting to HTML sufficient for your need?
> >>
> >> Cheers,
> >> Alexandre
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >>> On Mar 22, 2018, at 11:20 AM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> >>>
> >>> When I do
> >>> v @ RTDoubleScrollBar.
> >>> and then export to HTML
> >>> the bars are rendered in the middle of HTML page and they don't
> actually scroll.
> >>> I checked in in Chrome and IE on windows. Could you guys take a look?
> >>
> >
>
>
>
>
>


[Pharo-users] RTLegendBuilder onDemand doesn't popup in html

2018-03-27 Thread Andrei Stebakov
Just wanted to report that when I add a legend to RTView, it works as
expected when I ispect the view.
When I export it to HTML, it shows the node, but neither mouse clicking nor
hovering bring up the popup.
Could you take a look?


Re: [Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-26 Thread Andrei Stebakov
Alexandre, is there a way to display RTTreeLayout so that it would try to
fit elements in a more vertical fashion.
Let's say even if the parent node has 8 children it would try to arrange
them not in one long horizontal line (which depending on the width of
elements can be really wide),
but spread them more vertically, so they would be viewable on one page.
Or maybe I need to try another layout to reach that goal?

On Fri, Mar 23, 2018 at 8:15 PM, Alexandre Bergel <alexandre.ber...@me.com>
wrote:

> > Thanks, Alexandre, it works!
> > Also since I use RTView and RTEdgeBuilder I can use
> > view @ RTDraggableView to achieve the “draggability"
>
> Yes! Glad to hear the problem is solved!
>
> Alexandre
>
> >
> > On Mar 22, 2018 14:01, "Alexandre Bergel" <alexandre.ber...@me.com>
> wrote:
> > I see.
> > Do you know you can drag and drop the background to scroll?
> >
> > You can also make the view zoomable, using the mouse wheel.
> >
> > Try this:
> > -=-=-=-=-=-=-=-=-=
> > b := RTMondrian new.
> > b nodes: (RTObject withAllSubclasses).
> > b edges connectFrom: #superclass.
> > b layout radial.
> > b build.
> >
> > b view @ RTZoomableView.
> > RTHTML5Exporter new
> >   directoryPathname: '/tmp';
> >   export: b view.
> >
> > b view
> > -=-=-=-=-=-=-=-=-=
> >
> > Alexandre
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >> On Mar 22, 2018, at 1:40 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> >>
> >> Hi Alexandre
> >>
> >> I don't see how I can do without the scroll bars in HTML since the node
> tree that I tender using RTTreeLayout has a big width and only 1/4 of it
> fits in one page view.
> >> Since I am building a web service I rely on rendering and serving the
> view in HTML and without the scroll bars there is no way for me to view all
> elements of the model in Chrome.
> >>
> >> On Mar 22, 2018 11:50, "Alexandre Bergel" <alexandre.ber...@me.com>
> wrote:
> >> Hi!
> >>
> >> Scroll bar are not exportable to HTML, as benefits in doing so are not
> really apparent.
> >> What would be the ideal behavior? Will removing scrollbars when
> exporting to HTML sufficient for your need?
> >>
> >> Cheers,
> >> Alexandre
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >>> On Mar 22, 2018, at 11:20 AM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> >>>
> >>> When I do
> >>> v @ RTDoubleScrollBar.
> >>> and then export to HTML
> >>> the bars are rendered in the middle of HTML page and they don't
> actually scroll.
> >>> I checked in in Chrome and IE on windows. Could you guys take a look?
> >>
> >
>
>
>


Re: [Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-23 Thread Andrei Stebakov
Thanks, Alexandre, it works!
Also since I use RTView and RTEdgeBuilder I can use
view @ RTDraggableView to achieve the "draggability"

On Mar 22, 2018 14:01, "Alexandre Bergel" <alexandre.ber...@me.com> wrote:

> I see.
> Do you know you can drag and drop the background to scroll?
>
> You can also make the view zoomable, using the mouse wheel.
>
> Try this:
> -=-=-=-=-=-=-=-=-=
> b := RTMondrian new.
> b nodes: (RTObject withAllSubclasses).
> b edges connectFrom: #superclass.
> b layout radial.
> b build.
>
> b view @ RTZoomableView.
> RTHTML5Exporter new
> directoryPathname: '/tmp';
> export: b view.
>
> b view
> -=-=-=-=-=-=-=-=-=
>
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Mar 22, 2018, at 1:40 PM, Andrei Stebakov <lisper...@gmail.com> wrote:
>
> Hi Alexandre
>
> I don't see how I can do without the scroll bars in HTML since the node
> tree that I tender using RTTreeLayout has a big width and only 1/4 of it
> fits in one page view.
> Since I am building a web service I rely on rendering and serving the view
> in HTML and without the scroll bars there is no way for me to view all
> elements of the model in Chrome.
>
> On Mar 22, 2018 11:50, "Alexandre Bergel" <alexandre.ber...@me.com> wrote:
>
>> Hi!
>>
>> Scroll bar are not exportable to HTML, as benefits in doing so are not
>> really apparent.
>> What would be the ideal behavior? Will removing scrollbars when exporting
>> to HTML sufficient for your need?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>> On Mar 22, 2018, at 11:20 AM, Andrei Stebakov <lisper...@gmail.com>
>> wrote:
>>
>> When I do
>> v @ RTDoubleScrollBar.
>> and then export to HTML
>> the bars are rendered in the middle of HTML page and they don't actually
>> scroll.
>> I checked in in Chrome and IE on windows. Could you guys take a look?
>>
>>
>>
>


Re: [Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-22 Thread Andrei Stebakov
Hi Alexandre

I don't see how I can do without the scroll bars in HTML since the node
tree that I tender using RTTreeLayout has a big width and only 1/4 of it
fits in one page view.
Since I am building a web service I rely on rendering and serving the view
in HTML and without the scroll bars there is no way for me to view all
elements of the model in Chrome.

On Mar 22, 2018 11:50, "Alexandre Bergel" <alexandre.ber...@me.com> wrote:

> Hi!
>
> Scroll bar are not exportable to HTML, as benefits in doing so are not
> really apparent.
> What would be the ideal behavior? Will removing scrollbars when exporting
> to HTML sufficient for your need?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Mar 22, 2018, at 11:20 AM, Andrei Stebakov <lisper...@gmail.com> wrote:
>
> When I do
> v @ RTDoubleScrollBar.
> and then export to HTML
> the bars are rendered in the middle of HTML page and they don't actually
> scroll.
> I checked in in Chrome and IE on windows. Could you guys take a look?
>
>
>


[Pharo-users] RTDoubleScrollBar is not rendered properly in html

2018-03-22 Thread Andrei Stebakov
When I do
v @ RTDoubleScrollBar.
and then export to HTML
the bars are rendered in the middle of HTML page and they don't actually
scroll.
I checked in in Chrome and IE on windows. Could you guys take a look?


Re: [Pharo-users] From Roassal RTView to html

2018-02-06 Thread Andrei Stebakov
I am using chrome on windows 10.

On Feb 5, 2018 19:51, "milton mamani" <akeval...@gmail.com> wrote:

> I do not have that error, what browser do you use? let me know if I can
> help you, to improve this
>
> 2018-02-05 18:41 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>
>> Now it takes me to the right page, thanks!
>> One small glitch though, looks like after mouse click the UI element gets
>> grabbed by the mouse as if I pressed "click and hold".
>> So the only way to dis-engage the mouse from the element is to refresh
>> the html page.
>>
>> On Mon, Feb 5, 2018 at 3:21 PM, milton mamani <akeval...@gmail.com>
>> wrote:
>>
>>> Could you please use this script
>>>
>>> Gofer it
>>> smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
>>> package: 'Roassal2';
>>> package: 'Roassal2GT';
>>> package: 'Trachel';
>>> load.
>>>
>>> 2018-02-05 17:12 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>
>>>> Updated roassal via:
>>>> Gofer new smalltalkhubUser: 'ObjectProfile'
>>>> project: 'Roassal';
>>>> package: 'ConfigurationOfRoassal';
>>>> load.
>>>> (Smalltalk at: #ConfigurationOfRoassal) load
>>>>
>>>> The problems is still the same: added ".html" suffix.
>>>>
>>>> On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <
>>>> alexandre.ber...@me.com> wrote:
>>>>
>>>>> Andrei, let us know how it goes
>>>>>
>>>>> Cheers
>>>>> Alexandre
>>>>>
>>>>> Envoyé de mon iPad
>>>>>
>>>>> Le 5 févr. 2018 à 16:51, milton mamani <akeval...@gmail.com> a écrit :
>>>>>
>>>>> Your need to load the last version of roassal, I change it that
>>>>>
>>>>> 2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>>>
>>>>>> Milton, thanks for the example.
>>>>>> I wonder why the link it takes me to has an appended ".html" at the
>>>>>> end like "https://twitter.com.html;?
>>>>>>
>>>>>> On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akeval...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Andrei,
>>>>>>>
>>>>>>> This is some example.
>>>>>>>
>>>>>>> Let me know if this is what you want.
>>>>>>>
>>>>>>> Run this in a playground with the last version of roassal:
>>>>>>>
>>>>>>>
>>>>>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>>>>> .=..=..=..=..=..=..=..=..=..=.
>>>>>>>
>>>>>>> b := RTMondrian new.
>>>>>>> b shape text color: [Color random].
>>>>>>> b nodes: { 'https://facebook.com'. 'https://twitter.com'. '
>>>>>>> https://plus.google.com' }.
>>>>>>> b build.
>>>>>>> link := RTLinkView new
>>>>>>> name: [ :model | model ] "#yourself";
>>>>>>> view: nil.
>>>>>>> b view elements @ link.
>>>>>>>
>>>>>>> RTHTML5Exporter new
>>>>>>> fileName: 'roassalfile.html';
>>>>>>> export: b view.
>>>>>>> b view
>>>>>>>
>>>>>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>>>>> .=..=..=..=..=..=..=..=..=..=.
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Milton
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>>>>>
>>>>>>>> I'll try to find if there is a way to embed a clickable
>>>>>>>> interaction.
>>>>>>>> Looks like since there is no response to the topic, I was wondering
>>>>>>>> if it's a non-pharo/roassal way to do it or it's just not so many 
>>>>>>>> people
>>>>>>>> tried it.
>>>>>>>>
>>>>>>>> On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <
>>>>>>>> alexandre.ber...@me.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Milton,
>>>>>>>>>
>>>>>>>>> Can you answer to Andrei please?
>>>>>>>>> I know in Roassal there is a way to embed clickable interaction.
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Alexandre
>>>>>>>>>
>>>>>>>>> Begin forwarded message:
>>>>>>>>>
>>>>>>>>> *From: *Andrei Stebakov <lisper...@gmail.com>
>>>>>>>>> *Subject: **[Pharo-users] From Roassal RTView to html*
>>>>>>>>> *Date: *February 2, 2018 at 1:53:50 PM GMT-3
>>>>>>>>> *To: *Any question about pharo is welcome <
>>>>>>>>> pharo-users@lists.pharo.org>
>>>>>>>>> *Reply-To: *Any question about pharo is welcome <
>>>>>>>>> pharo-users@lists.pharo.org>
>>>>>>>>>
>>>>>>>>> I was wondering if it's a good idea to expose some of the Roassal
>>>>>>>>> models via web (say Seaside) using the ability of Roassal to generate 
>>>>>>>>> HTML
>>>>>>>>> for the view.
>>>>>>>>> In this case how could I "spice up" the HTML making for example
>>>>>>>>> those ellipces or lablels clickabe so the click could take me to some 
>>>>>>>>> web
>>>>>>>>> page bases on the data in the model?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


Re: [Pharo-users] From Roassal RTView to html

2018-02-05 Thread Andrei Stebakov
Now it takes me to the right page, thanks!
One small glitch though, looks like after mouse click the UI element gets
grabbed by the mouse as if I pressed "click and hold".
So the only way to dis-engage the mouse from the element is to refresh the
html page.

On Mon, Feb 5, 2018 at 3:21 PM, milton mamani <akeval...@gmail.com> wrote:

> Could you please use this script
>
> Gofer it
> smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
> package: 'Roassal2';
> package: 'Roassal2GT';
> package: 'Trachel';
> load.
>
> 2018-02-05 17:12 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>
>> Updated roassal via:
>> Gofer new smalltalkhubUser: 'ObjectProfile'
>> project: 'Roassal';
>> package: 'ConfigurationOfRoassal';
>> load.
>> (Smalltalk at: #ConfigurationOfRoassal) load
>>
>> The problems is still the same: added ".html" suffix.
>>
>> On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.ber...@me.com
>> > wrote:
>>
>>> Andrei, let us know how it goes
>>>
>>> Cheers
>>> Alexandre
>>>
>>> Envoyé de mon iPad
>>>
>>> Le 5 févr. 2018 à 16:51, milton mamani <akeval...@gmail.com> a écrit :
>>>
>>> Your need to load the last version of roassal, I change it that
>>>
>>> 2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>
>>>> Milton, thanks for the example.
>>>> I wonder why the link it takes me to has an appended ".html" at the end
>>>> like "https://twitter.com.html;?
>>>>
>>>> On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akeval...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Andrei,
>>>>>
>>>>> This is some example.
>>>>>
>>>>> Let me know if this is what you want.
>>>>>
>>>>> Run this in a playground with the last version of roassal:
>>>>>
>>>>>
>>>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>>> .=..=..=..=..=..=..=..=..=.
>>>>>
>>>>> b := RTMondrian new.
>>>>> b shape text color: [Color random].
>>>>> b nodes: { 'https://facebook.com'. 'https://twitter.com'. '
>>>>> https://plus.google.com' }.
>>>>> b build.
>>>>> link := RTLinkView new
>>>>> name: [ :model | model ] "#yourself";
>>>>> view: nil.
>>>>> b view elements @ link.
>>>>>
>>>>> RTHTML5Exporter new
>>>>> fileName: 'roassalfile.html';
>>>>> export: b view.
>>>>> b view
>>>>>
>>>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>>> .=..=..=..=..=..=..=..=..=.
>>>>>
>>>>> Best regards,
>>>>> Milton
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>>>
>>>>>> I'll try to find if there is a way to embed a clickable interaction.
>>>>>> Looks like since there is no response to the topic, I was wondering
>>>>>> if it's a non-pharo/roassal way to do it or it's just not so many people
>>>>>> tried it.
>>>>>>
>>>>>> On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <
>>>>>> alexandre.ber...@me.com> wrote:
>>>>>>
>>>>>>> Hi Milton,
>>>>>>>
>>>>>>> Can you answer to Andrei please?
>>>>>>> I know in Roassal there is a way to embed clickable interaction.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Alexandre
>>>>>>>
>>>>>>> Begin forwarded message:
>>>>>>>
>>>>>>> *From: *Andrei Stebakov <lisper...@gmail.com>
>>>>>>> *Subject: **[Pharo-users] From Roassal RTView to html*
>>>>>>> *Date: *February 2, 2018 at 1:53:50 PM GMT-3
>>>>>>> *To: *Any question about pharo is welcome <
>>>>>>> pharo-users@lists.pharo.org>
>>>>>>> *Reply-To: *Any question about pharo is welcome <
>>>>>>> pharo-users@lists.pharo.org>
>>>>>>>
>>>>>>> I was wondering if it's a good idea to expose some of the Roassal
>>>>>>> models via web (say Seaside) using the ability of Roassal to generate 
>>>>>>> HTML
>>>>>>> for the view.
>>>>>>> In this case how could I "spice up" the HTML making for example
>>>>>>> those ellipces or lablels clickabe so the click could take me to some 
>>>>>>> web
>>>>>>> page bases on the data in the model?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


Re: [Pharo-users] From Roassal RTView to html

2018-02-05 Thread Andrei Stebakov
Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.ber...@me.com>
wrote:

> Andrei, let us know how it goes
>
> Cheers
> Alexandre
>
> Envoyé de mon iPad
>
> Le 5 févr. 2018 à 16:51, milton mamani <akeval...@gmail.com> a écrit :
>
> Your need to load the last version of roassal, I change it that
>
> 2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>
>> Milton, thanks for the example.
>> I wonder why the link it takes me to has an appended ".html" at the end
>> like "https://twitter.com.html;?
>>
>> On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akeval...@gmail.com>
>> wrote:
>>
>>> Hi Andrei,
>>>
>>> This is some example.
>>>
>>> Let me know if this is what you want.
>>>
>>> Run this in a playground with the last version of roassal:
>>>
>>>
>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>> .=..=..=..=..=..=..=..=.
>>>
>>> b := RTMondrian new.
>>> b shape text color: [Color random].
>>> b nodes: { 'https://facebook.com'. 'https://twitter.com'. '
>>> https://plus.google.com' }.
>>> b build.
>>> link := RTLinkView new
>>> name: [ :model | model ] "#yourself";
>>> view: nil.
>>> b view elements @ link.
>>>
>>> RTHTML5Exporter new
>>> fileName: 'roassalfile.html';
>>> export: b view.
>>> b view
>>>
>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>> .=..=..=..=..=..=..=..=.
>>>
>>> Best regards,
>>> Milton
>>>
>>>
>>>
>>>
>>>
>>> 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>>>
>>>> I'll try to find if there is a way to embed a clickable interaction.
>>>> Looks like since there is no response to the topic, I was wondering if
>>>> it's a non-pharo/roassal way to do it or it's just not so many people tried
>>>> it.
>>>>
>>>> On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <
>>>> alexandre.ber...@me.com> wrote:
>>>>
>>>>> Hi Milton,
>>>>>
>>>>> Can you answer to Andrei please?
>>>>> I know in Roassal there is a way to embed clickable interaction.
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>>
>>>>> Begin forwarded message:
>>>>>
>>>>> *From: *Andrei Stebakov <lisper...@gmail.com>
>>>>> *Subject: **[Pharo-users] From Roassal RTView to html*
>>>>> *Date: *February 2, 2018 at 1:53:50 PM GMT-3
>>>>> *To: *Any question about pharo is welcome <pharo-users@lists.pharo.org
>>>>> >
>>>>> *Reply-To: *Any question about pharo is welcome <
>>>>> pharo-users@lists.pharo.org>
>>>>>
>>>>> I was wondering if it's a good idea to expose some of the Roassal
>>>>> models via web (say Seaside) using the ability of Roassal to generate HTML
>>>>> for the view.
>>>>> In this case how could I "spice up" the HTML making for example those
>>>>> ellipces or lablels clickabe so the click could take me to some web page
>>>>> bases on the data in the model?
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>


Re: [Pharo-users] From Roassal RTView to html

2018-02-05 Thread Andrei Stebakov
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end
like "https://twitter.com.html;?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akeval...@gmail.com> wrote:

> Hi Andrei,
>
> This is some example.
>
> Let me know if this is what you want.
>
> Run this in a playground with the last version of roassal:
>
>
> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
> .=..=..=..=..=..=..=..=.
>
> b := RTMondrian new.
> b shape text color: [Color random].
> b nodes: { 'https://facebook.com'. 'https://twitter.com'. '
> https://plus.google.com' }.
> b build.
> link := RTLinkView new
> name: [ :model | model ] "#yourself";
> view: nil.
> b view elements @ link.
>
> RTHTML5Exporter new
> fileName: 'roassalfile.html';
> export: b view.
> b view
>
> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
> .=..=..=..=..=..=..=..=.
>
> Best regards,
> Milton
>
>
>
>
>
> 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lisper...@gmail.com>:
>
>> I'll try to find if there is a way to embed a clickable interaction.
>> Looks like since there is no response to the topic, I was wondering if
>> it's a non-pharo/roassal way to do it or it's just not so many people tried
>> it.
>>
>> On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.ber...@me.com
>> > wrote:
>>
>>> Hi Milton,
>>>
>>> Can you answer to Andrei please?
>>> I know in Roassal there is a way to embed clickable interaction.
>>>
>>> Cheers,
>>> Alexandre
>>>
>>> Begin forwarded message:
>>>
>>> *From: *Andrei Stebakov <lisper...@gmail.com>
>>> *Subject: **[Pharo-users] From Roassal RTView to html*
>>> *Date: *February 2, 2018 at 1:53:50 PM GMT-3
>>> *To: *Any question about pharo is welcome <pharo-users@lists.pharo.org>
>>> *Reply-To: *Any question about pharo is welcome <
>>> pharo-users@lists.pharo.org>
>>>
>>> I was wondering if it's a good idea to expose some of the Roassal models
>>> via web (say Seaside) using the ability of Roassal to generate HTML for the
>>> view.
>>> In this case how could I "spice up" the HTML making for example those
>>> ellipces or lablels clickabe so the click could take me to some web page
>>> bases on the data in the model?
>>>
>>>
>>>
>>
>


Re: [Pharo-users] From Roassal RTView to html

2018-02-05 Thread Andrei Stebakov
I'll try to find if there is a way to embed a clickable interaction.
Looks like since there is no response to the topic, I was wondering if it's
a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.ber...@me.com>
wrote:

> Hi Milton,
>
> Can you answer to Andrei please?
> I know in Roassal there is a way to embed clickable interaction.
>
> Cheers,
> Alexandre
>
> Begin forwarded message:
>
> *From: *Andrei Stebakov <lisper...@gmail.com>
> *Subject: **[Pharo-users] From Roassal RTView to html*
> *Date: *February 2, 2018 at 1:53:50 PM GMT-3
> *To: *Any question about pharo is welcome <pharo-users@lists.pharo.org>
> *Reply-To: *Any question about pharo is welcome <
> pharo-users@lists.pharo.org>
>
> I was wondering if it's a good idea to expose some of the Roassal models
> via web (say Seaside) using the ability of Roassal to generate HTML for the
> view.
> In this case how could I "spice up" the HTML making for example those
> ellipces or lablels clickabe so the click could take me to some web page
> bases on the data in the model?
>
>
>


[Pharo-users] From Roassal RTView to html

2018-02-02 Thread Andrei Stebakov
I was wondering if it's a good idea to expose some of the Roassal models
via web (say Seaside) using the ability of Roassal to generate HTML for the
view.
In this case how could I "spice up" the HTML making for example those
ellipces or lablels clickabe so the click could take me to some web page
bases on the data in the model?


Re: [Pharo-users] Lengthy operations block UI

2018-01-26 Thread Andrei Stebakov
Basically the test confirms that the long lasting scraping operation
returns the expected result . As you suggested let me take a look at Zn

On Jan 26, 2018 10:31, "Sven Van Caekenberghe" <s...@stfx.eu> wrote:

>
>
> > On 26 Jan 2018, at 16:16, Andrei Stebakov <lisper...@gmail.com> wrote:
> >
> > How do you handle forked operations from TestCase point of view, when
> the test expects a value to assert from an asynchronous operation?
>
> tests typically run sequential & synchronous, it is hard to work with them
> otherwise (to debug them, to handle there failures).
>
> it is of course possible to write much more complex tests, doing all kind
> of magic, but well, they are complex and require experience.
>
> many Zn test run http client against http servers, you could look there
> for examples.
>
> what is your exact scenario or use case ?
>
> > On Jan 25, 2018 10:41, "Andrei Stebakov" <lisper...@gmail.com> wrote:
> > Thanks, Sven, got it
> >
> > On Jan 25, 2018 10:36, "Sven Van Caekenberghe" <s...@stfx.eu> wrote:
> > Hi Andrei,
> >
> > > On 25 Jan 2018, at 16:26, Andrei Stebakov <lisper...@gmail.com> wrote:
> > >
> > > I have written some code that has a deep nested loop of calling
> ZnClient>>get.
> > > In the loop I also execute Transcript>>show but I can only see the
> transcript output after a few seconds when the loop is finished. During all
> that time while the loop is busy the UI is also unresponsive.
> > > Is there a way to execute code in some sort of asynchronous way?
> >
> > The problem is not specific to using ZnClient, it is with every loop you
> execute in the UI thread: the Transcript output is not updated (as it is
> the UI thread itself that has to do the drawing).
> >
> > For example, try
> >
> >   1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ].
> >
> > The solution is to run you long running code in another thread, like this
> >
> >   [ 1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ] ] fork.
> >
> > HTH,
> >
> > Sven
>
>
>


Re: [Pharo-users] Lengthy operations block UI

2018-01-26 Thread Andrei Stebakov
How do you handle forked operations from TestCase point of view, when the
test expects a value to assert from an asynchronous operation?

On Jan 25, 2018 10:41, "Andrei Stebakov" <lisper...@gmail.com> wrote:

> Thanks, Sven, got it
>
> On Jan 25, 2018 10:36, "Sven Van Caekenberghe" <s...@stfx.eu> wrote:
>
>> Hi Andrei,
>>
>> > On 25 Jan 2018, at 16:26, Andrei Stebakov <lisper...@gmail.com> wrote:
>> >
>> > I have written some code that has a deep nested loop of calling
>> ZnClient>>get.
>> > In the loop I also execute Transcript>>show but I can only see the
>> transcript output after a few seconds when the loop is finished. During all
>> that time while the loop is busy the UI is also unresponsive.
>> > Is there a way to execute code in some sort of asynchronous way?
>>
>> The problem is not specific to using ZnClient, it is with every loop you
>> execute in the UI thread: the Transcript output is not updated (as it is
>> the UI thread itself that has to do the drawing).
>>
>> For example, try
>>
>>   1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ].
>>
>> The solution is to run you long running code in another thread, like this
>>
>>   [ 1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ] ] fork.
>>
>> HTH,
>>
>> Sven
>>
>


Re: [Pharo-users] Lengthy operations block UI

2018-01-25 Thread Andrei Stebakov
Thanks, Sven, got it

On Jan 25, 2018 10:36, "Sven Van Caekenberghe" <s...@stfx.eu> wrote:

> Hi Andrei,
>
> > On 25 Jan 2018, at 16:26, Andrei Stebakov <lisper...@gmail.com> wrote:
> >
> > I have written some code that has a deep nested loop of calling
> ZnClient>>get.
> > In the loop I also execute Transcript>>show but I can only see the
> transcript output after a few seconds when the loop is finished. During all
> that time while the loop is busy the UI is also unresponsive.
> > Is there a way to execute code in some sort of asynchronous way?
>
> The problem is not specific to using ZnClient, it is with every loop you
> execute in the UI thread: the Transcript output is not updated (as it is
> the UI thread itself that has to do the drawing).
>
> For example, try
>
>   1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ].
>
> The solution is to run you long running code in another thread, like this
>
>   [ 1 to: 10 do: [ :i | Transcript crShow: i. 5 seconds wait ] ] fork.
>
> HTH,
>
> Sven
>


[Pharo-users] Lengthy operations block UI

2018-01-25 Thread Andrei Stebakov
I have written some code that has a deep nested loop of calling
ZnClient>>get.
In the loop I also execute Transcript>>show but I can only see the
transcript output after a few seconds when the loop is finished. During all
that time while the loop is busy the UI is also unresponsive.
Is there a way to execute code in some sort of asynchronous way?


[Pharo-users] Unresponsive/frozen Gui

2018-01-10 Thread Andrei Stebakov
I experience that issue once in a while when I leave the pharo 6.1 on
windows and when I come back to it the UI is frozen.
Now I download pharo with moose image and it started to happen again (BTW I
couldn't install Moose in my pharo 6.1 using Metacello command)
I wonder if it's something that happens to many users and I have to get
used to it (ui freezes) or there ways to avoid it.
Again, maybe it's a windows specific problem and most of the pharo users
are either on Mac or Linux.


Re: [Pharo-users] Examples of Garage for DB2

2018-01-05 Thread Andrei Stebakov
Thanks, Esteban, it works in my Pharo 6.1. Odbc connection works as well.

On Jan 5, 2018 6:28 AM, "Esteban Lorenzano" <esteba...@gmail.com> wrote:

this:

SmalltalkImage compilerClass: Compiler.
Metacello new
smalltalkhubUser: 'PharoExtras' project: 'ODBC';
configuration: 'ODBC';
version: #bleedingEdge;
load.
SmalltalkImage compilerClass: OpalCompiler.

loads for me (after proceeding a warning) in Pharo7.
no idea if it will work, but it *loads* :)

Esteban



On 4 Jan 2018, at 18:18, Andrei Stebakov <lisper...@gmail.com> wrote:

Thank you, Pierce

I got similar ffi exceptions when I call

Gofer new

  smalltalkhubUser: 'PharoExtras' project: 'ODBC';

  package: 'ConfigurationOfODBC'; load.

  (Smalltalk at: #ConfigurationOfODBC) load.

On Jan 4, 2018 11:41 AM, "Pierce Ng" <pie...@samadhiweb.com> wrote:

> On Wed, Jan 03, 2018 at 11:42:22AM -0500, Andrei Stebakov wrote:
> > I tried before to install odbc.n
>
> > Gofer new
> >   squeaksource: 'ODBC';
>
> Not Squeaksource. Load the version from Smalltalkhub:
>
>   Gofer new
> smalltalkhubUser: 'PharoExtras' project: 'ODBC';
> ...
>
> Hopefully this version works with or without Esteban's suggestion.
>
> > I still don't see how postgres can help but I'll give it another try.
>
> I suggested PostgreSQL FDW because I know PostgreSQL. If you are not
> familiar
> with PostgreSQL, then setting it up, setting up its FDW, and finally
> setting up
> programmatic access to PostgreSQL to get at the FDW data is probably more
> work
> than it is worth.
>
> Pierce
>
>
>


Re: [Pharo-users] Examples of Garage for DB2

2018-01-04 Thread Andrei Stebakov
Thank you, Pierce

I got similar ffi exceptions when I call

Gofer new

  smalltalkhubUser: 'PharoExtras' project: 'ODBC';

  package: 'ConfigurationOfODBC'; load.

  (Smalltalk at: #ConfigurationOfODBC) load.

On Jan 4, 2018 11:41 AM, "Pierce Ng" <pie...@samadhiweb.com> wrote:

> On Wed, Jan 03, 2018 at 11:42:22AM -0500, Andrei Stebakov wrote:
> > I tried before to install odbc.
> > Gofer new
> >   squeaksource: 'ODBC';
>
> Not Squeaksource. Load the version from Smalltalkhub:
>
>   Gofer new
> smalltalkhubUser: 'PharoExtras' project: 'ODBC';
> ...
>
> Hopefully this version works with or without Esteban's suggestion.
>
> > I still don't see how postgres can help but I'll give it another try.
>
> I suggested PostgreSQL FDW because I know PostgreSQL. If you are not
> familiar
> with PostgreSQL, then setting it up, setting up its FDW, and finally
> setting up
> programmatic access to PostgreSQL to get at the FDW data is probably more
> work
> than it is worth.
>
> Pierce
>
>
>


Re: [Pharo-users] Examples of Garage for DB2

2018-01-03 Thread Andrei Stebakov
I tried before to install odbc.
Gofer new
  squeaksource: 'ODBC';
  package: 'ConfigurationOfODBC'; load.
  (Smalltalk at: #ConfigurationOfODBC) load.

When I execute the code above I got an exception doesNotUnderstand:
#selector in RBParser>>externalFunctionDeclaration. Looks like currentScope
variable is not defined.
Also if I install ODBC from the catalog it also fails.
I still don't see how postgres can help but I'll give it another try.

On Jan 3, 2018 11:05, "Pierce Ng" <pie...@samadhiweb.com> wrote:

> On Wed, Jan 03, 2018 at 10:12:32AM -0500, Andrei Stebakov wrote:
> > Pierce, I couldn't find any smalltalk framework to work with DB2 at this
> > point. I couldn't also find any Pharo odbc library. That's why at this
> > point I am looking for any ideas how to connect to DB2 from Pharo.
>
> I suppose Instantiations VA Smalltalk will be able to talk to DB2. I'm
> quite
> sure Dolphin Smalltalk does ODBC too.
>
> Staying with Pharo, assuming you have known-working DB2 ODBC driver for
> Windows
> installed and ODBC to DB2 configured, try this:
>
>   http://smalltalkhub.com/#!/~PharoExtras/ODBC/
>
> Most recent commit was in Apr 2015 by Torsten 'switching to newer FFI'. So
> hopefully this works with Pharo 6.1.
>
> If the above doesn't work, but you know that the Windows DB2 ODBC driver
> works,
> then - I'm not being facetious - install PostgreSQL, set up PostgreSQL
> foreign
> data wrapper to ODBC, and talk to PostgreSQL using Pharo.
>
>http://www.postgresonline.com/journal/archives/372-ODBC-FDW-
> now-supports-9.5-and-9.6.html
>
> Or, set up Python's SQL Alchemy for DB2, install PostgreSQL, set up
> PostgreSQL
> foreign data wrapper to SQL Alchemy, and talk to PostgreSQL using Pharo.
>
>   https://wiki.postgresql.org/wiki/Foreign_data_wrappers
>   https://github.com/Kozea/Multicorn
>
> HTH.
>
>
>


Re: [Pharo-users] Examples of Garage for DB2

2018-01-03 Thread Andrei Stebakov
Pierce, I couldn't find any smalltalk framework to work with DB2 at this
point. I couldn't also find any Pharo odbc library. That's why at this
point I am looking for any ideas how to connect to DB2 from Pharo.

On Jan 3, 2018 09:52, "Pierce Ng" <pie...@samadhiweb.com> wrote:

> On Tue, Jan 02, 2018 at 02:10:03PM -0500, Andrei Stebakov wrote:
> > I downloaded Garage to my Pharo 6.1 on windows. But in Garage I only see
> > drivers for MySql, Postgres and Sqlite3.
> > Does it mean that for DB2 I should look somewhere else or there is a way
> to
> > create a connection for DB2 using existing Garage functionality?
>
> Garage uses the OpenDBX C language database access library underneath.
> Looking
> at https://linuxnetworks.de/doc/index.php?title=OpenDBX/Support, it
> doesn't
> look OpenDBX supports DB2.
>
> Does the Windows DB2 ODBC driver work? Does Pharo successfully use the ODBC
> driver to talk to DB2?
>
> Pierce
>
>


[Pharo-users] Examples of Garage for DB2

2018-01-02 Thread Andrei Stebakov
I need to be able to navigate DB2 connection.
As we discussed it a few days ago on the mailing list, the suggestion was
to use Garage.
I downloaded Garage to my Pharo 6.1 on windows. But in Garage I only see
drivers for MySql, Postgres and Sqlite3.
Does it mean that for DB2 I should look somewhere else or there is a way to
create a connection for DB2 using existing Garage functionality?
If there is a way, could you send some example?

Thanks!
Andrei


Re: [Pharo-users] Running headless on Windows

2017-12-28 Thread Andrei Stebakov
Pierce, I tried all of those "no display" options, the result is the same

On Dec 28, 2017 8:37 PM, "Pierce Ng" <pie...@samadhiweb.com> wrote:

> On Wed, Dec 27, 2017 at 04:58:39PM +0100, Cyril Ferlicot D. wrote:
> > On 12/27/2017 04:39 PM, Andrei Stebakov wrote:
> > > When I run Pharo 6.1 with -- headless option on Windows, it executes
> the
> > > eval command as expected but during the execution (which lasts 4 sec)
> it
> > > opens the Pharo GUI.
> > > Is it expected? I thought headless means that the whole execution would
> > > happen in the background
> >
> > I think that currently Pharo does not have a "real" headless. But I
> > heard there was work on that part for Pharo 7.
>
> I know OP is talking about Windows...  I've been running server
> applications on
> Linux without X11 with -vm-display-null and in-image RFBServer for access
> to
> Pharo over VNC. This works very well for me.
>
> I believe "real" headless means GUI is not run at all and therefore does
> not
> consume CPU cycles, which is very welcome. Meanwhile, maybe
> -vm-display-null
> works on Windows for scripting purposes?
>
> Pierce
>
>
>


Re: [Pharo-users] Running headless on Windows

2017-12-27 Thread Andrei Stebakov
Denis, I tried both. Running pharoconsole makes no difference. Same result
as running Pharo.exe

On Dec 27, 2017 10:47, "Denis Kudriashov" <dionisi...@gmail.com> wrote:

Hi.

I think there is separate PharoConsole.exe for headless on Windows

2017-12-27 16:39 GMT+01:00 Andrei Stebakov <lisper...@gmail.com>:

> When I run Pharo 6.1 with -- headless option on Windows, it executes the
> eval command as expected but during the execution (which lasts 4 sec) it
> opens the Pharo GUI.
> Is it expected? I thought headless means that the whole execution would
> happen in the background
>


[Pharo-users] Running headless on Windows

2017-12-27 Thread Andrei Stebakov
When I run Pharo 6.1 with -- headless option on Windows, it executes the
eval command as expected but during the execution (which lasts 4 sec) it
opens the Pharo GUI.
Is it expected? I thought headless means that the whole execution would
happen in the background


Re: [Pharo-users] How to connect to DB2

2017-12-26 Thread Andrei Stebakov
Thank you for the answers! I thought ODBC was deprecated from Garage, I'll
give it another look.

On Fri, Dec 22, 2017 at 10:53 PM, Thomas Sattler <tomsatt...@gmail.com>
wrote:

> I have no problem using Garage to connect to Postgres.  Don't know if it
> will work with DB2, but since it's ODBC, it should.
>
> On Fri, Dec 22, 2017 at 6:36 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
>
>> Hi Stef
>>
>> I already checked Garage, it doesn't have support for DB2. It used to
>> have support for odbc, but now it's deprecated.
>>
>> Andrei
>>
>> On Dec 22, 2017 15:11, "Stephane Ducasse" <stepharo.s...@gmail.com>
>> wrote:
>>
>>> Hi andrei
>>>
>>> I do not know the status of OBDC but you should know that code on
>>> squeaksource is in general quite old.
>>> Have a look at Garage which is a kind of JBDC.
>>>
>>> https://github.com/pharo-rdbms/garage
>>>
>>> You should probably have a version available via the catalog
>>>
>>> Stef
>>>
>>> On Fri, Dec 22, 2017 at 2:43 PM, Andrei Stebakov <lisper...@gmail.com>
>>> wrote:
>>> > Hi Stef
>>> >
>>> > Gofer new
>>> >   squeaksource: 'ODBC';
>>> >   package: 'ConfigurationOfODBC'; load.
>>> >   (Smalltalk at: #ConfigurationOfODBC) load.
>>> >
>>> > When I execute the code above I got an exception doesNotUnderstand:
>>> > #selector in RBParser>>externalFunctionDeclaration. Looks like
>>> currentScope
>>> > variable is not defined.
>>> > Also if I install ODBC from the catalog it also fails.
>>> >
>>> > Andrei
>>> >
>>> >
>>> > On Fri, Dec 22, 2017 at 2:19 AM, Stephane Ducasse <
>>> stepharo.s...@gmail.com>
>>> > wrote:
>>> >>
>>> >> Hi andrei
>>> >>
>>> >> First welcome to this list.
>>> >> Second can you explain to us what is the experience that you did so
>>> >> that you can state that ODBC is broken in Pharo 6.1?
>>> >>
>>> >> Stef
>>> >>
>>> >> On Thu, Dec 21, 2017 at 11:48 PM, Andrei Stebakov <
>>> lisper...@gmail.com>
>>> >> wrote:
>>> >> > Looks like ODBC is broken in Pharo 6.1.
>>> >> > What's the best way to get access to DB2 in Pharo?
>>> >> >
>>> >> >
>>> >>
>>> >
>>>
>>>
>


[Pharo-users] Breakpoints in Pharo

2017-12-25 Thread Andrei Stebakov
Can I expect that break points in Pharo work in the same way as in Visual
Works?
When I set a break point in Pharo (6.1 on Windows), it displays a red dot
with an exclamation mark and when I send this message to an object, the
debugger doesn't get invoked.


Re: [Pharo-users] How to connect to DB2

2017-12-22 Thread Andrei Stebakov
Hi Stef

I already checked Garage, it doesn't have support for DB2. It used to have
support for odbc, but now it's deprecated.

Andrei

On Dec 22, 2017 15:11, "Stephane Ducasse" <stepharo.s...@gmail.com> wrote:

> Hi andrei
>
> I do not know the status of OBDC but you should know that code on
> squeaksource is in general quite old.
> Have a look at Garage which is a kind of JBDC.
>
> https://github.com/pharo-rdbms/garage
>
> You should probably have a version available via the catalog
>
> Stef
>
> On Fri, Dec 22, 2017 at 2:43 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> > Hi Stef
> >
> > Gofer new
> >   squeaksource: 'ODBC';
> >   package: 'ConfigurationOfODBC'; load.
> >   (Smalltalk at: #ConfigurationOfODBC) load.
> >
> > When I execute the code above I got an exception doesNotUnderstand:
> > #selector in RBParser>>externalFunctionDeclaration. Looks like
> currentScope
> > variable is not defined.
> > Also if I install ODBC from the catalog it also fails.
> >
> > Andrei
> >
> >
> > On Fri, Dec 22, 2017 at 2:19 AM, Stephane Ducasse <
> stepharo.s...@gmail.com>
> > wrote:
> >>
> >> Hi andrei
> >>
> >> First welcome to this list.
> >> Second can you explain to us what is the experience that you did so
> >> that you can state that ODBC is broken in Pharo 6.1?
> >>
> >> Stef
> >>
> >> On Thu, Dec 21, 2017 at 11:48 PM, Andrei Stebakov <lisper...@gmail.com>
> >> wrote:
> >> > Looks like ODBC is broken in Pharo 6.1.
> >> > What's the best way to get access to DB2 in Pharo?
> >> >
> >> >
> >>
> >
>
>


Re: [Pharo-users] How to connect to DB2

2017-12-22 Thread Andrei Stebakov
Hi Stef

Gofer new
  squeaksource: 'ODBC';
  package: 'ConfigurationOfODBC'; load.
  (Smalltalk at: #ConfigurationOfODBC) load.

When I execute the code above I got an exception doesNotUnderstand:
#selector in RBParser>>externalFunctionDeclaration. Looks like currentScope
variable is not defined.
Also if I install ODBC from the catalog it also fails.

Andrei


On Fri, Dec 22, 2017 at 2:19 AM, Stephane Ducasse <stepharo.s...@gmail.com>
wrote:

> Hi andrei
>
> First welcome to this list.
> Second can you explain to us what is the experience that you did so
> that you can state that ODBC is broken in Pharo 6.1?
>
> Stef
>
> On Thu, Dec 21, 2017 at 11:48 PM, Andrei Stebakov <lisper...@gmail.com>
> wrote:
> > Looks like ODBC is broken in Pharo 6.1.
> > What's the best way to get access to DB2 in Pharo?
> >
> >
>
>


[Pharo-users] How to connect to DB2

2017-12-21 Thread Andrei Stebakov
Looks like ODBC is broken in Pharo 6.1.
What's the best way to get access to DB2 in Pharo?