Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread Marcus Kemper via Pharo-users
--- Begin Message --- Good morning, Thanks for the hint. I will check the settings. Kind regards Marcus jtuc...@objektfabrik.de schrieb am Mi., 5. Aug. 2015 05:58: > Oh, and Marcus: > > Please check your mail program: I only see your mail text as an > attachment, and on some mail readers (e.g

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread jtuc...@objektfabrik.de
Oh, and Marcus: Please check your mail program: I only see your mail text as an attachment, and on some mail readers (e.g. iPhone) it is not even properly displayed. It is hard to cite your text and answer in the way we're used to do on mailing lists... Joachim -- -

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread jtuc...@objektfabrik.de
Am 05.08.15 um 05:44 schrieb mtk via Pharo-users: Hi Marcus, good to hear you could make it work. Thankfully, Attila gave us the final explanation for the regex mystery ;-) So I guess it is best to stick with "normal" strings for the most part for several reasons: * performance: (matching str

Re: [Pharo-users] OSProcess crashes when launching a command

2015-08-04 Thread Thierry Goubier
Hi Damien, do you have other OSProcess commands crashing in the same way? Thierry Le 04/08/2015 20:02, Damien Cassou a écrit : Hi, when evaluating this, Pharo crashes (log attached): OSProcess command: 'firefox' this used to work fine. I'm on Pharo4.0

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Attila, many thanks for your explanation - now it works by simply putting: GET:'/bac/' -> [:req | BloodAlcoholCalculator a:(req at:#a) r:(req at:#r) kg:(req at:#kg) ]; So you and Joachim were both right... :-) That makes it even easier to work with teapot. Kind regar

Re: [Pharo-users] Create maps from an SVG file in Roassal

2015-08-04 Thread stepharo
Le 2/8/15 03:02, Alexandre Bergel a écrit : Yes, it would be great! I first tried to understand the SVG parser in Athens, Uh? Of course it is working. You can import SVG file. but I could not make it to work. So I wrote the one in Roassal. Usually this approach does not work because two hal

Re: [Pharo-users] PharoByExample Announcements chapter

2015-08-04 Thread stepharo
I'm not happy with the announcements description. I think that it is important to present patterns because Announcements are simple but their use is not. Le 4/8/15 00:19, Peter Uhnák a écrit : Hi, shouldn't there be Announcements chapter in the new PharoByExampleUpdated book? Because I don't

[Pharo-users] OSProcess crashes when launching a command

2015-08-04 Thread Damien Cassou
Hi, when evaluating this, Pharo crashes (log attached): OSProcess command: 'firefox' this used to work fine. I'm on Pharo4.0 Latest update: #40609 and ConfigurationOfOSProcess-ThierryGoubier.41 $ pharo-vm-x --version

Re: [Pharo-users] Fuel Error

2015-08-04 Thread Sean P. DeNigris
Mariano Martinez Peck wrote > Would be nice to have a test case that covers your case.. I can send you privately an image and the fuel file if you'd like... - Cheers, Sean -- View this message in context: http://forum.world.st/Fuel-Error-tp4840866p4840941.html Sent from the Pharo Smalltalk

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread Attila Magyar
Hi Marcus, It seems you're trying to define a matcher on the query parameters. It's not going to work. An url consist of path a the query part. These are separeted by a question mark. http://localhost:1701/foo/bar?q1=xx&q2=yy In this example /foo/bar is the path, and q1 and q2 are the query p

Re: [Pharo-users] Tabular: XLSX import

2015-08-04 Thread Юрий Мироненко
Thank you Vincent. Some things is much clearer for me now. *It's shame on me that I lost all this Metacello progress, especially taking into account I was on the ESUG conference where it was presented. It was my only conference unfortunately.* I see that you already started this job: you added Co

[Pharo-users] handling exceptions in jniport

2015-08-04 Thread Tudor Girba
Hi Joachim, As I mentioned in a previous post, all Pharo Exceptions are swallowed during a dispatch from Java. This means that during a callback from Java to Pharo, you also cannot debug. >From the looks of things, I see the issue is here: JavaCallbackRegistry>>safeDispatch: aRequest to: a2Block

Re: [Pharo-users] Fuel Error

2015-08-04 Thread Mariano Martinez Peck
On Mon, Aug 3, 2015 at 10:00 PM, Sean P. DeNigris wrote: > Mariano Martinez Peck wrote > > Those kind of errors... > > Thanks for the detailed answer! > > It seems that anObsoleteXyz snuck into my graph :/ Once I replaced it with > the-class-I-thought-it-was, everything straightened out. > >

Re: [Pharo-users] Garage, Glorp, PostgreSQL and Cursors

2015-08-04 Thread Guillermo Polito
Helloo :) First Tomasso, it's nice to know it's working well for you :). We need feedback and contributions, even the smallests (like docs, or blogposts with your experiences or tutorials). Answering your question, GarageGlorp does not yet use the cursors from the Garage drivers. I do not kno

Re: [Pharo-users] Tabular: XLSX import

2015-08-04 Thread Blondeau Vincent
Hi, To add a configuration in the catalog, first you should have a configuration for your project. You can create it with the versionner if needed. Second, you have to add some methods adding meta-description to your project. The versionner do it for you: in the configuration list, select your

Re: [Pharo-users] Sharing Inter-image Data

2015-08-04 Thread Mariano Martinez Peck
Well...there is when you find out that simple persistency solutions may start being a problem for you. Most of the times is as Joachim says, that is, the synchronism of data is managed by the persistency solution. Could be mongo (but I never tried with multiple images), could be Glorp, GemStone, Ma

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Joachim, thanks for your attention to this issue. I tried to change it to #a, #r or #kg, but this didn't work. It works with the following by leaving the '\?' out: GET:'\/bac\/a=(\d*)&r=(\d*.\d*)&kg=(\d*)' asRegex -> [:req | BloodAlcoholCalculator a:(req at:1) r:(req at:

Re: [Pharo-users] MongoDB: console commands? query embedded indexed fields?

2015-08-04 Thread Sabine Manaa
Hi Norbert, I didn't want to use "use database" for queries but for defining the index from within smalltalk. But if creating indexes is not supported, I will set the indexes within the mongo console. The explain option is very helpful I did not know this. Your answer was very helpful for me, th

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread jtuc...@objektfabrik.de
Am 04.08.15 um 13:34 schrieb Marcus Kemper via Pharo-users: Hi Marcus, I am slowly getting what Teapot does... So you setup an Association with a String that matches the URL of an incoming request as key and its handler block as value. So you should be able to use "req at: #r" also when using

Re: [Pharo-users] PharoByExample Announcements chapter

2015-08-04 Thread Dimitris Chloupis
I dont know. That will depend on how useful Announcements are. I have not seen them used so heavily in Pharo. Also it will depend whether PBE should be considered a begineers book. I think it would be better if we keep it a begineers book and have another book called "Advanced Pharo By Example" for

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread Marcus Kemper via Pharo-users
--- Begin Message --- Hi Joachim, my first steps in teapot used the named parameters (and manually sending the URL), but as soon as I used the HTML form, I had to switch to regex (I thought). Maybe this was wrong, but your hint concerning the 'req' will certainly yield new insights. I will try to

Re: [Pharo-users] Sharing Inter-image Data

2015-08-04 Thread jtuc...@objektfabrik.de
Sean, I guess most guarding is based on optimistic locking these days. But neither Seaside nor Amber imposes any mechanism on the developer. So you are on your own there. I have been using TOPLink or Glorp and Seaside for a few years now, and all I've seen or used so far used optimistic locki

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread jtuc...@objektfabrik.de
Marcus, Hi Joachim, thanks for your feedback. Concerning the order of the values I rely solely on the teapot error message. The way I understand your code snippet, you access the url parameters by using "at: 1". I have never used Teapot, but would be surprised if it encourages this. In HTT

[Pharo-users] Sharing Inter-image Data

2015-08-04 Thread Sean P. DeNigris
When using any tool that exposes objects outside the image - Seaside, Amber, rST - how does one guard against simultaneous edits? Up until now, I've been perfectly content with single images and read-only web apps, but now that I'm considering some stateful web apps/services, I can't remember ever

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Joachim, thanks for your feedback. Concerning the order of the values I rely solely on the teapot error message. Besides I have no idea how I could make this GET request independant from the order the HTML form generated. Maybe with Javascript? But I assume this simple sce

[Pharo-users] Seamless

2015-08-04 Thread Sean P. DeNigris
1. What is the status of this project (http://ss3.gemstone.com/ss/Seamless.html)? I see the last commit is in April. Does it "work"? 2. Can the communication be done securely? If I had two images each running on a server in a different physical location, could they communicate over something like S

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread jtuc...@objektfabrik.de
Marcus, I have no answers to your questions, but it seems like you expect the URL parameters in a specified order. I am nat sure this is a good idea at all. So independent on why the order of the parameters is changed and by whom: you shouldn't rely on it. Sure, this doesn't really help to un

[Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Dear Smalltalkers (Pharonistas?), while trying out teapot in Pharo4, I encountered the following: I have made a plain HTML form which sends data to a teapot URL. Here is what the browser is sending: http://localhost:1701/bac/?a=88&r=0.7&kg=77 To answer this request via teap

Re: [Pharo-users] MongoDB: console commands? query embedded indexed fields?

2015-08-04 Thread Norbert Hartl
Sabine, > Am 04.08.2015 um 07:08 schrieb Sabine Manaa : > > Hi, > > I have 2 questions concerning use of mongoDB classes: > 1) how can I send mongo console commands directly from smalltalk > 2) how to query on an embedded collection with an index > > Model: > I have trips and each trip has an

[Pharo-users] Glamour Magritte Example Broken

2015-08-04 Thread Gareth Cox
Hi all I've just tried to use GLMAnnouncingCollection and found something odd. When you use it and its passed into a block (such as TableColumn computation:) it passes in the whole collection, not each item. Change the collection to OrderedCollection and it works as expected (except you lose th