Re: [Pharo-users] BLOG: Block Translators - parsing magic

2014-09-22 Thread Udo Schneider
Hi Estaban, I think the first time I saw this pattern was in ReStore on Dolphin Smalltalk. I didn't understand it's implementation back then. I assume that it's similar to what I described though. But having a Smalltalk block automagically creating the equivalent SQL SELECT expression was lik

Re: [Pharo-users] LF instead of CR for new lines or writing about Pharo inside Pharo

2014-09-22 Thread Offray Vladimir Luna Cárdenas
Hi :-), A small answer to myself that can be useful is someone find this thread: I have seen some post on Internet about CR and LF issues on Pharo Smalltalk, like this: [1] http://stackoverflow.com/questions/11739548/how-to-correctly-decode-text-files-from-filesystemreadstream-in-pharo-1-4

Re: [Pharo-users] Moose > Software selfies: How to graph the story of a Monticello repo within Pharo/Moose/Roassal

2014-09-22 Thread Offray Vladimir Luna Cárdenas
Hi, Well I said "selfies" because they are pictures taken from the software itself, following the now spread custom in social networks :-). There is few software that can take pictures of itself and Pharo is one of them. Previosly I asked where there were stored and finally I decided to follo

Re: [Pharo-users] Moose > Software selfies: How to graph the story of a Monticello repo within Pharo/Moose/Roassal

2014-09-22 Thread Esteban A. Maringolo
When you say "selfie" you mean "screenshot"? Why not use a regular screenshot tool provided by the OS or running externally to Pharo? I use SnagIt for Windows to capture Pharo running inside an Ubuntu VM. Regards! Esteban A. Maringolo 2014-09-22 21:15 GMT-03:00 Offray Vladimir Luna Cárdenas : >

Re: [Pharo-users] BLOG: Block Translators - parsing magic

2014-09-22 Thread Esteban A. Maringolo
Excellent article. I think GLORP uses a similar technique to setup its expressions, and also have issues with #and:/#or: selectors due to inlining, so it uses AND:/#OR: instead. Regards! Esteban A. Maringolo pd: Your blog and it's choosen topic made me remember http://use-the-index-luke.com/ 2

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Robert Shiplett
so I stay with my 8Gb iTouch iOS 3 ; with no prospect of an upgrade, I am sorta worry-free. If only it were also a phone ... " Don't dial ... DO ! " ;-) [ this msg was last seen in my default font ] On 22 September 2014 17:35, stepharo wrote: > Hilaire > > These are two days that after upg

Re: [Pharo-users] BLOG: Block Translators - parsing magic

2014-09-22 Thread Ben Coman
Udo Schneider wrote: All, I just finished a blog entry. It shows how to use Smalltalk blocks as parsers/translators. E.g. translating a Block [:customer | (customer joinDate year is: Date today year)] into an SQL-like String (YEAR(customers.joinDate) = 2014)

[Pharo-users] Moose > Software selfies: How to graph the story of a Monticello repo within Pharo/Moose/Roassal

2014-09-22 Thread Offray Vladimir Luna Cárdenas
Hi, I'm working on the first version of my draft article about Pharo, wrote inside Pharo itself. I would like to illustrate the process of learning and building the software by making some graphs of the history of the Monticello repository and I'm wondering how difficult this could be. I'm th

[Pharo-users] BLOG: Block Translators - parsing magic

2014-09-22 Thread Udo Schneider
All, I just finished a blog entry. It shows how to use Smalltalk blocks as parsers/translators. E.g. translating a Block [:customer | (customer joinDate year is: Date today year)] into an SQL-like String (YEAR(customers.joinDate) = 2014) The SQL stuff is just an example - yo

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread p...@highoctane.be
I've got the 32 bit ones. I checked. Nicolas got it working, I'll check. Phil On Tue, Sep 23, 2014 at 12:32 AM, Casimiro de Almeida Barreto < casimiro.barr...@gmail.com> wrote: > Sometimes the problem is that you have Linux x86_64 and only the 64bit > libraries. When using squeak it is neces

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Casimiro de Almeida Barreto
Sometimes the problem is that you have Linux x86_64 and only the 64bit libraries. When using squeak it is necessary to have the proper 32bit libraries to have the system working. On 22-09-2014 18:10, p...@highoctane.be wrote: > I passed 'localhost:0:0' in the XWindows example and this gave me a >

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Nicolai Hess
Ah, got the examples working :) I replaced all X11Drawable arguments in the ffi call signature to ulong and replace the call ... drawable ... with ... drawable xid ... attached is the changeset (who maintains the FFI-Package and the X11 examples?) 2014-09-22 23:10 GMT+02:00 p...@highoctane.b

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Sven Van Caekenberghe
I also find the way some problems are reported quite disturbing. How much testing did you do ? On which platforms ? I can do this (in Pharo 3) without any problems (we're talking about arbitrary Unicode characters in path names): ('/tmp' asFileReference / 'été') ensureCreateDirectory. '/tmp/ét

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Nicolai Hess
There is a similar issue for windows 13127 can not (always) read permissions for directoryentries on a path with nonascii characters 2014-09-22 23:21 GMT+02:00 Hilaire : > Le 22/09/2014 23:14, p...@highoctane.be a écrit : > > Also, sometimes things

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Hilaire
Le 22/09/2014 23:14, p...@highoctane.be a écrit : > Also, sometimes things do look like "Téléchargement" but are still > Downloads under the hood as the OS translates the UI. Yes, I check within another path of my own like 'été', still same issue. Strange is I have no issue to search for sketch fi

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread p...@highoctane.be
Also, sometimes things do look like "Téléchargement" but are still Downloads under the hood as the OS translates the UI. Phil On Mon, Sep 22, 2014 at 10:35 PM, stepharo wrote: > Hilaire > > These are two days that after upgrading my iPhone, the recovery process > crash. > After two days try

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread p...@highoctane.be
I passed 'localhost:0:0' in the XWindows example and this gave me a window reference. The next problem was that it broke after that. But I got the handle. Try with that, it may help. Phil On Mon, Sep 22, 2014 at 10:02 PM, Annick Fron wrote: > Thanks you > The problem is I wanted to use X win

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Hilaire
Le 22/09/2014 22:35, stepharo a écrit : > So I do not accept the title of your email. Simply I cannot. Don't worry, it is a temporary cry/yield of frustration. -- Dr. Geo - http://drgeo.eu iStoa - http://istao.drgeo.eu

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread kilon alios
thanks I will keep it mind and watch it. I hope one day all drawing happens at the image side and not at the VM so its more easy to hack it. On Mon, Sep 22, 2014 at 11:40 PM, stepharo wrote: > Check the OSWindow bug entry on fogbugz because soon we will integrate it. > OSWindow is an API to cal

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Hilaire
The issue is already there https://pharo.fogbugz.com/f/cases/14054/Issue-with-path-with-accented-characters I try to document it but it is odd, because for some other part in DrGeo I don't have issue with accented path. But should not the path be utf-8 encoded? Or is my fresh linuxmint box using n

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread stepharo
Check the OSWindow bug entry on fogbugz because soon we will integrate it. OSWindow is an API to call/control windows from the OSes developed by Ronie and Igor. Then we will bind to SDL so that we can get the same underlying system on all platform. But there is still some work to do and too m

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread stepharo
Hilaire These are two days that after upgrading my iPhone, the recovery process crash. After two days trying I finally succeeded to upload my recovery to my iPhone and now my iPhone crashes continously at boot time. I get a nice sepia screenshot and it restarts. I will have to send my iPhone

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Hilaire
You can use screenshot. But back to the issue, in other part of DrGeo, when saving/loading sketch, path or filename with accent, space are ok. So not sure what's going on. Hilaire Le 22/09/2014 22:15, Alexandre Bergel a écrit : > :-( > > I will soon face the same problem I fear, when I will sta

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Juraj Kubelka
Can you create an issue? I am cleaning the fonts and in some case I could consider this issue. If it is problem only on Windows, I will need someone’s assistance. Cheers, Juraj On Sep 22, 2014, at 5:07 PM, Hilaire wrote: > Hello, > > Tested on Linux, when I move DrGeo.app folder under hierar

Re: [Pharo-users] Ridiculous we are

2014-09-22 Thread Alexandre Bergel
:-( I will soon face the same problem I fear, when I will start my lecture… Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 22, 2014, at 5:07 PM, Hilaire wrote: > Hello, > > Teste

[Pharo-users] Ridiculous we are

2014-09-22 Thread Hilaire
Hello, Tested on Linux, when I move DrGeo.app folder under hierarchy tree with accent characters (For example, /home/hilaire/Téléchargement/), loading font does not work However font path seems ok: File @ /home/hilaire/Téléchargements/DrGeo.app/Contents/Resources. Inspecting this path, it looks

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Annick Fron
Thanks you The problem is I wanted to use X windows ! Otherwise I have managed to use FFI on Linux. Perhaps there is a glitch when passing nil as argument. It is not clear whether we have to use nil or 0 (as a null pointer). This is really my point, I sometimes need to pass NULL. Annick Le 22 sep

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Nicolai Hess
2014-09-22 18:10 GMT+02:00 p...@highoctane.be : > I've been able to reproduce this. > > Well, my CentOS thing requires me for some reason to put > /usr/lib/libX11.so.6 in the module name (doing these kind of things looks > like usual for lib names with FFI from what I saw from old Squeak threads).

Re: [Pharo-users] Forcing a library to load

2014-09-22 Thread p...@highoctane.be
NativeBoost has loadModule: aModuleName which should do the trick. Phil ​

[Pharo-users] Forcing a library to load

2014-09-22 Thread Annick Fron
Hi, How is it possible to force a library to load ? Namely I have large libraries on linux which depend on each other. I discovered that the equivalent code in C runs, but not in pharo using FFI, and one problem was that a dependent library was not loaded. Annick

[Pharo-users] LF instead of CR for new lines or writing about Pharo inside Pharo

2014-09-22 Thread Offray Vladimir Luna Cárdenas
Hi all! :-) Today is a good day because Pharo is helping me a lot in getting things done (like in the Black Eyed Peas song, but nerdy style). Here you can see a screenshot of the exportation of the outliner project I have been working on (still in alpha): http://www.enlightenment.org/ss/e-54

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread p...@highoctane.be
Little FFI example with Syslog: https://gist.github.com/philippeback/078944c4f6a3bdfe582f Phil On Mon, Sep 22, 2014 at 6:50 PM, p...@highoctane.be wrote: > More on the story. > > So, the X11 example may not be the best one to have in FFI. It is > interesting but complicated. > > A basic call,

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread kilon alios
nice , the above works on macos too, pity it does not have a locate method but for now it will do. On Mon, Sep 22, 2014 at 12:48 PM, kilon alios wrote: > Thank Hilaire , I understand how to wrap my code to a cross platform > class. Definetly will look at (have done already previously) DrGeo as m

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread p...@highoctane.be
More on the story. So, the X11 example may not be the best one to have in FFI. It is interesting but complicated. A basic call, like: Sample class>>callC: aString ^self externalCallFailed works nicely. Sample callC: 'Hello'. prints Hello on stdout. Phil On Mon, Sep 22, 2014 at 6:10 PM, p

[Pharo-users] Versioneer. nice. mmMmmm...

2014-09-22 Thread Ben Coman
While I had done the Versioneer tutorial some time ago, I had some inertial problem using it in anger. Now I'm happy to report using it just now to update the ConfigurationOfPharoLauncher was simple and smooth - which is great since I've never done a Configuration by hand. I thought it woul

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread p...@highoctane.be
I've been able to reproduce this. Well, my CentOS thing requires me for some reason to put /usr/lib/libX11.so.6 in the module name (doing these kind of things looks like usual for lib names with FFI from what I saw from old Squeak threads). XCreateGC: xDisplay with: aDrawable with: valueMask wit

Re: [Pharo-users] Glamour question

2014-09-22 Thread Werner Kassens
Hi Andrei, oh yes, that answers my question exactly, thank you! Now accessing the bindings of a playground seems like a useful use-case. I'll look to see if I can add a nicer api for this. i agree, otoh even workspace doesnt have one, as i have to use #instVarNamed:. werner

Re: [Pharo-users] Glamour question

2014-09-22 Thread Andrei Chis
Hi Werner, If all you have in the window is the playground then this should give you the bindings: (window findDeeplyA: RubEditingArea) model variableBindings I know it's not pretty but it works. Now accessing the bindings of a playground seems like a useful use-case. I'll look to see if I can ad

[Pharo-users] Glamour question

2014-09-22 Thread Werner Kassens
Hi, if i want to have access to the variables in a workspace and know its window i simply do: window model instVarNamed: 'bindings' now i'd like to know how i do something like that with a GTPlayground that resides in a GLMSystemWindow werner

Re: [Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Ben Coman
Annick Fron wrote: Hi, I have posted a bug about this in fogbugz. FFI example on Linux don’t work X11Display coloredRectangles raises an error « coud not coerce arguments ». In fogbugz, I was asked to raise this question in the mailing list, to know if it comes from the VM or from FFI. Ann

Re: [Pharo-users] Ubuntu Font License : Compatibility with Pharo License?

2014-09-22 Thread Henrik Johansen
On 19 Sep 2014, at 9:46 , Mayuresh Kathe wrote: > Would the Ubuntu Font License at; http://font.ubuntu.com/licence/ be > considered compatible with the Pharo license? > > If it is not _compatible_ would the usage of Ubuntu fonts still be > acceptable/permissible within Pharo? > > Thanks, >

[Pharo-users] FFI examples on Linux don't work

2014-09-22 Thread Annick Fron
Hi, I have posted a bug about this in fogbugz. FFI example on Linux don’t work X11Display coloredRectangles raises an error « coud not coerce arguments ». In fogbugz, I was asked to raise this question in the mailing list, to know if it comes from the VM or from FFI. Annick

Re: [Pharo-users] Pharo Glorp 1.7 <-> VisualWorks

2014-09-22 Thread Mariano Martinez Peck
On Fri, Sep 5, 2014 at 6:53 AM, François Stephany wrote: > I have no idea how complicated this can be. I'm a bit reluctant to dive > into this if we are only 2-3 people to use Glorp in Pharo. > > Guillermo, Mariano, what was the process when you imported Glorp in the > first place? How did you ke

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread kilon alios
Thank Hilaire , I understand how to wrap my code to a cross platform class. Definetly will look at (have done already previously) DrGeo as most likely I will rely heavily on Morphic. Nicolai ,I tried this code in Windows and works DisplayScreen hostWindowSize: 500@500. DisplayScreen hostWindowTi

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread Nicolai Hess
Another solution could be the HostWindowPlugin. Look at DisplayScreen class >> hostWindow This could be platform independent but I don't know if it works on all platforms: 12231 DisplayScreen hostWindowTitle: not working on Linux (ubuntu) 2014-0

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread Hilaire
Le 22/09/2014 11:20, Hilaire a écrit : > Le 22/09/2014 10:55, kilon alios a écrit : >> I was talking about something cross platform but NB is good too. Makes me >> wonder the potential of hacking the pharo window, maybe for embedding QT to >> it or what else. > > You can wrap this in a Plateform h

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread Hilaire
Le 22/09/2014 10:55, kilon alios a écrit : > I was talking about something cross platform but NB is good too. Makes me > wonder the potential of hacking the pharo window, maybe for embedding QT to > it or what else. You can wrap this in a Plateform hierarchy to make it crossplateform from the Epha

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread kilon alios
I was talking about something cross platform but NB is good too. Makes me wonder the potential of hacking the pharo window, maybe for embedding QT to it or what else. On Mon, Sep 22, 2014 at 11:45 AM, Laurent wrote: > And on Linux/X11: > https://ci.inria.fr/pharo-contribution/job/PharoForTheEnte

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread Laurent
And on Linux/X11: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/artifact/NativeBoost/NativeBoost.pier.html Laurent Le lun. 22 sept. 2014 à 10:37, Nicolai Hess a écrit : NB? on Windows: NBWin32Window getActiveWindow moveWindowX:10 y:10 width:500 height:1

Re: [Pharo-users] Controlling the Pharo window

2014-09-22 Thread Nicolai Hess
NB? on Windows: NBWin32Window getActiveWindow moveWindowX:10 y:10 width:500 height:150 2014-09-22 9:59 GMT+02:00 kilon alios : > Is there a way to move the pharo window around, resize it and generally > control it ? >

[Pharo-users] Controlling the Pharo window

2014-09-22 Thread kilon alios
Is there a way to move the pharo window around, resize it and generally control it ?