I have searched extensively and have not been able to find a working solution for my uses.  I have a SanDisk USB3.0 32Gb flash drive. I want to be able to have 2 partitions on it that are both readable and writable by Windows. So, when I insert the stick into a computer I would get 2 Autorun messages (Win 7) or 2 File Explorers (Win 10).  I know that this is possible because I have a video camera that when plugged in directly, two Explorers open. (Unable to test with just SD card instead of directly, as a drop made the slot inaccessible)  I've read that you can't do this in Windows using default software, but I have access to a Linux machine, and quite frankly prefer to use Linux.  First of all I would like to know if this is even possible using a generic USB stick, and if Yes! then how would I do it?  Thanks in advance!
In Windows, 'removable' drives cannot be partitioned, without the partitions not appearing and receiving drive letters, apart from the first partition.  Partitioned flash drives work fine in Linux.  What I want to do is partition a 8GB flash drive into two, with the first partition containing various boot disc images, which can be selected to boot from, and have various portable apps, documentation, utilities, scripts, etc, on the other partition.  I currently do this using two separate flash drives, but I want to be able to use a single flash drive for everything, which I keep on my keyring.  It is not possible to do this without having at least two partitions, as the ISO boot selector for the boot disc images will not work otherwise.  I know there is a method where you can flip a bit, using Lexar's USB Format Tool, which fools Windows into thinking that the partitions are on a fixed hard drive.  However, this apparently makes it difficult to eject the flash drive.  Flash drives with  from SanDisk had two partitions, presenting itself to the host system as a USB hub with a CD drive and standard USB mass storage device attached.  This is what I would like to emulate, if possible.
When and why did Harry Potter fall in love with Ginny Weasley? In the earlier HP books it's pretty clear that Harry and Ginny get on quite well as friends (and that she's rather smitten with him) but I'm struggling to identify when and why Harry started to like Ginny in a romantic fashion..  I feel like it is simply presumed that Harry suddenly likes Ginny Weasley back, but do the books actually describe when and why he started to like her that way?  No speculation, please. Canon answers only. Foobar2000-like music player? QCompleter Custom Completion Rules Inspired by question :  When do I need to invoke \phantomsection?  In what condition is invoking \phantomsection necessary? Why two inverters cascaded in multiplexer control signal terminals? Why cascaded inverters are used in the multiplexer when it is possible to realize the circuit using a single inverter. Nominate for Reopening Shows Duplicate Message Boxes Can I mix sources from different ubuntu versions? As we know that we are using  for installing packages and repositories configuration file located at /etc/apt/sources.list.  I am using Ubuntu 12.10 (Quantal Quetzal) which reaches . That means no updates or support. So, the question is, can I use sources.list file from another version, say Ubuntu 12.04 LTS, and will it negatively affect the system. How can I repeat the header but not the caption with longtable? I am trying to set up a longtable where the header is repeated on every new page but the caption only appears once at the top of the page.  The table is defined as follows:  \begin{longtable}{|l|l|l|} \caption{the table caption} \label{tab:11swpkg}\\ \hline \rowcolor{gray} HeaderCol1 &amp; HeaderCol2 &amp; HeaderCol3\endhead     \hline\hline Item11 &amp; Item12 &amp; Item13 \\ \hline Item21 &amp; Item22 &amp; Item23 \\ \hline Item31 &amp; Item32 &amp; Item33 \\ \hline \end{longtable}   This nearly works because the header is indeed repeated after a page break but so is the caption. How can I get rid of the caption after a page break? I am using a chi-sq test between two proportions (). I am using this over the z-test for proportions because I do not think my data is normal.   My question is how do I get the difference (shift) estimate &amp; confidence intervals for this test.   For example,     Data1: 193/252=.77   Data2: 154/227=.68   P-value=.032 (I used the formula in the link above. I will also add my exact code below)  Shift Estimate: I assume its the difference between proportions, ie .77-.68=.09. Is this correct?   Confidence Interval: ??????????????????  Code for generating P-value (matlab):   % Pooled estimate of proportion  p0 = (n1+n2) / (N1+N2); % Expected counts under H0 (null hypothesis)  n10 = N1 * p0;  n20 = N2 * p0; % Chi-square test, by hand  observed = [n1 N1-n1 n2 N2-n2];  expected = [n10 N1-n10 n20 N2-n20];  chi2stat = sum((observed-expected).^2 ./ expected);  p = 1 - chi2cdf(chi2stat,1);  H=0; if(p&lt;.05), H=1; end Magic 8 Ball Problem This problem is probably simple enough to have an analogous problem, I just don't know the name so I'm going to describe it and hopefully somebody can point me in the right direction.  The problem is this: estimating the number of sides of a .   Let's say you perform the following process:   Shake the "Magic 8 Ball" and mark down the result If the result has not previously been seen, add it to the set of possible results and label the trial "N" (for "new") If the result has been previously seen, label the trial "O" (for "old") Repeat all steps   I imagine the following kind of sequence occurring: NNNNONNOONOONOOONOOOONONNOONOOONNOONOOOOOONOOONOOOOOOONOOOOOOOONOOOOOOOO...  Now imagine we don't know there are twenty sides to a Magic 8 Ball. Or imagine that you have a Magic 8 Ball with 1000 sides. As the number of "new" trials approaches the actual number of sides, we'll get increasingly more "old" trials showing up in the mix. Once we've seen all of the possible results, we'll always get "old" results. But we're never 100% sure we've seen every single possible result.  So here are the questions I'm interested in:   As we proceed with trials, can we estimate the total number of "sides" of the Magic 8 ball based on the number of "new" and "old" trials up to this point? Can we calculate a probability that our current estimate is correct, or a probability that some bounded estimate is correct? How to allow non-superusers to mount any filesystem? Is it possible to allow some particular users (e.g. members of a group) to mount any filesystem without superuser privileges on Linux?  Another question might have been "in what ways a user can harm a system by mounting filesystems?" Chrome is unable to connect to the Internet I'm getting the error code: DNS_PROBE_FINISHED_NO_INTERNET in Google Chrome. The thing is, I have a working internet connection. I am posting this using that connection, using Internet Explorer. It's only Chrome doing this.  What happened was my laptop was refusing to go to sleep mode, so it ended up running out of battery power. I charged it, and when I subsequently booted the computer, Chrome stopped working. I don't see the connection...  I added Firewall rules (inbound/outbound) to allow Chrome to connect...so unless I'm missing something.  UPDATE: Chrome portable is working for me...just not the regular chrome.  UPDATE 2 Now I realize it had to do with Covenant Eyes which I have installed. See the accepted answer Do universities hire graduates from lesser universities Recently, someone analyzed  and found that over half of the professors at the top 51 universities graduated from a top 10 university.  have also brought this up. From my personal observations, most schools do hire graduates from better ranked schools.  Is this because of the competitive job market? We have so many good applicants, we have to narrow it down some how! Or is it simply that these schools produce the most PhDs? Has this always been the case? How rare are exceptions to this? I know of a few people who graduated from a top 75 school and got hired at a top 50 school. But what about bigger gaps? The top 10 schools seem to just swap graduates, do they ever hire from a 50+ ranked school?  Update 2018: I have accepted a tenure-track position at a top 75 department at an R1 university immediately after graduating from an unranked department at an R2 university. It does happen! This may or may not generalize to other fields and countries. Why would Mystique's DNA allow for Sentinels that can duplicate mutant powers? The future Sentinels in  are clearly shown adapting to powers thrown at them by copying them. Isn't that what Rogue's DNA would allow for, not Mystique's? Mystique can just change appearance, not copy powers ... right? So why would study of her mutant genes allow for the abilities of the future Sentinels? How create Makeself self executable archive file in LINUX? I Roll To Seduce The Dragon! (or, Do doublings of proficiency bonus stack?) Lets say there exist some enterprising young bard 3/ sorcerer 1 named Kirk.   Deciding to uphold (long past) family tradition, he has chosen to go out and have a little half-dragon of his own.   He chose Persuasion as his expertise skill, and is of a dragon bloodline himself, gaining the Dragon Ancestry perk.  Do they stack? Not the same ability, and both say "Your proficiency is doubled" when they activate. Granted, it would only happen when dealing with dragons. But there are certainly worse times to ramp up your charm. Brokerage accounts are seen as relatively tax-inefficient, since you invest with post-tax dollars, and growth is taxed upon realizing gains. The traditional IRA allows you to deduct contributions and defer taxes until you take distributions in retirement ...  Unless you are covered by a retirement plan from work and make over   $71,000/year if single, or $118,000/year if married filing jointly.   The numbers above come from . Above those thresholds, you can still make contributions to a traditional IRA, but those contributions will be post-tax. Distributions are taxed as ordinary income, excluding post-tax principal.  Similarly, eligibility to make direct Roth IRA contributions phases out to zero according to a :   $131,000 if single, or $193,000 if married filing jointly.   Looks to me that someone who cannot make direct Roth IRA contributions also cannot deduct traditional IRA deposits from income.  Assume   investment period is 20 years, is some garden variety ETF (VTI/VXUS/etc), those investments return 5%, the current marginal tax rate is 28%, the expected marginal tax rate at retirement is 25%, the long term capital gains rate is 15%, the entity is not eligible to make Roth IRA contributions, and 401k contributions are already maxed out.   A $5000 of gross income contribution into a traditional IRA at retirement might grow to an after-tax sum of:  (5000) * (1 - 0.28) * (1 + (1.05 ** 20 - 1) * (1 - 0.25)) = $8064   Instead, since contributions were going to be taxed anyway, why not put it in a brokerage account? Then you could claim the favorable long-term capital gains rate.  (5000) * (1 - 0.28) * (1 + (1.05 ** 20 - 1) * (1 - 0.15)) = $8659   All I found was , and the accepted answer says to still make a traditional IRA contribution, but I still don't see why that would be a good idea. What am I missing here? In every keyboard that I have used, the keys are arranged so that the keys are staggered a small increment to the left from the previous row. Q is above and slightly to the left of A, and A is above and slightly to the left of Z. This pattern continues across the entire board. Case in point:    What is the motivation behind this design? I would think that a column layout would be easier to type on - and indeed, many ergonomic keyboards seem to go with a column layout, where Q is directly above A and so on. The code below compiles, but has different behavior for the char type than for the int types.  In particular     cout &lt;&lt; getIsTrue&lt; isX&lt;int8&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;uint8&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;char&gt;::ikIsX  &gt;() &lt;&lt; endl;   result in 3 instantiations of templates for three types: int8, uint8 and char. What gives?  The same is not true for ints: int and uint32 which result in the same template instantiation, and signed int another.  The reason seems to be that C++ sees char, signed char and unsigned char as three different types. Whereas int is the same as a signed int. Is this right or am I missing something?  #include &lt;iostream&gt;  using namespace std;  typedef   signed char       int8; typedef unsigned char      uint8; typedef   signed short      int16; typedef unsigned short     uint16; typedef   signed int        int32; typedef unsigned int       uint32; typedef   signed long long  int64; typedef unsigned long long uint64;  struct TrueType {}; struct FalseType {};  template &lt;typename T&gt; struct isX {    typedef typename T::ikIsX ikIsX; };   // This  int==int32 is ambiguous //template &lt;&gt;            struct isX&lt;int  &gt;    { typedef FalseType ikIsX; };  // Fails template &lt;&gt;            struct isX&lt;int32  &gt;  { typedef FalseType ikIsX; }; template &lt;&gt;            struct isX&lt;uint32 &gt;  { typedef FalseType ikIsX; };   // Whay isn't this ambiguous? char==int8 template &lt;&gt;            struct isX&lt;char  &gt;  { typedef FalseType ikIsX; }; template &lt;&gt;            struct isX&lt;int8  &gt;  { typedef FalseType ikIsX; }; template &lt;&gt;            struct isX&lt;uint8 &gt;  { typedef FalseType ikIsX; };   template &lt;typename T&gt; bool getIsTrue(); template &lt;&gt;           bool getIsTrue&lt;TrueType&gt;() { return true; } template &lt;&gt;           bool getIsTrue&lt;FalseType&gt;() { return false; }  int main(int, char **t ) {    cout &lt;&lt; sizeof(int8) &lt;&lt; endl;  // 1    cout &lt;&lt; sizeof(uint8) &lt;&lt; endl; // 1    cout &lt;&lt; sizeof(char) &lt;&lt; endl;  // 1     cout &lt;&lt; getIsTrue&lt; isX&lt;int8&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;uint8&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;char&gt;::ikIsX  &gt;() &lt;&lt; endl;     cout &lt;&lt; getIsTrue&lt; isX&lt;int32&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;uint32&gt;::ikIsX  &gt;() &lt;&lt; endl;    cout &lt;&lt; getIsTrue&lt; isX&lt;int&gt;::ikIsX  &gt;() &lt;&lt; endl;  }   I'm using g++ 4.something Let's consider two statements: Zorn's lemma and theorem about existence of maximal ideals in commutative ring with $1$.  It's easy to prove that Zorn's lemma implies existence of maximal ideals.  I wonder if the converse proposition is true, i. e., does existence of maximal ideals implies Zorn's lemma? My approach was to construct a ring structure on an ordered set which satisfies Zorn's lemma condition such that existence of maximal ideal implies existence of maximal element in the set, but I didn't succeed.