Is it ever acceptable to have a  in your C or C++ application?  What if you allocate some memory and use it until the very last line of code in your application (for example, a global object's destructor)? As long as the memory consumption doesn't grow over time, is it OK to trust the OS to free your memory for you when your application terminates (on Windows, Mac, and Linux)? Would you even consider this a real memory leak if the memory was being used continuously until it was freed by the OS.  What if a third party library forced this situation on you? Would refuse to use that third party library no matter how great it otherwise might be?  I only see one practical disadvantage, and that is that these benign leaks will show up with memory leak detection tools as false positives.


How do you adjust the background-image size with CSS?

How do you adjust the background-image's size with CSS?


In hybrid encrytion, I still see that some site's use RSA in their https connection, so now I wonder, why do they not use ECC instead of RSA, ECC requires less computational power and encrypt's and decrypt's faster (atleast that's what I read). I know that there have been smiliar question's about this but none of these answered specfically why rsa is still used. The only two reasons what I can think of is that some hardware may not support it or that there are some web administrators that are being to lazy to upgrade, but im not sure if that is the case. I hope someone could explain this to me and shed some light on it :) .


When I try to install any package through the command line, I get an error. Can anyone help me on this?  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package update E: Unable to locate package fpc   and here's the snapshot.


How can I specify nameserver's port number in osx?

In resolver , it said:  The address may optionally have a trailing dot followed by a port number.  For example, 10.0.0.17.55 specifies that the nameserver at 10.0.0.17  uses port 55.  But it doesn't work, in /etc/resolv.conf or files under /etc/resolver/.  208.67.222.222.5353  Can I specify non-default port number for nameserver in osx?  Update:   osx don't use /etc/resolve.conf, but use files under /etc/resolver/. I have wrote a file dev with content '127.0.0.1' to route all dns queries for *.dev domains to a local dns server (127.0.0.). But I cannot specify dns server's port here. (It uses 53 anyway)  Maybe there is no way to specify port number under osx?


Removed Python 3 on 18.04, how can I fix my system?

After I removed the Python 3 package from my Ubuntu 18.04, I also lost the terminal, software centre and some other useful applications.  What do I need to do now?


How compute $\lim_{p\rightarrow 0} \|f\|_p$ in a probability space?

I not solve the follow limit $$\lim_{p\rightarrow 0} \bigg[\int_{\Omega} |f|^p d\mu \bigg]^{1/p} = \exp\bigg[ \int_{\Omega} \log|f|d\mu \bigg],$$  where $(\Omega, \mathcal{F}, \mu)$ is a probability space and $f,\log |f| \in L^1(\Omega).$  Can someone help me?  Thank you!


Can Somebody assist me in deserialsing below JSON.I tried a wrapper class which provides an error 'Expected FromJSON.cls_results but found '14.0.0.0''  {     "d": {         "GetContextWebInformation": {             "__metadata": {                 "type": "SP.ContextWebInformation"             },             "FormDigestTimeoutSeconds": 1800,             "FormDigestValue": "0x285C94C29511393CC2F7B0856ED2301AF583B245C1AB8FA0E44A163B26048B9F9A9AF5C87413B5B86D2106080F8CD1C8D7B39E0CC5D6CAEA3D832EC5C728EBEF,23 Aug 2019 05:16:57 -0000",             "LibraryVersion": "16.0.19214.12028",             "SiteFullUrl": "https://o365coe.sharepoint.com/sites/dms",             "SupportedSchemaVersions": {                 "__metadata": {                     "type": "Collection(Edm.String)"                 },                 "results": [                     "14.0.0.0",                     "15.0.0.0"                 ]             },             "WebFullUrl": "https://o365coe.sharepoint.com/sites/dms"         }     } }   apex class used:  global class fromJSON{     public cls_d d;     class cls_d {         public cls_GetContextWebInformation GetContextWebInformation;     }     class cls_GetContextWebInformation {         public cls_metadata metadata2;         public Integer FormDigestTimeoutSeconds;    //1800         public String FormDigestValue;  //0xCC57C215BF3F6BC877697A3FB0FECA71BB10E08D25B5C8428988EBE7C73078F78DDCD30D98B4D81ED8E782AE59CD342E5DDB72A1398BD923D356C3827F37B95D,22 Aug 2019 09:11:35 -0000             public String LibraryVersion;   //16.0.19214.12024         public String SiteFullUrl;  //https://o365coe.sharepoint.com/sites/dms         public cls_SupportedSchemaVersions SupportedSchemaVersions;         public String WebFullUrl;   //https://o365coe.sharepoint.com/sites/dms     }     class cls_metadata {         public String type; //Collection(Edm.String)     }     class cls_SupportedSchemaVersions {         public cls_metadata metadata1;         public cls_results[] results;     }     class cls_results {         public String value;     }     public static fromJSON parse(String json){         return (fromJSON) System.JSON.deserialize(json, fromJSON.class);     }   }


Voltage inside a Cylindrical Capacitor - Dealing With Signs

In my intro E&M class, we were given an example problem to determine the voltage within a cylindrical capacitor as a function of radius. A diagram of such a cylindrical capacitor is below.    The solution from my instructor is as follows.     Let the outer surface be denoted by "a" and the inner surface be denoted by "b". So, we have   $$\begin{align}\Delta V & = V_b - V_a\\ &= -\int_{r_a}^{r_b} \vec{E}\cdot\text{d}\vec{s}\\ &= -\int_{r_a}^{r_b}E\cos\theta\text{ d}s\end{align}$$   Now we note that $\cos\theta = -1$ in this case and then make the substitution $\text{d}s = - \text{d}r$.   $$\begin{align}\Delta V &= -\int_{r_a}^{r_b}E\cos\theta\text{ d}s\\&= \int_{r_a}^{r_b}E\text{ d}s\\&= -\int_{r_a}^{r_b}E\text{ d}r\end{align}$$     When we actually substitute in the expression for the electric field as a function of $r$, we get the correct answer. However, my concern with this solution is in the nature of the order of substitution.   When I approached this problem, instead of first making a substitution for $\cos\theta$, I first made the substitution $\text{d}\vec{s} = -\text{d}\vec{r}$. To me, this vector substitution made more sense than the scalar substitution of differentials since this would be more indicative of the opposite direction between the "direction of integration" and the radial vector.   So, using this approach, we get  $$\begin{align}\Delta V & = V_b - V_a\\ &= -\int_{r_a}^{r_b} \vec{E}\cdot\text{d}\vec{s}\\ &= \int_{r_a}^{r_b}\vec{E}\cdot\text{d}\vec{r}\\&= \int_{r_a}^{r_b}E\cos\theta\text{ d}r\end{align}$$ Now, since the differential radial vector and the electric field are parallel, $\cos\theta = 1$, so we get  $$\begin{align}\Delta V &= \int_{r_a}^{r_b}E\cos\theta\text{ d}r\\&=\int_{r_a}^{r_b}E\text{ d}r\end{align}$$ This is the negative of my instructor's solution, which obviously leads to the wrong solution. Where do I go wrong? Why can I not simply reverse the order in which my teacher makes substitutions?


Python newbie here. I've searched quite a bit for a solution to this but nothing quite fits what I need. I would like to allocate an empty array at the start of my program that has a rows and b columns. I came up with a solution but encountered an interesting problem that I didn't expect. Here's what I had:  a = 7 b = 5 array_ab = [['?'] * b] * a   which produces  [['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?'],  ['?', '?', '?', '?', '?']]   However, if I try to change a single element, it treats every row as the same object and effectively changes the entire column to that element. So for example  array_ab[4][2] = '1'   produces  [['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?'],  ['?', '?', '1', '?', '?']]   Clearly I need a better way to create the blank array than by multiplication. Is there a solution to this in python? (It was so simple in FORTRAN!)


When i add Modifier "subdivision surface" it will happen.Don't know why..   [![enter image description here][3]][3]


if the curvature is constant and positive, then it is on the circunference

I'm trying to prove that if $\alpha(t)=(x(t),y(t))$ is a $C^2$ regular curve $(\alpha'\neq0)$ with constant and positive curvature, then $\alpha$ is on the circunference and if $\alpha$ is the circunference, then its curvature is constant.  I solved the second part since $\alpha$ is the circunference, then $\alpha(t)=(r\cos\theta,r\sin\theta)$, so $|\alpha'(t)|=r$, I need help in the first part.  Thanks a lot.


How to correctly display 2 decimals in Javascript?

There is a problem on my site. My price on things is displayed with two decimals after dot, for example 1.12, when i select a lot of positions, the total price becomes 14.619999999999997, this is all displayed through the JS. How can I limit so that 2 characters are displayed after the dot? To make it all readable, for example 15.77  My code:  function click() { $('.de .item').click(function() {     var i = parseFloat($(this).attr('data-id'));     var price = parseFloat($(this).find('.price').find('b').text());     if($(this).hasClass('active')) {         delete(items[i]);         $(this).removeClass('active');         cost -= price;     } else {         items[i] = {             classid : $(this).attr('data-classid'),             assetid : $(this).attr('data-assetid')         };         $(this).addClass('active');         cost += price;     }      $('#total_cost').text(cost);     $('#skins_selected').text(getCount(items)); }); }   Responsible for the conclusion of the total price $('#total_cost').text(cost);  I try this method $('#total_cost').text(cost).toFixed(2); it doesn't want to work. And i try $('#total_cost') = parseFloat(text(cost)).toFixed(2); it doesn't work too.  How can I make the output correctly?


Show $\text{det}(A)$ is divisible by $2^{n-1}$

Let $A_{n \times n}$ be a $n$ by $n$ matrix with all entries equal to $\pm 1$. I want to show $\text{det}(A)$ is divisible by $2^{n-1}$. How can I appraoch this?


How can I disable "Are you sure you want to leave this page" popups in Chrome?

Is there a way to disable the Are you sure you want to leave this page? message on a website? I'm using Chrome.


Use array as constructor for array of classes

I've been trying to get this working for far too long. I am to use an array of strings to construct an array of "sentence" classes by using the string as part of the constructor. Can anyone help me out?     public class FileConverter {  private final String input; private final String output; private boolean inputEncrypted; private ArrayList<Sentence> y;  public FileConverter(String input, String output, boolean inputEncrypted) {                     this.input = input;     this.output = output;     this.inputEncrypted = inputEncrypted; }  // this method creates an array of sentences from input public boolean readInput() {     String[] x = input.split("\\.");             for(String x1:x){        Sentence a = new Sentence(x1);         y.add(a);    }     return false; }   y.add(a) is giving me a null pointer exception. I've tried a few different ways to do this and I can't seem to figure it out.


How do I show that the subgroup $H_2=\{\text{id}, (1\quad 2)(3\quad 4),(1\quad 3)(2\quad 4),(1\quad 4)(2\quad 3)\}$ is normal in $S_4$?  The tip that I got was to use the fact that for every $\tau\in S_4$ and every k-cycle $\sigma=(x_1\quad x_2\quad...\quad x_k)\in S_4$ we know that $\tau\sigma\tau^{-1}=(\tau(x_1)\quad\tau(x_2)\quad...\quad\tau(x_k))$. But I don't see how.


In what context are residuals from a plot important?

I have a plot that has residuals vertically dashed to the regression line. I also am using the function resid to derive all residuals. I am not entirely sure what good is finding residuals. Someone please explain and show an example.  library("MASS")     # data survey              # data  plot(survey$Height ~ survey$Wr.Hnd, xlab = "Writing Handspan (cm)", ylab = "Height (cm)")  survfit <- lm(Height ~ Wr.Hnd, data = survey) survfit  abline(survfit, lwd = 2) resid(survfit)    # residuals  obsA <- c(survey$Wr.Hnd[197], survey$Height[197]) obsA  obsB <- c(survey$Wr.Hnd[154], survey$Height[154]) obs  mycoefs <- coef(survfit) mycoefs  beta0.hat <- mycoefs[1] beta1.hat <- mycoefs[2]   segments(x0 = c(obsA[1],obsB[1]),           y0 = beta0.hat + beta1.hat * c(obsA[1], obsB[1]),          x1 = c(obsA[1], obsB[1]), y1 = c(obsA[2], obsB[2]), lty = 2)  # residual dashed vertical line


When the displayAll() button is pressed I receive a NullPointer at both the append method in the first and when the first method is called in the second. the code should cycle through the array and print each name and mark to the text field. when done it should show the average mark. Because of the error the  average is not outputted and so I need some help to understand why an error is occurring.  private void printStudentNameAndMark() {      displayTextArea.append(String.format("%-29s%-17s%9s\n",markArray[currentStudent].getStudentName(), markArray[currentStudent].getStudentMark(), markArray[currentStudent].getGrade(markArray[currentStudent].getStudentMark())));  }   private void displayAll() {     displayHeading();      for(currentStudent = 0; currentStudent < MAX_STUDENTS; currentStudent ++) {         printStudentNameAndMark();         average += markArray[currentStudent].getStudentMark();     }     appendLine();     displayTextArea.append(String.format("%-29s%2d\n", "Average mark: ", average));      // TODO -- complete error message code }   Here's the error I receive  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at Assignment2.MarksGUI.printStudentNameAndMark(MarksGUI.java:149)     at Assignment2.MarksGUI.displayAll(MarksGUI.java:167)     at Assignment2.MarksGUI.actionPerformed(MarksGUI.java:106)     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)     at java.awt.Component.processMouseEvent(Unknown Source)     at javax.swing.JComponent.processMouseEvent(Unknown Source)     at java.awt.Component.processEvent(Unknown Source)     at java.awt.Container.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Window.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)


wp_query not returning results on tax_query

Here is code to start the question  function myfunction(){     global $wpdb;      $search_string = urldecode($_REQUEST['s']);      var_dump(get_term_by('name',$search_string , 'gift_tag' )); //This fine the Query by name just fine.       $args =array('post_type' => 'gift',                 'posts_per_page'=> 14,                 'post_status' => 'publish',                 'paged'=>$p,                 'orderby' => 'meta_value_num',                 'meta_key'=>'popularity',                 'order' => (isset($_REQUEST['order'])?$_REQUEST['order']:'ASC')         );     $args['tax_query'][] = array(                 'taxonomy' => 'gift_tag',                 'field'    => 'name',                 'terms'    => $search_string             );      $q= new WP_Query($args);     var_dump($q->request);  //This returns no Results, as it include 0=1 in place of tax query.  }   the above function expect Query String parameter s in Hebrew gift_tag name and when I use that in get_term_by function it found the Terms just fine, but when use same name in tax query it doesn't find the said taxonomy and hence adding 1=0 wordpress' famous way of ignoring all results.   The behavior is restricted to terms that include ' Hebrew characters for any word that doesn't contain that single quote mark in hebrew or english returns results perfectly.   too me, it looks like that it is some sort of bug in Wordpress that is failing to properly filter character in WP_Query.   Any idea what else might be wrong in above code.


let $f: J \to \mathbb{R}$ . let $x_n < c <y_n$ be such that $(y_n-x_n) \to0$ show that $\lim _ {n \to \infty} \frac{f(y_n)-f(x_n)}{y_n-x_n}=f'(c)$

let $f: J \to \mathbb{R}$ be differential function . let $x_n < c <y_n$ be such that $(y_n-x_n) \to0$  show that     $$\lim _ {n \to \infty}  \frac{f(y_n)-f(x_n)}{y_n-x_n}=f'(c)$$   i am trying to apply Mean value theorem on $f$ on the interval $[y_n,x_n]$.this gives   $$\frac{f(y_n)-f(x_n)}{y_n-x_n}=f'(\theta_n)$$  Now as $n$ goes to infinity $\theta_n \to c$. but $f'$ is not given to be continuous.if that was given then  we had done.  But how to approach this problem  since $f'$ is not given to be continous . Any Hint.


Adobe illustrator, arrowhead in the middle of a line

I'm new to Illustrator, I was going to create some schematics with lines that have arrowhead in the middle, indicating the flow of liquid or gas.  I found the options to add arrowhead to either the start or the end of the line, but no option for the middle of the line.  I learned that an additional anchor point may help, but I don't know what to do next.  Any help is appreciated.


Is there a way to disable smooth transition on key-frame animation in Blender?  Lets say I have a character modeled in Blender and now wish to animate it. I want this character to have really bizarre spazz-like animation that doesn't seem realistic.  So I'd like this characters arm to 'teleport' between frames. From up to down and so on. Right now, the key-frame system forces the hand to transport visibly to the location.  This also would open doors for animated textures as changing image on object using AnimAll add-on.


Cross-Level-Interaction without varying slope in Multilevel

Is it useful to include cross-level-interaction in multilevel (hierarchical) models without varying slopes (only varying intercept)?  A short example in R:  m1 <- lme(y~x_1+x_2+z_1+z_2+x_1:z_1, random = ~1|county, data = data)   Where:  y = Response variable  x = covariate from individual-Level  z = covariate from group-Level   Technically these models can be fitted in R without warnings. But is it useful from a theoretical point of view? I once read that cross-level-interactions are only possible with individual-Level variables that possess a varying slope. Is that correct?


We have recurring donations that are able to be "cancelled" (meaning to cease its continued billing, not delete it from the interface). There is a button on our interface called "Cancel". When they hit the button, they get this dialog:    One of our users reported this to us:     I inadvertently canceled a gift. The popup had 2 choices: Cancel or Close. I thought Cancel meant cancel this operation - a little ambiguous.   What options/wording would be less ambiguous and more clear to the user?


Front Disc Brake not braking to it's full potential

Today, I got a new disc for my front Clarks Hyrdaulic brake. Before the change, whenever I pressed my front brake, I could almost do a front flip but that's only if I pressed it fully. Now, when I press it fully, the lever goes all the way down but it feels like the tyre should stop but instead, it goes for slightly longer. It's almost as if there's grease on my brake pads but I know that's not the case.  So my question is, why did replacing the front disc cause my front brake to lose effectiveness? Do I need to wait it out cause it's a new disc or?


What are these purple pixels on my Canon 60D and how do I get rid of them?

I bought this used Canon 60D for a reasonable price, however, I get these purple pixels in the top right of my image. Even though I can work around it, it is very annoying. I've tried a lot of ways to fix it, like manual cleaning. I am trying to find another alternative than having to send my camera to Canon, as I don't have too much money to spend on repairing or a new one.    Thanks in advance for any help!  Here's a full image.   Here's a crop of the affected area.


Is there a way to iterate on all Drupal modules on d.o?

I'd like to iterate on all contrib modules, pull their repos and extract information (such as drush commands, graph dependencies, etc.)  Is there a way to list all modules, other than scraping ?


I'm doing a stepcounter that save stats and resets the counter when the date is changed

This app crashes on launch, more specifically in the getAllData method, I'm recieving this error, im att loss, what to do?  Attempt to invoke virtual method 'android.database.Cursor com.example.arman.yourstep.DatabaseHelper.getAllData()' on a null object reference   here is the broadcastreceiver class  public class MyBootReceiver extends BroadcastReceiver {  @Override public void onReceive(Context context, Intent intent) {      if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {         Intent i = new Intent(context, MainActivity.class);         i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);         context.startActivity(i);     }else  if(intent.getAction().equals("android.intent.action.DATE_CHANGED")){         StatsActivity sa = new StatsActivity();         sa.newday();     } }   }  here is the mainactivity class  public class MainActivity extends AppCompatActivity implements SensorEventListener{   private StatsActivity sa;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);     count = (TextView)findViewById(R.id.count);     sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);      sa = new StatsActivity();   @Override public void onSensorChanged(SensorEvent event){     if(activityWalk){         count.setText(String.valueOf(event.values[0]));         steps = event.values[0];         sa.newStep();      }     if (event.values [0] == 10000){         notificationManager.notify(1337,builder.build());     }  }   here is the statsactivity class that holds the stats  public class StatsActivity extends AppCompatActivity  { private TextView avgStep, totalStep, meterStep; private int steps,days; private DatabaseHelper dBase;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_stats);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);     dBase = new DatabaseHelper(this);      getStats();      avgStep = (TextView)findViewById(R.id.avgCount);     totalStep = (TextView)findViewById(R.id.totalCount);     meterStep = (TextView)findViewById(R.id.meterCount);      float meter = new Float(0.762);      meterStep.setText(Float.toString(steps * meter));     totalStep.setText(Float.toString(steps));     avgStep.setText(Float.toString(steps / days)); }  private void getStats(){     Cursor result = dBase.getAllData();     if (result.getCount()==0){         //Make error handling     }     try {         days = result.getInt(0);   //here is where i crash         steps = result.getInt(1);     }catch (Exception e){         Log.d("db", e.getMessage());     }     result.close(); }  public int getDays(){     getStats();     return days; }  public int getSteps(){     getStats();     return steps; }  public void newday(){     getStats();     days++;     dBase.insertData(days, steps); }  public void newStep(){     getStats();     steps++;     dBase.insertData(days, steps); }   }  hopefully someone can see what I'm doing wrong.


Sum of series $\frac {4}{10}+\frac {4\cdot7}{10\cdot20}+ \frac {4\cdot7\cdot10}{10\cdot20\cdot30}+\cdots$

What is the sum of the series  $$\frac {4}{10}+\frac {4\cdot7}{10\cdot20}+ \frac {4\cdot7\cdot10}{10\cdot20\cdot30}+\cdots?$$  I know how to check if a series is convergent or not.Is there any technique to find out the sum of a series like this where each term increases by a pattern?


Enthusiast or Fanatic badge using the Android app

Just out of curiosity I was wondering, can a person log-in or visit TSE using the  Android app and still it would count as a day visited for these badges?  Or does one have to explicitly visit the webpage only?


Proof verification: the product of two continuous functions is continuous

Prove that if $f, g$ : $X$ → $\mathbb R$ are continuous at $a$ ∈ $\mathbb R$, then $f · g$ is continuous in $a$.  If $f$ is continuous at $a$, then $∀ε_f > 0, ∃δ_f > 0$ such that  $|x-a| < δ_f$ iff $|f(x) - f(a)| < ε_f$  and if $g$ is continuous at $a$, then $∀ε_g > 0, ∃δ_g > 0$ such that  $|x-a| < δ_g$ iff $|g(x) - g(a)| < ε_g$.  Now make $|f(x)g(x) - f(a)g(a)|$ =  $|f(x)g(x) - f(x)g(a) + f(x)g(a) - f(a)g(a)|$ $≤$  $|f(x)||g(x)-g(a)| + |g(a)||f(x)-f(a)|$ < $ε_f|g(a)| + ε_g|f(x)|$. (1)  Notice that if $|f(x) - f(a)| < ε_f$ then $|f(x)| - |f(a)| < ε_f$, so $|f(x)| < ε_f + |f(a)|$.  That implies, from (1): $|f(x)g(x) - f(a)g(a)| < ε_f|g(a)| + ε_g(ε_f + |f(a)|) = ε_f(|g(a)| + ε_g|f(a)|)$.  Now I'm a little lost. From the proofs I've seen, it seems to me that I could simply take $δ = min(δ_g, δ_f)$. Also, since $ε_f$ and $ε_g$ can be made as small as one wants, there will be some δ that satisfies the conditions for continuity. But from what I read, I should explicitly show a δ in terms of ε. Anyway, I reasoned that since $f$ and $g$ are continuous, I can make bounds on $x$ symmetrically* as done to $f(x)g(x)$ and got the following:  δ = $δ_f(|a| + δ_g|a|)$ = $δ_f|a|(1 + δ_g)$  so:  $|x-a| < δ_f|a|(1 + δ_g)$ iff $|f(x)g(x) - f(a)g(a)| <  ε_f(|g(a)| + ε_g|f(a)|)$   I need to clarify/better define this, but it is basically the notion that making the same operations I made on the bounds of $f(x)g(x)$ in relation to the bounds of $f(x)$ and $g(x)$ individually over the bounds of $x$ for each function, should leave me with the adequate bounds for $x$ on the composite function.


Can a RAID 10 array be transferred from a Windows box to a Synology (or other) enclosure?

Currently I'm debating about whether I want to use a spare workstation running Windows 10 and turn that into the enclosure for a 4x6TB RAID 10 array since it has decent hardware specs or wait until there's room in the budget to purchase a dedicated NAS enclosure from Synology or some other vendor if what I want isn't possible as I would have to reformat/re-array for the enclosure. I know there is some difficulty with software <-> hardware driven array migrations according to this Q&A from '09:    However given 7 years have passed and the rise of NAS storage for small business I was wondering if things have changed and if it's possible to have the RAID 10 initially set up in a spare workstation to use now and then migrate the RAID array and it's data w/o issue to a dedicated NAS enclosure from Synology et al when there's more money so that I can then free up the workstation again.


How can i pass an argument on my evenlistener without it firing the function when the page loads?

I have a three way toggle that I want to create and when the user clicks on option, I want to show which option they have selected (and move the selector div to show this)  So therefore, each choice has an event listener:   document.getElementById("option1").addEventListener("mouseover", UIController.changeSelection("option1")); document.getElementById("option2").addEventListener("mouseover", UIController.changeSelection("option2")); document.getElementById("option3").addEventListener("mouseover", UIController.changeSelection("option3"));   Which will then call the changeSelection function:    changeSelection: (function(choice) {         var option1 = document.getElementById("option1");         var option2 = document.getElementById("option2");         var option3 = document.getElementById("option3");         var selector = document.getElementById("selector");         if (choice === "option1") {             selector.style.left = 0;             selector.style.width = option1.clientWidth + "px";             selector.style.backgroundColor = "#777777";             selector.innerHTML = "Option 1";         } else if (choice === "option2") {             selector.style.left = option1.clientWidth + "px";             selector.style.width = option2.clientWidth + "px";             selector.innerHTML = "Option 2";             selector.style.backgroundColor = "#418d92";         } else {             selector.style.left = option1.clientWidth + option2.clientWidth + 1 + "px";             selector.style.width = option2.clientWidth + "px";             selector.innerHTML = "Option 3";             selector.style.backgroundColor = "#4d7ea9";         }     })   However by adding the ()'s to my event listener, it fires the function straight away and then doesn't work again afterwards.   How can I pass the function a parameter when using an EventListener?  Thanks guys!


I have a PDOStatement with bind parameters like that:  $stmt = $co->prepare("SELECT * FROM Person WHERE age=:age"); $stmt->bindValue(':age','18',PDO::PARAM_STR);   Now I want to get the actual SQL query that gets executed:  SELECT * FROM Person WHERE age=18   I already tried print_r($stmt);, but it only prints out the same text that I put in the prepare() method, i.e. the 18 is not inserted in the query.  I also tried this solution $stmt->debugDumpParams();, but still, it doesn't give the value of the given parameters.  Putting voluntarily an error in the query and printing the error's message is the closest I got to the solution:  $stmt = $co->prepare("ELECT * FROM Person WHERE age=:age"); //I removed the 'S' of 'SELECT' $stmt->bindValue(':age','18',PDO::PARAM_STR); try {     $stmt->execute(); } catch (PDOException $e) {     echo $e->getMessage(); }   Standard ouput:  Error!: [...] near 'ELECT * FROM Person WHERE age=18' at line 1   But the problem with this method is that it only prints the first 80 characters of the query. Obviously in my query it works well, but I want to work with longer queries.  Thank you for your help.


The order of my citations in my original document text is messed up. For example, my text is like this: Hello World is the best program \cite{helloWorld} and I use Latex \cite{latex}..... ....this is a new feature \cite{new}  while the citations are like this: Hello World is the best program [11] and I use Latex [8]..... ....this is a new feature [1]  and then in the .bib file I have some citations: @article{speech,     author    = "name",     title     = "Title",     pages = "13", }  The citation where it shows [1] in the document is the one that I typed into my .bib file before typing anything else. However, now I have fixed the order of all citations in my bib file and arranged them in the order of how they should appear in the text. But still, they aren't appearing from number 1 in the beginning. How can i fix this? I have already tried recompling overleaf many times. \usepackage[style=numeric,language=english, maxbibnames=99, giveninits=true]{biblatex} ... \addbibresource{sample.bib} ...   %\bibliographystyle{unsrt} \bibliographystyle{ieeetr}   %\bibliography{sample}   \printbibliography  \end{document}


A calculus problem with functions such that $f''(x) = g(x)$ and $g''(x) = f(x)$

Let:   $f(x)$ and $g(x)$ be twice differentiable, non-decreasing functions.  $f''(x) = g(x)$ and $g''(x) = f(x)$. $f(x) \cdot g(x)$ is a linear function.    Then we have to show that $f(x) = g(x) = 0$.  I am really not able to do anything useful, any help would be appreciated :)


Find $\lim_{n\to\infty}2^n\underbrace{\sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt2}}}}_{n \textrm{ square roots}}$.

Find $\displaystyle \lim_{n\to\infty}2^n\underbrace{\sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt2}}}}_{n \textrm{ square roots}}$.   By geometry method, I know that this is $\pi$. But is there algebraic method to find this ?   Thank you.


The common usage I have been exposed to is that punctuation should only be in a quotation if it’s contained in the original source. So what if your quotation ends in a period and your quotation is also the end of your sentence. Do you need two periods?   I asked my son to visit his grandma; however, he said, “No, I won’t go.”.    Is the above correct?


How to save JSON response from browser into python variable or file

I am a newbie to python and api queries. However, I am learning python automation in the process. Request your kind help here. I have a SonarQube API call through which I fetch some metrics or values as a JSON response on my browser. I read that curl or through requests module in python, we would be able to download the response into a variable or file. How much ever I try, I am not able to do through a program. Right now, I am hard coding it in a variable and proceeded with my next steps. Can someone help me here. Query I use: https://sonar.com:9000/sonar/api/measures/component?component=abcdef&branch=test&metricKeys=ncloc  I get JSON response like this on the browser:   "component": {     "id": "AXK4GYajYOT4RM44Ji",     "key": "abcdef",     "name": "test",     "qualifier": "TRK",     "measures": [       {         "metric": "ncloc",         "value": "100000"       }     ],     "branch": "test"   } }  My intention is to store all of this in a python variable.


As you can see on the picture it always create another file. I have no idea what this file is for. Also strange is that it is not called Blender File but Blend1 File. Thanks for our help.


Is there any way to block spam in Google Drive?

I am getting unwanted spam in the "Shared with Me" section of my Google Drive. Is there any way to disconnect that portion of the Drive or block the spam?


Using CentOS 6.5, there's a file in my directory whose name is 161 characters. This directory is shared between the host VM (Windows) and Guest VM (Vagrant).  I can't access it with ls:  > ls long...file ls: cannot access : No such file or directory   I'm speculating that this long file name may be the reason for my build clean-up process may be failing.  Also, when I ls -lrot the directory containing the file, I see a bunch of question marks, ???.  What options do I have to clean up this file?


When to book a flight for a faculty interview?

A friend of mine got an invitation for an interview late April, so he was thinking should he book the flight now, or wait until last few days, in case he was invited for another interview. However, waiting until last 4-5 days would increase the ticket price and in worst case may not have any seats available.


Beta regression of proportion data including 1 and 0

I am trying to produce a model for which I have a response variable which is a proportion between 0 and 1, this includes quite a few 0s and 1s but also many values in between. I am thinking about attempting a beta regression. The package I have found for R (betareg) only allows values  in between 0 and 1 but not including 0 or 1 them selves. I have read elsewhere that theoretically the beta distribution should be able to handle values of 0 or 1 but I do not know how to handle this in R.I have seen some people add 0.001 to the zeros and take 0.001 from the ones, but I am not sure this is a good idea?  Alternatively I could logit transform the response variable and use linear regression. In this case I have the same problem with the 0 and 1's which cannot be log transformed.


I'm trying to plot some figures from databricks , but can't seem to control the figure size . All the commented-out stuff doesn't do the trick , possibly as the plot is wrapped by 'display'.  import matplotlib.pyplot as plt f, axes = plt.subplots(2,1) axes[0].hist(deltas,bins=200,log=False)  axes[0].set_title('hist') axes[1].hist(deltas,bins=200,log=True) axes[1].set_title('loghist') plt.xlabel('epochtime') #plt.figsize=(30,10) #plt.figure(figsize=(30,30)) #plt.show() #f.figsize=(30,20) display(f,figsize=(30,20))   Anyone have the magic?


Convergent or divergent $\sum_{n=1}^{\infty} \frac{e^nn!}{n^n}$?

Any suggestion/hint, not the whole solution, how to determine convergence/divergence of $$ \sum_{n=1}^{\infty}\dfrac{e^n \cdot n!}{n^n} $$ I'm currently stuck.


Is "National Socialism" always capitalized?

So, I'm writing a paper on the rise of communism in China. At one point I write the following:     "Today, it is well known that communism is responsible for more deaths than even national socialism."   Then, Word corrects it by capitalizing "National Socialism."   Is it always meant to be capitalized? I am simply referencing the ideology, not necessarily the Third Reich. Word didn't bother to correct "communism." I suppose since there was only one instance of Nazism (on a national scale at least) it could be considered a proper noun.


Is it possible to access the Catalog window programmatically in ArcMap?

Specifically, I would like to get the selected object, similar to the way you do in ArcCatalog through IGxDialog.SelectedObject.    Is there a way to do this?     So far I can get the Catalog DockableWindow but am stumped from there.


How to copy files from multiple directories?

I have a bunch of text files in several directories I want to copy into another. What can I do, instead of going inside each directory and cp *.txt in this directory?


Separators for author group (IF conditon)

I am new to LaTeX, just a beginner, basically a Perl developer.  I have created a LaTeX file  \begin{document}  \cont{\iname{\isurname{Name1}\ifname{K. C. G.}}\iname{\isurname{Name11}\ifname{Y. Q.}}\iname{\isurname{Name111}\ifname{C.-Z.}}\ititles{Some title Text}\ipage{995}}  \end{document}   Now my need is to define LaTeX commands so that the output should appear as below     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   \iname - Person Name will repeat several times \isurname - Surname of a person \ifname - First Name of a person    \iname will repeat any number of times, say 1 to ...  If only one \iname found inside \cont, display should be like the below     Name1 K. C. G. Some title Text - 995.   If only two \iname found inside \cont, display should be like the below     Name1 K. C. G. and Name11 Y. Q. Some title Text - 995.   If more than two \iname found inside \cont, display should be like the below (and should come after last \iname)     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   I can define input for \iname separated by commas, but I don't know how to write a macro to define \iname with different outputs based on the if condition.  I hope to have clearly explained my doubt.


How useful/important is French in Montreal?

I'm going to be in Montreal for several weeks-months for work this fall. I don't speak a word of French. It's my understanding that Montreal is the primary anglophone enclave for Quebec and that English is widely spoken. I've also been told that once you get outside of the Montreal metro area, English fluency drops off considerably.  My concerns are twofold:   While I'm not concerned with people not speaking English in, say, bars and restaurants and convenience stores, I am a little worried about getting yelled at angrily in French while working in an outer suburb and not having any clue how to respond. (I work in public spaces, and drive a vehicle with a graphic wrap from my employer that attracts attention, both positive and negative). Alternately, I tend to like local dive bars and off the beaten track restaurants that might not be used to catering to travelers. Should I be concerned? I understand that the city proper will be fine, but I'm wondering just how far out from the city that advice remains useful. Would it be useful for me to try to learn some rudimentary French before going? Would it make a difference? Or just be wasted effort. I do know enough to know that Parisian french is just different enough to be of reduced helpfulness.


I'm looking for some input on how to implement custom eventhandling in jquery the best way. I know how to hook up events from the dom elements like 'click' etc, but I'm building a tiny javascript library/plugin to handle some preview functionality.  I've got a script running to update some text in a dom element from a set of rules and data/user input I got, but now I need that same text shown in other elements that this script can't possibly know of. What I need is a good pattern to somehow observe this script producing the needed text.  So how do I do this? Did I overlook some builtin functionality in jquery to raise/handle user events or do I need some jquery plugin to do it? What do you think is the best way/plugin to handle this?


I am an novice.  I want to draw this picture   But I meet a problem  I found a heart outline image from the internet and dropped on my ps file. When I was trying to fill this heart with a pure color, it becomes something like this


It seems that $(a+b)^\beta \leq a^\beta +b^\beta$ for $a,b\geq0$ and $0\leq\beta\leq1$. However, I could not prove this nor the same result for a general concave and increasing function (for which it might not hold). If the inequality is true, does it follow from some general inequality or is there some other simple proof?


Can I easily travel in Italy by bus/train without any prior reservation?

I am planning a trip to Italy this coming January. My plan is to land by plane in Roma and then go to France by train/bus stopping in some Northern Italian cities on the way, enjoying the architecture, the atmosphere, the art and and the food.   I want to do it at my own pace, without heavy scheduling. Ideally, I would just decide which cities to visit, and take a train whenever I feel it. I often do this here in South Korea where I am living, taking advantage of the "standing seats" as it is called here, that is travelling (for a cheap price and no reservation) standing on the romm between two cars. From my experience, it is also doable in Taiwan (at least in some trains).  In France, regional trains usually does not need any reservation, so you can buy a ticket and take the train whenever you want.  Can I expect a similar system in Italy, that is a way to make short travels between close cities without reservation?   Example of "short travel": Pisa - Firenze.


Add optional box for spam flags letting you say why you think it's spam

, where a user had taken the time to look at the link on a post and realized that the post wasn't just off-topic, it was actually half-decently-disguised spam. So he flagged it as spam, and an overworked mod declined it, giving the questioner the benefit of the doubt. And we probably want mods to be giving the questioner the benefit of the doubt.  We also want to get rid of spam ASAP, and make the lives of mods easier. I'd like to suggest a feature the mod in question mused might be useful: An optional textbox where you can add a note saying why you think it's spam, so the mod can see it easily. In this case, the helpful user who went the extra mile could have written "Site linked doesn't relate at all to the question, instead solicits BitCoins" or similar.  One can leave a comment on the question, but:   People sometimes leave...unhelpful...comments on spam questions, and we don't want mods to have to take the time to read through them hoping for something useful It allows the user flagging the spam to do so and say why without calling attention to themselves publicly     Update: We may well want this for all flags, but in particular I had reason to want it for an NAA flag, so I've posted .


Is there non-trivial subset in real line that is both open and closed?

Or can we prove if A is both open and closed in the real line then it is empty or the whole line? Assuming the standard topology.


How do I get lightning:datatable to do some undocumented thing X?

Canonical Question  I want to do <some really cool thing> with a lightning:datatable, but I can't seem to figure out how to do it. I checked the , but I did not see a way to implement <this really cool feature I need>.  Perhaps I want to provide tooltips, or a pick list, or alter the behavior of the menus, or display images, or show a custom component I created, or define a new row-level click behavior, or alter the keyboard event handlers, etc.  Can I somehow do this?


I'm working on a program that automatically re-posts Craigslist posts in a batch form.  I'm executing a method called arrayTest() that contains a line webBrowser1.Navigate(urls[i]);. This will get a URL from an Array and have the webBrowser1 open it. After that is executed, the clickRepost(); method is called. This method simulates a button click. But the method executes before the webBrowser1 gets to finish opening the URL.  What i need help on is telling the program to wait for the webBrowser1 to finish opening the URL before moving on to the next method.  What i have tried so far:  Task t = Task.Run(() => {     webBrowser1.Navigate(urls[i]); }) t.wait(); clickRepost();   This still causes for clickRepost() to not let webBrowser1 finish loading the URL. I also tried to add System.Threading.Thread.Sleep(5000) in between calling methods but as it does so in Java, it only shuts the program for x-Seconds.  This is a segment of my program, really the only ones I'm having trouble with.  private void arrayTest()     {         String[] urls = CLLinks.Text.Split('\n');         for (int i = 0; i < urls.Length; i++)         {             log.AppendText("Opening Url...\n");             webBrowser1.Navigate(urls[i]);             log.AppendText("Reposting...\n");             clickRepost();             log.AppendText("Checking Completion...");             webBrowser1.Navigate(urls[i]);             completionCheck();         }     }      private void CLRenBtn_Click(object sender, EventArgs e)     {         arrayTest();     }      private void completionCheck()     {         HtmlElementCollection col = webBrowser1.Document.GetElementsByTagName("input");          foreach (HtmlElement item in col)         {             if (!(item.GetAttribute("value") == "Renew this Posting"))             {                 log.AppendText("Renew Posting does not exist");             }             else             { }         }     }      private void clickRepost()     {         HtmlElementCollection col = webBrowser1.Document.GetElementsByTagName("input");          foreach (HtmlElement item in col)         {             if (item.GetAttribute("value") == "Renew this Posting")             {                 item.InvokeMember("click");             }             else             {}         }     }   CLRenBtn_Click Is the button i press on the form to start the Re-posting. arrayTest() will be changed to a more relevant name. At the time i was just testing whether this would work. And im planning on merging clickRepost() and completionCheck() since they do the same thing.  Many thanks in advance!


Let $A$ be an $n \times n$ matrix such that $A^2 = I$ and $A \neq I$. Show that $A$ is diagonalizable.   So far I tried multiplying both sides of the first equation by $P$ and by $P^{-1}$, but I don't know how to proceed from there.


How do I sort a list which is composed of dictionaries?

I am trying to sort a list which has 3 dictionaries.  l = [     {'Index': 3},     {'Index': 1},     {'Index': 2} ]  sorted(l, key=lambda l:l['Index'])  print(l)   what I expected for answer is   [{'Index': 1}, {'Index': 2}, {'Index': 3}]   but the actual answer is  [{'Index': 3}, {'Index': 1}, {'Index': 2}]   where should I fix the code for the answer?


How to force refresh without cache in Google Chrome?

Does Chrome have an equivalent to Firefox's Ctrl+F5 refresh? I can't seem to find one.  I changed my gravatar last night, and I can see the new one in Firefox after a Ctrl+F5 refresh, but Chrome seems to be stubbornly hanging on to the old Gravatar. I guess I could manually clear out the cache, but if there is a keyboard command to do it I'd like to know what it is (since it would be helpful for web development too).


Show that $ \left( 1 + \frac{x}{n}\right)^n$ is uniformly convergent on $S=[0,1]$.   Given $f_n(x)=\left( 1 + \frac{x}{n}\right)^n$ is a sequence of bounded function on $[0,1]$ and $f:S \rightarrow \mathbb R$ a bounded function , then $f_n(x)$ converges uniformly  to $f$ iff  $$\lim\limits_{n \rightarrow \infty} ||f_n - f|| = \lim\limits_{n \rightarrow \infty}\left(\sup |f_n(x) - f(x)| \right)= 0$$  As $$f(x) = \lim\limits_{n \rightarrow \infty} \left( 1 + \frac{x}{n}\right)^n = e^x$$  We have   $$\begin{split} \lim\limits_{n \rightarrow \infty} \left\|\left( 1 + \frac{x}{n} \right)^n - e^x\right\| &= \lim\limits_{n \rightarrow \infty} \left|\sup_{x \in S}\left[\left( 1 + \frac{x}{n}\right)^n - e^x \right ]\right|\\ &= \lim\limits_{n \rightarrow \infty} \left|\left( 1 + \frac{1}{n} \right)^n - e^1 \right|\\ &= \lim\limits_{n \rightarrow \infty} |e-e| \\ &= 0 \end{split} $$  I am new to sequence. Is this appropriate to show convergence?  Going back to the definition, How can I show that:   "$f_n(x)=\left( 1 + \frac{x}{n}\right)^n$ is a sequence of bounded function on $[0,1]$"? $f:S \rightarrow \mathbb R$ a bounded function?


In conversation, I hear people say:     "Please recommend me a book."   Or:     "Recommend me a book, please."   They omit "to," as in:     "Please recommend to me a book."   Or variations thereof, such as:     "Please recommend a book to me."   And:     "Recommend to me a book, please."   Are all of the example sentences above grammatically correct?  Edit: No, the referenced question did not answer mine, because it it asks how to is interchangeable with that, which is a somewhat different question. My question is specifically about the usage of to.


I've read this already:   Recently I went on a mass retagging effort to clean up  from , so I'm not sure how many edits I have where I have edited something in addition to or apart from the post tags.  However, the progress meter on the review page seems to indicate that I have already earned the badge:    Yet I still have no gold badges. It says 515 here but under my revisions I see 723 so I assume that 208 of them are either pure retagging or multiple edits made to the same post (if that matters)?  Is this a bug in the progress meters and if so, is there a way to check my actual progress for the badge?


What is Salesforce1 and why/when would I use it?

I've seen a lot of mentions of  coming out of Dreamforce this year.   As a developer, what is it and why(or when) would I want to use it?  I get the impression it is a refinement of the chatter-mobile app with additional APIs and the primary idea is to provide mobile access to chatter, CRM and custom apps. It appears to natively target iOS and Android devices. Did I miss anything important? (I've picked this up from various twitter accounts so I could be off the mark here)    A couple of interesting URLs to come out of  to directly access Salesforce1 and the SalesforceA admin app in any browser.      /one/one.app    and      /one/admin.app


I am working on a project with multiple texture of different sizes for the same object. The textures have the correct scale in dpi.  I use a formula to calculate the UV scale of each texture. "pixel width of Texture" Divided by "DPI" Multiplied by "2.54" (inch to cm) Divided by "Width in cm of object's UV"  You gave me an answer using the MixRGB and Texture Cooridinate Nodes to create the vector. This is great for square textures.  What if the textures are rectangular. How do I create a vector with two input?    Thanks  EDIT  Not sure how to update the post. Just wanted to post the latest solution. This also resolves the issue of non uniform textures.    Basically, the first part gets the scale of the texture. (Math nodes) The second part scales the UV x and y axis. (Separate and Combine RBG)  Now i can input the dpi of the image, pixel height and width, and the UV dimension in cm. The textures all textures will be at the correct proportional.  I don't know the correct term for UV dimension in cm.


I've a question about upgrading my old Ubuntu 11.04 to the latest version. How can I do this without loosing my settings and data?


[I am stuck here]     I want to install Ubuntu alongside Windows Vista but all tutorials are too old, anyone knows what I have to do to keep all my files and keep Linux in the 20gb partition.  Can someone tells me how to do it or is there a new tutorial that you would suggest.  thanks


Removing Windows XP after installing Ubuntu by liveCD netinstall

I'm new to linux OS so forgive my noobiness.  I installed ubuntu 14.04 on my Windows XP computer as a dual partition using the netinstall mini.iso burned to a cd-r. I had issues with unity desktop running slow so I installed the Xubuntu desktop, everything runs great, I love it and now I want to completely remove all traces of Windows XP and have Xubuntu take over the 50GB of space Windows is currently occupying.  I read in another post that I can go to Settings-Disks, choose the Windows partition and delete it using the - button, then remove the grub so it removes the option for XP at startup.  My question then is, will this then give Xubuntu that 50GB to use or do I have to do this another way?  Any help appreciated, I want my 50GB back lol  Thanks  Jamie


My txt entry for my domain is as follows:  "v=spf1 a ip4:aspmx.googlemail.com ptr:aspmx.googlemail.com include:aspmx.googlemail.com -all"  I have also tried to use ptr in addition to a. However, I'm not sure I fully understand the difference between them. PTR seems to do a reverse lookup on the domain, whereas A simply references the A record in the zone file? The header response from Gmail is:  Received-SPF: unknown (google.com: domain of do-not-reply@example.com uses a mechanism not recognized by this client. unknown  mechanisms: )) Authentication-Results: mx.google.com; spf=permerror (google.com: domain of do-not-reply@example.com uses a mechanism not recognized by this client. unknown  mechanisms: )) smtp.mail=do-not-reply@example.com; dkim=neutral (no key) header.i=@example.com


How to Import the Font in xcode for Iphone Application

I am import the font in my app folder. Then i added font in info.plist file. Like..... Fonts provided by application--->add two font.  Then set the font to title.After create the UILabel to set the font. Like this   self.title = @"Home"; CGRect frame = CGRectMake(0, 0,100, 44); label = [[UILabel alloc] initWithFrame:frame]; label.backgroundColor = [UIColor clearColor]; label.font = [UIFont fontWithName:@"Benguiat Gothic" size:9]; label.textAlignment = UITextAlignmentCenter; self.navigationItem.titleView = label; label.text =self.title;   This code written in viewdidload method.  But the font is not changed.its appear only default font for that label.


Can I run a C function both with and without arguments?

Is it ok to leave the parameters unused? I'm trying to run the function like this:  void encoder(); void encoder(int argc, FILE* inputFP, FILE* outputFP);   Is there a need for a second function, one for dealing with stdio and one for dealing with files? When I try to run void encoder(int argc, FILE* inputFP, FILE* outputFP); without any arguments I get errors:   error: too few arguments to function â€˜void encoder(int, FILE*, FILE*)â€™          encoder();```


Looking for the origin of a perspective on religion

I've been trying to remember where I read a perspective on religion, which I think comes from some Science Fiction author.  It goes somewhat like "we have observed many species, and those that developed religious ideas usually feature long childhood periods, with a strong bond between children and their parents". (If we remember right, they were talking about sentient species in the universe)  One of my friends recalls that we discussed this several years ago, and that I mentioned having read it in a SF book. I wish to identify the book and its author. I don't intend this question to be a discussion on religion.  Can someone help me identify the origin of this?


Is there a link to the corresponding meta site?

Do Stack Exchange sites have a link to their respective meta site somewhere?


How do you make a sharp angle with Bezier cruve?

There inside blue circle, I need to make a sharp corner, not round corner. How do you do it?


Locked out of Windows 10, Administrator Account disabled and Bitlocker enabled

My Windows 10 Pro laptop (local account) has been locked out and I'm unable to login.  To make matters worse my Administrator account is disabled and my drive has Bitlocker enabled!  How can either re-enable the Admin account or unlock the local account?


For P(n) being the assertion that in every set of n horses, all horses have the same color: P (n) ⇒ P (n + 1), when n > 1.  How do I prove this problem, can someone give me explanation or a headstart?


Diamonds aren't highlighted when a moderator reviews a suggested edit on their own post

Just noticed this on :    The diamond being outside the blue owner-highlighting looks really weird. Pretty sure it used to be inside the highlighting. Could it be moved back?


Problem with Listings package concerning line breaking and wrong alignment

Hello I have the following code:  \documentclass[12pt]{article} \usepackage[top=0.3in, bottom=1.5in, left=0.8in, right=0.8in]{geometry}  \usepackage[utf8]{inputenc}  \usepackage{setspace} \setlength{\parindent}{0cm}  \usepackage{amsmath} \usepackage{unicode-math}  \usepackage{listings}  \begin{document}  \begin{lstlisting}[frame=single,title={Blinking both LEDs},breaklines=true]  #include  <msp430g2553.h>   unsigned int i = 0;  void main(void) {   WDTCTL = WDTPW + WDTHOLD;    P1DIR |= 0x01;   P1DIR |= 0x40;    for(;;)    {         //Both LEDs blink simultaneously          P1OUT ^= 0x01;         P1OUT ^= 0x40;          //Or alternative P1OUT ^= 0x01|0x40          for(i=0;i<30000;i++);          //If I place P1OUT ^= 0x40; here then one LED blink and then the other   };  }   \end{lstlisting}  \end{document}   In the last comment why doesn't the new line starts from the beggining (meaning under the //) but instead starts with a little left margin? And also why the first comment is far more left than the rest of the code in its block?  I have uploaded an image also with tabs on. There is something wrong. When I experiment with tabs odd things happen and the document doesn't appear as it should be. The second image is based on the code I wrote in that post and I haven't experiment on that one.


Compute the limit of a recursively defined sequence in terms of its initial values

Consider the sequence $\{ a_n \}$ defined recurisvely in terms of $a_1$ and $a_2$ by  $$ a_{n+1} = \frac{a_n + a_{n-1}}{2} $$ for $n \geq 2$.  Assuming this sequence converges, find the limit in terms of $a_1$ and $a_2$.    The book provides the answer as $\frac{1}{3} a_1 + \frac{2}{3} a_2$, but I don't see how to arrive at this.  Usually, for recursive sequences if we can assume the limit exists, then we say it is $L$ and then use the recursion to solve for $L$.  I don't see how to accomplish that in this case.


I've gotten an oscilloscope! How do I take care of it?

I'm happy to say that I've gotten my first ever oscilloscope!! I want to make sure that I take good care of this equipment.  But I'm afraid that while I'm new to oscilloscopes, I'm new to taking care of them.  What are some DOs and DON'Ts of operating digital oscilloscopes, and good practices to keep them in running order?


I'm trying to figure out which of these interfaces I need to implement. They both essentially do the same thing. When would I use one over the other?


Live in Florida & work remote for a New York company. Do I owe NY state income tax?

I have been down in Florida for the past 3 1/2 years and continue to pay New York state taxes out of the money I earn for a company I work remote for that is in New York.  Should I be paying New York state taxes on this income?  Or do I not need to pay New York state tax because I live in Florida?  Our NY accountant says I need to continue to pay since company is out of NY, however others say I don't need to pay.  Pls advise which is correct. Thank you.


How will I find the maximum of $4|\cos x|-3|\sin x|$ The absolute value confuses me, The maximum value would be 5 if it were not there.


Can I specify a generic type in XAML (pre .NET 4 Framework)?

In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer:  <DataTemplate DataType="{x:Type my:Customer}">     <TextBlock Text="{Binding Name}" /> </DataTemplate>   I'm wondering if it's possible to define a DataTemplate that will be used any time an IList<Customer> is displayed. So if a ContentControl's Content is, say, an ObservableCollection<Customer> it would use that template.  Is it possible to declare a generic type like IList in XAML using the {x:Type} Markup Extension?


I am trying to change chars pointed to by a char pointer variable:       char *test3 = "mutable";     printf("Expected: mutable, Result: %s\n", test3);     testt(test3);     printf("Expected tutable, Result: %s\n", test3);      void testt(char *s) {         *s = 't'; // FAILS, I get Segmentation Fault Error     }   Why does the above approach not work? Are chars pointed to by pointer variables immutable? If so, how would I modify the contents of the pointer variable?


Show that $x_{\alpha} \rightarrow x$ in $M$ iff $x_{\alpha}$ is eventually equal to x.

Let $M$ be any metric space. A mapping $P(\alpha)=x_{\alpha}$ of $\Omega_0$ into $M$ will be a net; where $\Omega_0=\Omega - \{\omega_1\}$ and $\Omega$ denotes the set of ordinals $\leq \omega_1$. Show that $x_{\alpha} \rightarrow x$ in $M$ iff $x_{\alpha}$ is eventually equal to $x$.  My attempt  I proved the sufficiency by contradiction.  $x_{\alpha}$ is eventually equal to $x$, then exists $\alpha_0 \in \Omega_0$ such that if $\alpha \geq \alpha_0$, $x_{\alpha}=x$. Let $U$ a open neighborhood of $x$ ($x \in U$) such that $\forall \alpha' \in \Omega_0 $, $x_{\alpha'}$ doesn't belong in $U$. Take a $\alpha^* \geq \alpha_0$, then $x_{\alpha^*}$ doesn't belong in $U$ then $x$ doesn't belong in $U$.  Could you guide me with the first part and if what I did is correct?


Comment option disappears after posting and deleting a comment on mobile site

Today I'm adding a comment then deleting because it got muddled and my phone screen is bugging out.  After deleting, the 'Add Comment' link disappears until I refresh the page.  I'm guessing this is a bug. I'm using a Nexus 5 not updated to latest Android version if that matters.


Do you say:       That group has dogs   or      That group have dogs   I'm not too sure which one is right. I'm just confused because I'm not sure whether the word, group, is plural or not


Number of permutations which are products of exactly two disjoint cycles.

Let $l_{n}$ denote the number of those permutations $f$ on the set $A=\{1,2,....,n\}$ such that $f$ is the product of exactly two disjoint cycles. Show that $l_{5}=50.$    I tried a lot but reached nowhere around the answer. Any help will be appreciated. Thank you.


What does an ls command with "[", "]", and "?" do?

I am interested in this command:  ls [A-D]?.txt   This is a Unix question on an assessment. We are asked to define what this command does.


How can I dual-boot with Windows 7 if the installer does not detect it?

I want to install Ubuntu, but keep my Windows 7 partition.  Do you have any ideas?  You can look at my screenshot:


Why my rep. was modified on removed post even though I didn't earn anything on that particular post?    I tried to find the answer here but all I found was


Matching email legal statement using regex

I just need to delete the email disclaimer from the following text. Seems like an easy task but I'm not getting there.  string:     Hello. Please see attached. Thanks. CONFIDENTIAL AND PROPRIETARY *   The content of this email, including all header and footer information, is the “CONFIDENTIAL AND PROPRIETARY INFORMATION” of The   Cleaning house, LLC. (“Franchisor”) and is protected under the   applicable  franchise agreement (“applicable Franchise Agreement”)   between Franchisor and each of its franchisees (“Franchisee(s)”).   Accordingly, each Franchisee who receives this email must, both during   and after the term of the applicable Franchise Agreement, maintain    the absolute confidentiality of the content of this email and may   disclose the content of this email only to its employees and agents   and only to the extent necessary for the operation of its Franchised   Business (as defined in the applicable Franchise Agreement)  in   accordance with the applicable Franchise Agreement. None of the   Franchisees who receive this email may use (or permit any other   natural or legal person to use) the content of this email in any other   business or in any way not authorized by Franchisor in  writing. ©   2009 The Cleaning house, LLC. All rights reserved.{}   Desired output:     Hello. Please see attached. Thanks. .{}   My attempts:  CONFIDENTIAL AND PROPRIETARY[\n|.]*(?=reserved)  CONFIDENTIAL AND PROPRIETARY.*All rights reserved  edit: There may be newlines and all types of weird stuff in the string also. I was hoping the .* would handle this.


Can I include all graphics in .png format of a folder?

I have a MATLAB program that generate many graphics in .png format in a folder Can I include in my document, with a LaTeX code, all photo of a specific folder?  I can include all graphics with a equal scale and 3 graphics for rows in my document?


Which one is correct? "cancelled" or "canceled"

I am confused about the spelling of the past tense of the verb "cancel".  I googled a bit but everyone has a different opinion apparently. I need to know the correct standard spelling.


Grouping several types of shapefiles into one layer being able to turn on/off

I am wondering if QGIS (or qgis2web) can realize this: I have various shapefiles (label as points and lines) and I want to categorize them into one single layer which can be turned on and off. (It needs to have a blue tick-box in front of the top hierarchy). Plus, there is another strange exporting issue. That is: Grouped layer will be automatically placed to the bottom layer regardless where you put it when editing. Then I need to manually modify the js code in layers.js. Please see the example: "I would like to have a blue tick-box for ROAD grouped layer"  output on web   QGIS editing panel    This is what I expect to realize:


Let $H$ be a subgroup of $G$. $S=\{g\in G\mid ghg^{-1}\in H\}$. Is $S= N_{G(H)}$?

Let $H$ be a subgroup of $G$.   $S=\{g\in G\mid ghg^{-1}\in H,\forall h\in H\}$.   I know that $N_G(H)\subset S$. But I can't seem to find any counterexamples for the other inclusion. Any ideas?


How do I control Macbook volume when a DP display is connected?

When I plug my Mac  into a DisplayPort monitor that has loudspeakers, the Mac's volume controls become disabled.    Is Apple assuming that if I have external speakers I am so much better using their own volume control that I have to be forced to do it?   That is annoying because the monitor's volume controls are buried in terrible menus accessed by terrible buttons on the back of the monitor.  Also, if I am inside an app where I can select the audio device and I select the Mac's internal speakers, the volume controls are STILL disabled.  Is there no way to control the volume of an app when an external speaker is connected even if the app is not using the external speaker?????  Some additional info: It's a Macbook Pro 13" 2018 version.  Using a Thunderbolt to Displayport cable, plugging in to a Dell monitor with speakers.    In another location I use the same cable to plug in to Dell monitors with Displayport but without built in speakers in the monitors.   At that location the volume controls remain active and they control the internal speaker in the laptop as they should.


Find the number of sequences of letters: ’AAABBBCCC’ such that:

a)Three identical letters are not next to each other. So I came up with a solution but I have no possibility to check whether it's correct so I've decided to post it here. So |X| - number of all possible sequences,  |X| = $\frac{9!}{3!\cdot 3!\cdot 3!}$  |A|, |B| and |C| are those sequences in which either 3 A's, B's or C's are next to each other |A| = |B| = |C| = $7\cdot \binom{6}{3}\cdot \binom{3}{3}= 140$ $|A\cap B|, |A\cap C|  ,|B\cap C|$  are for use of Inclusion-exclusion $|A\cap B|=|A\cap C|=|B\cap C|=7\cdot 4\cdot \binom{3}{3}= 28$ $|A\cap B\cap C|=1$ $|A\cup B\cup C|=|A|+|B|+|C|-|A\cap B|-|A\cap C|-|B\cap C|+|A\cap B\cap C|$ And the number we're looking for $=|X|-|A\cup B\cup C|$ Is that by any chance a correct solution?


Install Adwaita shell theme on Ubuntu 20.04?

I know this question is already asked but was for Ubuntu 18.10. I have found this  but when i tried to find /usr/share/gnome-shell/theme/gnome-shell.cssi didn't find anything. so this method is no longer working on the last version of ubuntu. I am wondering how to install stock Adwaita shell theme on Ubuntu 20.04 with Gnome 3.36? edit : i have found the solution by extracting /usr/share/gnome-shell/gnome-shell-theme.gresource using this  i got gnome-shell.css file which i moved to /usr/share/themes/AnyNameOfYourChoice/gnome-shell/  then changing shell theme using gnome-tweaks Thank you for your answer


Let $A$ be a square matrix that commutes with its transpose. Show that the nullspaces of $A$ and $A^T$ coincide.

Am completely stuck on this, any help would be appreciated.


I made Korean Gochujang with the following ingredients: Fermented White Miso Paste, Gochugaru (Fine powdered chili flakes), Sugar, Water, Salt and Vinegar. I cooked all ingredients except for the salt and vinegar which I added after the mixture almost boiled. I will be giving this away to my family and friends who live far away. Shipping will be around 1-2 weeks. My questions is how long will it last specially if they don't have access to refrigerators?


Ubuntu/ Gnome : Open an application in a specific workspace

How do tell an application to open in a specific workspace?    More info:  I like to have my C++ IDE in workspace 2, my Java IDE in workspace 3, and my email, browser and miscellaneous in workspace four. I also use a shell script that executes upon log in:  #!/bin/bash gnome-terminal & # WS 1 netbeans-6-9-1 & # WS2 qtcreator-2-0-1 & # WS 3 firefox & # WS 4 thunderbird & # WS 4   Of course currently it all opens in the current workspace... Is there a way for me to specify which workspace each command should start in?  Thanks in advance!


I am constructing a bibliography of as much of the prior research in a field I am working in. I would like to use BibTeX to print the citation in the pdf, and then I would like to add the details of the paper after the citation. Only then would I like to print the next citation. For example:  [1] Jahan M. Dawlaty and Yunquing Chen. Measurement of the optical absorption of graphene in the terahertz. Applied Physics Letters, 2008. Research Group: Cornell Pump Wavelength: 500 nm. Probe Wavelenth: 7 microns. Relaxation Time: 50 fs. [2] Paul George and Dmitry Vekslar, Measurement of Ultrafast Carrier Dynamics in Graphene. Applied Physics Letters, 2009.  . . . and so on. Does anyone know how this could be done?


(K)Ubuntu 16.04 Plasma 5.5.5 takes long time at login

My new installed Kubuntu 16.04 with Plasma 5.5.5 takes very long time at login(~30s).  I read about a similar bug  , but I don't think this match my problem. Does anybody have similar problems?  System: Dell Latitude E7440 with WLAN and Bluetooth.  Edit: I think that the desktop is loaded while the KDE login wait-bar is on the screen. When I'm clicking ALT+TAB to switch between applications, it is possible to see the desktop for that moment.


I need to access root in Kubuntu 17.10 through graphical interface, can someone point out how this is done please. This differ since Kubuntu 17.10 uses Wayland.  Thanks in advance..


Which RAID configuration is better for hypervised Virtual Machines with three 300GB SAS drives

Probably a noob question, but I'd like some guidance on which RAID configuration is best in this server scenario. I am aware of and understand the different RAID configurations, but am after guidance in the use of RAID in a hypervised virtual machine configuration specifically.    Hardware is an older IBM x3650 with an IBM ServeRAID 8k hardware controller. There is 3x 300GB SAS drives and 2x 146GB SAS drives.  I wish to install the free VMware ESXi 6.0 hypervisor on the system and have just found out that I can't boot from USB flash drive.  So I'm gonna have to use one of the HDD's or RAID volumes to install the baremetal OS on. I'm only going to be running 2-3 VM Guests (most likely 2x Win Server 2012R2 Std's and maybe 1x Win7 Pro or Linux distro) for basic AD/DC redundancy and a RDS gateway.  Do I:   setup the 3x 300GB drives in RAID5 and the 2x 146GB drives in RAID1 setup the 3x 300GB drives in RAID1e and the 2x 146GB drives in RAID1 setup the 2x 300GB drives in RAID1, the 2x 14GB drives in RAID1 and assign the remaining 300GB drive as a global failover/hotspare leave the drives unassigned and do the RAID config using Windows Server software RAID (with the physical drives assigned to the guest)   Note that if the ESXi host allows it, I'll do a controller pass-through for the larger RAID volume for dedicated use on one of the Windows servers (which would allow me to possibly do #4 in the above list).  I'd prefer compatibility, reliability and redundancy over performance.  What I don't know, and the reason I'm asking this question, is the type of read/write (or I/O's) hypervised virtual machines will have which would lead to choosing the best RAID configuration for the drives I have listed.


In beamer slide, view notes on computer only while presenting with a projector?

Is is possible to make a PDF in Beamer such that notes are visible only on computer and not on the projector?


Does a native speaker pronounce spatial and special differently?

I'm attending a university course on spatial reasoning in computational systems. So the word spatial is often spoken here. The Germans in the course usually speak English slowly and more carefully so that I can hear an obvious difference between the two words spatial and special. But the English native speakers here, who talk a lot faster, don't seem to make a difference between the words.  Am I just unable to hear the difference because I'm not used to it or do they really make no difference?


Show for any odd prime $p\geq 5,$ $(-3/p)=1$ or $ -1$

Show for any odd prime $$p\geq 5,$$ $$\left ( \frac{-3}{p} \right ) =\begin{cases} 1 & \text{ if } p\equiv 1,-5\pmod{12} \\  -1& \text{ if } p\equiv -1,5\pmod{12} \end{cases}$$ So far I have that (1) Let $$p\equiv 1\pmod{4}$$ then $$p\equiv 1\pmod{3}$$ to get $$\left ( \frac{-3}{p} \right )=-\left ( \frac{p}{3} \right )=-\left ( \frac{1}{3} \right )=-1$$ (2)Let $$p\equiv 1\pmod{4}$$ then $$p\equiv 2\pmod{3}$$ to get $$\left ( \frac{-3}{p} \right )=-\left ( \frac{p}{3} \right )=-\left ( \frac{2}{3} \right )=1$$ (3)Let $$p\equiv 3\pmod{4}$$ then $$p\equiv 1\pmod{3}$$ to get $$\left ( \frac{-3}{p} \right )=\left ( \frac{p}{3} \right )=\left ( \frac{1}{3} \right )=1$$ (4)Let $$p\equiv 3\pmod{4}$$ then $$p\equiv 2\pmod{3}$$ to get $$\left ( \frac{-3}{p} \right )=\left ( \frac{p}{3} \right )=\left ( \frac{2}{3} \right )=-1$$ After solving CRT systems I get, $$\left ( \frac{-3}{p} \right ) =\begin{cases} 1 & \text{ if } p\equiv 5,-5\pmod{12} \\  -1& \text{ if } p\equiv 1,-1\pmod{12} \end{cases}.$$ So I'm not sure where I'm messing up. Any help would be appreciated.


An integrable and periodic function $f(x)$ satisfies $\int_{0}^{T}f(x)dx=\int_{a}^{a+T}f(x)dx$.

I want to prove:     For an integrable function $f(x)$ and periodic with period $T$, for every $a \in \mathbb{R}$, $$\int_{0}^{T}f(x)\;dx=\int_{a}^{a+T}f(x)\;dx.$$   I tried to change the values and define $y=a+x$ so that $dy=dx$ and the limits of the integrals are as we want, but I'm not sure how to use the fact that $f(x)$ is periodic.  Thanks a lot!


Combinatorial proof $\sum_{i=k}^n {i-1 \choose k-1} = {n \choose k}$

Could someone help me as I am stuck with coming up with a proof for this?   Assume n is the total number of people in a town. Assume k is the number of possible ways to select a chief of the town. So the RHS is saying that there are k ways to choose a chief from n people.  on the LHS, From $i=k$, and $k=n$, it is referring to from k to n, which is the sum of the remaining people in the town who were not selected $(n-k)$, that there is $k-1$ ways to choose from $i-1$ objects. Since $i=k$, i could be the number of ways to possibly select a chief. If one person is chosen from i, who also belongs to $k, k-1$. But how does this lead to $${n \choose k}$$?


How do I stop sharing call history between two iPhones?

My husband and I both just upgraded to iOS 8.3.  Now I notice that if I have a missed call it shows up on his notice screen and all my calls show up in his recent call history (and vice versa).  Both phones don't ring and they don't need to be near each other or connected by Wi-Fi.  We do share an iTunes account.  How do I stop sharing call history between the two phones?


What do I do after extracting *.tar.gz file?

I downloaded and extracted *.tar.gz file. Here's the link - . Then I located a folder named Bin and double clicked on a executable file. The program started to run. I didn't have to install it or anything.  I have two questions:  What's this type of package called - Source code | Compiled | something else?  What's the typical place to put these extracted files on your computer?


My Son's passport expires within 5 month our flight is next week

My son's passport expires within 5 month, he holds an israeli passport and we fly directly to Toronto from Israel. Is it a problem and I just must renew it? I'm asking because of the eTA issue, it has to be the same passport number. If Ill renew it I will receive a new passport number... I have a huge dilemma because of it. Do you know what should I do?


How to pass variables from bash script to AppleScript

I have a file with a list of URL's. I need to pass each URL from a bash script to be used in an AppleScript.    while read urls do      osascript -e \     'tell application "Safari"         tell window 1              tell current tab to open location "$urls"         end tell     end tell' done <file.txt   This doesn't work. It passes the literal string $urls as the location to be opened in Safari. How can I pass the bash variable $urls to AppleScript?


How can I run a shell command without being added in history? I don't want to purge the command history, I just don't want my next shell command doesn't show up in the history. Is this possible?


A phrase for describing the reaction of an element to an action

I have this sentence:     In our software we ask the user to specify some elements by clicking on the <highlighted / being highlighted / active ...> HTML element   My purpose for the sentence: Suppose you move the mouse over some elements and the border of each element under the mouse gets highlighted as the mouse enters it.   The element is not highlighted before the mouse enters it The element gets highlighted as the mouse enters it   If I say "highlighted element", one can't know if it was highlighted before or it gets highlighted as the mouse enters it.  Which phrase can be used instead of "highlighted" to convey this only-present-not-past-tense relation?


There are many hints for this topic, I tried this:   and many others, but nothing is working. If I want to select something from the database and query without parameters, it's ok. But if I want data for a column and table with parameters, it doesn't work, it returns empty array. Any hints?  There is my code:  function getDataByColumn($column, $table) {     try {         $connection = new PDO("mysql:dbname=vydap;charset=utf8;host=127.0.0.1", "...","...");     } catch (PDOException $e) {         echo 'Connection failed: ' . $e->getMessage();     }     $query = "SELECT ? FROM ?"; //  $query = "SELECT :column FROM :table";     $stmt = $connection->prepare($query); //  $stmt->bindParam(':column', $column); //  $stmt->bindParam(':table', $table);         $stmt->bindParam(1, $column);     $stmt->bindParam(2, $table);     $stmt->execute();     $result = $stmt->fetchAll();     var_dump($result); }


Nignx - worker_connections are not enough

I don't know what is going on. I double value for worker connections but it still return error.  server { server_name xxx.com;  root /var/www/web; index index.html index.htm index.php; error_log /var/log/nginx/error.log; location / { proxy_http_version 1.1; proxy_set_header   Host $http_host; proxy_set_header   X-Real-IP $remote_addr; proxy_set_header   Upgrade $http_upgrade; proxy_set_header   Connection "upgrade"; proxy_cache_bypass $http_upgrade; proxy_pass         http://127.0.0.1:7777; }        listen 443 ssl; # managed by Certbot     ssl_certificate /etc/letsencrypt/live/xxx.com/fullchain.pem; # managed by Certbot     ssl_certificate_key /etc/letsencrypt/live/xxx.com/privkey.pem; # managed by Certbot     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot  } server {     listen 80;     server_name xxx.com;     return 301 https://$host$request_uri; # managed by Certbot  }   Everything is okej with this code?  ERROR:  Firstly was:  worker_connections are not enough worker_connections are not enough   Now is  27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files)


I'm looking into creating a python datetime-subclass which provides a default timezone when created.  For the sake of keeping this question simple, let's assume I always want to hard-code my datetimes to be in UTC.  I can't figure out why the following works:  import datetime, dateutil.tz  def foo(*args, **kwargs):     kwargs['tzinfo'] = dateutil.tz.tzutc()     return datetime.datetime(*args, **kwargs)   But the following doesn't work:  class Foo(datetime.datetime):     def __init__(self, *args, **kwargs):         kwargs['tzinfo'] = dateutil.tz.tzutc()         super(Foo, self).__init__(*args, **kwargs)   Running the first method gives me the datetime object I expect:  >>> foo(2012, 11, 10) datetime.datetime(2012, 11, 10, 0, 0, tzinfo=tzutc()) >>> foo(2012, 11, 10).tzinfo is None False   But creating an instance of the Foo class doesn't seem to set the tzinfo object.  >>> Foo(2012, 11, 10) Foo(2012, 11, 10, 0, 0) >>> Foo(2012, 11, 10).tzinfo is None True   Any ideas of what's going on here?  Thanks!


Was thinking today, a good "answer badge" would be some number of answering your own questions.  Not sure what type of standards need to be set, maybe if there are no other answers, or if your answer gets X number of votes.


Creating A Simple Bash Script With Multiple Commands

Trying to create a bash script that opens gnome-terminal, and then runs ls to display the contents of a directory, but it just opens gnome-terminal. I will be creating some other scripts that also use multiple commands.  My script:   #!/bin/bash gnome-terminal ls -a /examplefolder   EDIT:  To clarify what I'm trying to achieve. I'm trying to create a script that will open gnome-terminal, list the contents of /examplefolder, and then be ready for regular terminal usage. Is this possible, or am I barking up the wrong tree?


Plan Cache: Why are multiple plans cached for this stored procedure in SQL Server

I am trying to gain a better understanding as to how SQL Server caches query plans.  For the following table(Populated with the values 1-500,000):  CREATE TABLE [dbo].[Test] ([ID] INT PRIMARY KEY);   And the following stored procedure:  CREATE PROCEDURE [dbo].[TestGet]     @ID INT AS BEGIN;     IF(@ID IS NOT NULL) BEGIN;         SELECT [ID]         FROM [dbo].[Test]         WHERE [ID] = @ID;     END;     ELSE BEGIN;         SELECT [ID]         FROM [dbo].[Test];     END; END;   Making the following two calls:  EXEC [dbo].[TestGet] @ID = 1000; EXEC [dbo].[TestGet] @ID = NULL;   Results in two different plans in the query plan cache:    If the stored procedure were re-written as:  CREATE PROCEDURE [dbo].[TestGet]     @ID INT AS BEGIN;     SELECT [ID]     FROM [dbo].[Test]     WHERE [ID] = @ID OR @ID IS NULL; END;   And the same two calls were made:  EXEC [dbo].[TestGet] @ID = 1000; EXEC [dbo].[TestGet] @ID = NULL;   Only a single query_hash, and query_plan_hash are cached:    The calls to the stored procedure have the same shape in both cases.  Why does one the first stored procedure and call generate two cached plans, with a different query_hash, and a different query_plan_hash?  What criteria is SQL Server using to generate these hashes?


What is the  thing in a hashmap, and how do I use it in my own class?

I have been trying to simply get a name for what the <> part of the declaration is called, to no luck. Can anyone tell me what it's called, how I can use it in my own class? For instance I may want to try and make my own kind of collection, and use new MyThing<String> for instance. Any help is appreciated, thanks!


Will a small unpaid medical bill prevent me from obtaining a US VISA? A B2 tourist visa to be exact

I have been to the US three times in the past, however I incurred a medical bill inndecember 2015, the bulk of the bill about $4500 has been paid by my insurance, however there is a small amount of about 500 dollars unpaid, was wondering if this would prevent me from getting another tourist visa? I do intend to settle my bill, have just been unable to as yet.   Do the consular official have access to medical bill information? And could my outstanding bill make seen as a public charge? I am currently a medical student so have a decent skill set, will this be in my favour?   Thanks and regards!   Urgent response required. Thanks.


I am running this code in Unity (Mono backend with .Net 4.x)  float a = 0.42434249394294f; float b = 1 - a; float sum = a + b; bool compare1 = (a + b) >= 1f; bool compare2 = sum >= 1f;   In Debugging (with Visual Studio), compare1 is false while compare2 is true.  How is this happening? Why are the last two lines different? I would think that sum == a + b.


Does root has access of files that he doesn't own?

If some user is an owner of some file, does root has the same privileges as user?


While browsing the mobile website on an iPod touch, I encountered the following problem while trying to flag a question as too broad.  The textfield for entering an answer to the question is obscuring the last few flagging options:    I did not have any problems with the initial flag screen. Only after I selected the "It should be closed for another reason.." option did the textview obscure my view.  This was while viewing the website on Safari. Still on iOS 6.


How do Google analytics users/page views/sessions correlate to "clicks" reported by an Ad server?

In running an ad campaign through a DSP, we get clicks and CTR as a measure of performance, from the ads  to the landing page or advertiser website. How do these clicks that our DSP reports, correlate to the amount of users/sessions/visits that the advertiser sees in their Google analytics platform for their website? and why are there usually large discrepancies?


Editing a question with only a JSFiddle link does not work

I can't edit a question that has a jsfiddle link because it has a lack of code. Can we get privileged users able to bypass restriction? The question had some really poor formatting and linking and I couldn't fix it. :  Html is not taking the css code Some of my html tags are not reacting by the css which i gaved them for example is offerbox not reaction to the html part. all html parts down from offerbox are not taking the styles that i gaved the enter code here http://jsfiddle.net/8Bw7M/  pic from the html and css  I feel that as a privileged user, I should be able to make the changes needed. This is related, but I'm not adding any new links.


Question related to integrality of field of fractions

This is actually not a problem, but it's a statement which is taken for granted and I don't know how to prove it. Hope some one can help me. I really appreciate:          Suppose $A$ is subring of ring $B$, and $A$, $B$ are integral domains. If $B$ is integral over $A$, prove that field of fraction of $B$ is algebraic over field of fraction of $A$. Does the converse remain true?


I have a disk size of 1TB. But when I do du -hx . on one of the folders it shows 1.4TB. and df -k . shows 60% full.  I dont understand why is the size shown greater that disk size itself.  Thanks, Mihir


Best practice for iterating over an ad-hoc list of strings in C#

When you need to iterate over a hardcoded, ad-hoc/temporary (only used in the foreach) list of strings, what's a best practice or a better coding standard: using a List<string> or string[]? It's not an array vs List question, but a very specific code situation.  Example:  foreach (var item in new List<string>() {"A", "B", "C", ..., "Z"}) { ... }   vs  foreach (var item in new []{"A", "B", "C", ... "Z"}) { ... }


Centering grid to the center of the page

I'm trying to center this grid to the center of the page. Any help? Also instead of displaying the numbers when clicked, id like to display rather a name. So instead of displaying the number 1 when 1 is clicked, id like it to display Car, or Truck, cause in the end I'm going to change the numbers to pictures. And would want it to display the picture name.          $( function() {         $( "#selectable" ).selectable({           stop: function() {             var result = $( "#select-result" ).empty();             $( ".ui-selected", this ).each(function() {               var index = $( "#selectable li" ).index( this );               result.append( " " + ( index + 1 ) );             });           }         });       } );        <!DOCTYPE html>      <meta charset="UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <meta http-equiv="X-UA-Compatible" content="ie=edge">    <title>Document</title>
       You've selected: none.

1

2

3

4

5

6

7

8

9

10

11

12


Is there any method to mount a block of memory as a filesystem in linux?

I have a question,in linux, is there any method to mount a block of memory as a filesystem? For example, in X86 architecture, when power on, I reserve a  block of memory about 8 Mbytes, and then when linux startup, I mount this block of memory as a filesystem and then read and write file to the file system ? What will be the fs type?


Do there exist two primes $p<q$ such that $p^n-1\mid q^n-1$ for infinitely many $n$?

We can prove that there is no integer $n>1$ such that $2^n-1\mid 3^n-1$. This leads to the following question:     Is it true that for every pair of primes $p<q$ there are only finitely many integers $n$ such that $p^n-1\mid q^n-1$? Are there two primes $p<q$ and an integer $n>p+q$ such that $p^n-1\mid q^n-1$?Is it true that if $n>6$ then $2^n-1\nmid 5^n-1$?   Edit: Here are some examples: \begin{array}{ll} 2^{36}-1\mid 41^{36}-1, &3^{12}-1\mid 97^{12}-1,\\ 5^{6}-1\mid 37^{6}-1, &7^{4}-1\mid 151^{4}-1. \end{array}  Now I prove there is no integer $n>1$ such that $2^n-1\mid 3^n-1.$  Proof: Denote $A=2^n-1$ and $B=3^n-1$. If $n$ is even then $3$ divides $A$ but not $B$, a contradiction.  If $n$ is odd then $A\equiv -5\pmod {12}$. Since every prime greater than $3$ is $\equiv \pm1,\pm5 \pmod {12}$, some prime factor $p$ of $A$ must be congruent to $\pm5 \pmod {12}$. As $p \mid B$, we have $3^{n+1}\equiv 3 \pmod p$. Since $n+1$ is even, we get $(\frac{3}{p})=1$, a contradiction again.


Sometimes, when I delete a post of mine, it does not disappear like most. Why?

I do sometimes tend to mis-read questions on SO and post completely pointless and stupid answers. So when I realize what I've done, I delete the post and refresh the page, to have it disappear.   But, sometimes, the post does not like to vanish. And it stays there, for a long time, giving me the option to "undelete" it.  I don't think it has anything to do with cache, as I'm sure the cache is updated within 2 months, right? - I've just come across one of my old (about 2 months old) post, that I deleted two months ago, and its still there...  I know the post is only visible to me, but I don't know why some don't go for good, and some do.  Also, if the post affected my rep (the post got any down/up-votes), my reputation does not get re-calculated as it usually does on posts that disappear for good.  Why is this? Is there a specific cause for some posts to not be deleted for good?


Is proper attribution given when a moderator edits someone's comment?

As far as I know according to CC BY-SA 3.0 if someone edits any question/answer of a user then proper attribution is given that someone edited such and such content at say 12 P.M 1 January 2015. The CC BY-SA 3.0 license is for any kind of contribution from any user. I've recently noticed that if a moderator changes the text of someone's comment then no proper attribution is given, that is its not mentioned that text is not modified by the OP but by the moderator.    So my question is, isn't it a violation of CC BY-SA 3.0?


What is the physical significance of the off-diagonal moment of inertia matrix elements?

The tensor of moment of inertia contains six off-diagonal matrix elements, which vanish if we choose a reference frame aligned with the principal axes of the rotating rigid body; the angular momentum vector is then parallel to the angular velocity. But while considering the general case, what are the off-diagonal moment of inertia matrix elements? That is, do they have any physical significance as [say] the components of a vector? Or is it merely a mathematical construction with no definite physical meaning (which seems rather wrong to me)?  A similar thread exists  but they are more interested in the principal axes of the body. It also says:     The physical significance of the off-diagonal components is that   you're using a coordinate system not aligned with the principal   directions of the object. They tell us nothing interesting about the   object itself.   Is that all or is there more to it, perhaps related to properties of tensors in general?


I want a script to sleep unless a certain file is modifed/deleted (or a file created in a certain directory, or ...). Can this be achieved in some elegant way? The simplest thing that comes to my mind is a loop that sleeps for some time before checking the status again, but maybe there is a more elegant way?


Inline code with background color without use of escape characters

I need to include some inline code in a text with a background color. I use \lstinline for including code in a text and \colorbox for making a background color for it.   \lstinline!$! produces s (without gray background) and \colorbox{Gainsboro!60!Lavender}{\lstinline!$!} produces s. \lstinline!\(! produces \( (without gray background). This is everything as I need.  But there is a problem:  When I use \colorbox{Gainsboro!60!Lavender}{\lstinline!\(!} it produces only ( instead of \(. I found the solution and use \colorbox{Gainsboro!60!Lavender}{\lstinline!\\(!} to produce \(. So, there is a need to use an escape character.    Question:  Is there a way to include some inline code with background color (I need to use at least svgnames or some with more collors) in a text without to worry about the need to use escape characters in inline code?    Complite code:  \documentclass{article}  \usepackage[svgnames]{xcolor} \usepackage{listings}  \begin{document}  \lstinline!$!  \colorbox{Gainsboro!60!Lavender}{\lstinline!$!}  \lstinline!\(!  \colorbox{Gainsboro!60!Lavender}{\lstinline!\(!}  \colorbox{Gainsboro!60!Lavender}{\lstinline!\\(!}  \end{document}


May one use inquire with instead of the somewhat overly official and potentially archaic inquire of?  It would be best if you could go through all the correct propositions commonly used with inquire with example sentences.


I've been looking for ways to build a 3D spiral in Blender, but every time I search for it, I find techniques for building a helix.  I'm not looking for a helix; I'm looking for a 2D spiral, extruded up into the 3rd dimension. Does anyone have any pointers for creating one?


Example of a relation that is symmetric and transitive, but not reflexive

Can you give an example of a relation that is symmetric and transitive, but not reflexive?   By definition,   $R$, a relation in a set $X$, is reflexive if and only if $\forall x\in X$, $x\,R\,x$.  $R$ is symmetric if and only if $\forall x, y\in X$,  $x\,R\,y\implies y\,R\,x$. $R$ is transitive if and only if $\forall x, y, z\in X$, $x\,R\,y\land y\,R\,z\implies x\,R\,z$.    I can give a relation $\leqslant$, in a set of real numbers, as an example of reflexive and transitive, but not symmetric. But I can't think of a relation that is symmetric and transitive, but not reflexive.