[Pharo-dev] Problem with filetree

2013-12-23 Thread Benjamin
Hello guys,

I am playing a bit with filet tree, and it seems there is a little problem with 
escaping the selector #\ and #\\
If you try to export Collection and to load it back, it seems that when #\ is 
exported in JSON, the key should be “\\”
to escape the selector, but it’s simply “\”

And then, when you try to load it, the parser escape correctly, so the selector 
read is #” : “ 
Because of this, the package can not be  loaded

Is it a known bug ?
What is strange is that it happens only twice in all the Pharo packages

Ben



Re: [Pharo-dev] Problem with filetree

2013-12-23 Thread Benjamin
Step to reproduce

git clone https://github.com/BenjaminVanRyseghem/pharo-core.git

And in Pharo evaluate


| repo names |
repo := MCFileTreeRepository new directory: '.' asFileReference.

names := repo packageDescriptionsFromReadableFileNames.
names do: [ : name || version |
version := repo versionFromFileNamed: name first, '.package'.
[ version load ]
on: MCMergeOrLoadWarning
do: [ :ex | ex load ] ]


This will apply all the packages in your Pharo image

Ben

On 23 Dec 2013, at 12:35, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote:

 Hello guys,
 
 I am playing a bit with filet tree, and it seems there is a little problem 
 with escaping the selector #\ and #\\
 If you try to export Collection and to load it back, it seems that when #\ is 
 exported in JSON, the key should be “\\”
 to escape the selector, but it’s simply “\”
 
 And then, when you try to load it, the parser escape correctly, so the 
 selector read is #” : “ 
 Because of this, the package can not be  loaded
 
 Is it a known bug ?
 What is strange is that it happens only twice in all the Pharo packages
 
 Ben
 



Re: [Pharo-dev] Problem with filetree

2013-12-23 Thread Max Leske
Sounds like a bug...
Please open a bug report on https://github.com/dalehenrich/filetree?

Cheers,
Max

On 23.12.2013, at 12:41, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote:

 Step to reproduce
 
 git clone https://github.com/BenjaminVanRyseghem/pharo-core.git
 
 And in Pharo evaluate
 
 
 | repo names |
 repo := MCFileTreeRepository new directory: '.' asFileReference.
 
 names := repo packageDescriptionsFromReadableFileNames.
 names do: [ : name || version |
   version := repo versionFromFileNamed: name first, '.package'.
   [ version load ]
   on: MCMergeOrLoadWarning
   do: [ :ex | ex load ] ]
 
 
 This will apply all the packages in your Pharo image
 
 Ben
 
 On 23 Dec 2013, at 12:35, Benjamin benjamin.vanryseghem.ph...@gmail.com 
 wrote:
 
 Hello guys,
 
 I am playing a bit with filet tree, and it seems there is a little problem 
 with escaping the selector #\ and #\\
 If you try to export Collection and to load it back, it seems that when #\ 
 is exported in JSON, the key should be “\\”
 to escape the selector, but it’s simply “\”
 
 And then, when you try to load it, the parser escape correctly, so the 
 selector read is #” : “ 
 Because of this, the package can not be  loaded
 
 Is it a known bug ?
 What is strange is that it happens only twice in all the Pharo packages
 
 Ben
 
 



Re: [Pharo-dev] Problem with filetree

2013-12-23 Thread Benjamin
I am :)

Thanks for the pointer :)
Issue reported here: https://github.com/dalehenrich/filetree/issues/119

Ben

On 23 Dec 2013, at 12:58, Max Leske maxle...@gmail.com wrote:

 Sounds like a bug...
 Please open a bug report on https://github.com/dalehenrich/filetree?
 
 Cheers,
 Max
 
 On 23.12.2013, at 12:41, Benjamin benjamin.vanryseghem.ph...@gmail.com 
 wrote:
 
 Step to reproduce
 
 git clone https://github.com/BenjaminVanRyseghem/pharo-core.git
 
 And in Pharo evaluate
 
 
 | repo names |
 repo := MCFileTreeRepository new directory: '.' asFileReference.
 
 names := repo packageDescriptionsFromReadableFileNames.
 names do: [ : name || version |
  version := repo versionFromFileNamed: name first, '.package'.
  [ version load ]
  on: MCMergeOrLoadWarning
  do: [ :ex | ex load ] ]
 
 
 This will apply all the packages in your Pharo image
 
 Ben
 
 On 23 Dec 2013, at 12:35, Benjamin benjamin.vanryseghem.ph...@gmail.com 
 wrote:
 
 Hello guys,
 
 I am playing a bit with filet tree, and it seems there is a little problem 
 with escaping the selector #\ and #\\
 If you try to export Collection and to load it back, it seems that when #\ 
 is exported in JSON, the key should be “\\”
 to escape the selector, but it’s simply “\”
 
 And then, when you try to load it, the parser escape correctly, so the 
 selector read is #” : “ 
 Because of this, the package can not be  loaded
 
 Is it a known bug ?
 What is strange is that it happens only twice in all the Pharo packages
 
 Ben
 
 
 



Re: [Pharo-dev] Instance-side extensions show on class-side of extending package, and vice-versa.

2013-12-23 Thread Esteban Lorenzano
Hi,

Sorry, but even if you are right I’m not sure I will accept that now. 
Code freeze means code freeze: No enhancements, just bugfixes. So I don’t know 
if your suggestion is appropriate or not, but in any case is not appropriate in 
this stage. 
Of course, if the agreement is that is a good addition, I will be happy to 
include it in pharo 4. 

Esteban

On 23 Dec 2013, at 03:09, b...@openinworld.com wrote:

 I'd like to survey community opinion on case [1] that I logged.  I'll 
 summarize discussion here for the ticket.
 
 Currently with Nautilus, when Package A is extended by Package B adding 
 instance-method #m1 protocol *A to class C, 
 class C shows up (in grey) under Package A even when the Class side 
 checkbox is checked.
 My opinion is that class C should only show under Package A when looking at 
 the instance-side, 
 and not show when looking at the class-side.  What is your opinon...
 
 Q: Should an instance-side extension show up on the class-side of the 
 extending package?  (and vice-versa)
 For more info, see 'Steps to reproduce' in [1]
 
 [1] 
 https://pharo.fogbugz.com/f/cases/12178/Instance-side-extensions-show-on-class-side-of-extending-package-and-vice-versa
 
 cheers -ben



[Pharo-dev] Activity Diagram

2013-12-23 Thread Serge Stinckwich
Dear all,

with a colleague from Savoie University, we are looking for some
Smalltalk code in order to model, execute and animate Activity
Diagram. Any existing works ?

Regards,
-- 
Serge Stinckwich
UCBN  UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



Re: [Pharo-dev] [Moose-dev] Activity Diagram

2013-12-23 Thread Alexandre Bergel
As far as I know, there is nothing like this, however we are quite interested 
in visualizing activity diagrams.

Roassal should support this kind of diagram. In addition, we have two code 
profilers framework to extract the execution (Gadget and Spy).

I will be happy to beta-test any code that goes in that direction.

Kind regards,
Alexandre


On Dec 23, 2013, at 3:39 PM, Serge Stinckwich serge.stinckw...@gmail.com 
wrote:

 Dear all,
 
 with a colleague from Savoie University, we are looking for some
 Smalltalk code in order to model, execute and animate Activity
 Diagram. Any existing works ?
 
 Regards,
 -- 
 Serge Stinckwich
 UCBN  UMI UMMISCO 209 (IRD/UPMC)
 Every DSL ends up being Smalltalk
 http://www.doesnotunderstand.org/
 ___
 Moose-dev mailing list
 moose-...@iam.unibe.ch
 https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






[Pharo-dev] problem while parsing xml

2013-12-23 Thread NISHIHARA Satoshi
Hello

using: Pharo3.0 Latest update: #30659 (it occurs same error to
Pharo2.0 Latest update: #20628)
(Moose 4.9 with XML-Parser (DamienCassou.143) has no_err)

1. load XMLParser (StephaneDucasse.16) from Configuration browser
2. select and inspect it below:
^  XMLDOMParser parse: '?xml version=1.0 encoding=UTF-8 standalone=no?
!DOCTYPE score-partwise PUBLIC
-//Recordare//DTD MusicXML 3.0 Partwise//EN
http://www.musicxml.org/dtds/partwise.dtd;
score-partwise version=3.0
  part-list
score-part id=P1
  part-nameMusic/part-name
/score-part
  /part-list
  part id=P1
measure number=1
  attributes
divisions1/divisions
key
  fifths0/fifths
/key
time
  beats4/beats
  beat-type4/beat-type
/time
clef
  signG/sign
  line2/line
/clef
  /attributes
  note
pitch
  stepC/step
  octave4/octave
/pitch
duration4/duration
typewhole/type
  /note
/measure
  /part
/score-partwise
' readStream.

3. and get DNU: SmallIntegerasciiValue

'case of XMLZincClient#get:
'http://www.musicxml.com/dtds/partwise.dtd' timeout: ... onError: ...
returns binaryStream?


-- 
--
NISHIHARA Satoshi
[:goonsh :nsh | ^ nishis perform: goonsh with: nsh]


PharoDebug.log
Description: Binary data


[Pharo-dev] PackageTasksPlugin intall problem

2013-12-23 Thread NISHIHARA Satoshi
Hello

select and do it below:

Nautilus
pluginClasses:
{{FinderPlugin. #top}.
{AnnotationPanePlugin. #middle}.
{PackageTasksPlugin. #bottom}} asOrderedCollection.
browser := PackageTreeNautilus open.
browser ui selectedPackage: (RPackage named: 'AST-Core').
browser ui changed: #listElement:.

gets:
MessageNotUnderstood: PackageTreePackageSelectionincludesMethod:ofClass:

regards.


-- 
--
NISHIHARA Satoshi
[:goonsh :nsh | ^ nishis perform: goonsh with: nsh]


PharoDebug.log
Description: Binary data


[Pharo-dev] Filter in Nautilus

2013-12-23 Thread Alexandre Bergel
Hi!

I have the impression that it would be great to reuse the filter lastly set 
when opening a new nautilus.
For example, if I have a browser with the filter ^Roassal2|^Trach”, I would 
like to have the same when opening a new browser.

Am I the only one to feel this?

Cheers,
Alexandre

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






Re: [Pharo-dev] Filter in Nautilus

2013-12-23 Thread Yuriy Tymchuk
The thing is what if you have different things in a handful of browsers? I 
think that it can make sense to use it in nautilus with tabs. Or be able to 
quickly browse previous filters.

Uko

On 23 Dec 2013, at 21:29, Alexandre Bergel alexandre.ber...@me.com wrote:

 Hi!
 
 I have the impression that it would be great to reuse the filter lastly set 
 when opening a new nautilus.
 For example, if I have a browser with the filter ^Roassal2|^Trach”, I would 
 like to have the same when opening a new browser.
 
 Am I the only one to feel this?
 
 Cheers,
 Alexandre
 
 -- 
 _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
 Alexandre Bergel  http://www.bergel.eu
 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
 
 
 
 




Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-23 Thread Igor Stasenko
On 23 December 2013 22:04, Alexandre Bergel alexandre.ber...@me.com wrote:

 Hi!

 Is there a way to have transparent colors with NBOpenGL?
 I’ve tried the following (using Roassal 3d):

 -=-=-=-=-=-=-=-=-=-=
 | view el1 el2 |
 view := R3View new.
 el1 := (R3CubeShape new color: (Color purple alpha: 0.2)) element.
 el2 := (R3CubeShape new color: (Color purple alpha: 0.2)) element.
 view add: el1; add: el2.

 el2 translateByZ: -2.

 view addInteraction: R3MouseControl new; addInteraction:
 R3KeyControlForMac new.
 view open
 -=-=-=-=-=-=-=-=-=-=

 But I get something like:
 Would it be possible to have translucent cubes? Any OpenGL expert around?


Come on, Alex, sometimes you make me think you just came from the Moon.

http://www.opengl.org/archives/resources/faq/technical/transparency.htm
http://www.openglsuperbible.com/
google: opengl transparency


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






-- 
Best regards,
Igor Stasenko.
Screen Shot 2013-12-23 at 10.03.37 PM.png

Re: [Pharo-dev] Filter in Nautilus

2013-12-23 Thread Juraj Kubelka
And what about to set the same filter when opening browser from browser? 

And maybe history can be shared?

Cheers,
Jura

--
Juraj Kubelka

 El 23/12/2013, a las 18:23, Yuriy Tymchuk yuriy.tymc...@me.com escribió:
 
 The thing is what if you have different things in a handful of browsers? I 
 think that it can make sense to use it in nautilus with tabs. Or be able to 
 quickly browse previous filters.
 
 Uko
 
 On 23 Dec 2013, at 21:29, Alexandre Bergel alexandre.ber...@me.com wrote:
 
 Hi!
 
 I have the impression that it would be great to reuse the filter lastly set 
 when opening a new nautilus.
 For example, if I have a browser with the filter ^Roassal2|^Trach”, I would 
 like to have the same when opening a new browser.
 
 Am I the only one to feel this?
 
 Cheers,
 Alexandre
 
 -- 
 _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
 Alexandre Bergel  http://www.bergel.eu
 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
 
 



Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-23 Thread Ronie Salgado
Hi Alex,

Translucent objects requires a singlepass lighting model, which I took the
opportunity to complete and make it the default one.
I put your example with a slight modification under
R3ExampletranslucentCubes
Translucent elements require a reception of the message makeTranslucent
since their rendering must be handled in a special way. They must rendered
after all the opaque objects, in a back to front order without depth
writing. Currently only depth writing disabling per element is supported,
so their rendering is not going to be perfect, but at least some
transparency can be seen.

Greetings,
Ronie Salgado


2013/12/23 Igor Stasenko siguc...@gmail.com




 On 23 December 2013 22:04, Alexandre Bergel alexandre.ber...@me.comwrote:

 Hi!

 Is there a way to have transparent colors with NBOpenGL?
 I’ve tried the following (using Roassal 3d):

 -=-=-=-=-=-=-=-=-=-=
 | view el1 el2 |
 view := R3View new.
 el1 := (R3CubeShape new color: (Color purple alpha: 0.2)) element.
 el2 := (R3CubeShape new color: (Color purple alpha: 0.2)) element.
 view add: el1; add: el2.

 el2 translateByZ: -2.

 view addInteraction: R3MouseControl new; addInteraction:
 R3KeyControlForMac new.
 view open
 -=-=-=-=-=-=-=-=-=-=

 But I get something like:
 Would it be possible to have translucent cubes? Any OpenGL expert around?


 Come on, Alex, sometimes you make me think you just came from the Moon.

 http://www.opengl.org/archives/resources/faq/technical/transparency.htm
 http://www.openglsuperbible.com/
 google: opengl transparency


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






 --
 Best regards,
 Igor Stasenko.

Screen Shot 2013-12-23 at 10.03.37 PM.pngattachment: translucent.png

[Pharo-dev] [ANN] PunQLite - a new NoSQL wrapper for Pharo

2013-12-23 Thread Masashi UMEZAWA
Hi all,

I've developed PunQLite. UnQLite NoSQL database binding for Pharo.
https://github.com/mumez/PunQLite
http://smalltalkhub.com/#!/~MasashiUmezawa/PunQLite

UnQLite is a fast, lightweight, portable, embedded KVS with a simple
scripting engine (Jx9).
http://unqlite.org/

Torsen kindly wrote about PunQLite project's beginning on his blog.
http://astares.blogspot.jp/2013/11/punqlite-for-pharo-using-unqlite.html

At that time, it was only a bare NativeBoost FFI interface. Now it has
become a full-fledged wrapper.

db := PqDatabase open: 'test.db'.
db at: 'Smalltalk' put: 'COOL'.
db at: 'Pharo' put: 'HOT'.
db at: 'Smalltalk' ifPresent: [:data |
data asString inspect
].
Transcript cr; show: db keys.
db do: [:cursor |
Transcript cr; show: cursor currentStringKey; space; show: cursor
currentStringValue.
].
db close.

Moreover, it is quite fast. I wrote a simple benchmark that does many
round-trips (put/get 10 small elements). The result is 877 msecs
(on my windows laptop). It was impressive.

Enjoy!
-- 
[:masashi | ^umezawa]



Re: [Pharo-dev] [ANN] PunQLite - a new NoSQL wrapper for Pharo

2013-12-23 Thread olivier auverlot
Really cool. That seems very simple to use :-)


2013/12/24 Masashi UMEZAWA masashi.umez...@gmail.com

 Hi all,

 I've developed PunQLite. UnQLite NoSQL database binding for Pharo.
 https://github.com/mumez/PunQLite
 http://smalltalkhub.com/#!/~MasashiUmezawa/PunQLite

 UnQLite is a fast, lightweight, portable, embedded KVS with a simple
 scripting engine (Jx9).
 http://unqlite.org/

 Torsen kindly wrote about PunQLite project's beginning on his blog.
 http://astares.blogspot.jp/2013/11/punqlite-for-pharo-using-unqlite.html

 At that time, it was only a bare NativeBoost FFI interface. Now it has
 become a full-fledged wrapper.

 db := PqDatabase open: 'test.db'.
 db at: 'Smalltalk' put: 'COOL'.
 db at: 'Pharo' put: 'HOT'.
 db at: 'Smalltalk' ifPresent: [:data |
 data asString inspect
 ].
 Transcript cr; show: db keys.
 db do: [:cursor |
 Transcript cr; show: cursor currentStringKey; space; show: cursor
 currentStringValue.
 ].
 db close.

 Moreover, it is quite fast. I wrote a simple benchmark that does many
 round-trips (put/get 10 small elements). The result is 877 msecs
 (on my windows laptop). It was impressive.

 Enjoy!
 --
 [:masashi | ^umezawa]