Re: [Pharo-users] How do I convert a FileTree project to Metadataless GitFileTree project?

2016-07-05 Thread Dale Henrichs
Nicolas, Over the long July 4th weekend, I realized that the package-cache needs to be considered in the package naming scheme ... As currently implemented, the GitFileTree scheme of sequentially numbering version numbers based on the order of git commits is problematic when the

Re: [Pharo-users] How do I debug: "There was an error while trying to install GitFileTree. Installation was cancelled." from Catalog Browser

2016-07-05 Thread Dale Henrichs
While we're on the subject, when one does get a debugger How is a beginner supposed to share the error information with the folks on this list? I have a debugger open on the stack after executing: Metacello new configuration: 'GitFileTree'; version: #stable; repository:

[Pharo-users] How do I debug: "There was an error while trying to install GitFileTree. Installation was cancelled." from Catalog Browser

2016-07-05 Thread Dale Henrichs
Using a freshly downloaded Pharo5.0 and the Catalog Browser, I'm getting a Notification with the message in the subject line while installing GitFileTree, but I get a notification with no indication of why or what the error is ... how am I supposed to debug this? I mean I can guess what load

Re: [Pharo-users] NeoNumberParser and localization

2016-07-05 Thread Sven Van Caekenberghe
> On 05 Jul 2016, at 16:40, Peter Uhnák wrote: > > I know that only NeoCSV uses it — that's how I ran into this problem. I was > processing some (czech) CSV files which used the decimal comma separator… > however the numbers were silently truncated, which wasn't nice to say

Re: [Pharo-users] NeoNumberParser and localization

2016-07-05 Thread Peter Uhnák
I know that only NeoCSV uses it — that's how I ran into this problem. I was processing some (czech) CSV files which used the decimal comma separator… however the numbers were silently truncated, which wasn't nice to say the least — I really don't understand why the default behavior is to silently

Re: [Pharo-users] [UFFI] Using a nested structure

2016-07-05 Thread Ronie Salgado
I compiled the DLL using Visual Studio 2015 Community Edition. Later I will check with mingw. 2016-07-05 14:58 GMT+02:00 Merwan Ouddane : > Using codeblocks, mine are: > > mingw32-g++.exe -m32 -DBUILD_DLL -c main.cpp -o obj\Release\main.o > mingw32-g++.exe -shared

Re: [Pharo-users] [UFFI] Using a nested structure

2016-07-05 Thread Merwan Ouddane
Using codeblocks, mine are: mingw32-g++.exe -m32 -DBUILD_DLL -c main.cpp -o obj\Release\main.o mingw32-g++.exe -shared -Wl,--output-def=bin\Release\libTest.def -Wl,--out-implib=bin\Release\libTest.a -Wl,--dll obj\Release\main.o -o bin\Release\Test.dll -s -m32 On Tue, Jul 5, 2016 at 2:52 PM,

Re: [Pharo-users] [UFFI] Using a nested structure

2016-07-05 Thread Merwan Ouddane
I am not moving from another plateform :/ I tried it in pharo 6 and I it didn't work either. It could be my dll. What is your compilation line for the dll ? Thanks you, Merwan On Tue, Jul 5, 2016 at 2:14 PM, Ronie Salgado wrote: > Hi Merwan, > > I tested this on Pharo 6

Re: [Pharo-users] NeoNumberParser and localization

2016-07-05 Thread Sven Van Caekenberghe
Peter, NeoNumberParser is a simple number (integer/float) parser that is part of NeoCSV (it was based on the JSON number parsing code). It was added because I wanted a number parser that makes little demands on the stream it parses from (just 1 character peek ahead, no arbitrary backtracking,

[Pharo-users] NeoNumberParser and localization

2016-07-05 Thread Peter Uhnák
Hi, is there any plan for NeoNumberParser do add localization support? e.g. NeoNumberParser new thousandsSeparator: $,; "common in us data" parse: '12,230' => 12230 NeoNumberParser new decimalSeparator: $,; "common in eu data" parse: '12,230' => 12.230 Thanks, Peter

Re: [Pharo-users] [UFFI] Using a nested structure

2016-07-05 Thread Ronie Salgado
Hi Merwan, I tested this on Pharo 6 and it is working in Windows. However, in 32 bits Window doubles have an 8 byte alignment, unlike Linux where they have a 4 byte alignment. Can you try doing the following before performing the ffi call in Windows, if you are moving an image from Linux or OS

Re: [Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Peter Uhnák
Perfect! Thank you both. Peter On Tue, Jul 5, 2016 at 12:49 PM, Sven Van Caekenberghe wrote: > Yes, > > ZnCharacterEncoder newForEncoding: #cp1250 > > gives you all you need. > > You can use the stream classes Guile mentioned. Just make sure you do your > underlying, basic file

Re: [Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Sven Van Caekenberghe
Yes, ZnCharacterEncoder newForEncoding: #cp1250 gives you all you need. You can use the stream classes Guile mentioned. Just make sure you do your underlying, basic file IO binary. > On 05 Jul 2016, at 12:21, Guillermo Polito wrote: > > You can, check the

Re: [Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Guillermo Polito
You can, check the ZnCharacterReadStream and ZnCharacterWriteStream classes. You can configure them with an encoding and voilá. Guille On Tue, Jul 5, 2016 at 12:14 PM, Peter Uhnák wrote: > Hi, > > is there a way to reencode a file from within Pharo? > > e.g. I have a file in

[Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Peter Uhnák
Hi, is there a way to reencode a file from within Pharo? e.g. I have a file in CP1250 encoding and I want to change it to UTF-8. In linux I would do something like "recode cp1250..utf8 file.txt". But can Pharo do that natively, or do I need to defer to the system with FFI/OSSubprocess?

[Pharo-users] [UFFI] Using a nested structure

2016-07-05 Thread Merwan Ouddane
Hi, I have an issue whith nested structures. I made some "dummy" structures in c: typedef struct vec3 { double data[3]; } vec3; typedef struct position { int i; vec3 vec; } position; And a "dummy" function to fill it: void fillStruct(position *position) { position -> i =