Re: [Pharo-users] VW2Pharo ? (Was: Pharo2VW (Was:[vwnc] Parsing in Smalltalk))

2018-11-17 Thread Alexandre Bergel via Pharo-users
--- Begin Message ---
We put a significant amount of work into Pharo2VW
https://github.com/ObjectProfile/Pharo2VW

Let us know how useful is it for you.

Cheers,
Alexandre

> On Nov 15, 2018, at 9:36 AM, Esteban Maringolo  wrote:
> 
> I did a lot of scripting to manually export Glorp from VW to Pharo,
> using some of the available (and outdated) parcels for monticello. It
> was painful and needed extra manual work at the file level, because of
> the namespacing and the packaging characteristics of VW plus the
> file-in complaints of Pharo compiler at that time.
> 
> A Tonel exporter would be way better, everything else feels more like
> "rescuing" code from VW rather than exporting it.
> 
> This is something I'd like to collaborate, because I'm spending some
> time with Seaside and VW and there are many library wrappers that I
> could backport to Pharo and release them (e.g. like I did for
> Bootstrap-Select).
> 
> Regards,
> 
> 
> Esteban A. Maringolo
> El jue., 15 nov. 2018 a las 8:23, Steffen Märcker () escribió:
>> 
>> Please let me know if I can help with that porting tool! Btw, is it RDF
>> like Resource Description Framework?
>> 
>> Dreamer mode: It would be awesome to teach VW tonel and Git for export and
>> versioning!
>> 
>> Best, Steffen
>> 
>> Am .11.2018, 11:37 Uhr, schrieb Christian Haider
>> :
>> 
>>> Hi,
>>> 
>>> 
>>> I did a tool for porting PDFtalk from VW to Gemstone (bundle {Gemstone
>>> Fileout Project}) .
>>> 
>>> When I have time, I plan to extend it for Pharo in order to port RDF
>>> (and Values).
>>> 
>>> I am thinking of making Pharo my RDF engine… we’ll see…
>>> 
>>> 
>>> Happy hacking,
>>> 
>>>Christian
>>> 
>>> 
>>> Von: Cédrick Béler 
>>> Gesendet: Mittwoch, 14. November 2018 21:23
>>> An: Any question about pharo is welcome 
>>> Cc: Christian Haider ;
>>> Christian Haider 
>>> Betreff: VW2Pharo ? (Was: Pharo2VW (Was:[vwnc] Parsing in Smalltalk))
>>> 
>>> 
>>> 
>>> Objet: Rép : [Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
>>> 
>>> 
>>> I really like the tool as it makes cross-platform-life a lot easier.
>>> 
>>> 
>>> Thanks :-)
>>> 
>>> 
>>> 
>>> 
>>> I really wish there was a similar tool for the reverse direction, too!
>>> 
>>> 
>>> That is interesting. Anyone else interested in such a tool?
>>> 
>>> 
>>> 
>>> A tool to port from VW to Pharo ?
>>> 
>>> 
>>> Me interested, at least to port Christian work on RDF :)
>>> 
>>> 
>>> Cheers,
>>> 
>>> 
>>> Cédrick
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Cheers,
>>> Alexandre
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Cheers! Steffen
>>> 
>>> Am .10.2018, 22:38 Uhr, schrieb Alexandre Bergel via Pharo-users
>>> mailto:pharo-users@lists.pharo.org> >:
>>> 
>>> 
>>> 
>>> 
>>> Thanks Steffen for your contribution to Pharo2VW.
>>> We reviewed and accepted your PullRequests.
>>> 
>>> Alexandre
>>> 
>>> 
>>> 
>>> 
>>> On Oct 19, 2018, at 6:29 AM, Steffen Märcker >>  > wrote:
>>> 
>>> Nevermind, I figured it out easily. Must been blind before.
>>> 
>>> Many thanks to the Iceberg team, the tool works like a charm in 6.1!
>>> 
>>> 
>>> Am .10.2018, 10:58 Uhr, schrieb Steffen Märcker >>  >:
>>> 
>>> <---Schnitt--->
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
> 


--- End Message ---


Re: [Pharo-users] About the IoT Hackathon last Friday

2018-11-17 Thread Norbert Hartl
To get a better impression we made an image film of the event. Now the 4K 
version is available on youtube.

https://www.youtube.com/watch?v=dIl9FAatKyw 


hope you like it,

Norbert


> Am 22.10.2018 um 16:23 schrieb Sven Van Caekenberghe :
> 
> Last Friday we went to the IoT Hackathon in Köln and it was a great 
> experience.
> 
> Thank you Norbert, Christian, Markus and the whole ZweiDenker team for their 
> generous hospitality: the accommodations where great (beautiful office), the 
> food and drinks super tasty, everybody friendly and welcoming.
> 
> Thank you Allex (Oliviera, Inria/RMOD) for running the workshop and for being 
> so patient, friendly and tireless in helping everyone with all aspects of 
> getting experiments up and running.
> 
> I knew about PharoThings [1] and TelePharo [2] before, but actually using it 
> in practice to experience connecting software and hardware felt a bit like 
> magic. Thank you Denis (Kudriashov) and Inria/RMOD for developing these 
> packages.
> 
> 
> 
> 
> 
> Sven
> 
> [1] https://github.com/pharo-iot/PharoThings 
> 
> [2] https://github.com/pharo-ide/TelePharo 
> 
> 
> 



[Pharo-users] Usage of String and FileLocator to reference files in ZipArchive (and probably other places)

2018-11-17 Thread Hans-Martin
Hi, I've stumbled upon a 7.0 incompatibility with regards to how file names
are treated.
In 6.1, I can use Strings and FileLocators interchangeably to create and
read Zip archives. That's because StandardFileStream does the magic behind
the screnes.
In 7.0, StandardFileStream has been deprecated, and "File
openForReadFileNamed:" is used instead. That method does not handle
FileLocators, so code that uses FileLocators to open Zip archives ceased to
work.

What's the preferred solution? It strikes me as illogical that objects which
were made to reference files can't be used to reference files in these
contexts. However, there may be a conscious design decision behind this
change that's just not obvious to me.

Cheers,
Hans-Martin



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] About the IoT Hackathon last Friday

2018-11-17 Thread Ben Coman
On Sat, 17 Nov 2018 at 22:16, Norbert Hartl  wrote:

> To get a better impression we made an image film of the event. Now the 4K
> version is available on youtube.
>
> https://www.youtube.com/watch?v=dIl9FAatKyw
>
> hope you like it,
>

Like it? makes me want to jump on a plane for the next one.
Great presentation!!

cheers -ben


>
> Norbert
>
>
> Am 22.10.2018 um 16:23 schrieb Sven Van Caekenberghe :
>
> Last Friday we went to the IoT Hackathon in Köln and it was a great
> experience.
>
> Thank you Norbert, Christian, Markus and the whole ZweiDenker team for
> their generous hospitality: the accommodations where great (beautiful
> office), the food and drinks super tasty, everybody friendly and welcoming.
>
> Thank you Allex (Oliviera, Inria/RMOD) for running the workshop and for
> being so patient, friendly and tireless in helping everyone with all
> aspects of getting experiments up and running.
>
> I knew about PharoThings [1] and TelePharo [2] before, but actually using
> it in practice to experience connecting software and hardware felt a bit
> like magic. Thank you Denis (Kudriashov) and Inria/RMOD for developing
> these packages.
>
> 
>
> 
>
> Sven
>
> [1] https://github.com/pharo-iot/PharoThings
> [2] https://github.com/pharo-ide/TelePharo
>
>
>
>


Re: [Pharo-users] Usage of String and FileLocator to reference files in ZipArchive (and probably other places)

2018-11-17 Thread Sven Van Caekenberghe



> On 17 Nov 2018, at 16:04, Hans-Martin  wrote:
> 
> Hi, I've stumbled upon a 7.0 incompatibility with regards to how file names
> are treated.
> In 6.1, I can use Strings and FileLocators interchangeably to create and
> read Zip archives. That's because StandardFileStream does the magic behind
> the screnes.

Could you give a code example ? What API/methods are you talking about ?

What worked before and does not work anymore ?

> In 7.0, StandardFileStream has been deprecated, and "File
> openForReadFileNamed:" is used instead. That method does not handle
> FileLocators, so code that uses FileLocators to open Zip archives ceased to
> work.

*NO* you should not use File directly.

Just use FileReference instances (however you create them) and work from there. 
If you got a string path, use #asFileReference.

  FileLocator desktop / 'foo.txt readStreamDo: [ :in | in upToEnd ]

MyObject>>#readFromFile: file
  ^ file asFileReference readStreamDo: [ :in | self readFromStream: in ]

> What's the preferred solution? It strikes me as illogical that objects which
> were made to reference files can't be used to reference files in these
> contexts. However, there may be a conscious design decision behind this
> change that's just not obvious to me.
> 
> Cheers,
> Hans-Martin
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 




Re: [Pharo-users] About the IoT Hackathon last Friday

2018-11-17 Thread Sven Van Caekenberghe



> On 17 Nov 2018, at 16:12, Ben Coman  wrote:
> 
> 
> 
> On Sat, 17 Nov 2018 at 22:16, Norbert Hartl  wrote:
> To get a better impression we made an image film of the event. Now the 4K 
> version is available on youtube.
> 
> https://www.youtube.com/watch?v=dIl9FAatKyw
> 
> hope you like it,
> 
> Like it? makes me want to jump on a plane for the next one.
> Great presentation!!

I saw it already, but yes it is a super great movie and it was a very good 
event too.

> cheers -ben
>  
> 
> Norbert
> 
> 
>> Am 22.10.2018 um 16:23 schrieb Sven Van Caekenberghe :
>> 
>> Last Friday we went to the IoT Hackathon in Köln and it was a great 
>> experience.
>> 
>> Thank you Norbert, Christian, Markus and the whole ZweiDenker team for their 
>> generous hospitality: the accommodations where great (beautiful office), the 
>> food and drinks super tasty, everybody friendly and welcoming.
>> 
>> Thank you Allex (Oliviera, Inria/RMOD) for running the workshop and for 
>> being so patient, friendly and tireless in helping everyone with all aspects 
>> of getting experiments up and running.
>> 
>> I knew about PharoThings [1] and TelePharo [2] before, but actually using it 
>> in practice to experience connecting software and hardware felt a bit like 
>> magic. Thank you Denis (Kudriashov) and Inria/RMOD for developing these 
>> packages.
>> 
>> 
>> 
>> 
>> 
>> Sven
>> 
>> [1] https://github.com/pharo-iot/PharoThings
>> [2] https://github.com/pharo-ide/TelePharo
>> 
>> 
> 




Re: [Pharo-users] Usage of String and FileLocator to reference files in ZipArchive (and probably other places)

2018-11-17 Thread Hans-Martin
Ok here's an example:

ZipArchive isZipArchive: FileLocator temp / 'nonexist.zip'

In 6.1, this brings up the nonexistant file dialog if the file does not
exist, otherwise it returns true or false depending on whether the file is a
zip archive.
In 7.0, you get an error "Instance of FileLocator did not understand
#utf8Encoded" independent of whether the file exists, is a zip archive or
not :-)

Cheers,
Hans-Martin



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] About the IoT Hackathon last Friday

2018-11-17 Thread Hans-Martin
Very nice, count me in for the next one :-)

Cheers,
Hans-Martin



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] About the IoT Hackathon last Friday

2018-11-17 Thread Andy Burnett
Do you think there is anyway we could run one of these virtually? I would love 
to have been involved, but finding time to travel is tricky. A virtual (or 
blended) event would be much easier. If it helps, I have a corporate Zoom 
account thst would support up to 500 participants - gotta think big :-)

Cheers
Andy


Re: [Pharo-users] Usage of String and FileLocator to reference files in ZipArchive (and probably other places)

2018-11-17 Thread Sven Van Caekenberghe





ok, I had a quick look.

the whole ZIP archive code has quite close ties with File (and vice versa: a 
lot of methods on File are only used by that code), while I don't think this is 
strictly necessary.

I know that this has historical reasons.

some more work needs to be done here.

> On 17 Nov 2018, at 17:42, Hans-Martin  wrote:
> 
> Ok here's an example:
> 
> ZipArchive isZipArchive: FileLocator temp / 'nonexist.zip'
> 
> In 6.1, this brings up the nonexistant file dialog if the file does not
> exist, otherwise it returns true or false depending on whether the file is a
> zip archive.
> In 7.0, you get an error "Instance of FileLocator did not understand
> #utf8Encoded" independent of whether the file exists, is a zip archive or
> not :-)
> 
> Cheers,
> Hans-Martin
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 




[Pharo-users] Pharo on Linux

2018-11-17 Thread Richard Kenneth Eng
I'm running Debian. At http://files.pharo.org, I download

   - platform/Pharo6.0-64-linux.zip
   - sources/PharoV60.sources.zip
   - wget -O- get.pharo.org/60 | bash

Then I try: ./pharo Pharo.image &

I'm always getting "This interpreter (vers. 68021) cannot read image file
(vers. 6521)."

What's wrong?


Re: [Pharo-users] Pharo on Linux

2018-11-17 Thread Alistair Grant
Hi Richard,

You're mixing 32 bit and 64 bit installations.  I'd just use the
zero-conf install.  In an empty directory:

curl get.pharo.org/64/61+vm | bash

or

wget -O - get.pharo.org/64/61+vm | bash

HTH,
Alistair

On Sat, 17 Nov 2018 at 21:32, Richard Kenneth Eng
 wrote:
>
> I'm running Debian. At http://files.pharo.org, I download
>
> platform/Pharo6.0-64-linux.zip
> sources/PharoV60.sources.zip
> wget -O- get.pharo.org/60 | bash
>
> Then I try: ./pharo Pharo.image &
>
> I'm always getting "This interpreter (vers. 68021) cannot read image file 
> (vers. 6521)."
>
> What's wrong?
>



Re: [Pharo-users] Pharo on Linux

2018-11-17 Thread horrido
How do I run pharo?

./pharo Pharo.image &

doesn't work.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Pharo on Linux

2018-11-17 Thread Cyril Ferlicot
On Sat 17 Nov 2018 at 22:05, horrido  wrote:

> How do I run pharo?
>
> ./pharo Pharo.image &


./pharo-ui Pharo.image


>
> doesn't work.
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
> --
Cyril Ferlicot
https://ferlicot.fr


Re: [Pharo-users] Pharo on Linux

2018-11-17 Thread horrido
Thanks.

The last time I used Pharo for Linux was over a year ago, and ./pharo
Pharo.image worked then. Every time usage convention changes, it breaks
documentation and causes confusion. Having more than one way to do something
always invites confusion.

Such is life as a programmer.



CyrilFerlicot wrote
> On Sat 17 Nov 2018 at 22:05, horrido <

> horrido.hobbies@

> > wrote:
> 
>> How do I run pharo?
>>
>> ./pharo Pharo.image &
> 
> 
> ./pharo-ui Pharo.image
> 
> 
>>
>> doesn't work.
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>> --
> Cyril Ferlicot
> https://ferlicot.fr





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Pharo on Linux

2018-11-17 Thread Cyril Ferlicot D.
Le 17/11/2018 à 23:14, horrido a écrit :
> Thanks.
> 
> The last time I used Pharo for Linux was over a year ago, and ./pharo
> Pharo.image worked then. Every time usage convention changes, it breaks
> documentation and causes confusion. Having more than one way to do something
> always invites confusion.
> 

./pharo Pharo.image never launched an UI for me for images I got from
zeroconf on linux.

It will launch an image, but the image will close immediately after
because it has nothing to do while pharo-ui will stay open because it
has the ui process to interact with the user.

./pharo Pharo.image --eval "10 second wait" will keep the image open 10
sec for example.

> Such is life as a programmer.
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


-- 
Cyril Ferlicot
https://ferlicot.fr



signature.asc
Description: OpenPGP digital signature


[Pharo-users] External module not found

2018-11-17 Thread Richard Kenneth Eng
I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
 encryption
package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
anymore. The ffiCall:module: message always gives me "External module
not found".

So my question is, what alternative package can I use to replace the it for
Pharo 6?

Should I go back to Pharo 5?


Re: [Pharo-users] External module not found

2018-11-17 Thread Bernardo Ezequiel Contreras
i've seen that error when i forgot to put a link to sqlite3 (libsqlite3.so)
near the VM. are you sure that the VM have access to the external library?



On Sat, Nov 17, 2018 at 7:39 PM Richard Kenneth Eng <
horrido.hobb...@gmail.com> wrote:

> I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
>  encryption
> package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
> anymore. The ffiCall:module: message always gives me "External module
> not found".
>
> So my question is, what alternative package can I use to replace the it
> for Pharo 6?
>
> Should I go back to Pharo 5?
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] External module not found

2018-11-17 Thread horrido
That's what I'm trying to determine. This used to work before with Pharo 5.

With the latest Pharo setup, it's not clear where I'm supposed to place the
libshacrypt.so file. It has to be located where the Pharo VM can find it, I
presume.

This may be a 32 vs 64 bit issue. I am investigating...



vonbecmann wrote
> i've seen that error when i forgot to put a link to sqlite3
> (libsqlite3.so)
> near the VM. are you sure that the VM have access to the external library?
> 
> 
> 
> On Sat, Nov 17, 2018 at 7:39 PM Richard Kenneth Eng <

> horrido.hobbies@

>> wrote:
> 
>> I have a most peculiar problem. I've been using Pierce Ng’s PasswordCrypt
>> ;
>> encryption
>> package with Pharo 5. Now that I'm using Pharo 6, it doesn't seem to work
>> anymore. The ffiCall:module: message always gives me "External module
>> not found".
>>
>> So my question is, what alternative package can I use to replace the it
>> for Pharo 6?
>>
>> Should I go back to Pharo 5?
>>
> 
> 
> -- 
> Bernardo E.C.
> 
> Sent from a cheap desktop computer in South America.





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] Issue with starting 32-bit Pharo under Linux

2018-11-17 Thread Richard Kenneth Eng
I'm running 32-bit Debian.

I installed 32-bit Pharo 6.1 using:
*wget -O- https://get.pharo.org  | bash*

When I try to run Pharo with:
*./pharo-ui Pharo.image &*

I get this error:

PrimitiveFailed: primitive #createDirectory: in UnixStore failed

And when I try to close the image, I get this error:

PrimitiveFailed: primitive #primSize: in MultiByteFileStream failed

What's going on???


Re: [Pharo-users] Issue with starting 32-bit Pharo under Linux

2018-11-17 Thread horrido
I just discovered why! I have to run the bloody thing as root! Why the hell
is that???



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Issue with starting 32-bit Pharo under Linux

2018-11-17 Thread Alistair Grant
On Sun, 18 Nov 2018 at 04:55, horrido  wrote:
>
> I just discovered why! I have to run the bloody thing as root! Why the hell
> is that???

Just a guess: do you have write access to the image directory?

Cheers,
Alistair



[Pharo-users] Loading ZincHTTPComponents iget stuck in Pharo 7.0.0.RC1-32 bit in Win 10

2018-11-17 Thread Sanjay Minni
Hi I am trying to load one of our packages which is up and running in Pharo
6.1 in Pharo-7.0.0.RC1
(Pharo 7.0.0.RC1 32bit in Win 10)

It gets stuck at Loading Zinc-Character-Encoding-Tests-Sven43, 
the environment freezes no further messages.
I tried loading only ConfigurationOfZincHTTPComponents in a fresh image -
same result (loading 2.9.2 of Conf...ZincHTTP...)

how to get around this

regards
 



-
---
Regards, Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] External module not found

2018-11-17 Thread Stephan Eggermont
horrido  wrote:
> That's what I'm trying to determine. This used to work before with Pharo 5.
> 
> With the latest Pharo setup, it's not clear where I'm supposed to place the
> libshacrypt.so file. It has to be located where the Pharo VM can find it, I
> presume.
> 
> This may be a 32 vs 64 bit issue. I am investigating...

Your old 32 bit .so will definitely not work with 64 bit. And does it work
with Pharo 6.1?

Stephan







Re: [Pharo-users] Loading ZincHTTPComponents iget stuck in Pharo 7.0.0.RC1-32 bit in Win 10

2018-11-17 Thread Sven Van Caekenberghe
For Pharo 7 you need to load #bleedingEdge

Or better still, the baseline in https://github.com/svenvc/zinc

See the Travis CI build there

> On 18 Nov 2018, at 06:41, Sanjay Minni  wrote:
> 
> Hi I am trying to load one of our packages which is up and running in Pharo
> 6.1 in Pharo-7.0.0.RC1
> (Pharo 7.0.0.RC1 32bit in Win 10)
> 
> It gets stuck at Loading Zinc-Character-Encoding-Tests-Sven43, 
> the environment freezes no further messages.
> I tried loading only ConfigurationOfZincHTTPComponents in a fresh image -
> same result (loading 2.9.2 of Conf...ZincHTTP...)
> 
> how to get around this
> 
> regards
> 
> 
> 
> 
> -
> ---
> Regards, Sanjay
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>