Re: [Pharo-project] Trying to understand DateAndTime

2013-04-28 Thread Paul DeBruicker
Nicolas Cellier wrote
 What I find strange:
 - #hash uses the offset... Why ???

Maybe because of this:
http://forum.world.st/true-hash-tp4621497p4624623.html

which you fixed here:


See http://forum.world.st/true-hash-tp4621497p4624706.html





--
View this message in context: 
http://forum.world.st/Trying-to-understand-DateAndTime-tp4683997p4684123.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] [ANN] elasticsearch client

2013-04-24 Thread Paul DeBruicker
Hi -

Elasticsearch (http://www.elasticsearch.org/) claims to be a: flexible
and powerful open source, distributed real-time search and analytics
engine for the cloud

I put what I've made up here:

MCHttpRepository
location: 'http://ss3.gemstone.com/ss/Elasticsearch'
user: ''
password: ''


So far it allows you to create an index, add documents, get documents by
id, search using the URI Request api, and then delete the index. I made
it in Pharo 1.4.  I made an attempt to abstract out the HTTP client and
URL stuff so it could be used with Zinc or Webclient.  But right now it
only works with Zinc.  If someone wants it to run in Squeak sooner
rather than later let me know and I can either fix it and the config or
help you do it.



basic usage is like this:

index:= ESIndex createIndex: 'test-index'.

docContent := Dictionary new.
docContent at: 'message' put: 'this is the documents content'.
docContent at: 'creator' put: 'Mr T'.

document:=ESDocument withContent: docContent.
document addToIndex:index.

search:=ESURISearch index:index.
search queryString:'documents'; search.
search results explore.

ESIndex deleteIndex:'test-index'


I haven't begun implementing the QueryDSL but the ESSearch class does do
the required GET with a JSON body and does work.  Seems like it'd be
useful to have the QueryDSL but right now I don't need more than the URI
Request searching provides.  It also doesn't do any of the cluster
health/maintenance api yet




Re: [Pharo-project] Any wishes for Roassal?

2013-04-20 Thread Paul DeBruicker
I haven't looked in a while, this is probably possible, and a Fuel visualizer
thing rather than a Roassal thing but:

Is there a way to hide all the edges pointing to a node unless the node is
clicked, or has more fewer than X edges pointing to it, or ..?  I'm
using Chronos for some things and each Timepoint has a Calendar that it
references, but its the same Calendar so every Timepoint draws a line to the
Calendar, which can both slow down the drawing incredibly but also mask
useful information behind lines. 

Thanks for sharing Roassal



abergel wrote
 Hi!
 
 Roassal 2.0 is on the way. We would like to make sure everybody find this
 release attractive. 
 We are wondering whether you have some particular requirements you would
 like us to address or some bugs you would like to see fixed.
 
 Feel free to speak up!
 
 Cheers,
 Alexandre
 -- 
 _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
 Alexandre Bergel  http://www.bergel.eu
 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





--
View this message in context: 
http://forum.world.st/Any-wishes-for-Roassal-tp4682621p4682683.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] ParseTreeRewrite Limitations

2013-04-09 Thread Paul DeBruicker
Camillo Bruni-3 wrote
 Camille/o were trying to fix a bug in the CriticsRules and found a strange
 limitation of the ParseTreeRewriter
 
 Given:   Result:
 --   ---
 | a b |  | a b |
 self halt.
 self bar.self bar.
 
 However this is not possible to specify directly:
 
 RBParseTreeRewriter new
   replace: '`@object halt' with: ''.
 
 As the parsed ' ' string will result in a SequenceNode, thus forcing
 the original message node ('self halt') to be a sequence node.
 
 So instead of looking for 'self halt' it will look for 
   ||
   self halt.
 and thus it tries to explicitly match the temporary.
 
 The result is, that we cannot remove 'self halt' with a rewrite rule
 if the method/block contains temporaries :/.
 
 
 Has anybody encountered this, or knows how to directly replace a message
 node with an empty node?
 
 best cc

You have to edit the higher level node.   So find the node with the halt as
a child and do you edits there.  






--
View this message in context: 
http://forum.world.st/ParseTreeRewrite-Limitations-tp4680439p4680486.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Toothpick

2013-04-08 Thread Paul DeBruicker
philippeback wrote
 I've taken the Toothpick source (as mentioned in the Collaboractive book)
 and put the packages in Smalltalk Hub.
 
 There were some things with trimming blanks which I fixed.
 
 Now, some tests aren't right (but because they use dates from 2006 and we
 are in 2013)
 
 If someone could look in there, it would be nice.
 
 http://smalltalkhub.com/#!/~philippeback/Toothpick
 
 Phil


So just changing from 2006 to 2013 made the tests pass?


Thanks for moving the repo.  Did you edit the Squeaksource page to point at
it?






--
View this message in context: 
http://forum.world.st/Toothpick-tp4680310p4680345.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Gettext in Pharo2.0

2013-04-02 Thread Paul DeBruicker
Johan Brichau-2 wrote
 Hi,
 
 Loading Gettext into Pharo2.0 crashes badly (system locks up, eventually
 an emergency debugger appears).
 The reason is the class initialization of NaturalLanguageTranslator:
 
   Smalltalk addToStartUpList: NaturalLanguageTranslator after:
 FileDirectory.
 
 Because the class FileDirectory is no longer in that list, it crashes.
 So, my questions:
 
 - should it not produce a nicer debugger window? 
 - I can fix the load problem itself and also take a look to port this
 package to Pharo2.0 if it requires more than adapting the above. But I
 have no write access to the PharoNonCorePackages repository. Is there a
 new location? Or is there already a version for Pharo2.0 somewhere? Or
 should we move it out of that repository and give it it's own special
 place?
 
 cheers
 Johan

I think Gettext should be in its own place, and I don't think there is one
for it yet.  I think Gettext that worked in 1.3 also doesn't work in Pharo
1.4, which I could look at fixing.  Or if it does work in 1.4 let me know
how to load it. 

I made some slime rules for Seaside that run in Pharo 1.3 that automatically
find strings and adds the conversion stuff if those strings aren't in
methods that end in 'Id' or 'Css' or 'Class' (etc).  I'd publish them to a
Gettext repository if there was one.



--
View this message in context: 
http://forum.world.st/Gettext-in-Pharo2-0-tp4679315p4679321.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-27 Thread Paul DeBruicker
Stéphane Ducasse wrote
 Hi guys
 
 we would like to use seaside to validate the VM and also make sure that
 Seaside31. works perfectly in Pharo2.0.
 I saw that some of you have a working configuration. Where can we find it
 because we would like to publish it in the 
 MetaRepoForPharo20.
 
 Stef


3.1 is not released.  That being said see if this set of packages works for
you

http://dl.dropbox.com/u/4460862/seaside31Config.zip

but they are also not official versions of anything and the official ones
will likely be different.  they are just something I cobbled together that
seemed to work at the beginning of the month.






--
View this message in context: 
http://forum.world.st/Looking-for-a-Seaside-3-1-Configuration-for-Pharo-2-0-tp4678580p4678638.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VM Crashes

2013-03-08 Thread Paul DeBruicker
Camillo Bruni-3 wrote
 If it's too old, what do you do? you go and fetch a newer VM ;).
 So I would say the implied actions are ok, especially for newcomers, 
 but there should be more details indeed.

Since Zinc is now included could the warning instead be a choice dialog that
lets the user download either an appropriate VM for the image or an
altogether more-up-to-date image+vm combo rather than just leaving the user
to figure out how and where to find an appropriate VM?






--
View this message in context: 
http://forum.world.st/VM-Crashes-tp4675526p4675781.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VM Crashes

2013-03-08 Thread Paul DeBruicker
Does that happen when you use the VM from the top of the list here:

http://pharo.gforge.inria.fr/ci/vm/pharo/linux/

specifically:
http://pharo.gforge.inria.fr/ci/vm/pharo/linux/pharo-linux-stable.zip

?


I haven't had the problem since switching to it when loading the config of
Seaside 31 on Ubuntu 12.04






Sven Van Caekenberghe-2 wrote
 Thanks.
 
 But my 2nd and 3rd runs crashed, both at
 
 Smalltalk stack dump:
 0xbf9c4c18 M MethodDictionary(Object)becomeForward: 0x79299080: a(n)
 MethodDictionary
 0xbf9c4c44 M MethodDictionarygrow 0x79299080: a(n) MethodDictionary
 0xbf9c4c5c M MethodDictionary(HashedCollection)fullCheck 0x79299080: a(n)
 MethodDictionary
 0xbf9c4c78 M MethodDictionaryat:put: 0x79299080: a(n) MethodDictionary
 
 so it is still becomeForward: but while growing a MethodDictionary, which
 is a pretty basic operation I guess.
 
 On 08 Mar 2013, at 15:46, Esteban Lorenzano lt;

 estebanlm@

 gt; wrote:
 
 included :)
 
 On Mar 8, 2013, at 2:52 PM, Sven Van Caekenberghe lt;

 sven@

 gt; wrote:
 
 Hi Esteban,
 
 On 08 Mar 2013, at 12:44, Esteban Lorenzano lt;

 estebanlm@

 gt; wrote:
 
 Hi Sven,
 
 One of the problems we currently have is that all method installation
 execute a becomeForward:, which is of course not terrible cleaver... I
 tried using the squeak implementation of it and everything looks
 working (and it has a small optimization that can help).
 
 Can you trying the load by installing it?
 
 CompiledMethod#setSourcePointer: srcPointer
We can't change the trailer of existing method, since it could have a
 completely different format. Therefore we need to generate a copy
 with new trailer, containing a srcPointer, and then #become it.
| trailer copy start |

trailer := srcPointer = 0
ifTrue: [
catch the common case of setting the source pointer to 
 0 when
 already 0
self sourcePointer = 0 ifTrue: [ ^ self ].
 CompiledMethodTrailer empty ]
ifFalse: [
CompiledMethodTrailer new sourcePointer: srcPointer ].
copy := self copyWithTrailerBytes: trailer.
 
ar 3/31/2010: Be a bit more clever since #become: is slow.
If the old and the new trailer have the same size, just replace it.
(self trailer class == trailer class and:[ self size = copy size ])
ifTrue: [
start := self endPC + 1.
self replaceFrom: start to: self size with: copy 
 startingAt: start ]
ifFalse: [
self becomeForward: copy ].
 
^self will be copy if #become was needed
 
 this can help in the speed and also can help on the vm crash problem
 (even if it is a workaround)...
 
 Esteban 
 
 I used the following version
 
 CompiledMethod#setSourcePointer: srcPointer
 We can't change the trailer of existing method, since it could have
 completely different format.
 Therefore we need to generate a copy with new trailer, containing
 scrPointer, and then become it.
 
 | trailer copy |
 trailer := CompiledMethodTrailer new sourcePointer: srcPointer.
 copy := self copyWithTrailerBytes: trailer.
 If possible do a replace in place as an optimization
 (self trailer class == trailer class and: [ self size = copy size ])
 ifTrue: [ 
 | start |
 start := self endPC + 1.
 self replaceFrom: start to: self size with: copy 
 startingAt: start ]
 ifFalse: [ self becomeForward: copy ].
 ^ self
 
 And it worked fine. My build completed successfully (1 try only). 
 But it took about as long as before (10 minutes using a Cog based VM).
 
 Thanks again for the suggestion, I think we should incorporate that
 change, no ?
 
 The class test is ugly and most probably not necessary in the current
 image, I would say.
 
 Sven 
 
 On Mar 8, 2013, at 11:53 AM, Sven Van Caekenberghe lt;

 sven@

 gt; wrote:
 
 
 On 08 Mar 2013, at 11:16, Sven Van Caekenberghe lt;

 sven@

 gt; wrote:
 
 But I have said this before: the wall clock time of loading a lot of
 code is actually close to unacceptable - I don't think it is the
 download or the compilation, but more all the dynamic stuff that
 happens after that. There should be a way to not do all those updates
 for each method and move the updates to one big batch update after
 the load - if that is possible.
 
 To continue my rant (sorry ;-) about the problem with slow code
 loading.
 
 These are some benchmarks on the same machine:
 
 $ ./vm.sh experimental.image eval '[Smalltalk allClassesAndTraits do:
 #compileAll] timeToRun'
 106532
 
 $ ./stack/vm.sh experimental.image eval '[Smalltalk
 allClassesAndTraits do: #compileAll] timeToRun'
 221708
 
 So it takes like 3 minutes to recompile every method in the system. 
 
 How in the hell can it take 40 minutes to load some code (with all
 packages already present in the package-cache (but then again the
 

Re: [Pharo-project] [Seaside] ConfigurationOfSeaside for Pharo 2.0

2013-03-07 Thread Paul DeBruicker
stephane ducasse wrote
 If you need help to write a configuration of I can help.
 The problem is that I do not know all the fine grained dependencies.
 But I think that we can do it step by step.


I have one that's almost done for pharo2 and seaside 3.0.7 (the latest
release).  It can also load the unreleased Seaside3.1.  





--
View this message in context: 
http://forum.world.st/ConfigurationOfSeaside-for-Pharo-2-0-tp4673678p4675548.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VM Crashes

2013-03-07 Thread Paul DeBruicker
EstebanLM wrote
 Sven, I think you do not have the last one... it should say Jenkins build
 #14533 someplace there...
 That probably will not change anything, but I want to be sure :)
 
 Esteban


I'm having the same problem (intermittent crashes when loading code into
Pharo2 with #becomeForward:).  I'm loading Seaside3.1 using an image and VM
I downloaded today with this script:

curl http://pharo.gforge.inria.fr/ci/script/ciPharo20CogVM.sh | bash


I've attached the crash.dmp  crash.dmp
http://forum.world.st/file/n4675599/crash.dmp  

It seems to me that the script ciPharo20CogVM.sh may not be downloading the
VM you intend it to. Is that possible?  If I do 

./vm.sh -version I get: 

paul@paul-laptop:~/pharo/p2$ ./vm.sh -version
3.9-7 #1 Wed Dec 12 16:08:04 CET 2012 gcc 4.6.3
CoInterpreter VMMaker-oscog-EstebanLorenzano.166 uuid:
5773fcb9-2982-4507-8a9e-4308ec33731e Dec 12 2012
StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.166 uuid:
5773fcb9-2982-4507-8a9e-4308ec33731e Dec 12 2012
git://gitorious.org/cogvm/blessed.git Commit:
452863bdfba2ba0b188e7b172e9bc597a2caa928 Date: 2012-12-07 16:49:46 +0100 By:
Esteban Lorenzano esteba...@gmail.com Jenkins build #5922
Linux pharo-linux64 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /home/paul/pharo/p2/vm/ [default: /home/paul/pharo/p2/vm/]




If I change to the vm directory and get a directory listing I get:

paul@paul-laptop:~/pharo/p2/vm$ ls -latr
total 39316
-rw-r--r-- 1 paul paul 16235372 Oct 19  2009 PharoV10.sources
drwxrwxr-x 2 paul paul 4096 Sep 30 03:52 __MACOSX
-rwxrwxr-x 1 paul paul34420 Dec 12 07:07 libFT2Plugin.so
-rwxrwxr-x 1 paul paul34639 Dec 12 07:08 libSqueakFFIPrims.so
-rwxrwxr-x 1 paul paul71180 Dec 12 07:08 libB3DAcceleratorPlugin.so
-rwxrwxr-x 1 paul paul21929 Dec 12 07:08 libSqueakSSL.so
-rwxrwxr-x 1 paul paul12230 Dec 12 07:08 libInternetConfigPlugin.so
-rwxrwxr-x 1 paul paul14461 Dec 12 07:08 vm-display-null
-rwxrwxr-x 1 paul paul  1300278 Dec 12 07:08 CogVM
-rwxrwxr-x 1 paul paul 7773 Dec 12 07:08 vm-sound-null
-rwxrwxr-x 1 paul paul28640 Dec 12 07:08 vm-sound-ALSA
-rwxrwxr-x 1 paul paul   121415 Dec 12 07:08 vm-display-X11
-rw-r--r-- 1 paul paul 22239552 Mar  4 06:14 PharoV20.sources
drwxrwxr-x 3 paul paul 4096 Mar  7 06:58 .
drwxrwxr-x 4 paul paul 4096 Mar  7 11:00 ..


  
Where do I get the correct VM that should output the error messages Eliot
mentions below?


Thanks

Paul



--
View this message in context: 
http://forum.world.st/VM-Crashes-tp4675526p4675599.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VM Crashes

2013-03-07 Thread Paul DeBruicker
Sven Van Caekenberghe-2 wrote
 I am trying to isolate it, but it seems to occur only with larger code
 loads.
 Seaside would of course make an excellent example.
 
 Paul,
 
 Could we use your config using the modern pharo invocation, like
 
 ./vm.sh zinc config http://mc.stfx.eu/ZincHTTPComponents
 ConfigurationOfZincHTTPComponents --install=bleedingEdge --group=SSO
 
 ?

Dunno.  Looks reasonable.  I'll send you a zip of the mcz's offlist OK?





--
View this message in context: 
http://forum.world.st/VM-Crashes-tp4675526p4675605.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] Is ciPharo20CogVM.sh downloading a VM from December?

2013-03-07 Thread Paul DeBruicker
Hi -

I buried this question in another thread and have decided to make it its
own.


Today when I ran this :

curl http://pharo.gforge.inria.fr/ci/script/ciPharo20CogVM.sh | bash


I was left with a VM that claims this is true:

paul@paul-laptop:~/pharo/p2$ ./vm.sh -version
3.9-7 #1 Wed Dec 12 16:08:04 CET 2012 gcc 4.6.3
CoInterpreter VMMaker-oscog-EstebanLorenzano.166 uuid:
5773fcb9-2982-4507-8a9e-4308ec33731e Dec 12 2012
StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.166 uuid:
5773fcb9-2982-4507-8a9e-4308ec33731e Dec 12 2012
git://gitorious.org/cogvm/blessed.git Commit:
452863bdfba2ba0b188e7b172e9bc597a2caa928 Date: 2012-12-07 16:49:46 +0100
By: Esteban Lorenzano esteba...@gmail.com Jenkins build #5922
Linux pharo-linux64 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45
UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /home/paul/pharo/p2/vm/ [default: /home/paul/pharo/p2/vm/]



and also:

paul@paul-laptop:~/pharo/p2/vm$ ls -latr
total 39316
-rw-r--r-- 1 paul paul 16235372 Oct 19  2009 PharoV10.sources
drwxrwxr-x 2 paul paul 4096 Sep 30 03:52 __MACOSX
-rwxrwxr-x 1 paul paul34420 Dec 12 07:07 libFT2Plugin.so
-rwxrwxr-x 1 paul paul34639 Dec 12 07:08 libSqueakFFIPrims.so
-rwxrwxr-x 1 paul paul71180 Dec 12 07:08 libB3DAcceleratorPlugin.so
-rwxrwxr-x 1 paul paul21929 Dec 12 07:08 libSqueakSSL.so
-rwxrwxr-x 1 paul paul12230 Dec 12 07:08 libInternetConfigPlugin.so
-rwxrwxr-x 1 paul paul14461 Dec 12 07:08 vm-display-null
-rwxrwxr-x 1 paul paul  1300278 Dec 12 07:08 CogVM
-rwxrwxr-x 1 paul paul 7773 Dec 12 07:08 vm-sound-null
-rwxrwxr-x 1 paul paul28640 Dec 12 07:08 vm-sound-ALSA
-rwxrwxr-x 1 paul paul   121415 Dec 12 07:08 vm-display-X11
-rw-r--r-- 1 paul paul 22239552 Mar  4 06:14 PharoV20.sources
drwxrwxr-x 3 paul paul 4096 Mar  7 06:58 .
drwxrwxr-x 4 paul paul 4096 Mar  7 11:00 ..



Is that right and is that actually a VM with the latest updates?

Thanks

Paul



Re: [Pharo-project] VM Crashes

2013-03-07 Thread Paul DeBruicker
Sven Van Caekenberghe-2 wrote
 
 Dunno.  Looks reasonable.  I'll send you a zip of the mcz's offlist OK?
 
 I thought your config/code was public - no problem if that isn't so (yet).

Yeah it is.  Or could/will be.  I emailed them because I don't have commit
rights to the Seaside repos on squeaksource (have never asked for them), the
configs/packages havent been vetted by anyone yet,  and didn't want to send
a 300kb attachment to the whole list. 

As far as I know they work across all the platforms (ex gemstone), but I'm
going to put them through here: 

travisci.org/pdebruic/ConfigurationOfSeaside30 

before trying to get them adopted.


Anyways, good luck with the VM crashes



--
View this message in context: 
http://forum.world.st/VM-Crashes-tp4675526p4675622.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VM Crashes

2013-03-07 Thread Paul DeBruicker
Eliot Miranda-2 wrote
 I seem to be talking to thin air.  If you would use an up-to-date VM your
 crashes would disappear.  This bug was fixed this last week.  You are
 using
 a VM from December of last year.  Of course if you don't want to fix your
 bug lease continue to ignore anything I might have to say.
 
 
 -- 
 best,
 Eliot

Right.  Sorry.  I was unhelpfully pointing out that the scripts that load
the latest Pharo 2 images do not load a recent VM.  Finding and using the
latest VM does fix it for me.  I made a different question about that here: 

http://forum.world.st/Is-ciPharo20CogVM-sh-downloading-a-VM-from-December-td4675610.html

Whether that is desired or undesired I don't know but it seems
counter-intuitive that if you want the latest image you would also want an
outdated VM.  I think it is undesirable, but here we are.   I'm hopeful that
the scripts have recently changed to load older vms and its a bug that will
get fixed.

For others who read this new pharo team created VMs are here:
http://pharo.gforge.inria.fr/ci/vm/pharo/
and Eliots are here:
http://www.mirandabanda.org/files/Cog/VM/




--
View this message in context: 
http://forum.world.st/VM-Crashes-tp4675526p4675630.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] [update 2.0] #20587

2013-03-06 Thread Paul DeBruicker
EstebanLM wrote
 Issue 7654:   keybindings redirects command to alt in linux/win
   https://code.google.com/p/pharo/issues/detail?id=7654
   


Thanks!



--
View this message in context: 
http://forum.world.st/update-2-0-20587-tp4675087p4675221.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] [update 2.0] #20583

2013-03-04 Thread Paul DeBruicker
Camillo Bruni-3 wrote
 
 it is downloaded automatically with the zerconf scripts, otherwise here:
 
 http://files.pharo.org/image/PharoV20.sources
 http://files.pharo.org/image/PharoV20.sources.zip


Are the zeroconf scripts different than these: 

http://pharo.gforge.inria.fr/ci/script/ ?

If so where can I find the zeroconf scripts? 

If not which one of them gets the PharoV20 sources + VM + image?

Also the links in the readme.txt are out of date so copying, pasting then
running them gives an error in curl.  

I made an issue here: http://code.google.com/p/pharo/issues/detail?id=7640

Thanks



--
View this message in context: 
http://forum.world.st/update-2-0-20583-tp4673631p4673824.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Experience using multiple images as a distributed datastore?

2013-02-12 Thread Paul DeBruicker
You might look at 

http://openreplica.org/

if you haven't.  Its a python distributed object store that uses Paxos to
ensure enough identical copies are preserved across machines.  Instead of
passing objects the messages sent to objects are sent to enough machines so
that there is a quorum that have identical state.  If one machine does down
a replacement has the objects loaded via serialization. But most of the time
its just sending messages around.   Or something like that.  

Also probably need a faster GC.  This one sounds fast:
http://www.azulsystems.com/products/zing/c4-java-garbage-collector-wp
http://www.infoq.com/presentations/Java-GC-Azul-C4



--
View this message in context: 
http://forum.world.st/Experience-using-multiple-images-as-a-distributed-datastore-tp4669167p4669492.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] pharo-project.org down?

2013-01-28 Thread Paul DeBruicker
I can't access it.


http://downforeveryoneorjustme.com/www.pharo-project.org

says its down



Re: [Pharo-project] [GS/SS Beta] iCal port to Magritte3

2013-01-22 Thread Paul DeBruicker
Hi Yanni,

My mistake.  StafferDateAndTime class is my subclass of the Chronos
class Timepoint.  Those references can be replaced with 'self
dateAndTimeClass' sends.


I removed the offending references and put the corrected version and the
missing version if ICalChronos up on Squeaksource.   The
ConfigurationOfICal should work on both Pharo and Squeak.  I have not
tested it in Gemstone.  Or were you referring to a different
ConfigurationOf?


I have not done anything with iCalMagritte or Magritte3 so can't help
you there.

Let me know if it works for you now and  how else I can help

Thanks
Paul




On 01/22/2013 07:57 PM, Yanni Chiu wrote:
 Hmmm. It seems the ConfigurationOf is expecting GemStone and Squeak, not
 Pharo.
 
 Yikes, the differences in Date, Time, DateAndTime, timezones, etc.
 across dialects and versions is a *challenge*.
 
 I probably don't need Magritte3. I just want to create ical files.
 
 [Aside. I wish there were a mailing list for cross-platform packages]
 
 
 On 22/01/13 3:05 PM, Yanni Chiu wrote:
 I just started to look at ical on squeaksource, and am happy to find
 it's actively being worked on.

 Is anyone working on porting iCalMagritte to Magritte3?
 Should I do it, and call it iCalMagritte3? Then we'd have two dev
 streams to maintain.

 There are some minor problems with the code.

 - ICalChronos-PaulDeBruicker.5 is not in the repository (maybe lost to a
 squeaksource restart)
 - the test class StafferDateAndTime is not defined anywhere (maybe it's
 in the missing package)
 




Re: [Pharo-project] UI blocked

2013-01-08 Thread Paul DeBruicker
Nevin Pratt wrote
 
 For what it's worth, the UI blocking also happens occasionally (not very
 often, 
 but occasionally) with Squeak 3.8/Seaside 2.8. But it's easy to unblock.
 Just 
 run the screenshot app (within Seaside), then at the top there is a
 Suspend 
 UI Process link. Click it to suspend, then click it again to unsuspend.
 That 
 almost always unblocks the UI, although occasionally I have to suspend and 
 unsuspend a second time, not just once.
 
 But, because of the screenshot app is able to unblock it, the UI
 blocking 
 problem has never been more than a minor inconvenience.
 
 Nevin


This helped me out today.  And if you've disabled all of the development
tools you can get the screenshot app back by putting:

WAScreenshot initialize.



in a st file (e.g. startScreenshot.st)

then on the command line doing

squeak myFrozenImage.image startScreenshot.st

then going to 


http://127.0.0.1:8080/tools/screenshot



and clicking the stop/resume links.  



--
View this message in context: 
http://forum.world.st/UI-blocked-tp3930833p4662547.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] NativeBoost and Pharo Kernel

2012-12-11 Thread Paul DeBruicker
Igor Stasenko wrote
 I am not very good in metacello-fu to write a confing, which will
 select various set of stuff to load
 depending on image version.
 So, if someone can help, i would appreciate that.
 I can move those methods into NB-pharo-1.4 package..
 
 
 
 -- 
 Best regards,
 Igor Stasenko.


Where is the NB config kept?  I could take a look this weekend.



--
View this message in context: 
http://forum.world.st/NativeBoost-and-Pharo-Kernel-tp4658786p4658896.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Kind of Spreadsheet component for Seaside?

2012-12-10 Thread Paul DeBruicker
FDominicus wrote
 I'm just wondering does anyone have/know about a kind of spreadsheet 
 component/application for Seaside?
 
 Any hints are welcome
 
 Friedrich


There is a JQGrid  (http://www.trirand.com/jqgridwiki/doku.php) widget in
JQueryWidgetBox repo on Squeaksource but that is just handy for displaying
tabular info.  Nothing for entering formulas etc.



--
View this message in context: 
http://forum.world.st/Kind-of-Spreadsheet-component-for-Seaside-tp4658697p4658748.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] TimeProfiler and primitives

2012-11-10 Thread Paul DeBruicker
Do you have the same issue if you use the Qwaq profiler here:

Www.squeaksource.com/SystemProfilerPharo.html

? 



--
View this message in context: 
http://forum.world.st/TimeProfiler-and-primitives-tp4654714p4654715.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] [squeak-dev] Re: now that squeaksource is back...

2012-11-06 Thread Paul DeBruicker
Frank Shearar-3 wrote
 On 6 November 2012 16:55, Mariano Martinez Peck lt;

 marianopeck@

 gt; wrote:

 
  That's already there.
  Metacello can say: get this package from this list of possible
  repositories.
  Problem is that most of configurations are not aware of that.
 
  spec repositories: [
  spec repository: 'primary'.
  spec repository: 'secundary'.
  spec repository: 'etc...' ]

 That's not what I meant. I want the author to say this piece of
 software contains these parts, and these are the canonical locations,
 and the user should be able to completely override those locations.


 #repositoryOverrides:

 self whateverVersion repositoryOverrides: (self whateverRepo); load
 
 I have actually tried to do these things. repositoryOverrides: is
 _insufficient_. It doesn't protect you from a transitive dependency's
 repository not being available.
 
 frank

I created a solution that may do what you want on Pharo or be a start for
what you have in mind here:

http://code.google.com/p/metacello/issues/detail?id=182

The code in that changeset detects whether Squeaksource is down when loading
a project and then load it and its dependencies from the Chilean mirror if
Squeaksource is down.  It only replaces the squeaksource repos with chilean
repos during each run of the loading process rather than editing the
project's configs.  It does that for the project you want to load and all
its dependent projects and packages.  And their dependenices. 

It allowed me to load Seaside 3.0.7 into a fresh Pharo 1.4 image from Chile
when squeaksource was down yesterday.  

The issue I ran into on Squeak 4.3  is that the error
MCHttpRepository#allFileNames creates when it cannot access the repos on
Squeaksource stops the loading process.  



--
View this message in context: 
http://forum.world.st/now-that-squeaksource-is-back-tp4654045p4654207.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Squeaksource down, are people using something else?

2012-11-05 Thread Paul DeBruicker
http://dsal.cl/squeaksource/ is the address for the Chilean Squeaksource
mirror.  


It'd be nice to update every Metacello config that has a squeaksource
primary repository to point to the chilean mirror as a secondary source (or
github/smnalltalkhub/ss3 ...).  



--
View this message in context: 
http://forum.world.st/Squeaksource-down-are-people-using-something-else-tp4653990p4654012.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Squeaksource down, are people using something else?

2012-11-05 Thread Paul DeBruicker
This works but doesn't permanently change the repos in the configuration and
you have to have some way to load the configuration in the first place.  It
just adds more repos during the load process:


MetacelloRepositoriesSpecadd: aStringOrSpec
(aStringOrSpec isString and: [ '*squeaksource*' match: aStringOrSpec ])
ifTrue: [ 
(aStringOrSpec copy
replaceFrom: 8
to: 27
with: 'dsal.cl/squeaksource/'
startingAt: 1) addToMetacelloRepositories: self 
].
aStringOrSpec addToMetacelloRepositories: self

MetacelloRepositoriesSpecrepository:aStringOrSpec
   self add: aStringOrSpec


You should also change the networking timeout to something more tolerable
than 30 seconds.  e.g.

ZnNetworkingUtils defaultSocketStreamTimeout:3


And I've only tried it in Pharo 1.4 and only loaded Seaside3.0.7.  So ymmv.





Stéphane Ducasse wrote
 yes we should do that
 Do you have one example?
 So that I also add it to the metacello chapter?
 
 Stef
 
 On Nov 5, 2012, at 7:12 PM, Paul DeBruicker wrote:
 
 http://dsal.cl/squeaksource/ is the address for the Chilean Squeaksource
 mirror.  
 
 
 It'd be nice to update every Metacello config that has a squeaksource
 primary repository to point to the chilean mirror as a secondary source
 (or
 github/smnalltalkhub/ss3 ...).  





--
View this message in context: 
http://forum.world.st/Squeaksource-down-are-people-using-something-else-tp4653990p4654024.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Squeaksource down, are people using something else?

2012-11-05 Thread Paul DeBruicker
I need to proofread before sending. 


After making the two changes to MetacelloRepositoriesSpec you can just load
the Configurations in the normal way e.g.

ConfigurationOfSeaside30 load.

It takes longer because it checks squeaksource first, and waits on a
timeout.  If you know you don't want to access squeaksource at all change
the #add: method to:

MetacelloRepositoriesSpecadd: aStringOrSpec
(aStringOrSpec isString and: [ '*squeaksource*' match: aStringOrSpec ])
ifTrue: [ 
(aStringOrSpec copy
replaceFrom: 8
to: 27
with: 'dsal.cl/squeaksource/'
startingAt: 1) addToMetacelloRepositories: self 
]
ifFalse: [ aStringOrSpec addToMetacelloRepositories: self ].



Which should remove all the references to squeaksource for the configuration
and its dependencies which should make loading things go faster as its not
waiting on a timeout. .   




--
View this message in context: 
http://forum.world.st/Squeaksource-down-are-people-using-something-else-tp4653990p4654025.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] differently organized method categories in the Debugger dnu: create process

2012-11-01 Thread Paul DeBruicker

Hi-

When I create methods using the Debugger's 'Create' button I am never 
sure which categories are used in the class I'm adding the method to 
versus those in its super classes. In an effort to not have to think 
about that any more I've adapted the 
ClassDescription#allMethodCategoriesIntegratedThrough: to put the 
method categories that are used in the target class first, then those in 
the super classes after that.



I think this should work in Pharo and Squeak but I've only tested it in 
Pharo 1.4.  I've attached a changeset and also pasted the method below



Paul


allMethodCategoriesIntegratedThrough: mostGenericClass
	Answer a list of all the method categories of the receiver and all its 
superclasses, up through mostGenericClass


| otherClassCategories thisClassCategories combinedClassCategories |
otherClassCategories := OrderedCollection new.
self allSuperclasses
do: [ :aClass |
(aClass includesBehavior: mostGenericClass)
ifTrue: [ otherClassCategories addAll: aClass organization 
categories ] ].

otherClassCategories remove: 'no messages' asSymbol ifAbsent: [  ].
	thisClassCategories := self organization categories asSortedCollection: 
[ :a :b | a asLowercase  b asLowercase ].

^ Array
streamContents: [ :stream |
stream
nextPutAll: thisClassCategories;
nextPutAll:
		((otherClassCategories asSet removeAllSuchThat: [ :each | 
thisClassCategories includes: each ])


asSortedCollection: [ :a :b | a asLowercase  b asLowercase ]) ]
'From Pharo1.4 of 18 April 2012 [Latest update: #14457] on 1 November 2012 at 
1:29:30 pm'!

!ClassDescription methodsFor: 'accessing method dictionary' stamp: 
'PaulDeBruicker 11/1/2012 13:18'!
allMethodCategoriesIntegratedThrough: mostGenericClass
Answer a list of all the method categories of the receiver and all its 
superclasses, up through mostGenericClass

| otherClassCategories thisClassCategories combinedClassCategories |
otherClassCategories := OrderedCollection new.
self allSuperclasses
do: [ :aClass | 
(aClass includesBehavior: mostGenericClass)
ifTrue: [ otherClassCategories addAll: aClass 
organization categories ] ].
otherClassCategories remove: 'no messages' asSymbol ifAbsent: [  ].
thisClassCategories := self organization categories asSortedCollection: 
[ :a :b | a asLowercase  b asLowercase ].
^ Array
streamContents: [ :stream | 
stream
nextPutAll: thisClassCategories;
nextPutAll:
((otherClassCategories asSet 
removeAllSuchThat: [ :each | thisClassCategories includes: each ])

asSortedCollection: [ :a :b | a asLowercase  b asLowercase ]) ]! !


Re: [Pharo-project] Problem with Date comparing summer time CEST

2012-10-30 Thread Paul DeBruicker
Sabine Knöfel wrote
 I have an attribute date in a domain object. Last week, I created some
 objects with this attribute. Today I created objects again with the same
 date value in this attribute. When comparing the dates (=), the result is
 false. 
 
 Reason is, that in germany, we had a switch from Central European Summer
 Time (CEST) (Sommerzeit) to Daylight Saving Time (DST) this weekend.
 
 Date has an attribute start which has an instance of DateAndTime. This
 DateAndTime object has another value depending on the CEST/DST
 
 2012-10-02T00:00:00+
*
 01:00
*
  (DST)
 2012-10-02T00:00:00+
*
 02:00
*
  (CEST)
 
 When I create two Dates with same date, I expect that = evaluates to true,
 independent from the CEST/DST. But Date (Timespan) uses 
/
 = comparand
   ^ self class = comparand class 
   and: [ 
*
 self start = comparand start 
*
   and: [ self duration = comparand duration ]]
/
 
 
 What do you recommend? Create my own compare method? Did I miss something?


Localized dates and times are awful to mess with because the timing of the
daylight savings transitions are political and vary from place to place and
year to year.

This is good advice from Tom Rushworth on comparing dates:
http://forum.world.st/Should-Dates-be-Timezone-specific-tp3647678p3649107.html

Also on Squeaksource the TimeZoneDatabase and Chronos packages have
mechanisims for keeping up to date about when offsets should be changed in
the image.  

For me, my image's internal timezone is set to UTC. I use Chronos and store
everything as UTC, use UTC values for every calculation, then convert it
back to the local time only on display to a user.  



--
View this message in context: 
http://forum.world.st/Problem-with-Date-comparing-summer-time-CEST-tp4653354p4653383.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] zero conf build

2012-10-22 Thread Paul DeBruicker
Camillo Bruni-3 wrote
 curl http://pharo.gforge.inria.fr/ci/ciPharo20Cog.sh | sh


If on a system where bash is not the default shell (e.g. Ubuntu 12.04) that
line should be:

curl http://pharo.gforge.inria.fr/ci/ciPharo20Cog.sh | bash 




--
View this message in context: 
http://forum.world.st/zero-conf-build-tp4652566p4652567.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] zero conf build

2012-10-22 Thread Paul DeBruicker
Camillo Bruni-3 wrote
 the scripts starts with #!/bin/bash so IMO you're fine, no?
 well definitely won't harm to pass it on directly to bash ;)
 
 thanks


You'd think that were true and I did see that you had the #!/bin/bash  but
it still died when it hit the  '[[' on line 8.  Ubuntu uses dash as default
shell and dash doesn't have the '[[]]' compound conditional statements.   
It could be that I've done something stupid to my system to cause it to
break but maybe not. 



--
View this message in context: 
http://forum.world.st/zero-conf-build-tp4652566p4652570.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Advanced mocking or something like that

2012-09-07 Thread Paul DeBruicker
http://www.squeaksource.com/Mocketry.html  has a state specific dsl



--
View this message in context: 
http://forum.world.st/Advanced-mocking-or-something-like-that-tp4646454p4646617.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] [ANN] - statsd client

2012-09-06 Thread Paul DeBruicker

Hi -

I wanted to graph timing and event tallies that happen in my app without 
doing much log processing so I made a statsd client and put it here:


http://ss3.gemstone.com/ss/Statsd.html

It sends UDP datagrams to the statsd daemon.  I tested it in Squeak 
trunk  Pharo-1.4 (it should work in older versions) and expect to port 
it to Gemstone sometime soon.  It has no dependencies so could be useful 
for more than just Seaside stuff.


thanks

Paul



statsd: https://github.com/etsy/statsd
statsd is: A network daemon that runs on the Node.js platform and 
listens for statistics, like counters and timers, sent over UDP and 
sends aggregates to one or more pluggable backend services (e.g., 
Graphite).


graphite: http://graphite.wikidot.com/
Graphite is: Graphite is a highly scalable real-time graphing system. 
As a user, you write an application that collects numeric time-series 
data that you are interested in graphing, and send it to Graphite's 
processing backend, carbon, which stores the data in Graphite's 
specialized database. The data can then be visualized through graphite's 
web interfaces.








Re: [Pharo-project] I would really like to get a structured logging framework for Pharo

2012-05-17 Thread Paul DeBruicker

Stéphane Ducasse wrote
 
 On May 17, 2012, at 3:55 PM, Damien Cassou wrote:
 
 On Thu, May 17, 2012 at 3:43 PM, Stéphane Ducasse
 lt;stephane.ducasse@gt; wrote:
 So what are the candidates?
 Does anybody has experience with toothpick since it is MIT and even have
 a documentation (I will probably write  chapter on it to understand it).
 
 what do you mean by structured?
 
 not just a string but 
 an object
   who
   what 
   when
   so that we build interface and have better handling of logs.
 
 


Last week I made a JSON log formatter for Toothpick and also a Riak
interface for Toothpick to store the JSON in Riak.  I used JSON instead of
Fuel because Riak has built in searching/map+reduce but it can also store
binary objects.  





--
View this message in context: 
http://forum.world.st/I-would-really-like-to-get-a-structured-logging-framework-for-Pharo-tp4630648p4630664.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] DateAndTime hash was: Re: [squeak-dev] true hash

2012-05-10 Thread Paul DeBruicker
I made issue 5858:  https://code.google.com/p/pharo/issues/detail?id=5858

And Nicolas Cellier improved my suggestion as noted in the issue.  





Mariano Martinez Peck wrote
 
 On Thu, May 10, 2012 at 3:21 PM, Paul DeBruicker lt;pdebruic@gt; wrote:
 
 On 05/10/2012 04:21 AM, Nicolas Cellier wrote:

 Sure, I already changed various Numberhash and could as well change
 Point hash to follow recommendations from Andres valloud book hashing
 in smalltalk...

 Nicolas


 DateAndTime#hash could be changed to :

 hash
^ (jdn hashMultiply bitXor: seconds + offset asSeconds) bitXor:
 nanos

 which is 130x faster than whats currently in the image:

 hash
^ self asUTC ticks hash


 The collision rate on the proposed hash function is 0.04% ( 4 per 10,000
 )


 
 please, open an issue for pharo also ;)
 
 
 -- 
 Mariano
 http://marianopeck.wordpress.com
 


--
View this message in context: 
http://forum.world.st/Re-DateAndTime-hash-was-Re-squeak-dev-true-hash-tp4624106p4625468.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VNC for pharo 1.3 or 1.4

2012-04-27 Thread Paul DeBruicker

Yanni Chiu wrote
 
 On 26/04/12 10:45 PM, Paul DeBruicker wrote:
 You could also consider using 'xrpa' which is like screen but for X
 applications.  See Bernat Romagosa description here:

 http://www.asmalltalkbytheseaside.com/#remotedevelopmentonpharowithoutvnc
 
 In that article, the steps are:
 
 % xpra attach :5
 % DISPLAY=:5 ./pharo.sh
 
 which seems to imply that the 5-th DISPLAY port is occupied by the image.
 
 When I have several images running, using VNC, I can start/stop the VNC 
 display in each image (and specify the portno) using a Seaside interface.
 
 So, I only have to open one firewall port for the X Display port (I'm 
 probably doing something wrong here; maybe I should be using ssh), and I 
 can operate each image GUI as necessary, as long as I only operate on 
 one image at a time.
 
 Can a similar thing be done using xpra?
 

If you run them through ssh then you only need the ssh port (22) open.  

Multiple Pharo apps can run at the same time by starting xpra on multiple
displays then starting your Pharo instances on those displays e.g.:

xpra attach :5
DISPLAY=:5 ~/pharoApp1/pharo.sh 
xpra attach :6
DISPLAY=:6 ~/pharoApp2/pharo.sh 

Then they just run and you can attach to and detach from (from the same or
different clients)  them without affecting the Pharo process.  I don't think
you can put a currently running Pharo process inside the xpra process.  The
'DISPLAY=:5' bit just tells the X11 app you're starting which display to
use.  

https://help.ubuntu.com/community/Xpra


--
View this message in context: 
http://forum.world.st/VNC-for-pharo-1-3-or-1-4-tp4590152p4593664.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VNC for pharo 1.3 or 1.4

2012-04-26 Thread Paul DeBruicker
You could also consider using 'xrpa' which is like screen but for X
applications.  See Bernat Romagosa description here: 

http://www.asmalltalkbytheseaside.com/#remotedevelopmentonpharowithoutvnc



Hernan Wilkinson-3 wrote
 
 Thanks! works just fine!
 
 Hernan.
 
 On Thu, Apr 26, 2012 at 12:40 PM, Norbert Hartl lt;norbert@gt; wrote:
 

 Am 26.04.2012 um 17:21 schrieb Hernan Wilkinson:

  Hi
   does anybody ported the implementation of VNC to pharo 1.3 or 1.4?
   If so, could you share it? :-)
 
 I use it daily on pharo 1.3. I load it via metacello. My baseline entry
 looks like this

 project: 'RFB' with: [
spec
className: 'ConfigurationOfRFB';
file: 'ConfigurationOfRFB';
versionString: #'bleedingEdge';
repository: '
 http://www.squeaksource.com/MetacelloRepository' ];

 Norbert

 
 
 
 -- 
 *Hernán Wilkinson
 Agile Software Development, Teaching  Coaching*
 *Phone: +54 - 011 - 4311 - 8404**
 Mobile: +54 - 911 - 4470 - 7207
 email: hernan.wilkinson@
 site: http://www.10Pines.com lt;http://www.10pines.com/gt;*
 Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina
 


--
View this message in context: 
http://forum.world.st/VNC-for-pharo-1-3-or-1-4-tp4590152p4591622.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] VNC for pharo 1.3 or 1.4

2012-04-26 Thread Paul DeBruicker

Paul DeBruicker wrote
 
 You could also consider using 'xrpa' which is like screen but for X
 applications.  See Bernat Romagosa description here: 
 
 
 


Woops.  That should have been Xpra not Xrpa.  See:

http://xpra.org/

--
View this message in context: 
http://forum.world.st/VNC-for-pharo-1-3-or-1-4-tp4590152p4591638.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] MethodWrappers

2012-04-20 Thread Paul DeBruicker
If you were to integrate MethodWrappers into Pharo today would you still use
these packages:

Compiler-eem.214  Compiler-eem.215,
Kernel-619 to Kernel-eem.623

or use the latest from Squeak trunk?  

I'm also trying to build a DTrace enabled unix VM based on Adrian Lienhards
work here: http://www.adrian-lienhard.ch/blog?dialog=smalltak-meets-dtrace. 
Has anyone already made one for linux that I could just use?


Thanks



Eliot Miranda-2 wrote
 
 On Wed, Sep 21, 2011 at 3:48 AM, Torsten Bergmann lt;astares@gt; wrote:
 
 Hi Eliot,

 at [1] you mentioned a port of MethodWrappers to Squeak 4.2.
 Is there also a port for Pharo available or do you plan to
 port it?

 
 I was hoping someone with focus on Pharo would integrate the necessary
 compiler and kernel changes into Pharo.  The Squeak trunk packages are
 Compiler-eem.214  Compiler-eem.215, and Kernel-619 to Kernel-eem.623. 
 I've
 attached the diffs.  Notionally file in Compiler-213-214.st 
 Kernel-618-619.st, then file-in Compiler-214-215.st  Kernel-619-623.st.
  These are generally useful, a) restoring the ability to create subclasses
 of CompiledMethod, and b) fixing various subtle copying-related
 state-sharing bugs with AdditionalMethodState (the objects that add
 additional state to compiled methods, pragmas, properties and extra inst
 vars).
 
 The MethodWrappers4.2 package should then just load.  It serves as a model
 for adding inst vars to CompiledMethod.
 
 
 For those who dont know about MethodWrappers: look at [2]

 
 Indeed.  Yes, there's an alternative implementation above
 objects-as-methods, but that implementation is far from complete.  It
 would
 be good to see he same kind of completeness.  e.g. with MethodWrappers you
 can write
 
 | indent wrapper |
 indent := 0.
 wrapper := MwBlockMethodWrapper on: #benchFib inClass: Integer.
 wrapper
 beforeBlock: [:rcvr :args|
 Transcript crtab: indent; print: rcvr; space; nextPutAll: #benchFib;
 flush.
 indent := indent + 1];
 afterBlock: [:rcvr :args| indent := indent - 1].
 [wrapper install.
  7 benchFib] ensure: [wrapper uninstall]
 
 whereas there are few if any examples with the objects-as-methods AFAICS.
 

 Thanks
 Torsten


 [1]
 http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-September/161567.html
 [2] http://www.refactory.com/Software/MethodWrappers/
 --
 NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
 Jetzt informieren: http://www.gmx.net/de/go/freephone

 
 
 
 -- 
 best,
 Eliot
 


--
View this message in context: 
http://forum.world.st/MethodWrappers-tp3829576p4574768.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Unresponsive 1.4 image

2012-04-20 Thread Paul DeBruicker

Janko Mivšek wrote
 
 
 After Ctrl-C in command prompt there is no new PharoDebug.log.
 
 
 
 
Instead of Crtl-C do you get anything if you find the process and kill it
with:

kill -s SIGUSR1 pid

?
(assuming you're using Cog )

--
View this message in context: 
http://forum.world.st/Unresponsive-1-4-image-tp4574693p4575089.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] mocking

2012-03-11 Thread Paul DeBruicker

Does http://www.squeaksource.com/Mocketry.html meet your needs?




Re: [Pharo-project] pdf4smalltalk Re: pharo vision

2012-02-02 Thread Paul DeBruicker
Just wanted to make sure you guys were aware that Bob Nemec is making a
PDFReport package for VisualWorks that he 
intends to present at STIC and port to other smalltalks:

http://smalltalk-bob.blogspot.com/2012/01/pdf-report-and-law-of-demeter.html

So maybe there's an opportunity for collaboration.  



Ben Coman wrote
 
 It took some hunting but I finally found the source located here...
 http://pdf4smalltalk.origo.ethz.ch/wiki/store_access
 
 with MIT License specified here...
 http://pdf4smalltalk.origo.ethz.ch/
 
 That looks quite promising.
 
 cheers, Ben
 
 
 


--
View this message in context: 
http://forum.world.st/pharo-vision-tp4340345p4352946.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] cogwin/Croquet (Win7) + Moose + very large models = crash (out of Memory)

2012-01-25 Thread Paul DeBruicker

Hani Abdeen wrote
 
 Hello,
 
 I'm using cogwin/Croquet VM (last version
 http://www.mirandabanda.org/files/Cog/VM/VM.r2522/) on windows7,
 and today I had this probelm: when the size of the pharo image become so
 large the VM crashes with reason 'out of memory'.
 The same problem with previous versions of cogwin.
 Note that I use a PC with 8G of RAM, so it's really damage to have such a
 problem.
 
 Any idea about another VM working well on Windows and does not have such
 an
 issues?
 Any urgent solution?
 
 Thanks,
 Hani
 

From this thread:
http://forum.world.st/experience-with-large-images-td4101765.html

It seems that on windows the size of the image by default is limited to
500MB in RAM.  I don't know if you can change it or not.  Linux/Mac is
limited to 2GB.  Can you try your experiments on a Mac? 


--
View this message in context: 
http://forum.world.st/cogwin-Croquet-Win7-Moose-very-large-models-crash-out-of-Memory-tp4328688p4328761.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Cog+linux: external module not found

2012-01-06 Thread Paul DeBruicker

Schwab,Wilhelm K wrote
 
 Eliot,
 
 I'm getting the same error with your latest VM.  Any ideas?
 
 Bill
 
 
 

When I had trouble with this it was a 64bit vs 32bit library mismatch on a
64bit OS.  

Is it a 32 bit or 64 bit OS?  Is the library you're trying to reach 32bit? 
64bit libs won't work with the 32bit CogVM, but are installed by default by
the Ubuntu package manager on a 64bit Ubuntu. 

Ubuntu also moved some mandatory (from Cog's perspectvie) 32 bit libs from
their ia32-libs package to the ia32-libs-multiarch recently but I don't know
if that change affects Lucid.

--
View this message in context: 
http://forum.world.st/Cog-linux-external-module-not-found-tp4271136p4271354.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Anyone want more timezones in the base image?

2011-12-19 Thread Paul DeBruicker
Thanks for the feedback.  Comments below.


Sven Van Caekenberghe wrote
 
 
 I had a quick look at your code and it seems like a logical addition
 (given what TimeZone currently is and what you want to do: interpret tz
 abbreviations). I have 3 remarks/comments:
 
 - the list is currently a dynamic array that is recreated on every access,
 wouldn't a lazy initialized class variable be better ?
 

Yes of course I would love that but I don't know how to create a class
variable when just using extensions on a class.  Is there a way?  



 - one other goal of a list of timezones is to present them to the user to
 pick one; for that TimeZone as it stands now is insufficient (there is no
 country/city mapping, which is the most user friendly way to pick one,
 IMHO). it seems a bit wastefull to have such a list and not be able to
 support that goal as well.
 
I agree but that would entail mapping also when each timezone is in effect
in each locale during different times of the year. My  Something the Chronos
(http://www.chronos-st.org) package does and I think the TimeZoneDatabase
from Dave Lewis does.  My solution is definitely much simpler and less
useful.  



 - on Mac OS X and Linux, there is enough data in /usr/share/zoneinfo to
 dynamically load/parse from, if something equivalent existed on Windows,
 we could use that (and benefit from OS level updates to this DB); I know
 it is more work, I'm just thing out loud.
 

I'm glad you are thinking about it.  Dave Lewis's TimeZoneDatabase does
this, I think not on windows but I'm not positive.  .  It also seems to me
that adopting the TimeZoneDatabase is natural next step for the
TimeZone/Chronology package to go if there's reason to make Pharo better
able to handle cross-timezone issues.  But it would need to have a source
for Olson time zone data on Windows.  Dave has created a primitive
(primitiveUtcWithOffset) in the interpreterVM that would be good to port to
the CogVM.  Chronos is great and exact but also Big in the image.  






--
View this message in context: 
http://forum.world.st/Anyone-want-more-timezones-in-the-base-image-tp4206397p4215147.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] Anyone want more timezones in the base image?

2011-12-16 Thread Paul DeBruicker

Hi -

Because of how Internet Explorer reports javascript dates back to 
Seaside (as detected by Brian Murphy-Dye when using the FullCalendar 
jQuery plugin) I added the ability to determine the timezone based on 
the abbreviation IE reports.  I used the list here: 
https://en.wikipedia.org/wiki/Time_zone_abbreviations to create an 
expanded version of


TimeZone class#timeZones

which encompasses those shown in the list on wikipedia.  And added some 
convenience methods.


Its not as useful or sophisticated as David Lewis's TimeZone database or 
Chronos, but its more than what's in the image now.


If someone wants it I can make an issue and package my changes up for 
review.  Right now I'm just including them as extensions to the 
JQWidgetBox-JQFullCalendar-Core package.



Thanks for whatever guidance you care to provide.


Paul DeBruicker





Re: [Pharo-project] How to encrypt a password?

2011-10-24 Thread Paul DeBruicker

Hi Mariano,

I've made a FFI library on Squeaksource that works on Linux.

http://www.squeaksource.com/Cryptography/PasswordHashingFFI-PaulDeBruicker.8.mcz

You need to install the 32 bit versions of libcrypt and libxcrypt if 
you're using a 64 bit linux os.


Using crypt can hash passwords using MD5, DES, SHA256, SHA512.

Using libxcrypt can hash passwords using bcrypt.

If its for a new installation use bcrypt or SHA512 to hash the 
passwords. bcrypt is better because its slower, and allegedly future 
proof.



to get a hashed password use

BCryptLinuxFFI bcrypt:'mypassword'

to check it against a stored hash use:

BCryptLinuxFFI check:'mypassword' against: storedHash





Re: [Pharo-project] [GS/SS Beta] zinc incompatibilities with gemstone

2011-06-29 Thread Paul DeBruicker

On 06/29/2011 09:10 AM, Philippe Marschall wrote:

2011/6/28 Paul DeBruickerpdebr...@gmail.com:

...
symbol asSymbol


troll
Every time you do this you admit that dynamic typing is a failure and
suggested types don't work for large scale development.
/troll

Cheers
Philippe



Yeah. Its only from naïveté .  What do you recommend I do instead?

As Norbert mentioned in Pharo

#hi = 'hi'

evaluates to true but in Gemstone it evaluates to false.  My only ideas 
to address the issue you bring up is to:


1. get Sven to change his design/coding behavior which may impede the 
functional improvement of Zinc in a small way.

2. get Pharo to behave as the blue book says it should
3. get Gemstone to behave like Pharo does.
4. Put an asSymbol everywhere the problem pops up.
5. ???

I'm sure there are better ideas but that's all I can think of at the 
moment.


Also I do it twice in that method.  I'd really appreciate reading a 
guide or some guidelines on how to do cross platform development.  Or 
just code reviews like you've provided.


I also override things rather than subclass in the port, as a rule.  I 
think that's also offensive in some way but I'm not sure how/why.



Thanks for the heads up

Paul





Re: [Pharo-project] [GS/SS Beta] zinc incompatibilities with gemstone

2011-06-29 Thread Paul DeBruicker

On 06/29/2011 09:42 AM, Esteban Lorenzano wrote:

Hi,
I'm loading ConfigurationOfZincHTTPComponents from MetacelloRepository, and I'm 
loading #bleedingEdge version of zinc, but 1.0 is not loading either.

Cheers,
Esteban



Ahh.  I forgot there was one in the MetacelloRepository.  It is 
outdated.  Sorry. Use the config in


http://www.squeaksource.com/ZincHTTPComponents

After you load from the config will you load the latest Zinc-HTTP from 
SqueakSource?  If so then reload the Zinc-Gemstone package afterwards 
and it should fix your issues.  You may have to change the 
ZnNetworkingUtils classsocketStreamTimeout on your own as I don't 
think its in the Zinc-Gemstone package.


As I mentioned to Phillipe, I don't have better ideas than to override 
methods where there are platform inconsistencies that need to be 
addressed for the stuff to load and run.



Maybe you would be comfortable to add a version 1.2 to the Zinc config 
on squeaksource that pulls in the latest Zinc that Sven has made and 
then loads the Zinc-Gemstone package.  If so please do.


Good luck and let me know what else I can help with


Paul



Re: [Pharo-project] [GS/SS Beta] zinc incompatibilities with gemstone

2011-06-28 Thread Paul DeBruicker

Esteban  Sven:

I have time to take a look at it towards the end of the day.  Please 
feel free to make the improvements yourself if you want.


Esteban - Did you look for/find any classes in Gemstone that are similar 
to NetworkSystemSettings or DynamicVariable?  I have not.


I'll get back to you later in the day.

Paul





On 06/28/2011 09:32 AM, Esteban Lorenzano wrote:

Hi,
I'm trying to load Zinc on gemstone. It more or less loads fine, but there are 
some fixes needed, I'm attaching the problems I found, hoping some benevolent 
soul will integrate to gemstone zinc code :)

This are the problems found:

ZnUrlscheme: symbol
symbol isNil
ifTrue: [ scheme := nil ]
ifFalse: [
(#(#http #https) includes: symbol) == they need to be 
strings (symbols ~= strings in gemstone)
ifTrue: [ scheme := symbol asSymbol ]
ifFalse: [ (ZnUnknowScheme scheme: symbol) 
signal ] ]


ZnNetworkingUtilsisProxySet
Should a proxy be used ?

^ NetworkSystemSettings useHTTPProxy == This class does not exists.

ZnNetworkingUtilssocketStreamTimeout
Access the current timeout in seconds for SocketStream IO

^ ZnConnectionTimeout value == DynamicVariable class (parent of 
ZnConnectionTimeout) does not exists.

best,
Esteban





Re: [Pharo-project] [GS/SS Beta] zinc incompatibilities with gemstone

2011-06-28 Thread Paul DeBruicker

Hi Esteban -


How are you loading Zinc into Gemstone?  Were you using the metacello 
configuration on Squeaksource or something else?


The reason I ask is all three issues you report were fixed/working at 
the start of June when I updated the port to what was current at the 
time.  The Gemstone port is current up to 
Zinc-HTTP-SvenVanCaekenberghe.162 which is from May 19th.


Let me know if loading via the metacello config is flawed and I'll 
update everything.  Also check that you are loading version 1.1 of the 
project.  It is the version referenced in #stable:


I pasted the specific fixes below

Thanks
Paul



ZnUrlscheme: symbol
symbol isNil
ifTrue: [ scheme := nil ]
ifFalse: [
(#(http https) includes: symbol asSymbol)
ifTrue: [ scheme := symbol asSymbol ]
ifFalse: [ (ZnUnknowScheme scheme: 
symbol) signal ] ]


ZnNetworkingUtilsisProxySet
^ HTTPSocket httpProxyServer isEmptyOrNil not


ZnNetworkingUtils class socketStreamTimeout
Timeout in seconds for SocketStream IO

^ 10



[Pharo-project] Monticello mcz files write their DataStream and a portion of their chunk-files as WideStrings, which are non-portable.

2010-07-19 Thread Paul DeBruicker

Hi-
I created an issue in the tracker:
https://code.google.com/p/pharo/issues/detail?id=2697

Some packages that were created with and load fine into Pharo 1.1 
release do not load into Gemstone because of the use of WideStrings 
while creating the mcz files.  I don't know how to dissect the mcz files 
at this time but in describing my issue on the GLASS list, Dale Henrichs 
was able to reproduce the problem and diagnose it.  His diagnosis is 
pasted below.


To recreate my issue you must be using Gemstone 2.4.4.1, Glass 
1.0-beta8.2, and GemTools for Gemstone 2.4.4.  First load the 
ConfigurationOfJQueryWidgetBox package from the Metacello Repository on 
SqueakSource.  Then run:


(ConfigurationOfJQueryWidgetBox project latestVersion)
load: #('JQWidgetBox-FullCalendar-Core').

It will attempt to load the package but complain that a dependency for 
the JQFullCalendar Class is not met.  The JQFullCalendar class is 
provided by the JQWidgetBox-FullCalendar-Core package.


Our entire discussion leading up to his diagnosis is here: 
http://forum.world.st/aFilePackage-cannot-perform-the-selector-preamble-with-the-arguments-in-anArray-aChangeRecord-td2291748.html#a2294376




Is there a way to write the mcz files using something other than 
WideStrings that will allow me to attempt to load them into Gemstone and 
perhaps get a different result?


Thanks

Paul


Paul,

Okay, it looks to me like your mcz file(s) are corrupted ... probably
due to a bug in Pharo 1.2 (that's the version you're using right?).

In an mcz file the snapshot of the definitions are serialized using two
formats:

1. a DataStream on an ordered collection of MCDefintions
2. a chunk-file formatted string.

It appears that for the DataStream, the entire(?) stream is written as a
WideString ... WideString is Squeak/Pharo dependent and is not portable
at all ... this is new. When GemStone hits the widestring an error is
thrown and Monticello tries to use the chunk-file format (which is why
you ran into the preamble probelm ... chunk file format is normally hit
(nor is it desirable to hit it)...

The chunk file-file is partially written as a WideString again...because
   the WideString is not portable it breaks the parsing algorithms for
GemStone ... interestingly enough the chunk-file string looks to be a
WideString for the first hundred characters or so ...

One of three things is happening:

1. someone in Pharo land decided it was a good idea to create mcz
   files using WideString
2. The that you used to create the class had a WideString in it
3. there is a bug somewhere in the pharo/monticello implementation

I can't guess which of those 3 the problem is and I can't guess what the
solution might be either.

If you bring up this bug on the Pharo list, I'll monitor the list and if
I can step in and help, I will.

Dale
   
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Monticello mcz files write their DataStream and a portion of their chunk-files as WideStrings, which are non-portable.

2010-07-19 Thread Paul DeBruicker




Interesting.
Now is the problem happening with other packages than a JS related?

Stef

/  Hi-
/


Hi -

Yes. If you attempt to load the latest Money package I uploaded to 
SqueakSource into Gemstone it fails because it requires the Currency 
class, which is provide by the Money package.  The Money package doesn't 
use any JS.  The Money package loads just fine into Pharo.  It behaves 
in the same way as the JQWidgetBox-FullCalendar-Core package.



Thanks

Paul

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Segmentation fault when starting pharo 1.0rc1 on Ubuntu 64bit server

2009-10-30 Thread Paul DeBruicker
 Date: Thu, 29 Oct 2009 22:58:00 +0100
 From: Alain Plantec alain.plan...@free.fr
 Subject: Re: [Pharo-project] Segmentation fault when starting pharo
        1.0rc1 on       Ubuntu 64bit server
 To: Pharo-project@lists.gforge.inria.fr
 Message-ID: 4aea0fe8.7000...@free.fr
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hi Paul,

 I'm using ubuntu 9.10 rc 64 (desktop version) since 7 days without any
 problem.
 Pharo run out of the box.
 I send my dpkg -l result to you in private.

 Cheers
 Alain



Hi Alain-

Yes I also have it working on the Desktop version of Ubuntu 9.10 
9.04.  I'm having trouble with the server version.

Thanks

Paul

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Segmentation fault when starting pharo 1.0rc1 on Ubuntu 64bit server

2009-10-30 Thread Paul DeBruicker
Hi Hernan,

Thanks for the recommendations.  Here is the output of the core dump
from gdb's bt command.

p...@localhost:~$ cd ph
p...@localhost:~/ph$ gdb squeak core
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/paul/ph/squeak...done.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib32/libutil.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib32/libutil.so.1
Reading symbols from /lib32/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib32/libdl.so.2
Reading symbols from /lib32/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib32/libm.so.6
Reading symbols from /lib32/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib32/libnsl.so.1
Reading symbols from /lib32/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib32/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./squeak deploy.image'.
Program terminated with signal 11, Segmentation fault.
#0  0xf7f4642f in __kernel_vsyscall ()
(gdb) bt
#0  0xf7f4642f in __kernel_vsyscall ()
#1  0xf7ee8ff4 in ?? () from /lib32/libc.so.6
#2  0xf7e6f6e7 in sbrk () from /lib32/libc.so.6
#3  0xf7e1ada1 in __default_morecore () from /lib32/libc.so.6
#4  0xf7e17c1d in ?? () from /lib32/libc.so.6
#5  0xf7e19568 in malloc () from /lib32/libc.so.6
#6  0xf7e18f80 in calloc () from /lib32/libc.so.6
#7  0x08051f9d in main (argc=1310076, argv=0xf7f2a540,
envp=0xf7f5aa10) at
/home/bryce/squeak/exupery/platforms/unix/vm/sqUnixMain.c:1324


I don't know what to check next.  Thanks for any help you can provide.


Paul



 Date: Thu, 29 Oct 2009 19:40:09 -0300
 From: Hern?n Morales Durand hernan.mora...@gmail.com
 Subject: Re: [Pharo-project] Segmentation fault when starting pharo
1.0rc1  on Ubuntu 64bit server
 To: Pharo-project@lists.gforge.inria.fr
 Message-ID:
70da5dd20910291540t17f92212he42d92b4d1d05...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 Paul,
  You may verify if your Linux distribution has core dumping enabled:

 # ulimit -c unlimited

 and check if the directory where the VM resides is writeable. Once you run
 again the VM and see Segmentation fault (core dumped), You may search the
 dumped core with file core and run a gdb on it:

 $ gdb squeakvm core

 Inside gdb, the bt command will display a stack trace to see or mail out
 detailed information about your SIGSEGV.
 Cheers,

 Hern?n

 2009/10/29 Paul DeBruicker pdebr...@gmail.com

 Hi -

 Has anyone successfully run a newer version of Pharo on either Ubuntu
 9.04 or Ubuntu 9.10 64 bit server?  When I try to start the command
 line simply says  Segmentation fault and does not emit a stack
 trace.  The UUIDPlugin is named UUIDPlugin.bak.I am attempting to
 use the latest versions of pharo, pharo sources and both the pharo vm
 or squeak 3.11 vm from the pharo-project.org site.  I have installed
 ia32-libs and I do know that the latest pharo runs on Ubuntu Desktop
 9.04.

 If you have gotten it running, will you please send me the output of

 dkpg -l

 or a description of whatever you did to get it started?  Thanks


 Also, I'd be happy to attempt other solutions or provide more
 information as I've tried what I know how to do and checked what I
 know to check.

 Thanks

 Paul

 ___

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] Segmentation fault when starting pharo 1.0rc1 on Ubuntu 64bit server

2009-10-29 Thread Paul DeBruicker
Hi -

Has anyone successfully run a newer version of Pharo on either Ubuntu
9.04 or Ubuntu 9.10 64 bit server?  When I try to start the command
line simply says  Segmentation fault and does not emit a stack
trace.  The UUIDPlugin is named UUIDPlugin.bak.I am attempting to
use the latest versions of pharo, pharo sources and both the pharo vm
or squeak 3.11 vm from the pharo-project.org site.  I have installed
ia32-libs and I do know that the latest pharo runs on Ubuntu Desktop
9.04.

If you have gotten it running, will you please send me the output of

dkpg -l

or a description of whatever you did to get it started?  Thanks


Also, I'd be happy to attempt other solutions or provide more
information as I've tried what I know how to do and checked what I
know to check.

Thanks

Paul

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] runaway Pharo beta image

2009-09-04 Thread Paul DeBruicker
Hi -


I have done something to my image and don't know how to fix it.  When
it opens it maximizes one of the processors and allocates a large
amount of RAM to itself.  When I attempt to run the Debug  Start
profiling all Processes it crashes the vm after I move the mouse to
the top of the screen.  When I run

Process allInstancesDo: [ :p | | rules |
rules := ProcessBrowser nameAndRulesFor: p.
rules second ifTrue: [ p terminate ] 1=name, 2=safe-to-kill,
3=safe-to-debug
].

from here: http://wiki.squeak.org/squeak/1799  nothing changes.

Printing 'ProcessBrowser new processList' in a workspace gives:

 a WeakArray(a Process in Delay classhandleTimerEvent a Process in
SystemDictionarylowSpaceWatcher a Process in [] in Delaywait a
Process in WeakArray classfinalizationProcess a Process in nil a
Process in ByteString(String)encodeOn: a Process in [] in
BlockClosurenewProcess)


And the VM statistics are:

uptime  0h8m53s
memory  1,055,051,120 bytes
old 1,050,497,028 bytes (99.6%)
young   83,708 bytes (0.0%)
used1,050,580,736 bytes (99.6%)
free4,470,384 bytes (0.4%)
GCs 4,999 (107ms between GCs)
full3 totalling 18,400ms (3.0% uptime), avg 6133.0ms
incr4996 totalling 120,999ms (23.0% uptime), avg 24.0ms
tenures 112 (avg 44 GCs/tenure)


Are there other things I can do to get it back under control or should
I just save everything in some MC repositories and set up a new image?
 I'm reluctant to do that now because I don't know what I did to
create the situation I'm in.


Thanks for your help

Paul

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project