Hi guys
for the mooc I would like have a list of how to that students should look in the system and implement. The idea is to show to the participants that Pharo is open and that they can find information. For example, - extracting a sprite from a png file - access a time service of the web Now I would love to get your ideas and their solution. Stef |
> On 03 Mar 2016, at 09:23, stepharo <[hidden email]> wrote: > > Hi guys > > for the mooc I would like have a list of how to that students should look in the system and implement. > The idea is to show to the participants that Pharo is open and that they can find information. > For example, > - extracting a sprite from a png file > - access a time service of the web Time is soo simple that there is no real need for a true web service and such a service would be trivial anyway (yet I did not find any public/free ones). Here is one way to do it: | stream unixTime | stream := nil. [ "RFC 868 TCP protocol https://en.wikipedia.org/wiki/Time_Protocol " stream := ZdcSocketStream openConnectionToHostNamed: 'time.nist.gov' port: 37. unixTime := (stream next: 4) asInteger ] ensure: [ stream ifNotNil: [ [ stream close ] on: Error do: [] ] ]. DateAndTime fromUnixTime: unixTime. The real stuff is SNTP though http://en.wikipedia.org/wiki/Network_Time_Protocol http://tools.ietf.org/html/rfc2030 which is implemented in ZTimestamp and which can do much more: ZTimestampSNTPClient new remoteClock. Sven > Now I would love to get your ideas and their solution. > > Stef > > > |
In reply to this post by stepharo
stepharo <[hidden email]> writes:
> Now I would love to get your ideas and their solution. getting a photo from an email address through gravatar: email := '[hidden email]'. url := 'http://www.gravatar.com/avatar/', (MD5 hashMessage: email trimBoth asLowercase) hex, '.jpg'. (ZnEasy getJpeg: url) asMorph openInHand -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill |
On 03-03-16 14:46, Damien Cassou wrote:
> stepharo <[hidden email]> writes: > >> Now I would love to get your ideas and their solution. > > getting a photo from an email address through gravatar: > > email := '[hidden email]'. > url := 'http://www.gravatar.com/avatar/', (MD5 hashMessage: email trimBoth asLowercase) hex, '.jpg'. > (ZnEasy getJpeg: url) asMorph openInHand > ifError: ["hmm, might be a png instead" ZnEasy getPng: 'http://www.gravatar.com/avatar/', (self hash: anEmail asLowercase),'.png?s=30']. Stephan |
In reply to this post by stepharo
These little how to may be included as an help in the image.
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
|
In reply to this post by stepharo
Hi,
I wrote a little post with a how to extract sprites from a larger png file: http://www.humane-assessment.com/blog/extracting-sprite-from-png Cheers, Doru > On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: > > Hi guys > > for the mooc I would like have a list of how to that students should look in the system and implement. > The idea is to show to the participants that Pharo is open and that they can find information. > For example, > - extracting a sprite from a png file > - access a time service of the web > > Now I would love to get your ideas and their solution. > > Stef > > > -- www.tudorgirba.com www.feenk.com "Beauty is where we see it." |
Excellent!
> On Mar 3, 2016, at 6:58 PM, Tudor Girba <[hidden email]> wrote: > > Hi, > > I wrote a little post with a how to extract sprites from a larger png file: > http://www.humane-assessment.com/blog/extracting-sprite-from-png > > Cheers, > Doru > > >> On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: >> >> Hi guys >> >> for the mooc I would like have a list of how to that students should look in the system and implement. >> The idea is to show to the participants that Pharo is open and that they can find information. >> For example, >> - extracting a sprite from a png file >> - access a time service of the web >> >> Now I would love to get your ideas and their solution. >> >> Stef >> >> >> > > -- > www.tudorgirba.com > www.feenk.com > > "Beauty is where we see it." > > > > > -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. |
In reply to this post by Stephan Eggermont-3
Mega tx :)
Le 3/3/16 15:28, Stephan Eggermont a écrit : >> >> email := '[hidden email]'. >> url := 'http://www.gravatar.com/avatar/', (MD5 hashMessage: email >> trimBoth asLowercase) hex, '.jpg'. >> (ZnEasy getJpeg: url) asMorph openInHand >> > > ifError: ["hmm, might be a png instead" > ZnEasy getPng: 'http://www.gravatar.com/avatar/', > (self hash: anEmail asLowercase),'.png?s=30']. |
In reply to this post by abergel
Yes but they should find them :)
Le 3/3/16 18:32, Alexandre Bergel a
écrit :
These little how to may be included as an help in the image. |
In reply to this post by Tudor Girba-2
So cooooooooooooooooooooooooooool, it was on my todo with my son.
--- this is really true, he came and told me I want to build my own game... And we do not have a game framework in our community --- at least one that I understand. So I was looking at Ruby or JS :( And clement show me the link and how he extracted the png. So we will do that this afternoon and add this as a challenge for the mooc I should have got faster :). Le 3/3/16 22:58, Tudor Girba a écrit : > Hi, > > I wrote a little post with a how to extract sprites from a larger png file: > http://www.humane-assessment.com/blog/extracting-sprite-from-png > > Cheers, > Doru > > >> On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: >> >> Hi guys >> >> for the mooc I would like have a list of how to that students should look in the system and implement. >> The idea is to show to the participants that Pharo is open and that they can find information. >> For example, >> - extracting a sprite from a png file >> - access a time service of the web >> >> Now I would love to get your ideas and their solution. >> >> Stef >> >> >> > -- > www.tudorgirba.com > www.feenk.com > > "Beauty is where we see it." > > > > > > |
Hi,
Let’s take this opportunity to spawn more of these problems. Feel free to shoot them around and I will try to provide the scenario to program more live. What do you think? Cheers, Doru > On Mar 5, 2016, at 10:18 AM, stepharo <[hidden email]> wrote: > > So cooooooooooooooooooooooooooool, it was on my todo with my son. > --- this is really true, he came and told me I want to build my own game... > And we do not have a game framework in our community --- at least one that I understand. > So I was looking at Ruby or JS :( > > And clement show me the link and how he extracted the png. > So we will do that this afternoon and add this as a challenge for the mooc > I should have got faster :). > > > Le 3/3/16 22:58, Tudor Girba a écrit : >> Hi, >> >> I wrote a little post with a how to extract sprites from a larger png file: >> http://www.humane-assessment.com/blog/extracting-sprite-from-png >> >> Cheers, >> Doru >> >> >>> On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: >>> >>> Hi guys >>> >>> for the mooc I would like have a list of how to that students should look in the system and implement. >>> The idea is to show to the participants that Pharo is open and that they can find information. >>> For example, >>> - extracting a sprite from a png file >>> - access a time service of the web >>> >>> Now I would love to get your ideas and their solution. >>> >>> Stef >>> >>> >>> >> -- >> www.tudorgirba.com >> www.feenk.com >> >> "Beauty is where we see it." >> >> >> >> >> >> > > -- www.tudorgirba.com www.feenk.com "If you can't say why something is relevant, it probably isn't." |
I would love one example fetch something using Zinc and check the
network status. I remember once I played with Pop and I wa sfetching mails one by one :) Le 5/3/16 12:11, Tudor Girba a écrit : > Hi, > > Let’s take this opportunity to spawn more of these problems. Feel free to shoot them around and I will try to provide the scenario to program more live. What do you think? > > Cheers, > Doru > > >> On Mar 5, 2016, at 10:18 AM, stepharo <[hidden email]> wrote: >> >> So cooooooooooooooooooooooooooool, it was on my todo with my son. >> --- this is really true, he came and told me I want to build my own game... >> And we do not have a game framework in our community --- at least one that I understand. >> So I was looking at Ruby or JS :( >> >> And clement show me the link and how he extracted the png. >> So we will do that this afternoon and add this as a challenge for the mooc >> I should have got faster :). >> >> >> Le 3/3/16 22:58, Tudor Girba a écrit : >>> Hi, >>> >>> I wrote a little post with a how to extract sprites from a larger png file: >>> http://www.humane-assessment.com/blog/extracting-sprite-from-png >>> >>> Cheers, >>> Doru >>> >>> >>>> On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: >>>> >>>> Hi guys >>>> >>>> for the mooc I would like have a list of how to that students should look in the system and implement. >>>> The idea is to show to the participants that Pharo is open and that they can find information. >>>> For example, >>>> - extracting a sprite from a png file >>>> - access a time service of the web >>>> >>>> Now I would love to get your ideas and their solution. >>>> >>>> Stef >>>> >>>> >>>> >>> -- >>> www.tudorgirba.com >>> www.feenk.com >>> >>> "Beauty is where we see it." >>> >>> >>> >>> >>> >>> >> > -- > www.tudorgirba.com > www.feenk.com > > "If you can't say why something is relevant, > it probably isn't." > > > |
On Sat, Mar 5, 2016 at 11:14 PM, stepharo <[hidden email]> wrote:
> I would love one example fetch something using Zinc and check the network > status. > I remember once I played with Pop and I wa sfetching mails one by one :) This could be a good one. Occasionally when I'm troubleshooting email problems I resort to basic telnet access [1][2] But its harder to do this using SSL. Just now I found [3] but I haven't tried it. [1] http://www.anta.net/misc/telnet-troubleshooting/pop.shtml [2] http://arnab.org/notes/accessing-mail-using-pop-and-telnet [3] http://blog.yimingliu.com/2009/01/23/testing-a-pop3-server-via-telnet-or-openssl/ cheers -ben > > > Le 5/3/16 12:11, Tudor Girba a écrit : > >> Hi, >> >> Let’s take this opportunity to spawn more of these problems. Feel free to >> shoot them around and I will try to provide the scenario to program more >> live. What do you think? >> >> Cheers, >> Doru >> >> >>> On Mar 5, 2016, at 10:18 AM, stepharo <[hidden email]> wrote: >>> >>> So cooooooooooooooooooooooooooool, it was on my todo with my son. >>> --- this is really true, he came and told me I want to build my own >>> game... >>> And we do not have a game framework in our community --- at least one >>> that I understand. >>> So I was looking at Ruby or JS :( >>> >>> And clement show me the link and how he extracted the png. >>> So we will do that this afternoon and add this as a challenge for the >>> mooc >>> I should have got faster :). >>> >>> >>> Le 3/3/16 22:58, Tudor Girba a écrit : >>>> >>>> Hi, >>>> >>>> I wrote a little post with a how to extract sprites from a larger png >>>> file: >>>> http://www.humane-assessment.com/blog/extracting-sprite-from-png >>>> >>>> Cheers, >>>> Doru >>>> >>>> >>>>> On Mar 3, 2016, at 9:23 AM, stepharo <[hidden email]> wrote: >>>>> >>>>> Hi guys >>>>> >>>>> for the mooc I would like have a list of how to that students should >>>>> look in the system and implement. >>>>> The idea is to show to the participants that Pharo is open and that >>>>> they can find information. >>>>> For example, >>>>> - extracting a sprite from a png file >>>>> - access a time service of the web >>>>> >>>>> Now I would love to get your ideas and their solution. >>>>> >>>>> Stef >>>>> >>>>> >>>>> >>>> -- >>>> www.tudorgirba.com >>>> www.feenk.com >>>> >>>> "Beauty is where we see it." >>>> >>>> >>>> >>>> >>>> >>>> >>> >> -- >> www.tudorgirba.com >> www.feenk.com >> >> "If you can't say why something is relevant, >> it probably isn't." >> >> >> > > |
In reply to this post by stepharo
Isn't Boardician usable? On Mar 5, 2016 10:19 AM, "stepharo" <[hidden email]> wrote:
So cooooooooooooooooooooooooooool, it was on my todo with my son. |
It is working and we started to clean it up with some students but
the design is not straight forward to me.
We moved it to Pharo or RMOD because we cannot commit to clean the code. Le 9/3/16 08:02,
[hidden email] a écrit :
|
In reply to this post by stepharo
Nice one!
Doru > On Mar 16, 2016, at 11:36 PM, Stephan Eggermont <[hidden email]> wrote: > > On 03/03/16 09:23, stepharo wrote: >> for the mooc I would like have a list of how to that students should >> look in the system and implement. >> The idea is to show to the participants that Pharo is open and that they >> can find information. > > At #saner16 there was a talk about type hints in argument names in Pharo. The longest they found was aSelectorOrElementOrjQueryOrBooleanOrNumber. > Alexandre replied that that could have been one of his, so I checked in a Seaside image (jQuery is a good hint), it was > JQAccordion>active: aSelectorOrElementOrjQueryOrBooleanOrNumber > by Lukas. So what are the longest type hinting argument names Alexandre uses? In Moose 6-1137? > > |arguments| > arguments := Set new. > (CompiledMethod allInstances select: [ :each | > each author = 'AlexandreBergel' ]) > do: [ :m | > arguments addAll: m argumentNames ]. > arguments asOrderedCollection sort: [ :a :b | a size > b size ] > > gives > numberOfMillisecondsToWaitBeforeRefresh > changePrimarySelectionSelector > aValueOrASymbolOrAOneArgBlock > ... > > Stephan > > > -- www.tudorgirba.com www.feenk.com "Beauty is where we see it." |
In reply to this post by stepharo
:-)
Alexandre > On Mar 16, 2016, at 11:36 PM, Stephan Eggermont <[hidden email]> wrote: > > On 03/03/16 09:23, stepharo wrote: >> for the mooc I would like have a list of how to that students should >> look in the system and implement. >> The idea is to show to the participants that Pharo is open and that they >> can find information. > > At #saner16 there was a talk about type hints in argument names in Pharo. The longest they found was aSelectorOrElementOrjQueryOrBooleanOrNumber. > Alexandre replied that that could have been one of his, so I checked in a Seaside image (jQuery is a good hint), it was > JQAccordion>active: aSelectorOrElementOrjQueryOrBooleanOrNumber > by Lukas. So what are the longest type hinting argument names Alexandre uses? In Moose 6-1137? > > |arguments| > arguments := Set new. > (CompiledMethod allInstances select: [ :each | > each author = 'AlexandreBergel' ]) > do: [ :m | > arguments addAll: m argumentNames ]. > arguments asOrderedCollection sort: [ :a :b | a size > b size ] > > gives > numberOfMillisecondsToWaitBeforeRefresh > changePrimarySelectionSelector > aValueOrASymbolOrAOneArgBlock > ... > > Stephan > > > -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. |
Free forum by Nabble | Edit this page |