can i use my C1 visa transitting to japan Im holding a philippine passport whith c1 visa (issued by US embassy) a transit visa that can transit to any airport in USA , can i use my C1 visa to transit to Japan or do i still need to get a transit visa to pass through their airport in japan? my last destination will be in Manila,Philipines. Thanks in advance.
Can I stay overnight [15-hour layover] in Haneda airport without a Japan visa? I’m a Filipino citizen. My flight goes from Vancouver to Manila via Tokyo Haneda. I will arrive in Japan at 6pm then depart at 9am the next day. I'm not planning to go out of the airport during my layover, so I don't see a need to have a transit visa. However, I called the Consulate-General of Japan here in Canada, and they asked me to get a transit visa.  Then I called the Ministry of Foreign Affairs in Japan and asked them the same question.. at first, they told me I don’t need a visa as long as I stay inside the airport, but when I told them that the Consulate-General of Japan in Canada asked me to get a visa, they also asked me to get one.  I'm so confused. I would like to know your knowledge or experience regarding this.
block certain dangerous commands? In my  High school there are few computer having Ubuntu 14.04 installed and many students know the Root  password, how  can I block/disable  certain dangerous  commands like :- rm -rf / rm -rf * :(){:|:&amp;};: to avoid Data loss ? Does the rotation of the earth dramatically affect airplane flight time? Say I'm flying from Sydney, to Los Angeles (S2LA), back to Sydney (LA2S).  During S2LA, travelling with the rotation of the earth, would the flight time be longer than LA2S on account of Los Angeles turning/moving away from our position?  Or, in the opposite direction, would the flight to Sydney be faster since the Earth turns underneath us and moves Sydney closer?  ===   Please ignore jet stream effects and all other variables; this is a control case in an ideal environment. By "dramatically" I suppose I mean a delay of 1 hour or more. Present and future of bots on Stack Exchange There are discussions on Meta already for some time now about the potential usage of bots on Stack Exchange (SE). The earliest I could find goes back to  , but there have been others , .  Here’s an  about having a bot that tries to answer “easy” questions. The scenario is that (almost) duplicate, simple questions are asked time after time, despite SE’s efforts to prevent this by listing related questions at posting time. This is where the bot could be of service: it could quickly retrieve and post an answer from a previous duplicate (or with smarter Artificial Intelligence - AI)  even from elsewhere on the web, like a user manual or a mailing list discussion). I imagine this might save some review time for moderators, and perhaps users would also enjoy not having to answer over and over again to the same question. Besides, answers would be very fast, which should make everyone happy if they are also of good quality.  This idea of “janitor” bots can have more use cases besides answering “easy” questions (see also discussion ), like suggesting missing tags and re-formatting what should have been code blocks, to name a few.  Yet, despite a long time since these discussions, better Machine Learning Classifiers (ML) and AI over the years, and   , it doesn’t seem that any such bots are among us (except maybe ). As part of a research project at the university, I am trying to understand why this is the case.  For this reason I’d like your opinion on the following:   Do you consider a bot “harmful” for the SE communities?   If yes, would you consider the bot harmful even if   it operates in an automatic manner only in limited scenarios (e.g. specific tags) it operates in a semi-automatic manner (namely with the supervision of a moderator who decides for posting or not the answer).  it operates only for a limited amount of time in a small community (e.g. here).   Would you consider it too risky to give a bot a try? Would you accept an answer provided by a bot?   If not, why ? (e.g. you don’t trust replies from machines)  Would you consider useless a “sloppy” answer by a bot, even if it is provided in just a few seconds? Answers may be not perfect, but they may link to other relevant threads that can help the asker to fix the problem without waiting extra time for a human response. Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password.  Is there a way to lock down that folder so that it's password protected / encrypted?  In fact, is it possible to password-protect any individual folder? Clojure - Side Effects Happening Out Of Order While dabbling in Clojure I've written a very basic program to echo whatever the user types into it. However, it doesn't run in a way that I'm perceiving to be natural. Here's the code:  (defn goo []   (print "echo&gt; ")   (def resp (read-line))   (print resp) )   I would expect the code to run like this (for me typing in foo as the input to read-line):  user=&gt; (goo) echo&gt; foo foonil   But instead, the echo and read-line is switched:  user=&gt; (goo) foo echo&gt; foonil   Why does this happen? Is there a subtlety I'm missing?  EDIT: From Joe's answer, the updated correct solution is:  (defn goo []   (print "echo&gt; ")   (flush)   (def resp (read-line))   (print resp)   (flush) )   Also, the flushes aren't necessary if you use println instead of print. Does the 14 day self-isolation period in the UK end if a travel-corridor starts during the 14-day self-isolation period? I want to clear a element from a vector using the erase method. But the problem here is that the element is not guaranteed to occur only once in the vector. It may be present multiple times and I need to clear all of them. My code is something like this:  void erase(std::vector&lt;int&gt;&amp; myNumbers_in, int number_in) {     std::vector&lt;int&gt;::iterator iter = myNumbers_in.begin();     std::vector&lt;int&gt;::iterator endIter = myNumbers_in.end();     for(; iter != endIter; ++iter)     {         if(*iter == number_in)         {             myNumbers_in.erase(iter);         }     } }  int main(int argc, char* argv[]) {     std::vector&lt;int&gt; myNmbers;     for(int i = 0; i &lt; 2; ++i)     {         myNmbers.push_back(i);         myNmbers.push_back(i);     }      erase(myNmbers, 1);      return 0; }   This code obviously crashes because I am changing the end of the vector while iterating through it. What is the best way to achieve this? I.e. is there any way to do this without iterating through the vector multiple times or creating one more copy of the vector? Is 'hair' singular or plural? When one says I was washing my hair, is it singular or plural? What is the singular for hair? Implied string comparison, 0=='', but 1=='1' Strange character when using listings package How to access the road graph plugin in python? I am developing a few scripts in Python for QGIS 1.8 to automate some geo-tasks and one of them would be to calculate the shortest distance from a hospital to each building in a town.  I would like to take advantage of the already existing Qgis plugin but, as it is a C++ plugin, I am not sure whether it is possible to access it from Python? Is there a binding or a trick for that?  If not, any further advice would be appreciated! As the base data is OpenStreetMap data stored in a PostGIS DB, I may also try with pgRouting. But the QGIS plugin would be my favourite choice if possible.  PS: this question is close to this one:  but I believe it's still different enough to be worth a new thred. Finding the maximum value of $\int_0^1 f^3(x)dx$ Find the maximum value of $\int_0^1 f^3(x)dx$ given that $-1 \le f(x) \le 1$ and $\int_0^1 f(x)dx = 0$   I could not find a way to solve this problem. I tried to use the cauchy-schwarz inequality but could not proceed further  $$\int_0^1 f(x) \cdot f^2(x) dx \le \sqrt{\left(\int_0^1f^4(x)dx\right) \left( \int_0^1 f^2(x) dx\right)}$$  Any hints/solutions are appreciated. It used to be that the new, super wide, touch friendly context menu style that Google introduced a few versions of Chrome ago could be turned off using the start up flag "--disable-new-menu-style".  As of Chrome 28, this is no longer the case, and as a desktop user it is very irritating to see menus that previously fit in the screen not to do so anymore — I don't think I can get used to it. Is there any way around it? If the flag is gone for good, can the style of the context menus be perhaps edited with custom css like the web inspector? Software for drawing geometry diagrams Alternate exits in Bit Trip Runner 2 Is there any point in taking the alternate exits in Bit Trip Runner 2?  I can't see any benefit to doing so in terms of unlocking a different path in the overworld, so is it just for your own benefit? The difference between "have a lunch" and "have lunch" Is there any difference between     I am not having a lunch tomorrow.   and     I am not having lunch tomorrow.   This is a follow up question of : . Why are year, pound and mile in the singular form in the phrases below?   five-year-old children  20 pound note 10 mile run   Is that because they're acting as adjectives, which are always invariable in English?  Is it incorrect to say...   five-years-old children? 20 pounds note? 10 miles run? Can an integrated HDMI port work both ways? Say I had a laptop [Correction: notebook, don't want my thighs medium rare], any OS, and it has an HDMI port built into the side. Would it be remotely possible to hack it into an input, provided it wasn't already designed for that? I would figure all video ports operate straight off the graphics chip, however, are there ways to override that functionality on the driver level? Driver hacks already exist for plenty of things such as the classic example: Bluetooth adapters (so we can play with our PS3 controllers and save a buck) However, is HDMI one of these tamperable interfaces? As far as the interface standard is concerned, are HDMI ports designed to be either way or are they Input/Output specific? Relative pronouns "where" and "when": where can they be omitted? If I have several classes with functions that I need but want to store separately for organisation, can I extend a class to have both?  i.e. class a extends b extends c  edit: I know how to extend classes one at a time, but I'm looking for a method to instantly extend a class using multiple base classes - AFAIK you can't do this in PHP but there should be ways around it without resorting to class c extends b, class b extends a