Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 1 participants
- 144619 messages
Re: [Pharo-project] Pharo tips
by csrabak@bol.com.br
Em 14/05/2010 12:35, Javier Pimás <elpochodelagente(a)gmail.com> escreveu:
[snipped]
>
> Is there a standard code to distinguish pharo from squeak, so we can
> detect which morphs we should use for buttons??
I know these things are more matter of opinion on style than properly strict guidelines, but I want to express my own opinion on this.
I think that putting such kind of code in this package goes in wrong direction as it departs from good OO design.
IMHO if we cannot (for whichever rife reasons) arrive at a common API for morph in Pharo and Squeak we should fork it in two versions¹, should a Squeak one deserve an existence given the idea is to have _Pharo_ _tips_ which I believe are very specific to one of the two environments.
my 0.019999....
--
Cesar Rabak
[1] or find an alternative which be more general like other packages do for keeping multiplatform, if these "Pharo tips" become a more general "Tips" package
May 15, 2010
Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
by Stéphane Ducasse
Now you have to build expose so that with one click we can see the desktop and one click the windows come back in place :)
On May 15, 2010, at 11:58 PM, Igor Stasenko wrote:
> This one is little bit fixed, (request a list with 1 image, instead of 8)
> and delay 1 minute after error.
>
>
> [
>
> [[
> | rx str url form |
> str := (HTTPSocket httpGet:
> 'http://www.socwall.com/browse/index.php?wpLimit=1&wpSortby=8')
> contents.
> rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
> url := (rx matches: str)
> ifTrue: [
> str := (rx subexpression: 2)
> copyWithRegex: 'tb_' matchesReplacedWith: '' ]
> ifFalse: [ nil ].
> form := nil.
> url ifNotNil: [
> form := ImageReadWriter formFromStream: (HTTPSocket httpGet: url).
> World backgroundImage: form layout: #scaled
> ].
>
> ] on: Error do: [:ex| ].
> 1 minute asDelay wait.
> ] repeat.
>
> ] newProcess name: 'Random background changer'; priority: Processor
> userBackgroundPriority; resume
>
>
>
>
> 2010/5/16 Mariano Martinez Peck <marianopeck(a)gmail.com>:
>> Igor, you are my hero. This is fucking great hahahahaha
>>
>> I will use is it for my images!!! ahhh you should cache them so that when
>> you are offline you can random the ones you already downloaded ahahahahhaha
>>
>> excellent :)
>>
>> mariano
>>
>> On Sat, May 15, 2010 at 11:48 PM, Igor Stasenko <siguctua(a)gmail.com> wrote:
>>>
>>> Guys, this is plain boring :)
>>>
>>> Here is more interesting example (just evaluate it to see what happens) ;)
>>>
>>> [
>>>
>>> [[
>>> | rx str url form |
>>> str := (HTTPSocket httpGet:
>>> 'http://www.socwall.com/browse/index.php?wpSortby=8') contents.
>>> rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
>>> url := (rx matches: str)
>>> ifTrue: [
>>> str := (rx subexpression: 2)
>>> copyWithRegex: 'tb_' matchesReplacedWith:
>>> '' ]
>>> ifFalse: [ nil ].
>>> form := nil.
>>> url ifNotNil: [
>>> form := ImageReadWriter formFromStream: (HTTPSocket
>>> httpGet: url).
>>> World backgroundImage: form layout: #scaled
>>> ].
>>>
>>> 1 minute asDelay wait.
>>> ] on: Error do: [:ex| ] ] repeat.
>>>
>>> ] newProcess name: 'Random background changer'; priority: Processor
>>> userBackgroundPriority; resume
>>>
>>>
>>>
>>>
>>>
>>> 2010/5/15 Mariano Martinez Peck <marianopeck(a)gmail.com>:
>>>>
>>>>
>>>> On Fri, May 14, 2010 at 8:20 PM, Stéphane Ducasse
>>>> <stephane.ducasse(a)inria.fr> wrote:
>>>>>
>>>>> Yes start a section :)
>>>>> under tips and trick
>>>>>
>>>>
>>>> Done:
>>>>
>>>> http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/Putti…
>>>>
>>>>
>>>>
>>>>>
>>>>> On May 14, 2010, at 8:15 PM, Mariano Martinez Peck wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, May 14, 2010 at 12:14 PM, Gary Chambers
>>>>>> <gazzaguru2(a)btinternet.com> wrote:
>>>>>> Fine for me spanned over two monitors (World extent 3580@1014) in
>>>>>> Vista.
>>>>>>
>>>>>> Note that there is a shorter message form for setting the background
>>>>>> image:
>>>>>>
>>>>>> World backgroundImage: (ImageReadWriter formFromFileNamed:
>>>>>> 'pharoBackground.png') layout: #scaled
>>>>>>
>>>>>> Alternatively, as before, having a .jpg file in your image/changes
>>>>>> directory with the name matching the theme name will load upon theme
>>>>>> change
>>>>>> (Watery 2.jpg for instance)
>>>>>>
>>>>>> It would be really cool a chaper in http://book.pharo-project.org/
>>>>>> about "Customizing your own image"
>>>>>> and we put there all these little and nice tricks.
>>>>>>
>>>>>>
>>>>>> Regards, Gary
>>>>>>
>>>>>> ----- Original Message ----- From: "Stéphane Ducasse"
>>>>>> <stephane.ducasse(a)inria.fr>
>>>>>> To: <Pharo-project(a)lists.gforge.inria.fr>
>>>>>> Cc: "A friendly place where any question about pharo is welcome"
>>>>>> <pharo-users(a)lists.gforge.inria.fr>
>>>>>> Sent: Thursday, May 13, 2010 7:44 PM
>>>>>> Subject: Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
>>>>>>
>>>>>>
>>>>>>
>>>>>> On my 30 inches screen
>>>>>> opening in full show some little square due to the limit of the png
>>>>>> :)
>>>>>>
>>>>>> Thanks mariano.
>>>>>>
>>>>>>
>>>>>> On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
>>>>>>
>>>>>> Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a
>>>>>> background
>>>>>> picture for the PharoDev 1.1. The last time I tried, we had a problem
>>>>>> with
>>>>>> the picture because in big screens instead of making it bigger, it
>>>>>> put it
>>>>>> several times, or it cut it. Now, thanks to Gary, it should work
>>>>>> well.
>>>>>>
>>>>>> So, if you are a lucky guy an have a big screen, can you please take
>>>>>> the
>>>>>> latests PharoCore 1.1 image, for example this:
>>>>>>
>>>>>>
>>>>>>
>>>>>> https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
>>>>>>
>>>>>>
>>>>>> How to test it ?
>>>>>>
>>>>>> - Download this in the same directory where the .image is:
>>>>>> https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
>>>>>>
>>>>>> Then evaluate:
>>>>>>
>>>>>> World backgroundMorph:
>>>>>> ((UITheme builder
>>>>>> newAlphaImage: (ImageReadWriter formFromFileNamed:
>>>>>> 'pharoBackground.png') help: nil)
>>>>>> autoSize: false;
>>>>>> layout: #scaled;
>>>>>> lock)
>>>>>>
>>>>>>
>>>>>> What to test ?
>>>>>>
>>>>>> - You should stretch the pharo image, make it very big, and the
>>>>>> background picture should stretch also together with the image.
>>>>>> - If you notice a performance decrease with it (I don't think so)
>>>>>> - If you like it or not.
>>>>>> - If the resolution is good enough in big screens
>>>>>>
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Mariano
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>>
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> Pharo-project(a)lists.gforge.inria.fr
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko AKA sig.
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
May 15, 2010
Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
by Stéphane Ducasse
argh this is late but we have to try that now :)
On May 15, 2010, at 11:48 PM, Igor Stasenko wrote:
> [
>
> [[
> | rx str url form |
> str := (HTTPSocket httpGet:
> 'http://www.socwall.com/browse/index.php?wpSortby=8') contents.
> rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
> url := (rx matches: str)
> ifTrue: [
> str := (rx subexpression: 2)
> copyWithRegex: 'tb_' matchesReplacedWith: '' ]
> ifFalse: [ nil ].
> form := nil.
> url ifNotNil: [
> form := ImageReadWriter formFromStream: (HTTPSocket httpGet: url).
> World backgroundImage: form layout: #scaled
> ].
>
> 1 minute asDelay wait.
> ] on: Error do: [:ex| ] ] repeat.
>
> ] newProcess name: 'Random background changer'; priority: Processor
> userBackgroundPriority; resume
May 15, 2010
Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
by Igor Stasenko
This one is little bit fixed, (request a list with 1 image, instead of 8)
and delay 1 minute after error.
[
[[
| rx str url form |
str := (HTTPSocket httpGet:
'http://www.socwall.com/browse/index.php?wpLimit=1&wpSortby=8')
contents.
rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
url := (rx matches: str)
ifTrue: [
str := (rx subexpression: 2)
copyWithRegex: 'tb_' matchesReplacedWith: '' ]
ifFalse: [ nil ].
form := nil.
url ifNotNil: [
form := ImageReadWriter formFromStream: (HTTPSocket httpGet: url).
World backgroundImage: form layout: #scaled
].
] on: Error do: [:ex| ].
1 minute asDelay wait.
] repeat.
] newProcess name: 'Random background changer'; priority: Processor
userBackgroundPriority; resume
2010/5/16 Mariano Martinez Peck <marianopeck(a)gmail.com>:
> Igor, you are my hero. This is fucking great hahahahaha
>
> I will use is it for my images!!! ahhh you should cache them so that when
> you are offline you can random the ones you already downloaded ahahahahhaha
>
> excellent :)
>
> mariano
>
> On Sat, May 15, 2010 at 11:48 PM, Igor Stasenko <siguctua(a)gmail.com> wrote:
>>
>> Guys, this is plain boring :)
>>
>> Here is more interesting example (just evaluate it to see what happens) ;)
>>
>> [
>>
>> Â Â Â Â [[
>> Â Â Â Â Â Â Â Â | rx str url form |
>> Â Â Â Â Â Â Â Â str := (HTTPSocket httpGet:
>> 'http://www.socwall.com/browse/index.php?wpSortby=8') contents.
>> Â Â Â Â Â Â Â Â rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
>> Â Â Â Â Â Â Â Â url := (rx matches: str)
>> Â Â Â Â Â Â Â Â Â Â Â Â ifTrue: [
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â str := (rx subexpression: 2)
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â copyWithRegex: 'tb_' matchesReplacedWith:
>> '' ]
>> Â Â Â Â Â Â Â Â Â Â Â Â ifFalse: [ nil ].
>> Â Â Â Â Â Â Â Â form := nil.
>> Â Â Â Â Â Â Â Â url ifNotNil: [
>> Â Â Â Â Â Â Â Â Â Â Â Â form := ImageReadWriter formFromStream: (HTTPSocket
>> httpGet: url).
>> Â Â Â Â Â Â Â Â Â Â Â Â World backgroundImage: form layout: #scaled
>> Â Â Â Â Â Â Â Â ].
>>
>> Â Â Â Â 1 minute asDelay wait.
>> Â Â Â Â ] on: Error do: [:ex| ] ] repeat.
>>
>> ] newProcess name: 'Random background changer'; priority: Processor
>> userBackgroundPriority; resume
>>
>>
>>
>>
>>
>> 2010/5/15 Mariano Martinez Peck <marianopeck(a)gmail.com>:
>> >
>> >
>> > On Fri, May 14, 2010 at 8:20 PM, Stéphane Ducasse
>> > <stephane.ducasse(a)inria.fr> wrote:
>> >>
>> >> Yes start a section :)
>> >> under tips and trick
>> >>
>> >
>> > Done:
>> >
>> > http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/Putti…
>> >
>> >
>> >
>> >>
>> >> On May 14, 2010, at 8:15 PM, Mariano Martinez Peck wrote:
>> >>
>> >> >
>> >> >
>> >> > On Fri, May 14, 2010 at 12:14 PM, Gary Chambers
>> >> > <gazzaguru2(a)btinternet.com> wrote:
>> >> > Fine for me spanned over two monitors (World extent 3580@1014) in
>> >> > Vista.
>> >> >
>> >> > Note that there is a shorter message form for setting the background
>> >> > image:
>> >> >
>> >> > World backgroundImage: (ImageReadWriter formFromFileNamed:
>> >> > 'pharoBackground.png') layout: #scaled
>> >> >
>> >> > Alternatively, as before, having a .jpg file in your image/changes
>> >> > directory with the name matching the theme name will load upon theme
>> >> > change
>> >> > (Watery 2.jpg for instance)
>> >> >
>> >> > It would be really cool a chaper in http://book.pharo-project.org/
>> >> > Â about "Customizing your own image"
>> >> > and we put there all these little and nice tricks.
>> >> >
>> >> >
>> >> > Regards, Gary
>> >> >
>> >> > ----- Original Message ----- From: "Stéphane Ducasse"
>> >> > <stephane.ducasse(a)inria.fr>
>> >> > To: <Pharo-project(a)lists.gforge.inria.fr>
>> >> > Cc: "A friendly place where any question about pharo is welcome"
>> >> > <pharo-users(a)lists.gforge.inria.fr>
>> >> > Sent: Thursday, May 13, 2010 7:44 PM
>> >> > Subject: Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
>> >> >
>> >> >
>> >> >
>> >> > On my 30 inches screen
>> >> > opening in full show some little square due to the limit of the png
>> >> > :)
>> >> >
>> >> > Thanks mariano.
>> >> >
>> >> >
>> >> > On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
>> >> >
>> >> > Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a
>> >> > background
>> >> > picture for the PharoDev 1.1. The last time I tried, we had a problem
>> >> > with
>> >> > the picture because in big screens instead of making it bigger, it
>> >> > put it
>> >> > several times, or it cut it. Now, thanks to Gary, it should work
>> >> > well.
>> >> >
>> >> > So, if you are a lucky guy an have a big screen, can you please take
>> >> > the
>> >> > latests PharoCore 1.1 image, for example this:
>> >> >
>> >> >
>> >> >
>> >> > https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
>> >> >
>> >> >
>> >> > How to test it ?
>> >> >
>> >> > - Download this in the same directory where the .image is:
>> >> > https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
>> >> >
>> >> > Then evaluate:
>> >> >
>> >> > World backgroundMorph:
>> >> > Â Â ((UITheme builder
>> >> > Â Â Â Â newAlphaImage: (ImageReadWriter formFromFileNamed:
>> >> > 'pharoBackground.png') help: nil)
>> >> > Â Â Â Â autoSize: false;
>> >> > Â Â Â Â layout: #scaled;
>> >> > Â Â Â Â lock)
>> >> >
>> >> >
>> >> > What to test ?
>> >> >
>> >> > - You should stretch the pharo image, make it very big, and the
>> >> > background picture should stretch also together with the image.
>> >> > - If you notice a performance decrease with it (I don't think so)
>> >> > - If you like it or not.
>> >> > - If the resolution is good enough in big screens
>> >> >
>> >> >
>> >> > Thanks!
>> >> >
>> >> > Mariano
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Pharo-project mailing list
>> >> > Pharo-project(a)lists.gforge.inria.fr
>> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Pharo-project mailing list
>> >> > Pharo-project(a)lists.gforge.inria.fr
>> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Pharo-project mailing list
>> >> > Pharo-project(a)lists.gforge.inria.fr
>> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >> >
>> >> > _______________________________________________
>> >> > Pharo-project mailing list
>> >> > Pharo-project(a)lists.gforge.inria.fr
>> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >>
>> >>
>> >> _______________________________________________
>> >> Pharo-project mailing list
>> >> Pharo-project(a)lists.gforge.inria.fr
>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > Pharo-project(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
--
Best regards,
Igor Stasenko AKA sig.
May 15, 2010
Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
by Mariano Martinez Peck
Igor, you are my hero. This is fucking great hahahahaha
I will use is it for my images!!! ahhh you should cache them so that when
you are offline you can random the ones you already downloaded ahahahahhaha
excellent :)
mariano
On Sat, May 15, 2010 at 11:48 PM, Igor Stasenko <siguctua(a)gmail.com> wrote:
> Guys, this is plain boring :)
>
> Here is more interesting example (just evaluate it to see what happens) ;)
>
> [
>
> [[
> | rx str url form |
> str := (HTTPSocket httpGet:
> 'http://www.socwall.com/browse/index.php?wpSortby=8') contents.
> rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
> url := (rx matches: str)
> ifTrue: [
> str := (rx subexpression: 2)
> copyWithRegex: 'tb_' matchesReplacedWith: ''
> ]
> ifFalse: [ nil ].
> form := nil.
> url ifNotNil: [
> form := ImageReadWriter formFromStream: (HTTPSocket
> httpGet: url).
> World backgroundImage: form layout: #scaled
> ].
>
> 1 minute asDelay wait.
> ] on: Error do: [:ex| ] ] repeat.
>
> ] newProcess name: 'Random background changer'; priority: Processor
> userBackgroundPriority; resume
>
>
>
>
>
> 2010/5/15 Mariano Martinez Peck <marianopeck(a)gmail.com>:
> >
> >
> > On Fri, May 14, 2010 at 8:20 PM, Stéphane Ducasse
> > <stephane.ducasse(a)inria.fr> wrote:
> >>
> >> Yes start a section :)
> >> under tips and trick
> >>
> >
> > Done:
> >
> http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/Putti…
> >
> >
> >
> >>
> >> On May 14, 2010, at 8:15 PM, Mariano Martinez Peck wrote:
> >>
> >> >
> >> >
> >> > On Fri, May 14, 2010 at 12:14 PM, Gary Chambers
> >> > <gazzaguru2(a)btinternet.com> wrote:
> >> > Fine for me spanned over two monitors (World extent 3580@1014) in
> Vista.
> >> >
> >> > Note that there is a shorter message form for setting the background
> >> > image:
> >> >
> >> > World backgroundImage: (ImageReadWriter formFromFileNamed:
> >> > 'pharoBackground.png') layout: #scaled
> >> >
> >> > Alternatively, as before, having a .jpg file in your image/changes
> >> > directory with the name matching the theme name will load upon theme
> change
> >> > (Watery 2.jpg for instance)
> >> >
> >> > It would be really cool a chaper in http://book.pharo-project.org/
> >> > about "Customizing your own image"
> >> > and we put there all these little and nice tricks.
> >> >
> >> >
> >> > Regards, Gary
> >> >
> >> > ----- Original Message ----- From: "Stéphane Ducasse"
> >> > <stephane.ducasse(a)inria.fr>
> >> > To: <Pharo-project(a)lists.gforge.inria.fr>
> >> > Cc: "A friendly place where any question about pharo is welcome"
> >> > <pharo-users(a)lists.gforge.inria.fr>
> >> > Sent: Thursday, May 13, 2010 7:44 PM
> >> > Subject: Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
> >> >
> >> >
> >> >
> >> > On my 30 inches screen
> >> > opening in full show some little square due to the limit of the png :)
> >> >
> >> > Thanks mariano.
> >> >
> >> >
> >> > On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
> >> >
> >> > Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background
> >> > picture for the PharoDev 1.1. The last time I tried, we had a problem
> with
> >> > the picture because in big screens instead of making it bigger, it put
> it
> >> > several times, or it cut it. Now, thanks to Gary, it should work well.
> >> >
> >> > So, if you are a lucky guy an have a big screen, can you please take
> the
> >> > latests PharoCore 1.1 image, for example this:
> >> >
> >> >
> >> >
> https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
> >> >
> >> >
> >> > How to test it ?
> >> >
> >> > - Download this in the same directory where the .image is:
> >> > https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
> >> >
> >> > Then evaluate:
> >> >
> >> > World backgroundMorph:
> >> > ((UITheme builder
> >> > newAlphaImage: (ImageReadWriter formFromFileNamed:
> >> > 'pharoBackground.png') help: nil)
> >> > autoSize: false;
> >> > layout: #scaled;
> >> > lock)
> >> >
> >> >
> >> > What to test ?
> >> >
> >> > - You should stretch the pharo image, make it very big, and the
> >> > background picture should stretch also together with the image.
> >> > - If you notice a performance decrease with it (I don't think so)
> >> > - If you like it or not.
> >> > - If the resolution is good enough in big screens
> >> >
> >> >
> >> > Thanks!
> >> >
> >> > Mariano
> >> >
> >> >
> >> > _______________________________________________
> >> > Pharo-project mailing list
> >> > Pharo-project(a)lists.gforge.inria.fr
> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >> >
> >> >
> >> > _______________________________________________
> >> > Pharo-project mailing list
> >> > Pharo-project(a)lists.gforge.inria.fr
> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >> >
> >> >
> >> > _______________________________________________
> >> > Pharo-project mailing list
> >> > Pharo-project(a)lists.gforge.inria.fr
> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >> >
> >> > _______________________________________________
> >> > Pharo-project mailing list
> >> > Pharo-project(a)lists.gforge.inria.fr
> >> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >>
> >>
> >> _______________________________________________
> >> Pharo-project mailing list
> >> Pharo-project(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
May 15, 2010
Re: [Pharo-project] CPUWatcher
by Mariano Martinez Peck
>
>>>
>> Hi Levente. Thanks for the answer, but I didn't understand. Which code do
>> you mean?
>>
>> If you refer to:
>>
>> [ true ] whileTrue: [ 1+1 ]
>>
>> I am sending the message whileTrue: to BlockClosure and the message + to
>> 1.
>> So, I don't understand.
>>
>
> In theory yes, but in practice no. Just look at the generated bytecode:
>
>
ahhhhh ;)
> 13 <71> pushConstant: true
> 14 <9D> jumpFalse: 21
> 15 <76> pushConstant: 1
> 16 <76> pushConstant: 1
> 17 <B0> send: +
> 18 <87> pop
> 19 <A3 F8> jumpTo: 13
> 21 <78> returnSelf
>
> As you can see #whileTrue: totally disappeared, no message sends. There's a
> send for #+, but that's a B0 bytecode which will not do a real message send,
> because both the receiver and the argument is a SmallInteger.
> Therefore your code won't send any messages.
>
Ok...I got it. But now I tested with this:
[true] whileTrue: [
Transcript open.
Transcript show: 'mariano'.
Transcript close.
]
With bytecodes:
33 <71> pushConstant: true
34 <AC 0C> jumpFalse: 48
36 <41> pushLit: Transcript
37 <D0> send: open
38 <87> pop
39 <41> pushLit: Transcript
40 <23> pushConstant: 'mariano'
41 <E2> send: show:
42 <87> pop
43 <41> pushLit: Transcript
44 <D4> send: close
45 <87> pop
46 <A3 F1> jumpTo: 33
48 <78> returnSelf
Now it should work, isn't it ? However, I still it doesn't interrupt the
process :(
Thanks for the help levente.
Mariano
>
>
> Levente
>
>
>
>> Btw, you can turn CPUWatcher on from the Process Browser and see the CPU
>>
>>> usage of processes.
>>>
>>>
>>> Yes, I tried this before but it happened the same....I tried to test it,
>> evaluating
>> [ true ] whileTrue: [ 1+1 ] but it was not interrupted.
>>
>> I also tried to click several times in the world but with no luck.
>>
>> Thanks
>>
>> Mariano
>>
>>
>>
>>> Levente
>>>
>>>
>>> Cheers
>>>>
>>>> Mariano
>>>>
>>>>
>>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
May 15, 2010
Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
by Igor Stasenko
Guys, this is plain boring :)
Here is more interesting example (just evaluate it to see what happens) ;)
[
[[
| rx str url form |
str := (HTTPSocket httpGet:
'http://www.socwall.com/browse/index.php?wpSortby=8') contents.
rx := '.*(http\://.+tb_.+\.jpg).*' asRegex.
url := (rx matches: str)
ifTrue: [
str := (rx subexpression: 2)
copyWithRegex: 'tb_' matchesReplacedWith: '' ]
ifFalse: [ nil ].
form := nil.
url ifNotNil: [
form := ImageReadWriter formFromStream: (HTTPSocket httpGet: url).
World backgroundImage: form layout: #scaled
].
1 minute asDelay wait.
] on: Error do: [:ex| ] ] repeat.
] newProcess name: 'Random background changer'; priority: Processor
userBackgroundPriority; resume
2010/5/15 Mariano Martinez Peck <marianopeck(a)gmail.com>:
>
>
> On Fri, May 14, 2010 at 8:20 PM, Stéphane Ducasse
> <stephane.ducasse(a)inria.fr> wrote:
>>
>> Yes start a section :)
>> under tips and trick
>>
>
> Done:
> http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/Putti…
>
>
>
>>
>> On May 14, 2010, at 8:15 PM, Mariano Martinez Peck wrote:
>>
>> >
>> >
>> > On Fri, May 14, 2010 at 12:14 PM, Gary Chambers
>> > <gazzaguru2(a)btinternet.com> wrote:
>> > Fine for me spanned over two monitors (World extent 3580@1014) in Vista.
>> >
>> > Note that there is a shorter message form for setting the background
>> > image:
>> >
>> > World backgroundImage: (ImageReadWriter formFromFileNamed:
>> > 'pharoBackground.png') layout: #scaled
>> >
>> > Alternatively, as before, having a .jpg file in your image/changes
>> > directory with the name matching the theme name will load upon theme change
>> > (Watery 2.jpg for instance)
>> >
>> > It would be really cool a chaper in http://book.pharo-project.org/
>> > Â about "Customizing your own image"
>> > and we put there all these little and nice tricks.
>> >
>> >
>> > Regards, Gary
>> >
>> > ----- Original Message ----- From: "Stéphane Ducasse"
>> > <stephane.ducasse(a)inria.fr>
>> > To: <Pharo-project(a)lists.gforge.inria.fr>
>> > Cc: "A friendly place where any question about pharo is welcome"
>> > <pharo-users(a)lists.gforge.inria.fr>
>> > Sent: Thursday, May 13, 2010 7:44 PM
>> > Subject: Re: [Pharo-project] Help testing Pharo 1.1 in big screens!
>> >
>> >
>> >
>> > On my 30 inches screen
>> > opening in full show some little square due to the limit of the png :)
>> >
>> > Thanks mariano.
>> >
>> >
>> > On May 13, 2010, at 8:39 PM, Mariano Martinez Peck wrote:
>> >
>> > Hi folks. I re-try (yes, yes, I re-insist hahaha) to have a background
>> > picture for the PharoDev 1.1. The last time I tried, we had a problem with
>> > the picture because in big screens instead of making it bigger, it put it
>> > several times, or it cut it. Now, thanks to Gary, it should work well.
>> >
>> > So, if you are a lucky guy an have a big screen, can you please take the
>> > latests PharoCore 1.1 image, for example this:
>> >
>> >
>> > https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE…
>> >
>> >
>> > How to test it ?
>> >
>> > - Download this in the same directory where the .image is:
>> > https://gforge.inria.fr/frs/download.php/26996/pharoBackground.png
>> >
>> > Then evaluate:
>> >
>> > World backgroundMorph:
>> > Â Â ((UITheme builder
>> > Â Â Â Â newAlphaImage: (ImageReadWriter formFromFileNamed:
>> > 'pharoBackground.png') help: nil)
>> > Â Â Â Â autoSize: false;
>> > Â Â Â Â layout: #scaled;
>> > Â Â Â Â lock)
>> >
>> >
>> > What to test ?
>> >
>> > - You should stretch the pharo image, make it very big, and the
>> > background picture should stretch also together with the image.
>> > - If you notice a performance decrease with it (I don't think so)
>> > - If you like it or not.
>> > - If the resolution is good enough in big screens
>> >
>> >
>> > Thanks!
>> >
>> > Mariano
>> >
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > Pharo-project(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > Pharo-project(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > Pharo-project(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> >
>> > _______________________________________________
>> > Pharo-project mailing list
>> > Pharo-project(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
--
Best regards,
Igor Stasenko AKA sig.
May 15, 2010
Re: [Pharo-project] CSS style for tables in http://book.pharo-project.org/
by Mariano Martinez Peck
On Sat, May 15, 2010 at 11:34 PM, Tudor Girba <tudor.girba(a)gmail.com> wrote:
> Hi,
>
> Please do not add html inside the book, because you will have troubles when
> generating latex or when changing style.
>
ahhh I forgot about your latex friend...sorry.
> Also, I do not agree that you need borders for the table, especially for
> that particular table. Ask yourself this: can I distinguish the table from
> the rest of the text? can I distinguish the organization of the table? If
> you get yes to both questions, you probably do not need more. Only add a
> line when you cannot do without it. It's like Smalltalk :).
>
yes, maybe you are right here ;) But I guess that at some point we may need
it.
>
> But, then again, I am not in charge with the book.
>
> Now, regarding the embedding of html, in Pier2 (which is what is used for
> the Pharo book), you have to escape it with {{{<html code>}}}.
>
Ok, thanks.
>
> Cheers,
> Doru
>
>
>
> On 15 May 2010, at 23:28, Mariano Martinez Peck wrote:
>
>
>>
>> On Sat, May 15, 2010 at 10:43 PM, Tudor Girba <tudor.girba(a)gmail.com>
>> wrote:
>> Hi Mariano,
>>
>> If you add headers, you will see that you do not need more lines to
>> delimit columns and rows. I updated your table with a header (introduced
>> with |!).
>>
>> It is much better :) Thanks!
>>
>> Is this not enough?
>>
>>
>> I would like to be able to have borders at least. I tried this:
>>
>> <div style="border-collapse: collapse; border: solid;">
>> |!Operating system|!Keys
>> |Mac|Cmd-.
>> |Linux|Alt-.
>> |Windows|Alt-.
>> </div>
>>
>>
>> But the <div> is shown as literal (verbatim is call this?)...I previous
>> versions of Pier (1.2) if I remember correctly it wasn't like this. So, how
>> can I put html inside a book section ?
>>
>> Finally, sorry. I did a mess and I don't know why
>> http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/
>>
>> is in another table of content :( how can I move it to the original one ?
>>
>> Thanks and sorry for the noise.
>>
>> Mariano
>>
>>
>>
>> Cheers,
>> Doru
>>
>>
>>
>> On 15 May 2010, at 18:21, Mariano Martinez Peck wrote:
>>
>> Hi (Doru?)
>>
>> I was just creating this page:
>> http://book.pharo-project.org/book/TipsAndTricks/InterruptKey
>>
>> and seems there is no style for table, tr, td, etc. I checked with firebug
>> and the html is correct. So I guess we could add style. I tried to go to the
>> css component and check but it seems I don't have access. But that's better
>> because I am horrible with css ;)
>>
>> Now I wonder...can we put style to tables? at least border ;) Maybe I did
>> something wrong.
>>
>> Thanks
>>
>> mariano
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> --
>> www.tudorgirba.com
>>
>> "Sometimes the best solution is not the best solution."
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow."
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
May 15, 2010
[Pharo-project] Opening browser pages Re: ConfigurationOfExternalWebBrowser working in Squeak and Pharo trunk
by Mariano Martinez Peck
On Sat, May 15, 2010 at 11:16 PM, Stéphane Ducasse <
stephane.ducasse(a)inria.fr> wrote:
> ok thanks for the explanation.
>
> Stef
>
> On May 15, 2010, at 11:02 PM, Sean P. DeNigris wrote:
>
> >
> >> What is an external web browser?
> >> What are its goals?
> > It's an alternative to Scamper. It forwards urls to the underlying OS's
> > browser e.g. on my mac, it opens the URL in a new Safari window.
> >
> > And how to we use the code in this package?
> > "ExternalWebBrowser openOnUrl: 'www.squeak.org'"
>
Hi. I have just tested this thing about ExternalWebBrowser.
Now I was thinking the use we can give to it. For example, what about
(somehow) being able to automatically open a link in the browser. Suppose
these exampels:
- In the welcome workspace, we have a lot of links. It would be great to be
able to doble click, ctrl + click, or something, that automatically opens
the URL in a tab of the default external browser.
- Automatically open the issue tracker in certain circumstances ?
- If we include PharoTips, there are a lot of tips that include links. It
would be cool to open them automatically.
What do you think ?
Cheers
Mariano
> >
> > I haven't played with it more than that. I'm just porting projects that
> > sound interesting, both for practice, and adventure.
> >
> > Sean
> >
> >
> >
> >
> > --
> > View this message in context:
> http://forum.world.st/ConfigurationOfExternalWebBrowser-working-in-Squeak-a…
> > Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
May 15, 2010
Re: [Pharo-project] CSS style for tables in http://book.pharo-project.org/
by Tudor Girba
Hi,
Please do not add html inside the book, because you will have troubles
when generating latex or when changing style.
Also, I do not agree that you need borders for the table, especially
for that particular table. Ask yourself this: can I distinguish the
table from the rest of the text? can I distinguish the organization of
the table? If you get yes to both questions, you probably do not need
more. Only add a line when you cannot do without it. It's like
Smalltalk :).
But, then again, I am not in charge with the book.
Now, regarding the embedding of html, in Pier2 (which is what is used
for the Pharo book), you have to escape it with {{{<html code>}}}.
Cheers,
Doru
On 15 May 2010, at 23:28, Mariano Martinez Peck wrote:
>
>
> On Sat, May 15, 2010 at 10:43 PM, Tudor Girba
> <tudor.girba(a)gmail.com> wrote:
> Hi Mariano,
>
> If you add headers, you will see that you do not need more lines to
> delimit columns and rows. I updated your table with a header
> (introduced with |!).
>
> It is much better :) Thanks!
>
> Is this not enough?
>
>
> I would like to be able to have borders at least. I tried this:
>
> <div style="border-collapse: collapse; border: solid;">
> |!Operating system|!Keys
> |Mac|Cmd-.
> |Linux|Alt-.
> |Windows|Alt-.
> </div>
>
>
> But the <div> is shown as literal (verbatim is call this?)...I
> previous versions of Pier (1.2) if I remember correctly it wasn't
> like this. So, how can I put html inside a book section ?
>
> Finally, sorry. I did a mess and I don't know why http://book.pharo-project.org/book/table-of-contents/CustomizingPharo/
>
> is in another table of content :( how can I move it to the original
> one ?
>
> Thanks and sorry for the noise.
>
> Mariano
>
>
>
> Cheers,
> Doru
>
>
>
> On 15 May 2010, at 18:21, Mariano Martinez Peck wrote:
>
> Hi (Doru?)
>
> I was just creating this page: http://book.pharo-project.org/book/TipsAndTricks/InterruptKey
>
> and seems there is no style for table, tr, td, etc. I checked with
> firebug and the html is correct. So I guess we could add style. I
> tried to go to the css component and check but it seems I don't have
> access. But that's better because I am horrible with css ;)
>
> Now I wonder...can we put style to tables? at least border ;) Maybe
> I did something wrong.
>
> Thanks
>
> mariano
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> --
> www.tudorgirba.com
>
> "Sometimes the best solution is not the best solution."
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
www.tudorgirba.com
"Every thing has its own flow."
May 15, 2010