The New Image modal dialog in the Disk Utility application (on OS X 10.10.5) opens up with the Cancel button off the bottom of my MacBook Air 11's built-in display.  The green resize button, option resize, and option Window : Zoom don't bring it back on-screen.  How can I get the Cancel where I can see it to close the modal dialog, and/or do something else if another readable button appears to so allow?  Note that the answer to this question:  does not work with the Disk Utility New Image dialog on an MBA 11 (which appears to behave differently from a plain file-picker dialog).  ESC will close the window, but not allow you to actually see the Close button or any other useful buttons nearby for other operations.  Shift-drag-resize by mouse will expand but not shrink the New Image modal sheet enough on an MBA 11.  Making the Disk Utility window full-screen beforehand will not resize the New Image sheet to fit the MBA 11 display.  Any other ideas?
My chooser (file-picker dialog) goes under the dock so I can't see buttons. What can I do?
If I have an adjacency matrix for a graph, can I do a series of matrix operations on the adjacency matrix to find the connected components of the graph? I'm pulling items out of the DOM with jQuery and want to set a property on an object using the id of the DOM element.   Example  const obj = {}  jQuery(itemsFromDom).each(function() {   const element = jQuery(this)   const name = element.attr('id')   const value = element.attr('value')    // Here is the problem   obj.name = value })   If itemsFromDom includes an element with an id of "myId", I want obj to have a property named "myId". The above gives me name.  How do I name a property of an object using a variable using JavaScript? How do I learn to become a good GM? I have played and tried to GM games since I was in elementary school, beginning with games like Shadowrun, Earthdawn, and Champions. Recently, I've gotten dack into gaming with a variety of other games (newer Shadowrun and Earthdawn, plus TOON! and Outbreak:Undead).  I've found examples of actual play and advice on how to actually GM a game in games to be lacking. I can only help but feel I am not alone as someone who isn't already a LITERAL dungeon MASTER.  I fully realize that there are an unlimited number of GM styles, personalities, etc. I do not think I am a very good GM though. No one else wants to be the GM, and few care enough to learn the complex rules that I often have to assist with and explain AS WE PLAY. Being left with the responsibility is quite overwhelming unless I create dynamic encounters or make it all up on the spot. I'm often left having no idea what to do.  Examples of Why I Think I Need Help  This question isn't about these examples so please don't dig into them in the answers - they're here to explain the basic things that leave me feeling like I don't know how to proceed as a GM.  I've read preparation is important, but last time I tried to make a story, the players immediately killed the primary character (a friendly person.) within about 2 minutes of starting the game. While I realize now that I let the dice take control over the story, it was rather difficult to continue a story that relied on this friendly character, with the players making enemies with the character's faction. It is still discouraging when my only other attempt at a prepared story ended with the players wanting to go in a complete opposite direction of where I planned. Both times, the hours of work I put into it were completely wasted, leaving me as ignorant as I always was before.  My group often wants to play Shadowrun, Earthdawn, or L5R- but I feel as though I am a horrible GM. The last time we played Shadowrun, I was bored out of my mind as we rolled hundreds of dice to do an obvious straight-forward "kick down the door" mission.   If I make security as I believe it should or as the forum threads describe their security or a few example missions I can scrounge up (examples of stories, not actual gameplay), my players literally feel completely hopeless as to how to achieve their mission without total failure.   One time when I was a teenager, I had players blow up at me saying "We have no idea what would work. You're telling us that our character's experience or the ally operative says that would get us killed, but what else can we do?" Since there are no examples of what players can do - I am left with the same feeling as the players. As an adult, I've had a similar occurrence where a player said to me, "I don't know what to do. I don't think we can even begin this mission." I had to make something up and just go with it, creating an NPC group (that fit in with the story) that goes in before the players to do something stupid so they don't have to. Mainly because I ALSO didn't know how to accomplish the mission, so I acted as the players would using my NPC group. Extremely boring and IMO a failed dungeon run.  I've had successful stories, but I've had more boring encounters than successful ones. Seeing as how roleplaying takes endless hours to complete a story, I do not see benefit in an activity that wastes more time than is enjoyable.  How Do You Learn To GM?  Where are the resources? Books, blogs, gameplay examples? Am I missing them? How did YOU learn to be a good GM? Or do you feel as bad at this as I do, even when it's a successful, fun encounter? Filesystem owner changed by mistake I ran this command on my ubuntu 12.04 by mistake:  chown someuser / -R   On RHEL it would be fixed by this command:  rpm --setugids -a   Is there anyway to fix it in ubuntu server? SQL Server replication subscriptions marked as inactive Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive? Least expensive way to boost DC voltage What would be the least expensive way to boost a DC voltage?   The aim is to convert 1.2&nbsp;V/1.5&nbsp;V (from an AA/AAA cell) to 3.3&nbsp;V to power a small 8-bit microprocessor, like Atmel ATtiny45 or ATtiny2313, and also (if possible) 6&nbsp;V to power a buzzer.  Also, what would be the maximum current one could draw safely from an alkaline battery, after boosting it to 3.3&nbsp;V/6&nbsp;V?  Finally, how I could compute the duration for which the alkaline battery would last, given a certain consumption? How can I change PulseAudio port priorities? I list sources and sinks as follows:  pactl list sources pactl list sinks   The output I get is:  ...     Ports:         analog-input-internal-mic: Internal Microphone (priority: 8900)         analog-input-headphone-mic: Microphone (priority: 8700)         analog-input-headset-mic: Headset Microphone (priority: 8800) ...     Ports:         analog-output-speaker: Speakers (priority: 10000)         analog-output-headphones: Headphones (priority: 9000, available)    How do I change the priorities listed above and have them fixed at what I change them to? Note that I am not looking to set a default source and sink or to delete unwanted sources or sinks, I just want to be able to assign them different priorities. How to sort an array of objects containing null elements? Case assignment rule is always executed in the test class How to add chips from Material Components library to input field in android? Prolog count the number of times a predicate is true Can QGIS preserve layers when exporting to PDF? Deleting (Erasing) all Data from Failed SanDisk MicroSD Card I've had two 32GB SanDisk MicroSD cards go bad recently.  One I was able to temporarily revive using the kind advice offered in this thread:   When I insert the other into a reader, it registers as 30.6MB (that's MB, not GB).  I've tried all sorts of software and other techniques to revive this card and retrieve the important data off of it (including FindAndMount and TestDisk).  Nothing has worked.  So I'm thinking of returning the card for a refund.  But first, I would like to make it unreadable by someone more skilled than myself.  Is there any way to do this, given that I cannot even format the card or get it to be recognized as more than 30.6MB?  I am looking for a method that does not entail the kind of obvious physical destruction that would jeopardize obtaining a refund from the retailer.  If Costco (where the card was purchased) accepts physically destroyed cards for return, then physical destruction is acceptable (but please have knowledge that they do).  Given two failures, I don't really want to send the card to SanDisk for replacement, because I no longer trust the reliability of their products. How to add images in select list? How to encrypt external devices using a cross-platform solution? Is $f(x,y) = |xy|$ differentiable in $(0,0)$? I have no idea how to approach this problem. How to run adb and fastboot commands from Termux? How do I find out what tool a shortcut is triggering? I used to have problem with connecting two objects, because when I smooth the final object, there was a darker line on the connected parts (for example when I was making head, I've had eyes darker this way). Then I found out that I can get rid of it by hitting Ctrl+N, but I don't realy know what it does. I can just see that the lines are gone. So, what does Ctrl+N do? Is it alright to pay real money for useful help? Sum of (example: 0+1+2+3 = 6 , 0+1+2+3+4+5+6+7 = 28 and so on)