Re: [Pharo-users] Import a pharo 6 image in pharo 7

2019-10-19 Thread Alejandro Infante
I wouldn’t recommend Mongo for this use because it doesn’t automagically 
resolve cycles, so you would have to do a lot of work in order to serialize the 
data. I agree with the previous suggestions and use Fuel or STON.

Cheers,
Alejandro

> On Oct 19, 2019, at 4:16 PM, Oswall Verny Arguedas C.  
> wrote:
> 
> Thanks Sean and Sven
> 
> I'm going to investigate Ston and Fuel to do it.
> I also thought about passing the data to CouchDB (document database) and then 
> accessing from a clean Pharo 7 with Seaside and Bootstrap.
> How do you think the status of the drivers for Pharo for CouchDB is 
> currently. I used it for an application for production. Also Mongo but he 
> changed his license.
> Thanks in advance
> Oswall
> 
> El vie., 18 de oct. de 2019 a la(s) 12:07, Sean P. DeNigris 
> (s...@clipperadams.com ) escribió:
> Sven Van Caekenberghe-2 wrote
> > You could try to serialise/deserialise your data with... FUEL (binary).
> 
> If you use Fuel, this may help:
> https://github.com/seandenigris/pharo/wiki/Cookbook#fuel-migration 
> 
> 
> 
> 
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
> 
> 



Re: [Pharo-users] [Voyage] How to declare an instance variable as transient?

2018-05-03 Thread Alejandro Infante
Hi Sergio,

You have to add a method to the class side with a pragma. In my case, I wanted 
to set the instance variable “questionReferences” to transient.

myClass class>>mongoQuestionReferences


^VOTransientDescription new
attributeName: 'questionReferences';
yourself

Cheers!
Alejandro

> On Apr 30, 2018, at 3:21 PM, sergio ruiz  wrote:
> 
> Hi, all..
> 
> I have an instance variable that I don’t want to save as part of the full 
> project. I was wondering how to set this up.
> 
> The documentation says:
> Lastly, attributes can be excluded from storage (and hence retrieval) by re- 
> turning a VOMongoTransientDescription instance as the attribute descrip- tor.
> 
> But I am not sure how to set this up in my class.
> 
> thanks! 
> 
> 
> 
> peace,
> sergio
> photographer, journalist, visionary
> 
> Public Key: http://bit.ly/29z9fG0 
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com 
> http://www.twitter.com/sergio_101 
> http://www.facebook.com/sergio101 


Re: [Pharo-users] Question about GLORP class models

2018-03-29 Thread Alejandro Infante
Thanks!
I will try that.

Alejandro

> On Mar 29, 2018, at 2:47 PM, Esteban A. Maringolo <emaring...@gmail.com> 
> wrote:
> 
> This is a question best suited to the Glorp mailing list (which I'm
> cc'ing in this email).
> 
> What you need is an HorizontalTypeResolver, and define a common class
> as the ancestor for both of your classes.
> You'll have to define a descriptor for it, and you will use it to
> reference the "parent" of these (e.g. AbstractQuestion).
> 
> So in your Glorp Descriptor you'll end up with something like:
> 
> QuestionDescriptorSystem>>#typeResolverForAbstractQuestion
>  ^(HorizontalTypeResolver forRootClass: AbstractQuestion)
> 
> QuestionDescriptorSystem>>#descriptorForAbstractQuestion: aDescriptor
>  "..."
>   (self typeResolverFor: AbstractQuestion) register: aDescriptor
> abstract: true.
> 
> QuestionDescriptorSystem>>#descriptorForQuestion: aDescriptor
>  "..."
>  (self typeResolverFor: AbstractQuestion) register: aDescriptor.
> 
> 
> QuestionDescriptorSystem>>#descriptorForQuestionGroup: aDescriptor
>  "..."
>  (self typeResolverFor: AbstractQuestion) register: aDescriptor.
> 
> Then
> classModelForSection: aClassModel
>aClassModel newAttributeNamed: #questions collectionOf: 
> AbstractQuestion
> 
> I don't know about your model, but if both classes work
> polymorphically and have a common semantic root (it is "Question"), it
> is hard for me to see why they don't have a common ancestor.
> 
> Disclaimer: the above code was written without testing it, based on my
> memory only :)
> 
> Regards,
> 
> Esteban A. Maringolo
> 
> 
> 2018-03-29 11:43 GMT-03:00 Alejandro Infante <alejandroinfant...@gmail.com>:
>> Hi guys!
>> 
>> I’m trying to use GLORP and I’m having problems defining the class model for 
>> a class which has an instance variable which is a collection of instances of 
>> two different classes:
>> 
>> I have 3 classes named: { Section . Question . QuestionGroup } and I have 
>> problems for specifying the glorp class model for Section.
>> Object subclass: #Section
>>instanceVariableNames: ‘questions ...'
>>classVariableNames: ''
>> 
>> The thing is that #questions instance variable is a collection of Question 
>> AND QuestionGroup. They have polymorphic behavior, but they have not a 
>> common superclass (besides Object).
>> 
>> How does my class model should look like?
>> 
>> classModelForSection: aClassModel
>>...
>>aClassModel newAttributeNamed: #questions collectionOf: ?.
>> 
>> 
>> Thanks for the help!
>> Cheers,
>> Alejandro
> 




[Pharo-users] Question about GLORP class models

2018-03-29 Thread Alejandro Infante
Hi guys!

I’m trying to use GLORP and I’m having problems defining the class model for a 
class which has an instance variable which is a collection of instances of two 
different classes:

I have 3 classes named: { Section . Question . QuestionGroup } and I have 
problems for specifying the glorp class model for Section.
Object subclass: #Section
instanceVariableNames: ‘questions ...'
classVariableNames: ''

The thing is that #questions instance variable is a collection of Question AND 
QuestionGroup. They have polymorphic behavior, but they have not a common 
superclass (besides Object).

How does my class model should look like?

classModelForSection: aClassModel
...
aClassModel newAttributeNamed: #questions collectionOf: ?.


Thanks for the help!
Cheers,
Alejandro


[Pharo-users] Who is maintaining of Artefact?

2017-09-11 Thread Alejandro Infante
Hi!
I would like to explore having support for Unicode characters. I want to help 
for it.

Who is the right person to talk about it?

Cheers!
Alejandro


[Pharo-users] NaCl loading failing in Pharo5.0 stable

2017-06-07 Thread Alejandro Infante
Hi!
Loading NaCl from the catalog is failing because the ConfigurationOf attempts 
in the preLoad to download libsodium.dylib from an url that answers 404 error. 
The url is from dropbox. Who is responsible of that url? 

Cheers!
Alejandro


Re: [Pharo-users] pharocloud alternative

2017-05-30 Thread Alejandro Infante
I also host my application in Digital Ocean. It is cheap, but still is a pain 
the maintenance of the server. Any serious business-application should take 
care of user privileges, firewall directives, database configuration, database 
replication, backups, keep-alive of Pharo, etc…

This year I will port everything to AWS or Azure. I expect it to be easier to 
deploy there, but I’ll let you know about my experience when the time comes.

Cheers,
Alejandro

> On May 30, 2017, at 10:41 AM, Georges  wrote:
> 
> Hello jb,
> 
> I have the same problem, I am also running two pharocloud instances.
> Yesterday I created a droplet on digital ocean.
> I Installed a desktop environment and VNC on it and with an ftp client I
> uploaded my images.
> Now I can run multiple images and serve on different ports.
> 
> Georges
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/pharocloud-alternative-tp4948625p4948647.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] Data Encryption

2017-02-21 Thread Alejandro Infante
Hi!
If it help I’m using NaCl to do secure the passwords. You should not store the 
passwords of your users, not even encrypted.

For securing the passwords I use Sha-512 over the salted password.
 
User>>initialize
super initialize.
salt := (Nacl randomBytes: 16)

User>>setPassword: aPassword
hashedPassword := Nacl hash: (salt , aPassword asByteArray)

User>>validatePassword: aPassword
^ hashedPassword asByteArray = (Nacl hash: salt asByteArray , aPassword 
asByteArray)


Notice that:
1) I have a different salt for each password, if a bad guy want the 
passwords he is going to need a different rainbow table for each user.
2) I do not store the password. I do not even store the hash of the 
plain password.
3) Still I’m able to validate the password.

* Note that I’m using Nacl>>randomBytes: to generate a 
cryptographically safe random value. Here is not really necessary, BUT you 
should use it if you are creating Session-IDs or Tokens.

Encrypting the database is *tricky*. You not only have to encrypt the database, 
but also secure the key. First you need to know how much security you want:
1) Be secure if someone hack into the user running pharo.
3) Be secure if someone steal the server.
4) Be secure if someone has physical access to the running server. (All 
your keys are in RAM)
2) Be secure if someone hack root. (I doubt anything is going to save 
you here)

For most projects/business (unless working with really sensitive data, such as 
medical data) securing the OS (users and root) and encrypting the hard-disk 
should be enough. Also do not forget to encrypt the connections. If everything 
is on the same server just use https. But you may need more if you use Load 
Balancers, multiple servers and databases.

Cheers,
Alejandro

> On Feb 21, 2017, at 9:11 AM, Mariano Martinez Peck  
> wrote:
> 
> As for single username/pass encryption (not the whole DB), and assuming you 
> want two-way encrypt (that you want to decrypt), I have used both, Rijndael 
> and Blowfish, both in combination with SpsSplitPasswordStore.
> 
> Cheers,
> 
> On Tue, Feb 21, 2017 at 8:20 AM, Pierce Ng  > wrote:
> On Mon, Feb 20, 2017 at 05:34:41AM -0800, sergio ruiz wrote:
> > I have been tasked with throwing together a small web app that will hold
> > the passwords to different projects for my company.
> 
> Here is a collection for reference. If one of these is suitable you can skip 
> the
> implementation and just deploy.
> 
>   http://opensourcepasswordmanager.com/ 
> 
> 
> > - encrypt the entire database, so that if the machine was compromised
> > physically, the data would be useless.
> 
> The NativeBoost version of my SQLite library supports SQLcipher which adds
> transparent full database encryption to SQLite. It is not in the UFFI version
> yet though.
> 
>   http://sqlcipher.net 
> 
> > - encrypt the username and password fields to facilitate the above, also.
> 
> If you are already familiar with using crypto API like OpenSSL or NaCl then
> Pharo's FFI is easy to get this done too.
> 
> Pierce
> 
> 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com 



Re: [Pharo-users] Deployment pharo with multiple instances and voyage

2017-01-25 Thread Alejandro Infante
Cool! Thanks for the answers!

Norbert mentions something interesting about references. 
I have found that even though on each query mongo get the up-to-date version of 
the objects, it does not install the proxies to look for the up-to-date 
versions of the references of the queried object.

I made the following experiment:
Having two images 1 and 2 and two classes A and B, each of them having one 
instance variable.
—
Image 1 (Create two objects, “a” referencing “b”)
[ |a b|
a := A new.
b := B new
a setInstVar: b.
b setInstVar: ‘foo'.
b save.
a save.
]

Image 2 (Mutates the second object, but the first is not changed)
[
b := (repository selectAll: A) first instVar.
b setInstVar: ‘bar’.
b save.
]

Image 1 (Query the first object and access to the referenced object)
[
b := (repository selectAll: A) first instVar.
b instVar. “-> foo”
b := (repository selectAll: B) first.
b instVar. “-> bar"
]

This little experiment showed me that I cannot trust on the state of other 
objects that I have not explicitly queried for. 

Is there any way of solving this without creating new instances of voyage 
repositories for each request?

Thanks!
Alejandro

> On Jan 25, 2017, at 7:27 AM, Esteban Lorenzano <esteba...@gmail.com> wrote:
> 
>> 
>> On 25 Jan 2017, at 01:30, Alejandro Infante <alejandroinfant...@gmail.com> 
>> wrote:
>> 
>> Hi!
>> 
>> I’m close to deploy a web service using Pharo with Voyage and MongoDB. I 
>> have been playing with it and everything works ok with a single Pharo image.
>> 
>> Couple of days ago I started questioning myself about how voyage behaves 
>> when you have multiple pharo images using the same mongo database 
>> (horizontal scaling). I want to know how the cache of voyage behaves in a 
>> scenario with object updates.
>> 
>> Example: —— 
>> Imagine I have two images A and B.
>> 
>> - Image A query for object o and voyage put it in the cache.
>> - Image B query for object o and voyage put it in the cache.
>> - Image A updates object o and push it into the database calling #save.
>> - Image B query for object o that should be already in the cache.
>> 
>> In this case, does Image B see the changes performed by image A?
>> —— 
> 
> yes. 
> Voyage will always verify the version on the mongodb, no matter the cache, 
> because in fact, the cache of Voyage is meant just to keep object identity 
> (there has been discussions on if this is a real cache… I think it is, but 
> with a different purpose than usual). 
> Recently Martin enhanced that part by adding 
> VMMongoRepository>>saveEnsuringCurrent: protocol who will also check your 
> version is correct when writing (to avoid overwrite before update).  
> 
> So, this should be Ok :)
> 
> Esteban
> 
>> 
>> All ideas are welcome :)
>> 
>> Thanks and cheers!
>> Alejandro



[Pharo-users] Deployment pharo with multiple instances and voyage

2017-01-24 Thread Alejandro Infante
Hi!

I’m close to deploy a web service using Pharo with Voyage and MongoDB. I have 
been playing with it and everything works ok with a single Pharo image.

Couple of days ago I started questioning myself about how voyage behaves when 
you have multiple pharo images using the same mongo database (horizontal 
scaling). I want to know how the cache of voyage behaves in a scenario with 
object updates.

Example: —— 
Imagine I have two images A and B.

- Image A query for object o and voyage put it in the cache.
- Image B query for object o and voyage put it in the cache.
- Image A updates object o and push it into the database calling #save.
- Image B query for object o that should be already in the cache.

In this case, does Image B see the changes performed by image A?
—— 

All ideas are welcome :)

Thanks and cheers!
Alejandro


Re: [Pharo-users] [Esug-list] Any Pharo 5 in the industrial setup?

2016-11-29 Thread Alejandro Infante
Hi Yuriy,

I’m planning on porting my start-up app from Pharo4 to Pharo5 in mid-december. 
Maybe we could talk on January after I spend some time using it :).

Alejandro

> On Nov 29, 2016, at 7:45 AM, Yuriy Tymchuk  wrote:
> 
> Dear all,
> 
> my name is Yuriy Tymchuk, I am a researcher from Bern University and the 
> author of QualityAssistant and other quality-related tweaks and experiments 
> in Pharo.
> 
> I am interested to know is anybody uses Pharo 5 in industry as I've spent 
> plenty of time to develop QualityAssistant and I am interested to know if it 
> is useful in the industrial setup. So if you know any project please let me 
> know. If you are an industrial developer working on Pharo 5 I’m interested in 
> a short chat. If you don’t have a time for chat maybe you can spend a couple 
> of minutes on a small questioner because I really want to make QA useful for 
> developers.
> 
> Cheers.
> Yuriy
> ___
> Esug-list mailing list
> esug-l...@lists.esug.org
> http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org




Re: [Pharo-users] Roassal Performance Issues when applying layout

2015-12-07 Thread Alejandro Infante
Hi,
It is really difficult to help you just with a profile and without looking at 
your code.
Even though, I have noticed that most of the time is used on calculating 
properties related to CompositeShapes (like position and encompassing 
rectangle).

Would be possible for you to run the same code but replacing the CompositeShape 
by another less complex shape (like RTBox)?
If this new experiment is fast, then the problem would be those 2 properties 
(position and encompassing rectangle) are too expensive, and therefore we 
should think how to optimize that code.

I know that ForceLayout is not the fastest layout, but 59 seconds is too much 
for just 13 elements.

Cheers,
Alejandro

> On Dec 7, 2015, at 5:26 PM, Pablo Polanco  wrote:
> 
> Hello, we are Pablo Polanco and Jorge Ampuero and we are Computer Science 
> students at Universidad de Chile.
> 
> We are currently taking a course on Robotics Software Engineering dictated by 
> Johan Fabry.
> 
> We want to visualize a simple directed graph and we are experiencing 
> performance issues when layouting our visualization in Roassal.
> 
> We provide the report from the Time Profiler when we visualize 13 elements 
> and 38 edges: http://pastebin.com/zsh8YFPx 
> 
> Should it take so much time? How could we improve it? Is there another more 
> appropriate layout?
> 
> Thanks in advance :)
> 
> 
> ​



Re: [Pharo-users] Question about color

2015-09-28 Thread Alejandro Infante
As far as I remember, Color>>#r:g:b: expects 3 numbers between 0 and 1, instead 
of integers from 0 to 255.

Inspecting a color using the fractions proposed by Wolframalpha gives you the 
expected color:
Color
r: 0.06
g: 0.39
b: 0.39

Cheers,
Alejandro

> On Sep 28, 2015, at 11:07 PM, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> Hi,
> 
> At a local workshop we're working with the Pharo tutorial and we use the 
> classical example of RGB colors for keyword messages. When we use the Prof 
> Stef's example we get the following screenshot:
> 
> 
> 
> While executing the same color in Wolfram Alpha gives us:
> 
> 
> 
> As you can see, both colors are pretty different. Which is the reason behind 
> the differences in the color that is shown in Pharo and the one in WA?
> 
> Cheers,
> 
> Offray




Re: [Pharo-users] Coverage tools

2015-07-13 Thread Alejandro Infante
Hapao does work at method level, but without reflectivity going further to AST 
level is not possible.

Alexandre is going to show in ESUG an integration of Hapao reports with EclEmma 
plugin for Jenkins and also a Roassal visualization of the Hapao report in the 
browser to be attached in Jenkins build.

Cheers,
Alejandro
 On Jul 13, 2015, at 9:33 AM, Marcus Denker marcus.den...@inria.fr wrote:
 
 
 On 13 Jul 2015, at 14:06, Marcus Denker marcus.den...@inria.fr 
 mailto:marcus.den...@inria.fr wrote:
 
 
 On 13 Jul 2015, at 13:12, Torsten Bergmann asta...@gmx.de 
 mailto:asta...@gmx.de wrote:
 
 When in Java I use EclEmma - an eclipse plugin where
 once can see the coverage down to the code editor:
 http://www.eclemma.org/images/screen.png 
 http://www.eclemma.org/images/screen.png
 
 
 I know there is Hapao:  http://hapao.dcc.uchile.cl/
 but is there a Pharo coverage visualization down 
 to the method level as in EclEmma?
 
 
 The idea is that this will be easy with reflectivity… e.g. (green with some 
 tiny fixes to be committed):
 
 
 
 https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node 
 https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node
 
 Will be in the next update
 
   Marcus



Re: [Pharo-users] Customize serialization with Fuel

2015-05-07 Thread Alejandro Infante
Cool!

Thanks,
Alejandro

 On May 7, 2015, at 2:45 PM, Mariano Martinez Peck marianop...@gmail.com 
 wrote:
 
 
 
 On Thu, May 7, 2015 at 2:21 PM, Alejandro Infante 
 alejandroinfant...@gmail.com mailto:alejandroinfant...@gmail.com wrote:
 Hello all,
 
 Currently I’m in the need of serializing some Spy instances and my problem is 
 that some of the objects hold references to Classes and CompiledMethods. This 
 gives me headaches because I would like to materialize Spy in another image 
 which possibly does not define those classes and methods.
 
 Is there a smart way to specify which instances variables serialize and which 
 of them not?
 
 Yes. 
  
 Even better would be to specify that instead of serializing an instance 
 variable #a that I know that holds a CompiledMethod, serialize the ring 
 representation of the CompiledMethod.
 
 That is possible too.  But rather than explaining you, it is easier for you 
 to read the documentation: 
 
 http://rmod.inria.fr/web/software/Fuel/ 
 http://rmod.inria.fr/web/software/Fuel/
 
 Go to the Documentation area and there are 2 links of interest:
 
 http://rmod.inria.fr/web/software/Fuel/Version1.9/Documentation/CustomizingGraph
  
 http://rmod.inria.fr/web/software/Fuel/Version1.9/Documentation/CustomizingGraph
   
 http://rmod.inria.fr/web/software/Fuel/Version1.9/Documentation/Globals 
 http://rmod.inria.fr/web/software/Fuel/Version1.9/Documentation/Globals
 
 Let me know if that was enough to keep you going.
 
 Cheers,
 
 -- 
 Mariano
 http://marianopeck.wordpress.com http://marianopeck.wordpress.com/



[Pharo-users] Customize serialization with Fuel

2015-05-07 Thread Alejandro Infante
Hello all,

Currently I’m in the need of serializing some Spy instances and my problem is 
that some of the objects hold references to Classes and CompiledMethods. This 
gives me headaches because I would like to materialize Spy in another image 
which possibly does not define those classes and methods.

Is there a smart way to specify which instances variables serialize and which 
of them not? 
Even better would be to specify that instead of serializing an instance 
variable #a that I know that holds a CompiledMethod, serialize the ring 
representation of the CompiledMethod.

Thanks,
Alejandro


Re: [Pharo-users] How to silently generate and remove code

2015-03-27 Thread Alejandro Infante
Hi,
As far as I know the source code is not stored in the image, but in the changes 
file. So from that perspective the changes files is more than just logs, it 
actually store our code, so not recording that entry would be similar as having 
a method without the actual code.

Maybe a possible solution would be a way to clean the change file, but I have 
no idea if something like that exist.

Cheers,
Alejandro

 On Mar 27, 2015, at 5:15 PM, Johan Fabry jfa...@dcc.uchile.cl wrote:
 
 Hi all,
 
 for LRP I am auto generating classes and methods, and removing them when I no 
 longer need them. This however produces a lot of entries in the change file 
 that are not needed at all. So I am looking into generating and removing them 
 silently, however with not much success. Can anybody help me out in how to do 
 the following without having entries in the changes file?
 
 - add a class (The standard 
 subclass:instanceVariableNames:classVariableNames:category: message does not 
 seem to have a ‘silent’ equivalent)
 - remove a class ( aClass removeFromSystem: false.  still logs to changes, 
 apparently)
 - compile a method (aClass compileSilently: methodstring classified: 
 #generated. still logs to changes, apparently)
 - remove a method (removeSelector: does not seem to have a ‘silent’ option)
 - add / remove class variables (again, no ‘silent’ option)
 - run a RBCreateAccessorsForVariableRefactoring 
 
 Thanks in advance!
 
 --- Save our in-boxes! http://emailcharter.org ---
 
 Johan Fabry   -   http://pleiad.cl/~jfabry
 PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile
 
 




Re: [Pharo-users] How much users ?

2015-01-26 Thread Alejandro Infante
Is interesting that we have more people in Pharo-Dev than in Pharo-Users, I 
thought it was the other way.

Any reason for that?

Cheers,
Alejandro

 On Jan 26, 2015, at 2:43 PM, Marcus Denker marcus.den...@inria.fr wrote:
 
 
 On 26 Jan 2015, at 14:22, Pierre CHANSON chans.pie...@gmail.com wrote:
 
 Hi all,
 
 anyone know how much user Pharo count ?
 
 Unknown.
 
 And how much mailing lists user ?
 
 Pharo-Users: 452
 Pharo-Dev:514
 
 But then, not all the users are on the mailing lists… 
 
   Marcus




Re: [Pharo-users] How to encrypt a stream?

2014-06-08 Thread Alejandro Infante
Hi,

Have you seen the Cryptography package, you can get it by downloading Nacl from 
Configuration Browser. It implements RC4 which is a Stream Cipher, but seems 
that a little bit of work is needed in order to use it on a Stream since it 
receives a ByteArray.

Cheers,
Alejandro

On Jun 7, 2014, at 2:54 PM, Frank frank.martino...@gmail.com wrote:

 Hi folks,
 
 I need to encrypt a stream.
 
 I want to write a file like:
 StandardFileStream fileNamed: 'encryptedfile' do: [:str | str nextPutAll:
 'string to be encrypted'].
 
 of course the file is in plain text :-)
 
 It would be wonderful if I can write something like:
 EncrypedFileStream fileNamed: 'encryptedfile' do: [:str | str nextPutAll:
 'string to be encrypted'] using: 'AES' andPassword: '12345'
 
 Can you help me, please?
 
 Cheers
 Frank
 
 
 
 --
 View this message in context: 
 http://forum.world.st/How-to-encrypt-a-stream-tp4762022.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
 




Re: [Pharo-users] [gsoc-mentors] Re: GSoC: call for ideas

2014-02-14 Thread Alejandro Infante
Project idea

Name: Instance Derreferencer for Pharo
Skill level: Intermediate
Possible Mentors:
Name of the Student: Alejandro Infante

Description:
A problem with image based environment is, when you detect a memory leak is
removing those objects from the system. This tool would provide a handy UI
to inspect the current instances of the classes that we think they have a
memory leak and, in case there are objects that are not being garbage
collected, offer to the user a Derreference button. This is going to
iterate over all the objects that have a reference to my object and remove
that reference, finally enabling the Garbage Collector to get rid of the
leak.



2014-02-14 5:08 GMT-08:00 Nicolas Petton petton.nico...@gmail.com:


 Paolo Bonzini writes:

  Il 11/02/2014 10:42, Damien Cassou ha scritto:
  Hi fellow Pharo hackers,
 
  ESUG, the European Smalltalk User Group, is applying for this
  year's Google Summer of Code.  As you probably know, the Summer
  of Code provides the opportunity to fund students to work during
  the summer on Pharo.  Please reply to this
  email (be sure to use Reply to all) if you have ideas you
  would like to propose.
 
  Please include a summary of the project and links to web pages
  that can help prospective students to write their application.
  Please also include the following information:
 
  - if applicable, other dialects that you would be willing to
mentor this project for
 
  - the skill level
 
  - name of the mentor(s), email addresses, and possibly any IRC
network/channel/nickname where they can be found.
 
  Thanks for contributing to ESUG's Summer of Code application!
 
 
  Just a note that I haven't yet processed this thread, but our ideas page
  is already looking pretty well (and Pharo section is big) so I'll
  probably do it in the weekend or next Monday.

 I can do it if you want.

 Cheers,
 Nico




Re: [Pharo-users] Instance-specific behavior

2014-02-04 Thread Alejandro Infante
Proxy maybe? I remember an example in Pharo by Example Book chapter 13 or
14.

So the main idea would be:
Create MyProxy, subclass of ProtoObject and with an instance variable.

MyProxyinitialize
  morph := self.

Override doesNotUnderstand to dispatch the message to the other object.
Also implement your custom behavior in the MyProxy.

Then use #become: to install the proxy. (The one that swaps all the
references)

Cheers,
Alejandro



2014-02-04 Sean P. DeNigris s...@clipperadams.com:

 What would be the best way (as an experiment) to change the behavior of
 just
 one instance. For example, say:
   SpecialMorph#color
 ^ Color blue.
 but (the effect of)
   aSpecialMorph#color
 ^ owner color.



 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/Instance-specific-behavior-tp4741502.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




Re: [Pharo-users] Roassal visualizations

2014-01-10 Thread Alejandro Infante
The first thing you should do when you install Roassal is to run the Eassel
World MenuToolsRoassal Easel
And then select the examples, there are lots of examples and all of them
includes the code needed to create the visualization. Also there are a
really cool examples in the facebook page of Object Profile, but I can't
give you the link since in my network is blocked =(.
For more documentation you can see the Roassal and the Mondrian chapters at
the Deep into Pharo Book
http://www.pharo-project.org/documentation/tutorials-books.

Cheers,
Alejandro


2014/1/10 Rosario Santa Marina rosariosantamari...@gmail.com

 Hi,

 I'm trying to develop some Twitter data visualizations using Roassal. I
 want to know if there are a complete list of builders and visualizations
 that are already implemented which i could use.

 Thanks,
 Rosario



[Pharo-users] Garbage collector Memory Profiling

2013-07-30 Thread Alejandro Infante
Hello,
We are currently working on memory profiling and we are having troubles to
detect when an object is garbage collected.

Any ideas?

Thanks for the help,
Alejandro Infante