[Pharo-users] PharoJS now runs on Pharo 8 :-)

2020-06-08 Thread N. Bouraqadi
Thanks to Ivo Roefs and Dave Mason !

Noury



[Pharo-users] Slots vs collections

2020-03-20 Thread N. Bouraqadi
Hi,

Suppose I have an instance variable referencing a collection of booleans.
I want to have all elements of the collection be stored as bits. 
Is there a way I can express it using slots?

This idea can be generalized to other types of slots.

Noury 



Re: [Pharo-users] Clean up method like #exiting from VAST

2020-03-13 Thread N. Bouraqadi
Hi Vince,

In Pharo there is startup list that is used also when quitting (in reverse upon 
shutdown).

To register a class :
Smalltalk addToStartUpList: aClass

The class startup behavior should go in class method
startUp: resumingBoolean

The class quit behavior should go in a class method
shutDown: quittingBoolean

Noury
--
Learn, Code & Make for the Planet
https://nootrix.com 



> On 13 Mar 2020, at 07:02, Vince Refiti  
> wrote:
> 
> Hello
>  
> In VAST there is a class-side method #exiting which can be implemented in an 
> application and is called just before the image is shut down. I use it to 
> typically implement clean-up code.
>  
> Is there something similar in Pharo? 
>  
> If I use aBlock ensure: cleanUpBlock, is the cleanUpBlock guaranteed to run 
> in what circumstances?
>  
> Vince



Re: [Pharo-users] Latest PharoJS Success Story

2020-01-29 Thread N. Bouraqadi
No. It does not. At least I didn't notice.

> On 28 Jan 2020, at 22:06, Steve Quezadas  wrote:
> 
> Does Apache cordova drain a lot of battery from the phone?
> 
> On Tue, Jan 28, 2020 at 10:19 AM N. Bouraqadi  <mailto:bouraq...@gmail.com>> wrote:
> The latest PharoJS-powered smartphone app is now live.
> Development has been made using Pharo.
> Then, javascript code is generated using PharoJS.
> Last, the app is built to target both iOS and Android thanks to Apache 
> Cordova.
> 
> Learn more and Download at
> https://nootrix.com/projects/brain-treats-app/ 
> <https://nootrix.com/projects/brain-treats-app/>
> 
> Noury



[Pharo-users] Latest PharoJS Success Story

2020-01-28 Thread N. Bouraqadi
The latest PharoJS-powered smartphone app is now live.
Development has been made using Pharo.
Then, javascript code is generated using PharoJS.
Last, the app is built to target both iOS and Android thanks to Apache Cordova.

Learn more and Download at
https://nootrix.com/projects/brain-treats-app/

Noury


[Pharo-users] 2 days left to submit your software to the ESUG Innovation Technology Awards

2019-08-16 Thread N. Bouraqadi
Submit your project and show all the cool things enabled by Smalltalk :-)

> Begin forwarded message:
> 
> From: "N. Bouraqadi" mailto:bouraq...@gmail.com>>
> Subject: ESUG Innovation Technology Awards Call for submissions
> Date: 9 July 2019 at 16:08:49 CEST
> To: Board ESUG mailto:bo...@lists.esug.org>>, Any 
> question about pharo is welcome  <mailto:pharo-users@lists.pharo.org>>
> 
> Dear Smalltalkers,
> 
> Developers are invited to submit their Smalltalk-related project to the 16th 
> edition of the ESUG Innovation Technology Awards.
> The top 3 teams with the most innovative software will receive, respectively, 
> 500 Euros, 300 Euros and 200 Euros. 
> 
> Submit now! 
> 
> Instructions are available at: 
> https://esug.github.io/2019-Conference/awardsCall2019.html 
> <https://esug.github.io/2019-Conference/awardsCall2019.html>
> 
> Noury


[Pharo-users] Deadline Approaching : ESUG Innovation Technology Awards 2019

2019-08-07 Thread N. Bouraqadi
Hi everyone,

Reminder: the deadline is Sunday August 18. 

> Begin forwarded message:
> 
> From: "N. Bouraqadi" 
> Subject: ESUG Innovation Technology Awards Call for submissions
> Date: 9 July 2019 at 16:08:49 CEST
> To: Board ESUG , Any question about pharo is welcome 
> 
> 
> Dear Smalltalkers,
> 
> Developers are invited to submit their Smalltalk-related project to the 16th 
> edition of the ESUG Innovation Technology Awards.
> The top 3 teams with the most innovative software will receive, respectively, 
> 500 Euros, 300 Euros and 200 Euros. 
> 
> Submit now! 
> 
> Instructions are available at: 
> https://esug.github.io/2019-Conference/awardsCall2019.html 
> <https://esug.github.io/2019-Conference/awardsCall2019.html>
> 
> Noury


[Pharo-users] ESUG Innovation Technology Awards Call for submissions

2019-07-09 Thread N. Bouraqadi
Dear Smalltalkers,

Developers are invited to submit their Smalltalk-related project to the 16th 
edition of the ESUG Innovation Technology Awards.
The top 3 teams with the most innovative software will receive, respectively, 
500 Euros, 300 Euros and 200 Euros. 

Submit now! 

Instructions are available at: 
https://esug.github.io/2019-Conference/awardsCall2019.html


Noury

Re: [Pharo-users] Anything on Pharo that would be like Opentalk on VW?

2019-06-27 Thread N. Bouraqadi
Sang did something similar a while ago too.
https://github.com/lxsang/SystemProcess 


It allows an image to launch workers. One thing interesting is that they share 
virtual memory, so they can exchange data during the execution

Noury

> On 27 Jun 2019, at 06:26, Alexandre Bergel via Pharo-users 
>  wrote:
> 
> 
> From: Alexandre Bergel 
> Subject: Re: [Pharo-users] Anything on Pharo that would be like Opentalk on 
> VW?
> Date: 27 June 2019 at 06:26:32 CEST
> To: Norbert Hartl 
> Cc: Any question about pharo is welcome 
> 
> 
> I do not know what is ImageWorker, but DMirror is a simple and efficient way 
> to distribute a computation on single CPU.
> 
> Alexandre
> 
>> On Jun 25, 2019, at 3:05 PM, Norbert Hartl > > wrote:
>> 
>> 
>> 
>> Am 25.06.2019 um 20:44 schrieb Alexandre Bergel > >:
>> 
>>> Hi Jerry,
>>> 
>>> We have worked on bridging Pharo with Python. It works remarkably well. 
>>> Here is the website: https://objectprofile.github.io/PythonBridge/ 
>>> 
>>> We have also worked on a simple mechanism to distribute computation across 
>>> multiple Pharo images. Here is the website: 
>>> https://github.com/ObjectProfile/DMirror 
>>> 
>>> 
>> Nice! How does the DMirror relate to the ImageWorker?  
>> https://github.com/pharo-contributions/ImageWorker 
>> 
>> 
>> Norbert
>>> Cheers,
>>> Alexandre
>>> 
 On Jun 23, 2019, at 11:09 PM, Jerry Kott >>> > wrote:
 
 I am looking at some interprocess communication with Pharo. VW has 
 Opentalk, VASt has Sst (I think, haven’t looked in a while). Does anything 
 similar exist for Pharo?
 
 Jerry Kott
 This message has been digitally signed. 
 PGP Fingerprint:
 A9181736DD2F1B6CC7CF9E51AC8514F48C0979A5
 
 
 
>>> 
> 
> 
> 



[Pharo-users] OneClick image

2019-04-24 Thread N. Bouraqadi
Hi,

Few years ago, there was a zip file called 'oneclick' that included everything 
to run Pharo on all 3 major OSes. All one had to do is unzip it, and launch a 
script that opens the image. 

What happen to that? Any idea why it isn't generated anymore?

Noury


Re: [Pharo-users] Pharo 7.0.2 osx from launcher has corrupted welcome screen?

2019-03-14 Thread N. Bouraqadi
Yes Tim. I've have it too.

Noury

> On 14 Mar 2019, at 21:02, Tim Mackinnon  wrote:
> 
> Has anyone else noticed that the the newer 7.0.2 image (from launcher) has a 
> corrupted welcome screen? This is on osx (high Sierra) from today.
> 
> The image seems to work fine, its just that initial welcome screen? Did 
> something get corrupted on the deployment?
> 
> Tim
> 
> 




Re: [Pharo-users] Pharo consortium selected for GSOC 2019

2019-02-27 Thread N. Bouraqadi
Thank you guys for the energy you put into this :-)

Noury

> On 26 Feb 2019, at 12:56, Serge Stinckwich  wrote:
> 
> Dear all,
> 
> Pharo Consortium has been selected this year as a Google Summer of Code 2019 
> mentor organization. This is the first time since 2017.
> 
> I would like to thank other GSOC co-admin Jigyasa Grover and Oleksandr 
> Zaytsev for their commitment and hard work, Peter Uhnak for his help for the 
> website, Alexandre Bergel, Yuriy Tymchuk and Stéphane Ducasse for their 
> interactions.
>  <>
> 
> We will prepare the call for students soon. We have already a website with a 
> list of subject: http://gsoc.pharo.org/ 
> 
> More subjects can be added, but we will focus on topics that will have the 
> bigger impact on the Pharo community.
> 
> We will use the #gsoc-planning channel on Discord to discuss.
> If you have students that might be interested, please let them know about 
> this opportunity. There is #gsoc-students channel for them.
> 
> Regards,
> -- 
> Serge Stinckwich
> Int. Research Unit on Modelling/Simulation of Complex Systems (UMMISCO)
> Sorbonne University (SU)
> French National Research Institute for Sustainable Development (IRD)
> University of Yaoundé I, Cameroun
> "Programs must be written for people to read, and only incidentally for 
> machines to execute."
> https://twitter.com/SergeStinckwich 



[Pharo-users] How to load a single package in a Metacello baseline

2019-02-19 Thread N. Bouraqadi
Hi,

 I'm updating the the baseline of PharoJS to use the zinc websockets from the 
github repo https://github.com/svenvc/zinc.  I want to load package 
Zinc-WebSocket-Core.  So, in BaselineOfPharoJS>>#baseline: I've defined 
spec baseline: 'ZincHTTPComponents' with: [
spec
loads: #('Zinc-WebSocket-Core');
repository: 'github://svenvc/zinc' ].

However, for some reason I get Zinc-WebSocket-Tests loaded. Any hint how to 
avoid it?(edited)
Looking at BaselineOfZincHTTPComponents>>#baseline:, package WebSocket-Core 
does not seem to depend on tests 
spec package: 'Zinc-WebSocket-Core' with: [ spec requires: 'Zinc-HTTP' ]

Thanks,
Noury

[Pharo-users] Only 7 days lefts before the ESUG Innovation Technology Awards

2018-09-03 Thread N. Bouraqadi
Hi Everyone,

The 15th Edition of the ESUG Innovation Technology Awards will take place in 
only one week.
You have only few days left to submit your projects.

Remember: Any project is eligible as long as it involves Smalltalk.  All 
dialects are of course welcome.

See you in Sardinia,
Noury
https://esug.github.io/2018-Conference/awardsCall2018.html




[Pharo-users] Submit your Project to the ESUG Awards

2018-08-21 Thread N. Bouraqadi
Hi everyone!

This is a reminder to submit your projects to the ESUG Innovation Technology 
Awards. It will be held on september the 10th as part of the ESUG conference in 
Sardinia (https://esug.github.io/2018-Conference/conf2018.html).

Any Pharo Smalltalk-related project is eligible.
All you need to do is provide me with few info and give a short demo during the 
awards session.

I hope to hear from you soon,
Noury




[Pharo-users] ESUG 2018 Innovation Technology Awards: Call for Submissions

2018-06-21 Thread N. Bouraqadi
Dear fellow Smalltalkers,

The 15th edition of the ESUG Innovation Technology Awards is now officially 
open.
As for every year, you can submit software based on any Smalltalk flavor, to 
attempt to win one of the three prizes.
All you have to do is to provide a 3-5min video demo.

More info and a link to the submission server is at: 
https://esug.github.io/2018-Conference/awardsCall2018.html

On behalf of the ESUG board,
Noury
--
http://twitter.com/#!/NouryBouraqadi
http://car.imt-lille-douai.fr/noury





Re: [Pharo-users] On UDP broadcast

2018-05-23 Thread N. Bouraqadi
Note that the package includes tests that show that the broadcast working :-)

Thanx Cédrick for the CC.
Noury
> On 21 May 2018, at 21:17, Cédrick Béler  wrote:
> 
> Noury did. He sent that on the other thread :
> 
> « Just want to point that I did some work late 2017 on UDP sockets including 
> multicast and broadcast. 
> The package named 'NetworkExtras' is part of the ReusableBricks repo of my 
> team.
> http://smalltalkhub.com/#!/~CAR/ReusableBricks 
> 
> It has some dependencies on other packages. »
> 
> It may help. I cc Noury. 
> 
> Cheers,
> 
> Cédrick 
> 
> Le 21 mai 2018 à 20:00, Sven Van Caekenberghe  > a écrit :
> 
>> 
>> 
>>> On 21 May 2018, at 19:37, Stephan Eggermont >> > wrote:
>>> 
>>> Sven Van Caekenberghe > wrote:.
 
 I can't get the broadcast sending via nc to work (like your terminal
 example). The -b nc option on macOS is not related to broadcasting.
>>> 
>>> Who’s allowed to broadcast? 
>> 
>> Yes, I vaguely remember that Unix permissions are involved, I just don't 
>> know how this works exactly.
>> 
>>> Stephan
>>> 
>>> 
>> 
>> 



Re: [Pharo-users] How to LAN feature

2018-05-09 Thread N. Bouraqadi
Hi,

Just want to point that I did some work late 2017 on UDP sockets including 
multicast and broadcast. 
The package named 'NetworkExtras' is part of the ReusableBricks repo of my team.
http://smalltalkhub.com/#!/~CAR/ReusableBricks
It has some dependencies on other packages.

I tested it in Pharo 6, but not 7.

Noury
PS. Since I can't keep up with the mailing-list traffic, don't forget to keep 
me in CC so I can react

> On 08 May 2018, at 15:36, Norbert Hartl  wrote:
> 
> 
> 
>> Am 08.05.2018 um 15:05 schrieb Ben Coman > >:
>> 
>>> Le 8 mai 2018 à 08:28, Henrik Sperre Johansen >> > a écrit :
>>> 
>>> HilaireFernandes wrote
 Computer should be on a same network, however not sure about swtich in 
 between.
 
 Does UDP broadcast required particular privilege on the host?
 
 Thanks
 
 Hilaire
 
 Le 06/05/2018 à 13:31, Norbert Hartl a écrit :
> If it is on a single network this should be doable by using UDP broadcast
> announcements. The share server can announce some information and its IP
> in a UDP packet being broadcasted. Every client receives that and then
> knows the address of the server to connect to
 
 -- 
 Dr. Geo
 http://drgeo.eu 
>>> 
>>> No, but it does involve setting certain options on the socket, etc.
>>> You could check if http://smalltalkhub.com/#!/~henriksp/SSDP 
>>>  is
>>> appropriate/works for you.
>>> 
>>> Cheers,
>>> Henry
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
>>> 
>>> 
>> 
>> 
>> On 8 May 2018 at 15:32, Cédrick Béler > > wrote:
>> Hi, FYI, Noury did this package (Network-Extra). I will test for my lecture. 
>> It has UDP Multicast/broadcast and may help for the discovery phase (I’m 
>> interested in that either).
>> 
>> He said that about it:
>> 
>> - UDP support : mutlicast + broadcast
>> - fragment a (large) data et assemble it over UDP
>> -la possibilité de fragmenter une donnée trop grande et la reconstruire 
>> au-dessus d'UDP
>> 
>> Gofer it
>>  smalltalkhubUser: 'CAR' project: 'ReusableBricks';
>>  configurationOf: 'ReusableBricks';
>>  loadBleedingEdge
>> 
>> Hope this help,
>> 
>> See you,
>> 
>> Cédrick
>> 
>> Ps: tell me if you use it. 
>> 
>> 
>> If we've got multicast support for Pharo, perhaps its not a long jump to 
>> implementing mDNS.
>> Then the teacher could share out their machine as "teacher.local"
>> to let student machines connect to it.
>> 
> If they all have Macs that would work. For the rest I doubt it will be that 
> easy. 
> 
> Norbert
> 
>> https://www.trustwave.com/Resources/SpiderLabs-Blog/mDNS---Telling-the-world-about-you-(and-your-device)/
>>  
>> 
>> 
>> https://tools.ietf.org/html/rfc6762 
>> The most basic kind of Multicast DNS client may simply send standard
>>DNS queries blindly to 224.0.0.251:5353 , 
>> without necessarily even
>>being aware of what a multicast address is.  This change can
>>typically be implemented with just a few lines of code in an existing
>>DNS resolver library.
>> 
>> 
>> @Udo, did you ever find that mDNS package you lost?
>> http://forum.world.st/Issue-with-UDP-Sockets-tp4827014p4827245.html 
>> 
>> 
>> 
>> mDNS would be an interesting facility to include in the main Pharo release 
>> image,
>> perhaps making it very easy for our "live" systems to locate each other on a 
>> local network without external infrastructure.
>> 
>> 
>> cheers -ben