Re: [Pharo-users] About how to benchmark the lookup speed...

2017-06-14 Thread PBKResearch
Steven The question you need to consider is how much the results vary from one repetition to another. If they are very variable, then the average will still be variable. In the case of your 100 repetitions, for instance, you can work out a confidence interval for the mean quite easily. Find

[Pharo-users] Problems with PunQLite

2017-07-11 Thread PBKResearch
Hello I have decided to have another try with PunQLite, having failed to get it working before. For the record, I am using Windows 10 Home with all recent updates applied. I tried the following: 1. Download latest image of Moose 6.1 (Pharo 6.0 Latest update: #60507). 2. Searc

Re: [Pharo-users] Problems with PunQLite

2017-07-12 Thread PBKResearch
Thanks for any help Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 11 July 2017 18:27 To: pharo-users@lists.pharo.org Subject: [Pharo-users] Problems with PunQLite Hello I have decided to have another try with PunQLite

Re: [Pharo-users] Problems with PunQLite

2017-07-12 Thread PBKResearch
it in same dir as your image? (which is where should be the downloaded dll, so you need to replace it). cheers! Esteban On 12 Jul 2017, at 14:10, PBKResearch mailto:pe...@pbkresearch.co.uk> > wrote: Hello Just an update on a further test. Going through old e-mails, I saw E

[Pharo-users] Mysterious problem in loading Pharo

2017-07-15 Thread PBKResearch
Hello I have a problem in loading Pharo images which, until yesterday, loaded without difficulty. All the images showing the problem are Pharo 6 with the Cog VM; older images do not seem to be affected. The first sign of a problem is that, as soon as I start the image, the debug console app

Re: [Pharo-users] Mysterious problem in loading Pharo

2017-07-15 Thread PBKResearch
all it? If so, where from? Thanks Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 15 July 2017 11:26 To: pharo-users@lists.pharo.org Subject: [Pharo-users] Mysterious problem in loading Pharo Hello I have a problem in loading

Re: [Pharo-users] Mysterious problem in loading Pharo

2017-07-15 Thread PBKResearch
Subject: Re: [Pharo-users] Mysterious problem in loading Pharo Maybe revew recent Windows 10 updates... http://www.sysprobs.com/how-to-view-installed-updates-on-windows-10-8-1-server-2012 cheers -ben On Sat, Jul 15, 2017 at 6:26 PM, PBKResearch mailto:pe...@pbkresearch.co.uk> >

Re: [Pharo-users] Mysterious problem in loading Pharo

2017-07-16 Thread PBKResearch
1-server-2012 > > cheers -ben > > On Sat, Jul 15, 2017 at 6:26 PM, PBKResearch > wrote: > > > Hello > > > > > > > > I have a problem in loading Pharo images which, until yesterday, > > loaded without difficulty. All the images showing the prob

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-27 Thread PBKResearch
Julián I don’t know Chalten, but I wonder whether your definition of Person>>ageOn: will work correctly. Could I suggest you add two extra assertions to your test: assert: (john ageOn: February fifteenth , 2013) equals: (TimeUnits year with: 49); assert: (john ageOn: April first , 2013) e

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-28 Thread PBKResearch
k you were expecting #dayNumber (January third, 1990) day. "Wednesday". (January third, 1990) dayOfMonth. "January 3" (January third, 1990) dayNumber. "3" On 27 July 2017 at 16:43, PBKResearch mailto:pe...@pbkresearch.co.uk> > wrote: Julián I

Re: [Pharo-users] problem with FLMaterializer

2017-08-05 Thread PBKResearch
Johannes Just a suggestion: FLMaterializer class >>materializeFromFileNamed: requires as argument aFilename, not aFileRefence. Presumably this means the name as a string. This makes sense, because #convertToWithConverter: is the name of a method understood by strings. If your invocation of the

Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-06 Thread PBKResearch
Sean This seems to be what the PPAndParser is designed for. I tried the following: identifier := #letter asParser plus flatten. exclusion := ('Bar' asParser / 'Baz' asParser) negate. restricted := identifier and, exclusion. restricted matches: 'abc'. "--> true" restricted matches: 'Baz'. "--> fa

Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-06 Thread PBKResearch
usion. Peter -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 06 August 2017 13:28 To: 'Any question about pharo is welcome' Subject: Re: [Pharo-users] PetitParser: Parse X as long as it's not Y Sean This seems

Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-09 Thread PBKResearch
Sean One extra point. You may need to post-process the parse to get what you want. In the 'restricted' line, if you don't have a #gen then 'gen negate' will have succeeded and will generate its own node in the parse - in your example of ' Paul' as input it will be $P. Assuming you don't want this

Re: [Pharo-users] Object>>#name deprecated in Pharo 6 -- what do I need to do?

2017-08-26 Thread PBKResearch
Hannes You are certainly not required to eliminate #name altogether; all you have to do is to ensure that any object that receives the message #name knows how to answer its own name in an appropriate way. To rephrase Ben’s second para in a more long-winded way: a. Run the code that

Re: [Pharo-users] Dark Mode

2017-08-27 Thread PBKResearch
I agree with Dimitris - it is all a matter of preference - not all eyes are the same. For myself, I find the default dark theme in Pharo very uncomfortable. On my system, some elements have a black foreground on a dark grey background, which is almost impossible to see. This is always true of th

Re: [Pharo-users] Dark Mode

2017-08-27 Thread PBKResearch
text is white and shows up OK. But I still don’t like it. Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 27 August 2017 23:48 To: 'Any question about pharo is welcome' Subject: Re: [Pharo-users] Dark Mode Dimitris

[Pharo-users] Code mystery

2017-08-28 Thread PBKResearch
Hello All Following the discussion on dark mode, I was browsing the code on themes (in Moose 6.1 = Pharo 6.0, Latest update: #60486). In Class ThemeIcons, I found this method: downloadTo: dir | zipArchive | zipArchive := self class destinatio

Re: [Pharo-users] Code mystery

2017-08-31 Thread PBKResearch
always too much code too few people. If you think that's bad > embrace yourself if you try to read Morphic code. Huge suffering for > me when I tried to learn how the task bar works and apparently using > it wrong it freezes the image. > > Tons of Pharo code needs a clean but need

Re: [Pharo-users] Code mystery

2017-09-01 Thread PBKResearch
t of each other. That being said, one could quite easily create a criticized for the special case of a single method, lacking any other implementations, that doesn't use it's argument. On Aug 31, 2017 11:55, "PBKResearch" mailto:pe...@pbkresearch.co.uk> > wrote: St

Re: [Pharo-users] PetitParser Mystery

2017-09-21 Thread PBKResearch
Sean I'm not an expert on PetitParser, but I think I understand what is happening. If I am right, I would expect the parser which fails to also fail, for the same reason, if the input is just 'John Smith' without the 'Jr'. If this is not so, you can disregard the rest of this post. The top-level

[Pharo-users] Is a non-break space whitespace?

2017-09-24 Thread PBKResearch
Hello All I have a little puzzle to disturb your Sunday lunch, maybe. I have been scraping text data from web pages, which often comes with redundant space before or after. I routinely use 'trim' on the final string output, but I have found cases where there are still redundant spaces. Inspecti

Re: [Pharo-users] Is a non-break space whitespace?

2017-09-25 Thread PBKResearch
o is welcome Subject: Re: [Pharo-users] Is a non-break space whitespace? On 25 Sep 2017, at 09:53, Richard Sargent mailto:richard.sarg...@gemtalksystems.com> > wrote: Ben Coman wrote On Sun, Sep 24, 2017 at 7:53 PM, PBKResearch < <mailto:peter@.co> peter@.co >

[Pharo-users] Problem with input to XML Parser - 'Invalid UTF8 encoding'

2017-10-08 Thread PBKResearch
In another thread (on SVG Icons) Sven referred to ways of getting input from a URL for XMLDOMParser. I have recently had some problems doing this. I have found a workaround, so it is not urgent, but I thought I should put it on record in case anyone else is bitten by it, and so maybe Monty can look

Re: [Pharo-users] Problem with input to XML Parser - 'Invalid UTF8 encoding'

2017-10-08 Thread PBKResearch
Paul Good to have found the charset discrepancy - that may have something to do with it. But I don't think it has to do with the C’è in the body of the page. I have just parsed another page published today, with the same error, and again it fails in parsing the node, so it has not even reached

Re: [Pharo-users] [Pharo7.0a] Next batch of enhancements

2017-11-05 Thread PBKResearch
I waded through the list of 'enhancements', and was astonished to find this. Is there to be an alternative way of producing the same appearance as the 'Watery' theme? If not, how can the removal of a facility be called an 'enhancement'? I always switch to this theme when I load a new image, beca

Re: [Pharo-users] [Pharo7.0a] Next batch of enhancements

2017-11-05 Thread PBKResearch
2017-11-05 12:00 GMT+01:00 PBKResearch mailto:pe...@pbkresearch.co.uk> >: I waded through the list of 'enhancements', and was astonished to find this. Is there to be an alternative way of producing the same appearance as the 'Watery' theme? If not, how can the remova

Re: [Pharo-users] Soup bug(fix)

2017-11-08 Thread PBKResearch
Siemen Stef should have added that XPath depends on using Monty's XMLParser suite. I tried your snippet on XMLDOMParser, and it parses correctly. I always use XMLHTMLParser for parsing HTML, because I can always see the exact relationship between the parsed structure and the original HTML. With

Re: [Pharo-users] Soup bug(fix)

2017-11-08 Thread PBKResearch
Kjell Almost certainly the HTML files will not contain the code for the actual pictures; they will just contain an ‘href’ node with the address to load the picture file from. If the web pages are built to a regular pattern, you should be able to parse them and locate the href nodes you want.

Re: [Pharo-users] ZnUrls with Non-ASCII characters

2017-12-07 Thread PBKResearch
Sean The trick is to url encode the bit that contains the accented characters. In your case, try: ('https://en.wiktionary.org/wiki/','prêt#French' urlEncoded ) asUrl If you use urlEncoded on the whole string, the encoded slashes seem to confuse things. HTH Peter Kenny -Original Message-

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-13 Thread PBKResearch
Sanjay I have had messages like this when I inadvertently tried to start two copies of the same image (in my case pharo 6.1). The first image was running happily in the background, the second gave this message (but still seemed to start OK). I am also on Windows 10, using 32-bit Pharo. HTH Peter

Re: [Pharo-users] Pharo 7 image cannot write changes message on startup

2018-01-14 Thread PBKResearch
Sanjay I don't know how to identify the VM version - it is the one which was current when I downloaded my current image in July 2017; the .exe has a creation date of 31 May 2017. The point of my comment was that this message does not only come from a conflict of access permissions. In my situatio

Re: [Pharo-users] unsolicited package-cache use

2018-01-18 Thread PBKResearch
Are you sure it's a bot? Google the name - there is a real person living near Seattle, with an interest in Smalltalk. I think the same person posts on the Dolphin list using the name picoVerse. Granted the style is weird and it often doesn't seem to make sense, but it's a person. Peter Kenny -

[Pharo-users] Start up actions

2014-11-05 Thread PBKResearch
Hello I have a puzzle as to how to implement a start-up action. I would like to have a monitoring process running in the background while I am working on my project, and it would be easier if this process started up automatically when the image is loaded. I have hunted through my current image,

Re: [Pharo-users] question on syntax "negate numbers"

2014-11-10 Thread PBKResearch
I have tried this on my latest Dolphin (Pro 6.1 Beta 2): 3 @ -5 is accepted and interpreted correctly. 3 @ - 5 is rejected with message: 'Error - incorrect expression start'; the caret is pointing at the - sign. So the Opal behaviour does not mirror that of Dolphin. Hope this helps Peter

[Pharo-users] Problem due to deprecation of class Url in Pharo 3 and Moose 5.0

2015-01-10 Thread PBKResearch
Hello I have run into a problem in moving some existing work from earlier versions of Pharo/Moose. I have found a work around, but I wonder if there is a tidier way of handling it. I make frequent use of Todd Blanchard's HTML parser and validator, HTMCSS (http://smalltalkhub.com/#!/~ToddBla

Re: [Pharo-users] Problem due to deprecation of class Url in Pharo 3 and Moose 5.0

2015-01-10 Thread PBKResearch
: Any question about pharo is welcome Subject: Re: [Pharo-users] Problem due to deprecation of class Url in Pharo 3 and Moose 5.0 > On 10 Jan 2015, at 16:45, stepharo wrote: > > > Le 10/1/15 11:41, PBKResearch a écrit : >> Hello >> >> I have run into a problem

Re: [Pharo-users] [ANN] PUnQLite NoSQL database project updated

2015-01-29 Thread PBKResearch
Hi Torsten This looks very interesting. I am looking at a project which needs simple persistence, and I was considering MongoDB plus Voyage, which looked like overkill. I shall definitely be trying PUnQLite. I am not yet on Pharo 4; I am using Moose 5.0, which is essentially Pharo 3. To load P

Re: [Pharo-users] Problem due to deprecation of class Url in Pharo 3 and Moose 5.0

2015-01-31 Thread PBKResearch
ns here. There are many people watching, and there is the chance of a bit of lateral thinking. Posted here also because my attempts to e-mail Monty directly have failed, so thanks again Monty. Peter Kenny From: PBKResearch [mailto:pe...@pbkresearch.co.uk] Sent: 10 January 2015 10:41 To

[Pharo-users] What happens to saved inspectors?

2015-02-18 Thread PBKResearch
Hello I am using Moose 5, which is essentially Pharo 3, downloaded late December 2014. I have a development project which mainly consists of a collection of workspaces and inspectors (I really do intend to turn it into a properly structured set of classes one day!). I have noticed that, wheneve

Re: [Pharo-users] What happens to saved inspectors?

2015-02-18 Thread PBKResearch
? I have never seen that in Pharo. Are your titles dynamic (I mean, when the object changes, can your title change ?) ? 2015-02-18 11:35 GMT+01:00 PBKResearch mailto:pe...@pbkresearch.co.uk> >: Hello I am using Moose 5, which is essentially Pharo 3, downloaded late December 2014. I

Re: [Pharo-users] What happens to saved inspectors?

2015-02-18 Thread PBKResearch
t on a fresh image, it will be easier for us to help you ;) I cross-posted to the Moose mailing list where people are more aware of this kind of issues. Vincent De : Pharo-users [ <mailto:pharo-users-boun...@lists.pharo.org> mailto:pharo-users-boun...@lists.pharo.org] De la p

[Pharo-users] Problems in switching from Moose 5.0 (Pharo 3) to Moose 5.1 (Pharo 4)

2015-05-05 Thread PBKResearch
I have been working with Moose 5.0 on a project involving natural language processing. I used TextLint to parse the input, just because it contained a set of parsers which gave output in a convenient form. I have read all about the virtues of Pharo 4, and decided to give it a try, so I set out to r

Re: [Pharo-users] asOrderedSet

2015-05-05 Thread PBKResearch
OrderedCollection>>removeDuplicates? Peter Kenny From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of p...@highoctane.be Sent: 05 May 2015 17:07 To: Any question about pharo is welcome Subject: [Pharo-users] asOrderedSet Looks like we haven't that one. So, how d

Re: [Pharo-users] Problems in switching from Moose 5.0 (Pharo 3) to Moose 5.1 (Pharo 4)

2015-05-06 Thread PBKResearch
5.0 (Pharo 3) to Moose 5.1 (Pharo 4) De : Pharo-users [ <mailto:pharo-users-boun...@lists.pharo.org> mailto:pharo-users-boun...@lists.pharo.org] De la part de PBKResearch Envoyé : mardi 5 mai 2015 18:01 À : <mailto:pharo-users@lists.pharo.org> pharo-users@lists.pharo.org Objet :

Re: [Pharo-users] Problems in switching from Moose 5.0 (Pharo 3) to Moose 5.1 (Pharo 4)

2015-05-06 Thread PBKResearch
boun...@lists.pharo.org> mailto:pharo-users-boun...@lists.pharo.org] De la part de PBKResearch Envoyé : mercredi 6 mai 2015 12:12 À : 'Any question about pharo is welcome' Objet : Re: [Pharo-users] Problems in switching from Moose 5.0 (Pharo 3) to Moose 5.1 (Pharo 4) Vincent Pete

[Pharo-users] Problem using Zinc in Pharo 4 (Moose 5.1)

2015-05-08 Thread PBKResearch
Hello I have been trying to use Soup class>> fromUrl: to access the contents of a web page. It halts with a message from Zinc about malformed UTF-8. The page displays perfectly in Firefox, so I copied the page source from there to a local file and tried to read it from there. Again a message fr

Re: [Pharo-users] Problem using Zinc in Pharo 4 (Moose 5.1)

2015-05-08 Thread PBKResearch
d from bytes to characters > On 08 May 2015, at 18:51, PBKResearch wrote: > > Hello > > I have been trying to use Soup class>> fromUrl: to access the contents of a > web page. It halts with a message from Zinc about malformed UTF-8. The page > displays perfectly in Firefox, so

Re: [Pharo-users] Problem using Zinc in Pharo 4 (Moose 5.1)

2015-05-09 Thread PBKResearch
To: Any question about pharo is welcome Subject: Re: [Pharo-users] Problem using Zinc in Pharo 4 (Moose 5.1) > On 09 May 2015, at 02:18, PBKResearch wrote: > > Sven > > Many thanks for the quick response. I always like to try to solve problems > myself before appealing for help,

[Pharo-users] How to move data between Pharo versions

2015-05-28 Thread PBKResearch
Hello I have found a way round this problem, but it seems messy and uncomfortable, so I thought I should ask what is the right way to do it. I have just changed from using Moose 5.0 (Pharo 3.0, update: #30862) to Moose 5.1 (Pharo 4.0, update: #40613). I had a rather complex dictionary struc

Re: [Pharo-users] How to move data between Pharo versions

2015-05-28 Thread PBKResearch
Sean Thanks for this. At the back of my mind in asking was whether I want to use Fuel more extensively as a way of storing object structures long term on disk. If I move to Pharo 5 later on, will that have a new version of Fuel which will refuse to read my saved files, so that I will have to conve

Re: [Pharo-users] How to move data between Pharo versions

2015-05-29 Thread PBKResearch
Hello all Thanks for the comments. I should have made myself clearer in my second post (moral: don’t post after midnight!). The original query related to a simple case, which I had solved, but which alerted me to the problem of incompatible versions in Fuel. The next stage of my work (still

[Pharo-users] Pastell Collection?

2015-05-30 Thread PBKResearch
Hello In analysing XML documents produced by XMLHTMLParser, I sometimes find results presented as a PastellCollection. I have found this class in the System Browser, as a subclass of OrderedCollection, but there is no class comment. Reading the method code does not help me find out what it does

Re: [Pharo-users] brick/bloc examples missing FILOStack

2015-06-01 Thread PBKResearch
Maybe a FILOStack has lots of very thin layers? (http://en.wikipedia.org/wiki/Filo) Best wishes Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Sven Van Caekenberghe Sent: 01 June 2015 08:13 To: Any question about pharo is w

Re: [Pharo-users] ZnClient and percent characters

2015-06-10 Thread PBKResearch
There is a simpler way than Norbert’s suggestion. Find the class ZnResourceMetaUtils (in the package Zinc-Resource-Meta-Core). Locate the class side method #queryKeyValueSafeSet. Remove the comma from the string. With this change your ‘Google’ example generates the query line with the ‘%2C’ enco

Re: [Pharo-users] ZnClient and percent characters

2015-06-11 Thread PBKResearch
um 01:22 schrieb PBKResearch mailto:pe...@pbkresearch.co.uk> >: There is a simpler way than Norbert’s suggestion. Find the class ZnResourceMetaUtils (in the package Zinc-Resource-Meta-Core). Locate the class side method #queryKeyValueSafeSet. Remove the comma from the string. With this

Re: [Pharo-users] ZnClient and percent characters

2015-06-11 Thread PBKResearch
Sven As I read the code, there are two methods in ZnMetaResourceUtils class which specify percent encoding of queries, #queryKeyValueSafeSet and #querySafeSet. The first is used in encoding the (key, value) pairs, the second in encoding the fragment after the #. It is not clear whether we need

Re: [Pharo-users] ZnClient and percent characters

2015-06-11 Thread PBKResearch
No offense meant. I assumed you would know the term. Sorry! Henry explained it quite good what I meant. Norbert Am 11.06.2015 um 09:51 schrieb PBKResearch mailto:pe...@pbkresearch.co.uk> >: I don’t quite understand Norbert’s comment. Does ‘monkey’ apply to me or to what I hav

Re: [Pharo-users] ZnClient and percent characters

2015-06-11 Thread PBKResearch
Sven One thing which has not been looked at in this discussion is why Jimmie's first attempt to solve the problem failed. He replaced every comma in the query by its percent encoding, '%2C'. This failed because ZnClient replaced this by '%252C', i.e. it percent encoded the percent sign. In my f

Re: [Pharo-users] ZnClient and percent characters

2015-06-12 Thread PBKResearch
...@lists.pharo.org] On Behalf Of Norbert Hartl Sent: 11 June 2015 17:07 To: Pharo users users Subject: Re: [Pharo-users] ZnClient and percent characters Am 11.06.2015 um 16:51 schrieb PBKResearch mailto:pe...@pbkresearch.co.uk> >: Norbert Apology accepted – I had never heard this

Re: [Pharo-users] ZnClient and percent characters

2015-06-12 Thread PBKResearch
characters Am 12.06.2015 um 12:03 schrieb PBKResearch mailto:pe...@pbkresearch.co.uk> >: Norbert Some comments on your latest post below. I just wrote because you told Jimmie to alter a method of a third-party library. And that is a no-go. Zinc, like almost all of Pharo,

Re: [Pharo-users] HTML Parser w. custom nodes

2015-06-13 Thread PBKResearch
Sean XMLHTMLParser is a subclass of XMLDOMParser, which allows the specification of a node factory to provide custom handling of nodes. Depending on what you want to achieve, this might help. Best wishes Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.

Re: [Pharo-users] Rephrasing my question on Stackoverflow (Re: [Moose-dev] Re: Tree/Outliners of playgrounds, markdown inside comments and some quick medium size dreams for Pharo/Smalltalk)

2014-08-09 Thread PBKResearch
Hi Offray Well, none of the experts has come forward to help, so maybe I can comment as almost a complete beginner. I think you need two additional bits of specification in your example to get the output you want: a. To show the node titles in the #tree pane, you need to add a format: clause,

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread PBKResearch
Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to chan

[Pharo-users] Using Playground on Pharo 3.0

2014-09-05 Thread PBKResearch
Hello I have been playing with Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro, trying to copy and paste code from e-mails in another thread. However, if I open a Playground (which is what I get when I click 'Workspace' in the World Menu), I find that the right click menu does not have an

Re: [Pharo-users] not a smalltalk!

2014-09-06 Thread PBKResearch
I don’t know what technical incompatibilities may exist, but for many practicalities Pharo is compatible with Squeak and other dialects. I am using an application (Todd Blanchard’s HTMCSS parser and validator) which was originally written for Squeak. Some years ago I ported it to Dolphin Smallta

Re: [Pharo-users] Starting TWM

2015-07-11 Thread PBKResearch
http://smalltalkhub.com/#!/~LaurentLaffont/TilingWindowManager Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of H. Hirzel Sent: 11 July 2015 06:04 To: Any question about pharo is welcome Subject: Re: [Pharo-users] Starting TWM Wh

[Pharo-users] FileLocator problem?

2015-07-30 Thread PBKResearch
Hello Out of curiosity I tried to run the snippet which Alexandre Bergel posted yesterday under the name 'Script of the day'. It failed, but nothing to do with the script itself. The problem is that it fails on the line: 'FileLocator documents allChildren.' The debugger message is "Directory do

Re: [Pharo-users] FileLocator problem?

2015-07-30 Thread PBKResearch
eal path of your directories is to right click on one and go to "Properties" => "Location". Note also that Windows uses "\" instead of "/" for paths. I don't know if it is relevant in Pharo though. Cheers, Matthieu 2015-07-30 11:43 GMT+0

Re: [Pharo-users] How to play audio files with Pharo ?

2015-11-18 Thread PBKResearch
Hello If you read https://pharoweekly.wordpress.com/2015/07/04/google-speech-engine/, there is a reference to playing back the .mp3 output of the Google speech engine. I can’t find the package referred to with the class StreamingMP3Sound; maybe Sean deNigris can help? Hope this helps

Re: [Pharo-users] Creation form from PNG file very slow on Pharo 4 and 5

2016-01-19 Thread PBKResearch
Denis Very interesting. It would be more interesting if you could save your test image as a .png file, and then include reading with PNGReadWriter in your comparison. This would help to confirm or refute the original point made by Dimitris, that reading from .png is particularly slow. Pe

Re: [Pharo-users] GSOC 2016 Application update

2016-02-17 Thread PBKResearch
Alexandre I would strongly disagree with your first proposed change. In my understanding (English is my native language), 'popularity' is a mass noun, not countable, hence the 'an' is incorrect. Wiktionary, based on an ancient edition of Webster, allows the possibility of countable use, but the

Re: [Pharo-users] If you have to do web data scraping, what tool would you use?

2016-06-27 Thread PBKResearch
Hello I have used Soup, but I now prefer XMLHTMLParser, because I find it easier to relate the structure of the XML output to that of the original web page. It is also possible to use XPath to locate the target area more quickly. I particularly like Monty’s ‘Smalltalkish’ adaptation of XPath

Re: [Pharo-users] If you have to do web data scraping, what tool would you use?

2016-06-29 Thread PBKResearch
Bernardo Being now retired, I do programing just for intellectual stimulation. Your problem looked as though it would provide more interest than cryptic crosswords or Sudoku, and it touches on areas of Pharo use that I have some experience with. So… The attached file, BernardoDemo.st, sh

[Pharo-users] Provide a mapping for a collection of s in NeoJSON

2016-06-30 Thread PBKResearch
Hello I have recently used NeoJSON for the first time. All went pretty well, but I would like to make a small tweak to the output, which probably involves defining a mapping. I have read through the information in the NeoJSON pdf, and also looked at the class comments, but I am a bit lost. Cou

Re: [Pharo-users] Provide a mapping for a collection of s in NeoJSON

2016-06-30 Thread PBKResearch
-> self factors; add: 'nutrients' -> self nutrients; yourself) i just implement my own writing for my objects. HTH On Thu, Jun 30, 2016 at 12:06 PM, PBKResearch mailto:pe...@

[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] Coding XPath as Smalltalk

2016-09-01 Thread PBKResearch
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 mailto:pe...@pbkresearch.co.uk> > a écrit : Hello I am using XPath as a way of dissecting web pages, especiall

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-01 Thread PBKResearch
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Hernán Morales Durand Sent: 01 September 2016 18:54 To: Any question about pharo is welcome Subject: Re: [Pharo-users] Coding XPath as Smalltalk Hi Peter, 2016-09-01 10:26 GMT-03:00 PBKResearch mailto:pe

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-03 Thread PBKResearch
;, 'comment()', 'element(name)'. Filters aren't officially supported with that syntax, but you can always use select: on the result. ?? was removed, but I might add it back as shorthand. Filters are implemented differently now. > From: PBKResearch > To: pharo-us

Re: [Pharo-users] Coding XPath as Smalltalk

2016-09-03 Thread PBKResearch
monty Sent: 03 September 2016 13:00 To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Coding XPath as Smalltalk > Sent: Saturday, September 03, 2016 at 5:30 AM > From: PBKResearch > To: "'Any question about pharo is welcome'" > Subject: Re: [Pharo-users]

[Pharo-users] PunQlite problems

2016-09-05 Thread PBKResearch
Hello I am using Moose 6.0 (Pharo 5.0 Latest update: #50761) on Windows 10. I have installed PunQLite following the instructions in https://github.com/mumez/PunQLite. I have run all the examples that involve using files, and everything seems OK. I have tried creating a database using my own dat

Re: [Pharo-users] PunQlite problems

2016-09-05 Thread PBKResearch
Hi - just tried a further experiment, with more mysterious results. I created a database in memory with a subset of my data. This time the program will retrieve the values as well as the keys. However, the value presented is just the first 1024 bytes, i.e. the first buffer full. In addition, in the

Re: [Pharo-users] PunQlite problems

2016-09-06 Thread PBKResearch
baseline: 'PunQLite'; load. … even if it is basically the same (and we submit changes to mumez repository too), this is the correct place for us :) cheers, Esteban On 06 Sep 2016, at 00:37, PBKResearch mailto:pe...@pbkresearch.co.uk> > wrote: Hi – just tried

[Pharo-users] Another PunQLite problem?

2016-09-07 Thread PBKResearch
Hello I have been exploring further, following problems mentioned in an earlier post, and I have identified what looks like a definite bug. I can't say whether it explains any of my earlier problems, but it seems worth mentioning in its own right. To be clear, I am using the version posted

Re: [Pharo-users] [ANN] Territorial

2016-09-07 Thread PBKResearch
Stef > We should not have "The Pharo Way" (TM) or "No way!"... suddenly > Markus talk about feedback loops comes to mind, particularly the slide > on page 53, regarding "An open source smalltalk ignoring all community > contributions"[2]. This is far for being t

Re: [Pharo-users] [ANN] Territorial Re-Licensing

2016-09-08 Thread PBKResearch
Well did he? All I saw was an attempt to justify what he had said, in terms of the difficult history etc. Forceful argument is fine, but a personal attack like the one Offray quoted is unforgiveable. It could be put to bed if Stef would just say ‘sorry’ for that. But I’m not holding my breath.

Re: [Pharo-users] ZnClient GET, but just the content of the tag?

2016-11-27 Thread PBKResearch
Paul Not sure if this is helpful - I have not tried it out, but it may give you a pointer. As Sven says, you need to parse a stream and be able to stop when you reach the desired point. If instead of Soup you use XMLHTMLParser, this has streaming siblings called SAXHTMLHandler and SAX2HTMLParser.

Re: [Pharo-users] ZnClient GET, but just the content of the tag?

2016-11-29 Thread PBKResearch
, I don't know what is the best way to convert it into a string, perhaps this: text := (result second inject: (WriteStream on: '') into: [ :stream :char | stream nextPut: char. stream ]) contents Cheers, Jan [1]: https://github.com/kursjan/petitparser2 On Sun, Nov 27, 201

Re: [Pharo-users] [ANN] Pharo Association: Join or Renew now!

2017-02-16 Thread PBKResearch
Hello Marcus I decided to join the Association. Just one oddity in the sign up process. There is a mandatory question about public listing, with just one box to tick, saying I want to be listed. The system won’t let you proceed unless you answer this question, and the only permitted answer i

Re: [Pharo-users] Hot to retrieve values from Nested Dictionaries

2017-04-25 Thread PBKResearch
Browsing in Pharo, I found that Dictionary has a subclass KeyedTree, which is in effect a set of nested dictionaries. Retrieval is by quoting a path, which is simply an array of keys. So in your case it would read: dict1 atPath: #(’key1’ ‘key2’ ‘key3’). This might be more efficient than repeat

Re: [Pharo-users] Modal Menu in Pharo5

2017-04-28 Thread PBKResearch
Christoph It looks as though MenuMorph>>invokeModal should do what you want. The method comment has a useful code demo. HTH Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Christoph J. Bachinger Sent: 28 April 2017 09:25 To: p

Re: [Pharo-users] [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding

2017-05-12 Thread PBKResearch
With reference to Norbert's comment, there /may/ be an ambiguity about the word 'header' in Udo's reply. It could refer to the http HEAD section, in which case Norbert is of course right. It could also refer to the section of the html file, which is part of the content of the http response. If it

Re: [Pharo-users] [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding

2017-05-15 Thread PBKResearch
extElement, and #nextElementNamed:, which return the next event object(s) as DOM subtrees (searchable with XPath). See the StAXParser class comment for an example. (The StAXHTMLParser class requires XMLParserHTML be installed to work.) > Sent: Friday, May 12, 2017 at 5:30 AM > From: PBK

Re: [Pharo-users] [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding

2017-05-15 Thread PBKResearch
only way out is to rebuild my image from the Moose 6.0 download. Any suggestions gratefully received. Thanks in advance Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 15 May 2017 19:16 To: 'Any question

[Pharo-users] Problems loading XML System ( was Re: [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding)

2017-05-15 Thread PBKResearch
from my current versions. Anyway, I now have a working system with the StaX and HTML parsers, so I can continue to explore. Best wishes Peter Kenny -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of PBKResearch Sent: 15 May 2017 20:44 To: 

Re: [Pharo-users] Problems loading XML System ( was [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding)

2017-05-16 Thread PBKResearch
ialize]] and try running the tests again. > Sent: Monday, May 15, 2017 at 6:50 PM > From: PBKResearch > To: "'Any question about pharo is welcome'" > Subject: [Pharo-users] Problems loading XML System ( was Re: [Zinc] > ZnInvalidUTF8: Illegal leading byte fo

Re: [Pharo-users] Problems loading XML System ( was [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding)

2017-05-20 Thread PBKResearch
arser parseURL: aURLString. StAX is more useful with XML than HTML, because XML documents can be huge. > Sent: Tuesday, May 16, 2017 at 6:39 PM > From: PBKResearch > To: "'Any question about pharo is welcome'" > Subject: Re: [Pharo-users] Problems loading XML Sy

Re: [Pharo-users] Dictionary whose values are dictionaries

2017-05-27 Thread PBKResearch
Stef Cyril is right; there is a class KeyedTree which is a subclass of Dictionary and is in effect a set of nested dictionaries. There was a brief discussion of this in April, initiated by Markus Böhm, who wanted a neat way of looking up entries in nested dictionaries. KeyedTree uses the ide

Re: [Pharo-users] ZnURL and parsing URL with diacritics

2019-03-26 Thread PBKResearch
my code simply reproduces the essentials of ZnPercentEncoder>>encode:. I seem to be trying to monopolize this thread, so I shall shut up now. HTH Peter Kenny -Original Message- From: Pharo-users On Behalf Of PBKResearch Sent: 24 March 2019 15:36 To: 'Any question about p

  1   2   >