Automated (lazy) method to make custom (key-input) shortcuts (not menu items) for letter-like symbols?
Best way to add KeyEvents and faster Quit
I tried to find this question somewhere else on here, and found a couple that were similar to it -- but all the answers seemed pretty convoluted, and I think it was surprising to me because I just imagined that SQL would have a way easier way to do this.  Essentially, I'm using a GROUP BY to group two values on top of each other. The coding is simple and works well, where I get these results using WITH ROLLUP at the end:  Type    Person  Count Type A  Person 1    10 Type A  Person 2    91 Type A  Person 3    13 Type A  Person 4    10 Type A  Person 5    2 Type A  NULL        126 Type B  Person 6    16 Type B  Person 7    63 Type B  Person 8    15 Type B  Person 9    22 Type B  Person 10   16 Type B  Person 11   3 Type B  Person 12   20 Type B  Person 13   44 Type B  NULL        198 NULL    NULL        360   Is there an easy way to substitute something saying if "NULL" is in the "Person" column, then make NULL AS "Subtotal" and if "NULL" is in the "Type" column, NULL AS "Grand Total?"  And if that's weirdly complicated, I'd be totally fine with just calling all of them "Total."  Thanks! No, not like this:    Hear me out!  As Stack Overflow grows, it becomes increasingly ridden with extremely newbie and mediocre questions. It's just natural. The team are fighting hard to keep the crap out, but there are many very basic questions that are okay on their own. They don't deserve to be kicked out* - they are just very, very, very basic and/or localized.   Too much basicness tires users who are interested in discussing more advanced topics.  As has been discussed many times over, the voting system is not suited to identify advanced questions due to what is known as the . A group of people will vote on what they understand, which puts truly expert questions at a natural disadvantage that a democratic voting system can't overcome.  Now, there is a small number of users on Stack Overflow who I, as a user, know share my basic values (like, teaching a man to fish rather than fishing for them); I also know they are experts in their fields. It is safe to assume that what these users regard an interesting question worthy of attention, is likely to be interesting to me as well.      The idea is to introduce an opt-in "follow" mechanism that allows followed users to share what they find interesting, with very little fuss and on a purely opt-in basis.   Allow every SO user to follow any other SO user with a certain minimum rep, say 3000.   To every user who is being followed (or every user), display a new link underneath every question, "Recommend".    Introduce a new filtered view somewhere, named "Recommended". The view will show me all questions that my followed users are recommending.   Whenever I browse a list of questions, highlight those questions that have been recommended by my followed users. (I haven't put much thought into how to implement this graphically - you get the drift.)      I'm not especially fond of social networking, and I think most of it doesn't have a place on SO. But I'm starting to think this specific thing could be the right way to go in order to tell apart expert content from the 10000th dreary "how do I upload a file" question.  This is an entirely opt-in feature - unless I actively follow some users, I will never notice this.   Maybe for a bit of ego-stroking, the profile page can show how many users follow you. Or even who. Everything else would simply be kept under wraps - no publication of follower data in the data dump, no follower leagues or anything like that.      * At least not under current SO rules. Maybe those rules need to be changed - but that is a different discussion. If no spell can reawaken the dead, how did the resurrection stone work? Dumbledore himself said that no spell can reawaken the dead. Isn't that the main objective of the resurrection stone? If one can't reawaken the dead then what is the use of the stone? Surely then one of the Hallows is flawed? I want to write several classes, most of them will use KOMA classes as base class.  However I stumbled upon the problem that some options (mainly concerned with layout) are not processed if given in the wrapper class:    \begin{filecontents}{test.cls}     \ProvidesClass{test}[2015/01/01]     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}     \ProcessOptions\relax     \LoadClass[paper=a5]{scrartcl}   \end{filecontents}  \documentclass{test}  \usepackage{blindtext}  \begin{document}   \section{Test}   \blindtext \end{document}   This results in   LaTeX Warning: Unused global option(s):     [paper=a5]  If i give the option as \documentclass[paper=a5]{test} it is used correctly, because I pass the options to scrartcl. However I want to change the defaults for the layout.   How can I achieve this? If a derivative of a continuous function has a limit, must it agree with that limit? Windows 2008 R2 Standard server - how to disable RC4 I have just used www.ssllabs.com and ran a few tests - my server is capped to a B grade because my server accepts RC4     This server accepts the RC4 cipher, which is weak. Grade capped to B.   I've researched and found that to disable RC4 I need to add 3 keys, and set their enabled dword to 0  and   I have done this for RC4 40/128, RC 56/128 and RC4 64/128  I then restarted my server. When the server was up again, I verified the Registry Changes were done, and they are - all 3 exist and all 3 have their enabled value set to 0.  I return to ssllabs, clear the cache, re-run the test and it returns the same result (capped to B due to RC4 being enabled).   At this stage, I'm not sure what this means - if SSLLabs showing incorrect results (I'm going to assume not), have I disabled RC 4.  How can I tell if I have successfully disabled RC4  Edit  I also saw the KB about this  so trying now... I've done the same registry changes but, when I try to download the 64 bit version for W2008 R2 Standard, it fails to install with error message     The update is not applicable to your computer How do volume control headphones work? A recent question over on  got me to wondering how volume control headphones work.  I don't mean volume control which works by , but the kind of volume control that signals to the device to increase or decrease the signal output.  For instance, according to the , the volume controls are only for apple devices:     Universal Compatibility and Microphone Communication   LP comes with 2 cables for universal compatibility with all modern mobile and audio devices. The 3-Button remote microphone cable is designed for the latest Apple devices, including iPhone®,iPad®, iPod®, and Macbook series. The long audio-only cable and 1/4" adapter is universally compatible with all audio devices and professional equipment.   However this sort of device apparently works with some android phones and the question implies that it works with some computer sound cards on Windows machines too, but not being an Apple buyer (and only recently getting my first smartphone) I haven't seen this sort of thing before. I've done a quick google search, but can't find anything on standards for this technology.   How does this work?   Is it something as simple as shorting left/right/mic channels? If so, could using headphones of this type with equipment that doesn't support this technology, damage that equipment? Is it a serial signal, for instance sent over the mic channel? Does it just require a headphone  connector or a headphone  +microphone TRRS connector?   Does this technique have a name?  Incidentally, is someone could answer this, I can probably look up the rest of the information myself. *8') Is it as standard as it appears, or is everyone just following Apple? Is this something that is patented?   If so, who holds the patent and do they charge a license fee for people to use this technology? If not, is there an open standard for it?    There is some excellent information in  to the question  but it doesn't answer the specifics of how this type of volume (etc.) control works, since it now seems to be rather more common and standard. Nautilus bookmarks are missing since upgrade to 13.04 My bookmarks are not shown anymore after upgrading to 13.04 Raring ringtails and I can't add any new bookmarks. The function is not shown and the shortcut Ctrl+D isn't working either. Is this functionality just gone for some reason (as the split screen with F3) or is there something wrong with my upgrade?  Thanks for any hints. I have a framed picture about two feet by three feet in size that weighs about one pound (not a sheet of paper). I want to hang it onto a wall that is of full-blown hard concrete and covered with paper wallpaper (not vinyl - just paper).  The default way would be to drill the concrete and insert an anchor but that would damage the wall surface.  Is there a way to hang such picture onto such wall without damaging the wall? I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5? No option to remove Bluetooth device in iOS Settings app? I would like to remove my Raspberry Pi from my iPhone 8 (running iOS 11.2.1) as a connected bluetooth device.  Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue circled "i") to show the "Disconnect" and "Forget Device" dialogs:    Unfortunately, iOS does not give me this option for my device. The bluetooth device list does not contain an "i" for the item, and there is seemingly no other way to disconnect.    How do I unpair this device if there is no button to trigger to the unpair prompt?  Due to work restrictions I cannot completely reset the device. Finding the shortest distance between two lines I know how to find the distance between a point and a line, not between two lines.  Find the shortest distance between the lines $(-1,1,4) + t(1,1,-1)$ and $(5,3,-3) + s(-2,0,1)$  Any help would be appreciated. Connect to a MySQL server over SSH in PHP How to install multiple versions of the same software? I manage phone systems for multiple clients. Each system uses the same administrator software, but it runs on different versions depending on what version of firmware is installed on the system controller.   The software is downloaded directly from the system controller so it's the right version. For example, if the controller runs on version 5.0.2, you have to run version 5.0.2 of the administrator software. You can't administrate a 5.0.2 controller with a later versions of administrator software.   Bottom line, you have to have the right version of software to log into the controller. The software is not executable on its own, you have to install it. So every time I want to log into a different controller, I have to reinstall the right software.   Any way to get around this?   I'm running Windows 7 Enterprise x86. Choosing coordinate system to use in South Africa? What are the principal datums and projections used in South Africa including the names of geodetic datums and their projections? Can the size of pointers vary between data and function pointers? Inline math equation Point size How to change all equations point size(inline and display equations) globally, point size worked in within \begin{array}...\end{array} but not changed for $....$?  Please find MWE file:  \documentclass{book} \usepackage{amsmath,array} \usepackage{stix}  \everydisplay{\fontsize{15pt}{18pt}\selectfont} \everymath{\fontsize{15pt}{18pt}\selectfont}  \parindent0pt \begin{document}  Use the alternative calculation described above. In comparing the two values, you want to consider fluctuations in inventory over time. Use the alternative calculation described above. In comparing the two values, you want to consider fluctuations in inventory over time.  $\alpha\beta\gamma\delta\epsilon0123456789+-$ \bigskip  $\begin{array}{@{}l}\alpha\beta\gamma\delta\epsilon0123456789+-\end{array}$   \begin{align*} \alpha\beta\gamma\delta\epsilon0123456789+- \end{align*}  \end{document} Why does .NET use banker's rounding as default? According to the documentation, the  method uses a round-to-even algorithm which is not common for most applications. So I always end up writing a custom function to do the more natural round-half-up algorithm:  public static decimal RoundHalfUp(this decimal d, int decimals) {     if (decimals &lt; 0)     {         throw new ArgumentException("The decimals must be non-negative",              "decimals");     }      decimal multiplier = (decimal)Math.Pow(10, decimals);     decimal number = d * multiplier;      if (decimal.Truncate(number) &lt; number)     {         number += 0.5m;     }     return decimal.Round(number) / multiplier; }   Does anybody know the reason behind this framework design decision?  Is there any built-in implementation of the round-half-up algorithm into the framework? Or maybe some unmanaged Windows API?  It could be misleading for beginners that simply write decimal.Round(2.5m, 0) expecting 3 as a result but getting 2 instead. Get program execution time in the shell I want to execute something in a linux shell under a few different conditions, and be able to output the execution time of each execution.  I know I could write a perl or python script that would do this, but is there a way I can do it in the shell? (which happens to be bash) What are the advantages of stacking multiple LSTMs? What are the advantages, why would one use multiple LSTMs, stacked one side-by-side, in a deep-network? I am using a LSTM to represent a sequence of inputs as a single input. So once I have that single representation— why would I pass it through again?  I am asking this because I saw this in a natural-language generation program.