Re: [Pharo-users] Working with timezones

2014-07-10 Thread Esteban A. Maringolo
So I searched around and ended at http://www.w3.org/TR/timezone Now I can picture the kind of issues you might have to deal with when using timezones. It gets scary. Also I learnt that timezone and time offset are not synonyms. Anyhow this is too much to add to my app without giving it proper th

Re: [Pharo-users] Working with timezones

2014-07-10 Thread Esteban A. Maringolo
2014-07-10 19:42 GMT-03:00 Sven Van Caekenberghe : >> ps: And I guess I now understand the purpose of ZTimestamp :) > > ;-) > > Not only that, there is also ZTimezone with support for the Olsen timezone > database. > > Note that going from local time to UTC and vice versa depends not just on the

Re: [Pharo-users] Working with timezones

2014-07-10 Thread Sven Van Caekenberghe
On 10 Jul 2014, at 23:26, Esteban A. Maringolo wrote: > What is the best way to work across timezones? > > Today my app assumes a global, shared, timezone for data input, storage, etc. > I want to make this configurable, and for that purpose I > > For what I read and thought about, I understan

Re: [Pharo-users] Working with timezones

2014-07-10 Thread Norbert Hartl
Am 10.07.2014 um 23:26 schrieb Esteban A. Maringolo : > What is the best way to work across timezones? > > Today my app assumes a global, shared, timezone for data input, storage, etc. > I want to make this configurable, and for that purpose I > > For what I read and thought about, I understand

[Pharo-users] Working with timezones

2014-07-10 Thread Esteban A. Maringolo
What is the best way to work across timezones? Today my app assumes a global, shared, timezone for data input, storage, etc. I want to make this configurable, and for that purpose I For what I read and thought about, I understand that the best way to avoid any complication is to store and transfe

Re: [Pharo-users] FFI Basic

2014-07-10 Thread Clément Bera
Well the method with the code you give was compiled without any problem in my image (Pharo #30851 with FFI loaded with configuration browser as explained in the other thread). Perhaps this is related to your bug in the other thread where you were (probably) missing a package ? 2014-07-10 18:15

Re: [Pharo-users] MNU: RBParser>>ExternalFunctionDeclaration

2014-07-10 Thread Clément Bera
2014-07-10 17:58 GMT+02:00 Annick Fron : > Hi, > > I have made simple trials using the StandardLib. > I get this error : > RBParser does not understand externalFunctionDeclaration. > I might be missing something … > Yes, you are missing a package named "AST FFI Pharo 3 compatibility". externalFun

[Pharo-users] FFI Basic

2014-07-10 Thread Annick Fron
Hi, I made another attempt , a very basic one on window : trying to use the abs method in the standard lib. abs: aNumber self externalCallFailed I get the error ‘cannot return the given type’. But now if I use long as argument and long as return it works. Annick

[Pharo-users] MNU: RBParser>>ExternalFunctionDeclaration

2014-07-10 Thread Annick Fron
Hi, I have made simple trials using the StandardLib. I get this error : RBParser does not understand externalFunctionDeclaration. I might be missing something … Annick Le 9 juil. 2014 à 17:20, Esteban Lorenzano a écrit : > yes, FFI does not handle ** arguments. > I always replace it b

Re: [Pharo-users] How pragma works to create menu?

2014-07-10 Thread Goubier Thierry
Hi Mark, you can override the standard menu by creating the text view with on:text:accept:readSelection:menu: and pass a menu building selector as the last argument. But you may not be able to recover the default menu that way (I didn't try, but maybe this is possible). In the menu building se

Re: [Pharo-users] How pragma works to create menu?

2014-07-10 Thread Mark Rizun
Maybe someone knows, how can I implement a context menu for MessageBrowser that would pop-up not on itemsList pane, but on sourceCode pane. Plus, I want it to use the standart one(I mean smalltalkEditorMenu), and to have additional features. Mark 2014-07-10 16:28 GMT+02:00 Mark Rizun : > Ok, th

Re: [Pharo-users] How pragma works to create menu?

2014-07-10 Thread Mark Rizun
Ok, thanks) 2014-07-10 16:21 GMT+02:00 Nicolai Hess : > 2014-07-10 15:45 GMT+02:00 Mark Rizun : > > In the NautilusRefactoring class we have a method on a class side: >> >> sourceCodeRefactoringMenu: aBuilder >> >> | target | >> target := aBuilder model. >> targe

Re: [Pharo-users] How pragma works to create menu?

2014-07-10 Thread Nicolai Hess
2014-07-10 15:45 GMT+02:00 Mark Rizun : > In the NautilusRefactoring class we have a method on a class side: > > sourceCodeRefactoringMenu: aBuilder > > | target | > target := aBuilder model. > target selectedClass ifNotNil: [:selectedClass | selectedClass > source

[Pharo-users] Tide startup

2014-07-10 Thread Max Bareis
Hi, I have installed Tide with the current Pharo 30vm, bower 1.2.6 and node 0.10.29. The installation of Tide was with no error and access to the homepage (in http://localhost:1701/tide/github-cache/tide-framework/tide/master/...) is possible. The page loads but on the javascript console I can

[Pharo-users] How pragma works to create menu?

2014-07-10 Thread Mark Rizun
In the NautilusRefactoring class we have a method on a class side: sourceCodeRefactoringMenu: aBuilder | target | target := aBuilder model. target selectedClass ifNotNil: [:selectedClass | selectedClass sourceCodeRefactoring: aBuilder ] I'd like to understa

Re: [Pharo-users] get the names of the currently loaded mcz files

2014-07-10 Thread Sabine Knöfel
Hi Sven, great, this helps! Thank you Sabine 2014-07-10 15:33 GMT+02:00 Sven Van Caekenberghe-2 [via Smalltalk] < ml-node+s1294792n4767405...@n4.nabble.com>: > Here is something I sometimes use: > > (MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <= > b packageName ]) coll

Re: [Pharo-users] get the names of the currently loaded mcz files

2014-07-10 Thread Sven Van Caekenberghe
Here is something I sometimes use: (MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <= b packageName ]) collect: #description. Have a look at WAVersionUploader or WASeasideVersionStatus. But I guess that there are possibilities with Ring as well. On 10 Jul 2014, at 15:18,

Re: [Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread Udo Schneider
Hi Ben, I already uploaded both packages (SSL & AD) to SH: http://smalltalkhub.com/#!/~udos/LDAP-Extensions/ But no documentation or configuration yet ... that's the next blog entry I planning. CU, Udo On 10.07.2014 14:32, Ben Coman wrote: Hi Udo, Your mention AD & LDAP integration is ver

[Pharo-users] get the names of the currently loaded mcz files

2014-07-10 Thread Sabine Knöfel
Hi, how can I get the names of the currently in my image loaded mcz files of a certain package? Example: The name of one of my packages is "RKA24-View". The currently loaded package version is "RKA24-View-SabineKnoefel.390.mcz" ==> I want to call a method with parameter "RKA24-View" and get "RKA2

Re: [Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread Ben Coman
Hi Udo, Your mention AD & LDAP integration is very interesting. Something on this would be a great addition to Pharo For The Enterprise - if you are in a position to be able to share something there. cheers -ben Udo Schneider wrote: > About this larger project was it developed in Pharo? It /

Re: [Pharo-users] Should I be reporting bugs in Pharo 3.0?

2014-07-10 Thread Tim Mackinnon
Hi Nicolai - I should have added that I like the direction that Nautilus is going (and it looks cool) - there is a lot of potential particularly if the code underneath is clean (my experience with the browser code from Squeak, was that it was messy - and seemed to have been ported through several s

Re: [Pharo-users] Should I be reporting bugs in Pharo 3.0?

2014-07-10 Thread Nicolai Hess
2014-07-09 22:51 GMT+02:00 Tim Mackinnon : > OK - will do. > > I am finding that Nautilus in Pharo 3 is very flakey - its very easy to get > into a position where you cant select anything in the package or class pane > - and you just get walkbacks making it unusable. I'm surprised its not been > n

Re: [Pharo-users] Should I be reporting bugs in Pharo 3.0?

2014-07-10 Thread Esteban Lorenzano
On 10 Jul 2014, at 08:52, Marcus Denker wrote: > > On 09 Jul 2014, at 23:08, Tim Mackinnon wrote: > >> Just to clarify - should I just submit for 4.0 and make a note that it >> applies to 3.0 and then you guys can make a duplicate? >> >> Or should I make a duplicate? If its me - how do I dup

Re: [Pharo-users] Using FFI

2014-07-10 Thread Esteban Lorenzano
On 10 Jul 2014, at 02:32, Andres Valloud wrote: > On 64 bit Windows a long is 32 bits and pointers are 64 bits, so that type of > replacement is not going to work in the long run… Of course, but let’s take care about that problem when actually become a problem :) Hopefully, for when we final

Re: [Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread Sven Van Caekenberghe
Udo, On 10 Jul 2014, at 10:44, Udo Schneider wrote: > > About this larger project was it developed in Pharo? > It /is/ still developed - and it's Pharo all the way down. I removed the last > non-Pharo component (stunnel) last week when I succeeded in combining the > existing LDAP bindings with

Re: [Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread Udo Schneider
> About this larger project was it developed in Pharo? It /is/ still developed - and it's Pharo all the way down. I removed the last non-Pharo component (stunnel) last week when I succeeded in combining the existing LDAP bindings with Zodiac (SSL was a must due to AD integration). > Because w

Re: [Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread stepharo
super Thalnks for sharing that with us. About this larger project was it developed in Pharo? Because we are looking for success stories. Stef On 10/7/14 09:00, Udo Schneider wrote: I just extracted some PBKDF2 code from a bigger project. So if you want to derive keys from an non-optimal sou

[Pharo-users] [Blog] PBKDF2 for Pharo

2014-07-10 Thread Udo Schneider
I just extracted some PBKDF2 code from a bigger project. So if you want to derive keys from an non-optimal source (e.g. user input) or store non-reversible passwords with (tunable) secure salting/hashing then PBKDF2 is your friend. The blog is here: http://readthesourceluke.blogspot.de/2014/07