Rojo
Reputation
31,766
503/400 score
 Jun 26 comment Is this the most efficient way to round approximate integers to integers while leaving other Reals untouched? Thanks! That was the kind of code I had the hunch I wasn't seing Jun 26 comment Is this the most efficient way to round approximate integers to integers while leaving other Reals untouched? +1. Btw, do you see a better way to do the simple following operation than what I did with Extract? Given 3 lists of equal length, build an equal sized fourth list such that the third is an indicator of whether to take the element from the first or second list. e.g l1={a, b, c};l2={aa, bb, cc}; indicator={1, 2, 1}; output is {a, bb, c} Jun 26 awarded Nice Answer Jun 26 comment Is this the most efficient way to round approximate integers to integers while leaving other Reals untouched? I hadn't even read the last part of your answer, and missed the simplest and fastest solution, and started compiling. Shameful +1!! Jun 25 comment Implementing efficient multiple undo @GarouDan it could help, but no more than clicking on Undo which seems to only work once in a row. Could you get that to work more than once in a row? Jun 25 revised Dialog inside dialog not DialogReturn-ing properly added 222 characters in body; deleted 5 characters in body Jun 25 comment How can I defer the loading of a PopupView control until it is used? Let me make sure I understand. You have a PopupView whose list elements take long to execute, and you want them to only execute when you open the PopupView? Jun 25 comment Can I use Table without the appropriate bounds? @MaxM, I don't think Table can be used like that for analytical problems. You probably have to adapt your question giving more specifics of the problem at hand, to get real help Jun 25 comment How can I defer the loading of a PopupView control until it is used? A simple If[filelist==={}, #, PopupView[filelist, ...]]&[Button...] can fix the layout, but you would still need to click Edit twice before the popup appears Jun 25 revised Can I use Table without the appropriate bounds? added 362 characters in body; added 12 characters in body Jun 25 answered Can I use Table without the appropriate bounds? Jun 24 answered Anti-aliasing with the multiple-object form of Polygon? Jun 24 comment Anti-aliasing with the multiple-object form of Polygon? Also, setting the Antialiasing->True globally instead of Automatic, fixes this, but I have no idea what other sideeffects it has Jun 24 comment Anti-aliasing with the multiple-object form of Polygon? It seems with antialiasing on, you get seams between adjacent polygons. It's in the end of possible issues in the Polygon docs. So probably it assumes that by default, with the multiple-polygon syntax form it's more important to avoid seams for adjacent polygons and with the several distinct polygons antialiasing is more important. Just an idea Jun 24 revised Dialog inside dialog not DialogReturn-ing properly added 45 characters in body Jun 24 comment Sorting a list and finding an array of indices that sorts the list Also, if you need both, you might first do Ordering and then b=a[[c]] Jun 23 comment Creating a Sierpinski gasket with the missing triangles filled in Wonderfullll +1 Jun 23 comment Passing unquoted strings (poor man's enumeration) I was aboooout to post the same. +1 Jun 23 revised Dialog inside dialog not DialogReturn-ing properly added 9 characters in body Jun 23 revised Dialog inside dialog not DialogReturn-ing properly added 9 characters in body; edited body