Re: [Pharo-dev] Problems with SSL in Window 10

2019-10-17 Thread Casimiro de Almeida Barreto

Em 17/10/2019 15:20, Christopher Fuhrman escreveu:
> Hi Casimiro,
>
> I'm not a seaside user, but have done some Pharo on Win10. Can you
> tell me: 
>
>   * what Pharo Image (Pharo 7)
>   * what command you were using to install it 
>
> I can try it out...

Oh, I forgot that problem happens in Pharo 7 stable and any Pharo 8
(dev). Sorry for the late info. It seems to be related to git
implementation/interface with windows 10 system.

Currently I'm developing a  deep learning tool to detect stolen cars. It
interfaces python stuff (Keras/Theano via Atlas stuff) using Pharo and
seaside foregrounds... Have fiddled a little with the NeuralNetworks
package, but decided that Keras/Theano are better an if things go bad I
can always turn back to python. Last project using Pharo was a
certification system, but due to the signed NDA I couldn't publish
anything (pain...). This one is easier to explain: detect cars passing
through checkpoints, snapshot car, identify plate, identify windshield
in order to capture faces inside the car. If plate indicates problem,
notify authorities and try to identify faces. Depending on results (on
faces) notify police regarding danger of armed reaction. High resolution
cameras.

Best regards,


Casimiro

>
> Cris
>
>
>
>
> On Thu, 17 Oct 2019 at 08:00,  > wrote:
>
> While trying to install seaside3 in Pharo (Windows 10) I get the
> following
> error:
>
> Fetched -> ConfigurationOfSeaside3-JohanBrichau.338 ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo70/main/ ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo70/main/
> Loaded -> ConfigurationOfSeaside3-JohanBrichau.338 ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo70/main/ ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo70/main/
> Loading 3.3.3 of ConfigurationOfSeaside3...
> I got an error while cloning: There was an authentication error
> while trying
> to execute the operation: .
> This happens usually because you didn't provide a valid set of
> credentials.
> You may fix this problem in different ways:
>
> 1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa
> in your
> command line.
> 2. adding your keys in settings (open settings browser search for "Use
> custom SSH keys" and
> add your public and private keys).
>
> As I'm not windows guy, plz how to fix this trouble with SSL and
> GIT
>
> Thnx a lot.
>
>
>
>
> -- 
> Christopher Fuhrman, P.Eng., PhD
> /Professeur au Département de génie logiciel et des technologies de
> l'information
> ÉTS (École de technologie supérieure)/
> ///
> /
> http://profs.etsmtl.ca/cfuhrman
> +1 514 396 8638
> /L'ÉTS est une constituante de l'Université du Québec/


[Pharo-dev] PLZ fix it for Pharo8...

2019-10-16 Thread Casimiro de Almeida Barreto
In the last builds of Pharo8, CatalogBrowser comes with an easily
fixable glitch... Please could someone take a look? My humble suggestion is:

===

createRepositoryURLtoNameMappings
    "Return a mapping between repositories URLs and their user names"

    
    |repos|
    repos := Dictionary new.   
    3 to: SystemVersion current major do: [:v |
        repos    
            at:
('http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo{1}0/main' format:
(Array with: v))
            put: ('Pharo{1}.0' format: (Array with: v)].
    repos at: 'http://www.squeaksource.com/MetacelloRepository' put:
'Unsorted'.       
    ^repos




Best wishes,


Casimiro Barreto



signature.asc
Description: OpenPGP digital signature


[Pharo-dev] Doubts on Garage (1st use)

2017-09-18 Thread Casimiro de Almeida Barreto

Good evening,


I was trying to sanitize statements, but something went awkward. The 
following non sanitized codelet works ok:


    str := 'INSERT INTO chaves_de_encriptacao (
                    numero_funcional,
                    chave_privada,
                    chave_publica) VALUES (''',
                    self personId leaId asString,''', ''',
                    self keyPair privateKey asAsn1DerBytes asByteArray 
hex,''', ''',
                    self keyPair publicKey asAsn1DerBytes asByteArray 
hex,''')'.


    [ dbConnection execute: str ] on: Exception do: [ ^ false ].


But sanitized one:

    str := dbConnection createStatement: 'INSERT INTO 
chaves_de_encriptacao (

numero_funcional,
chave_privada,
chave_publica) VALUES (''?'', ''?'', ''?'')'.

    str prepare.

    str at: 1 bind: self personId leaId asString.
    str at: 2 bind: self keyPair privateKey asAsn1DerBytes asByteArray hex.
    str at: 3 bind: self keyPair publicKey asAsn1DerBytes asByteArray hex.


    str execute.


returns exception mysqld_stmt_send_long_data (obviously same thing 
happens with the shorthand


str := dbConnection prepare: ...

And I inspect most things but could not understand what's going bad.

As SQL is not my field, I wonder if someone could help to elucidate 
what's going on.



Best regards,


Casimiro Barreto




[Pharo-dev] Is there any implementation of gnupg (PGP) signature/encryption in pharo?

2017-05-22 Thread Casimiro de Almeida Barreto - GMAIL
Good evening,

 

Is there a implementation of PGP signature/encryption protocols in pharo?

 

Best regards,

 

Casimiro

 



[Pharo-dev] RES: RES: RES: Problem with FileSystem in WIndows

2017-04-30 Thread Casimiro de Almeida Barreto
Thanks for the tip Sven.

-Mensagem original-
De: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] Em nome de Sven Van 
Caekenberghe
Enviada em: domingo, 30 de abril de 2017 17:14
Para: Pharo Development List 
Assunto: Re: [Pharo-dev] RES: RES: Problem with FileSystem in WIndows

I have a feeling that you are working on the wrong level, consider:

file := FileReference newTempFilePrefix: 'data' suffix: '.txt'.
file writeStreamDo: [ :out | out << 'Casimiro de Almeida Barreto' ].
file contents.
file ensureDelete.
file exists.

The #newTempFilePrefix:suffix: method uses 'FileLocator temp' as target 
directory, which will be different on different platforms.

The trick is to use these FileLocator locations, try 'FileLocator 
supportedOrigins', to have an abstract, cross platform starting point (except 
for the Windows drives, obviously). Then you construct directories using 
messages.

Remember, the whole image, file browser, file dialogs, they all work cross 
platform, so you can do so too.



---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus




[Pharo-dev] RES: RES: Problem with FileSystem in WIndows

2017-04-30 Thread Casimiro de Almeida Barreto
> Indeed.
>
> Also, you should never have to write the platform test, an important idea of 
> FileSystem is to prevent that.
>

Complete transparency is not possible because the concepts of file system in 
Windows and Unix are different. While in Unix you have a continuous tree, in 
Windows you have the concept of drive or 'disk unity' (C: D: E: ...) and 
disjunct trees. Also in Unix you can have complex file names that include 
almost all characters while in Unix some characters cannot be used (like : )... 
Not to mention that file properties in Unix and Windows are not exactly the 
same, links are not the same, so on and so forth.

> Have you read the chapter on FileSystem from the Deep Into Pharo book ?
>
> Maybe some Windows users can help you better, but I don't recall others 
> having trouble using FileSystem on Windows.

Best regards,

Casimiro Barreto


---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus




[Pharo-dev] RES: Problem with FileSystem in WIndows

2017-04-30 Thread Casimiro de Almeida Barreto
Hello,

-Mensagem original-
De: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] Em nome de Sven Van 
Caekenberghe
Enviada em: domingo, 30 de abril de 2017 05:30
Para: Pharo Development List 
Assunto: Re: [Pharo-dev] Problem with FileSystem in WIndows


> On 30 Apr 2017, at 09:48, Max Leske  wrote:
>
> Hi Casimiro,
>
> have you tried using normal slashes in the path name? FileSystem should 
> convert those to system path delimiters automatically. So:

It seems that FileSystem does not convert / into \ .
((FileSystem root) / 'c:\temp\tempfile.txt')  writeStream won´t work but...
FileStream fileNamed: 'C:\temp\tempfile.txt' works ok.

So... I could make it work for getting a stream both for Unix and Windows:

OSPlatform currentPlatformName = 'unix'
ifTrue: [
[ str := (fs / fn) writeStream ] on: Exception do: [ ^ nil ] ]
ifFalse: [
[ str := FileStream fileNamed: fn ] on: Exception do: [ ^ nil ] 
].

And to delete:

OSPlatform currentPlatformName = 'unix'
ifTrue: [
(FileSystem root / aFileName) delete ]
ifFalse: [
rgx := RxMatcher forString: '^[A-Z]\:'.
drive := rgx matchesIn: aFileName.
drive := (drive at: 1) copyWithRegex: '\:' matchesReplacedWith: 
''.
((FileLocator driveNamed: drive)  / (aFileName copyWithRegex: 
'^[A-Z]\:' matchesReplacedWith: '')) delete ]

Not good, nor elegant nor anything close to good transparent code but... works 
:'(

>
> C:/temp/e8720bb4-b90a-0d00-9b1f-008709e5552b.txt
>
> And possibly you'll need a leading slash, as "C:" is a reference to the root 
> of the file system:
>
> /C:/temp/e8720bb4-b90a-0d00-9b1f-008709e5552b.txt

There is also the following option:

    FileLocator C / 'temp' / 'e8720bb4-b90a-0d00-9b1f-008709e5552b.txt'

> Cheers,
> Max
>
>> On 30 Apr 2017, at 03:15, Casimiro de Almeida Barreto 
>>  wrote:
>>
>> Good night all.
>>
>> I´ve had trouble in windows concerning FileSystem.
>>
>> ((FileSystem disk root) / 
>> ‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’) delete
>>
>> Fails as if the file didn´t exist. Message:
>>
>> FileDoesNotExist: Path / ‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’
>>
>> And I wonder what´s wrong. Because it works in linux and MacOS.
>>
>> Trasncript show: ((FileSYstem disk root) / 
>> ‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’)
>>
>> Returns:
>>
>> File @ C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt\
>>
>> And I wonder where the last \ came from and if is it that is messing all and 
>> how to fix things.
>>
>> Best regards,
>>
>> Casimiro Barreto
>>
>>  Livre de vírus. www.avast.com.
>




---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus




[Pharo-dev] Problem with FileSystem in WIndows

2017-04-29 Thread Casimiro de Almeida Barreto
Good night all.



I´ve had trouble in windows concerning FileSystem.



((FileSystem disk root) / ‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’) 
delete



Fails as if the file didn´t exist. Message:



FileDoesNotExist: Path / ‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’



And I wonder what´s wrong. Because it works in linux and MacOS.



Trasncript show: ((FileSYstem disk root) / 
‘C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt’)



Returns:



File @ C:\temp\e8720bb4-b90a-0d00-9b1f-008709e5552b.txt\



And I wonder where the last \ came from and if is it that is messing all and 
how to fix things.



Best regards,



Casimiro Barreto



---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus


Re: [Pharo-dev] Instructions for Pharo 6 64bits

2016-11-03 Thread Casimiro de Almeida Barreto
Em 03-11-2016 13:53, Thierry Goubier escreveu:
> Hi Esteban,
>
> Another question about Pharo 64 bits.
>
> Why are libgit/libSDL/libssh included in the vm? Ubuntu 16.10 provides
> them with the same version numbers, more or less.
> (libgit2 is so.0.24.0 on ubuntu instead of so.0.24.2 in the pharo vm,
> SDL and ssh are the exact same versions).
>
> Collectively, those three libs are ~ 5M.

There are some troubles with ssl in Fedora (didn't test it in Ubuntu).
While loading Woden (for instance) there's a crash (exception) because
ZdcPluginSSLSession fails.

>
> Thierry
>
> 2016-10-28 11:56 GMT+02:00 Esteban Lorenzano  >:
>
> VM here: http://bintray.com/estebanlm/pharo-vm/build#files/
> 
> Image here: http://files.pharo.org/get-files/60/pharo-64.zip
> 
>
> this is still not official (that’s why is not in official place)
> so there are a couple of known problems: 
>
> - version format is different, and that breaks some things in
> image that depends on it to know what happens
> - command line is different and probably you’ll need to play a bit
> with options (one or two dashes). 
> - UFFI has some failing tests (but most of it works).
>
> I would appreciate some help to report and/or fix the emerging
> problems. 
>
> cheers, 
> Esteban
>
>> On 28 Oct 2016, at 10:39, Thierry Goubier
>> mailto:thierry.goub...@gmail.com>> wrote:
>>
>> Hi all,
>>
>> anybody knows how to get (and test) the 64bits version of the
>> Pharo vm and image?
>>
>> Thanks,
>>
>> Thierry
>
>


-- 
The information contained in this message is confidential and intended
to the recipients specified in the headers. If you received this message
by error, notify the sender immediately. The unauthorized use,
disclosure, copy or alteration of this message are strictly forbidden
and subjected to civil and criminal sanctions.

==

This email may be signed using PGP key *ID: 0x4134A417*


signature.asc
Description: OpenPGP digital signature


Re: [Pharo-dev] Instructions for Pharo 6 64bits

2016-11-03 Thread Casimiro de Almeida Barreto
BTW, the threaded version requires to be run as super user because it
tries to do a pthread_setschedparam(). I tried to fiddle with
/etc/security/limits.conf... but it's not something fancy to do...

Best regards,

Casimiro Barreto

Em 03-11-2016 13:53, Thierry Goubier escreveu:
> Hi Esteban,
>
> Another question about Pharo 64 bits.
>
> Why are libgit/libSDL/libssh included in the vm? Ubuntu 16.10 provides
> them with the same version numbers, more or less.
> (libgit2 is so.0.24.0 on ubuntu instead of so.0.24.2 in the pharo vm,
> SDL and ssh are the exact same versions).
>
> Collectively, those three libs are ~ 5M.
>
> Thierry
>
> 2016-10-28 11:56 GMT+02:00 Esteban Lorenzano  >:
>
> VM here: http://bintray.com/estebanlm/pharo-vm/build#files/
> 
> Image here: http://files.pharo.org/get-files/60/pharo-64.zip
> 
>
> this is still not official (that’s why is not in official place)
> so there are a couple of known problems: 
>
> - version format is different, and that breaks some things in
> image that depends on it to know what happens
> - command line is different and probably you’ll need to play a bit
> with options (one or two dashes). 
> - UFFI has some failing tests (but most of it works).
>
> I would appreciate some help to report and/or fix the emerging
> problems. 
>
> cheers, 
> Esteban
>
>> On 28 Oct 2016, at 10:39, Thierry Goubier
>> mailto:thierry.goub...@gmail.com>> wrote:
>>
>> Hi all,
>>
>> anybody knows how to get (and test) the 64bits version of the
>> Pharo vm and image?
>>
>> Thanks,
>>
>> Thierry
>
>


-- 
The information contained in this message is confidential and intended
to the recipients specified in the headers. If you received this message
by error, notify the sender immediately. The unauthorized use,
disclosure, copy or alteration of this message are strictly forbidden
and subjected to civil and criminal sanctions.

==

This email may be signed using PGP key *ID: 0x4134A417*


signature.asc
Description: OpenPGP digital signature