Re: [Pharo-dev] Loading an image crashes the VM

2016-03-14 Thread Ben Coman
On Tue, Mar 15, 2016 at 1:25 AM, Jan Kurš  wrote:
> Hi,
>
> I am trying to open an image I saved a few days ago and I am getting this
> message (the whole log is attached):
>
> stack page bytes 4096 available headroom 2788 minimum unused headroom 3020
>
> (Segmentation fault)
>
> Anyone experiencing something similar? I am running the latest pharo5 VM on
> Linux.
>
> Cheers,
> Jan

Something similar happened to me for the first time last night, about
three times in quick succession.  Seemed to be when I started an Image
from a shell and later killed it with control-C.  Incidentally, these
was with a recent Tracker image only an hour old for me, which had
locked while I was doing risky changes to DelayScheduler, but I was
surprised that it affected the Image on disk.  I was doing temporary
checkpoint saves just prior to Accepting risky code changes. Then upon
restart I got the error.  But I could not reliably reproduce the
problem.

Certainly it was not a large Image.

VM: http://files.pharo.org/vm/pharo-spur32/linux/463.zip
Image: 
https://ci.inria.fr/pharo/view/5.0-Analysis/job/Pharo-5.0-Issue-Tracker-Image/
Platform: Debian 8 Jessie 32-bit

cheers -ben



Re: [Pharo-dev] Loading an image crashes the VM

2016-03-14 Thread Max Leske
How large is your image? There’s a bug in the VM where it can’t open large 
images.

> On 14 Mar 2016, at 18:25, Jan Kurš  wrote:
> 
> Hi,
> 
> I am trying to open an image I saved a few days ago and I am getting this 
> message (the whole log is attached):
> 
> stack page bytes 4096 available headroom 2788 minimum unused headroom 3020
> 
>   (Segmentation fault)
> 
> Anyone experiencing something similar? I am running the latest pharo5 VM on 
> Linux.
> 
> Cheers,
> Jan
> 




Re: [Pharo-dev] TimeZoneDatabase - are we using this?

2016-03-14 Thread stepharo

I should say that I love such class comments
Keep your great work sven.
Stef


Le 14/3/16 10:14, Sven Van Caekenberghe a écrit :

Yes, the ZTimestamp project has that.

Here is the class comment of ZTimezone

===
I am ZTimezone, representing the timezone information in the standard Olsen 
database.

   http://en.wikipedia.org/wiki/Tz_database

Usage

You reference timezones by their ID. The list of supported identifiers is 
accessible using

   ZTimezone timezoneIdentifiers.

To access a timezone do

   ZTimezone id: 'Europe/Brussels'.

The necessary information will be loaded, parsed and cached from a binary file 
of the zoneinfo database (see also man tzfile). This should work automagically 
on Mac OS X and Unix, on Windows you have to download the necessary files and 
specify their location

   ZTimezone zoneInfoLocation: FileLocator C / 'foo' / 'bar' / 'zoneinfo'.

Once you get a handle on a timezone, the main operation is to query the sub 
timezone that is applicable at a certain point in time

   (ZTimezone id: 'Europe/Brussels') subzoneForTimestamp: ZTimestamp now.

The ZSubTimezone instance returned contains information like the UTC offset. 
Since you'll probably only be interested in that aspect there is a convenience 
method

   (ZTimezone id: 'Europe/Brussels') offsetForTimestamp: DateAndTime now.

The flow is that for every GMT timestamp, you get the concrete offset to use 
for a specific timezone. Note that this is not a constant, it depends on the 
time periode the timestamp falls in.

The are 2 more convenience methods to quickly convert between GTM and local 
wall time

   (ZTimezone id: #'Europe/Brussels') gmtToLocal: ZTimestamp now.
   (ZTimezone id: #'Europe/Brussels') localToGmt: DateAndTime now.

Also note the zoneTab and the timezones are cached in the image. When the TZ 
database changes, it might be necessary to either call #cleanUp or #reloadAll. 
When moving images between machines, either all info should be loaded and 
cached, or it might be necessary to use #zoneInfoLocation: again.

Implementation

A chronological array of transition points in unix time specifies which sub 
zone is active from that point on to the next.

Limitations

The format 2 data following the format 1 data is not read as it is a duplicate. 
Leap seconds, the standard/wall indicators and the UTC/local indicators are 
currently ignored, but their information is read and stored.
===

Sven


On 14 Mar 2016, at 10:09, p...@highoctane.be wrote:

I saw TimeZoneDatabase on SS3 (and updated this month)

Are we using this in Pharo in any way? Seems like a must have.

MCHttpRepository
 location: 'http://www.squeaksource.com/TimeZoneDatabase'
 user: ''
 password: ''

Phil








Re: [Pharo-dev] TimeZoneDatabase - are we using this?

2016-03-14 Thread Paul DeBruicker
I just added a DateTime class as a subclass of DateAndTimeto that project
today, which retains the time zone name with the instance so times in the
future can, as needed have their offsets changed to reflect new legislative
decisions.   

It works in Pharo 4 on Mac/Linux.  Not on Windows at the moment.

AFAIK it hasn't been loaded/tested in Pharo 5 yet.  



Paul





philippeback wrote
> I saw TimeZoneDatabase on SS3 (and updated this month)
> 
> Are we using this in Pharo in any way? Seems like a must have.
> 
> MCHttpRepository
> 
> location: 'http://www.squeaksource.com/TimeZoneDatabase'
> user: '
> 
> '
> 
> password: ''
> 
> 
> Phil





--
View this message in context: 
http://forum.world.st/TimeZoneDatabase-are-we-using-this-tp4884404p4884494.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



[Pharo-dev] [pharo-project/pharo-core] 590dde: 50638

2016-03-14 Thread GitHub
  Branch: refs/heads/5.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 590dde901ad4ff8f1ba9e31a35c8f414eb200e71
  
https://github.com/pharo-project/pharo-core/commit/590dde901ad4ff8f1ba9e31a35c8f414eb200e71
  Author: Jenkins Build Server 
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
M 
ConfigurationOfVersionner.package/ConfigurationOfVersionner.class/instance/symbolic
 versions/stable_.st
A 
ConfigurationOfVersionner.package/ConfigurationOfVersionner.class/instance/versions/version2139_.st
M Morphic-Core.package/PasteUpMorph.class/instance/menu %26 
halo/popUpContentsMenu_.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
scripts/script50637.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
scripts/script50638.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
updates/update50637.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
updates/update50638.st
M 
ScriptLoader50.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
A 
System-Settings-Tests.package/SystemSettingsPersistenceTest.class/instance/tests/testLastInSessionManager.st
M System-Settings.package/SystemSettingsPersistence.class/class/class 
initialization/initialize.st
A 
Versionner-Core-Commands.package/VSSaveProjectCommand.class/class/settings/enableValidateSetting_.st
A 
Versionner-Core-Commands.package/VSSaveProjectCommand.class/class/settings/validateBeforeSaving.st
A 
Versionner-Core-Commands.package/VSSaveProjectCommand.class/class/settings/validateBeforeSaving_.st
M Versionner-Core-Commands.package/VSSaveProjectCommand.class/definition.st
A 
Versionner-Core-Commands.package/VSSaveProjectCommand.class/instance/execute/commit.st
M 
Versionner-Core-Commands.package/VSSaveProjectCommand.class/instance/execute/execute.st
A 
Versionner-Spec-Browser.package/VersionnerSpecBrowser.class/class/settings/settingsOn_.st

  Log Message:
  ---
  50638
17806 Make Metacello rules optional in Versionner
https://pharo.fogbugz.com/f/cases/17806

17816 SystemSettings should be last in the startupList of SessionManager
https://pharo.fogbugz.com/f/cases/17816

17813 TransformationMorph rightClick behavior is broken
https://pharo.fogbugz.com/f/cases/17813

http://files.pharo.org/image/50/50638.zip




[Pharo-dev] Loading an image crashes the VM

2016-03-14 Thread Jan Kurš
Hi,

I am trying to open an image I saved a few days ago and I am getting this
message (the whole log is attached):

stack page bytes 4096 available headroom 2788 minimum unused headroom 3020

(Segmentation fault)

Anyone experiencing something similar? I am running the latest pharo5 VM on
Linux.

Cheers,
Jan

Segmentation fault Mon Mar 14 17:53:47 2016


/home/kursjan/Documents/Projects/petit_performance/moose6 - 2016-03-09/pharo
pharo VM version: 5.0 #1 Thu Feb 18 16:48:18 CET 2016 gcc 4.6.3 [Production 
Spur ITHB VM]
Built from: CoInterpreter VMMaker.oscog-EstebanLorenzano.1676 uuid: 
707197b7-1656-460f-bb98-5b042b79239b Feb 18 2016
With: StackToRegisterMappingCogit VMMaker.oscog-EstebanLorenzano.1676 uuid: 
707197b7-1656-460f-bb98-5b042b79239b Feb 18 2016
Revision: https://github.com/pharo-project/pharo-vm.git Commit: 
1ede79373d60e006e1b614e40bf247a6225d5fdb Date: 2016-02-18 14:38:46 +0100 By: 
Esteban Lorenzano  Jenkins build #556
Build host: Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 
16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/kursjan/Documents/Projects/petit_performance/moose6 - 
2016-03-09/ [default: /home/kursjan/Documents/Projects/petit_performance/moose6 
- 2016-03-09/]


C stack backtrace & registers:
eax 0xffe0bb24 ebx 0xffe0ba40 ecx 0xffe0bad8 edx 0xffe0ba8c
edi 0xffe0b910 esi 0xffe0b910 ebp 0xffe0b9a8 esp 0xffe0b9f4
eip 0xffe0bc08
*[0xffe0bc08]
./pharo[0x80bdc52]
./pharo[0x80bdfb6]
[0xf77c2b80]
/usr/lib/i386-linux-gnu/libfreetype.so.6(FT_Stream_ReadULong+0x6e)[0xf6e7a0de]
/usr/lib/i386-linux-gnu/libfreetype.so.6(+0x4f71f)[0xf6ebb71f]
/usr/lib/i386-linux-gnu/libfreetype.so.6(+0x231ca)[0xf6e8f1ca]
/usr/lib/i386-linux-gnu/libfreetype.so.6(+0x103fb)[0xf6e7c3fb]
/usr/lib/i386-linux-gnu/libfreetype.so.6(FT_Open_Face+0x2c4)[0xf6e7e524]
/usr/lib/i386-linux-gnu/libfreetype.so.6(FT_New_Memory_Face+0x5d)[0xf6e7eb2d]
/home/kursjan/Documents/Projects/petit_performance/moose6 - 
2016-03-09/libFT2Plugin.so(primitiveNewMemoryFaceFromExternalMemoryAndIndex+0xfa)[0xf707410a]
./pharo[0x808ca20]
./pharo(interpret+0x50f8)[0x80afbf8]
./pharo[0x80b0249]
./pharo(interpret+0x1f6)[0x80aacf6]
./pharo(main+0x2b2)[0x805c5c2]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xde)[0xf758573e]
./pharo[0x805c8e1]
./pharo[0x8128a98]


Smalltalk stack dump:
0xffe11fec I FreeTypeFace(FT2Face)>newFaceFromExternalMemory:index: 0xca2cab0: 
a(n) FreeTypeFace
0xffe12014 I FreeTypeFace>create 0xca2cab0: a(n) FreeTypeFace
0xffe12034 I FreeTypeFace>validate 0xca2cab0: a(n) FreeTypeFace
0xffe12054 I FreeTypeFont>face 0x8d310d8: a(n) FreeTypeFont
0xffe12090 I FreeTypeFontProvider>fontFor:familyName: 0x985a1d0: a(n) 
FreeTypeFontProvider
0xffe120bc M [] in 
LogicalFontManager>bestFontFor:whenFindingAlternativeIgnoreAll: 0x9965a10: a(n) 
LogicalFontManager
0xffe120e0 M OrderedCollection>do: 0x9965a20: a(n) OrderedCollection
0xffe1210c I [] in 
LogicalFontManager>bestFontFor:whenFindingAlternativeIgnoreAll: 0x9965a10: a(n) 
LogicalFontManager
0xffe12130 M Array(SequenceableCollection)>do: 0x8d2fde8: a(n) Array
0xffe12158 I LogicalFontManager>bestFontFor:whenFindingAlternativeIgnoreAll: 
0x9965a10: a(n) LogicalFontManager
0xffe12180 I LogicalFontManager>bestFontFor: 0x9965a10: a(n) LogicalFontManager
0xffe121a4 I LogicalFont>findRealFont 0x99659d8: a(n) LogicalFont
0xffe121c4 I LogicalFont>realFont 0x99659d8: a(n) LogicalFont
0xffe121e4 I LogicalFont>installOn:foregroundColor:backgroundColor: 0x99659d8: 
a(n) LogicalFont
0xffe12218 I FormCanvas>drawString:from:to:in:font:color: 0x8d2efd0: a(n) 
FormCanvas
0xffe14ec8 I FormCanvas(Canvas)>drawString:in:font:color: 0x8d2efd0: a(n) 
FormCanvas
0xffe14efc I LabelMorph>drawOn: 0xdc6d8e8: a(n) LabelMorph
0xffe14f18 M FormCanvas(Canvas)>draw: 0x8d2efd0: a(n) FormCanvas
0xffe14f34 M FormCanvas(Canvas)>drawMorph: 0x8d2efd0: a(n) FormCanvas
0xffe14f54 M [] in LabelMorph(Morph)>fullDrawOn: 0xdc6d8e8: a(n) LabelMorph
0xffe14f6c M FormCanvas>roundCornersOf:in:during: 0x8d2efd0: a(n) FormCanvas
0xffe14f90 M FormCanvas(Canvas)>roundCornersOf:during: 0x8d2efd0: a(n) 
FormCanvas
0xffe14fb4 M [] in LabelMorph(Morph)>fullDrawOn: 0xdc6d8e8: a(n) LabelMorph
0xffe14fcc M BlockClosure>on:do: 0x8d2f810: a(n) BlockClosure
0xffe14fec M LabelMorph(Morph)>fullDrawOn: 0xdc6d8e8: a(n) LabelMorph
0xffe15008 M FormCanvas(Canvas)>fullDraw: 0x8d2efd0: a(n) FormCanvas
0xffe15024 M FormCanvas(Canvas)>fullDrawMorph: 0x8d2efd0: a(n) FormCanvas
0xffe15044 M [] in AlignmentMorph(Morph)>drawSubmorphsOn: 0xdc725c0: a(n) 
AlignmentMorph
0xffe15064 M Array(SequenceableCollection)>reverseDo: 0xdc766c0: a(n) Array
0xffe15080 M [] in AlignmentMorph(Morph)>drawSubmorphsOn: 0xdc725c0: a(n) 
AlignmentMorph
0xffe150a0 M AlignmentMorph(Morph)>drawSubmorphsOn: 0xdc725c0: a(n) 
AlignmentMorph
0xffe150c0 M [] in AlignmentMorph(Morph)>fullDrawOn: 0xdc725c0: a(n) 
AlignmentMorph
0xffe150d8 M FormCanvas>roundCornersOf:in:during: 0x8d2efd0: a(n) FormCanvas

Re: [Pharo-dev] Status of pharo Android and Pharo ios ?

2016-03-14 Thread jannik laval
Thank you Stef,

I hope someone could work again on it.

Cheers,
Jannik

2016-03-12 11:16 GMT+01:00 stepharo :

>
>
> Le 12/3/16 09:44, jannik laval a écrit :
>
>> Hi pharoers,
>>
>> What is the status of pharo for android and pharo for iOS ?
>>
>
> For android not much changes. I was pushing but nothing came out.
> I'm sorry.
>
> Stef
>
>
>> Thank you for the answer
>>
>> --
>> ~~Jannik Laval~~
>> Enseignant-chercheur
>> Responsable Pédagogique Licence Coordonnateur de Projet en Système
>> d'Information
>> IUT Lumière, Université Lyon Lumière
>> laboratoire DISP
>> http://www.jannik-laval.eu
>> http://www.phratch.com
>> http://www.approchealpes.info
>>
>
>
>


-- 
~~Jannik Laval~~
Enseignant-chercheur
Responsable Pédagogique Licence Coordonnateur de Projet en Système
d'Information
IUT Lumière, Université Lyon Lumière
laboratoire DISP
http://www.jannik-laval.eu
http://www.phratch.com
http://www.approchealpes.info


[Pharo-dev] [pharo-project/pharo-core]

2016-03-14 Thread GitHub
  Branch: refs/tags/50638
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [pharo-project/pharo-core] fa51bd: 50637

2016-03-14 Thread GitHub
  Branch: refs/heads/5.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: fa51bd240d00f846212a2b99128d69e7f890ad19
  
https://github.com/pharo-project/pharo-core/commit/fa51bd240d00f846212a2b99128d69e7f890ad19
  Author: Jenkins Build Server 
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
M Alien.package/Alien.class/class/class 
initialization/ensureNotifiedAtStartup.st
R Alien.package/Alien.class/class/class 
initialization/ensureNotifiedAtStartupAfter_.st
M Alien.package/FFICallbackThunk.class/class/class 
initialization/ensureNotifiedAtStartup.st
M 
ConfigurationOfUnifiedFFI.package/ConfigurationOfUnifiedFFI.class/instance/symbolic
 versions/stable_.st
A 
ConfigurationOfUnifiedFFI.package/ConfigurationOfUnifiedFFI.class/instance/versions/v0%5F15_.st
M 
FFI-Kernel.package/ExternalAddress.class/instance/initialize-release/finalize.st
M FFI-Kernel.package/extension/ByteArray/instance/booleanAt_.st
M FFI-Kernel.package/extension/ByteArray/instance/booleanAt_put_.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
scripts/script50636.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
scripts/script50637.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
updates/update50636.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - 
updates/update50637.st
M 
ScriptLoader50.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
A UnifiedFFI-Tests.package/FFIExternalValueHolderTests.class/README.md
A UnifiedFFI-Tests.package/FFIExternalValueHolderTests.class/definition.st
A 
UnifiedFFI-Tests.package/FFIExternalValueHolderTests.class/instance/primitives/getTime_.st
A 
UnifiedFFI-Tests.package/FFIExternalValueHolderTests.class/instance/tests/testCall.st
A 
UnifiedFFI-Tests.package/FFIExternalValueHolderTests.class/instance/tests/testCreateValueHolder.st
A UnifiedFFI-Tests.package/FFITypesTests.class/README.md
A UnifiedFFI-Tests.package/FFITypesTests.class/definition.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/signed1ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/signed2ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/signed4ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/signed8ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/unsigned1ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/unsigned2ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/unsigned4ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/ranges/unsigned8ByteNumbers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testSigned1ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testSigned2ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testSigned4ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testSignedLong.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testSignedLongLong.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testUnsigned1ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testUnsigned2ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testUnsigned4ByteIntegers.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testUnsignedLong.st
A 
UnifiedFFI-Tests.package/FFITypesTests.class/instance/tests/testUnsignedLongLong.st
A UnifiedFFI.package/FFIExternalValueHolder.class/class/class 
factory/ofType_.st
A UnifiedFFI.package/FFIExternalValueHolder.class/class/private/type_.st
M UnifiedFFI.package/FFIExternalValueHolder.class/definition.st
M 
UnifiedFFI.package/FFIExternalValueHolder.class/instance/initialization/initialize.st
R UnifiedFFI.package/FFIExternalValueHolderType.class/instance/emitting 
code/readEnumAt_.st
M UnifiedFFI.package/FFIExternalValueHolderType.class/instance/emitting 
code/readFieldAt_.st
M UnifiedFFI.package/FFIExternalValueHolderType.class/instance/emitting 
code/writeFieldAt_with_.st
R 
UnifiedFFI.package/FFIExternalValueHolderType.class/instance/testing/needsArityRolling.st
M UnifiedFFI.package/FFIMethodRegistry.class/class/class 
initialization/initialize.st
R UnifiedFFI.package/FFIMethodRegistry.class/class/class 
initialization/initializeStartUpList.st
M 
UnifiedFFI.package/TFFIPointerArity.class/instance/testing/needsArityRolling.st
A UnifiedFFI.package/extension/ByteArray/instance/readString.st
A UnifiedFFI.package/extension/ByteArray/instance/writeString_.st
R UnifiedFFI.package/extension/ExternalAddress/instance/readString.st
R 

[Pharo-dev] [pharo-project/pharo-core]

2016-03-14 Thread GitHub
  Branch: refs/tags/50637
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] Please help package Launcher with both Pharo VMs

2016-03-14 Thread Stephan Eggermont

On 14-03-16 15:40, Christophe Demarey wrote:
The scripts are there: 
https://github.com/pharo-project/pharo-ci/tree/master/ci-jobs/pharo 

Thanks

Stephan




Re: [Pharo-dev] Please help package Launcher with both Pharo VMs

2016-03-14 Thread Damien Cassou
Christophe Demarey  writes:

>> I don't see a script creating a pharoLauncher there. Where is it hidden/how 
>> is it combined?

> The scripts are there:
> https://github.com/pharo-project/pharo-ci/tree/master/ci-jobs/pharo

the scripts there call the scripts at the root:

https://github.com/pharo-project/pharo-ci/blob/master/build-windows-installer.sh
https://github.com/pharo-project/pharo-ci/blob/master/build-dmg.sh

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



Re: [Pharo-dev] Please help package Launcher with both Pharo VMs

2016-03-14 Thread Christophe Demarey

> Le 14 mars 2016 à 14:45, Stephan Eggermont  a écrit :
> 
> On 14-03-16 11:22, Damien Cassou wrote:
>> Hi,
>> 
>> to facilitate starting Pharo, I created the launcher. Now, there are 2
>> VMs that can run separate subsets of Pharo. The launcher supports that:
>> the user "just" has to download a spur vm separately and configure it in
>> launcher's settings. This is not beginner friendly.
>> 
>> Could someone please package a pharo-launcher for both OS X and Windows
>> with both VMs and the setting already set?
>> 
>> The scripts to update are at:
>> https://github.com/pharo-project/pharo-ci
> 
> I don't see a script creating a pharoLauncher there. Where is it hidden/how 
> is it combined?
> 
> Stephan
> 
> 

The scripts are there: 
https://github.com/pharo-project/pharo-ci/tree/master/ci-jobs/pharo


Re: [Pharo-dev] Please help package Launcher with both Pharo VMs

2016-03-14 Thread Stephan Eggermont

On 14-03-16 11:22, Damien Cassou wrote:

Hi,

to facilitate starting Pharo, I created the launcher. Now, there are 2
VMs that can run separate subsets of Pharo. The launcher supports that:
the user "just" has to download a spur vm separately and configure it in
launcher's settings. This is not beginner friendly.

Could someone please package a pharo-launcher for both OS X and Windows
with both VMs and the setting already set?

The scripts to update are at:
https://github.com/pharo-project/pharo-ci


I don't see a script creating a pharoLauncher there. Where is it 
hidden/how is it combined?


Stephan




[Pharo-dev] Please help package Launcher with both Pharo VMs

2016-03-14 Thread Damien Cassou
Hi,

to facilitate starting Pharo, I created the launcher. Now, there are 2
VMs that can run separate subsets of Pharo. The launcher supports that:
the user "just" has to download a spur vm separately and configure it in
launcher's settings. This is not beginner friendly.

Could someone please package a pharo-launcher for both OS X and Windows
with both VMs and the setting already set?

The scripts to update are at:
https://github.com/pharo-project/pharo-ci

Thanks

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



Re: [Pharo-dev] TimeZoneDatabase - are we using this?

2016-03-14 Thread Sven Van Caekenberghe
Yes, the ZTimestamp project has that.

Here is the class comment of ZTimezone

===
I am ZTimezone, representing the timezone information in the standard Olsen 
database.

  http://en.wikipedia.org/wiki/Tz_database

Usage

You reference timezones by their ID. The list of supported identifiers is 
accessible using

  ZTimezone timezoneIdentifiers.

To access a timezone do

  ZTimezone id: 'Europe/Brussels'.

The necessary information will be loaded, parsed and cached from a binary file 
of the zoneinfo database (see also man tzfile). This should work automagically 
on Mac OS X and Unix, on Windows you have to download the necessary files and 
specify their location 

  ZTimezone zoneInfoLocation: FileLocator C / 'foo' / 'bar' / 'zoneinfo'.

Once you get a handle on a timezone, the main operation is to query the sub 
timezone that is applicable at a certain point in time 

  (ZTimezone id: 'Europe/Brussels') subzoneForTimestamp: ZTimestamp now.

The ZSubTimezone instance returned contains information like the UTC offset. 
Since you'll probably only be interested in that aspect there is a convenience 
method 

  (ZTimezone id: 'Europe/Brussels') offsetForTimestamp: DateAndTime now.

The flow is that for every GMT timestamp, you get the concrete offset to use 
for a specific timezone. Note that this is not a constant, it depends on the 
time periode the timestamp falls in.

The are 2 more convenience methods to quickly convert between GTM and local 
wall time 

  (ZTimezone id: #'Europe/Brussels') gmtToLocal: ZTimestamp now.
  (ZTimezone id: #'Europe/Brussels') localToGmt: DateAndTime now.

Also note the zoneTab and the timezones are cached in the image. When the TZ 
database changes, it might be necessary to either call #cleanUp or #reloadAll. 
When moving images between machines, either all info should be loaded and 
cached, or it might be necessary to use #zoneInfoLocation: again.

Implementation

A chronological array of transition points in unix time specifies which sub 
zone is active from that point on to the next.

Limitations

The format 2 data following the format 1 data is not read as it is a duplicate. 
Leap seconds, the standard/wall indicators and the UTC/local indicators are 
currently ignored, but their information is read and stored.
===

Sven

> On 14 Mar 2016, at 10:09, p...@highoctane.be wrote:
> 
> I saw TimeZoneDatabase on SS3 (and updated this month)
> 
> Are we using this in Pharo in any way? Seems like a must have.
> 
> MCHttpRepository
> location: 'http://www.squeaksource.com/TimeZoneDatabase'
> user: ''
> password: ''
> 
> Phil




Re: [Pharo-dev] Adding a serialize menu item?

2016-03-14 Thread Max Leske
Thanks Hernán.

Just for completeness: theres Object>>serializeToFileNamed: as a “shorthand”.

Cheers,
Max


> On 14 Mar 2016, at 07:43, Hernán Morales Durand  
> wrote:
> 
> https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-from-inspector
>  
> 
> 
> Cheers,
> 
> Hernán
> 
> 2016-03-13 8:45 GMT-03:00 stepharo  >:
> Package it with Fuel :)
> 
> Le 12/3/16 21:27, Hernán Morales Durand a écrit :
> 
> Hi guys,
> 
> Frequently I need to serialize contents from an inspector/explorer for later 
> work or because image cannot work with big data sets.
> Do you find yourself doing this from an inspector?
> 
> FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
> 
> Is there a reason for not having a "Serialize" menu entry in the Raw palette?
> On the other side, from the File Browser a "Materialize" could be added for 
> .FL files.
> 
> What do you think?
> 
> Cheers,
> 
> Hernán
> 
> 
> 
> 



Re: [Pharo-dev] Adding a serialize menu item?

2016-03-14 Thread Hernán Morales Durand
https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-from-inspector

Cheers,

Hernán

2016-03-13 8:45 GMT-03:00 stepharo :

> Package it with Fuel :)
>
> Le 12/3/16 21:27, Hernán Morales Durand a écrit :
>
> Hi guys,
>>
>> Frequently I need to serialize contents from an inspector/explorer for
>> later work or because image cannot work with big data sets.
>> Do you find yourself doing this from an inspector?
>>
>> FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
>>
>> Is there a reason for not having a "Serialize" menu entry in the Raw
>> palette?
>> On the other side, from the File Browser a "Materialize" could be added
>> for .FL files.
>>
>> What do you think?
>>
>> Cheers,
>>
>> Hernán
>>
>>
>
>