Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 6 participants
- 144629 messages
Re: [Pharo-project] [squeak-dev] Re: I hate 'as yet unclassified'
by David Corking
> I think that Hernan Wilkinson suggested a smalllint script might be
> run as part of a CI job to report on uncategorized methods in commits
I see that we have
ClassTestCase>>testUnCategorizedMethods
so CI already has this covered.
Have fun! David
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Sabine Knöfel
Sven,
could you provide a simple code fragment which shows how to write and how
to read a file from the smalltalk image to the connected dropbox app folder?
Greetings
Sabine
On Wed, Jan 30, 2013 at 6:00 PM, Sabine Knöfel <sabine.knoefel(a)gmail.com>wrote:
> Hi Sven,
>
> there was only missing loading Zodiac, the dll (windows) was already
> included in the 1 klick image.
>
> Gofer it
> squeaksource: 'Zodiac';
> package: 'Zodiac-Core';
> package: 'Zodiac-Tests';
> load.
>
> It works. I play around now.
> Thank you very much!
> Sabine
>
>
> On Wed, Jan 30, 2013 at 5:38 PM, Sven Van Caekenberghe <sven(a)stfx.eu>wrote:
>
>>
>> On 30 Jan 2013, at 17:21, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
>>
>> > Hi Sven, hi Jan,
>> >
>> > thank you.
>> > I am one step further now but there must be something else missing to
>> load.
>> > I failed with my current image, so I tried the following:
>> >
>> > I took a fresh image - the Pharo 1.4. one click app from the pharo
>> homepage
>> > (
>> http://gforge.inria.fr/frs/download.php/31258/Pharo-1.4-14557-OneClick.zip
>> )
>> >
>> > Then I loaded seaside 3.0 (from the welcome screen -
>> MetacelloConfigurationBrowser open).
>> >
>> > After that, I loaded
>> >
>> > Gofer it
>> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> > package: 'ConfigurationOfZincHTTPComponents';
>> > load.
>> >
>> > And then the bleeding Edge version
>> > ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
>> >
>> > Then this was possible:
>> > (ZnServer startDefaultOn: 8100)
>> > logToTranscript;
>> > debugMode: true;
>> > delegate: (ZnSSOServerDelegate new
>> > dropboxData: (ZnOAuth1ConsumerData newForDropbox
>> >
>> consumer: 'my appdata';
>> >
>> consumerSecret: 'my appdata';
>> >
>> yourself);
>> > yourself).
>> >
>> > No I tried in my browser
>> > localhost:8100/sso-dropbox
>> >
>> > Then I got a walkback in my Image: No secure socket stream class set or
>> available
>>
>> Well, the error says it all: you need TLS/SSL support. As is noted in
>>
>>
>> https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md#installat…
>>
>> You can get Zodiac to work in 1.4
>>
>> http://zdc.stfx.eu
>>
>> Don't forget that you also need the plugin next to your VM !
>>
>> In Pharo 2.0 Zodiac is included by default the latest VM's there should
>> have the plugin.
>> But in 2.0 it will be slightly more difficult to load Seaside, but it
>> does work.
>>
>> Sorry, but all this is still a bit in motion, hopefully you will keep
>> trying.
>>
>> > ==>> I do not have the class ZdcSecureSocketStream in my Image
>> > self secureSocketStreamClass is Nil in
>> >
>> > streamClassForScheme: scheme
>> > (#(http ws) includes: scheme) ifTrue: [
>> > ^ self socketStreamClass ].
>> > (#(https wss) includes: scheme) ifTrue: [
>> > ^ self secureSocketStreamClass ifNil: [
>> > self error: 'No secure socket stream class set or
>> available' ] ].
>> > (ZnUnknownScheme scheme: scheme) signal
>> >
>> > Can you tell me what is missing to load?
>> >
>> > Greetings
>> > Sabine
>> >
>> >
>> > 30 January 2013 5:14:22.402 pm
>> >
>> > ZnNetworkingUtils(Object)>>error:
>> > Receiver: a ZnNetworkingUtils
>> > Arguments and temporary variables:
>> > aString: 'No secure socket stream class set or available'
>> > Receiver's instance variables:
>> > socketStreamClass: SocketStream
>> > secureSocketStreamClass: nil
>> >
>> > ZnNetworkingUtils>>streamClassForScheme:
>> > Receiver: a ZnNetworkingUtils
>> > Arguments and temporary variables:
>> > scheme: #https
>> > Receiver's instance variables:
>> > socketStreamClass: SocketStream
>> > secureSocketStreamClass: nil
>> >
>> > ZnNetworkingUtils>>socketStreamToUrlDirectly:
>> > Receiver: a ZnNetworkingUtils
>> > Arguments and temporary variables:
>> > url: https://api.dropbox.com/1/oauth/request_token
>> > stream: nil
>> > address: #[199 47 218 158]
>> > Receiver's instance variables:
>> > socketStreamClass: SocketStream
>> > secureSocketStreamClass: nil
>> >
>> > ZnNetworkingUtils>>socketStreamToUrl:
>> > Receiver: a ZnNetworkingUtils
>> > Arguments and temporary variables:
>> > url: https://api.dropbox.com/1/oauth/request_token
>> > Receiver's instance variables:
>> > socketStreamClass: SocketStream
>> > secureSocketStreamClass: nil
>> >
>> >
>> >
>> >
>> > On Wed, Jan 30, 2013 at 4:37 PM, Sven Van Caekenberghe <sven(a)stfx.eu>
>> wrote:
>> > Sabine,
>> >
>> > On 30 Jan 2013, at 16:24, Sabine Knöfel <sabine.knoefel(a)gmail.com>
>> wrote:
>> >
>> > > Hi Sven,
>> > >
>> > > after loading:
>> > >
>> > > Gofer it
>> > > url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> > > package: 'ConfigurationOfZincHTTPComponents';
>> > > load.
>> > >
>> > > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>> > >
>> > > The ZnOAuth1ConsumerData does not have a method called
>> >>newForDropbox (but >>newForGoogle and >>newForTwitter).
>> > > Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but
>> facebook, twittter and google)
>> > >
>> > > Did I miss something?
>> >
>> > Yes and no. The latest stable version of the configuration does not yet
>> include the Dropbox code.
>> > The following will load what is called bleedingEdge, the very latest
>> version of everything, regardless of its release status.
>> >
>> > ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
>> >
>> > Sorry about that.
>> >
>> > Sven
>> >
>> > > Greetings
>> > > Sabine
>> > >
>> > >
>> > > On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu>
>> wrote:
>> > >
>> > > On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>> > >
>> > > > If anyone is interested, I can write another email explaining how
>> you can run this demo for yourself on your own account.
>> > >
>> > > How to run the Dropbox code yourself:
>> > >
>> > > 1. Get yourself a free Dropbox account at http://www.dropbox.com
>> > >
>> > > 2. Install some client software on one or more of your computers
>> (Mac, Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android,
>> BlackBerry, Kindle Fire) and move some files around to get a feel for the
>> service.
>> > >
>> > > 3. When you give other applications access to (part of) your Dropbox
>> files, you can check that at https://www.dropbox.com/account#applications
>> > >
>> > > 4. Define your own app that will try to access Dropbox files. Go to
>> https://www.dropbox.com/developers (Developer home) and start defining a
>> new app by clicking the 'Create an app' button at
>> https://www.dropbox.com/developers/apps - start with the access type
>> 'App folder'.
>> > >
>> > > 5. The two important elements you need are the 'App key' and 'App
>> secret', make sure to copy them correctly.
>> > >
>> > > 6. Get the very latest code in your image (we develop in Pharo 2.0,
>> but 1.4 or even 1.3 should work - SSL has to be fully operational).
>> > >
>> > > Gofer it
>> > > url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> > > package: 'ConfigurationOfZincHTTPComponents';
>> > > load.
>> > >
>> > > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>> > >
>> > > 7. Start a Zn server with an appropriate delegate, configured for
>> your app
>> > >
>> > > (ZnServer startDefaultOn: 8100)
>> > > logToTranscript;
>> > > debugMode: true;
>> > > delegate: (ZnSSOServerDelegate new
>> > > dropboxData: (ZnOAuth1ConsumerData newForDropbox
>> > >
>> consumer: 'vqz-app-key-zoca';
>> > >
>> consumerSecret: '13u-app-secret-8l006';
>> > >
>> yourself);
>> > > yourself).
>> > >
>> > > (The above is a demo setup limited to Dropbox, the other demos are
>> not configured and won't work).
>> > >
>> > > 8. Go to http:://localhost:8100/sso-dropbox and click the link to log
>> in - you will be transferred to Dropbox to log in (if you aren't already)
>> and asked to authorise your demo app, after which Dropbox will redirect you
>> back to your app.
>> > >
>> > > 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:)
>> will access your account info and list the app root folder, which will then
>> be shown.
>> > >
>> > > 10. For the rest of the API, (currently not yet implemented), see
>> https://www.dropbox.com/developers/reference/api - you don't have to
>> worry about the whole authentication thanks to Zinc-SSO.
>> > >
>> > > We would love for others to try this (as well as the other Zinc-SSO
>> options, Google, Facebook, Twitter) out, in their own projects, and to
>> provide actual feedback and generally help improve the code and
>> documentation.
>> > >
>> > > As always, May the Source be with you!
>> > >
>> > > Sven
>> > >
>> > > PS: The demo app is not (yet) a production app: only you and up to 5
>> explicitly listed users can use it. You have to apply for production status
>> later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual
>> project, it would be best to extract the necessary parts out of it, reusing
>> the underlying Zinc-SSO-OAuth1-Core framework.
>> > >
>> > > --
>> > > Sven Van Caekenberghe
>> > > http://stfx.eu
>> > > Smalltalk is the Red Pill
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>
Jan. 30, 2013
Re: [Pharo-project] Strange slowness with PharoBoids
by MartinW
Stéphane Ducasse wrote
> Hi
>
> I took the image of athens mentioned by camillo a while ago and loaded
> PharoBoids.
> It was fast with 20. I played with the system
> I played with the athens playground and saved.
>
> Now I wanted to do a demo and it was getting slow. I killed a lot of
> process using the process browser but it was still
> a bit slow. Does anybody experience the same?
>
> I will try with the latest version of athens.
>
> Stef
Could you find the reason for this? Has it something to do with Boids
itself?
Generally (and strangely) for bigger numbers of Boids 60+ the animation is
much faster if you let the Morph step slower.
--
View this message in context: http://forum.world.st/Strange-slowness-with-PharoBoids-tp4665969p4666667.ht…
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Jan. 30, 2013
Re: [Pharo-project] Extent a Athens surface?
by MartinW
Igor Stasenko wrote
>>> I wanted to ask if it's possible to extent an Athens surface. If it
>>> can't be done, because as far as I understand this can't be done in
>>> Cairo, is it possible to simulate it at least? Is it possible to stop
>>> #drawDuring: and build another surface, maybe?
> how large?
> is
>
> AthensCairoSurface extent: 2000@2000
>
> not works?
I think it is about resizing an existing Morph that is drawn with Athens
Surface? I had problems with it and had the same question. But it works well
with something like:
SomeSubclassOfMorph>>extent: aPoint
|newExtent|
newExtent := aPoint rounded.
(bounds extent closeTo: newExtent) ifTrue: [^ self].
self changed.
bounds := (bounds topLeft extent: newExtent).
surface := AthensCairoSurface extent: newExtent.
self layoutChanged.
self changed.
Now Boids fly in a resizable sky :)
--
View this message in context: http://forum.world.st/Extent-a-Athens-surface-tp4665978p4666666.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Sabine Knöfel
Hi Sven,
there was only missing loading Zodiac, the dll (windows) was already
included in the 1 klick image.
Gofer it
squeaksource: 'Zodiac';
package: 'Zodiac-Core';
package: 'Zodiac-Tests';
load.
It works. I play around now.
Thank you very much!
Sabine
On Wed, Jan 30, 2013 at 5:38 PM, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>
> On 30 Jan 2013, at 17:21, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
>
> > Hi Sven, hi Jan,
> >
> > thank you.
> > I am one step further now but there must be something else missing to
> load.
> > I failed with my current image, so I tried the following:
> >
> > I took a fresh image - the Pharo 1.4. one click app from the pharo
> homepage
> > (
> http://gforge.inria.fr/frs/download.php/31258/Pharo-1.4-14557-OneClick.zip
> )
> >
> > Then I loaded seaside 3.0 (from the welcome screen -
> MetacelloConfigurationBrowser open).
> >
> > After that, I loaded
> >
> > Gofer it
> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > package: 'ConfigurationOfZincHTTPComponents';
> > load.
> >
> > And then the bleeding Edge version
> > ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
> >
> > Then this was possible:
> > (ZnServer startDefaultOn: 8100)
> > logToTranscript;
> > debugMode: true;
> > delegate: (ZnSSOServerDelegate new
> > dropboxData: (ZnOAuth1ConsumerData newForDropbox
> >
> consumer: 'my appdata';
> >
> consumerSecret: 'my appdata';
> >
> yourself);
> > yourself).
> >
> > No I tried in my browser
> > localhost:8100/sso-dropbox
> >
> > Then I got a walkback in my Image: No secure socket stream class set or
> available
>
> Well, the error says it all: you need TLS/SSL support. As is noted in
>
>
> https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md#installat…
>
> You can get Zodiac to work in 1.4
>
> http://zdc.stfx.eu
>
> Don't forget that you also need the plugin next to your VM !
>
> In Pharo 2.0 Zodiac is included by default the latest VM's there should
> have the plugin.
> But in 2.0 it will be slightly more difficult to load Seaside, but it does
> work.
>
> Sorry, but all this is still a bit in motion, hopefully you will keep
> trying.
>
> > ==>> I do not have the class ZdcSecureSocketStream in my Image
> > self secureSocketStreamClass is Nil in
> >
> > streamClassForScheme: scheme
> > (#(http ws) includes: scheme) ifTrue: [
> > ^ self socketStreamClass ].
> > (#(https wss) includes: scheme) ifTrue: [
> > ^ self secureSocketStreamClass ifNil: [
> > self error: 'No secure socket stream class set or available'
> ] ].
> > (ZnUnknownScheme scheme: scheme) signal
> >
> > Can you tell me what is missing to load?
> >
> > Greetings
> > Sabine
> >
> >
> > 30 January 2013 5:14:22.402 pm
> >
> > ZnNetworkingUtils(Object)>>error:
> > Receiver: a ZnNetworkingUtils
> > Arguments and temporary variables:
> > aString: 'No secure socket stream class set or available'
> > Receiver's instance variables:
> > socketStreamClass: SocketStream
> > secureSocketStreamClass: nil
> >
> > ZnNetworkingUtils>>streamClassForScheme:
> > Receiver: a ZnNetworkingUtils
> > Arguments and temporary variables:
> > scheme: #https
> > Receiver's instance variables:
> > socketStreamClass: SocketStream
> > secureSocketStreamClass: nil
> >
> > ZnNetworkingUtils>>socketStreamToUrlDirectly:
> > Receiver: a ZnNetworkingUtils
> > Arguments and temporary variables:
> > url: https://api.dropbox.com/1/oauth/request_token
> > stream: nil
> > address: #[199 47 218 158]
> > Receiver's instance variables:
> > socketStreamClass: SocketStream
> > secureSocketStreamClass: nil
> >
> > ZnNetworkingUtils>>socketStreamToUrl:
> > Receiver: a ZnNetworkingUtils
> > Arguments and temporary variables:
> > url: https://api.dropbox.com/1/oauth/request_token
> > Receiver's instance variables:
> > socketStreamClass: SocketStream
> > secureSocketStreamClass: nil
> >
> >
> >
> >
> > On Wed, Jan 30, 2013 at 4:37 PM, Sven Van Caekenberghe <sven(a)stfx.eu>
> wrote:
> > Sabine,
> >
> > On 30 Jan 2013, at 16:24, Sabine Knöfel <sabine.knoefel(a)gmail.com>
> wrote:
> >
> > > Hi Sven,
> > >
> > > after loading:
> > >
> > > Gofer it
> > > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > > package: 'ConfigurationOfZincHTTPComponents';
> > > load.
> > >
> > > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> > >
> > > The ZnOAuth1ConsumerData does not have a method called >>newForDropbox
> (but >>newForGoogle and >>newForTwitter).
> > > Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but
> facebook, twittter and google)
> > >
> > > Did I miss something?
> >
> > Yes and no. The latest stable version of the configuration does not yet
> include the Dropbox code.
> > The following will load what is called bleedingEdge, the very latest
> version of everything, regardless of its release status.
> >
> > ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
> >
> > Sorry about that.
> >
> > Sven
> >
> > > Greetings
> > > Sabine
> > >
> > >
> > > On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu>
> wrote:
> > >
> > > On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> > >
> > > > If anyone is interested, I can write another email explaining how
> you can run this demo for yourself on your own account.
> > >
> > > How to run the Dropbox code yourself:
> > >
> > > 1. Get yourself a free Dropbox account at http://www.dropbox.com
> > >
> > > 2. Install some client software on one or more of your computers (Mac,
> Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android, BlackBerry,
> Kindle Fire) and move some files around to get a feel for the service.
> > >
> > > 3. When you give other applications access to (part of) your Dropbox
> files, you can check that at https://www.dropbox.com/account#applications
> > >
> > > 4. Define your own app that will try to access Dropbox files. Go to
> https://www.dropbox.com/developers (Developer home) and start defining a
> new app by clicking the 'Create an app' button at
> https://www.dropbox.com/developers/apps - start with the access type 'App
> folder'.
> > >
> > > 5. The two important elements you need are the 'App key' and 'App
> secret', make sure to copy them correctly.
> > >
> > > 6. Get the very latest code in your image (we develop in Pharo 2.0,
> but 1.4 or even 1.3 should work - SSL has to be fully operational).
> > >
> > > Gofer it
> > > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > > package: 'ConfigurationOfZincHTTPComponents';
> > > load.
> > >
> > > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> > >
> > > 7. Start a Zn server with an appropriate delegate, configured for your
> app
> > >
> > > (ZnServer startDefaultOn: 8100)
> > > logToTranscript;
> > > debugMode: true;
> > > delegate: (ZnSSOServerDelegate new
> > > dropboxData: (ZnOAuth1ConsumerData newForDropbox
> > >
> consumer: 'vqz-app-key-zoca';
> > >
> consumerSecret: '13u-app-secret-8l006';
> > >
> yourself);
> > > yourself).
> > >
> > > (The above is a demo setup limited to Dropbox, the other demos are not
> configured and won't work).
> > >
> > > 8. Go to http:://localhost:8100/sso-dropbox and click the link to log
> in - you will be transferred to Dropbox to log in (if you aren't already)
> and asked to authorise your demo app, after which Dropbox will redirect you
> back to your app.
> > >
> > > 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:)
> will access your account info and list the app root folder, which will then
> be shown.
> > >
> > > 10. For the rest of the API, (currently not yet implemented), see
> https://www.dropbox.com/developers/reference/api - you don't have to
> worry about the whole authentication thanks to Zinc-SSO.
> > >
> > > We would love for others to try this (as well as the other Zinc-SSO
> options, Google, Facebook, Twitter) out, in their own projects, and to
> provide actual feedback and generally help improve the code and
> documentation.
> > >
> > > As always, May the Source be with you!
> > >
> > > Sven
> > >
> > > PS: The demo app is not (yet) a production app: only you and up to 5
> explicitly listed users can use it. You have to apply for production status
> later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual
> project, it would be best to extract the necessary parts out of it, reusing
> the underlying Zinc-SSO-OAuth1-Core framework.
> > >
> > > --
> > > Sven Van Caekenberghe
> > > http://stfx.eu
> > > Smalltalk is the Red Pill
> > >
> > >
> > >
> >
> >
> >
>
>
>
Jan. 30, 2013
Re: [Pharo-project] I hate 'as yet unclassified'
by Stephan Eggermont
Norbert wrote:
>To be honest I have problems understanding why method categorization is so important. Often I don't care a single bit about categories because I don't understand them. I often categorize just to >make lint happy :)
>What is the use? Declaring usage patterns? Declaring visibility? Use as method extensions marker? anything you like just classify? I can understand that it can help making the access of certain >methods of a class easier. But that is particular true for classes with a lot of methods. Most of the classes are rather small. In most of my own developments I would consider most huge classes a >design problem in my code. So I would try to fix that.
>And finally it is not easy to learn about them because the browser is not helping. If you browse through the methods of a class the category pane doesn't get updated. So even if I want to learn by >getting used to them it is hard.
>
>I would make the none categorized term weaker by naming it "uncategorizied" so at least I have the change to deliberately not categorizing my methods without being annoyed by someones >opinion about what is essential.
Ok, that's fair. It is no real problem when all methods are visible in the class browser. When ignoring classes with <=10 methods, the results are :
By package
Polymorph-Widgets 988
Polymorph-Widgets-Windows 516
Polymorph-Tools-Diff 258
Monticello-Repositories 176
NativeBoost-Core-Objects 52
FreeTypeTests-cache 52
Monticello-Versioning 52
AST-Core-Visitors 48
Graphics-Fonts 42
Balloon-Fills 40
Polymorph-Widgets-Themes 39
Morphic-MorphTreeWidget-Examples 36
Monticello-Storing 34
Morphic-Text Support 32
NOCompletion-Model 30
Collections-Streams 30
Monticello-Modeling 26
Morphic-MorphTreeWidget 26
MonticelloGUI 25
Text-Core 22
Morphic-Borders 22
Morphic-Explorer 20
NativeBoost-Tests 19
Tests-Traits 18
NativeBoost-Core-Types 16
Keymapping-Tests 15
Keymapping-Shortcuts 14
NativeBoost-Core 14
Files-Kernel 14
CollectionsTests-Strings 12
CompilerTests 12
CollectionsTests-Arrayed 12
CollectionsTests-Sequenceable 12
Morphic-Menus 10
Traits-Kernel 10
AsmJit-StackManagement 9
UnclassifiedMethods 9
Morphic-Pluggable Widgets 8
Morphic-Basic 8
KernelTests-Methods 6
Tools-Explorer 6
Monticello-Patching 6
SUnit-Core-Kernel 6
Spec-Widgets 6
KernelTests-Chronology 6
ScriptLoader20 5
NativeBoost-Win32 4
FreeType-FontManager 4
NativeBoost-Core-FFI 4
NativeBoost-Core-Heap 4
Tools-Base 2
Spec-Bindings 2
Morphic-Support 2
Tools-Inspector 2
KernelTests-Numbers 2
FileSystem-Core-Kernel 2
MenuRegistration-Core 2
Kernel-Classes 2
CollectionsTests-Unordered 2
FileSystem-Core-Public 2
Graphics-Display Objects 2
RPackage-Tests 2
Spec-Core 2
Morphic-Worlds 2
FuelTests 1
Refactoring-Tests-Critics 1
FileSystem-Disk 1
Ring-Tests-Kernel 1
UIManager 1
By author
gvc 1307
GaryChambers 195
186
AlainPlantec 123
CamilloBruni 89
stephaneducasse 78
SeanDeNigris 72
avi 69
IgorStasenko 61
tween 52
MarcusDenker 50
GuillermoPolito 41
StephaneDucasse 39
Igor.Stasenko 39
ab 38
BenjaminVanRyseghem 32
FernandoOlivero 29
alain.plantec 27
RAA 26
nice 25
tk 24
EstebanLorenzano 23
rr 20
di 18
JMM 16
yo 14
PavelKrivanek 12
marcus.denker 12
sd 12
dvf 10
SvenVanCaekenberghe 10
HenrikSperreJohansen 9
bf 9
nk 8
ar 8
StephanEggermont 8
MarianoMartinezPeck 7
jrd 6
GastonDallOglio 6
noha 6
stephane.ducasse 5
TestRunner 4
bkv 4
DamienCassou 4
lr 3
LukasRenggli 2
abc 2
ls 2
ASB 2
cipt 2
th 2
damienpollet 2
ul 2
NorbertHartl 2
cwp 2
dgd 2
GabrielOmarCotelli 2
al 2
mas 2
AlexandreBergel 2
SJCE 1
DeboraFortini 1
The code I wrote is quick and dirty. Didn't think about class side & traits.
Stephan
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Sven Van Caekenberghe
On 30 Jan 2013, at 17:21, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
> Hi Sven, hi Jan,
>
> thank you.
> I am one step further now but there must be something else missing to load.
> I failed with my current image, so I tried the following:
>
> I took a fresh image - the Pharo 1.4. one click app from the pharo homepage
> (http://gforge.inria.fr/frs/download.php/31258/Pharo-1.4-14557-OneClick.zip)
>
> Then I loaded seaside 3.0 (from the welcome screen - MetacelloConfigurationBrowser open).
>
> After that, I loaded
>
> Gofer it
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'ConfigurationOfZincHTTPComponents';
> load.
>
> And then the bleeding Edge version
> ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
>
> Then this was possible:
> (ZnServer startDefaultOn: 8100)
> logToTranscript;
> debugMode: true;
> delegate: (ZnSSOServerDelegate new
> dropboxData: (ZnOAuth1ConsumerData newForDropbox
> consumer: 'my appdata';
> consumerSecret: 'my appdata';
> yourself);
> yourself).
>
> No I tried in my browser
> localhost:8100/sso-dropbox
>
> Then I got a walkback in my Image: No secure socket stream class set or available
Well, the error says it all: you need TLS/SSL support. As is noted in
https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md#installat…
You can get Zodiac to work in 1.4
http://zdc.stfx.eu
Don't forget that you also need the plugin next to your VM !
In Pharo 2.0 Zodiac is included by default the latest VM's there should have the plugin.
But in 2.0 it will be slightly more difficult to load Seaside, but it does work.
Sorry, but all this is still a bit in motion, hopefully you will keep trying.
> ==>> I do not have the class ZdcSecureSocketStream in my Image
> self secureSocketStreamClass is Nil in
>
> streamClassForScheme: scheme
> (#(http ws) includes: scheme) ifTrue: [
> ^ self socketStreamClass ].
> (#(https wss) includes: scheme) ifTrue: [
> ^ self secureSocketStreamClass ifNil: [
> self error: 'No secure socket stream class set or available' ] ].
> (ZnUnknownScheme scheme: scheme) signal
>
> Can you tell me what is missing to load?
>
> Greetings
> Sabine
>
>
> 30 January 2013 5:14:22.402 pm
>
> ZnNetworkingUtils(Object)>>error:
> Receiver: a ZnNetworkingUtils
> Arguments and temporary variables:
> aString: 'No secure socket stream class set or available'
> Receiver's instance variables:
> socketStreamClass: SocketStream
> secureSocketStreamClass: nil
>
> ZnNetworkingUtils>>streamClassForScheme:
> Receiver: a ZnNetworkingUtils
> Arguments and temporary variables:
> scheme: #https
> Receiver's instance variables:
> socketStreamClass: SocketStream
> secureSocketStreamClass: nil
>
> ZnNetworkingUtils>>socketStreamToUrlDirectly:
> Receiver: a ZnNetworkingUtils
> Arguments and temporary variables:
> url: https://api.dropbox.com/1/oauth/request_token
> stream: nil
> address: #[199 47 218 158]
> Receiver's instance variables:
> socketStreamClass: SocketStream
> secureSocketStreamClass: nil
>
> ZnNetworkingUtils>>socketStreamToUrl:
> Receiver: a ZnNetworkingUtils
> Arguments and temporary variables:
> url: https://api.dropbox.com/1/oauth/request_token
> Receiver's instance variables:
> socketStreamClass: SocketStream
> secureSocketStreamClass: nil
>
>
>
>
> On Wed, Jan 30, 2013 at 4:37 PM, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> Sabine,
>
> On 30 Jan 2013, at 16:24, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
>
> > Hi Sven,
> >
> > after loading:
> >
> > Gofer it
> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > package: 'ConfigurationOfZincHTTPComponents';
> > load.
> >
> > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> >
> > The ZnOAuth1ConsumerData does not have a method called >>newForDropbox (but >>newForGoogle and >>newForTwitter).
> > Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but facebook, twittter and google)
> >
> > Did I miss something?
>
> Yes and no. The latest stable version of the configuration does not yet include the Dropbox code.
> The following will load what is called bleedingEdge, the very latest version of everything, regardless of its release status.
>
> ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
>
> Sorry about that.
>
> Sven
>
> > Greetings
> > Sabine
> >
> >
> > On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> >
> > On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> >
> > > If anyone is interested, I can write another email explaining how you can run this demo for yourself on your own account.
> >
> > How to run the Dropbox code yourself:
> >
> > 1. Get yourself a free Dropbox account at http://www.dropbox.com
> >
> > 2. Install some client software on one or more of your computers (Mac, Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android, BlackBerry, Kindle Fire) and move some files around to get a feel for the service.
> >
> > 3. When you give other applications access to (part of) your Dropbox files, you can check that at https://www.dropbox.com/account#applications
> >
> > 4. Define your own app that will try to access Dropbox files. Go to https://www.dropbox.com/developers (Developer home) and start defining a new app by clicking the 'Create an app' button at https://www.dropbox.com/developers/apps - start with the access type 'App folder'.
> >
> > 5. The two important elements you need are the 'App key' and 'App secret', make sure to copy them correctly.
> >
> > 6. Get the very latest code in your image (we develop in Pharo 2.0, but 1.4 or even 1.3 should work - SSL has to be fully operational).
> >
> > Gofer it
> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > package: 'ConfigurationOfZincHTTPComponents';
> > load.
> >
> > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> >
> > 7. Start a Zn server with an appropriate delegate, configured for your app
> >
> > (ZnServer startDefaultOn: 8100)
> > logToTranscript;
> > debugMode: true;
> > delegate: (ZnSSOServerDelegate new
> > dropboxData: (ZnOAuth1ConsumerData newForDropbox
> > consumer: 'vqz-app-key-zoca';
> > consumerSecret: '13u-app-secret-8l006';
> > yourself);
> > yourself).
> >
> > (The above is a demo setup limited to Dropbox, the other demos are not configured and won't work).
> >
> > 8. Go to http:://localhost:8100/sso-dropbox and click the link to log in - you will be transferred to Dropbox to log in (if you aren't already) and asked to authorise your demo app, after which Dropbox will redirect you back to your app.
> >
> > 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:) will access your account info and list the app root folder, which will then be shown.
> >
> > 10. For the rest of the API, (currently not yet implemented), see https://www.dropbox.com/developers/reference/api - you don't have to worry about the whole authentication thanks to Zinc-SSO.
> >
> > We would love for others to try this (as well as the other Zinc-SSO options, Google, Facebook, Twitter) out, in their own projects, and to provide actual feedback and generally help improve the code and documentation.
> >
> > As always, May the Source be with you!
> >
> > Sven
> >
> > PS: The demo app is not (yet) a production app: only you and up to 5 explicitly listed users can use it. You have to apply for production status later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual project, it would be best to extract the necessary parts out of it, reusing the underlying Zinc-SSO-OAuth1-Core framework.
> >
> > --
> > Sven Van Caekenberghe
> > http://stfx.eu
> > Smalltalk is the Red Pill
> >
> >
> >
>
>
>
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Sabine Knöfel
Hi Sven, hi Jan,
thank you.
I am one step further now but there must be something else missing to load.
I failed with my current image, so I tried the following:
I took a fresh image - the Pharo 1.4. one click app from the pharo homepage
(http://gforge.inria.fr/frs/download.php/31258/Pharo-1.4-14557-OneClick.zip)
Then I loaded seaside 3.0 (from the welcome screen -
MetacelloConfigurationBrowser open).
After that, I loaded
Gofer it
url: 'http://mc.stfx.eu/ZincHTTPComponents';
package: 'ConfigurationOfZincHTTPComponents';
load.
And then the bleeding Edge version
ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
Then this was possible:
(ZnServer startDefaultOn: 8100)
logToTranscript;
debugMode: true;
delegate: (ZnSSOServerDelegate new
dropboxData: (ZnOAuth1ConsumerData newForDropbox
consumer:
'my appdata';
consumerSecret: 'my appdata';
yourself);
yourself).
No I tried in my browser
localhost:8100/sso-dropbox
Then I got a walkback in my Image: No secure socket stream class set or
available
==>> I do not have the class ZdcSecureSocketStream in my Image
self secureSocketStreamClass is Nil in
streamClassForScheme: scheme
(#(http ws) includes: scheme) ifTrue: [
^ self socketStreamClass ].
(#(https wss) includes: scheme) ifTrue: [
^ self secureSocketStreamClass ifNil: [
self error: 'No secure socket stream class set or available' ]
].
(ZnUnknownScheme scheme: scheme) signal
Can you tell me what is missing to load?
Greetings
Sabine
30 January 2013 5:14:22.402 pm
ZnNetworkingUtils(Object)>>error:
Receiver: a ZnNetworkingUtils
Arguments and temporary variables:
aString: 'No secure socket stream class set or available'
Receiver's instance variables:
socketStreamClass: SocketStream
secureSocketStreamClass: nil
ZnNetworkingUtils>>streamClassForScheme:
Receiver: a ZnNetworkingUtils
Arguments and temporary variables:
scheme: #https
Receiver's instance variables:
socketStreamClass: SocketStream
secureSocketStreamClass: nil
ZnNetworkingUtils>>socketStreamToUrlDirectly:
Receiver: a ZnNetworkingUtils
Arguments and temporary variables:
url: https://api.dropbox.com/1/oauth/request_token
stream: nil
address: #[199 47 218 158]
Receiver's instance variables:
socketStreamClass: SocketStream
secureSocketStreamClass: nil
ZnNetworkingUtils>>socketStreamToUrl:
Receiver: a ZnNetworkingUtils
Arguments and temporary variables:
url: https://api.dropbox.com/1/oauth/request_token
Receiver's instance variables:
socketStreamClass: SocketStream
secureSocketStreamClass: nil
On Wed, Jan 30, 2013 at 4:37 PM, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> Sabine,
>
> On 30 Jan 2013, at 16:24, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
>
> > Hi Sven,
> >
> > after loading:
> >
> > Gofer it
> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > package: 'ConfigurationOfZincHTTPComponents';
> > load.
> >
> > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> >
> > The ZnOAuth1ConsumerData does not have a method called >>newForDropbox
> (but >>newForGoogle and >>newForTwitter).
> > Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but
> facebook, twittter and google)
> >
> > Did I miss something?
>
> Yes and no. The latest stable version of the configuration does not yet
> include the Dropbox code.
> The following will load what is called bleedingEdge, the very latest
> version of everything, regardless of its release status.
>
> ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
>
> Sorry about that.
>
> Sven
>
> > Greetings
> > Sabine
> >
> >
> > On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu>
> wrote:
> >
> > On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
> >
> > > If anyone is interested, I can write another email explaining how you
> can run this demo for yourself on your own account.
> >
> > How to run the Dropbox code yourself:
> >
> > 1. Get yourself a free Dropbox account at http://www.dropbox.com
> >
> > 2. Install some client software on one or more of your computers (Mac,
> Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android, BlackBerry,
> Kindle Fire) and move some files around to get a feel for the service.
> >
> > 3. When you give other applications access to (part of) your Dropbox
> files, you can check that at https://www.dropbox.com/account#applications
> >
> > 4. Define your own app that will try to access Dropbox files. Go to
> https://www.dropbox.com/developers (Developer home) and start defining a
> new app by clicking the 'Create an app' button at
> https://www.dropbox.com/developers/apps - start with the access type 'App
> folder'.
> >
> > 5. The two important elements you need are the 'App key' and 'App
> secret', make sure to copy them correctly.
> >
> > 6. Get the very latest code in your image (we develop in Pharo 2.0, but
> 1.4 or even 1.3 should work - SSL has to be fully operational).
> >
> > Gofer it
> > url: 'http://mc.stfx.eu/ZincHTTPComponents';
> > package: 'ConfigurationOfZincHTTPComponents';
> > load.
> >
> > ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
> >
> > 7. Start a Zn server with an appropriate delegate, configured for your
> app
> >
> > (ZnServer startDefaultOn: 8100)
> > logToTranscript;
> > debugMode: true;
> > delegate: (ZnSSOServerDelegate new
> > dropboxData: (ZnOAuth1ConsumerData newForDropbox
> >
> consumer: 'vqz-app-key-zoca';
> >
> consumerSecret: '13u-app-secret-8l006';
> >
> yourself);
> > yourself).
> >
> > (The above is a demo setup limited to Dropbox, the other demos are not
> configured and won't work).
> >
> > 8. Go to http:://localhost:8100/sso-dropbox and click the link to log in
> - you will be transferred to Dropbox to log in (if you aren't already) and
> asked to authorise your demo app, after which Dropbox will redirect you
> back to your app.
> >
> > 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:)
> will access your account info and list the app root folder, which will then
> be shown.
> >
> > 10. For the rest of the API, (currently not yet implemented), see
> https://www.dropbox.com/developers/reference/api - you don't have to
> worry about the whole authentication thanks to Zinc-SSO.
> >
> > We would love for others to try this (as well as the other Zinc-SSO
> options, Google, Facebook, Twitter) out, in their own projects, and to
> provide actual feedback and generally help improve the code and
> documentation.
> >
> > As always, May the Source be with you!
> >
> > Sven
> >
> > PS: The demo app is not (yet) a production app: only you and up to 5
> explicitly listed users can use it. You have to apply for production status
> later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual
> project, it would be best to extract the necessary parts out of it, reusing
> the underlying Zinc-SSO-OAuth1-Core framework.
> >
> > --
> > Sven Van Caekenberghe
> > http://stfx.eu
> > Smalltalk is the Red Pill
> >
> >
> >
>
>
>
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Sven Van Caekenberghe
Sabine,
On 30 Jan 2013, at 16:24, Sabine Knöfel <sabine.knoefel(a)gmail.com> wrote:
> Hi Sven,
>
> after loading:
>
> Gofer it
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'ConfigurationOfZincHTTPComponents';
> load.
>
> ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>
> The ZnOAuth1ConsumerData does not have a method called >>newForDropbox (but >>newForGoogle and >>newForTwitter).
> Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but facebook, twittter and google)
>
> Did I miss something?
Yes and no. The latest stable version of the configuration does not yet include the Dropbox code.
The following will load what is called bleedingEdge, the very latest version of everything, regardless of its release status.
ConfigurationOfZincHTTPComponents project bleedingEdge load: 'SSO'.
Sorry about that.
Sven
> Greetings
> Sabine
>
>
> On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>
> On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>
> > If anyone is interested, I can write another email explaining how you can run this demo for yourself on your own account.
>
> How to run the Dropbox code yourself:
>
> 1. Get yourself a free Dropbox account at http://www.dropbox.com
>
> 2. Install some client software on one or more of your computers (Mac, Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android, BlackBerry, Kindle Fire) and move some files around to get a feel for the service.
>
> 3. When you give other applications access to (part of) your Dropbox files, you can check that at https://www.dropbox.com/account#applications
>
> 4. Define your own app that will try to access Dropbox files. Go to https://www.dropbox.com/developers (Developer home) and start defining a new app by clicking the 'Create an app' button at https://www.dropbox.com/developers/apps - start with the access type 'App folder'.
>
> 5. The two important elements you need are the 'App key' and 'App secret', make sure to copy them correctly.
>
> 6. Get the very latest code in your image (we develop in Pharo 2.0, but 1.4 or even 1.3 should work - SSL has to be fully operational).
>
> Gofer it
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'ConfigurationOfZincHTTPComponents';
> load.
>
> ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>
> 7. Start a Zn server with an appropriate delegate, configured for your app
>
> (ZnServer startDefaultOn: 8100)
> logToTranscript;
> debugMode: true;
> delegate: (ZnSSOServerDelegate new
> dropboxData: (ZnOAuth1ConsumerData newForDropbox
> consumer: 'vqz-app-key-zoca';
> consumerSecret: '13u-app-secret-8l006';
> yourself);
> yourself).
>
> (The above is a demo setup limited to Dropbox, the other demos are not configured and won't work).
>
> 8. Go to http:://localhost:8100/sso-dropbox and click the link to log in - you will be transferred to Dropbox to log in (if you aren't already) and asked to authorise your demo app, after which Dropbox will redirect you back to your app.
>
> 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:) will access your account info and list the app root folder, which will then be shown.
>
> 10. For the rest of the API, (currently not yet implemented), see https://www.dropbox.com/developers/reference/api - you don't have to worry about the whole authentication thanks to Zinc-SSO.
>
> We would love for others to try this (as well as the other Zinc-SSO options, Google, Facebook, Twitter) out, in their own projects, and to provide actual feedback and generally help improve the code and documentation.
>
> As always, May the Source be with you!
>
> Sven
>
> PS: The demo app is not (yet) a production app: only you and up to 5 explicitly listed users can use it. You have to apply for production status later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual project, it would be best to extract the necessary parts out of it, reusing the underlying Zinc-SSO-OAuth1-Core framework.
>
> --
> Sven Van Caekenberghe
> http://stfx.eu
> Smalltalk is the Red Pill
>
>
>
Jan. 30, 2013
Re: [Pharo-project] [Update] Zinc-SSO now supports Dropbox !
by Jan van de Sandt
Hello Sabine,
The package versions that support Dropbox are not yet part of
ConfigurationOfZincHTTPComponent. If you load the latest versions of the
Zinc-SSO packages using the Monticello browser it should work.
Jan.
On Wed, Jan 30, 2013 at 4:24 PM, Sabine Knöfel <sabine.knoefel(a)gmail.com>wrote:
> Hi Sven,
>
> after loading:
>
>
> Gofer it
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'ConfigurationOfZincHTTPComponents';
> load.
>
> ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>
> The ZnOAuth1ConsumerData does not have a method called >>newForDropbox
> (but >>newForGoogle and >>newForTwitter).
> Also, ZnSSOServerDelegate does not have a method >>dropboxData: (but
> facebook, twittter and google)
>
> Did I miss something?
>
> Greetings
> Sabine
>
>
> On Sun, Jan 27, 2013 at 8:47 PM, Sven Van Caekenberghe <sven(a)stfx.eu>wrote:
>
>>
>> On 27 Jan 2013, at 13:32, Sven Van Caekenberghe <sven(a)stfx.eu> wrote:
>>
>> > If anyone is interested, I can write another email explaining how you
>> can run this demo for yourself on your own account.
>>
>> How to run the Dropbox code yourself:
>>
>> 1. Get yourself a free Dropbox account at http://www.dropbox.com
>>
>> 2. Install some client software on one or more of your computers (Mac,
>> Windows, Linux) or devices (iOS [iPhone, iPad, iPod], Android, BlackBerry,
>> Kindle Fire) and move some files around to get a feel for the service.
>>
>> 3. When you give other applications access to (part of) your Dropbox
>> files, you can check that at https://www.dropbox.com/account#applications
>>
>> 4. Define your own app that will try to access Dropbox files. Go to
>> https://www.dropbox.com/developers (Developer home) and start defining a
>> new app by clicking the 'Create an app' button at
>> https://www.dropbox.com/developers/apps - start with the access type
>> 'App folder'.
>>
>> 5. The two important elements you need are the 'App key' and 'App
>> secret', make sure to copy them correctly.
>>
>> 6. Get the very latest code in your image (we develop in Pharo 2.0, but
>> 1.4 or even 1.3 should work - SSL has to be fully operational).
>>
>> Gofer it
>> url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> package: 'ConfigurationOfZincHTTPComponents';
>> load.
>>
>> ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>>
>> 7. Start a Zn server with an appropriate delegate, configured for your app
>>
>> (ZnServer startDefaultOn: 8100)
>> logToTranscript;
>> debugMode: true;
>> delegate: (ZnSSOServerDelegate new
>> dropboxData: (ZnOAuth1ConsumerData newForDropbox
>> consumer:
>> 'vqz-app-key-zoca';
>>
>> consumerSecret: '13u-app-secret-8l006';
>> yourself);
>> yourself).
>>
>> (The above is a demo setup limited to Dropbox, the other demos are not
>> configured and won't work).
>>
>> 8. Go to http:://localhost:8100/sso-dropbox and click the link to log in
>> - you will be transferred to Dropbox to log in (if you aren't already) and
>> asked to authorise your demo app, after which Dropbox will redirect you
>> back to your app.
>>
>> 9. Once back in your app, sso-dropbox-callback (#ssoDropboxCallback:)
>> will access your account info and list the app root folder, which will then
>> be shown.
>>
>> 10. For the rest of the API, (currently not yet implemented), see
>> https://www.dropbox.com/developers/reference/api - you don't have to
>> worry about the whole authentication thanks to Zinc-SSO.
>>
>> We would love for others to try this (as well as the other Zinc-SSO
>> options, Google, Facebook, Twitter) out, in their own projects, and to
>> provide actual feedback and generally help improve the code and
>> documentation.
>>
>> As always, May the Source be with you!
>>
>> Sven
>>
>> PS: The demo app is not (yet) a production app: only you and up to 5
>> explicitly listed users can use it. You have to apply for production status
>> later on. Also, the whole ZnSSOServerDelegate code is a demo, for an actual
>> project, it would be best to extract the necessary parts out of it, reusing
>> the underlying Zinc-SSO-OAuth1-Core framework.
>>
>> --
>> Sven Van Caekenberghe
>> http://stfx.eu
>> Smalltalk is the Red Pill
>>
>>
>>
>
Jan. 30, 2013