Questions tagged [pharo]

Pharo is an open-source Smalltalk environment. It is a derivative of Squeak and is MIT licensed with some original Apple parts remaining under the Apache 2.0 license.

Pharo is a fork of Squeak, an implementation of the object-oriented, dynamically typed, reflective programming language Smalltalk.

Appearing in 2008, Pharo focuses on removing unessential code from Squeak and serves as the reference implementation of Seaside, a web application framework for developing web applications in Smalltalk. The name Pharo may be a reference to the famous Pharos lighthouse in ancient Alexandria.

Pharo 4.0 includes much improved tools to analyse and view objects and to construct browsers (Spotter, Playground, Glamour framework).

Squeak before version 4.0 shipped under the Squeak license, which was not an approved OSI open source licence, Pharo has a policy that enforces contributors to agree to publishing their code under the MIT License. Many packages that are integrated into the Squeak base distribution are optional in Pharo. Unlike Squeak, Pharo ships with TrueType fonts bundled already.

Useful links

913 questions
0
votes
2 answers

returning a value with help of semaphore

I have class named Myclass which has a 'Step' method and the other method as 'timer'. Below is the code for both methods. 'initialize' method starts Stepping. Aim is to calculate amount of time (in milliseconds) it took for stepping. Myclass>> step …
Irfan
  • 303
  • 1
  • 8
0
votes
1 answer

How do I control polymorph sizes using UITheme builder

I am trying to create a Dominion game in Smalltalk, and I can't get the layout of the GUI the way I want. Currently, I have this as code to build the GUI: open: game | builder content | builder := UITheme builder. content := builder newColumn: …
Blaise Pascal
  • 915
  • 1
  • 6
  • 14
0
votes
2 answers

How to get vertical labels with Roassal?

I could not find a way to get vertical labels in a Roassal visualization. Is there a way? Or a general way to rotate elements?
MartinW
  • 4,966
  • 2
  • 24
  • 60
0
votes
1 answer

Ask "Save or Discard edits" to user that has manipulated a Glamour Text or Smalltalk code presentation

If i show a Text presentation or a Smalltalk code presentation in a Glamour browser, can i make sure that the user does not inadvertently loose her/his edits by asking a "Save or Discard edits" dialog when the user leaves this presentation?
MartinW
  • 4,966
  • 2
  • 24
  • 60
0
votes
1 answer

Running GLORP tests

I am trying to get GLORP into the pharo 2.0 image. I managed to load GLORP , PostgresV2 driver and then changed the GlorpDatabaseLoginResource default login params. After that, i started running the tests starting with PostgresV2 tests…
Thushar G R
  • 1,017
  • 9
  • 24
0
votes
1 answer

Can't assign to method arguments?

I designed a UI for sending basic email which can be done through SMTPClient deliverMailFrom: sender to: recipients text: message usingServer: '' . I have a method that will take Email ,subject all headers from user. Here is my Method. …
Irfan
  • 303
  • 1
  • 8
0
votes
1 answer

#isolate method not present in Seaside in Pharo-1.4-14557-OneClick

I have used the finder and looked through WAComponent and sub- and super-classes, but it is definitely not there. I have done a software update. If it has been removed deliberately, how do I duplicate the logic?
Vince Refiti
  • 483
  • 1
  • 5
  • 9
0
votes
1 answer

Create a method for intersection points

http://paulbourke.net/geometry/2circle/ Solved this with help of few people on here, This code will get the point of intersection for two circles Here is my workspace code |b b1 r r1 r2 d | b1:= CircleAnimeMorph new. " CircleAnimeMorph…
Irfan
  • 303
  • 1
  • 8
0
votes
1 answer

Intersecting Point for Circle Morphs

I am trying to find intersecting Points for Circle with help of this link. The following note describes how to find the intersection point(s) between two circles on a plane, the following notation is used. The aim is to find the two points P3 =…
Irfan
  • 303
  • 1
  • 8
-1
votes
2 answers

Pharo dictionary

I have an issue and this is the result when i call one method in my code. t do:[:i | dict := Dictionary newFrom:{t->items}. ]. t is an OrderedCollection(#name #lastName #birthDate) and items too. items an…
-1
votes
1 answer

Split array at index in Pharo Smalltalk

I'm having trouble with this: Split: lista li := Array new: 30. aux := Array new: 30. j := 0. 1 to: (lista size / 30) ceiling do: [ :i | 1 to: 30 do: [ :k | aux at: k put: (lista at: k + j) ]. j := j + 30. li at: i put: aux ]. ^…
Diana
  • 140
  • 1
  • 13
-1
votes
1 answer

Windows UI in pharo

I'm pretty green when it comes to Pharo, so I ask you apologies in advance for what might be a dumb question. I would like to know if there is a way to configure Pharo with the look and feel of native desktop windows applications, or at least to…
Román García
  • 425
  • 1
  • 4
  • 16
-1
votes
1 answer

Pharo punctuation marks

Is there any way to capture all the places in a String, where there are punctuation marks like '.,:;!?' Basically, am looking for a regex that captures all the above.
Rekha
  • 105
  • 2
  • 4
1 2 3
60
61