Re: [Pharo-users] Pharo 8.0 bug

2020-06-14 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Thank you Serge and Ben,

I am sorry, I used google and this came up first.
Sure, I can raise the issue on Github.

Thanks again!
Sebastian


On 2020-06-14 4:31 a.m., Ben Coman wrote:

hi Sebastian,

Thanks for taking the time to report your issue.
Note that Fogbugz is no longer used for issue tracking.
Issues are now tracked at... 
https://github.com/pharo-project/pharo/issues

Could you try creating your issue there?

cheers -ben

On Sun, 14 Jun 2020 at 13:35, Sebastian Heidbrink via Pharo-users 
mailto:pharo-users@lists.pharo.org>> wrote:


Hello,

I am unfortunately not able to register at https://pharo.fogbugz.com/
because "/issues-register-service not found".

This is why I post the following bug here:

I attached a test case and how that somebody can recreate it.

I just downloaded a Pharo 8.0 64Bit image with the pharolauncher to a
Windows 10 machine.

Depending on my actions within the dev environment the test case
passes
or fails in the last two asserts.

What one has to do is just run the test and see if it fails the
first time.

If it does not fail then:

1. Remove the comment in the test method.

2. Within the System Browser navigate to the ValueHolderTestClass and
back to ValueHolderTestCase again.

3. Rerun the test

With a little back and forth you will eventually see the last asserts
fails with

"TestFailure: Got '13' instead for 'Test3' "


It would be highly appreciated if somebody with access to
pharo.fogbugz.com <http://pharo.fogbugz.com> would find the time
to try this and upload the
information provided.


Here the full info about the image:
Pharo 8.0.0
Build information:
Pharo-8.0.0+build.1124.sha.0932da82f08175e906b0e2a8052120c823374e9f
(64 Bit)


Thank you!

Cheers!

Sebastian




--- End Message ---


[Pharo-users] Pharo 8.0 bug

2020-06-13 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hello,

I am unfortunately not able to register at https://pharo.fogbugz.com/ 
because "/issues-register-service not found".


This is why I post the following bug here:

I attached a test case and how that somebody can recreate it.

I just downloaded a Pharo 8.0 64Bit image with the pharolauncher to a 
Windows 10 machine.


Depending on my actions within the dev environment the test case passes 
or fails in the last two asserts.


What one has to do is just run the test and see if it fails the first time.

If it does not fail then:

1. Remove the comment in the test method.

2. Within the System Browser navigate to the ValueHolderTestClass and 
back to ValueHolderTestCase again.


3. Rerun the test

With a little back and forth you will eventually see the last asserts 
fails with


"TestFailure: Got '13' instead for 'Test3' "


It would be highly appreciated if somebody with access to 
pharo.fogbugz.com would find the time to try this and upload the 
information provided.



Here the full info about the image:
Pharo 8.0.0
Build information: 
Pharo-8.0.0+build.1124.sha.0932da82f08175e906b0e2a8052120c823374e9f (64 Bit)



Thank you!

Cheers!

Sebastian


'From Pharo8.0.0 of 22 January 2020 [Build information: 
Pharo-8.0.0+build.1124.sha.0932da82f08175e906b0e2a8052120c823374e9f (64 Bit)] 
on 13 June 2020 at 10:20:33.617211 pm'!
TestCase subclass: #ValueHolderTestCase
instanceVariableNames: ''
classVariableNames: ''
package: 'Become-Test'!

!ValueHolderTestCase methodsFor: 'tests' stamp: 'SebastianHeidbrink 6/13/2020 
22:20'!
testValueChangeBasicType
| holder1 holder2 string |
holder1 := ValueHolderTestClass new.
holder2 := ValueHolderTestClass new.

string := 'Test'.
holder1 value1: string.
holder2 value1: string.
self assert: holder1 value1 equals: 'Test'.
self assert: holder2 value1 equals: 'Test'.

string become: '1'.
self deny: holder1 value1 equals: '1'.
self deny: holder2 value1 equals: '1'.

string := '2'.
self deny: holder1 value1 equals: '2'.
self deny: holder2 value1 equals: '2'.

self deny: holder1 value1 equals: '1'.
self deny: holder2 value1 equals: '1'.

holder1 value1: holder1 value1 , '3'.
holder2 value1: holder2 value1 , '3'. 
"remove or replace this comment with cr.
Switch to ValueHolderTestClass in same system browser and back.
Rerun this test
The following assert will fail with '13' 
Reintroducing the comment may make this test pass again"
self assert: holder1 value1 equals: 'Test3'.
self assert: holder2 value1 equals: 'Test3'! !
'From Pharo8.0.0 of 22 January 2020 [Build information: 
Pharo-8.0.0+build.1124.sha.0932da82f08175e906b0e2a8052120c823374e9f (64 Bit)] 
on 13 June 2020 at 10:12:08.905211 pm'!
Object subclass: #ValueHolderTestClass
instanceVariableNames: 'holder1 holder2 holder3'
classVariableNames: ''
package: 'Become-Test'!

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:10'!
value2: anObject
holder2 value: anObject! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 21:33'!
value1
^holder1 value! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder1: anObject
holder1 := anObject! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:10'!
value1: anObject
holder1 value: anObject! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 21:33'!
value2
^holder2 value! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 21:33'!
value3
^holder3 value! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder2: anObject
holder2 := anObject! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder2
^ holder2! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder1
^ holder1! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:11'!
initialize

super initialize.
holder1 :=  NewValueHolder new.
holder2 :=  NewValueHolder new.
holder3 :=  NewValueHolder new.! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder3
^ holder3! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:08'!
holder3: anObject
holder3 := anObject! !

!ValueHolderTestClass methodsFor: 'accessing' stamp: 'SebastianHeidbrink 
6/13/2020 20:10'!
value3: anObject
holder3 value: anObject! !
--- End Message ---


Re: [Pharo-users] Pharo as a client to swagger API?

2020-02-27 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Jerry,

it might be a little ot of date, but it is a start.
http://smalltalkhub.com/#!/~HeSe/OpenApi-Spec

Cheers!
Sebastian



On 2020-02-26 7:05 p.m., Jerry Kott wrote:

Hello,

I know people have used Pharo for REST APIs - has anyone used Pharo as 
a client for Swagger?


Second question (I could probably find out but I am feeling lazy): 
what would be a good REST API package to use? Are there any tutorials?


*Jerry Kott*
This message has been digitally signed.
PGP Fingerprint:
A9181736DD2F1B6CC7CF9E51AC8514F48C0979A5





--- End Message ---


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

2019-07-24 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---
A book that looks explores implementations like that and that always had 
a place on my desk is this


https://www.amazon.ca/Smalltalk-Style-Suzanne-Skublics/dp/0131655493
I can highly recommend it.

Sebastian

On 2019-07-24 8:32 a.m., Marcus Denker wrote:



On 24 Jul 2019, at 17:30, sergio ruiz  wrote:

hmm???

maybe this is cleaner..

tracks
tracks ifNil: [ self tracks: OrderedCollection new ].
^ tracks


I write these methods as


tracks
^tracks ifNil: [ tracks :=  OrderedCollection new ].

- one line
- does not mix using accusers and not using accessors.


Marcus




--- End Message ---


[Pharo-users] Comment on: Pharo performance issues

2019-04-02 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi!

A friend of mine just just pointed this entry out to me

https://pharoweekly.wordpress.com/2019/04/02/about-performance-issues/


I spent quite some time with Alexandre Bergel's NeuralNetwork 
implementation and stumbled across many implementations that cause 
general performance issues.


While, I "fixed/altered" only those parts affecting my code, I would 
offer to search trough the image an alter the parts similar to those 
already altered.


In such case that somebody would like to move a greater amount of code 
towards review and integration into current development how would the 
process of such contribution look like?


The regular path of reporting bugs, or just forking on Github and pull 
request?


I am extremely busy right now, but during the nights I could slowly 
attempt to work some performance issues out.


Kind wishes,

Sebastian



--- End Message ---


Re: [Pharo-users] OpenAPI

2018-10-09 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Hamdi,


one API that you can use to learn more about OpenAPI is the REST 
Interface to Bitmex.


https://www.bitmex.com/api/explorer/

They offer a testing account which would allow you to run the API 
explorer against your account without the need of real money.


Maybe this can help you learn more about OpenAPI?

Have fun!

Sebastian




On 10/03/2018 07:02 AM, hamdi gabsi wrote:

Hi all,
I just started with OpenAPI, I'am looking for some tutoriels, 
documents or exemples that can help me to understand this standard.
I am wondering if  there is a catalog of services  that are described 
with OpenAPI?


Thanks for helping.
Hamdi




--- End Message ---


Re: [Pharo-users] CampSmalltalk

2018-09-08 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Thank you, Norbert!

Cool! No Facebook products here 

CU Monday!
Sebastian


On 2018-09-08 9:55 a.m., Norbert Hartl wrote:

Everyone can join

https://chat.whatsapp.com/0nTMloTTddg40tRvu9hXLv

There are people in cagliari already. Sadly I won‘t be there before monday

Norbert

Am 08.09.2018 um 07:57 schrieb Joachim Tuchel <mailto:jtuc...@objektfabrik.de>>:



Waiting at the baggage claim ;-)

Am 08.09.2018 um 05:41 schrieb Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Hi!

I just found out that there is a dedicated ESUG mailing list ta taa!

I arrived in Cagliari for ESUG 2018 and I am wondering where 
CampSmalltalk will take place this weekend.


Anybody in town already?

CU!

Kind wishes,

Sebastian









--- End Message ---


[Pharo-users] CampSmalltalk

2018-09-07 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi!

I just found out that there is a dedicated ESUG mailing list ta taa!

I arrived in Cagliari for ESUG 2018 and I am wondering where 
CampSmalltalk will take place this weekend.


Anybody in town already?

CU!

Kind wishes,

Sebastian



--- End Message ---


Re: [Pharo-users] Pharo Launcher

2018-04-15 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hey Marten,

I have the same system and I encountered similar issues.

Search your folders of debug logs. Sometimes the launcher expects the 
image an a different path, or a sources file was unzipped into the wrong 
folder, or the extracted files of vms or images have the wrong read 
write access.


I will check my system for changes that I might have done to the system 
and sent them to you.

In general it should work on Linux Mint. I use it regularly.

Sebastian




Am 15.04.2018 um 12:23 schrieb Marten Feldtmann:

After a long time I wanted to have a look at the current Pharo situation.

I just downloaded the Linux 64bit version of Pharo from the web site:

-> I opened "pharo" (via a double click on the pharo application) and
got a list of possible templates I could load.

-> I selected Pharo 6.1 template, created an image and wanted to start
that image - the initial application disappeared - but nothing happened
after that.

If I start the initial pharo app from a shell by hand and I want to
start the selected image it seems to work.

My system: Linux Mint 18.1, 64 bit







--- End Message ---


[Pharo-users] smalltalkhub amber debugger

2017-11-10 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi!

I just browsed to

http://smalltalkhub.com/#!/~jhoncc2

And got an amber debugger.

ShTimelineEvent class

from: json
    ^(self withAllSubclasses
        detect: [:each | each type = (json at: 'type')]
        ifNone: [self]) fromJson: json


json is nil here!


Cheers!

Sebastian



--- End Message ---


Re: [Pharo-users] [GT] moldable tools for non-developers

2017-10-27 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Offray!

that is kind of what I am looking for. Would you mind if I contacted you 
directly?
I am in the process of formulizing a master thesis and would love to 
bring Pharo into the mix.


Is you phd thesis public?
I tried to explore software ecosystems in the context of methiation 
theory by Peter-Paul Verbeek, but I was not able to design an applied 
mater thesis based on such philosopical theory.
This is why the modeling of ecosystems services is a new broad scope 
that I will have to narrow down during the next quater.


Sebastian

Am 27.10.2017 um 11:01 schrieb Offray Vladimir Luna Cárdenas:

Hi,


On 27/10/17 10:48, Sebastian Heidbrink via Pharo-users wrote:

While the ambitions behind GT seem to be developer centric, I wonder
if there is also research or development done to support non-developer
pharo users.

Yes. We're trying to bridge the gap between developers and
non-developers (like myself) using moldable environments like Pharo. Our
use case is data activism, visualization and storytelling. So our
intended users are people coming from any of such fields that don't
develop app, but try to tell factual stories supported by data and/or
visualizations. For that I have developed the Grafoscopio[1] tool and
the Data Week workshop+hackathon [2], were we approach the gap between
devs and other users from the point of critical data & software literacy
(pretty far away from the "Hello World" introduction to programming[3]).

[1] http://mutabit.com/grafoscopio/index.en.html
[2] http://mutabit.com/dataweek/
[3] http://mutabit.com/offray/blog/en/entry/dumb-hello-world

Pharo, agile visualization and moldable tools have allowed me to explore
my PhD question about "How we can change the digital tools that change
us?" from this critical approach to data/tech, tools and literacy
for/from activism.

Cheers,

Offray






--- End Message ---


[Pharo-users] [GT] moldable tools for non-developers

2017-10-27 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi all!

There is this strong movement within Pharo now, that allows developers 
to expand the individual development process with the help of moldable 
dev tools based on GlamourToolkit (GT).


This allows for a much more effective communication between stakeholders 
and developers resulting in a more cost effective development.


While the ambitions behind GT seem to be developer centric, I wonder if 
there is also research or development done to support non-developer 
pharo users. Are there projects that try to integrate/interface 
"modeling" into/with GT? (e.g. like  STELLA [1])


I am also wondering if aspect oriented programming could help closing 
the full cycle of an adaptive development/management process. Anybody 
researching on something like this?


Thank you for any hint!

Sebastian

[1] https://www.iseesystems.com/


--- End Message ---


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

2017-10-25 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Cederik,

you should have a look at http://smalltalkhub.com/#!/~panuw/zeromq
ZeroMQ is a networking library. Nice thing about it is that all the 
networking related workload is dealt with in a second process. That can 
save you some resources within Smalltalk.


There is a lot of documentation around and it should be easy for you to 
dive into this. http://zguide.zeromq.org/page:all


Cheers!
Sebastian



On 2017-10-25 05:21 AM, Cédrick Béler wrote:

Hi all,

I want to connect two applications (1 by image, each one on a 
different computer) so as as to exchange information (data) between them.


So my question is about the best (smalltalk) practices to connect two 
app/image and exchange data.


I imagine either with a direct connection through a network (TCP 
Socket, Web socket, pure HTTP with Zinc) and/or with a serial connection.
At first, without any « security ». But later, information exchanges 
will be encrypted.


I’ve seen some information on how to use SerialPort, or even FileStream.
I could do it (or at least simulate it with HTTP). What are the other 
options ? Socket ?

Do we have P2P libs (I couldn’t find) with eventually discovery features ?

Any comment / suggestion / pointers are greatly welcome.

TIA.

Cédrick



--- End Message ---


Re: [Pharo-users] Smalltalk Argument

2017-10-19 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Paulo,

I think this is not the right question to ask.
The problem is not "Where to find Smalltalk developers?", the problem is 
rather
"How much effort does it take to help a good experienced OO developer to 
transition to Smalltalk?"


OO developers have to steadily gain and learn new technologies and 
frameworks...

So why not Smalltalk?
Those developers that are not willing to learn a new language just 
because they consider the trade-offs of not finding a job in that field 
that easily, might not be the best choice for your team anyway...


That is my experience... I know more developers missing the "Smalltalk 
experience" than those hating Smalltalk once they left a team...


Sebastian


On 2017-10-19 12:04 AM, Paulo R. Dellani wrote:

Dear all,

after using Smalltalk for several years I developed a passion for the
language (how not to?), and Pharo is just so great to develop with.
So thank you guys for keeping this wonderful project running.

Unfortunately, it is not easy to always point out why Smalltalk
should be employed as "main development language" in a team
or for a project. In the last discussion of this sort I was confronted
with the question "where are we going to get new smalltalk
developers if our startup grows or if you go?". Well, I had no
good answer to that. What would have you answered?

Cheers,

Paulo






--- End Message ---


[Pharo-users] Roassal question on Kiviat diagrams and coloring

2017-08-30 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi all!

Does anybody have an advice on how to color Kiviat diagram nodes and 
edges based on a nodes property/attribute?


For example, if I wanted to create a Kiviat diagram with weather 
information and color all days (nodes and edges) with temperatures above 
0 degrees in red and those below 0 degrees in blue... how would I 
implement this?


Thank you for any hint!

Sebastian


--- End Message ---


Re: [Pharo-users] Pharo launcher on Linux Mint

2017-08-01 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Christophe,

Thank you for your reply!
I downloaded the latest stable version.
You are right! Not all pharo executable are made executable after 
unzipping again.


I created an issue in Github on this yesterday.

Maybe we have a fix on this soon. I assume that non of the linux 
installations work right now.


Cheers!
Sebastian


Am 01.08.2017 um 00:57 schrieb Christophe Demarey:

Hi Sebastian,

Le 30 juil. 2017 à 18:12, Sebastian Heidbrink via Pharo-users 
mailto:pharo-users@lists.pharo.org>> a 
écrit :



*De: *Sebastian Heidbrink mailto:shei...@yahoo.de>>
*Objet: **Pharo launcher on Linux Mint*
*Date: *30 juillet 2017 18:12:07 UTC+2
*À: *Any question about pharo is welcome <mailto:pharo-users@lists.pharo.org>>


Hi!

I used Pharo launcher on Windows and Ubuntu before and never had any 
troubles.


Now, I am trying to used it on Linux Mint without success.

Once I start the freshly created image the appropriate VM is 
downloaded but the image is not started.



Which version do you use?


A PharoDebug.log is created in the image folder complaining that it 
can't find the PharoVXX.sources files in the 
"pharo/bin/lib/pharo/5.0-201707201942" folder.


After I copy the missing file into that folder the image is still not 
opened and no further logs are created or updated.


I had this problem when updating the launcher because the downloaded 
zip file is unzipped by Pharo itself but ZipArchive does not preserve 
permissions attributes.
To fix that, I 
added PhLVirtualMachineManager>>#ensureIsExecutable:that is called 
right after the Launcher fetch a new VM. It does an OsProcess call to 
add executable permissions.

Has Pharo executable write permissions?

Christophe



--- End Message ---


[Pharo-users] Pharo launcher on Linux Mint

2017-07-30 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi!

I used Pharo launcher on Windows and Ubuntu before and never had any 
troubles.


Now, I am trying to used it on Linux Mint without success.

Once I start the freshly created image the appropriate VM is downloaded 
but the image is not started.


A PharoDebug.log is created in the image folder complaining that it 
can't find the PharoVXX.sources files in the 
"pharo/bin/lib/pharo/5.0-201707201942" folder.


After I copy the missing file into that folder the image is still not 
opened and no further logs are created or updated.


A downloaded Pharo.zip from the Pharo website opens just fine.

Is this a known issue?

Thank you!

Sebastian

--- End Message ---


Re: [Pharo-users] super super

2017-01-21 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Hilaire,

I had this once, too. No time to refactor or rethink my subclass structure.
Now I am wondering what you guys are meaning by "hooks"?

Something like this? A ClassExtension?

SuperSuperClass
- methodIWantToReach
- myExtendedMethod
 ^self methodIWantToReach

SuperClass
- methodIWantToReach

MyClass
- methodIWantToReach
^self myExtendedMethod

Thanks
Sebastian



Am 21.01.2017 um 09:06 schrieb Hilaire:

Yep, it is the first situation I face where I need it in 10 years of
Smalltalk/Pharo. Otherwise I will refactor super class package, may be I
should

Le 21/01/2017 ᅵ 11:19, stepharong a ᅵcrit :

pay attention and to not use it. It is evil to use that in plain domain
code.




--- End Message ---


Re: [Pharo-users] Use of -> in Pharo Code

2016-11-30 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Bruce,

in hsort again ;-)
This was your code:

Teapot on GET: '/welcome' -> 'Hello World!'; start.


Imagine it this way with brackets:

Teapot on GET: ('/welcome' -> 'Hello World!'); start.

This is the same as writing:

Teapot on GET: ( Associtation key: '/welcome' value: 'Hello World!') ; 
start.


Shorter:

(x -> y) = (Association key: x value: y)

 The -> is the short version of the Association constructor.

I hope this makes things a little clearer.
Sebastian


--- End Message ---


Re: [Pharo-users] Use of -> in Pharo Code

2016-11-29 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Bruce,

good to see you around, again!

The arrow is an Association in short...

Sebastian


Am 29.11.2016 um 18:48 schrieb Bruce Prior:
I have been away from smalltalk coding for a while. On returning to 
the fold, I often see the use of a right arrow in code. Is this 
something new?


Today in a Teapot app example, I saw,

Teapot on GET: '/welcome' -> 'Hello World!'; start.

What is the arrow for?



--- End Message ---


Re: [Pharo-users] Issue with NeoCSVReader

2016-06-28 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message ---

Hi Alexandre,

I do not have access to a pharo image right now. But I had a look into 
your csv file.
There are rows that do not include any or to few data. I think 
NeoCSVReader can not handle that and expects a "proper" file


I will check tonight, in case nobody else comes up with additional 
information by then.


To be continued
Sebastian



Am 28.06.2016 um 14:41 schrieb Alexandre Bergel:

Hi!

I have a simple use of NeoCSVReader, but I get a rollback.

-=-=-=-=-=-=-=-=-=
content := (ZnEasy get: 
'https://github.com/sudar/pig-samples/raw/master/data/tweets.csv') contents 
readStream.
lines := (NeoCSVReader on: content)
skipHeader;
upToEnd.
-=-=-=-=-=-=-=-=-=

The url points to a .csv file with a header. No idea why the code .

I loaded the csv reader using:
Gofer new
smalltalkhubUser: 'SvenVanCaekenberghe' project: 'Neo';
package: 'ConfigurationOfNeoCSV'; load.
(Smalltalk at: #ConfigurationOfNeoCSV) loadBleedingEdge.

Alexandre




--- End Message ---


Re: [Pharo-users] SmalltakHub and password reset

2016-03-06 Thread Sebastian Heidbrink

Thank you!

will do

Sebastian

On 2016-03-06 9:12 AM, stepharo wrote:
Ask Esteban yes this is bad. I hope in the future to use github or 
bitbucket.



Le 6/3/16 16:49, Sebastian Heidbrink a écrit :

Hi!

how can I recover a lost password for SmalltalkHub.com?

Thank you
Sebastian











[Pharo-users] SmalltakHub and password reset

2016-03-06 Thread Sebastian Heidbrink

Hi!

how can I recover a lost password for SmalltalkHub.com?

Thank you
Sebastian



Re: [Pharo-users] [ANN] OSUnix and OSLinuxUbuntu on new UFFI

2016-02-17 Thread Sebastian Heidbrink

Hi Thorsten,

I had already filed a bug report and the topic is under investigation.
I saw your post and I do not have further details yet, I just know that 
Windows users should not replace their current images with the latest 
images yet. Otherwise they might have trouble.


I wrote that Pharo images listed in the Launcher do not work. I did not 
mention a particular combination of configurations.


I am sorry that I hijacked your thread. I work on all platforms but I 
used Windows only past 4 days.


If you would like to follow the bug please visit:
https://pharo.fogbugz.com/f/cases/17541/PharoVM-crash-in-Moose-6-0-image-when-hovering-mouse-pointer-over-Roassal-View

Unfortunately, this issue is brand new and I couldn't write more details 
on that except warm to wait for further info before upgrading images on 
Windows 8.


Sebastian


On 2016-02-17 5:11 PM, Torsten Bergmann wrote:

Sebastian wrote:

I don't want to spoil the great news, but actually the most recent
changes break Pharo 5.0 with SpurVM on Windows 8.
...

I tried several older snapshots of the VM and the Pharo images listed in
the PharoLauncher but none work.

Seriously you should rethink your way of COMMUNICATION:

  1. This thread here is about a specific UNIX package and you tell us about a
 general Pharo problem you seem to have on a completely different platform: 
WINDOWS.
   => 

  2. You "hijack" this thread instead of opening a separate one specific
 to the problem and asking if others might have the same issue.
   => 
  
  3. You "give a general warning" to others already to "keep their images"?

 No details on what modification could possibly harm the image.
   => 

  4. You talk about a broken Pharo 5 - but do not tell us what/where it is 
broken.
 Did the image not come up, is there a problem in a tool or when calling
 something/using UFFI.
   => 

  5. You talk about "recent changes" without telling us when it started or at
 a minimum with which image version you face the problem. When it worked
 before then one can easily use Launcher to incrementally download and check
 several images to find out which change broke something.
   => 

  6. You say you cant build a new image since a few days without giving any
 information what packages you load or how you build your custom images.
   => 

  7. You said that you used several combination of VM and images but
 do not tell us which one you used/expected to work.
   => 

Sorry - do you really think this is a good way to report a problem?
How do you expect someone to invest his sparse spare time to help you?
Maybe it is much easier to "just lament" instead of "being supportive".

As an info: I also use Pharo 5 (even latest images up to Pharo 5 #50586) on 
Windows
with Spur since 2 months. Found smaller issues that I reported, most of them are
already adressed because I was able to give a clear picture of what the problem 
was.
  
And yes - times are a little bit shaky because of Spur and UFFI - but this

was already announced/warned before and situation has improved a lot with
latest updates.

Please do us all a favour and open a new thread or much better a bug
report with exact details to reproduce if you have any finding.

Before that check your setup: for SpurVM you should try:
   http://files.pharo.org/vm/pharo-spur32/win/stable-20151214.zip (which is the 
Spur build from December)
   http://files.pharo.org/vm/pharo-spur32/win/PharoVM-Spur32-win-latest.zip 
(which is the latest CI built)
with the highest image build number: http://files.pharo.org/image/50/

For non-spur images (Pharo 4.0 and Pharo 5.0 up 50496 update) you need the old
non-spur VM: http://files.pharo.org/vm/pharo/win/

If you use Launcher check that you use the latest green build from 
https://ci.inria.fr/pharo/view/Launcher
and that spur and non-spur Vm is correctly configured in the Pharo launcher 
settings.

Thanks
Torsten







Re: [Pharo-users] [ANN] OSUnix and OSLinuxUbuntu on new UFFI

2016-02-17 Thread Sebastian Heidbrink

Hi,

I don't want to spoil the great news, but actually the most recent 
changes break Pharo 5.0 with SpurVM on Windows 8.


UFFI must have brought something in there that makes Pharo crash.

Windows 8 users should be adviced to keep their current working images.
I am lost since a few days since I can't built a new image that would 
actually work.
I tried several older snapshots of the VM and the Pharo images listed in 
the PharoLauncher but none work.


Sebastian

On 2016-02-17 12:24 PM, Torsten Bergmann wrote:

These two projects (who were based on NativeBoost in Pharo 4) are now updated
to new UFFI in Pharo 5 which means they are loadable in recent Pharo 5 image and
all tests pass.

So if you are working on Linux/Unix you might wan to check them out in latest
Pharo 5 by loading them from Catalog browser.

A BIG THANKS to Esteban for helping me in the conversion and updating
the new Unified FFI (UFFI) according to the issues that were found during
the conversion.

More is in the pipe ... step by step it goes!

Bye
T.















Re: [Pharo-users] PharoJS Status

2015-11-30 Thread Sebastian Heidbrink

Hi Craig,

First you should check the tests and run them 1 by 1.
Your default browser should open and you should see a PharoJS logo 
following a websocket log.
If that is working correctly then you have loaded all needed sources and 
your image should be fine.


There is general problem with the JSWorkspace and JSPlayground. If 
timeouts occur then it seems as if the image is busted and no PharoJS 
code works anymore.
In my case it usually helps to just start one of the interactive unit 
tests or to close and open the image.


Please read the class comments of JBBridge and other documented classes. 
This will give you a better understanding of how PharoJS actually works.


If you "doit" a "JbDemoApplication start" then your default web browser 
should open and you should see a green rectangle asking you to click on it.
You can put a "self halt" into the "setupDOM" method and especially into 
the callback handler blocks, see what it does,... you can debug the 
JS app within Pharo and the app changes live in the browser


There is also the class "JbBrowserExamples" which has two scripts on the 
class side. Copy them into a JSPlayground and inspect them.
The action should take place in the browser opened while you opened the 
JSPlayground.
But be aware! Those scripts do not stop the websocket nor the proxy and 
it usually does not take long until you have to restart/reset the image


I hope that helps a little?!

Sebastian







On 2015-11-30 12:56 PM, craig wrote:


Can the people that have it working provide some tips please.

I have the pink PharoJS workspace open, am I correct in understanding 
that the results of any evaluation is this workspace should show-up in 
the browser?  At this point nothing shows-up in the browser.


Craig

On 2015-11-30 21:16, craig wrote:

I just loaded PharoJS into a fresh v5 image,  and I also had the DNU 
message until I loaded the NewExternalWebBrowser package.

Craig
Sent from Samsung Mobile


 Original message 
From: Noury Bouraqadi
Date:2015/11/30 5:48 PM (GMT+02:00)
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] PharoJS Status

Just tested with a fresh image and it worked.
Noury
On 30 Nov 2015, at 16:37, Andy Burnett 
> wrote:


>>> Craig said
Hi All,

I'd like to start messing around with PharoJS.  Can anybody tell what
the status is? (Stable, broken, etc.)

And, which Pharo version should I use for this?
<<<
I have just started playing with it. I have had some difficulty 
getting a running image. Following the instructions - should - work, 
but I found that I needed to install the NewExternalWebBrowser 
package separately before it would run.

Cheers
Andy




Re: [Pharo-users] Sharing data between images

2015-11-29 Thread Sebastian Heidbrink

I used message pack before.
Nice thing is that you can easily also integrate to other environments.

https://github.com/msgpack/msgpack-smalltalk
http://smalltalkhub.com/#!/~MasashiUmezawa/MessagePack

Seabstian


On 2015-11-29 6:57 AM, Dimitris Chloupis wrote:
Just wondering what my options are about sharing data between images, 
should I use Ston ? A database ? something else ?


I would prefer options that have as few dependencies as possible and 
something that does not require from my users to install external stuff.


For now Ston looks like a good option but I am very new to all this so 
I would welcome any advice from the pharo experts.





Re: [Pharo-users] Very sad day for the world

2015-11-14 Thread Sebastian Heidbrink

Starve and beat a dog and he will bite.
Feed and train him and he will be your friend.

It is a matter of trust and I hope that my french friends will not loose 
their trust in humanity.


My condolences to all that are personally affected by this terrible act.
Sebastian


On 2015-11-14 2:26 PM, stepharo wrote:

Thanks for the link it was really interesting.

Stef


Le 14/11/15 20:01, p...@highoctane.be a écrit :
These guys are clinging to a model of the past instead of making the 
necessary changes to deal with the modernity transition challenge.


China transitioned, India transitioned, South Asia transitioned. They 
aren't.


France has been directly involved in Lybia, Syria, and Mali to fight 
they archaic model. France is all they hate. And all we love. 
Freedom, fun, curiosity, questioning, science, progress.


We should have crushed them in Syria already.

Check this out https://www.youtube.com/watch?v=usJm4C_XZtA for an 
indepth geostrategic view (french).


I am sad. But at the same time my resolve is stronger than ever. We 
need to stand for our values.


Phil


On Sat, Nov 14, 2015 at 2:18 PM, Tudor Girba > wrote:


My mind stopped for a while when I heard what happened. The way
in which it happened made me inevitably wonder about the kindness
of human kind. It’s a sad feeling even from afar and I cannot
imagine what people that are closer to the event might feel.

I wish you all strength to go through this and wisdom to go
beyond it.

Doru


> On Nov 14, 2015, at 6:08 AM, Hernán Morales Durand
 wrote:
>
> Cannot believe what happened in Paris. I am really sad and
frightened about the future of human kind.
>
> Love and strength to the people in Paris and all of France.
>
> Hernán
>

--
www.tudorgirba.com 

"Obvious things are difficult to teach."












Re: [Pharo-users] Pharos-Book

2015-11-06 Thread Sebastian Heidbrink

Actually before somebody expects a typo, I mean

https://github.com/CARMinesDouai/PhaROS-Book



On 2015-11-06 9:40 AM, Sebastian Heidbrink wrote:

Hi!

Is there a CI server somewhere that currently builds the PharOS-Book?

Or is there a place where the last built is available for download?

Cheers!
Sebastian







[Pharo-users] Pharos-Book

2015-11-06 Thread Sebastian Heidbrink

Hi!

Is there a CI server somewhere that currently builds the PharOS-Book?

Or is there a place where the last built is available for download?

Cheers!
Sebastian



[Pharo-users] VanIsle CampSmalltalk Autumn Edition, 6th - 8th November 2015

2015-10-16 Thread Sebastian Heidbrink

Hi Smalltalk enthusiasts!

the Vancouver Island Smalltalkers have decided to have a small 
CampSmalltalk again.


Last Spring Edition Camp in Nanaimo was a nice familiarand constructive 
meeting.
If you’re in the general pacific north-west region do consider coming 
along.


When: Friday & Saturday November 6-8th

Location: Makerspace Nanaimo
2221 McGarrigle Rd
Nanaimo, BC
Canada

their website:  makerspacenanaimo.org

 PLEASE SIGNUP @ https://www.picatic.com/event14133068326629 
!


Schedule/Presentations:
We have the Space all weekend long and we would like to dicuss our 
options and ideas for a BIG CampSmalltalk in Spring 2016 in Nanaimo.


If you are interested in
... VisualWorks APPEX and Sioux frameworks (Jerry Kott will be around)
... any kind of ScratchOnPI projects, eg. PiTouch, AstroPi, ... (Tim 
Rowledge)

... combining your Smalltalk project with any other peripheral device
... would like to try a different Smalltalk out
... just want to chat and meet old and new friends

then this should be the perfect weekend to do this and come over to 
Makerspace in Nanaimo.


Please contact us directly if you have questions regarding travel or 
accomodationa. We got some valuable feedback from last CampSmalltalks' 
participants.


Please let us also know if you’re interested.
Tim and Sebastian


Re: [Pharo-users] direct image code exchange

2015-08-06 Thread Sebastian Heidbrink

Hi Sven,

thank you! I will check it out.
I'll have such situation more and more often.
I'll let you know when I might have extended the code by some addons

Sebastian

On 2015-08-06 3:26 PM, Sven Van Caekenberghe wrote:

On 07 Aug 2015, at 00:13, Sebastian Heidbrink  wrote:

Is there a in-image monticello server available that would mimic a repository 
server?

Yes, it is called ZnMonticelloServerDelegate - it is meant as an example, but 
it works.






Re: [Pharo-users] direct image code exchange

2015-08-06 Thread Sebastian Heidbrink

Hi Mariano,

that is what I do, too.
I mean a case where I sit next to somebody and he uses his own computer 
and we dabble around.
After a while one sometimes want to just provide the other with some 
snippets or classes just implemented.


Email and USB stick are not always an option...

Sebastian


On 2015-08-06 3:17 PM, Mariano Martinez Peck wrote:
Something I do since years is to have my own cross-image-shared 
package cache or explicit directory-based monticello repository (added 
to your projects) where I have everything. Then, you can simply commit 
to your local directory based monticello report and load it in the 
other image..quite simple.





On Thu, Aug 6, 2015 at 7:13 PM, Sebastian Heidbrink <mailto:shei...@yahoo.de>> wrote:


Hi again,

I find my self more and more often showing others Pharo and very
often it might be great to just push code changes from one image
directly to another.

Is there a in-image monticello server available that would mimic a
repository server?

I already thought about webannouncements as a solution to
broadcast/push code within the network.
Or a shared remote playground that keeps a websocket connection
between images and would provide an easy way to copy&paste snippets...

@Stephan: How did you solve your latency issues with your remote
introductions? Couldn't one just extend gui announcements by web
announcements to remote control other images?

Sebastian






--
Mariano
http://marianopeck.wordpress.com




[Pharo-users] direct image code exchange

2015-08-06 Thread Sebastian Heidbrink

Hi again,

I find my self more and more often showing others Pharo and very often 
it might be great to just push code changes from one image directly to 
another.


Is there a in-image monticello server available that would mimic a 
repository server?


I already thought about webannouncements as a solution to broadcast/push 
code within the network.
Or a shared remote playground that keeps a websocket connection between 
images and would provide an easy way to copy&paste snippets...


@Stephan: How did you solve your latency issues with your remote 
introductions? Couldn't one just extend gui announcements by web 
announcements to remote control other images?


Sebastian





[Pharo-users] pharo application user identity

2015-08-06 Thread Sebastian Heidbrink

Hi,

my seaside, zinc and pharo applications had held user information within 
the image or a db.

That was enough since the users never needed access to local resources.

Now I am in the need to allow uploaded and storage of data on the 
server"s harddrive or a NAS.


I wonder how you guys solve identity related issues.
I recognized a ldap implementation on smalltalkhub.

Is there a documentation/example available on best practices regarding 
user directories and such?
Or is it a better idea to replace seaside based user registrations with 
solutions like keycloak and implement a single-sign-on infrastructure?


Thank you for any hint!
Sebastian




Re: [Pharo-users] ICFP contest 4th of August

2015-08-02 Thread Sebastian Heidbrink

Sorry wrong key it is on the 7th...



On 2015-08-02 10:05 PM, Sebastian Heidbrink wrote:

Hi!

Just in case somebody might have missed this:

http://icfpcontest.org/

Seabstian







[Pharo-users] ICFP contest 4th of August

2015-08-02 Thread Sebastian Heidbrink

Hi!

Just in case somebody might have missed this:

http://icfpcontest.org/

Seabstian



Re: [Pharo-users] (Money) accounting soft in Pharo?

2015-07-21 Thread Sebastian Heidbrink

Hi Peter,

I am not aware of the current status, but it might be worth a look
http://www.squeaksource.com/SmallPOS.html
http://ss3.gemstone.com/ss/SmallPOS.html
http://www.smalltalkhub.com/#!/~assargadon/SmallPOS

Sebastian

Am 21.07.2015 um 14:56 schrieb Peter Uhnák:

Hi,

is there any (double-entry) accounting software in Pharo? (Think 
GnuCash/KMyMoney/...)


Peter





Re: [Pharo-users] Data Week: A week long workshop on data visualization using Pharo and Roassal

2015-06-26 Thread Sebastian Heidbrink

Hi Offray,

I started a software night here in town and I was also thinking about 
presenting the GTToolkit and Roassal to the crowd.


You mentioned something that made made me wonder.
You said that even non programmers liked the language.

How did you approach them? Did you give them prepared interface 
implementations to Twitter and also a predefined GTToolkit browser 
implementation?

Or did they just use the inspector?

What does one need to use Twitter as a base for a demo? A developer 
account I guess?


How stable is Pharo of it comes to the usage by non Smalltalkers and non 
developers?
I thought one might spent most of the time with explaining what which 
tool is what not to use "just now!"


Is there any library or framework available on smalltalkhub.com that you 
could recommend as a base for such presentation/workshop?


Thank you!
Sebastian



Am 25.06.2015 um 20:00 schrieb Offray Vladimir Luna Cárdenas:

Hi all,

All this week we have been doing a workshop on data visualization 
using Pharo and Roassal on Grafoscopio. It started on last Monday and 
will end on next Saturday. Details are on [1][2]. The experience so 
far has been really gratifying and enjoyable. Newbies (with no 
background on programming and/or Smalltalk) liked the language, the 
Roassal capabilities and galleries and the inclusion of GT-Tools help 
a lot with code learning and exploration. I was planing to announce 
this before the event, but I had a really busy week and even I planned 
to aski for help with bugs or other questions, but so far we had only 
minor glitches.


[1] http://mutabit.com/dataweek
[2] https://twitter.com/hashtag/DataWeekCo?src=hash

So, thank all the community once more for your awesome work. Now that 
Alexandre and others talk about "the blues" because of absences on 
GitHub or SO, it important to talk about this small, significant and 
even life changing experience that happens on next door, thanks to 
what you have make possible. Let's not forget that.


Cheers,

Offray

Ps: I will follow this thread with some questions that rose on the 
workshop. I was thinking on asking the participants to share their 
questions on SO, so may be is time to do it... We will see tomorrow.








Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-25 Thread Sebastian Heidbrink

Actually with the new version 2.0 I would also change my workflow.
Version 1.2 had not online spec editor tooling support and this is why I 
let Gemstone describe my REST API and render the Swagger json specification.


In Swagger 2.0 I would rather take the online spec editor define a 
swagger spec and take the resulting json file to generate ZincRESTCall 
subclasses.

This way a client developer or user is able to define his or her needs.

Whish I had more time right now.

Sebastian


Am 24.06.2015 um 01:14 schrieb itli...@schrievkrom.de:

We go a very similiar way as Sebastian - but with our company need NOT
to build a Smalltalk-only system, but also offer support for several
other developers/languages.

We use

* Zinc REST

* Gemstone 3.2.6

We generate code to have:

* Swagger-UI and Swagger-Core support (currently 1.2)

Earlier the swagger stuff was also handled by Gemstone, but now we
create Gemstone-Code to write the Swagger-specs into the server filesystem.

Practically the swagger-core support has been working with C# (we had to
correct/change the template for source code generation).

We see now the need to go to Swagger 2.0, to stay near the development
master stream.

The whole system is working very stable - the only problem I have is a
10 MB limit on the Gemstone socket system - here the Zinc HTTP System
subsystem must be changed to get rid of this problem.


Marten

Am 23.06.2015 um 20:40 schrieb sergio_101:

I have been a project coming up that I really onlyneed a restful  API on.

The front end will  be first built on a mobile device(iOS )then back on
possibly android, with a very stripped down web application.

i would like to use pharo/gemstones as the database.

is there a project out there that allows for such restful API
development in pharo land? This would be so fun!

thanks







Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-25 Thread Sebastian Heidbrink

Hi Sven,

I put some code on GitHub.
There is no working example yet, but all one needs.

I have to get back into Amber and their current way to integrate 
external libs.
As soon as I have that working again I will add a Version 1.2 petstore 
example.


https://github.com/HeSe/amber-swaggerJs

Most important part is the SwaggerApi class and the methods build and 
initializeSwaggerInterfaceFor:
They import the hosted swagger spec and build the JS-Api Interface 
object one can use in Amber, there is really not much to it.


Sebastian

Am 23.06.2015 um 14:39 schrieb Sven Van Caekenberghe:

On 23 Jun 2015, at 22:55, Sebastian Heidbrink  wrote:

Hi Sergio,

Zinc-REST is part of the Zinc repository and a fork for Gemstone can be found 
here: 
https://github.com/GsDevKit/zinc/tree/gs_master/repository/Zinc-REST.package
Most part is to implement the code that generates the Swagger specification for 
your ZnRESTCall subclasses. But it is no vodoo.
It becomes more complexe if you would actually like to use the swagger 
specification on the server site to do request data validation and error 
handling, I currently use Swagger only for documentation purposes.

Amber limitations? Not really.
It took me some time to figure out how to configure my servers to cope with 
CORS for the Swagger-UI and my current jsonwebtocken security mechanism is not 
supported by the SwaggerUI and I had to allow insecure access for the Swagger 
UI to the Gemstone server.

The Amber Swagger-JS integration works quite nicely.
I did not publish the code on Github because the integration is so tiny. I can 
send it to you if you like.
Or no,... let me prepare a demo based on the Swagger petshop demo and I will 
put it online.
Might take a day or two until I find some time.

Yes please write something about this, this is interesting for many people.


Sebastian




Am 23.06.2015 um 13:05 schrieb sergio_101:

hey, sebastian.. this looks great! this looks like what i am after..

did you run into any problems or limitations using Amber as a front end? I have 
not tried Amber yet, so this might be the right time to give it a shot.. where 
did you find zinc-rest? a quick search turns up references to it.. should i be 
able to   just install it via my image?

andrew - i thought about using the seaside rest add on, but seaside seems to be 
alot of overhead just to run a rest server..

mariano - i am thinking about using api token..



On Tue, Jun 23, 2015 at 3:13 PM Sebastian Heidbrink  wrote:
Am 23.06.2015 um 11:40 schrieb sergio_101:

I have been a project coming up that I really onlyneed a restful  API on.

The front end will  be first built on a mobile device(iOS )then back on 
possibly android, with a very stripped down web application.

i would like to use pharo/gemstones as the database.

is there a project out there that allows for such restful API development in 
pharo land? This would be so fun!

thanks

I am not so sure what you mean exactly but this is my stack.

I use pure Zinc-REST on the Gemstone side and the REST API is described in 
Swagger-Spec from within Gmestone.
Clients are VBA, Amber and Pharo and they utilize the Swagger API spec to 
access the server.

Works pretty well and is much more preformant than the intial Pharo MongoDB 
backend I initially used.

Have a look into http://smalltalkhub.com/#!/~HeSe/Swagger-Spec
There you can find most of the needed Swagger implementation some minor details 
like type constants are missing.

Once your Gemstoneserver knows how to host his Swagger-Spec you can host it via 
https://github.com/swagger-api/swagger-ui
This saves a lot of explaning time to client developers.


Sebastian








Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Sebastian Heidbrink

Hi Sergio,

Zinc-REST is part of the Zinc repository and a fork for Gemstone can be 
found here: 
https://github.com/GsDevKit/zinc/tree/gs_master/repository/Zinc-REST.package
Most part is to implement the code that generates the Swagger 
specification for your ZnRESTCall subclasses. But it is no vodoo.
It becomes more complexe if you would actually like to use the swagger 
specification on the server site to do request data validation and error 
handling, I currently use Swagger only for documentation purposes.


Amber limitations? Not really.
It took me some time to figure out how to configure my servers to cope 
with CORS for the Swagger-UI and my current jsonwebtocken security 
mechanism is not supported by the SwaggerUI and I had to allow insecure 
access for the Swagger UI to the Gemstone server.


The Amber Swagger-JS integration works quite nicely.
I did not publish the code on Github because the integration is so tiny. 
I can send it to you if you like.
Or no,... let me prepare a demo based on the Swagger petshop demo and I 
will put it online.

Might take a day or two until I find some time.

Sebastian




Am 23.06.2015 um 13:05 schrieb sergio_101:

hey, sebastian.. this looks great! this looks like what i am after..

did you run into any problems or limitations using Amber as a front 
end? I have not tried Amber yet, so this might be the right time to 
give it a shot.. where did you find zinc-rest? a quick search turns up 
references to it.. should i be able to just install it via my image?


andrew - i thought about using the seaside rest add on, but seaside 
seems to be alot of overhead just to run a rest server..


mariano - i am thinking about using api token..



On Tue, Jun 23, 2015 at 3:13 PM Sebastian Heidbrink <mailto:shei...@yahoo.de>> wrote:


Am 23.06.2015 um 11:40 schrieb sergio_101:

I have been a project coming up that I really onlyneed a restful
 API on.

The front end will  be first built on a mobile device(iOS )then
back on possibly android, with a very stripped down web application.

i would like to use pharo/gemstones as the database.

is there a project out there that allows for such restful API
development in pharo land? This would be so fun!

thanks


I am not so sure what you mean exactly but this is my stack.

I use pure Zinc-REST on the Gemstone side and the REST API is
described in Swagger-Spec from within Gmestone.
Clients are VBA, Amber and Pharo and they utilize the Swagger API
spec to access the server.

Works pretty well and is much more preformant than the intial
Pharo MongoDB backend I initially used.

Have a look into http://smalltalkhub.com/#!/~HeSe/Swagger-Spec
<http://smalltalkhub.com/#%21/%7EHeSe/Swagger-Spec>
There you can find most of the needed Swagger implementation some
minor details like type constants are missing.

Once your Gemstoneserver knows how to host his Swagger-Spec you
can host it via https://github.com/swagger-api/swagger-ui
This saves a lot of explaning time to client developers.


Sebastian





Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Sebastian Heidbrink

Am 23.06.2015 um 11:40 schrieb sergio_101:

I have been a project coming up that I really onlyneed a restful  API on.

The front end will  be first built on a mobile device(iOS )then back 
on possibly android, with a very stripped down web application.


i would like to use pharo/gemstones as the database.

is there a project out there that allows for such restful API 
development in pharo land? This would be so fun!


thanks


I am not so sure what you mean exactly but this is my stack.

I use pure Zinc-REST on the Gemstone side and the REST API is described 
in Swagger-Spec from within Gmestone.
Clients are VBA, Amber and Pharo and they utilize the Swagger API spec 
to access the server.


Works pretty well and is much more preformant than the intial Pharo 
MongoDB backend I initially used.


Have a look into http://smalltalkhub.com/#!/~HeSe/Swagger-Spec
There you can find most of the needed Swagger implementation some minor 
details like type constants are missing.


Once your Gemstoneserver knows how to host his Swagger-Spec you can host 
it via https://github.com/swagger-api/swagger-ui

This saves a lot of explaning time to client developers.

Sebastian


Re: [Pharo-users] Alt-tab between windows

2015-05-16 Thread Sebastian Heidbrink

See,

this is why I love Smalltalk
Tell me a different environment where you can actually have such discussion.

To make this a little clearer.
Pharo and Squeak are solely open source. So one might say, well this 
can be done/extended/changed in Eclipse, too.


How about VW and VAST?
Well, you can change the development environment and it's behavior 
according to your needs, too.
Want a putton to print something out for development purpose? Just add 
it :-D


Try this with Visual Studio and xCode on that level.

Avdi if you think the things you have seen so far are cool?! Well, that 
is just the beginning and you actually can make your environment easily 
even cooler,... once you have taken the first hurdles.


With GlamourToolKit, Pharo community is even bringing this to a more 
abstract level and I love playing with it.


I wish I was deeper into Pharo already.
Isn't there somebody who could just hack a small .st file to file-in the 
desired behavior that Avdi is looking for?

A temporary hack?

Cheers!
Sebastian


On 2015-05-16 1:11 PM, Tudor Girba wrote:

Hi Avdi,

Welcome.

As the others mentioned, this part of Pharo is not at all ideal. 
Please bare with us.


Cheers,
Doru



On Sat, May 16, 2015 at 12:52 AM, Avdi Grimm > wrote:


Hey folks! I've dabbled with smalltalk here and there over the
years, but recently I've settled in to learn Pharo in earnest. A
few of you might have seen the videos I've been putting up; they
seem to be making the rounds on Twitter. I just want to say I've
felt really welcomed by all the people who have commented with
helpful tips, or offered to help with my exploration :-)

I've run into my first big blocker as a newcomer. Like many
programmers I'm a fan of keeping my hands on the keyboard. Now,
I'm more flexible on this than some. I recognize that Pharo is a
visual environment, and it makes sense to explore it with a mouse.
And some interactions just make more sense with a mouse.

That said, no matter what windowing environment I'm in, I find the
ability to quickly cycle between windows without leaving the
keyboard pretty crucial. One Windows or Ubuntu I would normally do
this with Alt-Tab or Super-Tab. On MacOS it's Cmd-Tab.

I've been trying to figure out how to do this in Pharo. I've
looked for answers with Google, SO, and on IRC, and I've come up
blank. I'm starting to think it can't be done.

So, I've come here for your help. Is there a way to cycle between
windows? Or is anyone working on it? Or, perhaps, am I missing an
element of the Pharo programming workflow which renders it unneeded?

Many thanks,

--
Avdi




--
www.tudorgirba.com 

"Every thing has its own flow"




Re: [Pharo-users] Reddit discussion (rant) about Pharo 4.0 first time users' experiences

2015-04-29 Thread Sebastian Heidbrink
I am not willing to create an account there but Phil, I must say I share 
most things you wrote there.


Just some small things I would add.

1: One must understand that Smalltalk is a live empty OS that one can 
modify with merely any rules or limitations.
2: One must be god if you can start implementing projects without 
reading the MSDN library or any other programming language documentation.
3: Oppose to VisualStudio you can actually add a close button for 
browsers according to you needs. Pharo does not prevent you from this.
4: Tutorial? This is a great introduction to get started. Try to 
understand most of all concepts and syntax of a different language in 
approx. 13 slides...
5: He learned how to execute code and does not know how to start an 
application, well this is a flaw. Does the Tutorial ask for too much 
genuity and should be extended by one sentence to clarify this?
6: Real tutorial, but maybe too complex for somebody who does already 
want to play with repositories, socket communication and debugging 
point him at http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
7: Doesn't the Welcome page point at the Help Documentation? It does 
explain how to create "projects" doesn't it?
8: GUI looks old and is slow? +1 to him,... I also have a hard time to 
sell it, but at least I am aware how much there is currently done...
9: If he really wants to get an idea on the size and complexity of 
Smalltalk once could refer him to VASmalltalk and IBM's Programmers 
reference, 2 1/2 years later he will have worked though it have 
enough experience write his first proper lines of code and be a bad ass 
Smalltalker 5 years afterwards


I saw Cuis Smalltalk last weekend, I thing Cuis and a little simpler 
might be the best introduction plattform to Smalltalk,... just raw 
Smalltalk and switch by switch one can turn on features like a 
repository, profiler, configurations, deployment,


Just my 5cents
Sebastian


On 2015-04-29 11:11 PM, p...@highoctane.be wrote:


put some replies.
maybe someone can add links to Kilon videos there.

Phil

Le 30 avr. 2015 04:50, "Esteban A. Maringolo" > a écrit :


I don't agree with most of the things mentioned, but I think its worth
looking at to see if there is something to actually improve.


http://www.reddit.com/r/smalltalk/comments/32xwmr/my_experience_with_pharo_40/

Regards,

Esteban A. Maringolo






Re: [Pharo-users] deploying a desktop GUI based image

2015-04-21 Thread Sebastian Heidbrink

Hi again!

well this is weird.
I tried it and it worked!
My tool now also starts in fullscreen mode.
Well then I assume ther emust have been something reinitialiyed while 
doing your Example browser test.


That is weird.

Well, then forget the whole thread!
Everything is fine and I might just have had an inconsistancy in my image.

Sebastian




Am 21.04.2015 um 07:57 schrieb Andrei Chis:

Why not execute this code:

| browser |
browser := GLMTabulator new.
(browser openOn: ($a to: $d)) openFullscreen.

When calling 'GLMSystemWindow allInstances first' you must have only a 
single
window in the system (including windows that have been closed but not 
garbaged collected).


Cheers,
Andrei


On Tue, Apr 21, 2015 at 4:51 PM, Sebastian Heidbrink <mailto:shei...@yahoo.de>> wrote:


Hi Chris,

this is the basic idea. One will have to find the right instance.
In my case this is executed suring the startup process while there
are no windows opened.


| browser |
browser := GLMTabulator new.
browser openOn: ($a to: $d).

GLMSystemWindow allInstances first openFullscreen


Hope that helps
Sebastian



Am 21.04.2015 um 07:33 schrieb Andrei Chis:

Hi Sebastian,

Can you give us more info about the error that you are getting
and maybe a way to reproduce it.

Cheers,
Andrei


On Tue, Apr 21, 2015 at 4:28 PM, Sebastian Heidbrink
mailto:shei...@yahoo.de>> wrote:

Hi Thierry,

This does somehow not really work.
I get an error due to the fact that a BrickWrapper's state is
undefined and therefore does not understand "isOnParent".

So this is why I thought there must be a different way for
GLMSystemWindow or other non SPEC windows.

I'll check with the Moose guys again!
Thank you!
Sebastian



Am 21.04.2015 um 06:55 schrieb Thierry Goubier:

Hi Sebastian,

there is a top-level approach to do that via Morphic, which
is to call openFullScreen in a StandardWindow instance.

If you can get a hold of the top-level window of your
Glamour before it opens, then you just have to send
openFullScreen to it. SpecWindow inherit from
StandardWindow, so I suspect this is what it uses.

Beware, it's really full screen: once launched, closing that
window interactively is challenging.

    Thierry

2015-04-21 15:46 GMT+02:00 Sebastian Heidbrink
mailto:shei...@yahoo.de>>:

Hi all!

I asked this question on the Moose list already ,but it
seems nobody can help me there.

I would liek to deploy a pharo app based on Glamour and
Roassal as a "hands on demo".

I was told Damien's Pharo launcher is currently somehow
the reference implementation for a "fullscreen" pharo
application.
The pharo launcher is SPEC based and this provides some
functionality regarding that but Glamour doesn't. So I
assume there must be a "general" way to do it.
Unfortunately I am not able to tell the Galmour Browser
to be "fullscreen" and i also want to make sure nobody
is able to get access to the code or pharo related tools.

Does anybody here have experience in that or has a link
to a documentation regarding this?
The only stuff Ia was able to find is seaside headless
related deployment but nothing for UI based images.

Thank you for any help!
Sebastian












Re: [Pharo-users] deploying a desktop GUI based image

2015-04-21 Thread Sebastian Heidbrink

Hi Chris,

this is the basic idea. One will have to find the right instance. In my 
case this is executed suring the startup process while there are no 
windows opened.



| browser |
browser := GLMTabulator new.
browser openOn: ($a to: $d).

GLMSystemWindow allInstances first openFullscreen


Hope that helps
Sebastian


Am 21.04.2015 um 07:33 schrieb Andrei Chis:

Hi Sebastian,

Can you give us more info about the error that you are getting and 
maybe a way to reproduce it.


Cheers,
Andrei


On Tue, Apr 21, 2015 at 4:28 PM, Sebastian Heidbrink <mailto:shei...@yahoo.de>> wrote:


Hi Thierry,

This does somehow not really work.
I get an error due to the fact that a BrickWrapper's state is
undefined and therefore does not understand "isOnParent".

So this is why I thought there must be a different way for
GLMSystemWindow or other non SPEC windows.

I'll check with the Moose guys again!
Thank you!
Sebastian



Am 21.04.2015 um 06:55 schrieb Thierry Goubier:

Hi Sebastian,

there is a top-level approach to do that via Morphic, which is to
call openFullScreen in a StandardWindow instance.

If you can get a hold of the top-level window of your Glamour
before it opens, then you just have to send openFullScreen to it.
SpecWindow inherit from StandardWindow, so I suspect this is what
it uses.

Beware, it's really full screen: once launched, closing that
window interactively is challenging.

Thierry

2015-04-21 15:46 GMT+02:00 Sebastian Heidbrink mailto:shei...@yahoo.de>>:

Hi all!

I asked this question on the Moose list already ,but it seems
nobody can help me there.

I would liek to deploy a pharo app based on Glamour and
Roassal as a "hands on demo".

I was told Damien's Pharo launcher is currently somehow the
reference implementation for a "fullscreen" pharo application.
The pharo launcher is SPEC based and this provides some
functionality regarding that but Glamour doesn't. So I assume
there must be a "general" way to do it.
Unfortunately I am not able to tell the Galmour Browser to be
"fullscreen" and i also want to make sure nobody is able to
get access to the code or pharo related tools.

Does anybody here have experience in that or has a link to a
documentation regarding this?
The only stuff Ia was able to find is seaside headless
related deployment but nothing for UI based images.

Thank you for any help!
Sebastian









Re: [Pharo-users] deploying a desktop GUI based image

2015-04-21 Thread Sebastian Heidbrink

Hi Thierry,

This does somehow not really work.
I get an error due to the fact that a BrickWrapper's state is undefined 
and therefore does not understand  "isOnParent".


So this is why I thought there must be a different way for 
GLMSystemWindow or other non SPEC windows.


I'll check with the Moose guys again!
Thank you!
Sebastian


Am 21.04.2015 um 06:55 schrieb Thierry Goubier:

Hi Sebastian,

there is a top-level approach to do that via Morphic, which is to call 
openFullScreen in a StandardWindow instance.


If you can get a hold of the top-level window of your Glamour before 
it opens, then you just have to send openFullScreen to it. SpecWindow 
inherit from StandardWindow, so I suspect this is what it uses.


Beware, it's really full screen: once launched, closing that window 
interactively is challenging.


Thierry

2015-04-21 15:46 GMT+02:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Hi all!

I asked this question on the Moose list already ,but it seems
nobody can help me there.

I would liek to deploy a pharo app based on Glamour and Roassal as
a "hands on demo".

I was told Damien's Pharo launcher is currently somehow the
reference implementation for a "fullscreen" pharo application.
The pharo launcher is SPEC based and this provides some
functionality regarding that but Glamour doesn't. So I assume
there must be a "general" way to do it.
Unfortunately I am not able to tell the Galmour Browser to be
"fullscreen" and i also want to make sure nobody is able to get
access to the code or pharo related tools.

Does anybody here have experience in that or has a link to a
documentation regarding this?
The only stuff Ia was able to find is seaside headless related
deployment but nothing for UI based images.

Thank you for any help!
Sebastian






[Pharo-users] deploying a desktop GUI based image

2015-04-21 Thread Sebastian Heidbrink

Hi all!

I asked this question on the Moose list already ,but it seems nobody can 
help me there.


I would liek to deploy a pharo app based on Glamour and Roassal as a 
"hands on demo".


I was told Damien's Pharo launcher is currently somehow the reference 
implementation for a "fullscreen" pharo application.
The pharo launcher is SPEC based and this provides some functionality 
regarding that but Glamour doesn't. So I assume there must be a 
"general" way to do it.
Unfortunately I am not able to tell the Galmour Browser to be 
"fullscreen" and i also want to make sure nobody is able to get access 
to the code or pharo related tools.


Does anybody here have experience in that or has a link to a 
documentation regarding this?
The only stuff Ia was able to find is seaside headless related 
deployment but nothing for UI based images.


Thank you for any help!
Sebastian



Re: [Pharo-users] Spring CampSmalltalk

2015-03-31 Thread Sebastian Heidbrink

I am sorry this was a typo!

When: Saturday & Sunday April 25-26th

Location: Makerspace Nanaimo
2221 McGarrigle Rd
Nanaimo

Sebastian






Hi Smalltalk enthusiasts!

Since Tim and I were already asked for a second CampSmalltalk this 
spring we decided hold another camp in Nanaimo at the end of April.


Last Camp in Nanaimo was amazingly successful and everyone had much fun.
If you’re in the general pacific north-west region do consider coming 
along.


When: Friday & Saturday April 25-26th

Location: Makerspace Nanaimo
2221 McGarrigle Rd
Nanaimo

their website:  makerspacenanaimo.org

Schedule/Presentations:
Non! We have the Space all weekend long and do not need to leave the 
place this time!


If you are interested in
... any kind of ScratchOnPI projects
... combining your Smalltalk project with any other peripheral device
... would like to try a different Smalltalk out
... just want to chat and meet old and new friends

then this should be the perfect weekend to do this and come over 
to Makerspace in Nanaimo.


Please contact us directly if you have questions regarding travel or 
accomodationa. We got some valuable feedback from last CampSmalltalk's 
participants.


Please let us also know if you’re interested.
Tim and Sebastian







[Pharo-users] Spring CampSmalltalk

2015-03-31 Thread Sebastian Heidbrink

Hi Smalltalk enthusiasts!

Since Tim and I were already asked for a second CampSmalltalk this 
spring we decided hold another camp in Nanaimo at the end of April.


Last Camp in Nanaimo was amazingly successful and everyone had much fun.
If you’re in the general pacific north-west region do consider coming along.

When: Friday & Saturday April 25-26th

Location: Makerspace Nanaimo
2221 McGarrigle Rd
Nanaimo

their website:  makerspacenanaimo.org

Schedule/Presentations:
Non! We have the Space all weekend long and do not need to leave the 
place this time!


If you are interested in
... any kind of ScratchOnPI projects
... combining your Smalltalk project with any other peripheral device
... would like to try a different Smalltalk out
... just want to chat and meet old and new friends

then this should be the perfect weekend to do this and come over to 
Makerspace in Nanaimo.


Please contact us directly if you have questions regarding travel or 
accomodationa. We got some valuable feedback from last CampSmalltalk's 
participants.


Please let us also know if you’re interested.
Tim and Sebastian



[Pharo-users] Pharo-Launcher Windows 8.1

2015-03-20 Thread Sebastian Heidbrink

Hi,

I recently mentioned issues with the installation of the pharo-launcher 
on Windows 8.1


Turned out I just needed to download the PharoV30.sources file and place 
into the installation folder.


Now everything seems fine.

Is this also a topic for the pharo bug list, or is there another place 
where I can mention this?


Sebastian



Re: [Pharo-users] SystemBrowser feature request / bug report

2015-03-20 Thread Sebastian Heidbrink

Thank you!

Will do!

Sebastian

On 2015-03-20 9:51 AM, Ben Coman wrote:
Sounds reasonable.  Actually perhaps the behaviour should be that 
subsequent presses of the key moves to the next match.  Please log an 
issue at pharo.fobgugz.com <http://pharo.fobgugz.com> with your idea.

cheers -ben

On Fri, Mar 20, 2015 at 11:15 PM, Sebastian Heidbrink 
mailto:shei...@yahoo.de>> wrote:


Hi!

I think it is a mix of a feature and a bug.

When ever one implements a Magritte, Moose or Morphic project the
functionality to select the package list and enter/hit key "m"
does not fast scroll down to those packages but rather selects the
"Most Viewed Classes" entry.

I propose to catch "m" and ignore "Most Viewd Classes" for this
fast scroll/find functionality.

Sebastian






[Pharo-users] SystemBrowser feature request / bug report

2015-03-20 Thread Sebastian Heidbrink

Hi!

I think it is a mix of a feature and a bug.

When ever one implements a Magritte, Moose or Morphic project the 
functionality to select the package list and enter/hit key "m" does not 
fast scroll down to those packages but rather selects the "Most Viewed 
Classes" entry.


I propose to catch "m" and ignore "Most Viewd Classes" for this fast 
scroll/find functionality.


Sebastian


Re: [Pharo-users] Pharo and Pi

2015-03-18 Thread Sebastian Heidbrink

Hi Torsten,

we tried to start pharo 4.0 on the Parallella board , which is somehow 
like the Pi2 and did succeed partially.


The problem with Pharo4 and the VM is that there is no NativeBoost nor 
OSProcess available o ARM VMs.


I just strated to do some reseach on this and can't provide more 
information on this but jsut google:

"vm  pharo arm nativeboost Can't find the requested origin"

you can start the image, you can save it, you can load source, but you 
can't use stuff like VirtualGPU yet.


The VMs I tried were all from Inria's jenkins servers.

Sebastian




Am 18.03.2015 um 07:35 schrieb Torsten Bergmann:

Read about "piCore" this week which is a Tiny Core Linux
for the Pi.

As there is
  - a quick bootable Pharo on top of TinyLinux (Mikes "PharoNOS" project)
  - a Pharo that is runnable on Pi

I wonder if anyone already did some experiments on booting directly
into Pharo on a pi.

Still a "pi newbee" I also would like to know how to get started to
Pharo on Pi. Seems like the CI job is not available:

   https://ci.inria.fr/pharo-contribution/computer/RaspberryPi/

Where to get started with Pharo on Pi these days? Any "quick
guide"?

Thx
T.







[Pharo-users] configuration browser descriptions

2015-03-12 Thread Sebastian Heidbrink

Hi!

Here is another information based on my last beginners session.

One should discuss if it might be useful and easy to implement to have a 
configuration browser that includes descriptions for the offered 
configurations.

Beginners have no idea what Seaside,  AltBrowser, Artefact,... stand for.

Cheers!
Sebastian



Re: [Pharo-users] Linux and Windows 3.0 differences

2015-03-04 Thread Sebastian Heidbrink

ooops.

and created a pharo 3.0 and 4.0 image via the launcher

Sebastian

On 2015-03-04 12:13 AM, Marcus Denker wrote:

On 04 Mar 2015, at 08:45, Sebastian Heidbrink  wrote:

Hi!

I just returned from a one on one Smalltalk introduction I gave tonight.

Can you please check for differences in the current Pharo3.0 one-click-images 
for Windows and Linux?

We had issues tonight that make it quite understandable that some beginners 
might stop looking at Smalltalk after a while.

Date fromString: method
contains a method comment on Windows and on Ubuntu it doesn't even include an 
implementation.


Wow… that means that the sources file is corrupt.


The behavior of icons in the Class hierarchy are inconsitent on Ubuntu.
Where as entering a class comment changes the icons from an exclamation mark to 
the green class icon on windows; in Ubuntu the super classes of the class 
remain exclamation marks even hough they include comments.
The user thought he did something wrong,... or something is forbidden in 
general the meaning of the icons does not to seem self-explainatory


This, too, is related to .changes: the class comment is stored there.

(ceterum censeo: we need to kill .sources and .changes…)


Pharo 4.0 the mouse buttons are switched,... that is annoying
copy&paste from Chrome to Pharo 4.0 workspace/Playground on Ubuntu did not work 
either.

But now also something positive.
The user tried to get started in Squeak last week and spent hours to find out 
how things work and how to install stuff.
Tonight we setup pharo-launcher and two images 5 minutes later: "Wow,... that 
was fast! And we can start now?"
:-D

By the way! Windows 8 pharo-launcher? Is there anything special to it? I was 
not able to get it going tonight.

Cheers!
Sebastian










Re: [Pharo-users] Linux and Windows 3.0 differences

2015-03-04 Thread Sebastian Heidbrink

Hi Marcus,

he installed the environment in front of my eyes via the Ubuntu ppa 
described on the website tonight.



|sudo add-apt-repository ppa:pharo/stable
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install pharo-launcher

|


Sebastian

On 2015-03-04 12:13 AM, Marcus Denker wrote:

On 04 Mar 2015, at 08:45, Sebastian Heidbrink  wrote:

Hi!

I just returned from a one on one Smalltalk introduction I gave tonight.

Can you please check for differences in the current Pharo3.0 one-click-images 
for Windows and Linux?

We had issues tonight that make it quite understandable that some beginners 
might stop looking at Smalltalk after a while.

Date fromString: method
contains a method comment on Windows and on Ubuntu it doesn't even include an 
implementation.


Wow… that means that the sources file is corrupt.


The behavior of icons in the Class hierarchy are inconsitent on Ubuntu.
Where as entering a class comment changes the icons from an exclamation mark to 
the green class icon on windows; in Ubuntu the super classes of the class 
remain exclamation marks even hough they include comments.
The user thought he did something wrong,... or something is forbidden in 
general the meaning of the icons does not to seem self-explainatory


This, too, is related to .changes: the class comment is stored there.

(ceterum censeo: we need to kill .sources and .changes…)


Pharo 4.0 the mouse buttons are switched,... that is annoying
copy&paste from Chrome to Pharo 4.0 workspace/Playground on Ubuntu did not work 
either.

But now also something positive.
The user tried to get started in Squeak last week and spent hours to find out 
how things work and how to install stuff.
Tonight we setup pharo-launcher and two images 5 minutes later: "Wow,... that 
was fast! And we can start now?"
:-D

By the way! Windows 8 pharo-launcher? Is there anything special to it? I was 
not able to get it going tonight.

Cheers!
Sebastian









[Pharo-users] Linux and Windows 3.0 differences

2015-03-03 Thread Sebastian Heidbrink

Hi!

I just returned from a one on one Smalltalk introduction I gave tonight.

Can you please check for differences in the current Pharo3.0 
one-click-images for Windows and Linux?


We had issues tonight that make it quite understandable that some 
beginners might stop looking at Smalltalk after a while.


Date fromString: method
contains a method comment on Windows and on Ubuntu it doesn't even 
include an implementation.


The behavior of icons in the Class hierarchy are inconsitent on Ubuntu.
Where as entering a class comment changes the icons from an exclamation 
mark to the green class icon on windows; in Ubuntu the super classes of 
the class remain exclamation marks even hough they include comments.
The user thought he did something wrong,... or something is forbidden in 
general the meaning of the icons does not to seem self-explainatory


Pharo 4.0 the mouse buttons are switched,... that is annoying
copy&paste from Chrome to Pharo 4.0 workspace/Playground on Ubuntu did 
not work either.


But now also something positive.
The user tried to get started in Squeak last week and spent hours to 
find out how things work and how to install stuff.
Tonight we setup pharo-launcher and two images 5 minutes later: 
"Wow,... that was fast! And we can start now?"

:-D

By the way! Windows 8 pharo-launcher? Is there anything special to it? I 
was not able to get it going tonight.


Cheers!
Sebastian




Re: [Pharo-users] spec column/ row layout

2015-02-14 Thread Sebastian Heidbrink

Hmmm I don't know!

It was from the examples :-D

Sebastian

Am 14.02.2015 um 01:25 schrieb Hilaire:

Le 14/02/2015 10:21, Hilaire a écrit :

Le 14/02/2015 00:52, Sebastian Heidbrink a écrit :

  What is wrong with this spec?
Why is the checkbox attached to the buttom? I would have expected it
to be directly underneath the password label.
Is this default behavior and how can I prevent this?


I don't know spec at all, but it looks like a shrink attributes should
be used. May be there is on the spec api.

Hilaire


Another remark, why is
   height: self inputTextHeight;
needed?

Should not spec have a default automatic way to set it, deducing from
the row contents?

Hilaire






Re: [Pharo-users] Learning Spec

2015-02-14 Thread Sebastian Heidbrink

I ment both blue parts

Sebastian

Am 14.02.2015 um 01:56 schrieb Peter Uhnák:


So Spec is the Blue stuff and the HP35 example is including the
orange part.

Just the light blue, no? I thought the dark blue (VIew) is Morpic.

Peter




[Pharo-users] spec column/ row layout

2015-02-13 Thread Sebastian Heidbrink
 What is wrong with this spec?
Why is the checkbox attached to the buttom? I would have expected it to be 
directly underneath the password label.
Is this default behavior and how can I prevent this?


defaultSpec
    
    ^SpecLayout composed
  newColumn: [ :col |
    col
  newRow: [ :row |
    row
  add: #usernameLabel ;
  add: #usernameField ]
  height: self inputTextHeight;
  newRow: [ :row |
    row
  add: #passwordLabel;
  add: #passwordField ]
  height: self inputTextHeight;
    newRow: [ :row |
    row
  add: #showPasswordCheckBox]
  height: self inputTextHeight  ];
   yourself

Thank you
Sebastian 



Re: [Pharo-users] Learning Spec

2015-02-13 Thread Sebastian Heidbrink

Thank for clarifiying this.

The the interpreter would be the arrow from the ViewModel 
(ComposableModel) to the Model...




So Spec is the Blue stuff and the HP35 example is including the orange part.

Is there already a framework available or somebody working on it to have 
a more detailed Model? A infrastructure that devides BusinessLogic and Data?


If so then I would try to built an example based on both. If not,,... 
well then I still need some time to dabble around...


Sebastian


Am 13.02.2015 um 13:01 schrieb Johan Fabry:

To clarify: in my talk when I mention the interpreter, this has nothing to do 
with Spec. This is something specific to the example (= a complete IDE for a 
programming language for robots … with its interpreter), so I did not want to 
talk about because in the end it has no relevance to the story.


On Feb 13, 2015, at 18:49, Sebastian Heidbrink  wrote:

In the talk at 15:35 min Johan mentions the need of a interpreter and this 
method is mentionded several times during the talk.
Browse your Pharo image, there is none!


---> Save our in-boxes!http://emailcharter.org  <---

Johan Fabry   -http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile







Re: [Pharo-users] Learning Spec

2015-02-13 Thread Sebastian Heidbrink

Hi Sven,

I am still a little confused about the terminologies so please give one 
last kick into the right direction.
I have loaded the Calculator and try to map thingssaid to the 
implementation.


Am 13.02.2015 um 11:04 schrieb Sven Van Caekenberghe:



In the talk at 15:35 min Johan mentions the need of a interpreter and this 
method is mentionded several times during the talk.
Browse your Pharo image, there is none!
The class is called SpecInterpreter. But this is an implementation detail, not 
related to application logic.


Well, no he did not mean the SpecInterpreter he ment the 
receiver/interpreter of an action like a mouse click here. And exactly 
this link is missing through out the examples and makes SPEC so hrad 
to understand.





And last but not least, the all examples have no interpreter/control or real 
model layer

But you are looking too far: your domain model is just an object, its behaviour 
is the control layer, it uses announcements to signal changes.


Looking at the HP35CalculatorModel implementation I think that is what 
you mean. But I honestly would have expected a class naming like 
HP35CalculatorApplicationFunction, HP35CalculatorController, or 
HP35CalculatorComponent or just HP35Calculator instead of 
HP35CalculatorModel...


For me a model is a stupid structure. Somehting that knows what it 
contains and how to describe itself,... but has no real functionality or 
mechnisms in it.

Extreem example is a DataModel,

Now since Spec is more a MVVM framework, I assumed that I have to make 
the distinction between Control/Businesslogic and Model on my own.
I prefer this distinction because once a project grows it is much eaiser 
to navigate, maintian and even port to different architectures like 
webclient, server app, desktop app





ing like the HPCalculator!
I understand the need. I did my part with the HP35, with a clear model and 2 
UI's sharing 1 specification as well as unit tests on 2 levels.

But like I said, there are lots of real world examples inside and outside the 
image.


How can one find them? I was not aware of the fact that the spec example 
HP53 was on smaltlakhub. Somehow it is very difficult to find projects 
on Smalltakhub all the projects have tags, but somehow I can't find 
a search or tool that allows me to search smalltalkhub for certain tags.



You could just start a new repo on smalltalkhub.com or even github.com


Well, I would love, too once I know that I have somehow understood the 
basics ;-)
I simply do not want to run into the wrong direction and realize that 
all my efforts where for nothing.
And I, and that is even more importatn, do not want to tell newcomers 
how to do it and send them into the wrong direction...



Give me some time and I'll try to come up with a little application that 
we could use to discuss on.


sebastian





Re: [Pharo-users] Learning Spec

2015-02-13 Thread Sebastian Heidbrink

By the way, this is why I am pushing so hard.

https://makerspacenanaimo.org/software-smalltalk-night/

Sebastian



Am 13.02.2015 um 09:49 schrieb Sebastian Heidbrink:

Hallo Sven,

thank you for the video link, google linked me to a video from 2013 
that was not recorded in a way that once could follwo the presentation.

This one is super.

Well, I think I am slowly getting there and I can more and more 
provide you with the uneccessary barries of Spec that I encountered.


In the talk at 15:35 min Johan mentions the need of a interpreter and 
this method is mentionded several times during the talk.

Browse your Pharo image, there is none!
So what is misleading in the current Spec implementation and the 
examples is the follwong fact.
The developer is confronted with Model classes that actually are 
ViewModels.
Actions for buttons are implemented in Blocks which gives the 
developer intially the feeling that Control Layer and Model/ViewModel 
layer are one.
The SpecDefinitions do not work properly in my case and Stephan just 
found out some issues with font sizes, well I have Moose and 
Roassal in my image and my fonts are no more default  well my 
fault. I just hope I will still be able to somehow find a solution for 
this issue.
And last but not least, the all examples have no interpreter/control 
or real model layer
This is why I think it would be very helpful for beginners to have one 
example, like a sushi store, where one can actually see how an 
application is built through all the layers


Sushi store?! Well, That was an example for a demo that show cases a 
whole technology.

And I meant exactly some thing like the HPCalculator!

Well, I need to do some tests based on what I 've learnt now, I 
have no idea about adaptors, yet, but it seems they need to be 
understod a little later
Is there a project/repository where one could push code to give other 
the chance to review and chance it before it is published as a "demo" 
or example?


Sebastian



Am 13.02.2015 um 01:12 schrieb Sven Van Caekenberghe:

Hi,


 From now on it is forbidden to complain about Spec in general, 
unspecific terms unless you have taken the time to learn about it. 
Here is a guide to documentation about Spec, most recent first.



There is an excellent presentation by Johan Fabry did during the last 
Pharo Days, 'Using Spec to Build a UI'. *MUST WATCH* (the video is 
not yet fully public, but soon will be, the link should work though):


http://youtu.be/OL23s9ZUIR0?list=PL4actYd6bfnz98ngrKALwwStl3C3odEKG

The slides are also not yet available, but soon will be (the talk is 
much better that the slides on their own).



This draft chapter 'Spec: a framework for describing user interfaces' 
for an upcoming book:


https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/Spec/Spec.pier.html


Look in the image.

Browse the hierarchy below AbstractWidgetModel in the category 
Spec-Core-Widgets in Pharo 4, look at the protocols called 'protocol' 
& 'protocol-events' mainly. Look for references to each class. Trace 
senders of methods until you arrive at examples. Study the examples, 
play with them, change them.


The UI of most tools in Pharo is also implemented using Spec. Browse 
the hierarchy below ComposableModel to find them. (Komitter, 
Versionner, Critics, Metacello, the old Eye Inspectors, ..). Watch 
and learn.



The cool Spec website:

   http://spec.st


Read some cool articles like:

https://medium.com/concerning-pharo/rediscovering-the-ux-of-the-legendary-hp-35-scientific-pocket-calculator-d1d497ece999 



See the section 'HP35CalculatorModel' for the Spec part.


The following papers (some older ones refer to API that has changed):

'Seamless Composition and Reuse of Customizable User Interfaces with 
Spec'


http://rmod.lille.inria.fr/archives/papers/Ryse13a-SCICO-Spec.pdf

'Spec - A Framework for the Specification and Reuse of UIs and their 
Models'


http://rmod.lille.inria.fr/archives/papers/Ryse12b-Spec-IWST12-Final.pdf

'Spec – Technical Report'

http://rmod.lille.inria.fr/archives/reports/Ryse12a-SpecTechReport.pdf


Use the image to build a couple of simple UIs using Spec. You will be 
surprised to learn that it is not that difficult. Just go with the 
flow, don't try to enforce your world view on it, wait until you are 
further along.



Have fun !


Sven


PS: Once you have done all the above, you are most welcome to help 
improve Spec by discussing specific, concrete issues.



--
Sven Van Caekenberghe
Proudly supporting Pharo
http://pharo.org
http://association.pharo.org
http://consortium.pharo.org












Re: [Pharo-users] Learning Spec

2015-02-13 Thread Sebastian Heidbrink

Hallo Sven,

thank you for the video link, google linked me to a video from 2013 that 
was not recorded in a way that once could follwo the presentation.

This one is super.

Well, I think I am slowly getting there and I can more and more provide 
you with the uneccessary barries of Spec that I encountered.


In the talk at 15:35 min Johan mentions the need of a interpreter and 
this method is mentionded several times during the talk.

Browse your Pharo image, there is none!
So what is misleading in the current Spec implementation and the 
examples is the follwong fact.
The developer is confronted with Model classes that actually are 
ViewModels.
Actions for buttons are implemented in Blocks which gives the developer 
intially the feeling that Control Layer and Model/ViewModel layer are one.
The SpecDefinitions do not work properly in my case and Stephan just 
found out some issues with font sizes, well I have Moose and Roassal 
in my image and my fonts are no more default  well my fault. I just 
hope I will still be able to somehow find a solution for this issue.
And last but not least, the all examples have no interpreter/control or 
real model layer
This is why I think it would be very helpful for beginners to have one 
example, like a sushi store, where one can actually see how an 
application is built through all the layers


Sushi store?! Well, That was an example for a demo that show cases a 
whole technology.

And I meant exactly some thing like the HPCalculator!

Well, I need to do some tests based on what I 've learnt now, I have 
no idea about adaptors, yet, but it seems they need to be understod a 
little later
Is there a project/repository where one could push code to give other 
the chance to review and chance it before it is published as a "demo" or 
example?


Sebastian



Am 13.02.2015 um 01:12 schrieb Sven Van Caekenberghe:

Hi,


 From now on it is forbidden to complain about Spec in general, unspecific 
terms unless you have taken the time to learn about it. Here is a guide to 
documentation about Spec, most recent first.


There is an excellent presentation by Johan Fabry did during the last Pharo 
Days, 'Using Spec to Build a UI'. *MUST WATCH* (the video is not yet fully 
public, but soon will be, the link should work though):

   http://youtu.be/OL23s9ZUIR0?list=PL4actYd6bfnz98ngrKALwwStl3C3odEKG

The slides are also not yet available, but soon will be (the talk is much 
better that the slides on their own).


This draft chapter 'Spec: a framework for describing user interfaces' for an 
upcoming book:

   
https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/Spec/Spec.pier.html


Look in the image.

Browse the hierarchy below AbstractWidgetModel in the category Spec-Core-Widgets in 
Pharo 4, look at the protocols called 'protocol' & 'protocol-events' mainly. 
Look for references to each class. Trace senders of methods until you arrive at 
examples. Study the examples, play with them, change them.

The UI of most tools in Pharo is also implemented using Spec. Browse the 
hierarchy below ComposableModel to find them. (Komitter, Versionner, Critics, 
Metacello, the old Eye Inspectors, ..). Watch and learn.


The cool Spec website:

   http://spec.st


Read some cool articles like:

https://medium.com/concerning-pharo/rediscovering-the-ux-of-the-legendary-hp-35-scientific-pocket-calculator-d1d497ece999

See the section 'HP35CalculatorModel' for the Spec part.


The following papers (some older ones refer to API that has changed):

'Seamless Composition and Reuse of Customizable User Interfaces with Spec'

   http://rmod.lille.inria.fr/archives/papers/Ryse13a-SCICO-Spec.pdf

'Spec - A Framework for the Specification and Reuse of UIs and their Models'

   http://rmod.lille.inria.fr/archives/papers/Ryse12b-Spec-IWST12-Final.pdf

'Spec – Technical Report'

   http://rmod.lille.inria.fr/archives/reports/Ryse12a-SpecTechReport.pdf


Use the image to build a couple of simple UIs using Spec. You will be surprised 
to learn that it is not that difficult. Just go with the flow, don't try to 
enforce your world view on it, wait until you are further along.


Have fun !


Sven


PS: Once you have done all the above, you are most welcome to help improve Spec 
by discussing specific, concrete issues.


--
Sven Van Caekenberghe
Proudly supporting Pharo
http://pharo.org
http://association.pharo.org
http://consortium.pharo.org








Re: [Pharo-users] Writing a Login Dialog using Spec in 3 methods

2015-02-12 Thread Sebastian Heidbrink

Ha!

Now I think I got it!
Spec is MVVM and not MVC!

That means if I would like to implement with Spec, my root of entry 
should be a subclass of Model (ViewModel in real).
If I would like to have a more MVC approach I would rather subclass 
MorphicModel or StandardWindow as an Entry for own windows&widgets.


That also means that using the MVC approach I would probably have to 
implement my own controller layer with announcements and such, whereas 
SPEC already provides quite some default "Adaptor" implementations that 
handle and redirect events...


Well, it would really be great to have a "SushiStore" example for both 
approaches so that newcomers could learn from the differences and decide 
which way will work best for their existing experience.


I absolutely share the thought of diversity, but one should be able to 
unload one of both approaches from an image so that learning and 
development can be done more efficiently.


Maybe one should think of a move of all Spec Model subclasses to a 
ViewModel subclass of Model. That could lower the initial learning curve 
a little


Getting there! I think.
Sebastian


On 2015-02-12 4:34 PM, Sebastian Heidbrink wrote:

Hi Sven,

I had it this way too. Thanks.
Unfortunately my Spec definition was a little different and didn't 
work out at all. Especially upon resize.


But here is my question regarding embedding this into an "application".

Is this MVC? Here we have Model, View and Controller within one class 
called Model
That is exactly what made me think 1000times if this is right and a 
vital way to go once you want to implement a real workflow.


I looked at all the different approaches.
Just becomming aware that Morph is actually not a class to derive from 
is something a beginner needs to understand when he just wants to 
implement a Window using Morphs and that is already a major 
difference to other frameworks where a Window and a Button are part of 
the same Hierarchy.


Oh wait and what is a MorphicModel then?
Is it a Morph or a Model? Or Both?

I did browse the Squeak/Self Morphic wiki sites and even though most 
links do not work anymore, I have the feeling that a lot of knowledge 
her e has already been lost and everybody invents his own wheel currently.


I want to be able to take a LoginModel and have 5 different Morph/View 
implementations using it.
If Spec asks for this kind of Model subclassing, then I do understand 
that some community members have their problems with it. Not saying 
that this is the wrong way to go, but I would also rather devide the 
scpec the model and the controll layer into different classes.


But since there is no example available for this I think one can't 
even properly discuss that.


For beginners ther eshould be ONE implementation that guides them 
through all needed aspects of OO programming including UIs.


Sebastian





Am 12.02.2015 um 15:53 schrieb Sven Van Caekenberghe:

So, how hard would it be for a normal user like me, who knows little about the 
Pharo UI or Spec, to write a plain, simple Login dialog ?



It turns out it only takes 3 methods and some boilerplate code that is mostly 
auto generated.

0. Make a subclass of ComposableModel with instance variables for the UI 
elements that we need

ComposableModel subclass: #LoginModel
   instanceVariableNames: 'usernameLabel usernameField passwordLabel 
passwordField'
   classVariableNames: ''
   category: '_UnpackagedPackage'

1. Specify the layout of the UI

LoginModel class>>#defaultSpec
   

   ^ SpecLayout composed
   newColumn: [ :col |
 col
   newRow: [ :row |
 row
   add: #usernameLabel width: 80;
   add: #usernameField ]
   height: self inputTextHeight;
   newRow: [ :row |
 row
   add: #passwordLabel width: 80;
   add: #passwordField ]
   height: self inputTextHeight ];
yourself

2. Build the UI elements

LoginModel>>#initializeWidgets
   usernameLabel := self newLabel.
   usernameLabel text: 'Username'.
   usernameField := self newTextInput.
   usernameField autoAccept: true; ghostText: 'j...@acme.com'.
   passwordLabel := self newLabel.
   passwordLabel text: 'Password'; yourself.
   passwordField := self newTextInput.
   passwordField beEncrypted; autoAccept: true; ghostText: '**'.
   self focusOrder add: usernameField; add: passwordField

3. Open the UI as modal dialog

LoginModel class>>#getCredentials
   "self getCredentials"

   | login dialog |
   login := self new.
   dialog := login openDialogWithSpec.
   dialog modalRelativeTo: self currentWorld.
   dialog cancelled ifTrue: [ ^ nil ].
   ^ login credentials

X. Some boilerplate code

Auto-generate read accessors for the 4 instance variables.

LoginModel>>#title
   ^ 'Login'

L

Re: [Pharo-users] Writing a Login Dialog using Spec in 3 methods

2015-02-12 Thread Sebastian Heidbrink

Hi Sven,

I had it this way too. Thanks.
Unfortunately my Spec definition was a little different and didn't work 
out at all. Especially upon resize.


But here is my question regarding embedding this into an "application".

Is this MVC? Here we have Model, View and Controller within one class 
called Model
That is exactly what made me think 1000times if this is right and a 
vital way to go once you want to implement a real workflow.


I looked at all the different approaches.
Just becomming aware that Morph is actually not a class to derive from 
is something a beginner needs to understand when he just wants to 
implement a Window using Morphs and that is already a major 
difference to other frameworks where a Window and a Button are part of 
the same Hierarchy.


Oh wait and what is a MorphicModel then?
Is it a Morph or a Model? Or Both?

I did browse the Squeak/Self Morphic wiki sites and even though most 
links do not work anymore, I have the feeling that a lot of knowledge 
her e has already been lost and everybody invents his own wheel currently.


I want to be able to take a LoginModel and have 5 different Morph/View 
implementations using it.
If Spec asks for this kind of Model subclassing, then I do understand 
that some community members have their problems with it. Not saying that 
this is the wrong way to go, but I would also rather devide the scpec 
the model and the controll layer into different classes.


But since there is no example available for this I think one can't even 
properly discuss that.


For beginners ther eshould be ONE implementation that guides them 
through all needed aspects of OO programming including UIs.


Sebastian





Am 12.02.2015 um 15:53 schrieb Sven Van Caekenberghe:

So, how hard would it be for a normal user like me, who knows little about the 
Pharo UI or Spec, to write a plain, simple Login dialog ?




It turns out it only takes 3 methods and some boilerplate code that is mostly 
auto generated.

0. Make a subclass of ComposableModel with instance variables for the UI 
elements that we need

ComposableModel subclass: #LoginModel
   instanceVariableNames: 'usernameLabel usernameField passwordLabel 
passwordField'
   classVariableNames: ''
   category: '_UnpackagedPackage'

1. Specify the layout of the UI

LoginModel class>>#defaultSpec
   

   ^ SpecLayout composed
   newColumn: [ :col |
 col
   newRow: [ :row |
 row
   add: #usernameLabel width: 80;
   add: #usernameField ]
   height: self inputTextHeight;
   newRow: [ :row |
 row
   add: #passwordLabel width: 80;
   add: #passwordField ]
   height: self inputTextHeight ];
yourself

2. Build the UI elements

LoginModel>>#initializeWidgets
   usernameLabel := self newLabel.
   usernameLabel text: 'Username'.
   usernameField := self newTextInput.
   usernameField autoAccept: true; ghostText: 'j...@acme.com'.
   passwordLabel := self newLabel.
   passwordLabel text: 'Password'; yourself.
   passwordField := self newTextInput.
   passwordField beEncrypted; autoAccept: true; ghostText: '**'.
   self focusOrder add: usernameField; add: passwordField

3. Open the UI as modal dialog

LoginModel class>>#getCredentials
   "self getCredentials"

   | login dialog |
   login := self new.
   dialog := login openDialogWithSpec.
   dialog modalRelativeTo: self currentWorld.
   dialog cancelled ifTrue: [ ^ nil ].
   ^ login credentials

X. Some boilerplate code

Auto-generate read accessors for the 4 instance variables.

LoginModel>>#title
   ^ 'Login'

LoginModel>>#initialExtent
   ^ 350 @ 150

LoginModel>>#credentials
   ^ usernameField text -> passwordField text


I think this is pretty cool. I really can't imagine how much easier, how much 
less code this should take.




Let us all learn to use what we have, accept it the way it is, and make it 
better, together.


Sven


BTW: While writing this, following some senders/implementers, I found out that 
in Pharo 4, CredentialsEditor does almost the same thing.


--
Sven Van Caekenberghe
Proudly supporting Pharo
http://pharo.org
http://association.pharo.org
http://consortium.pharo.org






Re: [Pharo-users] pharo and ui again

2015-02-12 Thread Sebastian Heidbrink

Hi!

Well, I never understood that decision but the SushiStore was once 
removed from the Seaside repository.
But it might be stil lavailable here: 
http://www.squeaksource.com/SeasideExamples.html have a look under Store.
It was also used by James Foster while he did his tutorials for Seaside 
on Gemstone/Glass. So ther emight be a version here.

http://seaside.gemtalksystems.com/ss/GemStoneExamples.html
But I have no idea how outdated they are.

I just remebered the shift centermouse button ui context menu access. 
(on Windows)

I took these screenshots from a Pharo 4 image:


Click the red menu button and you get:



There you have all the menus to manipulate the look and feel of your 
morphic.
Unfortunately the export to .morp files seems to be no more available in 
Pharo http://wiki.squeak.org/squeak/2236

I wonder if one could introduce a export to Spec ...

I think it would be easy enoug for prototyping to just create a ui with 
this.
The only thing missing would be a menu entry that allows to select 
events and add according announment symbols... and the receivers...


It is all there for rapid protoyping it seems but is is not hooked up 
somehow.


20 minutes for a login screen with Spec is not yet competitive but 
especially if I need to know it first to be able to make it in 20 minutes...

Thank you for the document link. I am already reading it.

Sebastian




Am 12.02.2015 um 10:53 schrieb Johan Fabry:

Some restricted comments inline


On Feb 12, 2015, at 17:15, Sebastian Heidbrink  wrote:

I think there is most stuff out there in Pharo that is needed to built a nice 
UI with Model interaction.
It took me jsut a few hours to built a nice Glamour based data model browser.
So why do I struggle to built a login view?!
I think this is because Glamour is its own example It is implemented in one 
way and there are few distractions.

Glamour is excellent! But only as long as you want to do something that fits 
the overall philosophy of it. That’s the advantages and the disadvantages of a 
domain-specific solution. Spec is a general-purpose solution.

Your login UI should be able to be built in Spec in less than 20 minutes. 
(Supposing it is more or less like a traditional login UI).


What Pharo needs and I do not think that this is a too huge task is.
A clear destiction of M, V and C accomplished by ClassNamingConvertions and 
package sub-division of these.
A browser that just lists all the available basic morphs and their examples

Browse the hierarchy of ComposableModel and you have all the Spec widgets and 
UIs that are in the image.


A sushi store demo according to the current Pharo release.

I don’t know this example, can you give a link to an example app?


A clear documentation what, Spec, Polymorph, Morphic,... are representing and on which 
"layer" they are positioned. OS-Layer, Common-Layer, Layout-Layer, Event-Layer.

Have a look at the Spec book chapter (in progress). It also relates the 
position of Spec with respect to Morphic 
https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/Spec/

[…]


So and now her eis the question that I think needs to be discussed since it is 
the most controversial answered to me.
"Spec or not to Spec?"

I am kidding!
But my current counter is 5 for Spec and 5 against Spec.
I think some rason could be that Spec is misunderstood, or still under 
development/inmature.
I can't tell, but  a beginner wants to know:
"WHAT AM I SUPPOSED TO DO!?"

To answer your BIG QUESTION ;-) Read the book chapter that I linked to above, 
or at least the first few sections, and try to build the login UI with Spec. 
Then you will have better information that can serve to make a choice for or 
against your use of Spec.

---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile







Re: [Pharo-users] pharo and ui again

2015-02-12 Thread Sebastian Heidbrink

Hi Stephan, Hi All,

Joachim and I come from the same, commercial world, and we are not used 
to initial problems regarding the UI we are used to huge limitations 
once your models become more and more complex and custom vizualisations 
are desired.


On first sight the videos and examples are tempting and give a beginner 
the feeling that everythign is possible in Pharo/Squeak.

Well it definitely is and I myself are also more the "do it your self" guy.
But there are simple tasks that should not need a huge involvement to 
accomplish a visualization and manipulation of a model.


I think there is most stuff out there in Pharo that is needed to built a 
nice UI with Model interaction.
It took me jsut a few hours to built a nice Glamour based data model 
browser.

So why do I struggle to built a login view?!
I think this is because Glamour is its own example It is implemented 
in one way and there are few distractions.

GTSpotter is already too difficult to understand again

What Pharo needs and I do not think that this is a too huge task is.
A clear destiction of M, V and C accomplished by ClassNamingConvertions 
and package sub-division of these.

A browser that just lists all the available basic morphs and their examples
A sushi store demo according to the current Pharo release.
A clear documentation what, Spec, Polymorph, Morphic,... are 
representing and on which "layer" they are positioned. OS-Layer, 
Common-Layer, Layout-Layer, Event-Layer.


Based on first steps experiance with Seaside I can still remember that 
the only reason why I was able to get started fast and even during the 
early days of Seaside were the two examples, Scriptacoulous demo site 
and the Sushi Store.

With the help of those I even learnt some CSS and JS ...
The jQuery example was already to much limited to the usage of jQuery 
and it was much more difficult to use the exampel site as an example to 
go on with an own project.


How much time would it cost to implement a small sushi store with in 
image persitsancy?
Also, a documentation on how to deplay this store and make a real 
Pharo app.


I think such a demo would also show the community how huge a impact a 
new Pharo release does to a commercial product.
A steady update from release to release would be useful as a pharo 
version migration guide.
It could also start a discussion on how to do things and show each of us 
where things are unclear and under specified.


We should take what we have and put an example together instead of 
thinking/discussing what kind of framework might be best or better.
There are so many books an Smalltalk patterns, MVC, but there are 
actually no real official examples available


Stephan! Thank you so much for starting this!
I will have a look asap.
Right now I am more focused on the local Software group.
I would like to have some application "WITH UI" and even 3D where I can 
show off live programming!


I admire the energy the community and the board puts into Pharo and I 
can only imagine how difficult it must be to find and lead into a 
certain direction.

 Thank you!

So and now her eis the question that I think needs to be discussed since 
it is the most controversial answered to me.

"Spec or not to Spec?"

I am kidding!
But my current counter is 5 for Spec and 5 against Spec.
I think some rason could be that Spec is misunderstood, or still under 
development/inmature.

I can't tell, but  a beginner wants to know:
"WHAT AM I SUPPOSED TO DO!?"

Thanks for reading!
Sebastian






Am 12.02.2015 um 07:22 schrieb Stephan Eggermont:

Sebastian wrote:

After 5 days I can tell ,that I am lost in Morphic, UIManager, 
Traits/No-Traits, Spec, GLMMorphic, Poly
And sometimes things are even mixed up and I am not able to decide which 
approach to follow,...

If your goal is a "Maya Editor"-like UI, I've put together something that could 
be useful as
a starting point. I would be interested in how to encapsulate this in Spec, and 
in what should
change in Bloc. The idea is to grow it into a tutorial.

http://smalltalkhub.com/#!/~StephanEggermont/MorphicDraw

Stephan












[Pharo-users] pharo and ui again

2015-02-11 Thread Sebastian Heidbrink

Hi again!

Well, we had an other Software Smalltalk Night and we want to try to make a 
Smalltalk Kinect Fun project.
It was pretty easy to conenct the Kinect camera with a Squeak For Scratch image.
That enabled everybody to easily get going.

Since a few days I try to prepare further steps and I must say,... I am 
completely lost in the UI frameworks.

Let's have a simple example.

A window with a title, 2 labels, 2 entry fields, one checkbox and 2 buttons.
e.g. a login form for a Pharo application.
We will need the parts, the layout, the events, the starting point as well as a 
result handler
After 5 days I can tell ,that I am lost in Morphic, UIManager, 
Traits/No-Traits, Spec, GLMMorphic, Poly
And sometimes things are even mixed up and I am not able to decide which 
approach to follow,...
Some examples store widgets in instance variables, others initialize the morph 
based on the underlying model.
MVC is sometimes mixed up...
And this was just the topic parts and partially layout and events
How does one open this login as an overlay, or as temporary replacement for the 
main content

 I tried Spec, but somehow it is much more difficult to get a proper 
functioning layout that behaves mature during resize and such events than 
expected.
Is it possible to take a more Squeakish approach and just instantiate ui 
components compose them, define handler/callback symbols in those instances and 
then generate a specification/code out of this?

Can anybody please point me at a full documentation on how to do things 
properly?
There are many examples for the widgets but there is not a single example on 
how to built a real framework based on MVC in Pharo.
Well and unfortunately a lot of stuff is outßdated already. I somehow have the 
feeling that one and the same thing was implemented over and over again.

I honestly try to bring Pharo/Smalltalk to the crowd, but somhow I feel like 
the UI development removes all the productivity that one usually has with 
Smalltalk.

I'd like to provide the interested locals here with a bsic implementation that 
they will be able to extend or go on with.
But I do not want to invest time into not supported things.

Thank you for any hint again!
Sebastian




Re: [Pharo-users] SmaCC: First steps

2015-02-11 Thread Sebastian Heidbrink

Hi!

Maybe you also want to have a look at
http://www.squeaksource.com/openqwaq/

There is a part PyBridge included. MAybe you can take some of the 
Smalltalk Python Cmodel classes from there.


Sebastian


Am 10.02.2015 um 23:24 schrieb kilon alios:
Ok so after rereading the tutorial and testing again and again , I 
think I have finally managed to understand how SmaCC really works and 
I was succesful into converting simple python litsts to pharo arrays 
and ordered collections.


The tricky part now is to apply this knowledge to complex python types 
like multi dimensional lists, tuples and dictionaries. I understand 
that the visitor allows me to visit a specific object instances each 
time they are found in the AST . But because I want to walk the AST in 
order to build multi dimensional ordered collections I need something 
more, or maybe my understanding of the visitor pattern is flawed.


The problem I am having here is that each time I parse a python type 
that python type is not necessarily represented by different kind of 
node. For example whether its a list or a tuple or a dictionary the 
same class is used PyAtomNode. In order to differentiate between those 
diffirent python types PyAtomNode has instance variables for right and 
left bracket, parantheses, and curly. So my initial thinking is to 
check those instance variables to see if they are nil and from that I 
can conclude which python type I am parsing.


So I can preform simple ifs that check that the instance variable is 
Nil or not but the question is if my strategy is a good one or a bad one.


I could define my own syntax to simplify the AST tree including 
different nodes for different python types , because from the looks of 
it , it seems it is a bit too verbose for my needs but On the other 
hand I am not so sure because in the future my needs may become more 
verbose too.


So I am very close and ready to create my full python types converter 
for pharo but I wanted some good advice before wasting time on 
something that is not efficient.



By the way Thierry I have to agree with you Smacc is a very capable 
parser, also I like the use of regex syntax, makes it uglier compared 
Pettit Parser but I prefer the compact regex syntax to having to 
define and browse tons of classes and send tons of messages. Also the 
Python support is very good and I am impressed how easily SmaCC can 
parse whole python applications since some of the test are very 
complex. Well done great work!




On Sat, Jan 31, 2015 at 12:04 AM, kilon alios > wrote:


thank for your congratulations, because at times I fear I ask too
obvious questions. I have to say I find this parsing very complex
but very fascinating too :) Time to experiment with the visitor.

On Fri, Jan 30, 2015 at 11:49 PM, Thierry Goubier
mailto:thierry.goub...@gmail.com>> wrote:



2015-01-30 14:04 GMT+01:00 kilon alios mailto:kilon.al...@gmail.com>>:

Ok thanks for the info, I am still however curious about
these "tests" are just tests (which may or may not happen)
that determine the AST, for example which node to use ?


'tests' is just there because, in the grammar, there is this
at a certain point:

testlist:
test 'test' "," testlist
| test 'test' comma_opt
;

I have named this use of test 'test', so SmaCC has deduced
that testlist will be a list of test(s) nodes (or maybe other
stuff such as atoms, depending on the productions for test)..
so, SmaCC, in each rule where testlist is found, it will add a
'tests' instance variable.

So, basically, the grammar rules explain how each node can be
decomposed in sub-nodes, and the additional annotations (the
'test' naming and the {{}} or {{}}) drive how the classes for
the nodes you want to keep are generated. In that testlist
case, no node will be generated, but everywhere testlist
appear on the right of the rule, then it will add a 'tests'
instance variable.


Or are they tests related to unit testing class
PythonParserTests ?


Not at all :)


Also you said I need to use the visitor created by
PythonParser I assume you mean PyRootNodeVisitor ? Just as
it is explained in the AST chapter of the documentation.

In my case this simple python list will need me to
subclass it and override method visitListmaker , the
aListmaker passed as argument to the method should I
assume it is PyListmakerNode ?


In my experience, what you need to do is you have a look at
the ast generated and see if you can recognize the elements.
From what I see in your simple example, the key to your list
is that PyAtomNode instance with something in list. Once you
have th

Re: [Pharo-users] students looking for projects?

2015-01-29 Thread Sebastian Heidbrink

Hi Martin,

this is an interesting site.

I saw your lab: "implement a REST API server in Smalltalk"

You may want to have a look at: swagger 
https://github.com/swagger-api/swagger-spec

and the additional parts around it.

Swagger specs are easy to integrate into many clients via swagger 
codegen and swagger.js.


I think it would be a great project to have  support in Zinc, or Moose 
for that.


Maybe this is something students would like to work on.
Sebastian

On 2015-01-29 5:50 PM, Martin Bähr wrote:

Excerpts from Sven Van Caekenberghe's message of 2015-01-29 22:57:57 +0100:

There are some students here in Lille that were looking for a cool project,
and this is one of the two subjects that I suggested to them.

you have students looking for projects?
there are a bunch of smalltalk related projects on labs.fossasia.org that i am 
mentoring.
not sure if they count as cool though...

greetings, martin.






Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Okay,

I had a short look and it seems one needs to either subclass the 
GenericAdapter, or configure it upon initializtion.


One will need to add handlers upon resize and maybe even implement some 
kind of Form around the polymorph...
but I have no idea if there is something like a form in Spec... I do not 
know it enough yet.


Try this and see. It is part of the RewriteRuleBuilder

statusBarForMatch
| morph |
morph := TransformationRule arrowMorph: ActivePolygonMorph.
morph
rotationDegrees: 90;
scale: 0.6;
color: self matchColor;
infoText: self matchLabel;
yourself.
^ morph asSpecAdapter
   vSpaceFill;
yourself

Sebastian




On 2015-01-28 12:26 PM, Mark Rizun wrote:

It is in rewrite tool that I'm developing.
You can download it here:

http://smalltalkhub.com/#!/~MarkRizun/RewriteTool 
<http://smalltalkhub.com/#%21/%7EMarkRizun/RewriteTool>


The morph is used, for example, in RewriteRuleBuilder>>#statusBarForMatch

Mark

2015-01-28 21:24 GMT+01:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Hi Mark,

can you send me an example implementation on this?

I'll try to find a solution that might work for both of us. It is
easier to find the reason with a second reference implementation,
I guess.

Sebastian



Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize
properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink mailto:shei...@yahoo.de>>:

Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing
the window.


What do you mean by this?


Well, I implemented the example window from spec.st
<http://spec.st> and added a ASVGMorph to it.
When I now resize the window, then the button changes his
size correctly but the svg somhow just seems to be put into
the background.
I then implemented a SVGMorpModel that includes a
ASVGMorpAdapter and adde dthis one to my example window but
the result is that the SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg
that changes color during a mouse click?


To work with events that are implemented in
AthensSvgMorph you have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to
times like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a
mouse click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark










Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink
e same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the
window.


What do you mean by this?


Well, I implemented the example window from spec.st
<http://spec.st> and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the
background.
I then implemented a SVGMorpModel that includes a
ASVGMorpAdapter and adde dthis one to my example window but the
result is that the SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark











Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Hi Mark,

can you send me an example implementation on this?

I'll try to find a solution that might work for both of us. It is easier 
to find the reason with a second reference implementation, I guess.


Sebastian



Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st
<http://spec.st> and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter
and adde dthis one to my example window but the result is that the
SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark







Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Welcome to the world of Smalltalk!


Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st
<http://spec.st> and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter
and adde dthis one to my example window but the result is that the
SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark







Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st and added a 
ASVGMorph to it.
When I now resize the window, then the button changes his size correctly 
but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter and 
adde dthis one to my example window but the result is that the SVG 
resizes just half the speed...




How can I also introduce an animated SVG? Like an svg that changes
color during a mouse click?


To work with events that are implemented in AthensSvgMorph you have to 
(as far as I know) access this morph.

You can do it by sending #widget message to your model to times like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse click".

Are there any particular Models that could be used as a container
for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen SVGMorph 
and model of svg in spec.

It allows model and morph to "communicate" with each other.

Mark




Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Hi Mark,

that works! Thanks!

But I still hava a problem here.

First the svg does not resive properly while resizing the window. The 
svg is part of a ComposibleModel
How can I also introduce an animated SVG? Like an svg that changes color 
during a mouse click?
Are there any particular Models that could be used as a container for 
this SVGMorphAdapter?


I saw a project that added such funktionalities to SVGs like animations 
within Pharo, but I can't find it anymore. I assume that's why it wasn't 
continued?


Thanks
Sebastian


Am 27.01.2015 um 08:02 schrieb Mark Rizun:

Hi,

Not sure if it helps but for morphs you have next "transformation to 
model":


||  morph|
 
 morph  :=  CalendarMorph  on:  Date  today.

 ^  morph  asSpecAdapter|

Please read details here:
http://spec.st/docs/insert-morph/

Mark

2015-01-27 16:57 GMT+01:00 Sebastian Heidbrink <mailto:shei...@yahoo.de>>:


Hi!

Okay so I am currently trying Spec out and I need some advice.

Which is the Model to use for a ASVGMorph ("AthensSvgMorph")?

Is there an example availabel somewhere?

Thanks
Sebastian






[Pharo-users] SPEC and Athens

2015-01-27 Thread Sebastian Heidbrink

Hi!

Okay so I am currently trying Spec out and I need some advice.

Which is the Model to use for a ASVGMorph ("AthensSvgMorph")?

Is there an example availabel somewhere?

Thanks
Sebastian



Re: [Pharo-users] smalltalk, objects and design - chamond liu

2015-01-25 Thread Sebastian Heidbrink

no!




On 2015-01-25 7:48 PM, Mayuresh Kathe wrote:

thanks. a question; would the second book require me to work through the
original book on design patterns first?

~mayuresh

On Sun, Jan 25, 2015 at 06:06:31PM -0800, Sebastian Heidbrink wrote:

Definitely a good book!

You might also consider these, too:

for the couch, or desk while waiting:
http://sdmeta.gforge.inria.fr/FreeBooks/WithStyle/SmalltalkWithStyle.pdf

a must
http://www.amazon.ca/The-Design-Patterns-Smalltalk-Companion/dp/0201184621

Sebastian


On 2015-01-25 1:37 PM, Mayuresh Kathe wrote:

hello,

would the book; smalltalk, objects and design by chamond liu be
considered good to work through using "pharo"?

i am currently working through; squeak, a quick trip to object-land.
while nice as an introduction, doesn't feel like it might be deep enough
for me as i progress further.

i am looking at the pharo books, but, a previous discussion mentioned
something about newer versions being in the works, would prefer to wait
for them.

~mayuresh












Re: [Pharo-users] smalltalk, objects and design - chamond liu

2015-01-25 Thread Sebastian Heidbrink

Definitely a good book!

You might also consider these, too:

for the couch, or desk while waiting:
http://sdmeta.gforge.inria.fr/FreeBooks/WithStyle/SmalltalkWithStyle.pdf

a must
http://www.amazon.ca/The-Design-Patterns-Smalltalk-Companion/dp/0201184621

Sebastian


On 2015-01-25 1:37 PM, Mayuresh Kathe wrote:

hello,

would the book; smalltalk, objects and design by chamond liu be
considered good to work through using "pharo"?

i am currently working through; squeak, a quick trip to object-land.
while nice as an introduction, doesn't feel like it might be deep enough
for me as i progress further.

i am looking at the pharo books, but, a previous discussion mentioned
something about newer versions being in the works, would prefer to wait
for them.

~mayuresh








Re: [Pharo-users] UI framework&design options

2015-01-25 Thread Sebastian Heidbrink

Hi!

Is there any library or resource where I could have a look what others 
have done with Spec?
I have a hard time to find screenshots and additional information on 
what was used.


Sebastian

On 2015-01-25 2:34 AM, Johan Fabry wrote:

Hi Sebastian,

for building UIs I would go with Spec. It however does not support 
adding widgets without decoration straight to the desktop. What’s 
wrong with having them open in different windows? If the windows keep 
references to each other they can interact (more specifically if the 
different ComposableModels keep references to each other they can use 
each others’ public API … which you define as their implementer).


As for pretty graphs, I recommend Roassal2 by the ObjectProfile guys. 
It however cannot embed widgets in the graph as this is not its focus.


Greetings,

On Jan 25, 2015, at 04:09, Sebastian Heidbrink <mailto:shei...@yahoo.de>> wrote:


Hi!

I need to visualize&manipulate data within a graph representation.
Something like the "Maya Node Editor 
<http://around-the-corner.typepad.com/adn/2013/09/maya-node-editor-and-attributes.html>".


I am also interested in decorationless windows&widgets. Is it 
possible to embed entry fields, lists and such in the "desktop" of 
pharo?


What is suitable for overlay menus?

What would be the current framework to go with Pharo?
Which one will still stay for a while (is supported by Pharo) and is 
thought to be well tested.


Thank you for any advice, link, video, picture or hint.

Sebastian




---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   - http://pleiad.cl/~jfabry <http://pleiad.cl/%7Ejfabry>
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile





Re: [Pharo-users] UI framework&design options

2015-01-25 Thread Sebastian Heidbrink
Okay,  I am new to the UI implementations and options in the Pharo 
world and I am really confused.


So, am I right to say.
- Polymorph is no more really the way to go?
- Spec is the official way to go right now?
- Roassal2 is the way to go for visualizations?
- Athens is well, I can't even say hmm interesting when it comes to SVG?
- Glamour has to be seen in conjunction with Moose? I had a look into 
GTSpotter and I have the feeling this took a long long time for 
implementation.
- No e.g. Google material like UI possible since there are no frameworks 
available to do animation stuff didn't Squeak and E-Toys do that? Is 
there nothing left in Pharo?

- Lumiere or Roassal3D when it come to sprites?

Are all of these framework compatible to each other? How much 
maintenance and repair effort may I expect when I combine e.g. Spec with 
Morphic and Roassal2?


VASmalltalk has a very strong separation of UI-View and UI-Control 
layers. Which Pharo framework could allow me t replace the look and feel 
of my application without loosing my event handling/ control layers?


This is Smalltalk and this is objects, and I am bound so much to a 
windowing representation? There is nothing I could do like with HTML5 
and css? Put some pictures in the world and just add event handlers to them?


So I might go with Spec and Morphic then? Glamour is more Moose? Or is 
there a direction to deprecate one of them?


Thanks for all you into so far. I'll carefully read all the so far 
provided resources.


Sebastian





On 2015-01-25 6:04 AM, Stephan Eggermont wrote:

That Maya Node Editor looks like a PasteUpMorph with Connectors to me.
You'd might want to wrap them (Morphic) in a  in a standard window
with menu bar and toolbar from either Spec or Glamour for now.

And then follow Bloc developments to move there.

Stephan







Re: [Pharo-users] Binary tree

2015-01-25 Thread Sebastian Heidbrink
Here it is,... I new I saw this once. Maybe also this if you are looking 
for something particular.


http://www.squeaksource.com/BTree.html


On 2015-01-25 6:53 AM, Natalia Tymchuk wrote:

Hello,

Is there any implementation of the binary tree in Pharo?

Best reagards,
Natalia








Re: [Pharo-users] Binary tree

2015-01-25 Thread Sebastian Heidbrink

You may have a look here?

http://www.eli.sdsu.edu/courses/spring02/cs635/notes/btree/btree.html

On 2015-01-25 6:53 AM, Natalia Tymchuk wrote:

Hello,

Is there any implementation of the binary tree in Pharo?

Best reagards,
Natalia








[Pharo-users] UI framework&design options

2015-01-24 Thread Sebastian Heidbrink

Hi!

I need to visualize&manipulate data within a graph representation.
Something like the "Maya Node Editor 
".


I am also interested in decorationless windows&widgets. Is it possible 
to embed entry fields, lists and such in the "desktop" of pharo?


What is suitable for overlay menus?

What would be the current framework to go with Pharo?
Which one will still stay for a while (is supported by Pharo) and is 
thought to be well tested.


Thank you for any advice, link, video, picture or hint.

Sebastian