I tried it with some random text files, that I created on github, pulled them on my computer, modified them, then I created a separate branch on github, called 'another'. When I tried pushing the modified files from my computer to github using git I got the message: error: src refspec another does not match any&lt;br&gt; error: failed to push some refs to 'https://github.com/username/repo-name.git'  What I typed before: git push origin another
I've got two branches that are fully merged together. However, after the merge is done, I realise that one file has been messed up by the merge (someone else did an auto-format, gah), and it would just be easier to change to the new version in the other branch, and then reinsert my one line change after bringing it over into my branch. So what's the easiest way in Git to do this?
How can I change the default location for bluetooth file transfers? I have an Android 2.3 device (Samsung Galaxy Y Duos, S6102) and want all files that I receive via bluetooth to save to my SD card.  How can I do that? I have often heard it recommended that a user account should be disabled by setting its shell to /bin/false. But, on my existing Linux systems, I see that a great number of existing accounts (all of them service accounts) have a shell of /sbin/nologin instead.  I see from the man page that /sbin/nologin prints a message to the user saying the account is disabled, and then exits. Presumably /bin/false would not print anything.  I also see that /sbin/nologin is listed in /etc/shells, while /bin/false is not.  The man page says that FTP will disable access for users with a shell not listed in /etc/shells and implies that other programs may do the same. Does that mean that somebody could FTP in with an account that has /sbin/nologin as its shell?  What is the difference here? Which one of these should I use to disable a user account, and in what circumstances? What other effects does a listing in /etc/shells have? poll() failed, context incorrect? - Example: bpy.ops.view3d.background_image_add() Read Post Data submitted to ASP.Net Form I have a working login form in an asp.net application.  Standard stuff with a username and password text box and a button to process the login.  Works fine.  I have a new requirement to allow the user to input the username and password from a separate plain html page that is not a part of my asp.net application.  I plan on achieving this using standard html - form, input, submit button etc.  The form action will be the URL of my asp.net login page and its method will be POST.    What I want to do in the C# code behind page of the asp.net login form, presumably in the Page_Load event, is to check if the request for the page contains a username and password value being passed in.  If it does then I need to read those values and process the login as if someone had clicked the login button on the asp.net page.  If not then I will display the login form as usual.    How do I check for the existence of, and read, the username and password values in the request for my page. Find a recurrence relation for the number of $n$-digit binary sequences with no pair of consecutive $1$s.  I know my base case:$$a_1 = 2$$ for either $1$ or $0$. Normally to construct the recurrent relation I would say fill in $n-1$ spaces then add a $1$ or $0$, which is simply:$$a_n = 2\cdot a_{n-1}$$However, I don't believe this is right, because this doesn't take into account that there can't be any consecutive $1$s.  Even when I use the base case of $2$ digits:$$a_2 = 3$$for either $01$, $10$, or $00$, I still get the recurrence relation of:$$a_n = 3\cdot a_{n-2}$$which also does not account for $01$ and $10$ occurring consecutively.   So how would I express this? Create directory if it does not exist Incompatibility with mathtools and unicode-math in xelatex? I find unexpected behaviour in using mathtools in conjunction with unicode-math, which shows up if the 'range' command is used. Some incompatibilities have been noted before, so perhaps this is related. However, it only showed up for me in Texlive2016; previous versions worked as expected. In the following example I wish to draw calligraphic fonts from a different set than the main maths fonts, and some calligraphic symbols, and a regular italic bold face math, are missing.   \documentclass{article} \usepackage{mathtools}  \usepackage{fontspec} \usepackage{unicode-math} \unimathsetup{math-style=ISO,bold-style=ISO,sans-style=italic} \setmainfont{xits-regular.otf} \setmathfont{xits-math.otf} \setmathfont[range={\mathcal,\mathbfcal}]{latinmodern-math.otf} %\setmathfont[range={}]{xits-math.otf} % Try with and without this line % \begin{document} Test $a+b = \mathcal{C H G}C \mathscr{D}$ $$-\frac{a}{b} \mathcal{O} . $$ \begin{equation}     \mathrm{d} = \mathcal G(\varphi,x,y,z,t) ,  \end{equation} The symbol $\mathcal{G}$ is missing.  The following equation is wrong if I include the line  ``setmathfont[range=\{\}] \{xits-math.otf\}'' \begin{equation}     \mathup{d} = \symbf{u}(\varphi,x,y,z,t) ,  \end{equation} The glyph $\symbf{u}$ is missing. \end{document}   If mmathtools is called after unicode-math the problem does not arise, but this ordering is not recommend by the unicode-math developers.  My specific question is, is this a bug or is it something I am doing wrong? Is your MAC address revealed when you hit up a website? When you hit up a site, such as cnn.com, does the TCP/IP packet contain the MAC address of your network card?  Could cnn.com theoretically record my MAC address? Show that $\textbf{ZF}$ shows $\phi$ is $\Delta_1$ iptables drop all incoming ICMP requests except from one IP Currently, I have something like:  iptables -A INPUT -p ICMP --icmp-type 8 -j DROP iptables -A INPUT -s x.x.x.x -p ICMP --icmp-type 8 -j ACCEPT   However, when I run the second command, it looks as if iptables just stops.  I have to break out of it to get back to terminal.  Perhaps I am doing it all wrong, but some insight would be helpful. Rigorously proving equal tension on both ends There is always one point in introductory mechanics that has been continuously bothering me ever since I had taken my freshman physics course - Why does a massless rope have its tension equal on both ends?  I have been searching for a good explanation on various textbooks at different levels, but none of them provided me a satisfactory explanation. They either   State directly "we assume the string is massless and the pulley has no friction, therefore the tension must be the same throughout the string" without further any elaboration and continue the calculation, Claim without any reasons that "whenever the rope and the pulley are massless and frictionless, the tension will be the same on both sides", or Explain using a lot of hand-waving arguments regarding infinite acceleration, non-zero moment of inertia, etc. , in one line or two.   Although those hand-waving arguments of type $(3)$ do sound quite reasonable to me and will convince me for a while every time I review them. But after a while, I will start feeling not well about this whole tension concept again.  Therefore, I am looking for a rigorous (in the physicist's sense) proof of exactly why and when do the tension in rope will be uniform, and hopefully from that I can clean up all of my conceptual difficulties. Formula between wire size and current Is there a mathematical formula between wire size, current, temperature and wire type(Or resistance)? Why is the ##UserID## parameter not populated in Data Explorer anymore? Environment I'm logging in using the OpenID from  and using Chrome 31.0.1650.57 m if that matters. Steps to reproduce: Log in to  and , for example, like: DECLARE @MyUserID INT = ##UserID:int##  SELECT TOP 1     Id AS [Post Link],     Score AS [Score],     CreationDate AS [Creation Date] FROM     Posts WHERE     OwnerUserId = @MyUserID AND     PostTypeId IN (2, 3) ORDER BY     CreationDate DESC  Then press the Run Query button and see if the UserID field is filled with your own user ID like shown in the below screenshot:  Question: Did something changed on the ##UserID## parameter (for example, that it's not supported anymore)?  If so, then there is an outdated  paragraph about it (What's the point of logging in). If not, it is a bug which is there about three days (I've been waiting since I noticed that you were going to do some changes to Data Explorer, but it remains there, hence my question). I would like to count the number of unique selections from a column that contains multiple selections from a drop down list.  For example, column B3 contains,     Monday, Tuesday, Wednesday   The count function returns a value of 1 instead of 3 - is there any way to count the three days distinctly? Thank you!  Multiple selections from a drop down list was made possible using the VBA code from: How can I download a distribution? Am I right in thinking that the Drupal distributions that I can download from  are a standard Drupal core download with a load of other stuff added at /profiles?  Anyone know if there are any plans to create a dev branch of distributions that would automatically update the core version that the distribution is running on? Currently it seems that the distribution runs on whatever core version its developer has chosen.  And how can I use distributions with Drush? Is there an equivalent to drush dl drupal that will download a specific distribution?  And, finally, is there any difference between an install profile and a distribution? Why didn't Doc remember Marty's outfit? In Back to the Future 3, Doc (from 1955) sends Marty back in time wearing a cowboy outfit.  But then, Doc (from 1885) doesn't remember that it was him who offered this outfit to Marty.   Does this mean there are two different Docs (from differing timelines) or is it the same Doc but he somehow forgot the outfit. I looked at similar questions and wanted to post a more specific one.  If I wanted one of my accounts on the network to no longer be associated to my global account, could an administrator do it manually? I mean, even if they could, would they?  It's a matter of professionalism. I don't want one of my accounts on the network to be visible from my other accounts. I just want that to be under a separate email that's not one of the OpenIDs associated with my global account.  I realize this would have been easier to do when I joined that site, but it's too late now, and only now have I realized that I don't really want that account showing up.  So can it be done by an administrator? I don't want to wait weeks and weeks for a response by using the contact form (funny, I've waited two with this post)... Extract current viewing parameters from a 3D view? Does a passive Perception (Wisdom) check add WIS mod + Perception skill? I'm new to D&amp;D. There seems to be a discrepancy between the 5e Starter Set Rulebook and the associated character sheets. The Rulebook says that a passive wisdom (percep) score is "10 + the creature's wisdom modifier, as well as any bonuses."  In the example they have a 1st-level character (with a proficiency bonus of +2) Wisdom of 15 (+2) and a  proficiency in Perception, he or she has a passive Wisdom (Perception) of 14 (10+2+2).  But the Human Fighter Folk hero character has a WIS mod of +1, and a +3 written beside perception, and a passive Wis percep of 13 (not 14?).  The Dwarven Cleric has Wis mod of +3 and a +3 written beside perception, and only a 13 passive wisdom.  I guess this has to do with proficiency in the skill, but I'm confused. Can someone explain these instances and maybe also when proficiency is used, vs when just the modifier or just the skill without proficiency? How could the Fremen do what they did to the empire in Dune Messiah? How could, and why would, the Fremen's jihad kill 61-Billion people and conquer the known universe?  Their leader Paul was already emperor.  What was left to conquer?  And how could they force this onto Paul when they had no relationship with the Spacing Guild except thru Paul?  If Paul didn't arrange for transportation then how would they get off Arrakis?  And how does a small population of hardened, rugged, but not technologically advanced people do that much conquering in that time?  Also, is there any explanation about how Ix, Tleilex planet and Bene Gesserit planets hold off the wave of jihad?