Indoor blower fan turns on and off intermittently in 10-15 min increments when system is off

Bit of background: The furnace blower originally did not not turn off at all (or if it did, very rarely did so), even when set temps were reached or when the system was off (fan setting is set to auto, not on). The AC unit outside would shut off when the set temp was reached, but the fan inside continued to blow. I called a technician, who said the issue was probably a bad fan switch relay and it was replaced.  Now the fan does turn off, but it doesn't appear to remain off. Even when the system is set to off, the fan randomly turns back on and off every 10-15 minutes. The technician reinspected it but said there's no apparent reason it should be doing this. As the fan doesn't turn on for a while after the system is off, he wasn't really able to verify that the fan was doing this. He replaced the relay again with a more "heavy duty" one, and just told me that even if just the blower is running, it shouldn't draw much power/create a high bill (my HVAC is all electric).  Is there any other reason it could be doing this? Is the relay still the problem? Or is this how they're supposed to operate (furnace/house is approx. 3 years old)? I had a much older home/hvac system before this and recently moved into this one so I'm not really familiar with the newer systems.


Contour integral of analytic function with singularity

I am supposed to integrate $f(z)=$$\frac{5}{z}$ from -3 t0 3 but I am having trouble understanding how to do this. I've done the integration the "hard" way by using parametrizations but now I need to use the fact that $f(z)$ is analytic everywhere except at $z=0$ and a different method to perform the integration but I am stumped.


How can I align span and img elements along the same line?

I am trying to design the following:

                  eb 3p_2D(V1)
     2019-08-08     94.41 KB
     This does not give me what I am looking for. My code makes the following and not responsive:    How can I make this look like the one in the image?  UPDATE  In mobile, this is how I want the UI to be


A weird error in switch statement in c++

Does initialization statement can't be used in the case of switch statement ? Here is my code  #include <iostream> int nosenseFun(int choice){     switch(choice){         case 1:             int temp = 1;             return temp;         case 2:             break;         default:             return 0;     }     return 2; } int main(){     return 0; }   And when I compile it using g++, I got error message like that  testSwitch.cpp:14:14: error: jump to case label [-fpermissive] testSwitch.cpp:12:17: error:   crosses initialization of ‘int temp’   Does initialization statement can't be used in the case of switch statement ?


Python, how do I make these variables integers from string

Alright so I started learning python in my classes but I am very annoyed how you cannot declare variable types in python like other languages. What would be the best way to turn these strings into integers?  for lineNum, line in enumerate(sys.stdin): if(lineNum == 0):     xc, yc = eval(line)     xc = int(xc)     yc = int(yc) elif(lineNum == 1):     r = line     r = int(r) elif(lineNum == 2):     x1, y1 = eval(line)     x1 = int(x1)     y1 = int(y1) else:     x2, y2 = eval(line)     x2 = int(x2)     y2 = int(y2)


Constructing a bijection between $[a,b)$ to $(0,1)$

Construct a bijection between $[a,b)$ to $(0,1)$   I'll be using a technique that builds the function in steps from one interval to the next:  $[a,b)\overset{x-a+1}\to[1,b-a+1)\overset{\frac 1 {x+1}}\to(0,1)$  Now composing the function from the end to the beginning: $f(x)=\frac 1 {1+()}=\frac 1 {1+(x-a+1)}=\frac 1 {x-a+2}$  Now since all the operations were linear we have a bijection, but is it right?  EDIT:  $[a,b)\overset{x-a}\to[0,b-a)\overset{\frac x {b-a}, x\neq0 , 0.5, x=0}\to(0,1)$  $f(x)=\begin{cases}  \frac {(x-a)} {b-a} &x\neq0 \\ 0.5  &x=0\end {cases}$


Can't download software's from Ubuntu Software center ( 14.04 LTS )

When I tried to install software's (say Play on Linux / Eclipse), The software center says that Available from multiverse source and there is only a button Use this Source. At the same time I can remove softwares which I installed earlier. I tried via Terminal but it says that   Reading package lists... Done Building dependency tree  Reading state information... Done E: Unable to locate package`   I tried , But no visible change. the above result repeated and No install button on Software Center


XCOM Enemy Unknown is a beautiful game, but you can only see every 5 second animation so many times before it becomes repetitive and self-indulgent. Is there a way to make the animations go faster or speed combat up in some other way, so that I can spend more time strategically exterminating aliens and less time watching my operatives shoot their guns?


why doesn't my if statement work in java?

I am very new to java but cant wrap my head around why the if statement doesn't work. The value of the button is Press Me For Answer. The if statement is just not run. but as you can see in the code when i log the value of the button, it shows Press Me For Answer, so why is the if not running???? package com.noob.first;  import androidx.appcompat.app.AppCompatActivity;  import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView;  import java.io.PrintStream;  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          final Button btn = findViewById(R.id.doSome);         final TextView tv = findViewById(R.id.textView2);          boolean pressed = true;         btn.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                      String val = btn.getText().toString();                 PrintStream psObj = new PrintStream(System.out);                 psObj.println(val);                 psObj.flush();                     if(val == "Press Me For Answer"){                         btn.setText("ahhhh");                     };                     btn.setText(String.format("%sOoof", val));              }         });     } }  XML file <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MainActivity">      <TextView         android:id="@+id/textView2"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginLeft="2dp"         android:layout_marginTop="2dp"         android:text="Why Am I Here?"         android:textSize="40dp"         app:layout_constraintBottom_toBottomOf="parent"         app:layout_constraintHorizontal_bias="0.046"         app:layout_constraintLeft_toLeftOf="parent"         app:layout_constraintRight_toRightOf="parent"         app:layout_constraintTop_toTopOf="parent"         app:layout_constraintVertical_bias="0.022" />      <Button         android:id="@+id/doSome"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginStart="81dp"         android:layout_marginLeft="81dp"         android:layout_marginTop="69dp"         android:layout_marginEnd="82dp"         android:layout_marginRight="82dp"         android:text="Press Me For Answer"         android:textSize="20dp"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toBottomOf="@+id/textView2" />  </androidx.constraintlayout.widget.ConstraintLayout>


Proof that the series expansion for exp(1) is a Cauchy sequence

Consider the series expansion for the exponential function at x = 1:  $$a_n := \sum\limits_{i = 0}^n{\frac{1}{i!}}$$  I want to prove that this is a Cauchy sequence, using the remainder formula for the exponential function. (That's the term for it I'm familiar with, anyway.) It would be nice if you could comment on whether this proof is correct or if it could be simplified without using additional theorems or such.  For the Cauchy criteria, for each $\epsilon > 0$ there must be a $N(\epsilon) \in N$ so that for all $m, n > N(\epsilon)$, $ |a_m - a_n| < \epsilon$.  So, take any $\epsilon > 0$. Now, choose $N(\epsilon)$ so that:  $${\frac{1}{(N+1)!}} < \frac{\epsilon}{2}.$$  (This is always possible because ${\frac{1}{n!}}$ goes to 0 when $n$ goes to infinity.)  Now, according to the partial sum formula, we got that:  $$\sum\limits_{i = 0}^{\infty}{\frac{1}{i!}} - \sum\limits_{i = 0}^{N(\epsilon)}{\frac{1}{i!}} = \sum\limits_{i = N(\epsilon)}^{\infty}{\frac{1}{i!}} < \epsilon$$  So if we choose any $m, n > N(\epsilon)$, and assume that $m > n$ (because when $m = n$, the Cauchy criteria is obviously true), it follows that:  $$ \sum\limits_{i = 0}^{m}{\frac{1}{i!}} - \sum\limits_{i = 0}^{n}{\frac{1}{i!}} = \sum\limits_{i = n}^{m}{\frac{1}{i!}} < \sum\limits_{i = N(\epsilon)}^{\infty}{\frac{1}{i!}} < \epsilon$$  which proofs the statement.  Edit: the remainder formula I'm familiar with and that I've been using states that:  $$\sum\limits_{i = 0}^{\infty}{\frac{1}{i!}} - \sum\limits_{i = 0}^{n}{\frac{1}{i!}} < 2 \frac{1}{(n+1)!} $$  if I recall correctly. Using this, can't we conclude that $\sum\limits_{i = N(\epsilon)}^{\infty}{\frac{1}{i!}} < \epsilon $ ?


If a prime $p\mid ab$, then $p\mid a$ or $p\mid b\ $ [Euclid's Lemma]

If a prime number $p$ is a divisor of a product $ab$, $p$ has to be a divisor of $b$ or $a$. How can I demonstrate this theorem? I demonstrated this theorem on one way using Bezout's theorem in an  but are there other proofs??


I am using the following syntax to insert something into my SQL-Tables:  $db = @mysqli_connect("", "", "") or die("connection failed!"); mysqli_select_db($db,'');  $user_stuff; $sql = "INSERT INTO whatever ( ... ) VALUES (... '$user_stuff')"; $db->query($sql); mysqli_close($db);   Is this save against SQL Injections? I am not sure how to use prepared statements here with that syntax? Or are these prepared statements already implemented inside of ->query(...)???


Most people use base 10; it's obviously the common notation in the modern world.  However, if we could change what became the common notation, would there be a better choice?  I'm aware that it very well may be that there is no intrinsically superior base, but for the purposes of humans, is there a better one?  I've heard from sources such as  and  that base 12 is better, from  that base 8 is better, and, being into computer science, I would say that base 16 is the most handy.  Base 12 does seem to be the most supported non-base 10 number system, mainly due to the following reason pointed out by George Dvorsky:     First and foremost, 12 is a highly composite number — the smallest   number with exactly four divisors: 2, 3, 4, and 6 (six if you count 1   and 12). As noted, 10 has only two. Consequently, 12 is much more   practical when using fractions — it's easier to divide units of   weights and measures into 12 parts, namely halves, thirds, and   quarters.   And, on top of that, previous societies considered very advanced used other systems, such as the Mayans using base 20, and the Babylonians using base 60.  So, summarized, my question is: Is there an intrinsically superior base? If not, is there one that would be best for society's purposes? Or does the best base depend on the context it is being used in?


Problem with backshift in reporting clauses

This is the subject that's been bugging me for quite some time now, even though I believe I've managed to grasp the entire reported speech pretty well.  If I want to repeat to someone what I previously said about my opinion on swimming, I could go either with #1:        I said I didn't like to swim.      if I didn't want to emphasize anything, or with #2,        I said I don't like to swim.      if I want to make it clear that my not liking to swim still holds true.     What I can't understand is why I have to switch tenses back if I'm talking about things like:        He didn't know California was on the West Coast.      It's obvious that California hasn't moved a single inch, so why can't I express it by saying:        He didn't know California is on the West Coast.        Similarly, is such shifting required in every utterance of such meaning? For example:        I told you it was impossible to fly.      It's obvious that no matter how hard I tried I still wouldn't be able to fly. So can't I say "is impossible" (#7) in this case?        I told you it is impossible to fly.


Cannot eliminate floating point arithmetic error

I am using Python version 3.7.4, and I am having a lot of trouble with the floating point arithmetic. I'm trying to pass in a weight value of 0.9 to a function; but when I execute it, it goes through,but it never actually passes 0.9, but the value below instead. I've tried a bunch of things so far, such as: weight_value=Decimal('0.9'),   weight_value=Decimal(0.91).quantize(Decimal('0.1')), weight_value= 9/10,  weight_value= 9*0.1, weight_value=round(0.90,1)  No matter what, I always get the number below. weight_value: 0.8999999761581421  Is there any way to get past this?


I had previously installed 18.04 and was using a single 8GB RAM. Later I upgraded to 16GB of RAM(2x8) and a 250GB SSD. I have made a fresh install of Ubuntu 18.04 but after using it for a few days it started freezing randomly. I searched a lot for the issues and figured out it could be because of some GNOME issues. I installed Unity desktop on 18.04 it was running smoothly then. Now I have upgraded to Ubuntu 19.04 and the problem is still happening. It's freezing every now and then. But the interesting thing is it works completely fine with both the RAMs when I'm using then individually.  Please help me with this I want to use both the RAMs and also want to use GNOME desktop.


WiFi not working after restart in Ubuntu 16.04

I recently upgraded from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS. Had a few issues with phpmyadmin and MySQL-Server that I rectified. But whenever I restart the system, I lose internet connection. Although, WiFi is showing to be enabled, when seen in System Settings > Networks, it shows that all routers are out of range.  I tried stopping and then restarting WiFi using the WiFi button on my laptop. But it didn't work.  I also tried doing it from terminal as given in this . It also didn't work. Command as follows:  sudo service network-manager restart   Also, tried this . It didn't work either. Command as follows:  sudo systemctl restart NetworkManager.service   Output of sudo lshw -class network is as follows:  *-network                       description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: eth0        version: 07        serial: 14:58:d0:c1:1e:d0        size: 10Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:58 ioport:3000(size=256) memory:b2600000-b2600fff memory:b2400000-b2403fff   *-network        description: Wireless interface        product: RT3290 Wireless 802.11n 1T/1R PCIe        vendor: Ralink corp.        physical id: 0        bus info: pci@0000:09:00.0        logical name: wlan0        version: 00        serial: b0:10:41:7f:5c:b5        width: 32 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rt2800pci driverversion=3.13.0-77-generic firmware=0.37 ip=192.168.1.102 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn        resources: irq:16 memory:b2510000-b251ffff


Does the opposite of the brachistochrone exist?

Suppose a particle only influenced by gravity is going from point a to point b on an x,y plane. Is there an equation in which the particle takes the longest amount of time, yet still makes it to point b? I know the equation for brachistochrone is the parametric for an inverted cycloid, yet I'm not sure of the opposite. For reference, I am a high school student wanting to try this for a research project. I really only need to know whether this has already been done or not, but attempted solutions are obviously appreciated.


For some reason, when I go to 'Texture paint' and paint my model, it doesn't keep those changes when I get back to the normal object stuff, and I didn't observe much, but sometimes it even doesn't save my painted texture so I have to start all over again, anyone please help?


How to remove from autorun postgresql in xubuntu?

There is no postgresql option in the autorun menu, but it starts when the system starts. Searches have failed. Can you help?


I feel sure that I read about this somewhere but can't remember the details. The problem I have is this:  I have two functions  def go_foo():     print("foo")  def go_bar():     print("bar")   and this variable:  name = "foo"   I want to use name to call one of my functions like this:  go_{name}()  #output in this case would be foo   How can this be achieved?


apex:inputField can only be used with sObjects

I am trying to create a custom visualforce page that saves new opportunity contact roles to an opportunity. I am having trouble creating the first step of listing out all contacts that relate to that account. The error I am getting is...     Save error: Could not resolve the entity from  value binding '{!u.contact}'.   can only be used with SObjects, or objects that are Visualforce field component resolvable.   I do not understand why I am receiving this error. u.contact should resolve to a Contact object, which is an sObject. Am I misunderstanding something?  Here is my code...  Controller  public class ChooseContactController  {     public String accountId = ApexPages.currentPage().getParameters().get('accountId');     public Account account { get; set; }     public List<UnfundedOpportunityContactRole> unfundedOpportunityContactRoles { get; set; }      public ChooseContactController()      {          unfundedOpportunityContactRoles = new List<UnfundedOpportunityContactRole>();         List<Contact> contacts = [SELECT Id, Name FROM Contact WHERE AccountId =: accountId];         account = [SELECT Id, Name FROM Account WHERE Id =: accountId];          for(Contact c: contacts)          {             unfundedOpportunityContactRoles.add(new UnfundedOpportunityContactRole(c, 'The Man'));         }     }      public void Save() {}     public void Create() {}      public class UnfundedOpportunityContactRole     {         public Contact contact { get; set; }         public String role { get; set; }          public UnfundedOpportunityContactRole() { }          public UnfundedOpportunityContactRole(Contact contactParam, String roleParam)         {             this.contact = contactParam;             this.role = roleParam;         }     } }   VF page  <apex:page controller="ChooseContactController">   <apex:form >     <apex:pageBlock title="Choose a contact" mode="edit">       <apex:pageBlockButtons >         <apex:commandButton action="{!create}" value="New"/>         <apex:commandButton action="{!save}" value="Save"/>       </apex:pageBlockButtons>         <apex:pageBlockSection title="{!account.Name}">           <apex:dataTable value="{!unfundedOpportunityContactRoles}" var="u">             <apex:column headerValue="Contact">               <apex:inputField value="{!u.contact}" />             </apex:column>             <apex:column headerValue="Role">               <apex:inputField value="{!u.role}" />             </apex:column>           </apex:dataTable>         </apex:pageBlockSection>     </apex:pageBlock>   </apex:form> </apex:page>


How do I subdivide smooth in blender 2.8?

Previously I could that in specials menu, but it seems that there is no such option in 2.8 version.


More pixels or larger pixels? (the case of A7S II and A7R II)

The Sony A7r II has 42.4 (effective) Megapixels with a pixel area of 20.33µm2; and   the Sony A7s II has 12.2 (effective) Megapixels with a pixel area of 70.55µm2.  (both are FF camera's)  That is, A7r II has more pixels, whereas the A7s II has larger pixels.    Question.  I'm looking for a comprehensive list on what (dis)advantages larger pixels have over more pixles and vice versa, in general. The specific case of the A7r II vs A7s II can be used for explanation purposes.    List of Camera's with same sensor size and different number of pixels.   A7r II, 42.4 megapixels Nikon D810, 36.3 megapixels Canon 5D Mark IV, 30.4 megapixels Nikon D610, 24 megapixels Sony A7s II, 12.2 megapixels Canon 1Ds, 11 megapixels        EDIT: This (old) part will be deleted later.      This is not a 'small' difference. How does this translate to usage?   What is the possible 'aim' of Sony here? What can one do that the   other can't, or at least not as good. Here is an obvious starting   point:         More pixels yield larger image, which is what you want if you're going to print large photos.   ...         Why would you prefer one over the other? When just looking into the   number of pixel and single pixel area.


Django model field: Checking "if field is not None" vs. "if field"

Is there a meaningful difference between  if self.pk is not None:   and   if self.pk:   when checking a model field in python django?  Other languages have all kinds of differing 'correct' ways to check for a variable being null, empty, nonexistant, whatever.   a) I don't know how python handles the check  b) I don't know if this is important and / or meaningful in the context of django model fields


How to create custom enumerate environment?

MWE:  \documentclass{article} \usepackage{enumitem} \newcommand{\bulletlabel}{\raisebox{0.2ex}{\small$\bullet$}}  \begin{document}  \begin{enumerate}[label=\bulletlabel, topsep=0pt, leftmargin=0.3in, rightmargin=0.3in]     \item One     \item Two \end{enumerate}  \end{document}   As you can see, I've parameterised my enumerate environment to get the formatting I want. I use this set of parameters fairly often in my document, together with 2 other sets of parameters.  Is there a quick way for me to replicate this without having to copy/paste or type it out every time? I don't want to redefine the default enumerate environment, as there are 2 other sets of parameters that I need to handle as well. I'm just looking for a quick way to do it.  I tried this:  \newcommand{\paramone}{label=\bulletlabel, topsep=0pt, leftmargin=0.3in, rightmargin=0.3in}   But when I use:  \begin{enumerate}[\paramone]   It fails because it processes it as one parameter rather than 4.  How can I achieve this?


Factor 2 in Heisenberg Uncertainty Principle: Which formula is correct?

Some websites and textbooks refer to $$\Delta x \Delta p \geq \frac{\hbar}{2}$$ as the correct formula for the uncertainty principle whereas other sources use the formula $$\Delta x \Delta p \geq \hbar.$$ Question: Which one is correct and why?  The latter is used in the textbook "Physics II for Dummies" (German edition) for several examples and the author also derives that formula so I assume that this is not a typing error.  This is the mentioned derivation:     $\sin \theta = \frac{\lambda}{\Delta y}$      assuming $\theta$ is small:      $\tan \theta = \frac{\lambda}{\Delta y}$      de Broglie equation:      $\lambda = \frac{h}{p_x}$      $\Rightarrow \tan \theta \approx \frac{h}{p_x \cdot \Delta y}$      but also:      $\tan \theta = \frac{\Delta p_y}{p_x}$      equalize $\tan \theta$:      $\frac{h}{p_x \cdot \Delta y} \approx \frac{\Delta p_y}{p_x}$      $\Rightarrow \frac{h}{\Delta y} \approx \Delta p_y \Rightarrow \Delta p_y \Delta y \approx h$      $\Rightarrow \Delta p_y \Delta y \geq \frac{h}{2 \pi}$      $\Rightarrow \Delta p \Delta x \geq \frac{h}{2 \pi}$   So: Which one is correct and why?


How can I see the full date with year on macOS Big Sur 11.2.1?

I do NOT see anywhere to add year. I have looked in every setting in "System Preferences" and just do not see.


As part of my research I need to find the detailed list of books written using TeX, LaTeX.... I am from Computer Science background, and found some books written making use of TeX, LaTeX... Could you please give a list of books written using this. I know the list is large. It would be ok to include major titles only.


I tried to pass parameters to bash in shebang of executable script:  #! /usr/bin/env bash -ex  false   But I get an error:     /usr/bin/env: ‘bash -ex’: No such file or directory   Should I avoid to use /usr/bin/env in favor of /bin/bash to avoid error, or there is a way to stick with /usr/bin/env?  I am on Ubuntu 16.04.3.


Is there any way to sync installed software between two devices?

The software center in Ubuntu 12.04 had an option to sync software between computers with Ubuntu One (see ). Is there any way to achieve this in Ubuntu 20.04?


I'm using Netbeans 8.0.2 with 64bit JDK-1.8 on Windows 10 x64 machine (also tested on Ubuntu 15.04) This is a file from a chat system which checks operation (signin/signout) and subsequently, checks in onlineusers.txt if user exists, if not it writes user to file.  Edit My program is writing somewhere because it can execute all 3 if-else blocks successfully, but the problem is the text file to which I have set path, is still blank.  P.S. - for writing in file I've already tried method of creating temp file writing to it, deleting old, renaming temp. That didn't worked out on Netbeans (I tried it without IDE and it did work)  Here's my code, I've been trying with parameters - user=nick&oper=signin    protected void processRequest(HttpServletRequest request, HttpServletResponse response)         throws ServletException, IOException {      response.setContentType("text/html;charset=UTF-8");     try (PrintWriter out = response.getWriter()) {         System.out.println("Users.java Start");         String onlineUserPath = getClass().getResource("/textfiles/onlineusers.txt").getPath();         File onlineUsers = new File(onlineUserPath);         BufferedReader reader = new BufferedReader(new FileReader(onlineUsers));          ArrayList<String> tempUsers = new ArrayList<>();         boolean userExist = false;         String s;         String user = request.getParameter("user");         String operation = request.getParameter("oper");         tempUsers.add(user); //uncommented          if ("signin".equals(operation)) {             while ((s = reader.readLine())!=null) {                 if (s.equals(user)) { //edited                     userExist = true;                     out.print("userexist");                     break;                 } else {                     tempUsers.add(s);                     out.print("signin");                 }             }         } else if("signout".equals(operation)) {             while ((s = reader.readLine()) != null) {                 if (s.equals(user) { //edited                     out.print("signout");                     userExist = true;                     continue;                 }                 tempUsers.add(s);             }              if (!userExist)                  out.print("usernotfound");          } else if ("showmsg".equals(operation)) {              userexist = true; //added             while ((s = reader.readLine()) != null) {                 out.print(s + "<br/>");             }         }          //Writing                     if (!userExist) {             FileWriter writer = new FileWriter(onlineUsers, false);             for (String add : tempUsers) {                     writer.write(add);                 System.out.println(add);             }             writer.close();          }          reader.close();         System.out.println("User.java code complete");     } catch(Exception e) {         System.out.println("Exception: " + e);     } }


When I try to download something, I use  sudo apt-get install/upgrade <package>   However, this gives me error messages:  W: Some index files failed to download. They have been ignored, or old ones used instead.   and when I want to download mysql server it gives me this error messages:  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Which of the choices solution of the Cauchy problem?

Consider the Cauchy problem of finding $u=u(x,t)$ such that $$\frac{\partial{u}}{\partial{t}}+u\frac{\partial{u}}{\partial{x}}=0\text{ for }x\in\mathbb{R},t>0\\u(x,0)=u_0(x),\;x\;\epsilon\;\mathbb{R}$$  which choice(s) of the following functions for $u_0$ yield a $C^1$ solution $u(x,\ t)$ for all $x\in\mathbb{R}$ and $t>0.$   $u_0(x)=\frac{1}{1+x^2}$ $u_0(x)=x$ $u_0(x)=1+x^2$ $u_0(x)=1+2x$   Because characteristic of the given PDE is $U=U_0(x-ut)$ from option 2, 4 only the satisfies the given PDE is i am right


Should I use "did" in the following question?

What (did) scared(scare) him more? If his date wanted to be serious or if she   didn't?   Do I need a did there? Why or why not?


I'm hoping that someone can provide a method for deducing the commonly known SSS congruence postulate? The postulate states     If the three sides of one triangle are pair-wise congruent to the three sides of another triangle, then the two triangles must be congruent.   I am a middle school math teacher (teaching a HS Geometry course) and would like to be able to explain/justify the triangle congruence theorems that I expect students to apply with more clarity. I understand that the Law of Cosines could be used to justify the SSS triangle congruence theorem but I wonder if a proof can use more basic properties. My students are currently learning the congruence theorems and using constructions to justify their validity. I know two ways to demonstrate the validity of SSS congruence: constructions and the Law of Cosines. Is there another way?  I've researched this and have not seen another answer so far. The Law of Cosines is the accepted answer to . I've also seen a few other questions hinting at this without a clear answer, see: . Another question on math.SE asks what I'm asking (how can we derive the triangle congruence postulates from basic axioms?)  and the accepted answer suggests only a quick visit to  but does not discuss whether or not the triangle congruence axioms follow from the basic axioms or are independent of them.


dryer vent . venting into the crawl space

Just bought a house no basement have a crawl space the dryer vent discharges into the crawl space . The furnace is also near by. ? Good or bad .


Using back-ticks to show code doesn't allow you to start with a space?

Referring to the comment I made here   Trying to use # someTag did not work so well for me in the comments and same thing goes for this post, edit this post and you will see ` # someTag`  I assume this is on purpose, can anyone enlighten me?


"Task manager" for killing hard-disk intensive processes?

Sometimes I want to be able to quickly kill the process that has the most intensive hard disk usage. How do I do it?  With the solutions described  I would have to open another terminal to invoke a kill. Is there a way to monitor and potentially kill with the same app?


Ubuntu 18.04 Nvidia Gamma adjustment not sticking

I have an issue with Ubuntu 18.04 Nvidia gamma setting; the adjustment does not stick. When the OS restarts, it goes back to default. I'm new to Linux and I am just stuck. I don't really know what else I need to do. Any help will be greatly appreciated. Thank you.


Show only the last two year digits in Biblatex citation

I'm writing a piece where I'm citing several standards, for example  @STANDARD{en1990,   title = {EN 1990: Eurocode: Basis of Structural Design},   organization = {Comit\'e Europ\'een de Normalisation (CEN)},   address = {Brussels, Belgium},   year = {2002} }   and   @STANDARD{aci318-63,   title = {ACI 318-63: Building Code Requirements for Reinforced Concrete},   organization = {American Concrete Institute (ACI)},   address = {Farmington Hills, Michigan, USA},   year = {1963} }   I use biblatex with style=authoryear. I can cite the first one as \parencite*[EN 1990:][]{en1990}, which causes the citation to appear as (EN 1990: 2002) in running text, which is the way this standard is usually cited. However, this won't work for the second example, since this standard is styled as ACI 318-63 and \parencite* will only produce the whole year instead of only the last digits.  Is there a way to change the way the year is formatted for a certain citation? Even better, is there a way to override/modify the default citation text?  I kind of suspect I'd need to create a custom style with an extra field that holds the formatted year as it should appear in the citation, but I hope there's an easy way to do it without spending too much time customizing biblatex styles.


I still didn't succeded in breeding villagers. I tried with information from the  and still I didn't succeded. I tried to breed villagers by trade,but they did not do that. I also tried the breeding with food,but with no succes. I built them additional houses,with no succes. Do the villagers need all the foods or just one. Have I got anything wrong?


Unwanted white space in IEEE latex template

I am writing a paper, in which I don't know the reason for this white spacing shown below:      This appears between sections, equations, and figures. However, this is the given template from IEEE. Could anyone help me?  PS: I am using pdflatex in windows. The only customization I did in the template is using the psfrag package, for substitution in .eps figures. Also, I could not provide a MWE because, I am not sure how to insert a whole class into MWE.


Nvidia Gtx 970: Resolution stuck at 1024x768

I have already read a bunch of threads and haven't gotten anywhere. I installed Ubuntu command-line only, then installed the Gnome desktop environment separately.  Upon booting the desktop, the proper resolution appeared. I went to Software & Updates >> Additional drivers, then switched to the recommended "Using NVIDIA driver metapackage from nividia-driver-430 (proprietary, tested)". I hit Apply Changes, then rebooted the machine once finished.  The resolution broke. I tried reverting to the original "Using X.Org X Server - Nouveau display driver from xserver-xorg-video-nouveau (open source)". No dice. The resolution remained at 1024x768.  After reading through the xorg.0.conf log it appears the monitor is not recognized, which is causing the problem.   xrandr output:  $ xrandr: Failed to get size of gamma for output default Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 default connected primary 1024x768+)+) 0mm x 0mm    1024x768 76.00*   There is no x11/xorg.conf.d file. Output of X -configure  X -configure _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) (EE) Please consult the The X.Org Foundation support          at http://wiki.x.org  for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file.   Any ideas?


How to place an opaque text box over a beamer slide

I would like to be able to show a slide and then on the next transition place an opaque text box at some position over the text which explains some aspect of it.  This is an example which doesn't work well.  \documentclass{beamer} \usepackage{default} \usepackage[pangram]{blindtext} \usepackage{lipsum} \usepackage[absolute,overlay]{textpos} \setbeamerfont{title}{size=\Huge} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \setbeamercolor{title}{fg=white} \setbeamercolor{frametitle}{fg=yellow} \begin{document} \begin{frame} \lipsum[50] \pause \begin{textblock*}{64mm}(32mm,0.25\textheight)     \begin{exampleblock}{}         This is wrong!     \end{exampleblock} \end{textblock*} \end{frame} \end{document}   In my case I have white text with a black background.  How can you do this?    Using the linked question I get:  \documentclass{beamer} \usepackage{lmodern} \usetheme{Luebeck} \usepackage{lipsum} % <= to insert dummy text \usepackage[absolute,overlay]{textpos} \setbeamerfont{title}{size=\Huge} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \setbeamercolor{title}{fg=white} \setbeamercolor{frametitle}{fg=yellow} \begin{document} \begin{frame} \frametitle{Example of block over the text} \lipsum[1] \only<2>{ \begin{textblock*}{64mm}(32mm,0.25\textheight)     \begin{exampleblock}{}     This is wrong!     \end{exampleblock} \end{textblock*} } \end{frame} \end{document}   How can I make the text block have white text on a black background and get rid of the block of color at the top of it?


Exact dates of stages before launch of a website

Is it possible to know the exact dates at which Stack Exchange websites have passed each of the development stages before being launched officially? I refer to date of proposal, date of commitment, date of private beta, etc.   In the Area 51 website an approximate date is recorded (i.e. 6 years ago,..for example for Stack Overflow in Russian, this is recorded on the right column ), but I was wondering if I could find the exact dates.


Two accounts on same computer - how can I make a share folder for both?

I need a shared folder. My wife and I need to exchange files on the same computer. How can we do that?


Books like "Jeux de l'esprit et divertissements mathématiques"

I have enjoyed the second edition of the title's book (Nouveaux jeux de l'esprit et divertissements mathématiques) and now I have bought the first edition. To set some context, the book has some "games" (problems), some of them require a few skills (or none) on logic and math, and other ones need more time and more knowledge on mathematical concepts. I am interested in books like this, or other books with problems of logic, puzzles, etc (Obviously, related to mathematics, mathematical concepts and logic).  I'm not interested in books of sudoku, and puzzles like that (just because there are a lot of books with that content).    Thanks for your answers and have a nice day!


When do exactly we choose to use have or take? They look sort of having similar context     I have a bath      I take a bath   And by the way, I saw that      I take a chance   Can't be transformed to     I have a chance   Can it?   *Moreover, If there's a verb used like the bath, it means the bath is no more a verb but a noun right?  Also very important is that , can they be applied randomly to *a verb or a noun?  Like :  *  - I take a choose   Or    I take an option ( this one makes sense but I mean in the context of delexical verb)   ?  *EDIT: My mistake , bath is actually not "a verb transformed to a noun, but its absolutely a noun."  So my concerns would be if they can be used interchangeably? And be applied to random noun?


what does ^ mean in bool GetDeviceInformation(String ^ port, LibCECConfiguration ^configuration, uint32_t timeoutMs)

I came across this function with arguments like this. I am wondering what does the ^ mean in here.  bool GetDeviceInformation(String ^ port, LibCECConfiguration ^configuration, uint32_t timeoutMs){}   Cheers, Lan


Is it possible to look up a Stack Exchange user by their email address?   If so, how can I disable this feature for my account?


When we measure the speed of a moving element we do it with the help of a reference frame. Now if we need to measure the speed of time, is it possible? Does time actually have a speed?


How do I navigate to folders with spaces in their names? I get "no such file or directory" when I try

I'm completely new and lost in Ubuntu 12.04, I'm having trouble navigating to my Sublime folder which I know is in my /opt folder. Yet I've tried to no avail to navigate into it via Terminal window. The directory is colored in blue, no idea what this means...but I am able to access the folder using the GUI explorer...?  k@k-Ubuntu:~$ cd /opt k@k-Ubuntu:/opt$ ls Sublime Text 2 k@k-Ubuntu:/opt$ cd Sublime Text 2 bash: cd: Sublime: No such file or directory k@k-Ubuntu:/opt$ cd /Sublime Text 2 bash: cd: /Sublime: No such file or directory


reusing space after deleting lots of rows

I have a database which is 20 GB and it has history information since year 2001. Now I started deleting data prior to year 2008. after completion of deletion how can i reuse the space that is cleared by my delete statement. I am using SQL Server 2005.  Will Sql server automatically reuse the space if I don't shrink the datafiles? Should we rebuild the indexes?


What is a "name reference" variable-attribute?

After reading  by Kusalananda I got some sense about what is a variable-attribute, yet I miss what is a "name-reference" (type?) of a variable-attribute, what is it using for, why would one want to use it in a Bash script,   I tried to Google the term "name reference" (without quote marks) but I didn't find a wiki article on this term.


How can I connect to a community server on Minecraft Xbox One Edition?

I want to join the Hypixel server, but I can’t figure out how to add it.  Is it possible? If so, how do I do it?


Install Ubuntu alongside Windows in legacy mode

So I recently tried to install Ubuntu 16.10 , and as i went through the installation wizard I was told that it was detected that another operating system was install (Windows 10 x64) in "BIOS compatibility mode" (Pretty sure it means legacy mode) , and that force installing in UEFI mode is not recommended , that's why I came here.  After some doodling in the BIOS I found that I can switch to UEFI mode, if I will do that will my windows 10 still boot? and will I be able to install Ubuntu peacefully ?


While browsing on my Ipad2 we'd like to take notes and save whole websites (not just bookmark them). The Evernote add-on on Chrome (on my PC) gives the exact functionality that I'm looking for. Is there an equivalent app for Ipad? Note that for a special accessibility reason we use Chrome instead of Safari. Thank you.


How to copy functions from one object to another?

I'm working with a home-grown javascript library that has event handling. At it's core is a registerEvents function:  core.registerEvents = function(evts, mod) {     if (this.is_obj(evts) && mod)     {         if (moduleData[mod])         {             moduleData[mod].events = evts;         }     } };   In this, mod is a module, moduleData is an array of modules that is in the functions parent scope, and evts is an object with named functions. Use is something like:  core.registerEvents({         "event1": function() {alert('event1');},         "event2": function() {alert('event2');}     },     myModule);   This is all working well, except that it requires all the events to be registered at once, there's no ability to register an additional event, later.  What I would like is to extend this so that when you call registerEvents(), if there are no events registered you accept the passed evts object as your events object, but if there are already events registered, then you add the functions in your evts object to your events object.  Something like this:  core.registerEvents = function(evts, mod) {     if (this.is_obj(evts) && mod)     {         if (moduleData[mod])         {             if (moduleData[mod].events)             {                 // move functions in evts to moduleData[mod].events             }             else             {                 moduleData[mod].events = evts;             }         }     } };   And I haven't a clue as to how to do it.  One complexity: Our new function, evts.event1, was defined in a particular lexical scope. When we move the function to another object, we don't want to change that scope. The variables that were in the parent scope when evts.event1 was defined should remain accessible to evts.event1, even after it's been moved to another object.  I'm at a loss. Help would be appreciated.


How do you manage the water that tomatoes generate when they're cooked?

I love tomatoes, and I like to put them in stuff like omelettes or to sautee them with sweet potatoes and other vegetables.  However, they "leak" so much fluid when they cook. When you sautee them in particular, they probably leak 50% of their weight in water. No matter what else you cook them with, they turn everything into a gooey mess.  What I've taken to doing is sauteeing them by themselves, then draining them, and setting them aside on a folded paper towel to absorb some water, before dumping them back into whatever else I'm cooking.  Is there a better way to do this?  Am I doing something wrong?


What determines the questions available for selection in the tour page?

Diamond moderators  . In the second section from the top—entitled "Ask questions, get answers, no distractions"—that takes us to an opportunity to select one of a page full of questions from the site as the example question used on the about page. The selections currently available on physics are a little idiosyncratic. Is there some rhyme or reason to these? I suppose that we want a good example question to:  Be accessible to the intended audience (perhaps even to the newest and most naive person in that audience) Be judged at least decent by the community (positive score) Have more than one answer which are also judged acceptable (again positive score)  What else? How does a question end up on the list?


As a user I would like to search for a given topic on all Stack Exchange sites. Now I have to choose the site and then input a search query. I would like to see the search results from all sites with some indicator which site topics originate from.


Variation of classical action due to variation of position and time

I am reading about the Brown-York formalism in . The document says that if we consider a deformation of our end points $(q,t$) in position and time, then the classical mechanics action varies by (equation (65) on p.76) \begin{align}         \nonumber \delta S^1[q^a(t)] := &\int_{t_1}^{t_2} \left( \frac{\partial L}{\partial q^a} - \frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial L}{\partial \dot{q}^a} \right) (\delta q^a - \dot{q}^a \delta t) + \frac{\partial L}{\partial \dot{q}^a}\delta q^a\Big|_{t_1}^{t_2} \\         &- \left( \frac{\partial L}{\partial \dot{q}^a} \dot{q}^a - L \right) \delta t\Big|_{t_1}^{t_2}.\tag{65}     \end{align} Could somebody tell me how we got to this? Here’s what I’ve tried: \begin{align}     \delta S^1(q,\dot{q},t) = \frac{\partial S^1}{ \partial q} \delta q + \frac{\partial S^1}{ \partial \dot{q}} \delta \dot{q} + \frac{\partial S^1}{ \partial t} \delta t,\tag{a} \end{align} where the suppressed indices of the vectors $q$ and $\dot{q}$ are implied. The first term gives $$\begin{equation}     \frac{\partial S^1}{ \partial q} \delta q  = \int_{t_1}^{t_2} \frac{\partial L}{\partial q} \delta q \mathrm{d} t. \end{equation}\tag{b}$$ The second term gives $$\begin{align}     \nonumber \frac{\partial S^1}{ \partial \dot{q}} \delta \dot{q} &= \int \frac{\partial S}{\partial \dot{q}} \delta \frac{\mathrm{d}}{\mathrm{d} t} q \mathrm{d} t\\     &= \frac{\partial L}{\partial \dot{q}} \delta q\Big|_{t_1}^{t_2} - \int \frac{\mathrm{d}}{\mathrm{d} t} \frac{\partial L}{\partial \dot{q}} \delta q \mathrm{d} t. \end{align}\tag{c}$$ To get to the last line I have used integration by parts. The third terms can be written as $$\begin{align}     \nonumber  \frac{\partial S^1}{ \partial t} \delta t &= \int_{t_1}^{t_2} L \mathrm{d}t \delta t \\     \nonumber  &= L \delta t |_{t_1}^{t_2}\\     &= \left( p^a \dot{q}_a - E \right) \delta t |_{t_1}^{t_2}. \end{align}\tag{d}$$ The combination of the three terms leads to $$\begin{align}     \delta S^1 &= \int_{t_1}^{t_2} \left( \frac{\partial L}{\partial q} - \frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial L}{\partial \dot{q}} \right) \left( \delta q + \dot{q} \delta t \right) + \frac{\partial L}{\partial \dot{q}}\delta q\Big|_{t_1}^{t_2} + (E + L)\delta t |_{t_1}^{t_2}. \end{align}\tag{e}$$


How to create logger that log input paramters and response of method

How to create attribute based logger class which would read the all the input paramters of method and response object of method and both log into database.  so,    [LogReqResponse(request:fieldname,LogObject:Employee,Message:"")]  public int GetData(string id,Employee e) { ... return resultId; }   so, LogReqResponse's class would have - ID, Employee object where, I do related processing and log into database and , response of method also log into database.  How can I achieve this.  there is no action filter kind of thing, its just C# class library 4.6.2 framework. ///////////////// this is different that mentioned question.  Updated code above, method should process as per specified file for request,logobject and message and log into database after processing.  How to create such logger class that read method's paramter as well give response of method also to log. its all in attribute class.


Is Have To/Has To a verb, auxiliary verb, or modal?

I'm wondering what is the actual verb in this sentence: "I have to study". Is the verb "have" or "study" ? Is the verb "have" and "to study" the infinitive?


What exactly does Tone Curve do in Lightroom?

In simple terms, what does Tone Curve in LR actually do?. I can see the results of changing Tone Curve by playing around with it, but I don't really understand scientifically what it actually does. I read a few documents on it, including one from Adobe, but I just got lost.


I have a JSON data to post to http, this JSON data has a var named params:  {  "method": "...",  "params": [ ... ],  "session": "...",  "id": 1 }   I want to link every request and response to a class in my Models. How can I either use the name params for the attribute or make the attribute name change as I serialize my class to JSON format?  I am using ASP.NET MVC 4 and JSON.NET framework on visual studio 2013 Ultimate edition.


I do not understand how dummy variables work in math.   Suppose we have:  $$I_1 = \int_{0}^{\infty} e^{-x^2} dx$$  How is this equivalent to:  $$I_2 = \int_{0}^{\infty} e^{-y^2} dy$$  How does this dummy variable system work?   Since $y$ is the dependent variable for $I_1$ How can $y$ itself be and independent variable for $I_2$  ??  Thanks!


Lone wolf or beserker behaviour of young men in an a very authoritarian society

This short story (probably pre 1980) shows the puzzled authorities seeking to explain the behaviour consulting a series of so called experts such as military,  engineering,  psychologists, etc, culminating with a historian. The historian unsettles them by claiming to be the last representative of culture, even though they regard their society as the best, the very best.  I forget the ultimate conclusion which is why I want to read it again. It seems very relevant to today.   I think the country was fictitious, future society run as a technology dominated, authoritarian, possibly military dominated, with hardly any soft professions in humanities or arts. The behaviour of the young men, who generally showed no signs of rebellion, would suddenly change to lethally attacking people. Hence my use of the words lone wolf or berserker.  I suspect the author was contrasting two mind sets in their approach to a human problem. In the extreme perhaps no nonsense industrial, military types vs fine arts. No women involved from memory.


I need to describe a ring $R=\mathbb{Z}[X]/(X^2-3,2X+4)$    I know that its element would be of the form $\{f(x)+(X^2-3,2X+4)|f(x)\in \mathbb{Z}[X]\}$ After that will i divide $f(x)$ by $X^2-3$ first and then by $2X+4$ to reduce the elements  in $R$?


Travelling to U.K with Italian Soggiorno Ricevuta

I am a student from India  studying in Italy.  My soggiorno has expired and I have applied to renew it. I didnt get the renewed soggiorno yet and I heard from the authorities It tooks another month to receive it. I have a U.K visa and I would like to visit U.K next week. Can I travel using the reciept of Application?


Trigonometric Identity: $2\cos{A}\sin{B}\sin{C} = \sin^2{B} + \sin^2{C} - \sin^2{A}$ in the case $A + B + C = \pi$

I would appreciate an explanation to either of the trigonometric identities. Are these used to verify an important identity? If $A$, $B$, and $C$ are angles of a triangle, $$2\cos{A}\sin{B}\sin{C} = \sin^2{B} + \sin^2{C} - \sin^2{A},$$ or equivalently, via the Pythagorean Identity, $$2\cos{A}\sin{B}\sin{C} = \cos^2{A} - \cos^2{B} - \cos^2{C} + 1.$$


Why is my question faded on the main question list?

From the moment I posted my (89th) question on History SE, it has appeared like this in the main question list:    When you click to view, it looks fine. It only appears like this on the main list. I know that downvoted and deleted posts appear faded when you 'look inside', but even these are not faded on the main question list.  I use Google Chrome and the question looks like this on both desktops (Windows XP - yes, I know it's old) and my laptop (Windows 8.1).


How can I create vertical bars at a specific position after a value?


Fantasy novel about kid who controls magic through coin changer device

I read this book in high school, and I can't remember what it's called. Some kid learns he has magical ability, but only finds out later that he controls it through some kind of coin changer he's been tinkering with the whole book.


How do I get straight quotation marks, i.e., " and ' in TeX?  (No, \verb changes the font and this is unacceptable.)  [Edit]  I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity.  The first two proposed answers did work, without fontspec.


I've tried to look at it combinatorically but I couldn't find a good model for $\binom{2n}{k}^3$, I've also tried to solve it using induction but the changes in steps are too much to keep track of  Can any one give a hint on any kind of proof for this?


win7 Whats the best way of clearing permissions?

I have a Win7 PC with two hard drives. The primary is too small, and so I want to reload Win7 on the bigger drive, after making it the primary.   My problem is that when I have tried this in the past, the existing files and folders keep their original permissions, with some unknown SSID - the original installation and users which is no longer around. Then I keep getting permission errors.   The only way I've figured to avoid this previously, is to transfer all the data elsewhere, a separate drive, and treat this bigger drive as new: Format and go for it.   Is there another way?


Is there a kind of microdata or markup that creates "results x of y" in search results

I'm trying to get the following kind of markup appear on my job site:     There's a  for job adverts listed on the schema.org webpage, but I can't work out how Google is pulling the 1 - 20 of 23229 from the Monster webpage.  I'm presuming the jobs tag is because they use microdata markup for all their adverts, but how is Google pulling the numbers?  There is a specific page tag for search results (), however it doesn't seem to have any relevant options and as far as I can tell Monster aren't using it anyway.  (A search for monster jobs china should show the result)


How to in chrome save password without asking

How to force saving pswd without asking. chrome://flags/ does not work I cant find there "save passwords automatically" option or somethnig similar.


Which kind of diagnostic plots for count data?

I know that for an lm model is enough to run plot(model_lm) to get diagnostic plots. I am dealing with high-dimensional count data, so I am using Poisson, Quasipoisson, Negative Binomial and Zero Inflated . Is there a way to compare different glm outputs to see which one fit the data better? Moreover, how can I plot diagnostic plots?  My question is a bit different from:  since my X is made of five numeric variables.


So in markdown the code >! makes a spoiler block.  Something like >! Hello gives     Hello   with a nice fade in/out effect. However, when you insert an image or tag like >! Hello [tag:bug] it does not display correctly. Example:      Hello this are bugs in StackExchange:    The tag does not hide itself when the mouse is on top of the block. Same for images. Example:   >! This is a picture of Jeff Atwood: ![Jeff Atwood][1] [1]: http://i.stack.imgur.com/3l9vY.png   Gives :      This is a picture of Jeff Atwood: .   The text still fades in/out but the image does not. For the tag, the text fades in/out but the border does not and the text color changed from the background color of the block to green.  On older sites like , you get . The text "eyeballcode" is in the tilder notation thing inside a spoiler. Also, there is no fade in/out effect.


Why is my electorate badge not showing up?

I've just earned the Electorate badge on , but  doesn't display it. For proof that I've actually earned the badge, here's a screenshot:    Why is the badge not showing up in my profile?


Difference between force.com and salesforce.com?

What the difference between the two?  This description seems to be a bit out of date and underspecified.


Usage of possessive pronouns in subordinate clause or main clause?

To my knowledge, personal pronouns and the noun they represent can be inter-swapped. So both these sentences are correct. (I may be wrong, I'm not sure.)  "Unless she arrives here early, Susan will be fired."  "Unless Susan arrives here early, she will be fired."  However in the case of possessive pronouns is such a rule/ understanding also the same? My question is, simply put, must the noun be in the main clause always and the possessive pronoun in the subordinate clause? Are both iterations correct or is one more popular/grammatical than the other?  "Due to his poor memory, Richard forgot about the appointment."  "Due to Richard's poor memory, he forgot about the appointment."  One proponent suggested to me that the noun must always be in the main clause, since the main clause can stand alone as a sentence. Is this true? Anaphora or cataphora?


Why do some papers have 10-20 co-authors?

I am new to the field of academia, and when performing a literature review for really any topic, I am puzzled as to why some papers have so many co-authors.  Most papers have only about 1-5 authors which I can understand but I can't seem to understand how 10-20 people could all meaningfully contribute to a single paper. How possible is it that co-authorship is being gifted?  Are there any reasons why so many co-authors could be justified?  Update 11/11/19: Some comments have suggested this question may be a duplicate. To clarify: I was not referring to large-scale taskforces that produce world-changing results such as the Higgs Boson project (). Those projects clearly play by different rules. I was meaning routine contributions to journals (such as a new formula or algorithm) where I struggle to understand how so many people could all meaningfully contribute to a small (albeit important) idea.


How to sail downwind faster than the wind?

Recently a  set a record for sailing a wind-powered land vehicle directly down wind, and a speed faster than wind speed. Wikipedia has a  talking about it, but it doesn't explain exactly how it works.  I can imagine some configurations, but I don't get how a system could be set up to push forward with a tailwind (when the cart is moving slower than the wind) and push forward with a head wind (when the cart is moving faster than the wind).  Could someone help explain how this is possible?


checking if inputs in a form are set using nodejs

Suppose I want to see an input, say name is set in a form in php, I can do this:  if (isset($_POST['name']) {     echo("type in name"); # or something }   Can I do something like that in nodejs this way:  router.get('/', function (req, res, next) {     if (req.body.name == "") {         res.send('type in name'); // or something     } });   I'm new to both php and nodejs, so can someone clarify this for me, or provide me with a better/correct solution in nodejs?  I don't want to check if some object has some property, but if the form submitted has the property name set, i.e name is non empty.


Why in quantum mechanics do we require that the state space be a Hilbert space rather than just an inner product? Does the completeness of the norm have any clear physical role?


A sequence of differentiable functions that converge uniformly to a non differentiable function - is my example correct?

I was trying to find a series of differentiable functions that converge uniformly to a non differentiable function, to demonstrate the fact that uniform convergence doesn't imply anything about the differentiability of the function the sequence converges to.  I came up with this example -  $f_n(x)=\left\{  \begin{array}{c} |x| &|x|\gt\frac 1 n \\ \frac x n &|x|\leq\frac1 n \end{array} \right. $  The sequence of functions converges uniformly to $|x|$, and all $f_n$ are differentiable, but $|x|$ isn't differentiable at $x=0$.  Does this seem right?    Edit- people here helped me understand that my functions are not continuous at $x=\frac 1n$, which I forgot to check.  So a correct example will be:  $f_n(x)=\left\{  \begin{array}{c} |x| &|x|\gt\frac 1 n \\ \frac {nx^2}2+ \frac1{2n} &|x|\leq\frac1 n \end{array} \right. $  Which is continuous at $|x|=\frac1n$ and differentiable there.


Not enough free disk space when upgrading

I'm getting an error in software updater when I try and do my daily updates. it says:  The upgrade needs a total of 25.3 M free space on disk `/boot`. Please free at least an additional 25.3 M of disk space on `/boot`. Empty your trash and remove temporary packages of former installations  using `sudo apt-get clean`.   I tried typing in sudo apt-get clean into the Terminal but I still get the message. All of the pages I read seem to be for experienced Ubuntuers. I'm running Ubuntu 12.10. I want to upgrade to 13.04 but understand I have to finish these first.  This is the output from typing in cat /etc/fstab into the Terminal:  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> /dev/mapper/ubuntu-root /               ext4    errors=remount-ro 0       1 # /boot was on /dev/sda1 during installation UUID=fa55c082-112d-4b10-bcf3-e7ffec6cebbc /boot           ext2    defaults        0       2 /dev/mapper/ubuntu-swap_1 none            swap    sw              0       0 /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0 matty@matty-G41M-ES2L:~$    Output of df -h:  Filesystem               Size  Used Avail Use% Mounted on /dev/mapper/ubuntu-root  915G   27G  842G   4% / udev                     984M  4.0K  984M   1% /dev tmpfs                    397M  1.1M  396M   1% /run none                     5.0M     0  5.0M   0% /run/lock none                     992M  1.8M  990M   1% /run/shm none                     100M   52K  100M   1% /run/user /dev/sda1                228M  222M     0 100% /boot matty@matty-G41M-ES2L:~$    And dpkg -l | grep linux-image gives:  ii linux-image-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-18-generic 3.5.0-18.29 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-19-generic 3.5.0-19.30 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-21-generic 3.5.0-21.32 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-22-generic 3.5.0-22.34 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-23-generic 3.5.0-23.35 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-24-generic 3.5.0-24.37 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-25-generic 3.5.0-25.39 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP ii linux-image-3.5.0-26-generic 3.5.0-26.42 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP iF linux-image-3.5.0-28-generic 3.5.0-28.48 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP


Cubic root of a 128-bit integer in python

I have a problem getting a cubic root of an approximately 128-bit integer in Python2. The following assertion gives me an error:  assert 188098593525197704876445094491719024115 == ((188098593525197704876445094491719024115) ** 3) ** (1.0/3)   I tried Decimal class with a precision set to 600 but it still gives me a value off approximately for 6-12 digits.   How can I get this working (preferably without custom libraries)?


Stuck in Grub 2.02 after Windows 10 update

I have Windows 10 and Ubuntu on my laptop (initially Ubuntu 16 but followed the automatic updates, not knowing exactly what Ubuntu version I had, probably 18) with no dual boot. I used ESC followed by F9 to go to Ubuntu as my favorite OS. Windows also kept asking for updates, and eventually I gave up. The Windows 10 update took the whole day. After that, my ubuntu goes to Grub, and I cannot boot up my ubuntu anymore, thanks to Windows update. I followed some instructions on the web and none has worked for me. I appreciate your advice. Regards, -Nasser


Set keyboard shortcut for nested menu selection

Say an application has a menu selection Export in the File menu.  On mouse over, a sub-menu extends with the export options.  Is there a way to make a keyboard shortcut for one of those nested selections?  I've already tried implementing the keyboard shortcut for Export, setting it to Command-E.  However, this doesn't work, even though the Command symbol shows up next to Export.  Any help is appreciated


If all stars turn into black Holes one day, in far future, what will happen to Earth if Sun becomes a Black Hole.


Graph Theory and find the maximum selection

How can we explain how many $1$ we can choose at most in the given matrix $A$, with the help of the graph? EVERY ROW AND COLUMN HAS ONE CHOICE CONDITION.  I think we can choose 6 of 1 to suit this situation. How can I give this answer in connection with graph theory?


Doesn't the end of Looper create a time paradox?

I guess this is more a question about the nature of time travel more than anything else.  At the end of the movie,      Joe shoots himself in a field and changes the course of history.   Does this create a paradox as it changes the history that led up to that point?      If his future self had never existed he'd never have gone on the mission he did and thus he never would have ended up in the field.   Once he did what he did, he could no longer have done it, and so theoretically, time and space should have just folded in on itself and popped out of existence.  Is there something I'm missing that would explain how the movie could have ended where it did without the events at the beginning to lead it there?


Add "reject question" option to Suggested Edit review queue

Going through the Suggested Edits review queue, I've run into a fair number of questions where my reaction was basically that the edit was simply irrelevant, because the question was simply off-topic ().  This might be a fine question on Ask Ubuntu, but at least to me, it seems quite clearly off-topic for SO. I don't really want to skip it (there's clearly something that should be done) but none of accepting, rejecting, nor improving the edit is really the right thing to do either.  Could we expose things like the "close" button so we can deal with questions like this appropriately?


Confused about battery rating specifications

I'm confused about how to understand battery capacity by its ratings.  I though I understood Amp-Hours, as a nominal rating where they usually specified a period of time where that rating was approximately valid.  So below is the rating a particular batter, where nominal capacity for 20 hours rate-Ah is stated as 74 and the 10 rate-Ah . I assumed means that for 20 hours it can sustain the 74 Amp-hour rating, so I would expect that the amp-hour rating for 10 hours would be as high or higher but it's 65.  So i'm not sure it means what I thought it means. So does it mean that I can operate the battery for 20 hours at 74 Ah /20 h = 3.7 amps, but if I use it for 10 hours, then it can run at 65 Ah /10 h = 6.5 amps for each hour? Why this reasoning doesn't seem quite right to me is that I thought the Amp-hour rating was high if you specify shorter periods of time.    Below is an example of a battery rating.  And the link to the published chart.    | Volts| PHCA | CCW | HCA | MCA |       Nominal Capacity          | Reserve Cap. | |      | 5 sec|     |     |     | 20 HR Rate-Ah  | 10 Hr Rate-Ah  | in Minutes   | ---------------------------------------------------------------------------------- | 12   | 1750 | 950 | 1350| 1070|       74       |       65       |        145   |


Recover NTFS file system from RAW partition w/o recovering individual files

There is an NTFS partition with data that was converted into RAW partition by a piece of software. Now it's not readable. File recovery utils easily find all the files (including deleted ones) and it's no problem to recover data file by file. But is there a way to recover the file system as a whole (including metadata, like creation time)? Essentially I am looking for a way of undoing the covertation of the NTFS partition into RAW.


Let's say I have this path D:\something\something1\from_here_I_now\stuff\stuff2. So, I know that \from_here_I_now\stuff\stuff2 is a permanent path, but the beginning is different, like I know that D:\something\something1\ may be different for someone else. How can I find the D:\something\something1\ knowing only \from_here_I_now\stuff\stuff2?


very often we see the description like this:  Many people realize that they didn't do any wrongdoings, so they cannot understand why they have to be punished. or ...., so they cannot understand why do they have to be punished.   or we ask "why do you fight?" can we omit the "do",  say "why you fight?"  Thanks!!


How can I upvote/mark an edit on my post as helpful?

I had one of my answers polished up by another user.  It was good, and now it's even better, however when I reviewed my edit history I find no way to upvote the edit, or mark it as helpful.  People who do this type of thing are truly valuable to the community as they improve readability and make answers easier to understand for other users.


Now a days in iOS stack exchange app I'm getting the same notification twice.      My device is iPhone 5 with iOS 9.2.1.  Stack Exchange App version is 1.4.3.7   Is this problem with my mobile?


Is it useful to consider properties about box-topology?

Comparing box topology and product topology, there are many better theorems standing in product topology, but not stands in box topology. So is it useful to study box topology?


find the distribution of $X$ such that $X(\omega) = \int_{0}^{1} B_s^2(\omega) ds$ where $(B_t)_{t \geq0}$ is standard Brownian motion

since for a fixed $\omega$, $B_s(\omega)$ is continuous in $s$ then $B^2_s(\omega)$ is Riemann integrable w.r.t. $s$ :   $X(\omega) = \int_{0}^{1} B_s^2(\omega) ds \implies X =  \lim_{n \to \infty} \frac{1}{n}\sum_{k = 1}^{n} B^2_{\frac{k}{n}}  =  \lim_{n \to \infty} \frac{1}{n}\sum_{k = 1}^{n} Y_k$  I would like to use the strong law of large numbers but I don't have independence of the $Y_i$'s.  I know for one that for $t \geq s$, the increments $B_t - B_s$ are independent of $B_s$, maybe we can somehow use this property here ?


Here is the full question: Let $X$ be a topological space and $f,g$ two continuous functions $f:X\to \Bbb R$. Prove that the functions $h(x)=|f(x)|$ and $k(x)=\max\{f(x),g(x)\}$ are both continuous. I am having trouble proving the first part that $h(x)=|f(x)|$ is continuous. Here's my answer for the second part: We know the maximum of two functions $f(x)$ and $g(x)$ is defined as $max\{f(x),g(x)\}=\frac{f(x)+g(x)}{2}+\frac{|f(x)-g(x)|}{2}$. Since this is the sum of two continuous functions $f(x)$ and $g(x)$, then by the properties of continuous functions, $k(x)$ is also a continuous function. Could someone point me in the right direction for the first part?


Show that $\sum_{n = 1}^\infty n^qx^n$ is absolutely convergent, and that $\lim_{n \rightarrow \infty}$ $n^qx^n = 0$

I'm having trouble with proving the following for my math study:  Let $x$ be a real number with $|x| < 1$, and $q$ be a real number. Show that the series $\sum_{n = 1}^\infty n^qx^n$ is absolutely convergent, and that $\lim_{n \rightarrow \infty}$ $n^qx^n = 0$  I tried this:  $\sum_{n = 1}^\infty n^qx^n$ = $x + 2^q + 3^qx^3 + ...$ $= x(1 + 2^qx + 3^qx^2 + ...)$  So far, I don't know how I have to do this, I tried to apply the root test on this, but for that I would need to compute the lim sup of the series, so I thought that was not correct. Could you explain me how to prove this?  Thanks in advance!


Tire pressure decrease when the bike is idle

I ride a .  Yesterday morning I noticed (for the first time since purchase) that in my rear tire, the tire pressure has decreased to a flat. I thought it was a puncture, so I refilled the tire using a hand-pump and poured water over the tires expecting bubbles but didn't get any.  Then I took it for a ride, 20 kms and came back - nothing happened.  Then I came back in the evening to notice that the air pressure has decreased again, almost half. Then today morning it's a flat again.  Is it a puncture? I checked the tire's mouth valve, it's not leaking any air there. Should I get the tube out and check for a puncture?


Perl addition tacking on mystery decimals

I am running a perl script and basic addition operators seem to be not working. For my code  print $total_charges," 1 \n"; print $payments," payments\n"; $total_charges+=$payments; print $total_charges," 2 \n";   For this code, the output is the following  10192.19 1 -401.99 payments 9790.20000000005 2   If you do the math, this number would be correct except for the extra decimal places. What is going on?  I need these numbers to be accurate. Any suggestions on fixing this, or do I just truncate to 2 decimals each time?


Bash: what is the difference between `cp fileA fileB` and `cp -- fileA fileB`

What is the difference between cp fileA fileB and cp -- fileA fileB in Linux?


Cannot view spoilers on iPad when logged in

I am viewing this question on my iPad:  How do I view the spoilers on the question? There is no way for me to "hover over" the spoiler - neither tapping nor sliding works to show the spoilers... Steps to reproduce  Open this question on an iPad not using the mobile site (I am on an iPad 2)  If you're not logged in, log in.  Tap the grey block below:   Test me!   Note that you can't see the super-sensitive spoiler in that gray block.  Log out, and repeat step #3  Wallow in the disappointment that comes from having a secret spoiled.   Analysis There seems to be an event discrepancy between being logged in and being logged out:   that this is the root cause of the problem.


How to read in words from file into a string

for a lab i am working on, we are supposed to read in words from a file and get the length of each, and then store it in an array. Would reading in each word into a string and then storing the length in the array be the best way of going about this? And if so, could someone give me a pointer on how to do this? I am a bit lost..  Thanks!


I have seen many examples of how to render sprites from a spritesheet but I havent grasped why it is the most common way of dealing with sprites in 2d games.  I have started out with 2d sprite rendering in the few demo applications I've made by dealing with each animation frame for any given sprite type as its own texture - and this collection of textures is stored in a dictionary. This seems to work for me, and suits my workflow pretty well, as I tend to make my animations as gif/mng files and then extract the frames to individual pngs.  Is there a noticeable performance advantage to rendering from a single sheet rather than from individual textures? With modern hardware that is capable of drawing millions of polygons to the screen a hundred times a second, does it even matter for my 2d games which just deal with a few dozen 50x100px rectangles?  The implementation details of loading a texture into graphics memory and displaying it in XNA seems pretty abstracted. All I know is that textures are bound to the graphics device when they are loaded, then during the game loop, the textures get rendered in batches. So it's not clear to me whether my choice affects performance.  I suspect that there are some very good reasons most 2d game developers seem to be using them, I just don't understand why.


What is the meaning of IND-CCA secure under standard model?

I notice that in many research papers (viz. "Universal hash proofs and a paradigm for adaptive chosen ciphertext secure public-key encryption" by Cramer and Shoup) the authors showed that their cryptosystem is IND-CCA secure under standard model. What does it mean? What does an adversary have access to in a challenger-adversary game?  Actually, my aim is to get a clear idea on IND-CCA secure under standard model. I am confused on the statemant like "The given public key cryptosystem is IND-CCA secure under Diffie-Hellman assumption ". Is this statemant means that this particuler cryptosystem is IND-CCA secure under standard model?


I bought a new MacBook Air and was able to connect to the internet at first but now it won't connect.  I have other devices as well as other computers on wifi but my Mac won't connect.  When I try and click on the wifi, it tells me that it can't be joined.  How can I troubleshoot?


Converting .multiple shapefiles into Image Pyramid?

I have multiple shapefiles, and I want to import them as image tiles.  How do I convert a shapefile into image format and then convert that single image file into an image pyramid such as that of OpenStreetMap (OSM)?  I have worked with GeoServer for backend and OpenLayers to render the map but now I am asking about converting my own custom shapefiles into OSM tile pyramid.


confused about sanitize_email after is_email

Assume I have checked an email using is_email and the result is true, should I sanitize with sanitize_email? if yes, then why?


How can I check if a directory exists in a Bash shell script?

What command can be used to check if a directory exists or not, within a Bash shell script?


How to check whether a file (from the list of file names) exist or not in Python?

I have a list of file names like   22.75_87.dat 22.75_87.25.dat 22.75_87.5.dat 22.75_87.75.dat 23_86.dat 23_86.25.dat 23_86.5.dat 23_86.75.dat 23_87.dat 23_87.25.dat 23_87.5.dat 23_87.75.dat 23.25_86.dat 23.25_86.25.dat 23.25_86.5.dat 23.25_86.75.dat 23.25_87.dat 23.25_87.25.dat 23.25_87.5.dat   and so on.  Out of these file names I only few files exist. I need to make folders exactly same as the exisitng file names only. How to do this?  I can generate the filenames, but have no idea how to proceed further.


Clean install of El Capitan on an older iMac?

I have an old iMac (Mid-2007 Core 2 Duo, A1225) that our workgroup is retiring. My colleague wants to use it for her son. I migrated all data to a new iMac, wiped the drive, and initiated reinstall from the recovery partition. After AppleID verification the iMac states El Capitan is "temporarily unavailable".  Apple help states to use Cmd-R to avoid having my AppleID associated with the computer. I can't progress to installation point without an AppleID sign-in. Apple help states to use Internet Recovery instead. This model apparently doesn't support Internet Recovery. I can't get any further. I am at a total loss. I've tried resetting everything that can be reset, a different AppleID, finding another identical computer running El Capitan to sign into and download El Capitan installer to verify that the macOS version is associated with the purchase history of the AppleID in use... this is utterly ridiculous. I have an identical 2010 model iMac at home that MY son uses as a Minecraft box. I acquired it used, wiped the drive, and did an install from recovery partition. I cannot understand why it worked then, but fails now. What am  I missing - or has Apple made changes such that it is now impossible to actually install this OS even on hardware that supports nothing higher?


Trouble solving two number theoretical problems

Suppose $k\in\mathbb N$ and suppose $2^k+1=u^2$ and $2^k-1=v^2$ for some $u,v\in\mathbb N$. I have to prove that the first case implies $k=3$ and the second case implies $k=1$. Also, for the second case it is hinted to use the fact (lemma) that if $n$ is odd, then $n^2\equiv1 \pmod 8$, but I suppose it could be used for the first one as well. My progress so far:     First question:      Suppose $u$ is even, then $u=2t$ for some $t\in\mathbb N$, thus $u^2=4t^2=2^k+1$. Notice that two divides the left hand side of the equation, therefore it also divides the right hand side. Since it divides $2^k$ for any $k\ge1$, it must also divide $1$, contradiction. So $u$ is odd and therefore $u^2\equiv1\pmod 8$. Thus there exists an $m\in\mathbb Z$ such that $u^2=8m+1=2^k +1$. Thus $2^k=8m$, therefore $k\ge3$.   I am stuck at this point, however. I suppose setting $k>3$ and finding a contradiction would be a possible method, but I do not know what $k>3$ actually has to offer to solve this problem. No other method I think of gets me anywhere, either. I guess I could try to show that $2^k+1$ cannot be a square for $k>3$. Perhaps I could use the fact that $u^2-2^k=1$ or that $\gcd(u^2,2^k)=1$.     Second question:      The same reasoning can be applied to show that $v$ has to be even. Therefore, according to the lemma proposed above, $2^k-1=v^2\equiv1\pmod 8$. This implies $2^k\equiv2\pmod 8$. For any $k\ge3$ there exists some $t\in \mathbb N$ such that $2^k=8t$, therefore $2^k\equiv0\pmod 8$, which leads to a contradiction. Checking for $k=1,2$ leads to the conclusion that $k=1$ is the only possibility.   I think I have actually figured out this proof while writing down the progress I already have made, but for the sake of completeness and to check it's correctness I will leave it here.


How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?

I've been playing around with code snippets which add meta data to admin searches.  The best snippet I've found was written by .  However, it appears to have 1, annoying bug when searching non-meta terms.   Here are some grabs from my local dev install. I've printed the 2 MySQL queries onto the screen.  View of the single CPT post I'm using to test    This is the code working as expected and allowing me to search meta data from admin    Unfortunately the code creates duplicates on non-meta matches, in this case on post title    A grab showing the post status, post type and post ancestors of dupes  !  Here is the code I'm running, it's basically the same as Stefano's, but with my crude attempts to make the query work.  /*  * Search custom fields from admin keyword searches  */  function rel_search_join( $join ) {     global $pagenow, $wpdb;     if ( is_admin() && $pagenow == 'edit.php' && $_GET['post_type'] == 'listings' && $_GET['s'] != '') {             $join .= 'LEFT JOIN ' . $wpdb->postmeta . ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';     }     echo '
JOIN: ';     print_r ( $join );     echo '
';     return $join; } add_filter('posts_join', 'rel_search_join' );  function rel_search_where( $where ) {     global $pagenow, $wpdb;     if ( is_admin() && $pagenow == 'edit.php' && $_GET['post_type']=='listings' && $_GET['s'] != '' ) {         $where = preg_replace( "/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/", "(".$wpdb->posts.".post_title LIKE $1) OR (".$wpdb->postmeta.".meta_value LIKE $1)", $where );         $where = str_replace( "OR wp_posts.post_status = 'pending'", "", $where );         $where = str_replace( "OR wp_posts.post_status = 'private'", "", $where );         $where = str_replace( "OR wp_posts.post_status = 'draft'", "", $where );         $where = str_replace( "OR wp_posts.post_status = 'future'", "", $where );     }     echo '
WHERE: ';     print_r ( $where );     echo '
';     return $where; } add_filter( 'posts_where', 'rel_search_where' );


I along with my family(total 4 members) will be travelling to India soon(from Dubai). We have total 3 laptops to take to India which we each use for our personal use. I want to know if I will be charged with custom duty.  PS: Since we are travelling as a family I fear that there may be any problems. We are 3 adults, so I want to be sure about the no duty for all of us three.


Rsync and take name/path changes into account

I maintain a large folder, and this folder is regularly rsync'ed to another folder far away.  Sometimes I change a name on my local folder, and then the next time I rsync to the remote folder the whole file needs to be sent, even though the only thing that needs to be sent really is the information that the filename has changed.  Is there any way to get rsync to figure out name/path changes?  I looked through here: , and couldn't find anything like that.


SQL Server 2000 Named Instance cannot connect remotely

To facilitate a migration I installed SQL Server 2000 Standard Edition and Service Pack 4 as a named instance on server with an existing instance of SQL Server 2008R2 RTM.  The issue I have is connecting to the named instance outside of the server itself.  This is what worked:   Connecting remotely while specifying the port number in the connection string (SERVER\INSTANCE,PORT) Connecting locally using just SERVER\INSTANCE   The SQL Server Browser service is enabled and running for SQL Server 2008R2. In the event log there is a warning from the browser service that states:    The configuration of the SQL instance *INSTANCE_NAME* is not valid.    I have been troubleshooting this issue for awhile and cannot find any solid information.  Thanks in advance for any help!


As we know, light travels in straight line in normal circumstances, but when exposed to gravity it bends. But does it actually bend? I actually mean to ask whether if we take light as wave creating itself at next point in space, it seems to be that it does not generate next field at a point that is not straight ahead of it, but actually the point that was straight ahead (at which it would generate next field) has shifted due to gravity. So isn't light moving straight in gravity?


this is part of the code. Here, I want to compare digits by xor. So it suppose to give "0111" but it gives "111" as result. How can I fix it? So it suppose to give "0111" but it gives "111" as result. How can I fix it?  1 and 1 = 0 1 and 0 = 1 0 and 1 = 1 0 and 0 = 0    #include<stdio.h> #include<stdlib.h> #include<math.h> int main()  {        int BinaryRepForDisk1=1101, BinaryRepForDisk2=1010, Disk3=0, xor1, xor2, power=0;      while(BinaryRepForDisk1!=0)     {         xor1=BinaryRepForDisk1%2;         xor2=BinaryRepForDisk2%2;          if(xor1==xor2)         {             Disk3=Disk3+pow(10,power)*0;             power++;         }          else         {             Disk3=Disk3+pow(10,power)*1;             power++;                 }             BinaryRepForDisk1=BinaryRepForDisk1/10;         BinaryRepForDisk2=BinaryRepForDisk2/10;     }        printf("%d",Disk3);        system("pause");     return 0; }


What is the best way to read A Dance with Dragons and A Feast for Crows?

The two books occur during the same time frame, but in different locations. My first read-through was in .   I am planning to reread the series in anticipation for "The Winds of Winter", and was wondering if anyone read the books in a different order that they particularly enjoyed? I've considered reading all of the chapters for each character in chronological order, has anyone tried that? Or possibly have a better suggestion?


Beer is made ___ yeast, water, hops, and malted barley

Which is the correct answer to fill in the gap in "Beer is made ____ yeast, water, hops and malted barley"?   of from with out of   I am leaning toward '2'. "Made from" can be used to describe a manufacturing process.    I originally liked '3', but I don't like it now. I would use '3' if I mentioned secondary ingredients, as in "This beer is made with raw apple cider."


Variance of the distribution of difference scores

Assume we have two dependent populations with variances $\sigma^2_{a}$ and $\sigma^2_{b}$ and we want to consider the distribution of difference scores for all dependent pairs. Typically the variance of the distribution of difference scores is defined as $\sigma^2_{D}$ = $\sigma^2_{a}$+$\sigma^2_{b}$-2cov(a,b).  But an equivalent form seems to be $\sigma^2_{D}$ = 2($\sigma^2_{a}$+$\sigma^2_{b}$-2$\sigma^2_{s}$), where $\sigma^2_{s}$ is the variance of the distribution of mean scores for the dependent pairs; i.e., the distribution of $(a_{i} + b_{i} )/2$.  Can you point me to a proof that this is the case?


What does static in front of nested interface mean?

I would think this is easily googleable question, but I found nothing. In the following code:  public class ParentClass {     public static interface InterfaceStatic {      }     public interface InterfaceNotStatic     {      } }   Can you describe the difference between InterfaceNotStatic and InterfaceStatic? I know what the same syntax means for nested classes, but since interfaces hold no value, the purpose of static here eludes me.


Adjoint Functors induce Natural Transformations

Let $L:\mathcal{C} \to  \mathcal{D}$ and $R:\mathcal{D} \to  \mathcal{C}$ to adjoint functors, therefore for each $X \in \mathcal{C}, Y \in \mathcal{D}$ we have natural bijections $$Hom_{\mathcal{D}}(L(X), Y) \cong Hom_{\mathcal{C}}(X, R(Y)) $$  My question is how to see that these induce natural transformation $\eta: id_{\mathcal{C}} \to RL$ (resp. $\epsilon: id_{\mathcal{D}} \to LR$)?  Here I don't see how to use the fact that $R$ and $L$ are adjoint to see that for arbitrary morphism $f: X \to X'$ in $\mathcal{C}$ following diagram commutates (therefore "natural transformation"):  $$ \require{AMScd} \begin{CD} X  @>{\eta_X}  >> RL(X)   \\ @VVfV  @VVRL(f)V   \\ X' @>{\eta_{X'}}>> RL(X')  \end{CD} $$


How do you tell when it's time to replace a cassette? Are there any specific wear patterns on the teeth to watch for or symptoms specific to a worn-out cassette?


Is the sentence "There is a large number of labourers who want to migrate to Japan for work." correct?

Possible Duplicate:             There is a large number of labourers who want to migrate to Japan for work.   I type this sentence in a word processor, and it reports an error that "is" should be "are" (subject-verb agreement).  I doubt this is a valid error. Could anyone confirm this?


Select by expression only for selected features using PyQGIS

I'm facing a nested problem using PyQGIS (for QGIS master, but it can be replicated in any version of QGIS 2). I have a vector layer with some selected features and with a QgsFeatureRequest I can easily loop only on the selected features: vl = iface.activeLayer() # get the list of selected ids  ids = vl.selectedFeatureIds()  # create the request with the selected ids request = QgsFeatureRequest() request.setFilterFids(ids)  # use only the selected features in getFeatures for i in vl.getFeatures(request):     print(i.attributes())  Then I build an expression based on a field of the attribute table and I can use QgsFeatureRequest() to filter only the features that match that expression: exp = ''' "Piper" = 1 ''' request = QgsFeatureRequest() request.setFilterExpression(exp)  for i in vl.getFeatures(request):     print(i.attributes())  but what if I want to filter with the same expression only the already selected features? So actually use both requests in the same getFeatures loop?


Position of text above a line in tikz and overlying of a line

I'm drawing this circle in tikz and as you can see the appearance of the $v_m$ on the xaxis and the yaxis are not visible and also the $V_me^{j\theta}$ is not aligned with the line. Note also that thought the arc have an angle of 50 just like the line's orientation but its not showing the right angle  Those are the commands that I'm using \documentclass[12pt]{article} \usepackage{tikz} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}{0.0, 0.30, 0.60} \usepackage{gensymb}  \begin{document}     \begin{tikzpicture}                  % Axis         \draw[thick,->,black] (-3,0)--(3,0) node[below] {$\Re$}; % x axis         \draw[thick,->,black] (0,-2.5)--(0,3) node[left] {$\Im$}; % y axis         %circle         \draw[black,thick] (0,0) circle (2.5cm);         %defining radius points         \node[black,below] at (2.6,0) {$V_m$};         \filldraw[black] (2.5,0) circle (2pt);         \node[black,below] at (0,2.6) {$V_m$};         \filldraw[black] (0,2.5) circle (2pt);                     \draw[ultra thick,->,lava] (0,0) -- (0,0 |- 45:2.5cm)node [black,midway,sloped,above](b1){$V_m\sin(\phi)$}; % UpOn x axis         \draw[ultra thick,->,myblue] (0,0) -- (45:2.5cm |- 0,0)node [black,midway,sloped,below](b){$V_m \cos (\phi)$}; % UpOn y axis         \draw[ultra thick,black,->,rotate=45] (0,0) -- (2.5,0)node [black,midway,sloped,above](b5){$V_me^{j\theta}$};          \draw[thick,black](50:2cm |- 0,0) arc (0:50:2);         \node[] at (20:1.25cm |-20:1.25cm ) {$\phi$};      \end{tikzpicture} \end{document}


Will I get a notification after my post ban will be removed?

I am currently banned from giving answers on Stack Overflow, and I want to know if there will be some kind of notification after the ban will get removed?


How to import a .sid Raster File in QGIS 2.6.0 On Linux Mint 17

I need some help importing MrSID Raster files in QGIS. I am running 2.6.0 on Linux Mint 17. After an internet search I have found a couple of resources that are perhaps outdated. The most promising is found here :    However when I attempted to follow the instructions my terminal and I could not find the file "libgdal-mrsid-src" on either the stable or unstable Ubuntu GIS repos. Has anyone had success or could lead me in the right direction?


QGIS Equivalent of MapInfo's 'Combine Objects using Column'

MapInfo has a function that takes a table, and creates a new table populated combines them by a specified value.  So, combining on the name field, and specifying that the Area field should be summed...  Name                  Area Ben's Field           100 Ben's Field           50 Tom's Field           25   Becomes  Name                  Area Ben's Field           150 Tom's Field           25   How can one achieve this in QGIS?


How to pass the multiple file values in next page using AJAX

Here i have two form fields one is text field, one more is file upload , now i want to do take the all field values and pass to next page through AJAX,Here text box value is passing but file upload value is not passing i am getting error like undefined undefined, How to do this one      console.log(result);   i am getting answer like this       Array (     [Price_unit] => Array         (             [0] => 4000000             [1] => 8000000         )      [floor_plan] => Array         (             [0] => undefined         )       )     $(document).ready(function () {   $("#btn-submit").click(function (){     var formData = new FormData($('#residential')[0]);     formData.append('floor_plan[]', $('input[type=file]')[0].files[0]);      $.ajax({       url: "admin/test.php",        type: "POST",                 data: formData,        contentType: false,            cache: false,                    processData:false,               success: function(result)          {         console.log(result);        }     });     }); });   <form id="residential">

           Price              *
           <input type="text" class="form-control" placeholder="" name="Price_unit[]" value="4000000" required="" data-msg-required="Please Enter Price" aria-required="true">

           Floor Plan              *
           <input type="file" class="" placeholder="" name="floor_plan[]" value="luxury_apartments_and_property.jpg" required="" data-msg-required="Please Select Floor Plan" aria-required="true">

           Price              *
           <input type="text" class="form-control" placeholder="" name="Price_unit[]" value="8000000" required="" data-msg-required="Please Enter Price" aria-required="true">

           Floor Plan              *
           <input type="file" class="" placeholder="" name="floor_plan[]" value="6.jpg" required="" data-msg-required="Please Select Floor Plan" aria-required="true">

    <input type="button" value="SUBMIT" id="btn-submit"> </form>        test.php    <?php print_r($_POST); ?>


Every executable I read starts with header the MZ

I was initially trying to create a program to distinguish between DOS(16-bit) and Windows(32/64-bit) executables.  I read in some other answer that a executable can be classified based on their first two bytes. (MZ/...)  But when I manually went and compared a few executables (both 16 and (32/64 bit)), I found that they all started with MZ..  Is there any reason for it or am I doing something wrong?  The 16-bit executables were written by me in assembly->compiled using TASM and the 32/64 bit executables were from the system files of my computer C:\Windows\System32  Is there any other more accurate way to distinguish an executable?


bash: start multiple chained commands in background

I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do:  forloop {   //this part is actually written in perl   //call command sequence   print `touch .file1.lock; cp bigfile1 /destination; rm .file1.lock;`; }   The part between backticks (``) spawns a new shell and executes the commands in succession. The thing is, control to the original program returns only after the last command has been executed. I would like to execute the whole statement in background (I'm not expecting any output/return values) and I would like the loop to continue running.  The calling program (the one that has the loop) would not end until all the spawned shells finish.  I could use threads in perl to spawn different threads which call different shells, but it seems an overkill...  Can I start a shell, give it a set of commands and tell it to go to the background?