My partner needs to get a visa.  From all I read it's a transit C-1 that is required.  I have flight details completed and it asks for location of stay in US.  Then contact in US. However we are only in the airport to get connecting flight.    Can anyone advise what I should be selecting or do I just type does not apply?
I'm a Canadian citizen with a Canadian passport. I booked a flight with American Airlines to Mexico City From Toronto Pearson and it says that "Passenger details are needed to check in".  Flight 1: YYZ -> DFW -> MEX Flight 2: MEX -> DFW -> YYZ     They already took my name, gender and such. It is now asking for my passport number and expiry date. That all seems reasonable. However, when I enter that I am a Canadian resident it asks for:  1) Street or hotel in US 2) City in US 3) State in US    My trip to DFW is only for a connecting flight. The fields are required so I can't submit my passport information without filling this in.    Is there something I'm missing?
Using JQuery and Prototype in the same page Several of my pages use both JQuery and Protoype. Since I upgraded to version 1.3 of JQuery this appears to be causing problems, because both libraries define a function named '$'.  JQuery provides a function noConflict() which relinquishes control of $ to other libraries that may be using it. So it seems like I need to go through all my pages that look like this:  &lt;head&gt;           &lt;script type="text/javascript" src="/obp/js/prototype.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript" src="/obp/js/jquery.js"&gt;&lt;/script&gt; &lt;/head&gt;   and change them to look like this:  &lt;head&gt;           &lt;script type="text/javascript" src="/obp/js/prototype.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript" src="/obp/js/jquery.js"&gt;&lt;/script&gt;     &lt;script type="text/javascript"&gt;         jQuery.noConflict();         var $j = jQuery;     &lt;/script&gt; &lt;/head&gt;   I should then be able to use '$' for Prototype and '$j' (or 'jQuery') for JQuery. I'm not entirely happy about duplicating these 2 lines of code in every relevant page, and expect that at some point somebody is likely to forget to add them to a new page. I'd prefer to be able to do the following    Create a file jquery-noconflict.js which "includes" jquery.js and the 2 lines of code shown above Import jquery-noconflict.js (instead of jquery.js) in all my JSP/HTML pages   However, I'm not sure if it's possible to include one JS file in another, in the manner I've described? Of course an alternate solution is simply to add the 2 lines of code above to jquery.js directly, but if I do that I'll need to remember to do it every time I upgrade JQuery. What is a good method for short text clustering? I am working on a text clustering problem. The data contains several sentences. Is there a good algorithm which reaches high accuracy on short text?  Can you provide good references?   Algorithms such as KMeans, spectral clustering does not work well for this problem. Is there any danger to letting food cook in a slow cooker for a very long time? I've recently started using a slow cooker and I was thinking about recipes that could be cooked for days.  My main concern is if there are any side effects for leaving food cooking for days that would make this plan unfeasible (dangerous to try).  Since it is at cooking temperature, there wouldn't be any reason to worry about bacteria growing on the food.  Liquid would be lost over time, which could result in burning if left unchecked, but if I add more every morning/night as needed, that too wouldn't be a problem.  All I can see is that most recipes wouldn't end up tasting as well, but undesirable isn't equal to dangerous.  There just seems to be something absurd with the notion of leaving food cooking for 5 days or even 2 weeks without there being any dangers, but I'm having a hard time figuring out what they would be. Notice: Undefined variable: logged in C:\xampp\htdocs\Site\Site\view_category.php I am using VC++. Is assert(false) ignored in release mode? Find the slope of tangent line to the curve at the point $(1, \pi/2)$  the equation is  $$\sin(xy) = x$$  The right answer was = Slope is infinite   My answer was taking the derivative and I end up in this equation   $$ (1-y\cos(xy))/ x\cos(xy)  $$  I substitute with the points and the calculator showed an error, Does the error means infinite ? This is a recurring question (see ,  and ), but I have a different spin.  Suppose I have a bunch of samples from a generic MCMC sampler. For each sample $\theta$, I know the value of the log likelihood $\log f(\textbf{x} | \theta)$ and of the log prior $\log f(\theta)$. If it helps, I also know the value of the log likelihood per data point, $\log f(x_i | \theta)$ (this information helps with certain methods, such as WAIC and PSIS-LOO).  I want to obtain a (crude) estimate of the marginal likelihood, just with the samples that I have, and possibly a few other function evaluations (but without rerunning an ad hoc MCMC).  First of all, let's clear the table. We all know that the harmonic estimator is the . Let's move on. If you are doing Gibbs sampling with priors and posteriors in closed form, you can use ; but I am not sure how to generalize outside of those cases. There are also methods that require you to modify the sampling procedure (such as via ), but I am not interested in that here.  The approach I am thinking of consists of approximating the underlying distribution with a parametric (or nonparametric) shape $g(\theta)$, and then figuring out the normalization constant $Z$ as a 1-D optimization problem (i.e., the $Z$ that minimizes some error between $Z g(\theta)$ and $f(\textbf{x}|\theta) f(\theta)$, evaluated on the samples). In the simplest case, suppose that the posterior is roughly multivariate normal, I can fit $g(\theta)$ as a multivariate normal and get something similar to a Laplace approximation (I might want to use a few additional function evaluations to refine the position of the mode). However, I could use as $g(\theta)$ a more flexible family such as a variational mixture of multivariate $t$ distributions.  I appreciate that this method works only if $Z g(\theta)$ is a reasonable approximation to $f(\textbf{x}|\theta) f(\theta)$, but any reason or cautionary tale of why it would be very unwise to do it? Any reading that you would recommend?  The fully nonparametric approach uses some nonparametric family, such as a Gaussian process (GP), to approximate $\log f(\textbf{x}|\theta) + \log f(\theta)$ (or some other nonlinear transformation thereof, such as the square root), and  to implicitly integrate over the underlying target (see  and ). This seems to be an interesting alternative approach, but analogous in spirit (also, note that GPs would be unwieldy in my case). I read  and thought that would easily be solved (not that it isn't solvable without) if one could write:   @Override public String toString() {     return super.super.toString(); }   I'm not sure if it is useful in many cases, but I wonder why it isn't and if something like this exists in other languages.  What do you guys think?  EDIT: To clarify: yes I know, that's impossible in Java and I don't really miss it. This is nothing I expected to work and was surprised getting a compiler error. I just had the idea and like to discuss it. According to the well ordering theorem "". Whenever we have a well ordering on a set, it is not difficult to construct a new well ordering with a largest element. My question is:     For a given infinite set, can we find a well ordering on it such that there is no largest element? I have 2-3 different column names that I want to look up in the entire DB and list out all tables which have those columns. Any easy script? Simulate Multiple Monitors I'm trying to find out if there is a product out there to simulate Multiple Monitors on one large monitor/tv?  So take a screen and turn it into something like below...  -------------------------------- |               |              | |               |              | |               |              | |               |              | -------------------------------- |               |              | |               |              | |               |              | |               |              | --------------------------------   Something like this...even though in reality it's a single screen.  A software solution is perfectly fine as long as it functions like the built in Windows 8 functionality (Start screen only consumes the screen it was started on/etc).  If anyone is curious as to the reason.  I'm looking to get a treadmill desk since I'm a developer and don't like being sedentary all day.  So the two options that I see are having 4 monitors and mirroring them (I don't want to have to worry about forgetting to move the window that I need) or getting a large monitor/tv and putting it on an arm that I can simply swivel into place.  There are dual-monitor swivel mounts, but they are EXTREMELY pricey and the ones I've found don't appear to have the range of motion that I'm anticipating needing.  EDIT:  I found ... but I can't find the answer to the start menu question (I've sent the company a message on facebook).  Hoping I hear good news as this appears to offer many of the features I'm wanting.  So Fingers crossed there. How to compute $$\sqrt{(1\sqrt{(2\sqrt{(3\dots)})})}$$ &amp; $$\sqrt{(1+\sqrt{(2+\sqrt{(3+\cdots)})})}$$?  I understand that  $$\sqrt{(1\sqrt{(2\sqrt{(3\dots)})})}=(1^{1/2})(2^{1/4})(3^{1/8})\cdots$$  and  $$\sqrt{(1+\sqrt{(2+\sqrt{(3+\cdots)})})}=(1+(2+(3+(\cdots))^{1/8})^{1/4})^{1/2} $$  How to Proceed further? How do I remove objects from an array in Java? Given an array of n Objects, let's say it is an array of strings, and it has the following values:  foo[0] = "a"; foo[1] = "cc"; foo[2] = "a"; foo[3] = "dd";   What do I have to do to delete/remove all the strings/objects equal to "a" in the array? Distance between two hyperplanes I have two parallel hyper planes $$a^Tx=b_1,a^Tx=b_2$$ where $a \in \mathbb{R}^n, x \in \mathbb{R}^n ,b \in \mathbb{R}$ and I want to find the distance between the two. I have read that the distance between the two hyperplanes is also the distance between the two points $x_1$ and $x_2$ where the hyperplane intersects the line through the origin and parallel to the normal vector $\vec a$. These points are given by $$x_1=\frac{b_1}{\|a\|^2_2}a$$ and $$x_2=\frac{b_2}{\|a\|^2_2}a$$ Then the distance is $|x_1-x_2|$ but I don't really understand how we got $x_1$ and $x_2$. Cannot see my wifi [10ec:d723] when trying Ubuntu Python Split String Lets Say we have Zaptoit:685158:zaptoit@hotmail.com   How do you split so it only be left 685158:zaptoit@hotmail.com Firefox: Downloading files with drag and drop In my scene I have a camera sitting at the origin. I would like to contraint it so that it always looks at the center of a given object. But the camera should not change its position.  I found some answers using a "TrackTo" or "LockedTrack" constraint but could not manage to make it work.  Could I probably use a Driver for this and if yes, how can I adjust it?  Thanks in advance! How do I export and import content types (including fields) between environments? Berry naming scheme list of LaTeX font families