Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Stéphane Ducasse
On Dec 8, 2011, at 11:49 AM, Norbert Hartl wrote: Trying to recover the image was not important for me but for pharo. I just liked to participate in solving a problem that is hard to debug. Thanks! Stef

[Pharo-project] Sprint friday 16 @ lille

2011-12-09 Thread Stéphane Ducasse
Hi guys I'm not sure that my message passed in the mailing-list. We will organize a sprint new friday and everybody is welcome. Just let us know so that we prepare the rooms. Stef

Re: [Pharo-project] A possible bug in GZip streams

2011-12-09 Thread Stéphane Ducasse
Tx! On Dec 8, 2011, at 8:38 PM, Martin Dias wrote: On Thu, Dec 8, 2011 at 2:50 PM, Sven Van Caekenberghe s...@beta9.be wrote: On 08 Dec 2011, at 18:43, Martin Dias wrote: I think the problem is that this method supposes n = 1: Yeah, that is why I propose a guard, maybe in this

Re: [Pharo-project] Help: Zodiac secure server.

2011-12-09 Thread Sven Van Caekenberghe
Hi Prasad, On 08 Dec 2011, at 18:09, Prasad Khurd wrote: Hello Sven, I am trying to write a zodiac secure server. I was able to successfully make a server copying most of the server part from Zinc Http server. Then, I tried replacing the SocketStream with your ZnSecureSocketStream

[Pharo-project] NBOpenGL

2011-12-09 Thread Fernando Olivero
Hi Igor, i have a question regarding the design of NBOpenGL. Why does the following offscreen method, deals with windows? NBOffscreenDisplay createOpenGLContext ctx := NBHostWindowContext createSpecificForPlatform. ctx createWindow: extent. ctx createContext: ctx

Re: [Pharo-project] NBOpenGL

2011-12-09 Thread Fernando Olivero
the formatting of the uml is wrong! On Fri, Dec 9, 2011 at 10:46 AM, fernando.oliv...@usi.ch fernando.oliv...@usi.ch wrote: Hi Igor, i have a question regarding the design of NBOpenGL. Why does the following offscreen method, deals with windows? NBOffscreenDisplay createOpenGLContext        

[Pharo-project] NativeBoost and C++ libraries

2011-12-09 Thread Pavel Krivanek
Hi Igor, do you have some experiences with NativeBoost bindings to C++ libraries (with classes)? I have seen that Ruby has some interface generators for that purpose (Rice, rb++). Cheers, -- Pavel

Re: [Pharo-project] NBOpenGL

2011-12-09 Thread Henrik Sperre Johansen
On 09.12.2011 10:56, Fernando Olivero wrote: the formatting of the uml is wrong! On Fri, Dec 9, 2011 at 10:46 AM, fernando.oliv...@usi.ch fernando.oliv...@usi.ch wrote: Hi Igor, i have a question regarding the design of NBOpenGL. Why does the following offscreen method, deals with windows?

Re: [Pharo-project] NBOpenGL

2011-12-09 Thread Henrik Sperre Johansen
On 09.12.2011 11:27, Henrik Sperre Johansen wrote: That's not specific to offscreen rendering contexts though, (nor pixelformats, another windows artifact) I should perhaps say; they're not Windows specific as such, but the implementation in NBOpenGL is. Personally, I'd rather have

[Pharo-project] NBOpenGL

2011-12-09 Thread Igor Stasenko
(resending message due to mailer problem) Since it works now only for Windows,  i didn't thought a lot about platform-neutral stuff. Creating and initializing an opengl context is platform-specific, and it is hard to tell what you may need to create it. Regarding opengl on mac: - i just uploaded

Re: [Pharo-project] NativeBoost and C++ libraries

2011-12-09 Thread Igor Stasenko
On 9 December 2011 11:10, Pavel Krivanek pavel.kriva...@gmail.com wrote: Hi Igor, do you have some experiences with NativeBoost bindings to C++ libraries (with classes)? I have seen that Ruby has some interface generators for that purpose (Rice, rb++). No. In C++ things are different

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Thanks a lot, Sean! It works just great with BDDExtensions and Keymapping-Shortcuts. Cheers, Doru On Thu, Dec 8, 2011 at 3:35 PM, Sean P. DeNigris s...@clipperadams.com wrote: Tudor Girba-2 wrote Would it be possible to simulate keys with modifiers without Keymapping present? I think I

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Btw, I think these should get in the Pharo distribution because they are just too valuable. Doru On Fri, Dec 9, 2011 at 4:07 PM, Tudor Girba tu...@tudorgirba.com wrote: Thanks a lot, Sean! It works just great with BDDExtensions and Keymapping-Shortcuts. Cheers, Doru On Thu, Dec 8, 2011

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Marcus Denker
On Dec 9, 2011, at 4:08 PM, Tudor Girba wrote: Btw, I think these should get in the Pharo distribution because they are just too valuable. Yes! Doru On Fri, Dec 9, 2011 at 4:07 PM, Tudor Girba tu...@tudorgirba.com wrote: Thanks a lot, Sean! It works just great with BDDExtensions

[Pharo-project] Exception Handling in the Moose Distribution Image

2011-12-09 Thread Mircea Filip Lungu
Hi guys, This is a bug report I got from one of my students and replicated by myself: In the Moose 4.6 image downloaded from moosetechnology.org, if I execute the following code | c | c := Collection new. c add: 1. the image seems to freeze, although what I would expect is that

Re: [Pharo-project] NBOpenGL

2011-12-09 Thread Fernando Olivero
Thanks Henrik for the info, now's its clear to me. Igor, excellent news! i was struggling with NativeBoost, almost have a working version of CGL, but i'm eager to see your implementation. Yes, CGL only provide either fullscreen of offscreen contexts. Cocoa (and Carbon) adds the windowing layer

[Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Stefan Marr
Hi all, Hi Lukas: Do you know if anyone ever implemented a rewriter for the RB AST that reduces the amount of temporary variables if possible? I have a naive rewriting step that creates too many temps, but some of them are not strictly necessary. However, currently, I run into 'Cannot compile

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Sean P. DeNigris
Norbert Hartl wrote Trying to recover the image was not important for me but for pharo. I just liked to participate in solving a problem that is hard to debug. Right on, Norbert!! Thank you for doing that. This already happened to me twice and it is a difficult and important problem for us.

Re: [Pharo-project] Sprint friday 16 @ lille

2011-12-09 Thread Sean P. DeNigris
Jealous!!! -- View this message in context: http://forum.world.st/Sprint-friday-16-lille-tp4175752p4177101.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Re: [Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Lukas Renggli
Hi Stefan, I think there is a lint rule that does that: TempNotRead ... I don't have an image at hand, but I can check tonight if you haven't found it until then. Lukas On 9 December 2011 16:29, Stefan Marr ph...@stefan-marr.de wrote: Hi all, Hi Lukas: Do you know if anyone ever implemented

[Pharo-project] Command Line AWS S3 Upload/Download Tool using Pharo Smalltalk

2011-12-09 Thread Sven Van Caekenberghe
Command Line AWS S3 Upload/Download Tool using Pharo Smalltalk This is a little story about a tool that I needed and that I finally implemented in Pharo Smalltalk. I think it is quite nice and elegant and might be useful to others too. Also, I think it is important to share little hacks like

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Schwab,Wilhelm K
I would be very curious about what happens if you replace the socket-related mutual exclusion semaphores with mutexes. Are you also using background image saves for persistence? From: pharo-project-boun...@lists.gforge.inria.fr

Re: [Pharo-project] Exception Handling in the Moose Distribution Image

2011-12-09 Thread Marcus Denker
On Dec 9, 2011, at 4:25 PM, Mircea Filip Lungu wrote: Hi guys, This is a bug report I got from one of my students and replicated by myself: In the Moose 4.6 image downloaded from moosetechnology.org, if I execute the following code | c | c := Collection new. c add: 1. the image

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Sean P. DeNigris
Tudor Girba-2 wrote Btw, I think these should get in the Pharo distribution because they are just too valuable. I will open an issue and submit a slice. Do you have any suggestions/requests while I'm there? I think the only basic thing missing is middle-click, which will be easy to add.

Re: [Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Stefan Marr
Hi Lukas: On 09 Dec 2011, at 16:54, Lukas Renggli wrote: Hi Stefan, I think there is a lint rule that does that: TempNotRead ... I don't have an image at hand, but I can check tonight if you haven't found it until then. Thanks, I checked the lint rules, but well, while there are some

Re: [Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Lukas Renggli
I basically want to be able to automatically reduce the number of temps for the following example to one: | t1 t2 | t1 := o1 foo. o2 bar: t1. o3 bar: t1. t2 := o1 foo. o2 bar: t2. o3 bar: t2. Of course it is slightly more complex than that, because the usage of the temps is not

Re: [Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Stefan Marr
Hi: On 09 Dec 2011, at 18:10, Lukas Renggli wrote: I basically want to be able to automatically reduce the number of temps for the following example to one: | t1 t2 | t1 := o1 foo. o2 bar: t1. o3 bar: t1. t2 := o1 foo. o2 bar: t2. o3 bar: t2. Of course it is slightly more

Re: [Pharo-project] RB AST Rewriter to eliminate/consoliate temporary variables?

2011-12-09 Thread Lukas Renggli
But in this simple example, I could remove t2 and use t1 instead. No, o1 foo, o2 bar: t1, o3 bar: t1 could have side-effects that influence what o1 foo returns. No tool on the world (without additional knowledge) can safely replace t2 with t1. It is about the slot, not about the value. This

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Tudor Girba
Hi, I think the best would be to add it externally from a configuration. So, I created one: Gofer new squeaksource: 'BDDExtensions'; package: 'ConfigurationOfBDDExtensions'; load. (Smalltalk at: #ConfigurationOfBDDExtensions) loadDevelopment At the moment it only has a

[Pharo-project] MenuMorph instances

2011-12-09 Thread Sean P. DeNigris
MenuMorph allInstances returns an array of 27 in my personal 1.3 image, and 5 in a fresh 1.3 rc. Are they cached? orphaned? -- View this message in context: http://forum.world.st/MenuMorph-instances-tp4178039p4178039.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Re: [Pharo-project] GUI Testing Library

2011-12-09 Thread Sean P. DeNigris
Sean P. DeNigris wrote I will open an issue Issue 5077: UI simulation from BDDExtensions project http://code.google.com/p/pharo/issues/detail?id=5077 -- View this message in context: http://forum.world.st/GUI-Testing-Library-tp4097866p4177726.html Sent from the Pharo Smalltalk mailing

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Henrik Sperre Johansen
On 09.12.2011 16:59, Schwab,Wilhelm K wrote: I would be very curious about what happens if you replace the socket-related mutual exclusion semaphores with mutexes. For the semaphore in question here, there is no recursion going on in any of the critical sections. So the answer to that would

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Schwab,Wilhelm K
Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I had a repeatable failure scenario, I would make the switch to a mutex just in case. If for no other reason, Semaphorecritical: makes assumptions about what is and is not

Re: [Pharo-project] Exception Handling in the Moose Distribution Image

2011-12-09 Thread Stéphane Ducasse
Yes it was the problem with the Stream basicNew. In 1.4 latest version it works. On Dec 9, 2011, at 4:24 PM, Mircea Filip Lungu wrote: Hi guys, This is a bug report I got from one of my students and replicated by myself: In the Moose 4.6 image downloaded from moosetechnology.org, if I

[Pharo-project] [COTDC] 94 - AnnouncementSet

2011-12-09 Thread sean
93 classes done 802 classes remaining Continuing in Announcements... Today: AnnouncementSet Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot

Re: [Pharo-project] MenuMorph instances

2011-12-09 Thread Stéphane Ducasse
MenuMorph allInstances returns an array of 27 in my personal 1.3 image, and 5 in a fresh 1.3 rc. Are they cached? orphaned? Not that I know. Stef

Re: [Pharo-project] [Pharo-users] [COTDC] 94 - AnnouncementSet

2011-12-09 Thread Stéphane Ducasse
I'm a group of announcements. I can be used to register action to a group of announcement instead of enumerating them one by one. On Dec 9, 2011, at 10:46 PM, s...@clipperadams.com wrote: 93 classes done 802 classes remaining Continuing in Announcements... Today: AnnouncementSet

[Pharo-project] SMTPClient uses local address

2011-12-09 Thread Sean P. DeNigris
SMTPClientinitiateSession ... self sendCommand: ... NetNameResolver localHostName. ... This results in the local address (e.g. 10.0.0.5) being used, which sometimes gets kicked back by the mail server with: 550-JunkMail rejected - ool-182daabe.dyn.optonline.net

Re: [Pharo-project] SMTPClient uses local address

2011-12-09 Thread Sean P. DeNigris
Issue 5078: SMTPClient (wrongly) uses local address http://code.google.com/p/pharo/issues/detail?id=5078 I have no idea how to fix it. I cheated in my image with (PipeableOSProcess waitForCommand: 'curl whatismyip.org') output to get it to work temporarily. -- View this message in context:

Re: [Pharo-project] [squeak-dev] Re: Prune stack serialization

2011-12-09 Thread Mariano Martinez Peck
Hi guys. When we implemented this possibility of pruning the closures when they were clean, one of our crazy tests started to fail. It is not that the test is very important, but I am interested in trying to understand why it fails. The test (simplied) is: | aSortedCollection materialized |

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Levente Uzonyi
On Fri, 9 Dec 2011, Schwab,Wilhelm K wrote: Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I had a repeatable failure scenario, I would make the switch to a mutex just in case. If for no other reason,

Re: [Pharo-project] [Pharo-users] [COTDC] 94 - AnnouncementSet

2011-12-09 Thread Igor Stasenko
which is pretty useless IMO. there is no any performance benefit for using groups over single ones. On 9 December 2011 23:54, Stéphane Ducasse stephane.duca...@inria.fr wrote: I'm a group of announcements. I can be used to register action to a group of announcement instead of enumerating them

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Mariano Martinez Peck
On Sat, Dec 10, 2011 at 12:09 AM, Levente Uzonyi le...@elte.hu wrote: On Fri, 9 Dec 2011, Schwab,Wilhelm K wrote: Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I had a repeatable failure scenario, I would make the

Re: [Pharo-project] [ANN] Magma 1.3

2011-12-09 Thread Mariano Martinez Peck
On Thu, Dec 8, 2011 at 11:08 PM, Chris Muller ma.chri...@gmail.com wrote: I am very pleased to announce the immediate availability of Magma 1.3. The following detail the major improvements to 1.3 over 1.2: Serializer Upgrade BlockClosures (Contexts and CompiledMethods too, of

Re: [Pharo-project] Command Line AWS S3 Upload/Download Tool using Pharo Smalltalk

2011-12-09 Thread Mariano Martinez Peck
Looks awesome. Thanks for sharing and congrats. On Fri, Dec 9, 2011 at 4:58 PM, Sven Van Caekenberghe s...@beta9.be wrote: Command Line AWS S3 Upload/Download Tool using Pharo Smalltalk This is a little story about a tool that I needed and that I finally implemented in Pharo Smalltalk. I

Re: [Pharo-project] GZipWriteStream crashing my VM when serializing ?

2011-12-09 Thread John McIntosh
Mmm I recall a problem from long ago where the buffer passed into the zip call was not big enough to store the results. If you pass in a small chunk of data, why the buffer to hold the results and the decode data is bigger than the buffer going in. So the two sizes, input and output are? On Fri,

Re: [Pharo-project] [Pharo-users] [COTDC] 94 - AnnouncementSet

2011-12-09 Thread Sean P. DeNigris
Igor Stasenko wrote which is pretty useless IMO. The collaborative book says: If you want to register the same action for multiple events, simply create an AnnouncementSet using a comma: Parentinitialize super initialize. self session announcer on: AddChild, RemoveChild do:

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Levente Uzonyi
On Sat, 10 Dec 2011, Mariano Martinez Peck wrote: On Sat, Dec 10, 2011 at 12:09 AM, Levente Uzonyi le...@elte.hu wrote: On Fri, 9 Dec 2011, Schwab,Wilhelm K wrote: Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I

[Pharo-project] Waiting for deferred UI messages

2011-12-09 Thread Sean P. DeNigris
testSimulateRightClick | workspace menu sem | workspace := Workspace open. [ morph := World submorphThat: [ :m | m model == workspace ] ifNone: [ nil ]. (Delay forMilliseconds: 100) wait. morph isNil ] whileTrue. WorldState addDeferredUIMessage: [

Re: [Pharo-project] Alien, ODBC, Cog and VM crash

2011-12-09 Thread Luc Fabresse
Hi Benoit, I am not sure that the squeaksource page is up to date. Try this: (ConfigurationOfAlien project version: 'default') load: {'All'. 'Win32'} Cheers, #Luc 2011/12/10 Benoit St-Jean bstj...@yahoo.com Hi everyone, I'm trying to load Alien in Pharo 1.3 OneClick and Pharo 1.4