I have a problem with jquery ajax. When i add a new element with ajax, i can't do anything with that. here is my code:  $(".yorum_input").keypress(function(e) {    if (e.keyCode == 13) {     e.preventDefault();     var alt_id = $(this).attr('yorum_id');     var val = $(this).val();     var yazi = $(this).attr('yazi_id');     $(this).val("");      $.ajax({       url: url,       type: "post",       data: {         "alt_id": alt_id,         "icerik": val,         "yazi": yazi       },       success: function(cevap) {         console.log(cevap);         cevap1 = cevap.split('***');         if (cevap1[0] == "succ") {           if (cevap1[1] == "1") {             if (cevap1[8] == "0") {               $("#yorumlar").append("
" +                 "" +                 "" +                 "" +                 "" +                 "
" +                 "" +                 "" + cevap1[5] + "" +                 "" + cevap1[6] + "" +                 "" +                 cevap1[7] +                 "
" +                 "" +                 "
" +                 "

" +                 "" +                 "" +                 "
" +                 "<input type='text' yorum_id='" + cevap1[2] + "'  yazi_id='" + cevap1[9] + "' class='form-control input-sm yorum_input' placeholder='Yorumunuzu yazın!'>" +                 "

");             } else {               $("div[class='alt_yorumlar'][id='" + cevap1[8] + "']").append("
" +                 "" +                 "" +                 "" +                 "" +                 "
" +                 "" +                 "" + cevap1[5] + "" +                 "" + cevap1[6] + "" +                 "" +                 cevap1[7] +                 "
" +                 "" +                 "
");             }           }         }       }     });   } });   When I post a new comment, ajax goes to my php code and if the comment can succesfully added to my database, it returns the needed values for that comment. And then, I create a new DOM element includes an input. but I can't select that new input. Please somebody help me :D I need that for my Website's comments.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have a question regarding notation in modular arithmetic and congruence classes.  I am used to the notation   $a \equiv b$ $(\mod n)$; it simply means n divides a-b  But I've seen a similar notation in the context of groups (old fashioned one I believe) where the n is replaced by a subgroup and that got me slightly confused. Here it is:  If G is a group, a,b elements in G and P a subgroup of G, then what is the exact meaning of   $a \equiv b$ $(\mod P)$ ? Is it equivalent to $ap_1$=$bp_2$ for some $p_1$,$p_2$ in P?

I.N. Herstein has defined:     Let $G$ be a group, $H$ a subgroup of $G$; for $a,b \in G$ we say $a$ is congruent to $b \mod H$, written as $a \equiv b  \mod H$ if $ab^{-1} \in H$.   Let $G$ be a group, $H$ a subgroup of $G$; for $a,b \in G$ we say $a$ is congruent to $b \mod H$, written as $a \equiv b  \mod H$ if $ab^{-1} \in H$.  When dealing with integers $a \equiv b  \mod n$ means $n \mid (a-b)$, what is the meaning of $a \equiv b  \mod H$ in context of group theory? And why and how has $ab^{-1} \in H$ been used as a condition to define this relation?


I was doing this and worked perfectly fine:  def b64_image(filename):     with open("static/img/"+filename, 'rb') as f:         b64 = base64.b64encode(f.read())         return b64.decode('utf-8')   But now I uploaded the images to an S3 Bucket so I edited the code:  def b64_image(filename):     with open("https://mybucket.s3-sa-east-1.amazonaws.com/" + filename, 'rb') as f:         b64 = base64.b64encode(f.read())         return b64.decode('utf-8')   And I'm getting the fllowing error:  FileNotFoundError: [Errno 2] No such file or directory:   How can I make this code work? How can I make the code to look for the actual URL image? Thanks in advance.

I have a small utility that I use to download an MP3 file from a website on a schedule and then builds/updates a podcast XML file which I've added to iTunes.  The text processing that creates/updates the XML file is written in Python. However, I use wget inside a Windows .bat file to download the actual MP3 file. I would prefer to have the entire utility written in Python.  I struggled to find a way to actually download the file in Python, thus why I resorted to using wget.  So, how do I download the file using Python?


English is not my native language. I have a confusion regarding 2 sentences.  1) I can't see any more  2) I can't see no more  I speak like I mentioned the first one, is the second sentence correct? There are a lot of sentences that I heard recently where people use no instead of any.

I have heard several sentences in which there was a prominent double negative, but the double negative "sounded right".  Is this ever true, or is it just a misleading feeling?  Edited to include an example:  "Did you enjoy the movie?"  "Well, I didn't not enjoy it, but..."  I suppose that may just be bad grammar, but sometimes it seems to be the quickest way to say it.


if you know that $n=3598057$ is product of two prime distinct numbers and also that $20779$ is root from $1$ mod $n$, find factor integer for $n$.  From  I expected that $$20779^2 \equiv 1 \mod n$$ But I checked in calculator that $$20779^2 \equiv 0 \mod n$$ So I am not sure if I have understood this term correctly. Update I tried to delete this question on phone (During writing this post I didn't have access to pc). But now, when there is a answer, I decided to mark as the best contributor and left this task for future readers. Exactly, my phone hasn't got a proper precision for numbers like that.

Coming from an understanding of Fermat's primality test, I'm looking for a clear explanation of the Miller-Rabin primality test.  Specifically: I understand that for some reason, having non-trivial square roots of 1 mod p means that p is definitely composite; and I gather that you can find these non-trivial square roots by squaring x, but I don't really understand what these reasons are. Specific examples of non-trivial roots of a composite number would be helpful.  Cheers!


Let's assume I have the following classes:  public class AnSuperClass { ... }   and  public class AnBetterClass extends AnSuperClass { ... }   Also I have the following ArrayList:  private final ArrayList<AnSuperClass> theList;   and I put some object of type AnBetterClass and AnSuperClass in it like so:  theList.add(new AnBetterClass()); theList.add(new AnSuperClass());   If I iterate over the list: how do I know which one of the two classes I have? The following query will always return false:  boolean foundOther = false; for(AnSuperClass asc: theList)     if(!(asc instanceof AnSuperClass))         foundOther = true; return foundOther;   Help desirable  P.S. Annotation do not work either.

If class B and class C extend class A and I have an object of type B or C, how can I determine of which type it is an instance?


this is the code  when i apply that code application has been stopped occurred this code is to find relative prime in android application development  check and let me know my error  thanks in advance  relative.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String A = num1.getText().toString(); String B = num2.getText().toString(); int val1 = Integer.parseInt(A); int val2 = Integer.parseInt(B); int gcd = 1; // Function to find GCD for relative prime while (val1 != val2) { if (val1 > val2) val1 = val1 - val2; else val2 = val2 - val1; } String ans = String.valueOf(val1); String ans1 = String.valueOf(val2); // function to check and print if // two numbers are co-prime or not if (ans1.equals(1)) { result.setText("Relative Prime"); Toast.makeText(MainActivity.this, "Relative Prime",  Toast.LENGTH_SHORT).show(); } else { result.setText("Not Relative Prime"); Toast.makeText(MainActivity.this, "Not Relative Prime",  Toast.LENGTH_SHORT).show(); } } });   Error LOG  11-22 13:00:21.854 6630-6630/com.example.jasirali.layout_elements E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.jasirali.layout_elements, PID: 6630     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jasirali.layout_elements/com.example.jasirali.layout_elements.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)         at android.app.ActivityThread.access$800(ActivityThread.java:144)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:135)         at android.app.ActivityThread.main(ActivityThread.java:5221)         at java.lang.reflect.Method.invoke(Native Method)         at java.lang.reflect.Method.invoke(Method.java:372)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference         at com.example.jasirali.layout_elements.MainActivity.onCreate(MainActivity.java:128)         at android.app.Activity.performCreate(Activity.java:5937)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)          at android.app.ActivityThread.access$800(ActivityThread.java:144)          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)          at android.os.Handler.dispatchMessage(Handler.java:102)          at android.os.Looper.loop(Looper.java:135)          at android.app.ActivityThread.main(ActivityThread.java:5221)          at java.lang.reflect.Method.invoke(Native Method)          at java.lang.reflect.Method.invoke(Method.java:372)          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Is scope of variables same in both Java and JavaScript. I have a variable in javascript and assigned when onLoad Page. but while keep on adding functions in my project, I got this variable as NULL. I checked multiple times this variable not assigned again but few places (In functions) used local variables with the same name. I am doubt that this will effect my global variable value. I have now huge functions I don't want to touch them. Please help me to resolve.   Code here:  in   <script> // other variables goes here.     var BUSINESS_CODE_CUSEUR = "<%=BusinessLine.BUSINESS_LINE_CODE_GLOBAL_CUSTODY_UK%>";     var branchId = null; //on Refresh branch, function refreshByBranch(){             branchId = dijit.byId("branchList").attr("value");          // other functions calling here who ever is depending on branch.                         searchTeamList(branchId);             searchCustomer(branchId);             searchClientRelationshipFsList(); //and so on. }  //my function is here: calling on an image click. function showSelectRootCauseDialog(){     var br = dijit.byId("branchList").attr("value");     console.info("showSelectRootCauseDialog - branchId:" + branchId);     console.info("showSelectRootCauseDialog - br:" + br); // getting null on line 2. }  </script>   -- Problem solved here like this. we made changes in every function.       function refreshByBranch(){                 branchId = dijit.byId("branchList").attr("value");                 var url = contextPath + "/" + servlet + "?cmd_query_for_user=1&branchId=" + branchId;                 originatorUserStore.url = url;                 ownerUserStore.url = url;                 resolverUserStore.url = url;                 searchTeamList(branchId);                 searchCustomer(branchId);                 searchClientRelationshipFsList();                 if(currentBusinessLineCde == gcBusinessLineCde){                 //  var branchId = dijit.byId("branchList").attr("value"); ////-- Problem solved here. by making comment.                      searchGroupList(branchId);                       searchLocationList(branchId);                     searchClientList(branchId);                     searchAccountManagerList(branchId);                 }             }

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


Question: For any prime numbers $p$ and $q$, one has $\text{gcd}(p+q, q) = \text{gcd}(p,q)$. Is this statement true?  Answer: True.  can someone explain why?  my reasoning: for any prime numbers, if an integer $q$ is added to it, the $\text{gcd}$ between $p+q$ and $q$ will still be $1$, since $q$ is still a prime number (prime = $1$(prime))

Does anyone have a intuition or argument or sketch proof of why $\gcd(a,b) = \gcd(b, a \pmod b)$?  I do have a proof and I understand it, so an intuition would be more helpful.    The proof that I already have:  I show $\gcd(a,b) \mid \gcd(b, a \pmod b)$ and $\gcd(b, a \pmod b) \mid \gcd(a, b)$ which implies $\gcd(a,b) = \gcd(b, a \pmod b)$ and stuff is non-negative.  WLOG $a \geq b$  $\gcd(a,b) \mid a$  $\gcd(a,b) \mid b$  so it divides any linear combination of a and b  Since $a \pmod b = a - qb$ then:  $\gcd(b, a - qb) = bx + (a-qb)y$  $\gcd(b, a - qb) = bx + ay - qby $  $\gcd(b, a \pmod b) = b(x-qy) + ay$  which is a LC of $a$ and $b$.  So $\gcd(a,b) \mid \gcd(b, a \pmod b)$.  Other direction is nearly identical.


I want to play on a minecraft server with my friends without playing on an internet server and i can't get them to play on LAN server because they're not on the same network is there a way to do this? If not thanks for answering anyway.

Minecraft's got an "Open to LAN" feature, which can be used to set up a local server when two computers running Minecraft are on the same network. Some young relatives of mine use this to play together whenever they're in the same house, but they'd like to be able to play together from their respective residences.  A server is not optimal because it's a bit complex. I've tried using Tunngle to spoof that the computers are on the same connection to no avail.  How can I convince Minecraft's "Open to LAN" that their two separate computers are on the same network?


If you toss a coin $n$ times, there are $2^n$ posible sequences of heads and tails. Let $E_n$ be the set of sequences which do NOT contain two consecutive heads and $e_n$, the number of sequences in $E_n$.  Thus $E_3$ $=$ $\{$ $TTT$, $TTH$, $THT$, $HTT$, $HTH$ $\}$ and $e_3$ $=$ $5$.  How many elements of $E_n$ have $H$ as the first toss and $T$ as the second?

If you toss a coin $n$ times, there are $2^n$ possible sequences of heads and tails. Let $E_n$ be the set of sequences which do NOT contain two consecutive heads and $e_n$, the number of sequences in $E_n$.  Thus $E_3$ $=$ $\{$ $TTT$, $TTH$, $THT$, $HTT$, $HTH$ $\}$ and $e_3$ $=$ $3$.  How many elements of $E_n$ have $T$ as the first toss?  Please can anyone help me out here?


Wondering if there are any data sets for world that describe places like named mountains, rivers, lakes, parks, etc. I know a little of , but it only seems to barely cover the national parks and just high level things. I'm looking for the level of detail found on :    If not, I'd be interested to know how they did that.

I'm in need of acquiring the coordinates of the outlines of all the water bodies inside a country, with the exception of "Sea" or "Ocean" water. Right now, I'm manually outlining the lakes and rivers but it is not a sustainable solution for the magnitude of the research I'm doing.  Even if I can only obtain the data of Lakes or Rivers, that would be a great start. I'm specifically interested in the countries of Malaysia, Brazil and the Dominican Republic.  My situation brings me to the question of, where does google obtain its data and are they available?


Almost 10 years back when I was a kid, we had a picture in our school text of wild buffaloes drinking water from a river - which was visibly muddy. I asked my mother of why we need to drink filtered water when they needn't. The question still persists now!  Do wild animals have better immunity? Has the potency of the human immune system reduced in the course of evolution due to better hygiene (different from hygiene hypothesis?)? Do animals also suffer from infections (like giardiasis which are known to spread by drinking contaminated water) and hence lesser life expectancy (due to lesser hygiene?)?

I've seen a number of animals - dogs, cats, squirrels, ducks and geese, etc drink from puddles, some of them were muddy, others had green flora growing under water. Same goes for lakes and rivers. A human would not drink that. Do animals experience gastrointestinal discomfort or can they die from drinking water like that?  At the same time I hear about the problem of "clean water" in 3rd world countries and how diarrhea is the #1 killer of children under 5.   Are humans the only animals that require a certain purity of their drinking water? Why is it that a dog can drink from a puddle, but a human is likely to get sick from doing the same? Do baby animals get sick from drinking "dirty" water?


Or point me to some statistics page that could help me answer my own question.  Does posting questions on weekends reduce the chance of getting an answer? It obviously doesn't count if the answers are fewer because the questions are fewer.

What's the best time of day, or weekday, to ask questions on Stack Overflow? I'd like to know if there might be a way to maximize the exposure or the amount/quality of responses.  At the very least, it would be good to know how to avoid times that might be particularly bad to post.


Going off of this question:  How can we prove that $max(|a|,|b|)\geq \frac{1}{2}(|a+b|)$?

The link here:  shows that $\max(a,b)=\frac{a+b+|a-b|}{2}$.      Is it true that $\max(|a|,|b|)=\frac{1}{2}(|a|+|b|)$?


When we calculate the Hamiltonian in the free theory, we notice that it contains an infinitely large term  \begin{align}  H   &=  \int_V \mathrm{d }k^3  \frac{\omega_k}{(2\pi)^3 }   a^\dagger(\vec k) a(\vec k)+ \frac{1}{2} \int_V \mathrm{d }k^3  \omega_k  \delta(\vec 0)    \, . \end{align} We can get rid of this term by claiming that nature only uses normal ordered operators, in which case there is no infinitely large term.  As soon as add an interaction term like $\phi^4$, we encounter the same problem. If we switch the operators around using the commutation relations we find infinitely large terms that are all related to field commutators evaluated at the same spacetime point $[\phi_{-}(x) ,\phi_{+}(x)]  \sim \infty $. In diagrammatic form, these terms are given by self-loop diagrams     Again, the problem can be solved by demanding that the Hamiltonian is brought into normal form before we quantize it. If we work with a normal ordered Hamiltonian there are no self-loop diagrams.  This seems to suggest that if we work with normal ordered Hamiltonians, at least some of the vacuum bubble diagrams no longer exist. Does normal ordering remove all vacuum bubble diagrams or are there some remnant diagrams that are not removed through the process of normal ordering?

I'm reading the derivation of the QED generating functional on Mandl&Shaw, "Quantum Field Theory" 2nd ed., 12.5.2..  The authors start from the expression (schematically): $$Z[j]=\frac{\langle 0\vert S[j]\vert 0\rangle}{\langle 0 \vert S\vert 0\rangle}$$and derive the formula: $$Z[j] = \frac{e^{V}Z_0[j]}{e^{V}Z_0[0]},\\V=i\intop \text d^4 x \mathscr L _{\text {int}}(\frac{i\delta}{\delta j(x)}),$$which is precisely what one obtains from the path integral expression: $$Z[j]=\frac{\intop \text D[\phi]e^{iS[\phi]-i(j,\phi)}} {\intop \text D[\phi]e^{iS[\phi]}}.$$ Here $Z_0$ is the generating functional for the free theory. Let me know if my notation is not clear.  In doing so, they completely disregard the normal ordering prescription in the interaction density $$\mathscr L _{\text {int}}\to \colon \mathscr L _{\text {int}}\colon.$$ Now, omitting the normal ordering amounts to include equal time contractions in the application of Wick's theorem. At the end of page 271, the authors state (and prove) that the only diagram which arises from this omission in QED is the tadpole diagram:    which, in QED, is identically zero. Also, in exercise 12.7, they state the in scalar QED, the tadpole diagram leads (in second order) to a simple correction $\delta m^2$ to the self-energy of the charged scalar.  I'm wondering, how does this work in general, that is, what is the effect of including equal time contraction in the perturbative expansion of Green functions? Do they always simply lead to constant (i.e. momentum-independent) corrections to the self-energy, which are incorporated in the physical masses through renormalization?


It's possible to set the cron job tool in my website cpanel 'VPS Hosting' to execute php file every 30 second  I am using it to execute php file once at a minute *,*,*,*,* but I need to set it to run twice  in minute  I have tried 1/2,*,*,*,* but it's not working.

Could you advise me what to write in crontab so that it runs some job (for testing I will use /usr/bin/chromium-browser) every 15 seconds?


Well, i jumped over to Lubuntu, and I'm on a fresh install of it... but I wanted to go ahead and install elementary to a flash drive and check it out, but cant because when I use terminal to install mkusb, I get this error:  dps@chris-pc:~$ sudo apt-get install mkusb mkusb-nox usb-pack-efi [sudo] password for dps:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   Also, when I try to install anything via the software center (discovery) it says:       PolicyKit Error    Incorrect permissions on /usr/lib/policykit-1/polkit-agent-helper-1 (needs to be setuid root)   Any ideas?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


Trying to do a manual backup of a 64Gb iPhone to an Mac Book Pro running Mountain Lion, iTunes stated that there wasn't enough disk space.  I deleted enough files so that Finder reports almost 95Gb free.     iTunes still states that there isn't enough space. On closer inspection, Disk Utility reports only about 20Gb free.    I've repaired disk permissions and verified and fixed the disk, booted in Recovery mode, but the reports are still the same.  I should have enough space, but clearly something is wrong here. Can someone please tell me what I can do to get the reporting correct and consistent?

Has anyone seen this issue and know how to fix it?  Look at the free space reported by running "Get Info" on my hard drive (Macintosh HD) in the Finder, "About This Mac" from the Apple Menu, and Disk Utility.  Running on an early 2011 MacBook Pro OS X 10.7.3.    Disk Utility shows:    108.31 GB (108,311,060,480 Bytes) available 390.94 GB (390,937,042,944 Bytes) used.   Finder shows:    206.43 GB available 292,816,503,508 bytes used (292.82 GB on disk).   System Information shows:    108.44 of 499.25 GB free.


Are there any app exchange apps/tools which we can use to compare the meta data between two orgs

Are there any  service/known option  to campare metadata on file system and some org and to identify what components have differencies. Is it possible to link this feature with Ci tool so it automatically detects what are the differencies and email them. Thanks in advance.


I have a situation of a co-worker who keeps complaining about process without having a deep/fully understanding  of existing processes, some of things he complains already exist and some don't but with a little reading he can get that information, what is the word or a few words to describe this?

What do you call it when someone has a strong opinion about something without having any experience with that thing? For example, if someone writes an entire newspaper article about how disgusting pie is without having ever eaten pie.  The word lodged in my brain is "hypocritical", but I know that's not correct.


I am arriving at CDG T1 at 9 am on 30 Sept on Lufthansa and will be taking a flight from CDG T2D at 11 am the same day to Lisbon on Easyjet.    I am rather anxious whether I can make it in time to catch this connecting flight. Is two hours enough time to do this and how do I travel between these two terminals?

I am flying to CDG with WOW. The airplane arrives at Terminal 1 at 11:30 AM (stats say that usually not later than 12:15 PM). Assuming it will land no later than that, what is the earliest time I can take a domestic flight from terminal 2F on a separate ticket? Do I have to get completely out of the airport? I guess I have to enter EU first. Is there automatic passport control at CDG (like the one in FRA)?  Thanks!


LaTeX offers 10pt or 11pt, but many books are published using 10.5 pt. Is there any way of getting 10.5 pt in LaTeX?

How can I get a half point size in LaTeX? Many books use 10.5 pt. Setting point size to 10.5 seems to have no effect. Is there a package that can do that?


I am a European citizen non-US resident travelling to the US for 4 weeks under the ESTA Visa Waiver, of which 10 days will be spent telecommuting/work remotely. I know that I am legally within my rights to do so, based on the ESTA Visa Waiver Help section. And based on these sources:  & , I will also not be taxable for that time because:   My salary for those 10 days will be less than $3000. My total time spent in the US this year will be less than 90 days. My employer is a non-US company.   (And just to be clear: I have no intentions of moving to the US permanently. I don't actually believe it's relevant in this case but just want to spare any such line of questioning.)  Please could someone   verify my understanding? confirm that the tax-related sources above are applicable to persons entering via the ESTA Visa Waiver programme? If I am incorrect on either of the above questions, please point me towards the type of visa that WOULD legally permit such activity?

I would like to travel in the USA for a period of 3 - 6 months. But I want to spend some time working for my employer (remote work) and getting paid by the employer. Is this possible under a tourist visa (B1/B2)?  I hope this is OK since I will not be getting paid by a US employer. I am in the IT trade so all that I will be needing is my own laptop and a connection to the internet. The money I earn would actually help me pay for the expenses I get during the holiday.


A character has a light source on himself, in an otherwise dark area. She ventures in an enemy-ridden area, revealing the position and nature of some enemies as she moves.  How is this ruled? Should she move square by square, telling at each square the direction she wants, until she wants to stop or she ends her movement? Should she go on the path she traced before seeing the enemies, at least up to where she could see at the beginning of the round? What happens when she reaches that spot?

For example:      A player (speed 6) moves two squares towards a human bandit (pg. 162 MM) becoming adjacent to him, then proceeds to move around him to the right, provoking an opportunity attack. The bandit hits with his basic melee attack (+4 vs. AC; 1d8+1 damage, and the human bandit shifts 1 square), shifting one square to the left immediately.    This free shift makes it so that the PC would no longer flank the bandit at the END of his move. Can the player adjust his remaining three squares of movement so that he can once again flank the now-shifted bandit, or does he have to stick with his earlier movement designation?  This question boils down to: Is movement counted as you go, or do you say, "I am moving to here, it is within my range, and on the way to my destination 'blah' happens?"


Flagging a post as spam/offensive makes  downvote that post.  Does the same thing happen with the "very low quality" flag?

If a post has a low quality score flag on it, it's automatically dismissed as helpful if a user edits it, which results in an automatic Community downvote. I understand (kind of) adding a downvote if a moderator marks the flag helpful, but it seems bad to downvote the post at the exact instant somebody edited it to fix the problems that resulted in the flag in the first place. Either the edit should dismiss the flag and not cause a downvote, or the flag should stay around until a moderator has looked at it, regardless of post activity.


I am trying to load a layer after its creation, by using runadload(), but I am getting the error: AttributeError: module 'processing' has no attribute 'runandload'.  Here's the partial script:  processing.runandload("native:saveselectedfeatures", {         'INPUT':boundary_layer,         'OUTPUT':'memory:'})   I am on QGIS3.4 Mac version and the processing version is 2.12.99. I tested the same script on QGIS3.6 to no avail. Is it that runandload() has been replaced in version 3, and if yes, what is the substitute?

I want to create and elevation hillshade but I found the script for QGIS 2.18. What should I use instead of processing.runandload? Here is my script on QGIS 2.99 python console:  import processing rasterLyr = QgsRasterLayer("C:/Users/Mustafa Uçar/Desktop/Tutorial/qgis_data/dem/dem.asc", "hillshade") rasterLyr.isValid() processing.runandload("gdalogr:hillshade", rasterLyr, 1, False, False,1.0, 1.0, 315.0, 45.0, "C:/Users/Mustafa Uçar/Desktop/Tutorial/qgis_data/dem/hillshade.tif") #to verify the output image processing.runandload()


I have a string "111222333" inside a CSV file.  I would like to convert this into something like "\111\222\333"  Currently my python code is :  refcode = "111222333" returnstring = "\\" + refcode[:3] + "\\" + refcode[3:6] + "\\" + refcode[-3:] + "\\"   I know there must be a better way to do this.  May I know what are the better ways to do the same thing.  Please help.

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


I know there are a bunch of topics with the same question, but I am just so confused.  I want to loop through my objects properties and write the value.  But everything I have seen says to           Dim pinfo() As PropertyInfo = MyCompanies(1).GetType().GetProperties()   This creates an array with the info of the properties, but it does not store the actual value of that object.property,     The name of the property is ticker, but the value of Mycompanies(1).ticker is AMZN.  My Code:   Dim pinfo() As PropertyInfo = MyCompanies(1).GetType().GetProperties()   'Loop through Properties   For pi = 0 To pinfo.Length - 1         'I want to get the values of each property         Console.WriteLine(?)     Next pi   Note: MyCompanies(1) is just the second object in an object array, all objects are of the company class   doesnt help either. It leads me to believe that I should do:      For Each pi In pinfo         'I want to get the values of each property         Console.WriteLine(PropertyInfo.GetValue(MyCompanies(1))     Next pi   but that wont even build. Is it because I am trying to give it the object by using the position in the array?  ...and outside of this loop I will have to loop through my object array, so i figured i could just replace the 1 with an i...

I have a class.  Public Class Foo     Private _Name As String     Public Property Name() As String         Get             Return _Name         End Get         Set(ByVal value As String)             _Name = value         End Set     End Property      Private _Age As String     Public Property Age() As String         Get             Return _Age         End Get         Set(ByVal value As String)             _Age = value         End Set     End Property      Private _ContactNumber As String     Public Property ContactNumber() As String         Get             Return _ContactNumber         End Get         Set(ByVal value As String)             _ContactNumber = value         End Set     End Property   End Class   I want to loop through the properties of the above class. eg;  Public Sub DisplayAll(ByVal Someobject As Foo)     For Each _Property As something In Someobject.Properties         Console.WriteLine(_Property.Name & "=" & _Property.value)     Next End Sub


Over the last few months I've been noticing an annoying back - focus problem on my Nikon D7000, regardless if I was using a AF-S or AF lens. But the problem seems to happen more often on my 35mm 1.8G and on my 50mm 1.4D.  Recently I've found that I could fine tune the focus to try to solve this problem,  and I've even used a test chart for sharpness and made tons of tests on an one meter distance from my object. After I've analyzed the results I've set my 35mm to -20 and my 50mm to -5 on the AF Fine Tune menu.  It worked just fine on my chart, but when I took my camera to test with "real world applications", once again I had tons of pictures with back-focus...  I've found  which that guy seems to be having the same problem as I am. But my question here is:   Can this problem be solved solely by tuning the auto focus? If so, which are the optimal values for my lenses? Can this be caused by something else on the camera?   P.S.: This is unlikely to be a lens problem, as I've tested the 35mm on a D3100 and my 50mm is brand new... And the problem also happened with a borrowed 50mm 1.8 D.

I have a Canon 7D with a 50mm f/1.4 lens, and I think the auto-focus of the lens is off.  How can I test and adjust this reliably?  Will this approach work with all of my lenses? If I had a different camera body, would I have other/different options?


I have an object like this but more complex:  var obj =  {   a: foo,   b: bar,   sub:{     a: foz     } }   and then I have a conditionals based on the keys and values, for example:  {   a: ^f,   sub:{      a: z$   } }   Is there a method for checking the conditionals are true for all of the objects properties. I'm also fine with chome-only-features or something like underscore. I can also re-structure the structure of my conditionals.

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


How many days in a week? Seven both to hear and speak. How many weeks in a month? Four, as the swift moon runneth.  What is the meaning of 'as the swift moon runneth'?


I have been looking around for a while now and it seems that all the ways to delete your direct messages on Twitter at once are outdated and do not work anymore. I was just wondering if anyone had found a current solution on how to delete all direct messages on Twitter at once.

How do I delete all my Twitter direct messages in one go without having to click the delete button for each message?


My mum's bag is blue.   Is is an auxiliary verb in that sentence? If not, what is it?      was suggested as a possible duplicate, but that post doesn't answer this question because it is about a different kind of sentence ("John is working now" is a progressive/continuous construction, but "My Mum's bag is blue" is not).

Consider these sentences:     The ice was thick enough to walk on.      They were in a hurry.      There is enough salt in it.      It is freezing.      I am right.   Are the italicized verbs auxiliary verbs?    Update: Let me explain why I asked this question.  The above sentences are from exercise 6 "Auxiliary verbs" from the book .  From the 36 sentences in exercise 6, all except the above mentioned five sentences are indeed sentences that contain auxiliary verbs (may, must, can, will, had, etc.).   So, what happened here? Why are those five sentences in this exercise? Is it an oversight?    View image in full resolution here:


Imagine that you have two typewriters on the other side of the galaxy. Their typebars are connected by ropes (stretched to the maximum), so anything you type will instantly appear at the second typewriter.  Are the sentences information? If so, why not send information faster than light? If not, I'd at least ask if such a transfer is actually immediate.    Thank you very much.

Is it possible for information (like 1 and 0s) to be transmitted faster than light?   For instance, take a rigid pole of several AU in length. Now say you have a person on each end, and one of them starts pulling and pushing on his/her end.   The person on the opposite end should receive the pushes and pulls instantaneously as no particle is making the full journey.  Would this actually work?


Someone posted this answered with a link to a non-solution.  It hasn't been answered.  I have js writing html from json using the same classes to display content. for example:

The Name 1

hidden info

The Name 2

hidden info

   With .hidden having a 'none' property in css.  My goal is to click on .name and have .hidden toggle on/off, I can only make this work if I manually put the html in the doc using:  $('.item').click(function(){   $(this).find('.hidden').toggle(500);   });   but this doesn't work if I use js to add the html. I also tried:  $('.item').on( "click", function() {    $(this).find('.hidden').toggle(500);    });   and  $(document).on( "click", ".item", function() {    $(this).find('.hidden').toggle(500);    });   but when the js writes the html, it just doesn't work. Any ideas?  I tried searching in vain but maybe I'm not searching for the right solution, any help would be greatly appreciated.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Hi i saw some procedures to protect drop box folder, but i don't like those procedures. My requirement is, if any one click the dropbox folder on start -> my computer -> dropbox folder at left side, system should ask the password.If any one had solution (other than zipping the folder) please tell me.

I use dropbox a lot, and I'd like to start using my Dropbox account on my work PC, however I want to prevent anyone else from being able to access the files in my dropbox folder other than me on my work PC.  E.g. double clicking my dropbox asks for a password or something on my work PC.  Is this possible? If so, any suggestions?


A photon is an excitation or a particle created in the electromagnetic field whereas an electron is an excitation or a particle created in the "electron" field, according to second-quantization.  However, it is often said in the literature that the wave function of a photon doesn't exist whereas it exists for an electron.   Why is it so?

According to this review     Photon wave function. Iwo Bialynicki-Birula. . ,   a classical EM plane wavefunction is a wavefunction (in Hilbert space) of a single photon with definite momentum (c.f section 1.4), although a naive probabilistic interpretation is not applicable. However, what I've learned in some other sources (e.g. Sakurai's Advanced QM, chap. 2) is that, the classical EM field is obtained by taking the expectation value of the field operator. Then according to Sakurai, the classical $E$ or $B$ field of a single photon state with definite momentum p is given by $\langle p|\hat{E}(or \hat{B})|p\rangle$, which is $0$ in the whole space. This seems to contradict the first view, but both views make equally good sense to me by their own reasonings, so how do I reconcile them?


We are new parents to our first baby boy. When we got home from the hospital 3 1/2 months ago, our baby cried a lot when put down, and just wanted to be held. He hated swaddling so after trying every swaddle we unswaddled.   Now fast forward 3 months, 12 days and our baby is waking up 6 to 7 times after 1 am looking to be fed, sometimes every hour to half hour.   They won't sleep through the night. Why is this happening?

My 3 month old went from starting on a good sleep trajectory (a five hour and 3 hour stretch at 8 weeks regularly) to waking between every 15 minutes and every 2 hours. What I'm trying to figure out is what causes the frequent night wakings. She was fighting her arms out of her swaddle and getting the fabric over her face in the process, so for her safety we taught her to sleep without it.  Plus she started sleep crying for gas pain or some other cause in the very early morning nearly every morning that we rushed to comfort.  With all that her sleep habits deteriorated.  They have been getting worse and worse since 9 weeks and at 14 weeks I am at my wits end with the double digit number of night wakings.  Reading that some people consider 4 bad was hardly comforting.  I've seen Marc Weissbluth's  in .  I've tried his solution, too, which is invariably to move bedtime earlier.  Well Her bedtime has consistently been earlier than 6:30 for well over a week with no changes.  I'm sure the completely fragmented sleep is making her overtired, but earlier bedtimes are doing nothing to help.   Her naps are not yet organized (I'm despairing that they ever will be at this rate) and so she takes 4 to 5 30-45 minute naps - if she'll take them - that I offer whenever she starts yawning, looking glazed-eyed, or rubbing her eyes.   suggests hunger as one possible cause.  My little girl is skyrocketing up the growth chart and eats every 1-2 hours during the day on demand.  I feed her 2-3 times at night, but not at every waking.  I sincerely doubt she's hungry, but I'm open to being wrong.  Baby does have a pacifier, and popping it back in often soothes her back to sleep.  Would trying to wean her off of it at this early age perhaps help her learn to self-soothe, or would it just make sleep worse?  I am totally fine if she wants to suck on her fingers or thumb and get us all a little sleep, but so far every time she finds her thumb it does nothing to help her go back to sleep.  She's not really coordinated enough to keep it in her mouth.  Could it be the  come to call early?  An early start of ?  Is there any solution other than to soldier through?  Is there an age-appropriate form of sleep training worth trying?


I have two 5 volt voltage regulators that I would like to connect to a 9 volt source in a parallel configuration.  Is this advisable, problematic, or even commonly done?    I have tested this configuration and noticed that one of the regulators gets hotter than the other.  Why is this?

In order to supply more power to a circuit. can you split the power between 2 voltage regulators, in parallel?  Can this overpower one of the Voltage Regulators?


This questions has been asked and answered before (e.g., ) but this doesn't work anymore, at least for me.  At some websites you can download ICS files for events. Is there a way in which these files are automatically imported to my Google Calendar in a single click, without having to download, go to Calendar, and import? I use Chromium (Chrome on Linux); at Settings -> Content Settings -> Protocol handlers I have enabled calendar.google.com for type "webcal". However, when I click on an ICS link my browser will just download the file.  A  was asked before, but all the answers provided there only work on Firefox and/or Windows, while I use Chrome on Linux. Moreover, most answers seems to suggest I have to associate Google Calendar with Webcal type events, but as explained above, that is already the case in my setup.

Lots of web sites have an option to export events as an ICS file that can then be imported into a desktop or web-based calendar (for example if you're invited to a Facebook event there will be an export button that gives you an ICS file).  By default in Firefox 3.5 on Vista I'm only offered three options here "Open with Windows Calendar", "Open with Other" or "Save File", so what I'd do is save the file onto my PC, and then log into Google Calendar and import that ICS file.  What I'd like is to have an "Open with Google Calendar" or "Import to Google Calendar" type option when I click the Export link.   I know that you can , and I've got the  extension installed that will detect hCalendar microformat entries embedded in the text and offer to import them to Google Calendar, but I can't work out how to configure either of these to do what I need.  Preferably I'd do this without installing any additional software, and in a way that will work with a Google Apps account (but if someone can point toward a solution for normal Google Calendar's that would be a good start).


I need to use import ogr in my python window provided by ArcGIS 10.2, but i can't configure ogr and gdal on my system.   How can I fix this issue and import ogr in my python window provided by ArcGIS 10.2.

When I run my script outside ArcGIS it works because during execution script uses a GDAL and OGR modules from osgeo. When I use script as a tool in ArcGIS it does not work. In PySripter I can import all modules and it work. In Python Window in ArcGIS I cannot import because I get this error:     Parsing error SyntaxError: invalid syntax (line 2)    import ogr   Runtime error    Traceback (most recent call last):     File "", line 1, in      File "C:\Python27\ArcGIS10.1\lib\site-packages\osgeo\ogr.py", line 26, in        _ogr = swig_import_helper()     File "C:\Python27\ArcGIS10.1\lib\site-packages\osgeo\ogr.py", line 22, in swig_import_helper       _mod = imp.load_module('_ogr', fp, pathname, description)   ImportError: DLL load failed:   In the case when I import  gdal in ArcGIS Python Window I do not get this error. How to force arcgis to import ogr and use it in ModelBuilder or Script?? I check a lot of solutions includin reinstallation, changing and adding environment variables. I checked :       and I still do not have a good solution. Any idea?  UPDATE: I also try use direct importing in my script: import imp ogr = imp.load_source('ogr', 'c:\Python27\Lib\site-packages\osgeo\ogr.py' and I get the same error. If I use this method in standalone script it works.


I run blender 2.8 on my MacBook. However when I try to run a quick smoke simulation, nothing shows in the viewport. Why can’t I see the simulation? I have an object and a domain as default. Please help. Running 2.82a. Anyone??

Whenever I add a Quick Smoke effect, I can't preview it on the viewport unless I bake it.   And Yes, I added the Smoke Domain on the object.   I've seen tutorials like this  and this  that clearly shows the possibility of previewing the smoke before baking it.   I'm using Blender on a Mac with AMD GPU. I would guess that this is something related to OpenGL, as thoroughly explained here -  but that's for Windows.   Does anyone have any idea how to fix this?


I am working on a JPanel that has a username textbox and a password textbox. I felt like the code i have should check if the input equals the preset user and pass but it keeps saying I am wrong. Could someone please help fix this. Also, do not just link another question I have searched for hours upon hours and i cannot seem to get this to work. Furthermore, i would like when the continue button is pressed and inputs are right for a new JFrame to come up and dispose of this panel(totally optional). Please consider I am new to programming so there might be stuff below that can be simplified or just unnecessary.  import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import java.awt.*; import java.util.Scanner;    public class EnterButtonListener implements ActionListener {   String USERNAME = "user";  String PASSWORD = "pass"; String userText, passwordText;   public JFrame authFrame;  public void actionPerformed(ActionEvent arg0) {     JFrame authFrame = new JFrame();     authFrame.setSize(400, 300);     authFrame.setLocationRelativeTo(null);     authFrame.setDefaultCloseOperation(authFrame.DISPOSE_ON_CLOSE);      JPanel panel = new JPanel();     authFrame.add(panel);     placeComponents(panel);      authFrame.setVisible(true); //make new JFrame appear  }  public void placeComponents(JPanel panel) {  panel.setLayout(null);  JLabel atlasIcon = new JLabel(); atlasIcon.setIcon(new ImageIcon("/users/mfyhr/Pictures/Atlas2.png")); atlasIcon.setBounds(50, 5, 400, 100); panel.add(atlasIcon);  JLabel authLabel = new JLabel("Authentication Required"); authLabel.setBounds(90, 85, 400, 25); authLabel.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 16)); panel.add(authLabel);  JLabel infoLabel = new JLabel("Please enter your credentials to continue."); infoLabel.setBounds(27, 112, 400, 25); infoLabel.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 14)); panel.add(infoLabel);  JLabel userLabel = new JLabel("Username"); userLabel.setBounds(80, 150, 100, 25); userLabel.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(userLabel);  JTextField userText = new JTextField(20); userText.setBounds(170, 150, 150, 25); userText.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(userText);  JLabel passwordLabel = new JLabel("Password"); passwordLabel.setBounds(80, 180, 100, 25); passwordLabel.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(passwordLabel);  JPasswordField passwordText = new JPasswordField(20); passwordText.setBounds(170, 180, 150, 25); passwordText.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(passwordText);  JButton continueButton = new JButton("Continue"); continueButton.setBounds(185, 223, 85, 33); continueButton.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(continueButton);  JButton cancelButton = new JButton("Cancel"); cancelButton.setBounds(290, 223, 85, 33); cancelButton.setFont(new Font("Bank Gothic", Font.TRUETYPE_FONT, 12)); panel.add(cancelButton);  final String username = userText.getText(); final String password = passwordText.getText();  continueButton.addActionListener(new ActionListener() {   public void actionPerformed(ActionEvent ae)   {     if ((username == USERNAME) & (password == PASSWORD)) { JOptionPane.showMessageDialog(null,"Access Granted"); } else { JOptionPane.showMessageDialog(null,"Access Denied"); }   } });        //continueButton.addActionListener(new ActionListener(){  //public void actionPerformed(ActionEvent ae)  //{   //check user and password textboxes   //if both = myuser and pass  //hide Menu and close enterbuttonlistener  //open new JFrame  //   }   //ActionListener continueButtonListener = new ContinueButtonListener();  //continueButton.addActionListener(continueButtonListener);   //ActionListener cancelButtonListener = new CancelButtonListener();  //cancelButton.addActionListener(cancelButtonListener);    }  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $A$ $\subseteq$ $\mathbb{R}^n$ be compact, and let $F: A \to \mathbb{R}^m$, be a continuous mapping. Prove $F(A)$ is compact.

I just got my exam back, and I still cannot understand this question:     Given a continuous function $f:A\subseteq\mathbb{R}\to\mathbb{R}$, show that if $A$ is a compact set, then its image, $f(A)$, is also compact.   I know that a set $A\subseteq\mathbb{R}$ is compact if every sequence in $A$ has a subsequence that converges to a limit that is also in $A$, and I know that a function $f$ is continuous on $A$ if for every $(x_n)\subseteq A$ such that $x_n\to c\in A$, it follows that $f(x_n)\to f(c)$. Therefore, all that I need to do is show that for every $(y_n)\subseteq f(A)$, there is a subsequence $(y_{n_k})$ such that $y_{n_k}\to y\in f(A)$.  Can I then make the assumption that for any sequence $(y_n)\subseteq f(A)$, there is a sequence $(x_n)\subseteq A$ such that $y_n=f(x_n)$? If so, I could then continue by stating that since $A$ is compact, there is a subsequence $(x_{n_k})$ such that $x_{n_k}\to x\in A$, and since $f$ is continuous, $f(x_{n_k})\to f(x)$. I believe that this yields the required subsequence $(y_{n_k})$ of $(y_n)$ such that $y_{n_k}=f(x_{n_k})\to f(x)=y\in f(A)$.  What do you guys think? Is this a sound approach? Thanks in advance.


My professor said "You can check triviality of tangent bundle of  $S^3$ using Quaternion group. In fact $S^3 \subset \mathbb{R}^4 = \mathbb{H} = \{a+bi+cj+dk|ij = k, jk = i, ji = -k, ik = -j,i^2 = j^2 = k^2 = -1\}$ and multiplication in $\mathbb{H}$ preserve being tangent, this implies the fact of $TS^3$ is trivial". I can't find out how to use this structure to prove the triviality of $TS^3$.

Since $T_p G$ is isomorphic to $T_e G$ for all $p\in G$, it makes sense that each vector in $T_p G$ can be identified with a vector in $T_e G$. Hence, to make the map from $TG$ one to one, we must identify each vector in $T_e G$ with a point in $G$, but I'm having trouble saying this precisely.  Thanks so much!


#!/bin/bash  for i in $(cat containers2.txt); do     swift list -A http://sslabapi/auth/v1.0 -U auto02 -K    FfiBftkjgS8hnQn79Arj7PiHfvtsgn $i > js.txt done     for a in $(cat js.txt); do             swift stat -A http://sslabapi/auth/v1.0 -U auto02 -K FfiBftkjgS8hnQn79Arj7PiHfvtsgn $i $a | xargs | awk '{if ($12 > 10000) print $2, $4, $6, $12, $15, $16, $17, $18}' done   Above is a script I am working on. I apologize for how ugly it is, for I am not an expert with Bash Scripting. Ultimately I need to complete a loop where the containers.txt file has a list of containers like this:  5f7f720f-7563-031b-a002-9059f5c000b2 64366a18-e590-44cf-b99c-13b7587b34b5 6785038a-fd74-43c0-afcb-ddf25f251363 6952e11a-69a2-4988-81ff-10910a274d69 69f7d0f9-9a63-4d29-8e84-1c06b5fe892f 6a9480b8-84c8-4ab5-a82e-5576ceb1df7f 6bb37f24-1605-2aac-2ba2-c1e0d49f4ec7 874600f4-a8b2-4bf7-bca8-c75dac676f03   Each container has a list of objects as listed below:   ffd5eef3-2b75-4d4f-b30c-b9836b32a34c.FR.02  ffd5eef3-2b75-4d4f-b30c-b9836b32a34c.FS.02   Some containers have more objects then others. But in this script I am only getting the output of the final container written to the js.txt file. Also I am only getting the final output of the last objects in the final container. I am guessing the js.txt file is being overwritten each time the loop runs, so only the last container is present in it. Which makes sense to why the final output is only the objects from the final container.   Is there a way to output each object into js.txt one line at a time? Or am I going about this the wrong way?  Thanks

I've a simple bash script. PFB :  CWD=/cygdrive/c/Users/abhisek.samanta/Desktop/New_folder cd $CWD for i in `cat req_files.txt` do echo "file_found : $i">a.txt done   Note : req_files.txt is having a list of files which i need to find in this directory . If the files are found, it should list the name of the file which was found & print it in "a.txt".   The req_files.txt is having multiple files,but only the first filename is getting printed & not the rest of the files. Pl help.


I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I want to use some yeast mutants to conduct gene functional analysis, and the gene was isolated from plants. Can anybody give me some information regarding the websites or agencies from which I can purchase the yeast mutants?

I'm used to working with bacteria - some of the more common laboratory strains sometimes come with an order from some vendors.  What's the most convenient source to order  for lab work?


I am from Sri Lanka and my husband is staying in New Zealand. My husband (alone) wants to come to Sri Lanka  and pick my self and our son and return to New Zealand. We are planning for this trip between 19th and 30th December 2015.We have no visa issues. Anyhow my husband is required to buy a return air ticket for immigration purposes.  To enable three of us to depart Sri Lanka with seats together in the same flight  and in order to get the best deal pls tell, who should buy tickets? Is it my husband (from New Zealand) OR myself (from Sri Lanka)? In what way can we get best results?

I'm looking to book flights from) Philadelphia (PHL) to Detroit (DTW). Direct flights are quite expensive. I noticed, in expanding a search to surrounding airports, that I can book from Allentown (ABE) to Detroit for far less, and the connection is through Philadelphia.  Can I book this flight but board in Philadelphia? I'll be traveling with carry-on luggage only, so on the return, it's obviously no problem. But would I be allowed through security and on to the plane in PHL with out having flown from Allentown?


I have generated a self-signed certificate on Sandbox environment and based on that have a JWT token that would be sent to my API being called from Salesforce on some action. Now since I am using the public key for decrypting the JWT token in my  application to authorize the call from SF, I need to hard-code that public key in my api code.   This same api would be called on PROD env too. So my concern over here is that if I create a self-signed certificate in Sandbox env, will it be available on PROD as well?

As part of our CI/CD with Azure, we were able to successfully authorize an Org using the JWT-Based Flow AS LONG AS we follow the steps   Every time we refresh our sandboxes, we have to go through the whole process again, which is a bit of a pain.  Question is, do you guys know if I can generate a server.key file (which is requried by the JWT Flow) from a self-signed certificate created within Salesforce, and not openssl?  Thanks.


I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I can see my object fine in rendered mode.  I can even see my object fine with a particular camera in rendered mode.  However, when I switch to a particular camera, I can no longer see the object in rendered mode.  I have tried hiding/unhiding, clipping distances in camera settings and on viewport tab, the output looks good in the node editor, and I have gone through all of the solutions I could find on here.  Here is the camera that I can't see the object with:    Here is the camera that I can see the object with:   I am not too familiar with depth of field settings yet so it might have to do with that. I thought if I adjusted the aperture settings it would account for that. Here are the settings I thought you would need to see:   What're your thoughts and thanks!  Tyler

When I render in Cycles it turns into solid white.  I've spent the past 2 hours researching the answers to this online, mostly through this Blender Stack Exchange.    1.) All my layers are turned On 2.) My World is not emitting anything, it's just black. I have my camera facing the model (as you can see in the screenshots).   And after messing with it some.. it now renders in solid static (as seen in screenshots). Trying to upload the file now to tiny upload.. so hopefully during this weekend someone can figure this out for me. Ugh!!.. lol. Thanks so much!


The original quesion is $$\int_0^\infty\left(\frac{\sin x}{x^3}-\frac1{x^2}\right)\,dx$$ Can I divide them into two parts? Then using residue theorem?

Show that $$\int_{0}^{\infty} \frac{x - \sin(x)}{x^3} \, dx = \frac{\pi}{4}$$   My attempt is as follows: Let $$f(z) = \frac{z - i e^{iz}}{z^3}$$ and consider the contour on $[\epsilon, R]$ followed by a semicircular arc in the counter clockwise direction, then on $[-R, -\epsilon]$, then the semicircular clockwise contour avoiding the origin. We have, then, that  $$0 = \int_{\Gamma} f(z) dz = \int_{[\epsilon, R]} f(t) dt + \int_{C_R}f(Re^{it})Rie^{it}dt + \int_{[-R, -\epsilon]}f(t)dt + \int_{C_{\epsilon}}f(\epsilon e^{-it})\epsilon i e^{-it} dt$$  Then the first and third integrals ( $I_1$ and $I_3$) combine so that  $$I_1 + I_3 = 2\int_{\epsilon}^R \frac{t - \sin{t}}{t^3}\,dt$$  Further,   $$|I_{C_R}| \leq \int_0^\pi \left|\frac{Re^{it} - ie^{-R\sin{t}}e^{iRcos{t}}}{R^2 e^{2it}} \right|dt \rightarrow 0 \text{ as } R\rightarrow \infty$$  (I've omitted the details, it isn't too bad to bound)  However, I'm having trouble computing the limit  $$\lim_{\epsilon \rightarrow 0}\int_{C_{\epsilon}} f(\epsilon e^{-it})\epsilon i e^{-it} dt$$  No matter which way I look at it, it seems like this limit does not exist. Perhaps I'm seeing something wrong or have I chosen a bad $f(z)$?


In couple of places on that site we can find the following statement:     A smooth manifold $M$ admits a finite atlas.   Look for example here  or here , yet with no reference for a proof. I would appreciate if someone give any since I could'n found.

If $M^n$ is a compact topological manifold (not necessarily with additional structure), is there an upper bound on the number of charts needed to cover $M$ ? Does this bound depend on the dimension of $M$ ?  Thanks in advance...  Cheers


I have a dataset with about 1M negative examples and 4700 positive examples. I'm trying to create a classifier that tries to predict the % of an example being positive.  Given how much the data is skewed, should I just give up or are there algorithms that perform well with skewed data?

Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables.   My problem is the following: whatever set of predictor variables I use, the classifications never get better than a specificity of 100% and a sensitivity of 0%. However unsatisfactory, this could actually be the best possible result, given the set of candidate predictor variables (from which I can't deviate).   But, I couldn't help but think I could do better, so I noticed that the categories of the dependent variable were quite unevenly balanced, almost 4:1. Could a more balanced subsample improve classifications?


Previous question I asked .  Posting a new question because my previous approach included many incorrect assumptions.  I'm working on a product with a motor, a fan, and a LCD with capacitive touchscreen.  The most basic description of the problem is that the reported touches are inaccurate sometimes.   The touchscreen has an integrated FT5426 controller. This is the LCD in question:  (note the thumbnail is inaccurate).  The touchscreen is powered from a 3.3v linear regulator with a 100uF cap near the regulator output, and a 0.1uF decoupling cap near the ribbon connector. The 3.3v regulator input comes from a 5v switching regulator, which in turn comes from an external 24v power brick.  Below is what I've learned so far.   When they are incorrect, touch coordinates are always left of the actual touch location. The Y coordinate never seems to have issues. The issue does not occur at all with some power supplies, and it occurs frequently with others. None of the power supplies have negative connected to earth. The issue does not occur if you touch the metal LCD bracket (which is connected to system gnd at several points). The severity of the issue increases dramatically if the motor or fan is running. Both have snubber caps and flyback diodes. The touchscreen controller talkes to a PIC32 via I2c. There is a 0.1uF decoupling cap close to the ribbon connector, as well as TVS diodes on the data and power lines. The 24v input from the power supply appears to be quite clean on an oscilloscope. Although there are sawtooth dips in the voltage when the motor is running. Connecting negative to earth gnd fixes the problem (but there's not an easy way to do this in the final product). Connecting the oscilloscope to the point where 24v power enters the board drastically reduces the problem, even with the scope earth is disconnected. The scope connection even helps somewhat when the scope is powered with lipo batteries and an AC inverter. I tried connecting an additional 0.1uF cap where the scope was connected  (even though there is already extensive decoupling nearer to the voltage regulators). This didn't have any effect. I tried disconnecting the earth from the AC input into a good supply, in case there was some kind of capacitive coupling to earth, but that had no effect. The motor and fan running exacerbate the issue somewhat even when they are disconnected (PWM still going to mosfets). The board has a solid ground plane, and generally follows good decoupling and routing practices. It also passed CE testing. That is to say, I don't think the design is excessively noisy. I tried adding a choke to the input power wires (although the power brick already has one, and that had no effect).   My questions are. Has anyone seen this issue before? And what are some possible causes, or things I can try to fix the problem?  What could the power bricks be doing that eliminates the problem? Neither shows excessive noise, and there is no gnd connection.  My goal is to make the touchscreen reliable with the good and "bad" power bricks.  Edit: Bingo, Sunny appears to be correct. I'm measuring huge common mode noise at 60hz (if I'm measuring correctly). The scope is connected to earth, and I have the probes connected to positive and negative where they enter the board. The ground clips are NOT connected.  Here's what I'm seeing:   And here's a good supply:  So finally I can see a difference between the two!  I'm going to try adding a huge common mode choke. But does anyone have an idea for how to fix this without changing the power supply?  Edit: The common mode choke had little effect. I wrapped a pair of magnet wires around a torroidal ferrite, approximately 24 turns. When the probes are placed before and after the ferrite on the negative line, the signals are identical. ..The signal on the negative line is also identical if I turn off the machine (which disconnects the positive line from the power supply).

Edit: Pretty much all conjectures in my question have been proved to be incorrect. I started fresh with a new approach. New question is .    Original question:  I'm having an issue with a touchscreen LCD assembly.  The touchscreen normally works fine, but if I mount it in a housing with a gasket the taps sometimes register in the wrong location.  The incorrect taps only seem to occur when I'm tapping the screen. They don't occur on their own.  This is the screen I'm using:  (note the thumbnail is inaccurate)  I've tried different gasket materials such as neoprene rubber, and foam but the issue occurs with all of them.   Inside view (without LCD)   I placed the gaskets so that there is an ~1mm gap between the LCD active area and the gasket on all sides. The datasheets for this part don't have a recommendation for the gasket material or geometry.  Can anyone suggest a solution for this problem, or design guidelines I might use to come up with a solution?  The housing the screen will be mounted will be injection molded, so it's difficult to modify at this point. It doesn't really have any features besides an aperture, and screw holes for the bracket.  EDIT: New discovery, it doesn't seem to be the gasket after all. I realized that when the touchscreen is not installed, I'm holding it by the bracket and thereby grounding myself. If I set the touchscreen on the table and touch it with only 1 finger, the same problems occur. So, new question why does the touchscreen only work when I'm grounded? The RH is 65% in my office, so I don't think it's static.  EDIT2: I thought the power supply had negative connected to earth, but it doesn't. So I manually connected it, and that fixed the problem. ..But I still don't know why. Why does the touchscreen not work correctly when the supply is floating?


There is a site dedicated to Linux/Unix () and one for Ubuntu () as well. I have a question about Windows 7 command line regarding PostgreSQL. In which site shoud I post that?

There is Ubuntu and Unix/Linux site but is there special 'stack' site for Mac and Windows?  For context, the question I am looking to ask: I accidentally connected a Windows NTFS formatted HDD to a Mac. And the Mac (may be) quick-formatted it. I think that the information is there, but the FAT table is gone. How I can recover the information.


I want to define a skewed distribution function and plot it in python using the mode and inflection points parameter values instead of using the mean and standard deviation. For example, I have mode=110 and inflection points = (40, 160) for asymmetrical points. Or mode=100 and inflection points = (50,150) for symmetrical points we can define gaussian normal distribution in this case. I tried with this code below for gaussian function, but I don't how I can add the second point to the formula which is returned by the function? Since I have two points, and I don't know how to define a skewed function that depends on two points and mode. import numpy as np import matplotlib.pyplot as plt    def distribution(x, mode, inf_point):     return 1/(np.sqrt(2*np.pi)*inf_point)*np.exp(-np.power((x - mode)/inf_point, 2)/2) x = np.linspace(0,256) plt.plot(x, distribution(x, mode, inf_point))

I want to define a Gaussian distribution function and plot it in python using the mode and inflection points parameter values instead of using the mean and standard deviation. For example, I have mode=110 and two points : (40, 160) for asymmetrical points. Or mode=100 and two points = (50,150) for symmetrical points. I tried with this code below, but I don't how I can add the second point to the formula which is returned by the function? Since I have two points, and I don't know how to define a function that depends on two points and mode. Thanks in advance for your help! import numpy as np matplotlib.pyplot as plt    def gaussian(x, mode, inf_point):     return 1/(np.sqrt(2*np.pi)*inf_point)*np.exp(-np.power((x - mode)/inf_point, 2)/2) x = np.linspace(0,256) plt.plot(x, gaussian(x, mode, inf_point))


We are a NGO looking for something 99% similar to Stack Overflow for analyzing and suggesting improvements in legislation.  I have tried searching for terms and conditions for getting Stack Overflow engine for sort of semi-internal use, and after much searching I by accident found this reply (  ).   The default answer that crops up all over the place is  which doesn't actually say much, and the Stack Exchange site itself doesn't, at first glimpse at least, say anything about creating your own SE sites anymore, just lists the existing sites.(Or do I need to be logged in to see that option?)  Anyway, our needs are with several exceptions to how Stack Exchange sites generally work:   The Question part would be actually a suggestion from an expert for a change in legislation, so initially at least, no questions from people with no rep; Initial majority of comments would be limited to the experts and such members that have received high enough ratings; There should be possibility to limit the visibility of suggestion for the public until it is approved (received high enough upvotes from experts); The site must be customizable in appearance and in language (need ability to supply different language for labels & help texts).   Now, it seems SO engine might be able to do this(?), but this is, of course, not how SE sites work. Any solutions available?

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


I don't know much about Blender at all, but I am using it lately to work on head morphs for Poser.  I mostly work in the sculpting area but I am finding some difficulties changing the values of the brushes easily.  With Poser and Photoshop there is a dial that lets me control things, like size of the brush. But in Blender I seem to only be able to type in the value manually. This can be a pain because I don't have a desk for my tablet so I have to put it on my keyboard, which means I have to keep moving my tablet.  Is there something I'm missing here? Or can you only change the brush values by manually typing them in?

When texture painting the two most commonly adjusted settings are (in my experience) brush Radius and Strength. Radius already has shortcuts to decrease or increase: [ and ] keys respectively.  I want to configure a shortcut to similarly adjust the Strength.    From the console I can see that when [ is pressed this happens:  bpy.ops.brush.scale_size(scalar=0.9)   And when ] is pressed this happens:  bpy.ops.brush.scale_size(scalar=1.11111)   Here is what the key configuration for [ looks like:    So I am hoping there is some kind of corresponding command for Strength, but nothing I've tried has worked.  For example: brush.scale_strength does not work.  Is it possible to set keyboard shortcuts for the Strength slider?  Thanks


Prove that An=n!, the number of permutations of n elements, and Dn, the number of permutations of n elements without fixed points, satisfy the recursive equation: Dn = (n−1)(Dn−1 + Dn−2).  I've gotten to prove that Dn satifies such recurrence. I need help showing that n! satifies it.

Prove by induction that   $$ D_n = (n-1)(D_{n-1}+D_{n-2}), n>2 $$  where $D_n$ is the number of derangements of $n$ objects.  I am a little rusty in induction, and here's what I have done so far.  Basis step:  This is easy to prove and trivial, it works for $n=3$ and this is the basis step.  Induction step: Suppose the formula holds for $n$. I will use the relation:  \begin{equation} D_n = nD_{n-1} + (-1)^n, n\ge2 \label{u28.eq.1} \tag{i} \end{equation}  which I know is true because I have proved it before. So  $$ D_{n+1} = (n+1)D_n + (-1)^{n+1} =(n+1)D_n-(-1)^n $$  I use again formula \eqref{u28.eq.1} for $(-1)^n$ and obtain  $$ (n+1)D_n-D_n+nD_{n-1} = n(D_n+D_{n-1}), $$  which is of course what I wanted to prove. The thing is that I didn't use the induction step and I think I am wrong at some step, but I cannot tell where.


Assume that $f: \mathbb{R} \rightarrow \mathbb{R}$ is continuous, and for all $x \neq 0,$ $f'(x)$ exists. If $\lim_{x\rightarrow 0} f'(x)$ exists, does it follow that $f'(0)$ exists? Prove or disprove.  Intuitively, it seems to me that it does does. That $f'(x)$ would not exist implies a point discontinuity, since $\lim_{x\rightarrow 0} f'(x)$ exists. Given that $f$ is continuous, $f$ is defined at $x.$ However, I'm not sure how to go about proving this (if I'm correct). Any hints? Thanks :)

The question is the following: Assume $f: \mathbb{R} \rightarrow \mathbb{R}$ is continuous, and for all $x \neq 0$, $f'(x)$ exists. If $\lim_{x \rightarrow 0} f'(x) = L$ exists, does it follow that $f'(0)$ exists?  My intuition is that this does not have to hold in general. However, I keep finding counter examples such that $f'(0)$ exists where $\lim_{x \rightarrow 0} f'(x) = L$ does not exist, which is obviously not the original question.


I'm trying to write a discord bot in C# as I never really touched it, but I have some issues using a switch to check reactions under a message. Fragment of my code: DiscordEmoji emoji1 = DiscordEmoji.FromName(ctx.Client, ":one:"); DiscordEmoji emoji2 = DiscordEmoji.FromName(ctx.Client, ":two:");  await grupyMessage.CreateReactionAsync(emoji1); await grupyMessage.CreateReactionAsync(emoji2);  InteractivityExtension interactivity = ctx.Client.GetInteractivity();  InteractivityResult<DSharpPlus.EventArgs.MessageReactionAddEventArgs> resultGrupa = await interactivity.WaitForReactionAsync(     x => x.Message == grupyMessage &&     (x.Emoji == emoji1 || x.Emoji == emoji2)).ConfigureAwait(false);  switch (resultGrupa.Result.Emoji) {     case emoji1:         break;     case emoji2:         break; }  Error says that a constant value is expected and I've seen similar questions about that error, but I haven't found any solutions for my use case (there is another message like that I want to use to give proper roles to server members and it has much more options so making an if else chain would be an absolute mess).

Why does the compiler say "a constant value is required" for the first case...the second case works fine...    switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice:           //do something           break;     case "OU=Home Office":           //do something         break;     default:         break;  }   also tried...  switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice.ToString():           //do something         break;     case "OU=Home Office":         //do something         break;     default:         break;  }   ...same error  Here's the Properties.Setting code  [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("OU=Home Office")] public string OU_HomeOffice {     get {         return ((string)(this["OU_HomeOffice"]));     } }


I have an assignment in which I have to give the steps of the installation. So I request you to be very specific on the steps

I would like to see a full how-to guide on how to install Ubuntu.


i am an amateur programmer and I'm trying to make a javascript game. I am not going to post this game to the internet, so don't bother with servers and stuff.  The game has a simple score keeping system and every time the game is over, I want the all-time-high score to be shown, and if a new highscore is obtained, I want the previous highscore to be overwritten with the new one.  I searched a lot but couldn't find a proper read/write in javascript tutorial anywhere.  Also, if it can be written to a file that cannot be edited by anyone like txt files, it would be better.  I use plain javascript only, no Jquery or JSON or anything like that.

Can anybody give some sample code to read and write a file using JavaScript?


I currently have enabled SSL for my entire site being hosted with Apache. Lets say my website is  hosted at the root /var/www/html. I would like to write a rule in my apache config file that redirects https for everything except . Can anyone help. I do not have a .htaccess file so this needs to be a rule that can be written in apache config, or my 000-default.conf file.

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I do not know if this is even possible or not, but in an attempt to keep track of many changes I am about to make to my system I want to track all input I type and all output from a terminal I'm working with to a file. I've been messing around trying to do this and here is what I have so far:  bash > /tmp/output.txt  This has some quasi success. I tested this with something simple: sudo apt-get update && sudo apt-get upgrade which dumped the normal output to the file, but not what I typed in.   Additionally I'd like to be able to see the output as well as have it stream to my output file, just for readability. (This can be worked around with a second terminal running tail -f, but it'd be nice to have it in one place).

I am a novice just learning Fedora 13. I just wanted to know if its possible to redirect whatever I type in the terminal to a file, so that I would be able to see from the file, that a particular command gives this output.  So whatever I am doing should go to a file.


Why can't our cognitive sense or five senses sense hyper-dimensional spaces?  Is it because of the way our human body is built?

We consciously know and feel the first three dimensions and with some thinking time as well. But according to literature like String theory etc., we have many many more dimensions. We can readily express them in paper. But why can't we realize them? Why can't we experience them like the first three dimensions?  PS. I was pondering on this when I saw the movie Interstellar where even the fourth dimension 'time' is expressed using the first three dimensions for Cooper. PPS. The first three dimesnions being the X, Y and Z axes.


I recently saw this question  which answer is almost 7 pages long and the OP is saying he is still writing. My question is: is that appropriate to write an article on a FAQ form? Why not ask the OP to write it on his blog/website instead of writing his article at Stack Overflow?  Also in my view this is not merely useful.   Also should we flag for that kind of post?

Do we want long comprehensive answers to questions on stackoverflow?  Is it better to spend 30 secs to write "look this up [insert link here]", or do we want people to take their time (maybe an hour! maybe more!) to write a more comprehensive and detailed answer?  I've seen people make comments like these on highly voted short answers:   "+1; this is why i love stackoverflow! answers are short and to the point!" "+1; beat me to it!" (because it's all about quickness?)   And some of my long answers have been:   Downvoted (Was it too long? All pole and no fish? Was there a minor technical mistake somewhere? Too many quotes from references and/or books and not enough original material? Was the answer not entertaining enough because it's all business and no personality, since I refrain from making jokes, using smilies, or injecting personal opinions/anecdotes?) Commented with "who has the time to read this???" etc Unrewarded with regards to votes   I've only been on stackoverflow for a few months, so I'm still trying to figure out what kind of answers the community wants (as evidenced by their votes), what kind of answers the owners want (as laid out in their vision), and what kind of answers I want (yes, I can have my own vision too!), and how best to reconcile the differences that may exist between them, so any guidance is appreciated.


Hello i hope some can help, I will try to be brief.  My girlfriend applied for a tourist visa for UK from Ukraine with me giving full sponsorship. When she went to visa centre 4 hours before her appointment to get her paperwork translated (even thou i told her to get this done somewhere else a friend advised her to do it at Visa ctr) she was told no need as "my" documents were the important ones and her application was taken then and there.   Her Visa was refused but the main reason states because she has no dependants but it clearly states in her application she has a 4 yr old boy and she would obviously (in most cases anyway) want to return to him.   We have met 4 times this year with me flying to Ukraine and also we went to Greece for holiday and after refusal we went to Gdansk, Poland for a week.   Is there anyone i can contact about this just to have another look at it, i have read on here about contacting the Embassy is that the Embassy in Kiev and if so how or has anyone any better advice?

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


Let $T$ and $T'$ be topologies on set $X$ so that $ T \subset T'$. If $(X, T') $ is path connected, is then $(X, T) $ path connected?  I am not sure how to prove that it is true but cannot find a counterexample. Any hint helps!

Let $T$ and $T^{'}$ be topologies on set $X$ such that $T \leq T^{'}$. If $(X,T^{'})$ is path-connected, is $(X,T)$ path-connected?  I think it is, and I tried to prove it by contradiction, but I got stuck. Any hint helps!


How Can I evaluate $\displaystyle \int \sec^3 (x)dx$  (Without Using Weierstrass Substution or Integration by parts.)  $\bf{My\; Try::}$ Let $\displaystyle I = \int\sec^3(x)dx = \int \frac{1}{\cos^3(x)}dx = \int \frac{1}{\sin ^3\left(\frac{\pi}{2}-x\right)}dx$  Now Let $\displaystyle \left(\frac{\pi}{2}-x\right) = t\;,$ Then $\displaystyle dx = -dt$. So $\displaystyle I = -\int \frac{1}{\sin^3 t}dt = -\int\frac{1}{2\sin^3\left(\frac{t}{2}\right)\cdot \cos^3 \left(\frac{t}{2}\right)}dt$  Now How can I solve after that  Help me  Thanks

I need to calculate the following indefinite integral:  $$I=\int \frac{1}{\cos^3(x)}dx$$  I know what the result is (from Mathematica):  $$I=\tanh^{-1}(\tan(x/2))+(1/2)\sec(x)\tan(x)$$  but I don't know how to integrate it myself. I have been trying some substitutions to no avail.   Equivalently, I need to know how to compute:  $$I=\int \sqrt{1+z^2}dz$$  which follows after making the change of variables $z=\tan x$.


Curious about  on,  $$6!7!=10!\tag1$$ a little Mathematica expt yielded, $$r!(r!-1)!=(r!)!\tag2$$     Q: Are the only non-trivial integer solutions to $\color{blue}{a!b!=c!}$ with $a,b>1$ given by $(1)$ and $(2)$?

The title says it all, more or less. Obviously, there are infinitely many "trivial" integral solutions of the form $p=n, q=(n!-1), r= n!$. How many non-trivial solutions are there?  I came across this about ten years ago; as far as I can tell, it hasn't appeared here before, so I thought that it might be of interest. I'm actually most interested in finding whether there was any progress made since


I just found out that it is not possible to upgrade TeXLive from 2012 to 2013 versions so you'll have to do a new install of TeXLive 2013.   Does anyone know if the upgrading feature will be available for TeXLive 2013? That is, will it be possible to upgrade TL 2013 to TL 2014? Otherwise it'll be a pain installing it and uninstalling it everytime I need a new package in the old version.

Every year TeX Live provides a new version. My recollection is that soon after a new version is released, the old version's tlmgr stops fetching updates to packages. They provide  with the disclaimer     This procedure is not bullet-proof, or especially recommended   There is no upgrade path for Windows. Looking at the , it is not clear to me what is actually changing between releases such that a full new install is required/recommended. I always thought of TeX Live as providing useful binaries (e.g., pdflatex, biber, and makeindex) and a convenient way of updating  packages. What am I missing? Why does TeX Live need a new install every year?


I'm currently using Natty. I've used adobe's version of flash found on their website, the one found in the depository, and finally the one from sevenmachines ppa. All the flash plugins have the same issue: the video on youtube and the playback controls fail to load. The audio works just fine, as does the html page itself. Just no video, or controls.  Same issue happens on Google Chrome and in Firefox. Further making this issue strange is that it's only limited to youtube and no other video website.

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -   - a particular online flash game still requests that I update to the latest flash player.  I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.  Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?


I want to figure out the motion of a comet that can somehow pass freely through the sun (mass much, much greater than the comet's so that its movement is negligible) if it starts out stationary relative to the sun. This will be oscillatory motion, so I wish to calculate its period.   First Approach  It can be seen that the period will be $4T$, where T is the time it takes for the comet and the sun to collide. My reasoning for this is that it will start from $R_{max}$ and then reach the sun and then go back out to $R_{max}$ (now on the other side), and it repeats this. Because of the conservation of energy, the time of oscillation is $4T$. It is well known that the time of collision of two mutually-attracting bodies is $T = \frac{\pi R_{max}^\frac{3}{2}}{2\sqrt{2GM}}$, so the period of this motion is $\frac{2\pi R_{max}^\frac{3}{2}}{\sqrt{2GM}}$  Second Approach  This is effectively Kepler's problem with angular momentum $l = 0$.  Because this is a Keplerian problem, the comet will orbit in an ellipse (we are assuming a bounded orbit). If we take the limit of $l$ as it goes to $0$, one finds that $2a = R_{max}$, where a is the semi-major axis of the orbit. Therefore, according to Kepler's Third Law of Planetary Motion, the period of this orbit (and thus of this motion) is $\tau = \frac{\pi R_{max}^\frac{3}{2}}{\sqrt{2GM}}$.  The two answers I achieved are off by a factor of $2$. Also, the first answer states that the motion is a line of length $2R_{max}$ and the sun is at the center. But this is a Kepler problem, so shouldn't the sun be at the end of the a line with length $R_{max}$, like in the second answer? I am wondering why the second approach is incorrect.   Edit:  I am wondering why the first event is the actual thing that occurs. Why won't the point-mass comet start from $R_{max}$ and then travel to the singularity, stop suddenly (make a "hairpin" turn), then shoot back?

My friend and I have been wracking our heads with this one for the past 3 hours... We have 2 point masses, $m$ and $M$ in a perfect world separated by radius r.  Starting from rest, they both begin to accelerate towards each other. So we have the gravitational force between them as:  $$F_g ~=~ G\frac{Mm}{r^2}$$  How do we find out at what time they will collide?  What we're having trouble with is this function being a function of $r$, but I have suspected it as actually a function of $t$ due to the units of $G$ being $N(m/kg)^2$.  I've tried taking a number of integrals, which haven't really yielded anything useful.  Any guidance?  No, this is not an actual homework problem, we're just 2 math/physics/computer people who are very bored at work :)


Let $ A $ be matrix of order $ n $. What may the possible ranks of $\mathop{\rm adj} (A) $? I think the possible answers are $0$, $1$, and $n$.

Let $A$ be a square and singular matrix of order $n$.  Is $\operatorname{adj}(A)$ necessarily singular? What would be the rank of $\operatorname{adj}(A)$?


I got a NullPointerException error with this.  if(Cb_Ar.isChecked())         toPass = Cb_Ar.toString();     else if (Cb_Db.isChecked())         toPass = Cb_Db.toString();     else if (Cb_Hb.isChecked())         toPass = Cb_Hb.toString();   Here is my LogCat;  03-06 20:38:54.907 3274-3274/? E/AndroidRuntime:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.CheckBox.isChecked()' on a null object reference  03-06 20:38:54.907 3274-3274/? E/AndroidRuntime:     at com.example.jello.letscook.showmenu.showList(showmenu.java:73)  03-06 20:38:54.907 3274-3274/? E/AndroidRuntime:     at com.example.jello.letscook.showmenu.onCreate(showmenu.java:46)  03-06 20:38:54.907 3274-3274/? E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:6237)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm sure that this is true, because A and B have the same cardinality (number of elements in the set). So there has to be the same number of ordered pairs with C in both cases. But I'm not sure how to exactly prove it since we just started with cardinality.

Suppose that $A, B, C$, and $D$ are sets with the cardinalities related as  $|A|=|C|$ and $|B|=|D|$. Prove that the cardinality of $A\times B$ is equal to the cardinality of $D\times C$.  I know that I must prove the bijection of the function $f: A \times B \to C \times D$, but I am not sure how to say this? Can anyone help me?


I am currently writing a paper and want to label an approach proposed by Smith and Johnson in their work (exemplary reference [123]) as: Smith and Johnson's approach [123] or Smith's and Johnson's approach [123]. What would be the correct one?

Which option is grammatical?        There will be readings from Nikki Giovanni’s and Alice Walker’s writings.   There will be readings from Nikki Giovanni and Alice Walker's writings.      Saying it out loud the latter sounds right, but looking at it the former looks better.