Re: [Pharo-users] How to create a red box with text in a big font?
Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works wrote: Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can’t get to work - I can do bold, but not a bigger font size. I’ve tried different things but am missing the magic sauce - can someone spot my mistake? Below, I’ve tried using a font name that I can see in the Pharo settings dialog but it doesn’t work? I also tried using LogicalFont with no success either. tMorph := StringMorph new. font1 := LogicalFont familyName: 'Arial' pointSize: 24. tMorph contents: 'Hello World'; fontName: 'Open Sans' size: 24; emphasis: TextEmphasis bold emphasisCode. bMorph := Morph new color: Color red; addMorph: tMorph. bMorph openInWorld. Tim
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
Esteban, I disagree ;-) Am 04.09.14 um 17:09 schrieb Esteban A. Maringolo: 2014-09-04 11:18 GMT-03:00 François Stephany tulipe.mouta...@gmail.com: Where is the best place to ask about Glorp by the way? I wonder the same. The official discussion group is https://groups.google.com/forum/#!forum/glorp-group But it is not very active. So IMHO, for Pharo use this is the best place, and for VisualWorks its own mailing list. I am a Glorp user, but not on Pharo, and I am very much interested in problems people might find or - more interestingly - solve with Glorp. From my experience with using Glorp on VA Smalltalk, it is sometimes very hard to tell if you have a general Glorp problem or some porting error in front of you. So I would say the primary group for Glorp questions should be the Glorp google group (see your link above). Another argument: if we followed your advice for every library/tool/framework, wouldn't this pollute the Pharo Mailing list? Joachim -- --- Objektfabrik Joachim Tuchel mailto:jtuc...@objektfabrik.de Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
Re: [Pharo-users] [ANN] JSON datatype support in PostgresV2 package
Thank you! Any contribution in this direction is important. Doru On Thu, Sep 4, 2014 at 9:43 PM, Esteban A. Maringolo emaring...@gmail.com wrote: Oh, I forgot. The datatype fields are converted to instances of JsonObject, from the PharoExtras/JSON package. So the version 2.4 loads such package. Even though I don't use PharoExtras/JSON for my daily JSON manipulation (I use Seaside-JSON and NeoJSON), I found it to be the most modular/independent JSON package out there. The fieldConverter can be replaced live in the PGConnection object by anything you like. Regards! Esteban A. Maringolo 2014-09-04 16:34 GMT-03:00 Esteban A. Maringolo emaring...@gmail.com: Spurred by the last discussion about GLORP, Postgres and friends, I spent the last few hours looking into the workings of PostgresV2 to add support to the native JSON datatype provided by PostgreSQL 9.2. According to PostgreSQL docs [1]: The json data type can be used to store JSON (JavaScript Object Notation) data, as specified in RFC 4627. Such data can also be stored as text, but the json data type has the advantage of checking that each stored value is a valid JSON value. There are also related support functions available; see Section 9.15. It is available at ConfigurationOfPostgresV2-EstebanMaringolo.12 in SmalltalkHub, blessed as #development (v2.4). It includes a testcase for the field converter (if the database server supports it). JSON datatype allows the indexing and querying of data inside the structure of the json object. Eg: SELECT jsonField-'attribute1'-'attribute2' FROM sampleTable; Adding support of this to GLORP should be easy, but I have no time now :) DISCLAIMER: I'm not using this in production, I tested it and seems to work as expected, and fail nosiliy when it should. This is why I blesed it as #development. If anybody is bold enough, bless it as #stable :) Best regards, Esteban A. Maringolo [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] [ANN] JSON datatype support in PostgresV2 package
Great ! On 04 Sep 2014, at 21:34, Esteban A. Maringolo emaring...@gmail.com wrote: Spurred by the last discussion about GLORP, Postgres and friends, I spent the last few hours looking into the workings of PostgresV2 to add support to the native JSON datatype provided by PostgreSQL 9.2. According to PostgreSQL docs [1]: The json data type can be used to store JSON (JavaScript Object Notation) data, as specified in RFC 4627. Such data can also be stored as text, but the json data type has the advantage of checking that each stored value is a valid JSON value. There are also related support functions available; see Section 9.15. It is available at ConfigurationOfPostgresV2-EstebanMaringolo.12 in SmalltalkHub, blessed as #development (v2.4). It includes a testcase for the field converter (if the database server supports it). JSON datatype allows the indexing and querying of data inside the structure of the json object. Eg: SELECT jsonField-'attribute1'-'attribute2' FROM sampleTable; Adding support of this to GLORP should be easy, but I have no time now :) DISCLAIMER: I'm not using this in production, I tested it and seems to work as expected, and fail nosiliy when it should. This is why I blesed it as #development. If anybody is bold enough, bless it as #stable :) Best regards, Esteban A. Maringolo [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
Re: [Pharo-users] [ANN] JSON datatype support in PostgresV2 package
On 04 Sep 2014, at 21:43, Esteban A. Maringolo emaring...@gmail.com wrote: Even though I don't use PharoExtras/JSON for my daily JSON manipulation (I use Seaside-JSON and NeoJSON), I found it to be the most modular/independent JSON package out there. I don't see how the JSON and NeoJSON package differ in that respect. NeoJSON has no dependencies. Could you explain this point ?
Re: [Pharo-users] How to create a red box with text in a big font?
2014-09-05 8:43 GMT+02:00 p...@highoctane.be p...@highoctane.be: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works wrote: Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can’t get to work - I can do bold, but not a bigger font size. I’ve tried different things but am missing the magic sauce - can someone spot my mistake? Below, I’ve tried using a font name that I can see in the Pharo settings dialog but it doesn’t work? I also tried using LogicalFont with no success either. tMorph := StringMorph new. font1 := LogicalFont familyName: 'Arial' pointSize: 24. tMorph contents: 'Hello World'; fontName: 'Open Sans' size: 24; emphasis: TextEmphasis bold emphasisCode. bMorph := Morph new color: Color red; addMorph: tMorph. bMorph openInWorld. Tim
Re: [Pharo-users] Pharo on retina macbook
On 04/09/14 07:46, Johan Brichau wrote: Hi, I just started using a Macbook pro with retina display. I notice the fonts are quite blurry. Is there something one can do to improve that? Johan Hi, I use a Macbook pro with retina. Some time ago I found that you can run Pharo in Low resolution mode. You can try that by right-clicking on the virtual machine application, selecting Get Info and checking Open in low resolution. See if that improves the situation for you until the problem is addressed on a higher level. Tommaso
Re: [Pharo-users] How to create a red box with text in a big font?
Hi Nicolai, 2014-09-05 9:19 GMT+02:00 Nicolai Hess nicolaih...@web.de: I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! White in Pharo3.0, red in 4.0. Font scale properly on my home machine in 3.0, doesn't scale on my work machine on 3.0, scale on my work machine in 4.0. Both machines are Ubuntu 14.04 AMD64 and Pharo has the same settings on both (Freetype and all). Thierry
Re: [Pharo-users] How to create a red box with text in a big font?
Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to changes in the font size. If you replace size: 75 with any number from 38 upwards, you get the same size of font. Change the size to 37 and there is a sharp reduction in size, and it changes in proportion for smaller numbers. Is there something different about this font? Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Nicolai Hess Sent: 05 September 2014 08:19 To: Any question about pharo is welcome Subject: Re: [Pharo-users] How to create a red box with text in a big font? 2014-09-05 8:43 GMT+02:00 p...@highoctane.be mailto:p...@highoctane.be p...@highoctane.be mailto:p...@highoctane.be : Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com mailto:thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com mailto:thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com mailto:alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works mailto:tim@testit.works wrote: Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can’t get to work - I can do bold, but not a bigger font size. I’ve tried different things but am missing the magic sauce - can someone spot my mistake? Below, I’ve tried using a font name that I can see in the Pharo settings dialog but it doesn’t work? I also tried using LogicalFont with no success either. tMorph := StringMorph new. font1 := LogicalFont familyName: 'Arial' pointSize: 24. tMorph contents: 'Hello World'; fontName: 'Open Sans' size: 24; emphasis: TextEmphasis bold emphasisCode. bMorph := Morph new color: Color red; addMorph: tMorph. bMorph openInWorld. Tim
[Pharo-users] Smalltalk platform
I have a bug on OldAlien on pharo 3 because it is asking SmalltalkImage current platformName What is the replacement ? Annick
Re: [Pharo-users] Smalltalk platform
there is also Smalltalk image platform, dont know if it makes any diffirence, looks same thing to me On Fri, Sep 5, 2014 at 11:56 AM, François Stephany tulipe.mouta...@gmail.com wrote: I don't know if they are similar but I would say: Smalltalk platform name On Fri, Sep 5, 2014 at 10:54 AM, Annick Fron l...@afceurope.com wrote: I have a bug on OldAlien on pharo 3 because it is asking SmalltalkImage current platformName What is the replacement ? Annick
[Pharo-users] Using Playground on Pharo 3.0
Hello I have been playing with Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro, trying to copy and paste code from e-mails in another thread. However, if I open a Playground (which is what I get when I click 'Workspace' in the World Menu), I find that the right click menu does not have any options for copy or paste. The window responds to Ctrl-C and Ctrl-V as expected, so I can get round it, but it is inconvenient. I have checked older versions (e.g. Moose 4.9), and there the Workspace has a full right click menu. Did I do something wrong in downloading Moose 5.0 (on 23 Aug 2014)? I am a beginner with Pharo, so any help would be appreciated. Peter Kenny
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
Sven wrote: Porting something cross platform is a huge amount of work, I think most of it was basically done by hand. This creates a huge maintenance problem of course. The same is true for Xtreams. Seaside seems to be able to manage this problem by being extremely careful. We now have the infrastructure in place (CI) that supports a much better approach. We could use a vw image to download the current version from the public store and generate the platform-independent mczs from there. That of course requires changes to the VW code base to create and use platform classes. That is similar to what we did in the other direction with Parasol, what Roassal does and Seaside. If we make the (namespace) transformations explicit, we should be able to sync in two directions. Stephan
Re: [Pharo-users] How to create a red box with text in a big font?
Hi Peter, As far as I can understand, this is because TextStyle is brain dead code when it comes to font selection (and fontName:size: is a useless API). (and now I can't write code in my Workspace in 4.0 because I get a DNU from the styler for every key I type :( :( :( ) This code correctly select the font. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph font: (LogicalFont familyName: 'Source Sans Pro' pointSize: 110); emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry 2014-09-05 10:45 GMT+02:00 PBKResearch pe...@pbkresearch.co.uk: Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to changes in the font size. If you replace size: 75 with any number from 38 upwards, you get the same size of font. Change the size to 37 and there is a sharp reduction in size, and it changes in proportion for smaller numbers. Is there something different about this font? Peter Kenny *From:* Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] *On Behalf Of *Nicolai Hess *Sent:* 05 September 2014 08:19 *To:* Any question about pharo is welcome *Subject:* Re: [Pharo-users] How to create a red box with text in a big font? 2014-09-05 8:43 GMT+02:00 p...@highoctane.be p...@highoctane.be: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that's handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I'm still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works wrote: Hi guys - I'm a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn't seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can't get to work - I can do bold, but not a bigger font size. I've tried different things but am missing the magic sauce - can someone spot my mistake? Below, I've tried using a font name that I can see in the Pharo settings dialog but it doesn't work? I also tried using LogicalFont with no success either. tMorph := StringMorph new. font1 := LogicalFont familyName: 'Arial' pointSize: 24. tMorph contents: 'Hello World'; fontName: 'Open Sans' size: 24; emphasis: TextEmphasis bold emphasisCode. bMorph := Morph new color: Color red; addMorph: tMorph. bMorph openInWorld. Tim
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
I have no idea how complicated this can be. I'm a bit reluctant to dive into this if we are only 2-3 people to use Glorp in Pharo. Guillermo, Mariano, what was the process when you imported Glorp in the first place? How did you keep up with Glorp latest changes (From what I see in Store, development is not too active)? On Fri, Sep 5, 2014 at 11:30 AM, Stephan Eggermont step...@stack.nl wrote: Sven wrote: Porting something cross platform is a huge amount of work, I think most of it was basically done by hand. This creates a huge maintenance problem of course. The same is true for Xtreams. Seaside seems to be able to manage this problem by being extremely careful. We now have the infrastructure in place (CI) that supports a much better approach. We could use a vw image to download the current version from the public store and generate the platform-independent mczs from there. That of course requires changes to the VW code base to create and use platform classes. That is similar to what we did in the other direction with Parasol, what Roassal does and Seaside. If we make the (namespace) transformations explicit, we should be able to sync in two directions. Stephan
Re: [Pharo-users] How to create a red box with text in a big font?
Thanks everyone for all your follow up messages - I’ve learned quite a lot from such a simple question!!! With regards to the #fontName:size: being not very useful - is that something I should submit a fogbugz for (maybe there is one already there). I’m thinking the Pharo way is to try and eliminate cruft where possible? Tim On 5 Sep 2014, at 10:37, Thierry Goubier thierry.goub...@gmail.com wrote: Hi Peter, As far as I can understand, this is because TextStyle is brain dead code when it comes to font selection (and fontName:size: is a useless API). (and now I can't write code in my Workspace in 4.0 because I get a DNU from the styler for every key I type :( :( :( ) This code correctly select the font. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph font: (LogicalFont familyName: 'Source Sans Pro' pointSize: 110); emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry 2014-09-05 10:45 GMT+02:00 PBKResearch pe...@pbkresearch.co.uk: Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to changes in the font size. If you replace size: 75 with any number from 38 upwards, you get the same size of font. Change the size to 37 and there is a sharp reduction in size, and it changes in proportion for smaller numbers. Is there something different about this font? Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Nicolai Hess Sent: 05 September 2014 08:19 To: Any question about pharo is welcome Subject: Re: [Pharo-users] How to create a red box with text in a big font? 2014-09-05 8:43 GMT+02:00 p...@highoctane.be p...@highoctane.be: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works wrote: Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can’t get to work - I can do bold, but not a bigger font size. I’ve tried different things but am missing the magic sauce - can someone spot my mistake? Below, I’ve tried using a font name that I can see in the Pharo settings dialog but it doesn’t work? I also tried using LogicalFont with no success
Re: [Pharo-users] Smalltalk platform
Smalltalk os platformName. On 05 Sep 2014, at 11:14, kilon alios kilon.al...@gmail.com wrote: there is also Smalltalk image platform, dont know if it makes any diffirence, looks same thing to me On Fri, Sep 5, 2014 at 11:56 AM, François Stephany tulipe.mouta...@gmail.com wrote: I don't know if they are similar but I would say: Smalltalk platform name On Fri, Sep 5, 2014 at 10:54 AM, Annick Fron l...@afceurope.com wrote: I have a bug on OldAlien on pharo 3 because it is asking SmalltalkImage current platformName What is the replacement ? Annick
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
Francois wrote: I have no idea how complicated this can be. I'm a bit reluctant to dive into this if we are only 2-3 people to use Glorp in Pharo. It would be a worthwhile initiative because it would make collaboration much easier for other projects too. I'm interested in looking into this. I have the impression there are many more users of Glorp who are very silent on the list (I know some) Stephan
Re: [Pharo-users] Using Playground on Pharo 3.0
You did not do anything wrong. At the moment, these entries do not exist in the menu. Doru On Fri, Sep 5, 2014 at 11:18 AM, PBKResearch pe...@pbkresearch.co.uk wrote: Hello I have been playing with Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro, trying to copy and paste code from e-mails in another thread. However, if I open a Playground (which is what I get when I click ‘Workspace’ in the World Menu), I find that the right click menu does not have any options for copy or paste. The window responds to Ctrl-C and Ctrl-V as expected, so I can get round it, but it is inconvenient. I have checked older versions (e.g. Moose 4.9), and there the Workspace has a full right click menu. Did I do something wrong in downloading Moose 5.0 (on 23 Aug 2014)? I am a beginner with Pharo, so any help would be appreciated. Peter Kenny -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] How to create a red box with text in a big font?
2014-09-05 12:13 GMT+02:00 Tim Mackinnon tim@testit.works: Thanks everyone for all your follow up messages - I've learned quite a lot from such a simple question!!! It was a pleasure to have a look and learn a bit more as well :) With regards to the #fontName:size: being not very useful - is that something I should submit a fogbugz for (maybe there is one already there). I'm thinking the Pharo way is to try and eliminate cruft where possible? Yes. I'd say, looking at the code, we need to do two things: change the #fontName:size: method, and change the #emphasis: method so that it takes an emphasis object and not a code. Thierry Tim On 5 Sep 2014, at 10:37, Thierry Goubier thierry.goub...@gmail.com wrote: Hi Peter, As far as I can understand, this is because TextStyle is brain dead code when it comes to font selection (and fontName:size: is a useless API). (and now I can't write code in my Workspace in 4.0 because I get a DNU from the styler for every key I type :( :( :( ) This code correctly select the font. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph font: (LogicalFont familyName: 'Source Sans Pro' pointSize: 110); emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry 2014-09-05 10:45 GMT+02:00 PBKResearch pe...@pbkresearch.co.uk: Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to changes in the font size. If you replace size: 75 with any number from 38 upwards, you get the same size of font. Change the size to 37 and there is a sharp reduction in size, and it changes in proportion for smaller numbers. Is there something different about this font? Peter Kenny *From:* Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] *On Behalf Of *Nicolai Hess *Sent:* 05 September 2014 08:19 *To:* Any question about pharo is welcome *Subject:* Re: [Pharo-users] How to create a red box with text in a big font? 2014-09-05 8:43 GMT+02:00 p...@highoctane.be p...@highoctane.be: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow The Morph is red! Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that's handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I'm still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works wrote: Hi guys - I'm a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn't seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can't get to work - I can do bold, but not a bigger font size. I've tried different things but am missing the
Re: [Pharo-users] [ANN] JSON datatype support in PostgresV2 package
2014-09-05 4:18 GMT-03:00 Sven Van Caekenberghe s...@stfx.eu: On 04 Sep 2014, at 21:43, Esteban A. Maringolo emaring...@gmail.com wrote: Even though I don't use PharoExtras/JSON for my daily JSON manipulation (I use Seaside-JSON and NeoJSON), I found it to be the most modular/independent JSON package out there. I don't see how the JSON and NeoJSON package differ in that respect. NeoJSON has no dependencies. Could you explain this point ? My Bad, I didn't mean exactly that. When I wrote the above paragraph I thought NeoJSON required the specification of a schema and couldn't simply convert JSON strings to Dictionaries. The only thing I like about PharoExtras/JSON is the fact JsonObject allows its direct manipulation without having to use dictionary accessors, but still allowing for it (because JsonObject IS a Dictionary). We can perfectly replace it by NeoJSON. Mine was a proof of concept, which once I debugged through a lot types of PGPacket ended up being simpler than thought. Supporting parametrized statements with JSON is something I would like to check (I guess it is only text). Adding support to jsonb type is linear too on the client side, just replicate what I did for json. I did a quick benchmark comparing JSON parsers and NeoJSON gets slightly faster as the stream gets larger. I didn't profile them memorywise. 31bytes JSON: NeoJSON: 73,600 per second. JSON: 42,700 per second. WAJsonParser: 79,400 per second. 309bytes JSON: NeoJSON: 14,200 per second. JSON: 12,400 per second. WAJsonParser: 13,900 per second. 17215bytes JSON: NeoJSON: 277 per second. JSON: 194 per second. WAJsonParser: 255 per second. https://gist.github.com/eMaringolo/5e7c865188036faa7202#file-json-bench
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
Hi, 2014-09-05 3:53 GMT-03:00 jtuc...@objektfabrik.de jtuc...@objektfabrik.de: Esteban, I disagree ;-) Am 04.09.14 um 17:09 schrieb Esteban A. Maringolo: 2014-09-04 11:18 GMT-03:00 François Stephany tulipe.mouta...@gmail.com: Where is the best place to ask about Glorp by the way? I wonder the same. The official discussion group is https://groups.google.com/forum/#!forum/glorp-group But it is not very active. So IMHO, for Pharo use this is the best place, and for VisualWorks its own mailing list. I am a Glorp user, but not on Pharo, and I am very much interested in problems people might find or - more interestingly - solve with Glorp. I forgot about you! even when I follow your blog. You're the only person/project I know uses Glorp in VA. From my experience with using Glorp on VA Smalltalk, it is sometimes very hard to tell if you have a general Glorp problem or some porting error in front of you. Test coverage is pretty good, but I've been bitten by what you mention. That's how I realized the port I'm using is outdated. So I would say the primary group for Glorp questions should be the Glorp google group (see your link above). Another argument: if we followed your advice for every library/tool/framework, wouldn't this pollute the Pharo Mailing list? I know, but I really don't know who reads Glorp mailing list, and particularly *how often*. Francois asked about GLORP here and got a bunch of responses in a couple of hours, had he asked the same in Glorp's mailing list and probably would have got a please ask in the Pharo mailing list about its port response. And this is no critic to Alan nor anybody there, it's just a matter of how active a mailing list is and how foreign Pharo's version is, they simply don't know what Pharo has. Regards! Esteban A. Maringolo
Re: [Pharo-users] Pharo Glorp 1.7 - VisualWorks
Esteban, Am 05.09.14 um 15:36 schrieb Esteban A. Maringolo: Hi, 2014-09-05 3:53 GMT-03:00 jtuc...@objektfabrik.de jtuc...@objektfabrik.de: Esteban, I disagree ;-) Am 04.09.14 um 17:09 schrieb Esteban A. Maringolo: 2014-09-04 11:18 GMT-03:00 François Stephany tulipe.mouta...@gmail.com: Where is the best place to ask about Glorp by the way? I wonder the same. The official discussion group is https://groups.google.com/forum/#!forum/glorp-group But it is not very active. So IMHO, for Pharo use this is the best place, and for VisualWorks its own mailing list. I am a Glorp user, but not on Pharo, and I am very much interested in problems people might find or - more interestingly - solve with Glorp. I forgot about you! even when I follow your blog. You're the only person/project I know uses Glorp in VA. so assuming I am the only Glorp user on VA (I am not, btw.), your argument would mean I should rather ask on the VA mailing list where I will be even less likely to find answers, because there are no Glorp users there at all ;-) Not sure I like the idea ;-) And don't forget the VW(NC) users of Glorp. They might have problems with Glorp as well. From my experience with using Glorp on VA Smalltalk, it is sometimes very hard to tell if you have a general Glorp problem or some porting error in front of you. Test coverage is pretty good, but I've been bitten by what you mention. That's how I realized the port I'm using is outdated. So I would say the primary group for Glorp questions should be the Glorp google group (see your link above). Another argument: if we followed your advice for every library/tool/framework, wouldn't this pollute the Pharo Mailing list? I know, but I really don't know who reads Glorp mailing list, and particularly *how often*. Francois asked about GLORP here and got a bunch of responses in a couple of hours, had he asked the same in Glorp's mailing list and probably would have got a please ask in the Pharo mailing list about its port response. And this is no critic to Alan nor anybody there, it's just a matter of how active a mailing list is and how foreign Pharo's version is, they simply don't know what Pharo has. And, if I remember correctly, most answers on this list were of the kind that says I think I know someone who heard about somebody who once did a Glorp port to Pharo, but I think it is dated. Do we expect Alan or Niall or Tim to read the Pharo mailing list to answer Glorp questions? I am not sure they'll like the idea. BTW: I thought tha VAST version is also foreign, but these days the port on VAST is pretty current and the feeling is gone. So, as long as I am not sure if a problem is a Glorp bug or one of my port, I think the Glorp list is the right place for it. I'd rather get input from Pharo, VisualWorks and VAST users than none or the kind I just mentioned - I am glad that Maarten, Alan and you (and others) are on the Glorp list - and we all use different dialects! Joachim Regards! Esteban A. Maringolo -- --- Objektfabrik Joachim Tuchel mailto:jtuc...@objektfabrik.de Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
Re: [Pharo-users] Tide installation
The slides are cool, but I really don't quite understand how Tide works... I tried to reproduce the Hero example, but when asking my lair for heroes (from the client side) I got: TDClient promiseNotFound: No promise was found for selector heroes It'd be great if someone wrote a getting started tutorial, a simple ToDo would be more than enough. Marina is way too complex to grasp how the framework works, and the counter example is way too simple. I'd do it myself, but of course I don't know the first thing about Tide! :P 2014-09-04 9:37 GMT+02:00 Bernat Romagosa tibabenfortlapala...@gmail.com: Pull request sent. Phill, you need to use the latest bower. I'd uninstall and reinstall again: $ npm uninstall bower $ npm install bower -g Then just follow the tutorial, you don't need to modify bower.json or anything. Stef, thanks! I'll check these slides. Cheers, Bernat. 2014-09-03 16:50 GMT+02:00 p...@highoctane.be p...@highoctane.be: I tried to get this working. bower installed Tide loaded as per the slides (with some fiddling as what is there doesn't work). Then TDDispatcher tideIndexPageUrl inspect gives http://localhost:/tide/tide/index.html (Why that 'tide' twice in there?) And there, no helios or anything. But that may be because I used the wrong bower 1.2.6 version and set stable for Amber as the commit number didn't work. So, Bernat, which bower and which amber in bower.json ? TIA Phil -- Bernat Romagosa. -- Bernat Romagosa.
[Pharo-users] Hello ...
A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
Re: [Pharo-users] Hello ...
Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation in particular: http://pharobyexample.org/ In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
Re: [Pharo-users] Hello ...
I have posted a series of video tutorial for Pharo and in some of them I explain the basics of OO with practical examples https://www.youtube.com/playlist?list=PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_ if you throw also PBE I think you pretty much covered. OO is not really a difficult concept, an object is just a collection of variables and methods and then it builds complexity from there. But if you already so familiar with Squeak that should come as riding a bike, you cant forget these things. So I am sure you will remember it quickly when you try your your own experiments. By the way welcome to Pharo and keep us posted with your progress . Peronally I love Squeak is hands down the most elegant GUI system I have used, but I use Pharo because its more actively developed and better in the things that interest me. On Fri, Sep 5, 2014 at 8:09 PM, S Krish krishnamachari.sudha...@gmail.com wrote: Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation in particular: http://pharobyexample.org/ In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
Re: [Pharo-users] Hello ...
Cool, thanks for the information. Also, your riding a bike analogy is quite good. :) Let's see how it goes for me. Best, ~Mayuresh On 2014-09-05 22:50, kilon alios wrote: I have posted a series of video tutorial for Pharo and in some of them I explain the basics of OO with practical examples https://www.youtube.com/playlist?list=PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_ [4] if you throw also PBE I think you pretty much covered. OO is not really a difficult concept, an object is just a collection of variables and methods and then it builds complexity from there. But if you already so familiar with Squeak that should come as riding a bike, you cant forget these things. So I am sure you will remember it quickly when you try your your own experiments. By the way welcome to Pharo and keep us posted with your progress . Peronally I love Squeak is hands down the most elegant GUI system I have used, but I use Pharo because its more actively developed and better in the things that interest me. On Fri, Sep 5, 2014 at 8:09 PM, S Krish krishnamachari.sudha...@gmail.com wrote: Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation [1] in particular: http://pharobyexample.org/ [2] In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book [3] Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh Links: -- [1] http://pharo.org/documentation [2] http://pharobyexample.org/ [3] http://book.seaside.st/book [4] https://www.youtube.com/playlist?list=PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_
Re: [Pharo-users] How to create a red box with text in a big font?
The idea was that the color is propagated from the container. Stef On 5/9/14 08:43, p...@highoctane.be wrote: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com mailto:thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that works. Morph new hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWindow; color: Color red Thierry On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com mailto:thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis: TextEmphasis bold emphasisCode); openInWorld Thierry Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com mailto:alexandre.ber...@me.com wrote: Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Screen Shot 2014-09-04 at 12.10.14 PM.png Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu http://www.bergel.eu/ ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 9:27 AM, Tim Mackinnon tim@testit.works mailto:tim@testit.works wrote: Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font. This last bit I can’t get to work - I can do bold, but not a bigger font size. I’ve tried different things but am missing the magic sauce - can someone spot my mistake? Below, I’ve tried using a font name that I can see in the Pharo settings dialog but it doesn’t work? I also tried using LogicalFont with no success either. tMorph := StringMorph new. font1 := LogicalFont familyName: 'Arial' pointSize: 24. tMorph contents: 'Hello World'; fontName: 'Open Sans' size: 24; emphasis: TextEmphasis bold emphasisCode. bMorph := Morph new color: Color red; addMorph: tMorph. bMorph openInWorld. Tim
Re: [Pharo-users] Hello ...
by the way I forgot to add that I am active at #pharo irc channel at freenode if you want to chat about pharo and ask questions and also you can ask your questions at stackoverflow adding the tag pharo , the pharo community is so active in stackoverflow that I have never seen an unanswered question. here is the tag http://stackoverflow.com/questions/tagged/pharo On Fri, Sep 5, 2014 at 8:25 PM, Mayuresh Kathe mayur...@kathe.in wrote: Cool, thanks for the information. Also, your riding a bike analogy is quite good. :) Let's see how it goes for me. Best, ~Mayuresh On 2014-09-05 22:50, kilon alios wrote: I have posted a series of video tutorial for Pharo and in some of them I explain the basics of OO with practical examples https://www.youtube.com/playlist?list=PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_ [4] if you throw also PBE I think you pretty much covered. OO is not really a difficult concept, an object is just a collection of variables and methods and then it builds complexity from there. But if you already so familiar with Squeak that should come as riding a bike, you cant forget these things. So I am sure you will remember it quickly when you try your your own experiments. By the way welcome to Pharo and keep us posted with your progress . Peronally I love Squeak is hands down the most elegant GUI system I have used, but I use Pharo because its more actively developed and better in the things that interest me. On Fri, Sep 5, 2014 at 8:09 PM, S Krish krishnamachari.sudha...@gmail.com wrote: Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation [1] in particular: http://pharobyexample.org/ [2] In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book [3] Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh Links: -- [1] http://pharo.org/documentation [2] http://pharobyexample.org/ [3] http://book.seaside.st/book [4] https://www.youtube.com/playlist?list=PLqbtQ7OkSta0ULYAd7Qdxof851ybh -_m_
Re: [Pharo-users] Hello ...
Sure can... Morphic is a different beast, very malleable, glitchy too for now, much better with clean up in Pharo. But the future may see major shifts if Bloc comes through. Spec and my own effort on Pharo Morphic View.. ** https://picasaweb.google.com/skrishnamachari/PharoTabletIDE ** http://skrishnamachari.wordpress.com/2014/09/01/reviving-pharo-morphic-view/ ease the creation a lot.. My effort was a proof I had of how utterly malleable Pharo / Squeak actually is.. I could knock in a new IDE interface with Tree structured code IDE, A simple but effective enterprise class UI framework in around couple of months.. Yes going deeper and getting it technically perfect is much more effort.. But for sure, if you are not weighed down by a career and want to enjoy a ride in the programming world.. nothing better than Pharo Smalltalk for now to hitch too.. though I would enjoy Groovy, Javascript, Python or Ruby for their own uniqueness but primarily as related in the dynamic programming world. -Enjoy.. On Fri, Sep 5, 2014 at 10:47 PM, Mayuresh Kathe mayur...@kathe.in wrote: Thanks for the welcome note. :) I am quite certain that I want to head in a direction away from Web application development using Pharo. I see in Pharo the promise that was left unhonoured by Squeak, one of having an elegant system instead of a quilt. The Pharo UI looks better than any of the ones in the Squeak world, though, I believe Pharo's LnF can be taken to a whole new level, and that's what I intend to work on once I've gained enough command over the environment and the programming language. Best, ~Mayuresh On 2014-09-05 22:39, S Krish wrote: Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation [1] in particular: http://pharobyexample.org/ [2] In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book [3] Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
Re: [Pharo-users] How to create a red box with text in a big font?
This is not without reason that I wrote a roadmap on font cleaning. https://github.com/pharo-project/pharo-workingRoadmaps Stef
Re: [Pharo-users] Hello ...
Welcome Mayuresh! Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 5, 2014, at 12:59 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
[Pharo-users] not a smalltalk!
hey, i've just been reading up the pharo forums, and one of the posts/entries mentions something about pharo not being a smalltalk, but instead a dialect! is it true? that would mean, all or any code i write for pharo would not be portable to other smalltalk-80 systems! hmnn... ~mayuresh
Re: [Pharo-users] not a smalltalk!
There is a long story about all that. But to be short: - if you call it Smalltalk then you have to make it compatible with other Smalltalks. And they are a lot in the 80s… - we want to make something new and cool what may be not always compatible. So yeah On 05 Sep 2014, at 20:25, Mayuresh Kathe mayur...@kathe.in wrote: hey, i've just been reading up the pharo forums, and one of the posts/entries mentions something about pharo not being a smalltalk, but instead a dialect! is it true? that would mean, all or any code i write for pharo would not be portable to other smalltalk-80 systems! hmnn... ~mayuresh
Re: [Pharo-users] not a smalltalk!
AFAIK Pharo technically is not even compatible with Squeak which is where it forks form. You assume the code you write will automatically be incompatible to smalltalk-80 but since pretty much a huge percentage of the functionality of Pharo and Smalltalk is in libraries since the language itself is so minimal , I dont think it would be so hard to make your Pharo code smalltalk-80 friendly. I advice doing your own tests and seeing for yourself. Then ask questions how to solve problems you encounter. No reason to panic before facing the facts :) On Fri, Sep 5, 2014 at 9:33 PM, Yuriy Tymchuk yuriy.tymc...@me.com wrote: There is a long story about all that. But to be short: - if you call it Smalltalk then you have to make it compatible with other Smalltalks. And they are a lot in the 80s… - we want to make something new and cool what may be not always compatible. So yeah On 05 Sep 2014, at 20:25, Mayuresh Kathe mayur...@kathe.in wrote: hey, i've just been reading up the pharo forums, and one of the posts/entries mentions something about pharo not being a smalltalk, but instead a dialect! is it true? that would mean, all or any code i write for pharo would not be portable to other smalltalk-80 systems! hmnn... ~mayuresh
Re: [Pharo-users] Hello ...
Just started to play with Racket a few moments ago http://racket-lang.org/ There so many great languages out there and tools, really. GUI wise the future of Pharo is at least cleaning up Morphic. So it can only get better. Spec also looks like it has a promising future in Pharo. I was thinking implementing my own GUI using the Blender Game Engine (making it possible to use 3d guis) and I was even flirting the idea of porting QT to Pharo via my project Ephestos. So things are moving forward and there is nothing stoping that. On Fri, Sep 5, 2014 at 8:29 PM, S Krish krishnamachari.sudha...@gmail.com wrote: Sure can... Morphic is a different beast, very malleable, glitchy too for now, much better with clean up in Pharo. But the future may see major shifts if Bloc comes through. Spec and my own effort on Pharo Morphic View.. ** https://picasaweb.google.com/skrishnamachari/PharoTabletIDE ** http://skrishnamachari.wordpress.com/2014/09/01/reviving-pharo-morphic-view/ ease the creation a lot.. My effort was a proof I had of how utterly malleable Pharo / Squeak actually is.. I could knock in a new IDE interface with Tree structured code IDE, A simple but effective enterprise class UI framework in around couple of months.. Yes going deeper and getting it technically perfect is much more effort.. But for sure, if you are not weighed down by a career and want to enjoy a ride in the programming world.. nothing better than Pharo Smalltalk for now to hitch too.. though I would enjoy Groovy, Javascript, Python or Ruby for their own uniqueness but primarily as related in the dynamic programming world. -Enjoy.. On Fri, Sep 5, 2014 at 10:47 PM, Mayuresh Kathe mayur...@kathe.in wrote: Thanks for the welcome note. :) I am quite certain that I want to head in a direction away from Web application development using Pharo. I see in Pharo the promise that was left unhonoured by Squeak, one of having an elegant system instead of a quilt. The Pharo UI looks better than any of the ones in the Squeak world, though, I believe Pharo's LnF can be taken to a whole new level, and that's what I intend to work on once I've gained enough command over the environment and the programming language. Best, ~Mayuresh On 2014-09-05 22:39, S Krish wrote: Welcome to the Smalltalk world.. You would have already seen: http://pharo.org/documentation [1] in particular: http://pharobyexample.org/ [2] In Pharo Start with the Pharo Tutorials through ( Left Click on the World, Help Pharo Tutorials ) Watch the screencasts.. in the documentation page.. Probably relevant will be Web application development with Seaside framework in Pharo Smalltalk: http://book.seaside.st/book [3] Rest will fall into place once you sink yourself in, and ask questions relevant to where you are wanting to head to.. On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote: A hello to Pharo-Users list members. I am Mayuresh Kathe from Mumbai, India. I used to work with Squeak a while (14 years) back, but ever since I had to move over to non-OOP environments, and never did get to work with Smalltalk or alike systems ever since. To add to that, I haven't been programming for over 7 years due to being pushed into the management track. I have quit the management world, and along with it a regular job. Am now a consultant, mostly to Web startups which leaves me with a lot of spare time to tinker around with what I would really like to. After a lot of searching and experimenting, I finally landed in Pharo land, and things look good. :) Given the fact that I haven't written a single fully functional program in 7 years, I feel like I've lost the ability to code, sort-a rusty. Would the list members be kind enough to suggest a book I could work through to warm myself up to OOP? I stumbled upon The Object Oriented Thought Process by Matt Weisfeld, looks good, but if there's anything better suited to Pharo, would be nice to know. Thanks, ~Mayuresh
Re: [Pharo-users] Moose browsers: Updating an object value from a text pane and from an emergent window
Hi Doru an community, In almost a week from now I will write an small revision article about this prototyping exercise on Moose/Glamour/Pharo, for structured writing. My ideal would be to write it inside this prototype, but for that I need to be able to edit and store the changes on the tree and its node contents. Hopefully it won't take too much, even for a newbie like me. Even if is not possible, and I need to go back to Leo Editor (http://leoeditor.com/) for reporting and writing the article, this exercise has been really valuable. This are my issues so far: Auto-updating objects from the browser is working but I'm having problems to integrate this with my code. To follow better what is happening just: 1. Follow the installation notes on: http://wiki.hackbo.co/doku.php/herramientas:grafoscopio:en:install 2. Run this code: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | text mainTree | mainTree := UbakyeNode new. mainTree becomeDefaultTree. text := (mainTree children at: 1) body. GLMCompositePresentation new wrapper with: [ :wrapper | wrapper show: [ :a | a text ]. wrapper transmit fromOutsidePort: #text; toOutsidePort: #portIDoNotCareAbout; transformed: [ :textComingFromThePresentation | text := textComingFromThePresentation ] ]; openOn: text. (mainTree children at: 1) body: text =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- If I comment the last line, I can explore the Browser Tree and see how #text updates automatically, but if I leave it uncommented I can explore the mainTree and see that is not updating. Also I tried to put the transmit parameters in the build browser transmit parameter, just here: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- UbakyeBrowserbuildBrowser (... snipped code) (browser transmit) to: #body; from: #tree; andShow: [ :a | self bodyOn: a]. (...snipped code) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- replacing to:, from: and andShow: for fromOutsidePort:, toOutsidePort: and transformed: as shown in your example, but then the current selection in the tree got disconnected from the body pane. I would mind to have a explicit button or keyboard shortcut to take what is currently on a text pane and send it all to a particular node for updating, if this is the quickest workaround. So, How can I made this? Also, Doru showed to me a way to invoke inspector on the current selected node. Suppose that I want to have an emergent window to edit the node header and some tags on it. Is this possible? Cheers and thanks in advance, Offray On 09/03/2014 04:27 AM, Tudor Girba wrote: Hi, As I said before, right now, Glamour does not easily the behavior you want, but you can abuse an existing mechanism of capturing changes of a port through a transmission that transforms that value. Here is an example: text := ''. GLMCompositePresentation new wrapper with: [ :wrapper | wrapper show: [ :a | a text ]. wrapper transmit fromOutsidePort: #text; toOutsidePort: #portIDoNotCareAbout; transformed: [ :textComingFromThePresentation | text := textComingFromThePresentation ] ]; openOn: text In this example, we create a transmission that originates in the #text port that will be populated every time you modify something. This transmission sends the value to #portIDoNotCareAbout only to have access to the transformation block where you can do what you want with the textComingFromThePresentation. To check the behavior: - execute the code in a Playground, - type something in the text area that opens, - inspect the text variable == you will see that it contains the latest contents from the text editor We should promote this mechanism explicitly in Glamour, but in the meantime it is probably sufficient for your case. Doru On Wed, Sep 3, 2014 at 4:47 AM, Offray Vladimir Luna Cárdenas off...@riseup.net mailto:off...@riseup.net wrote: Hi, I'm trying to restate my question to see if I have more luck with any answer this time. I'm making advances with an outliner like app for writing and now I can add nodes move them and store them in the really nice STON format. But because information on trees is not editable, I would like to try another approach: To create an emergent window and put the node tree and node tags on it, and the update the this values on the tree node. Also, I would like to update some objects from the a Glamour text pane, without any special button or action, just while I'm writing on them. If this is not possible which is the message to select all text in a body panel and to send it to a object? I will be doing some further advances by my own and keep you posted (may be with some more specific/better questions on how to get this behaviour from Moose browsers). Cheers, Offray -- www.tudorgirba.com http://www.tudorgirba.com Every thing has its own flow