Save variable and load between 2 scenes in Unity
Game states & passing data between scenes
Batch update/delete EF5 How to insert a very large number of records into a MySql database as fast as possible How many $m\times n$ tables are there if they are subject to the following two conditions?    In each cell of the table we have $1$ or $-1$. The product of all the cells in any given row and the product of all cells in any given column equals $-1$.    I already know if Parity of $m$ and $n$ are different there is no such a table. what is the answer in general? how does the circuit of a basic Variable speed electric drill work? i am trying to 'automate' the control of an electric drill motor that im taking from a garden variety Variable Speed drill (from Harbor Freight)  it has a universal AC motor which I basically undertand and a DPDT switch to reverse direction and a triac citcuit to vary speed    Question 1 . i see 4 wires going to the 'field/Stator coil(s)'. Are there 2 seperate field/stator coils here? is this to provide low/high power.  I think in theory , you only need 1 coil with 2 wires and that coil is wired in series with the brushes... is that right?   how does this circuit work with 2 coils.  Question 2 . how does this variable speed circuit work.  is the wiring diagram correct (it doesnt show a variable resistor and it doesnt show what drives the control input of the traic? why are there two switches in the thing? does switch 2 close at high speed and thus shunt around the triac?  please see the attached 4 diagrams Polynomial contrasts for regression I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts? I am visiting Vietnam in November 2015, I will entering the country on the 10th and my flight home is 14 days later, I will be leaving Vietnam and travelling to Cambodia in between the 2 weeks then travel back into Vietnam to get my flight home on the 24th November, do I need a visa? Can't get hold of anyone at Embassy and not clear about entering twice on the website. Beamer: \nonumber equivalent for slides? Is there an equivalent command to \nonumber when one doesn't want to include certain slides in the numbering? I would like to leave outline and title slides out of my numbering, and instead just number slides with actual content. Other workarounds would be nice to know about as well.  Edit: Since a MWE example was requested, here is one. Suppose I have a title page and two other slides. The code below gives a slide counter that goes up to 3, and the title slide is slide 1. I would prefer to have the title slide not be numbered, the counter go up to 2, and the the numbering start at the slide after the title. Here is some code.  \documentclass{beamer}  \mode&lt;presentation&gt;  {    \usetheme{Dresden}  }   \setbeamertemplate  {footline}{\quad\hfill\insertframenumber/\inserttotalframenumber\strut\quad}    \begin{document}  \begin{frame}  \titlepage \end{frame}  \begin{frame} Some actual content here \end{frame}  \begin{frame} Some more actual content here \end{frame}  \end{document} Empty Disk when trying to install dual-boot system I recently purchased an SSD to speed up my computer experience. Before, I had Windows 7 and Ubuntu in a dual-boot system. The plan was to install Windows 8 on the SSD and then set aside ~30GB for the system files of Ubuntu.  I installed Windows 8 just fine on the SSD, then I booted the Ubuntu install CD to make my partitions like always - but GParted tells me the entire SSD is unallocated. Now I am afraid I will lose my Windows installation if I try to do anything to it.  Why does GParted think there is no partition on the SSD? Shouldn't it be 4 Partitions, like the Windows installer told me?  And is it possible to ignore this and install Ubuntu on the hard disk (where it, frankly, already is) and somehow make it possible to install GRUB on the SSD to revert my dual-boot system without damaging the installed Win8? I would like to find a Python script that will access an attribute table within a shapefile and either update or replace records inside a field column. More specifically, I would like to use the replace expression to convert a table record like "123-456-789" to "123456789". I have many records to process and would like the best approach to do this task using Python. 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. I was wondering if it is possible for you to make a command block spawn hostile mobs in random places in a specified area?   I need the mobs spawned on different Y coordinates too because you need to fight your way up a tower to the top and I want the mobs to vary on each level to have specialty to each floor every time you play the mini game. What is the real answer to the Birthday question? "How large must a class be to make the probability of finding two people with the same birthday at least 50%?"  I have 360 friends on facebook, and, as expected, the distribution of their birthdays is not uniform at all.  I have one day with that has 9 friends with the same birthday. (9 months after big holidays and valentines day seem to be big ones, lol..)  So, given that some days are more likely for a birthday, I'm assuming the number of 23 is an upperbound.  Has there been a better estimate to this problem? How do I take the limit as $n$ goes to $\infty$ of $\frac{\sqrt{n}}{\log(n)}$? How do take this limit:  $$ \lim_{n\to\infty} \frac{\sqrt{n}}{\log(n)}$$  I have a feeling that it is infinity, but I'm not sure how to prove it. Should I use L'Hopitals Rule? how to convert System::String to const char*? Difference between "little" and "small" Is there a difference between them? If so, how and when are they used?  For example:     I fixed a little/small typo. Travelling with two different passports I was just wondering if you have two passports (a Chinese one and an Australian one), and you booked your airline ticket with the Chinese one, will you have to show both of your passports or just one?  The thing is, on my Chinese passport, it has my birth name, but then when I became an Australian citizen, I legally removed my Chinese name and replaced it with my English name. So I don't know whether I should just show the passport officials the one that I booked the airline ticket with. Python analog of PHP's natsort function (sort a list using a "natural order" algorithm) Explaining Horizontal Shifting and Scaling To prevent overfitting people people add a regularization term (proportional to the squared sum of the parameters of the model) with a regularization parameter $\lambda$ to the cost function of linear regression. Is this parameter $\lambda$ the same as a lagrange multiplier? So is regularization the same as the method of lagrange multiplier? Or how are these methods connected? Debugging with command-line parameters in Visual Studio I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging?