boolean variable to identify Prime number asp.net

I need to use a boolean variable to identify if a number inserted in a text box is a prime number and be written in C#   protected void isPrimeButton_Click(object sender, EventArgs e) {      int TestNumber = int.Parse(primeNumberTextBox.Text);     bool isPrime = true;      for (int i = 0; i < TestNumber; i++)     {         while (TestNumber % i == 0)         {             bool isPrime = true;             yesNoPrimeTextBox.Text = "prime";             break;         }          while (TestNumber % i == 0)         {             bool isPrime = false;              yesNoPrimeTextBox.Text = "not prime";             break;          }     } }


I have this function that can append the first three columns of data to a new empty list. Example output is:   ['red', 'blue', 'green', 'yellow', 'purple', 'black']   I would like to enclose every two elements of this list in its own list i.e.   [['red', 'blue'], ['green', 'yellow'], ['purple', 'black']]   How can I do this? Thanks.   def selection_table(table):     atts = [1,2,3]     new_table = []     for row in table:         for i in range(len(new_atts)):             new_table.append(row[atts[i]])     return new_table


I have the following code for subset sum which is suitable for integers. How to extend this code to double data type input? for example, how to extend this same code when the input is 1.01,2.65,3.08,4.07,5.12 (say) and output is 15.62 (say).These inputs and out are example even if they vary the code should work.  // A Java program to count all subsets with given sum. import java.util.ArrayList; public class subset_sum { // dp[i][j] is going to store true if sum j is // possible with array elements from 0 to i. static boolean[][] dp;  static void display(ArrayList<Integer> v) {     System.out.println(v); }  // A recursive function to print all subsets with the // help of dp[][]. Vector p[] stores current subset. static void printSubsetsRec(int arr[], int i, int sum,                             ArrayList<Integer> p) {     // If we reached end and sum is non-zero. We print     // p[] only if arr[0] is equal to sun OR dp[0][sum]     // is true.     if (i == 0 && sum != 0 && dp[0][sum])     {         p.add(arr[i]);         display(p);         p.clear();         return;     }      // If sum becomes 0     if (i == 0 && sum == 0)     {         display(p);         p.clear();         return;     }      // If given sum can be achieved after ignoring     // current element.     if (dp[i-1][sum])     {         // Create a new vector to store path         ArrayList<Integer> b = new ArrayList<>();         b.addAll(p);         printSubsetsRec(arr, i-1, sum, b);     }      // If given sum can be achieved after considering     // current element.     if (sum >= arr[i] && dp[i-1][sum-arr[i]])     {         p.add(arr[i]);         printSubsetsRec(arr, i-1, sum-arr[i], p);     } }  // Prints all subsets of arr[0..n-1] with sum 0. static void printAllSubsets(int arr[], int n, int sum) {     if (n == 0 || sum < 0)         return;      // Sum 0 can always be achieved with 0 elements     dp = new boolean[n][sum + 1];     for (int i=0; i<n; ++i)     {         dp[i][0] = true;     }      // Sum arr[0] can be achieved with single element     if (arr[0] <= sum)         dp[0][arr[0]] = true;      // Fill rest of the entries in dp[][]     for (int i = 1; i < n; ++i)         for (int j = 0; j < sum + 1; ++j)             dp[i][j] = (arr[i] <= j) ? (dp[i-1][j] ||                     dp[i-1][j-arr[i]])                     : dp[i - 1][j];     if (dp[n-1][sum] == false)     {         System.out.println("There are no subsets with" +                 " sum "+ sum);         return;     }      // Now recursively traverse dp[][] to find all     // paths from dp[n-1][sum]     ArrayList<Integer> p = new ArrayList<>();     printSubsetsRec(arr, n-1, sum, p); }  //Driver Program to test above functions public static void main(String args[]) {     int arr[] = {1, 2, 3, 4, 5};     int n = arr.length;     int sum = 10;     printAllSubsets(arr, n, sum); } }   Output:[4, 3, 2, 1] [5, 3, 2] [5, 4, 1]


I have a number of heroshot images, that have a modal popup when clicked.  I'm trying to get my cursor to turn into  magnifying glass whenever it is moved over the image. The following CSS does not appear to work even though my magnify.cur is present in the right location.  a.heroshot img {   cursor:url(/img/magnify.cur), pointer; }   Has anyone ever done anything similar? I don't mind a JavaScript solution if one exists.  EDIT: It works in Safari, but not in Firefox.


Compute $ad_X$, $ad_Y$, and $ad_Z$ relative to a basis

For a lie algebra $\mathbb{g}  $ we can define the adjoint representation as:  $ ad: \mathbb{g} \rightarrow End(\mathbb{g}) $ as the map such that $ad_x(y)=[x, y] $ for all $\in \mathbb{g} $  I am wondering how to we compute adjoint matrices with respect to a given basis?     For example, let the lie algebra be $ \mathbb{g}=sl_2(\mathbb{C}) $ with the basis as follows: $X=\begin{bmatrix} 0&1\\0& 0 \end{bmatrix}$,$Y=\begin{bmatrix} 0&0\\1& 0 \end{bmatrix}$ and $H=\begin{bmatrix} 1&0\\0& -1 \end{bmatrix}$  Let $ ad: \mathbb{g} \rightarrow End(\mathbb{g})  $ be the adjoint representation  How would I compute the matrices $ ad_X $, $ ad_Y $ and $ ad_Z$ relative to the above matrices?


Where do I get codes for zsh bindkey? Particularity I need left shift .  So far I found different way to get the codes:  1) key[Down]=${terminfo[kcud1]} but where to find all the key names in terminfo?  2) sudo showkey -a Prints output for some values, for example ^[[C  for right arrow, but has empty output for ctrl, shitf, space and others.  3)Ctrl+V in terminal,   it returns some values, but again empty for shift, ctrl etc.  Also there is xmodmap -pk | grep Shift that returns 0xffe1 (Shift_L) but when I try to bind this code, it don't work, why so?


What limitations does converting question links to links with titles have?

On this  there are more than 50 links to Stack Overflow questions. However, the last 6 links aren't converted to titles (http://facebook.stackoverflow.com/questions/6530420/control-the-image-that-facebook-shows-when-i-like-a-url should be converted to ).   However:  all http://facebook.stackoverflow.com/... into http://stackoverflow.com/... fixes this, both in the preview and the final result. Also, the preview won't show any title for http://facebook.stackoverflow.com/... links.  My question is, what limitations does this converting have? How are these question titles retreived? Via API? Through database?  I'm not sure about title, feel free to edit that


Prove that the determinant of skew-symmetric matrices of odd order is zero

I have to prove that determinant of skew- symmetric matrix of odd order is zero and also that its adjoint doesnt exist. I am sorry if the question is duplicate or already exists.I am not getting any start.I study in Class 11 so please give the proof accordingly. Thanks!


How to switch off syntax highlight in cited code?

Suppose some code snippet that appears to be some specific syntax like C in this case, and I want to format it like plain text:  ``` #include <code> ```   On stackexchange, this will be rendered as if it was C/C++ like so (on meta I'll need explicit ```c):  #include <code>   Is there a way to explicitly switch off any syntax highlighting here?


How to change field value before view sorting

I've got a view where I have to change the value of a field in certain conditions. I managed to change the value of the field before it's printed but It doesn't affect how the elements are sorted.  In my case, I  use the field price as sorting and my code is:  function real_estast_sub_preprocess_views_view_fields(&$vars) {    $view = $vars['view'];    foreach ($view->field as $id => $field) {         // change the field value depend on result (node id)     if($vars['view']->name == 'properties'){            $vars['fields']['field_price_1']->content = "";          if (isset($_SESSION["pricesfromnodeid"][$vars['row']->nid])){            $vars['fields']['field_price']->content = "

".$_SESSION["pricesfromnodeid"][$vars['row']->nid]."€
";           $vars['row']->field_data_field_price_field_price_value = $_SESSION["pricesfromnodeid"][$vars['row']->nid];          }else{            $vars['fields']['field_price']->content = "

".$vars['row']->field_data_field_price_field_price_value."€/night
";         }        }else{        }           } }   Is it possible to affect the sorting at this point?     I got the answer for this problem in another question:      >values-not-stored-in-the-database


SOQL: why FIELDS() function in not supported? Test class API version 51

I'm trying to use the FIELDS(ALL) function in my apex test class, in order to prevent this kind of error  SObject row was retrieved via SOQL without querying the requested fields...  But I can't save class with such query, because of this error:         The SOQL FIELDS function is not supported with an unbounded set of fields in this API.   Api version on test class 51 When I try to use the same query by dev console, it works fine.  Any thoughts?


How long does Flash memory last without any actions?

If I store information on a USB Flash drive and hardly ever read or write to it, how long can I expect the information to be retained?  I'm referring to natural de-magnetization and anything similar. Not to "read disturb" etc.  EDIT  Thanks for the link. The question there is indeed similar to mine. But unfortunately the answers there just assume that the answer is: more than other limiting factors. But is that true? This needs some backing, does it not?


Let $p$ be a prime integer. Show that for each $a ∈ GF(p)$ there exist elements $b$ and $c$ of $GF(p)$ satisfying $a = b^2 + c^2$.  I got some ideas like to show the elements of the form $b^2 + c^2$ is asubfield so they are all the field but I dont know how to prove that too, so I ask for some help ;)


Does the right half of the rsa public key matter?

In a public key file "id_rsa.pub" generated by ssh-keygen, does the part after the == matter?  I ask because when I changed "root@somedomain.com" to "root", it seems to still work.  More generally, I am curious about what the purpose of that half is.


I recently got an N1 mail application invite. When I tried to install it in my ubuntu 15.10, I got the error that "Dependency is not satisfiable: libcrypt11". Subsequently I found that libgcrypt20 is present from version 15.04. What is the difference between libgcrypt11 and 20.Is it safe to install libgcrypt11 again from launchpad and proceed with my N1 installation???


checking user permissions in replicated salesforce database

For integration purposes I am regularly dumping/updating the full Salesforce database to our on-premise system. To do that, I am using a Salesforce admin user with all privileges (so that we can fetch all object and items).  How can we replicate the user permissions for on-premise use? Certain users are only allowed to acccess specific account on the Salesforce plattform, and we would like to be able to check their permissions on the on-premise database dump as well.  Is there a way to regularly dump the permissions table or call a Salesforce API in real-time ("e.g. to check if user #1 can access item #33 in object "accounts").


What is the mechanism by which magnetic fields do work?

I've seen some conflicted answers to this question in texts and on the web, in the case of a dipole, for example.   Do magnetic fields do work directly, or is it their induced electric fields that do work?


A  is a living species (or clade) that   appears to be similar to another species otherwise known only from fossils,   typically with no close living relatives.   A living fossil is considered as a successful organism, which has made its way through many  major . Also, the morphology of living fossils resemble some species of organisms which we know only through their fossil remains.   What is the reason for a particular type of species to become a living fossil; is the engineering of this particular species extraordinary, in that it can survive any selection process encountered thus far? Is there not enough selection pressure exerted on this species in order to force it to change morphologically? Have these organisms modified themselves, so that currently their morphology seems to be similar to a fossil organism?


Recover hard disk data after deleting partitions

When I reinstall Windows XP by mistake I deleted all five partitions. I did not format them yet though.  How can I recover the partitions? When I attach the hard disk to another PC it just says that the partition is unformated and asks "Would you like to format it?".


Is amd r7 360 supported by the amdgpu drivers?

I am unable to confirm if the r7 360 is supported by the amdgpu driver on Ubuntu 20.04. On the ubuntu wiki ot states R7, but not explicit model numbers. Some r7 are cgn 1st gen and others are cgn second gen.


prevent monitor switching when closing laptop lid

I got one of those little lilliput external monitors for my laptop. When I close the lid on my laptop, it switches the primary display to external monitor. I want to prevent it from doing this, and instead just blank both screens but not alter the monitor configuration.   I looked at the Power Options "Change what to do when closing the lid" option, but that just gives options for Sleep, Hibernate or Do Nothing. I want to Do Nothing, and prevent the monitor reconfiguration. Any ideas?   Thanks in advance!  Oh, BTW, I'm running Windows 7 Ultimate on an Alienware with the ATI graphics card.   CLARIFY: My reasoning for this question is that I often carry my laptop back and forth between rooms, but not far enough that I'm going to shut it down and restart. Normally I just closed the lid and picked it up. The problem is, now when i close the lid, it switches the primary display to the external, and then when i reopen it, it switches back to the internal monitor. This then winds up futzing up layout things, such as gadgets and sticky notes.


Does Stack Exchange have an email notification option?

Is there a feature on Stack Exchange that will allow me to receive an email notification when someone comments on my question or answer, or answers my question?


Imagine a fragile cord attached to a ceiling with its other side attached to a sphere. On the lower part another cord is atrached to the sphere. Now visualize you pull STRAIGHT downward on this cord. Where (i.e. at the upper or lower rope) will the cord break if you pull with much force quickly and where will it break if you pull for a longer duration with less magnitude? My assumption for the first, is that it would break at the lower rope, as it seems to me that inertia is the answer to this question here.   Curious about your valuable opinions! Thanks in advance.


If there exists a surjection $f:A\to B$, can you construct an injection $f:B\to P(A)$?

With the axiom of choice this is trivial, but is there any way to construct this injection explicitly in the ZF system?


Make a bootable disc with both 64bit and 32bit versions?

Is it possible to make a disc to install Ubuntu that has the option of both the 32bit version and 64bit version?


How to say that the phone is held between shoulder and ear?

What are common phrases an English native speaker would use for the pose of speaking on the phone where you use your shoulder to keep the receiver against your ear (and mouth), so your hands are free?  I have some ideas, but they all sound wooden, and I don't think I've ever heard anyone describe this pose in words. It's also pretty much impossible to google for a pose or look it up on leo.org or other dictionaries.  OK, since people keep asking for what phrasings I found, I'll provide two, though I was hoping I could avoid influencing people who answer here by not providing them: "balance on one's shoulder", "held/nestled/sandwiched between shoulder and ear".


Determining the ID of the largest area(s), by bounding box(es)

Here's a curly one!  EDIT: As an alternative the modal raster value inside each bounding box would work, and might possibly be faster. Still unsure how to do it though. Perhaps Zonal statistics using Majority. Then I'll need to filter by the maximum count.   Background Info Currently using ArcGIS Pro.     I currently have a grid, and a map of vegetation in raster format. I want to find the most common vegetation by area, in each grid square. The dataset is probably a couple of hundred thousand rows long - and likely isn't nicely sorted.    Current Process Vegetation Raster to Vegetation Polygons (Raster to Polygon) Pairwise Intersect Vegetation Polygons with Grid Polygons to create VegetationGrid_Polygons Calculate Geometry Attributes on VegetationGrid_Polygons to give Area Stuck.  Starting Table Now I should theoretically have a table that looks like: VegetationID, GridID, Area 1, 10, 2 2, 10, 8 <-- Notice this, there are two VegetationID's #2 2, 10, 4 <-- 5, 10, 4 1, 5, 10 3, 5, 46 5, 5, 4    What tool(s) can I use to create a table that has the sum area of each VegetationID by each GridID? VegetationID, GridID, Area 1, 10, 2 2, 10, 12 <-- This is now 12 5, 10, 4 1, 5, 10 3, 5, 46 5, 5, 4    Then, how to find the VegetationID with the largest area value by GridID? VegetationID, GridID, Area 2, 10, 12 3, 5, 46


Hint Needed: Proving $\sqrt{2}$ is irrational using induction

I came across this question in the book Challenge and Thrill of Pre-College Mathematics:     Prove that $\sqrt{2}$ is irrational using induction.   Apart from the fact that this is hardly the usual method for proving this, I have no idea even how to begin. What am I supposed to used induction on?  I suspected that I might use induction to attempt to prove that the decimal places of the expansion of $\sqrt{2}$ do not repeat themselves, but even that seems to elude me. Perhaps we can use induction to prove that there does not exist any rational number which can be $\sqrt{2}$?  Since I am fairly inexperienced in number theory (I'm currently self studying it in high school) please keep in mind  that I know only very basic theory such as some prime theory, modular arithmetic and basic properties of the GCD, etc. I would also ask you to refrain from giving a detailed solution; I would prefer a hint with which I can complete the proof.


A long time ago I remember using a command that makes its input into a nicely formatted table.  For example, for this input,  apple 1 100 orange 20 19 pineapple 1000 87 avocado 4 30   The output will be similar to this:  apple     1    100 orange    20   19 pineapple 1000 87 avocado   4    30   I'd like to know the name of this tool.


Custom domain private email server goes directly to spam?

I'm not sure if this is the right place for this. Any help would be appreciated! If I am at the wrong place, a point in the correct direction would be appreciated.  I have recently set up an email server on a dedicated server with a .com and SSL certificate. It is all successfully set up with no errors and 100% ready. Any email accounts I make work, they send and receive. But any messages I send go automatically to the SPAM folder on any gmail users, and also hotmail. The SSL is throughout the entire domain and is completely encrypted. Anything I can find is about existing emails held with google or yahoo or microsoft. I can not find anything for custom domains.   (EDIT - my domain is remulated.com )


Smallest value of $a^2 + b^2 + c^2+ d^2$, given values for $(a+b)(c+d)$, $(a+c)(b+d)$, and $(a+d)(b+c)$

If $a$, $b$, $c$, $d$ belong to $\mathbb{R}$, and   $$(a+b)(c+d)=143 \qquad (a+c)(b+d)=150 \qquad (a+d)(b+c)=169$$   Find the smallest possible value of    $$a^2 + b^2 + c^2+ d^2$$   I thought of adding $7$ to the first equation and make it equal the second, solving, and finding a new equation.  Do it $3$ times, keep substituting, but this is a very very very long approach if it's even an approach.


Which city can be seen on this Windows 10 lockscreen?

I had this as my Windows lockscreen, tried to google it, but I couldn't find it. Does anyone know what city this is?


Is there a difference between Ubuntu 18.04.5 and Ubuntu 18.04?

I need Ubuntu 18.04 to install ROS Melodic on it, but the ISO file i found for 18.04 has been giving me so many problems (no wifi adapter detected so I can't sudo apt update, no exfat detected so i can't update through an ISO copy on the system so I gave up on that), that I'm thinking of trying 18.04.5 but I can't find anywhere if ROS Melodic will run on it. So maybe the differences between both versions only come down to bug fixes? Apologies if it is a very basic question! I am very new to Ubuntu. Thank you for your time!


Log-in flow on chat.stackexchange.com and stackexchange.com b0rken

I was auto-logged out from the chat.stackexchange.com server. And I couldn't log back in! I reproduced this issue both on Chrome 67 and on Firefox 61, both with regular tabs and Private / Incognito tabs. My OS is macOS 10.13.5.  What I tried:   on chat.stackexchange.com, click the 'login' button (top right, next to the search box). click the log in with Stack Exchange button. fill in my Stack Exchange login credentials. I'm redirected to https://stackoverflow.com/users/login?teamsMember=1, a page that tells me with a red box that I need to log in directly, since I'm a team member:   Fill in my credentials again. Now I'm logged in to Stack Overflow. Return to chat.stackexchange.com, confirm I am not logged in there. Try the same flow again. Log in link, use log in with Stack Exchange, fill in credentials. Now I am taken to a page on Stack Overflow that states I am logged in, and asks me to add another way to log in?     So the log in flow wants me to log in on Stack Overflow, and that log in is never reflected back to Stack Exchange. I can't log in on https://stackexchange.com either. On step 3 I can also use my OpenID URL (which is backed by the Stack Exchange OpenID service for now until I can figure out how to rescue my SEDE account queries) but this has the exact same result.  The work-around is to log into  (or any one of the other *.stackexchange.com sites, such as ), then suddenly chat has me logged in as well, and  acknowledges my account exists too.


I have the following function that writes into a PostgreSQL database. I need to make it safe from SQL injection however I am not sure how to do that.  The part of the query assembled from pg_query_params is safe from injection (or so I have been told) however the other part of the assembled query via PHP's string concatenation . is apparently vulnerable to injection.  private function setItem($table, $id, $field, $itemId, $fieldValue){      $_1 = $itemId;     $_2 = $fieldValue;     $_3 = $field;     $_4 = $table;     $_5 = $id;      $parameters = array($_1, $_2);      // If the ID already exists, then update the name!     $sql = 'update ' . $_4 . ' set ' .$_3 . ' = $2 where ' . $_5 . ' = $1;';     /*$result = */pg_query_params($this->database, $sql, $parameters);      // Add ID and Name into table.     $sql = 'insert into ' . $_4 . '(' . $_5 . ',' . $_3 . ') select $1, $2 where not exists(select 1 from ' . $_4 . ' where ' . $_5 . '=$1)';      $result = pg_query_params($this->database, $sql, $parameters);      return $result; }   Edit:   doesn't seem to address my concern.  I am using PostgreSQL and trying to find something compatible with pg_query_params


When using multiple verbs that typically use different prepositions, which do I choose?

This is the sentence I wrote:      It is as simple as adding or removing an item to/from the list.   Now I'm wondering if I should use "to" or "from" or "to/from" in:   Written English, Spoken English.


Php string not working in Wordpress Functions.php (trying to fetch 1st category for each blog that post appears in the sidebar)

I am trying to fetch 1st category for each blog post that appears in the sidebar of any blogpost landing page. I tried multiple options to add the 2nd block code to the 1st block at the line ".wp_get_post_categories ($post_id)." but I could not find any solution. Please help me with that and if you need closer to the code just let me know. 1st Block $related_blog .="

".get_the_title()."
                                                                  ".substr(get_the_content(),0,250)."...
                                 ".wp_get_post_categories ($post_id)."
                                                                  Read More

";  2nd Block <?php $category = get_the_category(); ?> <a  href="<?php echo get_category_link($category[0]->cat_ID); ?> "> <?php echo $category[0]->cat_name; ?>


If $f$ is continuous on $[0, \infty)$ and uniformly continuous on $[b, \infty)$ for some $b > 0$ then $f$ is unif. continuous on $[0, \infty).

Prove that if $ f $ is continuous on $ \left[ 0, \infty\right)$ and uniformly  continuous on $[b, \infty)$ for some $b > 0$ then $f$ is unif. continuous on $[0, \infty)$.  So far I have: Let $A = [b, \infty)$ then $A^c = [0,b)$, my goal is to end up with a compact set from $[0,b]$ so I can use the theorem that "A function is continuous on a compact set $K$ is uniformly continuous on $K$" and then take the fact that of the preservation of connected sets. Am I going about this in the right way?


Can you use a 'for %i' loop in a msbuild exec command?

I tried to use this in a build file but apparently this is not correct:  <Exec Command='for %i in (*) do echo %i'/>   It gives the message:   "i was unexpected at this time".  My goal was to delete specific files in a directory, for example like this:  'for %i in (*) do if not %i == name1 if not %i == name2 del %i'  So I want to delete the files in a folder except for the two files with name1 and name2. This is probably not the way I should try to do it.


Assume that $f(x)$ and $g(x)$ are both continuous real functions, and that, for $x \ne 0$, $f'(x) = g(x)$.  Is then $f(x)$ differentiable at $x = 0$, with $f'(0) = g(0)$?


Function with the property $f\circ f=-id$

Consider a functions $f:\mathbb R\to \mathbb R$ such that  $f(f(x))=-x$ for all $x$.  It is shown in    ``f(f(x)) = − x, Windmills, and Beyond" by Martin Griffiths which appeared in Mathematics Magazine, Vol. 83, No. 1 (February 2010), pp. 15-23  that the set of discontinuities say $D_f$, must be at least countable. Can one obtain a good description of $D_f$? Can it be a Cantor set for example? It is known that $D_f$ is an $F_{\sigma}$ set. If  an $F_{\sigma}$ set is symmetric with respect to the origin and contains the origin, can it be equal to $D_f$ for such a ``windmill" function $f$?


How to add 3rd party JARs to Maven project

My area of expertise is not Java. I develop in other languages on other platforms.  Right now I'm developing a series of Java servlets for a project. The servlets are to run on a CentOS server running FileNetP8.  I actually got all of the planned items finished and running.  Now when I am trying to add a few more services, the library I came across is available via Maven. I have no idea what Maven is. Read up on it today. Created a test project to try it out.  My development environment is Eclipse Photon on Windows 10.  Now my problem is I can't figure out how to add the Filenet JARs to the project. I can't upload them to some Maven repo. Searching the Web says to add them to the local repo, but I don't understand how to do that to the Local repo in Eclipse's builtin Maven.  I think that the JARs don't need to be packaged within the deployment WAR because the app will be deployed to the Websphere server that runs Filenet so they should be available on it. Should I add them as external JAR references to get the project to compile?


Problem regarding radius of convergence of $\sum n!x^{n^2}$.

$$\sum_{n=0}^\infty n!x^{n^2}$$   Can anyone tell me what will be the radius of convergence for this power series. According to me it is $0$.   If you can please show me how to go about it if I am wrong.


I was told that current has a direction but does not follow vector-laws, so it is a scalar quantity. That's okay. I thought it through Kirchoff's junction law: assume two currents joining at 90 deg, but they will not add vectorially, but algebraically.  Now, I am told that current density is a vector quantity. Solving for this, two current densities maybe added at 90 deg or 45 deg they will definitely give same result and will definitely not add vectorially.  So, why is current-density considered as vector?  $$i = j A$$ $i$ is current, $j$ is current-density, and $A$ is the area of cross-section


When should the word "God" be capitalized?

Aside from proper noun usage, like "We're on a mission from God", when should "God" be capitalized? A few examples:   That's a god awful question. Oh my god! No god-damn way. He played the part of the cannibal god   It occurs to me that whenever used for decisive emphasis, by referencing deity, it is effectively functioning as a proper noun as well? For comparison:   That's a really awful question. Oh my stars! (no viable equivalent) He played the part of the cannibal chief   PLEASE, no rants or tangents. This is a grammar question.


Will move to search engine friendly URLs help or hurt an already good search engine ranking?

Hi I'm moving a mostly static site with some dynamic asp.net pages into a new CMS. The CMS uses SEO friendly URLs while the old site used dynamic URLs ending in .aspx. The client is worried that this might somehow change their great Search Engine Rankings especially since the URLs will be a bit different now. I'm trying my best to keep the new URLs as close as possible to the originals but I'm wondering if this move will help or hurt with their SEO. Any ideas?


Ubuntu 16.04.01 LTS 64bit - screen goes black after 30 seconds

A couple days ago I started having this annoying issue: After about 30 seconds of inactivity, my laptop screen goes blank. Like a screensaver.  Under System Settings, under "Brightness and Lock", I have unchecked the "Dim" option and the "Turn screen off if inactive for" to "Never". So my screen should not ever go blank.  I found a similar thread here:  . But the solution there is to turn off "dpms". Well, my dpms is turned off and is still happening.   See below the output of the xset -q command:       Keyboard Control:   auto repeat:  on    key click percent:  0    LED mask:  00000000   XKB indicators:     00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off     03: Compose:     off    04: Kana:        off    05: Sleep:       off     06: Suspend:     off    07: Mute:        off    08: Misc:        off     09: Mail:        off    10: Charging:    off    11: Shift Lock:  off     12: Group 2:     off    13: Mouse Keys:  off   auto repeat delay:  500    repeat rate:  33   auto repeating keys:  00ffffffdffffbbf                         fadfffefffedffff                         9fffffffffffffff                         fff7ffffffffffff   bell percent:  50    bell pitch:  400    bell duration:  100 Pointer Control:   acceleration:  5/1    threshold:  5 Screen Saver:   prefer blanking:  no    allow exposures:  yes   timeout:  0    cycle:  0 Colors:   default colormap:  0x6e    BlackPixel:  0x0    WhitePixel:  0xffffff Font Path:   /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins DPMS (Energy Star):   Standby: 0    Suspend: 0    Off: 0   DPMS is Disabled   Anyone have any suggestion?   Thanks a lot!


How to install the driver for iball 3.5G connect in ubuntu 12.04?

How do I install the driver for iball 3.5G connect wireless Modem in Ubuntu 12.04?  My Laptop is Dell Inspiron N4010. Modem is not getting detected.


How can I write to replicated environments without impacting production?

Are there any methods (mirroring, snapshot replication, change tracking, etc...) available in SQL Server 2k8 which would allow me to replicate production data to several individual development databases AND allow separate data to be written to each of those dev db?   In other words: Once a full copy of data is replicated to a dev database, replication would be turned off so new data can then be written to the dev database without impacting the production database.  Thanks in advance


Can't Do nothing (no edit, no reordering) with the Path System environment variable in Windows 10

I have an issue with the %PATH% system environment variable. I get the following error message when I try to change it:    It is in french but translated in english, it would be something like      This environment variable is too large. This dialogue box can only support parameters values up to 2047 characters   I don't think it's related to the lenght because of the following fact: if    I Search for and open "View advanced system settings"; Click the "Environment Variables" button; Locate "Path" under the System variables section. Click to highlight it; Click "Edit". The "Edit environment variable" modal window pops up; Click "OK". Note that I did no change anything at all, no modification, not even scrolling down the mouse to see the end of the list nor reordering the list;   then I get the error message box. After Step 4 above, I need to Click "Cancel" to be able to exit.  Any idea how to handle this ?   EDIT 1: The seoncd reason I think it's not related to the length is because if    I perform Step 1 to 4 above Click on the button "Change the text", a new window pops up with the name of the variable "PATH" and its value There I can delete some text/path so I have already deleted some duplicated paths in its value but then when I try Step 1 to 5 abobe, the problem is still there.   EDIT 2: Here is value of PATH      C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.5.267\windows\mpi\intel64\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\compiler;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Program Files (x86)\Cuminas\Document Express DjVu Plug-in\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\ASUS\HomeCloud\jre7\bin;C:\Program Files\MATLAB\R2017a\runtime\win64;C:\Program Files\MATLAB\R2017a\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Calibre2\;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\PuTTY\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0\   EDIT 3 : OK thanks guys the link was useful. Though it's weird because I don't understand why Windows allow to put more than 2047 characters in %PATH% while installing applications and then complaining months later.


Reapplying for a UK Standard Visitor visa after a refusal

I applied for a UK visitor's visa. My friend sent me an invite to spend a month with her with a letter stating she would would pay for my accommodation and food. She provided her salary slip, bank statement and a copy of her British passport. The exact wording from the refusal letter:   You have stated that you are employed by x company and earns 35000 INR (£350 at the Onada rate of exchange) per month of which you state that you spend 20000 INR (£200) on living costs leaving difference of 15000 INR (£150)per month.  You state that you have no investment income.  You state that the personal cost to you of the proposed visit is £500 and this amount is equal to about half what you have in your account or three months savings.  With brief intervals back in India you were in the UK from 1/09/09 until 14/08/14. You do not appear to have travelled elsewhere .   4.your bank statement shows a balance of 101135 INR (£1013) on 1/7 with additionvof your salary.  You state that your brother and your friend and sponsor ms. Y will pay £1500 towards the cost of your visit.  You have not provided any evidence regarding your brother's finance anr his willingness to provide you money for a holiday,  besides what i take to be his bank statement showing a balance of 16803 INR(£168) 1/7.  In view of the above,  i am not satisfied that yiu are a genuine visitor who: A.  Will leave the UK at tge end od the visit B.  Will noy live in the uk for extended periods through frequent or successive visits,  or make the UK your main home C.  Is Genuinely seeking entry for a purpose that is permitted by the visitors routes (these are listed i  appendices 3,4 and 5) D. Will not undertake any prohibited activities set un v 4.5- v 4.10   My intention is just to go there for a month, spend some time with my friends and meet the people I took care of while working in a care home there.  How do I prove that I will return?  I am working full time. I get paid well with bonuses and am paid by the company for a holiday once a year. Can anyone suggest what should I do and what sort of documents to submit if I reapply? Is there any chance if I reapply? I live with my parents. My father works in government service. Is it a good idea to buy  return flight?


Tonight, at 02:36 AM, my bedroom computer (Windows 10 1511) decided to wake up from hibernation.   Obviously, my first instinct was to yell at it for waking me up in the middle of the night (it's not a "silent" PC). Since my wife was still asleep, what I actually did was to shut it down (fully) and worry about it later.  Later is now, and I'd like to find out why, oh why, it decided to do such a thing at such an impossible time.  I've checked the following:  Power settings: "Allow wake timers" is set to "Disabled".    Event log: The wake source is "unknown".    How can I find out what caused this madness?


Showing tax-refunded items at Customs in Japan

I'm on a vacation in Japan and have bought some items tax-free in different stores (Bic Camera, Isetan, some smaller shops).   Can I use the items while in Japan? Do I need to show them after check-in together with the receipts on my passport (at Customs) or can I pack them?


How long should it take to refresh a Developer Sandbox?

I refreshed a Developer Sandbox, and almost 24 hours it is still "pending". Is this normal? Are there any actions I can take to speed up the process? When I created the Sandbox it took barely more than 10 minutes to create.  Thanks, Adrian


MySQL, MySQLi, MySQL Prepared Statement or PDO?

from the past few days i have been following a lot of tutorials regarding different ways to interact with database. like the old MySQL way, MySQLi, MySQL prepared statement, PHP's PDO etc.   i am still a new comer to the programming as it has been hardly 1 year since i learned and started coding. from time to time i have made lot of efforts on improving my codes and adhere to the standards as defined by the web developers. and now is the time i feel i change the way i am used to interact with the database using old MySQL way like mysql_connect() and mysql_query().  I have following configuration on my production machine.   Mac OSX 10.6 with MAMP installed PHP version : 5.2.13 MySQL client version: 5.1.44   what do you think i should be using for database access and why?   MySQL MySQLi MySQL Prepared Statement PDO


Run python script from a launch file not in the same directory

I would like to run a Python script by double-clicking a launch file, but the script is not in the same folder as the launch file.    The information is going to be recorded in a CD (kind of ridiculous, but this is mandatory in my university), and the structure of the files is like this:  MAIN FOLDER |----CODIGO FUENTE |--------scripts |----INSTALADOR |----MANUAL DE USUARIO   My launch file ARDrone Autonomous Flight is inside the folder INSTALADOR, and the script that I want to run is inside the folder scripts.    My launch file with .desktop extension had this parameter  Exec = sudo python3 /home/m/PycharmProjects/ROSAutonomousFlight/catkin_ws/src/ardrone_numeric_method_controller/scripts/ros_initial_interface.py   But now this information will be placed in a CD and I have no idea how to do it.    I have tried:  Exec = sudo python3 ../CODIGO\ FUENTE/scripts/ros_initial_interface.py   but it didn't work.


Can I change my username on all sites keeping the profile information intact?

Suppose I have 20 accounts on SE platform.  I have different About me description on the them. I want to take the decision to change my username on all accounts, but keeping my current description on each site.  Currently this is possible only by opening all each profile, clicking edit, editing the username and clicking Save profile button.  If I click Save And Copy Profile To All Stack Exchange Accounts button the profile description will be overwritten on all sites. I don't want such a thing to happen.  So, how can I change only the username on all sites, keeping the current profile information intact?


Find who is connected to a Unix domain socket (Linux)

I have a Unix domain socket (for example /var/run/mysqld/mysqld.sock). I know there is open connection(s) to this socket thanks to lsof -U or ss -xa but I cannot find which process is connected to it.   How can I know which process at the other end?


Proof (epsilon delta) for the continuity of a function at a point

Task  I have the following function  $f(x)=x^2+1$  I need to prove, according to the $\epsilon - \delta$ definition of a limit, that $f(x)$ is continuous at $x = 2$.  Step 1  $\forall \epsilon > 0 \enspace \exists \delta > 0 : |f(x) - L| < \epsilon, \mbox{ when } 0 < |x - c| < \delta \Rightarrow \lim_{x \to c}f(x)=L$.  If a function is continious at a given point, the value of the limit and the function must be equal, so:  $\lim_{x \to c}f(x)=f(c)$.  And in this case - $f(2) = 2^2 + 1 = 5$.  Which means that $\lim_{x \to c}f(x)=5$.  Step 2  Try to define $x$ in terms of $\delta$.  $0 < |x - 2| < \delta \\ 0 < x < \delta + 2$  Step 3  Try to define $x$ in terms of $\epsilon$.  $ |x^2+1 - 5| < \epsilon \\ 4- \epsilon < x^2 < \epsilon + 4 \\ \sqrt{4- \epsilon} < x < \sqrt{\epsilon + 4} $  Step 4  What next? I'm a little weak on how should I proceed.


Can we get a clearer title for the "do not discard" comment button?

I was using the Android app earlier, and decided not to post a comment after beginning. When I cancelled, I was mildly confused by the choice I was offered:    "Nevermind," to me, could also mean "never mind, I don't want to write this comment after all."  Can this be replaced with a simpler and less confusing text? The simplest option would probably be "Do you want to discard your comment? [Yes/No]" (ht Shadow Wizard, Shub)


I just need help on a command:   /summon Villager ~1 ~ ~ {Profession:0,CustomName:"Potion trader",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"emerald",Count:25},maxUses:9999999,sell:{id:373,Count:1,Damage:8194,tag:{CustomPotionEffects:[{Id:1, Amplifier:3, Duration:1800},{Id:17, Amplifier:3, Duration:1800}],display:{Name:"Speed Potion",Lore:[ "Une potion magique qui permet de gagner en rapidité mais donne faim à l'utilisateur.", "COMMUN"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald",Count:25},maxUses:9999999,sell:{id:373,Count:1,Damage:8201,tag:{CustomPotionEffects:[{Id:2, Amplifier:2, Duration:1800},{Id:5, Amplifier:1, Duration:1800}],display:{Name:"Strength Potion",Lore:[ "Une potion qui donne une force incroyable, mais rends l'utilisateur très lent.", "COMMUN"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald",Count:25},maxUses:9999999,sell:{id:373,Count:1,Damage:8193,tag:{CustomPotionEffects:[{Id:9, Amplifier:1, Duration:6000},{Id:10, Amplifier:2, Duration:5000}],display:{Name:"Regeneration Potion",Lore:[ "Une potion qui permet de régénerer son utilisateur, mais donne la nausée", "COMMUN"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald",Count:25},maxUses:9999999,sell:{id:373,Count:1,Damage:8206,tag:{CustomPotionEffects:[{Id:11, Amplifier:2, Duration:1800},{Id:18, Amplifier:15, Duration:1800}],display:{Name:"Resistance Potion",Lore:[ "Une potion qui permet de rendre son utilisateur plus résistant mais moins fort.", "COMMUN"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald",Count:35},maxUses:9999999,sell:{id:373,Count:1,Damage:8197,tag:{CustomPotionEffects:[{Id:2, Amplifier:3, Duration:1200},{Id:17, Amplifier:2, Duration:1200},{Id:21, Amplifier:1, Duration:900},{Id:22, Amplifier:1, Duration:900}],display:{Name:"Health Boost Potion",Lore:[ "Une potion donnant de la vie en plus à son utilisateur mais le rend plus lent et lui donne faim.", "PEU COMMUN"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald_block",Count:64},maxUses:9999999,sell:{id:373,Count:1,Damage:8195,tag:{CustomPotionEffects:[{Id:5, Amplifier:5, Duration:6000},{Id:11, Amplifier:5, Duration:6000},{Id:15, Amplifier:1, Duration:6300},{Id:21, Amplifier:5, Duration:6000},{Id:22, Amplifier:5, Duration:6000}]},display:{Name:"Potion gouttes de lune",Lore:[ "Une potion très rare rendant son utilisateur très puissant mais lui enlevant la vue", "TRES RARE"]}},rewardExp:false},{buy:{id:"emerald",Count:25},maxUses:9999999,sell:{id:373,Count:1,Damage:16386,tag:{CustomPotionEffects:[{Id:2, Amplifier:1, Duration:200},{Id:14, Amplifier:1, Duration:300}],display:{Name:"Potion de camouflage",Lore:[ "Une potion pour se camoufler lors des assassinats ou vols.", "RARE"]}},MaxUses:9999999},rewardExp:false},{buy:{id:"emerald",Count:40},maxUses:9999999,sell:{id:373,Count:1,Damage:16395,tag:{CustomPotionEffects:[{Id:9, Amplifier:1, Duration:400},{Id:19, Amplifier:2, Duration:200}],display:{Name:"Poison Potion",Lore:[ "Une potion d'assassinat qui empoisonne.", "RARE"]}},rewardExp:false},{buy:{id:"emerald_block",Count:5},maxUses:9999999,sell:{id:373,Count:1,Damage:16388,tag:{CustomPotionEffects:[{Id:9, Amplifier:1, Duration:600},{Id:18, Amplifier:15, Duration:600},{Id:19, Amplifier:5, Duration:300}],display:{Name:"Strong Poison Potion",Lore:[ "Une potion de poison plus puissante qui affaiblis aussi les personnes touchées", "TRES RARE"]}},rewardExp:false},{buy:{id:"emerald_block",Count:35},maxUses:9999999,sell:{id:373,Count:1,Damage:16392,tag:{CustomPotionEffects:[{Id:2,Amplifier:3,Duration:600},{Id:4,Amplifier:3,Duration:600},{Id:9,Amplifier:1,Duration:800},{Id:15,Amplifier:1,Duration:500},{Id:18,Amplifier:30,Duration:800},{Id:20,Amplifier:5,Duration:400}],display:{Name:"Wither potion",Lore:["Une potion mortelle.","MYTHIQUE"]}}},rewardExp:false}]}}}}   I know this is a bit too long, but can you help me? It's saying Unbalanced square brackets, but after many checks I can't see where I failed.


Error: Leaders not followed by proper glue

I'm trying to compile the template of a resume, but I get the following errors: "Use of \@ doesn't match its definition." "Leaders not followed by proper glue" "Undefined control sequence." "Missing number, treated as zero." "Illegal unit of measure (pt inserted)."  Isolating the line that gives me the error, I could write a minimal example that still gives me all the errors, except the first one: \documentclass[a4papers,11pt]{article}  \def\vhrulefill#1{\leavevmode\leaders\hrule\@height #1 \hfill \kern\z@}  \begin{document}  \vhrulefill{0.9pt}  \end{document}  Although this example doesn't result in the first error, I get the  Use of @ doesn't match its definition.  all over the place in the original file. What's going on? I use an old computer with an old version of TeX Live (2014), could this be related?


How many non negative integral values of $x$ satisfy the equation :$$\biggl\lfloor{\dfrac{x}{5}}\bigg\rfloor=\bigg\lfloor{\dfrac{x}{7}}\bigg\rfloor$$.   My try:  Writing few numbers and putting in the required equation.  $\underbrace{0,1,2,3,4}_{\implies 0=0},\underbrace{5,6}_{\displaystyle\times},\underbrace{7,8,9}_{\implies 1=1},\underbrace{10,11,12,13}_{\displaystyle\times} ,\underbrace{14}_{\implies 2=2},\underbrace{15,16,17,18,19,20}_{\text{LHS gives 3 but RHS gives 2}},\underbrace{21,22,23,24}_{\text{LHS gives 4 but RHS gives 3}}$.  The point which I wish to make here is that after $14$ we'll get $5's$ multiple before than $7's$, hence $\forall x \geq 15 \implies \biggl\lfloor{\dfrac{x}{5}}\bigg\rfloor>\bigg\lfloor{\dfrac{x}{7}}\bigg\rfloor$  Hence the only solution are: $\{0,1,2,3,4,7,8,9,14\}$. Does these make sense?  I need to know other solutions that don't incorporate such analyzing, means using some properties and framing it to solve above.


Should SO members be notified if they are the topic of a discussion?

Often on meta sites I'll see questions asking about specific posts or users, which, for the most part, are fairly unbiased and fair. However, sometimes these posts can spiral out of control into personal attacks.   Should users that are the topic of these discussions be privately or publicly notified if they are the center of such debates? It would allow them a chance to explain actions or clarify things if need be.  I don't think all cases where a specific user is involved needs a notification back to the OP, but possibly things involving suspicious behavior on part of the person in question?


Simple question here: how to make section headings invisible, but still get the correct list of sections in the TOC and headers ? e.g. on page 10, if I do a \section{New section}, I must not see the text "X. New section", but I still want the section to be in the TOC and in the \rightmark of the following pages, until a new section of course.  I'm using a minimalistic document (class article, with no package that are used to adjust section headings style)


Let $p$ and $q$ be distinct primes. $\frac{1}{x}+\frac{1}{y}=\frac{1}{pq}$

Let $p$ and $q$ be distinct primes. Then the number of positive integer solutions of the equation $$\frac{1}{x}+\frac{1}{y}=\frac{1}{pq}$$ are:  I have no idea how to start. Any hints would be helpful.


Why do the derivative of the acceleration (and subsequent derivatives) not play a significant role in physics?

During high-school and college I modeled all dynamic mechanical systems with displacement, velocity and acceleration. This was more than enough to address the systems and determine their behavior in the time domain for a certain external stimulation.  However, some part of my intuition keeps on telling me that further derivation past the second order of the displacement should also play a role, that is, the derivative of the acceleration should also be important when talking about dynamic systems.  For example, I feel completely different when accelerating smoothly but steadily harder (I get gradually pressed into my seat, as the derivative of the acceleration is small), compared to when I brake very hard (I go from no acceleration to full acceleration). ().  I know this is a weird question, but somehow I fail to reason about it and none of my text-books even mentions deriving the acceleration.


Do date-specific hats (such as "'Tis The Season") respect a user's timezone?  I'm guessing not since the only region specific info in the profile is the Location field


How can I find out the variable name in python?

I know how I can find out the python command by clicking a button in the Blender interface, and then look in the info window:   For example, as can be seen, I added a cube, UV sphere, plane, camera, lamp, pressed A twice.  But how can I find out an object variable name, for example the y-rotation of an object. Because I can't find the y-rotation, when I point my mouse over it, I can only find the rotation:


What should I do to avoid ear pain when flying?

I always feel a pain in my ears when flying. Specially when descending. The last time I had extreme pain, feeling it inclusive around my eye balls. It felt like someone was touching the eye and pulling it from the inside. I really had to focus, close my eyes and hold to avoid screaming. I am not sure but I think both things might be related. Such a severe situation only happened once.  I just heard that with a cold the ear pain gets worse. I am bit worried that I might go through that situation again. I have a cold and I am going to fly soon.  What can I do to improve this?  I see that some consider this a duplicate of the question "best way to make my ears pop" but after reading the answers I think my question goes a bit beyond that since my pain is more extreme and I think it goes beyond just popping the ears. I also want to know if other methods, like using earplugs, might be effective.


i am fairly new to Ubuntu. so i don't really have much knowledge about the command lines and Os. I have been trying to use the command : sudo apt-get update  But its showing these errors.   I don't understand a single thing.Any help would be appreciated.


I have just had to update two of my answers ( and ') because the cross-referenced web site at GSFC no longer works.  I wonder how many other questions have similar link-rot problems and (more particularly) what can be done about it.  I don't know what's feasible, especially given the size of the overall question and answer base, but it might be nice to have some periodic sweep process (maybe over a period of 3 months or so to keep the workload spread over time) that validates URLs and notifies the posters (questions, answers, comments) if the URL goes AWOL (404), or whatever.  I fear that otherwise good answers to questions become less relevant over time simply because the external resources to which they refer have changed.


How can I understand passing an object and changing it in a function in Javascript?

I understand how objects are passed by reference in Javascript. In the following code my function changes a property of an object. It changes in the global scope as expected. I understand it. let a = {name:'blah1'};  function something(obj1) {   obj1.name = 'blah2';   console.log(obj1);  // prints {name:'blah2'} }  something(a); console.log(a); // prints {name:'blah2'}  In the following code, I rather pass another object to my function and make my first object equal to the second. This time it does not change in global scope. How can I understand this? let a = {name:'blah1'}; let b = {name:'blah2'};  function something(obj1, obj2) {   obj1 = obj2;   console.log(obj1); // prints {name:'blah2'} }  something(a,b); console.log(a); // prints {name:'blah1'}


After reading an answer on how to , I tried to do it myself.  I made a new document, entered the following and saved.  #! /bin/bash  echo "this is a test"   I then went to Right-Click > Properties > Permissions and checked "Allow executing file as program."  However, when I double-click the document, it simply opens in my text editor (which I believe is gedit). In the right-click menu I see no options for running the file in the terminal.  I've tried doing this with other files as well. For instance, I installed WINE and tried to install a Window's program. WINE said to simply run the installer, but nothing would happen when I tried. I marked it to run as a program and still it wouldn't work. I could only install it by Right-Click > OpenWith and selecting WINE.  Strangely enough, I copied my Keepass-2.28 Portable folder from my Windows partition to my Ubuntu partition and tried running the executable. Keepass fired right up, even though I hadn't marked that file to run as a program. I have Keepass 2.25 from the repository installed on my system if that makes a difference.  I've been running Ubuntu 14.04 in a dual-boot setup for several weeks. The only thing I can fathom I did that would mess this up is I used Synaptic Package Manager to remove a package from KDE Desktop Environment in an attempt to uninstall an alternate desktop environment I installed via the terminal. I don't remember what the package was, but the only package in that category right now is appmenu-qt5. As far as I can tell, removing that package has affected nothing, and I'm pretty sure I had issues with running files as programs since I got my Ubuntu.  EDIT: I have checked, and I don't think this question is a duplicate of . My Ubuntu is on a ext4 partition, and it's from there I'm trying to run programs. I also haven't dealt with trying to change permissions via the terminal or anything like that, I'm just trying to make the program run when I check the option in the properties menu. Please correct me if I'm wrong or missing anything.


I am trying to write an generalised limit operator, which look approximately like the standard \lim, except it has an additional symbol in front, connected by a hyphen (see example below). I would very much like this generalised limit to really look like the good old \lim; in particular, if I take limit over a variable x, then I would like the symbol x to be placed below. I almost managed to accomplish this by exploiting the old \lim, and adding the prefix:  > p \!\! - \!\! \lim_x    However, if I replace x by a longer string (say, several variables), I get too much whitespace. I tried grouping the limit into a single object, like below, but this leads to the variable being placed right of the limit symbol, not below:  > {p \!\! - \!\! \lim}_x    Could someone please advise me what is the best way of writing such a limit?  Here is a minimal example and the output.  \documentclass{article} \usepackage \begin{document}  Naive example:  $$ p-\lim_{x} f(x), \qquad p-\lim_{x_1,x_2,\dots,x_n} f(x_1,x_2,\dots,x_n) $$  With \verb"\!" used for indentation, without grouping:  $$ p\!\!-\!\!\lim_{x} f(x), \qquad p\!\!-\!\!\lim_{x_1,x_2,\dots,x_n} f(x_1,x_2,\dots,x_n) $$  With \verb"\!" used for indentation, plus grouping  :  $$ {p\!\!-\!\!\lim}_{x} f(x), \qquad \operatorname{p\!\!-\!\!\lim}\limits_{x_1,x_2,\dots,x_n} f(x_1,x_2,\dots,x_n) $$  \end{document}


bash 4.3 "multiple dot" commands fails silently on Fedora

I just noted this on bash  4.3; exact version number is 4.3.42(1)-release (x86-redhat-linux-gnu).   $ .. $ ... $ .... $ .....   Why do the "command not found" is not prompted ?  $ ... $ echo $?  $ 127   I checked the $PATH and the alias nothing; The man is not helping neither. The bash run on Fedora Linux, but I think it is not related to the OS.   EDIT   I just noted this it the same for any dot starting command  .za .zaza ..za ..zaza


$h:X\to X$ endomorphism of module $X$ over $R$ satisfying $h\circ h = h$. Prove X = Im(h)\oplus Ker(h)

Let $h:X\to X$ denote an endomorphism of a module $X$ over $R$ satisfying $h\circ h = h$. Prove  $$X = Im(h)\oplus Ker(h)$$  I have this theorem:     If the composition $h=g\circ f$ of two homomorphisms $f:X\to Y$ and   $g:Y\to Z$ of modules $X,Y,Z$ over $R$ is an isomorphism, then the   following statements hold:      i) $f$ is a monomorphism      ii) $g$ is an epimorphism      iii) The module $Y$ is decomposable into the direct sum of $Im(f)$ and    $Ker(g)$   Wel, the composition $h\circ h$ is surely a bijection, and since i'ts an endomorphism, it's a homomorphism. So should it follow directly from this theorem?


Prove that $HK$ is a subgroup iff $HK=KH$.

Let $H$ and $K$ be subgroups of a group $G$, and let $HK=\{hk: h \in H, k \in K\}$, $KH=\{kh: k \in K, h \in H\}$. How can we prove that $HK$ is a subgroup iff $HK=KH$?


Proving a Statement using Mathematical Induction

I'm trying to prove that $6 \mid (n^3 - n)$ where $n$ is a nonnegative integer. I started off by proving the basic step with $P(6)=4$. The next step would be the induction. However I'm having a bit f trouble understanding and using the method. Could someone show me how I would prove the statement and explain to me how I would get the answer. Thanks in advance.


What happens when I use Feast on the Fallen on Bloodcrazed Hoplite?

Me and a friend were playing magic, and I cast the enchantment , I dealt 3 damage with . Then at the beginning of his upkeep I put 2 +1/+1 counters on  saying its heroic ability allows it to get a second counter because it's being target by a spell that I control.


Add an easy way to copy deeplink to answers

Consider the situation where I want to link directly to a specific answer. There is no easy way to do so, unless we qualify manual URL manipulation as 'easy'.  Take  question for example. I'm particularly interested in one answer, in this case the accepted (and thus top listed) answer. In fact, I like the answer so much, I'd like to refer to in comments in my code. I can only link to the question directly by copying  https://stackoverflow.com/questions/3754118/how-to-filter-directory-enumeratefiles-with-multiple-criteria from the address bar, but there's no way (afaik) to get an answer.  I can ofcourse add #answer-3754470 manually, but well, that's just, manually.  tl;dr: Can we get a small link-icon near each answer so I can deeplink faster?


For some reason, I can no longer access the Winterbash 2015 page--when I try, I get redirected to the  instead, just like Winterbash is over. Except, we should still have almost another two weeks. Also, I can no longer see hat-related features on SE sites. What happened to the hats?!  UPDATE: The hats seem to be back now. But the question still remains, why did they disappear, and is it going to happen again?


For Email Logs, we follow below steps generally: Go to Setup--> Logs --> Email Log Files --> Request an Email Logs --> Download(once it is ready).  Is there any way to access this information programatically using REST API or using SOQL.  In which object, these information is stored?


Does there exist an infinite set of cardinality such that it can never be reached by taking power sets of a set with cardinality aleph-null. Please prove your answer, or include a link to a proof. I apologize for any excessively loose terminology, I am new to this subject of different infinities.


Changing Selection color in Ubuntu 18.10 themes

I use Ant Dracula theme for my Ubuntu. But selection color is Pink color, which I want to change to different color.  How can I change?  Theme Link is       and on firefox.


Chess. What is it called when a pawn takes a pawn by being passed

What is it called when a pawn takes a pawn by being passed by another pawn?


Does (La)TeX have error catching capabilities?

Some programming languages have exception handling structures, namely try-catch blocks. One that I know to give an example it Matlab. Consider the following pseudocode masterpiece: try     command_that_will_throw_error catch the_error     disp('The command_that_will_throw_error has finished unexpectedly! D=') end  disp('But the show can never stop!')  The program tries to execute the command_that_will_throw_error, fails, stores information about the error in the_error, and then passes the execution to the catch part of the block, so the result of the code above will be:  The command_that_will_throw(error) has finished unexpectedly! D= But the show can never stop!  My curiosity induced question is: can (La)TeX do something like this? My guess is that the answer is no, but the last time I said this, @egreg proved me wrong, so...  Before someone asks, what I'm trying to do is to programatically include some pdf files in my document, some of which may not exist. I would like to make TeX just skip them or print something if said pdf file does not exist. I accept an answer to my actual problem with the pdf files, but I would to know about the error handling issue for general cases.


Probability of randomly drawing all numbers from a set

If I draw at random from a set of 50 numbers( say 1:50), five numbers without replacing the drawn number, and then repeat this process ten times starting each 'draw' from the full set, how likely is it that I will draw every number of the set? How do I calculate this? Would it be 50( the number of 'draws') divided by 500 ( the total number from which the draws were taken) i.e.10% or is it more complicated than this?


What is the best way to add a hyperlink in a JLabel? I can get the view using html tags, but how to open the browser when the user clicks on it?


Let $(x_{n})_{n}$ be a sequence of positive numbers for which the corresponding series is convergent. How can I show that there exists a sequence $(y_{n})_{n}$ converging to infinity such that the corresponding series of $(x_{n}y_{n})_{n}$ is convergent?  I am only interested in the existence of such sequence, but an explicit example is welcome :)


not followed by nobody (double negation)

I wrote this question in a funny and entertaining way, if you want to go straight to the question go to the end. Last day I was in a bar with some friends and they were talking about soccer (for which I have zero interest) so I started looking around the decoration and saw a neon  light with the sentence: A little party never killed nobody  The You had one job meme automatically appeared in my mind and I though they probably ordered a custom made neon with an incorrect sentence on it. A quick search however revealed me that there's a song with that title and there exist neon lights with that sentence, so it was not custom made (this doesn't mean the sentence is correct, but at least it's not just this bar to be blamed, so the owner will avoid the walk of shame for now) So my question is: Is it correct to say A little party never killed nobody? To me the double negation means that it actually did kill somebody (which maybe is a humor hidden message the sentence tries to transmit) Is the sentence having a hidden meaning? A poetic license? Or is just plain wrong English?


How can I find all lines containing two specified words?

I need to check if two (specified) words exist on any line in a text file. There are no limits for the characters of the words. For example:  I want to find lines of a text file that contain the two words “cat” and “elephant” together (i.e., on the same line; not necessarily side-by-side):  Cat is smaller than elephant Elephant is larger than cat Cats are cute! Elephants are very strong Cat and elephants live in different environments cats are friendly   In the previous examples, how can I find the lines containing both words?  Cat is smaller than elephant Elephant is larger than cat Cat and elephants live in different environments   I tried grep and awk with no hope. The problem is there are words that have upper and lower case, so how can I match for both words regardless of their letter status!?


How do I take a full image backup of an Android device?

I am trying to do a full system image backup of a Samsung Galaxy Tab 4. It is unrooted at present, and is running Android Kitkat 4.4.2 . I have no desire of rooting it as of now.   I have tried creating a full image backup of the device using the ADB (Android Debug Bridge) method (adb backup -apk -shared -all -f C:\backup.ab), which looks like it works, but when it completes, no backup files are created (Although the backup process is shown as having been completed).  Can anyone either offer advice on why the adb method doesn't work, or present an alternative solution to this? The end result should be a full backup image (including all apps and data) that I can use to restore the device back to its exact backup state.


File Name Too Long (for just Windows Explorer)

When I was copying a directory structure to a new location where the target folder had a name slightly longer that the source, I encountered the following error indicating that the file name was too long.  The interesting part is that I then used Scooter Software's Beyond Compare app to compare the Source folder to the target folder to identify the files that failed to copy. I was suprised to find that BC was able to copy the files to the target folder so both folders matched 100%.   I think the file name in question was 258 characters long. Previously, based on error messages that I probably seen in Windows Explorer, I thought that Windows had a 255 character limit on file names, including path. Since I was able to copy the following 258 char file name using Beyond Compare, this appears not be be the case.   Is there a Windows file name length limit? Why is Windows Exploere's max length 255?  It looks to me like the "name too long" restriction was   C:\Expand\tfs2010\Healthcare-Finance_IT\Main\MLR Rebates Web Services\Load_MLR_REBATE_IBOR_INFO\Load_MLR_REBATE_IBOR_INFO\Service References\IborServiceReference\Load_MLR_REBATE_IBOR_INFO.IborServiceReference.locateProfileBySourceSystemIdResponse.datasource


Is there a word for capitalizing in the middle of a word, as in "eBay"?

Usually this sort of word is a trademarked name, such as eBay or BlackBerry.  Is there a word that describes capitalization mid-word?


I'm using beamer for a presentation. There's an itemize environment on a slide. For this (and possible more) itemize, I want the following behaviour:    highlight the item I'm talking about (e.g., bold) gray out the items I talked about already (e.g., by {\color{gray} old item} items I'm going to talk about later are not visible yet no code duplication (e.g., writing sentences twice)   What I startet with was  \begin{itemize}     \item<+> My first point     \item<+> My second point     \item<+> My third point     \item<+> And my last point \end{itemize}   I tried to get this done by user-defined commands like   \newcommand{\grayout}[1]{     \item<+> #1     \item<+-> {\color{gray} #1} } \begin{itemize}     \grayout{My first item}     ... \end{itemize}   But this is not working well. How can I solve this issue?


I am trying to prove this statement about countability:  Let $a\subset b$, if $b$ is countable then $a$ is countable.


How can I make a colored text with a black border in beamer?

In beamer, how can I make a colored text with black boreder?  I am currently using \textcolor to have colored text, but I need a black border, so the text can be read more easily.  EDIT I want the border of the letter black I do not want this:


Let $f :\mathbb R\to\mathbb R$ be an infinitely differentiable  function. Assume that for every $x \in \mathbb R$, there exists an  $n_x\in \mathbb N$, such that $\,f^{(n_x)}(x)=0$. Prove that  $f$ is polynomial.


What part of speech is "there", as in "...there could be"

Consider this sentence:      There could be a chance.   What part of speech is the word there in this sentence?


I run Ubuntu 12.04 on an old iMac G3. Since the GUI is too resource heavy I have disabled the display manager (lightdm) and am currently running the computer in console mode. How do I establish a mobile broadband connection from the command line?  When I connect the modem it shows up as ttyUSB0 in the Network Manager device list:  $ nmcli dev DEVICE     TYPE              STATE         ttyUSB0    gsm               disconnected     eth0       802-3-ethernet    unavailable   I have also copied a working connection configuration file from another computer to /etc/NetworkManager/system-connections/Com\ Hem\ Default\ 1. Still, when I try to connect I get an "unknown connection" error:  $ nmcli con up id "Com Hem Default 1" Error: Unknown connection: Com Hem Default 1.   Any clues?


Can I install Ubuntu on a PC with less than 2gb of ram

I have a PC with 1.2GB of RAM (Windows says 756MB). I plan to get another 1GB stick of RAM, but for now, can I install Ubuntu even though I don't have the required 2GB of RAM? I'm using DVD to install and I chose to download the main Ubuntu version on the Ubuntu page. Any help would be appreciated. Thanks :)


Line breaks of long URLs in biblatex bibliography?

I have some long URLs which doesn't contain special "line break characters" like "-" or "/". How can I automatically break these URLs?  \documentclass{scrreprt}  \usepackage[ngerman]{babel}                     \usepackage[latin1]{inputenc}                 \usepackage[T1]{fontenc} \usepackage[backend=biber]{biblatex} \usepackage{url} \usepackage{dingbat}  % for \carriagereturn symbol \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \g@addto@macro{\UrlBreaks}{% \do\/\do\d% } \makeatother  \begin{filecontents}{bachelorarbeit_lit.bib} @ONLINE{java96,     author = {{Joe Black}},     title = {Foobar 1.0},     year = {1996},     month = {1},     url = {http://www.aaa.bb.cccc.dh/uploads/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd.pdf},     urldate = {2011-03-02},     sortname = {Sun},     keywords = {www} } \end{filecontents}  \bibliography{bachelorarbeit_lit}  \begin{document} Test \cite{java96} \printbibliography \end{document}   edit  I don't know why but it still doesn't work. Is there an option to automatically break long URLs. I don't care where the break is but it should be done automatically. Even if I manually specify the "breaking character" it doesn't work (as the example shows).


I have installed node using sudo apt-get install node.  linux@linux:~$ node -v linux@linux:~$  linux@linux:~$ npm -v 1.3.10 linux@linux:~$    I also download node from  but, I don't find the full installation manual.


How can I put different textures/materials on different parts of the same mesh?

Title pretty much says it all. I have just started using blender 2.7, been on it for about a month, and have spent hours watching tutorials and reading and playing around with it.   I have built a model of a house, not for anything specific just wanted to do a whole model from start to finish as a learning project. I am happy with the model but I just can't get the textures to work. I am using cycles render but have also tried blender render. I textured the roof: marked seams>unwrapped>new material> nodes etc, and it looked really good, I was happy with it, so I marked seams for the door frame, unwrapped and set the texture and nodes etc but the wood texture applied itself to the roof as well as the door and made the rest of the model go a brown colour with out displaying the texture. I played around with the roof and got the right texture to display again, but it displayed on the door as well.   I really don't know what I am doing wrong, even when I follow a tutorial it doesn't work for me. I even tried a simple sword model, thinking the house might just be too much for a beginner, but the texture for the handle would assign itself to the whole model, none of my textures will stay seperate like I want them to.  This is really frustrating me as I am eager to learn and this would be an amazing skill to learn alongside my computer science degree, but it just won't work. Hopefully I am just missing something really simple and obvious, but a knowledgeable helping hand would be great.  Many thanks.  Edit: the post marked as the same as this one hasn't helped, I have worked through that thread a few times and it hasn't solved my issue. The uv maps won't hold seperate textures for me, blender applies the latest texture to every material and uv map on my project.


General solution of expected value of E(f(X))?

This is maybe a trivial question I came up while solving a few examples and understanding Markov/Chebyshev inequalities and subsequently in evaluating Chernoff bounds. Suppose $X$ is a random variable with some distribution $p$ and we need to evaluate $\mathbb{E}[f(X)]$. Here, $f(X)$ may or may not have the same distribution as $X$. In my case, if $f(X) = e^{sX}$, where $s>0$. I would work out this problem by letting $Z = e^{sX}$ and   $\mathbb{E}[f(X)] = \mathbb{E}[Z] = \int_{\infty}^{\infty}z \hspace{0.2em}p(z)dz$.   Now I find the distribution of $Z$ as: $P\{ Z \leq z \} \implies P\{ e^{sX} \leq z \} \implies P\{ X \leq \frac{\log(z)}{s}\} = \int_{-\infty}^{\frac{\log(z)}{s}}x.p(x)dx $  thereby substituting this into the expectation one gets $\mathbb{E}[Z] = \int_{\infty}^{\infty}z\hspace{0.2em} \left(\int_{-\infty}^{\frac{\log(z)}{s}}x\hspace{0.2em}p(x)dx\right)^{\prime} dz$  According to the Law of Unconscious Statistician , this approximates distribution of $Z$ as $p$. I understand the backward proof through calculus, I don't follow the measure theory approach. For example I don't follow how this works if say $X \sim Gamma$. Is there a source I can read through for someone with no measure theory background?


Integrate the "Achievements" drop down with the mobile app

Is there any plans to integrate the "Achievements" drop down with the mobile app? It's the one visual indicator I really, really miss when using the iOS app.   The only idea I've had as to how to achieve this is to have the current "Inbox" icon serving a dual purpose for both the "Inbox" and "Achievements".. with maybe a green indicator highlighting Achievements, and a red indicator highlighting Inbox messages.  Upon clicking the icon, the user would be able to toggle between a list of "Achievements" and a list of "Inbox" items.


Get username in custom user twig template

I have a twig template for the compact display of a user where I am able to output the defined content fields. Is there a way to output the username of that user?


Looking for an idiom or a slang word/phrase for a formal reply with no intent to help

There is a word in Russian "отписка", which could mean "unsubscription" but also has in some context could mean "written reply in a very formal way with no intent to really help". Like a very polite "fuck off" reply. So I feel like there should be a similar idiom or a slang word for this in English. Are there any?


Why are the numbers in my question offset by 1?

I've answered a question (perhaps not particularly well) here:    I had introduced a step 0, but when the markdown was actually displayed, it renumbered my sequence from 1, which messes up any references to the points in later commentary.  I've worked around this for now, starting, more normally, the list from 1. But is this intentional behaviour?    A simple reproduction here. Note that if you edit this question, you'll see the numbering starts at 0.   Zero One


odata.stackexchange.com is damn funny. But when do cached(?) query results, like , get updated?


Width of depletion region in P-N junction

Hello I wanted to ask how the width of the depletion region in reverse biased condition changes with the external  voltage source


How to change password on iOS Stack Exchange app

It seems that when using the Stack Exchange app on iOS, I can't access my profile settings to change my password. Am I just over looking something, or is this the case with everyone else using the iOS app?


Why the following test is always faster for the first case?

I was testing the performance of two different approaches to handling streams of integers (primitives).  To my surprise, the first test case is always slower, no matter the order.  public void intStreamTest() {     final int[] ints = new int[1000];     for (int x = 0; x < 1000; x++) {         ints[x] = new Random().nextInt(1000);     }     // T1     long start = System.currentTimeMillis();     for (int x = 0; x <= 10000; x++) {         List<Integer> result =             IntStream.of(ints).boxed().collect(Collectors.toList());     }     System.out.println("T1 " + (System.currentTimeMillis() - start));     // T2     long start2 = System.currentTimeMillis();     for (int x = 0; x <= 10000; x++) {         List<Integer> result =             IntStream.of(ints).mapToObj(Integer::valueOf).collect(Collectors.toList());     }     System.out.println("T2 " + (System.currentTimeMillis() - start2)); }   Here is an example of the output:  T1 150 T2 95   When I change the order of test cases (swap sections T2 and T1) I get:  T2 153 T1 92   Did I make a mistake? How is it possible that a second test case is always faster (approx by 60%)?


Why frustrums instead of disks of the surface area of a solid of revolution

Summary: Essentially I don't understand this inconsistency between using frustrums or disks in derivations (or trapeziums and rectangular strips) I also don't understand why the limit of a sum of disks doesn't work, and shouldn't give you the surface area of a solid of revolution  Full question: In the derivation for the surface area of a Solid of revolution they take the sum and limit of the surface area of frustums to give you $\int(2\pi y ds)$ where $s$ is the arc length of the curve.  When deriving the volume of this shape you use disks of width $dx$ and radius $y$ so the volume of each is $\pi y^2dx$ and then take the sum and then take the limit. Why not use disks for the surface area of a solid of revolution, giving you $\int(2\pi y dx)$ instead, why should the limit of the surface area of a sum of disks of width $dx$ and height $y$ not give you the surface area?  Surely using frustrums is like using trapeziums instead of rectangular strips when deriving the area under a general curve, so why don't we use this method to give you $\int(y ds)$ instead of $dx$? Furthermore why wouldn't we similarly use frustrums when deriving the volume of a solid of revolution?


Multiple dependant variable in multiple linear regression

I have 8 independant variables and 2 dependant variables.Iam using multiple linear regression.I just finished the regression topic so iam a starter in this.Can anyone say how to approach this one??


I am having some issues extending a newly created partition.    The idea is that I want the 37.96 GB of Free Space to be added to my DATA (D:) partition, and install Ubuntu on the 25.00 GB unallocated space. I had just installed Ubuntu on my D drive accidentally, so it added an additional 6.xx GB of Linux partition on my D-drive, so the free space should be behind the current data on the D drive (even though it seems like it isn't).  Anyhow, the "Extend Volume" option for my D: isn't available. How do I clean this up?


Quotient group of the non-zero complex numbers

Let $\mathbb{C}$ denote the multiplicative group of non-zero complex numbers and let $P$ denote the subgroup of positive (real) numbers. I am trying to find  the quotient group $\mathbb{C}/P$. Please help.


Is it possible to go outside during my three-hour transit in Brussels?

My flight from Rwanda to Russia through Brussels. I will have 4 hours transit in Brussels airport. Can I enjoy my connection time outside of the airport till time approaches?


Do we need to install antivirus in OS X? I'm using macbook Pro 13" currently. Which antivirus is recommended (and free)? Any other better way to protect information in OS X?


Why didn't they use the pensieve after the Triwizard Tournament?

In Goblet of Fire, after the last task why didn't they simply use the pensieve to restore Harry's memory instead of making him relive the events?  Wouldn't this provide valuable evidence to make everyone believe Voldemort is back? It would be easier to make a ‘fellowship' if everyone was aware of what was coming which was clearly what Dumbledore wanted.  So why didn't he use the Pensieve?


Is it possible to remove dynamically added autocompletions from Overleaf?

This question is the converse to:    In Overleaf LaTeX Editor, if you type some markup that the autocomplete does not recognise, it gets added to the autocomplete. 99% of the time this is great.  However, if you mistype something, such as \bodl instead of \bold, you will forever have \bodl come up as the first suggestion when inputting \bo...!   As the length of the document increases, and the number of typos goes up, the number of incorrect suggestions quickly starts to outweigh the benefit of the autocomplete, which is a real shame.  How can I remove these typos from the autocomplete?


if a series is convergent, prove the subsequence of its sequence is convergent.

if $\sum_{n=1}^\infty a_n$ is a convergent series of positive numbers,   and if $\{ a_{n_i} \}$ is a subsequence of $\{ a_n \}$ , ( n , i are Natural numbers ),  prove $\sum_{i=1}^\infty a_{n_i}$ converges.  My idea is: since $\sum_{n=1}^\infty a_n$ converges , then $\{ a_n \}$ converges ( to zero ), hence its subsequence $\{ a_{n_i} \}$ converges ( to zero ).  Now I want to show the sequence of partial sums of $\{ a_{n_i} \}$ is bounded, to prove the series $\sum_{i=1}^\infty a_{n_i}$ is convergent.  I do not know how to show this. or is my idea correct in the first place. I appreciate any help.


Is there a way to save all bash commands from all terminals to a single file? By default, different terminals have different history and that gets confusing. I'd like to save all history to a single file and optionally look up those commands instead? Perhaps shift+uparrow could look up in the history in the central file?


Continue processing after closing connection

Is there a way in PHP to close the connection (essentially tell a browser than there's no more data to come) but continue processing.  The specific circumstance I'm thinking of is that I would want to serve up cached data, then if the cache had expired, I would still serve the cached data for a fast response, close the connection, but continue processing to regenerate and cache new data.  Essentially the only purpose is to make a site appear more responsive as there wouldn't be the occasional delay while a user waits for content to be regenerated.  UPDATE:  PLuS has the closest answer to what I was looking for.  To clarify for a couple of people I'm looking for something that enables the following steps:   User requests page Connection opens to server PHP checks if cache has expired, if still fresh, serve cache and close connection (END HERE).  If expired, continue to 4. Serve expired cache Close connection so browser knows it's not waiting for more data. PHP regenerates fresh data and caches it. PHP shuts down.   UPDATE:  This is important, it must be a purely PHP solution.  Installing other software is not an option.


Why is sudo not installed by default in Debian?

I was reading a guide to  and came reading until this shocking statement:     sudo is not installed on Debian by default. Make sure your system is up-to-date and install it.   As current Debian user, this is difficult to believe since from installation I'm able to use sudo. So, maybe it got installed when I selected not to create a password for the root account (rendering the root account disabled) or something is amiss here. Does Debian not include sudo (or it's variants) as installed by default?  If we go by what the , sudo can be installed due APT/DPKG dependencies, which in some cases will ask tasksel/apt to install those too, but isn't included in the required or important list:  ➜  ~  aptitude search ~prequired | grep sudo ➜  ~  aptitude search ~pimportant | grep sudo ➜  ~  aptitude why '~prequired' sudo       i A dpkg     Suggests   apt                              i A apt      Suggests   aptitude | synaptic | wajig      i A synaptic Recommends gksu | kdebase-bin | policykit-1 i A gksu     Depends    sudo                             ➜  ~  aptitude why '~pimportant' sudo            i A apt      Suggests   aptitude | synaptic | wajig      i A synaptic Recommends gksu | kdebase-bin | policykit-1 i A gksu     Depends    sudo


Slight change of query causes CONVERT of illegal values to be done first, causing a conversion error

I have a table MyTable which has columns OldVal, NewVal, Nme which are all VARCHAR(MAX)  Wherever Nme = MyValue, the OldVal and NewVal values will be "integers" IE a numeric value value stored as a VARCHAR  Wherever Nme = SomethingElse, the OldVal and NewVal values will be "bigints"   Wherever Nme = SomethingElseAgain, the OldVal and NewVal values are string values  If I run the following query  SELECT   OldVal,          NewVal FROM     MyTable WHERE    Nme = 'MyValue' AND          CONVERT(INT,NewVal) < CONVERT(INT,OldVal)   The query runs as expected.  However If I change the query to   SELECT  1 FROM    (             SELECT  OldVal,                     NewVal             FROM    MyTable             WHERE   Nme = 'MyValue' AND                     CONVERT(INT,NewVal) < CONVERT(INT,OldVal)         ) a   I get an error      The conversion of the varchar value '3666999000' overflowed an int   column.   The value in question in the error message is one where Nme = "SomethingElse" (which are all BIGINTs stored as VARCHARs)  it seems to me that what is happening here is that on the first query, the optimizer first filters by Nme = 'MyValue' and then does the conversions on the residual data and the second query tries to do the conversion first (meaning it tries to convert values that are illegals INTs) and then applies the Nme = 'MyValue' filter.  This is confirmed by the predicate in the tooltip on the filter operator in each (Estimated) execution plan  The database is on a 2014 server and running in Compatibility Level 110. The behaviour is still present if I force the 2014 optimizer with OPTION (QUERYTRACEON 2312)  What would cause this to happen? I suspect maybe something to do with wrapping NewVal and OldVal in a CONVERT is causing issues with statistics but surely that would have affected both queries?  NB - above is abridged code narrowed down to its simplest form for the purpose of demostrating it here also, I know storing ints as varchars is not good practice but this is a third party database which we cannot control the design of


I am confused about the preferred way to combine an em-dash insertion with a comma occurring in the outer sentence. Until now, I had preferred to write:     The erosion responsible for residuals is less related to the material process of creation—e.g., rewriting in the sense of Mondrian or blurring the edges in the sense of Rothko—, but to the double nature of time.   Consulting , I convinced myself that em-dash and comma are complementary and there is nothing wrong in combining them. However the example on that linked page indicates that perhaps the comma should precede the insertion, like so:     The erosion responsible for residuals is less related to the material process of creation,—e.g., rewriting in the sense of Mondrian or blurring the edges in the sense of Rothko—but to the double nature of time.   Is there any advice on which variant would be preferred in academic British English?


In the diagram, it shows that the fundamental reason for different seasons is when the northern hemisphere is titled towards the sun there's summer in northern hemisphere and winter in southern hemisphere and vice-versa after the six months.  But because the earth spins around its axis, why doesn't the seasons change during day and night? is there something missing in the diagram to prove that?


A condition for convergence of a sequence

Consider the sequence $s_n=\sqrt{n}$. Although $(s_{n+1}-s_n)\rightarrow 0$ as $n\rightarrow \infty$, the sequence is not convergent (since it is unbounded). (This is a very common example in study of  Cauchy sequences where, by this example, it is remarked that making consecutive difference smaller is not sufficient for Cauchy condition.) Suppose we put such a condition on a sequence; i.e. suppose $(x_n)$ is a sequence such that $(x_{n+1}-x_n)\rightarrow 0$ as $n\rightarrow\infty$ and $(x_n)$ is bounded. Can we say that $(x_n)$ must be convergent? If not, what condition, instead of boundedness, will guarantee the convergence of the sequence $(x_n)$?


direct ethernet connection between two wirelessly connected Windows 7 laptops

I've got two systems that are right next to each other, and connected wirelessly to the same router. I want to connect the two of them together with an ethernet cable - both have gig-e and autonegotiation so it should work. I DON'T need the second system to have internet, but I need any specific tweaks to be on that system only.  I do not need to share internet. I need RDP to work, and thats it  The wireless runs on a 192.168.1.x subnet and ICS always runs on a 192.168.0.x subnet so that wouldn't be a problem.  Ideally I want this layout. Can I do this with ICS, or there some other free or open source way?          +---------------------------+           +-----------------------------+      | Laptop 1                  |           | Laptop 2                    |      | Client- mobile            |           | 'server'- stationary system |      |                           <-----+----->                             |      | RDP client                |           | RDP Server                  |      | MUST have wireless access |  ethernet | Runs ICS or similar         |      +---------+-----------------+           | wireless access optional    |                |                             +-----------------------------+                |                |                |                |                |                |                |                +---------------+     wireless to internet


Community Digest newsletters don't respect spoiler tags

For example, question  has a spoiler block near the start:    But in the community digest that question appeared without the spoiler blocked out:         It pretty much defeats the purpose of spoiler tags if you've been spoiled before you even get to the page.


I have the following problem: Let's assume we have a dataset with X and Y values. If we plot them on a scatter plot it would look somehow like the following graph:  If we have a look at this, we see some patterns here: We have 3 axis. I am looking for an algorithm or ML method to find any description for those axis, for example the linear functions, so that I can obtain the following:  If we would have only a single axis, then I would choose a simple linear regression. But the difficulty here is, that we have these multiple axis. Do you have an idea how to achieve this?


To achieve my goal as of this question  I want to assign a link to the menu item id.  Within php code I wrote this:  <?php $app = JFactory::getApplication(); $menu = $app->getMenu(); $item = $menu->getItem(474); ?>   and the jquery code is as you see is :  var $link = $('<a>',{     class: 'all-news-link',     href: <?php $item; ?> // **here how to assign the link which is assigned in php?** });  $('#custom-module .moduletable:nth-child(2) h3').append($link);     update  As per the provided link I used json_encode but also not solved my problem. Its even not alerting now.  <?php $app = JFactory::getApplication(); $menu = $app->getMenu(); $link1 = $menu->getItem(474); ?>  <script> $(document).ready(function(){   var $link = $('<a>',{     class: 'all-news-link',     href: <?php echo json_encode( $link1 ); ?> }); $('#custom-module .moduletable:nth-child(2) h3').append($link); alert("hi"); // it is not alerting });  </script>      when href: '' used its alerting "hi" but when I use php json_encode() its even not alerting means jquery is invalid


How to graph the data points of n dimensions?

I'm very new to data science. I'm wondering how is it possible to graph data of n dimension. For example by Clustering high-dimensional data      How do we graph these data points? Do we use a specific data structure? Do we take only the three more relevant dimensions?


When I press Ctrl+Alt+F1 it goes to virtual terminal. What is this virtual terminal for? When do you need to use it?


c++ Do-while loop inside switch-case Statement

Could someone explain me the program flow for this step by step? I don't understand how the program enters the do-while loop in the first place as n%3=1 and Case 0 should not be entered according to my understanding.  Thanks in Advance!  #include <iostream>  int main() {     int n = 3;     int i = 0;      switch (n % 2) {     case 0:         do {             ++i;     case 1: ++i;         } while (--n > 0);     }      std::cout << i; }


What does 'Autorun disabled' statement mean?

Could someone explain me what does this statement mean and what option should I click when it pops up?


Polynomials with even constant term form an ideal in $\mathbb{Z}[x]$

Let $I[x]$ be subset of $\mathbb{Z}[x]$ where $I[x]$ is the set of polynomials with constant term is even.  Show $I[x]$ is an Ideal of $\mathbb{Z}[x]$    Def of $I[x]$  Ideal of $\mathbb{Z}[x]$ that is $I \subset \mathbb{Z}[x]$ where  $$ \begin{align*}         &i)\forall a,b \in I[x]\Rightarrow a-b \in I[x] \\ &ii)\forall r \in Z[x], \forall i \in I[x]:ri \in I[x] \wedge ir \in I[x] \               \end{align*}    $$  [Showing i)]  Assume $a\in I[x], b \in I[x]$ that is                $$ a=a_nx^n+\dots+a_0 \text{ and }  b=b_nx^n+\dots+b_0$$ Now, $a-b=\dots+(a_0-b_0)$ is even since $\exists k_1,k_2 \in Z:a_0=k_1*2,b_0=k_2*2$.  That is $$\begin{aligned} a-b=&\dots+(a_0-b_0)           \\=&\dots+2k_1-2k_2\\              =&\dots+2(k_1-k_2)              \\=&\dots+2(k_3) && \text{ where } k_1-k_2=k_3 \end{aligned}$$ So, a-b has an even constant.  [Showing ii)]  Assuming $a\in Z[x],b\in \mathbb{Z}[x]$ where  $$ a*b=\dots +a_0b_0$$ $b_0$ is even and $a_0$ is even or odd. Either way even times even is even and even times odd is even. So $ab \in I$    appreciate critique on the work, or some weird way of answering the question


Getting second last parameter from querystring with PHP

I have a URL like so:  http://example.com/var1/var2   What I'd like to is get VAR 1 from the querystring. I've tried using a regex but I'm not really very familiar with them. Is there an easier way?


Which textbook of differential geometry will introduce conformal transformation?

Which textbook of differerntial geometry will have these formulas about conformal transformation? $$\tilde g_{ij} = e^{2\varphi}g_{ij}$$  $$\tilde \Gamma^k{}_{ij} = \Gamma^k{}_{ij}+ \delta^k_i\partial_j\varphi + \delta^k_j\partial_i\varphi-g_{ij}\nabla^k\varphi $$ $$\tilde R_{ijkl} = e^{2\varphi}\left( R_{ijkl} - \left[ g {~\wedge\!\!\!\!\!\!\bigcirc~} \left( \nabla\partial\varphi - \partial\varphi\partial\varphi + \frac{1}{2}\|\nabla\varphi\|^2g    \right)\right]_{ijkl}  \right)$$ $$\tilde R = e^{-2\varphi}\left[R + \frac{4(n-1)}{(n-2)}e^{-(n-2)\varphi/2}\triangle\left( e^{(n-2)\varphi/2} \right) \right] $$  I've read many textbooks about differential geometry, such as Do Carmo, Kobayshi, Novikov and so on. But I never found these formulas. Who can give me a reference about these formulas.


Do any feats carry over when in Wild Shape?

I'm wondering if any feats might carry over when a druid assumes a Wild Shape. I'm specifically looking at the Alert and Lucky Feats.  PHB p.67 stipulates:     Your game statistics are replaced by the statistics of the beast...   So I would tend to think that that precludes the +5 to Initiative in the Alert Feat, but I thought it would be a good idea to check with you guys.