[Newbies] Re: debugging by using a global variable?

2016-04-21 Thread Joseph Alotta
Thank you.  I found the menu now.  Wow!  There is a lot of other interesting 
things there.


Sincerely,

Joe.


> On Apr 21, 2016, at 8:58 AM, Bert Freudenberg [via Smalltalk] 
>  wrote:
> 
> The menu item is behind the blue button in the workspace’s title bar:
> 
> 
> 
> - Bert -
> 
>> On 20.04.2016, at 21:00, Joseph Alotta <[hidden email]> wrote:
>> 
>> bert, 
>> 
>> thanks.  I heard something ding when I dragged it, but nothing happened.  I 
>> couldn’t find the item on the menus. 
>> 
>> Sincerely, 
>> 
>> Joe. 
>> 
>> 
>> > On Apr 20, 2016, at 10:53 AM, Bert Freudenberg [via Smalltalk] <> > href="x-msg://213/user/SendEmail.jtp?type=nodenode=4891050i=0" 
>> > target="_top" rel="nofollow" link="external" class="">[hidden email]> 
>> > wrote: 
>> > 
>> > 
>> > > On 20.04.2016, at 17:19, Joseph Alotta <[hidden email]> wrote: 
>> > > 
>> > > Greetings, 
>> > > 
>> > > My code has some complex parts and I think it would be good to pull 
>> > > parts of it out and practice with it in a workspace window. 
>> > > 
>> > > For example, I have an Array of Transaction objects, that is a instance 
>> > > variable.  It is mostly populated from reading a file. 
>> > > 
>> > > What would be the best method to extract this array? 
>> > > 
>> > > Assign it to a global variable? 
>> > That’s one way to do it. 
>> > 
>> > You can also drag that instance variable from the inspector to the 
>> > workspace, which will create a variable reference. 
>> > 
>> > In the latest trunk image this should work seamlessly: If you drop an 
>> > Array, the workspace variable will be named something like “array12345” 
>> > and be bound to that Array. 
>> > 
>> > In the stable release image, you have to first enable the workspace’s 
>> > “accept dropped morphs” flag from its menu button. It will create a 
>> > variable named “transfer12345” and put the morph in it. You will have to 
>> > refer to the Array as “transfer12345 passenger”. 
>> > 
>> > - Bert - 
>> > 
> 
> 
> 
> ___ 
> Beginners mailing list 
> [hidden email] 
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> 
>  smime.p7s (5K) Download Attachment
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://forum.world.st/debugging-by-using-a-global-variable-tp4891014p4891186.html
> To start a new topic under Squeak - Beginners, email 
> ml-node+s1294792n107673...@n4.nabble.com 
> To unsubscribe from Squeak - Beginners, click here.
> NAML





--
View this message in context: 
http://forum.world.st/debugging-by-using-a-global-variable-tp4891014p4891234.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: debugging by using a global variable?

2016-04-21 Thread Bert Freudenberg
The menu item is behind the blue button in the workspace’s title bar:



- Bert -

> On 20.04.2016, at 21:00, Joseph Alotta  wrote:
> 
> bert, 
> 
> thanks.  I heard something ding when I dragged it, but nothing happened.  I 
> couldn’t find the item on the menus. 
> 
> Sincerely, 
> 
> Joe. 
> 
> 
> > On Apr 20, 2016, at 10:53 AM, Bert Freudenberg [via Smalltalk] <[hidden 
> > email] > wrote: 
> > 
> > 
> > > On 20.04.2016, at 17:19, Joseph Alotta <[hidden email]> wrote: 
> > > 
> > > Greetings, 
> > > 
> > > My code has some complex parts and I think it would be good to pull parts 
> > > of it out and practice with it in a workspace window. 
> > > 
> > > For example, I have an Array of Transaction objects, that is a instance 
> > > variable.  It is mostly populated from reading a file. 
> > > 
> > > What would be the best method to extract this array? 
> > > 
> > > Assign it to a global variable? 
> > That’s one way to do it. 
> > 
> > You can also drag that instance variable from the inspector to the 
> > workspace, which will create a variable reference. 
> > 
> > In the latest trunk image this should work seamlessly: If you drop an 
> > Array, the workspace variable will be named something like “array12345” and 
> > be bound to that Array. 
> > 
> > In the stable release image, you have to first enable the workspace’s 
> > “accept dropped morphs” flag from its menu button. It will create a 
> > variable named “transfer12345” and put the morph in it. You will have to 
> > refer to the Array as “transfer12345 passenger”. 
> > 
> > - Bert - 
> > 





smime.p7s
Description: S/MIME cryptographic signature
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: Help!! screenshot bounced

2016-04-21 Thread Bert Freudenberg
If you do this more often, you don't have to do it manually.

E.g. when I press my keyboard shortcut for screenshot, it saves the file to a 
Dropbox folder and puts its public URL in the clipboard. Then I paste the URL 
into my mail. So it's press key - select screen region - press another key, 
which for me is even quicker than attaching the file to the email.

- Bert -

> On 20.04.2016, at 21:00, Joseph Alotta  wrote:
> 
> okay, i did, but it shouldn’t be this hard. 
> 
> 
> > On Apr 20, 2016, at 10:18 AM, Bert Freudenberg [via Smalltalk] <[hidden 
> > email]> wrote: 
> > 
> > On 20.04.2016, at 17:42, Joseph Alotta <[hidden email]> wrote: 
> > > 
> > > I would like to send the list a screenshot of my problem, but it bounced. 
> > >  What is the appropriate way of sharing a screenshot? 
> > 
> > Upload your screenshot somewhere and send the URL to the list. 
> > 
> > - Bert - 
> > 
> > 
> > 
> > 
> > ___ 
> > Beginners mailing list 
> > [hidden email] 
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> > 
> >  smime.p7s (5K) Download Attachment 
> > 
> > 
> > If you reply to this email, your message will be added to the discussion 
> > below: 
> > http://forum.world.st/Help-screenshot-bounced-tp4891019p4891022.html
> > To start a new topic under Squeak - Beginners, email [hidden email] 
> > To unsubscribe from Squeak - Beginners, click here. 
> > NAML
> 
> 
> View this message in context: Re: Help!! screenshot bounced
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> ___
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Re: Help! can't see inside a Bag

2016-04-21 Thread Bert Freudenberg
You can include a screenshot, there just is a size limit :)

If you crop the shot to the relevant part, and compress it as PNG, it usually 
fits. It's also polite to shorten the quoted emails to the relevant sections 
(which cuts down on size too).

- Bert -

> On 21.04.2016, at 01:38, Joseph Alotta  wrote:
> 
> How did you put the screen shot in your email?
> 
> Sent from my iPhone 
> 
>> On Apr 20, 2016, at 4:54 PM, cbc [via Smalltalk] <[hidden email]> wrote:
>> 
>> 
>> 
>>> On Wed, Apr 20, 2016 at 2:25 PM, Joseph Alotta <[hidden email]> wrote:
>>> There is a possibility of duplicates.  For example, if I go to Starbucks 
>>> buy a coffee, then buy a second cup.  There would be two transactions same 
>>> amount, same day. 
>>> 
>>> What about OrderedCollection? 
>>> 
>> OrderedCollection would also work, especially if you want to see what order 
>> they happened in. If you just care about counting the times it happened, Bag 
>> might be better.
>>  
>>> How do I send #asSet to the bag, give that the bag is an instance variable 
>>> in my larger object? 
>>> 
>> In the explorer (right where you tried exploring the dictionary value in the 
>> bag), select the bag variable.
>> Then, down int eh bottom pane, type in 
>>self asSet
>> and explore that.
>> 
>>> 
>>> 
>>> 
>>> 
>>> > On Apr 20, 2016, at 2:43 PM, cbc [via Smalltalk] <[hidden email]> wrote: 
>>> > 
>>> > HI Joe, 
>>> > A Bag is a structure to hold multiple, possibly repeating, objects in it. 
>>> >  One of the benefits is to know how many times an object is inside of the 
>>> > bag - how many times it repeats. 
>>> > 
>>> > Bag is implemented with a Dictionary it in - the key is the objects that 
>>> > you put into the bag, and the value is the count of how many times it was 
>>> > put into the bag (hence all of the 1's that you see - they were probably 
>>> > just added once to the bag). 
>>> > 
>>> > The explorer is optimized to make Dictionary navigation fast and 
>>> > convenient for normal Dictionaries - you can see and select the key, and 
>>> > get to see the details of the values in the dictionary. 
>>> > It is not optimized for looking at the dictionary in the Bag, where you 
>>> > care about the key (and mostly not about the value - at least for your 
>>> > use case). 
>>> > 
>>> > To explore the values in the Bag, I would suggest one of two ways of 
>>> > getting at the data: 
>>> > 1> send #asSet to the bag, and explore that 
>>> > 2> send #keys to the dictionary, and explore that 
>>> > Either should work. 
>>> > 
>>> > One more thing to think about - if you aren't going to have multiples of 
>>> > your Transaction objects (or don't care to know that you have multiple of 
>>> > them) in your Bag, you might want to consider using a Set instead. 
>>> > 
>>> > Thanks, 
>>> > cbc 
>>> >
>>> > On Wed, Apr 20, 2016 at 12:31 PM, Joseph Alotta <[hidden email]> wrote:
>>> 
>>> > Help! 
>>> > 
>>> > 
>>> > I have a data structure as the screenshot below shows. 
>>> > 
>>> > There is a Bag with Transaction objects. 
>>> > 
>>> > I can’t see inside the Transaction objects? 
>>> > 
>>> > Why is there a Dictionary? 
>>> > 
>>> > I can see the beginning of the transaction data, but I can’t the the 
>>> > whole line? 
>>> > 
>>> > When I explore, it opens a window on Integer 1.  Where are all the 1s 
>>> > coming from? 
>>> > 
>>> > 
>>> > Sincerely, 
>>> > 
>>> > Joe. 
>>> > 
>>> > 
>>> > here is the link: https://www.flickr.com/photos/jalotta/26480315621/
>>> > 
>>> > 
>>> > 
>>> > ___ 
>>> > Beginners mailing list
>>> > [hidden email]
>>> 
>>> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>> > 
>>> > 
>>> > ___ 
>>> > Beginners mailing list 
>>> > [hidden email] 
>>> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>> > 
>>> > 
>>> > If you reply to this email, your message will be added to the discussion 
>>> > below: 
>>> > http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891054.html
>>> > To start a new topic under Squeak - Beginners, email [hidden email] 
>>> > To unsubscribe from Squeak - Beginners, click here. 
>>> > NAML
>>> View this message in context: Re: Help! can't see inside a Bag
>>> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>>> 
>>> ___
>>> Beginners mailing list
>>> [hidden email]
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>> 
>> 
>> 
>> ___ 
>> Beginners mailing list 
>> [hidden email] 
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>> 
>> 
>> If you reply to this email, your message will be added to the discussion 
>> below:
>> http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891078.html
>> To start a new topic under Squeak - Beginners, email [hidden email] 
>> To unsubscribe from Squeak - Beginners, click