Re: [Pharo-users] Crash in Athens

2017-02-22 Thread Alexander Samoylovich
Hello.

I can reproduce the bug "semi-automatically". The tree classes I use to
crash are attached.
Run

AthensFlyingStickMorph new openInWorld

and wait. Sometimes it crashes immediately. Sometimes I have to wait a
couple of minutes.
If I done not resize the crash never or almost never happens.

Thank you,
Alex

On Wed, Feb 22, 2017 at 11:56 AM, Ronie Salgado  wrote:

> Hello,
>
> http://forum.world.st/Too-frequent-crashes-td4927143i20.html#a4934027
>
> Try changing AthensCairoSurface >> asForm into the following method:
>
> asForm
>
> "create a form and copy an image data there"
> | form |
> self checkSession.
>
> self flush.
> form := Form extent: (self width@self height) depth: 32.
> form unhibernate.
> LibC memCopy: self getDataPtr to: form bits size: self width*self
> height*4.
> ^ form
>
> This seems to improve the stability a lot. I have already told Esteban to
> take a better look.
>
> Best regards,
> Ronie
>
> 2017-02-22 13:47 GMT-03:00 Alexandre Bergel :
>
>> Dear Alexander,
>>
>> Sine the new FFI of Pharo, using Athens has become unreliable. This is a
>> pity, but fixing this is not trivial at all (we have been trying for years).
>>
>> What exactly are you doing with Athens?
>>
>> Alexandre
>>
>>
>> > On Feb 22, 2017, at 12:55 AM, Alexander Samoylovich <
>> samoylov...@gmail.com> wrote:
>> >
>> > Hello
>> >
>> > I am writing graphic demo programs using Athens on Mac Sierra.
>> > Time by time Pharo VM crashes. Programs not using Athens work reliably.
>> > I believe the behavior is reproducible.
>> > How should I report a bug?
>> >
>> > Alex
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>


AthensFlyingStick.st
Description: Binary data


AthensFlyingStickMorph.st
Description: Binary data


BezierLine.st
Description: Binary data


Re: [Pharo-users] Data Encryption

2017-02-22 Thread sergio ruiz
Hi, Alejandro..

yes, they are looking to encrypt the entire database.. you’re right, i think 
securing the OS and running over SSL is sufficient..

BUT..

i do appreciate you writeup on NaCl..

I am DEFINITELY using this on my next project..

Thanks!


On February 22, 2017 at 9:19:05 AM, Alexandre Bergel (alexandre.ber...@me.com) 
wrote:

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.

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] Voyage: Unique vs Multiple repo

2017-02-22 Thread Hilaire
Hi,

It looks like Voyage will duplicate in repo A the instance saved in repo
B in the first place. These two instances of an identical object will
have different ID.

The following script shows this behaviour:

| orga repo1 repo2|
repo1 := VOMongoRepository host: 'localhost' database: 'test1'.
repo2 := VOMongoRepository host: 'localhost' database: 'test2'.
orga := 'Pharo' -> 13.
repo1 save: orga.
repo2 save: ('Hilaire' -> orga).

repo2 selectAll: Association.

=> an OrderedCollection('Hilaire'->'Pharo'->13 'Pharo'->13)

How do you guys avoid such duplication of identical instances in two
different repo?

Let's say you want to have in one repository a collection of reference
data, but these data are used by other instanced saved in another repo.
Then from time to time this data may need to be edited, copy of these
data will then be obsolete.

Thanks

Hilaire


Le 20/02/2017 à 19:26, Hilaire a écrit :
> When using two repo A and B, is it ok to have instances saved in A with
> attributes saved in B?
> When fetching instances from A, will these instances get their
> attributes saved in B right?

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Data Encryption

2017-02-22 Thread sergio ruiz
OH! 

Sorry.. they don’t want to do the crypto stuff on our own..

just the CRUD stuff of managing the passwords..

but those were some really good links!


On February 22, 2017 at 9:19:05 AM, Alexandre Bergel (alexandre.ber...@me.com) 
wrote:

are they aware of Schneier's Law...
* https://www.schneier.com/blog/archives/2011/04/schneiers_law.html
* https://www.schneier.com/essays/archives/1999/03/cryptography_the_imp.html

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] Crash in Athens

2017-02-22 Thread Ronie Salgado
Hello,

http://forum.world.st/Too-frequent-crashes-td4927143i20.html#a4934027

Try changing AthensCairoSurface >> asForm into the following method:

asForm

"create a form and copy an image data there"
| form |
self checkSession.

self flush.
form := Form extent: (self width@self height) depth: 32.
form unhibernate.
LibC memCopy: self getDataPtr to: form bits size: self width*self
height*4.
^ form

This seems to improve the stability a lot. I have already told Esteban to
take a better look.

Best regards,
Ronie

2017-02-22 13:47 GMT-03:00 Alexandre Bergel :

> Dear Alexander,
>
> Sine the new FFI of Pharo, using Athens has become unreliable. This is a
> pity, but fixing this is not trivial at all (we have been trying for years).
>
> What exactly are you doing with Athens?
>
> Alexandre
>
>
> > On Feb 22, 2017, at 12:55 AM, Alexander Samoylovich <
> samoylov...@gmail.com> wrote:
> >
> > Hello
> >
> > I am writing graphic demo programs using Athens on Mac Sierra.
> > Time by time Pharo VM crashes. Programs not using Athens work reliably.
> > I believe the behavior is reproducible.
> > How should I report a bug?
> >
> > Alex
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>


Re: [Pharo-users] Crash in Athens

2017-02-22 Thread Alexandre Bergel
Dear Alexander,

Sine the new FFI of Pharo, using Athens has become unreliable. This is a pity, 
but fixing this is not trivial at all (we have been trying for years).

What exactly are you doing with Athens?

Alexandre


> On Feb 22, 2017, at 12:55 AM, Alexander Samoylovich  
> wrote:
> 
> Hello
> 
> I am writing graphic demo programs using Athens on Mac Sierra.
> Time by time Pharo VM crashes. Programs not using Athens work reliably.
> I believe the behavior is reproducible.
> How should I report a bug?
> 
> Alex

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] Strange behavior

2017-02-22 Thread Hernán Morales Durand
Mmmm not really... below two examples of widely used software with complete
search UI  and used by millions of people (not even developers). They are
TotalCommander and Notepad++, maybe we can learn something from them.

It's a matter of learning how to design a nice UI, not reducing the
features or inventing something completely new.

Cheers,

Hernán



2017-02-22 7:07 GMT-03:00 Ben Coman :

> Martin's idea of sorting exact matches to the top should satisfy this
> in practice,
> without needing another checkbox.  The less modes the better.
>
> cheers -ben
>
> On Wed, Feb 22, 2017 at 10:46 AM, Hernán Morales Durand
>  wrote:
> >
> > This is unfriendly. A Regex checkbox for the two people in the world who
> can
> > memorize regular expression patterns...
> >
> > Wouldn't be easier to add a "Exact match" check box?
> > There are also uppercase and lowercase issues there.
> >
> > Cheers,
> >
> > Hernán
> >
> >
> > 2017-02-19 12:37 GMT-03:00 Ben Coman :
> >>
> >> You might tick Regexp and search for... now$
> >> cheers -ben
> >>
> >> On Sun, Feb 19, 2017 at 7:24 PM, Sven Van Caekenberghe 
> >> wrote:
> >> > Because 'now' is a case insensitive substring of each of those
> selectors
> >> > (like ..known.. or ..nOwner.. , both seem quite common).
> >> >
> >> >> On 19 Feb 2017, at 12:20, Mark Neagu  wrote:
> >> >>
> >> >> Hi everybody,
> >> >>
> >> >> The Finder has answered my question but the proper answers were sort
> of
> >> >> hidden in a heap of apparently insignificant answers.
> >> >>
> >> >> I'm sure it's useful and I would like to understand how, if someone
> is
> >> >> gentle enough to tell me.
> >> >>
> >> >> Cheers,
> >> >> Mark
> >> >
> >> >
> >>
> >
>
>


Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Hilaire
Got it!

Hilaire

Le 22/02/2017 à 15:22, Esteban Lorenzano a écrit :
> I know, but I don’t know what it has or has not that version.

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano
I know, but I don’t know what it has or has not that version.

Esteban

> On 22 Feb 2017, at 15:15, Hilaire  wrote:
> 
> Here is the version I have, not sure it is the right way to get the
> version number:
> 
> ConfigurationOfVoyageMongo project currentVersion >=1.3.3
> [ConfigurationOfVoyageMongo]
> 
> Le 22/02/2017 à 15:02, Esteban Lorenzano a écrit :
>> and probably the version for Pharo 4 does not have the fix… I do not 
>> remember exactly where was the problem, let me review a bit...
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] Data Encryption

2017-02-22 Thread Alexandre Bergel
This is impressive Alejandro! Thanks for the explanation

Alexandre  

> Le 22 févr. 2017 à 01:17, Alejandro Infante  a 
> écrit :
> 
> 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] Voyage hang..

2017-02-22 Thread Hilaire
Here is the version I have, not sure it is the right way to get the
version number:

ConfigurationOfVoyageMongo project currentVersion >=1.3.3
[ConfigurationOfVoyageMongo]

Le 22/02/2017 à 15:02, Esteban Lorenzano a écrit :
> and probably the version for Pharo 4 does not have the fix… I do not remember 
> exactly where was the problem, let me review a bit...

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano
yep, that can be the problem: symbol/string incompatibilities

Esteban

> On 22 Feb 2017, at 15:05, Hilaire  wrote:
> 
> So far, I edited this method, adding a final string conversion:
> 
> voyageCollectionName
> "This method can be overridden with a more meaningful collection name"
> ^ (((self persistentClass name first: 3) allSatisfy: #isUppercase)
>   ifTrue: [ (self persistentClass name allButFirst: 2) ]
>   ifFalse: [ self persistentClass name ]) asString
> 
> 
> 
> Le 22/02/2017 à 15:02, Esteban Lorenzano a écrit :
>> yes, there was a bug around that, now I remember. 
>> and probably the version for Pharo 4 does not have the fix… I do not 
>> remember exactly where was the problem, let me review a bit...
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] UFFI and ByteArray

2017-02-22 Thread Raffaello Giulietti

Hi Esteban,

not sure I'm understanding your snippet correctly.

Below is my try. It throws a SubscriptOutOfBounds exception in the last 
line. The reason is that the implementation of ByteArray 
replaceFrom:to:with:startingAt: does not consider that ea is meant to be 
a pointer to a C byte array, not an object whose content is to be copied 
directly.



| ea ba |
ea := ExternalAddress gcallocate: 200.
ba := ByteArray new: 100.
ba replaceFrom: 1 to: 50 with: ea startingAt: 51.


Am I missing some point?




On 2017-02-21 17:20, Esteban Lorenzano wrote:

usually, something more or less like this:

sourceByteArrayOrExternalAddress := … some ...
destEnternalAddressOrByteArray
replaceFrom: 1
to: sourceByteArrayOrExternalAddress size
with: sourceByteArrayOrExternalAddress
startingAt: 1

and or course you can play with the starting points and sizes.

cheers,
Esteban



On 21 Feb 2017, at 17:13, Raffaello Giulietti  
wrote:

Hi,

I'm having a hard time finding documentation on how to copy a portion of a 
ByteArray to/from another portion of a heap allocated C byte array with UFFI.

My current reference is 
https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/book-result/UnifiedFFI/UnifiedFFI.pdf

Thanks for directing me at relevant docs or examples and sorry in advance if I 
missed some important point in the docs.

RG










Re: [Pharo-users] Data Encryption

2017-02-22 Thread Ben Coman
On Wed, Feb 22, 2017 at 9:21 PM, sergio ruiz  wrote:
>
> for whatever reason, they want something written from scratch.. in house..

are they aware of Schneier's Law...
* https://www.schneier.com/blog/archives/2011/04/schneiers_law.html
* https://www.schneier.com/essays/archives/1999/03/cryptography_the_imp.html

cheers -ben


Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano
yes, there was a bug around that, now I remember. 
and probably the version for Pharo 4 does not have the fix… I do not remember 
exactly where was the problem, let me review a bit...

Esteban

> On 22 Feb 2017, at 14:51, Hilaire  wrote:
> 
> I though String may be problematic, so I try with Association.
> The problem still occurs at,
>   self collectionAt: anObject class inDatabase: db
> 
> There I can see at least a command failed error.
> The collection can't be added.
> 
> In addCollection: aString capped: aCapped size: aSize max: aMax, the
> reply from DB is:
> 
> a Dictionary('code'->15888 'errmsg'->'exception: must pass name of
> collection to create' 'ok'->0.0 )
> 
> Le 22/02/2017 à 14:40, Esteban Lorenzano a écrit :
>> no, but String probably will be complicated to persist “as is” (is not 
>> directly mappeable to a JSON/BSON object). Better to test with another 
>> object (like your original post).
>> we need to see what is the error you’re getting… the loop seems to be 
>> happening in a resignalAs: so there is an error somewhere (not that is good 
>> it resignal it instead showing it, but let’s go in parts :P)
>> 
>> Esteban
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Hilaire
It looks like the collection name by default is a symbol, and Mongo does
not like it.


In my example aString = #Association
A asString conversion seems to please it.


addCollection: aString capped: aCapped size: aSize max: aMax
| command reply |
command := SmallDictionary new.
command at: 'create' put: aString asString.


Regarding default voyageCollectionName, it indeeds return a Symbol.

Association voyageCollectionName. => #Association


By an extraordinatry circumstance, when apply to my domain object, it
returns a string, therefore I did not notice the problem before:

CGOrganisation voyageCollectionName. => 'Organisations'

Not sure it is the exact cause of the problem.

Hilaire


-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Hilaire
I though String may be problematic, so I try with Association.
The problem still occurs at,
self collectionAt: anObject class inDatabase: db

There I can see at least a command failed error.
The collection can't be added.

In addCollection: aString capped: aCapped size: aSize max: aMax, the
reply from DB is:

a Dictionary('code'->15888 'errmsg'->'exception: must pass name of
collection to create' 'ok'->0.0 )

Le 22/02/2017 à 14:40, Esteban Lorenzano a écrit :
> no, but String probably will be complicated to persist “as is” (is not 
> directly mappeable to a JSON/BSON object). Better to test with another object 
> (like your original post).
> we need to see what is the error you’re getting… the loop seems to be 
> happening in a resignalAs: so there is an error somewhere (not that is good 
> it resignal it instead showing it, but let’s go in parts :P)
> 
> Esteban

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano


> On 22 Feb 2017, at 14:36, Hilaire  wrote:
> 
> Yes, I marked the class String as voyage root. Should it be ByteArray?

no, but String probably will be complicated to persist “as is” (is not directly 
mappeable to a JSON/BSON object). Better to test with another object (like your 
original post).
we need to see what is the error you’re getting… the loop seems to be happening 
in a resignalAs: so there is an error somewhere (not that is good it resignal 
it instead showing it, but let’s go in parts :P)

Esteban

> 
> Hilaire
> 
> Le 22/02/2017 à 14:30, Esteban Lorenzano a écrit :
>> did you marked the class as “voyage root”?
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Hilaire
Yes, I marked the class String as voyage root. Should it be ByteArray?

Hilaire

Le 22/02/2017 à 14:30, Esteban Lorenzano a écrit :
> did you marked the class as “voyage root”?

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano
did you marked the class as “voyage root”?

Esteban

> On 22 Feb 2017, at 14:18, Hilaire  wrote:
> 
> Le 22/02/2017 à 12:18, Esteban Lorenzano a écrit :
>> that’s not enough information… where it hangs? (when you get the debugger 
>> after cmd+.)?
> 
> It looks like Voyage is trapped in a loop.
> When I execute the following code in singleton it hangs as well:
> 
> | orga repo|
> repo := VOMongoRepository host: 'localhost' database: 'MaBase'.
> repo enableSingleton.
> orga := String fromString: 'Pharo'.
> orga save.
> 
> Then I can press atl+., I got the attached Pharo debug log.
> 
> At some point I used wrongly Voyage, from there I got problem.
> 
> Thanks
> 
> Hilaire
> 
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 




Re: [Pharo-users] Data Encryption

2017-02-22 Thread Pierce Ng
On Wed, Feb 22, 2017 at 01:17:35AM -0300, Alejandro Infante wrote:
>   salt := (Nacl randomBytes: 16)
>
> User>>setPassword: aPassword
>   hashedPassword := Nacl hash: (salt , aPassword asByteArray)

Hi Alejandro,

Coincidentally, I've just updated my SHA256/512 password hashing library, which
wraps a C library of the same. The salt is variable length between 8 and 16
octets long, and the output is in the informally standard md5crypt format
"$id$salt$passwordhash".

Words:
  http://www.samadhiweb.com/blog/2017.02.18.shacrypt.html
  http://www.samadhiweb.com/blog/2013.11.17.shacrypt.html
  https://www.akkadia.org/drepper/sha-crypt.html

Code:
  https://github.com/PierceNg/PasswordCrypt

Pierce



Re: [Pharo-users] Data Encryption

2017-02-22 Thread sergio ruiz
Gotcha! thanks!

for whatever reason, they want something written from scratch.. in house..

On February 21, 2017 at 11:15:55 PM, Alejandro Infante 
(alejandroinfant...@gmail.com) wrote:


Here is a collection for reference. If one of these is suitable you can skip 
the 
implementation and just deploy. 

http://opensourcepasswordmanager.com/ 

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] forcing window closing

2017-02-22 Thread Denis Kudriashov
Try open inspector on it (by halo menu alt+shift+click on Mac). And then
you can evaluate:

self delete.


or

World removeMorph: self


2017-02-22 14:12 GMT+01:00 Raffaello Giulietti <
raffaello.giulie...@lifeware.ch>:

> Hi,
>
> after 3 minutes working, I'm in a situation where a System Browser window
> cannot be closed. While the button is there, with tool tip and visual
> feedback, clicking it simply does nothing. Minimization and maximization
> still work.
>
> Is there a way to force a close?
>
>
>


Re: [Pharo-users] [Versionner] Including remote packages

2017-02-22 Thread sergio ruiz
Ah, yes..

actually, i am making something like: ConfigurationOfPrintBot

Where the package PrintBot lives on smalltalk hub.. 

what i really need to do is get Versionner to reference the REMOTE version of 
the package, and not the one i have loaded into my image. to solve this, i just 
edited the configuration by hand.. but i think i just need to reference it 
differently..

thanks!



On February 21, 2017 at 8:48:18 PM, Juraj Kubelka (juraj.kube...@icloud.com) 
wrote:

I recommend you to create two configurations. One for the remote repository, 
and one for your project.

What do you think?

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] forcing window closing

2017-02-22 Thread Raffaello Giulietti

Hi,

after 3 minutes working, I'm in a situation where a System Browser 
window cannot be closed. While the button is there, with tool tip and 
visual feedback, clicking it simply does nothing. Minimization and 
maximization still work.


Is there a way to force a close?




Re: [Pharo-users] Voyage hang..

2017-02-22 Thread Esteban Lorenzano
Hi Hilaire, 

that’s not enough information… where it hangs? (when you get the debugger after 
cmd+.)?

Esteban

> On 21 Feb 2017, at 21:52, Hilaire  wrote:
> 
> Hi,
> 
> Trying to play with multiple repo, it occurs Voyage hangs the image with
> the script bellow:
> 
> | orga repo1 repo2|
> repo1 := VOMongoRepository host: 'localhost' database: 'test1'.
> repo2 := VOMongoRepository host: 'localhost' database: 'test2'.
> orga := CGOrganisation new name: 'Pharo'; id: 0; yourself.
> repo1 save: orga.
> repo2 save: (CGUser new id: 0; name: 'Hilaire'; organisation: orga;
> yourself).
> repo1 reset.
> repo2 reset.
> repo1 := repo2 := nil.
> repo1 := VOMongoRepository host: 'localhost' database: 'test1'.
> (repo1 selectAll: CGOrganisation) inspect.  "<- HANG here"
> 
> 
> The initial save is properly done in the MongoDB, I can see its content
> from the Mongo shell.
> 
> 
> Looking at the Mong log, there are connexion in and out:
> 
> Tue Feb 21 21:44:39.016 [conn508568] end connection 127.0.0.1:34469 (20
> connections now open)
> Tue Feb 21 21:44:39.016 [initandlisten] connection accepted from
> 127.0.0.1:34470 #508569 (21 connections now open)
> Tue Feb 21 21:44:39.016 [conn508569] end connection 127.0.0.1:34470 (20
> connections now open)
> Tue Feb 21 21:44:39.017 [initandlisten] connection accepted from
> 127.0.0.1:34471 #508570 (21 connections now open)
> Tue Feb 21 21:44:39.017 [conn508570] end connection 127.0.0.1:34471 (20
> connections now open)
> Tue Feb 21 21:44:39.017 [initandlisten] connection accepted from
> 127.0.0.1:34472 #508571 (21 connections now open)
> Tue Feb 21 21:44:39.018 [conn508571] end connection 127.0.0.1:34472 (20
> connections now open)
> Tue Feb 21 21:44:39.018 [initandlisten] connection accepted from
> 127.0.0.1:34473 #508572 (21 connections now open)
> Tue Feb 21 21:44:39.018 [conn508572] end connection 127.0.0.1:34473 (20
> connections now open)
> Tue Feb 21 21:44:39.018 [initandlisten] connection accepted from
> 127.0.0.1:34474 #508573 (21 connections now open)
> Tue Feb 21 21:44:39.019 [conn508573] end connection 127.0.0.1:34474 (20
> connections now open)
> 
> 
> Luckily, I can get back image control with Alt+[.]
> 
> What's wrong?
> 
> Thanks
> 
> Hilaire
> 
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] Strange behavior

2017-02-22 Thread Ben Coman
Martin's idea of sorting exact matches to the top should satisfy this
in practice,
without needing another checkbox.  The less modes the better.

cheers -ben

On Wed, Feb 22, 2017 at 10:46 AM, Hernán Morales Durand
 wrote:
>
> This is unfriendly. A Regex checkbox for the two people in the world who can
> memorize regular expression patterns...
>
> Wouldn't be easier to add a "Exact match" check box?
> There are also uppercase and lowercase issues there.
>
> Cheers,
>
> Hernán
>
>
> 2017-02-19 12:37 GMT-03:00 Ben Coman :
>>
>> You might tick Regexp and search for... now$
>> cheers -ben
>>
>> On Sun, Feb 19, 2017 at 7:24 PM, Sven Van Caekenberghe 
>> wrote:
>> > Because 'now' is a case insensitive substring of each of those selectors
>> > (like ..known.. or ..nOwner.. , both seem quite common).
>> >
>> >> On 19 Feb 2017, at 12:20, Mark Neagu  wrote:
>> >>
>> >> Hi everybody,
>> >>
>> >> The Finder has answered my question but the proper answers were sort of
>> >> hidden in a heap of apparently insignificant answers.
>> >>
>> >> I'm sure it's useful and I would like to understand how, if someone is
>> >> gentle enough to tell me.
>> >>
>> >> Cheers,
>> >> Mark
>> >
>> >
>>
>



Re: [Pharo-users] Strange behavior

2017-02-22 Thread Mark Neagu

Hi Hernán,When I asked the question, I got anwers by Sven and Ben which were spot on and helped me. Now I acknowledge your proposal looks interesting if someone wants to develop it.Cheers,MarkLe 22 février 2017 à 03:46, Hernán Morales Durand  a écrit :This is unfriendly. A Regex checkbox for the two people in the world who can memorize regular _expression_ patterns...Wouldn't be easier to add a "Exact match" check box?There are also uppercase and lowercase issues there.Cheers,Hernán2017-02-19 12:37 GMT-03:00 Ben Coman :You might tick Regexp and search for... now$ cheers -ben On Sun, Feb 19, 2017 at 7:24 PM, Sven Van Caekenberghe  wrote: > Because 'now' is a case insensitive substring of each of those selectors (like ..known.. or ..nOwner.. , both seem quite common). > >> On 19 Feb 2017, at 12:20, Mark Neagu  wrote: >> >> Hi everybody, >> >> The Finder has answered my question but the proper answers were sort of hidden in a heap of apparently insignificant answers. >> >> I'm sure it's useful and I would like to understand how, if someone is gentle enough to tell me. >> >> Cheers, >> Mark > >