# Re: Learning Shoes - Have some questions!

**URL:** <https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255>\
**Category:** Ruby\
**Created:** [September 20, 2010, 4:28pm UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255 "2010-09-20T16:28:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 20, 2010, 4:28pm UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255/1 "2010-09-20T16:28:44Z")

</div>

Hi Ruby S.,

> I tried subscribing to removed\_email\_address@domain.invalid but it was impossible!  
> `.org`?  
> I’m not sure it’s okay or not.  
> But according to this Librelist web page: [http://librelist.com/](http://librelist.com/)  
> You should send your email to removed\_email\_address@domain.invalid.

Try again and if you couldn’t subscribe. You may be better to send your  
mail to removed\_email\_address@domain.invalid like this:  
[http://librelist.com/browser//meta/2010/7/28/cannot-subscribe-flask-librelist-com/](http://librelist.com/browser//meta/2010/7/28/cannot-subscribe-flask-librelist-com/)

> I am attaching my image so you can analyze it and comment on it.  
> The image was rejected by the ruby forum.  
> Could you upload the image to some free web site?

> 1 -  
> how can I tell Shoes to place them on the center of the pane,  
> without having to specify margin?  
> How about the following?

Shoes.app do  
five\_buttons\_width = (46 + 2) \* 5  
seven\_buttons\_height = (40 + 2) \* 7

flow :width =\> five\_buttons\_width,  
:left =\> (width - five\_buttons\_width) / 2,  
:top =\> (height - seven\_buttons\_height) / 2 do  
%w(7 8 9 + sin  
4 5 6 - cos  
1 2 3 \* sinh  
tan cot 0 ln /  
cosh Exp log tanh =  
Mod n! sqrt x_2 x_y  
% e Pi Clr Ce  
).each do |btn|  
button(btn, :width =\> 46, :height =\> 46){}  
end  
end  
end

> 2 -  
> using a stack to keep items within a flow one on top of the other  
> Oh, good idea.  
> But if you need two groups of radio buttons, you should add something  
> like this:

Shoes.app do  
flow :margin =\> 6 do  
radio :a; para strong(“512b BK”)  
radio :a; para strong(“1K BK”)  
radio :a; para strong(“MB”)  
radio :a; para strong(“GB”)  
radio :a; para strong(“TB”)  
stack  
radio :b; para strong(“Deg”)  
radio :b; para strong(“Rad”)  
radio :b; para strong(“Grad”)  
radio :b; para strong(“DEC”)  
radio :b; para strong(“HEX”)  
radio :b; para strong(“BIN”)  
end  
end

Or simply use two flows in one stack like this:

Shoes.app do  
stack do  
flow :margin =\> 6 do  
radio; para strong(“512b BK”)  
radio; para strong(“1K BK”)  
radio; para strong(“MB”)  
radio; para strong(“GB”)  
radio; para strong(“TB”)  
end  
flow :margin =\> 6 do  
radio; para strong(“Deg”)  
radio; para strong(“Rad”)  
radio; para strong(“Grad”)  
radio; para strong(“DEC”)  
radio; para strong(“HEX”)  
radio; para strong(“BIN”)  
end  
end  
end

> 3 -  
> I tried to use the Pi symbol and the square root symbol and  
> other symbols as caption/lable for the corresponding buttons  
> Need to add some encoding like this:

Shoes.app do  
root = [8730].pack ‘U’  
pi = [928].pack ‘U’  
button root.force\_encoding “UTF-8”  
button pi.force\_encoding “UTF-8”  
end

You can find unicode number on this website:  
[http://ideas.paunix.org/utfrefcon.htm](http://ideas.paunix.org/utfrefcon.htm)

> 4 -  
> What is the difference between para and caption?  
> Almost the same, except font size.  
> Look at Shoes manual: [http://shoes.heroku.com/manual/TextBlock.html](http://shoes.heroku.com/manual/TextBlock.html)

> 5 -  
> How can I reduce the space between flows?  
> Umm,… I’m not sure what you want to do. Does the following help you?

Shoes.app do  
flow{para ‘aaa’}  
flow{para ‘aaa’}  
flow(height: 20){para ‘aaa’}  
flow(height: 20){para ‘aaa’}  
end

Cheers,  
ashbb

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 25, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255/2 "2010-09-25T22:18:59Z")

</div>

I truly appreciate the help from everyone.

_Couple more questions:_

On Mon, Sep 20, 2010 at 10:28 AM, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi Ruby S.,
> 
> > I tried subscribing to removed\_email\_address@domain.invalid but it was impossible!  
> > `.org`?  
> > I’m not sure it’s okay or not.  
> > But according to this Librelist web page: [http://librelist.com/](http://librelist.com/)  
> > You should send your email to removed\_email\_address@domain.invalid.
> 
> Try again and if you couldn’t subscribe. You may be better to send your  
> mail to removed\_email\_address@domain.invalid like this:  
> [http://librelist.com/browser//meta/2010/7/28/cannot-subscribe-flask-librelist-com/](http://librelist.com/browser//meta/2010/7/28/cannot-subscribe-flask-librelist-com/)  
> Shoes.app do  
> five\_buttons\_width = (46 + 2) \* 5  
> seven\_buttons\_height = (40 + 2) \* 7  
> _Where these numbers, (46 + 2) \* 5 and (40 + 2) \* 7 come from? I guess  
> the  
> 46 is the width of my buttons, but what about the hight, which I also  
> defined as 46?_

> ```
> % e Pi Clr Ce
> 
> ```
> 
> ).each do |btn|  
> button(btn, :width =\> 46, :height =\> 46){}  
> end  
> end  
> end
> 
> > 2 -  
> > using a stack to keep items within a flow one on top of the other  
> > Oh, good idea.  
> > But if you need two groups of radio buttons, you should add something like  
> > this:  
> > radio :b; para strong(“Rad”)  
> > radio :b; para strong(“Grad”)  
> > radio :b; para strong(“DEC”)  
> > radio :b; para strong(“HEX”)  
> > radio :b; para strong(“BIN”)  
> > end  
> > end

_What is the effect of the :a and :b flags? I noticed the actual radio  
button very closed to the previous label._

> end
> 
> end  
> _Sorry, but I still could not get the pi symbol!_

> > How can I reduce the space between flows?  
> > ashbb

Thank you

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 26, 2010, 2:02am UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255/3 "2010-09-26T02:02:35Z")

</div>

Hi Ruby S.,

> Couple more questions:  
> Okay.  
> But one question. Could you success to join Shoes ML  
> (removed\_email\_address@domain.invalid)?

> Where these numbers, (46 + 2) \* 5 and (40 + 2) \* 7 come from?  
> I guess the 46 is the width of my buttons, but what about the hight,  
> which I also defined as 46?  
> Oh, sorry. My fault. You are right. They represent width and height.  
> Both 46 is correct.

> What is the effect of the :a and :b flags?  
> I noticed the actual radio button very closed to the previous label.  
> They represent group names.  
> Look at Shoes Manual: [http://shoes.heroku.com/manual/Radio.html](http://shoes.heroku.com/manual/Radio.html)

> Sorry, but I still could not get the pi symbol!  
> Oops, also my fault.  
> Unicode number 928 is upper-case letter of pi.  
> Try to use 960 for lower-case letter of pi.

Hope this helps,  
ashbb

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 26, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255/4 "2010-09-26T17:29:37Z")

</div>

On Sat, Sep 25, 2010 at 7:58 PM, ashbb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi Ruby S.,
> 
> > Couple more questions:  
> > Okay.  
> > But one question. Could you success to join Shoes ML (removed\_email\_address@domain.invalid  
> > )?

Well, I re-tried AGAIN, yesterday. I replied to the first email as  
requested  
and nver heard back! There appear to be something wrong with the  
automated  
registration process.

> Look at Shoes Manual: [http://shoes.heroku.com/manual/Radio.html](http://shoes.heroku.com/manual/Radio.html)
> 
> Sure, sorry: RTFM!!! Got it!

> > Sorry, but I still could not get the pi symbol!  
> > Oops, also my fault.  
> > Unicode number 928 is upper-case letter of pi.  
> > Try to use 960 for lower-case letter of pi.
> 
> Great, it works!

> Hope this helps,  
> ashbb

Thank you very much for your help. I truly appreciate it!

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 27, 2010, 3:45pm UTC](https://www.ruby-forum.com/t/re-learning-shoes-have-some-questions/195255/5 "2010-09-27T15:45:27Z")

</div>

Hi Ruby S.,

> Well, I re-tried AGAIN, yesterday. I replied to the first email as  
> requested  
> and nver heard back! There appear to be something wrong with the automated  
> registration process.

Umm,…  
Have you read this page? [http://librelist.com/status.html](http://librelist.com/status.html)

Sorry, I’ve no idea. Hope someone help us.

ashbb
