[Pharo-users] Spec / GT Inspector integration

2016-09-01 Thread Alistair Grant
If I have a CompositeModel which I want to display as a tab in a GT Inspector, what should the inspector method look like? (I haven't been able to find any examples in the image or on the web) I assume it should be something like: gtInspectEditIn: composite ^ composite spec ti

Re: [Pharo-users] Spec / GT Inspector integration

2016-09-01 Thread Nicolai Hess
Hi Alistair, 2016-09-01 10:38 GMT+02:00 Alistair Grant : > If I have a CompositeModel which I want to display as a tab in a GT > Inspector, what should the inspector method look like? (I haven't been > able to find any examples in the image or on the web) > > I assume it should be something like

Re: [Pharo-users] BitArray and BooleanArray ?

2016-09-01 Thread Ben Coman
I don't know the answer but I assume you a looking for a memory efficient way of storing booleans. So perhaps the Bit Field layouts discussed here [1] may be of interest considering the recent introduction of Slots to Pharo. Otherwise I verry vaguely remember Bitmap used for this somewhere. Sorry

[Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread PBKResearch
Hello I am using XPath as a way of dissecting web pages, especially from Wiktionary. Generally I get good results, but I could get useful extra flexibility by using the binary Smalltalk operators to represent XPath, as mentioned at the end of the class comment for XPath. However, the descriptio

Re: [Pharo-users] BitArray and BooleanArray ?

2016-09-01 Thread Peter Uhnak
On Thu, Sep 01, 2016 at 07:45:45PM +0800, Ben Coman wrote: > I don't know the answer but I assume you a looking for a memory > efficient way of storing booleans. So perhaps the Bit Field layouts > discussed here [1] may be of interest considering the recent > introduction of Slots to Pharo. Other

[Pharo-users] [ANN] RProjectConnector V2.1

2016-09-01 Thread Blondeau Vincent
Hello everyone, I am glad to announce the release of version 2.1 of the RProjectConnector. The binding between Pharo and R (https://www.r-project.org/) is now translated to UFFI and so to Pharo 6.0. You can call directly your R methods from Pharo. For example, with the famous iris clustering ex

Re: [Pharo-users] [ANN] RProjectConnector V2.1

2016-09-01 Thread Alexandre Bergel
I wanted to try, but there is no installation instruction for OS X :-( Can you produce some on OS X? It would be great Anyway, this is great Vincent! Keep pushing! Alexandre > On Sep 1, 2016, at 12:42 PM, Blondeau Vincent > wrote: > > Hello everyone, > > I am glad to announce the release

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread Cédrick Béler
Hi Peter, Never used Path so I cannot help there. I just wander if you connote use Soup to « dissect » your webpages ? http://www.smalltalkhub.com/#!/~PharoExtras/Soup HTH, Cédrik > Le 1 sept. 2016 à 15:26, PBKResearch a écrit : > > Hello > > I am using XPath as a way of dissecting web pag

Re: [Pharo-users] UFFI const, unsigned, opaque-ish types

2016-09-01 Thread Ben Coman
Thanks Esteban. That worked. However it may be good to be more permissive about allowing const to reduce the surprises for FFI users. Same for unsigned. Reviewing FFIExternalStructureFIeldParser>>praseFields:structure: I see declarations are parsed simply left-to-right, which okay as the simpl

Re: [Pharo-users] [Pharo-dev] [ANN] RProjectConnector V2.1

2016-09-01 Thread Blondeau Vincent
Sorry, I haven’t a Mac. First, you have to install R. Then, I think you should only have to copy the R libraries (somewhere in the disk^^) to the Pharo VM folder. Tell me if it works ;) Vincent De : Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] De la part de Alexandre Bergel Envoyé : j

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread PBKResearch
Hi Cédrik I started out using Soup, but I found out that it does what its name suggests, and jumbles up the contents of the pages. I now parse the pages with XMLHTMLParser, which preserves the original structure exactly. The point of XPath is that it is a convenient way of specifying a route

Re: [Pharo-users] [Pharo-dev] [ANN] RProjectConnector V2.1

2016-09-01 Thread Alexandre Bergel
I do not see any apparent libraries on OSX. I am inspecting the content of the R application Package and it only contains images and some executables. Alexandre > On Sep 1, 2016, at 1:55 PM, Blondeau Vincent > wrote: > > Sorry, I haven’t a Mac. > > First, you have to install R. > Then, I th

Re: [Pharo-users] UFFI const, unsigned, opaque-ish types

2016-09-01 Thread Esteban Lorenzano
well, I accept contributions :) I was thinking about enhance the parser too (but for allowing array declarations, not for unsigned)… anyway, as soon as tests passes and backward compatibility is there, I would like to have a better parser, yes. cheers, Esteban > On 01 Sep 2016, at 18:40, Be

Re: [Pharo-users] Spec / GT Inspector integration

2016-09-01 Thread Alistair Grant
Hi Nicolai, On Thu, Sep 01, 2016 at 11:00:29AM +0200, Nicolai Hess wrote: > > ... > > Here is an example how you can create a spec based presentation (an > IconListModel) ). > Add this method to the other gtInspectorMethods for class Morph (instance > side): > > gtInspectorSubmorphs2In: composi

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread Hernán Morales Durand
Hi Peter, 2016-09-01 10:26 GMT-03:00 PBKResearch : > Hello > > > > I am using XPath as a way of dissecting web pages, especially from > Wiktionary. > Any specific reason to not use the SPARQL endpoint? > Generally I get good results, but I could get useful extra flexibility by > using the bin

[Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread H. Hirzel
Hello I have an Inspector on n a ByteString open and would like to copy out the string into the clipboard. I can select the text but there is no right-mouse button menu to copy it. ALT-C just replaces the text with a c CTRL-C the same. I am using Pharo 5.0 on Linux Mint. In the preferences I f

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread H. Hirzel
Found the answer: the right-mouse button menu is only available in the 'raw' tab ... --H. On 9/1/16, H. Hirzel wrote: > Hello > > I have an Inspector on n a ByteString open and would like to copy out > the string into the clipboard. > > I can select the text but there is no right-mouse button m

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread H. Hirzel
However the text is incomplete there. No possibility to get it into the clip board. Question still open On 9/1/16, H. Hirzel wrote: > Found the answer: > > the right-mouse button menu is only available in the 'raw' tab ... > > --H. > > On 9/1/16, H. Hirzel wrote: >> Hello >> >> I have an

[Pharo-users] How do I display a text in a text window?

2016-09-01 Thread H. Hirzel
Hello I want to display a string (no code) in a text window. What is the equivalent of the Squeak expression StringHolder new textContents: (MyTextCollection at: 101); openLabel: 'theText 101' in Pharo 5.0? Regards Hannes

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread PBKResearch
Hi Hernan I don’t understand your first question – I can’t see a connection between SPARQL and what I am doing. I downloaded XPath from http://smalltalkhub.com/mc/PharoExtras/XPath/. However, I am probably using a somewhat out of date version; I downloaded it about a year ago. Peter

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread Hernán Morales Durand
2016-09-01 16:51 GMT-03:00 PBKResearch : > Hi Hernan > > > > I don’t understand your first question – I can’t see a connection between > SPARQL and what I am doing. > > > You could get the Wikitionary data by querying a SPARQL endpoint http://wiktionary.dbpedia.org/sparql instead of scrapping web

Re: [Pharo-users] How do I display a text in a text window?

2016-09-01 Thread H. Hirzel
Answer: To open a text window with text I do Workspace openContents: (MyTextCollection at: 101). Display as text only: At the bottom I can switch between - plain text - smalltalk scripting But the text remains red in both cases. What am I missing? --Hannes On 9/1/16, H. Hirzel wrote

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread Ben Coman
I agree. I've suffered the same need previously. Unless there is a particular reason its been designed against, I'd request the usual shortcut keys work. I often want to use ctrl-b, ctrl-m in the default tab, even though switching to the raw tab works. cheers -ben On Fri, Sep 2, 2016 at 3:37 A

[Pharo-users] Spec Text Emphasis

2016-09-01 Thread Sean P. DeNigris
Is there a way to change the emphasis of Spec text (TextModel/TextInputModel, or even LabelModel - I would trade edit-ability for styling)? The following successfully added the attribute to the text, but it didn't display in Spec: checkbox whenActivatedDo: [ self textModel text: (self textMode

[Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-01 Thread Ben Coman
Referring to the example show_clang_version() below, cleanup is done with clang_disposeString(). How does UFFI hook into the object finalisation mechanism to call this when the object is garage collected. My searches result mostly in info on weak collections and its not clear how this translates t

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread stepharo
THANKS for the feedback. Normally we talked about it with andrei and doru at ESUG. Can you check if this was fixed in Pharo 60 because someone told me that it was but I'm not sure. Stef Le 2/9/16 à 02:28, Ben Coman a écrit : I agree. I've suffered the same need previously. Unless there

Re: [Pharo-users] How do I display a text in a text window?

2016-09-01 Thread stepharo
Look into UIManager helpers. I have to run now. Le 1/9/16 à 21:47, H. Hirzel a écrit : Hello I want to display a string (no code) in a text window. What is the equivalent of the Squeak expression StringHolder new textContents: (MyTextCollection at: 101); openLabel:

Re: [Pharo-users] Network System Settings

2016-09-01 Thread bharath
Many thanks to Nicolai -- View this message in context: http://forum.world.st/Network-System-Settings-tp4913359p4913698.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Network System Settings

2016-09-01 Thread bharath
Many thanks Vincent -- View this message in context: http://forum.world.st/Network-System-Settings-tp4913359p4913699.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread Ben Coman
ctrl-c, ctrl-v are working in Linux Pharo 60197 and also Moose 6.0, but ctrl-b, ctrl-n, ctrl-m are not. cheers -ben On Fri, Sep 2, 2016 at 2:10 PM, stepharo wrote: > THANKS for the feedback. > > Normally we talked about it with andrei and doru at ESUG. > > Can you check if this was fixed in Phar

[Pharo-users] Slides online: "Perfection & Feedback Loops" talk from esug

2016-09-01 Thread Marcus Denker
Hi, At ESUG last Friday I gave a talk "Perfection & Feedback Loops or: why worse is better”, I was asked for the slides. They are now online: http://www.slideshare.net/MarcusDenker/perfection-feedback-loops-or-why-worse-is-better-65540840 As the slides do not contain much (just headli

Re: [Pharo-users] Spec Text Emphasis

2016-09-01 Thread Peter Uhnak
On Thu, Sep 01, 2016 at 09:18:47PM -0700, Sean P. DeNigris wrote: > Is there a way to change the emphasis of Spec text (TextModel/TextInputModel, > or even LabelModel - I would trade edit-ability for styling)? LabelModel has #emphasis: LabelModel new emphasis: #(bold); label: 'bol