Re: [Pharo-users] [ANN] ArchLinux pharo-vm / pharo-launcher packages

2015-04-13 Thread Markus Schlager

Hi Laurent,

On Tue, 18 Mar 2014, Laurent Laffont wrote:


There's also a pharo-launcher package that depends on pharo-vm:

$ yaourt pharo-launcher


Right know this fails raising a 404 File Not Found error:

--2015-04-13 22:51:47-- 
https://ci.inria.fr/pharo-contribution/job/PharoLauncherFinalUserImage/lastSuccessfulBuild/artifact/PharoLauncher.zip

Auflösen des Hostnamens »ci.inria.fr (ci.inria.fr)« … 193.51.193.223
Verbindungsaufbau zu ci.inria.fr (ci.inria.fr)|193.51.193.223|:443 … 
verbunden.

HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2015-04-13 22:51:47 FEHLER 404: Not Found.

Markus

Re: [Pharo-users] [ANN] ArchLinux pharo-vm / pharo-launcher packages

2015-04-14 Thread Markus Schlager

Hi Laurent,

On Tue, 14 Apr 2015, Laurent wrote:


I've updated the package and now it should work.


It does :)

Thanks a lot

Markus



Re: [Pharo-users] [ANN] ArchLinux pharo-vm / pharo-launcher packages

2015-04-20 Thread Markus Schlager

Hi Laurent,

There's again a 404 file not found with 
PharoLauncher-user-stable-2015.04.18.zip.


Markus



==> Erstelle Paket: pharo-launcher 4.0-1 (Mo 20. Apr 14:19:39 CEST 2015)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> Lade icon-lighthouse-128x128.png herunter...
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100  8219  100  82190 0  32276  0 --:--:-- --:--:-- --:--:-- 
32231

  -> Lade PharoLauncher-user-stable-2015.04.18.zip herunter...
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 
0curl: (22) The requested URL returned error: 404 Not Found

==> FEHLER: Fehler beim Download von PharoLauncher-user-stable-2015.04.18.zip
Breche ab...



[Pharo-users] World lastKeystroke and openInWorld: aPasteUpMorph

2015-06-10 Thread Markus Schlager

Hi,

I'm using pharo to teach smalltalk as first 'real' programming language at 
school. With older versions of pharo I was glad that my pupils could track 
keystrokes so easily by evaluating


World lastKeystroke.

With Pharo3.0/4.0 this only returns '' independently of any keys I'm 
typing.


f := PasteUpMorph new openInWorld.
f takeKeyBoardFocus.
f lastKeystroke.

Is returning the empty string.

Hence, my question: Is lastKeystroke broken, or how is it meant to be used 
now?


Second problem: In older versions of pharo this would work:

f := PasteUpMorph new openInWorld.
b := EllipseMorph new.
b openInWorld: f.

But with Pharo 3.0/4.0 the last line raises an error:

MessageNotUnderstood: PasteUpMorph>>startSteppingSubmorphsOf

With

f := WorldMorph new openInWorld.
b := EllipseMorph new.
b openInWorld: f.

pharo freezes.

So: How is openInWorld: meant to be used?

Markus




Re: [Pharo-users] World lastKeystroke and openInWorld: aPasteUpMorph

2015-06-11 Thread Markus Schlager

Hi Johan,

On Wed, 10 Jun 2015, Johan Fabry wrote:


this is probably not how it should be done, but to get the last keystroke I 
have been doing the following:

World activeHand instVarNamed: #lastKeyScanCode

If you find a cleaner way I’d be grateful if you can share it.


The solution proposed by PharoByExample, p. 228 is to override 
Morph>>handleKeystroke:


---8X-
Morph subclass: #MyMorph

MyMorph>>handleKeystroke: anEvent
| keyValue keyName |
keyValue := anEvent keyValue. "integer"
keyName := anEvent keyString. "string like '' or 'a'"
...

m := MyMorph new.
m takeKeyboardFocus.
---8X-

Markus

Re: [Pharo-users] World lastKeystroke and openInWorld: aPasteUpMorph

2015-06-11 Thread Markus Schlager

issues opened

Markus



Re: [Pharo-users] Morph relative positions

2013-09-20 Thread Markus Schlager
I'd not expect though, that it should be necessary to add offsets by hand. 
What is the advantage of having embedded objects use global coordinates?


Markus



Re: [Pharo-users] Morph relative positions

2013-09-20 Thread Markus Schlager

On Fri, 20 Sep 2013, Norbert Hartl wrote:

Next try. I may do something stupid but it appears that all morphs draw 
on the same coordinate system. Meaning that every Morph that will draw 
something at 0@0 will put it in the top left corner of the image 
displayed. I would expect that a morph that is positioned somewhere 
provides a canvas where 0@0 is relative to the position of the morph. If 
coordinates are absoulte how can I delegate work to sub components and 
having them calculate the offsets properly?


I had this problem to while teaching pupils (grade 10) Smalltalk as their 
first 'real' programming language. We were embedding EllipseMorphs into a 
PasteUpMorph. Embedded morphs know their owner, hence


self owner position

might be the desired offset.

Markus



Re: [Pharo-users] World lastKeystroke and openInWorld: aPasteUpMorph

2015-06-18 Thread Markus Schlager

On Tue, 16 Jun 2015, Hilaire wrote:


Off topic, but I am curious as a teacher: how old the pupils you are
teaching to?


I use Etoys or Scratch in grade 7 (age about 12 years) and Smalltalk in 
grade 10 (age about 15/16 years). They are attending regular 
"Informatik"-courses at Gymnasium, supposed to learn object-oriented 
modeling and programming.


Markus



Re: [Pharo-users] seeking your tutorials

2015-12-10 Thread Markus Schlager

Hi Martin,

Some material (in German) I use at school (10th Grade, Gymnasium). The 
Prof-Stef-Tutorial is about pong, developed with pharo 1.3, I guess, but 
changed a little for pharo 3.0.


http://www.gymnasium-untergriesbach.de/system/files/oeffentlich/unterrichtsmaterial/informatik/10.klasse/skript/sr/info10-oop-folien-schlager.pdf

contains an older Squeak-related tutorial of mine and a "Taxi"-Tutorial I 
did with Java first (I had to use Java) and later with pharo to have 
a comparison.


A short handout I give to my pupils:

http://www.gymnasium-untergriesbach.de/system/files/oeffentlich/unterrichtsmaterial/informatik/10.klasse/sonstiges/sr/smalltalk-werkzeugkiste_2.pdf

There's also a similar Java-Werkzeugkiste on this website covering the 
same stuff but significantly longer


Markus

MS-info10-ProfStef-MarkusSchlager.20.mcz
Description: Zip archive