Re: [Pharo-users] problem with Cairo library

2016-04-18 Thread Stephan Eggermont
On 19-04-16 06:59, mathias arnaud nkeumo tsombeng wrote: I have implement a method that is indicating where external library inthis case libpcap. When i try to inspect the method and having and error : cannot locate cairo library please check if it is install on your system. After installing it

[Pharo-users] problem with Cairo library

2016-04-18 Thread mathias arnaud nkeumo tsombeng
Hi All, I have implement a method that is indicating where external library inthis case libpcap. When i try to inspect the method and having and error : cannot locate cairo library please check if it is install on your system. After installing it on my ubuntu 14.04, i still have thesame error.

Re: [Pharo-users] Hello World (found a RoelTyper Bug)

2016-04-18 Thread Diego Orellana
Hello, My smalltalkhub user is dorellang. Cheers. 2016-04-15 17:27 GMT-03:00 stepharo : > Hello Diego > > Good initiative! > RoelTyper is not a Moose project. It is just used in moose. > Now it would be good to check a bit (RoelTyper was made to work on > VisualWorks and

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread Offray Vladimir Luna Cárdenas
Hi, Thanks for this. Some suggestions: I would change "Questions" for "Questions/Chat" to point to the slack place, because with only "Questions" I would expect more something like a Q site like StackExchange. By the way, as a future wish, would be nice to have something like

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread Peter Kenny
I agree - very good! One more tiny change: "Class methods follow the same dynamic lookup *as* instance methods." Also, under 'Message Precedence', I did not at first follow the sentence: " Messages + and * are sent first, then between: and: is sent, and not." Perhaps "then not" or "and then not"

Re: [Pharo-users] Rename a file

2016-04-18 Thread Tudor Girba
You can also use String>>asFileReference: relative path: './foo.txt' asFileReference absolute path: '/foo.txt' asFileReference Cheers, Doru > On Apr 18, 2016, at 11:01 AM, Cyril Ferlicot Delbecque > wrote: > > > > On 18/04/2016 10:56, Valentin

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread Sean P. DeNigris
Great job!! A few small things: Typo: "Less is more: No type declarations, no primitive objects,no generic types, no modifiers, no operators, no inner classes, no constructors, and no static methods.***There*** are not needed!". There -> They A bit opaque: "The character a and a space". We're

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread stepharo
Le 18/4/16 09:15, Nicolai Hess a écrit : 2016-04-18 8:54 GMT+02:00 stepharo >: Hi I will publish it to the pharo file server as soon as I understand how :) Stef 1. the pharo logo is not anymore the one we are using in the

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread stepharo
http://files.pharo.org/media/pharoCheatSheet.pdf Le 18/4/16 08:54, stepharo a écrit : Hi I will publish it to the pharo file server as soon as I understand how :) Stef

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
An interresting fact is that exists answer true to (FileSystem root / 'aPath/cat.jpg') exists 2016-04-18 11:25 GMT+02:00 Nicolai Hess : > > > 2016-04-18 11:08 GMT+02:00 Sven Van Caekenberghe : > >> Think of it as follows: Pharo is cross platform, forward

Re: [Pharo-users] Rename a file

2016-04-18 Thread Nicolai Hess
2016-04-18 11:08 GMT+02:00 Sven Van Caekenberghe : > Think of it as follows: Pharo is cross platform, forward slash is used on > *nix and Mac OS, but not Windows where it is backslash. FileReference is an > object oriented API that abstracts over that. Asking for an interpretation >

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
Ok thanks everyone for your answers I got it ! :) 2016-04-18 11:08 GMT+02:00 Sven Van Caekenberghe : > Think of it as follows: Pharo is cross platform, forward slash is used on > *nix and Mac OS, but not Windows where it is backslash. FileReference is an > object oriented API that

Re: [Pharo-users] Rename a file

2016-04-18 Thread Sven Van Caekenberghe
Think of it as follows: Pharo is cross platform, forward slash is used on *nix and Mac OS, but not Windows where it is backslash. FileReference is an object oriented API that abstracts over that. Asking for an interpretation of the sub parts is a step too far (even if it would be handy). > On

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread John Pfersich
Under Methods, you might want to change it to this: Methods are public and virtual. They are always looked up in the class of the receiver. By default a method returns self. Class methods follow the same dynamic lookup as instance methods. Method factorial defined in class Integer. Sent

Re: [Pharo-users] Rename a file

2016-04-18 Thread Cyril Ferlicot Delbecque
On 18/04/2016 10:56, Valentin Ryckewaert wrote: > I'm on Linux > > Is it wanted that root / 'a' / 'foo.txt' is different than root / > '.foo.txt' ? I find that strange > If you want a relative path from the image location you can use `FileSystem workingDirectory / 'foo.txt'` -- Cyril

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
I'm on Linux Is it wanted that root / 'a' / 'foo.txt' is different than root / '.foo.txt' ? I find that strange 2016-04-18 10:52 GMT+02:00 Cyril Ferlicot Delbecque < cyril.ferli...@gmail.com>: > > > On 18/04/2016 10:44, Valentin Ryckewaert wrote: > > Using your method (A string asFileReference)

Re: [Pharo-users] Rename a file

2016-04-18 Thread Cyril Ferlicot Delbecque
On 18/04/2016 10:44, Valentin Ryckewaert wrote: > Using your method (A string asFileReference) it works thanks ! > > But if you use FileSystem root / I get the "same" object but it's > still not working. Did I make a mistake somewhere? > Hi, Did you try `FileSystem root / 'a' / 'Path' /

Re: [Pharo-users] Rename a file

2016-04-18 Thread Michal Balda
Hi, I think the problem is using 'aPath/cat.jpg' as a single string (= as a single component of the path). This: path1 := FileSystem root / 'a/b/c.txt'. is different to: path2 := FileSystem root / 'a' / 'b' / 'c.txt'. Compare the results when I ask for the parent directory: path1

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
Using your method (A string asFileReference) it works thanks ! But if you use FileSystem root / I get the "same" object but it's still not working. Did I make a mistake somewhere? 2016-04-18 10:38 GMT+02:00 Sven Van Caekenberghe : > Hi Valentin, > > > On 18 Apr 2016, at

Re: [Pharo-users] Rename a file

2016-04-18 Thread Sven Van Caekenberghe
Hi Valentin, > On 18 Apr 2016, at 10:31, Valentin Ryckewaert > wrote: > > Hi everyone, > > I'm trying to rename files with this code but it doesn't work, pharo is > saying me "PrimitiveFailed" > I tried lots of things and I'm not finding how I can rename this

[Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
Hi everyone, I'm trying to rename files with this code but it doesn't work, pharo is saying me "PrimitiveFailed" I tried lots of things and I'm not finding how I can rename this file, someone has an idea please? | myFile | myFile := FileSystem root / 'aPath/cat.jpg'. myFile renameTo:'cats.jpg'

Re: [Pharo-users] final version of pharo syntax cheat page

2016-04-18 Thread Nicolai Hess
2016-04-18 8:54 GMT+02:00 stepharo : > Hi > > I will publish it to the pharo file server as soon as I understand how :) > > Stef > 1. the pharo logo is not anymore the one we are using in the image or on the web side. 2. thank you Stef !