Re: [Pharo-users] Image not starting
It's working I integrated it, but I don't understand why it was making my image crash (It wasn't crashing few weeks ago) 2016-07-20 8:35 GMT+02:00 Valentin Ryckewaert : > I'll try this as soon as I'm at work thanks you :) > > 2016-07-19 21:59 GMT+02:00 Nicolai Hess : > >> Now it seems to work, >> I followed you instruction from the first mail and just added another >> line to the load.st >> (unset option to inform about read only changes files) >> >> Metacello new >> smalltalkhubUser: 'Uryon' project: 'Coral'; >> configuration: 'Coral'; >> version: #development; >> onConflictUseIncoming; >> load. >> PharoFilesOpener default unsetInformAboutReadOnlyChanges. >> SmalltalkImage configureSystemAsReadonlyAndQuit:true >> >> >> >> 2016-07-19 0:27 GMT+02:00 Valentin Ryckewaert < >> valentin.ryckewa...@gmail.com>: >> >>> We tried to put it in a file, print in in stdout, put it as an display >>> in the image >>> >>> 2016-07-18 21:48 GMT+02:00 Nicolai Hess : >>> 2016-07-18 14:36 GMT+02:00 Valentin Ryckewaert < valentin.ryckewa...@gmail.com>: > Hello, > > with Pavel we tried to print with a lot of methods but it didn't work, > i'm searching the source of the problem manually. > What do you mean witth: "tried to print with a lot of methods" ? You can not use stdout to print when doing image shutdown and restart, because all file streams will be closed during the shutdown (see session manager). If you want to use stdout to print log messages (right after image startup), you need to make sure that the stdout/err stream are already recreated. (And for example, reinitialize Coral, if coral has reference to the (old) closed filestream. > > 2016-07-18 14:32 GMT+02:00 stepharo : > >> Thanks for the suggestion. It is probably the case. >> >> Le 17/7/16 à 23:27, Nicolai Hess a écrit : >> >> Hi Valentin, Ithink you can not print to stdout during shutdown and >> restart. >> It will end in a Loop of writing to stdout, throwing an exceptions >> because it can not write and trying to log the error on stdout, throwing >> an >> error... >> >> Am 17.07.2016 18:36 schrieb "Valentin Ryckewaert" < >> valentin.ryckewa...@gmail.com>: >> >>> i will do it tomorrow. >>> >>> 2016-07-17 17:23 GMT+02:00 stepharo : >>> did you try to solution proposed? Stef Le 17/7/16 à 16:22, Valentin Ryckewaert a écrit : Hello Stef, no i'm still on it :( I'm going to test every code I modified Valentin 2016-07-17 15:23 GMT+02:00 stepharo : > HI valentin > > > did you solve your problem? > > > Stef > > Le 12/7/16 à 15:33, Valentin Ryckewaert a écrit : > > Hello everyone, > > I'm currently working on the project file policy and I'm having a > problem that I don't understand > > I import my code, configure my image as readOnly (Pharo won't try > to write on changesFiles,source,image), set the folder of the > image in > readonly and try to open the image again and it's not possible, I > don't get > any stacktrace so it's hard to understand the problem. > > PS : If we set back the folder in write mode, it's possible again > to open the image again. > > Here is the code to reproduce the bug, could someone give me a > clue please? > > sudo rm -r testPharo > mkdir testPharo > cd testPharo > > echo "Metacello new > smalltalkhubUser: 'Uryon' project: 'Coral'; > configuration: 'Coral'; > version: #development; > onConflictUseIncoming; > load. > SmalltalkImage configureSystemAsReadonlyAndQuit:true > " >> load.st > > mkdir coral > cd coral > curl get.pharo.org/alpha | bash > curl get.pharo.org/vm60 | bash > pharo-vm/pharo Pharo.image ../load.st > cd .. > chmod -R -w coral > coral/pharo-vm/pharo coral/Pharo.image > > > >>> >> > >>> >> >
Re: [Pharo-users] change which browser opens when browsing senders/implementors
It was like that in some Pharo version 2016-07-20 2:45 GMT+02:00 Mariano Martinez Peck : > > > On Tue, Jul 19, 2016 at 8:26 PM, PAUL DEBRUICKER > wrote: > >> Which method should I change if when browsing senders/implementors there >> is only one sender or implementor I'd like the Nautilus browser to open? >> >> > +9 > > I would also love this > > > -- > Mariano > http://marianopeck.wordpress.com >
Re: [Pharo-users] SQLite and sure last_insert_rowid
On Sat, Jul 16, 2016 at 02:19:37PM +0800, Hilaire wrote: > In a multi-thread context use of Sqlite, I try to find out how one will > fetch securely the automatically last row index of a Primary key. > > The problem seems to be that between the insert of rows in a table and > the moment you request the last row id, you may have another insert from > another thread in the same database. Hi Hilaire, See http://www.sqlite.org/c3ref/last_insert_rowid.html, especially last paragraph: If a separate thread performs a new INSERT on the same database connection while the sqlite3_last_insert_rowid() function is running and thus changes the last insert rowid, then the value returned by sqlite3_last_insert_rowid() is unpredictable and might not equal either the old or the new last insert rowid. Pierce
Re: [Pharo-users] change which browser opens when browsing senders/implementors
On Wed, Jul 20, 2016 at 03:00:01PM +0200, Denis Kudriashov wrote: > It was like that in some Pharo version Only shortly, because people preferred consistency over convenience, so it was changed back. (Note that there is no correct answer here.) Peter > > 2016-07-20 2:45 GMT+02:00 Mariano Martinez Peck : > > > > > > > On Tue, Jul 19, 2016 at 8:26 PM, PAUL DEBRUICKER > > wrote: > > > >> Which method should I change if when browsing senders/implementors there > >> is only one sender or implementor I'd like the Nautilus browser to open? > >> > >> > > +9 > > > > I would also love this > > > > > > -- > > Mariano > > http://marianopeck.wordpress.com > >
Re: [Pharo-users] change which browser opens when browsing senders/implementors
On 20/07/2016 16:47, Peter Uhnak wrote: > Only shortly, because people preferred consistency over convenience, so it > was changed back. > (Note that there is no correct answer here.) > The correct answer could be the third: make it into a setting :) > Peter > -- Cyril Ferlicot http://www.synectique.eu 165 Avenue Bretagne Lille 59000 France signature.asc Description: OpenPGP digital signature
Re: [Pharo-users] change which browser opens when browsing senders/implementors
2016-07-20 16:47 GMT+02:00 Peter Uhnak : > On Wed, Jul 20, 2016 at 03:00:01PM +0200, Denis Kudriashov wrote: > > It was like that in some Pharo version > > Only shortly, because people preferred consistency over convenience, so it > was changed back. > (Note that there is no correct answer here.) > There is one correct answer according to you then: - A browser able to show a list of implementors / senders. Can be done with RB environments and Nautilus scoping, probably. Thierry > > Peter > > > > > 2016-07-20 2:45 GMT+02:00 Mariano Martinez Peck : > > > > > > > > > > > On Tue, Jul 19, 2016 at 8:26 PM, PAUL DEBRUICKER > > > wrote: > > > > > >> Which method should I change if when browsing senders/implementors > there > > >> is only one sender or implementor I'd like the Nautilus browser to > open? > > >> > > >> > > > +9 > > > > > > I would also love this > > > > > > > > > -- > > > Mariano > > > http://marianopeck.wordpress.com > > > > >
Re: [Pharo-users] change which browser opens when browsing senders/implementors
Hi Thierry, The reason I want the change for myself is that most of the time I want to be in a browser where I can right click on code and have a refactoring menu pop up. Does your message flow browser support that? I haven't looked at it and don't often remember it exists. Paul Thierry Goubier wrote > 2016-07-20 16:47 GMT+02:00 Peter Uhnak < > i.uhnak@ > >: > >> On Wed, Jul 20, 2016 at 03:00:01PM +0200, Denis Kudriashov wrote: >> > It was like that in some Pharo version >> >> Only shortly, because people preferred consistency over convenience, so >> it >> was changed back. >> (Note that there is no correct answer here.) >> > > There is one correct answer according to you then: > > - A browser able to show a list of implementors / senders. > > Can be done with RB environments and Nautilus scoping, probably. > > Thierry > > > >> >> Peter >> >> > >> > 2016-07-20 2:45 GMT+02:00 Mariano Martinez Peck < > marianopeck@ > >: >> > >> > > >> > > >> > > On Tue, Jul 19, 2016 at 8:26 PM, PAUL DEBRUICKER < > pdebruic@ > > >> > > wrote: >> > > >> > >> Which method should I change if when browsing senders/implementors >> there >> > >> is only one sender or implementor I'd like the Nautilus browser to >> open? >> > >> >> > >> >> > > +9 >> > > >> > > I would also love this >> > > >> > > >> > > -- >> > > Mariano >> > > http://marianopeck.wordpress.com >> > > >> >> -- View this message in context: http://forum.world.st/change-which-browser-opens-when-browsing-senders-implementors-tp4907179p4907264.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] change which browser opens when browsing senders/implementors
Hi Paul, Le 20/07/2016 17:34, Paul DeBruicker a écrit : Hi Thierry, The reason I want the change for myself is that most of the time I want to be in a browser where I can right click on code and have a refactoring menu pop up. This is exactly what I expect, too. So I implemented it. Does your message flow browser support that? The Alt browser? Yes, it takes over the message list and replaces it with a system browser scoped to the implementors/senders results (any search, even finder results, are handled). You loose some of the features of the usual message list(*) and you gain the browser features instead: per package / class classification, browser menu and workflow. The funiest is scoping over scoping: a search from a search result apply the search only to the result, not to the whole system. I haven't looked at it and don't often remember it exists. There is also the flow browser which present an interesting view on those search and code activities. Thierry (*) The message list is dynamic: compiling a new method matching the message list original query adds it to the message list. The AltBrowser variant is static and does not take in account those changes. Paul Thierry Goubier wrote 2016-07-20 16:47 GMT+02:00 Peter Uhnak < i.uhnak@ >: On Wed, Jul 20, 2016 at 03:00:01PM +0200, Denis Kudriashov wrote: It was like that in some Pharo version Only shortly, because people preferred consistency over convenience, so it was changed back. (Note that there is no correct answer here.) There is one correct answer according to you then: - A browser able to show a list of implementors / senders. Can be done with RB environments and Nautilus scoping, probably. Thierry Peter 2016-07-20 2:45 GMT+02:00 Mariano Martinez Peck < marianopeck@ >: On Tue, Jul 19, 2016 at 8:26 PM, PAUL DEBRUICKER < pdebruic@ > wrote: Which method should I change if when browsing senders/implementors there is only one sender or implementor I'd like the Nautilus browser to open? +9 I would also love this -- Mariano http://marianopeck.wordpress.com -- View this message in context: http://forum.world.st/change-which-browser-opens-when-browsing-senders-implementors-tp4907179p4907264.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] change which browser opens when browsing senders/implementors
On 20/07/16 16:53, Cyril Ferlicot Delbecque wrote: The correct answer could be the third: make it into a setting :) Nah, that would always be the wrong answer :) Stephan
Re: [Pharo-users] SQLite and sure last_insert_rowid
Hi Pierce, Yes, I already knew about this problem and documentation. That's why I do it in a transaction. My question was about be unsure my code example do it correctly in Pharo. Thanks Hilaire Le 20/07/2016 21:09, Pierce Ng a écrit : > On Sat, Jul 16, 2016 at 02:19:37PM +0800, Hilaire wrote: >> > In a multi-thread context use of Sqlite, I try to find out how one will >> > fetch securely the automatically last row index of a Primary key. >> > >> > The problem seems to be that between the insert of rows in a table and >> > the moment you request the last row id, you may have another insert from >> > another thread in the same database. > Hi Hilaire, > > See http://www.sqlite.org/c3ref/last_insert_rowid.html, especially > last paragraph: > > If a separate thread performs a new INSERT on the same database connection > while the sqlite3_last_insert_rowid() function is running and thus changes > the > last insert rowid, then the value returned by sqlite3_last_insert_rowid() is > unpredictable and might not equal either the old or the new last insert > rowid. > > Pierce > > -- Dr. Geo http://drgeo.eu
[Pharo-users] Customizing GTSpotter
I want customize GTSpotter so when it's called upon a specific morph has a different behavior. Because I will be building a node system I want to search only through nodes and sort them to categories. In essence I will be building a visual coding language very similar to Unreal's Blueprints. Can GTSpotter do this in a easy way ? I have read human assessment blog posts on GTSpotter but they focus on extending it than modifying it's basic behavior. Basically I want a secondary GTSpotter with heavily customized behavior.