Re: [Pharo-users] Repeateble URLs - REST?

2019-02-26 Thread S Krish
I would defer to Seaside experts on this, but I would say yes to Seaside
REST in general and Teapot REST otherwise if it meets your requirements . I
have not worked on them for a long time now.

On Mon, Feb 25, 2019 at 2:05 PM sergio ruiz  wrote:

> Gotcha..
>
> So, in Seaside, should how should I handle the routes? with Seaside REST?
>
> On February 25, 2019 at 2:56:49 PM, S Krish (
> krishnamachari.sudha...@gmail.com) wrote:
>
> https://restfulapi.net/resource-naming/
> <https://restfulapi.net/resource-naming/>
>
> https://docs.microsoft.com/en-us/azure/architecture/best-practices/api-design
>
> Given the conflicting advices on REST, you can try and adhere to one-two
> sources of advice.
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


Re: [Pharo-users] Repeateble URLs - REST?

2019-02-25 Thread S Krish
This is fine:
www.bagelconcertfinder.com/zipcodes/{zipCode}

Preferred is :
*https://..siteName.../boundedContext/resourceInPlural/{resourceId}*

So this can be as you state but without _ underscores and "concertBlogging"
is identified bounded context for a set of resources
https://siteName../*concertBlogging*/blogs/{blogId}

Plurals are recommended. Lots of Style conformance is recommended, stick to
REST and not use actions/ verbs in urls et als..
You can break many of the so called rules and still it will work fine for
you, but its up to you, to decide what you adhere to and what you define
for yourself

https://restfulapi.net/resource-naming/

https://docs.microsoft.com/en-us/azure/architecture/best-practices/api-design

Given the conflicting advices on REST, you can try and adhere to one-two
sources of advice.




On Mon, Feb 25, 2019 at 12:13 PM sergio ruiz  wrote:

> Hi, all..
>
> I am looking to have a repeatable url so users can save them and share
> them.. something like:
>
> www.bagelconcertfinder.com/zipcode/44805
>
> and in my next project, I’ll be doing something like a CMS where you would
> get:
>
> /blog_entries/this-is-the-path
>
> I am thinking of using REST to flesh out the paths..
>
> does this seem reasonable?
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


Re: [Pharo-users] How much abuse can Teapot take?

2016-06-09 Thread S Krish
Looked robust enough in my internal experiments..  I tweaked the Teapot
further for easy implementation too..

Used it in my prototype with Angular JS thin framework.. works good.

the limits seemed to be more dependent on the Pharo image limits nothing to
do with Teapot per se. Scale it with multiple images behind a load balancer
( Apache / ... )




On Tue, Jun 7, 2016 at 12:23 AM, sergio ruiz  wrote:

>
> I am currently planning a mobile (iOS) app that will rely on a REST server
> for handling offline tasks (sending emails, processing reports, etc).
>
> I would LOVE to use Pharo/Teapot for this, but I want to make sure that
> this configuration would be up to the task. I can’t really guess how much
> traffic it will be getting, so i supposed the question i am asking is: is
> there a number of requests per second limit that this configuration can
> handle?
>
> Thanks!
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>
>


Re: [Pharo-users] New project: AR.Drone communication API in Pharo

2016-04-09 Thread S Krish
Very interesting and well done.

*Observations:  from a 15 min review. beyond the basics .. which really is
well done. Hope I can play with it sometime when I get time.. *

Love the commandQueue and UDP handling and this block:

senderProcess := [[ | nextCommand |
"dequeue the next command, enumerate it and send it"
nextCommand := commandsQueue next .
arDrone commandAdapter send: nextCommand
] repeat ] fork.

I like the comments in #*sendMoveCommandLeftRightTilt*: lrTilt
*frontBackTilt*: fbTilt *verticalSpeed*: verticalSpeed *angularSpeed*:
angularSpeed


But the #initialize method is doing too much in one long method.. check
other methods too..


*Comments: *

 takeOff
"Every 1 second sends the take off command to the drone, until it's state
goes from Landed to Flying (ARDState flyMask from 0 to 1)"

   Either the naming can be keepFlying .. not sure if I want to
takeOff every second.


Advice avoiding overrides on Integer and Float given its not really needed
and you can do that in your own class in the package.

viz: #*from32BitArrayWithOnesAt*:





On Sat, Apr 9, 2016 at 8:24 AM, Carolina Hernández 
wrote:

> Hi, my name is Carolina Hernandez and I'm a Computer Engineering student
> at the University of Chile.
> As part of my final degree project, I'm creating a communication API for
> controlling the Parrot AR.Drone 2.0 from Pharo. I've just released an early
> version. The code is hosted in Smalltalkhub:
> http://smalltalkhub.com/#!/~CaroHernandez/ArDronePharo
>
> I also made a video of a test flight, where the AR.Drone is controlled
> using the API and keyboard:
> https://www.youtube.com/watch?v=d8rERiBoD0o
>
> I couldn't find any direct way to use a joystick in Pharo, if someone
> knows about one, I'd like to integrate it to my code.
>
> Development and tests have been done in Pharo 4.0 and ubuntu 12.04
> Comments are welcome!
>
> Caro
>


Re: [Pharo-users] AgileVisualization - call for reviewers

2015-12-24 Thread S Krish
The video is an excellent work of art not just the content it conveys of a
better world with Open Annotations..!..

On Thu, Dec 24, 2015 at 3:57 AM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

>
>
> On 23/12/15 17:00, Alexandre Bergel wrote:
>
> Thanks Offray!
>
>
> No problem.
>
> I am able to see your annotation. I did not know about hypothes.is. This
> is very nice!
>
>
> That's part of the tools you put under your "bat belt" when trying to make
> open/citizen/garage science & research ;-).
>
> Cheers,
>
> Offray
>


Re: [Pharo-users] Spreadsheet editor

2015-08-11 Thread S Krish
Should try an ActiveX / Open Office embedded in Pharo if the whole
capability of spreadsheets is required from Pharo.



On Tue, Aug 11, 2015 at 10:15 PM, Peter Uhnák i.uh...@gmail.com wrote:

 Hi,

 since there has been talk about Tabular/DOCX,
 is there any project aimed at actually editing tables/spreadsheets inside
 Pharo?

 There's Spreadsheet by Torsten, but that seems to be an abandoned
 proof-of-concept.

 Peter



[Pharo-users] Smalltalker required

2015-08-08 Thread S Krish

We are looking for smalltalk developers in US. Must have L1 or H1, or any
other valid work visa. Job location would be Atlanta.


JD:


1.) Visual age Smalltalk V5.0
2.) Strong debugging, File handling and UI designing using VAST5.0
3.) Strong database skillset using SQL
4.) Analyzing production support tickets
5.) Communication protocols like Web services, OLE, DDE, TCP-IP
Please send profiles to ravinder.pho...@zensar.in
ravinder.pho...@zensar.in


[Pharo-users] Bill Gross: The single biggest reason why startups succeed

2015-07-20 Thread S Krish
Check out this amazing TEDTalk:

Bill Gross: The single biggest reason why startups succeed
http://on.ted.com/h15YB


Re: [Pharo-users] Quuve in action

2015-05-15 Thread S Krish
Really nice..

On Sat, May 16, 2015 at 3:47 AM, Cameron Sanders via Pharo-users 
pharo-users@lists.pharo.org wrote:



 -- Forwarded message --
 From: Cameron Sanders camsand...@aol.com
 To: Any question about pharo is welcome pharo-users@lists.pharo.org
 Cc:
 Date: Fri, 15 May 2015 18:17:17 -0400
 Subject: Quuve in action
 We are just starting to get some videos made to demonstrate Quuve in
 action. Here is the first...

 https://www.youtube.com/watch?v=mA7O8bUtd0o. [views best in Chrome
 directly, not via gmail]

 We will be making more and will start posting them to our website.

 -Cam




Re: [Pharo-users] String operations

2015-04-09 Thread S Krish
Perfectly stated..!

btw, I really liked the python string API's when I worked with them.
simple, intuitive but effective in nearly all that I needed in it.



On Thu, Apr 9, 2015 at 12:59 PM, Sean P. DeNigris s...@clipperadams.com
wrote:

 Damien Pollet-2 wrote
  Indeed, there is much to say about the String API :)
  Thanks for mentioning this, I'm gathering missing behavior like this !

 It seems unanimous that we should add these. I agree that they are useful
 in
 some cases. However, strings are so general that IMHO there are infinite
 such operations that we could add. Already String methodDict size = 333,
 and one can't depend on method protocols to sort things out because they
 are
 hijacked for package extensions, so it's easy to be fooled by thinking let
 me check the converting protocol for that and (maybe) finding out later
 that you missed it because #asXyz is in *OtherPackage, which now forces you
 to manually scroll through 333 methods to make sure your desired message
 hasn't been implemented.

 So I'm not saying don't add them. I just want to have a conversation
 about:
 1. How often would these be needed? (We should have that conversation about
 most of String's methods)
 2. Do we have any plans for real protocols, with the concepts of privacy
 and
 package extension extracted into other objects where they belong?
 3. In the mean time, what is a reasonable cognitive limit for an API? For
 me
 333 is way beyond comprehension with the current tooling, crippled somewhat
 by #2.



 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/String-operations-tp4817803p4818540.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




Re: [Pharo-users] Pharo / J - Integration

2015-03-08 Thread S Krish
Really Cool

On Sun, Mar 8, 2015 at 5:43 PM, Herr Martin Saurer martin.sau...@bluewin.ch
 wrote:

 Hello All

 Pharo now has an integration into the J programming language.

 Please see: http://youtu.be/5JMMgZGRMHw

 for a Demo as well as for download and installation instructions.

 Have fun !!!

 Martin




Re: [Pharo-users] Linux and Windows 3.0 differences

2015-03-05 Thread S Krish
copypaste from Chrome to Pharo 4.0 workspace/Playground on Ubuntu did not
work either.

As also an issue if you do it from MS Office, MS Outlook .. et als.



I have mostly seen this to be a quote error.   That is the quote
surrounding any string is copied with an encoding that makes it some other
character that is not then executable in Pharo.

So while you copy paste, a) The Chrome content should be inside pre
/pre  tags to preserve the encoding. OR b) physically replace the
characters with a quote in keyboard.

I do not think it is anything to do with Pharo to fix.


On Wed, Mar 4, 2015 at 1:15 PM, Sebastian Heidbrink shei...@yahoo.de
wrote:

 Hi!



Re: [Pharo-users] GSoC mentor assistance for FOSSASIA smalltalk projects please

2015-03-05 Thread S Krish
Create a file editor and asset manager solution with smalltalk

I would be interested in assisting in this project. Harks me back to what I
attempted with VisualWorks and SimpleWeb Framework I created more than a
decade back with complete editor / projects IDE that had artifacts covering
all that is mentioned as also config for external interfaces like DB.

But tough challenge if we are to talk of creating a capable color editor
with intellisense across various artifacts, otherwise doable as a student
project.





On Fri, Mar 6, 2015 at 8:58 AM, Martin Bähr 
mba...@email.archlab.tuwien.ac.at wrote:

 hi,

 FOSSASIA has been accepted for Google Summer of Code, and i have a few
 smalltalk related projects in there, see
 http://labs.fossasia.org/ideas.html

 i'd like to ask if anyone is willing to help me mentor those projects.
 since i am new to smalltalk myself it would be good to have some backup by
 someone more experienced.

 mentoring a student as a team i am sure is a lot more fun, and should make
 it
 easier to get the student motivated to join the pharo community and
 contribute
 to pharo.

 greetings, martin.

 --
 eKita   -   the online platform for your entire academic
 life
 --
 chief engineer
  eKita.co
 pike programmer  pike.lysator.liu.secaudium.net
 societyserver.org
 secretary
 beijinglug.org
 mentor
 fossasia.org
 foresight developer  foresightlinux.org
 realss.com
 unix sysadmin
 Martin Bähr  working in china
 http://societyserver.org/mbaehr/




Re: [Pharo-users] Pharo and Docker

2015-02-20 Thread S Krish
Sweet stuff..

I was planning on the Seaside-Angular-REST Teapot+Java Spark modules on
Docker.. Will catch up on this..

On Fri, Feb 20, 2015 at 4:16 PM, p...@highoctane.be p...@highoctane.be
wrote:

 https://www.clever-cloud.com/blog/guests/2015/01/05/smalltalk-in-the-cloud/
 Le 20 févr. 2015 10:59, S Krish krishnamachari.sudha...@gmail.com a
 écrit :


 Not so much Pharo on Docker, but a complete stack on Docker based on
 Pharo:

 * Seaside or any web framework..
 * Multi module that can be fabric like be brought up for scaling

 * Moose
 ...

 On Fri, Feb 20, 2015 at 2:22 PM, Torsten Bergmann asta...@gmx.de wrote:

 Docker is on hype these days:
   https://www.docker.com/whatisdocker/

 Would it make sense to provide Pharo as preconfigured environment
 (Pharo/Seaside stack) or other environments like the PharoNOS
 project in the Docker registry?









Re: [Pharo-users] Pharo and Docker

2015-02-20 Thread S Krish
Not so much Pharo on Docker, but a complete stack on Docker based on Pharo:

* Seaside or any web framework..
* Multi module that can be fabric like be brought up for scaling

* Moose
...

On Fri, Feb 20, 2015 at 2:22 PM, Torsten Bergmann asta...@gmx.de wrote:

 Docker is on hype these days:
   https://www.docker.com/whatisdocker/

 Would it make sense to provide Pharo as preconfigured environment
 (Pharo/Seaside stack) or other environments like the PharoNOS
 project in the Docker registry?








Re: [Pharo-users] i feel dumb / Pharo3 OrderedCollection do:

2015-02-19 Thread S Krish
I presumed shallowCopy for literal arrays / OrderedCollection should have
been a true copy. Perhaps need to understand this..

shallowCopy
Answer a copy of the receiver which shares the receiver's instance
variables. It should never be overridden. I'm invoked from the copy
template method. Subclasses that need to specialize the copy should
specialize the postCopy hook method.
   ...
primitive: 148
class := self class.
class isVariable
ifTrue:
[...   newObject :=* class basicNew: index*. ]
ifFalse: [newObject := *class basicNew*].
..
whileTrue:
[newObject instVarAt: index put: (self instVarAt: index).
   ...
^ newObject

On Wed, Feb 18, 2015 at 10:52 PM, Marcus Denker marcus.den...@inria.fr
wrote:


 On 18 Feb 2015, at 18:13, Cameron Sanders via Pharo-users 
 pharo-users@lists.pharo.org wrote:


 *Date: *18 Feb 2015 18:12:33 CET
 *Subject: **i feel dumb / Pharo3  OrderedCollection  do:*
 *From: *Cameron Sanders camsand...@aol.com
 *To: *Any question about pharo is welcome pharo-users@lists.pharo.org


 I must be making some silly error here that i cannot see clearly. Why does
 the following leave anything in the list 'a'? Run it in a workspace. With
 or without the shallowCopy, i am left with a list with half of the elements
 in it. Always half.

 This version of Pharo3 (21.0) was downloaded last week. I am running on a
 Mac.

 Thanks in advance. ... Maybe I just need more coffee.
 -Cam

 | a  |
 a := {  #a. #b. #c. #d. } asOrderedCollection.
 a shallowCopy do: [ :item | (a includes: item) ifTrue: [ a remove: item ]].
 a size


 shallowCopy is not enough… OrderedCollection is made up of an internal
 array.

 #copy does the right thing, just copies the array:

 postCopy
 array := array copy

 and for Array, copy is a shallowCopy.

 Marcus






Re: [Pharo-users] REST approach?

2015-02-04 Thread S Krish
http://book.seaside.st/book/advanced/restful/getting-started

https://skrishnamachari.wordpress.com/wp-admin/post.php?post=252action=edit
have now a small update that allows asynch calls ( MQ like.. ) and hope to
fuse some part of this to Teapot to make it fully capable:
http://sparkjava.com/   .. if not more from Ruby Sinatra..



On Wed, Feb 4, 2015 at 6:06 PM, Mariano Martinez Peck marianop...@gmail.com
 wrote:



 On Wed, Feb 4, 2015 at 4:04 AM, olivier auverlot 
 olivier.auver...@gmail.com wrote:

 Zinc + Seaside REST is a very good solution that I use every days ;-)


 Hi Olivier,

 Is there some documentation, post or example about that?

 Thanks,



 Olivier

 2015-02-04 7:13 GMT+01:00 S Krish krishnamachari.sudha...@gmail.com:


 Seaside REST  / Teapot aka Sinatra from Ruby  hope to push this
 framework further

 On Wed, Feb 4, 2015 at 9:35 AM, Cameron Sanders via Pharo-users 
 pharo-users@lists.pharo.org wrote:



 -- Forwarded message --
 From: Cameron Sanders camsand...@aol.com
 To: Any question about pharo is welcome pharo-users@lists.pharo.org
 Cc:
 Date: Tue, 3 Feb 2015 23:05:21 -0500
 Subject: REST approach?

 Our app runs on Pharo and Gemstone and must continue to do so. We use
 Zinc and Seaside. We require credentialing.

 What tools do people recommend using for setting up a REST server?
 Straight Zinc? Any tips?

 Thanks in advance!
 Cam






 --
 Mariano
 http://marianopeck.wordpress.com



Re: [Pharo-users] REST approach?

2015-02-03 Thread S Krish
Seaside REST  / Teapot aka Sinatra from Ruby  hope to push this
framework further

On Wed, Feb 4, 2015 at 9:35 AM, Cameron Sanders via Pharo-users 
pharo-users@lists.pharo.org wrote:



 -- Forwarded message --
 From: Cameron Sanders camsand...@aol.com
 To: Any question about pharo is welcome pharo-users@lists.pharo.org
 Cc:
 Date: Tue, 3 Feb 2015 23:05:21 -0500
 Subject: REST approach?

 Our app runs on Pharo and Gemstone and must continue to do so. We use Zinc
 and Seaside. We require credentialing.

 What tools do people recommend using for setting up a REST server?
 Straight Zinc? Any tips?

 Thanks in advance!
 Cam




Re: [Pharo-users] Building agents in Pharo

2014-12-23 Thread S Krish
How about this:

http://www.wolframalpha.com/

Not really free form text but quite a bit keyword dependent. Closer to what
will make good sense on Pharo / every enterprise app also more contextual
based on what the app does.





On Tue, Dec 23, 2014 at 10:17 PM, Andy Burnett 
andy.burn...@knowinnovation.com wrote:

 Doru wrote
 
 Hi Andy,

 You can also just hook into GTSpotter. It already provides the
 infrastructure for handling parallel search and lets you focus only on
 specifying the search logic.

 Cheers,
 Doru

 

 Brilliant!  I am very impressed with GTSpotter. In fact, I am impressed
 with the whole GT suite.  I think I will build a first prototype with
 Glamour and GTSpotter.

 By the way, what really motivated me to do this experiment is the tools -
 from the 90's - that were presented in this Story of Siri video.  If you
 have the time, it is well worth watching.  Being able to build this sort of
 capability into an environment like Pharo would be amazing

 https://wit.ai/blog/2014/12/18/adam-keynote

 Cheers
 Andy



[Pharo-users] MVC/ MVP / DCI Patterns..

2014-11-29 Thread S Krish


In the context of spec / UI / enterprise solutions, I have been mulling over 
this for some time especially when I play with FXML.

To put it in context, I find FXML intriguing and nice. XML metadata that stays 
completely outside the code and makes it uber flexible to weave in UI to a 
enterprise solution post facto.

The thought trail I have is:

Typical Pattern:

Model links to  Controller that links to a:  Customer View ( singleton ? )
Controller links to:  Validators / Delegates.. et als..

Model links to in Memory Cache registry { that links to: Persistence Module.. I 
do not bother about this for now..}

In FXML I see nice convention over configuration approach:

* XML format.. understood by people/ more importantly editors at large..
* Controller is injectable
* all method calls onAction/ events are simple viz #handleSubmitButtonAction or 
the ilk.. that will thereby call the controller instance methods..
* fxml can also invoke simple ( or complex) javascript action viz: 
jsSubmitAction( event)  

Would Spec see that kind of approach.. feasible for extensibility

Food for thought more as rethink on fundamental patterns:

a) Should view have knowledge explicitly of its Controller.. Or
Controller while creating the view injects its instance..  only.. 

b) Should we push Controller to be a Presenter.. as the case tends to be. And 
then let Controller be the gateway to all other parts.. as listed above..

c) View actions  callbacks  validators are separated and dealt with a view 
controller , but the gateway to all other parts is handled by a real 
observer controller

... There has to be reliable:

* bidirectional update from view - model ( in cache )
* proper modular segregation of all parts of a standard enterprise app. to 
enable common and known functions of each part, flexible, scalable but 
importantly easily maintainable.. in future by developer other than the author..
* Scriptability is one of the desired capabilities with the shrink wrapped app 
to be extended 







Re: [Pharo-users] Pharo and ODBC

2014-11-20 Thread S Krish
Plausible Pharo 32 bit / 64 bit conflict..?

http://msdn.microsoft.com/en-us/library/ms712362%28v=vs.85%29.aspx

If you use the 64-bit odbcad32.exe to configure or remove a DSN that
connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb),
you will receive the following error message:

On Thu, Nov 20, 2014 at 1:35 PM, olivier auverlot 
olivier.auver...@gmail.com wrote:

 Hi,

 I try to use the ODBC framework presents in the configurations list and
 named ODBC (TorstenBergmann.5)

 I want connect Pharo to a Postgresql server and I installed the latest
 version of the ODBC driver. The datasource is configured as system
 datasource. The connection test is ok. My computer uses Windows 7 64 bits.

 In Pharo, I try to connect with the following code:

 connection := ODBCConnection dsn: 'mysource' user: 'myuser' password:
 'mypassword'.
 connection close.

 The connection fails and I get an error message: The data source (DSN)
 has a specified architecture incompatibility between the driver and the
 application.

 Someone have an idea about this problem ? Someone works with the ODBC
 solution ?

 Best regards
 Olivier



Re: [Pharo-users] Opentalk or remoting libraries

2014-11-12 Thread S Krish
How about lightweight XMLRPC ? Just for messages, not features around it.

On Wed, Nov 12, 2014 at 10:47 PM, Annick Fron l...@afceurope.com wrote:

 Hi,

 Are there some libraries in pharo to do remote calls like in Opentalk or
 Corba ?

 Annick



Re: [Pharo-users] Render PDF / Web Document in Pharo

2014-11-05 Thread S Krish
embedding a viewer like Java / COM component could be attempted with Native
Boost.. that is a framework creation effort. viz in Visualworks:

| acrobatInterface arguments |
  acrobatInterface := COMDispatchDriver createObject: 'AcroExch.AVDoc'.
  arguments := Array new: 10 withAll: 0.
  arguments
at: 1 put: 'fileName.pdf';
at: 2 put: self windowHandle;
at: 3 put: 1.
  acrobatInterface
invokeMethod: 'OpenInWindowEx'
withArguments: arguments.
  acrobatInterface inspect

used to work...if in Pharo we can get that capability.. it will be
great for Windows apps.. for lot more than just PDF views

It can cover MS Office / IE .. and tons more of capability..




On Wed, Nov 5, 2014 at 12:14 PM, Olivier Auverlot 
olivier.auver...@gmail.com wrote:

 No but with Pharo, I think that's not difficult to launch a PDF viewer at
 the end of PDF generation process.

 Le 4 nov. 2014 à 21:59, François Stephany a écrit :

 Does artefact support *displaying* PDF in Pharo?

 On Tue, Nov 4, 2014 at 11:53 AM, Olivier Auverlot 
 olivier.auver...@gmail.com wrote:

 Hi Sean,

 For rendering PDF documents, you could use Artefact (
 https://sites.google.com/site/artefactpdf/ )

 Best regards
 Olivier ;-)

 Le 4 nov. 2014 à 20:13, Sean P. DeNigris a écrit :

 Is it possible to display either in a Morphic world? As a start, even a
 non-interactive preview would be valuable...

 Thanks.



 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/Render-PDF-Web-Document-in-Pharo-tp4788409.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.







Re: [Pharo-users] How not to serve an AngularJs application from Pharo

2014-10-29 Thread S Krish
would it not be better to have the html / css and js code outside the
image ? so instead to load files instead of return strings ? 

*GET: '/index.html' - [ self openspaceHtml ];  *

can be modified to:

*GET: '/index.html' - [ self  fetch: 'html/openspace.html' ];  *

and the *fetch:* method can be coded to return the file statically
stored..   ( increase efficiency by using a cache with change detection on
say filesize / timestamp )



On Tue, Oct 28, 2014 at 1:51 AM, kilon alios kilon.al...@gmail.com wrote:

 would it not be better to have the html / css and js code outside the
 image ? so instead to load files instead of return strings ?

 this would make it easier to edit the code for html/css/js . GT js
 integration no idea how that works, does GT has for example syntax
 highlighting or other js specific features ?

 Even though I always have been a supporter of Amber the IDE has still a
 very long way to go. Dont know about Seaside, but I assume for Seaside js
 code will still be something foreign. I think in practice would be better
 to use the IDE tools offered by firefox and chrome, though its still
 possible to use both amber and these tools, amber does not produce readable
 js code. No clue about React and SqueakJS. I am very new to web dev so
 probably I miss a lot, but frankly I found the fragmentation so shocking
 and so many negative opinions about the whole workflow that I have been
 reluctant to invest as much time as I have invested in Pharo. But then the
 things I do are not so web orientated as other people. But still I am very
 interested into this.

 SqueakJS looks definitely  very interesting.

 On Mon, Oct 27, 2014 at 10:05 PM, Stephan Eggermont step...@stack.nl
 wrote:

 Kilon wrote
 Really nice I now see the teapot stuff, for example this
 
 GET: 'demo/common/style.css' - [ self styleCss ];
 
 is really flexible meaning you can interpret http addresses and map them
 to pharo methods. This a really cool idea indeed, I see now why people are
 excited about teapot. Excuse my ignorance about web development but
 html/css and js always scared me away :D

 I found it a very easy way to get some existing javascript app delivered
 fast from Pharo.
 It needs a lot of refactoring and cleaning up to become maintainable
 though. Separate classes
 for the angular components, and the canvas from Seaside to structure the
 html.

 A more difficult aspect is how to create the javascript. For (qc)magritte
 applications it
 looks like a builder should be able to generate form components and a
 json data binding.
 With GT it should even be possible to integrate javascript development
 directly in the
 pharo image.

 And it might be better to use React or Amber or SqueakJS

 Stephan





Re: [Pharo-users] Pratsch

2014-10-28 Thread S Krish
Unlike in C/ C++ world where packaging creates an exe, Smalltalk has no
packaged content for its program.

Similar to Smalltalk is Java that packages its code / compiled bytecode as
a jar . This jar can be executable but per se what it does is to start a
JVM with loading of all the necessary dependent jars and runs the code of
the Program/ Application jar.

Smalltalk is a little different that we package the code for an application
with all of its dependencies etc in the image file that contains the
compiled bytecode of the code written.

You just invoke the image with the pharo.exe vm engine viz:



From a coder/ programmer perspective, it is quite a shift to understand
that you do not have a standalone 5 line code that creates a Helloworld

You write inside the IDE, the required class and method with its statement.
The application packaging and delivery is a little more involved. So once
you cross a barrier of understanding how to write code inside the IDE and
see it running within the IDE with no visible Compile - Run cycle.



On Tue, Oct 28, 2014 at 6:06 PM, Hans Schueren werb...@hans-schueren.de
wrote:

 Thank you Thierry ,


 guess i am an user.


  I have heared there are Pharo programmers


 Can i download such a program to see how good they are ?


 I dont want to hear anything about coding and IDE and development.


 I am a user and want to start a example program.



 Do you have a LINK for me to download ?



 Hans


 This sounds strange.

 However , i have here a huge range of books about smalltalk 80.

 All the books describe the syntax and system.

 To write a better and better code and more functions.

 The only thing that is not describes is to display a running program
 inside image.

 The keywords and methods to display and save the own code inside the
 packages in the

 form of image out a manipulated smalltalk image to run as a user program.

 The first step is a really really simple program like mathematic
 calculation etc.

 But the procedure of end product must be clear.

 Only one good example perhaps with a transcript display can overcome
 theese difficulties.

 Its all unclear :

 show Transcript

 openInWorld

 class new class


 Theese commands are messages to a object.

 But the user does not input any program code.  This is automatic running.

 Anyway , if the Pharo.exe started the image in the program.
 How , and with what keyword is then the program started fullscreen - which
 World is invoked to display?

 This preparation point is unclear when i want to make my Allready written
 program ready to start.



 However , i make a break with smalltalk now.

 A few books are still ordered from USA.

 If this point is unclear i cannot learn further at this point.

 It makes no sense to write Packages and classes if i cannot invoke the
 running arrangements
 No matter if they are objects or others.

















Re: [Pharo-users] About Zinc http components

2014-10-07 Thread S Krish
Typical issue in the EJB world : Remote Beans / Local Beans , though on
inter process it was remote beans with its full stack RMI marshalling /
unmarshalling.

But can we not exploit shared memory and efficient Event mechanism to make
the two process coordinate, that should be lot more efficient than TCP - IP
/ but if that performance suffices it would be fine..




On Tue, Oct 7, 2014 at 4:40 AM, Alain Rastoul alf.mmm@gmail.com wrote:

 Hi,
 I played a bit with ZnServer and other zinc components and have
 a question I can't answer myself (googling a bit didn't help neither),
 and I'm seeking for advice: does it makes sense to use a
 ZnServer/ZnWebSocket
 as a mechanism to transfer data between two pharo processes - in my case
 8k ByteArray blocks ?
 Or is it a total non sense ? is it reliable ?
 First tests looks good : 18k blocks / second (145 Mb/s) on a laptop
  core i5 2.6Ghz.

 All comments and suggestions welcome

 Thanks in advance,

 Alain





Re: [Pharo-users] Booting into Pharo!

2014-09-19 Thread S Krish
try the TCL + Pharo stuff. It is simple and easy to hook up.

Tiny Core gets it down to around 20 MB for a bare bone linux + Pharo  can
be similar to Android if one goes down the path.

On Fri, Sep 19, 2014 at 9:48 PM, Mayuresh Kathe mayur...@kathe.in wrote:

 Hello,

 While I am still waiting for my copy of the PBE, I would like to
 initiate work on a project (along with friends).

 The idea is to build a minimalist Linux based system which would boot up
 straight into a full-screen Pharo environment.

 The system itself would be single user, consisting of not more than a
 Linux kernel, a few system utilities (busybox?), X (KDrive?) and Pharo
 (vm + image + ...).

 Would like to know if it's some how possible to control external
 programs from within Pharo, essentially shell scripts for network setup,
 etc.

 Thanks,

 ~Mayuresh





Re: [Pharo-users] Hello ...

2014-09-05 Thread S Krish
Welcome to the Smalltalk world..

You would have already seen:

http://pharo.org/documentation   in particular:   http://pharobyexample.org/


In Pharo Start with the Pharo Tutorials through ( Left Click on the World,
Help  Pharo Tutorials )

Watch the screencasts..  in the documentation page..

Probably relevant will be Web application development with Seaside
framework in Pharo Smalltalk:
http://book.seaside.st/book

Rest will fall into place once you sink yourself in, and ask questions
relevant to where you are wanting to head to..





On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in wrote:

 A hello to Pharo-Users list members.

 I am Mayuresh Kathe from Mumbai, India.

 I used to work with Squeak a while (14 years) back, but ever since I had
 to move over to non-OOP environments, and never did get to work with
 Smalltalk or alike systems ever since.

 To add to that, I haven't been programming for over 7 years due to being
 pushed into the management track.
 I have quit the management world, and along with it a regular job.

 Am now a consultant, mostly to Web startups which leaves me with a lot of
 spare time to tinker around with what I would really like to.

 After a lot of searching and experimenting, I finally landed in Pharo
 land, and things look good. :)

 Given the fact that I haven't written a single fully functional program in
 7 years, I feel like I've lost the ability to code, sort-a rusty.

 Would the list members be kind enough to suggest a book I could work
 through to warm myself up to OOP?
 I stumbled upon The Object Oriented Thought Process by Matt Weisfeld,
 looks good, but if there's anything better suited to Pharo, would be nice
 to know.

 Thanks,

 ~Mayuresh





Re: [Pharo-users] Hello ...

2014-09-05 Thread S Krish
Sure can...

Morphic is a different beast, very malleable, glitchy too for now, much
better with clean up in Pharo. But the future may see major shifts if Bloc
comes through.

Spec and my own effort on Pharo Morphic View..

   **  https://picasaweb.google.com/skrishnamachari/PharoTabletIDE

   **
http://skrishnamachari.wordpress.com/2014/09/01/reviving-pharo-morphic-view/
ease the creation a lot..  My effort was a proof I had of how utterly
malleable Pharo / Squeak actually is.. I could knock in a new IDE interface
with Tree structured code IDE, A simple but effective enterprise class UI
framework in around couple of months..

Yes going deeper and getting it technically perfect is much more effort..

But for sure, if you are not weighed down by a career and want to enjoy a
ride in the programming world.. nothing better than Pharo Smalltalk for now
to hitch too..  though I would enjoy Groovy, Javascript, Python or Ruby for
their own uniqueness but primarily as related in the dynamic programming
world.

-Enjoy..



On Fri, Sep 5, 2014 at 10:47 PM, Mayuresh Kathe mayur...@kathe.in wrote:

 Thanks for the welcome note. :)

 I am quite certain that I want to head in a direction away from Web
 application development using Pharo.

 I see in Pharo the promise that was left unhonoured by Squeak, one of
 having an elegant system instead of a quilt.

 The Pharo UI looks better than any of the ones in the Squeak world,
 though, I believe Pharo's LnF can be taken to a whole new level, and that's
 what I intend to work on once I've gained enough command over the
 environment and the programming language.

 Best,

 ~Mayuresh


 On 2014-09-05 22:39, S Krish wrote:

 Welcome to the Smalltalk world..

 You would have already seen:

 http://pharo.org/documentation [1]   in particular:
 http://pharobyexample.org/ [2]

 In Pharo Start with the Pharo Tutorials through ( Left Click on the
 World, Help  Pharo Tutorials )

 Watch the screencasts..  in the documentation page..

 Probably relevant will be Web application development with Seaside
 framework in Pharo Smalltalk:

 http://book.seaside.st/book [3]


 Rest will fall into place once you sink yourself in, and ask questions
 relevant to where you are wanting to head to..

 On Fri, Sep 5, 2014 at 10:29 PM, Mayuresh Kathe mayur...@kathe.in
 wrote:

  A hello to Pharo-Users list members.

 I am Mayuresh Kathe from Mumbai, India.

 I used to work with Squeak a while (14 years) back, but ever since
 I had to move over to non-OOP environments, and never did get to
 work with Smalltalk or alike systems ever since.

 To add to that, I haven't been programming for over 7 years due to
 being pushed into the management track.
 I have quit the management world, and along with it a regular job.

 Am now a consultant, mostly to Web startups which leaves me with a
 lot of spare time to tinker around with what I would really like to.

 After a lot of searching and experimenting, I finally landed in
 Pharo land, and things look good. :)

 Given the fact that I haven't written a single fully functional
 program in 7 years, I feel like I've lost the ability to code,
 sort-a rusty.

 Would the list members be kind enough to suggest a book I could
 work through to warm myself up to OOP?
 I stumbled upon The Object Oriented Thought Process by Matt
 Weisfeld, looks good, but if there's anything better suited to
 Pharo, would be nice to know.

 Thanks,

 ~Mayuresh






Re: [Pharo-users] GUI construction under Pharo

2014-09-01 Thread S Krish
For Java ; JavaFx seems more the future for desktop UI.. Swing and SWT gets
subsumed and interact well too.
Nice XML descriptor but gets fairly complex code punting for anything
moderately complex UI..

But charting and the UI capabilities are significantly nicer in JavaFx
overall..



On Mon, Sep 1, 2014 at 10:39 PM, p...@highoctane.be p...@highoctane.be
wrote:

 There has been attempts to do that and Spec (htttp://spec.st) provides a
 declarative model.

 The spec (check implementors of defaultSpec for a couple samples) is
 basically what a GUI builder would produce and use to deifne the UI.

 As far as I know, VisualWorks uses such a spec approach as well.
 http://www.cincomsmalltalk.com/main/documentation/VisualWorks/GUIDevGuide.pdf
 (search for windowSpec in the text)

 Frankly, for a moderately complex UI, you need to understand what's going
 on and I think a GUI builder isn't going to offer any benefit vs
 development time. The best thing I've seen is Matisse in Netbeans but it
 wasn't really useful for an app we wrote in Java/Swing with a lot of weird
 controls and interdependent fields. This is especially true when one has
 dynamic layouts to do. And that's why a webbrowser has a lot of advantages
 these days (Maybe not to write CAD software but it will come).

 HTH
 Phil



 On Mon, Sep 1, 2014 at 5:40 PM, Ichiseki is...@outlook.com wrote:

 Hi
 For what I've read and study Smalltalk was great a RAD, it was infact
 used a
 lot in financial services for that reason.
 Now I see that most commercial versions of Smalltalk have a GUI builder,
 but
 non of the open source.
 Wouldn't have a GUI building tool be a priority?
 Perhaps this is already done?
 best

 Ichirt)






 --
 View this message in context:
 http://forum.world.st/GUI-construction-under-Pharo-tp4775654.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.






Re: [Pharo-users] [ANN] Teapot 0.8 micro web framework

2014-08-28 Thread S Krish
The framework is nice.. and addictive to play with as stated before, well
documented, clean and easy.. !

Potentially a good tool to weave into any app. My quick play with the
framework, surprised me with its productive usage.. so here it goes..
Teapot: Pharo web REST framework, it ain’t micro
https://skrishnamachari.wordpress.com/2014/08/28/teapot-pharo-web-rest-framework-it-aint-micro/


On Mon, Aug 25, 2014 at 11:06 PM, Attila Magyar m.magy...@gmail.com wrote:

 Santiago Bragagnolo wrote
  I played a little bit with Teapot last week during ESUG and was
 wondering
  what is your flow when you are designing/experimenting an API with
  Teapot?
  Do you reset the instance everytime you modify/add a route?

 I'm not sure i understand it correctly. The routes are stored in a router
 in
 an OrderedCollection. If you say

 teapot
GET: '/foo/bar' - someAction

 A new Route will be created with the given url pattern, action, http method
 and default response transformer. The first 3 things cannot be modifed
 later, but the response transformer can. So if you say:

 teapot
GET: '/foo/bar' - someAction; output: #ston

 Then the ston transformer will be added to the current route, after the
 route was added to the router. Teapot stores a  reference to the current
 route to be able to do this. In the future there may be other messages (eg.
 filtering based on the content-type or other request properties). The
 reason
 for doing this is to avoid the combinatorial explosion of method numbers
 (there is no need to implement GET:output:, POST:output:, etc..).

 Is it an answer for your question or did you mean something else?



 --
 View this message in context:
 http://forum.world.st/ANN-Teapot-0-8-micro-web-framework-tp4774449p4774693.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




Re: [Pharo-users] Can Pharo meet all your computing needs?

2014-08-25 Thread S Krish
 The Dynabook SW architecture must be open so that owners can safely
install functionality ('apps')  that is available in a marketplace.  (The
i-pad with its hardware and its marketplace for apps is at the back of my
mind.)


Can the intent be expanded a bit more. Is this an intent to have a Pharo /
ST / Dynabook based marketplace or more extensive ?


On Mon, Aug 25, 2014 at 3:33 PM, Trygve Reenskaug tryg...@ifi.uio.no
wrote:

  I don't think the current Smalltalk architecture can meet all your
 computing needs because security isn't part of its core and because it is
 inconceivable that all the necessary programs can be developed within its
 boundaries.

 Like several people I met at ESUG, my goal is the Dynabook and the
 Dynabook shall, by definition, meet all your needs. A Dynabook must be safe
 so that its owner is protected from hackers and other evildoers.   The
 Dynabook SW architecture must be open so that owners can safely install
 functionality ('apps')  that is available in a marketplace.  (The i-pad
 with its hardware and its marketplace for apps is at the back of my mind.)

 I can only see one path from here to there. Start from e.g., Pharo and
 simplify it to create a Dynabook architecture with owner programming and
 with opening for safely adding functionality safely ad lib.  (I suppose
 this is an ST based OS?)

 Any takers?
 --Trygve



 On 23.08.2014 17:04, Wilfred Hughes wrote:

 Hi folks

 I've been playing with Pharo recently, and really enjoying writing some
 programs in the Pharo environment.

 As a result, I've been wondering if I can use Pharo the way I would use
 Emacs, as an environment for doing everything.

 For example, can I use Pharo to:

 * Send emails to this mailing list?
 * Use IRC?
 * Start Bash?
 * Read the Pharo documentation (e.g. Pharo By Example)?

 If these things do exist, how do I discover them? Is there a package
 manager I can use to find new tools I can use in Pharo?





Re: [Pharo-users] Can Pharo meet all your computing needs?

2014-08-24 Thread S Krish
Run Pharo on top of Tiny Core linux total of about 50+ MB and you would
have what you wish..

This can be more akin to Android on mobile if we all wish.. a complete
ecosystem with multi VM pharo running on top of a stripped down modular
linux.

Pharo will be the UI / kind of riding on top of a thin WM.


On Mon, Aug 25, 2014 at 2:04 AM, Ichiseki is...@outlook.com wrote:

 This a very interesting topic.
 Some time ago I was taking a look at a Tektronik flyer I found on the
 Internet and seems that in those days, the concept of Smalltalk was that it
 completely replaced the OS. Or perhaps is more accurate to say that
 Smalltalk was the OS and the Development Environment.
 I would love to see some kind of Pharo OS with applications inside Pharo.
 The OS could be done using the Linux Kernel and some GNU tools. Now I bet
 that for this project would be perfect to have a 64bit VM, isn't it?

 I'm too was looking to read pdfs, read and manage email, surf the web, etc.

 best

 Ichiro




 --
 View this message in context:
 http://forum.world.st/Can-Pharo-meet-all-your-computing-needs-tp4774250p4774465.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-07 Thread S Krish
See enclosed screen shot..


On Thu, Aug 7, 2014 at 11:59 AM, S Krish krishnamachari.sudha...@gmail.com
wrote:


 ok something your post does bring up intrinsically not ok with Pharo, but
 not threatening a bug, as in normal code practice:

a) We should never assign values into the arguments..

 On compiling ..

 As I see it, the Pharo compiler makes aText now a temp variable of the
 block ( actually the while loop is not relevant .. )
 The argument aNumb actually takes on the value of the first argument
 viz: of the passed aText..

 It would be nicer if the compiler refuses to accept assignment to an
 argument of the method..

 As for suggestion that you liked, I would suggest simply run through Pharo
 By Example first thoroughly... and then take up as much of test runs
 through existing applications to understand some of the concepts of how to
 code..







Re: [Pharo-users] SOAP in Pharo

2014-05-02 Thread S Krish
Are you looking for a SOAP client for RPC style calls or document format.

For the former adding a simple SOAP Envelope to the request and using
ZnClient should work fairly well.

But if you are looking for something like :
http://www.soapclient.com/soaptest.html  to be used against a declared
WSDL.. I doubt if any exists.

Look at the XMLRPC package and see if you can work from there.. if you need
to adapt something..


On Fri, May 2, 2014 at 3:29 PM, Thushar G R thushar...@gmail.com wrote:

 Hi,

 Do we have a SOAP client in pharo? I checked SoapOpera but seems its too
 old to work with latest pharo 2.0.

 Thanks,




Re: [Pharo-users] SOAP in Pharo

2014-05-02 Thread S Krish
XML-RPC

To use XML-RPC, load the following URL into your XML-RPC client:

http://magentohost/api/xmlrpc/

 The XML-RPC supports the version 1 of the Magento API. and the API it
supports is quite extensive..


Another Approach:

One can with some ingenuity mix a bit of groovy to deal with complex SOAP
and reduce it enough for the Pharo to deal with it in XML RPC if you have
to go that way.

SoapOpera I am sure will give you a bit of grief, unless you plan to fix
it.. while you use it.






On Fri, May 2, 2014 at 5:15 PM, Thushar G R thushar...@gmail.com wrote:

 Hi,
 XMLRPC may not be enough. I have tried some of the request using the
 XMLRPC and it works but i am not sure if its enough for managing all the
 requests. I am trying to connect to a magento site. and their recommended
 approach is unfortunately soap. SoapOpera updating is a possibility it
 seems, am i right? Also any paid paid solution is not practical for us at
 the momment.

 Also i hope the SoapOpera is latest at squeakSource and that it was last
 updated in 2010.

 thanks for the replies

 Thushar

 *G R Thushar*
 *Team Leader(Technology),*
 *Signos Software Solutions Pvt. Ltd.*
 *Ground Floor **A.R Plaza, TC 11/43 (2),*
 *P.M.G Junction,*
 *Thiruvananthapuram, 695004. Kerala, India.*

 *Web: www.signossolutions.com http://www.signossolutions.com*
 Email: thushar...@signossolutions.com, thushar...@gmail.com
 Phone: +91984652





 On Fri, May 2, 2014 at 5:03 PM, p...@highoctane.be p...@highoctane.bewrote:

 Pharo lacks a SOAP stack.

 This is something that also limits it in environments where a ton of APIs
 are in SOAP format. E.g. Banks, Insurance, Media, Government (including
 European Institutions).
 For SaaS apps, who cares.

 Java and .NET have full stacks and that's a significant factor for their
 use.
 VisualWorks support those: as in:

 http://www.cincomsmalltalk.com/main/products/visualworks/

- *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated
protocols.*

 FWIW, my approach is to have a Java endpoint that will pass stuff back
 and forth through RabbitMQ or whatever middleware.

 When you get into SOAP over JMS, with JMS being WebsphereMQ for example,
 well, things get complicated, especially when you factor in certificates.
 And sometimes you need compliance and certification.

 IBM has a product to help solve those things:
 http://www-03.ibm.com/software/products/en/datapower.
 I led a team that used it extensively for a couple of months. It works
 well. The price tag is quite hard to swallow for little systems and
 companies.

 featurelist

 The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps you
 secure and govern web traffic more effectively. It provides an advanced
 data threat reduction and security enforcement layer for web and
 on-premises applications, while giving you the flexibility to deploy new
 applications rapidly.

 The IBM WebSphere DataPower Service Gateway XG45 appliance helps you:

- Strengthen compliance using robust data protection, policy
enforcement and auditing capabilities
- Gain “front-line defense” for inbound and outbound traffic through
a web 2.0 gateway.
- Separate security concerns from application code with an optional
hardware security module (HSM) that is certified for FIPS 140-2 Level 3.
- Integrate applications for improved application and database
connectivity.

 /featurelist

 If you have something around, you can bridge SOAP to whatever, including
 REST. The new versions do support JSON etc as well.


 Phil



 On Fri, May 2, 2014 at 12:26 PM, S Krish 
 krishnamachari.sudha...@gmail.com wrote:

 Are you looking for a SOAP client for RPC style calls or document format.

 For the former adding a simple SOAP Envelope to the request and using
 ZnClient should work fairly well.

 But if you are looking for something like :
 http://www.soapclient.com/soaptest.html  to be used against a declared
 WSDL.. I doubt if any exists.

 Look at the XMLRPC package and see if you can work from there.. if you
 need to adapt something..


 On Fri, May 2, 2014 at 3:29 PM, Thushar G R thushar...@gmail.comwrote:

 Hi,

 Do we have a SOAP client in pharo? I checked SoapOpera but seems its
 too old to work with latest pharo 2.0.

 Thanks,







Re: [Pharo-users] SOAP in Pharo

2014-05-02 Thread S Krish
Or:

http://www.magentocommerce.com/api/rest/introduction.html

REST is a clean approach.. OAuth2 you can perhaps do with Zinc and SSL.. (
http://blog.doit.st/2011/02/15/cloudforksso-openid-and-oauth-support-for-smalltalk/)




On Fri, May 2, 2014 at 6:03 PM, S Krish
krishnamachari.sudha...@gmail.comwrote:

 XML-RPC

 To use XML-RPC, load the following URL into your XML-RPC client:

 http://magentohost/api/xmlrpc/

  The XML-RPC supports the version 1 of the Magento API. and the API it
 supports is quite extensive..


 Another Approach:

 One can with some ingenuity mix a bit of groovy to deal with complex SOAP
 and reduce it enough for the Pharo to deal with it in XML RPC if you have
 to go that way.

 SoapOpera I am sure will give you a bit of grief, unless you plan to fix
 it.. while you use it.






 On Fri, May 2, 2014 at 5:15 PM, Thushar G R thushar...@gmail.com wrote:

 Hi,
 XMLRPC may not be enough. I have tried some of the request using the
 XMLRPC and it works but i am not sure if its enough for managing all the
 requests. I am trying to connect to a magento site. and their recommended
 approach is unfortunately soap. SoapOpera updating is a possibility it
 seems, am i right? Also any paid paid solution is not practical for us at
 the momment.

 Also i hope the SoapOpera is latest at squeakSource and that it was last
 updated in 2010.

 thanks for the replies

 Thushar

 *G R Thushar*
 *Team Leader(Technology),*
 *Signos Software Solutions Pvt. Ltd.*
 *Ground Floor **A.R Plaza, TC 11/43 (2),*
 *P.M.G Junction,*
 *Thiruvananthapuram, 695004. Kerala, India.*

 *Web: www.signossolutions.com http://www.signossolutions.com*
 Email: thushar...@signossolutions.com, thushar...@gmail.com
 Phone: +91984652





 On Fri, May 2, 2014 at 5:03 PM, p...@highoctane.be p...@highoctane.bewrote:

 Pharo lacks a SOAP stack.

 This is something that also limits it in environments where a ton of
 APIs are in SOAP format. E.g. Banks, Insurance, Media, Government
 (including European Institutions).
 For SaaS apps, who cares.

 Java and .NET have full stacks and that's a significant factor for their
 use.
 VisualWorks support those: as in:

 http://www.cincomsmalltalk.com/main/products/visualworks/

- *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated
protocols.*

 FWIW, my approach is to have a Java endpoint that will pass stuff back
 and forth through RabbitMQ or whatever middleware.

 When you get into SOAP over JMS, with JMS being WebsphereMQ for example,
 well, things get complicated, especially when you factor in certificates.
 And sometimes you need compliance and certification.

 IBM has a product to help solve those things:
 http://www-03.ibm.com/software/products/en/datapower.
 I led a team that used it extensively for a couple of months. It works
 well. The price tag is quite hard to swallow for little systems and
 companies.

 featurelist

 The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps you
 secure and govern web traffic more effectively. It provides an advanced
 data threat reduction and security enforcement layer for web and
 on-premises applications, while giving you the flexibility to deploy new
 applications rapidly.

 The IBM WebSphere DataPower Service Gateway XG45 appliance helps you:

- Strengthen compliance using robust data protection, policy
enforcement and auditing capabilities
- Gain “front-line defense” for inbound and outbound traffic through
a web 2.0 gateway.
- Separate security concerns from application code with an optional
hardware security module (HSM) that is certified for FIPS 140-2 Level 3.
- Integrate applications for improved application and database
connectivity.

 /featurelist

 If you have something around, you can bridge SOAP to whatever, including
 REST. The new versions do support JSON etc as well.


 Phil



 On Fri, May 2, 2014 at 12:26 PM, S Krish 
 krishnamachari.sudha...@gmail.com wrote:

 Are you looking for a SOAP client for RPC style calls or document
 format.

 For the former adding a simple SOAP Envelope to the request and using
 ZnClient should work fairly well.

 But if you are looking for something like :
 http://www.soapclient.com/soaptest.html  to be used against a declared
 WSDL.. I doubt if any exists.

 Look at the XMLRPC package and see if you can work from there.. if you
 need to adapt something..


 On Fri, May 2, 2014 at 3:29 PM, Thushar G R thushar...@gmail.comwrote:

 Hi,

 Do we have a SOAP client in pharo? I checked SoapOpera but seems its
 too old to work with latest pharo 2.0.

 Thanks,








Re: [Pharo-users] Pharo as a platform for a large E-Commerce website

2013-08-19 Thread S Krish
Let me start with this note:

Asking a Pharo Group what fits best for a good commercial solution is like
asking an hungry person whether he would like to go for a feast..

Most certainly the answer should be a resounding yes from this group. You
should.

Now if you are asking if there are alternatives: They abound from all sorts
of frameworks for websites, shopping carts, ecommerce stuff extending even
to the Apache Ofbiz freeware to the paid, Oracle, MS wares.  What is a best
fit entirely depends on your inclination and willingness to plumb the
depths.  RubyOnRails, Grails .. umpteen others have frameworks, plugin
modules galore to work with. Pharo - Seaside offers a very different
proposition, ease of development, debugging and building incrementally.

If you use Oracle, MS , IBM or likes, blame them when things go wrong and
carry on. With Pharo you will have to pull up the sleeves, ask for help in
this forum that I am sure will be forthcoming to some extent free and  lots
more if you can pay.

Having said this: When I had my say on this 4 years back in one of the
major Conglomerate in India, I proposed Apache OfBiz, which after basic
prototyping the whole project was shelved due to lack of understanding in
the group, of directions to take, I believe there is nothing like having a
plan of action that mixes n matches  Pharo with Apache Ofbiz that you can
later throw away once you are fully built up in Pharo. For scalability and
future Gemstone is a good fit, but that may take quite a while. Pharo will
scale well if you can follow a clean architecture plan.

The added glory is you can be the author / owner of the Pharo - Ofbiz
bridge too.. ! Bit of XML RPC tricks should help and take help of Groovy on
the Ofbiz side, you will feel Java malleable enough like it ought to be.




On Sat, Aug 3, 2013 at 8:08 AM, sminni s...@planage.com wrote:

 Hi,

 One of my friends is moving forward on a very serious e-commerce portal
 (startup).
 Just as an example / illustration - something like say any of the typical
 largest online shopping stores

 Initial estimates are typically
   average   peak
 #no of records to search100,000   500,000
 #no of users online   1,000  5,000
 #no of transactions per hour 10,00050,000
 #no of actual commerce
gateway transaction per hour  1,000  5,000

 Possibly the above details are sketchy but the immediate questions for him
 to firm up investment plans are:
 - Will a Pharo based platform be appropriate
-- Technology ?
-- Robustness  support ?
 - what will be the team man year effort (ballpark estimate) for
 development,
 testing, administration upto initial go-live ?

 Could folks just throw any pointers to help in investment estimation and
 evaluation

 Are any references of similar projects available in Pharo at this time ?

 regards
 Sanjay



 -
 ---
 Regards, Sanjay
 --
 View this message in context:
 http://forum.world.st/Pharo-as-a-platform-for-a-large-E-Commerce-website-tp4701992.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




Re: [Pharo-users] [ANN] Voyage updated to 2.0 and blog post

2013-06-17 Thread S Krish
isVoyageRoot

. why not let any object class be allowed to default as a root, or use
simpler implicit method call to set any object class as root/ rather than
introduce a class method..


On Mon, Jun 17, 2013 at 3:46 PM, S Krish
krishnamachari.sudha...@gmail.comwrote:

 Really Nice..

 Guess a typo, unless I miss something here..

 anAssociation := #answer-42.
 anAssociation save.

 This will generate a collection named “point” in your database, with a
 document with the


 It generates collection named Association or the class name..


 On Mon, Jun 17, 2013 at 2:56 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 cool :)

 thanks Stef

 Esteban

 On Jun 15, 2013, at 7:56 PM, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:

 Here is a pierified version that is now available on the
 PharoForTheEntreprise git repository.

 Stef
 Voyage.pier.pdf

 On Jun 15, 2013, at 11:27 AM, Bernat Romagosa 
 tibabenfortlapala...@gmail.com wrote:

 Great!

 I'll read it first thing on Monday :)


 2013/6/15 Stéphane Ducasse stephane.duca...@inria.fr

 Thanks esteban I will convert the blog into a draft chapter so that
 olivier can help documenting it too.

 Stef

 On Jun 14, 2013, at 4:01 PM, Esteban Lorenzano esteba...@gmail.com
 wrote:

  Hi,
 
  I worked a bit on voyage today to update the configuration for 2.0 (it
 was working, but not with the latest versions).
  I also finished a small tutorial I was working on, in the form of a
 blog:
 
  http://smallworks.com.ar/web/blog/2013-06-14-voyage-the-adventure
 
  Cheers,
  Esteban





 --
 Bernat Romagosa.