-1
$\begingroup$

INTRODUCTION:

I am a programmer who saw this site "from" StackOverflow in hope to ask here for help with a specific problem. Things developed reasonably well, but the answer I got did not entirely solved my question.

Trying to solve this on my own, based on data from the provided answer, I got a thought for a new question but I need communities help to phrase it well:

I have 2 rectangles, let us mark them R1 and R2 for easier reading. R1 has constant dimensions, and R2 is calculated by a function that took R1 as an input.

R2 should have the same width as R1 but I have no control over the function and final result can return R2 with shorter/longer width. The workaround I came up with is to "clip" the extra width, and to transform that part somehow ( this is where you people "kick in" ) into rectangle that has the same width as R1 thus simply "gluing" it to the bottom of the R2. I have made a small image that should help you understand what I said above:

enter image description here

Blue is the rectangle function returns. Pink portion on the right is the part I want to "clip", "transform it" and simply adjust blue rectangle's width and height.

QUESTION:

Since this is meta, I ask you to suggest me a title and tag(s) that would describe this problem the best, to those interested to help me.

Thank you.

$\endgroup$

closed as off-topic by Rahul, user61527, Asaf Karagila, Michael Albanese, gnometorule Jul 12 '14 at 17:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Mathematics Stack Exchange or the software that powers the Stack Exchange network within the scope defined in the help center." – Rahul, Community, Asaf Karagila, Michael Albanese, gnometorule
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ -1 This question is off-topic for math.SE's meta. $\endgroup$ – achille hui Jul 11 '14 at 16:17
  • $\begingroup$ @achillehui: OK, thank you. $\endgroup$ – AlwaysLearningNewStuff Jul 11 '14 at 16:28
  • 1
    $\begingroup$ Just give the title your best shot--if someone can think of a better one, they'll edit it in. $\endgroup$ – apnorton Jul 11 '14 at 17:16
2
$\begingroup$

I can't suggest a title, since I don't understand the question. In particular, it's unclear to me whether you want to move the content to that new position, or just obtain new dimensions. The latter would be fairly easy, but could be stated more concisely without all the background information. The former will depend a lot on why the dimensions don't match, which would make it a poor fit for Math SE.

In my personal opinion (and others might disagree), your question has proceeded as far as it can from a mathematical point of view. Now it's down to dirty details of typesetting algorithms, where limited information will result in a lot of guesswork. I'd suggest taking this back to Stack Overflow.

No matter where you post this, you should be sure to include relevant information. The way I read the link you provided, the new area will be too wide if a single word is wider than the desired output width. In which case you can't simply move that extra content to the bottom somehow, but instead will have to adjust the font size so that that single word will fit the desired width, and perhaps pad the height to center things. If the output is smaller, then that's either due to hard line breaks or the lengths of words, and in either case you can now adjust font merely based on height, padding horizontally.

For the future: I'd suggest you don't ask every question twice, once on Meta to prepare and once for real after getting feedback. Instead, simply ask the question, and indicate (perhaps in an introductory paragraph) that you are not yet convinced of on-topicness, title, tags or whatever, and that you invite people to edit and adjust the latter two, or to downvote / vote to close to indicate that they don't think it on topic. That way, people won't have to read your questions twice, and meta stays more meta.

$\endgroup$
  • $\begingroup$ Sorry for the ambiguous question, I was trying to modify the calculated rectangle so it can have the same width as the source one. I hoped that your formula would work flawlessly ( there was only one case where it failed ). Padding height for centering would not be hard, but I can't understand how to adjust the font size so that that single word will fit the desired width part. If you could edit this post ( or your answer to my linked question above ) I would appreciate it. After this last try, I will award the bounty since I agree with you about taking this back to Stack Overflow part. $\endgroup$ – AlwaysLearningNewStuff Jul 11 '14 at 15:52

Not the answer you're looking for? Browse other questions tagged .