How can I fix an Inset plot to the top right corner of the main plot?

I want to export multiple plots and always have a small picture of another plot in the top right corner (as there is no data of the main plot in this region). However, it would be nice if I didn’t have to set the position argument in Inset[] manually, as my y-values change for every plot. Thank you for any help! Below is an example of my code with the export part cut out off the For-loop. The issue is in the last line of the code, where I try to determine the position of the Inset-plot depending on the y-values, which is not working very well.

For[zz = 1, zz <= 4, zz++,  LargeRangePlotLargeM =    ListPlot[{ DeltaDeltaPPS2to5LargeM[[zz]],       DeltaDeltaRS2to5LargeM[[zz]], DeltaDeltaPRS2to5LargeM[[zz]],      DeltaDeltaGHZ2to5LargeM[[zz]]}, PlotMarkers -> "OpenMarkers",     PlotRange -> All];  LargeRangePlotWithLargeM =    ListPlot[{DeltaDeltaPPS2to5[[zz]], DeltaDeltaRS2to5[[zz]],      DeltaDeltaPRS2to5[[zz]], DeltaDeltaGHZ2to5[[zz]]},     PlotLegends -> {"PPS", "RS", "PRS",  "GHZ"},      AxesLabel -> {"M", "FSA"},     PlotLabel -> StringForm["N = ``", zz + 1],     PlotMarkers -> "OpenMarkers",  PlotRange -> All,     Epilog ->      Inset[LargeRangePlotLargeM, {750,        2 * DeltaDeltaGHZ2to5[[1]][[2]][[2]]}]]; ] 

Simpler code with the same question might look like this:

p2 = Plot[Sin[x], {x, 0, \[Pi]}]; pcombined =   Plot[Sin[x], {x, 0, 2 \[Pi]}, Epilog -> Inset[p2, {5, 0.5}]] 

How do I now define the position argument inside Inset in a way that it moves the plot to the top right corner without having to choose plot specific values manually?

Placement of Help button: left or right to OK/Cancel

I’m adding help to a Windows desktop application that is being in use since the Windows XP era. All the modal dialogs display the typical OK/Cancel button set placed at the bottom right as shown in this example/placeholder screenshot (in fact no MessageBox has a Help button):

enter image description here

I wish to cause minimal confusion to my users after the next release that’s why I hesitate to place the Help button right to the Cancel button. The standardized order shown by the Win32 MessageBox function when called with MB_OKCANCEL | MB_HELP in the uType parameter would shift the already existing buttons to right (replacing OK by Cancel and Cancel by Help) like this:

enter image description here

I searched the web for this, but it turned out to be very hard to get useful answers when combining help, button, and placement, nevertheless I found some screenshots with help buttons bottom left which looks good and useful from my POV.

Where should I place the Help button to the dialogs of an old-fashioned application?

Regular expression and Right Regular grammar for decimals starting with 1 ending with 9?

I was trying to do the following:

Consider the set of all strings over the alphabet { 0,1,2,9,.}{ 0,1,2,9,.} that are decimal numbers beginning with 1 and ending with 9 and having exactly one decimal point (..). For example 12.912.9, would be a valid decimal number while 0.1290.129 would be not since it does not begin with 11.

but it didn’t seem to work:

1(0|1|2|9)*.(0|1|2|9)*9 

or

S::=1X X::=E|0X|1X|2X|9X|Y Y::=.Z Z::=E|0Z|1Z|2Z|9Z|A A::=9 

Why? Whats the correct answer?

Removing / Editing Desktop Right Click Actions 16.04

I would like to remove the ‘Organize Desktop by Name’ action, or at least edit the desktop right click menu to put an indent between ‘paste’ and ‘Organize Desktop by Name’, so I don’t keep mucking up my desktop icon layout when I missclick and hit the latter when intending to hit the former.

Nautilus actions helps define and add new actions, but I’ve been unable to use it to remove already existing actions.

Any help is much appreciated.

Where and when did “the GM is always right” get codified first?

In a recent answer about GM-ming in D&D, I had to resort to a certain “universal” rule I’m familiar with: “the GM is always right”. Upon this doppelgreener correctly pointed out that it is not universal about all games but a/the core of the D&D mentality. In the chat then kviiri pointed out that “The GM is always right” is actually a pretty crap rule by itself. This “universal rule” also might have other names, like “Golden Rule” or “Rule 0”, but that is not part of the question.1

Now I wonder: Where and when did “The GM is always right” or rather “The GM has the final say in any question” actually got codified in an RPG for the first time?

This is not about when the GM is asked to improvise or to handle something akin to his own GM Fiat; it is about where such a statement was first mentioned in a print product explicitly or implicitly. It has been used in various variants as far as I know, and to various extents. Some examples of these “The GM is always right” statements:

  • Hc Svnt Dracones, p5:

    The Guide […]They also have the final call on rules disputes and typically control what stays and what goes if something seems out of line.

  • Sengoku Revised Edition, p7:

    The GM Rules – This is not a democracy. The GM is the boss. You should feel free to ask questions, but when a ruling is made, accept it.

  • And in Paranoia 25th Aniversary Edition, p40 (and in this case the emphasis is not added):

    GM Rule #1. You are IN CHARGE. You are ALWAYS RIGHT.

    We give you these rules as guidance. Use them when you do not know what you’d like to have happen in the game. When you do know, ignore them. We have tried to make the rules as helpful and powerful as we can, but if you don’t like a rule, the rule is wrong. Good rules help a lot but bad rules were made to be broken, tortured, lobotomised and summarily executed. Dice are handy for giving players the illusion they control their destiny. This is valuable but roll your dice out of the players’ sight, behind a screen. If a die roll gives you a result you don’t like, the die is wrong. Change the result to the number you want. You can dock the die credits or beat it up, though in our experience this has little effect.


1 – I am fully aware that both Golden Rule and Rule 0 sometimes refer to “GM is right” and sometimes to “Have fun”.