The transition from laminar flow to  is usually told interms of Reynolds numbers. The Reynolds number is $Re=UL/\nu$ where $U$ is the speed, $L$ is dimensional length and $\nu$ is the viscosity. Even if we say the Reynold's number tells us whether the flow is turbulent or not, I have never seen a unique $Re$ that differentiates laminar from turbulence. My question is then, is the cause of turblence perfectly known? is it velocity, length or viscosity that highly determines the flow condition? Is there a unique Reynold's number that separates laminar flow from turbulent?


The series $$1+ \frac12 -\frac13 + \frac14 + \frac15 -\frac16 +....$$ diverges. What procedure should I follow? What test will give the result? I can not move forward with out general term. If someone give me the general term then I can further proceed.


Evaluate $\sqrt{1 + 2\sqrt{1 + 3 \sqrt{1 + \dots}}}$

I was asked to show that the answer is 3. I don't have any idea on how to proceed. Thanks!


How do I delete my main Stack Exchange account?

I've deleted all my sub Stack Exchange sites, like . I do not have any profile now. I wish to delete my main account as well. But there is no such option to remove it. I want to completely remove any account associated with my email, but the main account itself doesn’t seem to allow to be deleted ever if everything else was deleted. I need help! Note: I had to create a meta account for this.


I can't get correct orientation with attached to the hair object. The arrows should look in different directions (like on picture 2), but I have them like hair (picture 1) In Particle Properties > Rotation > Orientation Axis set the Normal or Normal-tangent, should solve this problem, but did not.


Could anybody clear it to me whether these two sentence are grammatically equal? If not, what is the difference?     1) They must use some methods...    2) They are to use some methods...


@masterthesis doesn't work for bibtex citation

I'm using bibtex and I would like to know how to cite a @masterthesis. I've exported Mendeley's citations and it has only the @phdthesis style, which actually works. Is there any way to make work with @masterthesis instead? My bibliography at the end of the paper gets wrong.  I'm using abntcite.sty.  Here goes the code:  @masterthesis{Filho2016Automatic,     author = {Silva{ }Filho, P. F. F.},     institution = {Dissertação (Mestrado) - ITA},     pages = 159,     school = {Dissertação (Mestrado) - ITA},     title = {Automatic Landmark Recognition in aerial images for the autonomous navigation system of Unmanned Aerial Vehicles},     year = 2016 }   Thanks!!


Why should I have to choose between compound sentences and compound predicates?

Sheba walked to the door and she opened it. Sheba walked to the door and opened it.  I would use a compound sentence only if the subject in the second clause is someone other than Sheba: Sheba walked to the door and (John) opened it, for I can't see any good reason for the extra one word. But sometimes subjects in both independent clauses are the same person. I prefer the more concise Sheba walked to the door and opened it, of course, but why should I have to have options?


Recently there's been a lot of buzz created by this video  which states and goes on to prove  $$1 + 2 + 3 + ... = -\frac{1}{12} $$  I know that the above series is actually $\zeta(-1)$ where $\zeta$ is the Riemann zeta function. For someone who is not much into higher and advanced mathematics, what meaning does this equation hold? The video explain that this is a very useful result used in string theory in Physics and the basic premise which is used to prove it is   $$1-1+1-1+... = \frac{1}{2} $$ which doesn't seem quite right and which, in fact, leads to contradictions as explained here on Quora . So, my question is is the proof shown in the video meaningless and only serve the purpose of sensationalizing by wrongly interpreting and misrepresenting mathematical results?


Is there any rationale for the different colours of uniforms on the different series of Star Trek?

When looking at the evidence for this question () it became apparent that the key colours of the uniforms are not the same in different series.  I'm not sure whether there is a definitive guide to what the colours are (perhaps an answer can clarify) but the key difference I noticed was that command personnel in Star Trek TOS wear a yellow shirt and ops (including security) wear red). This seems to be reversed in Star Trek TNG.  Is there any rationale for the changes?


Is it possible to prove or disprove the Einstein Synchronization Convention with astronomy?

So, I just saw  by Veritasium that discusses how it's impossible to measure the one-way speed of light from a light source to a detector, since it's impossible to synchronize clocks in a fashion that would prevent a directional difference in the speed of light from altering clock speeds via relativistic time dilation in such a fashion that it would conceal directional differences in the speed of light. As a result, it's only possible to measure the two-way speed of light, where light passes from a source to a reflector and then back to a detector located at the light source, and it's impossible to rule out a directional difference in the speed of light, which could be as extreme as light traveling at c/2 in one direction, and instantaneously in the other. However, Veritasium goes on to briefly mention that if there is true, we would observe stars in the direction of the instantaneous speed of light in real time, rather than through a time delay of hundreds or thousands of years. During his papers on relativity, Einstein noted this possibility, and assumed that it traveled at equal speeds in all directions; as a result, this assumption has apparently been called the "Einstein Synchronization Convention". This suggests to me that if the Einstein Synchronization Convention is untrue, and there is a directional difference in the speed of light, we should be able to notice this through astronomy; if the light takes less time to travel to us from some directions than others, we should see older stars and galaxies in the directions where light travels more quickly than in the directions where it travels more slowly, since we'll be observing them as being closer to "real time". For instance, if you had galaxies 3 billion light years away from us, but it took light 2 billion years to reach us in one direction and 4 billion years to reach us in the other direction, you'd expect the galaxies in the 2 billion year direction to look 2 billion years older than the galaxies in the 4 billion year direction. Is this correct, or would a variation in the speed of light invalidate our methods of measuring distance and/or the age of celestial objects? Have there been any astronomical studies investigating this, and if so, what have they found? To be clear, I am specifically asking about detecting directional variations of the one-way speed of light using astronomy. I don’t want answers that discuss variations of the speed of light due to the velocity of their emitters (which was disproved by experiments prior to Einstein). I don’t want answers talking about clocks or simultaneity, since they’re not really directly relevant to this question.


Philippine grade equivalent in the UK grading system

My GPA for my bachelor's degree here in the Philippines is 1.4259 (equivalent to magna cum laude). In the UK system, to which honors class will it belong?


Installing a .deb package in home directory

Is it possible to install a .deb package completely under my home directory at debian?


Yet again it happened. I forgot to update my macports and I'm wasting hours...  How can I automatically run  sudo port -v selfupdate sudo port -v upgrade outdated   Let say every week? Note that it has to be ran as root...   How do you maintain you macports up-to-date?  Is something like suggested  is a good idea?


How does "Unsung Hero" encourage positive behavior?

Badges are supposed to encourage positive behavior (this is even in the  tag description). However, I am having trouble understanding how the badge  (zero score accepted answers: more than 10 and 25% of total) promotes positive behavior.   Zero score accepted answers: to me, this encourages posting correct answers that are not good answers. For example, code-only or link-only answers or in general answers without explanation. Bonus if the asker has 1 reputation and the question is not good, so that one can ensure that the asker will not be able to upvote the answer. More than 10 and 25% of total: the percentage requirement encourages badge hunters to only provide this kind of answers until they get the badge.   My question is then, what kind of positive behavior does "Unsung Hero" reward? Or what is the motivation behind it?


Getting following error for the query ORA-00933: SQL command not properly ended?

I'm getting error while running the following query. I think it's the proper syntax. Please help.  SELECT * from TESTTABLE1 ORDER BY USER_ID WHERE rownum>=100 AND rownum<=200


A question about magnets, energy, and forces

Following my first lecture on magnetism today, I'm left with just one question my lecturer couldn't answer.  Imagine a 1 kg magnet supporting its own weight stuck to a vertical surface, resisting almost 10 newtons of gravitational force pushing it down, by exerting a force of attraction strong enough to crate enough friction to prevent the gravitational force from accelerating it.  I've done a bit of web searching, and sort of understand or accept that although it's exerting this force it isn't moving in any direction, so no work is being done/no energy is needed.  So how does a magnet use this force of attraction to move metal objects towards it, or push other magnets away from it. Here items are moving, work is being done, where does the energy come from, and does this energy run out?


How to center align a pseudoElement under bootstrap nav link?

Hello i want to center the line that is under my menu i created the line using a pseudo element. This is the html:   .nav-link.active {   color: #482683;   font-size: 14px; }  .nav-link.active::after {   content: '';   display: block;   width: 22px;   height: 2px;   background: #482683;   margin-top: 27px; } <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"/>

     SELECTION DE VARIABLE

     ANALYSE

     BENCHMARK DES MODELS

     RESULTATS

    This is what I have  I want to center the line like this  knowing that the active class depends on which element  i click : Selection de variable or Analyse or Benchmark de models or RESULTATS I am using Bootstrap


90's TV; alien ships appear, tell humans to "do better"; turns out they wanted weapons

This story may be from Outer Limits or Twilight Zone.   A ship appears and overpowers all of Earth's defenses. The aliens say they have seeded life on Earth, and have come back and are disappointed in our development. If we don't do better in 3 days, the earth will be destroyed.  After incredible effort, world peace is achieved. But then it turns out the aliens seeded life to develop weapons and strategies - they wanted us to be more warlike, not less. The Earth is destroyed.


How to install "vanilla" TeXLive on Debian or Ubuntu?

Debian and Ubuntu have very good texlive packaging. But I'd like to use tlmgr to have a more fine-grained control about upgrades and which packages I want to be installed.   So how do I install "vanilla" TeXLive on Debian/Ubuntu?   Also how do I make dpkg aware that I have TeXLive installed?


How does an inet_aton() is used to convert IP address to binary form

I read from the man pages that  inet_aton()  converts the  Internet host address from the IPv4 numbers-and-dots notation into binary form (in network byte order) and stores it in the structure. So I tried the below code. Could someone correct me If I am wrong:) Thanks  #include<stdio.h> #include<stdlib.h> #include<string.h> #include<sys/socket.h> #include<netinet/in.h> #include<arpa/inet.h>  int main(int argc, char **argv) {      struct in_addr addr;     char a[] = "192.168.24.29";      int ret = 0;          ret = inet_aton(a, &addr);         if (ret != 0)         printf("Valid\n");     else         printf("Invalid\n");     printf("%u\n", addr);     printf("%u\n", addr.s_addr); }   Output : 488155328 488155328  Expected output: 11000000 10101000 00011000 00011101  inet_aton() converts IPv4 format to binary notation (1's and 0's). Then why it does not provide in binary.  I have tried to convert a number to binary format of 8 - bits  here,  since my previous output was 488155328 I have tried to convert it to binary.  #include<stdio.h> void bin(unsigned n)  {      unsigned i;      for (i = 1 << 7; i > 0; i = i / 2)          (n & i)? printf("1"): printf("0");  }   int main(void)  {      bin(192);      printf("\n");      bin(168);     printf("\n");     bin(24);     printf("\n");     bin(29);     printf("\n");     printf("My conversion:");     bin(488155328); }     Output: 11000000 10101000 00011000 00011101 My conversion: 11000000  Expected is : My conversion should be 11000000 10101000 00011000 00011101


I found some old frozen ground lamb in the back of the freezer.  It is vacuum sealed, and was placed in the freezer after a couple days of being fresh.  It has been in the freezer for a little over 4 years.  Is it safe to eat?


Imagine a  theoretical superhard steel cylinder pointed towards the moon , 1 cm in radius and 380,000 km long, traveling at 1km per hour towards the moon. Parallel to this cylinder, 1 meter away we have a magnetic cylinder of equal dimensions, not moving. If we pushed the magnetic cylinder "down" towards  the moving steel cylinder, causing the steel cylinder to stop, would both the earth side and the moon side stop at the same time? Would this pulse be a faster than light morse code machine?


Writing a text based adventure game. I cannot get my if == statements to work

I am just starting to learn Java and thought I would start a small project to get to know some more of the basic concepts. I had this working when I entered input such as "Warrior" it would work and outputted you have chosen warrior. However, I added in the second Scanner in "public static void Goldshire()". Then it stopped working for some reason. I am not quite sure what I have done wrong and have spent around an hour looking at the code and do not understand what I have done. If anyone would be able to give me some feedback I would highly appreciate it.  import java.util.Scanner;  public class Game0 {      public static void main (String[] args) {          characterCreation();      }      //Character Creation     public static void  characterCreation(){          @SuppressWarnings("resource")         Scanner input = new Scanner(System.in);          String playerName;         byte currentHealth = 10;         String className;          System.out.println("Welcome to a text-based adventure game based on Zork! \n\nYou will now proceed to the naming of your character.");          System.out.println("\nEnter your characters name: ");         playerName = input.nextLine();         System.out.println("Your adventure will now begin "+playerName + ".");          System.out.println("\nYour current health is: " + currentHealth);          System.out.println("\nYou will now choose your class:\n \n 1. Warrior\n 2. Mage\n 3. Rouge");         className = input.nextLine();          if(className == "Warrior") {              System.out.println("You have chosen Warrior.");         }         if (className =="Mage") {             System.out.println("You have chosen Mage.");         }         if (className =="Rouge") {             System.out.println("You have chosen Rouge.");         }          else {             System.out.println("You have chosen an invalid class! The game will now end because I cannot get a loop working (:");             //System.exit(10);         }     }     //First Zone     public static void Goldshire() {          @SuppressWarnings("resource")         Scanner scan2 = new Scanner(System.in);          characterCreation();          byte decision1;         System.out.println("\nYou are currently at an inn in Goldshire. You can either: \n\n1. Talk to the innkeeper. \n2. Head out of the inn.");         decision1 = scan2.nextByte();          if(decision1==1) {             System.out.println("You speak to the innkeeper, he tells you that a Knight outside the inn wants to speak with you. You head outside");         }         if(decision1 ==2) {             System.out.println("You head outside, a Knight urgently calls you over.");         }          System.out.println("The Knight has a few words.");     }   }


How to read/write INI files Visual c++ 6.0 (MFC)

I'm trying to read/write INI files in VISUAL C++ 6.0 (with MFC) I tried to load registry.hpp and CINIfiles and a few more but they don't exist in this version(because of constraints in the workplace I can't use the BOOST library). So which way should work with INI files?


Ring homomorphism with $\phi(1_R) \neq1_S$

Let $R$ and $S$ be rings with unity $1_R$ and $1_S$ respectively. Let $\phi\colon R\to S$ be a ring homomorphism. Give an example of a non-zero $\phi$ such that $\phi(1_R)\neq 1_S$  In trying to find a non-zero $\phi$ I've done the following observation: Since for $\forall r\in R$ $\phi(r) = \phi(r\times1_R) = \phi(r)\times\phi(1_R)$ we must have that $\phi(1_R)$ is an identity of $\phi(R)$ but not an identity of $S$. We must therefor construct a $\phi$ that is not onto and which have this property. I can't come up with any explicit example though, please help me.


What is the cardinality of the set of all topologies on $\mathbb{R}$?

This was  on Quora. I thought about it a little bit but didn't make much progress beyond some obvious upper and lower bounds. The answer probably depends on AC and perhaps also GCH or other axioms. A quick search also failed to provide answers.


In Pokemon Alpha Sapphire I caught Mesprit, encountered Azelf, but I haven't seen or caught Uxie. I have seven gym badges, and I want to get Lugia. Can somebody tell me how to get Lugia without having it take several hours?


Unknown limit result, $\lim_{n\to \infty} n/a^n$

Why is the limit below equal to $0$ ? It is known that $a>1$? $$\lim_{n\to \infty} \frac{n}{a^n}$$


$\lim\limits_{x\to 0} \frac{\tan x - \sin x}{x^3}$?

$$\lim_{x\to 0} \frac{\tan x - \sin x}{x^3}$$  Solution  \begin{align}\lim_{x\to 0} \frac{\tan x - \sin x}{x^3}&=\\&=\lim_{x\to 0} \frac{\tan x}{x^3} - \lim_{x\to 0} \frac{\sin x}{x^3}\\ &= \lim_{x\to 0}\frac{\tan x}{x}\lim_{x\to 0} \frac{1}{x^2} -\lim_{x\to 0} \frac{\sin x}{x}\lim_{x\to 0} \frac{1}{x^2}\\&= \lim_{x\to 0} \frac{1}{x^2} -\lim_{x\to 0} \frac{1}{x^2}\\ &= \lim_{x\to 0} \frac{1}{x^2} -\frac{1}{x^2}\\&=0 \end{align}  But the answer is $\dfrac{1}{2}$ by L'Hopital's Rule.


Why do water of water based liquids like sweat cool objects? The most clear example I have is the sweat on the skin. I learned that it absorbed heat because it evaporates, but this is something strange. I also read that by putting a little water on a can under the sun will cool the inside of the can, for the same reason as sweat. Why is this? Why does a liquid take away the heat, while it isn't even at the boiling point? The body is only 37 degrees Celcius, why does sweat "want" to evaporate already? I do know that liquids take energy to change its phase without adding to the temperature, but this is only at boiling point.


Why do I have to set LD_LIBRARY_PATH before running a program, even though I already linked the library locations in the compile stage?

I am compiling a model using make. The model has a Makefile that connects the source code with dependent libraries via flags that look like -L/lib1 -L/lib2. But when I try to run that model, it fails unless I also ensure the environmental variable export LD_LIBRARY_PATH=/lib1:/lib2  and points to the exact same libraries. This seems redundant to me. What could be going on under the hood here? Why do I effectively have to specify the location of the libraries before compilation and before execution? This might be a silly question; I'm not very experienced compiling to machine code, usually just use scripting languages.


Why is PHP behaving strangely? The values of all the variables are perfectly fine yet it is executing the else part of the if condition

I am checked the value of one variable against the sum total of 2 variables. The value of the first variable $InterestAmount=4549.89 and the other two variables $InterestAccrued=3106.89 and $InterestReceivable=1839. All 3 variables are float data type. Yet when I'm checking if $InterestAmount <= $InterestAccrued+$InterestReceivable it is executing the else part even though the condition is true!!!  Please see the screenshot of DBGP debugger in Notepad++ below, I have highlighted the relevant sections. The execution pointer is on line 206 clearly in the 'else' part of the if condition. What could be wrong here?  Image can be viewed separately -     Code follows...  if ($InterestAmount <= $InterestReceivable) {     $Narration = "To Interest";     saveTransaction($VoucherID, $TransactionDate, $DR, $AccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);     saveTransaction($VoucherID, $TransactionDate, $DR, $InterestAccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);     saveTransaction($VoucherID, $TransactionDate, $CR, $PnLInterestAccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);     $PrinBal -= $InterestAmount; } else {     $totInt = ($InterestReceivable+$InterestAccrued);     if ($InterestAmount <= $totInt) {         $balInterest = $InterestAmount - $InterestReceivable;         $Narration = "To Interest";         saveTransaction($VoucherID, $TransactionDate, $DR, $AccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);         saveTransaction($VoucherID, $TransactionDate, $CR, $InterestAccountID, $balInterest, $Narration, $isCash, $postNow, $INACTIVE);         saveTransaction($VoucherID, $TransactionDate, $DR, $InterestAccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);         saveTransaction($VoucherID, $TransactionDate, $CR, $PnLInterestAccountID, $InterestAmount, $Narration, $isCash, $postNow, $INACTIVE);         $sql = "INSERT INTO `acc_interest_accrued`                     (AccountID, Type, Date, Amount, VoucherID, Posted, PostedDate)                 VALUES (?,?,STR_TO_DATE(?, '%d-%m-%Y'),?,?,?,STR_TO_DATE(?, '%d-%m-%Y'))";         $stmt = $dbCon->prepare($sql);         $stmt->bind_param("sssssss", $AccountID, $DR, $TransactionDate, $balInterest,                                       $VoucherID, $postNow, $PostedDate);         $stmt->execute() || $anyError=true;         $PrinBal -= $InterestAmount;     } else {         // Ideally this situation will not arise as we're already validating the Interest amount          // against IR+IA in JS. But if it does, we'll invalidate the whole transaction         $anyError=true;     } }


Showing "this is secure" on credit card entry screen

Should I show some sort of "this site is secure" puffery (e.g. lock image, or some brief "this site is secure" boilerplate) on my credit card payment screen? If so, what should it look like? If not, why not?  I do want my customers to feel confident (as well as actually be safe) if they choose to enter their credit card details to pay my clients. I also want them to learn a healthy cynicism. Most of my customers are likely to have a very low level of technical knowledge about internet security and are usually either too trusting, and (in some cases) too suspicious of the wrong things.  I even had a customer call me up saying he wasn't sure if my payment page was secure because it didn't have any "padlock" image within the page. (yes, the page had a valid SSL certificate, the customer had the correct URL, and his version of Chrome was showing it with the green padlock with the "Secure" label at the time - after pointing this out he was happy to proceed).  I just feel it's a bit strange to splash a "this is secure" badge on a page because I know it means nothing, technically - because a phishing page would just as easily show the exact same badge.  Assumption: that my site is actually secure (let's just say I've tried my best and will continue to improve as much as possible).  For reference, here is the page as it currently stands:    Here's a mockup of what I mean:    UPDATE after some modifications:


Is there a way to make a redstone current wait a certain amount of time before transfering?

For a map I'm making, it says "5, 4, 3, 2, 1, Go!", then it's supposed to wait a certain time, maybe... 2 minutes before it says "3, 2 , 1, GAME OVER!"   Is there a way to do this without repeaters? I tried to do it with repeaters, but it wasn't holding out long enough.  Thanks


I bought a new SSD for my old macbook pro mid 2012. Can I clone my current OS on other Macbook to SSD and bring it to my old Macbook 2012? Thank you!


Bash export in a script; To next script?

I would like to set a variable in a script and have it outside the script for the next command.   This is what I have:  #!/bin/bash  myExports="TEST='Value 1';export TEST;";  echo Before eval: $TEST echo '***'  eval $myExports  echo After eval: $TEST echo '***'   This is how i'm calling it:  ./env1.sh ;echo Next command:$TEST   This is the output:  Before eval: *** After eval: Value 1 *** Next command:


Variance of Binomial Distribution $E[X^2]$

so I'm trying to use the equation: $Var(X) = E[X^2] - (E[x])^2$, And for the $E[X^2]$ part, I'm trying to use the method of indicators... However, when I do that, I get the same value as with $E[X]$... Is it wrong to try to use the method of indicators for this case? Basically, I end up with $Var(X) = np(1-np)$,  when it should be $Var(X) = np(1-p)$.


I'm trying to work with guides because I definitely see the advantage. But I'm having some issues with them snapping (and sticking) to content that I don't want them to align to.   Here's a screen cap of what I talking about.    I need these two columns to match in size, but the one on the right keeps snapping to the end of the word "upgrades".  I checked on Adobe's site, but their only advice for moving guides is to click and drag (or I guess you could type in the exact location you want when placing the guide in the first place).  Is there a method I can use that will allow me to be really precise with guides in Photoshop?  To clarify a bit more, I'm not trying to simply place guides an equal distance away from one another (although that will solve this particular issue) what I'm asking is for a way to nudge my guides pixel by pixel. Does this feature exist in photoshop or is my only option to click and drag?


Weird NullPointerException for attempting to display a List of Strings

I've spent hours attempting to debug this code. Basically I have MainActivity with the default code you get after starting a new project. And this is my MainActivityFragment:  package app.xxxx.github.io.sunshine;  import android.os.Bundle; import android.support.v4.app.Fragment; import android.app.Activity; import android.support.v4.app.FragmentActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView;  import java.util.Arrays; import java.util.List; public class MainActivityFragment extends Fragment {      public MainActivityFragment() {     }      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         String[] fakeData = new String[]{                 "Today - Sunny - 88/63",                 "Tomorrow - Foggy - 70/46",                 "Weds - Cloudy - 72/63",                 "Thurs - Rainy - 64/51",                 "Fri - Foggy - 70/46",                 "Sat - Sunny - 76/68"         };         List<String> weatherData = Arrays.asList(fakeData);         ArrayAdapter<String> myAdapter = new ArrayAdapter<String>(getActivity(), R.layout.list_item_forecast,                     R.id.listview_forecast, weatherData);         View rootView = inflater.inflate(R.layout.fragment_main, container, false);         ListView listview = (ListView) rootView.findViewById(R.id.listview_forecast);         listview.setAdapter(myAdapter);         return rootView;}}   As you can see, I'm just attempting to show some dummy strings to the screen.  Here is FragmentMain.xml:  <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context="app.xxxx.github.io.sunshine.MainActivityFragment"     tools:showIn="@layout/activity_main">      <ListView         android:layout_width="match_parent"         android:layout_height="match_parent"         android:id="@+id/listview_forecast" />  </FrameLayout>   and list_item_forecast.xml:    <TextView xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:minHeight="?android:attr/listPreferredItemHeight"     android:gravity="center_vertical"     android:id="@+id/list_item_forecast_textview" />   Here is what the Stack Trace says:     FATAL EXCEPTION: main                                                                                Process: app.xxxx.github.io.sunshine, PID: 4652                                                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.widget.TextView.setText(java.lang.CharSequence)' on a null   object reference   at   android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:399)   at android.widget.ArrayAdapter.getView(ArrayAdapter.java:369)   Sorry if it got a little bit ugly but had to give enough context for the problem. Thanks.


How to create a loop until a sentinel is entered?

My code is a guessing game. When the user runs out of guesses or guesses the magic number, I am supposed to ask them if they want to guess a number again. It should be able to run 1000 times as long as the user doesn't enter the sentinel, which is "no." I need to make my code a loop to where it will keep going until the user says "no."  I attempted to do this at the bottom of my code, but got stuck because I feel like I should've done something at the beginning to make it a loop... Can someone show me how I should include this in my code?


Im having a hard time understanding what this array indexing means: img[0: lengthList[i], widthList[i]: widthList[i+1]] = outPut

Below is part of the code with the array I am talking about. It is a 2D list. My only knowledge of 2D list accessing is to reference each index, such as list[0][0] would give you the first item in the list. This line "img[0: lengthList[i], widthList[i]: widthList[i+1]] = outPut" has a lot of colons in it. what does the "0:" part mean? What does "widthList[i]: widthList[i+1]" mean? When I try looking up more advanced array concepts in python I just get tutorials for things I already know how to do. Here an example where that list is being used. img = np.zeros((length, width), np.float32)  for i in range(len(images)):    output = np.zeros(images[i].shape)    output = normalize(images[i])     img[0: lengthList[i], widthList[i]: widthList[i+1]] = outPut


Finding a conformal map of slit disk on to unit disk

I am trying to find a conformal map of  slit unit disk (slit in negative real axis) i.e $${{z: |z|<1, z\notin (-1,0]}}$$ on to the unit disk that takes $\sqrt2 -1 $ to $0$.  This is what I think,  I can see $\sqrt{z} $ taking the slit disk to disk ( half disk) in the right half plane, and then rotating counterclockwise gives the disk in the upper half plane and the mapping $(\frac {1-z}{1+z} )^2$ maps to the upper half plane and the map $\frac {z-i}{z+i}$ maps to open unit disk.  I tried to compose and get the image of $\sqrt2 -1 $ under this composition. I am getting some frustrating crap.   If I knew that this $\sqrt2 -1 $ gets mapped to some $\alpha$ then I would compose the above function (composition function) with the map $(\frac {z-\alpha}{1-\bar\alpha z} )$ to get the image of $\sqrt2 -1 $ as $0$.  I also think this map is not unique.  So the question is if my work  correct? If not what am I doing wrong? Can someone give me the explicit formula for this. Thanks in advance.


What causes the 'Inconsistent Accesibility' error in the follow code?

The error:      Error 1   Inconsistent accessibility: field type   'System.Collections.Generic.List<Lines>' is less accessible than field   'Star.lines'    J:\Documenting\Universiteit Utrecht - Game   Technology\Modelleren en Systeem   Ontwikkeling\Assignment4\ShapeDrawing\ShapeDrawing\Star.cs    15  24  ShapeDrawing   The Code that causes the error:  public class Star : Shape {      private int x;     private int y;     private int width;     private int height;     public List<Lines> lines; // TODO: Ask explanation for cause of error.       public Star (int x, int y, int width, int height)     {         this.x = x;         this.y = y;         this.width = width;         this.height = height;     }      public override void CalculateGeometry()     {         lines = new List<Lines>();          int numPoints = 5;         Point[] pts = new Point[numPoints];         double rx = width / 2;         double ry = height / 2;         double cx = x + rx;         double cy = y + ry;          double theta = -Math.PI / 2;         double dtheta = 4 * Math.PI / numPoints;         int i;         for (i = 0; i < numPoints; i++)         {             pts[i] = new Point(                 Convert.ToInt32(cx + rx * Math.Cos(theta)),                 Convert.ToInt32(cy + ry * Math.Sin(theta)));             theta += dtheta;         }          for (i = 0; i < numPoints; i++)         {             lines.Add(new Lines(pts[i].X,                                 pts[i].Y,                                 pts[(i + 1) % numPoints].X,                                 pts[(i + 1) % numPoints].Y));         }     } }   I have tried looking into the causes of the error. It seems to be caused by a public field being used from a public class. In this case it seems like both the method and the field are public, so I am not sure what the problem is.   Thanks in advance for any assistance.


Should covariates that are not statistically significant be 'kept in' when creating a model?

I have several covariates in my calculation for a model, and not all of them are statistically significant.  Should I remove those that are not?  This question discusses the phenomenon, but does not answer my question:   There is nothing in the answer to that question that suggests that non-significant covariates be taken out, though, so right now I am inclined to believe that they should stay in.  Before even reading that answer, I was thinking the same since a covariate can still explain some of the variance (and thus help the model) without necessarily explaining an amount beyond some threshold (the significance threshold, which I see as not applicable to covariates).  There is another question somewhere on CV for which the answer seems to imply that covariates should be kept in regardless of significance, but it is not clear on that.  (I want to link to that question, but I was not able to track it down again just now.)  So...   Should covariates that do not show as statistically significant be kept in the calculation for the model?  (I have edited this question to clarify that covariates are never in the model output by the calculation anyway.)  To add complication, what if the covariates are statistically significant for some subsets of the data (subsets which have to be processed separately).  I would default to keeping such a covariate, otherwise either different models would have to be used or you would have a statistically significant covariate missing in one of the cases.  If you also have an answer for this split case, though, please mention it.


Find all functions $f\colon \mathbb R\rightarrow \mathbb R$ such that for all reals $x$ and $y$:   $$f(f(x)f(y))+f(x+y)=f(xy).$$   It was six hours ago in IMO 2017 (problem 2).  I tried  the standard way: $x=0$, $x=y$, $x=1$,etc. but without any success.   Let $f(0)=a$. Hence, for all $x\in\mathbb R$ we have $f(a(f(x))+f(x)=a$. What is the rest?   Also we have $(x-1)(y-1)-1+x+y-1=xy-1$ and  $1-(1-x)(1-y)+1-x-y=1-xy$.


When we pierce a balloon with a sharp needle, it pops and produce a great sound. But, It doesn't pop when we open the mouth of the balloon (through which we have blown air)...  So, Why doesn't the gas release slowly when we pierce it with a needle. In fact, it is released slowly when we release the mouth.


How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R m/s? \SI{R}{\meter\per\second} fails because it expect a number in first parameter, and R \si{\meter\per\second} or $R$ \si{\meter\per\second} show different space.  Which is the correct use?  \documentclass{standalone} \usepackage{siunitx} \sisetup{per-mode=symbol} \begin{document} \begin{tabular}{r} \SI{5}{\meter\per\second}\\ $R$ \si{\meter\per\second}\\ R \si{\meter\per\second}\\ \end{tabular} \end{document}


How do i find my username when locked out

How do i find out what my username is when I am locked out of my computer? I forgot what my username is and it won't let me pass the user login page.


Why is WPS execute process in Geoserver producing this error?

I am trying to compute raster zonal statistics using a TIFF and a Shapefile. I am using WPS process extension for GeoServer. I am trying to use the WPS request builder provided by my GeoServer installation under demos.   I am trying to execute the process to see the output but I am getting the message in the second screenshot. My geoTiff file is 459 MB. Am I doing something wrong?   The following are the screenshots:  .    The following is the xml output generated by clicking the "Generate xml from process I/O":  <?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">   <ows:Identifier>ras:RasterZonalStatistics</ows:Identifier>   <wps:DataInputs>     <wps:Input>       <ows:Identifier>data</ows:Identifier>       <wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">         <wps:Body>           <wcs:GetCoverage service="WCS" version="1.1.1">             <ows:Identifier>soil_system:PI</ows:Identifier>             <wcs:DomainSubset>               <ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#4326">                 <ows:LowerCorner>-128.14691380352517 22.714877523496572</ows:LowerCorner>                 <ows:UpperCorner>-65.08558771879018 51.75931655065378</ows:UpperCorner>               </ows:BoundingBox>             </wcs:DomainSubset>             <wcs:Output format="image/tiff"/>           </wcs:GetCoverage>         </wps:Body>       </wps:Reference>     </wps:Input>     <wps:Input>       <ows:Identifier>zones</ows:Identifier>       <wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">         <wps:Body>           <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:soil_system="soil_system">             <wfs:Query typeName="soil_system:USA_States_WGS84"/>           </wfs:GetFeature>         </wps:Body>       </wps:Reference>     </wps:Input>     <wps:Input>       <ows:Identifier>classification</ows:Identifier>       <wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">         <wps:Body/>       </wps:Reference>     </wps:Input>   </wps:DataInputs>   <wps:ResponseForm>     <wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">       <ows:Identifier>statistics</ows:Identifier>     </wps:RawDataOutput>   </wps:ResponseForm> </wps:Execute>


I'm new to this site (please forgive if this is long), and I did try to search for an answer to this issue but I didn't find one that addressed it (or at least in a way that I understood).  I'm using the eBook Learning Python (which is very good), and the book suggested to try something (without revealing the answer - pg 75).   What I've tried ALMOST works but something weird is happening, and I'd like to understand it better.  So, say string   s = 'This is a sentence.'. len(s) = 19    (no prob, got this).      But then it asks to produce this in reverse order. I followed the slicing example it gave, but since I'm reversing, I tried this:  print(s[len(s):0:-1])   I also tried:  print(s[len(s)+1:0:-1])      #also tried using -1 as my 'stop' argument.   What happens is that it prints in reverse but leaves off the first character:  .ecnetnes a si sih   The only way I could get the initial 'T' to show is by putting a leading space at the beginning (which works but seems kind of shoddy).  This also seems to 'indicate' what the issue may be but I'm just not getting it - I've tried quite a number of variations, but nothing seems to work. Hope this question wasn't too long, but I wanted to be clear what the issue was.  BTW, if I use 0 as the first arg (start) and len(s)+1 as 'stop', it does nothing.


How to Trust a Self-Signed Certificate in IE 11

I get the following error on a website when I try to load content in an iframe from another server in the intranet with a self signed certificate:     Content was blocked because it was not signed by a valid security   certificate.   I have tried this already:   But it looks it doesn't work for explorer 11.


Why over my table of contents there is a red frame

I have the following sample of tex:  \documentclass[a4paper,25pt]{report} \usepackage[a4paper,footskip=0.25in]{geometry}  \usepackage{makeidx} \usepackage{polyglossia} \usepackage{csquotes} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{libertine} \usepackage{fontspec} \usepackage{graphicx} \usepackage{url}  % Uncomment it and uncomment any \lipsum notation as well. % Afterwards build and see how beautifull result is displayed \usepackage{lipsum}   \usepackage[backend=bibtex, bibstyle=numeric, citestyle=numeric-comp, sorting=none]{biblatex} \bibliography{./material.bib}  \usepackage[pdfauthor={"John Doe"},     pdftitle={"Hello I am a seifuku"},     pdfsubject={"iot"},     pdfkeywords={"seifuku"} ]{hyperref}     \setdefaultlanguage{english} \setotherlanguages{greek}  \setmainfont{Liberation Serif} \newfontfamily\greekfont[Script=Greek]{Linux Libertine O} \newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O} \setmainfont[Kerning=On,Mapping=tex-text]{Linux Libertine O}  \usepackage{fancyhdr}  \pagestyle{fancy} \fancyhf{} \fancyhead[L]{Univercity Of MOE OTAKUS} \fancyhead[R]{Legion on Otakus \& Weabos}   \title{Motteke Seifuku} \date{Univercity of Moe Otakus - 2018} \author{Dimitrios Desyllas (Nekomimi1233)}  \begin{document}     \maketitle     \tableofcontents      \chapter{Introduction}         \lipsum[1-20]      \chapter{Motteke Seifuku}         \section{Seifukus Rocks!!!}         \subsection{Generic information}           This is a nice list \cite{US7791415B2}         \begin{enumerate}             \item Seifuku are awesome             \item Watashiwaravuseifuku             \item whatecer I want         \end{enumerate}      \lipsum[5-9]           \subsection{Frequencies of seing seifuku}     \lipsum[5-9]          \section{Lorem Ipsum}         \lipsum[1-20]      \chapter{Implementation of Lorem Ispum}         \section{Introduction}         \lipsum[1-8]         \section{Materials Used}         \lipsum[5-10]         \section{Projects Implemented}         \lipsum[7-13]     \printbibliography \end{document}   And I have the following bibliographic entries (material.bib):  @patent{US7791415B2,     author="Craig A. {Hornbuckle}",     title="{Fractional-N synthesized chirp generator.}",     year="{2007}",     location="{US}",     url="\url{https://patents.google.com/patent/US7791415B2/en}",     assignee="{Semtech Corp}" }  @misc{CHIRPMODULATION,     url="\url{https://en.wikipedia.org/wiki/Chirp_spread_spectrum}",     title="{Wikipedia: Chirp spread spectrum}" }   But for some reason I get colored frames over: * url in biblioography * citations * Table of contents  As the images shows:      DO you know why that happens and how I can make it disappear?


No sound via headphones (headset)  I've recently started using Ubuntu (Dual boot with Windows 10) The earphone works on other devices/Windows without any issues. I've even tried to not boot up with earphones plugged in. Laptop: ASUS S56C The internal speakers work fine.  ALSA information (alsa-info-script):  alsa-base.conf:


Problems with # inside a verbatim that's inside a note

I'm trying to use a # character inside a verbatim that's inside a note :   \begin{frame}[fragile]  \note{\begin{verbatim}  # \end{verbatim} }  \end{frame}   This produces the following errror :   >   ! Illegal parameter number in definition of \beamer@todo. >    to be read again>  >                     >   l.5 }   How can I write the # character in a way that doesn't break the latex compilation ?  Thanks in advanced,  PS : This is related to the following problem in pandoc :


Why does C# have 'readonly' and 'const'?

I come from a C++ background and am trying to become proficient in C#. It seems like C# always has 2 types of modifiers wherever C++ had one. For example, in C++ there is & for references and then in C# there is ref and out and I have to learn the subtle differences between them. Same with readonly and const, which are the topic of this thread. Can someone explain to me what the subtle differences are between the 2? Maybe show me a situation where I accidentally use the wrong one and my code breaks.


DataTable not displaying German Characters like umlaut

I have used Datatable to call ajax from servlet and display table on the basis of data received in response. Although API is returning data correctly that is text containing german characters but when it comes to displaying on html in datatable its showing special character like(Gl�ckwunsch, Verk�ufer) Initalizing Datatable: $('#table').DataTable({      'destroy': true,      "sDom": 't',      "bPaginate": false,      "bLengthChange": false,      "bFilter": false,      "bInfo": false,      "bAutoWidth": false,      "language": {      "url": "https://cdn.datatables.net/plug-ins/1.10.19/i18n/German.json"       }});  When calling ajax below is my code. $('#table').DataTable({   'destroy': true,   'ajax': {     "type": "POST",     "url": 'Servlet',     "data": function(d) {       // parameter sent in post     },     "dataSrc": ""   },    'columnDefs': [{       "title": "Column1",       "targets": 0     },     {       "title": "Column2",       "targets": 1     }   ],   "deferRender": true,   "pageLength": 25,   'columns': [{       "data": "Name"     },     {       "data": "desc"     }   ],   'dom': 'Bfrtip',    "language": {     "url": "https://cdn.datatables.net/plug-ins/1.10.19/i18n/German.json",     "decimal": ",",     "thousands": "."   }  });  Response from API [{     "Name": 'ABC',     "desc": "Glückwunsch" }, {     "Name": 'ABC',     "desc": "Verkäufer" }]  Can someone please help me over here. I didn't get anything related to this on google. Thanks in advance


Why aren't Christoffel symbols tensors? - asked from a fibre bundle perspective

I've been reading about connections on fibre bundles recently and it's made me think about the exact nature of the Christoffel symbols in GR.  If we have a vector bundle $E$ over $M$ and put a connection $D$ on it, in some local trivialisation we can choose a fixed connection $D^0$ and a vector potential $A\in\Gamma(\textrm{End}(E)\otimes T^*M)$ such that $D=D^0+A$. (Typically $D^0$ is the flat connection where allowed.) Then, if we have a section $s\in\Gamma(E)$ written in our local trivialisation as $s^ie_i$, and similarly $A=A_{\mu j}^ie_i\otimes e^j\otimes dx^\mu$, the covariant derivative of $s$ is given by $$D_\mu s=(D_\mu^0s^i+A_{\mu j}^is^j)e_i$$ Now this will immediately recall the covariant derivative of Riemannian geometry/GR, which, on a vector field $v=v^\mu\partial_\mu$, is given by $$D_\mu v=(\partial_\mu v^\nu+\Gamma^\nu_{\mu\lambda}v^\lambda)\partial_\nu$$ Indeed vector fields are just sections of the tangent bundle so this is to be expected. The Christoffels symbol play the role of the vector potential for general bundles.  Now my question is the following: given $E$, $A$ is a bona fide section of the tensor product bundle $\textrm{End}(E)\otimes T^*M$ - but this seems to suggest that $\Gamma$ should be a bona fide section of the bundle $$\textrm{End}(TM)\otimes T^*M\cong TM\otimes T^*M\otimes T^*M.$$ But then should it not be a bona fide type-$(1,2)$ tensor? However it is well-known that it is not a tensor. The only thing I could think of was that $A$ can in general only be defined locally (i.e. on a local trivialisation); but the familiar calculation in GR that shows the Christoffels are not tensors computes their transformation properties, which should be local, so I don't think that the explicit locality of the vector potential should be a problem. In any case, trivial tangent bundles are possible, on which the vector potential can be defined globally. What am I missing?


What command should I use to rotate wood to S,N,W,E,D and U?  I read the entire world edit guide and tried some things but all the results are not satisfactory.


Question mark or bold citation key instead of citation number

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


How to write to first line of a text file in dos

I want to write to first line of an existing text file which has plenty of lines in it. I just wanted to add one line at the starting of the file.


A question about bounded operators on banach space

Let $L(X)$ denotes the Banach algebra of all bounded linear operators acting on a Banach space $X$. And $T$ is not invertible. Can we find a invertilbe bounded operator series $\{T_{n}\}$ such that $T_{n}\rightarrow T$, $n\rightarrow \infty$, here $T_{n}$ convergence in the operator norm.


Possessive for Name Ending in Apostrophe

One of my colleagues has a name that ends in an apostrophe, namely Faee'. Recently when sending an email I realized I wasn't sure how to refer to something that belongs to them using the typical " 's " possessive structure and ended up rewriting my sentence to avoid this. My question is whether I am safe to just use " 's " in the future or if I should be doing something different.


Rational distance from a regular polygon.

Consider a regular n-gon with side length $A$.  Let $p$ be a point in the polygon. Let the distances from $p$ to the corners of the n-gon be $x_1,x_2,...,x_n$  Are there solutions with $A,x_1,x_2,...x_n$ all positive integers and $gcd(A,x_1,x_2,...,x_n) = 1$.  For the triangle ( $n=3$) this question has been answered already here      --  I assume for sufficiently large $n$ there are no solutions ?  In particular im intrested in $n=4,5,6$.


how to get which option did I click when I'm using JOptionPane.showOptionDialog?Why do I get incomporable types error

I wanna say excuse me first for my lack english. I am not a native speaker.  So, I am creating a rock scissor paper game with GUI in Java.  The algorithm is very simple. I will get a showOptionDialog with three buttons. (rock, scissor, paper) When I click one of the three buttons, Java will compare my choice and computer's choice. Computer will choose random number between 1~3   I am almost finished with my GUI but I have some problem with showOptionDialog  private String[]a = {"Rock","Paper","Scissor"}; private int userChoice; /* some codes   */    public void actionPerformed(ActionEvent e){     if(e.getSource()==play){         userChoice = JOptionPane.showOptionDialog(null,"Rock Paper Scissor","Choose",JOptionPane.YES_NO_CANCEL_OPTION,         JOptionPane.QUESTION_MESSAGE,null,a,a[1]);         if(userChoice==a[0] )     } }   I tried something like this but as you know java shows me an incomporable types int and String. Any good idea how should I do?


Derivative of the product of operators and Derivative of exponential

I'm asked to show that  $$\frac{d(\hat{A}\hat{B})}{d\lambda} ~=~ \frac{d\hat{A}}{d\lambda}\hat{B} + \hat{A}\frac{d\hat{b}}{d\lambda}$$ With $\lambda$ a continuous parameter. Should I use the definition $$\frac{d\hat{A}}{d\lambda} ~=~ \lim_{\epsilon \to 0} \frac{\hat{A}(\lambda + \epsilon) - \hat{A}(\lambda)}{\epsilon}$$ applied to $\hat{A}\hat{B}$ like $$\frac{d(\hat{A}\hat{B})}{d\lambda} ~=~ \lim_{\epsilon \to 0} \frac{\hat{A}(\lambda + \epsilon)\hat{B}(\lambda + \epsilon) - \hat{A}(\lambda)\hat{B}(\lambda)}{\epsilon}$$ and do some algebra to get the RHS of the first equation, or I'm missing something? Another interesting derivative to pay attention to is: $$\frac{d}{d\lambda}\exp(\hat{A}(\lambda) )~?$$


preventing terminal prompt from being overwritten by program output

Suppose I run a command like this in the terminal:  ~$ echo 'sleep 2; echo "hello!"' | sh   then start typing the next line. After two seconds the words "hello!\n" will be inserted into whatever I'm writing. I know there is a workaround to this (pressing up then down which refreshes the prompt), however on other systems that don't have history---eg, using a MUD through telnet---this is not possible.  Does anybody know of an ncurses app or terminal emulator that separates stdin from stdout? This seems pretty easy to make in ncurses, you just have to use some clever dup2s, but before I make it I want to know if someone has done it before.  Any other solutions to the main problem are welcome, as well.


Convert multiple rows into one with coma as separator

If I issue SELECT ID FROM TestAhmet I get this result:  1 3 5 2 4   but what I really need is one row with all the values separated by comma, like this:  1,2,3,4,5   How do I do this?  ps: I cant do this :


Ranking two models based on ROC-AUC and PR-AUC

I have two methods/classifiers (completely different models) that I need to decide which one is better. The dataset is imbalanced. I trained both classifiers on the same dataset and then I computed the ROC-AUC and the Precision-Recall-AUC (PR-AUC). Then the surprise came!   Method 1 is better than method 2 when I compare them using ROC-AUC. Method 2 is better than method 1 when I compare them using PR-AUC.   Now I'm so confused! How to say which method is better? As far as I know from  that if the ROC-AUC is high, then PR-AUC is also high. So if the ROC curve of method-1 dominates, so should method-1's PR curve. Is my understanding incorrect? Or am I missing something? Because I'm really going crazy!


Editing PostGIS layer from ArcGIS Desktop without Enterprise Geodatabase (ArcSDE)?

I have been working with QGIS/PostGIS for a while now, without problems, but now I have to change QGIS for ArcGIS Desktop 10.1.  I am having trouble adding a layer from PostgreSQL and being able to edit that layer. I want to work directly with the database, and if I change something in the map it should be reflected on the database.  Can I do this without a Geodatabase?


How to Keep Database and Server Connections active

It seems like everyday I go to publish a service or connect to my SDE I get messages that I can't connect. It is particularly annoying when trying to publish a service to ArcServer. The connections are made, but for some reason they are timing out or becoming temporarily disconnected for whatever reason (Red X over the connection icons).  The fix is simple: As soon as I open Catalog and then double click on the connection, it re establishes connection and then I can do what I need in ArcMap. However, ideally I would like to stop this behavior.  Any ideas why this is happening? Can't find much in the help and it has been mentioned by several users in my organization.


which one is correct- Let's go on a bus/go in a bus/ go by a bus?

which one is correct- Let's go on a bus/go in a bus/ go by a bus ? I am confused with these three options.


Suppose that my equation has six elements and I want to visually connect them into pairs (A with C, B with E and D with F).  Is that possible to do?  Example:                  ---------                 |       |         --------+----   |         |       |   |   |     ----+----   |   |   |     |   |   |   |   |   | y = A + B + C + D + E + F


What's the advantage of declaring a function as a var?

I've seen this in a lot of scripts. When is it better to do  var foo = function() { console.log("Foo!"); };   than  function foo() { console.log("Foo!"); }   when it's obvious that function name(){} is more compact and seems to do the same things? At first, I thought it was so you could use foo as a variable, but you can still do that with both methods. They can even both be redeclared by either method.  I know that var foo = function(){}; creates the function at runtime, but I don't see the advantage of this, because it can lead to crashes, which I assume are unwanted.


As a background, I am a PhD student in Physics. I have published 3 papers with my supervisor and 3 without my supervisor,as an independent work. After all these, I reached a point where I don't have any good ideas anymore. I don't know what direction I should approach. I have some ideas, some of them are not so good being too simple, and others too complex and might be done in long periods of 2-3 years. the question would be on how to increase productivity and find new good paper ideas?


Possible malware? - Installed wrong package - Ubuntu 18.04

Accidentally installed wrong package sudo apt install netplan instead of sudo apt install netplan.io from official Ubuntu repository. I run Ubuntu 18.04, I wanted to edit DNS servers, but instead I've installed some kind of calendar package. It seems that the package is maintained by “Ubuntu Developers” group, not MOTUs. Is there any risk of malware? How trustworthy is the “Ubuntu Developers”?


Is there any way to block renaming of a Particular Folder by any user in Ubuntu?

How to block the renaming of a Particular Folder by Ubuntu Users ?


Unable to install .deb applications with ubuntu software

I'm new to Ubuntu Environment. I'm using Ubuntu 16.04.3 LTS. I'm learning Web Development my own. I heard some good words about using Linux for Web Dev. So I just dual boot my Windows laptop with Ubuntu. After installation and software update. I visit atom.io to install Atom Text Editor. I downloaded the .deb file. I clicked on it and it took me to Ubuntu Software. I clicked on Install button but nothing happened.


What You See is What You Get (WYSIWYG) for PGF/TikZ?

Are there any   editors for ? Perhaps something similar to    but for PGF/TikZ?   If there is no WYSIWYG editor for this tandem, is there one perhaps that allows the user to easily generate PGF/TikZ templates?  Alternatively, how can I most easily generate PFG/TikZ code from a visual conception? Do people mostly code their PGF/TikZ graphics from scratch?


I want to know whether Ubuntu 12.03  exists? If yes please provide me the download link.


$\int_0^1\frac{x^2\ln x}{\sqrt{1-x^2}}dx$    I tried putting $x=\sin \theta$ and changing the limits from $0$ to $\frac{\pi}{2}$and i got  $\int_0^\frac{\pi}{2}\sin^2\theta\ln \sin \theta d\theta$ i cannot further solve it


A standard deck of cards contains 52 cards: 13 cards each of 4 different “suits”, hearts (red), diamonds (red), spades (black) and clubs (black).  B) How many ways are there to select a pair of cards from a standard deck of cards such that one of the cards is red and the other one is black? Your answer can contain factorial or power expressions. Explain your answer.  My answer: to select a red card, we have to choose 13 red cards out of 52 cards. one red can be chosen from 13 cards in 13 ways. for each of these 13 ways, one black card can be chosen in 13 ways. therefor a total number of ways is 13*13= 169.  but my friend says it is 52*26. Could anyone confirm who has the right answer?


PyQGIS: hide a layers-group by uncheking it in the legend

I have a group of layers that contain itself other groups (as shown in picture).  I need to hide one group by uncheking the checkbox in the legend.  is there any way to do it programatically using python?


How to find out what init mode system is using?

I was looking at this and I'm not sure how to find out which startup service is used on my machine (Ubuntu 14.04 on Digital Ocean). Can it use all of them? (upstart, system v, systemd)


What happens to my stock when a company I invested in gets bought by another company?

If a company is bought by another company, does my stock rollover to the new company when it is combined with the new parent company?


Prove that for every prime $p$, there exists a solution to $(x^2-2)(x^2-6)(x^2-3) \equiv 0 \mod(p)$

So far: I know that$\mod(p)$ is a field thus one of the factors in the expression has to equal $0$ $\mod(p)$ for some $x$. However I just don't know where to continue from this point? How do I approach a congruency like this? Are there any general tips for problems like these?  Thanks for all the help.


If $A = \frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\cdots+\frac{1}{\sqrt{999}}+\frac{1}{\sqrt{1000}}.$ Then $\lfloor A \rfloor$ is,

If $\displaystyle A = \frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\cdots\cdots\cdots+\frac{1}{\sqrt{999}}+\frac{1}{\sqrt{1000}}.$ Then $\lfloor A \rfloor$ is, where $\lfloor A\rfloor = A-\{A\}.$  $\bf{My\; Try::}$ Using $$\left(\sqrt{k}+\sqrt{k-1}\right)<2\sqrt{k}<\left(\sqrt{k+1}+\sqrt{k}\right)\;,$$ where $k\in N$ and $k\geq 2$ Then $$\displaystyle \left(\sqrt{k+1}-\sqrt{k}\right)<\frac{1}{2\sqrt{k}}<\left(\sqrt{k}-\sqrt{k-1}\right)$$ So $$\displaystyle 2\sum_{k=2}^{1000}\left(\sqrt{k+1}-\sqrt{k}\right)<\sum_{k=2}^{1000}\frac{1}{\sqrt{k}}<2\sum_{k=2}^{1000}\left(\sqrt{k}-\sqrt{k-1}\right)$$ So we get $$\displaystyle 2(10\sqrt{10}-\sqrt{2}) < A < 2(10\sqrt{10}-1)$$ So we get $$60.41\approx <A<\approx 61.24$$. So $$\lfloor A \rfloor  = 61$$ My Question is how can we solve using Concept of definite Integral, plz explain me Thanks


Product Rule for mod operator: $ ab\bmod p = ((a\bmod p)(b\bmod p))\bmod p$

If we multiply 2 number and take the mod with prime this is equivalent to first taking mod with the prime of individual number and then multiplying the result and again taking mod.  $$ ab\bmod p = ((a\bmod p)(b\bmod p))\bmod p$$  does there exist any proof for this?  Does it work for composite moduli too? Then I can use the Chinese remainder Theorem to calculate the result does there any other way apart from Chinese remainder Theorem to solve the problem?


Do I need a transit visa despite having a Schengen visa?

I am an Indian citizen living in the US. I am going back to India to get a H1B visa stamped. I have established that I would require an airport transit visa when I have a stopover in Germany. On the way to India, I plan to visit a friend in Switzerland for a couple of days. For this, I will be applying for a Schengen tourist visa. My itinerary stops in Frankfurt both on the way to Zurich, Switzerland. Would I still require an airport transit visa despite having a Schengen visa?


Unfortunately I don't know how to reproduce this, but I have been getting incorrect notifications on my stackoverflow account regarding my reputation and access privileges. This has happened three times so far.   Most recently, I received a notification saying that I have gained the "comment everywhere" privilege. However, I do not yet have enough reputation to warrant this.  I've checked my account and reputation history and made sure that I didn't surpass 50 reputation and then get voted down somewhere, or some similar case.


Bounty faq says that if owner of bounty does not give bounty to any answer in 7 days half of bounty amount will be given to highest voted answer. But what if two answers have same number of vote and that are the highest votes among answers. Who will get the half amount of bounty?


Is there a way to run a console program in fullscreen mode on Windows 7?  In previous versions of Windows, you could put the console into fullscreen mode.  This is not the same as simply maximizing the window -- it takes over the entire screen, showing only what you would have seen by running the program in DOS:


Can we have a way to edit bounty custom message?

I put up  over on SO with the assumption that the text would be formatted like it is for a question or answer.  I'm not really sure if I was incorrect in my assumption, or if I just formatted my text improperly, as I can't go back and edit what I put in.  Am I missing an obvious feature?  If not, would it be reasonable to request bounty-text edits—perhaps with moderator-approval to prevent abuse?  Edit: I was trying to use markdown to produce an unordered list as part of my bounty.  What you see in the link is a blob of text with dashes separating phrases


Cannot find match in ArrayList when created from file

I'm making a little program that looks for keywords in sentences to decided the sentiment. I know it's already been done and much better I am just trying to make something over winter break to keep what I learned this semester stay in my head. I wrote this method to take in a file that was turned into an ArrayList and the user's input which was also turned into an ArrayList, and compare then one by one looking for keywords. These keywords are stored in the fileList. No matter what I do this method always returns 0 and the if statement never returns true. When I make this outside of the method and add each element using the .add() and then compare, it works but this way I have currently it doesnt. public static  int compareInput(ArrayList<String> fileList, ArrayList<String> userInput) {     int counter = 0;     for(int i = 0; i < userInput.size(); i++) {         for(int j = 0; j < fileList.size(); j++) {             if(userInput.get(i) == fileList.get(j)) {                 counter = counter + 1;             }         }     }          return counter;      }  public static ArrayList<String> readInput(String input){  ArrayList<String> readData = new ArrayList<>(Arrays.asList(input.split(" ")));      return readData;      }


Attaching click event to a JQuery object not yet added to the DOM

I've been having a lot of trouble attaching the click event to a JQuery object before adding it to the DOM.  Basically I have this button that my function returns, then I append it to the DOM. What I want is to return the button with its own click handler. I don't want to select it from the DOM to attach the handler.  My code is this:  createMyButton = function(data) {    var button = $('

')     .css({        'display' : 'inline',        'padding' : '0px 2px 2px 0px',        'cursor' : 'pointer'      }).append($('').attr({        //'href' : Share.serializeJson(data),        'target' : '_blank',        'rel' : 'nofollow'      }).append($('<image src="css/images/Facebook-icon.png">').css({        "padding-top" : "0px",        "margin-top" : "0px",        "margin-bottom" : "0px"      })));       button.click(function () {         console.log("asdfasdf");      });       return button;      }   The button that is return is unable to catch the click event. However, if I do this (after the button is added to the DOM):  $('#my-button').click(function () {     console.log("yeahhhh!!! but this doesn't work for me :("); });   It works... but not for me, not what I want.  It seems to be related to the fact that the object is not yet a part of the DOM.  Oh! By the way, I'm working with OpenLayers, and the DOM object that I'm appending the button to is an OpenLayers.FramedCloud (Which is not yet a part of the DOM but will be once a couple of events are triggered.)


What is the origin of silent letters in words in English language ?  Why are there silent letters?


Custom Post Type Archives by Year & Month?

How do you display the archives of a Custom Post Type by Year & Month?


$p$ is an odd prime number where $p=3k+1\Longleftrightarrow\exists a,b\in\Bbb Z^+$ such that $p=a^2+ab+b^2$

Let $p$ be odd prime number,show that:   $$p=3k+1\Longleftrightarrow \exists a,b\in\Bbb Z^+ \textrm{ such that } p=a^2+ab+b^2$$  I guess this is true because I find  when: $p=7,k=2$,and $$7=2^2+2\cdot 1+1^2$$  (2) when $p=13,k=4$,and  $$13=1^2+1\cdot 3+3^2$$ and so on.  How do I prove this ?


Why wasn't Palpatine brought to the Jedi Temple on Coruscant?

Similar to  but focused on the Legends version only.  Plagueis discovered Palpatine only at the age of seventeen. It took some time before Plagueis discovered Palpatine's strength in the Force because of the barriers the latter had built up over the years to hide his teen angst.  However, the Jedi are supposed to be able to know every single Force sensitive in existence within the Republic through midichlorian tests that are instituted within all routine medical tests at birth. Naboo is a Republic member world from the Mid Rim. Palpatine's father was not a Force user, and had no contact with the Sith Lords at the point of Palpatine's birth.  How did Palpatine's undeniably high midichlorian count evade Jedi attention when he should have been subjected to a Republic medical checkup at birth, and there were no Sith present to mask the results?


dividing the character in a char array based on the space

in my code below:  #include <stdio.h> #include <stdlib.h>    int main() {       char text[256];  // three character pointers     char *new_line;  // store new_line pointer with hello     new_line = strcpy(text, "hello how are you");      while(*new_line)         printf("%c",*new_line++);        return (0); }   I am trying to divide the array pointed by *new_line based on the space in between the words stored in the array. more specifically I want to assign index to each word in the array and display it like:  1- hello 2- how 3- are 4- you   How can I break this char array and get these words individually?


How do I securely store a MySQL database password if I have a public GitHub for my website?

I created a website a bit ago that is open-source. Every file has the line:  require('/var/www/civ/other/req.php'); //This loads all code located in /req.php   (The code for /req.php is visible  if that matters)  The eighth line of this connects to the MySQL database:  $con = mysqli_connect('HOST', 'USER', 'PASSWORD', 'DATABASE_NAME');   In the production file, it has the actual host/user/password/database name. Whenever I commit changes, I just manually go to that line and replace the real information with dummy information. However, sometimes I forget and I have to rollback the commit and re-commit, during which time someone could have seen the real password. I've thought about putting it in a text file in a non /www directory with read permissions only given to Apache/PHP and using file_get_contents, however:   Because this is open source, everyone knows the exact path to the file, so someone could trick PHP into echoing the contents Because this file is called on every page, I would double the I/O required to load a page.    How do I store the password so a git commit can't reveal it?


Why does Java not have block-scoped variable declarations?

The following method does not work because the inner block declares a variable of the same name as one in the outer block. Apparently variables belong to the method or class in which they are declared, not to the block in which they are declared, so I therefore can't write a short little temporary block for debugging that happens to push a variable in the outer scope off into shadow just for a moment:  void methodName() {   int i = 7;   for (int j = 0; j < 10; j++) {     int i = j * 2;   } }   Almost every block-scoped language I've ever used supported this, including trivial little languages that I wrote interpreters and compilers for in school.  Perl can do this, as can Scheme, and even C.  Even PL/SQL supports this!  What's the rationale for this design decision for Java?  Edit: as somebody pointed out, Java does have block-scoping.  What's the name for the concept I'm asking about?  I wish I could remember more from those language-design classes. :)


Android app crashes when clicking on the loading icon in notification pane

App version 1.0.27  If you the notification pane and click on the loading icon while it's spinning, the app will cause the app to crash.  03-26 22:51:08.331 E/AndroidRuntime(5927): FATAL EXCEPTION: main 03-26 22:51:08.331 E/AndroidRuntime(5927): java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1 03-26 22:51:08.331 E/AndroidRuntime(5927): at java.util.ArrayList.get(ArrayList.java:310) 03-26 22:51:08.331 E/AndroidRuntime(5927): at com.stackexchange.marvin.ui.BaseActivity$3.onItemClick(BaseActivity.java:266) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.widget.AdapterView.performItemClick(AdapterView.java:298) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.widget.AbsListView.performItemClick(AbsListView.java:1100) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2788) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.widget.AbsListView$1.run(AbsListView.java:3463) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.os.Handler.handleCallback(Handler.java:730) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.os.Handler.dispatchMessage(Handler.java:92) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.os.Looper.loop(Looper.java:137) 03-26 22:51:08.331 E/AndroidRuntime(5927): at android.app.ActivityThread.main(ActivityThread.java:5103) 03-26 22:51:08.331 E/AndroidRuntime(5927): at java.lang.reflect.Method.invokeNative(Native Method) 03-26 22:51:08.331 E/AndroidRuntime(5927): at java.lang.reflect.Method.invoke(Method.java:525) 03-26 22:51:08.331 E/AndroidRuntime(5927): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 03-26 22:51:08.331 E/AndroidRuntime(5927): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 03-26 22:51:08.331 E/AndroidRuntime(5927): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126) 03-26 22:51:08.331 E/AndroidRuntime(5927): at dalvik.system.NativeStart.main(Native Method)   (Think I should calm down on finding bugs for a little while? :P)


Why does "Modify Border" bleed outside the selected edges?

I have a problem with my Photoshop fill feature.  I created a selected area with a border of 2. Then I Edit → Fill... but it seems to bleed outside the lines with a faint colour. It's best I show the screen shot so see below:  This is my selected area:    This has a Select → Modify → Border... (1px)  Then i do Edit → Fill... and this is the result:    Notice the fill is bleeding outside the selected area - why is this? Is there some option I am missing?


Extracting data from Marketing Cloud via SOAP

I'm getting a 403 - Forbidden response when I try to submit my ExtractRequest via the SOAP API using a temporary access token obtained from the REST API using the xxxx.auth.marketingcloudapis.com/v2/Token endpoint.   Note that I was at least getting an "OK" when I did this using a UserNameToken for authentication but that was having other issues, and I'd prefer to use an access token anyways.  Also note that I'm using a GET instead of a POST, as when I used POST it was throwing a "405 - HTTP verb used to access this page is not allowed."  My raw code:  GET / HTTP/1.1 Host: xxxxx.soap.marketingcloudapis.com content-type: text/xml SOAPAction: "Extract"  <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header>      <fueloauth>[token provided by REST token Endpoint]<fueloauth> </s:Header> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">       <ExtractRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">         <Requests>           <ID>c7219016-a7f0-4c72-8657-1ec12c28a0db</ID>             <Parameters>               <Parameter>                   <Name>StartDate</Name>                   <Value>09/01/2019 12:00:00 AM</Value>               </Parameter>               <Parameter>                   <Name>EndDate</Name>                   <Value>01/01/2020 12:00:00 AM</Value>               </Parameter>                [...etc...]              </Parameters>         </Requests>       </ExtractRequestMsg> </s:Body> </s:Envelope>   Relevant portion of response:
403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.
   EDIT: I've checked the Installed Package used for generating the token, and I can't imagine what access level could be missing. I've got Read/Write on everything that seems meaningful.  EDIT: Scope of Installed Package I most recently tried:  Access: Offline Access Email: Read Web: Read Documents and Images: Read, Write Saved Content: Read, Write Automations: Read, Write, Execute Audiences: Read, Write List and Subscribers: Read, Write Marketing Cloud Connect: Read Data Extensions: Read, Write File Locations: Read, Write Tracking Events: Read, Write Callbacks: Read Subscriptions: Read   EDIT: Issue was compounded by the FuelAuth closing tag being screwed up. Fixed. Used xxxx.soap.marketingcloudapis.com/Service.asmx endpoint and POST verb. I'm hesitant to say the other question linked to answered my question as technically the endpoint in their solution (webservice.exacttarget.com/Service.asmx) did not work for me.


I am about to coin the word 'conundrous' because I needed it (and I think it deserves a place in the dictionary)!  I would like comments on what you think about that (in the context of a serious article, or I wouldn't have to ask), but the question is as stated — if you can supply one or more adjectives that are synonymous with such an adjective, that's the answer for me. :)  If there are none, I will be happy to accept close synonyms — the Merriam-Webster definition (of the noun) is here:   I'm after the "difficult problem" (but not the "pun") synonymity. It's used to describe a word from an ancient text which is seemingly not in the dictionaries; hard to find information about.  There's enigmatic, but it's just a mystery for the moment; it's not something that is by definition mysterious.  There's elusive, but I think that carries the connotation of forever escaping one's reach.


Can I turn a collection of optional parameters into a macro?

I currently have several environments from mdframed that have a large number of options that are shared between them. The situation looks like  \newmdtheoremenv[options0,options1]{env1}{Environment 1} \newmdtheoremenv[options0,options2]{env2}{Environment 2} \newmdtheoremenv[options0,options3]{env3}{Environment 3}   etc., where in place of options0, etc, there are a long list of various options like backgroundcolor=red!1, leftmargin=0.5in, etc. I would prefer not to write out all the arguments in options0 repeatedly for each of these environments, and I was wondering if I could use a macro to do this. I tried  \newcommand{\myopts}{options0} \newmdtheoremenv[\myopts,options1]{env1}{Environment 1} \newmdtheoremenv[\myopts,options2]{env2}{Environment 2} \newmdtheoremenv[\myopts,options3]{env3}{Environment 3}   but it did not work, telling me that there is a Package kvsetkeys error. Any suggestions?


PhD opportunities in Spring in US universities

I am facing a dilemma regarding whether or not to apply for Spring for PhD programs at some universities in US. What are the pros and cons of applying for PhD or MS programs in Spring?


I am attempting to number my sections with the English words: one, two, three, etc. For instance, the command \section{Hello} would produce:  One Hello  Is this even possible in LaTeX?   As an additional question, it would be great if I could put a colon after the number also, i.e.,  One: Hello


How do I remove Ads in *new* Utorrent 3.3.2?

How do I remove this pesky ad bar in Utorrent? I already removed most of these idiotic messages, with the help of , but one remains:


Find integer solution to the given system of equation.

find all  positive integers $a,b,c$ such that  $abc=24$  $ab+bc+ca=38$  If particular values are given then we can easily find the solution but I am searching for some short general method.  Is there any sufficient condition for the constant values to have integer solution?


How does water intake with meals influence digestion?

I am trying to figure out how water intake during meals effects digestion. Particularly, what volumes of water would inhibit digestion versus benefit digestion. Additionally, if water benefits the digestive process, at what volume would it start to inhibit digestion.  I've read that excessive water intake could possibly inhibit digestion. Looking at the laws of chemistry and pH, it is apparent that acidity is exponential and in order to decrease stomach acidity to the point of inhibiting digestion, it would take huge volumes of water. But that does not take into account the dilution of the enzymes such as Pepsin which are also necessary for digestion. So excessive water intake may not dilute stomach acid, but it's effect on the dilution of stomach enzymes could possibly inhibit the digestion process.


Using C# and Silverlight  How do I get the index of the current item in the list?  Code:  IEnumerable list = DataGridDetail.ItemsSource as IEnumerable; List<string> lstFile = new List<string>();   foreach (var row in list) {   bool IsChecked = (bool)((CheckBox)DataGridDetail.Columns[0].GetCellContent(row)).IsChecked;   if (IsChecked)   {      // Here I want to get the index or current row from the list                       } }   How to achieve this


I simply want to draw a line to the screen. I'm using OpenGl 4.6. All tutorials I found used a glVertexPointer, which is deprecated as far as I can tell.  I know how you can draw triangles using buffers, so I tried that with a line. It didn't work, merely displaying a black screen. (I'm using GLFW and GLEW, and I am using a vertex+fragment shader I already tested on the triangle)      // Make line     float line[] = {         0.0, 0.0,         1.0, 1.0     };      unsigned int buffer; // The ID, kind of a pointer for VRAM     glGenBuffers(1, &buffer); // Allocate memory for the triangle     glBindBuffer(GL_ARRAY_BUFFER, buffer); // Set the buffer as the active array     glBufferData(GL_ARRAY_BUFFER, 2 * sizeof(float), line, GL_STATIC_DRAW); // Fill the buffer with data     glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(float), 0); // Specify how the buffer is converted to vertices     glEnableVertexAttribArray(0); // Enable the vertex array      // Loop until the user closes the window     while (!glfwWindowShouldClose(window))     {         // Clear previous         glClear(GL_COLOR_BUFFER_BIT);          // Draw the line         glDrawArrays(GL_LINES, 0, 2);          // Swap front and back buffers         glfwSwapBuffers(window);          // Poll for and process events         glfwPollEvents();     }   Am I going in the right direction, or is a completely different approach the current best practice? If I am, how do I fix my code?


I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are . I want to because I am using ttf fonts for my texts and I want my urls to be in that ttf and not the default (typewriter font?) that the hyperref package gives me. I started with just trying to get it in italics but didn't even succeed with that:  \documentclass{memoir} \usepackage{hyperref} \begin{document} Lala \url{\itshape www.example.com}. \end{document}     I am guessing there is some hook or something but I just can't find it. Maybe I have gone blind?


Why value from inside of "try" is printed during catching the exception?

I have code like this:  class ExceptionTest{      public Integer divide(int a, int b) {         try {                        return a/b;                   }finally {             System.out.println("Finally");         }    }   }  public class Three {      public static void main(String[] args) {           ExceptionTest test = new ExceptionTest();          try {             System.out.println(test.divide(10, 0));                  }catch(Exception e) {             System.out.println("DIVIDED BY 0!");         }    } }   When I run the code it prints:   Finally  DIVIDED BY 0!   Why is that? If there Exception has been caught shouldn't only "DIVIDED BY 0!" be printed?  EDIT:  I know that finally is always printed, but what I mean is that try-finally in the method called "divide" is called in try-catched block in main. So If exception is being caught why something from try in try-catch is printed? Even if my ExceptionTest class looks like this:  class ExceptionTest{      public Integer divide(int a, int b) {                                System.out.println("Finally")              return a/b;         }   }   So there is no try-finally block and exception is being thrown and I still have   Finally Divided by 0!


If $\lambda_{max} = n$, then $n\times n$ positive, reciprocal matrix A is consistent

At the end of . the author states that  Suppose we have $n \times n$ matrix $A$ having only positive elements and satisfying the property $a_{ij}=1/a_{ji}$ (a matrix satisfying this property is called a reciprocal matrix).  If its largest eigenvalue $\lambda_{max}$ is equal to $n$, then the matrix $A$ satisfies the property (consistency property) $a_{ij} a_{jk} = a_{ik}$ where $i,j,k=1,2,...,n$.  I'm not convinced this theorem is true. Could anyone help?


How many zeros are there in $ 25!$ ? My answer was $6$. But i solved it by finding how many numbers are divisible by $5$ and $2$.here i was told to find out the zeros at the last end. But what is the method which is more accurate and can find out the number of zeros in eg $1000!$ or $10000!$ in the following cases: 1.Just at the last end 2.In the number altogether Or even the general method of finding the number of zeros in n! ?


Does this limit exist? if so what is it?

Given the set $A_n =\{(i,j)∈ Z^2:(i,j)=1, 0≤i,j≤n\}$  I am having problems proving that the limit $\lim_{N\to \infty}$  $|A_n|\over N$ exist and to calculate it, any tips?


Let $f:I\to\mathbb{R}$, $f''(x)=a$ for all $x \in I$. Show the existance of $b,c \in \mathbb{R}$ such that $f(x)= {a \over 2}x^2 + bx + c $.    So, it's actually just taking the derivative twice. Isn't it? $f'(x) = ax + b$ $f''(x) = a$    Show the statement isn't necessarily true if $f:A \to \mathbb{R}, f''(x)=a$ for all $x \in A$ when $A$ isn't an interval.    Can you direct me? I suspect I should give an example such that the derivative doesn't exist. Right?


How to load jQuery assets before blocks and regions

I need a jQuery script to load immediately before a certain block shows on my Drupal 8 front page. I'm trying to use the following but I get 'TypeError $ is not a function' in code inspector. Here's my script:  $(document).ready(function() {   $("#slideshow").zAccordion({         ...code...   }); });   The problem is the first line. In Drupal 8 what is the preferred way to write this script to accomplish what I want?


do we require any Antivirus to be install in Ubuntu 13.04

Does require antivirus for Ubuntu 13.04, if yes then what is the anti-virus should be install in Ubuntu 13.04.


Moving /var, /home to separate partition

I am attempting to move some folders (such as /var and /home) to a separate partition after reading this guide:    I was able to move one folder successfully following guide.  However, it doesn't seem to work for multiple folders, and all my folders are dumped into the partition without proper folders.  I would like to mount /var, /home, and /tmp onto the separate partition; can someone guide me on this?


For sets $C, D \subset Q$ why is $|CD|=\dfrac{|C||D|}{|C\cap D|}$

Could someone please clearly explain why the following set cardinality is true? For subgroups $C, D \subset Q$ why is $|CD|=\dfrac{|C||D|}{|C\cap D|}$ Where $CD= \{cd|c\in C, d\in D\}$ and $C,D$ are subgroups of $Q$.   I think the trouble for me is that I can't really see what $CD$ is. I know that every element in $CD \in Q$, but that is about it.   Thanks for the help.


My question is regarding preventing php scripts from sending mail. It has been marked a duplicate of another more general question about server security but that's not what this question is about.  After a long and bitter fight against hackerspammers who are somehow injecting rogue base64 encoded php files into various web directories on my Debian / Apache / PHP server, (the bitter fight involving first patching existing scripts and changing ftp passwords, web service passwords, and mysql passwords, then rebuilding sites from scratch, installing maldet - which has curbed the problem but not completely eliminated it - then finally turning off postfix altogether by stopping the service (but not uninstalling), then blocking port 25 traffic from the server at the firewall) I am still having problems.  My problems went away for many months, and the server was automatically removed from blacklists according to mxtoolbox. But today I received an mxtoolbox email saying my server is again blacklisted by many services. I don't fully understand how this is possible given I've disabled outgoing port 25 traffic.  When there's a problem, my postfix mailq fills up with hundreds of thousands of emails from a given webuser on my server.  My questions are this:   Given I've disabled port 25 traffic using iptables -A OUTPUT -p tcp --dport 25 -j REJECT, how is it possible that mxtoolbox is reporting my server is still sending out spam? When I check the mailq, the mails are backed-up. When I start postfix, items in the mailq don't send as indeed I expect, and I see (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) next to each entry. Having identified the location of the RAT by looking at the X-PHP-Originating-Script line in a spammy mail in the mailq, I can find and destroy the file in question, which resolves the problem for anywhere between 5 days and many months. How do I completely prevent any php script from sending a mail? If I enter disable_functions = mail into my php.ini file, I understand this prevents the use of internal functions but not custom functions, which a spammer could take advantage of. What else am I doing wrong?   Caveat: I know #2 doesn't solve my problem at its root, but having taken advice and hardening the security of my server in as many ways as I understand over a couple of years now, I'm working on "deal with the mail reputation issue" rather than "solve all security issues period".  This is a follow-up from my  here on ServerFault.


One line thank-you emails to lecturers/professors - yes or no?

I have always wanted to know the answer to this question (sorry if it's silly):  If a professor or lecturer answers a question or gives advice when replying to an email I sent them, in general, do they prefer if I send them a one-line email saying 'thank you!' or no email at all? If I send a one-line email I'm worried I'm just clogging their inbox, but if I don't send any email at all, I'm worried I'll seem cold/selfish.  Thanks in advance!


Cannot open GUI apps with sudo (Ubuntu 17.10)

I have recently installed Ubuntu 17.10 and every time I try to open a graphical app as root (with sudo) these are the error messages that come out. I have already tried xhost +chips (my username) and xhost +root but this is the error message that I get: xhost: bad hostname "root".  chips@DELL:~$ sudo nautilus Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused  (nautilus:2254): Gtk-WARNING **: cannot open display: :0  chips@DELL:~$ sudo wireshark  QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Invalid MIT-MAGIC-COOKIE-1 keyQXcbConnection: Could not connect to display :0 Aborted  chips@DELL:~$ sudo rhythmbox error: XDG_RUNTIME_DIR not set in the environment. Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Cannot open display:  Run 'rhythmbox --help' to see a full list of available command line options.


How to format an external drive to ext4 in Ubuntu 13.04

In Ubuntu 13.04 the Disk Utility has been renamed to Disks and has a completely new interface. Using this new version of Disks I want to format my external hard drive to ext4, but the  already posted refer to an old version of Disks.  I only have two options when formatting, neither of which is ext4:    Can anyone tell me how to do this?


If $ f _p(x)=1+x+x^2+ \cdots +x^{p-1} $ where $p$ is prime number, $e$ is any positive integer.

Show that   $f_p (x^{p^{e-1}})$ is irreducible over $\mathbb{Q}$. I know it is obviously true for $ p=2$. Please suggest me any hints


Can universe or anything be simulated with absolute accuracy?

In a simulation everything is known which makes any apparent random event a pre-calculated event.  Taking that into account is it possible to simulate the universe with absolute accuracy in a way that results of jumping forward at any point in the simulation are pre-determined.  PS: This question is not about to simulate it is more like 'if universe was a simulation' or if it can be simulated assuming that it is possible to know everything.  EDIT  To be clear on what I am asking. If everything was known, will there be any randomness which can make it impossible to simulate the universe with absolute accuracy, and make knowing everything incorrect?  Actual question I had was "if universe was sent back in time and resumed from there will it reach exactly the same state from where it was sent back?"    If two exactly same isolated universes were started in parallel, will the remain exactly the same in course of their duration?


On my box (which got this error under 16.04 and it continues under 17.04...)  Update-initramfs looks for an uninstalled kernel it can't find. dpkg -l does not show this... anyone know how to fix this leftover reference somewhere?  update-initramfs: Generating /boot/initrd.img-3.13.0-62 WARNING: missing /lib/modules/3.13.0-62 Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/3.13.0-62: No such file or directory depmod: FATAL: could not search modules: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_TQSiag/lib/modules/3.13.0-62/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_TQSiag/lib/modules/3.13.0-62/modules.builtin: No such file or directory


I want to sort an list of string that sometimes contains numeric values  My list is like this:   Bedroom 1 Bedroom 2 Bedroom 10 Bathroom 1 Bathroom 2 Bathroom 10 1 Light 1 Paper   If I just use an orderby: roomList.OrderBy(x => x.Name) I get this list:   1 Light 1 Paper Bathroom 1 Bathroom 10 Bathroom 2 Bedroom 1 Bedroom 10 Bedroom 2   Is it possible to get the list like this instead ?   1 Light 1 Paper Bathroom 1 Bathroom 2 Bathroom 10 Bedroom 1 Bedroom 2 Bedroom 10   All list elements don't contain a number, and the list is about 1500 rows long  I have tryed to use this code, and it works fine on elements containing number, but not on just string elements:  public class SemiNumericComparer : IComparer<string>     {         public int Compare(string s1, string s2)         {             if (IsNumeric(s1) && IsNumeric(s2))             {                 if (Convert.ToInt32(s1) > Convert.ToInt32(s2)) return 1;                 if (Convert.ToInt32(s1) < Convert.ToInt32(s2)) return -1;                 if (Convert.ToInt32(s1) == Convert.ToInt32(s2)) return 0;             }              if (IsNumeric(s1) && !IsNumeric(s2))                 return -1;              if (!IsNumeric(s1) && IsNumeric(s2))                 return 1;              return string.Compare(s1, s2, true);         }          public static bool IsNumeric(object value)         {             try             {                 int i = Convert.ToInt32(value.ToString());                 return true;             }             catch (FormatException)             {                 return false;             }         }     }


Tag synonym persists even after parent tag is deleted

On Music Fans SE, the tag milesdavis was merged with the tag miles-davis on . At some point, the parent tag was removed from all existing questions, so it was auto-deleted. But, the synonym is still present in the . Clicking on the synonym redirects to the page of the parent tag.  Ideally, one would expect all the synonyms to be deleted when the parent tag is deleted.   Can we have that when a parent tag is (auto) deleted, so are all its synonyms? In the meantime, is there anything that a user (or moderator) can do to remove such tags that are in limbo?   I notice that a similar feature-request / bug report was made , but that was over a year ago and there has been no response on that question, so I hope it's alright to resurrect this issue with a new question.