Finding tax income based on marital status
How do I compare strings in Java?
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 Background  My Lenovo X250 is arriving in two weeks, which according to  will work well only with "a special image of Ubuntu pre-installed by the manufacturer."   points out that the X250 has "Excellent" compatibility to the Linux OSes they install. On the other hand, a quick search on  or  shows that a standard image of Ubuntu on the X250 is rife with hardware problems.  Ubuntu Certified Hardware acknowledges this for the X250: "Standard images of Ubuntu may not work at all on the system or may not work well." This  clearly shows the difference between an Ubuntu standard image installation and the one that comes pre-installed by the manufacturer. Hardware seems to work fully on the OEM version.  Question  Any idea where we may access or download these "special images of Ubuntu"?  (Hopefully not only for the X250, but also for the other systems out there.) Live in Florida & work remote for a New York company. Do I owe NY state income tax? I have been down in Florida for the past 3 1/2 years and continue to pay New York state taxes out of the money I earn for a company I work remote for that is in New York.  Should I be paying New York state taxes on this income?  Or do I not need to pay New York state tax because I live in Florida?  Our NY accountant says I need to continue to pay since company is out of NY, however others say I don't need to pay.  Pls advise which is correct. Thank you. I think it would be good to have a way for the user to view the target URL of a link before following it. I'm pretty sure that I'm not the only one who dislikes blind-clicking -tapping links.   When I use SE in the mobile browser, I routinely long-press links to find out where they go before following them. I wish I could do the same thing in the app, with the same or a similar method.  (It's important that this won't conflict with text selection, since you can't long-press on links to select them now anyway.) Now that I have Firefox 49 or higher, how do I watch Netflix? Just got the Firefox 49 update (yay!)  But Netflix still wants to install Silverlight (boo!)  How can I watch Netflix in Firefox, as ? How do I get jQuery to select elements with a . (period) in their ID? Given the following classes and controller action method:  public School {   public Int32 ID { get; set; }   publig String Name { get; set; }   public Address Address { get; set; } }  public class Address {   public string Street1 { get; set; }   public string City { get; set; }   public String ZipCode { get; set; }   public String State { get; set; }   public String Country { get; set; } }  [Authorize(Roles = "SchoolEditor")] [AcceptVerbs(HttpVerbs.Post)] public SchoolResponse Edit(Int32 id, FormCollection form) {   School school = GetSchoolFromRepository(id);    UpdateModel(school, form);    return new SchoolResponse() { School = school }; }   And the following form:  &lt;form method="post"&gt;   School: &lt;%= Html.TextBox("Name") %&gt;&lt;br /&gt;   Street: &lt;%= Html.TextBox("Address.Street") %&gt;&lt;br /&gt;   City:  &lt;%= Html.TextBox("Address.City") %&gt;&lt;br /&gt;   Zip Code: &lt;%= Html.TextBox("Address.ZipCode") %&gt;&lt;br /&gt;   Sate: &lt;select id="Address.State"&gt;&lt;/select&gt;&lt;br /&gt;   Country: &lt;select id="Address.Country"&gt;&lt;/select&gt;&lt;br /&gt; &lt;/form&gt;   I am able to update both the School instance and the Address member of the school.  This is quite nice!  Thank you ASP.NET MVC team!  However, how do I use jQuery to select the drop down list so that I can pre-fill it?  I realize that I could do this server side but there will be other dynamic elements on the page that affect the list.  The following is what I have so far, and it does not work as the selectors don't seem to match the IDs:  $(function() {   $.getJSON("/Location/GetCountryList", null, function(data) {     $("#Address.Country").fillSelect(data);   });   $("#Address.Country").change(function() {     $.getJSON("/Location/GetRegionsForCountry", { country: $(this).val() }, function(data) {       $("#Address.State").fillSelect(data);     });   }); }); every eigenvalue of $T$ has only one corresponding eigenvector up to a scalar multiplication For a linear transformation $T$ on a vector space $V$ of dimension $n .$ Suppose it is given that for some vector $\mathbf{v},$ the vectors $\mathbf{v}, T(\mathbf{v}), T^{2}(\mathbf{v}), \ldots, T^{n-1}(\mathbf{v})$ are linearly independent, then is it true that every eigenvalue of $T$ has only one corresponding eigenvector up to a scalar multiplication. Reverse / invert a dictionary mapping Given a dictionary like so:  my_map = {'a': 1, 'b': 2}   How can one invert this map to get:  inv_map = {1: 'a', 2: 'b'} How to create Mist in Blender why ls reports a huge file and du does not? How to get around a problem with \usetikzlibrary{babel}? I am currently working on an update of tkz-euclide and new documentation but I just met the following problem. If I compile this code with pdflatex or lualatex and pgf 2.1 (The library babel does not exist with pgf 2.1) then the code compiles fine but with 3.0 pgf I must comment on the call \usetikzlibrary{babel} (pgf doc gives so I recommend to always load this library by saying \usetikzlibrary{babel}).  I'd like to know where the error occurred. Especially I would like to work around this problem.   With \usetikzlibrary{babel} I get the error Latex Error: ./untitled 2.tex:46 Undefined control sequence. l.1 \tkz@line@start  Bug in babel, bug in tikzlibrary{babel} bug in my code. I would like to keep  \usetikzlibrary{babel} but to avoid the error.  %!TEX TS-program = pdflatex \documentclass[a4paper]{article} \usepackage[french]{babel} \usepackage{tikz}  \usetikzlibrary{calc} %\usetikzlibrary{babel}  \makeatletter \pgfkeys{%     tkzdrawline/.cd,     start/.code         =  {\gdef\tkz@line@start{#1}},%     end/.code           =  {\gdef\tkz@line@end{#1}},%     start style/.code   =  {\tikzset{tkzstartstyle/.style={#1}}},%     end style/.code     =  {\tikzset{tkzendstyle/.style={#1}}},%    /tkzdrawline/.unknown/.code ={\let\searchname=\pgfkeyscurrentname\pgfkeysalso{%                          \searchname/.try=#1,/tikz/\searchname/.retry=#1}}}  %&lt;--------------------------------------------------------------–&gt; %                              Draw line %&lt;--------------------------------------------------------------–&gt; \pgfkeys{tkzdrawline/.cd, start/.code       =  {\def\tkz@line@start{#1}},% end/.code         =  {\def\tkz@line@end{#1}}, start style/.code =  {\tikzset{tkzstartstyle/.style={#1}}}, end style/.code   =  {\tikzset{tkzendstyle/.style={#1}}},   /tkzdrawline/.unknown/.code   = {\let\searchname=\pgfkeyscurrentname                                  \pgfkeysalso{\searchname/.try=#1,                                 /tikz/\searchname/.retry=#1}}}%         %&lt;--------------------------------------------------------------–&gt;  \def\tkzDrawLine{\pgfutil@ifnextchar[{\tkz@DrawLine}{%                                   \tkz@DrawLine[]}}%   \def\tkz@DrawLine[#1](#2,#3){%  \begingroup   \pgfkeys{tkzdrawline/.cd,start = {}, end = {}, start style={}, end style={},}   \pgfqkeys{/tkzdrawline}{#1}   \draw[ /tkzdrawline/.cd,#1] (#2) to%     node [at start,left,/tkzdrawline/.cd,tkzstartstyle] {\tkz@line@start}%     node [at end,right,/tkzdrawline/.cd,tkzendstyle] {\tkz@line@end} (#3);  \endgroup  }%   \makeatother   \begin{document}    \begin{tikzpicture}      \node (A) at (0,1) {};       \node (B) at (5,2) {};       \tkzDrawLine[end = {$\alpha$}](A,B)       \end{tikzpicture}  \end{document} When entering the US on an international flight, and then on to a connecting domestic flight, what is the exact order of the process that will take place? In other words, what happens first, second, third, etc.? When there are several cottages each with several tariffs (depending on the season), should the plural be "cottage tariffs" or "cottages tariffs"?  For context, this is to be a section title on a website renting out the cottages.  An explanation of the grammatical rules would be helpful. I marinated chicken five days ago in lemon juice, seasoned salt, and garlic powder, is it still safe to cook in the oven? Breitbart today:   What is the source for the term nothing-burger? Should Stack Overflow be redesigned with a responsive layout? I have the following element element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)  I want to assure the text on this filed is TESTUSER, so I tried:  expect(element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)).getAttribute('value')).toEqual('TESTUSER');  then I got the error: Expected null to equal 'TESTUSER' So I tried: element(by.css(&quot;span[aria-label='Picker ID, TESTUSER']&quot;)).getText().then(function (value) {         console.log(value);       })  And I got this error: Expected '' to be 'TESTUSER'.  How to get the value of this field and expect it is TESTUSER? Word for "blissfully oblivious"? How to fake a package version installed? Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) versions of needed packages provide all the functionality of their older versions.  If I use dpkg -i --force-depends-version to install dependent packages everything works fine, I've never seen a problem.  Instead of manually downloading and installing every package, can I just make the system pretend there is a specific package version installed when there is a newer? Or is there a --force-depends-version key equivalent for apt-get? Can I use the Google font 'Lato' for a logo design? I am creating a logo and would like to use the Google Font 'Lato', can I use this font in my logo design or are there copyright/limitations I need to worry about? I can't find anything online other than that it is an open source font that can be used in anyway you want (maybe that's my answer but I just want to make sure). Also, is it a bad idea to use a web-based font for a logo?