Re: [Pharo-users] [Deploy] Deploying application - New Best Practices?

2017-06-02 Thread sergio_101
Where can i find a current RFBServer?

Right now, I don't want to blow away what's currently running as it is an
image with data.. will figure out persistence later..



--
View this message in context: 
http://forum.world.st/Deploy-Deploying-application-New-Best-Practices-tp4948399p4949080.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread sergio_101
 I have been a project coming up that I really onlyneed a restful  API on.

The front end will  be first built on a mobile device(iOS )then back on
possibly android, with a very stripped down web application.

i would like to use pharo/gemstones as the database.

is there a project out there that allows for such restful API development
in pharo land? This would be so fun!

thanks


Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread sergio_101
hey, sebastian.. this looks great! this looks like what i am after..

did you run into any problems or limitations using Amber as a front end? I
have not tried Amber yet, so this might be the right time to give it a
shot.. where did you find zinc-rest? a quick search turns up references to
it.. should i be able to just install it via my image?

andrew - i thought about using the seaside rest add on, but seaside seems
to be alot of overhead just to run a rest server..

mariano - i am thinking about using api token..



On Tue, Jun 23, 2015 at 3:13 PM Sebastian Heidbrink shei...@yahoo.de
wrote:

 Am 23.06.2015 um 11:40 schrieb sergio_101:

  I have been a project coming up that I really onlyneed a restful  API
 on.

  The front end will  be first built on a mobile device(iOS )then back on
 possibly android, with a very stripped down web application.

  i would like to use pharo/gemstones as the database.

  is there a project out there that allows for such restful API
 development in pharo land? This would be so fun!

  thanks


 I am not so sure what you mean exactly but this is my stack.

 I use pure Zinc-REST on the Gemstone side and the REST API is described in
 Swagger-Spec from within Gmestone.
 Clients are VBA, Amber and Pharo and they utilize the Swagger API spec to
 access the server.

 Works pretty well and is much more preformant than the intial Pharo
 MongoDB backend I initially used.

 Have a look into http://smalltalkhub.com/#!/~HeSe/Swagger-Spec
 There you can find most of the needed Swagger implementation some minor
 details like type constants are missing.

 Once your Gemstoneserver knows how to host his Swagger-Spec you can host
 it via https://github.com/swagger-api/swagger-ui
 This saves a lot of explaning time to client developers.


 Sebastian



[Pharo-users] When to use a stream for concatenating text..

2015-03-12 Thread sergio_101
it seems that in more cases than not, i find that developers use a stream
when concatenating some text strings.

I am wondering if this is a smalltalk thing, or is there a real speed
benefit when using streams in this way.

Thanks!


Re: [Pharo-users] Any framework to create a blog over seaside?

2015-03-10 Thread sergio_101
i have made several blogs using pier, and once you get the idea of what is
going on, it's a really great system..

On Tue, Mar 10, 2015 at 10:32 AM Stephan Eggermont step...@stack.nl wrote:

 On 10/03/15 13:54, Esteban Lorenzano wrote:
  there are also a couple of implementations
 
  http://smalltalkhub.com/#!/~mikefilonov/QDBlog
  http://smalltalkhub.com/#!/~mikefilonov/CSDBlog
 
  I don’t actually know any of them, but if you are looking for a blog
  without pier… I would probably start there.

 The configurations are somewhat broken. Only loadBleedingEdge kind of
 works after replacing ensureDirectory by ensureCreateDirectory (4.0/3.1)

 Stephan







Re: [Pharo-users] Searching package for comment content

2015-03-10 Thread sergio_101
thanks all! this is just what i was looking for..

On Mon, Mar 9, 2015 at 11:01 AM Esteban Lorenzano esteba...@gmail.com
wrote:

 I always do:

 self flag: #todo. “An explanation here”

 probably not the best… but works.

 Esteban

 On 09 Mar 2015, at 15:55, Andrei Chis chisvasileand...@gmail.com wrote:

 Or you can add

 todo: 'fix me'
 and then search for methods using the pragma todo:


 Andrei

 On Mon, Mar 9, 2015 at 3:51 PM, Marcus Denker marcus.den...@inria.fr
 wrote:


  On 09 Mar 2015, at 15:44, sergio_101 sergio@gmail.com wrote:
 
  Hi, all.
 
  Does anyone have any ideas on this?
 
  I would like to be able to do a quick text search in all classes and
 methods in a package for text.
 
  for instance, when i see an opportunity for a refactor, i put a comment
 something like:
 
  TODO: break this method apart here
 
  and move on..
 
  it would be great if i could quickly find all methods in my package
 that contain the text TODO in a comment somewhere.
 

 You can just add

 self flag: #TODO. “do this complex thing later…

 search for senders of TODO - list of everything.

 Or add the description as the argument to #flag:

 self flag ‘TODO: break this method apart here’.



 Marcus







Re: [Pharo-users] When to use a stream for concatenating text..

2015-03-10 Thread sergio_101
gotcha.. this makes sense.

On Tue, Mar 10, 2015 at 2:18 PM Esteban A. Maringolo emaring...@gmail.com
wrote:

 2015-03-10 15:09 GMT-03:00 sergio_101 sergio@gmail.com:
 
  it seems that in more cases than not, i find that developers use a stream
  when concatenating some text strings.
 
  I am wondering if this is a smalltalk thing, or is there a real speed
  benefit when using streams in this way.

 It is not a matter of speed only, but mostly memory.

 For large text concatenations Streams are more memory efficient
 because you don't create intermediate strings.

 E.g.
 'string1', 'string2', 'string3' ... , stringN will require the
 creation of N intermediate String instances.

 aStream
   nextPutAll: 'string1';
   nextPutAll: 'string2';
   nextPutAll: 'string3';
   nextPutAll: 'stringN'

 Will only add contents to the Stream collection.


 Esteban A. Maringolo




[Pharo-users] Searching package for comment content

2015-03-09 Thread sergio_101
Hi, all.

Does anyone have any ideas on this?

I would like to be able to do a quick text search in all classes and
methods in a package for text.

for instance, when i see an opportunity for a refactor, i put a comment
something like:

TODO: break this method apart here

and move on..

it would be great if i could quickly find all methods in my package that
contain the text TODO in a comment somewhere.

Thanks!


[Pharo-users] Weird issues while editing

2015-03-05 Thread sergio_101
Hey, all..

I have been having a weird problem for awhile. It has been happening on
both pharo 3 and pharo 4.

I can't pin down when it is happening, but here's what i am seeing:

at some random time, when i hit the backspace, the cursor moves to the
beginning of the method name.. and if i type anything, it overwrites the
method name and any other text..

if i try to backspace, the cursor goes all the way back to the beginning of
the method name.

the only way out is to save or cancel changes, and try editing again..

any ideas?

thanks!


[Pharo-users] Pharo 4 - current state?

2015-02-20 Thread sergio_101
Hey, all.

I had an hour last night to start playing with pharo 4.

in the hour that played with it, there are already features i miss when
going back to pharo 3 for getting work done.

my questions is, how close is pharo 4 to be useable in a day to day
environment?

can i use it as a part of my regular development?

what can i do to help move everything along?

thanks!


Re: [Pharo-users] Pharo 4 - current state?

2015-02-20 Thread sergio_101
okay, you've got me to switch.. anyway.. it's not that big deal to fire up
pharo 3 with the same codebase..

i think i saw GTSpotter on a screencast somewhere.. i will go look for it..

when you mention the other nice things, where can i find them? where should
i look?

my day time development team (ruby and objective-c) is working on a side
project during lunch presentations, and then on our own time. it will be a
commercial product, and we're doing it in seaside.. .hopefully this will
generate 6 new converts into the fold. it is kind of confusing for everyone
at first.. but during our meetings, things get cleared up and people are
getting a good handle on all of it...

to the point that during regular work, i am starting to hear i wish we
(ruby ecosystem) had (insert ST goodness) here..

On Fri Feb 20 2015 at 12:07:03 PM kilon alios kilon.al...@gmail.com wrote:

 I work with Pharo 4 and no longer use Pharo 3, its very stable I have not
 experienced any kind of problem with it except one with autocompletion when
 I was hacking Pharo themes for my Nirreas project.

 Definetly recommend it to you to switch just for GTSpotter alone and many
 other new nice things.

 There million ways to help, you can a) bug fix c) document d) make your
 own tools and share them with the rest of us e) introduce pharo to other
 people so we can grow as a community and the list goes on and on.

 I only spend a hour a day with Pharo but is my happiest hour :)

 On Fri, Feb 20, 2015 at 6:13 PM, sergio_101 sergio@gmail.com wrote:

 Hey, all.

 I had an hour last night to start playing with pharo 4.

 in the hour that played with it, there are already features i miss when
 going back to pharo 3 for getting work done.

 my questions is, how close is pharo 4 to be useable in a day to day
 environment?

 can i use it as a part of my regular development?

 what can i do to help move everything along?

 thanks!





Re: [Pharo-users] Issues with code formatting

2015-02-18 Thread sergio_101
found it! thanks!.. i dunno why i couldn't find it before...

thanks again!

On Tue Feb 17 2015 at 4:05:48 PM Nicolai Hess nicolaih...@web.de wrote:

 2015-02-17 21:53 GMT+01:00 sergio_101 sergio@gmail.com:

 i am using pharo 3.. i don't see many options under pretty printing..
 especially when dealing with cascading... hmmm...



 Settings browser - Refactoring Engine - Configurable Formatter




 On Tue Feb 17 2015 at 10:35:58 AM Peter Uhnák i.uh...@gmail.com wrote:

 Hi,

 what version are you using? I see it in the settings under Code Browsing
  Pretty Printing.

 Peter

 On Tue, Feb 17, 2015 at 3:17 PM, sergio_101 sergio@gmail.com
 wrote:

 my pretty print is acting much differently than it used to. it seems to
 be breaking every statement into a separate line. at some point, i remember
 being able to adjust this via some system settings, but i am not finding
 that anymore. is this called something different now, or am i just not
 understanding how it works?

 thanks!





[Pharo-users] Issues with code formatting

2015-02-17 Thread sergio_101
my pretty print is acting much differently than it used to. it seems to be
breaking every statement into a separate line. at some point, i remember
being able to adjust this via some system settings, but i am not finding
that anymore. is this called something different now, or am i just not
understanding how it works?

thanks!


Re: [Pharo-users] Issues with code formatting

2015-02-17 Thread sergio_101
i am using pharo 3.. i don't see many options under pretty printing..
especially when dealing with cascading... hmmm...

On Tue Feb 17 2015 at 10:35:58 AM Peter Uhnák i.uh...@gmail.com wrote:

 Hi,

 what version are you using? I see it in the settings under Code Browsing 
 Pretty Printing.

 Peter

 On Tue, Feb 17, 2015 at 3:17 PM, sergio_101 sergio@gmail.com wrote:

 my pretty print is acting much differently than it used to. it seems to
 be breaking every statement into a separate line. at some point, i remember
 being able to adjust this via some system settings, but i am not finding
 that anymore. is this called something different now, or am i just not
 understanding how it works?

 thanks!





Re: [Pharo-users] SPEC and Athens

2015-01-27 Thread sergio_101
just out of curiousity.. what is that a screenshot of? my pharo looks
nothing like that.. nice font!

On Tue Jan 27 2015 at 11:02:50 AM Mark Rizun mri...@gmail.com wrote:

 Hi,

 Not sure if it helps but for morphs you have next transformation to
 model:

 | morph |

 morph := CalendarMorph on: Date today.
 ^ morph asSpecAdapter


 Please read details here:
 http://spec.st/docs/insert-morph/

 Mark

 2015-01-27 16:57 GMT+01:00 Sebastian Heidbrink shei...@yahoo.de:

 Hi!

 Okay so I am currently trying Spec out and I need some advice.

 Which is the Model to use for a ASVGMorph (AthensSvgMorph)?

 Is there an example availabel somewhere?

 Thanks
 Sebastian





Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread sergio_101
Hey, all..

Thanks for the tips! i am going to try this out in a bit..

Is there any place where this info is available to those who are searching
for it?

I found the above at the documentation for seaside:

http://book.seaside.st/book/advanced/deployment/deployment-apache/run-vm

if you search around for this info, you will find that it all mirrors the
above..

is the online seaside book still being maintained? is there a place where
users can go to find up to date information?

if not, i would be willing to help spearhead such a mission, and to host
it, too..

let me know..

On Wed Jan 21 2015 at 6:29:02 AM olivier auverlot 
olivier.auver...@gmail.com wrote:

 Yes, don't forget no-quit

 My starting file for Seaside is:

 #!/bin/sh
 USER=www-data
 VM=/usr/bin/pharo
 VM_PARAMS=--mmap 256m -vm-sound-null -vm-display-null
 IMAGE=/opt/myApp/Pharo3.0.image

 exec \
 setuidgid $USER \
 $VM $VM_PARAMS $IMAGE \
 --no-quit

 Olivier ;-)

 2015-01-21 12:14 GMT+01:00 Esteban Lorenzano esteba...@gmail.com:


  On 21 Jan 2015, at 10:31, nacho 0800na...@gmail.com wrote:
 
  philippeback wrote
  why running pharo with a squeakvm?
 
  I do it, in my Raspberry Pi :p and its slo
 
 
  I am runnin headless with PharoVM here.
 
  Your vm params look like weird.
 
  I'll give you a copy of my CLI when I have access to my Pc.
 
  Phil
  Le 21 janv. 2015 03:59, sergio_101 lt;
 
  sergio.rrd@
 
  gt; a écrit :
 
  #!/bin/bash
 
  # settings
  USER=badgesoup
  VM=/usr/lib/squeak/4.10.2-2614/squeakvm
  VM_PARAMS=-mmap 256m -vm-sound-null -vm-display-null
  IMAGE=/home/badgesoup/badgesoup_image/Pharo3.0.image
 
  # start the vm
  exec \
 setuidgid $USER \
 $VM $VM_PARAMS $IMAGE
 
  On Tue Jan 20 2015 at 9:32:04 PM Esteban A. Maringolo 
 
 
  emaringolo@
 
  wrote:
 
  What is in the 'run' file?
 
  Esteban A. Maringolo
 
 
  2015-01-20 23:26 GMT-03:00 sergio_101 lt;
 
  sergio.rrd@
 
  gt;:
  i am ready to put my seaside app online, and am finding that all the
  information i am finding is outdated.

 where are you looking for such information?

 
  I am running the latest Pharo (as of last night), and ubuntu14.04.
 
  when i try to run using squeakvm, i get:
 
  $ sudo ./run
  'Your VM is too old for this image. Please download the latest VM.'
  'Pharo cannot locate the sources file named
  /usr/lib/squeak/4.10.2-2614/PharoV30.sources.
 
  Please check that the file is named properly and is in the
  same directory as this image.'
  A PharoCommandLineHandler is x.
 
  everywhere i look, the information seems several years old..
 
  ideas? thanks!

 you should not use it a squeak vm with pharo ;)
 why would you do that?

 Esteban

 
 
 
 
 
 
 
 
 
  -
  Nacho
  Smalltalker apprentice.
  Buenos Aires, Argentina.
  --
  View this message in context:
 http://forum.world.st/Running-Pharo-headless-tp4800750p4800768.html
  Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
 






Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread sergio_101
okay.. thanks your all your input! i have gotten this to work..

i tried pulling the files from the server, but was getting an issue with
'pharo' not found.. which was odd in that it was in the directory, and it
had execute permissions. it had several executable files in it, but i am
not sure what was wrong with it. i didn't stick around too long..

i then grabbed it from the PPA..

i installed pharo-vm-core, rather than the launcher..

this gave me pharo-vm-nox. .which i assumed meant that it was headless..

i fired this up, and everything works just fine.. the web interface works
correctly, as does the RFB interface..

looks like we're good to go..

i do think that this should be documented in full somewhere.

my offer still stands to write/update/host such info..

thanks!

On Wed Jan 21 2015 at 8:43:16 AM sergio_101 sergio@gmail.com wrote:

 Hey, all..

 Thanks for the tips! i am going to try this out in a bit..

 Is there any place where this info is available to those who are searching
 for it?

 I found the above at the documentation for seaside:

 http://book.seaside.st/book/advanced/deployment/deployment-apache/run-vm

 if you search around for this info, you will find that it all mirrors the
 above..

 is the online seaside book still being maintained? is there a place where
 users can go to find up to date information?

 if not, i would be willing to help spearhead such a mission, and to host
 it, too..

 let me know..

 On Wed Jan 21 2015 at 6:29:02 AM olivier auverlot 
 olivier.auver...@gmail.com wrote:

 Yes, don't forget no-quit

 My starting file for Seaside is:

 #!/bin/sh
 USER=www-data
 VM=/usr/bin/pharo
 VM_PARAMS=--mmap 256m -vm-sound-null -vm-display-null
 IMAGE=/opt/myApp/Pharo3.0.image

 exec \
 setuidgid $USER \
 $VM $VM_PARAMS $IMAGE \
 --no-quit

 Olivier ;-)

 2015-01-21 12:14 GMT+01:00 Esteban Lorenzano esteba...@gmail.com:


  On 21 Jan 2015, at 10:31, nacho 0800na...@gmail.com wrote:
 
  philippeback wrote
  why running pharo with a squeakvm?
 
  I do it, in my Raspberry Pi :p and its slo
 
 
  I am runnin headless with PharoVM here.
 
  Your vm params look like weird.
 
  I'll give you a copy of my CLI when I have access to my Pc.
 
  Phil
  Le 21 janv. 2015 03:59, sergio_101 lt;
 
  sergio.rrd@
 
  gt; a écrit :
 
  #!/bin/bash
 
  # settings
  USER=badgesoup
  VM=/usr/lib/squeak/4.10.2-2614/squeakvm
  VM_PARAMS=-mmap 256m -vm-sound-null -vm-display-null
  IMAGE=/home/badgesoup/badgesoup_image/Pharo3.0.image
 
  # start the vm
  exec \
 setuidgid $USER \
 $VM $VM_PARAMS $IMAGE
 
  On Tue Jan 20 2015 at 9:32:04 PM Esteban A. Maringolo 
 
 
  emaringolo@
 
  wrote:
 
  What is in the 'run' file?
 
  Esteban A. Maringolo
 
 
  2015-01-20 23:26 GMT-03:00 sergio_101 lt;
 
  sergio.rrd@
 
  gt;:
  i am ready to put my seaside app online, and am finding that all
 the
  information i am finding is outdated.

 where are you looking for such information?

 
  I am running the latest Pharo (as of last night), and ubuntu14.04.
 
  when i try to run using squeakvm, i get:
 
  $ sudo ./run
  'Your VM is too old for this image. Please download the latest VM.'
  'Pharo cannot locate the sources file named
  /usr/lib/squeak/4.10.2-2614/PharoV30.sources.
 
  Please check that the file is named properly and is in the
  same directory as this image.'
  A PharoCommandLineHandler is x.
 
  everywhere i look, the information seems several years old..
 
  ideas? thanks!

 you should not use it a squeak vm with pharo ;)
 why would you do that?

 Esteban

 
 
 
 
 
 
 
 
 
  -
  Nacho
  Smalltalker apprentice.
  Buenos Aires, Argentina.
  --
  View this message in context: http://forum.world.st/Running-
 Pharo-headless-tp4800750p4800768.html
  Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
 






Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread sergio_101
thanks! that is not very old at all, compared to the things i was finding..
although this takes a different approach, i need to sit down and absorb
this article.. good stuff here..



On Wed Jan 21 2015 at 10:23:48 AM Sven Van Caekenberghe s...@stfx.eu
wrote:

 There is also this document: http://zn.stfx.eu/zn/build-
 and-deploy-1st-webapp

 A bit old, but still.

  On 21 Jan 2015, at 16:19, sergio_101 sergio@gmail.com wrote:
 
  okay.. thanks your all your input! i have gotten this to work..
 
  i tried pulling the files from the server, but was getting an issue with
 'pharo' not found.. which was odd in that it was in the directory, and it
 had execute permissions. it had several executable files in it, but i am
 not sure what was wrong with it. i didn't stick around too long..
 
  i then grabbed it from the PPA..
 
  i installed pharo-vm-core, rather than the launcher..
 
  this gave me pharo-vm-nox. .which i assumed meant that it was headless..
 
  i fired this up, and everything works just fine.. the web interface
 works correctly, as does the RFB interface..
 
  looks like we're good to go..
 
  i do think that this should be documented in full somewhere.
 
  my offer still stands to write/update/host such info..
 
  thanks!
 
  On Wed Jan 21 2015 at 8:43:16 AM sergio_101 sergio@gmail.com
 wrote:
  Hey, all..
 
  Thanks for the tips! i am going to try this out in a bit..
 
  Is there any place where this info is available to those who are
 searching for it?
 
  I found the above at the documentation for seaside:
 
  http://book.seaside.st/book/advanced/deployment/deployment-apache/run-vm
 
  if you search around for this info, you will find that it all mirrors
 the above..
 
  is the online seaside book still being maintained? is there a place
 where users can go to find up to date information?
 
  if not, i would be willing to help spearhead such a mission, and to host
 it, too..
 
  let me know..
 
  On Wed Jan 21 2015 at 6:29:02 AM olivier auverlot 
 olivier.auver...@gmail.com wrote:
  Yes, don't forget no-quit
 
  My starting file for Seaside is:
 
  #!/bin/sh
  USER=www-data
  VM=/usr/bin/pharo
  VM_PARAMS=--mmap 256m -vm-sound-null -vm-display-null
  IMAGE=/opt/myApp/Pharo3.0.image
 
  exec \
  setuidgid $USER \
  $VM $VM_PARAMS $IMAGE \
  --no-quit
 
  Olivier ;-)
 
  2015-01-21 12:14 GMT+01:00 Esteban Lorenzano esteba...@gmail.com:
 
   On 21 Jan 2015, at 10:31, nacho 0800na...@gmail.com wrote:
  
   philippeback wrote
   why running pharo with a squeakvm?
  
   I do it, in my Raspberry Pi :p and its slo
  
  
   I am runnin headless with PharoVM here.
  
   Your vm params look like weird.
  
   I'll give you a copy of my CLI when I have access to my Pc.
  
   Phil
   Le 21 janv. 2015 03:59, sergio_101 lt;
  
   sergio.rrd@
  
   gt; a écrit :
  
   #!/bin/bash
  
   # settings
   USER=badgesoup
   VM=/usr/lib/squeak/4.10.2-2614/squeakvm
   VM_PARAMS=-mmap 256m -vm-sound-null -vm-display-null
   IMAGE=/home/badgesoup/badgesoup_image/Pharo3.0.image
  
   # start the vm
   exec \
  setuidgid $USER \
  $VM $VM_PARAMS $IMAGE
  
   On Tue Jan 20 2015 at 9:32:04 PM Esteban A. Maringolo 
  
  
   emaringolo@
  
   wrote:
  
   What is in the 'run' file?
  
   Esteban A. Maringolo
  
  
   2015-01-20 23:26 GMT-03:00 sergio_101 lt;
  
   sergio.rrd@
  
   gt;:
   i am ready to put my seaside app online, and am finding that all
 the
   information i am finding is outdated.
 
  where are you looking for such information?
 
  
   I am running the latest Pharo (as of last night), and ubuntu14.04.
  
   when i try to run using squeakvm, i get:
  
   $ sudo ./run
   'Your VM is too old for this image. Please download the latest VM.'
   'Pharo cannot locate the sources file named
   /usr/lib/squeak/4.10.2-2614/PharoV30.sources.
  
   Please check that the file is named properly and is in the
   same directory as this image.'
   A PharoCommandLineHandler is x.
  
   everywhere i look, the information seems several years old..
  
   ideas? thanks!
 
  you should not use it a squeak vm with pharo ;)
  why would you do that?
 
  Esteban
 
  
  
  
  
  
  
  
  
  
   -
   Nacho
   Smalltalker apprentice.
   Buenos Aires, Argentina.
   --
   View this message in context: http://forum.world.st/Running-
 Pharo-headless-tp4800750p4800768.html
   Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
  
 
 
 





[Pharo-users] Running Pharo headless

2015-01-20 Thread sergio_101
i am ready to put my seaside app online, and am finding that all the
information i am finding is outdated.

I am running the latest Pharo (as of last night), and ubuntu14.04.

when i try to run using squeakvm, i get:

$ sudo ./run
'Your VM is too old for this image. Please download the latest VM.'
'Pharo cannot locate the sources file named
/usr/lib/squeak/4.10.2-2614/PharoV30.sources.

Please check that the file is named properly and is in the
same directory as this image.'
A PharoCommandLineHandler is x.

everywhere i look, the information seems several years old..

ideas? thanks!


Re: [Pharo-users] Running Pharo headless

2015-01-20 Thread sergio_101
#!/bin/bash

# settings
USER=badgesoup
VM=/usr/lib/squeak/4.10.2-2614/squeakvm
VM_PARAMS=-mmap 256m -vm-sound-null -vm-display-null
IMAGE=/home/badgesoup/badgesoup_image/Pharo3.0.image

# start the vm
exec \
setuidgid $USER \
$VM $VM_PARAMS $IMAGE

On Tue Jan 20 2015 at 9:32:04 PM Esteban A. Maringolo emaring...@gmail.com
wrote:

 What is in the 'run' file?

 Esteban A. Maringolo


 2015-01-20 23:26 GMT-03:00 sergio_101 sergio@gmail.com:
  i am ready to put my seaside app online, and am finding that all the
  information i am finding is outdated.
 
  I am running the latest Pharo (as of last night), and ubuntu14.04.
 
  when i try to run using squeakvm, i get:
 
  $ sudo ./run
  'Your VM is too old for this image. Please download the latest VM.'
  'Pharo cannot locate the sources file named
  /usr/lib/squeak/4.10.2-2614/PharoV30.sources.
 
  Please check that the file is named properly and is in the
  same directory as this image.'
  A PharoCommandLineHandler is x.
 
  everywhere i look, the information seems several years old..
 
  ideas? thanks!
 
 




[Pharo-users] passing json from seaside to javascript

2015-01-16 Thread sergio_101
i am currently working on an app that uses a javascript library to render
the state of an object inside seaside. i am trying to figure out the best
way to transfer the state of object to javascript.

the state of the machine changes via form inputs and ajax.

i already have the code to convert the state of my object to json, so i am
thinking i can do this one of two ways..

via ajax, inject the json code into a variable in a function that is fired
off by ajax. i just am not sure how to inject this json string into the
page where it would look like the contents of a variable. any ideas?

or, i could make a component that just spits out the current state as a
json string. this way, when the value of a form element changes, that value
is sent over ajax to seaside, and seaside can answer back with the new
state as a json string. i am just not sure how to implement this, either.
any ideas?

let me know if there is a better approach to this, also.

thanks!


Re: [Pharo-users] passing json from seaside to javascript

2015-01-16 Thread sergio_101
hi, esteban..

the json object is a representation of the pharo object. i just need to get
that json object  (in its updated form) available to a javascript function..

the pseudo code for javascript would be something like:

control changed
update json object (pharo/seaside does this)
rerender section of screen using json

so, to answer both of your questions, yes..

thanks!


On Fri Jan 16 2015 at 10:41:27 AM Esteban A. Maringolo emaring...@gmail.com
wrote:

 Sergio,

 I don't fully understand what you need to do.

 1. Do you need to pass a JSON object to a globally accessible
 javascript function?
 2. Is the JSON object dynamically generated as a response to an AJAX call?

 Regards!






 Esteban A. Maringolo


 2015-01-16 12:11 GMT-03:00 sergio_101 sergio@gmail.com:
  i am currently working on an app that uses a javascript library to render
  the state of an object inside seaside. i am trying to figure out the best
  way to transfer the state of object to javascript.
 
  the state of the machine changes via form inputs and ajax.
 
  i already have the code to convert the state of my object to json, so i
 am
  thinking i can do this one of two ways..
 
  via ajax, inject the json code into a variable in a function that is
 fired
  off by ajax. i just am not sure how to inject this json string into the
 page
  where it would look like the contents of a variable. any ideas?
 
  or, i could make a component that just spits out the current state as a
 json
  string. this way, when the value of a form element changes, that value is
  sent over ajax to seaside, and seaside can answer back with the new
 state as
  a json string. i am just not sure how to implement this, either. any
 ideas?
 
  let me know if there is a better approach to this, also.
 
  thanks!




Re: [Pharo-users] passing json from seaside to javascript

2015-01-16 Thread sergio_101
oh! i was going to write the javascript function in an included javascript
file.. i didn't know you could define javascript functions on the seaside
side..

On Fri Jan 16 2015 at 11:59:15 AM Esteban A. Maringolo emaring...@gmail.com
wrote:

 I'm writing without testing it, but I think it might work:

 Option A.
 1. Create a named, global javascript function from Seaside that will
 be called as the callback for the control changed event.
 2. Within that global function perform an AJAX JSON call to seaside
 and pass its response to the javascript function (global?) that will
 re-render the section of the screen.

 This way you'll only have one function to handle the callback and one
 seaside callback to handle the JSON request.

 I'm doing something similar to what you need to handle events from a
 JQ plugin and it works fine without leakage one the client or the
 server.

 Regards,


 Esteban A. Maringolo


 2015-01-16 13:08 GMT-03:00 sergio_101 sergio@gmail.com:
  hi, esteban..
 
  the json object is a representation of the pharo object. i just need to
 get
  that json object  (in its updated form) available to a javascript
 function..
 
  the pseudo code for javascript would be something like:
 
  control changed
  update json object (pharo/seaside does this)
  rerender section of screen using json
 
  so, to answer both of your questions, yes..
 
  thanks!
 
 
  On Fri Jan 16 2015 at 10:41:27 AM Esteban A. Maringolo
  emaring...@gmail.com wrote:
 
  Sergio,
 
  I don't fully understand what you need to do.
 
  1. Do you need to pass a JSON object to a globally accessible
  javascript function?
  2. Is the JSON object dynamically generated as a response to an AJAX
 call?
 
  Regards!
 
 
 
 
 
 
  Esteban A. Maringolo
 
 
  2015-01-16 12:11 GMT-03:00 sergio_101 sergio@gmail.com:
   i am currently working on an app that uses a javascript library to
   render
   the state of an object inside seaside. i am trying to figure out the
   best
   way to transfer the state of object to javascript.
  
   the state of the machine changes via form inputs and ajax.
  
   i already have the code to convert the state of my object to json, so
 i
   am
   thinking i can do this one of two ways..
  
   via ajax, inject the json code into a variable in a function that is
   fired
   off by ajax. i just am not sure how to inject this json string into
 the
   page
   where it would look like the contents of a variable. any ideas?
  
   or, i could make a component that just spits out the current state as
 a
   json
   string. this way, when the value of a form element changes, that value
   is
   sent over ajax to seaside, and seaside can answer back with the new
   state as
   a json string. i am just not sure how to implement this, either. any
   ideas?
  
   let me know if there is a better approach to this, also.
  
   thanks!
 
 




[Pharo-users] Seaside and JQuery/JQueryUI

2015-01-16 Thread sergio_101
at one point, there was a section of seaside that demonstrated using jquery
and jqueryui with seaside.. along with code examples. that was SUPER
helpful.

I can't seem to find that anywhere. does anyone know if it's still part of
seaside?

thanks!


Re: [Pharo-users] Seaside and JQuery/JQueryUI

2015-01-16 Thread sergio_101
thanks! will try that..

On Fri Jan 16 2015 at 2:34:20 PM Paul DeBruicker pdebr...@gmail.com wrote:

 I think you need to run this:

 ConfigurationOfSeaside3 project stableVersion load: 'JQueryUI Examples'.

 in a workspace to load the code you're looking for.



 sergio_101 wrote
  at one point, there was a section of seaside that demonstrated using
  jquery
  and jqueryui with seaside.. along with code examples. that was SUPER
  helpful.
 
  I can't seem to find that anywhere. does anyone know if it's still part
 of
  seaside?
 
  thanks!





 --
 View this message in context: http://forum.world.st/Seaside-
 and-JQuery-JQueryUI-tp4800030p4800032.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




[Pharo-users] Making objects persistent

2015-01-14 Thread sergio_101
I am building a seaside application, and am in the process of building my
models and unit tests.

I have a few objects that build up my data by creating objects.

when i run the data creation methods, everything is fine. immediately
afterward, since these objects to belong to anything, they are cleaned up
by garbage collection.

is there a way to create these objects so that they persist? if this is
possible, how would you go about deleting such a tenacious object?

thanks!


[Pharo-users] SmalltalkHub.com - Flakey?

2015-01-13 Thread sergio_101
Is the smalltalk hub site really flakey lately, or is it just me?

i am having problems loading pages, loading projects, etc..

code seems to be uploading okay, though.


[Pharo-users] Casting a string as an instance variable.

2015-01-09 Thread sergio_101
I would like to do something like:

MyObject updateWIth: aDictionary.

then, inside the object, treat the keys as instance variables, and the
values as values.. and do something like:

(key1 asInstanceVariable(??)): value1.

this seems like it should be possible, but i am just not getting it.

any ideas?

thanks!


[Pharo-users] Initializing a class with a Dictionary

2014-05-22 Thread sergio_101
is it possible to initialize a class with a dictionary? my first thought
would be to create a method like:

intializeWithDictionary: aDictionary

then, loop through the elements and do something like:

instVarNamed: key put: value

but the book says:

Caveat: Although these methods are useful for building development tools,
using them to develop conventional applications is a bad idea: these
reflective methods break the encapsulation boundary of your objects and can
there- fore make your code much harder to understand and maintain.--

should i avoid this?



peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] Calling an arbitrary method

2014-05-22 Thread sergio_101
In many cases, an object might have a method (filter, selector, etc)
attached to it so that the object can run the correct method..

for instance, an object might have a filterMethod variable with a value
'filterByArtist'..

in ruby, i would do something like:

instance.send(filter_method)

how would i do that in pharo, and is this a bad idea?

thanks!


-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


Re: [Pharo-users] Initializing a class with a Dictionary

2014-05-22 Thread sergio_101
great! looking at STON next! thanks!


On Thu, May 22, 2014 at 2:26 PM, Clément Bera bera.clem...@gmail.comwrote:

 Hello,

 I think you should look at the STON framework. STON looks like JSON for
 smalltalk objects. Basically it does the same as your idea but instead of a
 dictionary it loads fields of an objects from a STON file which looks like
 a JSON file (a STON is kind of an extended Dictionary exported as a string,
 but it has support for more that instance variables).

 Now if you want to go your way, to me what you want to do looks fine.
 These methods can be used for development tools but also for frameworks and
 stuff like that. The thing to do it is to add this method in Object and add
 support so it can work on all objects in the system.

 Object#intializeWithDictionary: aDictionary
 self class isVariable ifTrue: [specific case ?]
 self class isBytes ifTrue: [specific case ?]
 self class isCompiledMethod ifTrue: [specific case ?]
 self class isSmallInteger ifTrue: [specific case]
 aDictionary keysAndValuesDo: [ :key :value |
 self instVarNamed: key put: value ifAbsent: [ self error: 'no ',
 key , ' found'].

 But as you can see there are many specific cases: CompiledMethod, bytes
 objects, word objects, immediate objects, variable-sized objects, weak
 objects and for Pharo 4 even others that you may need to handle in your
 code (Ephemerons, 2bytes and 4 bytes objects).

 If you don't get the specific cases (you may not know programming language
 internals), then imagine how you would make your code work to initialize an
 Array, a ByteArray or a CompiledMethod from a dictionary. Not easy, huh ?

 That's why I strongly recommend to use something like STON, because it is
 very easy to use, handle already all the specific cases, well documented
 (Sven always does fancy documentation) and it will be maintained in Pharo 4
 for recent changes (because Sven likes to use the bleeding edge version of
 Pharo).

 Regards,

 Clement


 2014-05-22 19:37 GMT+02:00 sergio_101 sergio@gmail.com:


 is it possible to initialize a class with a dictionary? my first thought
 would be to create a method like:

 intializeWithDictionary: aDictionary

 then, loop through the elements and do something like:

 instVarNamed: key put: value

 but the book says:

 Caveat: Although these methods are useful for building development tools,
 using them to develop conventional applications is a bad idea: these
 reflective methods break the encapsulation boundary of your objects and can
 there- fore make your code much harder to understand and maintain.--

 should i avoid this?


 
 peace,
 sergio
 photographer, journalist, visionary
 #BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

 http://www.Village-Buzz.com
 http://www.ThoseOptimizeGuys.com
 http://www.CodingForHire.com
 http://www.coffee-black.com
 http://www.painlessfrugality.com
 http://www.twitter.com/sergio_101
 http://www.facebook.com/sergio101





-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] Pharo 3 / osx / Keyboard shortcuts ?

2014-05-20 Thread sergio_101
i noticed last night that the keyboard shortcuts are a bit different in
pharo 3. for instance, to when i mouse over a method, to run the tests, i
see there are two keys listed, j, m.

i can't seem to figure out which modifiers are required to make this work.
i am also not sure how i would go about finding out which functions j and m
would perform. run 'this' test, run 'all' tests.

any ideas?

thanks!

-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] Using/editing external packages..

2014-02-11 Thread sergio_101
i am currenty develop an app in seaside, and am wondering about best
practices when using external packages.

in my case, i am using a copy of TF-Login that i updated to work in pharo 2.

The main class in that package is RegisteredUser. as is true in most cases,
i will be tweaking this object a great deal.

this package also contains a great deal of renderers that will be tweaked.

so, my question is:

how should i go about this?

should i take RegisteredUser and sublcass it? this might requried me to
change other code in the package? should i subclass the renders and
override their methods?

should i just go ahead and edit the TF-Login package directly?

my initial thought was to edit the package direclty, but i am not sure what
would happen if the package is externally updated.

thoughts? ideas?

-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] branching with monticello

2014-02-11 Thread sergio_101
 i am sort of foggy on how to effectively use branching with monticello.
currently, we use branches daily. we branch off the master, and give it
some name like update_user_functions..

 we develop away on that, and when it's time, we merge that back into
master, and push out to the server.

 having named branches makes it very easy for us track what's going on in
the development line.

 is this possible with monticello, or am i just missing an ideology?

 thanks!

-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


Re: [Pharo-users] Using/editing external packages..

2014-02-11 Thread sergio_101
i think you're right.. i just need to sit down and walk myself through it
with this codebase.. since i am the maintainer of the codebase in question
(although i did not write it), i really want to address this issue
correctly, and not cut any corners..

thanks!


On Tue, Feb 11, 2014 at 11:20 AM, Sean P. DeNigris s...@clipperadams.comwrote:

 sergio_101 wrote
  i am currenty develop an app in seaside, and am wondering about best
  practices when using external packages.

 I've found the easiest and most flexible approach is two-fold:
 - Refactor the underlying library with the hooks and abstractions you need
 - And then, subclass

 If you just override and monkey-patch, I feel you are more vulnerable to
 the
 library changing underneath you, as well is potentially making your code
 harder to understand. If you can make the library designed to use it the
 way
 you want, you will reduce duplication and the chance of someone else coming
 in and doing it in an incompatible way, as well as give the library
 maintainers an idea of what you're doing, so they may consider that in
 making non-backward-compatible changes.

 Of course, that's ideal and requires library maintainers open to accepting
 such changes, but in practice I've found this to be true (with Pharo,
 Magritte, BabyMock...)



 -
 Cheers,
 Sean
 --
 View this message in context:
 http://forum.world.st/Using-editing-external-packages-tp4742801p4742832.html
 Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


Re: [Pharo-users] Converting TF-Login to use Fuel (rather than ReferenceStream)

2014-01-08 Thread sergio_101
that ended up being the case.. i ended up using FileReference's fullName to
get the pathname, and appended that to the file name..

works fine now..

now, the 'finder' methods need to be updated, so that they return a
FLMaterializer root.

will take a look at that tonight..




On Tue, Jan 7, 2014 at 8:11 AM, sergio_101 sergio@gmail.com wrote:

 sorry.. the TF-Login is an authentication package located here:
 http://www.squeaksource.com/@jTrN1y3NPwL4Sngs/3CBaWLky

 for some reason, i am missing the path when it saves.. it might be
 something to do with the the step where it builds the full filename. let me
 go down that route ..

 thanks!



 On Tue, Jan 7, 2014 at 7:53 AM, Mariano Martinez Peck 
 marianop...@gmail.com wrote:




 On Tue, Jan 7, 2014 at 2:28 AM, sergio_101 sergio@gmail.com wrote:


 I am currently converting TF-Login to use Fuel, so i can use it in Pharo
 2.


 What is TF?


 One issue i am currently stuck on..

 How do i go about serializing an object to a file using a path? it seems
 like all the files are dumped into the resource directory. In order to run
 the plugin (and the test) i need to dump everything into a named directory.


 mmm I am not sure if I get the problem. FLSerializer provides class side
 methods like #serialize: anObject on: aStream   sothe aStream could be
 whatever you want. In addition, we also provide #serialize:toFileNamed:
  and the filename could be either without full path (then it is in same
 folder of image) or with full path. Example:

 FLSerializer new serialize: 'foo' toFileNamed: '/Users/mariano/test.fuel'



 Anyone have any ideas?

 Thanks!


 --
 
 peace,
 sergio
 photographer, journalist, visionary
 #BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

 http://www.ThoseOptimizeGuys.com
 http://www.CodingForHire.com
 http://www.coffee-black.com
 http://www.painlessfrugality.com
 http://www.twitter.com/sergio_101
 http://www.facebook.com/sergio101




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




 --
 
 peace,
 sergio
 photographer, journalist, visionary
 #BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

 http://www.ThoseOptimizeGuys.com
 http://www.CodingForHire.com
 http://www.coffee-black.com
 http://www.painlessfrugality.com
 http://www.twitter.com/sergio_101
 http://www.facebook.com/sergio101




-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


Re: [Pharo-users] Converting TF-Login to use Fuel (rather than ReferenceStream)

2014-01-07 Thread sergio_101
sorry.. the TF-Login is an authentication package located here:
http://www.squeaksource.com/@jTrN1y3NPwL4Sngs/3CBaWLky

for some reason, i am missing the path when it saves.. it might be
something to do with the the step where it builds the full filename. let me
go down that route ..

thanks!



On Tue, Jan 7, 2014 at 7:53 AM, Mariano Martinez Peck marianop...@gmail.com
 wrote:




 On Tue, Jan 7, 2014 at 2:28 AM, sergio_101 sergio@gmail.com wrote:


 I am currently converting TF-Login to use Fuel, so i can use it in Pharo
 2.


 What is TF?


 One issue i am currently stuck on..

 How do i go about serializing an object to a file using a path? it seems
 like all the files are dumped into the resource directory. In order to run
 the plugin (and the test) i need to dump everything into a named directory.


 mmm I am not sure if I get the problem. FLSerializer provides class side
 methods like #serialize: anObject on: aStream   sothe aStream could be
 whatever you want. In addition, we also provide #serialize:toFileNamed:
  and the filename could be either without full path (then it is in same
 folder of image) or with full path. Example:

 FLSerializer new serialize: 'foo' toFileNamed: '/Users/mariano/test.fuel'



 Anyone have any ideas?

 Thanks!


 --
 
 peace,
 sergio
 photographer, journalist, visionary
 #BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

 http://www.ThoseOptimizeGuys.com
 http://www.CodingForHire.com
 http://www.coffee-black.com
 http://www.painlessfrugality.com
 http://www.twitter.com/sergio_101
 http://www.facebook.com/sergio101




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




-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] Converting TF-Login to use Fuel (rather than ReferenceStream)

2014-01-06 Thread sergio_101
I am currently converting TF-Login to use Fuel, so i can use it in Pharo 2.

One issue i am currently stuck on..

How do i go about serializing an object to a file using a path? it seems
like all the files are dumped into the resource directory. In order to run
the plugin (and the test) i need to dump everything into a named directory.

Anyone have any ideas?

Thanks!


-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


[Pharo-users] code formatting... adjust the formatting?

2014-01-02 Thread sergio_101
i accidentally posted this to the seaside group, so now i am posting it
back here to pharo..

i am currently using the code formatting in the browser in pharo 2.0...

it seems to be a lot more aggressive than it has been in the past..

for instance, this:

html anchor url: '#'; with: 'random link'.

gets formatted to:

html anchor
   url: '#';
   with: 'random link'.

is there any way to:

1. keep the browser from splitting the call into multiple lines?
2. narrow down the amount of spaces that make up a tab?

thanks!

-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


Re: [Pharo-users] code formatting... adjust the formatting?

2014-01-02 Thread sergio_101
awesome! thanks!



On Thu, Jan 2, 2014 at 2:56 PM, Marcus Denker marcus.den...@inria.frwrote:


 On 02 Jan 2014, at 19:49, sergio_101 sergio@gmail.com wrote:

 i accidentally posted this to the seaside group, so now i am posting it
 back here to pharo..

 i am currently using the code formatting in the browser in pharo 2.0...

 it seems to be a lot more aggressive than it has been in the past..

 for instance, this:


 gets formatted to:

 html anchor
url: '#';
with: 'random link'.

 is there any way to:

 1. keep the browser from splitting the call into multiple lines?
 2. narrow down the amount of spaces that make up a tab?

 Hello!

 There are actually 3 implementation for a code formatter in Pharo2… this
 means
 it is a bit random which is used ;-)

 But Nautilus uses explicitly the selected formatter in the settings from
 RB.
 (In Pharo 1.4 it might have been the one of the old AST or the
 non-configurable one…)

 (And, yes, it’s a *dumb* idea to have 3 implementations of anything…
 therefore, in Pharo3,
 there is just one…)

 So: In the settings for “Refactoring Engine” there is a sub-category
 “Configurable Formatter”

 deselect

 New line after cascade
 and
 New line before first cascade

 — formats without the multiple lines.

 The tab size is not changeable… that would be a general editor setting
 which does not exist yet,
 as far as I know.

 Marcus




-- 

peace,
sergio
photographer, journalist, visionary
#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExa

http://www.ThoseOptimizeGuys.com
http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101