[Pharo-users] Re: Backing up data

2024-01-31 Thread sergio ruiz
Let me check it out.

It’s not too late. This is a fun “scratch my own itch” project. 

So there are no deadlines looming or anything..



> On Jan 31, 2024, at 9:20 AM, Tim Mackinnon  wrote:
> 
> Sergio - might be too late now, but I haven't seen anyone mention Sean's 
> solution - https://github.com/seandenigris/Simple-Persistence  (I think it 
> uses Fuel under the hood, but its a nice simple solution)
> 


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: How to run multiple images?

2024-01-23 Thread sergio ruiz
I am in the same boat.

I have been using the pharo launcher for a few years, and it lets you do all of 
these things with no fuss..

check out: https://pharo.org/download

> On Jan 23, 2024, at 11:39 AM, Davide Varvello via Pharo-users 
>  wrote:
> 
> First: it is not possible anymore to drag and drop the image file on the VM 
> (pharo.app), it was very comfortable.
> 
> Second: If I open the pharo.app and choose an image that becomes the only 
> running image, I can't launch the pharo.app to run another image in parallel


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Iterating over a Dictionary

2024-01-23 Thread sergio ruiz
oh! this makes sense..

let me try this.

The trick is, i have used the AI system from JetBrains (in my day job IDE).. 
and it has figured out a bunch of smalltalk questions i had. Even questions 
about the pharo ecosystem.

It hasn’t always been 100%, but it got me to look in the right place quickly.

This was the first time it came up with something that looked right (i have 
seen this pattern everywhere).. but it was not correct.. 

Thanks!


> On Jan 23, 2024, at 11:27 AM, Joachim Tuchel  wrote:
> 
> AI knows little about Smalltalk ;-)


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Iterating over a Dictionary

2024-01-23 Thread sergio ruiz
I need to iterate over a dictionary.

I asked the AI buddy for a little help, and he says:

| myDictionary |

"Create a dictionary"
myDictionary := Dictionary new.
myDictionary at: 'one' put: 1.
myDictionary at: 'two' put: 2.
myDictionary at: 'three' put: 3.

"Iterate over the dictionary"
myDictionary do: [ :key :value |
Transcript show: key , ' -> ', value printString ; nl.
].

but when i try this, I get:

ArgumentsCountMismatch: This block accepts 2 arguments, but was called with 1 
argument.

Is the AI using a different dialect of smalltalk?

how would I go about acting on each pair?

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Git Repositories browser vs. monticello

2024-01-19 Thread sergio ruiz
Perfect.

I will be open sourcing all of my source code, so this will make it easier.

Thanks!

> On Jan 19, 2024, at 11:20 AM, Cyril FERLICOT-DELBECQUE via Pharo-users 
>  wrote:
> 
> Iceberg is indeed to Git Browser. The menu was updated to be more user 
> friendly because Iceberg is a little cryptic for people new to recent 
> versions of Pharo or to Pharo itself.


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Git Repositories browser vs. monticello

2024-01-19 Thread sergio ruiz
In the workspace, I see that Git Repositories browser if the first selection, 
and Monicello is marked as legacy.

The last time I was using Pharo, I think the Git browser was called “Iceberg.”

Are these the same thing?

Have we now made the move to Git as our primary SCM?

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Backing up data

2024-01-18 Thread sergio ruiz
The idea is, I have been a software engineer for the past three decades.

I REALLY love my profession (even though now, it’s pretty much sitting in 
meetings all day), but I love it.

I have a few projects I always wanted to do, because I just want to do them 
because they are useful to me.

I have architected and coded hundreds of giant projects. At this point, 
building anything with the big web frameworks just seems exhausting.

I have decided to bring each of these pet projects to fruition and then 
document how and why i made each decision.

Every project will be using smalltalk as the data store. If the project is a 
website, I will use seaside as the web framework. Otherwise, I’ll use the 
teapot as an API interface.

The series of articles I will write will be aimed at people in my position. 
People who are familiar with software development, and would like to read about 
it at a higher than tutorial level.

In the end, I’ll end up with:

- an application of some sort that scratches my own itch
- a pile of articles outlining how i designed the tool set for the application.

and in reality, it’s gonna be thinly veiled Smalltalk evangelism.

But i think it might be worthwhile to talk about this stuff in a pubilc 
platform.



> On Jan 18, 2024, at 10:34 AM, Yanni Chiu  wrote:
> 
> Can you sketch out the complexity aspects of your five projects? Is this all 
> for learning, or are they “production” applications? Do you want to gain 
> experience with different ways to persist data, or are you just thinking that 
> you have to use different ways due to project complexity? It might be 


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Backing up data

2024-01-18 Thread sergio ruiz
I figured Gemstones would be SUPER heavy handed for this application, but I 
have a list of five projects, each increasing in complexity that I want to 
launch and document. So, sooner or later, I will need a more robust solution.

Thanks!



> On Jan 18, 2024, at 8:26 AM, Norbert Hartl  wrote:
> 
> GemStone is a huge thing to tame. I would not say the above and GemStone are 
> alternatives. GemStone is a lot to install and learn but you get something 
> that makes it hard to corrupt your data. So you have requirements that make 
> it fit into GemStone or you have requirements that make it a fit for STON. 
> Between both there is no overlap but rather a huge gap between the 
> applicability of each.


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Backing up data

2024-01-18 Thread sergio ruiz
Using this Will my links remain viable using this method?

Meaning that an event has a theater. That theater is also in the 
OrderedCollection of Theaters.

If the name of he theater changed in the Theaters collection, will that name 
change occur in the event theater object?

After bringing these collections back in via STON, will all of these 
relationships remain intact?



> On Jan 18, 2024, at 8:26 AM, Norbert Hartl  wrote:
> 
> If you have three classes with class side collections you can have a make 
> e.g. a dictionary and put the collections from the class side into it like 
> 
> model := {
>#theaters -> Theater instances.
>#movies -> Movie instances.
>#event -> Event instances.
> } asDictionary.
> 




peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Backing up data

2024-01-18 Thread sergio ruiz
OOH..  I like this idea.

I’ll do a quick test on this and see if it works as expected..

For now, I want to store the data in the image.

The trick is, I like to start with a fresh image every few days. So, I’d like 
to open a new Pharo, pull the source code, then pull the data.

Thanks!


> 
> If you are keeping data in a Pharo image then you could just save the image 
> instead of using STON. Alternatively, you could model your data in an 
> Application class with three instance variables: theaters, movies, and 
> events. Then you could dump the root application object and STON should 
> preserve the relationships (I expect). I prefer this model since it allows me 
> to create a test object that encapsulates all the data in one place (even if 
> it is referenced from a class variable).


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Backing up data

2024-01-17 Thread sergio ruiz
I have been in the relational database world for decades. One of the things 
that is super simple is backing up and restoring data.

Sometimes, it makes it makes sense to pull the production data into 
development. In the case of a catastrophe, it’s super simple to restore data 
from a backup.

I am thinking of backup strategies for my data once again, and am wondering if 
things have changed since I was last using smalltalk.

I am thinking of the following:

STON
I could dump all of my data into STON, but there is one slight twist. In this 
project, it’s just making a list of movie listings. There are three basic 
classes: Theater, Movie, Event. Each of these classes stores an 
OrderedCollection of items of that type on a class variable, as I’ll need to 
access each on their own.. so, if an event has a theater, I’ll need to access 
Theaters on their own, and Movies on their own.

So, I would have to rebuild the list of Theaters from the Theaters in each 
event. Otherwise, I would lose the link between the Theaters on the Theater 
class variable and the Theater in the Event instance.

Am I thinking about this incorrectly?

Gemstones
I am totally into the idea of using gemstones. Is there a backup and restore 
for objects here? do the relationships remain?

Voyage
This seems like a good solution, but I would rather stay in the smalltalk 
object store.

Ideas?

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Troubleshooting ByteArray

2024-01-17 Thread sergio ruiz
Thanks for the input everyone! 

I ended up just removing the compression.. In this case, this is not critical 
at all, so I can live with this..

Thanks, all!



> On Jan 17, 2024, at 7:18 PM, Todd Blanchard via Pharo-users 
>  wrote:
> 
> I guess I’ll point you to the issue too.
> 
> PDFStreamPrinter>printPDFDataStream: aPDFDataStream   
> ……
> Line 13: (self compression) ifTrue: [ streamData := (self compressWithGZip: 
> streamData) asByteArray  ].


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Troubleshooting ByteArray

2024-01-17 Thread sergio ruiz
Hi, all.

I am working on creating a PDF with Artefact 
(https://github.com/pharo-contributions/Artefact) and am having an issue 
running the first example.

the Example looks like:

PDFDocument new add: (PDFPage new add: (PDFTextElement new text: 'Hello'; from: 
10mm@10mm)); exportTo: 'test.pdf' asFileReference writeStream.


When running this, I get the error:

Instance of ByteArray did not understand #isByteString

indeed, ByteArray does not have a method called isByteString.

I have tried creating a method that returns either true or false (I tried them 
both), but I have not successfully built the PDF.

The method calling isByteString looks like:


ZnUTF8Encoder

next: count putAll: string startingAt: offset toStream: stream
"Write count characters from string starting at offset to stream."
"Overwritten for performance reasons - create a fast path for byte 
strings"

string isByteString
ifTrue: [ self next: count putAllByteString: string startingAt: 
offset toStream: stream ]
ifFalse: [ super next: count putAll: string startingAt: offset 
toStream: stream ]

I TOTALLY get this. This is a whole bunch of very specific questions. But my 
ultimate goal is to take a deep dive into stream processing to figure this out.

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: [ Security ] Accessing private information from Pharo image

2024-01-16 Thread sergio ruiz
Gotcha. I am developing on a Mac, but in production, it will be running on a 
linux machine.

Thanks!

> On Jan 16, 2024, at 11:58 PM, James Foster via Pharo-users 
>  wrote:
> 
> If you are running the code on your own machine, logged as you, then I would 
> just keep the credentials in ~/.ssh as a private key. Another place for the 
> credentials might be something like /var/opt/MYAPP/myPrivateKey. In any case, 
> ensure that you protect the key with 400 or 600 security (this assumes you 
> are using Linux or macOS).


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: GLASS Platform - Docker container?

2024-01-16 Thread sergio ruiz
> 
> This question might be better for the GLASS mailing list 
> (https://gemtalksystems.com/techsupport/community-and-mailing-lists/), but 
> I’m happy to respond here.
> 

awesome. i just joined and am ready to go.. thanks!

> I wrote about GemStone in a Docker container in 2018 (see 
> https://programminggems.wordpress.com/2018/09/01/gemstone-in-a-docker-container/
>  and https://github.com/jgfoster/DockerForGemStone) and David Schaffer has a 
> nice follow-up that he has keep up-to-date at 
> https://github.com/cdavidshaffer/gemstone-docker. There is also one from 
> Julián Maestri at https://hub.docker.com/r/basmalltalk/gemstone-s.
> 

Will look into this. Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] [ Security ] Accessing private information from Pharo image

2024-01-16 Thread sergio ruiz
Hi, all.

One of my projects logs in to Spaces (Digital Ocean’s version of S3). I need to 
be able access the credentials, but I don’t want to store them in the source 
code, as I will be using Github to store the projects.

Is there an accepted way to do this (encryption)?

Should I store them on the system as environment variables? is this efficient?

thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] GLASS Platform - Docker container?

2024-01-16 Thread sergio ruiz

Hi, all.

I used the GLASS platform years ago, and I was thinking it might be a good 
match for my upcoming projects.

The documentation looks to be the same documentation I used back when I started 
with Seaside.

I am wondering if GLASS has been ported to Docker yet. This seems like a 
natural extension.

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Document layout with Pharo

2024-01-15 Thread sergio ruiz
OH! This looks VERY cool! I have never seen typst before.

My needs are super simple. I am looking at using Aretfact 
(https://github.com/pharo-contributions/Artefact/blob/development/docs/Guide.md)
 for PDF generation.

Mustache seems like it might be a good fit for text generation.

Did you use a pharo integration to mustache?

Thanks!

> On Jan 15, 2024, at 11:45 AM, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> templates. If I would redo the project today, I would use Typst[2][2a], to 
> decouple PDF creation from the huge LaTeX ecosystem and a nicer syntax with 
> better error messages. In fact, we are using Typst now because of that (but 
> we have not redone the Pharo integration via Mustache templates).


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Document layout with Pharo

2024-01-14 Thread sergio ruiz
Thanks! 

I think i am gonna try pdfkit.. or maybe the wkhtomtopdf package..

Thanks!

> On Jan 13, 2024, at 4:53 PM, Richard Sargent 
>  wrote:
> 
> Christian Haider has PDFtalk, originally in Visual works, but he and others 
> have created ports to GenStone, Squeak, and Pharo.
> 
> Bob Nemec created Report4PDF to make it easier to generate documents. Also, 
> originally in VW, but also ported to GS, Squeak, and Pharo.


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: Updating objects in the inspector

2024-01-14 Thread sergio ruiz
okay..

i got that working.. i thought there might be a way to edit it in place with 
the inspector window to the right.. but this works..

thanks!

> On Jan 14, 2024, at 4:42 AM, Noury Bouraqadi  wrote:
> 
> The pane at the bottom of the inspector is a playground that has acces to the 
> object instance variables. 
> You can evaluate what ever expression you want.
> In your example, that would be 
> name := 'New name'


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Document layout with Pharo

2024-01-13 Thread Sergio Ruiz
Hi, all. 

I am looking to create a newspaper like listing of movie showtimes.  Initially, 
I thought of using imagemagick’s annotate command to generate the output. 

Thinking further, I thought it might be worthwhile to generate a LaTeX file, 
and render that to a jpg. 

Then, I thought there might be a better way to do this natively in smalltalk.

Does anyone have any idea how I might generate a document that can be converted 
to an image with a reasonable amount of control of the layout?

Thanks!

[Pharo-users] Removing and object from an OrderedCollection in the inspector

2024-01-12 Thread sergio ruiz

I am trying to remove some objects from an OrderedCollection in the inspector.

I have class called Event. This has a class variable called Events which is a 
storage are for and ordered collection of Events.

So, i inspected “Event Events” and I see my ordered collection.

In the inspector, I select on of the objects, and I try to evaluate “Event 
Events remove: self”.. But I am getting an error: an Event not found in 
OrderedCollection.

Does anyone have any ideas on how i’d do this?

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Updating objects in the inspector

2024-01-12 Thread sergio ruiz
Hi, all.

I have been away from Pharo/Smalltalk for several years, but I am coming back 
to it now. I am a senior developer, but haven’t used smalltalk in any 
professional projects.

I also found that I don’t do ANY pet projects for fun anymore, as the current 
batch of languages/frameworks are not fun. They are effective and all. But not 
fun.

I am starting a bunch of “scratch my own itch” projects. I’ll be using Pharo as 
the data store, and maybe more. The thing I really want to do is document the 
usage of Pharo in my projects, and explain the toolchain, and why i chose each 
piece.

My first project is to take a list of movie events from the local theater and 
create a listing reminiscent of the newspaper listings we read in the olden 
days. 

I have my models set up and figured out, but I have a really simple question.

How do i change the value of an instance variable in the inspector. It looks 
like it should be super simple, but it’s not working.

In this case, I am just trying to take the period out of a string. See that 
attached image.

Thanks, all!




peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



[Pharo-users] Re: [Pharo Mooc] Change colors of test results

2020-12-01 Thread sergio ruiz
ah! i just saw this.

thanks for the help..

> On Nov 19, 2020, at 2:20 AM, hogoww  wrote:
> 
> The only other way I found would be to recreate the object, but I'm not 
> comfortable enough with UI stuff to help you more than that :/


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] [Pharo Mooc] Change colors of test results

2020-11-18 Thread sergio ruiz
Hey, all.. 

I am taking the Pharo Mooc, and was wondering:

is there any way to change the color next to the test method name?

I am colorblind, and I can’t tell the different between green and yellow.

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



Re: [Pharo-users] Extracting MP3 metadata

2020-01-24 Thread sergio ruiz
THIS!

is exactly what I need.

Thank you so much!



> On Jan 24, 2020, at 4:05 AM, VERHAEGHE Benoit  wrote:
> 
> To read mp3 metadata you should rely on an id3 parser 
> (https://en.wikipedia.org/wiki/ID3 ).
> I use/develop this one: https://github.com/pharo-media-center/id3-pharo 
> 


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] Extracting MP3 metadata

2020-01-23 Thread sergio ruiz
One of the projects I am working on requires the reading of mp3 metadata. I see 
this is covered all over the place in different languages, but I don’t see one 
for Pharo/Smalltalk. Does anyone know off hand of something like this?

Would it be worthwhile to do something like this in Smalltalk, or would it be a 
better idea to find and executable somewhere, run it, and parse the data there?

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Running a teapot instance remotely

2019-10-10 Thread sergio ruiz
This worked perfectly!

To keep this running, I am running it in tux, so it will keep running when I 
log out.

How are people keeping it running these days?

Thanks!


> On Oct 10, 2019, at 3:46 PM, Tim Mackinnon  wrote:
> 
> Sergio - looking at the last time I did this, my run script did:
> 
> 
> 
> 


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] Running a teapot instance remotely

2019-10-10 Thread sergio ruiz
Hi, all.

I am running my teapot instance remotely, but I’m not sure how to start it up.

Just for testing, I am trying this:

./pharo LunchPicker.image eval "server := PickerServer serveOn: 3200. server 
start” &

But no luck.

ideas?

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Deploy a Pharo 8 application remotely

2019-10-10 Thread sergio ruiz
This is PERFECT! thanks!



> On Oct 10, 2019, at 2:19 PM, Alistair Grant  wrote:
> 
> curl https://get.pharo.org/64/80+vm  | bash


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] Deploy a Pharo 8 application remotely

2019-10-10 Thread sergio ruiz
Hey, all..

I put together a quick REST interface to use internally here.

It’s ready to launch to a production server, and I’m not sure how to set it up 
on the remote server.

The current zeroconf downloads and sets up a Pharo 7 instance.

What I would like to do is set up Pharo 8 on the remote server, and just 
replace the image and changes with mine, and start up the Teapot server  
remotely.

I usually just use rsync to update the remote image and changes files, but I am 
not sure how to go about getting the correct setup to run the correct (Pharo 8) 
interpreter remotely.

I tried doing:

curl https://get.pharo.org/64/80 | bash

But this brings down only the changes and image files down.. no pharo-vm.

will the pharo-vm that runs pharo 7 also run pharo 8?

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] Pharo 8 and Teapot

2019-09-24 Thread sergio ruiz
Just checking in on this.

I started up a REST API project in Pharo 8. I thought I read somewhere that 
Teapot was failing tests in Pharo 8.

I fired it up, and put together the beginnings of the project, and it looks 
fine. All tests pass.

There was one SSL test that was not running in 7 either, but I’ll take a look 
at that when I get a chance.

Thanks!

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] New non-critical project - which Pharo to use?

2019-09-20 Thread sergio ruiz
I’ll check..

> On Sep 20, 2019, at 4:07 AM, Torsten Bergmann  wrote:
> 
> Hi sergio,
> 
> Teapot tests are red in P8 - havent checked yet why


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] New non-critical project - which Pharo to use?

2019-09-19 Thread sergio ruiz

Hi, all.

I have a new project that I am launching. It’s non critical, and not complex. 
It will be using Teapot and Fuel, and not much else.

Should I start working on Pharo 8? Is everyone migrating to 8 now?

Thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread sergio ruiz
> 
> tracks
>   ^tracks ifNil: [ tracks :=  OrderedCollection new ].
> 
> - one line
> - does not mix using accusers and not using accessors.

Okay, I totally get the subtlety now. I don’t even need an accessor.

Thanks!


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread sergio ruiz
hmm…

maybe this is cleaner..

tracks
tracks ifNil: [ self tracks: OrderedCollection new ].
^ tracks



> 
> 
> because your #tracks: returns self, not the collection value


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread sergio ruiz
Oh!

how about this:

tracks: anObject
tracks := anObject.
^ tracks

?

> On Jul 24, 2019, at 10:48 AM, Sven Van Caekenberghe  wrote:
> 
> because your #tracks: returns self, not the collection value


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



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread sergio ruiz
I'm implementing an instance variable as an OrderedCollection, and am doing 
something idiotic.

I have an Artist class.

An Artist can have many tracks:

tracks
^ tracks ifNil: [ self tracks: OrderedCollection new ]

tracks: anObject
tracks := anObject

Doing something like:

a := Artist new.
t := Track new.
a tracks add: t

Gives me the error:

Artist(Object)>>doesNotUnderstand: #add:

Once I get past that error, which will evaluate `a tracks`, I can run this.

I get why it works the second time, but I don't get why it thinks the instance 
of Artist is the receiver of add: on the first run.

Thanks!

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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] [OrderedCollection] add a reference or a copy?

2019-07-24 Thread sergio ruiz
Okay.

This makes the entire universe make more sense.

Thanks!

> On Jul 24, 2019, at 9:30 AM, Esteban Maringolo  wrote:
> 
> Yes, it is the same. Everything is passed by "reference" (*).
> And if you copy the collection you'll get two collections referencing
> the same object.


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



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] [OrderedCollection] add a reference or a copy?

2019-07-24 Thread sergio ruiz
I think my understanding of OrderedCollections has been incorrect for a very 
long time. I have never had a situation where it mattered, but in modeling a 
current project, I think I have been approaching it incorrectly.

Since I have been using Smalltalk, I assumed that a copy of an object is added 
to an OrderedCollection. A quick test shows that a reference to that object is 
added to the OrderedCollection.

I just wanted a sanity check on this. Is this true with all collections?

Thanks!



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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Modeling HABTM

2019-06-12 Thread sergio ruiz
Oh! i am trying to do everything in pharo/seaside..

i am not using a database at all..

i am working on getting this set up in gemstones, but i am still really 
confused in that area..



> On Jun 12, 2019, at 10:35 PM, Jeff Gray  wrote:
> 
> diagram, you may not need a class to model play. As it is just a repository
> for a set of links I might just have a method on an Episode class that calls
> the sql to return a collection of Tracks and vice versa.


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
these numbers are super tiny..

25 episodes so far with about 15 tracks per episode..



> On Jun 10, 2019, at 1:36 PM, James Foster  wrote:
> 
> The disadvantage is extra time doing the lookup. But before you discount this 
> approach, ask yourself what performance penalty this will cost. How many 
> episodes? How many tracks? Do you have less than 10K of each? How many 
> milliseconds does it take to do a “brute-force” search? I strongly recommend:


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
ah!

this exactly how i ended up putting it together…

and thanks, Jim for the pointers…

I just wanted to make sure I wasn’t totally missing something..



> On Jun 10, 2019, at 1:53 PM, Esteban Maringolo  wrote:
> 
> But it's not that one object has two "parents" (this isn't a tree like
> structure).
> The object (it is, the Track) has two references to the Episodes where
> it appears, such reference happens because aTrack as a instance


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
when you say references, how does this look in pharo? I don’t know that I have 
used such a relationship.

I was thinking that an object would have an instance variable that was an 
ordered collection of objects.. So having one object belong to two parent 
objects could be tricky.



> On Jun 10, 2019, at 1:27 PM, Esteban Maringolo  wrote:
> 
> You have anEpisode that references a collection with instances of Track.
> And each Track has a collection of episodes.


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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
Thanks!

I’ll look at this. I’d like to keep it in the OO domain.. There is no existing 
data. Everything would be created for this project.


> On Jun 10, 2019, at 12:53 PM, Ben Coman  wrote:
> 
> If you are keeping your design purely in the object-oriented domain,
> you might try Mutual Friends... 
> https://pdfs.semanticscholar.org/348f/e4ecff3c23f3709bb88e7e60379905a3b930.pdf
>  
> 
> although I've not enough experience with it to know if its the best way.
> 


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



signature.asc
Description: Message signed with OpenPGP


[Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
I am currently putting together a Seaside website for my radio show. I am 
trying to figure out how to model the "has and belongs to many" relationships.

Each episode can have many tracks, each of these tracks can belong to several 
episodes.
I want to be able to present a listing of which episodes each track appears in, 
and a listing of tracks for each episode.

The approach I have seen on this is to create an intermediary object and store 
a set of ids on this, but this seems a little clunky, and it seems like there 
would be a clean way to do this.
Am I missing something?
Thanks!



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



signature.asc
Description: Message signed with OpenPGP


Re: [Pharo-users] [gemstones] Use case for GsDevKit_home

2019-05-30 Thread sergio ruiz
Whew… hefty.. digging into this now..

Thanks!

On May 30, 2019 at 2:10:56 PM, James Foster (smallt...@jgfoster.net) wrote:

Yes, GemStone supports backup and restore. See 11. Making and Restoring
Backups

.


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] [gemstones] Use case for GsDevKit_home

2019-05-30 Thread sergio ruiz
Yes! Does Gemstones have this ability?

On May 30, 2019 at 9:59:31 AM, James Foster (smallt...@jgfoster.net) wrote:

Backup and restore?

James


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


[Pharo-users] [gemstones] Use case for GsDevKit_home

2019-05-30 Thread sergio ruiz
I have another project coming up, and I have free reign over the tech
stack. I am gonna use Pharo, but I'd like to spend my up front time on this
project figuring out the things I usually wait until the end to do. One of
these issues is setting up gemstones.

I would like to use GsDevKit_home, but I want to make sure that the use
case I am envisioning is in keeping what this package is set up to do.

My vision is something like:
- Deploy a stone to remote production server.
- Develop in the latest version of Pharo on my local machine, keeping my
project in git.
- When it's time to deploy,  use tODE client to tell the production server
to grab the latest code, and we're done.

Does this sound reasonable?

Also, one thing that I find invaluable in troubleshooting applications
written using relational databases is to be able to be able to just dump
the production database and load it up on my local machine. Is this
possible using gemstones?

Thanks!




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] [GsDevKit_home] Is this project still the way to set up Gemstone?

2019-05-29 Thread sergio ruiz
Thanks, Dale..

I created an issue with all the info..



On May 29, 2019 at 8:46:45 PM, Dale Henrichs (
dale.henri...@gemtalksystems.com) wrote:

Also include the SHA of the GsDevKit_home commit that you are using:

cd $GS_HOME
git log -1

Dale


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


[Pharo-users] [GsDevKit_home] Is this project still the way to set up Gemstone?

2019-05-29 Thread sergio ruiz
I am spending some time learning how gemstone works, and using this project
as a starting point.

When trying to create a stone using either 3.3.0 or 3.4.0, I get the
following error at the very end.

This is using the following incantation:

createStone devKit_33 3.3.0 |& tee -a $GS_HOME/install.log

Error on or near line 99 :: devKitCommandLine startstone devKit_33 -N ::
devKitCommandLine startstone devKit_33 -N
Error on or near line 116 :: startStone -b -N devKit_33 :: startStone -b -N
devKit_33
Error on or near line 148 :: newExtent -s
/Users/sergio/Sites/GsDevKit_home/server/stones/devKit_33/product/bin/extent0.seaside.dbf
devKit_33 :: newExtent -s
/Users/sergio/Sites/GsDevKit_home/server/stones/devKit_33/product/bin/extent0.seaside.dbf
devKit_33
Error on or near line 209 :: createStone devKit_33 3.3.0 :: createStone
devKit_33 3.3.0

Ideas?

Thanks!


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-28 Thread sergio ruiz
I like that http://www.bagelconcertfinder.com uses Seaside and also my
Twitter Bootstrap Library.


Thanks so much for your library!

I have built several applications in seaside, and always dig using it..
it’s my go to framework when I do a project on my own..


Seaside by default works with stateful (web) components - making it easy to
develop - but possibly hard to scale to be the next Twitter, Amazon, ... ;)

most everything I work on will never be the next twitter or amazon.. so i
am fine tweaking here or there..

I have thought about doing exactly what you are talking about..

In my day job, we use LOTS of Angular. I thought about setting up a REST
interface using Teapot, and using angular for the web part..

This provides for a much more interactive user experience, but I also
totally love how seaside works..

Maybe for my CMS type project, I’ll use Teapot/Angular..

I will have to think about this for a bit…

I did a project last year where I used teapot in conjunction with an SMS
interface to create a very useful bot..

This was incredibly handy..


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


[Pharo-users] [Parsing XML] Error calling Shout

2019-02-26 Thread sergio ruiz
Hi, all.

I am currently using the AWS S3 plugin to get a list of buckets available.

This call sends back a pile of XML..

The XML is coming back valid, but I am getting back something like:

XMLDocumentHighlightDefaults error….
and inside this error,
SHTextStylerST80 new <- where ’new’ is being sent to nil..

It looks like SHTextStylerST80 is part of the Shout package, but I cannot
get shout to install on 7.01..

anyone have any ideas?

Thanks!


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


[Pharo-users] Voyage for Pharo 7

2019-02-26 Thread sergio ruiz
Is the installation for this set up somewhere?

I am using the metacello script here:

https://github.com/pharo-nosql/voyage

and the catalog..

and am getting errors everywhere.

Thanks!



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


[Pharo-users] [Seaside] Resource Based routing

2019-02-25 Thread sergio ruiz
Okay, gathering info regarding my last post.

I need to create REST urls to point to things in my app like blog posts,
show notes, etc..

I am thinking to do this, I should probably follow this:

http://book.seaside.st/book/advanced/restful/handler-filter

Am I on the right track?

Thanks!


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 sergio ruiz
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://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


[Pharo-users] Repeateble URLs - REST?

2019-02-25 Thread sergio ruiz
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] Trying to understand Developing with Pharo, Deploying with Gemstone/s

2019-02-21 Thread sergio ruiz
Okay. let me wrap my head around all of this..

thanks!



On February 20, 2019 at 5:17:27 PM, Dale Henrichs (
dale.henri...@gemtalksystems.com) wrote:

Hello Sergio,

Sorry for the delay in replying .. too many balls in the air:) I'll comment
in-line ..


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] [seaside] adding attributes to link/stylesheet tag

2019-02-20 Thread sergio ruiz
Scratch that .. false alarm.. had to go up a level to find attributeAt: put:

sorry for the interruption ..

On February 20, 2019 at 10:37:21 PM, sergio ruiz (sergio@gmail.com)
wrote:

How would I go about rendering this:

https://use.fontawesome.com/releases/v5.7.2/css/all.css;
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous”>

I am not sure how to add the *integrity* and *crossorigin* attributes to
the tag..

Thanks!





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


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


[Pharo-users] [seaside] adding attributes to link/stylesheet tag

2019-02-20 Thread sergio ruiz
How would I go about rendering this:

https://use.fontawesome.com/releases/v5.7.2/css/all.css;
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous”>

I am not sure how to add the *integrity* and *crossorigin* attributes to
the tag..

Thanks!






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] Running pharo in daemon mode

2019-02-19 Thread sergio ruiz
My daemontools run file looks like:

#!/bin/bash

# settings
USER="bandtracker"
VM="/home/bandtracker/pharoImages/pharo"
VM_PARAMS="-mmap 256m -vm-sound-null -vm-display-null"
IMAGE="/home/bandtracker/pharoImages/Pharo.image"

# start the vm
exec \
setuidgid "$USER" \
"$VM" $VM_PARAMS "$IMAGE" --no-quit

but for some reason, it just sits and grinds and restarts.. never remaining
started for more than a second..



On February 18, 2019 at 8:19:24 PM, Pierce Ng (pie...@samadhiweb.com) wrote:

My daemontools run file:

#!/bin/sh
/usr/bin/setuidgid app1 \
/pkg/vm/pharo -vm-display-null -vm-sound-null app1.image --no-quit


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


[Pharo-users] Running pharo in daemon mode

2019-02-18 Thread sergio ruiz
Hey, all..

I found my issue.. I need to be running in daemon mode.. i was running with
&, but as soon as my connection lets go, the app dies..

I tried using daemon tools, but it looks like the site stays up for one
second, and a new PID is generated..

Anyone have any hints on how people are doing this lately?

Thanks!




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] Measuring memory usage

2019-02-18 Thread sergio ruiz
Snap! i forgot about that!

I really need to get that put behind a password


On February 18, 2019 at 1:56:23 PM, Sven Van Caekenberghe (s...@stfx.eu)
wrote:

Do you know about Seaside's Status page/dev tool.

It is there by default, it has many tabs that give you more information
about the running image, including memory info, as well as a space tally
(but that is very slow).


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


[Pharo-users] Measuring memory usage

2019-02-18 Thread sergio ruiz
Wondering if my image is dying due to memory usage.

How would I go about getting a realistic measurement?

Thanks!


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


[Pharo-users] Pharo Image with Seaside dies without any clues

2019-02-18 Thread sergio ruiz
Hi, all.

My seaside image seems to run for an indeterminate amount of time here and
there, then just stops running without writing to PharoDebug. How do I  go
about debugging the application crash? Is there another log somewhere?

It looks like there are other (path) issues when the the image starts up,
though..

the initial error log looks like:

https://gist.github.com/sergio101/8ac04fe5db4786c36fa3bf795807da9a

I’m not sure these errors are related to the image just randomly crashing
here and there.

Thanks!


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


[Pharo-users] [PharoRemote] View remote Transcript

2019-02-18 Thread sergio ruiz
Hi, all..

Is it possible to use PharoRemote to watch the remote site’s Transcript?

Thanks!


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] [TelePharo] Error in remote playground..

2019-02-18 Thread sergio ruiz
Awesome! is this the one i should be using?

https://github.com/pharo-ide/TelePharo

Thanks!

On February 17, 2019 at 3:06:18 PM, Denis Kudriashov (dionisi...@gmail.com)
wrote:

I released new version of TelePharo adopted for Pharo 7. So now it should
work out of the box


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] [TelePharo] Error in remote playground..

2019-02-12 Thread sergio ruiz
I am not sure I follow..

Do you mean grab the source from github using Iceberg?

Thanks!

On February 12, 2019 at 4:03:25 PM, Denis Kudriashov (dionisi...@gmail.com)
wrote:

Ah, it needs new release.
Try load dev versions of telepharo and seamless from Iceberg


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


[Pharo-users] [TelePharo] Error in remote playground..

2019-02-12 Thread sergio ruiz
Hey, all..

I am now able to connect to my remote image, but I am having one more issue.

When opening a remote playground and trying to manipulate objects, i am
getting:


ideas?

Thanks!

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] Loading TelePharo on Pharo 7

2019-02-12 Thread sergio ruiz
Yes! correct..

i just built a new work image from scratch, and it works fine.

Connecting to my remote now..

Thanks!

On February 12, 2019 at 12:20:50 PM, Denis Kudriashov (dionisi...@gmail.com)
wrote:

Try it with closed browsers because it loads different version and it will
break live instances of browser components.

Better to do it from scratch image to avoid cached instances


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] Loading TelePharo on Pharo 7

2019-02-12 Thread sergio ruiz
Thanks, Denis..

Will try this in a minute..

On February 12, 2019 at 3:42:06 AM, Denis Kudriashov (dionisi...@gmail.com)
wrote:

Following script will load TelePharo without error:

Metacello new
  baseline: 'TelePharo';
  repository: 'github://pharo-ide/TelePharo';
  onUpgrade: [:ex | ex useIncoming];
  onConflictUseIncoming;
  load.



пн, 11 февр. 2019 г. в 09:11, Denis Kudriashov :

> Hi Serge.
>
> You need to add option to metacello script onConflict: or onUpgrade: with
> block [:warn | warn useIncoming].
> I do not have computer now to give you exact code.
>
> Problem that telepharo depends on old version of Calypso but image
> includes the latest one. It needs to be fixed. I will look at it.
>
> And we should fix install scripts in readme page. It still references my
> repo but it was moved to pharo-ide org
>
> 9 февр. 2019 г. 8:05 PM пользователь "sergio ruiz" 
> написал:
>
> Hi, all..
>
> I am looking to install TelePharo on my 7.01 image using the setup found
> at :
>
> https://github.com/pharo-ide/TelePharo
>
> like
>
> Metacello new
>   baseline: 'TelePharo';
>   repository: 'github://dionisiydk/TelePharo';
>   load: 'Server’.
>
> and running into the following error. Any ideas?
>
> Thanks!
>
> MetacelloAllowConflictingProjectUpgrade>>defaultAction
> UndefinedObject>>handleSignal:
> Context>>handleSignal:
> Context>>handleSignal:
> MetacelloAllowConflictingProjectUpgrade(Exception)>>pass
> [ ^ exception pass ] in MetacelloScriptEngine>>handleConflict: in Block: [ ^ 
> exception pass ]
> Dictionary>>at:ifAbsent:
> MetacelloScriptEngine>>handleConflict:
> MetacelloAllowConflictingProjectUpgrade>>handleResolutionFor:
> [ :ex | "option handlers need to be outermost set of handlers ... last line 
> of defense before users are involved" ex handleResolutionFor: self ] in [ [ 
> actionBlock
> on:
> MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
> , MetacelloProjectSpecLoadedNotification
> , MetacelloScriptEnsureProjectLoadedForDevelopment
> , MetacelloLookupBaselineSpecForEnsureLoad
> do:
> [ :ex | "lookup and registration handlers need to be innermost set of 
> handlers ...they may throw option notifications" ex handleResolutionFor: self 
> ] ]
> on:
> MetacelloAllowProjectDowngrade , MetacelloAllowProjectUpgrade
> , MetacelloAllowConflictingProjectUpgrade
> do:
> [ :ex | "option handlers need to be outermost set of handlers ... 
> last line of defense before users are involved" ex handleResolutionFor: self 
> ] ] in [ [ [ actionBlock
> on:
> MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
> , MetacelloProjectSpecLoadedNotification
> , MetacelloScriptEnsureProjectLoadedForDevelopment
> , MetacelloLookupBaselineSpecForEnsureLoad
> do:
> [ :ex | "lookup and registration handlers need to be innermost set of 
> handlers ...they may throw option notifications" ex handleResolutionFor: self 
> ] ]
> on:
> MetacelloAllowProjectDowngrade , MetacelloAllowProjectUpgrade
> , MetacelloAllowConflictingProjectUpgrade
> do:
> [ :ex | "option handlers need to be outermost set of handlers ... 
> last line of defense before users are involved" ex handleResolutionFor: self 
> ] ]
> on: MetacelloAllowLockedProjectChange
> do:
> [ :ex | "MetacelloAllowLockedProjectChange need to be outermost 
> handler ... since it is signaled from second line of handlers" ex 
> handleResolutionFor: self ] ] in 
> MetacelloScriptEngine>>handleNotificationsForAction: in Block: [ :ex | 
> "option handlers need to be outermost set ...etc...
> BlockClosure>>cull:
> Context>>evaluateSignal:
> Context>>handleSignal:
> MetacelloAllowConflictingProjectUpgrade(Exception)>>signal
> [ :existing :new |
> (existing hasLoadConflicts: new)
> ifTrue: [ ((existing canUpgradeTo: new)
> ifTrue: [ MetacelloAllowProjectUpgrade new ]
> ifFalse: [ (existing canDowngradeTo: new)
> ifTrue: [ MetacelloAllowProjectDowngrade new ]
> ifFalse: [ MetacelloAllowConflictingProjectUpgrade new ] 
> ])
> existingProjectRegistration: existing;
> newProjectRegistration: new;
> signal ]
> ifFalse: [ new ] ] in MetacelloScriptEngine>>lookupProjectSpecFor: in 
> Block: [ :existing :new | ...
> [ :existing | ^ presentBlock value: existing value

Re: [Pharo-users] Trying to understand Developing with Pharo, Deploying with Gemstone/s

2019-02-09 Thread sergio ruiz
Ah.. i think i get it.

I just want to get this image running on the web.. I think that’s a little
bit more rabbit hole than I want to tackle right now.


On February 9, 2019 at 7:58:04 PM, Pierce Ng (pie...@samadhiweb.com) wrote:

Gemstone has Gofer. I develop on Pharo, save to .mcz using Monticello
and then 'Gofer it' via a Pharo 3 image running Tode to load into
Gemstone. Dale is updating Tode so that Pharo versions 6 and 7 should
now or soon run Tode.


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


[Pharo-users] Loading TelePharo on Pharo 7

2019-02-09 Thread sergio ruiz
Hi, all..

I am looking to install TelePharo on my 7.01 image using the setup found at
:

https://github.com/pharo-ide/TelePharo

like

Metacello new
  baseline: 'TelePharo';
  repository: 'github://dionisiydk/TelePharo';
  load: 'Server’.

and running into the following error. Any ideas?

Thanks!

MetacelloAllowConflictingProjectUpgrade>>defaultAction
UndefinedObject>>handleSignal:
Context>>handleSignal:
Context>>handleSignal:
MetacelloAllowConflictingProjectUpgrade(Exception)>>pass
[ ^ exception pass ] in MetacelloScriptEngine>>handleConflict: in
Block: [ ^ exception pass ]
Dictionary>>at:ifAbsent:
MetacelloScriptEngine>>handleConflict:
MetacelloAllowConflictingProjectUpgrade>>handleResolutionFor:
[ :ex | "option handlers need to be outermost set of handlers ... last
line of defense before users are involved" ex handleResolutionFor:
self ] in [ [ actionBlock
on:
MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
, MetacelloProjectSpecLoadedNotification
, MetacelloScriptEnsureProjectLoadedForDevelopment
, MetacelloLookupBaselineSpecForEnsureLoad
do:
[ :ex | "lookup and registration handlers need to be innermost
set of handlers ...they may throw option notifications" ex
handleResolutionFor: self ] ]
on:
MetacelloAllowProjectDowngrade , MetacelloAllowProjectUpgrade
, MetacelloAllowConflictingProjectUpgrade
do:
[ :ex | "option handlers need to be outermost set of handlers
... last line of defense before users are involved" ex
handleResolutionFor: self ] ] in [ [ [ actionBlock
on:
MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
, MetacelloProjectSpecLoadedNotification
, MetacelloScriptEnsureProjectLoadedForDevelopment
, MetacelloLookupBaselineSpecForEnsureLoad
do:
[ :ex | "lookup and registration handlers need to be innermost
set of handlers ...they may throw option notifications" ex
handleResolutionFor: self ] ]
on:
MetacelloAllowProjectDowngrade , MetacelloAllowProjectUpgrade
, MetacelloAllowConflictingProjectUpgrade
do:
[ :ex | "option handlers need to be outermost set of handlers
... last line of defense before users are involved" ex
handleResolutionFor: self ] ]
on: MetacelloAllowLockedProjectChange
do:
[ :ex | "MetacelloAllowLockedProjectChange need to be
outermost handler ... since it is signaled from second line of
handlers" ex handleResolutionFor: self ] ] in
MetacelloScriptEngine>>handleNotificationsForAction: in Block: [ :ex |
"option handlers need to be outermost set ...etc...
BlockClosure>>cull:
Context>>evaluateSignal:
Context>>handleSignal:
MetacelloAllowConflictingProjectUpgrade(Exception)>>signal
[ :existing :new |
(existing hasLoadConflicts: new)
ifTrue: [ ((existing canUpgradeTo: new)
ifTrue: [ MetacelloAllowProjectUpgrade new ]
ifFalse: [ (existing canDowngradeTo: new)
ifTrue: [ MetacelloAllowProjectDowngrade new ]
ifFalse: [ MetacelloAllowConflictingProjectUpgrade new ] ])
existingProjectRegistration: existing;
newProjectRegistration: new;
signal ]
ifFalse: [ new ] ] in MetacelloScriptEngine>>lookupProjectSpecFor:
in Block: [ :existing :new | ...
[ :existing | ^ presentBlock value: existing value: newRegistration ]
in MetacelloProjectRegistration
class>>registrationForProjectSpec:ifAbsent:ifPresent: in Block: [
:existing | ^ presentBlock value: existing value...etc...
[ :existing | ^ presentBlock value: existing ] in
MetacelloProjectRegistry>>registrationFor:ifPresent:ifAbsent: in
Block: [ :existing | ^ presentBlock value: existing ]
BlockClosure>>cull:
Dictionary>>at:ifPresent:
MetacelloProjectRegistry>>registrationFor:ifPresent:ifAbsent:
MetacelloProjectRegistration
class>>registrationForProjectSpec:ifAbsent:ifPresent:
MetacelloScriptEngine>>lookupProjectSpecFor:
MetacelloScriptEngine>>handleLookupProjectSpec:
MetacelloLookupProjectSpec>>handleResolutionFor:
[ :ex | "lookup and registration handlers need to be innermost set of
handlers ...they may throw option notifications" ex
handleResolutionFor: self ] in [ actionBlock
on:
MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
, MetacelloProjectSpecLoadedNotification
, MetacelloScriptEnsureProjectLoadedForDevelopment
, MetacelloLookupBaselineSpecForEnsureLoad
do:
[ :ex | "lookup and registration handlers need to be innermost
set of handlers ...they may throw option notifications" ex
handleResolutionFor: self ] ] in [ [ actionBlock
on:
MetacelloLookupProjectSpec , MetacelloLookupProjectSpecForLoad
, MetacelloProjectSpecLoadedNotification
, MetacelloScriptEnsureProjectLoadedForDevelopment
, MetacelloLookupBaselineSpecForEnsureLoad
do:
[ :ex | "lookup and registration 

[Pharo-users] Loading an iceberg repo from in the playground

2019-02-09 Thread sergio ruiz
I’d like to pull my iceberg projects inside the playground, so that I can
automate the loading on the command line.

Is there any documentation on how to do this?

Thanks!


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] Trying to understand Developing with Pharo, Deploying with Gemstone/s

2019-02-09 Thread sergio ruiz
Yes..

I created a little script I can run, minus the parts to load up the iceberg
project…



On February 9, 2019 at 12:05:47 PM, Hilaire (hila...@drgeo.eu) wrote:

Off topic. Do you have a receipt to buid from a minimal image?


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] Boostrap for seaside : incorrect JQuery version

2019-02-08 Thread sergio ruiz
Just for the record, I am having the same problem..


On February 8, 2019 at 3:20:18 PM, Dominique Dartois (d...@dartois.org)
wrote:

Hi all
I installed seaside + Bootstrap from the « Catalog Browser », following the
tips at http://smalltalkhub.com/#!/~TorstenBergmann/
I run Pharo 7 64bits on MacOS.
The demo doesn’t react to the mouse clicks. In fact Firefox debugger showed
an incompatibility between Bootstrap and JQuery versions :


The JQuery Pharo library is 3.3.1 :



Is it possible to correct this just by using an older library of JQuery (if
I can find one)?

Thank you
---
Dominique Dartois


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


d5c6fb3c438e4366aefa41c038596207@Open-Xchange.png
Description: Binary data


66ac7931559d4641ad19131d5079c54b@Open-Xchange.png
Description: Binary data


[Pharo-users] Trying to understand Developing with Pharo, Deploying with Gemstone/s

2019-02-08 Thread sergio ruiz
I have an app that is ready to deploy to alpha. I usually do this by
creating a script that builds a minimal pharo image, and run that on a
cloud server.

I then use TelePharo to make any live tweaks that need to happen, and
something like:

./pharo Pharo.image "/run/the/script"

to keep run cron jobs, etc.

I would like to start using Gemstone/s.

I got GsDevKithome up and running, with no problems, but I am having a
little bit of trouble figuring out how to proceed. I get what tODE is
doing, but I don’t get how to do the things I normally do:

   - I got Seaside installed in the image, but I need several other
   packages in my install: JSON, Soup, AWS S3, etc. How do I go about
   installing those?
   - How do I install my main package? It’s in an Iceberg project.
   - How do I update my Iceberg project while it’s live?

I think those questions will get me into beta pretty quickly.

Thanks!




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


[Pharo-users] Formatting Dates

2019-02-06 Thread sergio ruiz
I have been using this to format dates:

printFormat: #(3 2 1 $/ 1 1 2)

which goes like:

printFormat: formatArray
"Answer a String describing the receiver using the argument formatArray."

^ String
new: 16
streamContents: [ :aStream | self printOn: aStream format: formatArray ]

But i am unclear on how to assemble this formatArray to get a date like:

mm/dd/

any ideas?

Thanks!


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


[Pharo-users] Pharo Launcher and Command Line

2019-02-05 Thread sergio ruiz
Hey, all.

I REALLY dig the pharo launcher! this is a great addition.

One quick question.

How do i go about running a method from the command line?

Specifically, I usually run something like:

./pharo Pharo.image ../scripts/setup-client-application.st

To set up a new image with the current project.

I am not sure which executable to run with this that will execute the same
executable as pharo launcher.

Thanks!


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] Pharo 7 image does not load

2019-01-23 Thread sergio ruiz
WOW!

Thanks so much for the in depth!

This prompted me to do the same thing with a new image..

If it turns out that this takes more than half an hour, i might just create
a new image and load my project up..

Thanks again!

On January 23, 2019 at 11:02:11 AM, Ben Coman (b...@openinworld.com) wrote:

Finding out which one of those line fails may provide a clue since it may
have the same root cause

thats all I got, sorry.
cheers -ben


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


[Pharo-users] Pharo 7 image does not load

2019-01-22 Thread sergio ruiz
I have been working in my image all day today, and it was working great.

This evening, when I went to fire it up, it appears to start, but I am not
seeing the image running. The icon hangs, and it does nothing.

Here is an my debug.log for just one iteration of this.

Any help would be appreciated!

https://gist.github.com/sergio101/c86396d10f6fea4923b59930ad44a2a0




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] [Iceberg] Loading my git project into a new image

2019-01-21 Thread sergio ruiz
Ah!

I have been using 6.0 as this project is going to be a seaside website on a
real production project..

Maybe I should try it in Pharo 7, and see if it works..

On January 21, 2019 at 9:16:12 AM, Sven Van Caekenberghe (s...@stfx.eu)
wrote:

Wow, this looks like a very old Iceberg. At least in Pharo 7 the UI (and I
guess functionality) is way different.


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] [Iceberg] Loading my git project into a new image

2019-01-21 Thread sergio ruiz
I am not able to get the packages view to load on my project.

How would I go about creating a baseline?

On January 21, 2019 at 4:00:01 AM, Sven Van Caekenberghe (s...@stfx.eu)
wrote:

For your own projects, you will have to create your own BaselineOf, which
is easier than creating a ConfigurationOf, BTW


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] [Iceberg] Loading my git project into a new image

2019-01-21 Thread sergio ruiz
You can also double click into the repository, or click on the "Packages"
menu.


For some reason, I am not  getting “Packages” in my menu:



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


[Pharo-users] [Iceberg] Loading my git project into a new image

2019-01-20 Thread sergio ruiz
I had a troublesome image today, so my first thought is to dump the image,
and load the packages back up in a new image.

While I can clone the the repo on in my new image using Iceberg, I can’t
figure out now to load the packages, now that they are loaded up via
iceberg.

under “loaded version” i see “no package loaded”. under “status” i see “not
loaded”..

Thanks!


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


[Pharo-users] My Pharo image is crashing

2019-01-20 Thread sergio ruiz
I have an image that I have been working on for a few weeks.

Today, when I went to edit a method, the image crashed, and it crashes
whenever I try to save.

normally, I wouldn’t care, but this one has a bunch of data (as Ordered
Collections in class variables).

The current size of the image is 198.6M. How big can they usually get
without problems? I saw the number 7G somewhere, so it seems fine.

Here is my error log: https://pastebin.com/2yWGCbAC

Any ides?

Thanks!


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


[Pharo-users] [Pharo MOOC] Object/Class Diagram generation

2019-01-03 Thread sergio ruiz via Pharo-users
--- Begin Message ---
Hey, all.

I was just wondering if anyone knew how the Pharo MOOC was creating their
Object/Class Diagrams like so:


Thanks!

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
--- End Message ---


[Pharo-users] Working with an entire project in git

2018-08-17 Thread sergio ruiz
Hey, all..

I was just checking in to see the progress of managing an entire project
with git.

The last I checked in, this was a work in progress.

My current pet project consists of a handful of classes with maybe two
handfuls of required packages.

Is the entire metacello configuration being handled on github yet?

I would like to work this into my workflow so that I can do something like:

- Grab a fresh Pharo
- Pharo.image ../scripts/setup-client-application.st where the setup script
just grabs the Configuration and loads and starts a fresh project.

Thanks!




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] Lazy vs eager initialization

2018-05-29 Thread sergio ruiz
This makes sense.. in the the cases i am writing now, all objects will, by 
definition, have a bunch objects in the collection..

Thanks!



On May 29, 2018 at 12:02:53 PM, Norbert Hartl (norb...@hartl.name) wrote:

Lazy initialization is good if you only want to assign additional objects when 
needed. So if it would be a storage optimization you could make it in a way 
that only those who have pets get a collection assigned. 

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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] Lazy vs eager initialization

2018-05-29 Thread sergio ruiz
If a model has a list of things.. such as a user that can/may have lots of 
pets, are there any real benefits to initializing the list of pets lazily?

like:

self pets := OrderedCollection new.

vs.

pets
 pets ifNil: [self pets: OrderedCollection new]
 ^ pets

thanks!


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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] [Errors] email on error?

2018-05-18 Thread sergio ruiz
Is there  a way to send an email on an error or exception?

I have an app that runs live on a remote server, and I am finding that every 
now and then, the server will lock up, and I won’t know what’s going on with it.

Currently, i pull the image and run it local, but an email with a stack trace 
would be SUPER helpful.

Thanks!




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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Voyage] How to declare an instance variable as transient?

2018-05-03 Thread sergio ruiz
ah! thanks!


On May 3, 2018 at 5:06:18 PM, Alejandro Infante (alejandroinfant...@gmail.com) 
wrote:

Hi Sergio,

You have to add a method to the class side with a pragma. In my case, I wanted 
to set the instance variable “questionReferences” to transient.

myClass class>>mongoQuestionReferences

^VOTransientDescription new
attributeName: 'questionReferences';
yourself

Cheers!
Alejandro

On Apr 30, 2018, at 3:21 PM, sergio ruiz <sergio@gmail.com> wrote:

Hi, all..

I have an instance variable that I don’t want to save as part of the full 
project. I was wondering how to set this up.

The documentation says:
Lastly, attributes can be excluded from storage (and hence retrieval) by re- 
turning a VOMongoTransientDescription instance as the attribute descrip- tor.

But I am not sure how to set this up in my class.

thanks! 



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


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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] [Voyage] How to declare an instance variable as transient?

2018-04-30 Thread sergio ruiz
Hi, all..

I have an instance variable that I don’t want to save as part of the full 
project. I was wondering how to set this up.

The documentation says:
Lastly, attributes can be excluded from storage (and hence retrieval) by re- 
turning a VOMongoTransientDescription instance as the attribute descrip- tor.

But I am not sure how to set this up in my class.

thanks! 



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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Voyage] Possible to save an OrderedCollection?

2018-04-27 Thread sergio ruiz
Ah.. ok. this did it..

So, this works, meaning that the production code i have in place is the 
problem..

I must have a loop somewhere..

I can’t find it for the life of me..



On April 27, 2018 at 4:10:53 PM, Esteban Lorenzano (esteba...@gmail.com) wrote:

did you add the property after doing some tests? 
in that case, you need to reset Voyage caché.

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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Voyage] Possible to save an OrderedCollection?

2018-04-27 Thread sergio ruiz
Hi, esteban..

In this case, the persisted object is TestBox..

it does show up just fine in Mongo, but the OrderedCollection of points does 
not.

On April 27, 2018 at 8:57:26 AM, Esteban Lorenzano (esteba...@gmail.com) wrote:


what you need to save is the persistent object, the one marked as 
“isVoyageRoot” in class side.

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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] [Voyage] Possible to save an OrderedCollection?

2018-04-27 Thread sergio ruiz

For some reason, I am not able to do this:

Object subclass: #TestBox
instanceVariableNames: 'origin corner pointList'
classVariableNames: ''
poolDictionaries: ''
category: 'PrintBot-Models’!

initialize
pointList := OrderedCollection new.


If i do something like below, I don’t see the list of points ever show up in 
mongo..

Ideas?

b := TestBox new.
b save.
p1 := Point x:0 y:0.
p1 save.
p2 := Point x:12 y:343.
p2 save.

b origin: p1.
b corner: p2.

b save.

b pointList add: p1.
b save.
b pointList add: p2.
b save.




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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] Creating a repository with Iceberg

2018-04-19 Thread sergio ruiz
Perfect..

works for me..

Thanks!


On April 19, 2018 at 2:42:08 PM, Bernardo Ezequiel Contreras 
(vonbecm...@gmail.com) wrote:

World>>System>>Settings>>Tools>>Software Configuration Management>>Iceberg 

and choose the 
File format type: tonel/filetree

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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] Creating a repository with Iceberg

2018-04-19 Thread sergio ruiz
I am just getting started with Iceberg.

In creating a new repo on my local machine, I keep getting this error:

Object>>doesNotUnderstand: #asSymbol

it has a beef with this line:

defaultFileFormat
^ Smalltalk at: self defaultFileFormatType asSymbol

Do i need to set this in my image?

Thanks!




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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] GemStone/S on Docker?

2018-04-10 Thread sergio ruiz

What do you mean by „something that doesn’t require refactoring“ ?


I used mongo voyager for a few projects.. i ended up having to refactor here 
and there to get it to work (to connect my data mongodb).. I’d like to try an 
object database.


I think to put GemStone/S on docker should be easy package wise. Years ago when 
I used GemStone I created these scripts

https://github.com/noha/stone-creator



great! i’ll take a look at this.

Thanks!



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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] GemStone/S on Docker?

2018-04-09 Thread sergio ruiz
Has anyone set up GemStone/S on Docker?

I have another project that I need persistence on. In the past, I have use 
voyager, but I’d really like to use something that doesn’t require refactoring. 
I was looking at Magma, but it looks like that is Squeak only.



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

signature.asc
Description: Message signed with OpenPGP using AMPGpg


  1   2   >