According to  i've tryied the commands below. I've tryied also apt-get -f install but it also doesn't work. Can someone help me? I'm a kind of newbie at ubuntu/linux.  Thank you  :~# uname -r 4.4.0-79-generic :~# dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic linux-headers-4.4.0-65 linux-headers-4.4.0-65-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-headers-4.4.0-78 linux-headers-4.4.0-78-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-image-4.4.0-62-generic linux-image-4.4.0-65-generic linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic linux-image-4.4.0-75-generic linux-image-4.4.0-78-generic :~# dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  linux-image-extra-4.4.0-62-generic : Depends: linux-image-4.4.0-62-generic but it is not going to be installed  linux-image-extra-4.4.0-65-generic : Depends: linux-image-4.4.0-65-generic but it is not going to be installed  linux-image-extra-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic but it is not going to be installed  linux-image-extra-4.4.0-70-generic : Depends: linux-image-4.4.0-70-generic but it is not going to be installed  linux-image-extra-4.4.0-71-generic : Depends: linux-image-4.4.0-71-generic but it is not going to be installed  linux-image-extra-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed  linux-image-extra-4.4.0-75-generic : Depends: linux-image-4.4.0-75-generic but it is not going to be installed  linux-image-extra-4.4.0-78-generic : Depends: linux-image-4.4.0-78-generic but it is not going to be installed  linux-image-extra-4.4.0-83-generic : Depends: linux-image-4.4.0-83-generic but it is not going to be installed  linux-image-generic : Depends: linux-image-4.4.0-83-generic but it is not going to be installed                        Recommends: thermald but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


If a journal requires "Article Processing fee" does that make it a predatory journal?

If a journal take  then does that mean the journal is ? or there are some other criteria to tell a journal as predatory?


Here is my code  mysql_connect('localhost', 'root', 'password'); mysql_select_db('db'); mysql_query("INSERT INTO metabase(url, title, image, description) VALUES('http://www.imgur.com/', '$title', '$image', '$descr')") or die();   It does not show any error but the values are not inserted in database. My table name is metabase. url, title, images are varchar(255) and description text. This is the error  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's visual storytelling community. Explore, share, and discuss the best visual sto' at line 1   This is the description  The Internet's visual storytelling community. Explore, share, and discuss the best visual stories the Internet has to offer.   So it is because of ' how do i correct it?


Where does Quicktime store its screen recordings?

I was recording my screen whilst giving a presentation. Instead of stopping the recording cleanly I closed the lid of my laptop. Later, when I opened it again, the recording had stopped, but there was no sign of the resulting file. Can anyone tell me where the recording may be stored on disk so I can recover it?


Blender's rendered useless as I can't access the toolbar and options menu. The cursor also selects things that are above it, for the example, on the side if I want to select the Camera, I'd have to click on the lamp.  I've tried running it in compatibility mode and playing with the window settings to a degree.  Any help would be greatly appreciated


The concept seems simple enough. You can tell someone something without speaking out loud- You just implant the thoughts in their mind, so to speak. But can you only "talk" with telepathy, or does it also allow you to listen?  Example: There are two people. Only one of them has telepathy. This person tells the other something telepathically. Can the conversation continue telepathically? Can the telepath 'hear' the reaction as easily as the other person hears the original comment? Or do both people need telepathy for it to be an actual conversation?


Showing for $g\in C^\infty$ that $g^{(n)}(0)=0$ given a vanishing property

Given an infinitely differentiable function $g: \mathbb{R} \rightarrow \mathbb{R}$ with the property that for every index $n$ there are positive numbers $c_{n}$ and $\delta_{n}$ such that $$|g(x)| \leq c_{n}|x|^{n} \quad      \text{if}     \quad |x|< \delta_{n}$$ Show that for each natural number $n,g^{(n)}(0)=0$ My attempt: By taking $x=\frac{1}{k}$ itself, we obtain $$\left|\frac{g(\frac{1}{k})}{\frac{1}{k}}\right| \leq  \frac{c_n}{k^{n-1}}$$ whenever $1/k < \delta_n,~n \geq2$. Now Let $k \rightarrow \infty $  to get $g'(0)=0$. But what about higher derivatives of $g$ at $0$?


I am trying to get information on how to reset the USB port on a MacBook Pro using terminal's command line.  I use the USB port to access a network device via a serial port with an ioread GUC232A to conduct automation.  When the script is done, I have to physically disconnect and re-connect the USB<->Serial adapter in order to free the MacBook USB port for a subsequent automation run.  As you can see, this is not workable.  I've looked at the following solution but it does not work very reliably and frankly, I'm not too keen on unloading and reloading drivers.  sudo kextunload IOUSBMassStorageClass.kext sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext   I could use a single port terminal server from Lantronix to access the terminal server via SSH, which is in turn connected via RS232 - But this solution is not on the table at this point.  Any suggestions on a USB to Ethernet Terminal server, where the USB port will act as a console to access the networking device would be appreciated.


Java.lang.NullPointerException on a null object reference

This is my error     Attempt to invoke virtual method 'android.content.SharedPreferences   android.content.Context.getSharedPreferences(java.lang.String, int)'   on a null object reference   Preferences class  public class SessionManager {      public static final String PREF_NAME = "LoginPref";     public static final String KEY_TOKEN = "token";       public static void saveSetting(Context mContext, String mKey, String mValue) {         SharedPreferences mSharedPreferences = mContext.getSharedPreferences(PREF_NAME,0);//Error on this line         SharedPreferences.Editor editor = mSharedPreferences.edit();         editor.putString(mKey, mValue);         editor.commit();     }      public static String getSetting(Context mContext, String mKey, String mDefValue) {         SharedPreferences mSharedPreferences = mContext.getSharedPreferences(PREF_NAME,0);         return mSharedPreferences.getString(mKey, mDefValue);     }      public static String getToken(Context mContext) {         return getSetting(mContext, KEY_TOKEN, null);     }      public static void setToken(Context mContext, String mValue) {         saveSetting(mContext, KEY_TOKEN, mValue); //Error on this line      }     public static void logoutUser(Context mContext){         // Clearing all data from Shared Preferences         SharedPreferences mSharedPreferences = mContext.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);         SharedPreferences.Editor editor = mSharedPreferences.edit();         editor.clear();         editor.commit();     }   }   Inside the Fragment  public void onPageFinished(WebView view, String url) {              if(getCookie()!= null){                  SessionManager.setToken(getContext(),getCookie()); // Error on this line                 Fragment fragment = new MinhasInfoFragment();                 FragmentManager fragmentManager = getFragmentManager();                 FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();                 fragmentTransaction.replace(R.id.frame_content, fragment);                 fragmentTransaction.commit();                   Log.d(TAG, "Value " + getCookie());             }         }  public static String getCookie(){          String CookieValue = null;          CookieManager cookieManager = CookieManager.getInstance();         String cookies = cookieManager.getCookie(url);         String[] temp = cookies.split(";");         if (temp == null) {             return CookieValue;          }else if(temp != null){             for (String ar1 : temp ){                 if(ar1.contains("xxxx")){                     String[] temp1=ar1.split("=");                     CookieValue = temp1[1];                 }             }         }          return CookieValue;     }


Unable to compare the JSON String Response in the “if” Statement in android using volley library

I am getting JSON String Response in a string variable. I want to compare it in the “if” statement. But program cannot go to the “if” statement. But it shows the response in the TextView.  Here is my if statement    if (myObjAsString == "WRONG_PASS_ERROR") { //USER_EXISTS_ERROR //WRONG_PASS_ERROR                                  Toast.makeText(MainActivity.this, "Login Invalid", Toast.LENGTH_LONG).show();                             }   Here is my code.  String url = "http://someexample.com/signin.php";         StringRequest postRequest = new StringRequest(Request.Method.POST, url,                 new Response.Listener<String>() {                     @Override                     public void onResponse(String response) {                         try {                               JSONObject jsonResponse = new JSONObject(response);                             String myObjAsString = jsonResponse.getString("type");                              if (myObjAsString == "WRONG_PASS_ERROR") { //USER_EXISTS_ERROR //WRONG_PASS_ERROR                                  Toast.makeText(MainActivity.this, "Login Invalid", Toast.LENGTH_LONG).show();                             }                              mTV.setText(myObjAsString);                          } catch (JSONException e) {                             e.printStackTrace();                         }                     }                 },                 new Response.ErrorListener() {                     @Override                     public void onErrorResponse(VolleyError error) {                         error.printStackTrace();                     }                 }         ) {             @Override             protected Map<String, String> getParams() {                 Map<String, String> params = new HashMap<>();                 // the POST parameters:                 params.put("email", "example@outlook.com");                 params.put("password", "*****");                 return params;             }         };         Volley.newRequestQueue(this).add(postRequest);


Split a line from point but with a certain distance

I am using ArcGIS 10.2. I need some suggestion about this problem, maybe there is a certain tool, but I think no. I think some python code... but I do not know from where to start  :(  I have two shapefile layers: some polylines with points intersected. So, what I want to do automatically is to SPLIT those lines from a fixed measure (for example 10 meters) before and after this Point placed on the polyline.  The Points are on the line.  For example, if I have a 100 meters length polyline, and the point is situated in the middle, I want it split on the 40th and 60th meter.


If $a_{n+1}=\cos(a_n)$ for $n\ge0$ and $a_0 \in [-\pi/2,\pi/2]$, find $\lim_{n \to \infty}a_n$ if it exists

Let $a_{n+1}=\cos(a_n)$ for $n\ge0$ and $a_0 \in [0,\pi/2]$  Find $\lim_{n \to \infty}a_n$ if it exists.  I drew some sketches and it does seem like the limit exists, it's probably $x$ such that $\cos(x)=x$  I have no idea how to go about solving this, hints would really be appreciated.  Thank you for your time!


Java - Setters and Inheritance - Why is my dailyFee parameter not setting properly?

Good evening all!  The assignments are getting confusing! Again, not asking for a straight up answer but rather a pointer in the right direction so any help is appreciated.  Edit 2: Here is the exercise in question if it helps clear anything up:    I'm wondering how I can set the dailyFee variable in the CarRental.java file using the UseCarRental.java file. The if statements from CarRental.java don't seem to be working properly (inputting size doesn't set the dailyFee variable). Additionally, if I enter "l" for the size, it's not prompting to LuxuryCarRental.java. Here is the code:  CarRental.java  import javax.swing.JOptionPane;  public class CarRental  { private String name; private String zipCode; private String size; private double dailyFee; private int rentalDays; private double totalFee;  public CarRental(String name, String zipCode, String size, double dailyFee, int rentalDays, double totalFee) {     this.name = name;     this.zipCode = zipCode;     this.size = size;     if (size == "e")     {         this.dailyFee = 29.99;     }     else if (size == "m")     {         this.dailyFee = 38.99;     }     else if (size == "f")     {         this.dailyFee = 43.50;     }     this.dailyFee = dailyFee;     this.rentalDays = rentalDays;     totalFee = dailyFee * rentalDays; }  public CarRental(){}  public void display() {     JOptionPane.showMessageDialog(null, "Luxury car for " + name + " from zip code " + zipCode + "\n"             + "Type = " + size + "\n"             + "Daily Fee = " + dailyFee + "\n"             + "Days = " + rentalDays + "\n"             + "Your rental is $" + totalFee); }  //includes getters and setters but I didn't include them in this post   LuxuryCarRental.java  import javax.swing.JOptionPane;  public class LuxuryCarRental extends CarRental {     public LuxuryCarRental(String name, String zipCode, String size, double dailyFee, int rentalDays, double totalFee, String includeChauffeur)     {         super(name, zipCode, size, dailyFee, rentalDays, totalFee);         if (size == "l")         {             dailyFee = 79.99;             includeChauffeur = JOptionPane.showInputDialog(null, "Include chauffeur? Y/N");             if (includeChauffeur == "Y")             {                 totalFee = totalFee + 200;             }         }     } }   UseCarRental.java (incomplete)  import javax.swing.JOptionPane;  public class UseCarRental  {      public static void main(String[] args)      {         CarRental userInfo = new CarRental();         userInfo.setName(JOptionPane.showInputDialog("Enter name"));         userInfo.setZipCode(JOptionPane.showInputDialog("Enter zip code"));         userInfo.setSize(JOptionPane.showInputDialog("Enter type of car" + "\n" + "e - economy" + "\n" + "m - midsize" + "\n" + "f - full" + "\n" + "l - luxury"));         userInfo.setRentalDays(Integer.parseInt(JOptionPane.showInputDialog("Enter days to rent")));           System.out.println(userInfo.getDailyFee());          userInfo.display();      } }   As you can see, I'm completely stumped as to how I can use setDailyFee in UseCarRental.java to set the dailyFee variable, which is need to make the totalFee calculation.  Edit: Being asked to explain why this is not a duplicate question. I fixed the string comparison issue (not updated here yet) but the core issue is still setters and inheritance.  Edit 3: Well I guess the question of the century (for clarity's sake) is: how do I set dailyFee value? I thought that it would be set by the if statement in CarRental.java once size is entered?


After installing Ubuntu 13.10 mouse is blinking and sometimes it blinks so fast that I can't see where it is, especially on web pages. It also happens even if I don't work anything on computer.  During setup of installation I pointed /home to previous 13.04 Ubuntu, maybe some settings are obsolete. What could be problem here? I have NVidia 525M graphic card.


Probability, Random Walk, Distance from Origin after N steps in 2 and 3 dimensions

I am looking for a formula of the distance from Origin after N equal steps in random directions in a 2 or 3 dimensional spaces. Can someone help me with a reference to a book, article or any publication dealing with this subject? Thanks!


Seeking SF story read in 1990s about teenage Lunar colonist boy visiting undersea aqua farming colony.

I have put some additional details below, but as a quick note this is not Deep Range by Arthur C. Clark. However, it not only shares many of the same types of undersea aqua culture/farming with Deep Range, as I recall the story had a 'Clarkesian' feel to it. Unfortunately reviewing Clarke's bibliograpy and having read most of the novels/novellas lsited I could not find one that fit. That includes Cradle which also has some aquatic themes. Nor is it Dolphin Island, The Hydronauts nor any of the Tom Swift stories. I am pretty sure it was at least novella length if not a full novel.   A teenage Lunar colonist boy visits Earth with his diplomat father during a bid for Lunar independence. In one memorable early scene at the hotel/resort/ambassadorial complex at which they are staying he is at the pool (which he does frequently because it helps relieve the gravity pull which is hard for him).  He watches with some minor disbelieve at the practice of tourists putting oil on themselves and baking in the sun.  However, he then notices a teenage girl who is as pale as a moonbeam and can swim with the ease and grace of porpoise. The girl turns out to be an aqua farming colonist whose parent is also at the (UN?) gathering to consider the Lunar independence proposal.    The two hit it off and the boy is allowed to go with the girl to her undersea home. In one early scene within the undersea colony dome the boy is scared when he finds cannot speak without squeaking. It was an oxy-helium mix (vs. nitrogen) used to prevent the bends (a later plot point). The undersea colonists allow the boy to help with various tasks around the colony. He gets stung by I believe either a manta ray or jellyfish which becomes a plot point later on.  At one point there is what appears to be sabotage to the 'fish fence' which shuts off the walls of bubbles in the water keeping the fish penned in. The boy is accused of being the saboteur and is put on trial. In an interesting judicial form defendants and witnesses are asked to swear in using either a globe or a silver/platinum orb representing the moon. Towards the end of the book there is a climactic escape scene during the voting on the Lunar independence. The boy does an untimed ascent out of the colony (leading to the bends mentioned earlier).    While the age of the protagonists (older teens) and lack of overt sex/violence made it feel like a young adult story I don't think it was meant as one. But, could be wrong.


Does magical ammunition stack with a magical weapon?

One of my players has a +1 shortbow, and recently found some +1 arrows. If he fires a +1 arrow from a +1 bow, will the bonus to attack and damage be +1, or +2?


Using a 60W charger to charge an iphone 11?

I have a 60W charger that I've been using to charge my iPhone 11. Based on my Googling, it seems this won't harm the phone. Has anyone had issues with using such a high wattage power adapter for iphones?


How to export tiny icons in Illustrator to PNG?

I know this question has been asked many times but I still can't find a solution.  I'm redesigning icons that are going to be used on a web application. The former icons were placed on a PNG sprites sheet and the icons were 16x16px.  On Illustrator, I redesigned the icons with the 16x16px size but when I export them, they are blurry.  They are already blurry on my PNG file after the export.      I don't really know what to do. I tried the export for devices menu, everything... I even tried making a screenshot of my Illustrator artboard at 100% but then you lose transparency.


Prevent people from downloading / copying / making a copy of data in Google doc

Is there a way to share a Google Document in view-only mode with someone but prevent them from downloading it, copying and pasting the data, printing it, or going to File > Make a copy?  I understand that if they really wanted to they could also take a screen shot and then OCR the image, but that's a little bit more technical, so I'm not sorry worried about people doing that.


Existence of a regular uncountable $\aleph_{\alpha}$ without $\mathsf{AC}$

Set theory (Jech) $\text{p.}\;27:$     It is an open problem whether one can prove without the axiom of choice that there exists a regular uncountable $\aleph_{\alpha}\;($the informed guess is that one cannot$)$.   My question is on the remark in brackets, in particular the use of the word informed: could someone briefly expand on the reasons for believing that this is likely to be impossible?


Have a table-cell spanning entire table with automatic width

I'm formatting a table, and I the bottom row has to have the "table notes". I'm not allowed to use the threeparttable package (or any other special package). I know I can use something like  \multicolumn{ncols}{p{10cm}}{Contents}   or  \multicolumn{ncols}{p{0.8\textwidth}}{Contents}   but I want the width of this cell to be computed automatically: it should be the width of the table, so something like \tablewidth (but that one doesn't exist).  Is this possible? If yes, how? Thanks in advance.


How to format a USB drive showing unallocated space?

I'm having trouble formatting my 16GB USB stick. I've gone through most of the previous questions on this topic, but I'm not able to do it. Badblocks showed no error, Gparted is unable to create partition table, and the Disks tool showing unallocated space in front of Contents.   I just want to format it as I have no important data in it.


Stop setInterval() after a Specific Class Becomes Visible

Currently what I'm trying to do is have a function that looks for if the #discountbox element is visible then clone that #discountbox element and place it after .pricebox. Right now what's happening is that it is placing it after .pricebox and cloning it indefinitely. How can I get the setInterval to stop after it finds #discountbox and clones it once? HTML
       You get $5 Off

            $20.50
  Javascript jQuery(document).ready(addDiscountsummary);  function addDiscountsummary () { if($('#discountbox').is(':visible')){  //if the container is visible on the page       $("#discountbox").clone().insertAfter("#modal span.price-box"); //insert add to cart button after view contents buttons          } else {       setInterval(addDiscountsummary, 1000); //check every 1000 ms     } }


I am using Google Apps for Domains to handle my personal email. I have the following filter configured:  Matches: to:(username@example.com) Do this: Skip Inbox, Mark as read, Delete it   Here is the exported filter XML:  <entry>     <category term='filter'></category>     <title>Mail Filter</title>     <id>tag:mail.google.com,2008:filter:1348992826412</id>     <updated>2012-09-30T08:16:38Z</updated>     <content></content>     <apps:property name='to' value='username@example.com'/>     <apps:property name='shouldMarkAsRead' value='true'/>     <apps:property name='shouldArchive' value='true'/>     <apps:property name='shouldTrash' value='true'/> </entry>   Despite this rule, mail to the username@example.com address is not being matched by the filter. Here is one example headers of a mail that was not caught by the filter:  Delivered-To: username@example.com Received: by 10.49.35.178 with SMTP id i18csp10155qej;         Sun, 30 Sep 2012 02:09:09 -0700 (PDT) Received: by 10.68.225.68 with SMTP id ri4mr32446176pbc.115.1348996149371;         Sun, 30 Sep 2012 02:09:09 -0700 (PDT) Return-Path: <b730@mail.tbb.com.tw> Received: from mail.tbb.com.tw ([210.202.75.124])         by mx.google.com with SMTP id c5si10659paz.41.2012.09.30.02.09.07;         Sun, 30 Sep 2012 02:09:08 -0700 (PDT) Received-SPF: neutral (google.com: 210.202.75.124 is neither permitted nor denied by best guess record for domain of b730@mail.tbb.com.tw) client-ip=210.202.75.124; Authentication-Results: mx.google.com; spf=neutral (google.com: 210.202.75.124 is neither permitted nor denied by best guess record for domain of b730@mail.tbb.com.tw) smtp.mail=b730@mail.tbb.com.tw Received: By OpenMail Mailer;Sun, 30 Sep 2012 16:05:41 +0800 (CST) From: "Loan Financial Private Company" <b730@mail.tbb.com.tw> Reply-To: micheajoh@w.cn Subject: Loan Financial Private Company Message-ID: <1348992338.5369.b730@mail.tbb.com.tw> Date: Sun, 30 Sep 2012 16:05:41 +0800 (CST) MIME-Version: 1.0 Return-Path: b730@mail.tbb.com.tw Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: quoted-printable   Note that I have tens of other similar filters that do properly match mail per address. It is only this one address / filter combination that is failing to match mail.  To proactively address the obvious red herrings and ensure that the discussion remains focused: I am aware of the dangers of posting a live email address publicly. I am aware of Gmail's excellent spam filters. I am aware of the arguments against catch-all email addresses.


Neighborhood and upper limit topology homework help

EDIT: This has been edited so please only take a look at the 2nd question D.  I'm not very good with topology but I would like some advice on my homework and also if possible to verify if what I've done is correct. While I'm still very new to topology I would like some advice to help me figure out the correct answer to those I've gotten incorrect.  The first question. We let $X=\{1,2,3\}$ and a function $N$ on $X$ given by: $N(1)=\{\{1,2\},\{1,2,3\}\}$  $N(2)=\{\{2,3\},\{1,2,3\}\}$ and $N(3)=\{\{2,3\},\{1,2,3\}\}$  A) Prove that $N$ does not define a neighborhood topology on $X.$   My answer: Following from the 4th neighborhood axiom, $\{1\}$ is not contained in $\{2,3\}$ therefore $N$ does not define a neighborhood topology on $X.$  B) Add a minimal number of neighborhoods to the above definition $N$ to indeed obtain a neighborhood topology.  My answer: I make the following changes to obtain a neighborhood topology:  $N(1)=\{\{1,2\},\{1,3\},\{1,2,3\}\},\ N(2)=\{\{1,2\},\{2,3\},\{1,2,3\}\},\\  N(3)=\{\{1,3\},\{2,3\},\{1,2,3\}$  The second question:  Consider the upper limit topology:   $N(x)=\{N \subseteq \Bbb R\mid \exists a,b\in\Bbb R: x \in (a,b] \subseteq N\}$  A) Prove that $N$ is a neighborhood topology on $\Bbb R$ (real numbers)  My answer: I assume this is just where I show the 4 definitions that define a Neighborhood and rewrite it to fit this topology.  B) What does a convergence of a sequence in this topology mean?  My answer: If $X_n$ converges to $x$ in this topology then it means:  $ \forall a,b \in \mathbb{R}: a<x \le b: \exists n_0 \in \mathbb{N}: \forall n>n_0: X_n \in (a,b]$  Which basically means that if $X_n$ converges in this topology then it converges in the ordinary topology.  C) Prove or disprove that $1/n$ converges to $0$ in this topology.   My answer: It does not converge because if we have $(-1,0],$ it contains $0$ but it does not contain any points of $1/n.$  D) If ${a_n}$ and ${b_n}$ converge, which of the following limit rules are still valid?  1: $\lim_{n \to \infty}(a_n+b_n)=\lim_{n \to \infty}(a_n)+\lim_{n \to \infty}(b_n)$  2: $\lim_{n \to \infty}(ca_n)=c \lim_{n \to \infty}(a_n)$  3: $\lim_{n \to \infty}(a_n b_n)=\lim_{n \to \infty}(a_n) \lim_{n \to \infty}(b_n)$  4: $\lim_{n \to \infty} \frac{a_n}{b_n}= \frac{\lim_{n \to \infty}(a_n)}{\lim_{n \to \infty}(b_n)}$  5: The existence of $\overline{n}$ with $a_n \le b_n$ for all $n \ge \overline{n}$ implies $\lim_{n \to \infty}(a_n) \le \lim_{n \to \infty}(b_n)$  My answer: I apply 3 "lemmas" which states the following:  1: If $x_n$ converges to x in the upper limit topology then it converges in the ordinary topology.  2: $|x_n > x|=\infty$ implies that $x_n$ does not converge in the upper limit topology  3: $|x_n > x|<\infty$ and $x_n$ converges in the ordinary topology then it also converges in upper limit topology.  This means the following for each rule:  1: This one is still valid and it follows from the 3rd lemma.  2: This one is also valid following from the 3rd lemma however only for $c>0$  3: I don't think this one is valid following the 2nd lemma unless both are greater than 0.  4: I can rewrite $\frac{1}{b_n}=c$. If 3 is false or true then the same applies to this one.  5: I honestly have no idea how to do this so I would like a hint.  Any help or verification is appreciated.


Compare these two RedirectMatch's. The first doesn't work: RedirectMatch 302 ^/redirect\.php[?]page=(.+)$ http://somewhereelse.com/$1  Versus this, which will redirect to http://somewhereelse.com/?page=wherever: RedirectMatch 302 ^/redirect\.php([?]page=.+)?$ http://somewhereelse.com/$1  Does RedirectMatch only match the URI and not the query string? Apache's documentation is a bit vague in this area. What I'm trying to do is extract the page query parameter and redirect to another site using it. Is that possible with RedirectMatch or do I have to use RewriteCond + RewriteRule?


Can I use a Cat 5e cable (inside walls), a Cat6 insert in the wall and a cat 6 cable to connect to the computer?

I only have cat6 wall insert but I'm not sure if the cat5e cable inside the wall will be compatible with it. I'd rather not have to replace the cable inside the wall.


Images forced with [!htb] show up at end of chapter

My images show up at the end of the chapter (only happens in one chapter), even though I use strict float parameters [!htpb] or only [h!]. I would like them to show up in the text on the (almost) precise position where I've placed them. (and yes, I have used \usepackage{graphicx} and \usepackage{float}). Example of image input: \begin{figure}[!htb] \centering \includegraphics[width=0.5\textwidth]{figures/Part II/II-1_vitruvius.jpg} \caption{Vitruvius' principles} \label{fig:II.1_Vitruvius} \end{figure}  Weird thing is that no errors show up. Does anybody know how to fix it? Thanks in advance.


I have a Macbook Pro Retina 13" Mid 2014, with a 500GB disk.   I never have to work with large files such as movie editing or anything like that nor do I use time machine backups. After upgrading to Catalina 10.15.4 I noticed my disk shows ~200GB of used space which I have no idea where is it coming from.  Rebooting doesn't help and even the system information tool is not giving information on what's taking up that much space.  In the image below, the other sections (Applications, Documents, etc) all contain the correct sizes that I expect from the stuff that I use.


How do we refer to the act of resembling the truth, regardless if it is indeed the truth?  Some context: suppose you are watching a film and the story bears a striking resemblance to "real life". Perhaps you remember similar events from your own background or the story has a strong internal coherence. So you feel that the story could be true, even though you know it is fictional. Or, as the legend has it, when Michelangelo finished his "Pietà" and the sculpture seemed so "real" and "natural" to him, that he was amazed that the sculpture couldn't talk. One last example: you hear the promises of a politician in election campaign and he seems to be telling the truth, but of course you have no way to figure out, beforehand, if he is being honest or not.  The word "likelihood" comes to mind, but this word suggests some kind of numerical (even statistical) evaluation, which is akin to "probability". The word I am looking for describes the feeling you get, which leads to a subjective "binary" judgement (either it resembles the truth or not).  In Portuguese, such word is "verossimilhança" (from Latin verum, truth + similis, similar).


I have read about   with some commentators suggesting that hypothesis testing should not be used. Some commentators suggest that confidence intervals should be used instead.    What is the difference between confidence intervals and hypothesis testing? Explanation with reference and examples would be appreciated.


could anyone please explain to me the difference between these two belonging symbols (one with R in index $\in_R$)  and the other (without R in index $\in$)  I have found them in a scientific paper related to cryptographic field.


Center absolutely positioned child element

I need to horizontally center the child element of an inline block. The issue is that the child sub menu is variable width and can be wider than its parent. My initial solution was to set the child element a left & right of -50px but this is not really a variable width and instead statically sets it to be 100px wider than its parent.    .main-menu {     text-align: left;     margin: 0;     padding: 0;     font-size: 0px;     font-size: 0rem; } .main-menu li {     font-size: 18px;     font-size: 1.8rem;     line-height: 1em;     list-style-type: none;     text-align: center;     display: inline-block;     zoom: 1;     padding: 0 25px;     position: relative; } li > a {     display: inline-block;     zoom: 1;     padding: 21px 0 19px;     font-family: "Open Sans", sans-serif;     font-weight: 400;     color: #282828;     font-size: 16px;     font-size: 1.6rem;     line-height: 1.2em;     text-decoration: none;     -webkit-transition: all .25s ease-in-out, background-image 0s, background-position 0s;     transition: all .25s ease-in-out, background-image 0s, background-position 0s; } .sub-menu {     position: absolute;     top: 100%;     left: -50px;     right: -50px;     max-width: 250px;     margin-left: auto;     margin-right: auto;     margin-bottom: 0;     min-width: 150px;     background-color: white;     text-align: left;     padding: 17px 0;     box-shadow: 0 2px 5px #dcdcdc inset;     border-top: 18px solid #ffdd00;   }

Solutions

Solutions

How It Works

Why Use It

Products


View photos in Windows 10 withtout border

I would like to view photos in Windows 10. Unfortunately, when I double click on a photo it is displayed in a window of the Photos app with a black border. However, I don't want to waste space for a borer but I only want to see my photo as large as possible.  How can I get rid of the border?  (Switching back and forth between full screen and window mode is annoying because of the additional key strokes and therefore not an option for me.)


Bootable USB doesn't show as boot option

I'm using a Dell Inspiron 5590, it came with Windows, I want to install Ubuntu instead. I downloaded the 18.04.5 image file and made a bootable USB device with Rufus following the . The problem is, when booting, the USB device doesn't show in the Boot Options. What I've tried:  Tested in USB ports 3.0 and 2.0 Tested flash drive in another notebook (It works) Tested with and without Secure Boot. Tried two "builds" of the bootable USB: Partition scheme: MBR + Target system: BIOS or UEFI AND with Partition scheme: GPT + Target system: UEFI (non CSM).  Also:  I'm not looking to dual boot this, just linux is fine. USB Boot Support is enabled I didn't tried with Legacy Boot, because the BIOS says that this mode is not supported in the platform. Contacted Dell before purchase to be sure the hardware was compatible with Linux. (Also contacted the Dell support for help, useless in this case) BIOS is up to date.  What else can I try in order to have my bootable USB to be recognized by the Boot Manager?


Non-blocking Read from anonymous pipes on Windows C++

I want to implement non-blocking reading and writing from Windows anonymous pipe (multi-thread). Something like pipe2() or fcntl(...,F_SETFL,O_NONBLOCK) from Linux. I've tried ioctlsocket(fd[0], FIONBIO, &flag); where fd[0] is pipe read descriptor and flag>0, but, of course it isn't working because it isn't socket (Windows Sockets Error Code: 10038). Pipe is _pipe from <io.h>; threads are from <pthread.h> if it is important. Is there is any simple way to do it without going to Linux?


jQuery code won't apply to dynamic content even with the ajaxComplete() function. Any suggestions?

I have a spreadsheet of data on my website, which is loaded in from a database, and the result looks something like this:

     <button>Edit</button>	     <button>Delete</button>	     First Name	     Last Name	     ...

   More content (rows) appear as the user scrolls down, and this is done with Ajax, like so:  $(document).ready(function(){ /*Get more clients on scroll*/ var clientCount = 33; $(window).scroll(function(){     var leftToBottom = $(document).height() - $(window).height() - $(window).scrollTop();     if( leftToBottom == 0) {         clientCount = clientCount + 11;         $("#tbody").load("loadClients.php", {             clientNewCount : clientCount         });         } }); });   However, each row of data has something like an edit button which opens a modal, a delete button, a multiple-delete-selection, etc. These are all manipulated through jQuery/JS.  This question gave me an idea of what to do, but I just couldn't apply it to my code:   Someone suggested using the ajaxComplete() function, but this means the jQuery code will only work after the ajax content has been completed (duh).  Aside from using the $(document).ajaxComplete() function, what can I do to apply my jQuery code to the new ajax content?  Problem is, the jQuery code won't work UNTIL the user scrolls down to get more content. So a user cannot edit, delete or select any data until they scroll down all the way to fetch the new content.  Pray, how can I apply the jQuery to both the content BEFORE the ajax call as well as AFTER the ajax call?  Currently I am including the jQuery script in both documents; the original document and the loaded-content. I'm sure this isn't the correct way to do it, but for now it is working.  P.S. the jQuery code contains many click events, preventDefaults, and other basic code to open and close modals.


Is optical image stabilization a necessary feature for any lens?

I am looking to buy a decent telephoto lens for my Nikon D3100. A 55-200mm Nikon lens costs almost Rs. 9000 ($144.67) and a Tamron 70-300mm lens costs almost $130 . The problem is that these lenses are without optical image stabilization (OIS), but other options with OIS cost almost 3 times of those without it.  How important it is to have OIS in a lens and what are the possible issues if it is not present?


I'm wondering if I've got the right strategy at all. There seems to be an awful lot of (admittedly fun) grinding and no visible end in sight to get to complete the story. How long, rough average, in hours, does it take to beat Disgaea?  Are the figures shown  believable? I'm doubtful for story mode...


Using a wi-fi and an ethernet connection at the same time thus having more bandwidth?

Is there a way on OSX or with a 3rd party software to use both a Wi-fi and an ethernet connection, thus having the sum of the connection speeds?  Or maybe making some applications connect to one connection and other apps connect to the other?    P.S. I don't want to bridge one connection over the other. P.P.S. Both are different connections with two different ISPs and both are paid for, there's no wifi stealing if you might ask.


YA Time travel/teleportation novel. Plot required using helmet (or other head gear)... but only for training. A young kid (less than sixteen?) finds he can either teleport or time travel (I don't exactly remember which one). He is given a helmet, and told that if he wears it, he will be able to travel wherever he thinks.  Later in the story, he is told he can actually do it whenever he wants, without requiring the helmet. The helmet was purely for training his mind.  The "gift" would eventually disappear as the person got older.  I remember reading this novel in my school library around eight years ago...


Algorithm of checking if the number is prime

Hello everyone!  I came to this algorithm on how to check if number is prime and probably it's fine for me but I want to find out if it can be improved  bool isPrime(int num) {     bool isPrime = 1;     if (num <= 0)     {         return 0;     }     if (num == 1)     {         return 0;     }     for (int i = 2; i <= sqrt(num); ++i)     {         if (num % i == 0)         {             isPrime = 0;         }     }      return isPrime; }   Thanks in advance


1 in 7 appleS becomeS green? or, 1 in 7 apple becomeS green? or, 1 in 7 appleS become green?

Which of the following is proper grammar usage?     1 in 7 apples becomes green   1 in 7 apple becomes green   1 in 7 apples become green


Find steam account associated with username in Paladins(Hirez)

So I met someone ingame, Paladins, and he was referring to me by my steam username, and as we were exchanging not so pleasant pleasantries I couldn't ask him. So, I guess it is possible to find steam account of a paladins player. How do I do that? Or it it is something else then I want to know how can he/she know it?


I got a laptop with pre-installed windows 8. I want to dual-boot Ubuntu on it. The problem is that my laptop has only one drive(no partition). How do i install Ubuntu without losing my pre-installed Windows and all the data stored. Is there any way to make partition without having the risk of losing the windows data.


Let $n$ be a 3-digit number. Prove $9\mid n$ iff the digits of $n$ sum to a multiple of 9.

I have convinced myself that this true, however I'm at a loss of where I should start with this proof. Looking at a similar proof with 3 instead of 9, I saw the use of the basis representation theorem, but I'm not 100% comfortable with that, so it was hard for me to follow. Is there a way to do this with mod?


Why is my script calling multiple functions?

I have a few sets of scripts that I've written to make setting up linux very simple. So I have made those scripts into separate functions instead and put it all in one script. I have numbers set so when the user inputs one of the numbers, it will call that function. However, when the user inputs one number, the script calls ALL the functions:  n=1 #note you need spaces between [ ] while [ $n == 1 ] do     echo "Base install=1"     echo "Mintrepos=2"     echo "Asusn13 driver=3"     echo "Install Standard openbox=4"     echo "Install Xfceopenbox=5"     echo "backing up standard open box config=6"     echo "backing up openboxfce=7"     echo     read choice     if [ "$choice"==1 ]     then         baseinstall     fi     if [ "$choice"==2 ]     then         linuxmintrepos     fi     if [ "$choice"==3 ]     then         asusn13driver     fi     if [ "$choice"==4 ]     then         standardopenbox     fi     if [ "$choice"==5 ]     then         xfceopenbox     fi     if [ "$choice"==6 ]     then         backupstandopenbox     fi     if [ "$choice"==7 ]     then         backupxfc4openbox     fi     echo "You installed: "     if [ "$choice"==1 ]     then         echo "baseinstall"     fi     if [ "$choice"==2 ]     then         echo "linuxmintrepos"     fi     if [ "$choice"==3 ]     then         echo asusn13driver     fi     if [ "$choice"==4 ]     then         echo "standardopenbox"     fi     if [ "$choice"==5 ]     then         echo "xfceopenbox"     fi     if [ "$choice"==6 ]     then         echo "backupstandopenbox"     fi     if [ "$choice"==7 ]     then         echo "backupxfc4openbox"         echo "If you would like to keep going, type in 1, if not, type in any other number"     read n     fi  done


Running two simultaneous animations on a model?

I am just looking for a broad answer to this question. I am more curious about the general information rather than the specific. Also, I tried to search for this, but I think it's hard to word it so you get the right question. Anyway:  One common thing I see in a lot of games is multiple animations on the same model.  i.e.  A character runs, but also raises his arms an shoots.  A character has a walking animation, but can also be carrying resources as he walks.  I am curious if the first model has a "run" animation and a "run while shooting" animation. Or if they have a "run" animation and a "shoot" animation and run them at the same time. Obviously the first is possible, but I am wondering how the second one is done.  Do they use two models for upper and lower body or is there a way to ignore certain parts of a model when animating?  I know this depends a lot on the model, the programmer, language and the way the animation is done.   But broadly, if you were making a model with the intent of it doing multiple animations at once, what would be the best way to go about it?  Again, not after detailed specifics, just an overview :)  Thanks!


Is there a way in Python to override a class method at instance level? For example:  class Dog:     def bark(self):         print "WOOF"  boby = Dog() boby.bark() # WOOF # METHOD OVERRIDE boby.bark() # WoOoOoF!!


I have a low-end laptop (Lenovo Ideapad 100s). Sometimes, when I watch a recording of my university lectures, the whole system freezes. I can't move my mouse or use my keyboard. The freeze lasts 20 seconds or more until the system closes all programs itself and logs me out. The videos are approx. 90 minutes long and 300 MB in size. I have only one other program (gedit) open.  Sometime I can watch two or three lectures without problems, but other days the laptop freezes more than every ten minutes. I use VLC media player, but the problem also happens with the default video player (Ubuntu 17.10). There's also an automatically generated log file named "core", which appeared in my user directory. It's >70 MB in size and I can't open it with gedit. I would upload it, but my upload speed is way too low (rural Germany).  Thanks for your help.


If $f_n(x_n) \to f(x)$ whenever $x_n \to x$, show that $f$ is continuous

From Pugh's analysis book, prelim problem 57 from Chapter 4:     Let $f$ and $f_n$ be functions from $\Bbb R$ to $\Bbb R$. Assume that $f_n(x_n)\to f(x)$ as $n\to\infty$ whenever $x_n\to x$. Prove that $f$ is continuous. (Note: the functions $f_n$ are not assumed to be continuous.)   here's my attempt: assume $x_n \to x$. we want to show that $f(x_n) \to f(x)$. so $|f(x_n) - f(x)| \leq |f(x_n)-f_n(x_n)| + |f_n(x_n)-f(x)|$. The second term can be made to be less than any $\varepsilon > 0$ for $n$ sufficiently large. i'm having trouble with the first term. can anyone help? thank you!


In the film Prometheus, the android David does something that I'm unclear on:      After David examines the black liquid that he brought back to the ship, he poisons Dr. Holloway with a little bit of it.   What is his intention?


'both in terms of' or 'in terms of both'?

Truffles are among the world’s most valuable commodities, in terms of both economic and ecological worth. Truffles are among the world’s most valuable commodities, both in terms of economic and ecological worth.   Is one preferred over the other?  If so, why? A colleague indicated that 'both in terms of' was grammatically incorrect, but could not state why.


Why is $P^{ed} \bmod N = P^{1} \bmod N$ if $e$ and $d$ are modular inverses of $\phi(N)$.

Let $d$ be the inverse of $e \bmod \phi(N)$. Therefore, $de \equiv 1 \pmod{\phi(N)} $ $d \equiv e^{-1} \pmod{\phi(N)} $ In RSA encryption, we can decrypt messages because $P^{ed} \bmod N = P^{1} \bmod N$ I don't understand why $P^{ed} \bmod N = P^{1} \bmod N$ if $e$ and $d$ are modular inverses of $\phi(N)$. What property is this?


If continuity preserves convergence, and Cauchy sequences are convergent sequences, why do we need uniform continuity to preserve Cauchy sequences?

In $\mathbb R$, all Cauchy sequences are convergent and all convergent sequences are Cauchy. So, why isn't continuity enough to preserve Cauchy sequences?  A function is continuous iff it preserves convergent sequences.  A sequence is convergent iff it is Cauchy.  So, why doesn't it follow that continuous functions preserve Cauchy sequences?


Simplistic way of marking a comment addressed to self as "read", "agreed with", etc

There are cases when I write a comment addressed to me just to say "yes you are right", "thanks, fixed" or "taken into account" etc.  It would be nice to have a simplistic way of doing so without adding a comment - like, have a button against each comment addressed to user pressing which sends a corresponding note to the comment author. Like, instead of saying "agreed", I press the corresponding button near comment and the message shows up ni Inbox and corresponding mark is displayed on the comment in the public.  This would both clean up the comments somewhat and improve the feedback (I would personally like to know that user who I replied to have appreciated the comment).  It is counter-prodctive to add "dismissed" mark because if someone does not agree with something they is expected to express it.


SSH traffic over openvpn connection freezes when I cat a file

I have an openvpn (version 2.1_rc15 at both ends) connection setup between two gentoo boxes using shared keys. it works fine for the most part. I use mysql, http, ftp, scp over the vpn with no problems. But when I ssh from the client to the server over the vpn, weird things happen. I can login, i can execute some commands. But if i try to run an ncurses application like top, or i try to cat a file, the connection will stall and I'll have to sever the ssh session.  I can, for example, execute "echo blah; echo .; echo blah" and it will output the three lines of text over the ssh session fine. But if i execute "cat /etc/motd" the session will freeze the moment I press enter.  I compiled openvpn 2.1.1 on my mac and copied over my config directory from my gentoo client. The mac connected and ssh sessions worked fine without freezing.  I then compiled it on my older gentoo box (2.6.26 kernel) which I am retiring due to a dying hard drive, and ssh over it also works perfectly.  Why does it fail on my brand new gentoo box ? I've tried compiling three different kernels in case it was that, but other than that there should be no difference between my older and my newer gentoo boxes that I can think of.  Any suggestions on what's wrong ?


I have a triangular space I want to fill with Grid Fill. The two long sides have each 33 vertices. So connecting them should give the vertical edges of the grid. The short side (on the left) has seven vertices. There should be 7 horizontal grid edges radiating to these vertices from the triangle point. How can I make Grid Fill do this?


Execute specific function based on user input in Python

I am making a python script which hashes a string using an algorithm that the user specifies in input using hashlib. After I hash the string, I want to do the same thing to it, no matter what hash algorithm the user chose. Because of that I wanted to make a function for it, not to repeat code but wouldn't know how to change the built-in hash function based on the input. My code right now looks like this:  current_algorithm = input('Hash algorithm: ')      if current_algorithm == 'md5':     hashed = hashlib.md5(word).hexdigest()     # Execute the same code here elif current_algorithm == 'sha256':     hashed = hashlib.sha256(word).hexdigest()     # Execute the same code here  elif current_algorithm == 'sha512':     hashed = hashlib.sha512(word).hexdigest()     # Execute the same code here   The function hashlib.algorithm(word).hexdigest() has to change depending on which algorithm the user chose. For example, if the user chose sha512, the code would look like this: hashlib.sha512(word).hexdigest(), instead, if the user chose md5, the code would look like this: hashlib.md5(word).hexdigest() and so on. However, the code under these lines is exactly the same and right now I am repeating it 3 times, and possibly more if I will add more algorithms in the future. Therefore how do I make a function that changes algorithm based on user input, so that I do not have to repeat so much code? I was thinking to take advantage of arguments, but wouldn't know how to work around it. This is kind of what I had in mind, but would not work since you can't change built-in methods:  def func(algorithm):     hashlib.algorithm(word).hexdigest()     # Execute the same code here  if current_algorithm == 'md5':     func(current_algorithm) elif current_algorithm == 'sha256':     func(current_algorithm) elif current_algorithm == 'sha512':     func(current_algorithm)   Then, under every if statement I would call the function with and passing it the user input (containing the hash algorithm) as an argument.  I hope the question is clear and would appreciate any help!


Why do we resample in bootstrap estimation?

Why do we need to resample from an initial set of samples when using bootstrapping? Why don't we just take fresh sets of samples from the original distribution? What is the justification behind resampling? Or is it just a computational trick?  EDIT: I understand that it is usually very expensive to get fresh samples, but assuming we have access to a generator of the original distribution, does it still make sense to resample due to some theoretical reasons?


Is there a data structure in C# like a ConcurrentQueue which allows me to await an empty queue until an item is added?

I'm looking for an object like a ConcurrentQueue which will allow me to await the Dequeue operation if the queue is empty so I can do something like the following:  public static async Task ServiceLoop() {      var awaitedQueue = new AwaitedQueue<int>();      while (!cancelled) {         var item = await awaitableQueue.Dequeue();         Console.WriteLine(item);     }  }   I've written the following class, but if an item is added to the queue between the time Dequeue is called and a new awaiter is Enqueued, terrible things will happen.  public class AwaitedQueue<T> : IDisposable {      ConcurrentQueue<TaskCompletionSource<T>> awaiters = new ConcurrentQueue<TaskCompletionSource<T>>();      ConcurrentQueue<T> items = new ConcurrentQueue<T>();      public AwaitedQueue() { }      public void Enqueue(T item) {         if (!awaiters.TryDequeue(out TaskCompletionSource<T> awaiter)) {             this.items.Enqueue(item);         } else {             awaiter.SetResult(item);         }     }      public async Task<T> Dequeue() {         if (items.TryDequeue(out T item)) {             return item;         } else {             // If an item is enqueued between this call to create a new TaskCompletionSource.             var awaiter = new TaskCompletionSource<T>();             // And this call to actually enqueue, I believe it will cause me problems.             awaiters.Enqueue(awaiter);             return await awaiter.Task;         }     }      public void Dispose() {         while (awaiters.TryDequeue(out TaskCompletionSource<T> awaiter)) {             awaiter.SetCanceled();             awaiter.Task.Wait();         }     } }   I'm sure a robust and well-tested implementation of this concept already exists, but I don't know which combination of English words I need to type into Google to find it.


Given that we do not have in-house development resources and my Apex abilities are pretty basic, I usually try to stick to Process Builder, Flow, various out-of-the box declarative assignment/validation/etc rules.  But with self-updating automations (that is, a change on a record triggering an update on that same record), it occurs to me that the more efficient option would be a before trigger instead. It's less maintainable but it also takes less DML.  Generally speaking - is it best practice to have all self-updating automations be triggers then (as opposed to after update Processes that might even need to be recursive)?  Edit: To actually ask a specific question - I have a requirement to perform an update on every record on an object on every edit. I'm concerned about DML efficiency for this need in particular, but then the broader question occurred to me as well.


Unable to set the height of an element based on the height of its child

I have an element, a div with ID homeColumnContain, which I need to set the height of based on one of its absolutely positioned children, an image element with an ID of homePictureID. My code looks like the following:     window.onload = function() {resizeColumns()}; window.onresize = function() {resizeColumns()}; function resizeColumns() {   document.getElementById("homeColumnContain").style.height = document.getElementById("homePictureID").style.height; }

     The code appears to do nothing. I've added listeners for both resizing the window and on window load, as these two events are when the height should be changed. I've tried moving my script around in the HTML document and this didn't work. I don't have a whole lot of formal training with JavaScript, so any feedback as to why this approach doesn't work would be great. I would prefer the solution to not divert to using jQuery.  Edit: I additionally tried some of the responses in the question that this was marked a duplicate of, and none of them solved my issue. Also, if relevant, I have a width defined in my homePictureID as 100%.


\autoref does not expand abbreviation automatically at beginning of line

Say there is an equation:  \begin{equation} r^2 = x^2 + y^2 \text{.} \label{eq:circ} \end{equation}   I can change the autoref label by using:  \def\equationautorefname{Eq.}   Now, using   \autoref{eq:circ} something something \autoref{eq:circ}.   gives Eq. 1 something something Eq. 1.  However, I want the abbreviated versions to expand if they are at the beginning of a line. Essentially, I want this result here: Equation 1 something something Eq. 1. (all hyperlinked of-course). How do I make it happen?


Using Tenser’s Floating Disc as propulsion

For D&D 5e, TFD states that when I move more than 20’ away, TFD      ...follows you so that it remains within 20’...   I cast TFD and place one end of a 25’ long beam on it. On the other end is a seat and wheels.  Will TFD move toward me in perpetuity at my normal movement until I dismount from the far end of the beam?


Is the following statement true or false?     Let  $f$ be  a non-negative  function contnious on $[0, \infty)$ and  differentiable  function  on $(0, \infty)$  such that $f(0)=0$ and such that $f'(x) \le f(x)$ for all $x \in (0, \infty)$. Then $f ≡ 0$.   I think this statement is  false. Take $f(x)= x+e^x-1$ so that $f(0)=0$  and $f'(x)=e^x +1 \le  x + e^x-1$, but $\lim_{x \rightarrow \infty} f(x)=\infty \neq 0$.


(eog:4461): Gtk-WARNING **: cannot open display when trying to use eog to open images on Windows via SSH

I'm running Ubuntu 16.04 And when I try to use eog to open images on windows 10 While using SSH it says:  Failed to connect to Mir: Failed to connect to server socket: no such file or directory Unable to init server: Could not connect: Connection refused (eog:4461): Gtk-WARNING **: cannot open display: :1   Any Help?


I am developing a website in two languages (English and Italian) and I use a flag icon to switch between them. What is the common/best practice if I am viewing the Italian page?  Show the Italian flag, which changes the language to English Show the English flag, which changes the language to English  I am torn between the two options... Is it better to show the currently active language, or the language displayed after you click on it?


Why am I getting "IndentationError: expected an indented block"?

if len(trashed_files) == 0 :     print "No files trashed from current dir ('%s')" % os.path.realpath(os.curdir) else :     index=raw_input("What file to restore [0..%d]: " % (len(trashed_files)-1))     if index == "*" :         for tfile in trashed_files :             try:                 tfile.restore()             except IOError, e:                 import sys                 print >> sys.stderr, str(e)                 sys.exit(1)     elif index == "" :         print "Exiting"     else :         index = int(index)         try:             trashed_files[index].restore()         except IOError, e:             import sys             print >> sys.stderr, str(e)             sys.exit(1)   I am getting:          elif index == "" :         ^     IndentationError: expected an indented block


I am looking for a way to ssh to a machine, without using SSH keys. When I try to pass the password      echo "password" | ssh user@machine   It just gives me an stdin error  How do I SSH without using keys (and without installing anything would be preferred)


How to calculate statistics for several sub-catchments (polygons) in the same time?

I have a shapefile of groundwater management zone which is composed of 40 sub-catchments (40 polygons). I'd like to calculate the max., min. and mean elevation for each sub-catchment. Would you please let me know if there is any way to calculate all of these parameters (for all of the sub-catchments) using the shapefile and the DEM?


Definition of electric charge and proper explanation

Is there a definition of  and proper explanation of it?  It is said "Electric charge is the physical property of matter that causes it to experience a force when close to other electrically charged matter."  How is it though that matter can get charged?  Defining charge as the property of feeling a force with other charged matter seems circular.  What is charge?  Is there a non-circular definition / explanation?


How can I remap Caps lock to both Escape and Control?

I generally run Linux. I use Vim a lot, so the Escape key is extremely important. I also use other keyboard shortcuts a lot, so Control is "key" as well. On Linux, I've solved this by using  to map the Caps lock key to Escape if pressed by itself, or Control if pressed in combination with another key. This puts the best of both worlds within quick reach of my pinky finger. Is there any way I can do this on a Mac?


Regex differentiating uppercase and lowercase letters

I have the following pattern in java: "^(?!.*(.).*\\1)(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()-+])(?!.*[\s:;',?/~=<>|\\[\\]]).{9,}$"  One of his goals is not to allow the same character to be repeated. He is doing his job well, except when I type the same letter but one in uppercase and the other in lowercase, it identifies that the characters are different and returns true. I was not able to use case_isensitive, because in my patern, the user is obliged to type at least 1 lowercase letter and one uppercase letter. How can I do it when, for example, "Aa" the pattern returns false and not just when it has "aa"?


SELECT statement using NOT IN against a text string

I want to write a SELECT statement that returns value but excludes any that appear in a text list  So I have a text list COL1, COl2, COL4, COL5 (called myString)  And I want to say...  SELECT COLUMN_NAME  FROM INFORMATION_SCHEMA.COLUMNS  WHERE TABLE_NAME = 'INTERFACE' AND COLUMN_NAME NOT IN(myString);   How would I do that?  I am trying to solve this problem in a stored procedure and though that just getting back to basics would help me understand. My SP code looks like this...  INSERT INTO @excludeFieldTable VALUES ('CASENO'),('INTLINENO'),('INTMEMBNO'),('INTSTATUS'),('RECTYPE'),('EFFDTE'),('INTERR'),('INTERR2'), ('INTWARN'),('AUTHORISED'),('EXCLUDE'),('UPDATED'),('INTMEMBNO2'),('INTSTATUS2'),('ALTKEY');      INSERT INTO @intColumnList SELECT DISTINCT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='INTERFACE' AND COLUMN_NAME NOT IN (SELECT DISTINCT(excludeFieldName) FROM @excludeFieldTable);   but the NOT IN against the @excludeFieldTable is not evaluating for some reason (so intColumnList still has the values 'CASENO', 'INTLINENO' etc)


when the sum of some fractions equal to 1.

$r$ is a number such that $r=p^a$. If the sum of some fractions equal to $1$ and one of the denominators is divisible by $r$ then there is another denominators that is exactly divisible $r$.  It seems to be really easy but I cannot prove it for example:  $\frac{7}{12}+\frac{4}{15}+\frac{3}{20}=1$  You can see here we have two denominators that are divisible by $4$ or two denominators that are divisible by $3$.Any hints?


Can I connect 5v 1 amp usb mobile charger to power Node MCU?

I am planning to power Node MCU from cable power. Can I connect mobile charger to the micro USB port? Or is it better to connect to Vin in NodeMCU?


is it possible to have different research topics for the MSc and PhD?

Here is my case, before I studied my master´s degree I managed to write a research paper jointly with a Professor (not from my university) on databases. After that I pursue my master´s degree in CS, but on neural networks rather than databases. The thing is that I would like to do my PhD in databases with the professor I wrote the research paper with. Do you think that I can have problems with the admission committee? I would not like to go to study a PhD without any financial support at all.


Correct usage of "has been" and "had been"

I would like to know whether any of these sentences are correct:     Yesterday, I found out that all the money I had in my bank account   has been stolen from me.      Yesterday, I found out that all the money I had in my bank account   had been stolen from me.   Or should I just use "was" in this case? Thanks!


I am making a self signed certificate using OpenSSL. I want to make the certificate in one go, means that it will not ask me for the input for Company Name, Common Name etc etc. Is there anyway to do this like a switch e.g. /noprompt or any other through which I can input my all fields in one go. Is it possible that the following command takes all arguments in this call which it takes after pressing enter  openssl x509 -req -days 30 -in request.pem -signkey key.pem -out certificate.pem


In $\mathbb{R} ^3$, $v$ is a fixed vector and $\alpha:I\rightarrow \mathbb{R}$ is a regular curve. We have: $\alpha'(t)$ is orthogonal to $v$ for all $t\in I$ and $\alpha (t_0)$ is orthogonal to $v$. How can I show that $\alpha(t)$ is orthogonal to $v$ for all $t\in I$?


I have a following wrapper class: public  with sharing class HistoryRecordWrapper { Id CreatedById; Datetime CreatedDate; Object Field; Object NewValue; Object OldValue;  public HistoryRecordWrapper(AccountHistory accHistory) {     CreatedById = accHistory.CreatedById;     CreatedDate = accHistory.CreatedDate;     Field = accHistory.Field;     if(accHistory.NewValue != null || accHistory.NewValue != '') {         NewValue = accHistory.NewValue;     }     if(accHistory.OldValue != null || accHistory.OldValue != '') {         OldValue =  accHistory.OldValue;     } }  public HistoryRecordWrapper(ContactHistory conHistory) {     CreatedById = conHistory.CreatedById;     CreatedDate = conHistory.CreatedDate;     Field = conHistory.Field;     if(conHistory.NewValue != null || conHistory.NewValue != '') {         NewValue =  conHistory.NewValue;     }     if(conHistory.OldValue != null || conHistory.OldValue != '') {         OldValue = conHistory.OldValue;     } }  } Also, I have another class that can combine contact and account history records and that returns list of combined history records. public with sharing class HistoryRecordsHandler {  public static List<HistoryRecordWrapper> getAccountAndContactHistoryRecords(Id accId) {     List<HistoryRecordWrapper> hrws = new List<HistoryRecordWrapper>();      List<AccountHistory> accHis = [SELECT AccountId, CreatedById, CreatedDate, Field, DataType, IsDeleted, NewValue, OldValue FROM AccountHistory WHERE AccountId = :accId];     List<ContactHistory> conHis = [         SELECT ContactId, CreatedById, CreatedDate, Field, DataType, IsDeleted, NewValue, OldValue         FROM ContactHistory         WHERE Contact.AccountId = :accId     ];          if (!conHis.isEmpty()) {         for (ContactHistory conHi : conHis) {             HistoryRecordWrapper crs = new HistoryRecordWrapper(conHi);             hrws.add(crs);         }     }      if (!accHis.isEmpty()) {         for (AccountHistory accHi : accHis) {             HistoryRecordWrapper hrs = new HistoryRecordWrapper(accHi);             hrws.add(hrs);         }     }      return hrws; }  } How can I sort hrws list based on CreatedDate (record that got edited last should be first in the list)?


One incorrectly declined flag causes a warning every time I attempt to flag a post

I had flagged  on Stack Overflow as spam. The flag was declined, then later  we found it was spam and got deleted as such, but the flag's still marked declined.  However, whenever I try to flag a post now I am presented with an annoying warning:    Below is a summary of my flags thus far:    It's annoying (and somewhat scary) to be presented with warnings for no fault.  Is there a way out?  Should I stop flagging altogether?


I have been trying to troubleshoot a login that is not able to view certain tables in a SQL Server 2012 database. In doing so I find I don't quite understand what membership in the db_owner role allows. I can understand the other roles such as db_datareader and db_datawriter but I remain confused as to what db_owner allows.


I found the next exercise and its respective solution while studying calculus.  Let $(x_n)\in\mathbb{R}$ be a sequence. Suppose that every subsequence $({x_n}_k)$ has a "sub-subsequence" $({{x_n}_k}_j)$ that converges to $0$. Show that $\displaystyle\lim_{n\to \infty} x_n=0$  Proof:  Suppose that $x_n \not\to 0$. Then, there is an $\varepsilon _0>0$ such that, for every $N\in\mathbb{N}$ $$|x_n|\geq\varepsilon_0$$, for some $n\geq N$.   Then, it's possible to construct a subsquence $({x_n}_k)$ such that $|{x_n}_k|\geq\varepsilon_0>0$ for every $k\in\mathbb{N}$.   This subsequence $({x_n}_k)$ cannot have any subsequence that converges to $0$ (contradiction).  My questions are: Why can we affirm that it's possible to construct a subsequence $({x_n}_k)$ such that $|{x_n}_k|\geq\varepsilon_0>0$, for every natural number $k$? And why can we affirm that the subsequence $({x_n}_k)$ cannot have any subsequence that converges to $0$?


I have a Windows machine (laptop) that needs fixing. The current installation is really badly broken (e.g. the taskbar is unresponsive, but the Explorer windows work, booting takes literally half an hour) and when I try to access the settings app and click on the tile to access the reset settings it instantly crashes. The same happens in Safe Mode.  I have created a USB install medium using the tool offered by Windows on my own Windows desktop machine. I've ensured that both the laptop and the USB tool have the same version of Windows (Home, 64-bit, NL). When I want to reinstall Windows on the laptop with this stick I am asked to enter a serial number which I obviously don't have. I don't want to try and see if I can phone activate it, because if it fails the install is gone.  I need to reinstall this Windows machine from a USB stick. There are a few problems I can't find an immediate solution for on the .   If I use a tool such as  to extract the serial number, will this work? If the above does not work, how can I reinstall this Windows machine?


Is the Xenomorph life cycle based on the life cycle of a real world species?

The Xenomorph life cycle is quite complex.  It basically boils down to this1:   Queen Xenomorph lays eggs.   Eggs hatch into facehuggers.  Facehuggers implant eggs in a host organism's throat. Implanted eggs hatch into chest-bursters.   Chest-bursters grow into adult Xenomorphs.  Their primary function appears to be serving the queen, protecting her eggs, and gathering host organisms and trapping them in the hive, where they can be easily implanted with facehugger eggs.     Although there are some parallels to real life social insect colonies, like ants, for example, this life cycle seems somewhat unique in that there are at least two different forms of life involved in the process:  Facehuggers and Xenomorphs.  If queens are distinct from other xenomorphs, that makes three different forms of life.    The most striking feature of the Xenomorph life cycle (and the part I am most interested in) is the facehugger:  whereas most organisms go from being eggs to being babies/larvae to being adults, xenomorphs have a totally distinct sub-species, which is clearly not a Xenomorph itself, but is absolutely vital to the propagation of the species.  That is to say, Facehuggers don't grow up, they don't turn into xenomorphs, and xenomorphs don't turn into Facehuggers, but you can't get a Xenomorph without first having a facehugger.  By way of comparison, a parasitoid wasp is always a wasp.  The adult lays eggs in a host organism, the eggs hatch into larvae, the larvae metamorphosize into adult wasps, and so on.  But xenomorph queens lay facehugger eggs, and Facehuggers lay Xenomorph eggs.  Facehuggers don't resemble xenomorphs in any way, and vice versa.  Xenomorph queens can't lay Xenomorph eggs.  Only Facehuggers can do that.  Facehuggers can't lay facehugger eggs.  Only Xenomorph queens can do that.   Did Ridley Scott model the Xenomorph life cycle after a real world species, or did he just make the whole thing up himself?    1 I know that the director's cut of the first Alien movie shows people being turned into eggs, but I decided not to mention it because it would only muddy the waters without substantially changing the thrust of the question.


Java String Conditional Break Not Working

I wrote a simple program which prompts the user to enter a sentence, word, or number, and then prints input is art. I put the program on an infinite loop so that the prompt would repeat. However, now I'm trying to add a way to quit by saying if (input == "quit") break; however it does not seem to be working. It just continues the infinite loop. Here is the full code:  import java.util.Scanner; public class Art {      public static void main(String [] args)      {         Scanner input = new Scanner(System.in);         String a;        for ( ; ; )              {             System.out.println("Please enter something: ");             a = input.nextLine();             if (a == "quit") break;             System.out.print("\n");             System.out.println(a + " is art.");             System.out.print("\n");               }     } }   Any help would be lovely, thanks!


Why do we use pointers instead of local variables?

I don't understand the difference between using a pointer and using a normal variable. I'm learning linked lists in class so the use of pointers seems more straightforward since pointers are used to go to the next node in the list, but I don't understand its more basic uses and I'm feeling stressed as it is something I should already understand but don't.


Multilinestring to shapefile using QGIS?


Can I run Cat-6 in conduit with line-level power cables?

I am sitting on a beautiful and relatively new patio in my back yard. When installing the concrete patio, one electrical conduit was installed to run power out to the gazebo. This coming week it will be installed. I’m thinking I would like to also run a Ethernet cable, too. I like the idea of a WiFi access point out here. I know all the experts say don’t run low voltage and high voltage together because someone might run a nail or something into both, but we are talking conduit here, no nails will ever be a factor. My main concern is RF shielding.  Will CAT6 give a good solid 1G connection, or do I need something better shielded?


I'm working on getting Json objects from a service to a List View in Android... the date format looks like this "/Date(1354222800000+0300)/" ... how can I change it to a readable format?  for (int i = 0; i < json.length(); i++) {      HashMap<String, String> map = new HashMap<String, String>();     JSONObject e = json.getJSONObject(i);     map.put("mDate", "" + e.getString("mDate"));     mylist.add(map);  }


How to set a quantity by entering an exact number, or a difference (add/substract amount)?

I have to design a form with one field being a quantity that represents the number of available items of a given product. I want to allow the user to modify this quantity in 2 different ways, in the same form: they can set directly a new quantity, or they can specify an amount to add/substract to the original quantity.  I thought two input fields could define the operation in the following way: one is for the amount to add/substract, and the other is for the result. If the user modifies one the other gets updated. In the end the value submitted is the value of the "result" input field. Negative numbers are allowed. One quick implementation of this for illustration:    Am I on the right track or is there a common pattern to do this in another way? Maybe it shouldn't be possible to use the 2 modes of operation at the same time, so the user should be able to select from an "exact mode" or a "delta mode"?


Does anyone know of a software that could be installed/compiled for linux that is able to cut video by the frame? Thanks.


After downloading my models rigged from Mixamo they no longer have any materials, is there a way to fix it?

Mixamo does a decent job when I need to rig something fast but the fact that all material are gone "compensates" the saved time, forcing me to do it again


I have set  from to minimize all windows settings to super + d button.   Some time later this Super + D button does not works.  When I check the setting i see that it is disabled.    What should I do not to disable itself after a time?


If I execute the test command in bash, test(evaluates conditional expression) built-in utility is started:  $ type test test is a shell builtin $ type -a test test is a shell builtin test is /usr/local/bin/test test is /usr/bin/test $    However, as seen in output of type -a test above, there is another test in /usr/local/bin directory and yet another one in /usr/bin directory. How are executables ordered, i.e. are the built-in commands always preferred and then the rest of the commands depend on the directory order in $PATH variable? In addition, is it possible to change the order of the executables started, e.g. if I type in test, then /usr/bin/test is started instead of bash-builtin test?


Adventurer enters an other-dimensional realm where he repeatedly dies unexpectedly and wakes up in reality

I'm trying to find the title and author of the short story that seems to have predicted computer games.  The main character was a macho adventurer who was recruited by a scientist to enter a strange other-dimensional realm in which death came suddenly and unexpectedly.   The adventurer would enter the realm, learn a little bit and then die violently only to reawaken in the real world, to try again repeatedly.


Correct usage of "is" or "are" in this sentence

Which is the correct usage?   Another thing to consider is your search results.  Another thing to consider are your search results.  Thanks!


Why could Dolores Umbridge conjure a Patronus?

There have been    recently regarding Patronuses, and who could summon one, and why. The general consensus seems to be that Death Eaters could not summon Patronuses, since they are Very Bad People.  My question is, if Death Eaters supposedly were unable to summon a Patronus under any circumstances, then why could Dolores Umbridge summon one? Umbridge was sick and twisted, at least to the level of most Death Eaters, yet we see in Deathly Hallows that Umbridge had her Patronus, a cat, guarding her from Dementors while she was persecuting Muggleborns.


How many species can have the same scientific name?

For my science homework, a question came up asking how many species can have the same scientific name. I'm pretty sure that each species has a different scientific name, but just to be sure...


What iOS version can be downgraded to iOS 10?

I would like to downgrade my iPad running iOS 11.4. I don’t care the data preservation.  Is it possible to downgrade?


How to use int.TryParse with nullable int?

I am trying to use TryParse to find if the string value is an integer. If the value is an integer then skip foreach loop. Here is my code.  string strValue = "42 "   if (int.TryParse(trim(strValue) , intVal)) == false  {     break;  }   intVal is a variable of type int?(nullable INT). How can I use Tryparse with nullable int?


Functional Analysis. Continuous extensions of linear functionals.

I would like to show that a continuous functional on a subspace $W$ of a normed space $(V,\|\cdot \|)$ has a unique continuous extension to $V$ iff $W$ is dense in $V$.  I have proved $(\Leftarrow$). But the converse is currently eluding me! Help would be much appreciated!


What's a word for someone who doesn't believe in the ideas behind their words?

I'm looking for a single word to describe a person who is a good wordsmith or orator, but who doesn't believe in the ideas behind their words. Any ideas?


Use the definition of derivative to prove $\lim_{x\to 0}\ln(x+1)/x =1$

How would I use the definition of derivative to prove  $$\lim_{x\to 0} \frac{\ln(1+x)}{x} = 1$$  I got to $$\frac{\frac{\ln(1+x+h)}{(x+h)} - \frac{\ln(1+x)}{x}}{h}$$ but have no idea where to go from here.   On another site I found someones answer where they stated the following: $$ \lim_{x\to 0} \frac{\ln(1+x) - \ln(1+0)}{x-0}  = [\ln(1+x)]'\rvert_x = 0 $$ but I am unsure why the $x$ in the $x-0$ is removed. Can someone please explain?


How can I label marginpars or marginnotes to be able to refer to them?

In a 200 page document I have 20-30 portions, 2-5 sentences long usually, scattered throughout that discuss something about statistics.  My thought is to add a marginpar for each statistics portion.  My question is whether I can label each marginpar uniquely so that I am able to ref-er to it (and thus to the few sentences on statistics). [While tagging this question, marginnote appeared, and that might be an alternative to be labelled.)  EDIT: The reference to another question that shows how to number marginpar items, like footnotes are numbered sequentially, is very helpful, but doesn't explain how then to refer to a numbered marginpar later in the document.  If this is possible, it seems it will require a counter .  But being a beginner, I don't know whether the basic idea is a dead end let alone how to code it.  I am using R, RStudio, and the knitr package on Windows.


I'm kinda new to blender and I'm trying to replicate a living room for studying reasons.  The wall in question lies in the right side of the room along with some windows and I do have a PBR material that fits my needs.  (texture I'm trying to use) I've tried a bunch of stuff, but none worked the way I thought it would. I tried using modifiers subdivision surface + displace with texture I mentioned above and I created a material along with the provided textures, but the material was too flat for my liking and I was having a really hard time unwrapping the mesh and in the end it became a mess.


Let $d_1, d_2,..., d_k$ be all factors oc a positive integer $n$ including 1 and n. Suppose $d_1+d_2+... +d_k=72$. The question is to evaluate $$\sum_{i=1}^k \frac1d_i$$  I found this question in Test of Maths at 10+2level. I tried applying inequality which made it ascertain that the summation is greater than $72/k$ but i  couldn't find it's value. Any ideas? Thanks.  .


Integrate area between two normal distributions

I have two independent normal distributions with different mean and variance, such that.  $$f_1(x_1 \; | \; \mu_1, \sigma_1) = \frac{1}{\sigma_1\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_1)^2}{2\sigma_1^2} })$$  $$f_2(x_2 \; | \; \mu_2, \sigma_2) = \frac{1}{\sigma_2\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_2)^2}{2\sigma_2^2} })$$  This is an example I made in R considering:  $\mu_{1} = 1$, $\sigma^{2}_{1} = 1.4$  $\mu_{2} = 3.5$, $\sigma^{2}_{2} = 1.1$    I tried to analytically find the mathematical expression of the gray area, that is the common mass shared by both distributions. I have looked at other posts, like , but as far as I understand the difference between two normals is a normal distribution. However, in this plot this doesn't look like a normal distribution.  I would say something like   $f_{3}(x_1,x_2 | \mu_1, \sigma_1,\mu_2, \sigma_2) = \int(f_{1}-f_{2})$  but I am afraid this is not correct.  I'd appreciate some intuition and a mathematical expression for the gray area.


Is there a command directly in the QGIS field calculator that is equivalent to Excel's  (without exporting to a CSV file)?    I want to check whether the sum of items in the attribute table which fulfill a specific condition (same ID) is above or below a certain treshold.  =SUMIF(RANGE,CRITERIA,[SUM_RANGE])


How to create Win7 bootable usb from within Ubuntu 16.04

I know this has been asked before but the majority of the answers given seem to be a bit out of date.  I've tried the gnome disk utility, after reading somewhere in here that it might be as simple as that, I've tried running Rufus through Wine, and I've also tried Unetbootin, which actually got me so far as to boot from my pendrive, but then I got a "Missing Operating System" message flicking on my monitor from top to bottom.  Has anybody actually tested creating a Windows 7 bootable USB from within Ubuntu 16.04. And if so, how do I do it?


I have simple enumeration (using enumitem package) with disabled hyphenation.  \documentclass[12pt, oneside]{extarticle} \usepackage[a4paper, left=3cm, right=1.5cm, top=2cm, bottom=2cm, bindingoffset=1cm ]{geometry}  \usepackage{enumitem, showframe} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{blindtext}  \begin{document}      \begin{enumerate}[label={\arabic*}.]         \item \large{\textbf{Общие положения}}         \item \large{\textbf{Квалификационные требования}}          \begin{enumerate}[label*={\arabic*}.]             \item \textbf{Необходимые требования}             \begin{itemize}                 \item Опыт работы по основному направлению деятельности подразделения не менее 4 лет             \end{itemize}             \item \textbf{Специальные требования}             \begin{itemize}                 \item Глубокие знания и опыт организации технической поддержки                 \item Управленческая ответственность                 \item \blindtext             \end{itemize}          \end{enumerate}                \end{enumerate}  \end{document}   But text crosses the frame.     Why it could be? Thanks in advance. Ivan.


The problem I'm currently wrestling with is this. Haven't realised what the issue was but i have the following code  j.prototype.deleteFile = function() {    $('.deleteFile').on('click', function()   {      if(confirm('Are you sure you want to delete this file?'))     {        //delete the file      }    })  }   The purpose of this is to delete files on button click and confirmation of deletion. Since file icons are added upon uploading (appended afterwards) and this is called upon page load (since upon page load there might already be files for deletion) i need to refetch the HTML elements to have an up to date list as i understand. This creates multiple instances of the function as it is called multiple times (for each upload) and thus when trying to delete a file:   After first upload asks for confirmation once After second upload, second upload asks for confirmation once, first one twice.    The pattern is to add additional one for the ones existing before.  I assume it is because deleteFile has multiple instances and each of them triggers upon click.   I have been looking for a way to clear the old instances or maybe add/include new elements to that old instance but to now avail.   Is there a method for achieving my goal that I'm overlooking maybe?


I am having problem to construct minted style listings with tcolorbox. Please help!

Here's my latex project on Overleaf.com and errors and logs:  I created a .cls by loading the class file  \LoadClass[12pt, a4paper]{book}   And then I add some packages essential  \RequirePackage[utf8]{inputenc} \RequirePackage[minted,skins,breakable,listings,many]{tcolorbox} \RequirePackage{xcolor} \RequirePackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}   Use \newtcblisting to create new tcoloredbox of code:  \newtcblisting{codecsharp}[1][]{   title=This is source code in another language (C\#),   colframe=yellow!50!black,   width=\linewidth,   enhanced,   breakable,   boxrule=0.4pt,   colback=light-gray,   listing only,   listing engine=minted,   minted language=csharp,   after={\par\vspace{\baselineskip}\noindent} }   Then, I use the .cls in .tex and write this code in document environment:  \begin{codecsharp} using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace CSharpTutorials {     class Program     {         static void Main(string[] args)         {             string message = "Hello World!!";              Console.WriteLine(message);         }     } } \end{codecsharp}   But there's error occurs:    And the pdf file looks like:    By the way, the line 36 in the error log is  \end{codecsharp}   And it saids     Package minted Error: Missing Pygment out; \inputminted was   I know that sentence is not finished, grammatical speaking, but that is all.


Do we need axiom of choice to prove $A \subset B \subset A \Rightarrow A = B$ ?   The proof is trivial, define $C = B \backslash A$. If $A \neq B$ then $C$ is nonempty, so pick any element $x$ of $C$, then $x \in C \Rightarrow x \in B, x \not \in A$, but as $B \subset A$, thus $x \in A$, a contradiction.  Do we need actually need AoC to justify the bolded part ?


Can I transfer Steam games from one steam account to another?

I want to play Dota 2 with my friend. However his Internet connection is so slow that it would take him about 2 days to download it and then it will be throttled. I am thinking of transferring the version I downloaded per USB-Drive to his Computer and account. Since this is a free game anyways. Would this work or will there be problems?


Principled BSDF ,micro displacement turns black with normal map

not sure if its supported or not, i'm using an AMD RX Vega56 (OpenCL). using a normal map in the principled BSDF + micro displacement gets me just a blck hole.  is it supported?  thanks for the help :)


Add a new property to an object property

I need to write new properties for the comment property without erasing it. This is my object now:  product: {   name: 'name',   briefPDescription: 'text',   details:    {      about: 'text',      description: 'text',      comment:      {          "text": 'text'      },      subDescription: 'text'  }   What you need to write:  author: {      name: 'name',     position: 'text',     photo: '../avatar.png'  }    How should it be:  product:  {   name: 'name',   briefPDescription: 'text',   details:   {      about: 'text',      description: 'text',      comment:       {           text: ''text',          name: 'name',          position: 'text',          photo: '../avatar.png'       },      subDescription: 'text'  }   I did this:  product.comment = author;   But it deleted the text property. How can I write new properties to the comment property without erasing it?


Why Startup Disk Creator is showing a blank DVD's capacity as 2KB where 4.7 GB is free?

I'm using ubuntu 14.04 (x86). I was trying to create a bootable dvd disk for Ubuntu 13.04. I have downloaded the image file (.iso) and successfully created a bootable USB using Startup Disk Creator. But when I tried to do the same with a 4.7 GB DVD, the Startup Disk Creator is showing DVD's capacity as 2KB and Free Space as 0.0B. It also shows a message "The device is not large enough to hold this image".


$\sum_{n=1}^{\infty}a_n^2$ converges, so does $\sum_{n=1}^{\infty}b_n^2$. Prove that $\sum_{n=1}^{\infty}|a_nb_n|$ converges.

$\sum^{\infty}a_n^2$ converges, so does $\sum^{\infty}b_n^2$. Prove that $\sum^{\infty}|a_n\cdot b_n|$ converges.  I don't know how to use the information I am given in the hypothesis to make any conclussion.  What I know:  (1) $\sum^{\infty}a_n^2$ converges $\Longrightarrow \lim_{n\to\infty}a_n^2 = 0 \Longrightarrow \lim_{n\to\infty}a_n = 0$  Same for $b_n$:  $\sum^{\infty}b_n^2$ converges $\Longrightarrow \lim_{n\to\infty}b_n^2 = 0 \Longrightarrow \lim_{n\to\infty}b_n = 0$  Then:  $\lim_{n\to\infty}|a_n\cdot b_n|=\lim_{n\to\infty}|a_n|\cdot |b_n|=\lim_{n\to\infty}|a_n|\cdot \lim_{n\to\infty}|b_n|=0$  Which doesn't help because (1) is a one-way implication.  Any hints?


I would like to know what are the margins (top, right,bottom and left; in meters) that are by default assigned for thebook class. Is there a command or a way to know them?


How to calculate the probability mass function of $X_N$, the number of people getting back their own hat

How do I calculate the pmf of $X_N$, where $X$ is the number of people out of $N$ getting back their own hat after a random hat exchange?  How can I calculate it without listing all the possible outcomes?


There's a puzzle where you have 3 houses and 3 utilities. You must draw lines so that each house is connected to all three utilities, but the lines cannot overlap. However, I'm fairly sure that the puzzle is impossible. How is this proved?


Why does "df -h" show out of sync space used?

I have tried different commands to see sizes of partitions and space used/left and it seems that they always differ in their results.  Here is my space used/left with from the command df -h:  Size  Used Avail Use% Mounted on 395G  355G   21G  95% /home   Notice that used and availabe only add up to 376G but size is 395G


passwd pauses after bad password has been entered

Say you type in passwd and you enter in the wrong password. There's a noticeable delay between when it tells you that the password was bad and when you enter it. Any ideas as to why? Seems kinda strange...  Here's the message I'm getting when I enter in a bad password is as follows:  passwd: Authentication token manipulation error passwd: password unchanged   Maybe it's attempting to protect against brute force attempts by reducing the speed with which new passwords can be tried?  Either way is there some discussion of this behavior somewhere? I don't see any note of it in the man page..


What are the problems with using generic LP-E6 batteries with a 5D/7D (if any)?

I've got a 7D with the LP-E6 battery that came with it, but would like to get some spares (along with a battery grip)  With my previous camera (450D) I used generic batteries (and generic grip) and had no issues with charge/usage, but apparently the LP-E6 batteries have a proprietary Canon chip in them, which means that there may be problems charging or using (in terms of battery metering) in a 5D or 7D body.  What are the specific problems? And are there any 3rd party batteries that have the Canon chip or a reverse-engineered chip to avoid these problems?


When I was reading the first volume of the theoretical minimum by Leonard Susskind, I encountered upon this:     But when I checked Griffiths and all my other electricity and magnetism books, it showed $$\mathbf F=q({\mathbf v} \times \mathbf B)$$ instead. Where did the extra factor of $c$ come from? Which one is the correct equation? Are both equations equivalent? Or was that a misprint in Susskind's book?


Intuitive understanding of centripetal vs. centrifugal force

I am having trouble understanding how centripetal force works intuitively.  This is my claim.  When I have a mass strapped on a string and spin it around, I feel the mass pulling my hand. So, I want to say that the mass is trying to move away from the center of the circle, and yet centripetal force makes it move in a circle, i.e, centripetal acceleration towards the center.  Similarly, when I am driving a car and making a curve, I feel being pushed away from the center of the curvature rather than towards it.  I am having so much trouble with these types of problems because of this counter intuitive concept.  Can someone help me out?


Large double mathematical multiplication in C#


Black lines through every part after importing GLTF

I'm new to blender and need some advice.  I have imported a GLTF file of the render/animation I am trying to make (robot for a competition, want to show off capabilities in animation), and when I import the file, it ends up looking like this. Originally the model is a .step file, but I used the CadExchange program to make it compatible with blender. The lines do not show up in the rendered images or animations, but they make it really hard to work with, especially selecting items to parent to each other, which I need to do a lot of. Any help with this is appreciated, thank you!