[Pharo-users] Tracker for Smalltalkhub project migration

2020-07-14 Thread Pierce Ng
Hi all,

I've created below project to keep track of Smalltalkhub project
migration. Please feel free to fork, update and send PR.

  https://github.com/PierceNg/sth-migration

Pierce



Re: [Pharo-users] [ANN] New GoFundMe Campaign

2020-07-14 Thread horrido
GemTalk Systems has just donated CAN$1,311. I greatly appreciate their
support.

I wonder if I can count on the other major Smalltalk vendors. Fingers
crossed.



horrido wrote
> https://www.gofundme.com/f/jrmpc-2?utm_source=customer_medium=copy_link_campaign=p_cf+share-flow-1
> 
> Please give generously!
> 
> Thanks.





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] Text-Editing UI

2020-07-14 Thread Alex Landraitis
Hello. I would like to modify the text-editing UI in Pharo to add some 
affordances I’m accustomed to from MacOS. Specifically, right now 
command(a.k.a. meta)-left/right-arrow moves one word left/right in Pharo, 
whereas on MacOS this is done with the option(a.k.a. alt)-key, and 
command-left/right-arrow moves to the start/end of the current visual line. 
Another MacOS convention I use a lot and would like in Pharo is triple-click to 
select a whole paragraph. And if I can implement that, I would also like to 
disable the corresponding Pharo convention (double click at the start or end of 
the paragraph).

Some smaller things that I’m also not used to: When moving the text cursor one 
word at a time, Pharo treats white space as words, whereas MacOS skips over 
white space. Conversely, when double-clicking to select a whole word, MacOS 
treats white space between words like a word, whereas Pharo selects the 
adjacent word.

So anyway, I’m wondering what I would have to modify to customize these UI 
conventions. I didn’t see anything relevant in the settings browser. (There was 
a "Skip over white space” option under "Text Editing," but it didn’t affect how 
the move-cursor-one-word-at-a-time keystrokes work, so I don’t know what it 
does.) Does anyone have any pointers on where these behaviors are encoded in 
the system? Or if someone has already posted a package for customizing this 
sort of thing?

 Alex Landraitis


[Pharo-users] Iceberg: Installing a baseline from a self hosted Git/Gitea repository branch

2020-07-14 Thread Offray Vladimir Luna Cárdenas
HI.

I'm migrating my packages from StHub to a self hosted Gitea instance. I
have already a test |BaselineOf| hosted there and referring to other
self hosted repositories. I'm following the [Baselines
documentation](https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Baselines.md)
for all this. But when I try to load the baseline from the
|beta/migration| branch running the code below, I get the message |Could
not resolve: BaselineOfGrafoscopio in
https://code.tupale.co/Offray/Grafoscopio/src/branch/beta/migration/|.
How can I load Baselines hosted in a branch inside a self hosted
Git/Gitea repository?

|Metacello new baseline: 'Grafoscopio'; repository:
'https://code.tupale.co/Offray/Grafoscopio/src/branch/beta/migration/';
load |

|Thanks,|

||

|Offray|

||



Re: [Pharo-users] mentor help continued

2020-07-14 Thread Richard Sargent
Perhaps you should start by looking to see whether there is or are classes
already in the image that do what you want.

Look for classes by name (with wildcards) or for methods. For example, are
there any classes which implement #hours, #minutes, or #seconds (possibly
in the singular form).

On Tue, Jul 14, 2020, 07:44 Roelof Wobben via Pharo-users <
pharo-users@lists.pharo.org> wrote:

> Sorry that you did not hear from me a long time but I was in a dark
> place for a long time.
>
> but im back and have a question
>
> I have to make a clock so the seconds and minutes schould not be above 60,
>
> How can I take care of that ?
>
> and can I put the code here on the class side on this given method
>
> hour: anInteger minute: anInteger2
>  self shouldBeImplemented
>
> or schould I use that to make a call to the instance side and take care
> of there that the seconds and minutes are always valid.
>
> Roelof
>
>
>


Re: [Pharo-users] need suggestion badly

2020-07-14 Thread Ben Coman
Rather than spoon feed you for your masters project (and also your question
is a bit generic and hard to answer),
can you report the tutorial examples you've found for LibC, OSProcess and
OSSubProcess.
Then perhaps you can ask more focussed questions about any difficulties you
have doing those tutorials.

Please read http://www.catb.org/~esr/faqs/smart-questions.html

Apart from basic google search, a good place to search is...
http://forum.world.st/Pharo-f1294836.html
or focus your google search like this...  OSProcess  site:forum.world.st
Also, I'm not sure which book, but you may find something here...
https://books.pharo.org/

cheers -ben

On Sun, 12 Jul 2020 at 12:33, shawon58  wrote:

> Hello
> I am doing masters project where i need to use pharo and freeCAD. In my
> work
> i need to send some parameter to freeCAD which can create a cube or other
> type shape. After getting some idea i write a C++ code that can send
> command
> to freeCAD to create a cube.step file so that means i have the file for
> cube
> now. Just i need to compile and send some parameter to through command
> line.
> below i have attached my screenshot to show the gui. a simple gui to send
> command line command using LibC function. where i can compile and execute
> than run my box or other file using pharo gui.
> But my supervisor want me to send parameter from pharo to that file which i
> dont know how to do. if i can send the parameter to that file or exe than
> my
> work complete. as my limition is c++ file cause c++ file can hand freeCAD
> command. Also i know if my file is c file than maybe i can use ffi .
>
> Now i need suggestion is there any way to do ? need your kind advice .
> Thanks
>
> 
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


[Pharo-users] mentor help continued

2020-07-14 Thread Roelof Wobben via Pharo-users
--- Begin Message ---
Sorry that you did not hear from me a long time but I was in a dark 
place for a long time.


but im back and have a question

I have to make a clock so the seconds and minutes schould not be above 60,

How can I take care of that ?

and can I put the code here on the class side on this given method

hour: anInteger minute: anInteger2
    self shouldBeImplemented

or schould I use that to make a call to the instance side and take care 
of there that the seconds and minutes are always valid.


Roelof


--- End Message ---