Re: [Pharo-dev] [Pharo 8.0] Build #1040: [easyReview] fixing comment typos

2019-12-06 Thread vincent.blondeau
Maybe this?

 

https://ci.inria.fr/pharo-ci-jenkins2/blue/organizations/jenkins/Test%20pending%20pull%20request%20and%20branch%20Pipeline/detail/Pharo8.0/1040/pipeline
 :

 

Error: Bad BitBlt arg (Fraction?); proceed to convert.

GrafPort(Object)>>error:

GrafPort(BitBlt)>>copyBits

GrafPort>>copyBits

GrafPort>>image:at:sourceRect:rule:

FormCanvas>>image:at:sourceRect:rule:

FormCanvas(Canvas)>>translucentImage:at:sourceRect:

HiColumnController>>newCellMorphForRow:

[ self newCellMorphForRow: rowIndex ] in HiColumnController>>cellMorphAtRow: in 
Block: [ self newCellMorphForRow: rowIndex ]

Dictionary>>at:ifAbsent:

HiColumnController>>cellMorphAtRow:

HiColumnController>>cellMorphAtValue:

[ :item | hiedraColumnController cellMorphAtValue: item ] in 
HiSpecExample>>initializeWidgets in Block: [ :item | hiedraColumnController 
cellMorphAtValue:...etc...

BlockClosure>>cull:

SpImageTableColumn(SpTableColumn)>>readObject:

SpMorphicTableCellBuilder>>addCellColumn:

SpMorphicTableCellBuilder>>visitImageColumn:

SpImageTableColumn>>acceptColumnVisitor:

SpMorphicTableCellBuilder(SpMorphicTableColumnVisitor)>>visit:

SpMorphicTableDataSource>>cellColumn:row:

[ :columnIndex | 

| cell |

cell := self table dataSource

cellColumn: (columns at: columnIndex)

row: rowIndex.

cell width: (columnWidths at: columnIndex).

row addMorphBack: cell ] in FTTableContainerMorph>>updateExposedRows in Block: 
[ :columnIndex | ...

Interval>>do:

FTTableContainerMorph>>updateExposedRows

FTTableMorph>>resizeAllSubviews

FTTableMorph>>extent:

FTTableMorph(Morph)>>bounds:

FTTableMorph(Morph)>>layoutInBounds:

TableLayout>>layoutTopToBottom:in:

TableLayout>>layout:in:

Morph>>doLayoutIn:

[ self doLayoutIn: self layoutBounds ] in Morph>>computeFullBounds in Block: [ 
self doLayoutIn: self layoutBounds ]

 

Vincent

 

From: Pharo-dev On Behalf Of Damien Pollet
Sent: Friday, 6 December 2019 08:15
To: Pharo Development List 
Subject: Re: [Pharo-dev] [Pharo 8.0] Build #1040: [easyReview] fixing comment 
typos

 

Looks like there's one red bubble for windows in the pipeline steps ?

 

On Wed, 4 Dec 2019 at 21:45, Esteban Lorenzano mailto:esteba...@gmail.com> > wrote:

This build in fact has zero errors. 
I wonder why build script still returns 1 (hence exit status is failure).

Any idea?

Esteban

> On 4 Dec 2019, at 17:43, ci-pharo-ci-jenki...@inria.fr 
>   wrote:
> 
> There is a new Pharo build available!
> 
> The status of the build #1040 was: FAILURE.
> 
> The Pull Request #5305 was integrated: "[easyReview] fixing comment typos"
> Pull request url: https://github.com/pharo-project/pharo/pull/5305
> 
> Issue Url: https://github.com/pharo-project/pharo/issues/typo
> Build Url: 
> https://ci.inria.fr/pharo-ci-jenkins2/job/Test%20pending%20pull%20request%20and%20branch%20Pipeline/job/Pharo8.0/1040/






 

-- 

Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet



Re: [Pharo-dev] Zero Conf for Windows 10

2019-09-11 Thread vincent.blondeau
Yes It works thanks!

 

But, it is still not an optimal solution because you need to install git bash 
and in windows bash scripts you have to mix with git bash commands.

 

Thanks,

Vincent

 

From: Pharo-dev On Behalf Of Christopher Fuhrman
Sent: Wednesday, 11 September 2019 13:31
To: Pharo Development List 
Subject: Re: [Pharo-dev] Zero Conf for Windows 10

 

Did you try it in git bash (after installing git on Windows)? Git bash has a 
lot of support (I think I used zeroconf that way before moving to WSL), 
although it is not as much as cygwin. 

On Wed, Sep 11, 2019, 05:53 mailto:vincent.blond...@polytech-lille.net> > wrote:

Hi all,

 

I wanted to try to get a Pharo image (the headless one to try the new gtk 
binding) through the Pharo Zero conf on a Windows 10 machine.

So, I ran in the Powershell and the cmd: curl 
https://get.pharo.org/64/vmHeadlessLatest80 | bash

But bash is not recognized under windows, so you end by looking into the 
http://files.pharo.org and look tediously for the vm or the image you are 
looking for.

 

I was wondering if there are some projects aiming to use the windows cmd or 
powershell for zeroconf. Otherwise, what will be the cost to do it?

 

(Of course, I could install Cygwin or MinCw (with some additional packages like 
unzip which is not in the default configuration), but the goal here is to have 
it on the shelf).

 

 

Thanks,

 

Vincent



[Pharo-dev] Zero Conf for Windows 10

2019-09-11 Thread vincent.blondeau
Hi all,

 

I wanted to try to get a Pharo image (the headless one to try the new gtk 
binding) through the Pharo Zero conf on a Windows 10 machine.

So, I ran in the Powershell and the cmd: curl 
https://get.pharo.org/64/vmHeadlessLatest80 | bash

But bash is not recognized under windows, so you end by looking into the 
http://files.pharo.org and look tediously for the vm or the image you are 
looking for.

 

I was wondering if there are some projects aiming to use the windows cmd or 
powershell for zeroconf. Otherwise, what will be the cost to do it?

 

(Of course, I could install Cygwin or MinCw (with some additional packages like 
unzip which is not in the default configuration), but the goal here is to have 
it on the shelf).

 

 

Thanks,

 

Vincent



Re: [Pharo-dev] Excel export with Tabular

2018-11-28 Thread Vincent.Blondeau
Hi Norbert,

I just converted the repository to git few days ago: 
https://github.com/VincentBlondeau/Tabular
I missed to inform you on the mailing list. A thing that is now done!

Thanks,
Vincent

-Original Message-
From: Pharo-dev  On Behalf Of Norbert Hartl
Sent: Wednesday, November 28, 2018 8:53
To: Pharo Dev 
Subject: Re: [Pharo-dev] Excel export with Tabular

Is there any progress on this? Can you tell the S3 url you are using? 

Do you need help to put it on github?

Norbert


> Am 12.11.2018 um 22:41 schrieb Hans-Martin Mosner :
> 
> I put it on ss3 because I'm not yet familiar with the way Pharo uses github. 
> Will look into it later.
> 
> I'm unsure how git repositories are used in the Pharo context. Do you 
> use them just like you use git normally (i.e. I use my git repository, 
> you use yours and send me pull requests etc...). Are there any catalog 
> systems that allow one to register and find projects? This whole issue has 
> always been a bit confusing in the Squeak/Pharo world due to the number of 
> different options.
> 
> Cheers,
> Hans-Martin
> 
> Am 11. November 2018 10:50:40 nachm. schrieb Sven Van Caekenberghe 
> :
> 
>> Hi Hans-Martin,
>> 
>> This is great. I use Tabular too and was missing active 
>> development/maintenance. It would be very good to see this project move 
>> forward. It is quite important/useful in enterprise contexts.
>> 
>> Thx,
>> 
>> Sven
>> 
>> PS: where did you commit the changes ? any chance of moving it to GitHub 
>> (too) ?
>> 
>>> On 11 Nov 2018, at 22:16, Hans-Martin  wrote:
>>> 
>>> Hello folks,
>>> I have a need for creating excel files with more than 3 worksheets, 
>>> so I took the Tabular code and beefed up the exporter a little. It 
>>> does handle more worksheets now, uses XMLWriter to create all the 
>>> ZIP members, and is properly named now (the class was called 
>>> TabularXSLXExport, note swapped S and L).
>>> Some tests have been added, there are a number of items that I plan 
>>> to to as time allows:
>>> - Add (possibly limited) support for styles and formulas which I 
>>> specifically need for the project I'm working on so I could write 
>>> files with the desired layout and functionality.
>>> - Add support for reading more aspects of XLSX files, preferrably as 
>>> much as needed to be able to read and write most files without loss.
>>> - Add rendering, maybe at the basic morphic level, maybe using 
>>> something else as I'm not really up-to-date regarding the developments in 
>>> Pharo.
>>> - Add formula evaluation.
>>> - Add editing capabilites to have a fully functional spreadsheet 
>>> (really far off).
>>> 
>>> Cheers,
>>> Hans-Martin
>>> 
>>> 
>>> 
>>> --
>>> Sent from: 
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__forum.world.st_P
>>> haro-2DSmalltalk-2DDevelopers-2Df1294837.html=DwIFAg=RWI7EqL8K9l
>>> qtga8KxgfzvOYoob76EZWE0yAO85PVMQ=kIZIYXBAA3fhM7P5HOuTC5w6mnEApTfXP
>>> Tq3lR34ZiY=EPbX5TzJOZHDpUVDsq332xD1gqtrIVoQbAznjKQPUdA=dW_yz-tezHKlcwFvYmnlCbnMBIEdRMUYhIUjKF9XZSc=
>>> 
> 
> 
> 
> 



pgpKlZfFEkPcL.pgp
Description: PGP signature


[Pharo-dev] Hash on collections

2018-06-20 Thread Vincent.Blondeau
Hi,

I was watching to the Collection>>#hash implementation and I found something 
strange:
self size <= 10 ifTrue:
[self do: [:elem | hash := hash bitXor: elem 
hash]].

Can someone know why the contents are only considered for the hash if the 
collection size is below 10? Is that a bug or a feature?

Moreover, it is in contradiction with the end of the comment:
-- two equal objects have equal hash values

TIA,

Cheers,
Vincent

<>

[Pharo-dev] Sign Windows VMs

2018-05-14 Thread Vincent.Blondeau
Hi!

I am using Pharo in a company network under a firewall, an antivirus, and 
windows, and each day I have an issue with some parts of the Pharo application 
that are recognized as a threat.  So, I cannot download it or execute it 
straightforwardly.

Today was this one:

[https://cdn.discordapp.com/attachments/365850577340727296/445688856948506624/unknown.png]
Another day was the Cairo Dll where a "Veil Evasion Payload" has been detected.

And some people has encounter the same kind of issues:

  *   https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/152
  *   
https://pharo.fogbugz.com/f/cases/20500/WindowsDefender-consider-SqueakSSL-dll-as-a-virus-and-delete-it

It seems that the solution is to sign the VM with Authenticode, but for this, 
one needs to acquire a certificate (which is, of course, not free).
Has the community such a certificate? Maybe the same that for MacOS?
Would someone configure the VM builds to automatically sign them? (I can spend 
some time for this if needed)

TIA,

Cheers,
Vincent

<>

Re: [Pharo-dev] Pharo Launcher on Windows > Failing

2018-04-12 Thread Vincent.Blondeau
Hi Phil,

I can help you to fix this issue. Can you tell me the list of the files in the 
folder that is designed by the error?
And in the parent folder, there should be a zip file with the same name, can 
you check if Pharo.exe is here and if the file list is the same?
It will be nice if you can serialize the stack and send it to me / post it in a 
new github issue: https://github.com/pharo-project/pharo-launcher/issues .

Thanks,

Vincent

From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of 
p...@highoctane.be
Sent: Thursday, April 12, 2018 7:58
To: Discusses Development of Pharo 
Subject: [Pharo-dev] Pharo Launcher on Windows > Failing

I wanted to try Pharo Laucher before the tech talk

But I get this when asking for an image

[cid:image002.png@01D3D236.9CDB6FD0]

I do not even know what is going on and I am an "experienced user".

The impression this gives to a newcomer is utterly disastrous.

We are really on a bad path on this.

I'd like to get through this with some Launcher expert and fix this for good.

Phil



[Pharo-dev] Discord server vanished!

2018-03-09 Thread Vincent.Blondeau
Hi,

It seems that the Pharo discord server is not available anymore at this address 
provided on Pharo.org: https://discordapp.com/invite/Sj2rhxn
And it vanished from the discord app...

Where did it go?

Thanks,
Vincent
<>

Re: [Pharo-dev] [ANN] Cruiser: A Pharo app packager

2018-03-09 Thread Vincent.Blondeau
Hi Phil!

Indeed! The UFFI is working without the sources. It is integrated in Cruiser as 
a parameter for deployment. You can activate or deactivate it at will:
[cid:image001.png@01D3B78A.D549CDB0]
Let us know if you encounter some issues with it!

Thanks!
Vincent

From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Denis 
Kudriashov
Sent: Friday, March 9, 2018 8:14
To: Pharo Development List 
Subject: Re: [Pharo-dev] [ANN] Cruiser: A Pharo app packager

It was solved in this pull request  21124 ffi should work without the sources   



2018-03-09 17:11 GMT+01:00 Eliot Miranda 
>:
Hi Philippe,

On Mar 9, 2018, at 4:50 AM, 
philippe.b...@highoctane.be 
> wrote:
Vincent,

When it comes to UnifiedFFI what would be your advice to have it working?

You will find that it will just work.  Vincent and I discussed how to eliminate 
the UFFI's dependency on the source files as he was developing Cruiser.  I 
think the solution is already released.



I am using quite a few such calls.

Thx for this cool tool, I'll try it out this week end for sure!

Phil

On Thu, Mar 8, 2018, 20:30 
> 
wrote:
Hi Pharoers!

I pleased to announce you the first release of Cruiser: a tool to package your 
Pharo applications. The idea is to quickly convert an application from a 
development environment to a production one. A production environment means:

  *   No writing on the disk
  *   No access to the source code (by the shortcuts, debugger,...)
  *   No error displaying on the interface
  *   The only thing accessible is the user application

I let you discover it on: 
https://github.com/VincentBlondeau/Cruiser

[cid:image002.png@01D3B6D0.B0BAA0B0]

Do not hesitate to ask me questions or contribute to improve it!

Cheers,

Vincent Blondeau
Software Engineer, Software and Controls | Global Product Group
Desk +1 510.572.7499

Lam Research Corporation
4650 Cushing Pkwy, Fremont, CA 94538 
USA
 | www.lamresearch.com
Connect with Lam Research: 
Facebook>
 | 
Twitter>
 | 
LinkedIn>



NOTICE: This e-mail transmission may contain confidential information. If you 
are not the intended recipient, or a person responsible for delivering it to 
the intended recipient, you are hereby notified that any disclosure, copying, 
distribution or use of any of the information contained in or attached to this 
message is STRICTLY PROHIBITED. If you have received this transmission in 
error, please immediately notify the sender and destroy the original 
transmission and its attachments without reading them or saving them to disk. 
Thank you.



Re: [Pharo-dev] [Pharo-users] [ANN] Cruiser: A Pharo app packager

2018-03-08 Thread Vincent.Blondeau
Thx! That's not planned to do mobile apps for now. I was even not aware that 
mobile apps could be done with Pharo.
But, if you feel the need to do it, any contribution is welcomed!

Vincent

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
Todd Blanchard
Sent: Thursday, March 8, 2018 12:05
To: Pharo Development List 
Cc: Thorgrimsson, Chris ; Any question 
about pharo is welcome 
Subject: Re: [Pharo-users] [Pharo-dev] [ANN] Cruiser: A Pharo app packager

That is very cool.

Any intentions to do mobile?

Inspired by David Buck's post on his mobile VM.

https://medium.com/@richardeng/mobile-smalltalk-c6f0cc712909

On Mar 8, 2018, at 12:00 PM, Alexandre Bergel 
> wrote:

I saw a demo of it two weeks ago. This is really good stuff!
Cruiser is about turning a Pharo app as a stand-alone application, as an .exe 
file from a user perspective, without knowing there is Pharo underneath.

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





On Mar 8, 2018, at 4:29 PM, 
vincent.blond...@lamresearch.com wrote:

Hi Pharoers!

I pleased to announce you the first release of Cruiser: a tool to package your 
Pharo applications. The idea is to quickly convert an application from a 
development environment to a production one. A production environment means:
* No writing on the disk
* No access to the source code (by the shortcuts, debugger,...)
* No error displaying on the interface
* The only thing accessible is the user application

I let you discover it on: 
https://github.com/VincentBlondeau/Cruiser



Do not hesitate to ask me questions or contribute to improve it!

Cheers,

Vincent Blondeau
Software Engineer, Software and Controls | Global Product Group
Desk +1 510.572.7499

Lam Research Corporation
4650 Cushing Pkwy, Fremont, CA 94538 USA | 
www.lamresearch.com
Connect with Lam Research: 
Facebook
 | 
Twitter
 | 
LinkedIn




NOTICE: This e-mail transmission may contain confidential information. If you 
are not the intended recipient, or a person responsible for delivering it to 
the intended recipient, you are hereby notified that any disclosure, copying, 
distribution or use of any of the information contained in or attached to this 
message is STRICTLY PROHIBITED. If you have received this transmission in 
error, please immediately notify the sender and destroy the original 
transmission and its attachments without reading them or saving them to disk. 
Thank you.




Re: [Pharo-dev] Change Pharo window icon

2018-02-06 Thread Vincent.Blondeau
Hi,

The fact that he mentioned an ability to change window's title from inside of 
the running image suggested me that he actually wants to change an icon at 
runtime too.

Indeed, that is what I would like to do.

Cheers,
Vincent

From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of 
Aliaksei Syrel
Sent: Saturday, February 3, 2018 8:09
To: Pharo Development List 
Subject: Re: [Pharo-dev] Change Pharo window icon

Hi Eliot,

I thought Vincent wants to change Pharo main window icon (image).
I would like to know how to change the main Pharo window icon.

The fact that he mentioned an ability to change window's title from inside of 
the running image suggested me that he actually wants to change an icon at 
runtime too.
DisplayScreen class  >> primitiveWindowTitle:string:

I may be wrong :) But in any case it would be nice to be able to change window 
icon from the image.

Cheers,
Alex

On 3 February 2018 at 17:01, Eliot Miranda 
> wrote:
Hi Aliaksei,
On Feb 3, 2018, at 4:30 AM, Aliaksei Syrel 
> wrote:
Hi

Since Pharo uses sdl2 (or should use)
https://wiki.libsdl.org/SDL_SetWindowIcon

Hang on.  Changing a window's icon is not at all the same as changing the VM's 
icon.  Which are we talking about here?  I thought we were talking about 
changing the VM icon.



Alex




Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from Pharo

2018-02-01 Thread Vincent.Blondeau
Even a simple wget cmd does not work too
wget : Unable to read data from the transport connection: An existing 
connection was forcibly closed by the remote
host.
At line:1 char:1
+ wget https://files.pharo.org/get-files/70/pharo-win-stable.zip
+ ~~
+ CategoryInfo  : NotSpecified: (:) [Invoke-WebRequest], IOException
+ FullyQualifiedErrorId : 
System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

It should be a firewall pb then 

Thanks for your help!

Vincent

-Original Message-
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Sven 
Van Caekenberghe
Sent: Thursday, February 1, 2018 3:09
To: Pharo Development List 
Subject: Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from Pharo

This is a know issue.

It requires being behind a particular proxy or firewall doing a large HTTPS (I 
believe it does not occur with HTTP) download that goes slower. It might also 
only occur on Windows.

This can only be debugged when being in that specific location, I guess.

It is annoying to say the least.

> On 1 Feb 2018, at 11:37, Marcus Denker  wrote:
> 
> Hello,
> 
> I remember that we had people behind firewalls some time ago that saw this 
> problem. (In Argentina?).
> We never even found a clue what the problem could be.
> 
> There has to be something that Pharo does that leads to the server 
> dropping the connection. What could it be?
> 
>   Marcus
> 
>> On 1 Feb 2018, at 09:33, Vincent BLONDEAU 
>>  wrote:
>> 
>> This issue is still there….
>>  
>> At work, I can download the zip properly with Firefox, but not with Chrome, 
>> IE, Pharo, and VisualWorks.
>> When I use another connection than the one behind the company firewall, it 
>> works.
>> I tried on the laptop of one of my colleagues: same issue…
>>  
>> By analyzing the HTTP packets with Wireshark, a Reset of the 
>> connection is send by the server, I don’t know why… I really don’t know how 
>> to solve or reproduce this issue. Has someone an idea?
>>  
>> Thanks,
>>  
>>  
>> Vincent
>>  
>>  
>> From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf 
>> Of vincent.blond...@lamresearch.com
>> Sent: mercredi 24 janvier 2018 09:11
>> To: pharo-dev@lists.pharo.org
>> Subject: Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from 
>> Pharo
>>  
>> Hi,
>>  
>> I think that is not related… I have this problem since last week and it is 
>> still there today.
>>  
>> Vincent
>>  
>> From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf 
>> Of Marcus Denker
>> Sent: Wednesday, January 24, 2018 0:01
>> To: Pharo Development List 
>> Subject: Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from 
>> Pharo
>>  
>> Hi,
>>  
>> My watchdog detected problems connecting to files.pharo.org this night 
>> (local time).
>>  
>> It seems to not happen anymore. It might have been related (that is, 
>> there might have been problems on the OVH side this night).
>>  
>> Marcus
>>  
>> 
>>> On 24 Jan 2018, at 00:09,  
>>>  wrote:
>>>  
>>> Hi,
>>> 
>>> With the Pharo launcher, the VM are automatically downloaded from the 
>>> files.pharo.org server.
>>> However, it seems that the download of some VMs doesn't work at least under 
>>> Windows 10.
>>> For the P7 image, the download stops at 38% (~2.5Mo) with the error 
>>> "ConnectionClosed: Cannot Read Data", and, I obtain the same error with 
>>> this cmd:
>>> 
>>> ZnEasy get: 
>>> 'https://urldefense.proofpoint.com/v2/url?u=http-3A__files.pharo.org_get-2Dfiles_70_pharo-2Dwin-2Dstable.zip=DwIFaQ=RWI7EqL8K9lqtga8KxgfzvOYoob76EZWE0yAO85PVMQ=kIZIYXBAA3fhM7P5HOuTC5w6mnEApTfXPTq3lR34ZiY=6B_oTalmIUHClO99GAgA7QDrvsKsbhGgicu9pVEZzwk=8WuW7BSmwyMwvViGgmYbTs5VN06lkN19opULrS2rcyY='.
>>> 
>>> However, I can fully download the image through the Internet Browser. The 
>>> download with Pharo is working: ZnEasy get: 
>>> 'https://urldefense.proofpoint.com/v2/url?u=https-3A__files.pharo.org_=DwIFaQ=RWI7EqL8K9lqtga8KxgfzvOYoob76EZWE0yAO85PVMQ=kIZIYXBAA3fhM7P5HOuTC5w6mnEApTfXPTq3lR34ZiY=6B_oTalmIUHClO99GAgA7QDrvsKsbhGgicu9pVEZzwk=ROecBH6yGr68uPYUjaNrFzeOWS3Hk3dSlaRDxgFbOTo='.
>>>  give me a 200 OK response.
>>> 
>>> Thanks in advance for your help,
>>> 
>>> Cheers,
>>> Vincent
>>> 
>>> 
>>> 
> 




[Pharo-dev] Change Pharo window icon

2018-01-31 Thread Vincent.Blondeau
Hi,

I would like to know how to change the main Pharo window icon. I saw that there 
is a primitive for the title:
DisplayScreen class  >> primitiveWindowTitle:string: ; primitive: 
'primitiveHostWindowTitle' module:'HostWindowPlugin'
but I cannot find one for the icon.
Should another primitive need to be implemented?

Thanks!

Vincent


<>

Re: [Pharo-dev] FFI without the Pharo sources

2018-01-30 Thread Vincent.Blondeau
Hi,

So, I suggest this solution: https://github.com/pharo-project/pharo/pull/750

It is a plugin for the OpalCompiler that can be activated with the command 
"FFICompilerPlugin install."
The plugin is pragma-based to detect the methods where the arguments names 
should be remembered.
The pragma should be added in the FFI API methods, i.e., the methods that are 
called by the FFI methods where the arguments have to be remembered.
Example:

This FFI method should remember the name of the argument named "config":

repository_config: config
^ self
call: #(#LGitReturnCodeEnum #git_repository_config 
#(#LGitConfig #* #config #, #self))
options: #()

So, the FFI function should wear the pragma :

call: fnSpec options: options

^ (self safeFFICalloutIn: thisContext sender)
cdecl;
options: options;
function: fnSpec module: self ffiLibraryName

To remove to be able to remove the sources (.changes and .sources), you only 
have to activate the plugin, no recompilation is necessary. You can even import 
new FFI methods or change the FFI API.

N.B: Users that redefine the FFI API (like TLGitCalloutTrait >> call:options:) 
also have to wear the pragma.

Cheers,
Vincent

-Original Message-
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of 
Stephane Ducasse
Sent: Wednesday, January 24, 2018 9:21
To: Pharo Development List 
Subject: Re: [Pharo-dev] FFI without the Pharo sources

So if you implement a cool solution we will integrate it immediately :)

On Wed, Jan 24, 2018 at 6:20 PM, Stephane Ducasse  
wrote:
> Thanks Vincent we are interested to make the independence on source 
> much simpler.
>
> Stef
>
>
> On Wed, Jan 24, 2018 at 5:09 PM, Eliot Miranda  
> wrote:
>> Hi Vincent,
>>
>>> On Jan 23, 2018, at 4:54 PM,  
>>>  wrote:
>>>
>>> Hi,
>>>
>>> I am working to be able to create some standalone apps in Pharo. And for 
>>> this, I would like to remove of the .sources and .changes. But, by removing 
>>> them, the args names are reset to arg1, arg2, arg3, ... and the FFI cannot 
>>> be used anymore.
>>>
>>> Does someone (Esteban?) have a solution that I could implement to fix this 
>>> issue?
>>
>> One avenue that should be easy to implement would be to modify the compiler 
>> to save the temporary names as a property of the method.
>>
>>
>>>
>>> Thanks!
>>>
>>> Vincent
>>
>> _,,,^..^,,,_ (phone)



Re: [Pharo-dev] Iceberg Loading issue

2018-01-26 Thread Vincent.Blondeau
Thanks Alistair!

I'll try that. But, still, there is an issue somewhere in Iceberg.

Cheers,
Vincent

-Original Message-
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of 
Alistair Grant
Sent: Friday, January 26, 2018 0:57
To: Pharo Development List 
Subject: Re: [Pharo-dev] Iceberg Loading issue

Hi Vincent,

Every time I've seen this question asked, the answer has been to checkout the 
branch that you want and then "Reload All" from the list of packages.

Cheers,
Alistair


On 26 January 2018 at 00:42,   wrote:
> Hi,
>
> I am encountering some problems with Iceberg on the latest version.
>
> I want to load the commits I just made on a branch on my Pharo fork, let's 
> say "21124". I set the local repo to the current version of my Pharo image, 
> i.e. the development branch (commit 0dbf86).
> Thanks to the iceberg interface, I change the current branch to "21124", 
> there are 12 commits that are incoming.
> Then, I then do "Pull incoming commit" to load them.
> But after a few moment, instead of loading only the delta between the 
> development branch and the "21124" one, iceberg goes further in the commit 
> history and wants to load 174 commits... Including one that does not load.
>
> By debugging, it seems that there is a problem with 
> LGitRepository>>fastForward:, the result of "self lookup: 'FETCH_HEAD'" gives 
> not the good commit i.e. the one of the development branch  (commit 0dbf86), 
> but instead the one of "I do not what".
>
> Does this issue is known? And how can I bypass it or solve it?
>
> Thanks,
>
> Vincent



[Pharo-dev] Iceberg Loading issue

2018-01-25 Thread Vincent.Blondeau
Hi,

I am encountering some problems with Iceberg on the latest version.

I want to load the commits I just made on a branch on my Pharo fork, let's say 
"21124". I set the local repo to the current version of my Pharo image, i.e. 
the development branch (commit 0dbf86).
Thanks to the iceberg interface, I change the current branch to "21124", there 
are 12 commits that are incoming.
Then, I then do "Pull incoming commit" to load them.
But after a few moment, instead of loading only the delta between the 
development branch and the "21124" one, iceberg goes further in the commit 
history and wants to load 174 commits... Including one that does not load.

By debugging, it seems that there is a problem with 
LGitRepository>>fastForward:, the result of "self lookup: 'FETCH_HEAD'" gives 
not the good commit i.e. the one of the development branch  (commit 0dbf86), 
but instead the one of "I do not what".

Does this issue is known? And how can I bypass it or solve it?

Thanks,

Vincent
<>

Re: [Pharo-dev] FFI without the Pharo sources

2018-01-24 Thread Vincent.Blondeau


From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Eliot 
Miranda
Sent: Wednesday, January 24, 2018 10:24
To: Pharo Development List 
Subject: Re: [Pharo-dev] FFI without the Pharo sources



On Wed, Jan 24, 2018 at 10:21 AM, Eliot Miranda 
> wrote:


On Wed, Jan 24, 2018 at 9:26 AM, 
> 
wrote:


-Original Message-
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Eliot 
Miranda
Sent: Wednesday, January 24, 2018 8:09
To: Pharo Development List 
>
Subject: Re: [Pharo-dev] FFI without the Pharo sources

Hi Vincent,

> On Jan 23, 2018, at 4:54 PM, 
> > 
> > 
> wrote:
>
> Hi,
>
> I am working to be able to create some standalone apps in Pharo. And for 
> this, I would like to remove of the .sources and .changes. But, by removing 
> them, the args names are reset to arg1, arg2, arg3, ... and the FFI cannot be 
> used anymore.
>
> Does someone (Esteban?) have a solution that I could implement to fix this 
> issue?

One avenue that should be easy to implement would be to modify the compiler to 
save the temporary names as a property of the method.

Hi Eliot,

Ok. That seems the better solution. But you have to do that for only the FFI 
methods?

Right.  It would be very wasteful to do it for everything.  Also, if there is a 
Pragma for the FFI information then an even nicer way to do it would be to add 
a subclass of Pragma, FFIPragma?, and add the tempVars there-in.

Sorry, I don't mean that.  Pgarmas are created when one tries to access a 
method's pragmas; they are ephemeral.  Instead one could add a subclass of 
AdditionalMethodState.  AdditionalMethodState holds the messages for pragmas 
and the properties.  You can use the properties directly; they're a dictionary. 
 But if you added a subclass, AdditionalFFIMethodState?, it could hold the temp 
names in an inst var.

Ok Eliot! I put the args in a variable of the additional state for ffi that is 
created when a ffiCall selector is detected in the method at compilation. I 
think I could finish tomorrow the accessing to the arguments names when the 
sources vanishes.

Thanks!

Vincent



Vincent

>
> Thanks!
>
> Vincent

_,,,^..^,,,_ (phone)




--
_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot


Re: [Pharo-dev] FFI without the Pharo sources

2018-01-24 Thread Vincent.Blondeau


  -Original Message-
  From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of 
Eliot Miranda
  Sent: Wednesday, January 24, 2018 8:09
  To: Pharo Development List 
  Subject: Re: [Pharo-dev] FFI without the Pharo sources

  Hi Vincent,

  > On Jan 23, 2018, at 4:54 PM, 
> 
> 
wrote:
  >
  > Hi,
  >
  > I am working to be able to create some standalone apps in Pharo. And 
for this, I would like to remove of the .sources and .changes. But, by removing 
them, the args names are reset to arg1, arg2, arg3, ... and the FFI cannot be 
used anymore.
  >
  > Does someone (Esteban?) have a solution that I could implement to fix 
this issue?

  One avenue that should be easy to implement would be to modify the 
compiler to save the temporary names as a property of the method.

Hi Eliot,

Ok. That seems the better solution. But you have to do that for only the FFI 
methods?

Vincent

  >
  > Thanks!
  >
  > Vincent

  _,,,^..^,,,_ (phone)



Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from Pharo

2018-01-24 Thread Vincent.Blondeau
Hi,

I think that is not related... I have this problem since last week and it is 
still there today.

Vincent

From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Marcus 
Denker
Sent: Wednesday, January 24, 2018 0:01
To: Pharo Development List 
Subject: Re: [Pharo-dev] [Launcher][Win]Cannot download the VM from Pharo

Hi,

My watchdog detected problems connecting to 
files.pharo.org
 this night (local time).

It seems to not happen anymore. It might have been related (that is, there 
might have been problems
on the OVH side this night).

Marcus


On 24 Jan 2018, at 00:09, 
> 
> 
wrote:

Hi,

With the Pharo launcher, the VM are automatically downloaded from the 
files.pharo.org
 server.
However, it seems that the download of some VMs doesn't work at least under 
Windows 10.
For the P7 image, the download stops at 38% (~2.5Mo) with the error 
"ConnectionClosed: Cannot Read Data", and, I obtain the same error with this 
cmd:

ZnEasy get: 
'http://files.pharo.org/get-files/70/pharo-win-stable.zip'.

However, I can fully download the image through the Internet Browser. The 
download with Pharo is working: ZnEasy get: 
'https://files.pharo.org/'.
 give me a 200 OK response.

Thanks in advance for your help,

Cheers,
Vincent






[Pharo-dev] FFI without the Pharo sources

2018-01-23 Thread Vincent.Blondeau
Hi,

I am working to be able to create some standalone apps in Pharo. And for this, 
I would like to remove of the .sources and .changes. But, by removing them, the 
args names are reset to arg1, arg2, arg3, ... and the FFI cannot be used 
anymore.

Does someone (Esteban?) have a solution that I could implement to fix this 
issue?

Thanks!

Vincent
<>

[Pharo-dev] [Launcher][Win]Cannot download the VM from Pharo

2018-01-23 Thread Vincent.Blondeau
Hi,

With the Pharo launcher, the VM are automatically downloaded from the 
files.pharo.org server.
However, it seems that the download of some VMs doesn't work at least under 
Windows 10.
For the P7 image, the download stops at 38% (~2.5Mo) with the error 
"ConnectionClosed: Cannot Read Data", and, I obtain the same error with this 
cmd:

ZnEasy get: 'http://files.pharo.org/get-files/70/pharo-win-stable.zip'.

However, I can fully download the image through the Internet Browser. The 
download with Pharo is working: ZnEasy get: 'https://files.pharo.org/'. give me 
a 200 OK response.

Thanks in advance for your help,

Cheers,
Vincent


<>

[Pharo-dev] Cannot debug startUp methods

2018-01-23 Thread Vincent.Blondeau
Hi,

In the latest version of Pharo (Build 439 - sha 4810710), I would like to debug 
a startup script, but when I set up an halt in the method, the image is not 
able to start anymore...

For example, when putting an halt in

LanguageEnvironment class>>startUp
self halt.
self clearDefault.

And restarting the image, I got this trace:

[0mLanguageEnvironment class>>startUp
LanguageEnvironment class(Behavior)>>startUp:
ClassSessionHandler>>startup:
[ :arg2 | arg2 startup: arg1 ] in WorkingSession>>runStartup: in Block: [ :arg2 
| arg2 startup: arg1 ]
[ arg2 value: arg3 ] in [ :arg3 |
[ arg2 value: arg3 ]
 on: Exception
 do: [ :arg4 | self errorHandler handleError: arg4 ] ] in 
WorkingSession>>runList:do: in Block: [ arg2 value: arg3 ]
BlockClosure>>on:do:
[ :arg3 |
[ arg2 value: arg3 ]
 on: Exception
 do: [ :arg4 | self errorHandler handleError: arg4 ] ] in 
WorkingSession>>runList:do: in Block: [ :arg3 | ...
Array(SequenceableCollection)>>do:
WorkingSession>>runList:do:
WorkingSession>>runStartup:
WorkingSession>>start:
SessionManager>>launchSnapshot:andQuit:
[ tmp3 := self launchSnapshot: arg1 andQuit: arg2.
tmp1 signal ] in SessionManager>>snapshot:andQuit: in Block: [ tmp3 := self 
launchSnapshot: arg1 andQuit: arg2etc...
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self 
value

WorkingSession>> runList:do: should have catched the exception and opened the 
image, but I do not seems too

What can I do to resolve this issue?

I forgot to say that I am under Windows 10 ;)

Thanks in advance for your help,

Cheers,
Vincent


Re: [Pharo-dev] powerSet

2015-10-22 Thread vincent.blondeau

Hi,

I propose a simpler implementation:
4 in: [ :e | (1 to: e) combinations ]

Vincent

Le 2015-10-22 23:25, Ferlicot D. Cyril a écrit :

Le 22/10/2015 22:58, stepharo a écrit :

Hi

I was programming an exercise with one of my son (well in Python
arghh)
and I end it up doing it in Pharo (I'm save now).

The idea was to write one function that computes the powerset

powerset(4)
= a Set(a Set(1) a Set(1 2) a Set(3) a Set(2) a Set(1 3) a Set(2 
3)
a Set(1 2 3) a Set(4) a Set(1 4) a Set(2 4) a Set(1 2 4) a Set(3 4) 
a

Set(1 3 4) a Set(2 3 4) a Set(1 2 3 4))

I did it without thinking too much in fact

| s n ps |
ps := Set new.

1 to: ((2 raisedTo: 4) -1)
do: [ :i |
s := Set new.
n := 0.
1 to: 4 do: [ :b |
n := n + 1.
((i bitAt: b) = 1 )
ifTrue: [ s add: n].
ps add: s ]].
ps

but I wonder if we want to add it to our lib.

Stef



Hi,

Want would be the uses of this method?