Re: [Pharo-users] storeOn:/readFrom: symmetrical?

2014-05-23 Thread stepharo


On 23/5/14 19:58, Rick Kitts wrote:

Hi. A basic question I hope someone can answer. This works:

— cut here ---
| stream aInt |

stream := (String new:20) writeStream.
aInt := 23.
(aInt storeOn:stream) = (aInt class readFrom:(stream contents))

— cut here ---

This doesn’t (generates an error):

— cut here ---
| stream aTime |

stream := (String new:20) writeStream.
aTime := Time now.
(aTime storeOn:stream) = (aTime class readFrom:(stream contents))

— cut here ---

To the question then. Assuming the second case isn’t wrong in some 
fashion I don’t understand, is it the case that storeOn:/readFrom: is 
supposed to be symmetrical for all classes? I ask it that way because 
there are a couple of Kernel classes where I’ve seen this to not be 
the case.



It would be nice that they get symmetric. because the goal of storeOn: 
is to recreate the same object.

So if you have a fix please
- sign the license agreement
- open a bug entry
- publish the fix.


TIA,
—Rick








Re: [Pharo-users] Initializing a class with a Dictionary

2014-05-23 Thread stepharo

Hi sergio

what do you want to do?


Object subclass: #MyClass
instanceVarNames: 'dict'

MyClass>>initialize
[
super initialize.
dict := Dictionary new.
]

MyClass>>atKey: aKey put: aVal
[
dict at: aKey put: aVal
]

MyClass>>atKey: aKey
[
^ dict at: aKey
]

let you manage the key/val that you want?
Let me know if this answers your question.
Stef


On 22/5/14 19:37, sergio_101 wrote:


is it possible to initialize a class with a dictionary? my first 
thought would be to create a method like:


intializeWithDictionary: aDictionary

then, loop through the elements and do something like:

instVarNamed: key put: value

but the book says:

Caveat: Although these methods are useful for building development 
tools, using them to develop conventional applications is a bad idea: 
these reflective methods break the encapsulation boundary of your 
objects and can there- fore make your code much harder to understand 
and maintain.--


should i avoid this?



peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101





Re: [Pharo-users] deep into pharo(esug 2013) translate to korean draft version.

2014-05-23 Thread stepharo

Thanks a lot for your effort and time!!

Stef

On 23/5/14 07:09, peter yoo wrote:

Deep into Pharo make use xetex.

im dont have latex file. make from my templete.


need more touch. but can use.

thank you for all authur~



look here please.

http://ta.onionmixer.net/wordpress/?attachment_id=265

ps. have a little problem. because wiki2latex using then need 
check for some special chracters (ex:^ or *) have a time then check more.





Re: [Pharo-users] Downloading tweets

2014-05-23 Thread Arturo Zambrano
Hi Steph,
 it is in pdf.. that's why we need more practical documentation ;-)

Gofer new url:
'http://smalltalkhub.com/mc/arturozambrano/TwitterRoassalPlayGround/main';
package: 'Twitter­Connection';
load.


there are other packages but they are other parts of our twitter thing, I
think they are not useful for the community.

best regards





On Fri, May 23, 2014 at 3:45 PM, stepharo  wrote:

> Hello Arturo
>
> nice to see you more and more on this list :).
> Where is the code?
> So that we can advertize it
>
> Stef
>
>
> On 23/5/14 03:39, Arturo Zambrano wrote:
>
>> Hi All,
>>   you can now download some code for downloading tweets using REST and
>> Streaming Twitter APIs.
>>  It is far from complete but do the job we need for now.
>>
>>  Besides tweets downloading you can also:
>>  - get users information.
>>  - retrieve the profile picture of users.
>>  - ask for the relationship of the two users
>>
>> Please find attached some info regarding dependencies (no metacello
>> config for now), and manual login procedure for the first time you connect
>> to twitter.
>>
>>
>> We will work on tests, completion and more practical documentation soon.
>> At the same time, when the visualization part of our Twitter thing is
>> ready, we will communicate it.
>>
>> Thanks Rosario for her help, and Sven for advice on the streaming feature
>> of Zinc.
>>
>> regards
>> art
>>
>
>
>


Re: [Pharo-users] Downloading tweets

2014-05-23 Thread stepharo

Hello Arturo

nice to see you more and more on this list :).
Where is the code?
So that we can advertize it

Stef

On 23/5/14 03:39, Arturo Zambrano wrote:

Hi All,
  you can now download some code for downloading tweets using REST and 
Streaming Twitter APIs.

 It is far from complete but do the job we need for now.

 Besides tweets downloading you can also:
 - get users information.
 - retrieve the profile picture of users.
 - ask for the relationship of the two users

Please find attached some info regarding dependencies (no metacello 
config for now), and manual login procedure for the first time you 
connect to twitter.



We will work on tests, completion and more practical documentation 
soon. At the same time, when the visualization part of our Twitter 
thing is ready, we will communicate it.


Thanks Rosario for her help, and Sven for advice on the streaming 
feature of Zinc.


regards
art





[Pharo-users] storeOn:/readFrom: symmetrical?

2014-05-23 Thread Rick Kitts
Hi. A basic question I hope someone can answer. This works:

— cut here ---
| stream aInt |

stream := (String new:20) writeStream.
aInt := 23.
(aInt storeOn:stream) = (aInt class readFrom:(stream contents))

— cut here ---

This doesn’t (generates an error):

— cut here ---
| stream aTime |

stream := (String new:20) writeStream.
aTime := Time now.
(aTime storeOn:stream) = (aTime class readFrom:(stream contents))

— cut here ---

To the question then. Assuming the second case isn’t wrong in some fashion I 
don’t understand, is it the case that storeOn:/readFrom: is supposed to be 
symmetrical for all classes? I ask it that way because there are a couple of 
Kernel classes where I’ve seen this to not be the case.

TIA,
—Rick






Re: [Pharo-users] [ANN] Pharo VM packaging for Ubuntu

2014-05-23 Thread Ben Coman

Damien Cassou wrote:

Hi,

I'm happy to announce a brand new packaging of the Pharo VM. The
packaging works with all officially supported Ubuntu releases, both 32
and 64bits (see this list of Ubuntu support dates:
http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29#Releases).

I pushed these new packages to a different PPA so I can test without
impacting current users :
https://launchpad.net/~pharo/+archive/unstable/+packages

If you are using an old version of Ubuntu (e.g., Precise 12.04 or even
Lucid 10.04), you should try with this new PPA.

Please report problems by email to me directly.

An advantage of this new packaging is that it should become much
easier to create Ubuntu packages for your own Pharo projects. I will
talk about that later as I try these new packaging mechanism on the
Launcher, Pillar and Phratch projects.

  
Its great that you are pushing all these installation and launcher 
methods.  Thanks Damien.

cheers -ben




Re: [Pharo-users] deep into pharo(esug 2013) translate to korean draft version.

2014-05-23 Thread peter yoo
hm really? can then i want. but really ok?


[Pharo-users] [ANN] Pharo VM packaging for Ubuntu

2014-05-23 Thread Damien Cassou
Hi,

I'm happy to announce a brand new packaging of the Pharo VM. The
packaging works with all officially supported Ubuntu releases, both 32
and 64bits (see this list of Ubuntu support dates:
http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29#Releases).

I pushed these new packages to a different PPA so I can test without
impacting current users :
https://launchpad.net/~pharo/+archive/unstable/+packages

If you are using an old version of Ubuntu (e.g., Precise 12.04 or even
Lucid 10.04), you should try with this new PPA.

Please report problems by email to me directly.

An advantage of this new packaging is that it should become much
easier to create Ubuntu packages for your own Pharo projects. I will
talk about that later as I try these new packaging mechanism on the
Launcher, Pillar and Phratch projects.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [Pharo-users] Versionner: Specifying un-configured packages as dependencies

2014-05-23 Thread stepharo

+ 100
The reason is that any package* should be self described. Your 
configuration describes your project. If you use another piece of 
software, it should also be self-described.

Let's take the following example:

  * for now, it's easy for you to add a direct dependency
to Roassal2Spec, just as if it was a part of your project ... =>
no problem
  * ... but it is not. Maybe tomorrow, Alex will need to add a
dependency to one or more packages for Roassal2Spec => you will
have problems because you will not get these dependencies. Of
course, you can still add them to your configuration but you can
easily see that you will end with a configuration including all
flatten dependencies, and with a lot of dependencies not directly
related to your project (transitive dependencies). Flatten
dependencies is really something that we should avoid, else
maintenance of dependencies will be a hell.

That's why I'm really in favor of having configurations, even for one 
single MC package inside the configuration.


* I mean, not a Monticello package but a piece of software that you 
want to deliver independently. It may be a whole project or part of 
it. It may also refers to one or many Monticello packages




Re: [Pharo-users] 3D with Pharo and OpenGL ?

2014-05-23 Thread stepharo

Welcome Judith

Do not hesitate to ask more questions. I may visit brest 1-5 to June.

Guys we should really help judith because like that her boss can show 
how Pharo is cool

to his own boss :)

Judith you should look for a previous email of ronie (check the 
mailing-list archive)?

I cannot browse it right now (preparing emails in the train).

Stef


On 22/5/14 17:11, RIOU Judith wrote:


Hy,

I'm working at Thales for a year internship and I would like to do 
some OpenGL demos in smalltalk.  I'm searching a demo which shows the 
capacity to implement 3D drawing with Pharo. Does a demo already 
available on Pharo 3.0 ?


I aim to code my own demo and for example begin with a 3D drawing of 
the earth (earth texture and arcball camera).


Thanks.

Judith

[@@ THALES GROUP INTERNAL @@]





Re: [Pharo-users] deep into pharo(esug 2013) translate to korean draft version.

2014-05-23 Thread Damien Cassou
On Fri, May 23, 2014 at 7:09 AM, peter yoo  wrote:
> http://ta.onionmixer.net/wordpress/?attachment_id=265


do you want me to reference this url on the http://deepintopharo.com/
website now?

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [Pharo-users] 3D with Pharo and OpenGL ?

2014-05-23 Thread Jean Baptiste Arnaud
there are also my crappy tools that I develop to understand the wavefront 
format:

http://smalltalkhub.com/#!/~jeanbaptistearnaud/ObjModel/source
It is able to load .obj file generated from blender and integrate some material.

It is really raw but it is with this tool that I import the Xwing model and 
beginning to debug material.
http://jeanbaptiste-arnaud.eu/opengl/



On 22 May 2014, at 18:10, kilon alios  wrote:

> you can find plenty of code in Roassal3d that I think uses the NBOpenGL 
> library here
> 
> http://www.smalltalkhub.com/#!/~ronsaldo/roassal3d
> 
> NBOpenGL is basically a wrapper for OpenGL with Nativeboost. So if you are 
> familiar with OpenGL , C and Nativeboost you are good to go using Roassal3d 
> as an example to help you figure things out. 
> 
> I tried to make a set of tutorial but OpenGL proven very hard to tame. My 
> main problem with my previous iMac was that Apple did not give error 
> reporting for OpenGL which made it close to impossible to figure what went 
> wrong with my OpenGL code. I have not tried to see if the situation improved 
> with my new iMac that I purchased in the beginning of this year. 
> 
> Please note that previous iMac was 7 years old and still using Lion. 
> 
> Another tool that uses NBOpenGL is codecity. Bare in mind that OpenGL is pure 
> graphics operation for the GPU so it does not provide with file loaders etc 
> but I am sure using the tools I told you about you will fill in the gaps.
> 
> 
> On Thu, May 22, 2014 at 6:11 PM, RIOU Judith  
> wrote:
> Hy,
> 
>  
> 
> I’m working at Thales for a year internship and I would like to do some 
> OpenGL demos in smalltalk.  I’m searching a demo which shows the capacity to 
> implement 3D drawing with Pharo. Does a demo already available on Pharo 3.0 ?
> 
>  
> 
> I aim to code my own demo and for example begin with a 3D drawing of the 
> earth (earth texture and arcball camera).
> 
>  
> 
> Thanks.
> 
>  
> 
> Judith
> 
> [@@ THALES GROUP INTERNAL @@]
> 
>  
> 
> 

Best Regards
Jean Baptiste Arnaud
jbaptiste.arn...@gmail.com









Re: [Pharo-users] 3D with Pharo and OpenGL ?

2014-05-23 Thread Jean Baptiste Arnaud
There are also some basic examples in:
http://smalltalkhub.com/#!/~PharoExtras/NBOpenGL
NBOpenGL-Extra


On 22 May 2014, at 18:10, kilon alios  wrote:

> you can find plenty of code in Roassal3d that I think uses the NBOpenGL 
> library here
> 
> http://www.smalltalkhub.com/#!/~ronsaldo/roassal3d
> 
> NBOpenGL is basically a wrapper for OpenGL with Nativeboost. So if you are 
> familiar with OpenGL , C and Nativeboost you are good to go using Roassal3d 
> as an example to help you figure things out.
> 
> I tried to make a set of tutorial but OpenGL proven very hard to tame. My 
> main problem with my previous iMac was that Apple did not give error 
> reporting for OpenGL which made it close to impossible to figure what went 
> wrong with my OpenGL code. I have not tried to see if the situation improved 
> with my new iMac that I purchased in the beginning of this year.
> 
> Please note that previous iMac was 7 years old and still using Lion. 
> 
> Another tool that uses NBOpenGL is codecity. Bare in mind that OpenGL is pure 
> graphics operation for the GPU so it does not provide with file loaders etc 
> but I am sure using the tools I told you about you will fill in the gaps.
> 
> 
> On Thu, May 22, 2014 at 6:11 PM, RIOU Judith  
> wrote:
> Hy,
> 
>  
> 
> I’m working at Thales for a year internship and I would like to do some 
> OpenGL demos in smalltalk.  I’m searching a demo which shows the capacity to 
> implement 3D drawing with Pharo. Does a demo already available on Pharo 3.0 ?
> 
>  
> 
> I aim to code my own demo and for example begin with a 3D drawing of the 
> earth (earth texture and arcball camera).
> 
>  
> 
> Thanks.
> 
>  
> 
> Judith
> 
> [@@ THALES GROUP INTERNAL @@]
> 
>  
> 
> 



Best Regards
Jean Baptiste Arnaud
jbaptiste.arn...@gmail.com









Re: [Pharo-users] TWM keybindings

2014-05-23 Thread p...@highoctane.be
Same in Linux.

I'd like to have these keybindings working too!

Keybindings guru wanted!

Phil

On Fri, May 23, 2014 at 7:03 AM, Matthew Chadwick  wrote:

> hi, I installed version 3.0.1 of TWM for Pharo3, but the keybindings don't
> work in OSX - any idea what I need to do to make them work ? Cheers.
>
>