[Pharo-users] Little challenge: Best way to read stream and count line returns
Hello everyone, I often needs to read some streams these days and to get some infos related to the lines returns for example. Because of the CRLF it is a little complicated sometimes. I have an example of code here: | lfShouldBeCounted char count remaining | lfShouldBeCounted := false. remaining := 0. count := 0. stream position: startPos. [ stream position = endPos ] whileFalse: [ "13 is a CR, 10 a LF" (char := stream next asInteger) = 13 ifTrue: [ count := count + 1. remaining := 0. lfShouldBeCounted := false ] ifFalse: [ char = 10 ifTrue: [ lfShouldBeCounted ifTrue: [ count := count + 1. remaining := 0 ] ifFalse: [ lfShouldBeCounted := true ] ] ifFalse: [ remaining := remaining + 1 ] ] ] With this example I know how many lines where passed between the startPos and the endPos in a stream. I also know how many char there is between the last line return and the endPos. I wanted to know if you had a better way to do that? The way need to be as performant than this snippet. I know some people here can produce a snippet more readable and easier to maintain :) -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
[Pharo-users] Encoding and conversion problem
Hi, I did a refactoring in Moose in order to use the encoding detector that Sven did some weeks ago while reading a file. With the latest stable version of ZincHTTPComponent, I can get the encoding like this: fileReference binaryReadStreamDo: [ :in | (ZnCharacterEncoder detectEncoding: in upToEnd) ] Since we need to read the files a lot, I save the identifier of the encoder using the #identifier method. Then when I read I just want to get the TextConverter corresponding to the encoder in order to read the stream. The problem is that in the case of a file encoded in ISO-8859-1, my instance of ZnSimplifiedByteEncoder return 'iso88591' as identifier and Latin1TextConverter does not have this encoding name in its possibilities. Only 'iso-8859-1'. Should we add 'iso88591' to the Latin1TextConverter? If yes, could we backport this to Pharo 6 please? -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Encoding and conversion problem
On Tue, Jul 18, 2017 at 3:54 PM, Sven Van Caekenberghe wrote: > > These are all aliases [ see: https://en.wikipedia.org/wiki/ISO/IEC_8859-1 ]. > > So you could add it, yes > > But why use TextConverter at all ? > I used this because this is what I found while browsing for code. When I did this code the CI was down I could not access to EnterprisePharo. > You could keep on using the alternative (more modern, cleaner) > ZnCharacterEncoder hierarchy. > > Just open your streams binary and wrap a ZnCharacterReadStream around them > with the encoding of your choice. > > fileReference binaryReadStreamDo: [ :in | (ZnCharacterReadStream on: in > encoding: #latin1) ... ] > I just tried to use this but it broke my code. For example, ZnCharacterReadStream does not understand #position: while the ReadStream hierarchy understand it. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Encoding and conversion problem
On Tue, Jul 18, 2017 at 4:27 PM, Sven Van Caekenberghe wrote: > > In general, the stream API is much, much too wide, IMHO. Not all streams > (hence the word stream) can see all their content all the time (think of > network or encrypted streams, most work with a sliding buffer, but in general > the idea of a stream is to *not* hold everything in memory at the same time). > If you look at it that way, many operations stop making sense. Positioning is > one of them. Even in Java not every stream is positionable, and even if they > are positionable, the positioning can fail because you go too far (back). > > In all parsing code that I write I try to only use 1 item look ahead (a > single item buffer), which means you can #peek 1 item, that's it. > > I know that we have parsing code that was written with other assumptions. > Such code is not stream based, IMHO. > > The solution (or rather workaround) is easy: read everything #upToEnd and > turn it into a good old ReadStream again. You will give the use infinite > positioning over all of the content, at the cost of more memory usage. When I'll have time I'll check if we can avoid the use of #position:, but in any case we cannot use #upToEnd because we need to stay optimized. At the begining we where doing that but it's too long for our algos. Sometime we just want to read what it between the line 3, column 5 and the line 6, column 9. If the file has thousands of line we lose to much time to read everything. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Problem to access the "book compilation farm"
On Wed, Jul 19, 2017 at 2:24 PM, Matteo via Pharo-users wrote: > > > -- Forwarded message -- > From: Matteo > To: "Pharo is welcome (ML)" > Cc: > Bcc: > Date: Wed, 19 Jul 2017 14:24:18 +0200 > Subject: Problem to access the "book compilation farm" > Dears, > > I cannot accesses the site: > https://ci.inria.fr/pharo-contribution/view/Books/ > > Is there some problem with the server? > > Hi, The CI is down for an update. It should come back tomorrow or later this week. > Further, I saw serval "strange" messages on the main page of the > Pharo forum, http://forum.world.st/Pharo-f1294836.html. > > Should these messages be removed? > > > Thanks, > > Matteo. > > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] problem with FLMaterializer
On sam. 5 août 2017 at 13:10, Johannes Brauer wrote: > Peter > > Your suggestion is correct. I correct the expression to > > (FLMaterializer materializeFromFileNamed: aFileRefence *fullName*) > > Now I get another exception. > KeyNotFound: key #'ositive8SmallIntegerClusterJ 4Ü 1‚ ð+ –( %? "< 9 ª 6P M > ¾0 d *ÒD ''x ! Œ 8' not found in SystemDictionary > I think this is a compatibility problem between different Fuel versions. > Hi, If you use Fuel to serialize objects with Pharo 4, then you can only materialize them with a Fuel from Pharo 4. Other versions of Fuel will not be able to read them. > Johannes > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pharo-dev] including Pillar in Pharo image by default
On mar. 15 août 2017 at 12:02, H. Hirzel wrote: > P.S. 3 And I realize that there is an pillar issue > > "Create a small parser independant of PetitParser for a light pillar" > > https://github.com/pillar-markup/pillar/issues/174 > > AFAIK this parser already exists. The hand written parser from in the > Pier CMS. Some small adaptations are probably necessary. > > Hi! Yes, this parser exists. When I created PetitPillar I extracted it into its own package to not lose the code. So it is in the Pillar repository even if it is not loaded by default. In this issue I wanted to bring only a subset of this parser for Pharo and add what might be missing. But since people want to create a subset of PetitParser this issue becomes obsolete. > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pillar] Installed the Pillar document preparation system into 6.1, how do I start using it?
On ven. 18 août 2017 at 19:44, H. Hirzel wrote: > Hello > > I installed Pillar through the catalog into Pharo 6.1, I assume. > > I had a look into the Help browser to find some documentation or a > link to the documentation. > > I did not find a menu entry in the world menu to open the tool. > > How do I start using the tool? > > --Hannes > > Hi, I did not check if it is up to date but there is a tutorial here: https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html I hope this can help you to begin. There is no tool actually to use Pillar, you write your files and then there is command lines to generate the output wanted. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pillar] Installed the Pillar document preparation system into 6.1, how do I start using it?
On ven. 18 août 2017 at 21:43, H. Hirzel wrote: > Thank you Cyril for the link to the tutorial. > > > https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html > > I see that Pillar is a command line tool. The welcome example taken > from this tutorial is: > > Pharo.exe Pillar.image pillar export --to=html > --outputFile=welcome welcome.pillar > > How can I run a command like this from within Pharo in a "playground" > (former workspace)? > > Later on I plan to construct a simple GUI with text boxes for Pillar > sources and have some buttons executing these commands. > > --Hannes > > I remember writing a part "Pillar from Pharo" in this doc. I'm not sure it is still up to date but you can try to check part 7 of the doc I sent. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pillar] Installed the Pillar document preparation system into 6.1, how do I start using it?
On ven. 18 août 2017 at 22:09, H. Hirzel wrote: > Exactly. > > Section 7 of > > https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html > > has an example > > > | wiki | > wiki := '!My Document'. > PRPillarParser parse: wiki > > > Or > > PRPillarParser parse: (FileSystem workingDirectory / 'foo.pillar') > readStream > > > and then > > > PRHTMLWriter write: document > > > This put together gives > > PRHTMLWriter write: ( > PRPillarParser parse: (FileSystem workingDirectory / > 'welcome.pillar') > ) > > > If I inspect the result of this expression I get the HTML string. > > Thank you Cyril. This is what I was looking for. > > --Hannes > Happy to see it still works :) I know there was work on Pillar after I wrote this. Maybe there is some functionalities that will need more than those simple examples. By I am not sure and I know that Stephane want to simplify it further. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pillar] Pillar source code of ESUG 2015 presentation? Presentations done with Pillar?
There is some doc in the section 3.12 of the documentation https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html I don't know if everything is here but there is some doc at least :) On Thu, Aug 31, 2017 at 4:08 PM, H. Hirzel wrote: > On 8/31/17, H. Hirzel wrote: >> A useful file which shows what is possible to do slides >> >> https://github.com/SquareBracketAssociates/PharoMooc/blob/master/Slides/1-Templates/Template.pillar > > Correction: > This file shows how to do slides with Pillar > > https://github.com/SquareBracketAssociates/PharoMooc/blob/master/Slides/1-Templates/SlideExample.pillar > > My questions thus are specifically: > > 1. How do I do a title slide? > 2. What do I do inside the ${}$ . >Where do I find documentation on the options for these $ enclosed commands? > > --Hannes > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pharo-dev] The mooc is looking for forum moderators
On Fri, Sep 1, 2017 at 11:37 AM, Stephane Ducasse wrote: > Hi guys > > we are looking for some brave souls to help us helping newbies during > the next run of the mooc > planned for October 16th 2017... > I can help like last year. > https://www.fun-mooc.fr/courses/course-v1:inria+41010+session02/about > > Please let me know if you are interested helping. > > Stef > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Difference between 'do-it' (ctrl d) and 'do-it and go' (ctrl -g)?
On lun. 4 sept. 2017 at 09:59, H. Hirzel wrote: > Hello > > In Pharo 6.1 what is the difference between the > > 'do-it' (ctrl d) and > > 'do-it and go > > menu entry in the playground (see screen shot)? > > Regards > Hannes > Hi, Do it and go will open an inspector *in* the playground with the result of the execution. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
[Pharo-users] Force headless mode
Hi, At Synectique we are working on the deployment of a web application and we would like to force the headless mode. We tried to just override the method SmalltalkImage>>#isHeadless to return true all the time be it is not enough because the image is still opened. It is probabaly the vm that open the window. I know we can add some arguments to the command line to open the image as headless but we want to forbid the user to launch the image without headless to protect the code. Is this possible? Do you have some pointers? Thanks in advance. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Force headless mode
On Tue, Sep 26, 2017 at 5:13 PM, Christophe Demarey wrote: > Hi > > What about deploying a minimal image without UI ? > But, as you probably know, headless mode does not prevent to dump the code. > I just tried to build our tools on a minimal image but it crash when trying to load a github's project. I now added a piece of code to update Metacello to a newer version but it just do nothing without any log. I know there is still some way to get the code but this is the first step to build a real delivery image. > Christophe > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Force headless mode
On Tue, Sep 26, 2017 at 5:59 PM, Esteban Lorenzano wrote: > > > it is not. > specially on windows. > > vm handles the creation of host window and you will always have one. > > now… if you wait one week, I will have ready the (experimental) real headless > VMs. In my tests, they are working fine but we will still need to work when > we want to actually start a world window… but that’s another story ;) > I don't think we can wait Pharo 7 before doing this task. But I can still try it when you're done. With this, will it be possible to totally disable the non headless mode in production? > Esteban > > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Force headless mode
On Tue, Sep 26, 2017 at 7:04 PM, Sven Van Caekenberghe wrote: > > > Why not do as follows: > > (1) add some startup code inside the image that tests if the image is running > headless, if not exit > (2) remove some of the command line handlers (especially the ones that > execute or load code) > > Problem is that you will lock yourself out as well ;-) > > Thank you Sven. We used your solution (1) and it is indeed a good solution. Solution (2) was already in our todo list :) -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Force headless mode
On Tue, Sep 26, 2017 at 8:03 PM, Peter Uhnák wrote: > Out of curiosity... how does enforcing headlessness protects code? Wouldn't > it be still accessible via e.g. TelePharo, or startup script override, or > anything? > > Peter > > This is a first step. This is not all we will do but it is a step making it hard for people who do not know Pharo to access the code. There is no solution that would protect us at 100%, so we want a list of solutions fast to implement and covering a large part of the way to access to the code. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Force headless mode
On Wed, Sep 27, 2017 at 9:21 AM, Stephane Ducasse wrote: > What is important is to understand the ratio attacker vs. defense. > It is important not to be paranoid. > - against who are you protect yourself? > - if you do not ship source code (or if you ofuscate it) > - you can try remove the decompiler I do not think that people will do much. > Now again how much time and for what? > > Stef > We are taking this into consideration. We have several solutions and we will implement te one with the best implementation time/protection ratio. Thank you for the pointers. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
[Pharo-users] Deploying on Linux with LibC version < 2.15
Hi, I am migrating some applications from Pharo 4 to Pharo 6. The new deployment of those applications needs to work on linux with LibC < 2.15. With Pharo 4 there was a special VM[1]. I do not see such VM for Pharo 6. How should we manage those distributions? Thank you in advance. [1] http://files.pharo.org/vm/pharo/linux/old-libc/Pharo-VM-linux-oldLibC.zip -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Deploying on Linux with LibC version < 2.15
On Thu, Oct 5, 2017 at 11:30 AM, Holger Freyther wrote: > > > Which OS has such old versions of LibC? Which LSB standard does it support? > Hi, This is RedHat. I don't have the right to give more info than the fact it is a RedHat with a LibC version < 2.15. I don't know for the LSB support. I can ask but I will probably not know before the end of next week. -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Deploying on Linux with LibC version < 2.15
On 10/5/17, Holger Freyther wrote: > > Hi! > > > for a brief moment you really scared me. I thought you referred to RedHat > Linux 6 which was released in 1999 but you are referring to Red Hat > Enterprise Linux (RHEL). > > As it turns out we have "latest" (as soon as a commit is made to > pharo-vm.git) and hand curated "stable" (hand created source tarballs, > rebuilt from a git commit of opensmalltalk-vm) for RHEL6 and CentOS 6. > > CentOS 6.x: > > # Add the repo > $ yum-config-manager --add-repo > http://download.opensuse.org/repositories/devel:/languages:/pharo:/latest/CentOS_6/devel:languages:pharo:latest.repo > > OR (for stable): > > http://download.opensuse.org/repositories/devel:/languages:/pharo:/latest/CentOS_6/devel:languages:pharo:stable.repo > > # Install 32bit packages (with X11 dependency for *-ui or not) > > $ yum install pharo6-32-ui.i686 or pharo6-32.i386 > > # Install 64bit packages > > $ yum install pharo6-64-ui.x86_64 pharo6-64.x86_64 > > Thank you. Your instructions describes the steps for CentOS 6.x. Are they the exact same steps for RHEL6? Also, I am trying this on a CentOS 6.0 virtual machine and I get this error : [centoslive@livecd test]$ yum-config-manager --add-repo http://download.opensuse.org/repositories/devel:/languages:/pharo:/latest/CentOS_6/devel:languages:pharo:latest.repo Loaded plugins: fastestmirror, refresh-packagekit Usage: "yum-config-manager [options] [section] Command line error: no such option: --add-repo [centoslive@livecd test]$ Is there something else to install before? > > > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Pillar (was Re: Behold Pharo: The Modern Smalltalk)
On ven. 13 oct. 2017 at 12:05, Gour wrote: > On Wed, 11 Oct 2017 17:18:54 + > Dimitris Chloupis > wrote: > > > Well there is a move towards Pillar for class and method commands so > > who knows maybe we will have that soon enough ;) > > Let me say that I'm very happy seeing that Pillar is moving forward (e.g. > addition of support for footnotes) as well as plan for the future (*.epub > support) since I'm considering whether it could serve as single-source > markup > for all of one's writings? > > After migrating from Python-powered static-site-generator (to Hugo) and rst > markup I was considering to use AsciiDoc(tor) markup for all my content, > but, > so far, due to using Emacsm settled to use org-mode instead. Haven't tried > with > slides (yet), but there is Pandoc support for it. > > Therefore, I'd rather see Pillar support in Pandoc which would buy us even > more > import/export capabilities for free instead of focusing on single formats > like > *.odt, *.epub etc. > > Pillar with 1st class support in Pandoc would, imho, improve status of > Pharo > itself making it along with Pillar exceelent tool for development as well > as > for all writing needs - articles, books, documentation, > slide-presentations. > > But it would be nice to make it more transparent where/how can one submit > feature request for Pillar? Hi, I don't have much time so, fast answer: https://github.com/pillar-markup/pillar/issues > > Fogbugs issue trakcer is certainly not the ideal place these days... > > > Sincerely, > Gour > > -- > Everyone is forced to act helplessly according to the qualities > he has acquired from the modes of material nature; therefore no > one can refrain from doing something, not even for a moment. > > > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Travis build failing because of bad CRC
On jeu. 23 nov. 2017 at 23:49, Stephane Ducasse wrote: > This is super strange because I have a quite bad internet connection > at home but I never have such problem just super slow donwload > but this is my connection. > At Synectique we have a connection that can DL at 11Mo/sec on a server, but we regularly get "bad CRC" while using zero conf. Or one execution of zero conf is randomly longer than the others. It does not seems to come from the server/user connection. > Stef > > > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] ZIPArchive usage + FileSystem memory
On Thu, Nov 30, 2017 at 10:10 AM, Guillermo Polito < guillermopol...@gmail.com> wrote: > Hi Juraj, > > The file streams opened in a memory file system are not polymorphic with > the ones in a disk file system :(. > > Can you open an issue and assing it to me? I'll work soon on making all of > them work and yield binary streams. > > > Hi, In July I opened this issue: https://pharo.fogbugz.com/f/cases/20253/MemoryFileSysteFile-shuold-return-a-MultiByteFileStream-as-readStream If you open another one, you can close this one. Or maybe just rename this one with the stream class you intend to use. > -- > > > > Guille Polito > > Research Engineer > > Centre de Recherche en Informatique, Signal et Automatique de Lille > > CRIStAL - UMR 9189 > > French National Center for Scientific Research - *http://www.cnrs.fr > <http://www.cnrs.fr>* > > > *Web:* *http://guillep.github.io* <http://guillep.github.io> > > *Phone: *+33 06 52 70 66 13 <+33%206%2052%2070%2066%2013> > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Why do downloads not use HTTPS by default?
On mar. 12 déc. 2017 at 00:12, Stephane Ducasse wrote: > Thanks marcus. > Should I update all the pages of the lectures and other to use https? > > Stef > > > Wouldn't it be simpler to set an automatic redirection from the http to the https on the server? -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Is there a way to stop arrays sorting automatically?
On dim. 31 déc. 2017 at 16:04, Andy Burnett wrote: > Denis wrote > >>> > > It's same as any other code. Just follow instructions > https://github.com/pharo-project/pharo/wiki/Contribute-a-fix-to-Pharo. It > is now simplified a lot. > > <<< > > Wow! That has improved a lot. I have bookmarked the site, and I now have a > reason to learn iceberg. > > Out of curiosity, and perhaps this has been answered elsewhere, why are we > using fogbugz for issue tracking, rather than github's issue tracker? I > know nothing much about either of them. I am just curious if fogbugz is > much better? > Hi, I think that one of the reason is that all the Pharo process is based on Fogbugz and migrating would takes month and add a lot of instability for few gain. > Cheers > Andy > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] [Pharo-dev] Best wishes for 2018
On ven. 29 déc. 2017 at 09:40, Torsten Bergmann wrote: > Only a few days left for 2017. Thanks to all who helped shaping Pharos > future. > May the lighthouse be with you in 2018 as well: > > World backgroundImage: > (ZnEasy > getJpeg: ' > https://spotlight.it-notes.ru/wp-content/uploads/2017/08/02c48424be88ee36d5300ad89033fd82.jpg > ') > layout: #scaled > > Have fun! > > Bye > T. > > Happy new year everyone :) -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] More named colors
On lun. 1 janv. 2018 at 15:32, Stephane Ducasse wrote: > Hi > > Since for some experiences in moose we needed more named colors > I started to gather together some old extensions and I cleaned the > implementation. > Now we have emacs colors and XKCD i.e around 1600 named colors. > > Gofer new > smalltalkhubUser: 'StephaneDucasse' project: 'Colors'; > package: 'MoreColors'; load. > Color initializeNames > > I would really like to see how we can model the notion of color palettes. > Hi, Material Design have some recommandations that are nice. They recommande to have two colors for an application: - A primary color - An accent color The primary color is the main color of the application and the accent color is to make some highlights (links, important buttons...) For each color they defined scales. Each color have a code (50, 100, 200, 300, 400, 500, 600, 700, 800, 900). The base code is 500. If you need something "less important", with less contrast, you takes a lower code. For more contrast, you takes a higher code. See here: https://www.materialui.co/colors Also they have recommendation for text color. Dependently of the background color they define if the text should be white or black. (This is defined by the luminescence of the color in Pharo). Also, they define different text color if you have a primary text or a secondary text. See: https://material.io/guidelines/style/color.html > Stef > > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
Re: [Pharo-users] Packaging for Mac OS
That works for me too On 27 March 2015 at 09:53, Damien Cassou wrote: > > Hernán Morales Durand writes: > > >> https://ci.inria.fr/pharo/view/all/job/Launcher-Mac/ > > > Thank you Damien, > > Unfortunately the link displays "503 Service Temporarily Unavailable" > > But I will check later. > > works for me > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Success is the ability to go from one failure to another without > losing enthusiasm." --Winston Churchill > > -- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Cheers Cyril Ferlicot
Re: [Pharo-users] Pharo sprint on Friday, 3rd April
Pharo sprint are some event organize the Friday at INRIA Lille where people come and works on a theme. For exemple that can be a bug hunt: "Choose a bug from FogBugz and try to solve it". Everyone is on a big room and we can help each other. Some sprint are announce on the news on Pharo's website : http://pharo.org/news/ Like for this sprint : http://pharo.org/news/Pharo-Sprints ;) On 27 March 2015 at 17:05, Jigyasa Grover wrote: > Hi Jean-Christophe Bach ! > I am new to Pharo and would like to know more about Pharo Sprint. > It would be great if you could elucidate a bit. > Thanks and Regards > Jigyasa Grover > > > > -- > View this message in context: > http://forum.world.st/Pharo-sprint-on-Friday-3rd-April-tp4815604p4815605.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Cheers Cyril Ferlicot
[Pharo-users] Tabs in Playground ?
Hi ! Is it possible to have multiple tabs on the playground ? It seems so but i don't find how to do it simply. -- Cheers Cyril Ferlicot
Re: [Pharo-users] Tabs in Playground ?
Thank you ! I just wanted to know because with the little "Untitle" tab it looks lile we can open tabs in it. That was just for information. On 3 April 2015 at 16:51, Alexandre Bergel wrote: > Hi Cyril, > > Maybe it is sufficient for you to work with an inspector. > > For example, define the method > > gtInspectorExampleIn: composite > > ^ composite table > title: 'Example'; > display: [ { #one -> 'hello' . #two -> 'world'} ]; > column: 'Key' evaluated: #key; > column: 'Value' evaluated: [ :each | each value > printString ]; > send: #value > > in the class SmallInteger > > and doit: 10 inspect > > Cheers, > Alexandre > > > On Apr 3, 2015, at 9:24 AM, Cyril Ferlicot > wrote: > > > > Hi ! > > Is it possible to have multiple tabs on the playground ? It seems so but > i don't find how to do it simply. > > > > -- > > Cheers > > Cyril Ferlicot > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Converting a string containing dots to integer
If it's for the thousand you can use that: (myStringNumber copyWithoutAll: '.') asNumber To find this kind of methods you can use the finder (world -> Tools). You select "example" and you search for things like : '1.234'.'.'.'1234' and that will give you: '1.234' copyWithoutAll: '.' first -> '1234' -- Cheers Cyril Ferlicot On 5 April 2015 at 01:43, Benoit St-Jean via Pharo-users < pharo-users@lists.pharo.org> wrote: > > > -- Forwarded message -- > From: Benoit St-Jean > To: Any question about pharo is welcome > Cc: > Date: Sat, 4 Apr 2015 23:40:01 + (UTC) > Subject: Re: [Pharo-users] Converting a string containing dots to integer > Do you have more details? > > Such as, do you have values with more than one dot ? (e.g. 1.436.782) > Do you have values with no dot? > > - > Benoit St-Jean > Yahoo! Messenger: bstjean > Twitter: @BenLeChialeux > Pinterest: benoitstjean > IRC: lamneth > > Blogue: endormitoire.wordpress.com > > "A standpoint is an intellectual horizon of radius zero". (A. Einstein) > > -- > *From:* Offray Vladimir Luna Cárdenas > *To:* Any question about pharo is welcome > *Sent:* Saturday, April 4, 2015 7:17 PM > *Subject:* [Pharo-users] Converting a string containing dots to integer > > Hi all, > > I'm parsing some text which contains numbers like "8.324" and I would > like to convert it to integer. The problem is that asNumber and > asInteger don't make the trick because of the dot ("."), which is there > to indicate thousands, not decimal values. Which is the proper message > to send? > > Cheers, > > Offray > > > > >
Re: [Pharo-users] How do I get the list of projects on SmalltalkHub?
Example with Cocoon: catalogContactInfo ^ 'The creator of Cocoon is Stephan Ducasse with the help of Cyril Ferlicot. The website is at *http://smalltalkhub.com/#!/~PharoExtras/Cocoon/*.' catalogDescription ^ 'An application configuration system using JSON. I manage a set of properties. I can contains other sub-configurations. If the configuration don''t find an information it will look up in his parent.' catalogKeywords ^ #(cocoon configuration manager documentation) You can also look on the configuration of other application like Pillar etc... On 7 April 2015 at 14:47, kilon alios wrote: > do the first and second return strings ? > > for the third one I will need more info. > is it an array of literals like > > ^#( #python #database #pharo4 ) > > ? > > > On Tue, Apr 7, 2015 at 3:33 PM, Esteban Lorenzano > wrote: > >> yes, they have to return certain values: >> >> catalogDescription ^ A small paragraph describing your >> project.catalogContactInfo >> ^ Contact information such as email, mailing lists and >> website.catalogKeywords >> ^ An array of keys to better index your project >> :) >> >> explanation could be better… but right now I cannot change it… I will put >> it in my todo. >> >> Esteban >> >> >> On 07 Apr 2015, at 14:13, kilon alios wrote: >> >> Esteban about how to add projects to catalog page. Could you add examples >> of those methods ? For example are they suppose to return values ? How >> should they be defined ? >> >> I want to add info for my project Ephestos >> >> On Tue, Apr 7, 2015 at 3:03 PM, Esteban Lorenzano >> wrote: >> >>> http://catalog.pharo.org >>> shows you all projects registered (not just on sthub) >>> >>> http://smalltalkhub.com/list >>> shows you a list of all public repositories in sthub (not always >>> equivalent to a project) >>> >>> and yes… this information is not very public right now :( >>> >>> Esteban >>> >>> >>> On 04 Apr 2015, at 18:58, stepharo wrote: >>> >>> Where can we find this information as a newbie? >>> >>> Stef >>> >>> >>> >> >> > -- Cheers Cyril Ferlicot
Re: [Pharo-users] How do I get the list of projects on SmalltalkHub?
Just put it into the 'ConfigurationOfYourProject' class. Class side. On 7 April 2015 at 16:50, Offray Vladimir Luna Cárdenas wrote: > Thanks Cyril, > > The class that contain the catalog methods must be named 'Catalog' or > something special? > > Cheers, > > Offray > > El 07/04/15 a las 07:51, Cyril Ferlicot escribió: > >> Example with Cocoon: >> >> catalogContactInfo >> ^ 'The creator of Cocoon is Stephan Ducasse with the help of Cyril >> Ferlicot. >> The website is at *http://smalltalkhub.com/#!/~PharoExtras/Cocoon/* >> .' >> >> catalogDescription >> ^ 'An application configuration system using JSON. I manage a set of >> properties. I can contains other sub-configurations. If the configuration >> don''t >> find an information it will look up in his parent.' >> >> catalogKeywords >> ^ #(cocoon configuration manager documentation) >> >> You can also look on the configuration of other application like Pillar >> etc... >> >> On 7 April 2015 at 14:47, kilon alios > <mailto:kilon.al...@gmail.com>> wrote: >> >> do the first and second return strings ? >> >> for the third one I will need more info. >> is it an array of literals like >> >> ^#( #python #database #pharo4 ) >> >> ? >> >> >> On Tue, Apr 7, 2015 at 3:33 PM, Esteban Lorenzano < >> esteba...@gmail.com >> <mailto:esteba...@gmail.com>> wrote: >> >> yes, they have to return certain values: >> >> catalogDescription ^ A small paragraph describing your >> project. >> catalogContactInfo ^ Contact information such as email, >> mailing lists >> and website. >> catalogKeywords^ An array of keys to better index your >> project >> >> :) >> >> explanation could be better… but right now I cannot change it… I >> will >> put it in my todo. >> >> Esteban >> >> >> On 07 Apr 2015, at 14:13, kilon alios >> <mailto:kilon.al...@gmail.com>> wrote: >>> >>> Esteban about how to add projects to catalog page. Could you add >>> examples of those methods ? For example are they suppose to >>> return >>> values ? How should they be defined ? >>> >>> I want to add info for my project Ephestos >>> >>> On Tue, Apr 7, 2015 at 3:03 PM, Esteban Lorenzano < >>> esteba...@gmail.com >>> <mailto:esteba...@gmail.com>> wrote: >>> >>> http://catalog.pharo.org <http://catalog.pharo.org/> >>> shows you all projects registered (not just on sthub) >>> >>> http://smalltalkhub.com/list >>> shows you a list of all public repositories in sthub (not >>> always >>> equivalent to a project) >>> >>> and yes… this information is not very public right now :( >>> >>> Esteban >>> >>> >>> On 04 Apr 2015, at 18:58, stepharo >>> <mailto:steph...@free.fr>> wrote: >>>> >>>> Where can we find this information as a newbie? >>>> >>>> Stef >>>> >>>> >>> >>> >> >> >> >> >> -- >> Cheers >> Cyril Ferlicot >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] pillar internal link
Hi ! Inter-File link are on the TODO list of pillar. Currently you can't. I'm working on Pillar now, if i add inter-file link i'll say it to you ! On 7 April 2015 at 16:45, Peter Uhnák wrote: > Hi, > > how does one add an internal link? > I have chapter 'Framework' (and file 'Framework/Framework.pillar') and > 'Palette' (and file 'Palette/Palette.pillar') > > Can I in Framework.pillar write something like *Palette/Palette* to create > a link? > Currently it fails at > > *** Warning: PRReferenceNotFound: Can't find anchor named 'Palette/Palette' > > Thanks, > Peter > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] pillar internal link
Hi. With Damien we're working on the creation of Annotation and Transformers. Now you can use this Annotation's tag : ${inputFile:myFile.pillar}$ on your file to include your myFile.pillar. That still can change a bit, i'm working on it and i still need to do the tests. On 7 April 2015 at 18:40, Dmitri Zagidulin wrote: > Thanks, Cyril! > > We bumped into the internal link (with label) limitation, too, in Updated > Pharo by Example ( > https://github.com/SquareBracketAssociates/UpdatedPharoByExample/issues/10#issuecomment-89044176 > ). > > So, +1 interest to that feature, here :) > > > > > On Tue, Apr 7, 2015 at 11:03 AM, Cyril Ferlicot > wrote: > >> Hi ! >> Inter-File link are on the TODO list of pillar. Currently you can't. >> I'm working on Pillar now, if i add inter-file link i'll say it to you ! >> >> On 7 April 2015 at 16:45, Peter Uhnák wrote: >> >>> Hi, >>> >>> how does one add an internal link? >>> I have chapter 'Framework' (and file 'Framework/Framework.pillar') and >>> 'Palette' (and file 'Palette/Palette.pillar') >>> >>> Can I in Framework.pillar write something like *Palette/Palette* to >>> create a link? >>> Currently it fails at >>> >>> *** Warning: PRReferenceNotFound: Can't find anchor named >>> 'Palette/Palette' >>> >>> Thanks, >>> Peter >>> >>> >> >> -- >> Cheers >> Cyril Ferlicot >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [ANN] MorphicDoc : A project to document Morphic
That's great ! Good luck with your project ! Thank you ! On 12 April 2015 at 18:19, kilon alios wrote: > Thanks I was joking about gitfiletree I am sure I will be fine > > Στις 12 Απρ 2015 10:18 π.μ., ο χρήστης "p...@highoctane.be" > έγραψε: >> >> >> Le 11 avr. 2015 20:00, "kilon alios" a écrit : >> > >> > yes I am aware of your merge driver, will give it a try of course. I am >> > certainly curious to see how well it works in practice. >> >> Works nicely here but I am doing FileTree with external git tooling. >> >> Great initiative on Morphic. >> >> Phil >> >> If not I will blame you of course and just copy paste the code and commit >> it myself. Good opportunity to learn more about git too. >> > >> > On Sat, Apr 11, 2015 at 8:49 PM, Thierry Goubier >> > wrote: >> >> >> >> Hi Kilon, >> >> >> >> Le 11/04/2015 19:42, kilon alios a écrit : >> >>> >> >>> sure any help is welcomed . >> >>> >> >>> Contributing is the usual github workflow, you fork and send me pull >> >>> requests (I would like to use this opportunity to test to see how well >> >>> pull request works with gitfiletree). >> >> >> >> >> >> You'll tell me :) >> >> >> >> Just remember that github may not be able to merge because of conflicts >> >> in the filetree metadata. In this case, you need to merge on your system >> >> with the merge driver, and push to github. >> >> >> >> Thierry >> >> >> >>> Creating the documentation is also quite simple, if you open the help >> >>> tool has a section of how to make documentation. To put simply, just >> >>> take a look at the MorphDoc class , hellworld method and use that as >> >>> template to create your own page , then add the page (name of the >> >>> method) to the array returned by pages method. Then after you add the >> >>> page you add your example code that you use in that page in the >> >>> MorphDocExamples class (also found in MorphDoc package) the name of >> >>> the >> >>> method should start with example follow with name of the method use >> >>> for >> >>> the page in MorphDoc. >> >>> >> >>> Each page should contain a simple image and should be no more than one >> >>> page long. I try to brake documentation to small pages easy to follow >> >>> and understand instead of lengthy descriptions. >> >>> >> >>> I am on easter vacation in my father's village and the internet here >> >>> is >> >>> very weak so its hard for me to be online so if you need any help just >> >>> email me. >> >>> >> >>> On Sat, Apr 11, 2015 at 7:50 PM, Jigyasa Grover >> >>> mailto:grover.jigya...@gmail.com>> wrote: >> >>> >> >>> Hey Kilon ! >> >>> I would like to contribute to your new project. >> >>> Started learning Morphic on Mr. Martin Bahr's suggestion. >> >>> Looking forward to a positive reply. >> >>> Thanks >> >>> Jigyasa Grover >> >>> >> >>> >> >>> >> >>> -- >> >>> View this message in context: >> >>> >> >>> http://forum.world.st/ANN-MorphicDoc-A-project-to-document-Morphic-tp4819062p4819074.html >> >>> Sent from the Pharo Smalltalk Users mailing list archive at >> >>> Nabble.com. >> >>> >> >>> >> >> >> >> >> > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pillar used directly from Pharo
Hi ! You can use it from Pharo but it's a little complicated if you want to add a configuration file (pillar.conf). I can't explain now because I'm at a ceremony but when I'll have time I'll add the list of the commandes ! Le samedi 18 avril 2015, Jan Valášek a écrit : > Hi there, > > I'd like to ask you, whether is here a way to use pillar internally, > directly from Pharo and how to use it properly. I have found some > tutorials how to use it from linux/windows command prompt, however, I'd > prefer to call it in my program in pharo. > > > > Something like this -> > --- > header := pillarHeaderObject new. //creating pillar objects directly > from my program > header text:'Title of my page'. > aPillarDocument add: header. //adding them to the whole document > object > > and finally > > aPillarDocument exportToLatex. //export the document > -- > > > > or I can just write the text in the pillar notation to "myTextObject" > and then call something like-> > --- > pillarParseAndExportToLatex: myTextObject. > --- > > Is here a way to do this? > > Thanks for your help :-) > John. > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pillar used directly from Pharo
Hi again ! Ok so. To use pillar inside Pharo you have this: PRCocoonConfiguration new templateStream: PRHTMLWriter defaultTemplate; configurations: Dictionary new; inputFiles: {(FileSystem workingDirectory / 'test.pillar')}; outputType: PRHTMLWriter; outputFile: 'test.html' asFileReference ; export. Here is a little exemple. You can remplace PRHTMLWriter by PRLaTeXWriter, PRTextWriter, PRMarkdownWriter, PRPillarWriter etc... The outputFile is the name of the file you want to be generate, the file will be on the folder of the image. If you want a special template you have to pass it to templateStream. You can also have others option like: On 18 April 2015 at 20:06, Cyril Ferlicot wrote: > Hi ! > You can use it from Pharo but it's a little complicated if you want to add a > configuration file (pillar.conf). > I can't explain now because I'm at a ceremony but when I'll have time I'll > add the list of the commandes ! > > Le samedi 18 avril 2015, Jan Valášek a écrit : >> >> Hi there, >> >> I'd like to ask you, whether is here a way to use pillar internally, >> directly from Pharo and how to use it properly. I have found some >> tutorials how to use it from linux/windows command prompt, however, I'd >> prefer to call it in my program in pharo. >> >> >> >> Something like this -> >> --- >> header := pillarHeaderObject new. //creating pillar objects directly >> from my program >> header text:'Title of my page'. >> aPillarDocument add: header. //adding them to the whole document >> object >> >> and finally >> >> aPillarDocument exportToLatex. //export the document >> -- >> >> >> >> or I can just write the text in the pillar notation to "myTextObject" >> and then call something like-> >> --- >> pillarParseAndExportToLatex: myTextObject. >> --- >> >> Is here a way to do this? >> >> Thanks for your help :-) >> John. >> > > > -- > Cheers > Cyril Ferlicot > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pillar used directly from Pharo
Hi again ! Ok so. To use pillar inside Pharo you have this: PRCocoonConfiguration new templateStream: PRHTMLWriter defaultTemplate; configurations: Dictionary new; inputFiles: {(FileSystem workingDirectory / 'test.pillar')}; outputType: PRHTMLWriter; outputFile: 'test.html' asFileReference ; export. Here is a little exemple. You can remplace PRHTMLWriter by PRLaTeXWriter, PRTextWriter, PRMarkdownWriter, PRPillarWriter etc... The outputFile is the name of the file you want to be generate, the file will be on the folder of the image. If you want a special template you have to pass it to templateStream. You can also have others option like: - inputString : aString with the pillar text you want to export like: '!test *myLink>http://test.html* !!Test 2 etc...' - outputStream : if you don't want a file at the end but a stream. etc... You can find all these option inside the PRCocoonConfiguration class. I hope that can help you, if you've others question fell free to ask ! On 19 April 2015 at 17:53, Cyril Ferlicot wrote: > Hi again ! > > Ok so. To use pillar inside Pharo you have this: > > PRCocoonConfiguration new > templateStream: PRHTMLWriter defaultTemplate; > configurations: Dictionary new; > inputFiles: {(FileSystem workingDirectory / > 'test.pillar')}; > outputType: PRHTMLWriter; > outputFile: 'test.html' asFileReference ; > export. > > Here is a little exemple. You can remplace PRHTMLWriter by > PRLaTeXWriter, PRTextWriter, PRMarkdownWriter, PRPillarWriter etc... > The outputFile is the name of the file you want to be generate, the > file will be on the folder of the image. > If you want a special template you have to pass it to templateStream. > You can also have others option like: > > > > On 18 April 2015 at 20:06, Cyril Ferlicot wrote: >> Hi ! >> You can use it from Pharo but it's a little complicated if you want to add a >> configuration file (pillar.conf). >> I can't explain now because I'm at a ceremony but when I'll have time I'll >> add the list of the commandes ! >> >> Le samedi 18 avril 2015, Jan Valášek a écrit : >>> >>> Hi there, >>> >>> I'd like to ask you, whether is here a way to use pillar internally, >>> directly from Pharo and how to use it properly. I have found some >>> tutorials how to use it from linux/windows command prompt, however, I'd >>> prefer to call it in my program in pharo. >>> >>> >>> >>> Something like this -> >>> --- >>> header := pillarHeaderObject new. //creating pillar objects directly >>> from my program >>> header text:'Title of my page'. >>> aPillarDocument add: header. //adding them to the whole document >>> object >>> >>> and finally >>> >>> aPillarDocument exportToLatex. //export the document >>> -- >>> >>> >>> >>> or I can just write the text in the pillar notation to "myTextObject" >>> and then call something like-> >>> --- >>> pillarParseAndExportToLatex: myTextObject. >>> --- >>> >>> Is here a way to do this? >>> >>> Thanks for your help :-) >>> John. >>> >> >> >> -- >> Cheers >> Cyril Ferlicot >> > > > > -- > Cheers > Cyril Ferlicot -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] QualityAssistant v0.4
Oh, ok ! Thank you Guillermo ! On 23 April 2015 at 11:58, Guillermo Polito wrote: > Hi Cyril, > > Your problem is caused because abstract methods should be marked with > "subclassResponsibility" and not "shouldBeImplemented". > > - shouldBeImplemented means "this is a method I did not implement yet, I > should replace *this* method with another implementation" > - subclassResponsibility means "my subclasses should implement a method with > this same selector" > > The tools recognize the first as a normal "concrete" method and the second > as an abstract method. > > El jue., 23 de abr. de 2015 a la(s) 10:15 a. m., Norbert Hartl > escribió: >> >> Stef, >> >> where is "the tool"? >> >> Norbert >> >> > Am 23.04.2015 um 08:01 schrieb stepharo : >> > >> > Two things: >> > >> > One: >> > We paid a guy to work on a tool to help us identifying dependencies, The >> > tool works well is fast. >> > if this tool would be in the image, everybody could check that there are >> > bad dependencies in his >> > code (and there are many around in nearly anybody's code). >> > No we prefer that me, pavel, and guille run it and fight with this >> > instead of making sure that >> > when you commit we get some feedback like: "oh strange that this package >> > is bound with this one". >> > This tool breaks when we do change in the image and I nicely (stupidly I >> > would say) maintain it. >> > >> > Two: >> > Our process is not great to manage external packages and we will add >> > more. >> > Sure it sounds like the right things to do, especially now. >> > >> > So to me it simply means that we are not serious and convinced about >> > modularity. >> > >> > But this is great, I'm reconsidering what I will do in Pharo so you give >> > me good indication >> > that I should not continue the way I was thinking. And no need to think >> > that I'm emotional >> > I'm not. I'm thinking about why hell I'm doing all this. >> > >> > Stef >> > >> > Le 22/4/15 21:27, Marcus Denker a écrit : >> >>> On 22 Apr 2015, at 20:22, stepharo wrote: >> >>> >> >>> >> >>> >> >>> Le 22/4/15 13:23, Esteban Lorenzano a écrit : >> >>>> this is so good. >> >>>> what about integrate it to Pharo? >> >>> No. People should start to think modular. >> >>> No more external tools loaded by default. >> >>> Better invest in "add a startup preference" functionality in the >> >>> configurationBrowser. >> >>> >> >>> Why we do not integrate the excellent tool of baptiste that would show >> >>> to people >> >>> when they are creating package mess? Because of the same reason. >> >>> >> >> But the Pharo that we download should be the Pharo we use. >> >> >> >> We tried the other back in Pharo1.0: Do you remember how we fixed with >> >> lots >> >> care all details, but then, everyone was using a different image, and >> >> all the >> >> details there where not fixed and all work was done double? >> >> >> >> If we do not make the Pharo that is downloaded to be that was is used, >> >> we will have >> >> that again. >> >> >> >> I don’t want everything in the image, but what everyone is supposed to >> >> be using should >> >> be there without needing an additional step. >> >> >> >> Marcus >> >> >> >> >> >> >> >> >> > >> > >> >> > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] QualityAssistant v0.4
I changed that but i still have the warning from quality assistant. On 23 April 2015 at 12:44, Cyril Ferlicot wrote: > Oh, ok ! Thank you Guillermo ! > > On 23 April 2015 at 11:58, Guillermo Polito wrote: >> Hi Cyril, >> >> Your problem is caused because abstract methods should be marked with >> "subclassResponsibility" and not "shouldBeImplemented". >> >> - shouldBeImplemented means "this is a method I did not implement yet, I >> should replace *this* method with another implementation" >> - subclassResponsibility means "my subclasses should implement a method with >> this same selector" >> >> The tools recognize the first as a normal "concrete" method and the second >> as an abstract method. >> >> El jue., 23 de abr. de 2015 a la(s) 10:15 a. m., Norbert Hartl >> escribió: >>> >>> Stef, >>> >>> where is "the tool"? >>> >>> Norbert >>> >>> > Am 23.04.2015 um 08:01 schrieb stepharo : >>> > >>> > Two things: >>> > >>> > One: >>> > We paid a guy to work on a tool to help us identifying dependencies, The >>> > tool works well is fast. >>> > if this tool would be in the image, everybody could check that there are >>> > bad dependencies in his >>> > code (and there are many around in nearly anybody's code). >>> > No we prefer that me, pavel, and guille run it and fight with this >>> > instead of making sure that >>> > when you commit we get some feedback like: "oh strange that this package >>> > is bound with this one". >>> > This tool breaks when we do change in the image and I nicely (stupidly I >>> > would say) maintain it. >>> > >>> > Two: >>> > Our process is not great to manage external packages and we will add >>> > more. >>> > Sure it sounds like the right things to do, especially now. >>> > >>> > So to me it simply means that we are not serious and convinced about >>> > modularity. >>> > >>> > But this is great, I'm reconsidering what I will do in Pharo so you give >>> > me good indication >>> > that I should not continue the way I was thinking. And no need to think >>> > that I'm emotional >>> > I'm not. I'm thinking about why hell I'm doing all this. >>> > >>> > Stef >>> > >>> > Le 22/4/15 21:27, Marcus Denker a écrit : >>> >>> On 22 Apr 2015, at 20:22, stepharo wrote: >>> >>> >>> >>> >>> >>> >>> >>> Le 22/4/15 13:23, Esteban Lorenzano a écrit : >>> >>>> this is so good. >>> >>>> what about integrate it to Pharo? >>> >>> No. People should start to think modular. >>> >>> No more external tools loaded by default. >>> >>> Better invest in "add a startup preference" functionality in the >>> >>> configurationBrowser. >>> >>> >>> >>> Why we do not integrate the excellent tool of baptiste that would show >>> >>> to people >>> >>> when they are creating package mess? Because of the same reason. >>> >>> >>> >> But the Pharo that we download should be the Pharo we use. >>> >> >>> >> We tried the other back in Pharo1.0: Do you remember how we fixed with >>> >> lots >>> >> care all details, but then, everyone was using a different image, and >>> >> all the >>> >> details there where not fixed and all work was done double? >>> >> >>> >> If we do not make the Pharo that is downloaded to be that was is used, >>> >> we will have >>> >> that again. >>> >> >>> >> I don’t want everything in the image, but what everyone is supposed to >>> >> be using should >>> >> be there without needing an additional step. >>> >> >>> >> Marcus >>> >> >>> >> >>> >> >>> >> >>> > >>> > >>> >>> >> > > > > -- > Cheers > Cyril Ferlicot -- Cheers Cyril Ferlicot
[Pharo-users] What's new on Pillar ?
Hi everyone ! I'm currently working on Pillar ! It's been a little while now so I wanted to share what's new. --> First of all, with Stephane we created a new project, Cocoon, based on the configuration system of Pillar. And now Pillar uses Cocoon for his configurations. http://smalltalkhub.com/#!/~PharoExtras/Cocoon --> Pillar unit tests weren't working on Windows before --> With Damien we also added two new abstractions: --> The transformers: They take the Pillar tree and modify it. For exemple we have a transformer which evaluates the scripts with a "eval=true" parameter. --> The annotations: They let the writer specify many different things in their document using just 1 syntax (see below for an example) --> We now have our first annotation tag: the inclusion tag ! If you add this: ${inputFile:test.pillar}$ or ${inputFile:folder/test.pillar}$ into your Pillar file, that will include the content of test.pillar. I recommend for now to use it at the root of the pillar file and not inside a paragraph. That still needs some improvement. --> We now have a transformer which adds an anchor after each title. The anchor will have the text of the title. This still needs some improvement, it's really simple for now. For exemple we need to consider the case where we have 2 titles with the same text (like 'introduction'). --> Now you can add 'lineNumber=true' as parameter for a Script. This will add a numerotation at your script, usefull if we want to explain a long code. --> I did some refactorisation on the parameters used by pillar to clean the code. --> I did some refactorisation of the template system, the old one was really ugly and changed the baseDirectory. Now template are managed by a stream and not a file. --> I improved a little the configuration --> Now if you want to change the baseDirectory you can pass a FileReference, a relative path or an absolute path. --> Now we look for the inputFiles from the baseDirectory and not the working directory like before. You can also pass a FileReference, a relative path or an absolute path. --> I added some tests to Pillar. --> I added some doc to EnterprisePharo https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/PillarChap/Pillar.pillar.html --> To help the users I improved the error reports. Before we had really few errors specific to Pillar. For this one you can help me ! If you found a weird error or something really not easy to deal with, send me your problem ! -- Cheers Cyril Ferlicot
[Pharo-users] Question about Text Editor.
Hi, I wanted to do a little text editor and I would like to know if someone already did one with simple features like open a file, save a file etc... I don't want to lose too much time in something that already exist. -- Cheers Cyril Ferlicot
Re: [Pharo-users] Where to channel questions
Hi, for simple question you can also use the IRC channel #pharo on irc.freenode.net On 27 April 2015 at 18:40, Sven Van Caekenberghe wrote: > >> On 27 Apr 2015, at 18:33, Sergio Fedi wrote: >> >> Hi, I'm new to the Pharo community and I was wondering where to channel >> Pharo-use related questions. >> >> In the Pahro.org site it suggests to post questions on StackOverflow >> >> "If you have any question regarding Pharo, use StackOverflow. Be sure to tag >> your question with the pharo tag, so that your question is not lost amongst >> all the questions on StackOverflow." >> >> But is also states that Pharo questions can be directed at this user list. >> >> What is the criteria to use one or the other? > > Welcome ! > > Both are OK, it is a bit up to you. > > There are more people listening/answering on this ML. -- Cheers Cyril Ferlicot
Re: [Pharo-users] The Pillar TextMate plugin can now preview Pillar files
Take the last version of Pillar ;) At least the 0.48 in configuration of pillar On 28 April 2015 at 22:43, nacho <0800na...@gmail.com> wrote: > I think I've discovered the problem. > The problem is that the Pharo image creates a filename.pillar.html file > while TextMate search is for filename.html. > > Is this something that I should correct somewhere? > Thanks > Nacho > > > > > - > Nacho > Smalltalker apprentice. > Buenos Aires, Argentina. > -- > View this message in context: > http://forum.world.st/The-Pillar-TextMate-plugin-can-now-preview-Pillar-files-tp4821761p4822667.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > -- Cheers Cyril Ferlicot
Re: [Pharo-users] The Pillar TextMate plugin can now preview Pillar files
A way to simple download the last version is to take an image and use Gofer new smalltalkhubUser: 'Pier' procect: 'Pillar'; configuration; loadStable. Or use pharoLauncher ;) Le mercredi 29 avril 2015, Ignacio Sniechowski <0800na...@gmail.com> a écrit : > How do I do that in a fresh Pharo 4 image? > Thanks > nacho > > > *Lic. Ignacio Sniechowski, MBA* > *Prosavic SRL* > > *Tel: (011) 4542-6714* > > > > > > > > > > > > > > > > > > > > On Tue, Apr 28, 2015 at 5:59 PM, Cyril Ferlicot > wrote: > >> Take the last version of Pillar ;) At least the 0.48 in configuration of >> pillar >> >> On 28 April 2015 at 22:43, nacho <0800na...@gmail.com >> > wrote: >> > I think I've discovered the problem. >> > The problem is that the Pharo image creates a filename.pillar.html file >> > while TextMate search is for filename.html. >> > >> > Is this something that I should correct somewhere? >> > Thanks >> > Nacho >> > >> > >> > >> > >> > - >> > Nacho >> > Smalltalker apprentice. >> > Buenos Aires, Argentina. >> > -- >> > View this message in context: >> http://forum.world.st/The-Pillar-TextMate-plugin-can-now-preview-Pillar-files-tp4821761p4822667.html >> > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> > >> >> >> >> -- >> Cheers >> Cyril Ferlicot >> >> > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pharo 4 Playground open file menu
Just for info: you can get back the workspace into the settings (uncheck the playground button) Le jeudi 30 avril 2015, Esteban A. Maringolo a écrit : > 2015-04-30 16:14 GMT-03:00 Nicolai Hess > >: > > 2015-04-30 20:36 GMT+02:00 Esteban A. Maringolo >: > >> > >> Since the workspace is hidden (*)... what's the recommended procedure > >> to open a smalltalk script file (.st or .ws) without having to open > >> the FileBrowser?(**) > > > you can use inspector to open the directory. > > 'directory_with_your_st_file' asFileReference inspect. > > > > in the inspector you can navigate through the directory > > or select a file and for example for a .st file the menu offers a > > "do it and open" entry, this will execute the selected code and open > > an inspector tab on the result. > > So basically there is no way to "File -> Open" from the Playground. :) > (nor a a way "File -> Save" its contents either [1]) > > I guess I'll keep opening a Workspace and continue the old way from there. > > > Regards! > > Esteban A. Maringolo > > [1]: IMO this is taking the "no-files based" concept to the extreme. A > step back if I could add. > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pharo 4 Playground open file menu
There is a way to have both I think but I don't have my laptop now to check Le jeudi 30 avril 2015, Esteban A. Maringolo a écrit : > 2015-04-30 16:29 GMT-03:00 Cyril Ferlicot >: > > Just for info: you can get back the workspace into the settings (uncheck > the > > playground button) > > Thanks, but that is an either-or choice. > > I do love Playground, but for exploratory coding and or interactions. > If it is meant to replace the Workspace I want to preserve its basic > features (open/save at least). > > Regards, > > Esteban. > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pharo 4 Playground open file menu
Oh, I didn't knew that. Is there other features like this ? Le jeudi 30 avril 2015, Andrei Chis a écrit : > Depending on what you want to do playground has a way to manage external > files with smalltalk scripts. > If you double click in the Page tab in the playground you will be able to > rename it. If you rename it to > 'customScript' and hit enter a file is created in the folder play-stash > from the current image directory. > Then whatever you type in the playground is saved in that file. > > If you then open spotter and search for 'customScript' you will see the > file. Select the file and hit enter > and then a playground is opened linked again with that file. > > Cheers, > Andrei > > On Thu, Apr 30, 2015 at 9:49 PM, Cyril Ferlicot > wrote: > >> There is a way to have both I think but I don't have my laptop now to >> check >> >> Le jeudi 30 avril 2015, Esteban A. Maringolo > > a écrit : >> >>> 2015-04-30 16:29 GMT-03:00 Cyril Ferlicot : >>> > Just for info: you can get back the workspace into the settings >>> (uncheck the >>> > playground button) >>> >>> Thanks, but that is an either-or choice. >>> >>> I do love Playground, but for exploratory coding and or interactions. >>> If it is meant to replace the Workspace I want to preserve its basic >>> features (open/save at least). >>> >>> Regards, >>> >>> Esteban. >>> >>> >> >> -- >> Cheers >> Cyril Ferlicot >> >> > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Question about Text Editor.
Thank you for your answers, i'll take a look ;) On 1 May 2015 at 11:59, Esteban Lorenzano wrote: > >> On 01 May 2015, at 02:57, Pierce Ng wrote: >> >> On Wed, Apr 29, 2015 at 06:04:49PM -0300, Mariano Martinez Peck wrote: >>> Not a text editor, but there was a ScriptManager that was kind of a >>> worksapce with ability to give scripts a name, save them, and then easily >>> browse and execute them. But this is a bit old, so not sure if this still >>> works in Pharo 4.0: >> >> Yes it works in Pharo 4. Install it from the config browser. > > IMO with the new Playground, ScriptManager became obsolete. > > cheers, > Esteban > >> >> Pierce >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] When to use Versionner and when to use Monticello
Everything you can do with a versionner, you can do it by writing a ConfigurationOfX package and with Monticiello. Versionner is just an easy way to do configurations. You can easily manage packages dependencies. I know that you can't do some things with Versionner (for example you have to write the ConfigurationOfPillar yourself because we can't use versionner for it) but I don't know why exactly. Maybe someone else know. You can do everything with Monticiello but it's easier to manage packages dependencies and projects with versionner. When you have a project with many packages or dependencies, you can use versionner. At the end you can load everything with a simple script like: Gofer new smalltalkhubUser: 'User' project: 'Project'; configuration; load. (Smalltalk globals at: #ConfigurationOfX) load Le jeudi 30 avril 2015, Sergio Fedi a écrit : > Great, now that I saw these screencasts of Versionner > (which I'm still trying to have a hang on) > I would like to ask: > > When do we use Versionner and when do we use Monticello? > > Putting it in another way: > > What tasks are only possible through Monticello? > > What tasks you should be doing in Versionner? > >
Re: [Pharo-users] [Pharo-dev] Next Pharo sprint & Moose dojo
Hi Sergio. You can stop when you want! Usually that's around 17h-18h French time so 12-13h (0-1h pm) your time. During the sprint we usually take a bug entry on fogbugz and we try to correct it, so yes, a newbie can help if you take a decent bug. For my first sprint I knew almost nothing on smalltalk! Le samedi 2 mai 2015, Sergio Fedi a écrit : > Couple of questions: > > 1 - Since this start at 5 am (Buenos Aires Time, GMT -3) > until what hour is the sprint? > > 2 - Is this event appropiate/useful for newbies to Pharo? > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] Next Pharo sprint & Moose dojo
As JC said, you can use IRC with the #pharo channel on irc.freenode.net On 2 May 2015 at 03:47, Sergio Fedi wrote: > I may be joining remotely. > > What applications do I need to do that? > > Skype? Teamviewer? > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] Next Pharo sprint & Moose dojo
By the way, the #pharo channel is not only for sprint, you can pass whenever you want On 2 May 2015 at 03:50, Cyril Ferlicot wrote: > As JC said, you can use IRC with the #pharo channel on irc.freenode.net > > On 2 May 2015 at 03:47, Sergio Fedi wrote: >> I may be joining remotely. >> >> What applications do I need to do that? >> >> Skype? Teamviewer? >> > > > > -- > Cheers > Cyril Ferlicot -- Cheers Cyril Ferlicot
Re: [Pharo-users] Can we have NeoCSV, and NeoJSON included in the base image?
What to integrate and what to not integrate is a sensitive question. There was a discussion about that last time. Maybe you can take a look of the discussion here http://forum.world.st/QualityAssistant-v0-4-td4821070.html#none That really begin with the answers of stepharo. Le samedi 2 mai 2015, Ben Coman a écrit : > There are arguments on both sides for whether these are included by > default. In general, I understand the goal is limit what is distributed > with Pharo, since the ConfigurationBrowser makes loading easy. Moose which > is based off Pharo comes with a lot more facilities. > > In the short term, you might try using a personal-Configuration like > this... > > https://marianopeck.wordpress.com/2011/11/19/loading-projects-and-building-your-own-images-with-metacello/ > > cheers -ben > > On Sat, May 2, 2015 at 11:23 PM, Andy Burnett < > andy.burn...@knowinnovation.com > > wrote: > >> I would find it really useful to have some more classes included in the >> base image. The Neo system would be particularly useful, but I would also >> find an XML reader valuable. >> >> What is the process for deciding which classes get included by default? >> >> Cheers >> Andy >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Error: RemoteString past end of file on Pharo 4.0
It happend to me when I renamed some .image without renaming the .change file. Maybe that's the problem. On 3 May 2015 at 23:35, Offray Vladimir Luna Cárdenas wrote: > Hi, > > I was about to update some changes on my project as a result of this weekend > hackathon, but I got this error: > > Error: RemoteString past end of file > > I'm using: > > - Pharo4.0 Latest update: #40611 > - OS: 3.12.39-1-MANJARO #1 SMP PREEMPT Sat Mar 21 07:54:52 UTC 2015 x86_64 > GNU/Linux > > I found [1] and [2] for this error, but I can't make sense on any fix I can > apply (I don't know about slices) > > [1] > http://forum.world.st/Error-Remote-String-past-end-of-file-td4707766.html > [2] https://pharo.fogbugz.com/f/cases/10411/#78632 > > Any help is appreciated. > > Cheers, > > Offray > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Error: RemoteString past end of file on Pharo 4.0
That wouldn't be faster to save your changes into package-cache and load your .mcz into a new image ? On 4 May 2015 at 00:39, Offray Vladimir Luna Cárdenas wrote: > Hi, > > I used "Save as" from world menu and I'm pretty sure I have the .image and > .changes with the same name in the same folder. How can I confirm that these > are related properly beyond the name? There is any way to generate a proper > .changes file? > > Cheers, > > Offray > > El 03/05/15 a las 17:25, Carlo escribió: > >> Hi >> >> My first thought was also to do with the .change file, as I have received >> this error before when creating manual backups of images. >> >> Cheers >> Carlo >> >> On 04 May 2015, at 12:22 AM, Cyril Ferlicot >> wrote: >> >> It happend to me when I renamed some .image without renaming the .change >> file. >> Maybe that's the problem. >> >> On 3 May 2015 at 23:35, Offray Vladimir Luna Cárdenas >> wrote: >>> >>> Hi, >>> >>> I was about to update some changes on my project as a result of this >>> weekend >>> hackathon, but I got this error: >>> >>> Error: RemoteString past end of file >>> >>> I'm using: >>> >>> - Pharo4.0 Latest update: #40611 >>> - OS: 3.12.39-1-MANJARO #1 SMP PREEMPT Sat Mar 21 07:54:52 UTC 2015 >>> x86_64 >>> GNU/Linux >>> >>> I found [1] and [2] for this error, but I can't make sense on any fix I >>> can >>> apply (I don't know about slices) >>> >>> [1] >>> http://forum.world.st/Error-Remote-String-past-end-of-file-td4707766.html >>> [2] https://pharo.fogbugz.com/f/cases/10411/#78632 >>> >>> Any help is appreciated. >>> >>> Cheers, >>> >>> Offray >>> >> >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Error: RemoteString past end of file on Pharo 4.0
you can use Monticielle to create a local version of you project/packages On 4 May 2015 at 02:30, Offray Vladimir Luna Cárdenas wrote: > Hi, > > I didn't know that was an option. I will check on how to create .mcz files > and let you know how it went. > > Thanks, > > Offray > > El 03/05/15 a las 17:35, Cyril Ferlicot escribió: > >> That wouldn't be faster to save your changes into package-cache and >> load your .mcz into a new image ? >> >> On 4 May 2015 at 00:39, Offray Vladimir Luna Cárdenas >> wrote: >>> >>> Hi, >>> >>> I used "Save as" from world menu and I'm pretty sure I have the .image >>> and >>> .changes with the same name in the same folder. How can I confirm that >>> these >>> are related properly beyond the name? There is any way to generate a >>> proper >>> .changes file? >>> >>> Cheers, >>> >>> Offray >>> >>> El 03/05/15 a las 17:25, Carlo escribió: >>> >>>> Hi >>>> >>>> My first thought was also to do with the .change file, as I have >>>> received >>>> this error before when creating manual backups of images. >>>> >>>> Cheers >>>> Carlo >>>> >>>> On 04 May 2015, at 12:22 AM, Cyril Ferlicot >>>> wrote: >>>> >>>> It happend to me when I renamed some .image without renaming the .change >>>> file. >>>> Maybe that's the problem. >>>> >>>> On 3 May 2015 at 23:35, Offray Vladimir Luna Cárdenas >>>> >>>> wrote: >>>>> >>>>> >>>>> Hi, >>>>> >>>>> I was about to update some changes on my project as a result of this >>>>> weekend >>>>> hackathon, but I got this error: >>>>> >>>>> Error: RemoteString past end of file >>>>> >>>>> I'm using: >>>>> >>>>>- Pharo4.0 Latest update: #40611 >>>>>- OS: 3.12.39-1-MANJARO #1 SMP PREEMPT Sat Mar 21 07:54:52 UTC 2015 >>>>> x86_64 >>>>> GNU/Linux >>>>> >>>>> I found [1] and [2] for this error, but I can't make sense on any fix I >>>>> can >>>>> apply (I don't know about slices) >>>>> >>>>> [1] >>>>> >>>>> http://forum.world.st/Error-Remote-String-past-end-of-file-td4707766.html >>>>> [2] https://pharo.fogbugz.com/f/cases/10411/#78632 >>>>> >>>>> Any help is appreciated. >>>>> >>>>> Cheers, >>>>> >>>>> Offray >>>>> >>>> >>>> >>>> >>> >>> >> >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Glamorous Toolkit questions
On 4 May 2015 at 02:21, Mariano Martinez Peck wrote: > Hi guys, > > I am already enjoying GTSpotter every day. I cannot believe how good it is. > And I tell youI have been using this kind of tool since the first > available one we have YEARS ago (Algernon, then Spotlight etc...). And > GTSpotter is a life better than those. So...thank you VERY MUCH. > > My only problem right now is that I am afraid I am not yet using 100% of > it's power. I think it has features that I read randomly in different emails > and posts so I am afraid it has more... > > A couple of questions: > > 1) Is there a way to force GTSpotter preview via preferences or somehow via > code so that I can build it as part of my app images? I know GTSpotter then > remembers that but I would like to build images directly with that (some > users of my images may now be aware of such features so I want them to see > it out of the box). > > 2) How does it work regex or similar when you search? I seem to see things > like "M B" or "M #a" etc...so...which are all symbols (#, * , ^ etc) > allowed? > > 3) Are there more "actions" than the default action? For example, when > browser classes, methods etc... default action opens a new system browser. > So..are there OTHER possible actions? If true, which ones? How can I know > all of the available ones? > > 4) GTPlayground seems to have tabs and it seems I can even rename a current > playground. However...I cannot seem to be able to add more tabs and then > easily move across tabs. I have to open other playgrounds for it. So...I am > doing something wrong? If multiple tabs are not allow then I think the tabs > are a bit confusing here. > Hi, for the playground I found it weird too. The tab and the name are not for multi tab. If you name a tab and save the content (alt + s), if you close the tab you can reopen it with GTSpotter. (for example if you name your tab "MarianoWorkToDo" and you look for "MarianoWorkToDo" on GTSpotter you'll fin your playground. You can apparently also name your tab "customScript" and that will save your script into you "package-stash" folder. (you can change the folder into the settings of glamour). > 5) What are GTPlayground "Bindings" and in which case does the "Refresh" > make sense? > > I probably have more questions but I wanted to ask this at least. > > Thanks in advance, > > > > -- > Mariano > http://marianopeck.wordpress.com -- Cheers Cyril Ferlicot
[Pharo-users] [SURVEY] Pillar input/output files.
Hi, I'm currently working on the way we manage the input files and the output files. The way we manage the files now makes hard some improvement of Pillar. That's why with Damien we though about makes some changes. The changes are big so I wanted to talk about that with you. We propose to have always 1 file with all the work inside. That can use the inputFile tag. For example: "${inputFile:Chapter1.pillar}$ ${inputFile:Chapter2.pillar}$ ${inputFile:Chapter3.pillar}$ ${inputFile:Chapter4.pillar}$" And the option "separateOutputFiles" will now create 1 file each time we have a new Chapter. (!Level 1 header). That will make simpler the way to number everything and to create anchor because those 2 doesn't work well with the "separateOutputFile" option. What do you thing? That would be good with you? -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] [SURVEY] Code Critics Usage
Done! On 5 May 2015 at 09:50, kilon alios wrote: > Done ! > > On Tue, May 5, 2015 at 1:46 AM Sergio Fedi wrote: >> >> Done! -- Cheers Cyril Ferlicot
Re: [Pharo-users] beginner question - how to get a fully qualified filename from a dialog
Hi, maybe instead of UIManager you could look on UITheme. For example the following code: Smalltalk ui theme chooseFullFileNameIn: World title: 'Select file to open' extensions: nil path: (myActualFilePath isNil ifTrue: [ myActualFilePath ] ifFalse: [ FileSystem workingDirectory ]) preview: nil This will open a dialog with "Select file to open" in title, it will accept file of every extension and the path will begin at myActualFilePath or into the working directory if the actual file path is nil. On 12 May 2015 at 18:00, amaloney wrote: > I have a method: > openSimulationFile > inFile := (StandardFileStream fileNamed: > '/Users/amaloney/Squeak/30shoes.txt') ascii > I want to replace the hard coded fully qualified filename with the result of > a file browser dialog. > > I've done some Googling and poked around in the system browser and I find > that if I enter (in a playground) > UIManager default chooseDirectory and inspect-it I get: a FileReference > (/Users/amaloney/Squeak) > and if I try UIManager default chooseFileMatching: #( '*.txt' ) I get: a > ByteString ('Readme.txt'). > > It seems that UIManager chooseDirectory is the method I should start > exploring (since it returns a FileReference object) but the method is: > chooseDirectory > "Let the user choose a directory" > ^self chooseDirectoryFrom: FileSystem workingDirectory > > and when I look at chooseDirectoryFrom: I get > chooseDirectoryFrom: dir > "Let the user choose a directory" > ^self chooseDirectory: nil from: dir > so I look at chooseDirectory: from: > and I get: > chooseDirectory: label from: dir > "Let the user choose a directory" > ^self subclassResponsibility > Which doesn't help so I dig around in the docs some more and find out that > the green down arrow is clickable. > When I click it and choose MorphicUlManager>>#chooseDirectory:from: > the method definition is: > chooseDirectory: label from: dir > "Answer the user choice of a directory." > > | modalMorph realLabel | > realLabel := label ifNil: ['Choose Directory' translated]. > (ProvideAnswerNotification signal: realLabel) ifNotNil: [:answer | > ^answer ]. > modalMorph := self modalMorph. > ^modalMorph theme > chooseDirectoryIn: modalMorph > title: realLabel > path: (dir ifNotNil: [dir fullName]) > > The problem is that I cannot find a chooseDirectoryIn:title:path: method. > > I wrote this all out hoping someone can tell me where I chose the wrong > rabbit hole and can point me to instructions on how to choose the correct > rabbit hole. ;-) (Also, if there is a short answer i.e. use this > object>>method, I'd appreciate that as well.) > > Thanks, > > Mike > > > > > > > > > > -- > View this message in context: > http://forum.world.st/beginner-question-how-to-get-a-fully-qualified-filename-from-a-dialog-tp4826037.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Cannot load Pillar
I'll make a new configuration un few hours Le jeudi 14 mai 2015, Alexandre Bergel a écrit : > Hi! > > When I load Pillar, I have the following: > This package depends on the following classes: > PRWarning > You must resolve these dependencies before you will be able to load these > definitions: > PRParameterWarning > > > I simply do > -=-=-=-=-=-=-=-=-= > Gofer new > smalltalkhubUser: 'Pier' project: 'Pillar'; > configuration; > load. > (Smalltalk globals at: #ConfigurationOfPillar) load > -=-=-=-=-=-=-=-=-= > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Cannot load Pillar
Should be fine now On 14 May 2015 at 17:54, Cyril Ferlicot wrote: > I'll make a new configuration un few hours > > > Le jeudi 14 mai 2015, Alexandre Bergel a écrit : >> >> Hi! >> >> When I load Pillar, I have the following: >> This package depends on the following classes: >> PRWarning >> You must resolve these dependencies before you will be able to load these >> definitions: >> PRParameterWarning >> >> >> I simply do >> -=-=-=-=-=-=-=-=-= >> Gofer new >> smalltalkhubUser: 'Pier' project: 'Pillar'; >> configuration; >> load. >> (Smalltalk globals at: #ConfigurationOfPillar) load >> -=-=-=-=-=-=-=-=-= >> >> Cheers, >> Alexandre >> -- >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >> Alexandre Bergel http://www.bergel.eu >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >> >> >> >> > > > -- > Cheers > Cyril Ferlicot > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Generate latex from Pharo
Hi, I don't know if there is a framework but if you don't find you can still take a look at the class PRLaTeXCanvas and PRLaTeXWriter from Pharo. Maybe that'll help you to make something. On 16 May 2015 at 14:42, Julien Delplanque wrote: > Hi everyone, > > Is there any framework to generate latex code from Pharo? I would like to > give a latex representation to some objects so I can export the latex code > to a file I would include to my latex main file (for example). > > For example for a matrix I would like to do something like: > > fileStream nextPutAll: myMatrix asLatex. > > to have something like: > > \begin{pmatrix} >1 & 2 \\ >3 & 4 > \end{pmatrix} > > > in the file. > > I used to do it with pylatex in Python and I wonder if something equivalent > already exists in Pharo? > > Regards, > > Julien -- Cheers Cyril Ferlicot
Re: [Pharo-users] Generate latex from Pharo
Pillar-ExporterLaTeX but they inherit from Pillar-ExporterCore I think On 16 May 2015 at 15:30, Julien Delplanque wrote: > From which package does these classes come from? > > > On 16/05/15 15:26, Cyril Ferlicot wrote: >> >> Hi, >> I don't know if there is a framework but if you don't find you can >> still take a look at the class PRLaTeXCanvas and PRLaTeXWriter from >> Pharo. Maybe that'll help you to make something. >> >> On 16 May 2015 at 14:42, Julien Delplanque wrote: >>> >>> Hi everyone, >>> >>> Is there any framework to generate latex code from Pharo? I would like to >>> give a latex representation to some objects so I can export the latex >>> code >>> to a file I would include to my latex main file (for example). >>> >>> For example for a matrix I would like to do something like: >>> >>> fileStream nextPutAll: myMatrix asLatex. >>> >>> to have something like: >>> >>> \begin{pmatrix} >>> 1 & 2 \\ >>> 3 & 4 >>> \end{pmatrix} >>> >>> >>> in the file. >>> >>> I used to do it with pylatex in Python and I wonder if something >>> equivalent >>> already exists in Pharo? >>> >>> Regards, >>> >>> Julien >> >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Generate latex from Pharo
Sorry but that's an item of the TODO list of Pillar. On 17 May 2015 at 11:25, Julien Delplanque wrote: > Is there anything already done to generate code related to math environment? > > I would like messages like: > > Fraction>>asMathLatex > > that returns $\frac{numerator}{denominator}$. > > Julien > > > On 17/05/15 09:06, Damien Cassou wrote: >> >> Julien Delplanque writes: >> >>> From which package does these classes come from? >> >> Gofer new >> smalltalkhubUser: 'Pier' project: 'Pillar'; >> configurationOf: 'Pillar'; >> load. >> >> (ConfigurationOfPillar project version: #stable) load: 'latex exporter'. >> >> >> With this loaded, you now have 2 choices: >> >> - instantiate PRLaTeXCanvas and PROutputStream manually and use them, or >> >> - create a Pillar document and export it as LaTeX. >> >> >> Continue asking questions here if you have more. >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Generate latex from Pharo
http://smalltalkhub.com/#!/~Pier/Pillar "LaTeX embedding: LaTeX is very useful to write mathematical formulas for example. It would be nice to be able to embed LaTeX formulas inside a Pillar document and get these formulas fully exported. Org mode does something similar already." On 17 May 2015 at 12:33, Julien Delplanque wrote: > Oh ok :) > > Do you have this todo list online? > > > On 17/05/15 12:19, Cyril Ferlicot wrote: >> >> Sorry but that's an item of the TODO list of Pillar. >> >> On 17 May 2015 at 11:25, Julien Delplanque wrote: >>> >>> Is there anything already done to generate code related to math >>> environment? >>> >>> I would like messages like: >>> >>> Fraction>>asMathLatex >>> >>> that returns $\frac{numerator}{denominator}$. >>> >>> Julien >>> >>> >>> On 17/05/15 09:06, Damien Cassou wrote: >>>> >>>> Julien Delplanque writes: >>>> >>>>>From which package does these classes come from? >>>> >>>> Gofer new >>>> smalltalkhubUser: 'Pier' project: 'Pillar'; >>>> configurationOf: 'Pillar'; >>>> load. >>>> >>>> (ConfigurationOfPillar project version: #stable) load: 'latex exporter'. >>>> >>>> >>>> With this loaded, you now have 2 choices: >>>> >>>> - instantiate PRLaTeXCanvas and PROutputStream manually and use them, or >>>> >>>> - create a Pillar document and export it as LaTeX. >>>> >>>> >>>> Continue asking questions here if you have more. >>>> >>>> >>> >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pillar used directly from Pharo
To help the person who'll need to use Pillar from Pharo I added some documentation about it on the Pillar's documentation: https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastBuild/artifact/PillarChap/Pillar.html On 17 May 2015 at 13:03, Jan Valášek wrote: > Dne 2015-04-20 14:12, Damien Cassou napsal: > Hi Damien, > > Finally, I have used both ways in my work. So thank you for the > clarification. Pillar is a very useful tool :-) > > Jan > >> Hi Jan, >> >> the following complements Cyril's answers. You can have a look at all >> the unit-tests, they do a lot of things like what you want. >> >> Jan Valášek writes: >>> header := pillarHeaderObject new. //creating pillar objects directly >> >> header := PRHeader new level: 2; add: (PRText content: 'foo'); yourself. >> >> >>> aPillarDocument add: header. //adding them to the whole document >> >> >> document := PRDocument new. >> document add: header. >> >>> aPillarDocument exportToLatex. //export the document >> >> >> to only export the body of the document: >> >> PRLaTeXWriter write: document >> >> >>> or I can just write the text in the pillar notation to "myTextObject" >>> and then call something like-> >>> --- >>> pillarParseAndExportToLatex: myTextObject. >> >> >> document := PRDocumentParser parse: '!!foo'. >> PRLaTeXWriter write: document. > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] ShortCut
hi, Shift + Enter On 17 May 2015 at 17:54, Cristian Vazquez wrote: > Hi! > > What is a shortcut for open Spotter? > > Thank > > -- > Saludos. > Cristian -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is Smalltalkhub down ?
Yeah smalltalkhub is down ! On 18 May 2015 at 13:38, Thomas Heniart wrote: > Hi everyone, > > > I can't access to Smalltalkhub (time out), is it the same for you? -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] [Moose-dev] [SURVEY] Pillar input/output files.
Hi, I think we'll be able to avoid what i've expose on the first message. I changed the way Pillar parsed the files so it's not easier to create a global numerator or inter file links. When i'll have something that work i'll do a new configuration a post a message on the ML. On 18 May 2015 at 22:53, Alexandre Bergel wrote: > Hi Cyril, > > It does not look that different. Something I may recommend, is that Pillar > should be effective at writing other things than a book. So, the chapter > decomposition should not be forced. > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > On May 4, 2015, at 7:38 AM, Cyril Ferlicot wrote: > > Hi, > I'm currently working on the way we manage the input files and the output > files. > The way we manage the files now makes hard some improvement of Pillar. > That's why with Damien we though about makes some changes. The changes > are big so I wanted to talk about that with you. > We propose to have always 1 file with all the work inside. That can > use the inputFile tag. For example: > > "${inputFile:Chapter1.pillar}$ > > ${inputFile:Chapter2.pillar}$ > > ${inputFile:Chapter3.pillar}$ > > ${inputFile:Chapter4.pillar}$" > > And the option "separateOutputFiles" will now create 1 file each time > we have a new Chapter. (!Level 1 header). > That will make simpler the way to number everything and to create > anchor because those 2 doesn't work well with the "separateOutputFile" > option. > > What do you thing? That would be good with you? > > -- > Cheers > Cyril Ferlicot > ___ > Moose-dev mailing list > moose-...@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Alt-tab between windows
Oh, thank you for this one ! Maybe we could add a little paragraph about it on UPBE! That's really usefull On 19 May 2015 at 05:06, Ben Coman wrote: > > On Tue, May 19, 2015 at 7:08 AM, Avdi Grimm wrote: >> >> >> On Sat, May 16, 2015 at 4:23 PM, jtuc...@objektfabrik.de >> wrote: >>> >>> I mostly work in other Smalltalk environments than Pharo, like VA >>> Smalltalk. It has native windows and so the ability to switch between >>> windows using alt-tab is there. I must admit that there is a certain >>> threshold in the number of open windows when this is not really helpful any >>> more. I tend to hit that number pretty fast in a typical Smalltalk >>> coding/debugging sessions. >>> >>> Things have changed in Win 7, because there I can use the window manager >>> to close the windows right in the window switcher. That makes perfect sense >>> if you have 15 inspectors open, none of which shows current data or >>> instances any more. Or if one of them does, I can't decide which one ;-) >>> >>> So sometimes I wish for features like "close all windows of this kind" to >>> kill all inspectors, for example. >>> >>> What I want to say with this that I am not really using alt-tab to switch >>> between windows, but rather to kill a few to come down to a sensible number >>> ;-) But I understand why you miss it. For Pharo, there is a special problem: >>> it is its own windowing environment, so it should probably better not use >>> the O/S' key combination to switch its windows, right? >> >> >> Just as some food for thought for anyone contemplating this problem: >> >> Sometimes problems like this are indicative of deeper usability issues. >> Decades ago, it was just sort of assumed that the "right" way to deal with >> windows was to have a dedicated window for every "thing" in your system. To >> some degree, Mac OS, Wind95, and OS/2 all took this point of view. For >> instance, every folder you double-clicked on would open up a new file >> manager window, and this got to be such a mess that some OSes included >> "secret" shortcuts for killing them all at once. >> >> Then the web started to take off, and UX designers started rethinking the >> whole paradigm. They started keeping things in the same window, but adding >> back/forward buttons, and navigation histories, and sidebars, and address >> bars, and tabs, and other affordances to make it easier to switch between >> "things" without necessarily adding more windows. >> >> These days, most IDEs and editors have followed suit. I can't think of a >> single editor in common use among the programmers I know which encourages >> multiple windows. Whether it's Vim, Emacs, Sublime, IntelliJ, while you >> *can* open lots of windows if you really want to, they all focus on making >> it easy to manage lots of buffers in a single window rather than encouraging >> lots of windows. >> >> Personally, I'm a fan of this trend. I'm much happier typing a few >> characters to auto-complete the buffer I want to return to in Emacs, than I >> am hunting around in an OS window list for it. >> >> This is all a long-winded way of saying: just because this is currently a >> problem, doesn't mean it's the *right* problem. It would be interesting to >> see what a "fewer windows" approach to Smalltalk development might look >> like. >> > > This is an interesting UI area to explore. As a step in this direction, the > Window Menu (small arrow in title bar) item "Create window group" may > provide part of the behaviour you are looking for. > cheers -ben -- Cheers Cyril Ferlicot
Re: [Pharo-users] Fun with pillar and mustache
Guille asked me to add some feature for that, I added it to the TODO list of Pillar but I don't have the time to do it now. On 21 May 2015 at 00:40, Norbert Hartl wrote: > Good. I would be pleased if you could show me what you've done so far so I > don't waste time on things already solved. > > Norbert > >> Am 21.05.2015 um 00:03 schrieb stepharo : >> >> We did the same with guillermo but we are bullet profing the code before >> announcing it. >> >> Stef >> >> >> Le 20/5/15 21:45, Norbert Hartl a écrit : >>> I've found some minutes today to play with pillar and mustache. I wanted to >>> know how far I can go when doing some static site generation. The exercise >>> was to simulate a page that has multiple components either in mustache or >>> pillar format. I could do this >>> >>> | masterTemplate masterPillar masterDocument partialPillar partialTemplate >>> finalPillar | >>> >>> masterTemplate := ' >>> {{{title}}} >>> >>> {{{content}}} >>> >>> '. >>> >>> masterPillar := '{{title: This is the title of the master!}} >>> !masterheading >>> >>> This text is contained in the master pillar template >>> >>> {>phase2Template}'. >>> >>> partialPillar := '!{{title}} >>> >>> Some text in the partial template before the content... >>> >>> {{content}}} >>> >>> ... and after'. >>> >>> finalPillar := 'I''m a text in pillar format that was inserted in a partial >>> mustache template generated from pillar that was inserted in a mustache >>> master template in pillar format that was inserted in a master mustache >>> template'. >>> >>> masterDocument := PRDocumentParser parse: masterPillar readStream. >>> >>> partialTemplate := PRHTMLWriter write: (PRDocumentParser parse: >>> partialPillar readStream). >>> >>> phase1Result := masterTemplate asMustacheTemplate >>> value: masterDocument properties, { >>> 'content' -> (PRHTMLWriter write: masterDocument) } >>> asDictionary. >>> >>> phase2Result := phase1Result asMustacheTemplate >>> value: { >>> 'title' -> 'A partial title'. >>> 'content' -> (PRHTMLWriter write: (PRDocumentParser parse: >>> finalPillar readStream)) } asDictionary >>> partials: { >>> 'phase2Template' -> partialTemplate } asDictionary. >>> >>> and got >>> >>> >>> This is the title of the master! >>> >>> masterheading >>> This text is contained in the master pillar template >>> A partial title >>> Some text in the partial template before the content... >>> I'm a text in pillar format that was inserted in a partial mustache >>> template generated from pillar that was inserted in a mustache master >>> template in pillar format that was inserted in a master mustache >>> template} >>> ... and after >>> >>> >>> >>> That is really cool. Actually pillar and mustache are a good match. >>> >>> FYI, >>> >>> Norbert >>> >>> >>> >>> >> >> > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Fun with pillar and mustache
Cocoon allow you to manage configuration with a .conf file and a STON syntax. You can see how Cocoon work with the class PRCocoonConfiguration of Pillar. I'll try to create a demo of Cocoon when I'll have the time. But to make simple you can define some parameters on your configuration and you give them a default value. Then if the user define a configuration Cocoon will change the default value for the value of the user. You can also use the value to create something else with CocoonSTONInterpreter. (For example on Pillar we check the outputType parameter and we choose or Writer in the PRCocoonInterpreter). And after you can use Cocoon parameters in your application. On 21 May 2015 at 14:01, Norbert Hartl wrote: > > Am 21.05.2015 um 10:51 schrieb Guillermo Polito : > > Hi! > > Well, we have this secret really not mature project we started with stef a > couple of weeks ago. > > https://github.com/guillep/Ecstatic > > For now it has some simple features: > - you open an image and it will start serving your site + regenerating it > every couple of seconds (nice to debug and forget about running pillar > commands) > > > Cool. I was thinking about in-image editing of pillar with Rubric (or the > best available choice). Then you can generate on save. > > - we made some themes based on the one I made for dbxtalk, the one from > stef's personal website and esug website. > - we tried to push site configuration to the pillar.conf (title, > menu/navigation information, author/contact info) > > > I had a look at Cocoon but I'm not sure what purpose it serves. Maybe I need > to get to used to it. > > - another thing we wanted to push was the writing of plugins for the > moment taking benefit from the [[[eval=true]]]. We were thinking however on > making a special annotation for it. We have two really simple stupid > "plugins", one that shows a list of news/blog feed, one that generates a > list of publications based on a bib file using citezen. > > YES! That is exactly what I was looking for. Something that can be evaluated > dynamically. That opens a wide range of possibilities. > > I originally started this for the new dbxtalk site which is written > basically in pillar. > > http://dbxtalk.smallworks.eu/ > > You can see the source code of this site in here: > > https://github.com/guillep/DBXTalk/tree/gh-pages > > Nice! > > Of course, there you will notice a lot of *workarounds* to make it work. > I've made a list of those workarounds and sent them to Cyril to see if we > can have better support for them in pillar. > > I'd be pleased if you contribute and push it :). We have this trello board > to add ideas and manage our backlog > > https://trello.com/b/2t7qTWpp/ecstatic > > Thanks. I think I'll find some time this weekend to see how your project > fits into my needs. I'll be happy nagging you about some things ;) > > Norbert > > Guille > > > El jue., 21 de may. de 2015 a la(s) 1:10 a. m., Cyril Ferlicot > escribió: >> >> Guille asked me to add some feature for that, I added it to the TODO >> list of Pillar but I don't have the time to do it now. >> >> On 21 May 2015 at 00:40, Norbert Hartl wrote: >> > Good. I would be pleased if you could show me what you've done so far so >> > I don't waste time on things already solved. >> > >> > Norbert >> > >> >> Am 21.05.2015 um 00:03 schrieb stepharo : >> >> >> >> We did the same with guillermo but we are bullet profing the code >> >> before announcing it. >> >> >> >> Stef >> >> >> >> >> >> Le 20/5/15 21:45, Norbert Hartl a écrit : >> >>> I've found some minutes today to play with pillar and mustache. I >> >>> wanted to know how far I can go when doing some static site generation. >> >>> The >> >>> exercise was to simulate a page that has multiple components either in >> >>> mustache or pillar format. I could do this >> >>> >> >>> | masterTemplate masterPillar masterDocument partialPillar >> >>> partialTemplate finalPillar | >> >>> >> >>> masterTemplate := ' >> >>> {{{title}}} >> >>> >> >>> {{{content}}} >> >>> >> >>> '. >> >>> >> >>> masterPillar := '{{title: This is the title of the master!}} >> >>> !masterheading >> >>> >> >>> This text is contained in the master pillar template >> >&g
[Pharo-users] Pillar 0.56 : New features, new syntax
Hello, today I created the version 0.56 of Pillar and with this version we'll need to do some changes, sorry. The first change is the numerator. The old numerator was too limited, so i changed it. Now if you put different files into the pillar.conf the numerator will not be reset at each files. The parameters 'startNumberingAtHeaderLevel:' and 'stopNumberingAtHeaderLevel:' are replace by 'level1:', 'level2:', 'level3:', 'level4:', 'level5:'. For now they can take 3 sub-parameters: 'numbering', 'size' and 'renderAs'. numbering: a boolean that say if this header level need to be take in account by the numerator. size: the number of level we want to render. You can put numbering at true and size at 0 if you want your numerator to be reset at a level without rendering the number of this level. renderAs: can be number, roman, letter or upperLetter. Example: pillar.conf: { 'level1': { 'numbering': true, 'size': 1, 'renderAs': 'roman' }, 'level2': { 'numbering': true, 'size': 2, 'renderAs': 'number' }, 'level3': { 'numbering': true, 'size': 1, 'renderAs': 'upperLetter' }, 'level4': { 'numbering': true, 'size': 2, 'renderAs': letter }, 'level5': { 'numbering': false }, } document.pillar: ! Example !! Introduction !!! Beginning !!! Example - Intro Example 1 Example 2 ! With X ! With Y !! Explanation Result: I. Example I.1. Introduction A. Beginning B. Example - Intro B.a. Example 1 B.b. Example 2 With X With Y I.2. Explanation In the future we could also add feature like 'delimiter'. The second main change is the Internal Links. Now when you want to reefer to an anchor, a figure or a script you'll need to use *@anchor* instead of *anchor*. I'm sorry for that but that's the easiest way to implement the inter-files links. And so the last main change is the Inter-files links ! Imagine you're writing a book. You have a directory 'Chapter1' which contains the file 'chapter1.pillar' and a directory 'Chapter2' with a file 'chapter2.pillar'. If you want to make a reference to the chapter 1 in the chapter 2 you can create an interfile link you can now use the syntax: *../Chapter1/chapter1.pillar* But be careful ! Remember that pillar can export in different format. And you can export a group of file as separate output files or as one file. So if you don't use an Alias your link will not be render if you export as one output file in LaTeX. And if you export in LaTeX or HTML or Markdown as one output file and you don't have an anchor on your link, the link will be vanish. So I recommend to use inter file links like this: *Chapter 1>../Chapter1/chapter1.pillar@cha:chapter1* when cha:chapter1 is an anchor you need to create at the beginning of the chapter 1. I already changed the links on Enterprise Pharo (you can find a table with the list of the inter-files links on the README.md) On last thing for the people who write book for SquareBracketAssociates: It would be good to have some conventions, so if you create anchors use this form : @sec:nameOfSection for a section @cha:nameOfTheChapter for a title of chapter @fig:nameOfFigure for a figure @spt:nameOfTheScript for a script -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Pharo-dev] Pillar 0.56 : New features, new syntax
Hi. We used '@' because Pier used it this way. I'm afraid that if we change the character that will break Pier. But if you write *Chapter 1>../Chapter1/chapter1.pillar@cha:chapter1* and export in HTML you'll get I. Chapter 1 On 23 May 2015 at 08:44, Norbert Hartl wrote: > Cyril, > > Am 22.05.2015 um 23:12 schrieb Cyril Ferlicot : > > The second main change is the Internal Links. > Now when you want to reefer to an anchor, a figure or a script you'll > need to use *@anchor* instead of *anchor*. > I'm sorry for that but that's the easiest way to implement the > inter-files links. > > > why @? It is about links and how to point to a fragment inside a resource. > This already exists and is called fragment identifier > > http://en.wikipedia.org/wiki/Fragment_identifier > > You do it by using # the separate the resource and the fragment in an URI. > > '../chapters/chapter1.pillar#section1' > > is complete valid URI and the way to go. Can you change that? > > Norbert > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is the Playground the Workspace?
Hi, The playground is not the workspace. You can open a workspace by executing this : Workspace open. But the playground replace the workspace and all the doc will be updated to refers to the Playground. Almost everything you could do on a Workspace can be done in the Playground. If you follow Pharo By Example you might have some difficulties with Pharo 4 because PBE was for Pharo 1. We are updating it to Pharo 4 but that takes time. You can find a version here : https://ci.inria.fr/pharo-contribution/view/Books/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/UpdatedPharoByExample.pdf But keep in mind that it's not finish. On 24 May 2015 at 17:14, Daniel Roe wrote: > I am a complete noob when it comes to Smalltalk. I have chosen both Squeak > and Pharo to learn this language. I am doing so just for my own knowledge > and to try and keep my aging brain active. I may choose down the road to > concentrate on one of the Smalltalk variants but right now I'm going to go > with both. > > My question: All of the documentation refers to a Workspace. Sqeak has one > but all I find in Pharo is the Playground. Does the Playground serve as the > Pharo Workspace? > > Thanks for your time, > > Dan -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is the Playground the Workspace?
On the top right of the tools in Pharo you have a little black arrow. If you click on it you have a menu and an "about" field to explain the purpose of the tool. On 24 May 2015 at 17:32, Daniel Roe wrote: > Question to Daniel: > > Did you try to know something about the tool before in the IDE? > > For example, did you try to read the About of the tool? > > (I'm trying to determine how useful/accesible are the help features of the > tools) > > To show you what a noob I am - I don't even understand your question. > > Dan -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is the Playground the Workspace?
I see the little arrow in the last version in the Pharo Launcher. On 24 May 2015 at 17:37, Serge Stinckwich wrote: > Apparently this black arrow works in Pharo 4.0 but this is broken in MOOSE 5.1 > > > On Sun, May 24, 2015 at 5:33 PM, Cyril Ferlicot > wrote: >> On the top right of the tools in Pharo you have a little black arrow. >> If you click on it you have a menu and an "about" field to explain the >> purpose of the tool. >> >> On 24 May 2015 at 17:32, Daniel Roe wrote: >>> Question to Daniel: >>> >>> Did you try to know something about the tool before in the IDE? >>> >>> For example, did you try to read the About of the tool? >>> >>> (I'm trying to determine how useful/accesible are the help features of the >>> tools) >>> >>> To show you what a noob I am - I don't even understand your question. >>> >>> Dan >> >> >> >> -- >> Cheers >> Cyril Ferlicot >> > > > > -- > Serge Stinckwich > UCBN & UMI UMMISCO 209 (IRD/UPMC) > Every DSL ends up being Smalltalk > http://www.doesnotunderstand.org/ > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is the Playground the Workspace?
We are working on it but that takes time ;) On 24 May 2015 at 17:40, Daniel Roe wrote: > That little black arrow... > > Aha! Now I have learned something useful. > > I realize that the updating of Pharo is important but it would only be > better if the documentation could be kept current as well. > > Thanks again... > Dan -- Cheers Cyril Ferlicot
Re: [Pharo-users] Not Pharo related - how does one respond to a message
Hi. You just need to use the button "Reply" or "Reply to All" if it's for multi mailing list. On 24 May 2015 at 18:50, Daniel Roe wrote: > Please allow me this one non-Pharo message. I am not that familiar with > these message boards. When I see a message that I want to respond to how do > I do that? I've been going to my email program - hotmail - and pasting in > the subject line - copying and pasting any text that I want to include in my > reply - writing a reply and then sending it. I can't believe that there's > now a much more efficient way to do this. > > Enlighten me, please. > > Dan -- Cheers Cyril Ferlicot
Re: [Pharo-users] PBE - Updated - section 2.10 System Browser
Nautilus is the Systeme Browser. Maybe a more experienced smalltalker will be able to explain the name. I'm not sure tu understand your second request but I think you talk about that : http://puu.sh/hZlzN/148ae35f71.png ? If it's that it's use to develops the categories. Each class of a Package can be in a specific category (or not). It's good to have nooby questions about UPBE because that help us to know what is wrong or what is missing ! On 25 May 2015 at 02:43, Daniel Roe wrote: > I am running Pharo 4.0, I think. I go to section 2.10 of the updated PBE > (claimed to be for Pharo 4.0) which deals with The System Browser. I click > on the background and get the World menu - I click on System Browser and get > Nautilus instead of the System Browser (???). OK, so I search around and > eventually find my way to printString. > > Two questions: > 1) What is Nautilus - did I miss something here?, and > > 2) What are the shaded right facing triangles pointing to various menu > entries trying to tell me? > > I tried to warn you - get ready for just a truck load of noobie questions. > > Dan -- Cheers Cyril Ferlicot
Re: [Pharo-users] PBE - Updated - section 2.10 System Browser
If you find that something is not clear you can open an issue on the github of UPBE : https://github.com/SquareBracketAssociates/UpdatedPharoByExample/issues On 25 May 2015 at 02:55, Cyril Ferlicot wrote: > Nautilus is the Systeme Browser. > Maybe a more experienced smalltalker will be able to explain the name. > > I'm not sure tu understand your second request but I think you talk > about that : http://puu.sh/hZlzN/148ae35f71.png ? > If it's that it's use to develops the categories. > Each class of a Package can be in a specific category (or not). > > It's good to have nooby questions about UPBE because that help us to > know what is wrong or what is missing ! > > On 25 May 2015 at 02:43, Daniel Roe wrote: >> I am running Pharo 4.0, I think. I go to section 2.10 of the updated PBE >> (claimed to be for Pharo 4.0) which deals with The System Browser. I click >> on the background and get the World menu - I click on System Browser and get >> Nautilus instead of the System Browser (???). OK, so I search around and >> eventually find my way to printString. >> >> Two questions: >> 1) What is Nautilus - did I miss something here?, and >> >> 2) What are the shaded right facing triangles pointing to various menu >> entries trying to tell me? >> >> I tried to warn you - get ready for just a truck load of noobie questions. >> >> Dan > > > > -- > Cheers > Cyril Ferlicot -- Cheers Cyril Ferlicot
Re: [Pharo-users] Pillar 0.56 : New features, new syntax
Hi, 2 possibility: - You have an old version of Pillar - You check the wrong file. With the version 0.47 of Pillar we changed the way files was generated. Before if you had a file foo.pillar exported foo.pillar.html but since the version 0.47 you get foo.html only. So check if you have a file "Fuel.html" and if you don't have it just execute ./download.sh before the ./compile.sh You should get that : https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/Fuel/Fuel.html :) On 25 May 2015 at 03:10, Johan Fabry wrote: > > Cyril, thanks for doing all of this, but now the links seem to be broken, at > least for the html export on my machine. :-( I am working on the Fuel > chapter, and I see that inter-file links are broken in the first paragraph, > and intra-file links are broken e.g. figure 6.1. Example of changes to a > class. > > Could you have a look? The pillar file is in github, the Fuel.pillar.html > result of ./compile.sh is here: > https://dl.dropboxusercontent.com/u/31426460/Fuel.pillar.html > > Thanks in advance! > >> On May 22, 2015, at 18:12, Cyril Ferlicot wrote: >> >> I already changed the links on Enterprise Pharo (you can find a table >> with the list of the inter-files links on the README.md) >> >> On last thing for the people who write book for SquareBracketAssociates: >> It would be good to have some conventions, so if you create anchors >> use this form : >> @sec:nameOfSection for a section >> @cha:nameOfTheChapter for a title of chapter >> @fig:nameOfFigure for a figure >> @spt:nameOfTheScript for a script > > > > ---> Save our in-boxes! http://emailcharter.org <--- > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD lab - Computer Science Department (DCC) - University of Chile > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [Moose-dev] Pillar 0.56 : New features, new syntax
No problem! Think like this happen easily. Yeah that's right. I think I know where is the error. I'll correct that tomorrow if I have time. Thank you for your feedback! On 25 May 2015 at 04:03, Johan Fabry wrote: > > Aah silly me, I still had the old version of Pillar. Many apologies! > > Now it works, but I found a bug: do a find for ‘shown in Section 5.3.3’ in > the same html file. The section title there is V.3.C. So it should say ‘shown > in Section V.3.C.’, right? > >> On May 24, 2015, at 22:17, Cyril Ferlicot wrote: >> >> Hi, >> 2 possibility: >> - You have an old version of Pillar >> - You check the wrong file. >> >> With the version 0.47 of Pillar we changed the way files was generated. >> Before if you had a file foo.pillar exported foo.pillar.html >> but since the version 0.47 you get foo.html only. >> >> So check if you have a file "Fuel.html" and if you don't have it just >> execute ./download.sh before the ./compile.sh >> >> You should get that : >> https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/Fuel/Fuel.html >> >> :) > > > > ---> Save our in-boxes! http://emailcharter.org <--- > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD lab - Computer Science Department (DCC) - University of Chile > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Is it always needed to redefine #hash message when you redefine #= message?
I think you redefine hash to allow a Set to know if two objects are the same or not. So it's not an equals but it's a way for a Set to know if an equivalent element is already on a Set or not. Correct me if i'm wrong. On 26 May 2015 at 20:45, Julien Delplanque wrote: > The subject of this mail is exactly my question. > > I came to this question by looking at Object>>#= message implementation. > > """ > = anObject > "Answer whether the receiver and the argument represent the same > object. If = is redefined in any subclass, consider also redefining the > message hash." > > ^self == anObject > """ > > When do we need to redefine #hash message? > > Is it the right way to implement equality between two objects or is there > another message that I should override? > > Regards, > Julien > -- Cheers Cyril Ferlicot
Re: [Pharo-users] PBE - Updated -2.8 - overlapping windows
I think we can remove that step and maybe use this example to explain the system of window group in UPBE. I'll open an issue on UPBE. On 27 May 2015 at 09:06, Marcus Denker wrote: > > On 26 May 2015, at 17:51, Daniel Roe wrote: > > PBE- Updated Section 2.8 > > This section asks you to open both a Playground and a Transcripts window but > wants the Playground window just overlapping the Transcript window. I do > that with a Transcript show: 3 + 4 entry in the Playground and, sure enough, > a 7 appears in the Transcript window. > > But... what was the point of asking you to overlap the windows? What have I > missed? > > > I have no idea either… I think it is not needed and step3 can just be > removed from the instructions. > > Marcus -- Cheers Cyril Ferlicot
Re: [Pharo-users] Slice for a non Pharo package ?
Hi, Marcus told me that the procedure was: - You open an issue about a non Pharo package. - You do your changes - You save your changes on the project's smalltalkhub (For example www.smalltalkhub.com/#!/~Pharo/Athens/main, and if you don't have the right send a mail on the mailing list to have them) - You resolve the case on foxbugz and you put the case in "Resolved (Fixed upstream)" When your changes will be merge and a new configurationOf will be created Marcus will close the issue. On 30 May 2015 at 13:46, Nicolai Hess wrote: > I or one of the other athens maintainer can include the > fix in the athens repository and > create a new configuration for integration in the main image. > > > 2015-05-30 12:47 GMT+02:00 Matthieu Lacaton : >> >> Hello, >> >> I reported a bug on Athens here : https://pharo.fogbugz.com/f/cases/15640/ >> >> I also created a slice to solve it by following the Pharo fogbugz video >> tutorial. >> But then I realized that Athens is not present in Pharo/main so it would >> not make sense to commit the slice into the Pharo Inbox. >> >> What is the procedure to propose a Slice for a package outside Pharo/main >> ? >> >> Sorry if it's a dumb question :s >> >> Cheers, >> >> Matthieu > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Transfer image between OSes
You should just open a new issue on fogbugz and describe what you have done to get the bug. https://pharo.fogbugz.com/ Le samedi 30 mai 2015, mtk a écrit : > Hi Sven, > > is there a form for a bug report somewhere? Where should I send it? > > Best > > Marcus > > > > -- > View this message in context: > http://forum.world.st/Transfer-image-between-OSes-tp4829484p4829496.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] pillar remove numbering from some headings
Hi Peter, for now Pillar doesn't manage this. I'll take a look at it when I'll work on the Beamer exporter. On 3 June 2015 at 03:20, Peter Uhnák wrote: > Hi, > > is there a way to remove heading numbering for some headings? > > Basically I'm looking for an equivalent of Latex' \subsection*{...}. > > Thanks, > Peter -- Cheers Cyril Ferlicot
Re: [Pharo-users] Bug in Open Workspace from File-Browser?
If you want to open a workspace or a playground we should use: viewContentsInWorkspace "View the contents of my selected file in a new workspace" | aString | self reference streamWritable: false do: [ :stream | aString := stream setConverterForCode contentsOfEntireFile ]. Smalltalk tools workspace openContents: aString label: 'Workspace from ' , self reference basename BUT! If we open a file which is not a Smalltalk code the syntax coloring is really a bad idea. Someone know if we can desable the syntax coloring for an instance of the playground or workspace ? If we can't we should change the name on the menu and not the action of the menu. Thank. On 6 June 2015 at 16:37, volkert wrote: > Is this change resonable. I have no idea, what the Design-Idea behind the > UIManager what services is should provide. May be it make sense to have the > extra services on UIManager, but think the bug is in > FileList>>viewContentsInWorkspace and not in UIManager. > > > I propose for Workspace to change the current code: > > FileList>>viewContentsInWorkspace > "View the contents of my selected file in a new workspace" > | aString | > self reference streamWritable: false do: [ :stream| > aString := stream setConverterForCode contentsOfEntireFile ]. > UIManager default edit: aString label: 'Workspace from ', self reference > basename <- WRONG > > to : > > FileList>>viewContentsInWorkspace > "View the contents of my selected file in a new workspace" > | aString | > self reference streamWritable: false do: [ :stream| > aString := stream setConverterForCode contentsOfEntireFile ]. > Workspace openContents: aString label: 'Workspace from ', self reference > basename > > And i also proposse the add a Playground case. > > New Method: > > FileList>>viewContentsInPlayground > "View the contents of my selected file in a new playground" > | aString | > self reference streamWritable: false do: [ :stream| > aString := stream setConverterForCode contentsOfEntireFile ]. > GTPlayground openContents: aString label: 'Playground from ', self > reference basename. > > and also FileList>>serviceViewContentsInPlayground and the case in > ListList>>itemsForAnyFile. > > If ok, i can fix Workspace and add Playground menu to FileList, after i have > figured out how to send an fix ;-) > > BW, > Volkert > > > Am 03.06.2015 um 16:40 schrieb Ben Coman: > > Or do we now want such to open in Playground? > > btw, these are the relevant methods. > FileList>>FileList>>viewContentsInWorkspace > FileList>>viewContentsInWorkspace > > cheers -ben > > On Wed, Jun 3, 2015 at 6:57 PM, volkert > wrote: > > The File Browser has a Context Menu "Workspace with Contents". It opens an > Edit Window (String Morph), but not a Workspace ... > > Is the Menu-Title wrong or the implementation? > > BW, > Volkert > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] Bug in Open Workspace from File-Browser?
Thank you volkert for the correction! On 12 June 2015 at 11:05, Cyril Ferlicot wrote: > If you want to open a workspace or a playground we should use: > > viewContentsInWorkspace > "View the contents of my selected file in a new workspace" > > | aString | > self reference streamWritable: false do: [ :stream | aString := > stream setConverterForCode contentsOfEntireFile ]. > Smalltalk tools workspace openContents: aString label: 'Workspace > from ' , self reference basename > > BUT! > If we open a file which is not a Smalltalk code the syntax coloring is > really a bad idea. > Someone know if we can desable the syntax coloring for an instance of > the playground or workspace ? > > If we can't we should change the name on the menu and not the action > of the menu. > Thank. > > On 6 June 2015 at 16:37, volkert wrote: >> Is this change resonable. I have no idea, what the Design-Idea behind the >> UIManager what services is should provide. May be it make sense to have the >> extra services on UIManager, but think the bug is in >> FileList>>viewContentsInWorkspace and not in UIManager. >> >> >> I propose for Workspace to change the current code: >> >> FileList>>viewContentsInWorkspace >> "View the contents of my selected file in a new workspace" >> | aString | >> self reference streamWritable: false do: [ :stream| >> aString := stream setConverterForCode contentsOfEntireFile ]. >> UIManager default edit: aString label: 'Workspace from ', self reference >> basename <- WRONG >> >> to : >> >> FileList>>viewContentsInWorkspace >> "View the contents of my selected file in a new workspace" >> | aString | >> self reference streamWritable: false do: [ :stream| >> aString := stream setConverterForCode contentsOfEntireFile ]. >> Workspace openContents: aString label: 'Workspace from ', self reference >> basename >> >> And i also proposse the add a Playground case. >> >> New Method: >> >> FileList>>viewContentsInPlayground >> "View the contents of my selected file in a new playground" >> | aString | >> self reference streamWritable: false do: [ :stream| >> aString := stream setConverterForCode contentsOfEntireFile ]. >> GTPlayground openContents: aString label: 'Playground from ', self >> reference basename. >> >> and also FileList>>serviceViewContentsInPlayground and the case in >> ListList>>itemsForAnyFile. >> >> If ok, i can fix Workspace and add Playground menu to FileList, after i have >> figured out how to send an fix ;-) >> >> BW, >> Volkert >> >> >> Am 03.06.2015 um 16:40 schrieb Ben Coman: >> >> Or do we now want such to open in Playground? >> >> btw, these are the relevant methods. >> FileList>>FileList>>viewContentsInWorkspace >> FileList>>viewContentsInWorkspace >> >> cheers -ben >> >> On Wed, Jun 3, 2015 at 6:57 PM, volkert >> wrote: >> >> The File Browser has a Context Menu "Workspace with Contents". It opens an >> Edit Window (String Morph), but not a Workspace ... >> >> Is the Menu-Title wrong or the implementation? >> >> BW, >> Volkert >> >> > > > > -- > Cheers > Cyril Ferlicot -- Cheers Cyril Ferlicot
Re: [Pharo-users] Updated Pharo By Example
The possibility to take automatic screenshot should be added to Pillar but for now it's just an idea and no one have the time to do it. On Fri, Oct 23, 2015 at 6:59 PM, Dimitris Chloupis wrote: > I completely agree with Stef, I did actually removed some screenshots and > someone put them pack > > Maybe I can create a pharo script to auto make them for each version > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [IMPORTANT] Starting migration to Spur VM
You can use this: wget --quiet -O - get.pharo.org/$PHARO+$VM | bash at the beginng of your script to get the latest image and VM. With that you will have a spur image and a spur vm. And at the end: rm *.image *.changes rm -rf pharo-vm If there is still a problem I think it is a bug in Pharo with the migration. On Thu, Dec 17, 2015 at 3:54 PM, Johan Fabry wrote: > > Guys, how should I adapt my CI job ? > >> On Dec 15, 2015, at 12:25, Johan Fabry wrote: >> >> >> Sorry for the stupid question, but how should I adapt my CI job? I saw that >> the last build failed with no tests being run, so I guess this was due to >> the VM being changed. >> >>> On Dec 14, 2015, at 07:24, Esteban Lorenzano wrote: >>> >>> 5) You will need to adapt your Pharo 5.0 related apps and CI processes (to >>> take care about new VM). >> >> >> >> ---> Save our in-boxes! http://emailcharter.org <--- >> >> Johan Fabry - http://pleiad.cl/~jfabry >> PLEIAD and RyCh labs - Computer Science Department (DCC) - University of >> Chile >> >> >> > > > > ---> Save our in-boxes! http://emailcharter.org <--- > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD and RyCh labs - Computer Science Department (DCC) - University of > Chile > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] [IMPORTANT] Starting migration to Spur VM
Your build is on Pharo-contribution ? Maybe someone can take a look to see what is wrong :) On Thu, Dec 17, 2015 at 4:16 PM, Johan Fabry wrote: > > Unfortunately my script is already doing that (except for removing the vm). > :-( Anything else I can try or am I stuck until this is fixed upstream? > >> On Dec 17, 2015, at 12:00, Cyril Ferlicot wrote: >> >> You can use this: >> >> wget --quiet -O - get.pharo.org/$PHARO+$VM | bash >> >> at the beginng of your script to get the latest image and VM. With >> that you will have a spur image and a spur vm. >> >> And at the end: >> >> rm *.image *.changes >> rm -rf pharo-vm >> >> If there is still a problem I think it is a bug in Pharo with the migration. >> >> >> >> On Thu, Dec 17, 2015 at 3:54 PM, Johan Fabry wrote: >>> >>> Guys, how should I adapt my CI job ? >>> >>>> On Dec 15, 2015, at 12:25, Johan Fabry wrote: >>>> >>>> >>>> Sorry for the stupid question, but how should I adapt my CI job? I saw >>>> that the last build failed with no tests being run, so I guess this was >>>> due to the VM being changed. >>>> >>>>> On Dec 14, 2015, at 07:24, Esteban Lorenzano wrote: >>>>> >>>>> 5) You will need to adapt your Pharo 5.0 related apps and CI processes >>>>> (to take care about new VM). >>>> >>>> >>>> >>>> ---> Save our in-boxes! http://emailcharter.org <--- >>>> >>>> Johan Fabry - http://pleiad.cl/~jfabry >>>> PLEIAD and RyCh labs - Computer Science Department (DCC) - University >>>> of Chile >>>> >>>> >>>> >>> >>> >>> >>> ---> Save our in-boxes! http://emailcharter.org <--- >>> >>> Johan Fabry - http://pleiad.cl/~jfabry >>> PLEIAD and RyCh labs - Computer Science Department (DCC) - University >>> of Chile >>> >>> >> >> >> >> -- >> Cheers >> Cyril Ferlicot >> >> > > > > ---> Save our in-boxes! http://emailcharter.org <--- > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD and RyCh labs - Computer Science Department (DCC) - University of > Chile > > -- Cheers Cyril Ferlicot
Re: [Pharo-users] example of stand-alone desktop app
Hi, I don't have too much time now so I will try to answer fast. First, be careful with Pharo 5 because this is an alpha. There is high chance that some things breake. If you find some bug you can report it on pharo's fogbugz (the link is on Pharo website). For the deployment you have a different virtual machine for OSX/Linux/windows. Very few things should change on the image side. So for a desktop app the user need to install the virtual machine and launch the image you give him. You can also provide the VM with the image directly if you do not want to annoy the user. For now the VM is only 32b, this can create some trouble for Linux users but the 64b VM should come soon! :) maybe for Pharo 6? If I remember well I think there may be a all-in-all VM but someone need to confirm. For now there is not a lot of classic application. I think you can take a look at Dr Geo. For the deployment I have to say that for now there is not a real solution :( If you want to do open source you can use the same method that PharoLauncher that open a window in full screen and let a setting for developers to be able to get a classic Pharo environment. But the user might have acess to the code through GTSpotter or Morph's halos. If you don't want the user to get an acess to the code by any mean you have to cut everything by hand for now. (Disable spotter, disable halo, disable world menu, disable the debugger...). I would like to have a way to lock an image directly from Pharo but I don't have the time to do it for now. If you need some help to do that you can ask when you will code and we can help you. Welcome to Pharo and merry Christmas! -- Cyril Ferlicot Synectique On Friday, December 25, 2015, Saša Janiška wrote: > Hello, > > I've decided to end my search for an appropriate language/environment in > order to write open-surce multi-platform with Pharo. :-) > > Playing a bit with 5.0 image, watching Dimitris' tutorial series, > reading several articles (I like Richard's Smalltalk-Talk), subscribed > to the mailing lists...convinced me that Smalltalk/Pharo is so much > refreshing environment to code in comparison with the pale setup present > in som many other statically-compiled languages which I was > exploring/evaluating, not to speak about the fact that with Pharo one > gets complete setup at once without the need for tedious work of > bringing editor+other tools together. > > I'm aware that Pharo (Smalltalk) are different and I really like its > development environment, but wonder about deploying. > > There is old thread from 2013 providing some help about deploying > desktop app, but I wonder if something has changed since then making the > whole process somewhat more smooth? > > I run Debian (Sid) where I'll do all my coding, but would like to > provide versions of my desktop app for both Windows and Mac OS-es. > > Any hint how to proceed? > > I'd like to see see basic examples which would be equivalent to e.g. > some 'classical' desktop app having menu bar wit File/Edit/../About > items etc. > > What is different with Pharo? > > I assume one does not want to expose the whole dev environment to the > end-users, so wonder how to do it? > > Do devs plan to improve deploying of Pharo desktop app in the future? > > Although it may be strange, but I'm one of those not liking > proliferation of JS and using it for almost everything and therefore I > prefer to stay with Pharo (vs e.g. Amber) and write desktop app... > > > Sincerely, > Gour > > -- > The intricacies of action are very hard to understand. > Therefore one should know properly what action is, > what forbidden action is, and what inaction is. > > > > > > -- Cheers Cyril Ferlicot