Re: [Pharo-users] Code completion in Pharo?

2018-05-26 Thread p...@highoctane.be
Try Cmd-q or Ctrl-q ( and right alt click on Windows). Spotter also has suffixes like #im #cl #sen to be put after a few keystrokes. Spotter: shift-enter (who knows). Phil On Sat, May 26, 2018, 22:16 Tim Mackinnon wrote: > That’s exactly the exploratory attitude we like to

Re: [Pharo-users] Code completion in Pharo?

2018-05-26 Thread Tim Mackinnon
That’s exactly the exploratory attitude we like to see... I think the code completer is pluggable and can be selected in the settings (I think there are 2, and their history is probably in this list somewhere), so you can try your own too. Tim Sent from my iPhone Sent from my iPhone > On

Re: [Pharo-users] Code completion in Pharo?

2018-05-26 Thread Andrzej Olszak
Hi Tim and Nicole, Thanks for great tips. The click+keyModifier actions are extremely useful, and combined with breakpoints make for a great way of 'peeking under the hood' of the existing features. Also, I've just found a perfect piece of real code to do some learning and experimenting on - it

Re: [Pharo-users] Serving files with ZnServer

2018-05-26 Thread Hilaire
Le 26/05/2018 à 12:09, Sven Van Caekenberghe a écrit : ZnStaticFileServerDelegate does not automatically generate an index for a directory. Ok, understood. BTW, you do no really need to go via files, you can just serve resources directly. yes,  I was just trying. Hilaire -- Dr. Geo

Re: [Pharo-users] Serving files with ZnServer

2018-05-26 Thread Sven Van Caekenberghe
on macOS server := ZnServer startDefaultOn: 9595. server delegate: ( ZnStaticFileServerDelegate new directory: '/Users/sven/' asFileReference ; prefixFromString: 'files'; yourself). server logToTranscript. FileLocator home / 'small.html' writeStreamDo: [ :out |

Re: [Pharo-users] Serving files with ZnServer

2018-05-26 Thread Norbert Hartl
What shall it do with the directory? Did you try to access a file? Norbert > Am 26.05.2018 um 10:28 schrieb Hilaire : > > Hi, > > On P7, I try to server files with ZnServer, but got trouble: > > server := ZnServer startDefaultOn: 9595. > server delegate: ( >

Re: [Pharo-users] Macros?

2018-05-26 Thread Norbert Hartl
I need to say that this is not a good use case. First and most important is that you should not have deployment switches in your code. Your system should be configured for a special deployment mode not detecting in code. Second but not least important you add references to test classes in your

[Pharo-users] Serving files with ZnServer

2018-05-26 Thread Hilaire
Hi, On P7, I try to server files with ZnServer, but got trouble: server := ZnServer startDefaultOn: 9595. server delegate: ( ZnStaticFileServerDelegate new     directory: '/home/hilaire' asFileReference ;     prefixFromString: 'files';     yourself). server logToTranscript. server start. The

Re: [Pharo-users] Macros?

2018-05-26 Thread Denis Kudriashov
2018-05-26 9:33 GMT+03:00 Clément Bera : > > > On Sat, May 26, 2018 at 8:07 AM, Denis Kudriashov > wrote: > >> Hi >> >> 2018-05-26 8:46 GMT+03:00 Clément Bera : >> >>> Just mentioning another use-case: >>> >>>

Re: [Pharo-users] Macros?

2018-05-26 Thread Clément Bera
On Sat, May 26, 2018 at 8:07 AM, Denis Kudriashov wrote: > Hi > > 2018-05-26 8:46 GMT+03:00 Clément Bera : > >> Just mentioning another use-case: >> >> getDatabaseInstance >> ^ (Production CifTrue: [Database] CifFalse: [MockDatabase]) new >> > >

Re: [Pharo-users] Macros?

2018-05-26 Thread Denis Kudriashov
Hi 2018-05-26 8:46 GMT+03:00 Clément Bera : > Just mentioning another use-case: > > getDatabaseInstance > ^ (Production CifTrue: [Database] CifFalse: [MockDatabase]) new > I think following code will work: getDatabaseInstance ^ (Production ifTrue: [Database]