Re: [Pharo-users] another talk online: Pharo: Objects At Your Fingertips
For the Gnu/Linux people, you can watch the talk via: mplayer 'mms:// fibtv.fib.upc.es/videoteca/20131030-1055_Pharo_Objects_at_your_Fingertips.wmv?cat=2vid=821 ' 2013/10/31 Sven Van Caekenberghe s...@stfx.eu Beautiful and useful ! On 31 Oct 2013, at 10:08, Marcus Denker marcus.den...@inria.fr wrote: The idea of this talk is to give an intro for someone who know OO but not Pharo (or Smalltalk). (this means for someone who does it has noting new) Pharo: Objects At Your Fingertips A talk given at Universitat Politècnica de Catalunya on Oct 30, 2013. SlideShare: http://www.slideshare.net/MarcusDenker/pharo-objects-at-your-fingertips PDF: http://marcusdenker.de/talks/13BarcelonaTalk/PharoObjectsAtYourFingertips.pdf Video: http://media.fib.upc.edu/fibtv/streamingmedia/view/2/821 -- Bernat Romagosa.
Re: [Pharo-users] Strange behaviour of abstract method
Michael, On 31 Oct 2013, at 11:00, Michael Paap mp...@netcologne.de wrote: Hello list, in our OOP course we noticed some behaviour of an abstract method, which I cannot explain. Maybe you can help me: If I do the following SequenceableCollection new add: 123 I would expect an Error. The method add: is not implemented in SequenceableCollectionbut inherited from collection, where it's only statement is self subclassResponsibility But in reality, Pharo seems to enter an endless loop, consuming more and more memory. Can someone please explain to me, what happens here? Greetings, Michael Obviously, abstract classes should not be instanciated, but in teaching this is bound to happen. Now, the actual error happens in the environment (debugger, inspector, printString mechanisms): they see a collection and try to work with it, since it is an incomplete/degenerate one, things break/loop. The following does work for example: SequenceableCollection new isCollection. The question is: should there be an explicit error message when an abstract class is instanciated, is that even possible ? Sven
[Pharo-users] Create a .exe application in Pharo 2.0
Hi Everybody, i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that?Thanks for the help guys! W Pharo!Paolo
Re: [Pharo-users] Create a .exe application in Pharo 2.0
What you can do here, is using the preferences to automatically start your app when a pharo image is open :) Then your Pharo.exe+your image will turn into a Minesweeper :) Ben On 31 Oct 2013, at 15:01, Paolo Piccinelli captai...@hotmail.it wrote: Hi Everybody, i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that? Thanks for the help guys! W Pharo! Paolo
Re: [Pharo-users] Using FFI
2013/10/31 Clément Bera bera.clem...@gmail.com Does Alien support ARM ? no How to do FFI on ARM then if NativeBoost and FFI does not support it ? IMHO you should do a VM plugin easiest and fastest path currently Luc 2013/10/31 Igor Stasenko siguc...@gmail.com On 31 October 2013 11:23, Annick Fron i...@afceurope.com wrote: Hi Igor I have done that, but still gets an error, do I need to remove NativeBoost ? Annick FFI not supported on ARM Le 30 oct. 2013 à 14:12, Igor Stasenko siguc...@gmail.com a écrit : AFAIK, it should be in Configurations browser. Else try this: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfFFI'; load. (Smalltalk at: #ConfigurationOfFFI) project lastVersion load On 30 October 2013 09:41, Annick Fron i...@afceurope.com wrote: My problem is that the Raspberry does not support native boost (as yet !). Where can I load the old FFI ? Le 29 oct. 2013 à 16:57, Igor Stasenko siguc...@gmail.com a écrit : On 29 October 2013 16:27, Annick Fron i...@afceurope.com wrote: Hi I want to launch a simple init with the following C signature : void gst_init (int *argc, char **argv[]) If I write apicall: void 'gst_init' (int*, char**) module: 'blabla' I get a Smalltalk syntax error Annick Fron To use this syntax, you must load old FFI implementation. Or use NativeBoost: init: intarg with: chararg primitive: 'primitiveNativeCall' module: 'NativeBoostPlugin' self nbCall: 'void gst_init (int * intarg, char ** chararg)' module: 'blaba' -- Best regards, Igor Stasenko. -- Best regards, Igor Stasenko. -- Best regards, Igor Stasenko.
Re: [Pharo-users] Using FFI
I hâve thé error on Windows Envoyé de mon iPod Le 31 oct. 2013 à 14:51, Igor Stasenko siguc...@gmail.com a écrit : On 31 October 2013 11:23, Annick Fron i...@afceurope.com wrote: Hi Igor I have done that, but still gets an error, do I need to remove NativeBoost ? Annick FFI not supported on ARM Le 30 oct. 2013 à 14:12, Igor Stasenko siguc...@gmail.com a écrit : AFAIK, it should be in Configurations browser. Else try this: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfFFI'; load. (Smalltalk at: #ConfigurationOfFFI) project lastVersion load On 30 October 2013 09:41, Annick Fron i...@afceurope.com wrote: My problem is that the Raspberry does not support native boost (as yet !). Where can I load the old FFI ? Le 29 oct. 2013 à 16:57, Igor Stasenko siguc...@gmail.com a écrit : On 29 October 2013 16:27, Annick Fron i...@afceurope.com wrote: Hi I want to launch a simple init with the following C signature : void gst_init (int *argc, char **argv[]) If I write apicall: void 'gst_init' (int*, char**) module: 'blabla' I get a Smalltalk syntax error Annick Fron To use this syntax, you must load old FFI implementation. Or use NativeBoost: init: intarg with: chararg primitive: 'primitiveNativeCall' module: 'NativeBoostPlugin' self nbCall: 'void gst_init (int * intarg, char ** chararg)' module: 'blaba' -- Best regards, Igor Stasenko. -- Best regards, Igor Stasenko. -- Best regards, Igor Stasenko.
Re: [Pharo-users] Create a .exe application in Pharo 2.0
Will preferences work if the application is distributed to other machines. I guess it might work if the preferences file sits next to the image file, but not automatically if it was installed on another machine via a ConfigurationOfXXX. The other alternative may be to plug into the #startup mechanism. Take a look at the class PhLDeploymentScript in PharoLauncher [1]. Also you might find some interesting tips to carry over from [2] - but be aware that is written for old version Squeak 3.9. [1] https://ci.inria.fr/pharo-contribution/job/PharoLauncherFinalUserImage/ [2] http://squeak.preeminent.org/tut2007/html/205.html cheer -ben Benjamin wrote: What you can do here, is using the preferences to automatically start your app when a pharo image is open :) Then your Pharo.exe+your image will turn into a Minesweeper :) Ben On 31 Oct 2013, at 15:01, Paolo Piccinelli captai...@hotmail.it wrote: Hi Everybody, i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that? Thanks for the help guys! W Pharo! Paolo
[Pharo-users] Create a .exe application in Pharo 2.0
Hi Ben, thanks for the fast reply.What do you mean for use the preferences?. Is it a method, right? It's my first ever application, so i need some explanation about that.Thanks again.Paolo
Re: [Pharo-users] Create a .exe application in Pharo 2.0
There are some places in the system where you can put txt file that will be loaded when you image starts Ben On 31 Oct 2013, at 16:31, Paolo Piccinelli captai...@hotmail.it wrote: Hi Ben, thanks for the fast reply. What do you mean for use the preferences?. Is it a method, right? It's my first ever application, so i need some explanation about that. Thanks again. Paolo
Re: [Pharo-users] Create a .exe application in Pharo 2.0
Benjamin wrote: There are some places in the system where you can put txt file that will be loaded when you image starts Ben On 31 Oct 2013, at 16:31, Paolo Piccinelli captai...@hotmail.it wrote: Hi Ben, thanks for the fast reply. What do you mean for "use the preferences?". Is it a method, right? It's my first ever application, so i need some explanation about that. Thanks again. Paolo Check out http://marianopeck.wordpress.com/2012/05/12/startuploader-running-startup-scripts-in-pharo/ cheers -ben
Re: [Pharo-users] CogVM arguments in Win32
You can try something like this: | handle window | handle := NativeBoost forCurrentPlatform squeakWindowHandle. window := NBWin32Window new value: handle; yourself. window hide. or window setWindowText: 'im a main window blablabla'. :) i didn't tested it since its been implemented, but i think it should work. On 30 October 2013 11:20, Bernat Romagosa tibabenfortlapala...@gmail.comwrote: In this direction, I'm trying to call a function in the shell32.dll lib that apparently should let you minimize an app to the system tray, but I'm not having much luck... I guess I don't really understand what am I exactly doing. This is what I found in the MSDNhttp://msdn.microsoft.com/en-us/library/bb762159%28VS.85%29.aspx : BOOL Shell_NotifyIcon( _In_ DWORD dwMessage, _In_ PNOTIFYICONDATA lpdata ); So, I tried to translate this into Pharo as: MyClass minimizeToTray: dwMessage data: lpData apicall: bool 'Shell_NotifyIcon' (dword PNOTIFYICONDATA) module: 'shell32.dll' But it won't let me save the method, reporting it's expecting an argument before PNOTIFYICONDATA. I realize PNOTIFYICONDATA is not a primitive type, but I just don't know how to handle it... :( -- Best regards, Igor Stasenko.
Re: [Pharo-users] another talk online: Pharo: Objects At Your Fingertips
On 31 October 2013 10:30, Sven Van Caekenberghe s...@stfx.eu wrote: Beautiful and useful ! except that video is in Silvercensored format, not avail on macos. :( Is there a copy with more open encoding (like mp4/mpeg?) On 31 Oct 2013, at 10:08, Marcus Denker marcus.den...@inria.fr wrote: The idea of this talk is to give an intro for someone who know OO but not Pharo (or Smalltalk). (this means for someone who does it has noting new) Pharo: Objects At Your Fingertips A talk given at Universitat Politècnica de Catalunya on Oct 30, 2013. SlideShare: http://www.slideshare.net/MarcusDenker/pharo-objects-at-your-fingertips PDF: http://marcusdenker.de/talks/13BarcelonaTalk/PharoObjectsAtYourFingertips.pdf Video: http://media.fib.upc.edu/fibtv/streamingmedia/view/2/821 -- Best regards, Igor Stasenko.
Re: [Pharo-users] another talk online: Pharo: Objects At Your Fingertips
works in VLC on mac as well! :) On 31 October 2013 10:44, Bernat Romagosa tibabenfortlapala...@gmail.comwrote: For the Gnu/Linux people, you can watch the talk via: mplayer 'mms:// fibtv.fib.upc.es/videoteca/20131030-1055_Pharo_Objects_at_your_Fingertips.wmv?cat=2vid=821 ' 2013/10/31 Sven Van Caekenberghe s...@stfx.eu Beautiful and useful ! On 31 Oct 2013, at 10:08, Marcus Denker marcus.den...@inria.fr wrote: The idea of this talk is to give an intro for someone who know OO but not Pharo (or Smalltalk). (this means for someone who does it has noting new) Pharo: Objects At Your Fingertips A talk given at Universitat Politècnica de Catalunya on Oct 30, 2013. SlideShare: http://www.slideshare.net/MarcusDenker/pharo-objects-at-your-fingertips PDF: http://marcusdenker.de/talks/13BarcelonaTalk/PharoObjectsAtYourFingertips.pdf Video: http://media.fib.upc.edu/fibtv/streamingmedia/view/2/821 -- Bernat Romagosa. -- Best regards, Igor Stasenko.