Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread K K Subbu

On Sunday 23 April 2017 08:43 PM, Juraj Kubelka wrote:


As the Pharo Sprint is organized in several places around the world, we
miss the connection with other guys. For that reason we decided to move
the physical whiteboard to the internet and developed Pharo Sprint App.


Excellent idea and a very useful tool! It took me just a few minutes to 
download it and post my first fix through it.


What would be workflow for using this app? Is this only for Pharo Sprint 
participants or can others also use it?


I faced a minor problem in the UI. The top half of login/password text 
input fields got clipped by title bar, when I opened it up first. Later 
the Update/Logout buttons also have their top border clipped off.


Regards .. Subbu



Re: [Pharo-users] Neural Networks in Pharo

2017-04-23 Thread Oleks
Hello,

Thanks a lot for your advice! It was very helpful and educating (for
example, I thought that we store biases in the weight matrix and prepend 1
to input to make it faster, but now I see why it's actually slower that
way).

I've implemented a multi-layer neural network as a linked list of layers
that propagate the input and error from one to another, similar to the Chain
of Responsibility pattern. Also, now I represent biases as separate vectors.
The LearningAlgorithm is a separate class with Backpropagation as its
subclass (though at this point the network can only learn through
backpropagation, but I'm planning to change that). I'm trying to figure out
how the activation and cost functions should be connected. For example,
cross-entropy works best with logistic sigmoid activation etc. I would like
to give the user a freedom to use whatever he wants (plug in whatever you
like and see what happens), but it can be very inefficient (because some
time-consuming parts of activation and cost derivatives cancel out each
other).

Also, there is an interface for setting the learning rate for the whole
network, which can be used to choose the learning rate prior to learning, as
well as to change the learning rate after each iteration. I am planning to
implement some optimization algorithms that would automize the process of
choosing a learning rate (adagrad for example), but this would require a bit
different design (maybe I will implement the Optimizer, as you suggested).

I'm attaching two images with UML diagrams, describing my current
implementation. Could you please tell me what you think about this design?
The first image is a class diagram that shows the whole architecture, and
the second one is a sequence diagram of backpropagation.

mlnn.png   
backprop.png   

Sincerely yours,
Oleksandr



--
View this message in context: 
http://forum.world.st/Neural-Networks-in-Pharo-tp4941271p4943698.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread Thierry Goubier

Hi Juraj,

a superb idea! A fluent interface to the Pharo sprint.

Thierry

Le 23/04/2017 à 17:13, Juraj Kubelka a écrit :

Hi,

We are happy to announce a new application called Pharo Sprint App. The
main idea of the application comes from the whiteboard that have been
used during Pharo Sprints and was also adopted in Chile.


As the Pharo Sprint is organized in several places around the world, we
miss the connection with other guys. For that reason we decided to move
the physical whiteboard to the internet and developed Pharo Sprint App.


*How does it work?* Participants choose a case from the ‘proposed' or
‘all’ list. Once they are done, they move it to the ‘done’ list. We
believe that the application will encourage other people, especially
newcomers, to join us during the events and have a fun, together with
other developers.

*How To Use It?*
• Download the latest image from Bintray

• Execute the image, using the corresponding VM for Pharo 6
• Run the application from World Menu / Communication / Pharo Sprint
• Login, using your FogBugz account, wait a bit, then choose a case and
have a happy programming :-)

Everybody participating in the sprints should use the Pharo Sprint image.

The upcoming event is on Friday April
28: https://association.pharo.org/event-2492488

The application is deployed in Pharo 6 (32 and 64bits). More details are
available at: https://github.com/JurajKubelka/PharoSprint

I will appreciate any feedback.

Have a fun! :-)
Juraj






Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread Sven Van Caekenberghe
Impressive work indeed.

I guess Marcus will be happy, you save him a lot of work being 'master of 
ceremony' at Sprints.

> On 23 Apr 2017, at 19:24, Tudor Girba  wrote:
> 
> Great work, Juraj!
> 
> Doru
> 
> 
>> On Apr 23, 2017, at 5:13 PM, Juraj Kubelka  wrote:
>> 
>> Hi,
>> 
>> We are happy to announce a new application called Pharo Sprint App. The main 
>> idea of the application comes from the whiteboard that have been used during 
>> Pharo Sprints and was also adopted in Chile. 
>> 
>> 
>> 
>> As the Pharo Sprint is organized in several places around the world, we miss 
>> the connection with other guys. For that reason we decided to move the 
>> physical whiteboard to the internet and developed Pharo Sprint App. 
>> 
>> 
>> 
>> How does it work? Participants choose a case from the ‘proposed' or ‘all’ 
>> list. Once they are done, they move it to the ‘done’ list. We believe that 
>> the application will encourage other people, especially newcomers, to join 
>> us during the events and have a fun, together with other developers. 
>> 
>> How To Use It? 
>>  • Download the latest image from Bintray
>>  • Execute the image, using the corresponding VM for Pharo 6
>>  • Run the application from World Menu / Communication / Pharo Sprint
>>  • Login, using your FogBugz account, wait a bit, then choose a case and 
>> have a happy programming :-)
>> 
>> Everybody participating in the sprints should use the Pharo Sprint image.
>> 
>> The upcoming event is on Friday April 28: 
>> https://association.pharo.org/event-2492488 
>> 
>> The application is deployed in Pharo 6 (32 and 64bits). More details are 
>> available at: https://github.com/JurajKubelka/PharoSprint 
>> 
>> I will appreciate any feedback.
>> 
>> Have a fun! :-)
>> Juraj
>> 
> 
> --
> www.tudorgirba.com
> www.feenk.com
> 
> "We can create beautiful models in a vacuum.
> But, to get them effective we have to deal with the inconvenience of reality."
> 
> 




Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread Juraj Kubelka
Hi,

> El 23-04-2017, a las 14:37, "p...@highoctane.be"  
> escribió:
> 
> Please put that on the Pharo site (how to contribute section) so that we do 
> not have to hunt this email down.

You are right, put it on Pharo site is on my todo list. 

Juraj

> 
> Phil
> 
>> On Sun, Apr 23, 2017 at 7:24 PM, Tudor Girba  wrote:
>> Great work, Juraj!
>> 
>> Doru
>> 
>> 
>> > On Apr 23, 2017, at 5:13 PM, Juraj Kubelka  
>> > wrote:
>> >
>> > Hi,
>> >
>> > We are happy to announce a new application called Pharo Sprint App. The 
>> > main idea of the application comes from the whiteboard that have been used 
>> > during Pharo Sprints and was also adopted in Chile.
>> >
>> > 
>> >
>> > As the Pharo Sprint is organized in several places around the world, we 
>> > miss the connection with other guys. For that reason we decided to move 
>> > the physical whiteboard to the internet and developed Pharo Sprint App.
>> >
>> > 
>> >
>> > How does it work? Participants choose a case from the ‘proposed' or ‘all’ 
>> > list. Once they are done, they move it to the ‘done’ list. We believe that 
>> > the application will encourage other people, especially newcomers, to join 
>> > us during the events and have a fun, together with other developers.
>> >
>> > How To Use It?
>> >   • Download the latest image from Bintray
>> >   • Execute the image, using the corresponding VM for Pharo 6
>> >   • Run the application from World Menu / Communication / Pharo Sprint
>> >   • Login, using your FogBugz account, wait a bit, then choose a case 
>> > and have a happy programming :-)
>> >
>> > Everybody participating in the sprints should use the Pharo Sprint image.
>> >
>> > The upcoming event is on Friday April 28: 
>> > https://association.pharo.org/event-2492488
>> >
>> > The application is deployed in Pharo 6 (32 and 64bits). More details are 
>> > available at: https://github.com/JurajKubelka/PharoSprint
>> >
>> > I will appreciate any feedback.
>> >
>> > Have a fun! :-)
>> > Juraj
>> >
>> 
>> --
>> www.tudorgirba.com
>> www.feenk.com
>> 
>> "We can create beautiful models in a vacuum.
>> But, to get them effective we have to deal with the inconvenience of 
>> reality."
>> 
>> 
>> 
> 


Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread p...@highoctane.be
Please put that on the Pharo site (how to contribute section) so that we do
not have to hunt this email down.

Phil

On Sun, Apr 23, 2017 at 7:24 PM, Tudor Girba  wrote:

> Great work, Juraj!
>
> Doru
>
>
> > On Apr 23, 2017, at 5:13 PM, Juraj Kubelka 
> wrote:
> >
> > Hi,
> >
> > We are happy to announce a new application called Pharo Sprint App. The
> main idea of the application comes from the whiteboard that have been used
> during Pharo Sprints and was also adopted in Chile.
> >
> > 
> >
> > As the Pharo Sprint is organized in several places around the world, we
> miss the connection with other guys. For that reason we decided to move the
> physical whiteboard to the internet and developed Pharo Sprint App.
> >
> > 
> >
> > How does it work? Participants choose a case from the ‘proposed' or
> ‘all’ list. Once they are done, they move it to the ‘done’ list. We believe
> that the application will encourage other people, especially newcomers, to
> join us during the events and have a fun, together with other developers.
> >
> > How To Use It?
> >   • Download the latest image from Bintray
> >   • Execute the image, using the corresponding VM for Pharo 6
> >   • Run the application from World Menu / Communication / Pharo
> Sprint
> >   • Login, using your FogBugz account, wait a bit, then choose a
> case and have a happy programming :-)
> >
> > Everybody participating in the sprints should use the Pharo Sprint image.
> >
> > The upcoming event is on Friday April 28: https://association.pharo.org/
> event-2492488
> >
> > The application is deployed in Pharo 6 (32 and 64bits). More details are
> available at: https://github.com/JurajKubelka/PharoSprint
> >
> > I will appreciate any feedback.
> >
> > Have a fun! :-)
> > Juraj
> >
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "We can create beautiful models in a vacuum.
> But, to get them effective we have to deal with the inconvenience of
> reality."
>
>
>
>


Re: [Pharo-users] [Ann] Pharo Sprint App to improve coordination during Pharo Sprints

2017-04-23 Thread Tudor Girba
Great work, Juraj!

Doru


> On Apr 23, 2017, at 5:13 PM, Juraj Kubelka  wrote:
> 
> Hi,
> 
> We are happy to announce a new application called Pharo Sprint App. The main 
> idea of the application comes from the whiteboard that have been used during 
> Pharo Sprints and was also adopted in Chile. 
> 
> 
> 
> As the Pharo Sprint is organized in several places around the world, we miss 
> the connection with other guys. For that reason we decided to move the 
> physical whiteboard to the internet and developed Pharo Sprint App. 
> 
> 
> 
> How does it work? Participants choose a case from the ‘proposed' or ‘all’ 
> list. Once they are done, they move it to the ‘done’ list. We believe that 
> the application will encourage other people, especially newcomers, to join us 
> during the events and have a fun, together with other developers. 
> 
> How To Use It? 
>   • Download the latest image from Bintray
>   • Execute the image, using the corresponding VM for Pharo 6
>   • Run the application from World Menu / Communication / Pharo Sprint
>   • Login, using your FogBugz account, wait a bit, then choose a case and 
> have a happy programming :-)
> 
> Everybody participating in the sprints should use the Pharo Sprint image.
> 
> The upcoming event is on Friday April 28: 
> https://association.pharo.org/event-2492488 
> 
> The application is deployed in Pharo 6 (32 and 64bits). More details are 
> available at: https://github.com/JurajKubelka/PharoSprint 
> 
> I will appreciate any feedback.
> 
> Have a fun! :-)
> Juraj
> 

--
www.tudorgirba.com
www.feenk.com

"We can create beautiful models in a vacuum.
But, to get them effective we have to deal with the inconvenience of reality."




Re: [Pharo-users] Octal multiplication

2017-04-23 Thread raffaello . giulietti
On 23/04/17 15:13, nacho wrote:
> Hello,
> This could sound like a dumb question, it may be.
> If I print:
> 8r3 * 8r3 I get 9.
> It seems that Pharo converts first to decimal and then performs the
> multiplication. How do I get the result in octal which should be 8r11?
> Thanks!
> 

Hi Nacho

There is no such thing as an "octal multiplication".

Smalltalk has a notion of numerical literals, like 28, 10r28, 8r34 or
16r1C. They all represent the same number, namely the abstract notion of
twenty-eight. But it not correct to say that Smalltalk first converts to
decimal. The internal representation of an integer value in Smalltalk
is, in fact, binary, but this should be mostly transparent to most
usages. Smalltalk code does not care whether twenty-eight appears as
octal or whatever in source code.

Something similar holds in C, C++, Java, Lisp, Python, Haskell or any
other of thousands of programming languages out there. If you are used
to one of these, you should not be surprised by the behavior of Smalltalk.

When a numerical result is printed, it is usually written as decimal
number by default (in Smalltalk as well as in many other languages). As
Peter points out, you must be explicit if you need a different
representation.

Greetings
Raffaello



Re: [Pharo-users] PostgreSQL and Pharo 6

2017-04-23 Thread Dimitris Chloupis
You say its not an SSL problem and then you say I should not use SSL and it
will work :D

yes I know it would work without SSL but I want to use SSL. Hence my
problem. SSL support is pretty standards nowdays anyway.


On Sat, Apr 22, 2017 at 11:13 PM olivier auverlot <
olivier.auver...@gmail.com> wrote:

> Hi Dimitris,
>
> It's not a SSL problem. Normaly, you can use PostgreSQL without SSL. The
> error message says that you must add your client device in the pg_hba.conf
> file. This file lists all the devices that are authorized to connect to the
> PostgreSQL server.
>
> https://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html
>
> At work, I use the postgreSQL V2 protocol without problem with Pharo but I
> have not yet tested with Pharo 6. With Garage, it's a cool solution to
> build database applications.
>
> Best regards
> Olivier :)
>
> 2017-04-18 9:07 GMT+02:00 Dimitris Chloupis :
>
>> I adjusted it for my database and gives me error
>>
>> EFATAL:  no pg_hba.conf entry for host "", user "", database "", SSL off
>>
>> any way to resolved this ?
>>
>> On Tue, Apr 18, 2017 at 1:24 AM Benoit St-Jean  wrote:
>>
>>> Try this:
>>>
>>> | sql conn connectionSpec result  |
>>> sql := 'SELECT * FROM search_terms'.
>>> conn := GAConnection new.
>>> connectionSpec := GAConnectionArgs
>>> hostname: 'localhost'
>>> portno: 5432
>>> databaseName: 'sodbxtest'
>>> userName: 'sodbxtest'
>>> password: 'sodbxtest'.
>>> conn connectionArgs: connectionSpec.
>>>
>>> "Connect to the server"
>>> result := conn startup.
>>> (result errorResponse isKindOf: GAErrorResponse) ifTrue: [ self halt ].
>>>
>>> "Execute your SQL stuff"
>>> result := conn execute: sql.
>>> (result errorResponse isKindOf: GAErrorResponse) ifTrue: [ self halt ]
>>> ifFalse: [result inspect].
>>>
>>> "Disconnect from the server"
>>> conn close.
>>>
>>>
>>> -
>>> Benoît St-Jean
>>> Yahoo! Messenger: bstjean
>>> Twitter: @BenLeChialeux
>>> Pinterest: benoitstjean
>>> Instagram: Chef_Benito
>>> IRC: lamneth
>>> Blogue: endormitoire.wordpress.com
>>> "A standpoint is an intellectual horizon of radius zero".  (A. Einstein)
>>>
>>>
>>> --
>>> *From:* Dimitris Chloupis 
>>> *To:* Benoit St-Jean ; Any question about pharo is
>>> welcome 
>>> *Sent:* Monday, April 17, 2017 5:24 PM
>>>
>>> *Subject:* Re: [Pharo-users] PostgreSQL and Pharo 6
>>>
>>> Following the instructions here
>>>
>>> http://guillep.github.io/DBXTalk/garage/installation.html
>>>
>>> I did
>>>
>>> Gofer it
>>> smalltalkhubUser: 'DBXTalk' project: 'Garage';
>>> configurationOf: 'Garage';
>>> load.
>>>
>>>
>>> (ConfigurationOfGarage project version: '0.5')
>>> load: 'postgresV2'.
>>>
>>> And it did install
>>>
>>>
>>> On Tue, 18 Apr 2017 at 00:02, Benoit St-Jean  wrote:
>>>
>>> Tell me which exact package you loaded (or even better, the exact to
>>> load it) and I will test some code against my PostgreSQL server...
>>>
>>>
>>> -
>>> Benoît St-Jean
>>> Yahoo! Messenger: bstjean
>>> Twitter: @BenLeChialeux
>>> Pinterest: benoitstjean
>>> Instagram: Chef_Benito
>>> IRC: lamneth
>>> Blogue: endormitoire.wordpress.com
>>> "A standpoint is an intellectual horizon of radius zero".  (A. Einstein)
>>>
>>>
>>> --
>>> *From:* Dimitris Chloupis 
>>> *To:* Benoit St-Jean ; Any question about pharo is
>>> welcome 
>>> *Sent:* Monday, April 17, 2017 4:55 PM
>>>
>>> *Subject:* Re: [Pharo-users] PostgreSQL and Pharo 6
>>>
>>> no conn connect does not work because GAConnection has no such method.
>>> #connect exist in GAPostgresDrive but even if I go that route I get
>>> error #OptionAt:IfAbsent: was sent to nil . With this code
>>>
>>> conn2 := GAPostgresDriver new .
>>> conn2 host: 'ec2-**-***-***-185.eu-west-1.compute.amazonaws.com'
>>> port: ''
>>> database:'***'
>>> user: '*'
>>> password:''***'.
>>> conn2 connect.
>>>
>>> Is there sample code that connects to online databases ?
>>>
>>>
>>>
>>> On Mon, Apr 17, 2017 at 11:18 PM Benoit St-Jean 
>>> wrote:
>>>
>>> You have to #connect before executing SQL statements!
>>>
>>> Something like (in your code):
>>>
>>> conn connect.
>>>
>>> -
>>> Benoît St-Jean
>>> Yahoo! Messenger: bstjean
>>> Twitter: @BenLeChialeux
>>> Pinterest: benoitstjean
>>> Instagram: Chef_Benito
>>> IRC: lamneth
>>> Blogue: endormitoire.wordpress.com
>>> "A standpoint is an intellectual horizon of radius zero".  (A. Einstein)
>>>
>>>
>>> --
>>> *From:* Dimitris Chloupis 
>>> *To:* Benoit St-Jean ; Any question about pharo is
>>> welcome 
>>> *Sent:* Monday, April 17, 2017 3:54 PM
>>> *Subject:* Re: [Pharo-users] PostgreSQL and Pharo 6
>>>
>>> Installing from Catalog Browser fails
>>>
>>> I installed it via the the website instructions, it installs fine
>>>
>>> But if I use it this way
>>>
>>> conn := GAConnect

Re: [Pharo-users] Octal multiplication

2017-04-23 Thread Peter Uhnak
On Sun, Apr 23, 2017 at 06:13:42AM -0700, nacho wrote:
> Hello,
> This could sound like a dumb question, it may be.
> If I print:
> 8r3 * 8r3 I get 9.
> It seems that Pharo converts first to decimal and then performs the
> multiplication. How do I get the result in octal which should be 8r11?


#printStringRadix: base

(8r3 * 8r3) printStringRadix: 8 "-> 8r11"

for hex there's also

#hex

12 hex "-> 16rC"

Peter


> Thanks!
> 
> 
> 
> 
> -
> Nacho
> Smalltalker apprentice.
> Buenos Aires, Argentina.
> --
> View this message in context: 
> http://forum.world.st/Octal-multiplication-tp4943364.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



[Pharo-users] Octal multiplication

2017-04-23 Thread nacho
Hello,
This could sound like a dumb question, it may be.
If I print:
8r3 * 8r3 I get 9.
It seems that Pharo converts first to decimal and then performs the
multiplication. How do I get the result in octal which should be 8r11?
Thanks!




-
Nacho
Smalltalker apprentice.
Buenos Aires, Argentina.
--
View this message in context: 
http://forum.world.st/Octal-multiplication-tp4943364.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.