git how to remove untracked files from the pack file
How do you fix a bad merge, and replay your good commits onto a fixed merge?
Annoying Viber notification How to change Power button shutdown action to run a script under systemd How does one change the power button shutdown action under say debian 10 systemd to run a custom script instead of shutting down the system?  Back when this was handled by acpi one could edit the scripts in /etc/acpi.  The only suggestion I have found thus far is to replace various power related binaries with my script.  Is there a way to do this without replacing binaries? How to append to a file with fstream fstream::app flag seems not to work How to reference constants in EL? How to Convert 0 to 10V analog signal to 0 to 2.5V for ADC input? I have an analog signal which ranges between 0V and 10V.  I want to linearly scale it down to 0 to 2.5V for my ADC.     I'm concerned that using a resistive voltage divider will affect signal quality.  Is this true?  If it's not true, what value resistor should I use for voltage divider? Running a .desktop file in the terminal From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.   If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.   If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.  That's my question, how can I run a foo.desktop file from the terminal? Error message in my excel formula I have an application in C# (2.0 running on XP embedded) that is communicating with a 'watchdog' that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this? How to parse a month name (string) to an integer for comparison in C#? I need to be able to compare some month names I have in an array.  It would be nice if there were some direct way like:  Month.toInt("January") &gt; Month.toInt("May")   My Google searching seems to suggest the only way is to write your own method, but this seems like a common enough problem that I would think it would have been already implemented in .Net, anyone done this before? Proof of the Hockey-Stick Identity: $\sum\limits_{t=0}^n \binom tk = \binom{n+1}{k+1}$ How to zero out a drive? "quite" vs "pretty" What is the difference between quite and pretty in the following context:     The differences between these concepts are quite complicated.   and     The differences between these concepts are pretty complicated. Open Windows Terminal as admin with WIN+R I use shortcut  +R to run Windows Terminal [wt], but I cannot run it as Admin, which causes problems when I install something via choco.   To open it as Admin, I have to:  Press  > Right-click Terminal > More > Run as Admin  > ◀ > ENTER Some solutions say to use the following, but it can only open powershell, not wt:  +X > A > ◀ > ENTER While  say to use the following, but it also doesn't work:  +R > SHIFT+CTRL+ENTER   How do I open Windows Terminal as Admin via a command? How to typeset asymmetrical confidence level limits / uncertainties? Is there a way to disable the hotkeys? How do I show for an ideal transformer $M^2=L_1L_2$? I've been stuck on this problem for about an hour.     In an ideal transformer, the same flux passes through all turns of the primary and of the secondary . Show that in this case $M^2=L_1L_2$, where $M$ is the mutual inductance of the coils, and $L_1$, $L_2$ are their individual self-inductances.   My first instinct was the following: If we isolate the response of each coil to the other one, we get the equations $N_1\Phi_1=MI_2$ and $N_2\Phi_2=MI_1$, where $\Phi$ is magnetic flux going through a single turn of the coil and $I$ is current. Likewise, if we isolate the response of each coil to itself, we get the equations $N_1\Phi_1=L_1I_1$ and $N_2\Phi_2=L_2I_2$. I would now naturally want to say "Now just multiply $N_1\Phi_1$ and $N_2\Phi_2$ both ways, and get the desired result!" i.e.,  $$(N_1\Phi_1)(N_2\Phi_2)=(MI_2)(MI_1)=(L_1I_1)(L_2I_2)\implies M^2=L_1L_2$$  But that's incorrect, because the response of the coils to themselves and to the other coil are different quantities (i.e. not necessarily equal).  Realizing this, I write down the more general equations.  $$N_1\Phi_1=MI_2+L_1I_1$$ $$N_2\Phi_2=MI_1+L_2I_2$$  Now even with the hypothesis that $\Phi_1=\Phi_2=\Phi$, I still can't see how the identity $M^2=L_1L_2$ follows. Could you help clear up my confusion?  *Taken from D. Griffiths Introduction to Electrodynamics (4th ed.), Problem 7.58. How do you do load testing and capacity planning for web sites? This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general. When closing a question as duplicate the &quot;Possible duplicate of&quot; comment is automagically added to the question. However when adding such a comment manually: &quot;possible duplicate of random text&quot; that comment is also removed. To me it doesn't make sense that questions which to not point to a SO / SE question or even comments without any links in it are also removed when the question is closed as a dupe. I just found this out by close voting a question as a dupe of another question, but I also added a manual comment which linked to a user profile (because it contains lots of relevant information for OP and possible future reasons): possible duplicate of this [user](http://stackoverflow.com/users/727208/teresko?tab=answers&amp;sort=votes)'s list.  By the looks of it the script simply checks whether the comment starts with &quot;possible duplicate of&quot; and if it matches it will be removed. The  team also did a quick test with a very simple example which also got thrown away: possible duplicate of testing........  I understand that this issue is minor and there might as well be a technical reason for this (i.e. not having to keep track of automatic vs manual comments), but this behavior is kinda odd to me. I can think of two solutions for this:  keep track of manually vs automagically added dupe comments (again you SO people might have a good reason to not want this). Improve the &quot;dupe comment matcher ™&quot; to at least check whether the comment is in the correct format for &quot;auto dupe comments ™&quot; with a proper link to a question page. What is a single word for a person who, as a habit, exaggerates a lot when relating information? What is a single word for a person who, as a habit, exaggerates a lot when relating information?   So for example, they relate something that happened but exaggerate so much that they are including clear falsehood and they are well known for doing that. $\mathbb{Q}^{\times}$ is the group of rational number without $0$ under multiplication, and $\mathbb{Z}^{n}$ is the free abelian group of rank $n$. Show that $\mathbb{Q}^{\times}$ not isomorphic to $\mathbb{Z}^{n}$. I tried to assume that there is an isomorphism and to get a contradiction.. didn't succeed