I will be travelling soon to the US from Jakarta. I have both US and Indonesian passports. Indonesia does not recognize dual citizenship, yet the US requires me to enter and exit the US with my US passport. My flight have 4 hour stop at Taipei, so can I exit the immigration and enter using Indonesia passport while in Taipei? then enter Indonesia using Indonesian passport?
I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?
How can I edit this trigger to only fire once? The trigger creates a related record when a checkbox is updated. The problem is it is creating a new related record everytime the record is edited. I want to edit the trigger to only create the related record once. (When the criteria is first met). The code is below  Trigger copyEquipmentonsite on Unit_Placements_Sales__c(after insert, after update) {      List&lt;Services__c&gt; sub=new List&lt;Services__c&gt;();      for(Unit_Placements_Sales__c u : Trigger.new) {           if(u.Service_Month_is_Next_Month__c == TRUE) {                 Services__c s = new Services__c();                 s.Equipment_Onsite__c=u.ID;                 s.Equipment_Type__c=u.Equipment__c;                 s.Machine_Specific_Notes__c=u.Machine_Specific_Notes__c;                    s.Product__c=u.The_Product__c;                   s.Dell_Tag_Number__c=u.Dell_Tag_Number__c;                 s.Serial_Number__c=u.Serial_Number__c;                  s.XD_Number__c=u.XD_Number__c;                 sub.add(s);           }           if(sub.size()&gt;0)           insert sub;      } } AES and DES - reusing the same round keys How to make a field NULL using MySQL GUI Tools? I'm using the MySQL Query Browser (part of the ) and need to change a field to NULL, but I can't figure out how to do it - if I delete the value it tries to update it to ''. Typing "NULL" makes it try to update to 'NULL' (a string).  I know I could just write a query to do it, but that defeats the entire purpose of the tool, no? Efficient evaluation of functions defined by NIntegrate Prove that the polynomial $(x-1)(x-2)\cdots(x-n) + 1$, $ n\ge1 $, $ n\ne4 $ is irreducible over $\mathbb Z$ I try to solve this problem. I seems to come close to the end but I can't get the conclusion. Can someone help me complete my proof. Thanks          Show that the polynomial $h(x) = (x-1)(x-2)\cdots(x-n) + 1$ is irreducible over $\mathbb Z$ for all $n\ge1$ and $ n\ne4$.      Suppose $h(x) = f(x) g(x)$, then we must have $f(i)g(i) = 1$ for all $i = 1,2,...n$. So both $f(i)$ and $g(i)$ are $1$ or $-1$. In either case, $m(x) = f(x) - g(x)$ has degree smaller than $n$ and have $n$ different roots ($1,2,...,n$). So we must have $m(x) = 0$. Then $h(x) = f(x)^{2}$. So $n$ must be even. Let $n = 2k$. Because $f(x)$ has degree $k$, there are $k$ values from $\{1,2,...,2k\}$ at which $f(x)$ is $1$ and $k$ values at which $f(x)$ is $-1$.  This is where I got stuck. Hope some one can help me solve this. Thanks. This is my last homework problem and I've been looking at it for a while. I cannot nail down what is wrong with this proof even though its obvious it is wrong based on its conclusion. Here it is:     Find the flaw in the following bogus proof by strong induction that   for all $n \in \Bbb N$, $7n = 0$.      Let $P(n)$ denote the statement that $7n = 0$.      Base case: Show $P(0)$ holds.      Since $7 \cdot 0 = 0$, $P(0)$ holds.      Inductive step: Assume $7·j = 0$ for all natural numbers $j$ where $0 \le j \le k$ (induction hypothesis). Show $P(k + 1)$: $7(k + 1) = 0$.      Write $k + 1 = i + j$, where $i$ and $j$ are natural numbers less than $k + 1$.  Then, using the induction hypothesis, we get $7(k + 1) = 7(i + j) = 7i + 7j = 0 + 0 = 0$. So $P(k + 1)$ holds.      Therefore by strong induction, $P(n)$ holds for all $n \in \Bbb N$.   So the base case is true and I would be surprised if that's where the issue is.  The inductive step is likely where the flaw is. I don't see anything wrong with the strong induction declaration and hypothesis though and the math adds up! I feel like its so obvious that I'm just jumping over it in my head. Radius of circumscribed circle of triangle as function of the sides Given the length ot the sides $a , b$ and $c$  of $ \triangle ABC$.  What is the length of the radius of the circumcribed circle?  After some formula substitution I came to the monster formula:  $$ \frac {a b c}{\sqrt{2a^2b^2+2a^2c^2+2b^2c^2-a^4-b^4-c^4}} $$  Can this formula be simplified? How to use an ESC I'm new to RC related modules. Today I got my 's Skywalker 20A brushless esc. Manual is .    I also have a brushless outrunner motor (HL3512)    I don't have any device to program the esc's (even the seller hasn't mentioned about such requirement).   The  talks about programming by listening to the beep patterns. But for that it seems that the esc should be connected to a flight controller (it talks about throttle positions etc...). But I don't have any flight controller.  Can some one tell me how to use the esc with what I have? (I have 2200mAh LiPo and  too) How can I change the class of an HTML element in response to an onclick or any other events using JavaScript? Performing multiple layer intersection in QGIS? Ability to give away iOS application, usually for sale I am wondering if it's possible to do "mass giveaways" on the AppStore, without lowering, changing or otherwise changing the listed application.  Is it possible to distribute hundreds to, potentially, thousands of promo codes, legally, while still leaving the "normal" distribution channel of purchasing the app open?  An example of the above would be selling physical items in a store which have a bundled digital component available. Essentially you buy a product in a store, which comes "bundles with a free app" (BB and Android have already been dealt with, iOS is unclear). It would be nice to give the option to have a promo code in the box, that the user can then use to get the application for free. Is this possible? How do you override page.tpl.php in Omega 4? I am using the  base theme, and am trying to override page.tpl.php.    This file is in the base theme in sites/all/themes/omega/templates/system.  When I copy it into my theme, edit it, clear caches, I don't see my changes?  Why can't I override this template? I have a program in which I've lost the C++ source code.  Are there any good C++ decompilers out there?  I've already ran across . Connecting two Ethernet PHY without magnetics? In a (tentative) new design I want to connect two 100 Mbit/s Ethernet PHY similar to , separated by few inches on the same PCB, with same ground plane (but different power supplies). I have the choice of one of my PHY, but the other is embedded in an as-yet-unspecified PCIe to Ethernet IC (perhaps Gigabit but used in 100 Mbit/s mode), and it is critical that this PHY thinks there is a bona fide 100 Mbit/s Ethernet connection.  I could use the following         &ndash; Schematic created using   but I would like to achieve the same without the magnetics, in order to save on cost, purchasing headaches, and if at all possible power consumption.  I can imagine an RC network, perhaps as simple as in this , found thanks to a ; or maybe engineered with attenuation and lowpass, but that will not emulate the fact that with real magnetics, when there is a negative pulse on TX1P, there is a positive pulse on TX1M and RX2M. I am uncertain about if that would prevent some PHYs from working normally.  Anything to suggest that one is confident will work for practically any PHY around? Command for forcing a pointer ungrab (captured mouse release) Sometimes Firefox doesn't release the mouse after dragging, so I need to kill the application to force it to release its pointer grab.  Is there any command to force an application to ungrab the pointer without killing it? Examples of topologies in which all open sets are regular? An open subset U of a space X is regular if it equals the interior of its closure, as we learn from the Wikipedia . Furthermore, the regular open subsets of a space (any space) form a complete Boolean algebra.  I'm coming to this from logic and algebra, with not much background in topology. I can't figure out which topologies have "interesting" collections of regular open sets. For example, in the trivial topology and the discrete topology, every open set is regular, if I'm not mistaken. Those are not "interesting" topologies. I assume there are other topologies in which the space X and the null set are the only regular open sets. If so, those aren't "interesting" either, at least not with regard to their regular open ets.  I believe what I'm looking for is topologies in which every open set is regular, other than the ones I've just described.  Thanks for any help. I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it. I'm trying to find a way to automatically clean/delete the temporary files from C:\Documents and Settings\user\Local Settings\Temp\ at shutdown/boot on my Windows XP Professional x64 SP2 machine.  The main reason for this is to clean Local Settings/Temp to remove old junk automatically. (I had thought I had this covered through Firefox settings, but I was only clearing temporary Internet files). Currently, there's around 3&nbsp;GB of temporary files, and I'd like to prevent this build up without having to remember to do anything on my part.  I have already looked at using  (explained in Super User question ), but it doesn't seem to touch that directory.  I'm aware of programs such as , but I would ideally like to use a solution that doesn't require additional software (so, I expect, something using a scheduled BAT/CMD script would be what I'm looking for).  One of the potential issues, I believe, is that there may be legitimate files in the Temp folder that may be needed on the next boot (for software installations or updates, for example) and the perfect solution would be able to distinguish those and leave them until they weren't needed (Note: I realise this perfect solution may not be reasonably possible).  I've already set up Disk Cleaner on a shutdown script, but when cleaning temporary files, Disk Cleaner doesn't clean this particular directory, and so I'm looking for alternative options (see Super User question  for a little more detail).  So, what are my options for automatically deleting the temp files from C:\Documents and Settings\user\Local Settings\Temp? What's the limit on the no. of partitions I can have? I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?     Update  : If there is a limit to the number of partitions, why is that the limit? Hello can someone give me short tutorial how to:   Remove Windows 7 from my dual boot system (Ubuntu/Windows7) Let me use free space as new partition for data (so I don't need to extend Ubuntu itself here) Remove windows 7 option from boot screen   Update:  Thanks to Lekensteyn answer I successfully deleted windows. Now I created new partition (formatted to ext4), but I can not use it. I cannot copy files there, only as root.  Also when booting, Ubuntu complains it didn't find /windows partition (of course it didn't, I removed it). I feel like I should update some tables or what, any ideas?